]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-11 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
4
5 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
6
7 PR breakpoints/17012
8 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
9 it is marked as persistent.
10
11 2014-12-10 Doug Evans <xdje42@gmail.com>
12
13 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
14 closer to its subroutines.
15
16 2014-12-10 Doug Evans <xdje42@gmail.com>
17
18 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
19
20 2014-12-10 Doug Evans <xdje42@gmail.com>
21
22 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
23 * cp-support.c (cp_lookup_symbol_imports): Delete.
24
25 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
26
27 PR gdb/17627
28 * target.c (cleanup_restore_target_terminal): New function.
29 (make_cleanup_restore_target_terminal): New function.
30 * target.h (make_cleanup_restore_target_terminal): New declaration.
31 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
32
33 2014-12-08 Doug Evans <dje@google.com>
34
35 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
36
37 2014-12-08 Doug Evans <dje@google.com>
38
39 * NEWS: Mention gdb.Objfile.owner.
40 * python/py-objfile.c (objfpy_get_owner): New function.
41 (objfile_getset): Add "owner".
42
43 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
46 (lookup_global_symbol_from_objfile): Call it.
47
48 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 Remove const from struct objfile *.
51 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
52 symtab.c, symtab.h: In these files.
53
54 2014-12-05 Andreas From <andreas.from@ericsson.com>
55
56 * MAINTAINERS (Write After Approval): Add "Andreas From"
57
58 2014-12-05 Doug Evans <xdje42@gmail.com>
59
60 Revert:
61 PR symtab/17602
62 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
63
64 2014-12-04 Doug Evans <dje@google.com>
65
66 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
67 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
68 (objfile_getset): Add "add_separate_debug_file".
69
70 2014-12-04 Doug Evans <dje@google.com>
71
72 * NEWS: Mention gdb.Objfile.build_id.
73 * build-id.c (build_id_bfd_get): Make non-static.
74 * build-id.h (build_id_bfd_get): Add declaration.
75 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
76 (OBJFPY_REQUIRE_VALID): New macro.
77 (objfpy_get_build_id): New function.
78 (objfile_getset): Add "build_id".
79 * utils.c (make_hex_string): New function.
80 * utils.h (make_hex_string): Add declaration.
81
82 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
83
84 * block.c (block_lookup_symbol_primary): New function.
85 * block.h (block_lookup_symbol_primary): New declaration.
86 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
87 Call block_lookup_symbol_primary.
88
89 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
90
91 * tramp-frame.h (tramp_frame): Add `validate' member.
92 * tramp-frame.c (tramp_frame_start): Validate trampoline before
93 scanning.
94 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
95 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
96 (mips_linux_o32_sigframe): Initialize `validate' member.
97 (mips_linux_o32_rt_sigframe): Likewise.
98 (mips_linux_n32_rt_sigframe): Likewise.
99 (mips_linux_n64_rt_sigframe): Likewise.
100 (micromips_linux_o32_sigframe): New variable.
101 (micromips_linux_o32_rt_sigframe): Likewise.
102 (micromips_linux_n32_rt_sigframe): Likewise.
103 (micromips_linux_n64_rt_sigframe): Likewise.
104 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
105 (mips_linux_n32n64_sigframe_init): Likewise.
106 (mips_linux_sigframe_validate): New function.
107 (micromips_linux_sigframe_validate): Likewise.
108 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
109
110 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
111
112 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
113 * sparc-sol2-tdep.c: Include "regset.h".
114 (sparc32_sol2_supply_core_gregset): New function.
115 (sparc32_sol2_collect_core_gregset): Likewise.
116 (sparc32_sol2_supply_core_fpregset): Likewise.
117 (sparc32_sol2_collect_core_fpregset): Likewise.
118 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
119 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
120 tdep->fpregset/sizeof_fpregset.
121 * sparc64-sol2-tdep.c: Include "regset.h".
122 (sparc64_sol2_supply_core_gregset): New function.
123 (sparc64_sol2_collect_core_gregset): Likewise.
124 (sparc64_sol2_supply_core_fpregset): Likewise.
125 (sparc64_sol2_collect_core_fpregset): Likewise.
126 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
127 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
128 tdep->fpregset/sizeof_fpregset.
129
130 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
131
132 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
133 type.
134
135 2014-12-02 Doug Evans <dje@google.com>
136
137 * symtab.c (symbol_init_cplus_specific): Delete.
138 (symbol_set_demangled_name): Remove special c++ support.
139 (symbol_get_demangled_name, symbol_set_language): Ditto.
140 * symtab.h (struct cplus_specific): Delete.
141 (struct general_symbol_info) <language_specific>: Remove
142 cplus_specific.
143
144 2014-12-02 Doug Evans <dje@google.com>
145
146 PR symtab/17602
147 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
148
149 2014-12-02 Doug Evans <dje@google.com>
150
151 PR symtab/17591
152 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
153 to strip parameters.
154
155 2014-12-02 Doug Evans <dje@google.com>
156
157 * dwarf2read.c (peek_die_abbrev): Improve error message text.
158
159 2014-12-02 Doug Evans <dje@google.com>
160
161 * valops.c (do_search_struct_field): Remove remnant of Chill support.
162 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
163
164 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
165
166 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
167
168 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
169
170 * NEWS: Mention new Python events.
171 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
172 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
173 (py-infevents.o): New rule.
174 * doc/observer.texi (inferior_call_pre, inferior_call_post)
175 (memory_changed, register_changed): New observers.
176 * infcall.c (call_function_by_hand): Notify observer before and
177 after inferior call.
178 * python/py-event.h (inferior_call_kind): New enum.
179 (emit_inferior_call_event): New prototype.
180 (emit_register_changed_event): New prototype.
181 (emit_memory_changed_event): New prototype.
182 * python/py-events.h (events_object): New registries
183 inferior_call, memory_changed and register_changed.
184 * python/py-evts.c (gdbpy_initialize_py_events): Add the
185 inferior_call, memory_changed and register_changed registries.
186 * python/py-infevents.c: New.
187 * python/py-inferior.c (python_on_inferior_call_pre)
188 (python_on_inferior_call_post, python_on_register_change)
189 (python_on_memory_change): New functions.
190 (gdbpy_initialize_inferior): Attach python handler to new
191 observers.
192 * python/py-infthread.c(gdbpy_create_ptid_object): New.
193 (thpy_get_ptid) Use gdbpy_create_ptid_object.
194 * python/python-internal.h:
195 (gdbpy_create_ptid_object)
196 (gdbpy_initialize_inferior_call_pre_event)
197 (gdbpy_initialize_inferior_call_post_event)
198 (gdbpy_initialize_register_changed_event)
199 (gdbpy_initialize_memory_changed_event): New prototypes.
200 * python/python.c (_initialize_python): Initialize new events.
201 * valops.c (value_assign): Notify register_changed observer.
202
203 2014-12-02 Doug Evans <dje@google.com>
204
205 * python/py-infthread.c: Whitespace fixes.
206
207 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
208
209 * features/Makefile (s390-te-linux64-expedite): Replace
210 non-existant r14 and r15 by r14l and r15l, respectively.
211 * regformats/s390-te-linux64.dat: Regenerate.
212
213 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
214
215 * objfiles.c (allocate_objfile): Remove duplicate comment.
216
217 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
218
219 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
220 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
221 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
222 (supply_gregset, supply_fpregset): Remove.
223 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
224 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
225 and sizeof_gregset.
226
227 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
228
229 Add add-auto-load-scripts-directory.
230 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
231 * auto-load.c (add_auto_load_dir): New function.
232 (_initialize_auto_load): Install it.
233
234 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
235
236 Pushed by Joel Brobecker <brobecker@adacore.com>.
237 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
238
239 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
240
241 * eval.c (evaluate_subexp): Check that the thread stack temporaries
242 are not already enabled before enabling them.
243
244 2014-11-29 Yao Qi <yao@codesourcery.com>
245
246 * arm-tdep.c (arm_analyze_prologue): Move local variables
247 'framereg' and 'framesize' to inner block. Move code to
248 inner block too.
249
250 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
251
252 * eval.c: Include gdbthread.h.
253 (evaluate_subexp): Enable thread stack temporaries before
254 evaluating a complete expression and clean them up after the
255 evaluation is complete.
256 * gdbthread.h: Include common/vec.h.
257 (value_ptr): New typedef.
258 (VEC (value_ptr)): New vector type.
259 (value_vec): New typedef.
260 (struct thread_info): Add new fields stack_temporaries_enabled
261 and stack_temporaries.
262 (enable_thread_stack_temporaries)
263 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
264 (get_last_thread_stack_temporary)
265 (value_in_thread_stack_temporaries): Declare.
266 * gdbtypes.c (class_or_union_p): New function.
267 * gdbtypes.h (class_or_union_p): Declare.
268 * infcall.c (call_function_by_hand): Store return values of class
269 type as temporaries on stack.
270 * thread.c (enable_thread_stack_temporaries): New function.
271 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
272 (get_last_thread_stack_temporary): Likewise.
273 (value_in_thread_stack_temporaries): Likewise.
274 * value.c (value_force_lval): New function.
275 * value.h (value_force_lval): Declare.
276
277 2014-11-28 Pierre Muller <muller@sourceware.org>
278
279 Pushed by Joel Brobecker <brobecker@adacore.com>.
280 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
281 registers.
282
283 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
284
285 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
286 * config/sparc/linux.mh (NATDEPFILES): Likewise.
287 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
288 * m68klinux-nat.c (fetch_core_registers): Remove.
289 (linux_elf_core_fns): Remove.
290 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
291
292 2014-11-28 Joel Brobecker <brobecker@adacore.com>
293
294 * utils.c (gdb_realpath): Rework comment about handling on
295 Windows.
296
297 2014-11-28 Yao Qi <yao@codesourcery.com>
298
299 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
300 rename.
301 * gnulib/aclocal.m4: Re-generated.
302 * gnulib/config.in: Re-generated.
303 * gnulib/configure: Re-generated.
304 * gnulib/import/Makefile.am: Re-generated.
305 * gnulib/import/Makefile.in: Re-generated.
306 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
307 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
308 * import/basename-lgpl.c: New file.
309 * import/dirname-lgpl.c: New file.
310 * import/dirname.h: New file.
311 * import/m4/dirname.m4: New file.
312 * import/m4/malloc.m4: New file.
313 * import/m4/rename.m4: New file.
314 * import/m4/rmdir.m4: New file.
315 * import/m4/stdio_h.m4: New file.
316 * import/malloc.c: New file.
317 * import/rename.c: New file.
318 * import/rmdir.c: New file.
319 * import/same-inode.h: New file.
320 * import/stdio.c: New file.
321 * import/stdio.in.h: New file.
322 * import/stripslash.c: New file.
323
324 2014-11-28 Yao Qi <yao@codesourcery.com>
325
326 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
327 and realpath.
328 * config.in: Re-generated.
329 * configure: Re-generated.
330 * utils.c (gdb_realpath): Remove code calling realpath,
331 canonicalize_file_name and pathconf.
332 [!_WIN32]: Call canonicalize_file_name.
333
334 2014-11-28 Yao Qi <yao@codesourcery.com>
335
336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
337 canonicalize-lgpl.
338 * aclocal.m4: Re-generated.
339 * config.in: Re-generated.
340 * configure: Re-generated.
341 * import/Makefile.am: Re-generated.
342 * import/Makefile.in: Re-generated.
343 * import/m4/gnulib-cache.m4: Re-generated.
344 * import/m4/gnulib-comp.m4: Re-generated.
345 * import/canonicalize-lgpl.c: New file.
346 * import/extra/snippet/_Noreturn.h: New file.
347 * import/m4/canonicalize.m4: New file.
348 * import/m4/double-slash-root.m4: New file.
349 * import/m4/eealloc.m4: New file.
350 * import/m4/malloca.m4: New file.
351 * import/m4/nocrash.m4: New file.
352 * import/m4/stdlib_h.m4: New file.
353 * import/malloca.c: New file.
354 * import/malloca.h: New file.
355 * import/malloca.valgrind: New file.
356
357 2014-11-28 Yao Qi <yao@codesourcery.com>
358
359 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
360 * config.in, configure: Regenerate.
361 * symfile.c (find_separate_debug_file_by_debuglink): Remove
362 code checking HAVE_LSTAT is defined.
363
364 2014-11-28 Yao Qi <yao@codesourcery.com>
365
366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
367 lstat.
368 * gnulib/aclocal.m4: Re-generated.
369 * gnulib/config.in: Re-generated.
370 * gnulib/configure: Re-generated.
371 * gnulib/import/Makefile.am: Re-generated.
372 * gnulib/import/Makefile.in: Re-generated.
373 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
374 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
375 * gnulib/import/lstat.c: New file.
376 * gnulib/import/m4/lstat.m4: New file.
377
378 2014-11-28 Yao Qi <yao@codesourcery.com>
379
380 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
381 * config.in, configure: Re-generate.
382 * inf-child.c (inf_child_fileio_readlink): Don't check
383 HAVE_READLINK is defined.
384
385 2014-11-28 Yao Qi <yao@codesourcery.com>
386
387 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
388 * gnulib/aclocal.m4: Re-generated.
389 * gnulib/config.in: Likewise.
390 * gnulib/configure: Likewise.
391 * gnulib/import/Makefile.am: Likewise.
392 * gnulib/import/Makefile.in: Likewise.
393 * gnulib/import/m4/gnulib-cache.m4: Likewise.
394 * gnulib/import/m4/gnulib-comp.m4: Likewise.
395 * gnulib/import/dosname.h: New file
396 * gnulib/import/m4/largefile.m4: New file.
397 * gnulib/import/m4/readlink.m4: New file.
398 * gnulib/import/m4/stat.m4: New file.
399 * gnulib/import/readlink.c: New file.
400 * gnulib/import/stat.c: New file.
401
402 2014-11-26 Mark Wielaard <mjw@redhat.com>
403
404 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
405 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
406
407 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
408
409 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
410 that there can be only one stack adjustment in the prologue
411 with tests to detect specific disallowed stack adjustments.
412
413 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
414
415 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
416 adjustments.
417
418 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
419
420 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
421 the instruction as well as reading it from memory.
422 (nios2_match_add): New.
423 (nios2_match_sub): New.
424 (nios2_match_addi): New.
425 (nios2_match_orhi): New.
426 (nios2_match_stw): New.
427 (nios2_match_ldw): New.
428 (nios2_match_rdctl): New.
429 (enum branch_condition): New.
430 (nios2_match_branch): New.
431 (nios2_match_jmpi): New.
432 (nios2_match_calli): New.
433 (nios2_match_jmpr): New.
434 (nios2_match_callr): New.
435 (nios2_match_break): New.
436 (nios2_match_trap): New.
437 (nios2_in_epilogue_p): Rewrite to use new functions.
438 (nios2_analyze_prologue): Likewise.
439 (nios2_skip_prologue): Delete unused local limit_pc.
440 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
441 (nios2_get_next_pc): Rewrite to use new functions.
442
443 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
444
445 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
446
447 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
448
449 Pushed by Joel Brobecker <brobecker@adacore.com>
450 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
451 elements pi_len by the size of the elements before calling
452 vm_deallocate.
453 (inf_validate_task_sc): Likewise, and properly deallocate the
454 noise array.
455
456 2014-11-23 Doug Evans <xdje42@gmail.com>
457
458 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
459 number and name if present. All callers updated.
460 (dump_fn_fieldlists): Fix indentation of args.
461
462 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
463
464 * MAINTAINERS (Write After Approval): Add myself.
465
466 2014-11-23 Joel Brobecker <brobecker@adacore.com>
467
468 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
469 to a bp_call_dummy breakpoint type.
470
471 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
472
473 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
474 registering the signal handler.
475
476 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
477
478 * event-top.h (call_stdin_event_handler_again_p): Declare.
479 * event-top.c (call_stdin_event_handler_again_p): Define.
480 (stdin_event_handler): Use it.
481 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
482 handler again if there is pending input following a
483 start sequence.
484
485 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
486
487 Pushed by Joel Brobecker <brobecker@adacore.com>
488 * linux-fork.c (checkpoint_command): Print index of new
489 checkpoint in response message.
490
491 2014-11-23 Yao Qi <yao@codesourcery.com>
492
493 * valprint.c (read_string): Move local variables 'found_nul',
494 'chunksize' and 'limit' to inner scope. Update comments.
495
496 2014-11-22 Doug Evans <xdje42@gmail.com>
497
498 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
499 function comment.
500 (search_symbols): Fix comments and whitespace.
501
502 2014-11-22 Doug Evans <xdje42@gmail.com>
503
504 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
505
506 2014-11-21 Doug Evans <dje@google.com>
507
508 * psymtab.c (psymtab_search_name): Fix whitespace.
509
510 2014-11-21 Yao Qi <yao@codesourcery.com>
511
512 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
513 errno.
514 * gnulib/import/Makefile.am: Re-generated.
515 * gnulib/import/Makefile.in: Likewise.
516 * gnulib/import/m4/gnulib-cache.m4: Likewise.
517
518 2014-11-21 Yao Qi <yao@codesourcery.com>
519
520 * gdb_wchar.h: Include wchar.h and wctype.h.
521 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
522 include wchar.h and wctype.h.
523 Don't check HAVE_WCHAR_H.
524
525 2014-11-21 Yao Qi <yao@codesourcery.com>
526
527 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
528 and wctype-h.
529 * gnulib/import/Makefile.am: Re-generated.
530 * gnulib/import/Makefile.in: Likewise.
531 * gnulib/import/m4/gnulib-cache.m4: Likewise.
532
533 2014-11-21 Yao Qi <yao@codesourcery.com>
534
535 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
536 memchr.
537 * gnulib/import/Makefile.am: Re-generated.
538 * gnulib/import/Makefile.in: Likewise.
539 * gnulib/import/m4/gnulib-cache.m4: Likewise.
540
541 2014-11-21 Yao Qi <yao@codesourcery.com>
542
543 * common/common-defs.h: Include alloca.h
544 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
545 * configure: Re-generated.
546 * defs.h: Remove code handling alloca.
547 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
548 or not.
549
550 2014-11-21 Yao Qi <yao@codesourcery.com>
551
552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
553 alloca.
554 * gnulib/import/Makefile.am: Re-generated.
555 * gnulib/import/Makefile.in: Likewise..
556 * gnulib/import/m4/gnulib-cache.m4: Likewise.
557
558 2014-11-21 Yao Qi <yao@codesourcery.com>
559
560 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
561 alphabetical order.
562
563 2014-11-21 Joel Brobecker <brobecker@adacore.com>
564
565 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
566 flag_unsigned if HIGH_BOUND is constant and negative.
567
568 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
569
570 PR breakpoints/10737
571 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
572 modifier from "struct gdbarch" when compiling without Expat (XML)
573 support.
574 (get_syscall_by_number): Likewise.
575 (get_syscall_by_name): Likewise.
576 (get_syscall_names): Likewise.
577
578 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
579
580 PR breakpoints/10737
581 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
582 set_xml_syscall_file_name to provide gdbarch.
583 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
584 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
585 * breakpoint.c (print_it_catch_syscall): Adjust call to
586 get_syscall_by_number to provide gdbarch.
587 (print_one_catch_syscall): Likewise.
588 (print_mention_catch_syscall): Likewise.
589 (print_recreate_catch_syscall): Likewise.
590 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
591 and get_syscall_by_name to provide gdbarch.
592 (catch_syscall_completer): Adjust call to get_syscall_names to
593 provide gdbarch.
594 * gdbarch.c: Regenerate.
595 * gdbarch.h: Likewise.
596 * gdbarch.sh: Forward declare "struct syscalls_info".
597 (xml_syscall_file): New variable.
598 (syscalls_info): Likewise.
599 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
600 set_xml_syscall_file_name to provide gdbarch.
601 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
602 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
603 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
604 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
605 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
606 * xml-syscall.c: Include gdbarch.h.
607 (set_xml_syscall_file_name): Accept gdbarch parameter.
608 (get_syscall_by_number): Likewise.
609 (get_syscall_by_name): Likewise.
610 (get_syscall_names): Likewise.
611 (my_gdb_datadir): Delete global variable.
612 (struct syscalls_info) <my_gdb_datadir>: New variable.
613 (struct syscalls_info) <sysinfo>: Rename variable to
614 "syscalls_info".
615 (sysinfo): Delete global variable.
616 (have_initialized_sysinfo): Likewise.
617 (xml_syscall_file): Likewise.
618 (sysinfo_free_syscalls_desc): Rename to...
619 (syscalls_info_free_syscalls_desc): ... this.
620 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
621 code to the new layout of "struct syscalls_info".
622 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
623 "syscalls_info".
624 (syscall_create_syscall_desc): Likewise.
625 (syscall_start_syscall): Likewise.
626 (syscall_parse_xml): Likewise.
627 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
628 (init_sysinfo): Rename to...
629 (init_syscalls_info): ...this. Add gdbarch as a parameter.
630 Adjust function to deal with gdbarch.
631 (xml_get_syscall_number): Delete parameter sysinfo. Accept
632 gdbarch as a parameter. Adjust code.
633 (xml_get_syscall_name): Likewise.
634 (xml_list_of_syscalls): Likewise.
635 (set_xml_syscall_file_name): Accept gdbarch as parameter.
636 (get_syscall_by_number): Likewise.
637 (get_syscall_by_name): Likewise.
638 (get_syscall_names): Likewise.
639 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
640 (get_syscall_by_number): Likewise.
641 (get_syscall_by_name): Likewise.
642 (get_syscall_names): Likewise.
643
644 2014-11-20 Doug Evans <xdje42@gmail.com>
645
646 Split struct symtab into two: struct symtab and compunit_symtab.
647 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
648 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
649 to "struct compunit_symtab *". All callers updated.
650 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
651 "struct symtab *" argument to "struct compunit_symtab *".
652 All callers updated.
653 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
654 result to "struct compunit_symtab *". All callers updated.
655 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
656 Change result to "struct compunit_symtab *". All callers updated.
657 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
658 hange type to "struct compunit_symtab *". All uses updated.
659 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
660 Change type to "struct compunit_symtab *". All uses updated.
661 * buildsym.c (struct buildsym_compunit): New struct.
662 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
663 (buildsym_compunit): New static global.
664 (finish_block_internal): Update to fetch objfile from
665 buildsym_compunit.
666 (make_blockvector): Delete objfile argument.
667 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
668 debugformat, producer.
669 (start_buildsym_compunit): New function.
670 (free_buildsym_compunit): Renamed from free_subfiles_list.
671 All callers updated.
672 (patch_subfile_names): Rewrite to use buildsym_compunit.
673 (get_compunit_symtab): New function.
674 (get_macro_table): Delete argument comp_dir. All callers updated.
675 (start_symtab): Change result to "struct compunit_symtab *".
676 All callers updated. Create the subfile of the main source file.
677 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
678 (reset_symtab_globals): Update.
679 (end_symtab_get_static_block): Update to use buildsym_compunit.
680 (end_symtab_without_blockvector): Rewrite.
681 (end_symtab_with_blockvector): Change result to
682 "struct compunit_symtab *". All callers updated.
683 Update to use buildsym_compunit. Don't set symtab->dirname,
684 instead set it in the compunit.
685 Explicitly make sure main symtab is first in its list.
686 Set debugformat, producer, blockvector, block_line_section, and
687 macrotable in the compunit.
688 (end_symtab_from_static_block): Change result to
689 "struct compunit_symtab *". All callers updated.
690 (end_symtab, end_expandable_symtab): Ditto.
691 (set_missing_symtab): Change symtab argument to
692 "struct compunit_symtab *". All callers updated.
693 (augment_type_symtab): Ditto.
694 (record_debugformat): Update to use buildsym_compunit.
695 (record_producer): Update to use buildsym_compunit.
696 * buildsym.h (struct subfile) <dirname>: Delete.
697 <producer, debugformat>: Delete.
698 <buildsym_compunit>: New member.
699 (get_compunit_symtab): Declare.
700 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
701 from primary_symtab. Change type to "struct compunit_symtab *".
702 All uses updated.
703 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
704 All callers updated.
705 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
706 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
707 symtab. Change type to "struct compunit_symtab *". All uses updated.
708 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
709 All callers updated.
710 (dw2_find_last_source_symtab): Ditto.
711 (dw2_lookup_symbol): Ditto.
712 (recursively_find_pc_sect_compunit_symtab): Renamed from
713 recursively_find_pc_sect_symtab. Change result to
714 "struct compunit_symtab *". All callers updated.
715 (dw2_find_pc_sect_compunit_symtab): Renamed from
716 dw2_find_pc_sect_symtab. Change result to
717 "struct compunit_symtab *". All callers updated.
718 (get_compunit_symtab): Renamed from get_symtab. Change result to
719 "struct compunit_symtab *". All callers updated.
720 (recursively_compute_inclusions): Change type of immediate_parent
721 argument to "struct compunit_symtab *". All callers updated.
722 (compute_compunit_symtab_includes): Renamed from
723 compute_symtab_includes. All callers updated. Rewrite to compute
724 includes of compunit_symtabs and not symtabs.
725 (process_full_comp_unit): Update to work with struct compunit_symtab.
726 (process_full_type_unit): Ditto.
727 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
728 (dwarf_decode_lines): Remove special case handling of main subfile.
729 (macro_start_file): Delete argument comp_dir. All callers updated.
730 (dwarf_decode_macro_bytes): Ditto.
731 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
732 use struct compunit_symtab.
733 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
734 * jit.c (finalize_symtab): Build compunit_symtab.
735 * jv-lang.c (get_java_class_symtab): Change result to
736 "struct compunit_symtab *". All callers updated.
737 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
738 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
739 comp_dir. Change type to "struct compunit_symtab *".
740 All uses updated.
741 (new_macro_table): Change comp_dir argument to cust,
742 "struct compunit_symtab *". All callers updated.
743 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
744 nr_primary_symtabs. All uses updated.
745 (count_symtabs_and_blocks): Update to handle compunits.
746 (report_command_stats): Update output, "primary symtabs" renamed to
747 "compunits".
748 * mdebugread.c (new_symtab): Change result to
749 "struct compunit_symtab *". All callers updated.
750 (parse_procedure): Change type of search_symtab argument to
751 "struct compunit_symtab *". All callers updated.
752 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
753 separate loop.
754 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
755 symtabs. Change type to "struct compunit_symtab *". All uses updated.
756 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
757 All uses updated.
758 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
759 All uses updated.
760 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
761 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
762 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
763 symtab. Change type to "struct compunit_symtab *". All uses updated.
764 * psymtab.c (psymtab_to_symtab): Change result type to
765 "struct compunit_symtab *". All callers updated.
766 (find_pc_sect_compunit_symtab_from_partial): Renamed from
767 find_pc_sect_symtab_from_partial. Change result type to
768 "struct compunit_symtab *". All callers updated.
769 (lookup_symbol_aux_psymtabs): Change result type to
770 "struct compunit_symtab *". All callers updated.
771 (find_last_source_symtab_from_partial): Ditto.
772 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
773 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
774 and macro_table from compunit.
775 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
776 type to "struct compunit_symtab *". All callers updated.
777 (debug_qf_lookup_symbol): Ditto.
778 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
779 debug_qf_find_pc_sect_symtab, change result type to
780 "struct compunit_symtab *". All callers updated.
781 * symfile.c (allocate_symtab): Delete objfile argument.
782 New argument cust.
783 (allocate_compunit_symtab): New function.
784 (add_compunit_symtab_to_objfile): New function.
785 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
786 Change result type to "struct compunit_symtab *". All uses updated.
787 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
788 Change result type to "struct compunit_symtab *". All uses updated.
789 * symmisc.c (print_objfile_statistics): Compute blockvector count in
790 separate loop.
791 (dump_symtab_1): Update test for primary source symtab.
792 (maintenance_info_symtabs): Update to handle compunit symtabs.
793 (maintenance_check_symtabs): Ditto.
794 * symtab.c (set_primary_symtab): Delete.
795 (compunit_primary_filetab): New function.
796 (compunit_language): New function.
797 (iterate_over_some_symtabs): Change type of arguments "first",
798 "after_last" to "struct compunit_symtab *". All callers updated.
799 Update to loop over symtabs in each compunit.
800 (error_in_psymtab_expansion): Rename symtab argument to cust,
801 and change type to "struct compunit_symtab *". All callers updated.
802 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
803 Change result type to "struct compunit_symtab *". All callers updated.
804 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
805 Change result type to "struct compunit_symtab *". All callers updated.
806 (find_pc_sect_line): Only loop over symtabs within selected compunit
807 instead of all symtabs in the objfile.
808 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
809 <compunit_symtab> New member.
810 <block_line_section>: Moved to compunit_symtab.
811 <locations_valid>: Ditto.
812 <epilogue_unwind_valid>: Ditto.
813 <macro_table>: Ditto.
814 <dirname>: Ditto.
815 <debugformat>: Ditto.
816 <producer>: Ditto.
817 <objfile>: Ditto.
818 <call_site_htab>: Ditto.
819 <includes>: Ditto.
820 <user>: Ditto.
821 <primary>: Delete
822 (SYMTAB_COMPUNIT): New macro.
823 (SYMTAB_BLOCKVECTOR): Update definition.
824 (SYMTAB_OBJFILE): Update definition.
825 (SYMTAB_DIRNAME): Update definition.
826 (struct compunit_symtab): New type. Common members among all source
827 symtabs within a compilation unit moved here. All uses updated.
828 (COMPUNIT_OBJFILE): New macro.
829 (COMPUNIT_FILETABS): New macro.
830 (COMPUNIT_DEBUGFORMAT): New macro.
831 (COMPUNIT_PRODUCER): New macro.
832 (COMPUNIT_DIRNAME): New macro.
833 (COMPUNIT_BLOCKVECTOR): New macro.
834 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
835 (COMPUNIT_LOCATIONS_VALID): New macro.
836 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
837 (COMPUNIT_CALL_SITE_HTAB): New macro.
838 (COMPUNIT_MACRO_TABLE): New macro.
839 (ALL_COMPUNIT_FILETABS): New macro.
840 (compunit_symtab_ptr): New typedef.
841 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
842
843 2014-11-20 Joel Brobecker <brobecker@adacore.com>
844
845 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
846 if the TYPE_CODE of range_type's base type does not match
847 the TYPE_CODE of encoding_type's base type.
848
849 2014-11-19 Joel Brobecker <brobecker@adacore.com>
850
851 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
852 it starts with '<'.
853
854 2014-11-19 Joel Brobecker <brobecker@adacore.com>
855
856 * ada-lang.c (ada_is_redundant_range_encoding): New function.
857 (ada_is_redundant_index_type_desc): New function.
858 (to_fixed_array_type): Ignore parallel XA type if redundant.
859
860 2014-11-19 Joel Brobecker <brobecker@adacore.com>
861
862 * ada-lang.c (constrained_packed_array_type): Set the length
863 of the return array as if both bounds where zero if that
864 returned array's index type is dynamic.
865
866 2014-11-19 Yao Qi <yao@codesourcery.com>
867
868 * config/i386/go32.mh (CC): Remove.
869
870 2014-11-18 Doug Evans <xdje42@gmail.com>
871
872 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
873 updated.
874
875 2014-11-18 Doug Evans <xdje42@gmail.com>
876
877 * buildsym.c (buildsym_objfile): New static global.
878 (buildsym_comp_dir): New static global.
879 (finish_block_internal): Delete arg objfile. All callers updated.
880 (finish_block): Delete arg objfile. All callers updated.
881 (start_subfile): Delete arg dirname. All callers updated.
882 (patch_subfile_names): Update buildsym_comp_dir.
883 (get_macro_table): Delete arg objfile. All callers updated.
884 (start_symtab): New arg objfile. All callers updated.
885 Rename arg dirname to comp_dir.
886 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
887 (end_symtab_get_static_block): Delete arg objfile. All callers
888 updated.
889 (end_symtab_without_blockvector): Ditto.
890 (end_symtab_with_blockvector): Ditto.
891 (end_symtab_from_static_block): Ditto.
892 (end_symtab): Ditto.
893 (end_expandable_symtab): Ditto.
894 (augment_type_symtab): Ditto.
895 * coffread.c (coff_start_symtab): New arg objfile. All callers
896 updated.
897
898 2014-11-18 Doug Evans <xdje42@gmail.com>
899
900 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
901 updated.
902
903 2014-11-18 Doug Evans <xdje42@gmail.com>
904
905 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
906 symtab.dirname updated to use it.
907
908 2014-11-18 Doug Evans <xdje42@gmail.com>
909
910 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
911 symtab.objfile updated to use it.
912
913 2014-11-18 Doug Evans <xdje42@gmail.com>
914
915 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
916
917 2014-11-18 Doug Evans <xdje42@gmail.com>
918
919 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
920 SYMBOL_OBJFILE.
921 * findvar.c (default_read_var_value): Ditto.
922 * jv-lang.c (add_class_symtab_symbol): Ditto.
923 * parse.c (operator_check_standard): Ditto.
924 * printcmd.c (address_info): Ditto.
925 * symtab.c (fixup_symbol_section): Ditto.
926 (skip_prologue_sal): Ditto.
927 * tracepoint.c (scope_info): Ditto.
928 * valops.c (find_function_in_inferior): Ditto.
929 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
930 * python/py-symbol.c (set_symbol): Ditto.
931
932 2014-11-18 Doug Evans <xdje42@gmail.com>
933
934 * buildsym.c (main_subfile): New static global.
935 (free_subfiles_list): New function.
936 (start_symtab): Set main_subfile.
937 (restart_symtab): Replace init of subfiles, current_subfile with
938 call to free_subfiles_list.
939 (watch_main_source_file_lossage): Use main_subfile.
940 (reset_symtab_globals): Replace init of current_subfile with call
941 to free_subfiles_list.
942 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
943 functions, split out from ...
944 (end_symtab_from_static_block): ... here. Rewrite to call them.
945
946 2014-11-18 Doug Evans <xdje42@gmail.com>
947
948 The result of symtab expansion is always a primary symtab.
949 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
950 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
951 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
952 (psymtab_to_symtab): Add comment and assert.
953 (map_matching_symbols_psymtab): Remove unnecessary test for
954 non-primary symtab.
955
956 2014-11-15 Doug Evans <xdje42@gmail.com>
957
958 PR symtab/17559
959 * symtab.c (find_pc_line_symtab): New function.
960 * symtab.h (find_pc_line_symtab): Declare.
961 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
962 find_pc_symtab.
963 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
964 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
965 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
966 * tui/tui-win.c (make_visible_with_new_height): Ditto.
967 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
968 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
969
970 2014-11-15 Doug Evans <xdje42@gmail.com>
971
972 * symtab.c (expand_symtab_containing_pc): Renamed from
973 find_pc_sect_symtab_via_partial. All callers updated.
974
975 2014-11-15 Yao Qi <yao@codesourcery.com>
976
977 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
978
979 2014-11-14 Joel Brobecker <brobecker@adacore.com>
980
981 * common/common-defs.h: Move <stdarg.h> #include ahead of
982 <stdio.h> #include.
983
984 2014-11-14 Pedro Alves <palves@redhat.com>
985
986 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
987 [!PHONY_ICONV] (gdb_iconv): New function.
988 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
989
990 2014-11-13 Doug Evans <dje@google.com>
991
992 PR symtab/17591
993 * dwarf2read.c (find_slot_in_mapped_hash): Handle
994 "(anonymous namespace)".
995
996 2014-11-13 Doug Evans <dje@google.com>
997
998 * dwarf2read.c (update_enumeration_type_from_children): Avoid
999 infinite loop.
1000
1001 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1002
1003 * NEWS (maint set target-async): Fix typo.
1004
1005 2014-11-12 Pedro Alves <palves@redhat.com>
1006
1007 * infrun.c (enum infwait_states, infwait_state): Delete.
1008
1009 2014-11-12 Pedro Alves <palves@redhat.com>
1010
1011 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1012 Rewrite stepping over a permanent breakpoint.
1013 (thread_still_needs_step_over, proceed): Don't set
1014 stepping_over_breakpoint for permanent breakpoints.
1015 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1016 single-step breakpoints out of the target on hardware step
1017 targets.
1018 (process_event_stop_test): If stepping a permanent breakpoint
1019 doesn't hit the step-resume breakpoint, delete the step-resume
1020 breakpoint.
1021 (switch_back_to_stepped_thread): Also check if the stepped thread
1022 has advanced already on hardware step targets.
1023 (currently_stepping): Return true if the thread stepped a
1024 breakpoint.
1025
1026 2014-11-12 Pedro Alves <palves@redhat.com>
1027
1028 Mark locations as permanent, not the whole breakpoint.
1029 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1030 (mark_breakpoints_out): Don't mark permanent breakpoints as
1031 uninserted.
1032 (breakpoint_init_inferior): Use mark_breakpoints_out.
1033 (breakpoint_here_p): Adjust.
1034 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1035 of permanent breakpoints.
1036 (make_breakpoint_permanent): Mark each location as permanent,
1037 instead of marking the breakpoint.
1038 (add_location_to_breakpoint): If the location is permanent, mark
1039 it as such, and as inserted.
1040 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1041 (bp_location_compare, update_global_location_list): Adjust.
1042 (update_breakpoint_locations): Don't make the breakpoint permanent
1043 here.
1044 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1045 breakpoints.
1046 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1047 (struct bp_location) <permanent>: New field.
1048 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1049 reference to bp_permanent.
1050
1051 2014-11-12 Pedro Alves <palves@redhat.com>
1052
1053 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1054 * arch-utils.h (default_skip_permanent_breakpoint): New
1055 declaration.
1056 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1057 Install default_skip_permanent_breakpoint as default method.
1058 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1059 (i386_gdbarch_init): Don't install it.
1060 * infrun.c (resume): Assume there's always a
1061 gdbarch_skip_permanent_breakpoint implementation.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1063
1064 2014-11-11 Daniel Colascione <dancol@dancol.org>
1065
1066 Warn about cross-PID-namespace debugging.
1067 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1068 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1069 * linux-thread-db.c (check_pid_namespace_match): New function.
1070 (thread_db_inferior_created): Call it.
1071
1072 2014-11-10 Doug Evans <xdje42@gmail.com>
1073
1074 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1075 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1076
1077 2014-11-10 Doug Evans <xdje42@gmail.com>
1078
1079 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1080
1081 2014-11-10 Doug Evans <xdje42@gmail.com>
1082
1083 PR symtab/17564
1084 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1085 (lookup_static_symbol): Move definition to new location and rewrite.
1086 (lookup_symbol_in_objfile): New function.
1087 (lookup_symbol_global_iterator_cb): Call it.
1088
1089 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1090
1091 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1092
1093 2014-11-07 Pedro Alves <palves@redhat.com>
1094
1095 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1096 check if we did a "nexti" inside a prologue.
1097 * symtab.c (in_prologue): Delete function.
1098 * symtab.h (in_prologue): Delete declaration.
1099
1100 2014-11-06 Doug Evans <xdje42@gmail.com>
1101
1102 * symtab.h (lookup_global_symbol): Improve function comment.
1103
1104 2014-11-06 Doug Evans <xdje42@gmail.com>
1105
1106 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1107 All callers updated.
1108 * symtab.h (lookup_global_symbol): Update decl.
1109 (lookup_static_symbol): Move decl to better location.
1110
1111 2014-11-06 Doug Evans <xdje42@gmail.com>
1112
1113 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1114
1115 2014-11-06 Doug Evans <xdje42@gmail.com>
1116
1117 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1118 All callers updated.
1119 (lookup_symbol_in_all_objfiles): Renamed from
1120 lookup_symbol_aux_symtabs. All callers updated.
1121 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1122 All callers updated.
1123 (lookup_symbol_in_objfile_symtabs): Renamed from
1124 lookup_symbol_aux_objfile. All callers updated.
1125
1126 2014-11-06 Doug Evans <xdje42@gmail.com>
1127
1128 * symtab.c (lookup_symbol_in_block): Renamed from
1129 lookup_symbol_aux_block. All callers updated.
1130
1131 2014-11-06 Doug Evans <xdje42@gmail.com>
1132
1133 * symtab.c (lookup_static_symbol): Renamed from
1134 lookup_static_symbol_aux. All callers updated.
1135 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1136 All callers updated.
1137
1138 2014-11-06 Doug Evans <xdje42@gmail.com>
1139
1140 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1141 * block.c (block_lookup_symbol): Use it.
1142 * cp-support.c (make_symbol_overload_list_block): Use it.
1143 * symtab.c (iterate_over_symbols): Use it.
1144
1145 2014-11-06 Doug Evans <xdje42@gmail.com>
1146
1147 * symtab.c (lookup_block_symbol): Moved to ...
1148 * block.c (block_lookup_symbol): ... here and renamed.
1149 All callers updated.
1150 * block.h (block_lookup_symbol): Declare.
1151 * symtab.h (lookup_block_symbol): Delete.
1152
1153 2014-11-06 Doug Evans <xdje42@gmail.com>
1154
1155 * ada-lang.c (ada_make_symbol_completion_list): Use
1156 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1157 * symtab.c (lookup_objfile_from_block): Ditto.
1158
1159 2014-11-06 Doug Evans <xdje42@gmail.com>
1160
1161 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1162 TYPE_CODE_STRUCT.
1163
1164 2014-11-06 Doug Evans <xdje42@gmail.com>
1165
1166 * objfiles.c (get_objfile_arch): Constify.
1167 * objfiles.h (get_objfile_arch): Update prototype.
1168 * solib.c (solib_global_lookup): Fetch arch from objfile,
1169 not target_gdbarch.
1170
1171 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1172
1173 * nios2-tdep.c (wild_insn): Delete.
1174 (profiler_insn, irqentry_insn): Delete.
1175 (nios2_match_sequence): Delete.
1176 (nios2_analyze_prologue): Update comments. Remove matching
1177 of obsolete profiler_insn and irqentry_insn sequences.
1178
1179 2014-11-05 Alan Modra <amodra@gmail.com>
1180
1181 * charset.c (convert_between_encodings): Shrink obstack using
1182 obstack_blank_fast.
1183 * minsyms.c (install_minimal_symbols): Likewise.
1184 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1185 to char* before doing pointer arithmetic.
1186
1187 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1188
1189 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1190
1191 2014-11-04 Pedro Alves <palves@redhat.com>
1192
1193 * breakpoint.c (breakpoint_thread_match): Delete function.
1194 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1195
1196 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1197
1198 PR c++/17494
1199 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1200 the method args also under EVAL_SKIP when evaluating method
1201 calls under EVAL_SKIP.
1202
1203 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1204
1205 * dwarf2loc.c (read_pieced_value): Do big endian
1206 processing only if gdb_regnum is not -1.
1207 (write_pieced_value): Ditto.
1208
1209 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1210
1211 * arm-linux-tdep.c (arm_linux_init_abi): Use
1212 info.byte_order_for_code to choose endianity of breakpoint
1213 instructions snippets.
1214
1215 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1216
1217 * arm-tdep.c (extract_arm_insn): Use
1218 gdbarch_byte_order_for_code to read arm instruction.
1219
1220 2014-11-02 Doug Evans <xdje42@gmail.com>
1221
1222 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1223
1224 2014-11-02 Doug Evans <xdje42@gmail.com>
1225
1226 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1227 main_subfile before returning.
1228
1229 2014-10-31 Doug Evans <xdje42@gmail.com>
1230
1231 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1232 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1233
1234 2014-10-31 Doug Evans <xdje42@gmail.com>
1235
1236 * valops.c (value_cast_pointers): Fix whitespace.
1237 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1238 Ditto.
1239
1240 2014-10-30 Doug Evans <dje@google.com>
1241
1242 * NEWS: Mention ability add attributes to gdb.Objfile and
1243 gdb.Progspace objects.
1244 * python/py-objfile.c (objfile_object): New member dict.
1245 (objfpy_dealloc): Py_XDECREF dict.
1246 (objfpy_initialize): Initialize dict.
1247 (objfile_getset): Add __dict__.
1248 (objfile_object_type): Set tp_dictoffset member.
1249 * python/py-progspace.c (progspace_object): New member dict.
1250 (pspy_dealloc): Py_XDECREF dict.
1251 (pspy_initialize): Initialize dict.
1252 (pspace_getset): Add __dict__.
1253 (pspace_object_type): Set tp_dictoffset member.
1254
1255 2014-10-30 Yao Qi <yao@codesourcery.com>
1256
1257 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1258 replace '\\' with '\\\\'.
1259
1260 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1261
1262 GDB 7.8.1 released.
1263
1264 2014-10-29 Pedro Alves <palves@redhat.com>
1265
1266 PR gdb/17408
1267 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1268 instead of assuming a thread with a stepping range is always
1269 stepping.
1270
1271 2014-10-29 Pedro Alves <palves@redhat.com>
1272
1273 PR python/17372
1274 * event-top.c (change_line_handler): Call
1275 gdb_rl_callback_handler_remove instead of
1276 rl_callback_handler_remove.
1277 (callback_handler_installed): New global.
1278 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1279 (gdb_rl_callback_handler_reinstall): New functions.
1280 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1281 gdb_rl_callback_handler_install instead of
1282 rl_callback_handler_remove and rl_callback_handler_install.
1283 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1284 instead of rl_callback_handler_remove.
1285 * event-top.h (gdb_rl_callback_handler_remove)
1286 (gdb_rl_callback_handler_install)
1287 (gdb_rl_callback_handler_reinstall): New declarations.
1288 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1289 cleanup function.
1290 (fetch_inferior_event): Install it.
1291 * top.c (gdb_readline_wrapper_line) Call
1292 gdb_rl_callback_handler_remove instead of
1293 rl_callback_handler_remove.
1294 (gdb_readline_wrapper_cleanup): Don't call
1295 rl_callback_handler_install.
1296
1297 2014-10-29 Pedro Alves <palves@redhat.com>
1298
1299 * event-top.c (command_line_handler): Clear the first byte of
1300 linebuffer, when it is first allocated.
1301
1302 2014-10-29 Pedro Alves <palves@redhat.com>
1303
1304 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1305 TRY_CATCH.
1306
1307 2014-10-29 Pedro Alves <palves@redhat.com>
1308
1309 PR tui/16138
1310 PR tui/17519
1311 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1312 (tui_allowed_p): Delete function.
1313 * tui/tui.c: Include "interps.h".
1314 (tui_enable): Don't use tui_allowed_p. Error out here with
1315 detailed error messages if the TUI is the top level interpreter,
1316 or if output is not a terminal. Use newterm instead of initscr,
1317 and error out if initializing the terminal fails. Also error out if
1318 the terminal doesn't support cursor addressing.
1319 * tui/tui.h (tui_allowed_p): Delete declaration.
1320
1321 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1322
1323 * arm-tdep.c (arm_skip_stack_protector): Return early if
1324 address loaded by first "ldr" instruction does not have
1325 a corresponding minimal symbol. Update comment.
1326
1327 2014-10-29 Yao Qi <yao@codesourcery.com>
1328
1329 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1330 loaded address correctly of ldr instruction.
1331
1332 2014-10-28 Pedro Alves <palves@redhat.com>
1333
1334 PR gdb/12623
1335 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1336 field.
1337 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1338 thread's stepped_breakpoint field. Skip if reverse debugging.
1339 Add comment.
1340 (init_thread_stepping_state, handle_signal_stop): Clear the
1341 thread's stepped_breakpoint field.
1342
1343 2014-10-27 Pedro Alves <palves@redhat.com>
1344
1345 * remote.c (remote_thread_alive): New, factored out from ...
1346 (remote_thread_alive): ... this.
1347 (remote_update_thread_list): Bail out before deleting threads if
1348 the target returned an empty list, and, the current thread has a
1349 magic/fake ptid.
1350
1351 2014-10-27 Pedro Alves <palves@redhat.com>
1352
1353 * infrun.c (handle_signal_stop): Also skip handlers when a random
1354 signal arrives while handling a "stepi" or a "nexti". Set the
1355 thread's 'step_after_step_resume_breakpoint' flag.
1356
1357 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1358
1359 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1360 (arm_record_ld_st_imm_offset): Reimplement to cover all
1361 load/store cases for ARM opcode 010.
1362 (arm_record_ld_st_multiple): Reimplement to cover all
1363 load/store cases for ARM opcode 100.
1364
1365 2014-10-26 Doug Evans <xdje42@gmail.com>
1366
1367 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1368
1369 2014-10-26 Doug Evans <xdje42@gmail.com>
1370
1371 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1372 parameter "kind" to "block_index".
1373 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1374 "block_index".
1375 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1376
1377 2014-10-26 Doug Evans <xdje42@gmail.com>
1378
1379 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1380
1381 2014-10-26 Doug Evans <xdje42@gmail.com>
1382
1383 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1384 obstack_alloc.
1385
1386 2014-10-26 Doug Evans <xdje42@gmail.com>
1387
1388 * parser-defs.h (block_found): Move decl from here ...
1389 * symtab.h (block_found): ... to here.
1390
1391 2014-10-26 Doug Evans <xdje42@gmail.com>
1392
1393 * symtab.h (struct field_of_this_result): Fix typo in comment.
1394 (lookup_symbol_in_language): Move function comment here.
1395 (lookup_symbol): Improve function comment.
1396 (basic_lookup_symbol_nonlocal): Ditto.
1397 (lookup_symbol_static, lookup_symbol_global): Ditto.
1398 (lookup_symbol_aux_block): Ditto.
1399 (lookup_language_this): Add function comment.
1400 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1401 function comment.
1402 (lookup_block_symbol): Improve function comment.
1403 (lookup_struct): Fix capitalization in function comment.
1404 (lookup_transparent_type): Add function comment.
1405 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1406 Improve function comment.
1407 (lookup_objfile_from_block): Add function comment.
1408 * symtab.c (lookup_symbol_in_language): Update function comment.
1409 (lookup_symbol, lookup_language_this): Ditto.
1410 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1411 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1412 (basic_lookup_symbol_nonlocal): Ditto.
1413 (lookup_symbol_static, lookup_symbol_global): Ditto.
1414 (lookup_transparent_type, lookup_block_symbol): Ditto.
1415
1416 2014-10-25 Doug Evans <xdje42@gmail.com>
1417
1418 * symtab.c (types_info): Delete forward decl.
1419 (functions_info, variables_info, sources_info): Ditto.
1420 (_initialize_symtab): Rewrite forward decl to use
1421 initialize_file_ftype.
1422
1423 2014-10-25 Doug Evans <xdje42@gmail.com>
1424
1425 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1426
1427 2014-10-25 Doug Evans <xdje42@gmail.com>
1428
1429 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1430 of local var child_die.
1431
1432 2014-10-24 Don Breazeal <donb@codesourcery.com>
1433
1434 * infrun.c (follow_fork_inferior): Update fork message printing
1435 to use target_terminal_ours_for_output instead of
1436 target_terminal_ours, to use _() for all format strings, to print
1437 "vfork" instead of "fork" for vforks, and to add a detach message.
1438 (handle_vfork_child_exec_or_exit): Update message printing to use
1439 target_terminal_ours_for_output instead of target_terminal_ours, to
1440 use _() for all format strings, and to fix some formatting.
1441
1442 2014-10-24 Pedro Alves <palves@redhat.com>
1443
1444 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1445 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1446 * config/vax/vax.mh: Delete.
1447 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1448 obsolete configurations section.
1449 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1450 * vax-nat.c: Delete file.
1451
1452 2014-10-24 Pedro Alves <palves@redhat.com>
1453
1454 * NEWS (Removed targets): Add OS/arch column.
1455
1456 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1457
1458 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1459 on the arg type of a constructor only if it is of reference type.
1460
1461 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1462
1463 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1464 accessors and constants from nios2 opcodes update.
1465 (nios2_get_next_pc): Likewise.
1466
1467 2014-10-19 Doug Evans <xdje42@gmail.com>
1468
1469 * gdbthread.h (set_running): Fix comment.
1470 (set_executing, finish_thread_state): Fix comment.
1471
1472 2014-10-18 Doug Evans <xdje42@gmail.com>
1473
1474 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1475
1476 2014-10-17 Doug Evans <dje@google.com>
1477
1478 * NEWS: Mention new event gdb.clear_objfiles.
1479 * python/py-event.h (emit_clear_objfiles_event): Clear
1480 * python/py-events.h (events_object): New member clear_objfiles.
1481 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1482 event.
1483 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1484 emit clear_objfiles event.
1485 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1486 function.
1487 (emit_clear_objfiles_event): New function.
1488 (clear_objfiles): New event.
1489 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1490 Declare.
1491 * python/python.c (_initialize_python): Call
1492 gdbpy_initialize_clear_objfiles_event.
1493
1494 2014-10-17 Doug Evans <dje@google.com>
1495
1496 * NEWS: Mention new gdb.Objfile.progspace attribute.
1497 * python/py-objfile.c (objfpy_get_progspace): New function.
1498 (objfile_getset): New entry for "progspace".
1499
1500 2014-10-17 Pedro Alves <palves@redhat.com>
1501
1502 PR gdb/17471
1503 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1504 returns a copy of the input.
1505 (run_command_1, continue_command, step_1, jump_command)
1506 (signal_command, until_command, advance_command, finish_command)
1507 (attach_command): Adjust and install a cleanup to free the
1508 stripped args.
1509
1510 2014-10-17 Pedro Alves <palves@redhat.com>
1511
1512 PR gdb/17300
1513 * infcmd.c (continue_1): If continuing all threads in the
1514 foreground, make sure the inferior's terminal settings are put in
1515 effect.
1516
1517 2014-10-17 Pedro Alves <palves@redhat.com>
1518
1519 PR gdb/17472
1520 * annotate.c (annotate_breakpoints_invalid): Use
1521 target_terminal_our_for_output instead of target_terminal_ours.
1522 Give back the terminal to the target.
1523 (annotate_frames_invalid): Likewise.
1524
1525 2014-10-17 Pedro Alves <palves@redhat.com>
1526
1527 * target.c (enum terminal_state): New enum.
1528 (terminal_state): New global.
1529 (target_terminal_init): New function.
1530 (target_terminal_inferior): Skip if inferior already owns the
1531 terminal.
1532 (target_terminal_ours, target_terminal_ours_for_output): New
1533 functions.
1534 * target.h (target_terminal_init): Convert to function prototype.
1535 (target_terminal_ours_for_output): Convert to function prototype
1536 and tweak comment.
1537 (target_terminal_ours): Convert to function prototype and tweak
1538 comment.
1539 * windows-nat.c (do_initial_windows_stuff): Call
1540 target_terminal_init instead of child_terminal_init_with_pgrp.
1541
1542 2014-10-17 Pedro Alves <palves@redhat.com>
1543
1544 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1545 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1546 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1547 solib-osf.c.
1548 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1549 * ada-lang.h [__alpha__ && __osf__]
1550 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1551 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1552 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1553 GDB_OSABI_OSF1.
1554 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1555 files.
1556 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1557 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1558 * configure: Regenerate.
1559 * configure.ac: Remove references to osf.
1560 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1561 section. Remove all other references to osf.
1562 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1563 Remove all other references to osf.
1564 * dec-thread.c: Delete file.
1565 * defs.h (GDB_OSABI_OSF1): Delete.
1566 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1567 defined.
1568 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1569 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1570 Delete code.
1571 (unconditionally_kill_inferior)
1572 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1573 * solib-osf.c: Delete file.
1574
1575 2014-10-17 Pedro Alves <palves@redhat.com>
1576
1577 * remote.c (clear_threads_listing_context): Move higher up, out of
1578 the HAVE_LIBEXPAT guard.
1579
1580 2014-10-16 Tristan Gingold <gingold@adacore.com>
1581
1582 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1583 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1584 on amd64.
1585
1586 2014-10-15 Pedro Alves <palves@redhat.com>
1587
1588 * dec-thread.c (dec_thread_count_gdb_threads)
1589 (dec_thread_add_gdb_thread): Delete.
1590 (dec_thread_update_thread_list): Delete.
1591 (dec_thread_find_new_threads): Rename to ...
1592 (dec_thread_update_thread_list): ... this. Delete GDB-size
1593 threads that are no longer found in dec_thread_list.
1594 (resync_thread_list): Delete.
1595 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1596 resync_thread_list.
1597
1598 2014-10-15 Pedro Alves <palves@redhat.com>
1599
1600 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1601 * remote.c (remote_update_thread_list): Skip calling prune_threads
1602 if any thread listing method is supported, and instead walk over
1603 the set of remote threads listed, deleting those that are not
1604 found in GDB's thread list.
1605
1606 2014-10-15 Pedro Alves <palves@redhat.com>
1607
1608 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1609 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1610 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1611 (bsd_uthread_target): Adjust.
1612 * corelow.c (core_open): Adjust.
1613 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1614 (dec_thread_update_thread_list): New function.
1615 (init_dec_thread_ops): Adjust.
1616 * gdbthread.h (prune_threads): New declaration.
1617 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1618 (thread_db_update_thread_list): ... this. Call prune_threads.
1619 (init_thread_db_ops): Adjust.
1620 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1621 (procfs_update_thread_list): ... this. Call prune_threads.
1622 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1623 Adjust.
1624 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1625 (obsd_update_thread_list): ... this. Call prune_threads.
1626 (obsd_add_target): Adjust.
1627 * procfs.c (procfs_target): Adjust.
1628 (procfs_notice_thread): Update comment.
1629 (procfs_find_new_threads): Rename to ...
1630 (procfs_update_thread_list): ... this. Call prune_threads.
1631 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1632 comment.
1633 (ravenscar_wait): Adjust.
1634 (ravenscar_find_new_threads): Rename to ...
1635 (ravenscar_update_thread_list): ... this. Call prune_threads.
1636 (init_ravenscar_thread_ops): Adjust.
1637 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1638 (record_btrace_update_thread_list): ... this. Adjust comment.
1639 (init_record_btrace_ops): Adjust.
1640 * remote.c (remote_threads_info): Rename to ...
1641 (remote_update_thread_list): ... this. Call prune_threads.
1642 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1643 Adjust.
1644 * sol-thread.c (check_for_thread_db): Adjust.
1645 (sol_find_new_threads_callback): Rename to ...
1646 (sol_update_thread_list_callback): ... this.
1647 (sol_find_new_threads): Rename to ...
1648 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1649 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1650 * target-delegates.c: Regenerate.
1651 * target.c (target_find_new_threads): Rename to ...
1652 (target_update_thread_list): ... this.
1653 * target.h (struct target_ops): Rename to_find_new_threads field
1654 to to_update_thread_list.
1655 (target_find_new_threads): Rename to ...
1656 (target_update_thread_list): ... this.
1657 * thread.c (prune_threads): Make extern.
1658 (update_thread_list): Adjust.
1659
1660 2014-10-15 Pedro Alves <palves@redhat.com>
1661
1662 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1663 Add describing comment. Return -1 if the qL packet is not
1664 supported.
1665 (struct thread_item, thread_item_t): Move higher up in
1666 the file. Add comments.
1667 (struct threads_parsing_context): Move higher up in
1668 the file, add comments, and remote to ...
1669 (struct threads_listing_context): ... this.
1670 (remote_newthread_step): Don't add the thread to GDB's thread
1671 database here. Instead push it to the thread_listing_context
1672 list.
1673 (remote_find_new_threads): Rename to ...
1674 (remote_get_threads_with_ql): ... this. Add target_ops and
1675 targets_listing_context parameters. Pass down context.
1676 (start_thread): Adjust.
1677 (clear_threads_parsing_context): Rename to ...
1678 (clear_threads_listing_context): ... this.
1679 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1680 remote_threads_info.
1681 (remote_get_threads_with_qthreadinfo): Ditto.
1682 (remote_threads_info): Reimplement.
1683
1684 2014-10-15 Pedro Alves <palves@redhat.com>
1685
1686 * infrun.c (resume): Don't force displaced-stepping for all
1687 single-steps on software single-stepping archs.
1688
1689 2014-10-15 Pedro Alves <palves@redhat.com>
1690
1691 * breakpoint.c (single_step_breakpoints): Delete global.
1692 (insert_single_step_breakpoint): Adjust to store the breakpoint
1693 pointer in the current thread.
1694 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1695 (cancel_single_step_breakpoints): Delete functions.
1696 (breakpoint_has_location_inserted_here): Make extern.
1697 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1698 breakpoint list.
1699 * breakpoint.h (breakpoint_has_location_inserted_here): New
1700 declaration.
1701 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1702 (cancel_single_step_breakpoints): Remove declarations.
1703 * gdbthread.h (struct thread_control_state)
1704 <single_step_breakpoints>: New field.
1705 (delete_single_step_breakpoints)
1706 (thread_has_single_step_breakpoints_set)
1707 (thread_has_single_step_breakpoint_here): New declarations.
1708 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1709 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1710 (singlestep_pc): Delete globals.
1711 (infrun_thread_ptid_changed): Remove references to removed
1712 globals.
1713 (resume_cleanups): Delete the current thread's single-step
1714 breakpoints.
1715 (maybe_software_singlestep): Remove references to removed globals.
1716 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1717 delete_single_step_breakpoints.
1718 (init_wait_for_inferior): Remove references to removed globals.
1719 (delete_thread_infrun_breakpoints): Delete the thread's
1720 single-step breakpoints too.
1721 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1722 single-step breakpoints here.
1723 (delete_stopped_threads_single_step_breakpoints): New function.
1724 (adjust_pc_after_break): Adjust to use
1725 thread_has_single_step_breakpoints_set.
1726 (handle_inferior_event): Remove references to removed globals.
1727 Use delete_stopped_threads_single_step_breakpoints.
1728 (handle_signal_stop): Adjust to per-thread single-step
1729 breakpoints. Swap test order to do cheaper tests first.
1730 (switch_back_to_stepped_thread): Extend debug output. Remove
1731 references to removed globals.
1732 * record-full.c (record_full_wait_1): Adjust to per-thread
1733 single-step breakpoints.
1734 * thread.c (delete_single_step_breakpoints)
1735 (thread_has_single_step_breakpoints_set)
1736 (thread_has_single_step_breakpoint_here): New functions.
1737 (clear_thread_inferior_resources): Also delete the thread's
1738 single-step breakpoints.
1739
1740 2014-10-15 Pedro Alves <palves@redhat.com>
1741
1742 * thread.c (delete_thread_breakpoint): New function.
1743 (delete_step_resume_breakpoint)
1744 (delete_exception_resume_breakpoint): Use it.
1745 (delete_at_next_stop): New function.
1746 (clear_thread_inferior_resources): Use delete_at_next_stop.
1747
1748 2014-10-15 Pedro Alves <palves@redhat.com>
1749
1750 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1751 (breakpoint_inserted_here_p): ... here. Remove special case for
1752 software single-step breakpoints.
1753 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1754 (software_breakpoint_inserted_here_p): ... here. Remove special
1755 case for software single-step breakpoints.
1756 (bp_target_info_copy_insertion_state)
1757 (deprecated_insert_raw_breakpoint)
1758 (deprecated_remove_raw_breakpoint): Delete functions.
1759 * breakpoint.h (deprecated_insert_raw_breakpoint)
1760 (deprecated_remove_raw_breakpoint): Remove declarations.
1761
1762 2014-10-15 Pedro Alves <palves@redhat.com>
1763
1764 PR breakpoints/9649
1765 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1766 Delete array globals.
1767 (single_step_breakpoints): New global.
1768 (breakpoint_xfer_memory): Remove special handling for single-step
1769 breakpoints.
1770 (update_breakpoints_after_exec): Delete bp_single_step
1771 breakpoints.
1772 (detach_breakpoints): Remove special handling for single-step
1773 breakpoints.
1774 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1775 (bpstat_stop_status): Add comment.
1776 (bpstat_what, bptype_string, print_one_breakpoint_location)
1777 (adjust_breakpoint_address, init_bp_location): Handle
1778 bp_single_step.
1779 (new_single_step_breakpoint): New function.
1780 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1781 handling for single-step breakpoints.
1782 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1783 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1784 Rewrite.
1785 (detach_single_step_breakpoints, find_single_step_breakpoint):
1786 Delete functions.
1787 (breakpoint_has_location_inserted_here): New function.
1788 (single_step_breakpoint_inserted_here_p): Rewrite.
1789 * breakpoint.h: Remove FIXME.
1790 (enum bptype) <bp_single_step>: New enum value.
1791 (insert_single_step_breakpoint): Update comment.
1792 * infrun.c (resume_cleanups)
1793 (delete_step_thread_step_resume_breakpoint): Remove single-step
1794 breakpoints.
1795 (fetch_inferior_event): Install a cleanup that removes infrun
1796 breakpoints.
1797 (switch_back_to_stepped_thread) <expect thread advanced also>:
1798 Clear step-over info.
1799
1800 2014-10-15 Pedro Alves <palves@redhat.com>
1801
1802 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1803 (delete_thread_infrun_breakpoints): New function, with parts
1804 salvaged from delete_step_resume_breakpoint_callback.
1805 (delete_step_thread_step_resume_breakpoint): Delete.
1806 (for_each_just_stopped_thread_callback_func): New typedef.
1807 (for_each_just_stopped_thread): New function.
1808 (delete_just_stopped_threads_infrun_breakpoints): New function.
1809 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1810 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1811 ... this. Adjust.
1812 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1813
1814 2014-10-15 Pedro Alves <palves@redhat.com>
1815
1816 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1817 trying to step past a non-steppable watchpoint.
1818 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1819 field.
1820 * infrun.c (struct step_over_info): Add new field
1821 'nonsteppable_watchpoint_p' and adjust comments.
1822 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1823 Adjust.
1824 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1825 (stepping_past_nonsteppable_watchpoint): New function.
1826 (step_over_info_valid_p): Also return true if stepping past a
1827 nonsteppable watchpoint.
1828 (proceed): Adjust call to set_step_over_info. Remove reference to
1829 init_infwait_state.
1830 (init_wait_for_inferior): Remove reference to init_infwait_state.
1831 (waiton_ptid): Delete global.
1832 (struct execution_control_state)
1833 <stepped_after_stopped_by_watchpoint>: Delete field.
1834 (wait_for_inferior, fetch_inferior_event): Always pass
1835 minus_one_ptid to target_wait.
1836 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1837 field.
1838 (init_infwait_state): Delete function.
1839 (handle_inferior_event): Remove infwait_state handling.
1840 (handle_signal_stop) <watchpoints handling>: Adjust after
1841 stepped_after_stopped_by_watchpoint removal. Don't remove
1842 breakpoints here nor set infwait_state. Set the thread's
1843 stepping_over_watchpoint flag, and call keep_going instead.
1844 (keep_going): Handle stepping_over_watchpoint. Adjust
1845 set_step_over_info calls.
1846 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1847 function.
1848
1849 2014-10-15 Pedro Alves <palves@redhat.com>
1850
1851 * infrun.c (step_over_info_valid_p): New function.
1852 (resume): Use step_over_info_valid_p instead of checking the
1853 threads's trap_expected flag.
1854
1855 2014-10-15 Doug Evans <dje@google.com>
1856 Walfred Tedeschi <walfred.tedeschi@intel.com>
1857
1858 PR python/17364
1859 * python/lib/gdb/__init__.py (packages): Add "printer".
1860 * python/lib/gdb/command/bound_registers.py: Moved to ...
1861 * python/lib/gdb/printer/bound_registers.py: ... here.
1862 Add printer to global set of builtin printers. Rename printer from
1863 "bound" to "mpx_bound128".
1864 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1865 registered as global "builtin" printer.
1866 (add_builtin_pretty_printer): New function.
1867 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1868 gdb/printer/__init__.py.
1869
1870 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1871
1872 * Makefile.in (SFILES): Remove d-support.c.
1873 (COMMON_OBS): Remove d-support.o.
1874 * d-lang.h (d_parse_symbol): Remove declaration.
1875 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1876 * d-support.c: Remove file.
1877
1878 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1879
1880 * gdb/infrun.c (process_event_stop_test): Apply
1881 gdbarch_addr_bits_remove to longjmp resume address.
1882
1883 2014-10-15 Pedro Alves <palves@redhat.com>
1884
1885 * regformats/microblaze.dat: Delete file.
1886
1887 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1888
1889 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1890 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1891
1892 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1893
1894 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1895 as non-trivial.
1896
1897 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1898
1899 PR c++/13403
1900 PR c++/15154
1901 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1902 with qualified args.
1903
1904 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1907 of the case where the second operand is a pointer.
1908 <BINOP_SUB>: Likewise.
1909
1910 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1911
1912 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1913 only if it is not NULL.
1914 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1915 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1916 (struct probe_ops) <clear_semaphore>: Likewise.
1917 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1918 not NULL.
1919 (stop_tracing): Likewise, for clear_semaphore.
1920
1921 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1922
1923 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1924 using language_c, instead of current_language.
1925
1926 2014-10-13 Doug Evans <dje@google.com>
1927
1928 * python/py-objfile.c (objfpy_initialize): New function.
1929 (objfpy_new, objfile_to_objfile_object): Call it.
1930 * python/py-progspace.c (pspy_initialize): New function.
1931 (pspy_new, pspace_to_pspace_object): Call it.
1932
1933 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1934 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 Fix "save breakpoints" for "catch" command.
1937 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1938 newline.
1939
1940 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1941
1942 Fix "save breakpoints" for "disable $bpnum" command.
1943 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1944
1945 2014-10-10 Pedro Alves <palves@redhat.com>
1946
1947 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1948 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1949 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1950 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1951 and been removed.
1952 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1953 * configure.ac: Remove references to IRIX.
1954 * configure.host: Add *-*-irix* to the obsolete hosts section.
1955 Remove all other references to irix.
1956 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1957 Delete files.
1958
1959 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1960
1961 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1962 isn't valid, release the tdesc arch data and return NULL.
1963
1964 2014-10-10 Pedro Alves <palves@redhat.com>
1965
1966 * linux-tdep.c: Include observer.h.
1967 (linux_inferior_data): New global.
1968 (struct linux_info): New structure.
1969 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1970 (get_linux_inferior_data): New functions.
1971 (linux_vsyscall_range): Rename to ...
1972 (linux_vsyscall_range_raw): ... this.
1973 (linux_vsyscall_range): New function; handles caching.
1974 (_initialize_linux_tdep): Register linux_inferior_data. Install
1975 inferior_exit and inferior_appeared observers.
1976
1977 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Pedro Alves <palves@redhat.com>
1979
1980 PR symtab/14466
1981 * solib-svr4.c (svr4_read_so_list): Rename to ...
1982 (svr4_current_sos_1): ... this and change the function comment.
1983 (svr4_current_sos): New function.
1984
1985 2014-10-10 Pedro Alves <palves@redhat.com>
1986
1987 * arch-utils.c (default_vsyscall_range): New function.
1988 * arch-utils.h (default_vsyscall_range): New declaration.
1989 * gdbarch.sh (vsyscall_range): New hook.
1990 * gdbarch.h, gdbarch.c: Regenerate.
1991 * linux-tdep.c (linux_vsyscall_range): New function.
1992 (linux_init_abi): Install linux_vsyscall_range as
1993 vsyscall_range gdbarch hook.
1994 * memrange.c (address_in_mem_range): New function.
1995 * memrange.h (address_in_mem_range): New declaration.
1996 * symfile-mem.c (find_vdso_size): Delete function.
1997 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1998
1999 2014-10-10 Pedro Alves <palves@redhat.com>
2000
2001 * infrun.c (normal_stop): Fix typo in comment.
2002
2003 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2004
2005 PR tdep/9390
2006 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2007 typo when using logical AND to determine instruction type.
2008
2009 2014-10-09 Yao Qi <yao@codesourcery.com>
2010
2011 * infrun.c (handle_signal_stop): Remove local variable
2012 'printed'.
2013
2014 2014-10-08 Stan Shebs <stan@codesourcery.com>
2015
2016 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2017
2018 2014-10-08 Gary Benson <gbenson@redhat.com>
2019
2020 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2021
2022 2014-10-08 Gary Benson <gbenson@redhat.com>
2023
2024 * common/common-defs.h: Include common-exceptions.h.
2025 * exceptions.h: Do not include common-exceptions.h.
2026
2027 2014-10-08 Gary Benson <gbenson@redhat.com>
2028
2029 * common/common-defs.h: Include cleanups.h.
2030 * common/common-exceptions.c: Do not include cleanups.h.
2031 * utils.h: Likewise.
2032
2033 2014-10-08 Gary Benson <gbenson@redhat.com>
2034
2035 * ada-lang.c: Do not include exceptions.h.
2036 * ada-valprint.c: Likewise.
2037 * amd64-tdep.c: Likewise.
2038 * auto-load.c: Likewise.
2039 * block.c: Likewise.
2040 * break-catch-throw.c: Likewise.
2041 * breakpoint.c: Likewise.
2042 * btrace.c: Likewise.
2043 * c-lang.c: Likewise.
2044 * cli/cli-cmds.c: Likewise.
2045 * cli/cli-interp.c: Likewise.
2046 * cli/cli-script.c: Likewise.
2047 * completer.c: Likewise.
2048 * corefile.c: Likewise.
2049 * corelow.c: Likewise.
2050 * cp-abi.c: Likewise.
2051 * cp-support.c: Likewise.
2052 * cp-valprint.c: Likewise.
2053 * darwin-nat.c: Likewise.
2054 * dwarf2-frame-tailcall.c: Likewise.
2055 * dwarf2-frame.c: Likewise.
2056 * dwarf2loc.c: Likewise.
2057 * dwarf2read.c: Likewise.
2058 * eval.c: Likewise.
2059 * event-loop.c: Likewise.
2060 * event-top.c: Likewise.
2061 * f-valprint.c: Likewise.
2062 * frame-unwind.c: Likewise.
2063 * frame.c: Likewise.
2064 * gdbtypes.c: Likewise.
2065 * gnu-v2-abi.c: Likewise.
2066 * gnu-v3-abi.c: Likewise.
2067 * guile/scm-auto-load.c: Likewise.
2068 * guile/scm-breakpoint.c: Likewise.
2069 * guile/scm-cmd.c: Likewise.
2070 * guile/scm-frame.c: Likewise.
2071 * guile/scm-lazy-string.c: Likewise.
2072 * guile/scm-param.c: Likewise.
2073 * guile/scm-symbol.c: Likewise.
2074 * guile/scm-type.c: Likewise.
2075 * hppa-hpux-tdep.c: Likewise.
2076 * i386-tdep.c: Likewise.
2077 * inf-loop.c: Likewise.
2078 * infcall.c: Likewise.
2079 * infcmd.c: Likewise.
2080 * infrun.c: Likewise.
2081 * interps.c: Likewise.
2082 * interps.h: Likewise.
2083 * jit.c: Likewise.
2084 * linespec.c: Likewise.
2085 * linux-nat.c: Likewise.
2086 * linux-thread-db.c: Likewise.
2087 * m32r-rom.c: Likewise.
2088 * main.c: Likewise.
2089 * memory-map.c: Likewise.
2090 * mi/mi-cmd-break.c: Likewise.
2091 * mi/mi-cmd-stack.c: Likewise.
2092 * mi/mi-interp.c: Likewise.
2093 * mi/mi-main.c: Likewise.
2094 * monitor.c: Likewise.
2095 * nto-procfs.c: Likewise.
2096 * objc-lang.c: Likewise.
2097 * p-valprint.c: Likewise.
2098 * parse.c: Likewise.
2099 * ppc-linux-tdep.c: Likewise.
2100 * printcmd.c: Likewise.
2101 * probe.c: Likewise.
2102 * python/py-auto-load.c: Likewise.
2103 * python/py-breakpoint.c: Likewise.
2104 * python/py-cmd.c: Likewise.
2105 * python/py-finishbreakpoint.c: Likewise.
2106 * python/py-frame.c: Likewise.
2107 * python/py-framefilter.c: Likewise.
2108 * python/py-function.c: Likewise.
2109 * python/py-gdb-readline.c: Likewise.
2110 * python/py-inferior.c: Likewise.
2111 * python/py-infthread.c: Likewise.
2112 * python/py-lazy-string.c: Likewise.
2113 * python/py-linetable.c: Likewise.
2114 * python/py-param.c: Likewise.
2115 * python/py-prettyprint.c: Likewise.
2116 * python/py-symbol.c: Likewise.
2117 * python/py-type.c: Likewise.
2118 * python/py-value.c: Likewise.
2119 * python/python-internal.h: Likewise.
2120 * python/python.c: Likewise.
2121 * record-btrace.c: Likewise.
2122 * record-full.c: Likewise.
2123 * regcache.c: Likewise.
2124 * remote-fileio.c: Likewise.
2125 * remote-mips.c: Likewise.
2126 * remote.c: Likewise.
2127 * rs6000-aix-tdep.c: Likewise.
2128 * rs6000-nat.c: Likewise.
2129 * skip.c: Likewise.
2130 * solib-darwin.c: Likewise.
2131 * solib-dsbt.c: Likewise.
2132 * solib-frv.c: Likewise.
2133 * solib-ia64-hpux.c: Likewise.
2134 * solib-spu.c: Likewise.
2135 * solib-svr4.c: Likewise.
2136 * solib.c: Likewise.
2137 * spu-tdep.c: Likewise.
2138 * stack.c: Likewise.
2139 * stap-probe.c: Likewise.
2140 * symfile-mem.c: Likewise.
2141 * symmisc.c: Likewise.
2142 * target.c: Likewise.
2143 * thread.c: Likewise.
2144 * top.c: Likewise.
2145 * tracepoint.c: Likewise.
2146 * tui/tui-interp.c: Likewise.
2147 * typeprint.c: Likewise.
2148 * utils.c: Likewise.
2149 * valarith.c: Likewise.
2150 * valops.c: Likewise.
2151 * valprint.c: Likewise.
2152 * value.c: Likewise.
2153 * varobj.c: Likewise.
2154 * windows-nat.c: Likewise.
2155 * xml-support.c: Likewise.
2156
2157 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2158
2159 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2160 name implies.
2161 (extended_mips16_next_pc): Update accordingly.
2162
2163 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2164
2165 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2166 function.
2167 (micromips_instruction_is_compact_branch): Likewise.
2168 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2169 or a compact jump, reaching a jump delay slot, or seeing a
2170 second non-prologue instruction.
2171 (micromips_scan_prologue): Also terminate scanning upon seeing a
2172 compact branch or jump, or reaching a branch or jump delay slot.
2173 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2174 or jump delay slot, or seeing a second non-prologue instruction.
2175 (mips32_instruction_has_delay_slot): Retain instruction
2176 examination code only, update arguments accordingly and move
2177 instruction fetch pieces to...
2178 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2179 (micromips_instruction_has_delay_slot): Likewise and to...
2180 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2181 (mips16_instruction_has_delay_slot): Likewise and to...
2182 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2183 (mips_single_step_through_delay): Update accordingly.
2184 (mips_adjust_breakpoint_address): Likewise.
2185
2186 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2187
2188 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2189 !mustbe32 also return 1 for 32-bit instructions.
2190 (mips16_instruction_has_delay_slot): Likewise. Add an
2191 explanatory comment.
2192
2193 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2194
2195 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2196 symbols special.
2197
2198 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2199
2200 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2201 update comments.
2202 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2203 for the breakpoint's address. Don't preinitialize `placed_size'.
2204 (insert_bp_location): Set `reqstd_address' rather than
2205 `placed_address'.
2206 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2207 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2208 address.
2209 (bkpt_remove_location): Likewise.
2210 (deprecated_insert_raw_breakpoint): Likewise.
2211 (deprecated_remove_raw_breakpoint): Likewise.
2212 (find_single_step_breakpoint): Likewise.
2213 * mem-break.c (default_memory_insert_breakpoint): Use
2214 `reqstd_address' for the breakpoint's address. Don't set
2215 `placed_address' or `placed_size' if breakpoint contents couldn't
2216 have been determined.
2217 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2218 the breakpoint's address.
2219 (remote_insert_hw_breakpoint): Likewise. Don't set
2220 `placed_address' or `placed_size' if breakpoint couldn't have been
2221 set.
2222 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2223 `reqstd_address' for the breakpoint's address.
2224 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2225 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2226 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2227 * microblaze-linux-tdep.c
2228 (microblaze_linux_memory_remove_breakpoint): Likewise.
2229 * monitor.c (monitor_insert_breakpoint): Likewise.
2230 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2231 (procfs_insert_hw_breakpoint): Likewise.
2232 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2233 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2234 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2235 * remote-mips.c (mips_insert_breakpoint): Likewise.
2236 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2237
2238 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2239
2240 * valops.c (value_assign): Check for bit field assignments
2241 before calling architecture-specific register value
2242 conversion functions.
2243
2244 2014-10-03 Pierre Muller <muller@sourceware.org>
2245
2246 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2247
2248 2014-10-02 Pedro Alves <palves@redhat.com>
2249
2250 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2251 threads_are_executing.
2252 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2253 describing comment.
2254 * gdbthread.h (threads_are_executing): Declare.
2255 (handle_signal_stop) <random signals>: Don't print about the
2256 signal here if stopping.
2257 (end_stepping_range): Don't notify observers here.
2258 (normal_stop): Update the thread list. If stopped by a random
2259 signal or a stepping range ended, notify observers.
2260 * thread.c (threads_executing): New global.
2261 (init_thread_list): Clear 'threads_executing'.
2262 (set_executing): Set or clear 'threads_executing'.
2263 (threads_are_executing): New function.
2264 (update_threads_executing): New function.
2265 (update_thread_list): Use it.
2266
2267 2014-10-02 Pedro Alves <palves@redhat.com>
2268
2269 PR breakpoints/17431
2270 * breakpoint.c (update_breakpoints_after_exec): Don't create
2271 overlay, longjmp, std terminate nor exception breakpoints here.
2272
2273 2014-10-02 Pedro Alves <palves@redhat.com>
2274
2275 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2276 Adjust comments.
2277 * inferior.c (find_inferior_for_program_space): Give preference to
2278 the current inferior.
2279 * inferior.h (find_inferior_for_program_space): Update comment.
2280 * progspace.c (switch_to_program_space_and_thread): Prefer the
2281 current inferior if it's bound to the program space requested. If
2282 the inferior found doesn't have a PID yet, don't bother looking up
2283 a thread.
2284 * progspace.h (switch_to_program_space_and_thread): Adjust
2285 comment.
2286 * thread.c (any_thread_of_process, any_live_thread_of_process):
2287 Give preference to the current thread.
2288
2289 2014-10-01 Pedro Alves <palves@redhat.com>
2290
2291 * breakpoint.c (insert_bp_location): Error out if inserting a
2292 software breakpoint at a read-only address.
2293 * target.c (memory_xfer_check_region): New function, factored out
2294 from ...
2295 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2296 ULONGEST.
2297 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2298 against the memory region attributes.
2299
2300 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2301
2302 * NEWS: Announce new exit-code field in -list-thread-groups
2303 output.
2304 * inferior.c (exit_inferior_1): Don't clear exit code.
2305 (inferior_appeared): Clear exit code.
2306 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2307 code.
2308
2309 2014-10-01 Pedro Alves <palves@redhat.com>
2310
2311 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2312 GENERATED" along with emacs/vi read-only markers.
2313 * regformats/aarch64.dat: Regenerate.
2314 * regformats/arm-with-iwmmxt.dat: Regenerate.
2315 * regformats/arm-with-neon.dat: Regenerate.
2316 * regformats/arm-with-vfpv2.dat: Regenerate.
2317 * regformats/arm-with-vfpv3.dat: Regenerate.
2318 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2319 * regformats/i386/amd64-avx.dat: Regenerate.
2320 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2321 * regformats/i386/amd64-avx512.dat: Regenerate.
2322 * regformats/i386/amd64-linux.dat: Regenerate.
2323 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2324 * regformats/i386/amd64-mpx.dat: Regenerate.
2325 * regformats/i386/amd64.dat: Regenerate.
2326 * regformats/i386/i386-avx-linux.dat: Regenerate.
2327 * regformats/i386/i386-avx.dat: Regenerate.
2328 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2329 * regformats/i386/i386-avx512.dat: Regenerate.
2330 * regformats/i386/i386-linux.dat: Regenerate.
2331 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2332 * regformats/i386/i386-mmx.dat: Regenerate.
2333 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2334 * regformats/i386/i386-mpx.dat: Regenerate.
2335 * regformats/i386/i386.dat: Regenerate.
2336 * regformats/i386/x32-avx-linux.dat: Regenerate.
2337 * regformats/i386/x32-avx.dat: Regenerate.
2338 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2339 * regformats/i386/x32-avx512.dat: Regenerate.
2340 * regformats/i386/x32-linux.dat: Regenerate.
2341 * regformats/i386/x32.dat: Regenerate.
2342 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2343 * regformats/mips-dsp-linux.dat: Regenerate.
2344 * regformats/mips-linux.dat: Regenerate.
2345 * regformats/mips64-dsp-linux.dat: Regenerate.
2346 * regformats/mips64-linux.dat: Regenerate.
2347 * regformats/nios2-linux.dat: Regenerate.
2348 * regformats/rs6000/powerpc-32.dat: Regenerate.
2349 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2350 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2351 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2352 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2353 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2354 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2355 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2356 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2357 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2358 * regformats/s390-linux32.dat: Regenerate.
2359 * regformats/s390-linux32v1.dat: Regenerate.
2360 * regformats/s390-linux32v2.dat: Regenerate.
2361 * regformats/s390-linux64.dat: Regenerate.
2362 * regformats/s390-linux64v1.dat: Regenerate.
2363 * regformats/s390-linux64v2.dat: Regenerate.
2364 * regformats/s390-te-linux64.dat: Regenerate.
2365 * regformats/s390x-linux64.dat: Regenerate.
2366 * regformats/s390x-linux64v1.dat: Regenerate.
2367 * regformats/s390x-linux64v2.dat: Regenerate.
2368 * regformats/s390x-te-linux64.dat: Regenerate.
2369 * regformats/tic6x-c62x-linux.dat: Regenerate.
2370 * regformats/tic6x-c62x.dat: Regenerate.
2371 * regformats/tic6x-c64x-linux.dat: Regenerate.
2372 * regformats/tic6x-c64x.dat: Regenerate.
2373 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2374 * regformats/tic6x-c64xp.dat: Regenerate.
2375
2376 2014-10-01 Pedro Alves <palves@redhat.com>
2377
2378 * features/Makefile: Update comments.
2379 (XMLTOC): List all xml files we build C files from.
2380 (clean-cfiles): New rule.
2381
2382 2014-10-01 Pedro Alves <palves@redhat.com>
2383
2384 * features/i386/amd64-avx512-linux.c: Regenerate.
2385 * features/i386/amd64-avx512.c: Regenerate.
2386 * features/i386/x32-avx512-linux.c: Regenerate.
2387 * features/i386/x32-avx512.c: Regenerate.
2388
2389 2014-10-01 Pedro Alves <palves@redhat.com>
2390
2391 * features/Makefile (WHICH): Remove arm-with-m,
2392 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2393
2394 2014-10-01 Pedro Alves <palves@redhat.com>
2395
2396 * features/Makefile (clean): New rule.
2397
2398 2014-10-01 Pedro Alves <palves@redhat.com>
2399
2400 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2401 (zmm14h): Add missing end quotes.
2402
2403 2014-10-01 Pedro Alves <palves@redhat.com>
2404
2405 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2406 * features/aarch64.c: Regenerate.
2407
2408 2014-09-30 Don Breazeal <donb@codesourcery.com>
2409
2410 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2411 code so as to work with follow_fork_inferior.
2412 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2413 (inf_ttrace_create_inferior): Remove reference to
2414 inf_ttrace_vfork_ppid.
2415 (inf_ttrace_attach): Ditto.
2416 (inf_ttrace_detach): Ditto.
2417 (inf_ttrace_kill): Use current_inferior instead of
2418 inf_ttrace_vfork_ppid.
2419 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2420 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2421 inferior away from the parent.
2422 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2423 target_follow_fork.
2424 (follow_fork_inferior): New function.
2425 (follow_inferior_reset_breakpoints): Make function static.
2426 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2427 * linux-nat.c (linux_child_follow_fork): Move target-independent
2428 code to infrun.c:follow_fork_inferior.
2429
2430 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431
2432 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2433 * gdbarch.c: Regenerate.
2434 * gdbarch.h: Likewise.
2435 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2436 gdbarch method 'regset_from_core_section'.
2437 (get_core_register_section): Remove handling for the case that
2438 regset == NULL and regset_from_core_section is defined.
2439 (get_core_registers): Drop check for deleted method.
2440 * procfs.c (procfs_do_thread_registers): Adjust comment.
2441
2442 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2443
2444 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2445 (linux_nat_make_corefile_notes): Remove.
2446 (linux_target_install_ops): Do not set target method
2447 'make_corefile_notes'.
2448 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2449 Remove field.
2450 (linux_corefile_thread_callback): Instead of args->collect, call
2451 linux_collect_thread_registers.
2452 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2453 NULL unless there is a regset iterator.
2454 (linux_make_corefile_notes_1): Remove.
2455 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2456 by linux_make_corefile_notes.
2457 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2458
2459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2460
2461 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2462 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2463 Remove.
2464 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2465
2466 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2467
2468 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2469 (xtensa_iterate_over_regset_sections): New.
2470 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2471
2472 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2473
2474 * vax-tdep.c (vax_regset_from_core_section): Remove.
2475 (vax_iterate_over_regset_sections): New.
2476 (vax_gdbarch_init): Adjust gdbarch initialization.
2477
2478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2479
2480 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2481 (tilegx_regset_from_core_section): Remove.
2482 (tilegx_iterate_over_regset_sections): New.
2483 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2484
2485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2486
2487 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2488 (sparc_iterate_over_regset_sections): New.
2489 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2490 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2491 targets.
2492 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2493 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2494 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2495 target method 'make_corefile_notes'.
2496
2497 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2498
2499 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2500 'sizeof_gregset' and 'sizeof_fpregset'.
2501 * sh-tdep.c (sh_regset_from_core_section): Remove.
2502 (sh_iterate_over_regset_sections): New.
2503 (sh_gdbarch_init): Adjust gdbarch initialization.
2504 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2505 sizeof_fpregset.
2506 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2507 'sizeof_gregset'.
2508
2509 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2510
2511 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2512 (score7_linux_iterate_over_regset_sections): New.
2513 (score_gdbarch_init): Adjust gdbarch initialization.
2514
2515 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2516
2517 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2518 FreeBSD targets.
2519 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2520 method 'make_corefile_notes'.
2521 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2522 (ppcfbsd_regset_from_core_section): Remove.
2523 (ppcfbsd_iterate_over_regset_sections): New.
2524 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2525 initialization.
2526 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2527 (ppcnbsd_iterate_over_regset_sections): New.
2528 (ppcnbsd_init_abi): Adjust.
2529 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2530 (ppcobsd_iterate_over_regset_sections): New.
2531 (ppcobsd_init_abi): Adjust.
2532 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2533 (rs6000_aix_iterate_over_regset_sections): New.
2534 (rs6000_aix_init_osabi): Adjust.
2535
2536 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2537
2538 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2539 (nios2_regset_from_core_section): Remove.
2540 (nios2_iterate_over_regset_sections): New.
2541 (nios2_linux_init_abi): Adjust gdbarch initialization.
2542
2543 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2544
2545 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2546 (am33_iterate_over_regset_sections): New.
2547 (am33_linux_init_osabi): Adjust gdbarch initialization.
2548
2549 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2550
2551 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2552 (mips_linux_iterate_over_regset_sections): New.
2553 (mips_linux_init_abi): Adjust gdbarch initialization.
2554 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2555 (mips64obsd_iterate_over_regset_sections): New.
2556 (mips64obsd_init_abi): Adjust.
2557 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2558 (mipsnbsd_iterate_over_regset_sections): New.
2559 (mipsnbsd_init_abi): Adjust.
2560
2561 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2562
2563 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2564 (m88k_iterate_over_regset_sections): New.
2565 (m88k_gdbarch_init): Adjust gdbarch initialization.
2566
2567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2568
2569 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2570 (ia64_linux_iterate_over_regset_sections): New.
2571 (ia64_linux_init_abi): Adjust gdbarch initialization.
2572
2573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2574
2575 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2576 (m68kbsd_iterate_over_regset_sections): New.
2577 (m68kbsd_init_abi): Adjust gdbarch initialization.
2578 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2579 (m68k_linux_iterate_over_regset_sections): New.
2580 (m68k_linux_init_abi): Adjust gdbarch initialization.
2581
2582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2583
2584 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2585 (m32r_linux_regset_from_core_section): Remove.
2586 (m32r_linux_iterate_over_regset_sections): New.
2587 (m32r_linux_init_abi): Adjust gdbarch initialization.
2588
2589 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2590
2591 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2592 (amd64obsd_iterate_over_regset_sections): New.
2593 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2594 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2595 Remove.
2596 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2597 regset_from_core_section initialization.
2598 * i386-tdep.c (i386_regset_from_core_section): Remove.
2599 (i386_iterate_over_regset_sections): New.
2600 (i386_gdbarch_init): Adjust gdbarch initialization.
2601 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2602 (i386_iterate_over_regset_sections): New prototype.
2603 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2604 Remove.
2605 (i386obsd_aout_iterate_over_regset_sections): New.
2606 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2607 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2608 targets.
2609 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2610 (amd64fbsd_init_abi): Call fbsd_init_abi.
2611 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2612 (i386fbsd4_init_abi): Call fbsd_init_abi.
2613 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2614 target method 'make_corefile_notes'.
2615 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2616
2617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618
2619 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2620 (hppa_hpux_iterate_over_regset_sections): New.
2621 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2622 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2623 (hppa_linux_iterate_over_regset_sections): New.
2624 (hppa_linux_init_abi): Adjust.
2625 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2626 (hppanbsd_iterate_over_regset_sections): New.
2627 (hppanbsd_init_abi): Adjust.
2628 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2629 (hppaobsd_iterate_over_regset_sections): New.
2630 (hppaobsd_init_abi): Adjust.
2631
2632 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633
2634 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2635 (frv_linux_iterate_over_regset_sections): New.
2636 (frv_linux_init_abi): Adjust gdbarch initialization.
2637
2638 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639
2640 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2641 (armbsd_iterate_over_regset_sections): New prototype.
2642 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2643 (armbsd_iterate_over_regset_sections): New.
2644 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2645 initialization.
2646
2647 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648
2649 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2650 (alpha_linux_iterate_over_regset_sections): New.
2651 (alpha_linux_init_abi): Adjust gdbarch initialization.
2652 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2653 prototype.
2654 (alphanbsd_iterate_over_regset_sections): New prototype.
2655
2656 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2657
2658 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2659 Remove.
2660 (aarch64_linux_iterate_over_regset_sections): New.
2661 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2662
2663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664
2665 * fbsd-tdep.c: New file.
2666 * fbsd-tdep.h: New file.
2667 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2668 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2669 (ALLDEPFILES): Add fbsd-tdep.c.
2670
2671 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2674 parameter.
2675 * gdbarch.h: Regenerate.
2676 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2677 iterator.
2678 (get_core_register_section): Add parameter 'regset' and use it, if
2679 set. Add parameter 'min_size' and verify the bfd section size
2680 against it.
2681 (get_core_registers_cb): Add parameter 'regset' and pass it to
2682 get_core_register section. For the "standard" register sections
2683 ".reg" and ".reg2", set an appropriate default for human_name.
2684 (get_core_registers): Don't abort when the gdbarch has an iterator
2685 but no regset_from_core_section. Add NULL/0 for parameters
2686 'regset'/'min_size' in calls to get_core_register_section.
2687 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2688 'regset' and use it instead of calling the
2689 regset_from_core_section gdbarch method.
2690 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2691 * i386-tdep.c (i386_supply_xstateregset)
2692 (i386_collect_xstateregset, i386_xstateregset): Moved to
2693 i386-linux-tdep.c.
2694 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2695 .reg-xstate.
2696 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2697 core file support only if the regset iterator hasn't been set.
2698 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2699 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2700 Moved from i386-tdep.c and renamed to *_linux*.
2701 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2702 each callback invocation. Allow any .reg-xstate size when reading
2703 from a core file.
2704 * amd64-tdep.c (amd64_supply_xstateregset)
2705 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2706 amd64-linux-tdep.c.
2707 (amd64_regset_from_core_section): Remove.
2708 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2709 install an amd64-specific regset_from_core_section gdbarch method.
2710 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2711 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2712 Moved from amd64-tdep.c and renamed to *_linux*.
2713 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2714 to each callback invocation. Allow any .reg-xstate size when
2715 reading from a core file.
2716 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2717 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2718 each callback invocation.
2719 (arm_linux_init_abi): No longer set the regset_from_core_section
2720 gdbarch method.
2721 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2722 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2723 each callback invocation.
2724 (ppc_linux_init_abi): No longer set the regset_from_core_section
2725 gdbarch method.
2726 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2727 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2728 (s390_regset_from_core_section): Remove.
2729 (s390_iterate_over_regset_sections): Add regset parameter to each
2730 callback invocation.
2731 (s390_gdbarch_init): No longer set the regset_from_core_section
2732 gdbarch method. Drop initialization of deleted tdep fields.
2733
2734 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2735
2736 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2737 (amd64_linux_iterate_over_regset_sections): New.
2738 (amd64_linux_init_abi_common): Don't install the regset section
2739 list, but the new iterator in gdbarch.
2740 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2741 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2742 (arm_linux_iterate_over_regset_sections): ...here. New function.
2743 (arm_linux_init_abi): Set iterator instead of section list.
2744 * corelow.c (get_core_registers_cb): New function, logic moved
2745 from...
2746 (get_core_registers): ...loop body here. Use new iterator method
2747 instead of walking through the regset section list.
2748 * gdbarch.sh: Remove 'core_regset_sections'. New method
2749 'iterate_over_regset_sections'. New typedef
2750 'iterate_over_regset_sections_cb'.
2751 * gdbarch.c: Regenerate.
2752 * gdbarch.h: Likewise.
2753 * i386-linux-tdep.c (i386_linux_regset_sections)
2754 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2755 Remove.
2756 (i386_linux_iterate_over_regset_sections): New.
2757 (i386_linux_init_abi): Don't choose a regset section list, but
2758 install new iterator in gdbarch.
2759 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2760 (linux_collect_regset_section_cb): New function, logic moved
2761 from...
2762 (linux_collect_thread_registers): ...loop body here. Use iterator
2763 method instead of walking through list.
2764 (linux_make_corefile_notes_1): Check for presence of iterator
2765 method instead of regset section list.
2766 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2767 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2768 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2769 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2770 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2771 (ppc_linux_init_abi): Don't choose from above regset section
2772 lists, but install new iterator in gdbarch.
2773 * regset.h (struct core_regset_section): Remove.
2774 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2775 have_linux_v1, have_linux_v2, and have_tdb.
2776 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2777 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2778 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2779 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2780 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2781 (s390_iterate_over_regset_sections): ...here. New function. Use
2782 new tdep fields.
2783 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2784 regset section lists, but install new iterator.
2785
2786 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2787
2788 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2789
2790 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2791
2792 * progspace.c (print_program_space): Don't prune program spaces
2793 before printing them.
2794
2795 2014-09-25 Pedro Alves <palves@redhat.com>
2796
2797 * infrun.c (user_visible_resume_ptid): Don't check
2798 singlestep_breakpoints_inserted_p.
2799
2800 2014-09-25 Pedro Alves <palves@redhat.com>
2801
2802 * breakpoint.c (should_be_inserted): Add debug output.
2803
2804 2014-09-25 Pedro Alves <palves@redhat.com>
2805
2806 * infrun.c (stepping_past_instruction_at)
2807 (clear_exit_convenience_vars): Point at infrun.h instead of
2808 inferior.h.
2809 (handle_signal_stop): Fix typo.
2810
2811 2014-09-24 Yao Qi <yao@codesourcery.com>
2812
2813 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2814 bitmask.
2815
2816 2014-09-22 Gary Benson <gbenson@redhat.com>
2817
2818 * target.c (target_stop): Updated comment.
2819
2820 2014-09-22 Gary Benson <gbenson@redhat.com>
2821
2822 * target/target.h (target_stop_ptid): Renamed as...
2823 (target_stop_and_wait): New function. Updated comment.
2824 All uses updated.
2825 (target_continue_ptid): Renamed as...
2826 (target_continue_no_signal): New function. Updated comment.
2827 All uses updated.
2828
2829 2014-09-22 Pedro Alves <palves@redhat.com>
2830
2831 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2832 and "auto" merged.
2833 * breakpoint.c (enum ugll_insert_mode): New enum.
2834 (always_inserted_mode): Now a plain boolean.
2835 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2836 (breakpoints_always_inserted_mode): Delete.
2837 (breakpoints_should_be_inserted_now): New function.
2838 (insert_breakpoints): Pass UGLL_INSERT to
2839 update_global_location_list instead of calling
2840 insert_breakpoint_locations manually.
2841 (create_solib_event_breakpoint_1): New, factored out from ...
2842 (create_solib_event_breakpoint): ... this.
2843 (create_and_insert_solib_event_breakpoint): Use
2844 create_solib_event_breakpoint_1 instead of calling
2845 insert_breakpoint_locations manually.
2846 (update_global_location_list): Change parameter type from boolean
2847 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2848 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2849 (update_global_location_list_nothrow): Change parameter type from
2850 boolean to enum ugll_insert_mode.
2851 (_initialize_breakpoint): "breakpoint always-inserted" option is
2852 now a boolean command. Update help text.
2853 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2854 (breakpoints_should_be_inserted_now): New declaration.
2855 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2856 Remove breakpoints_always_inserted_mode check.
2857 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2858 * remote.c (remote_start_remote): Likewise.
2859
2860 2014-09-22 Pedro Alves <palves@redhat.com>
2861
2862 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2863 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2864 Instead, pass UGLL_INSERT to update_global_location_list.
2865 (update_global_location_list): Change parameter type from boolean
2866 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2867 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2868 (create_solib_event_breakpoint_1): New, factored out from ...
2869 (create_solib_event_breakpoint): ... this.
2870 (create_and_insert_solib_event_breakpoint): Use
2871 create_solib_event_breakpoint_1 instead of calling
2872 insert_breakpoint_locations manually.
2873 (update_global_location_list): Handle UGLL_INSERT.
2874
2875 2014-09-22 Pedro Alves <palves@redhat.com>
2876
2877 * breakpoint.c (enum ugll_insert_mode): New enum.
2878 (update_global_location_list)
2879 (update_global_location_list_nothrow): Change parameter type from
2880 boolean to enum ugll_insert_mode. All callers adjusted.
2881
2882 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2883
2884 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2885 SystemTap support in GDB.
2886
2887 2014-09-19 Don Breazeal <donb@codesourcery.com>
2888
2889 * linux-nat.c (linux_handle_extended_wait): Call
2890 linux_ptrace_get_extended_event.
2891 (wait_lwp): Call linux_is_extended_waitstatus.
2892 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2893 and linux_is_extended_waitstatus.
2894 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2895 linux_ptrace_get_extended_event.
2896 (linux_ptrace_get_extended_event): New function.
2897 (linux_is_extended_waitstatus): New function.
2898 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2899 (linux_is_extended_waitstatus): New declarations.
2900
2901 2014-09-19 Yao Qi <yao@codesourcery.com>
2902
2903 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2904 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2905 comments. Callers update.
2906 (dwarf_decode_lines): Likewise.
2907 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2908 comments. Skip the line table if 'lowpc' is greater than
2909 'address'. Don't check
2910 dwarf2_per_objfile->has_section_at_zero.
2911
2912 2014-09-18 Doug Evans <dje@google.com>
2913
2914 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2915 * python/py-symtab.c (stpy_get_producer): New function.
2916 (symtab_object_getset): Add "producer" attribute.
2917
2918 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2919
2920 PR gdb/17384
2921 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2922 (do_captured_read_memory_integer): Remove.
2923 (safe_read_memory_integer): Use target_read_memory directly instead
2924 of catching errors in do_captured_read_memory_integer.
2925
2926 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2927
2928 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2929 not gdb/doc.
2930
2931 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2932
2933 * objc-lang.c (find_implementation_from_class): Remove dead code.
2934
2935 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2936
2937 PR cli/7233
2938 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2939 "fprintf_unfiltered (gdb_stdlog...)".
2940
2941 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2942
2943 PR breakpoints/12526
2944 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2945 val_bitsize.
2946 * breakpoint.c (watch_command_1): Use these fields to retain
2947 bitfield information.
2948 (extract_bitfield_from_watchpoint_value): New function.
2949 (watchpoint_check): Use it.
2950 (update_watchpoint): Use it. Optimize the address and length of a
2951 HW watchpoint pointing to a bitfield.
2952 * value.h (unpack_value_bitfield): New prototype.
2953 * value.c (unpack_value_bitfield): Make extern.
2954
2955 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2956
2957 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2958 x86-dregs.o.
2959 * gnu-nat.c (inf_threads): New function.
2960 * gnu-nat.h (inf_threads_ftype): New typedef.
2961 (inf_threads): New declaration.
2962 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2963 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2964 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2965 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2966 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2967 (i386_gnu_dr_get_control): New functions.
2968 (reg_addr): New structure.
2969 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2970 i386 debugging register hooks.
2971 * NEWS: Mention this.
2972
2973 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2974
2975 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2976 vector data transfer instructions.
2977 (arm_record_coproc_data_proc): Updated.
2978
2979 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2980
2981 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2982 arm_record_exreg_ld_st_insn.
2983 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2984 load/store insns.
2985
2986 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2987
2988 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2989 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2990 processing instructions.
2991
2992 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2993
2994 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2995 for advance SIMD struct ld/st insn.
2996 (thumb2_record_decode_insn_handler): Replace stub handler with
2997 thumb2_record_asimd_struct_ld_st.
2998
2999 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3000
3001 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3002 for asimd, vfp and coprocessor insns.
3003 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3004 and coprocessor insns.
3005 (thumb2_record_coproc_insn): New function.
3006 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3007 handlers.
3008 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3009 opcode 110 insns.
3010
3011 2014-09-13 Doug Evans <xdje42@gmail.com>
3012
3013 * NEWS: Mention new "queue-signal" command.
3014 * infcmd.c (queue_signal_command): New function.
3015 (_initialize_infcmd): Add new queue-signal command.
3016
3017 2014-09-13 Doug Evans <xdje42@gmail.com>
3018
3019 * linux-nat.c (wait_lwp): Add debugging printf.
3020 (linux_nat_wait_1): Ditto.
3021
3022 2014-09-12 Pedro Alves <palves@redhat.com>
3023
3024 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3025 (create_and_insert_solib_event_breakpoint): New functions.
3026 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3027 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3028 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3029 (remove_dbx_link_breakpoint): Delete function.
3030 (insert_dbx_link_bpt_in_file): Use
3031 create_and_insert_solib_event_breakpoint instead of
3032 deprecated_insert_raw_breakpoint.
3033 (procfs_wait): Don't check whether we hit __dbx_link here.
3034 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3035 here.
3036 * solib-irix.c (base_breakpoint): Delete global.
3037 (disable_break): Delete function.
3038 (enable_break): Use create_solib_event_breakpoint
3039 instead of deprecated_insert_raw_breakpoint.
3040 (irix_solib_handle_event): New function.
3041 (irix_solib_create_inferior_hook): Don't run the target or disable
3042 the mapping-complete breakpoint here.
3043 (_initialize_irix_solib): Install irix_solib_handle_event as
3044 so_ops->handle_event hook.
3045
3046 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3047 Ulrich Weigand  <uweigand@de.ibm.com>
3048
3049 PR tdep/17379
3050 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3051 instead of read_memory_unsigned_integer.
3052
3053 2014-09-12 Gary Benson <gbenson@redhat.com>
3054
3055 * nat/linux-waitpid.c: Include common-defs.h.
3056 [GDBSERVER]: Add FIXME comment.
3057 [!GDBSERVER]: Don't include defs.h or signal.h.
3058 (linux_debug) [!GDBSERVER]: Remove empty block.
3059
3060 2014-09-12 Gary Benson <gbenson@redhat.com>
3061
3062 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3063 Don't include defs.h or server.h.
3064
3065 2014-09-12 Gary Benson <gbenson@redhat.com>
3066
3067 * nat/linux-btrace.c: Include common-defs.h.
3068 Don't include defs.h, server.h or gdbthread.h.
3069 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3070
3071 2014-09-12 Gary Benson <gbenson@redhat.com>
3072
3073 * common/agent.c: Include common-defs.h.
3074 Don't include defs.h or server.h.
3075 * common/buffer.c: Likewise.
3076 * common/common-debug.c: Likewise.
3077 * common/common-utils.c: Likewise.
3078 * common/errors.c: Likewise.
3079 * common/filestuff.c: Likewise.
3080 * common/format.c: Likewise.
3081 * common/gdb_vecs.c: Likewise.
3082 * common/print-utils.c: Likewise.
3083 * common/ptid.c: Likewise.
3084 * common/rsp-low.c: Likewise.
3085 * common/signals.c: Likewise.
3086 * common/vec.c: Likewise.
3087 * common/xml-utils.c: Likewise.
3088 * nat/linux-osdata.c: Likewise.
3089 * nat/linux-procfs.c: Likewise.
3090 * nat/linux-ptrace.c: Likewise.
3091 * nat/mips-linux-watch.c: Likewise.
3092 * target/waitstatus.c: Likewise.
3093
3094 2014-09-12 Tom Tromey <tromey@redhat.com>
3095 Gary Benson <gbenson@redhat.com>
3096
3097 * common/common-regcache.h: New file.
3098 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3099 * regcache.h: Include common-regcache.h.
3100 (regcache_read_pc): Don't declare.
3101 * regcache.c (get_thread_regcache_for_ptid): New function.
3102 * nat/linux-btrace.c: Don't include regcache.h.
3103 Include common-regcache.h.
3104 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3105
3106 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3107
3108 * regcache.h (struct regset): Declare.
3109
3110 2014-09-11 Pedro Alves <palves@redhat.com>
3111
3112 PR gdb/17347
3113 * main.c: Include "infrun.h".
3114 (catch_command_errors, catch_command_errors_const): Wait for the
3115 foreground command to complete.
3116 * top.c (maybe_wait_sync_command_done): New function, factored out
3117 from ...
3118 (maybe_wait_sync_command_done): ... here.
3119 * top.h (maybe_wait_sync_command_done): New declaration.
3120
3121 2014-09-11 Tom Tromey <tromey@redhat.com>
3122 Gary Benson <gbenson@redhat.com>
3123
3124 * common/symbol.h: New file.
3125 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3126 * minsyms.c (find_minimal_symbol_address): New function.
3127 * common/agent.c: Include common/symbol.h.
3128 [!GDBSERVER]: Don't include objfiles.h.
3129 (agent_look_up_symbols): Use find_minimal_symbol_address.
3130
3131 2014-09-11 Gary Benson <gbenson@redhat.com>
3132
3133 * target/target.h (target_stop_ptid, target_continue_ptid):
3134 Declare.
3135 * target.c (target_stop_ptid, target_continue_ptid): New
3136 functions.
3137 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3138 (agent_run_command): Always use target_stop_ptid and
3139 target_continue_ptid.
3140
3141 2014-09-11 Tom Tromey <tromey@redhat.com>
3142 Gary Benson <gbenson@redhat.com>
3143
3144 * target/target.h: New file.
3145 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3146 * target.h: Include target/target.h.
3147 (target_read_memory, target_write_memory): Don't declare.
3148 * target.c (target_read_uint32): New function.
3149 * common/agent.c: Include target/target.h.
3150 [!GDBSERVER]: Don't include target.h.
3151 (helper_thread_id): Type changed to uint32_t.
3152 (agent_get_helper_thread_id): Use target_read_uint32.
3153 (agent_run_command): Always use target_read_memory and
3154 target_write_memory.
3155 (agent_capability): Type changed to uint32_t.
3156 (agent_capability_check): Use target_read_uint32.
3157
3158 2014-09-11 Gary Benson <gbenson@redhat.com>
3159
3160 * common/common-debug.h (show_debug_regs): Declare.
3161 * common/common-debug.c (show_debug_regs): Define.
3162 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3163 all uses with show_debug_regs. Replace all uses that considered
3164 debug_hw_points as a multi-value integer with straight boolean
3165 uses.
3166 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3167 with show_debug_regs.
3168 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3169 all uses with show_debug_regs.
3170 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3171 uses with show_debug_regs.
3172
3173 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3174
3175 * findvar.c (address_from_register): Handle targets requiring
3176 a special conversion routine even for plain pointer types.
3177
3178 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3179
3180 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3181 (store_register): Do not call exec_one_dummy_insn.
3182
3183 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3184
3185 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3186 dereference it first. Use value_enclosing_type instead of
3187 value_type.
3188 (ada_array_length): Likewise.
3189
3190 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3191
3192 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3193 Adjust function implementation and documentation accordingly.
3194 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3195 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3196 Update call to ada_value_ptr_subscript.
3197
3198 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3199
3200 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3201 instead of VAL's type.
3202
3203 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3204
3205 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3206
3207 2014-09-09 Doug Evans <xdje42@gmail.com>
3208
3209 PR guile/17367
3210 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3211 last parameter to pkg-config, not first.
3212 * configure.ac: Pass --with-guile provided pkg-config path to
3213 GDB_GUILE_PROGRAM_NAMES.
3214 * configure: Regenerate.
3215
3216 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3217
3218 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3219 Bertazi".
3220
3221 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3222
3223 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3224 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3225 the list of sections determining GDB_OSABI_IRIX.
3226
3227 2014-09-09 James Hogan <james.hogan@imgtec.com>
3228
3229 * MAINTAINERS (Write After Approval): Add "James Hogan".
3230
3231 2014-09-09 James Hogan <james.hogan@imgtec.com>
3232
3233 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3234
3235 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3236
3237 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3238
3239 2014-09-08 Doug Evans <xdje42@gmail.com>
3240
3241 PR 17247
3242 * guile.c: #include <signal.h>.
3243 (_initialize_guile): Block SIGCHLD while initializing Guile.
3244
3245 Replaces the following, which is reverted.
3246
3247 2014-07-26 Doug Evans <xdje42@gmail.com>
3248
3249 PR 17185
3250 * configure.ac: Add check for header gc/gc.h.
3251 Add check for function setenv.
3252 * configure: Regenerate.
3253 * config.in: Regenerate.
3254 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3255
3256 2014-09-08 Doug Evans <xdje42@gmail.com>
3257
3258 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3259 with named constant. Fix style of pointer comparison.
3260 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3261
3262 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3263
3264 PR gdb/17035
3265 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3266 decide whether we display the command on "show user".
3267 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3268 printing command name.
3269 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3270 * cli/cli-decode.c (cli_user_command_p): Create helper function
3271 to verify whether cmd_list_element is a user-defined command.
3272
3273 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3274
3275 PR python/17355
3276 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3277 Fix goto out of TRY_CATCH.
3278
3279 2014-09-06 Doug Evans <xdje42@gmail.com>
3280 Tom Tromey <tromey@redhat.com>
3281
3282 PR 15276
3283 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3284 $_any_caller_matches.
3285 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3286 * python/lib/gdb/function/caller_is.py: New file.
3287
3288 2014-09-06 Doug Evans <xdje42@gmail.com>
3289
3290 * infcmd.c (program_info): Fix typo.
3291
3292 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3293
3294 PR gdb/17235
3295 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3296 'number'. New variable 'has_digit'. Rewrite code to deal with
3297 subexpressions on SDT probes.
3298
3299 2014-09-04 Pedro Alves <palves@redhat.com>
3300
3301 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3302 the input is only one character long.
3303
3304 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3305
3306 PR fortran/17237
3307 * f-valprint.c (f_val_print): Specify the correct print option to
3308 use when printing integer values.
3309
3310 2014-09-04 Gary Benson <gbenson@redhat.com>
3311
3312 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3313 Remove code to cope with LWPs wrapped as PIDs.
3314 Add assertions to ensure no wrapped LWPs are passed.
3315
3316 2014-09-04 Pedro Alves <palves@redhat.com>
3317
3318 * value.c (value_ranges_copy_adjusted): New function, factored out
3319 from ...
3320 (value_contents_copy_raw): ... here.
3321 (unpack_value_bits_as_long_1): Rename back to ...
3322 (unpack_bits_as_long): ... this. Remove 'original_value' and
3323 'result' parameters. Change return type to LONGEST.
3324 (unpack_value_bits_as_long): Delete.
3325 (unpack_value_field_as_long_1): Delete.
3326 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3327 (unpack_value_bitfield): New function.
3328 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3329 (value_fetch_lazy): Use unpack_value_bitfield.
3330 * value.h (unpack_value_bits_as_long): Delete declaration.
3331
3332 2014-09-03 Sasha Smundak <asmundak@google.com>
3333
3334 * python/py-frame.c (frapy_read_register): New function.
3335
3336 2014-09-03 James Hogan <james.hogan@imgtec.com>
3337
3338 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3339 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3340
3341 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3342
3343 PR python/16699
3344 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3345 function.
3346 (add_cmd): Set "completer_handle_brkchars" to NULL.
3347 * cli/cli-decode.h (struct cmd_list_element)
3348 <completer_handle_brkchars>: New field.
3349 * command.h (completer_ftype_void): New typedef.
3350 (set_cmd_completer_handle_brkchars): New prototype.
3351 * completer.c (set_gdb_completion_word_break_characters): New
3352 function.
3353 (complete_line_internal): Call "completer_handle_brkchars"
3354 callback from command.
3355 * completer.h: Include "command.h".
3356 (set_gdb_completion_word_break_characters): New prototype.
3357 * python/py-cmd.c (cmdpy_completer_helper): New function.
3358 (cmdpy_completer_handle_brkchars): New function.
3359 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3360 (cmdpy_init): Set completer_handle_brkchars to
3361 cmdpy_completer_handle_brkchars.
3362
3363 2014-09-03 Gary Benson <gbenson@redhat.com>
3364
3365 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3366 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3367 Loop conditions changed to equivalent form.
3368 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3369 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3370 ALL_DEBUG_ADDRESS_REGISTERS.
3371
3372 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3373
3374 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3375 description fix.
3376
3377 2014-09-02 Doug Evans <dje@google.com>
3378
3379 * typeprint.c (find_global_typedef): Fix comment.
3380
3381 2014-09-02 Gary Benson <gbenson@redhat.com>
3382
3383 * i386-nat.h: Renamed as...
3384 * x86-nat.h: New file. All type, function and variable name
3385 prefixes changed from "i386_" to "x86_". All references updated.
3386 * i386-nat.c: Renamed as...
3387 * x86-nat.c: New file. All type, function and variable name
3388 prefixes changed from "i386_" to "x86_". All references updated.
3389 * common/i386-xstate.h: Renamed as...
3390 * common/x86-xstate.h: New file. All type, function and variable
3391 name prefixes changed from "i386_" to "x86_". All references
3392 updated.
3393 * nat/i386-cpuid.h: Renamed as...
3394 * nat/x86-cpuid.h: New file. All type, function and variable name
3395 prefixes changed from "i386_" to "x86_". All references updated.
3396 * nat/i386-gcc-cpuid.h: Renamed as...
3397 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3398 name prefixes changed from "i386_" to "x86_". All references
3399 updated.
3400 * nat/i386-dregs.h: Renamed as...
3401 * nat/x86-dregs.h: New file. All type, function and variable name
3402 prefixes changed from "i386_" to "x86_". All references updated.
3403 * nat/i386-dregs.c: Renamed as...
3404 * nat/x86-dregs.c: New file. All type, function and variable name
3405 prefixes changed from "i386_" to "x86_". All references updated.
3406
3407 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3408
3409 * varobj.c (_initialize_varobj): Move to the end of file.
3410
3411 2014-08-29 Gary Benson <gbenson@redhat.com>
3412
3413 * common/common-exceptions.h: New file.
3414 * common/common-exceptions.c: Likewise.
3415 * Makefile.in (SFILES): Add common/common-exceptions.c.
3416 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3417 (COMMON_OBS): Add common-exceptions.o.
3418 (common-exceptions.o): New rule.
3419 * exceptions.h (common-exceptions.h): Include.
3420 (gdb_setjmp.h): Do not include.
3421 (return_reason): Moved to common-exceptions.h.
3422 (enum return_reason): Likewise.
3423 (RETURN_MASK): Likewise.
3424 (typedef return_mask): Likewise.
3425 (enum errors): Likewise.
3426 (struct gdb_exception): Likewise.
3427 (exceptions_state_mc_init): Likewise.
3428 (exceptions_state_mc_action_iter): Likewise.
3429 (exceptions_state_mc_action_iter_1): Likewise.
3430 (TRY_CATCH): Likewise.
3431 (throw_exception): Likewise.
3432 (throw_verror): Likewise.
3433 (throw_vquit): Likewise.
3434 (throw_error): Likewise.
3435 (throw_quit): Likewise.
3436 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3437 (enum catcher_action): Likewise.
3438 (struct catcher): Likewise.
3439 (current_catcher): Likewise.
3440 (catcher_list_size): Likewise.
3441 (exceptions_state_mc_init): Likewise.
3442 (catcher_pop): Likewise.
3443 (exceptions_state_mc): Likewise.
3444 (exceptions_state_mc_action_iter): Likewise.
3445 (exceptions_state_mc_action_iter_1): Likewise.
3446 (throw_exception): Likewise.
3447 (exception_messages): Likewise.
3448 (exception_messages_size): Likewise.
3449 (throw_it): Likewise.
3450 (throw_verror): Likewise.
3451 (throw_vquit): Likewise.
3452 (throw_error): Likewise.
3453 (throw_quit): Likewise.
3454 (prepare_to_throw_exception): New function.
3455
3456 2014-08-29 Gary Benson <gbenson@redhat.com>
3457
3458 * common/gdb_setjmp.h: New file.
3459 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3460 * configure.ac: Move sigsetjmp check...
3461 * common/common.m4: ...here.
3462 * configure: Regenerate.
3463 * cp-support.c (SIGJMP_BUF): Delete.
3464 (SIGSETJMP): Likewise.
3465 (SIGLONGJMP): Likewise.
3466 * exceptions.h (gdb_setjmp.h): Include.
3467 (setjmp.h): Do not include.
3468 (EXCEPTIONS_SIGJMP_BUF): Delete.
3469 (EXCEPTIONS_SIGSETJMP): Likewise.
3470 (EXCEPTIONS_SIGLONGJMP): Likewise.
3471 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3472 from gdb_setjmp.h.
3473 * exceptions.c: Likewise.
3474
3475 2014-08-29 Gary Benson <gbenson@redhat.com>
3476
3477 * cleanups.h: Moved to...
3478 * common/cleanups.h: New file.
3479 * cleanups.c: Moved to...
3480 * common/cleanups.c: New file. Include common-defs.h and
3481 cleanups.h. Do not include defs.h.
3482 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3483 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3484 (cleanups.o): New rule.
3485
3486 2014-08-29 Gary Benson <gbenson@redhat.com>
3487
3488 * common/errors.h (internal_warning): New declaration.
3489 (internal_vwarning): Likewise.
3490 * common/errors.c (internal_warning): New function.
3491 * utils.h (internal_warning): Don't declare.
3492 (internal_vwarning): Likewise.
3493 * utils.c (internal_warning): Removed.
3494
3495 2014-08-29 Gary Benson <gbenson@redhat.com>
3496
3497 * main.c (captured_main): Use warning during startup.
3498 Prefix startup warning messages with command name.
3499
3500 2014-08-29 Gary Benson <gbenson@redhat.com>
3501
3502 * main.c (captured_main): Handle usage errors with error.
3503
3504 2014-08-29 Gary Benson <gbenson@redhat.com>
3505
3506 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3507 exit pair with a call to error. Wrap the message with _().
3508
3509 2014-08-29 Gary Benson <gbenson@redhat.com>
3510
3511 * main.c (captured_main): Replace a fprintf/exit
3512 pair with a call to error. Wrap the message with _().
3513
3514 2014-08-29 Gary Benson <gbenson@redhat.com>
3515
3516 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3517 pairs with calls to error. Wrap the message with _().
3518
3519 2014-08-29 Gary Benson <gbenson@redhat.com>
3520
3521 * utils.c (vwarning): Protect calls to target_terminal_ours
3522 and wrap_here.
3523
3524 2014-08-29 Gary Benson <gbenson@redhat.com>
3525
3526 * exceptions.c (print_flush): Protect calls to
3527 target_terminal_ours and wrap_here.
3528
3529 2014-08-29 Gary Benson <gbenson@redhat.com>
3530
3531 * utils.h (filtered_printing_initialized): New declaration.
3532 * utils.c (abort_with_message): New function.
3533 (internal_vproblem): Use abort_with_message for first level
3534 recursive internal problems, and if gdb_stderr is not set up.
3535 Protect calls to target_terminal_ours, begin_line and query.
3536
3537 2014-08-28 Doug Evans <dje@google.com>
3538
3539 * symtab.c (in_prologue): Move definition to better spot.
3540 (skip_prologue_using_sal): Ditto.
3541
3542 2014-08-28 Doug Evans <dje@google.com>
3543
3544 * symtab.c (find_function_start_sal): Move definition to better spot.
3545
3546 2014-08-28 Yao Qi <yao@codesourcery.com>
3547
3548 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3549 found_stack_adjust in forward scan. Remove condition check
3550 on found_stack_adjust which is always true. Indent the code.
3551
3552 2014-08-28 Yao Qi <yao@codesourcery.com>
3553
3554 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3555 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3556 (dwarf_decode_lines): Remove argument
3557 want_line_info. Remove condition check on want_line_info.
3558 Callers update.
3559
3560 2014-08-27 Doug Evans <dje@google.com>
3561
3562 * dwarf2read.c (dwarf_record_line): Fix typo.
3563
3564 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3565
3566 * target.h (struct target_ops::to_terminal_save_ours): Remove
3567 declaration.
3568 (target_terminal_save_ours): Remove macro.
3569 * target-delegates.c: Regenerate.
3570 * inf-child.c (inf_child_target): Don't set the nonexistent
3571 field to_terminal_save_ours.
3572 * inferior.h (child_terminal_save_ours): Remove declaration.
3573 * terminal.h (gdb_save_tty_state): New declaration.
3574 * inflow.c (child_terminal_save_ours): Rename to ...
3575 (gdb_save_tty_state): ... this.
3576 * tui/tui.c: Include terminal.h.
3577 (tui_enable): Use gdb_save_tty_state instead of
3578 target_terminal_save_ours.
3579 (tui_disable): Likewise.
3580
3581 2014-08-25 Doug Evans <dje@google.com>
3582
3583 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3584 Pass NULL instead of 0 for context pointer.
3585
3586 2014-08-25 Yao Qi <yao@codesourcery.com>
3587
3588 * dwarf2read.c: Fix grammatical error.
3589
3590 2014-08-24 Yao Qi <yao@codesourcery.com>
3591
3592 * dwarf2read.c (scan_partial_symbols): Update comments.
3593 Rename argument 'need_pc' with 'set_addrmap'.
3594 (add_partial_namespace): Rename argument 'need_pc' with
3595 'set_addrmap'.
3596 (add_partial_module): Likewise.
3597 (add_partial_subprogram): Likewise. Update comments.
3598 (dwarf2_name): Fix typo.
3599
3600 2014-08-22 Doug Evans <dje@google.com>
3601
3602 PR 17276
3603 * dwarf2read.c (dwarf_record_line_p): New function.
3604 (dwarf_decode_lines_1): Ignore subsequent line number entries
3605 for the same line if any entry had a non-zero discriminator.
3606
3607 2014-08-22 Doug Evans <dje@google.com>
3608
3609 * buildsym.h (record_line_ftype): New typedef.
3610 (record_line): Use it.
3611 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3612 (dwarf_decode_lines_1): Call them.
3613
3614 2014-08-22 Yao Qi <yao@codesourcery.com>
3615
3616 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3617 (ctf_end): Remove code.
3618
3619 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3620
3621 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3622 (linux_make_corefile_notes): call update_thread_list, protected against
3623 exceptions.
3624
3625 2014-08-21 Pedro Alves <palves@redhat.com>
3626
3627 * infcmd.c (attach_command): Remove comment.
3628
3629 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3630
3631 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3632 unsigned LONGEST to ULONGEST.
3633
3634 2014-08-20 Pedro Alves <palves@redhat.com>
3635
3636 * Makefile.in (check-read1): New rule.
3637
3638 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3639
3640 * value.c (value_from_contents_and_address): Strip resolved_type's
3641 typedef layers before checking its TYPE_DATA_LOCATION.
3642
3643 2014-08-20 Pedro Alves <palves@redhat.com>
3644
3645 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3646
3647 2014-08-20 Yao Qi <yao@codesourcery.com>
3648
3649 * amd64-tdep.c (amd64_classify): Add a blank line after the
3650 example. Move "*/" to a new line.
3651 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3652 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3653 * dwarf2read.c (psymtab_include_file_name): Likewise.
3654
3655 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3656 Pedro Alves <palves@redhat.com>
3657
3658 PR symtab/14604
3659 PR symtab/14605
3660 * ada-lang.c (coerce_unspec_val_to_type): Use
3661 value_contents_copy_raw.
3662 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3663 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3664 * cp-valprint.c (cp_print_value_fields): Let the common printing
3665 code handle optimized out values.
3666 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3667 * d-valprint.c (dynamic_array_type): Use
3668 value_bits_any_optimized_out.
3669 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3670 check_any_valid fields.
3671 (check_pieced_value_bits): Delete and inline ...
3672 (check_pieced_synthetic_pointer): ... here.
3673 (check_pieced_value_validity): Delete.
3674 (check_pieced_value_invalid): Delete.
3675 (pieced_value_funcs): Remove check_validity and check_any_valid
3676 fields.
3677 (read_pieced_value): Use mark_value_bits_optimized_out.
3678 (write_pieced_value): Switch to use
3679 mark_value_bytes_optimized_out.
3680 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3681 of assuming the whole value is optimized out.
3682 * findvar.c (read_frame_register_value): Remove special handling
3683 of optimized out registers.
3684 (value_from_register): Use mark_value_bytes_optimized_out.
3685 * frame-unwind.c (frame_unwind_got_optimized): Use
3686 mark_value_bytes_optimized_out.
3687 * jv-valprint.c (java_value_print): Adjust.
3688 (java_print_value_fields): Let the common printing code handle
3689 optimized out values.
3690 * mips-tdep.c (mips_print_register): Remove special handling of
3691 optimized out registers.
3692 * opencl-lang.c (lval_func_check_validity): Delete.
3693 (lval_func_check_any_valid): Delete.
3694 (opencl_value_funcs): Remove check_validity and check_any_valid
3695 fields.
3696 * p-valprint.c (pascal_object_print_value_fields): Let the common
3697 printing code handle optimized out values.
3698 * stack.c (read_frame_arg): Remove special handling of optimized
3699 out values. Fetch both VAL and ENTRYVAL before comparing
3700 contents. Adjust to value_available_contents_eq rename.
3701 * valprint.c (valprint_check_validity)
3702 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3703 (val_print_array_elements): Adjust.
3704 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3705 (value_bits_any_optimized_out): New function.
3706 (value_entirely_covered_by_range_vector): New function, factored
3707 out from value_entirely_unavailable.
3708 (value_entirely_unavailable): Reimplement.
3709 (value_entirely_optimized_out): New function.
3710 (insert_into_bit_range_vector): New function, factored out from
3711 mark_value_bits_unavailable.
3712 (mark_value_bits_unavailable): Reimplement.
3713 (struct ranges_and_idx): New struct.
3714 (find_first_range_overlap_and_match): New function, factored out
3715 from value_available_contents_bits_eq.
3716 (value_available_contents_bits_eq): Rename to ...
3717 (value_contents_bits_eq): ... this. Check both unavailable
3718 contents and optimized out contents.
3719 (value_available_contents_eq): Rename to ...
3720 (value_contents_eq): ... this.
3721 (allocate_value_lazy): Remove reference to the old optimized_out
3722 boolean.
3723 (allocate_optimized_out_value): Use
3724 mark_value_bytes_optimized_out.
3725 (require_not_optimized_out): Adjust to check whether the
3726 optimized_out vec is empty.
3727 (ranges_copy_adjusted): New function, factored out from
3728 value_contents_copy_raw.
3729 (value_contents_copy_raw): Also copy the optimized out ranges.
3730 Assert the destination ranges aren't optimized out.
3731 (value_contents_copy): Update comment, remove call to
3732 require_not_optimized_out.
3733 (value_contents_equal): Adjust to check whether the optimized_out
3734 vec is empty.
3735 (set_value_optimized_out, value_optimized_out_const): Delete.
3736 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3737 New functions.
3738 (value_entirely_optimized_out, value_bits_valid): Delete.
3739 (value_copy): Take a VEC copy of the 'optimized_out' field.
3740 (value_primitive_field): Remove special handling of optimized out.
3741 (value_fetch_lazy): Assert that lazy values have no unavailable
3742 regions. Use value_bits_any_optimized_out. Remove some special
3743 handling for optimized out values.
3744 * value.h: Add intro comment about <optimized out> and
3745 <unavailable>.
3746 (struct lval_funcs): Remove check_validity and check_any_valid
3747 fields.
3748 (set_value_optimized_out, value_optimized_out_const): Remove.
3749 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3750 New declarations.
3751 (value_bits_any_optimized_out): New declaration.
3752 (value_bits_valid): Delete declaration.
3753 (value_available_contents_eq): Rename to ...
3754 (value_contents_eq): ... this, and extend comments.
3755
3756 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3757
3758 Fix -fsanitize=address on unreadable inferior strings.
3759 * valprint.c (val_print_string): Fix access before BUFFER.
3760
3761 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * target.c (target_struct_size): Remove.
3764 (target_struct_allocsize): Remove.
3765 (DEFAULT_ALLOCSIZE): Remove.
3766 (target_ops_p): New typedef.
3767 (DEF_VEC_P (target_ops_p)): New vector type.
3768 (target_structs): Change type to VEC (target_ops_p).
3769 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3770 (find_default_run_target): Rewrite for loop following changes to
3771 target_structs.
3772
3773 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3774
3775 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3776 Adjust code accordingly. Adjust function description comment.
3777
3778 2014-08-19 Yao Qi <yao@codesourcery.com>
3779
3780 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3781 types.
3782
3783 2014-08-19 Alan Modra <amodra@gmail.com>
3784
3785 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3786 * config.in: Regenerate.
3787 * configure: Regenerate.
3788
3789 2014-08-19 Tom Tromey <tromey@redhat.com>
3790 Gary Benson <gbenson@redhat.com>
3791
3792 * common/common-debug.h: New file.
3793 * common/common-debug.c: Likewise.
3794 * debug.c: Likewise.
3795 * Makefile.in (SFILES): Add common/common-debug.c.
3796 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3797 (COMMON_OBS): Add common-debug.o and debug.o.
3798 (common-debug.o): New rule.
3799 * common/common-defs.h: Include common-debug.h.
3800 * common/agent.c (debug_agent_printf): New function.
3801 (DEBUG_AGENT): Redefine.
3802 * nat/i386-dregs.c (debug_printf): Undefine.
3803
3804 2014-08-19 Gary Benson <gbenson@redhat.com>
3805
3806 * common/common-defs.h: Include print-utils.h.
3807 * utils.h: Do not include print-utils.h.
3808
3809 2014-08-19 Tom Tromey <tromey@redhat.com>
3810 Gary Benson <gbenson@redhat.com>
3811
3812 * common/common-types.h: New file.
3813 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3814 * common/common-defs.h: Include common-types.h.
3815 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3816 (ULONGEST): Remove.
3817
3818 2014-08-19 Tom Tromey <tromey@redhat.com>
3819 Gary Benson <gbenson@redhat.com>
3820
3821 * common/errors.h: New file.
3822 * common/errors.c: Likewise.
3823 * Makefile.in (SFILES): Add common/errors.c.
3824 (HFILES_NO_SRCDIR): Add common/errors.h.
3825 (COMMON_OBS): Add errors.o.
3826 (errors.o): New rule.
3827 * common/common-defs.h: Include errors.h.
3828 * utils.h (perror_with_name, error, verror, warning, vwarning):
3829 Don't declare.
3830 * common/common-utils.h: (malloc_failure, internal_error):
3831 Likewise.
3832
3833 2014-08-19 Gary Benson <gbenson@redhat.com>
3834
3835 * utils.c (internal_vproblem): Always print the message.
3836
3837 2014-08-18 Doug Evans <dje@google.com>
3838
3839 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3840
3841 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3842
3843 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3844 Return 0 if TYPE is dynamic.
3845 (print_range): Add handling of dynamic ranges.
3846
3847 2014-08-18 Keven Boell <keven.boell@intel.com>
3848 Joel Brobecker <brobecker@adacore.com>
3849
3850 * gdbtypes.h (struct main_type): Add field "data_location".
3851 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3852 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3853 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3854 a dynamic data location.
3855 (resolve_dynamic_type): Add DW_AT_data_location handling.
3856 (copy_recursive, copy_type): Copy the data_location information
3857 when present.
3858 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3859 * value.c (value_from_contents_and_address): Add
3860 DW_AT_data_location handling.
3861
3862 2014-08-18 Keven Boell <keven.boell@intel.com>
3863 Joel Brobecker <brobecker@adacore.com>
3864
3865 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3866 field "get_object_address".
3867 * dwarf2expr.c (execute_stack_op): Add handling for
3868 DW_OP_push_object_address.
3869 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3870 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3871 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3872 (dwarf_expr_get_obj_addr): New function.
3873 (dwarf_expr_ctx_funcs): Add get_object_address field.
3874 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3875 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3876 (dwarf2_evaluate_property): Add parameter "address". Use it.
3877 (needs_get_obj_addr): New function.
3878 (needs_frame_ctx_funcs): Add get_object_address field.
3879 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3880 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3881 (resolve_dynamic_array): Likewise.
3882
3883 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3884
3885 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3886 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3887 fixed value for records and unions for which some GNAT encodings
3888 are present.
3889
3890 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3891
3892 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3893 rewrite to avoid "else if" and "else" constructs. Should be
3894 a no-op in practice.
3895
3896 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3897
3898 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3899 of lexical block.
3900
3901 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3902
3903 PR c++/17132
3904 * eval.c: Update all calls to find_overload_match.
3905 * valarith.c: Likewise.
3906 (value_user_defined_cpp_op, value_user_defined_op): New
3907 argument NOSIDE. Update all callers.
3908 * valops.c (find_overload_match): New argument NOSIDE.
3909 * value.h (find_overload_match): Update signature.
3910
3911 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3912
3913 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3914 'items' methods instead of 'iteritems' method on dictionaries.
3915
3916 2014-08-15 Doug Evans <dje@google.com>
3917
3918 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3919 closer to use.
3920
3921 2014-08-15 Doug Evans <dje@google.com>
3922
3923 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3924
3925 2014-08-15 Doug Evans <dje@google.com>
3926
3927 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3928
3929 2014-08-15 Doug Evans <dje@google.com>
3930
3931 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3932 unused.
3933
3934 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3935
3936 * dcache.h: Include target.h, to avoid compile time warnings.
3937
3938 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3939
3940 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3941 frame_info" partial declaration.
3942 * gdbarch.h: Regenerate.
3943
3944 2014-08-15 Yao Qi <yao@codesourcery.com>
3945
3946 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3947 Add parameter 'decode_for_pst_p'. Callers update.
3948
3949 2014-08-13 Yao Qi <yao@codesourcery.com>
3950
3951 PR build/17104
3952 * configure.ac: Use local variable 'pos'.
3953 * configure: Regenerated.
3954
3955 2014-08-11 Doug Evans <dje@google.com>
3956
3957 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3958 message, it is redundant with "Reading symbols from ..." message.
3959
3960 2014-08-10 Doug Evans <xdje42@gmail.com>
3961
3962 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3963
3964 2014-08-09 Yao Qi <yao@codesourcery.com>
3965
3966 PR remote/9053
3967 * remote.c (remote_xfer_partial): Remove dead code.
3968
3969 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3970
3971 * ia64-linux-tdep.c: Include "regset.h".
3972 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3973 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3974 (ia64_linux_supply_fpregset): New function.
3975 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3976 (ia64_linux_regset_from_core_section): New function.
3977 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3978 method.
3979
3980 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3981
3982 * m68klinux-tdep.c: Include "regset.h".
3983 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3984 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3985 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3986 (m68k_linux_regset_from_core_section): New function.
3987 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3988 method.
3989
3990 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3991
3992 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3993 function. Move logic to...
3994 (tilegx_linux_regmap): ... this new register map.
3995 (tilegx_linux_regset): Refer to register map, replace supply
3996 method by regcache_supply_regset, and add collect method.
3997 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3998 TILEGX_FIRST_EASY_REGNUM.
3999
4000 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4001
4002 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4003 that calls regcache_supply_regset and handles the EPC register
4004 separately. Move main logic to...
4005 (score7_linux_gregmap): ... this new register map.
4006 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4007 (score7_linux_gregset): Refer to register map. Add collect method.
4008 (score7_linux_regset_from_core_section): Replace
4009 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4010 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4011 (struct regset): Delete unused forward declaraction.
4012 (struct pt_regs): Delete structure definition.
4013 (elf_gregset_t): Delete typedef.
4014
4015 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4016
4017 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4018 (nios2_core_regset): Add collect method.
4019
4020 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4021
4022 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4023 platform-independent and don't write to read-only input buffer.
4024 (m32r_linux_collect_gregset): New function.
4025 (m32r_linux_gregset): Add collect method.
4026
4027 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4028
4029 * hppa-linux-tdep.c (greg_map): Rename to...
4030 (hppa_linux_gregmap): ... this. Also convert to
4031 regcache_map_entry format.
4032 (hppa_linux_supply_regset): Delete function.
4033 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4034 (hppa_linux_fpregmap): ... this new register map.
4035 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4036 register map, replace supply method by regcache_supply_regset, and
4037 add collect method regcache_collect_regset.
4038
4039 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4040
4041 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4042 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4043 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4044 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4045 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4046 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4047 (frv_linux_supply_gregset): Replace main logic by call to
4048 regcache_supply_regset, but keep clearing gr32-gr63.
4049 (frv_linux_supply_fpregset): Delete function.
4050 (frv_linux_gregset): Refer to appropriate register map and add
4051 regcache_collect_regset as the collect method.
4052 (frv_linux_fpregset): Likewise. Also exchange the supply method
4053 by regcache_supply_regset.
4054
4055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4056
4057 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4058 by call to alpha_supply_int_regs.
4059 (alpha_linux_collect_gregset): New function.
4060 (alpha_linux_supply_fpregset): Replace logic by call to
4061 alpha_supply_fp_regs.
4062 (alpha_linux_collect_fpregset): New function.
4063 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4064
4065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4066
4067 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4068 by call to regcache_collect_regset.
4069 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4070 instead of aarch64_linux_supply_gregset/_fpregset.
4071 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4072 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4073 header file instead.
4074 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4075 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4076 functions. Move logic to ...
4077 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4078 register maps.
4079 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4080 refer to new register maps, replace *_regset_from_core by
4081 regcache_supply_regset, and also use regcache_collect_regset.
4082 * aarch64-linux-tdep.h: Include "regset.h".
4083 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4084 Delete prototypes.
4085 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4086 macros, moved from C source file.
4087 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4088 variable declarations.
4089
4090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4091
4092 * s390-linux-nat.c: Include "regset.h".
4093 (regmap_gregset): Delete macro.
4094 (s390_64_regmap_gregset): New register map for
4095 regcache_supply/_collect_regset.
4096 (s390_64_gregset): New regset.
4097 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4098 (regmap_fpregset): Delete macro.
4099 (s390_native_supply, s390_native_collect): Delete functions.
4100 (supply_gregset, fill_gregset): Replace s390-specific regmap
4101 handling by a call to regcache_supply/_collect_regset.
4102 (supply_fpregset, fill_fpregset): Call regcache_supply/
4103 _collect_regset instead of s390_native_supply/_collect.
4104 (fetch_regset, store_regset): Likewise. Also change the last
4105 parameter to a regset instead of a regmap.
4106 (s390_linux_fetch_inferior_registers)
4107 (390_linux_store_inferior_registers): Adjust last parameter in
4108 calls to fetch_regset and store_regset.
4109 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4110 (s390_gregmap): ... this. Also make static const and convert to
4111 regcache_map_entry format.
4112 (s390x_regmap_gregset): Delete.
4113 (s390_regmap_fpregset): Rename to...
4114 (s390_fpregmap): ... this. Make static const and convert to
4115 regcache_map_entry format.
4116 (s390_regmap_upper, s390_regmap_last_break)
4117 (s390x_regmap_last_break, s390_regmap_system_call)
4118 (s390_regmap_tdb): Likewise.
4119 (s390_supply_regset, s390_collect_regset): Remove functions.
4120 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4121 s390_supply_regset.
4122 (s390_gregset, s390_fpregset, s390_upper_regset)
4123 (s390_last_break_regset, s390x_last_break_regset)
4124 (s390_system_call_regset, s390_tdb_regset): Make global and
4125 replace s390_supply/_collect_regset by regcache_supply/
4126 _collect_regset.
4127 (s390x_gregset): Delete.
4128 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4129 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4130 (s390_regmap_fpregset, s390_regmap_last_break)
4131 (s390x_regmap_last_break, s390_regmap_system_call)
4132 (s390_regmap_tdb): Delete global variable declarations.
4133 (s390_gregset, s390_fpregset, s390_last_break_regset)
4134 (s390x_last_break_regset, s390_system_call_regset)
4135 (s390_tdb_regset): New global variable declarations.
4136
4137 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4138
4139 * regcache.c: Include "regset.h".
4140 (regcache_transfer_regset): New local function.
4141 (regcache_supply_regset, regcache_collect_regset): New functions.
4142 * regcache.h (struct regcache_map_entry): New structure.
4143 (REGCACHE_MAP_SKIP): New enum value.
4144 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4145
4146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4147
4148 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4149 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4150 (ppc_linux_collect_gregset ): Likewise.
4151 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4152 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4153 (ppc_collect_vrregset): Likewise.
4154 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4155 Likewise.
4156
4157 2014-08-07 Yao Qi <yao@codesourcery.com>
4158
4159 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4160 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4161 * remote.c (remote_read_bytes): Likewise.
4162
4163 2014-08-07 Yao Qi <yao@codesourcery.com>
4164
4165 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4166
4167 2014-08-07 Yao Qi <yao@codesourcery.com>
4168
4169 PR remote/17230
4170 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4171 TARGET_XFER_OK instead of 0.
4172
4173 2014-08-07 Gary Benson <gbenson@redhat.com>
4174
4175 * common/common-defs.h: Include errno.h.
4176 * defs.h: Do not include errno.h.
4177 * ada-typeprint.c: Likewise.
4178 * c-typeprint.c: Likewise.
4179 * core-regset.c: Likewise.
4180 * corefile.c: Likewise.
4181 * corelow.c: Likewise.
4182 * event-loop.c: Likewise.
4183 * f-typeprint.c: Likewise.
4184 * gnu-nat.c: Likewise.
4185 * go32-nat.c: Likewise.
4186 * i386gnu-nat.c: Likewise.
4187 * m2-typeprint.c: Likewise.
4188 * nat/linux-btrace.c: Likewise.
4189 * p-typeprint.c: Likewise.
4190 * procfs.c: Likewise.
4191 * remote-sim.c: Likewise.
4192 * rs6000-nat.c: Likewise.
4193 * target.c: Likewise.
4194 * typeprint.c: Likewise.
4195 * ui-file.c: Likewise.
4196 * valops.c: Likewise.
4197 * valprint.c: Likewise.
4198
4199 2014-08-07 Gary Benson <gbenson@redhat.com>
4200
4201 * common/common-defs.h: Include string.h.
4202 * aarch64-tdep.c: Do not include string.h.
4203 * ada-exp.y: Likewise.
4204 * ada-lang.c: Likewise.
4205 * ada-lex.l: Likewise.
4206 * ada-typeprint.c: Likewise.
4207 * ada-valprint.c: Likewise.
4208 * aix-thread.c: Likewise.
4209 * alpha-linux-tdep.c: Likewise.
4210 * alpha-mdebug-tdep.c: Likewise.
4211 * alpha-nat.c: Likewise.
4212 * alpha-osf1-tdep.c: Likewise.
4213 * alpha-tdep.c: Likewise.
4214 * alphanbsd-tdep.c: Likewise.
4215 * amd64-dicos-tdep.c: Likewise.
4216 * amd64-linux-tdep.c: Likewise.
4217 * amd64-nat.c: Likewise.
4218 * amd64-sol2-tdep.c: Likewise.
4219 * amd64fbsd-tdep.c: Likewise.
4220 * amd64obsd-tdep.c: Likewise.
4221 * arch-utils.c: Likewise.
4222 * arm-linux-nat.c: Likewise.
4223 * arm-linux-tdep.c: Likewise.
4224 * arm-tdep.c: Likewise.
4225 * arm-wince-tdep.c: Likewise.
4226 * armbsd-tdep.c: Likewise.
4227 * armnbsd-nat.c: Likewise.
4228 * armnbsd-tdep.c: Likewise.
4229 * armobsd-tdep.c: Likewise.
4230 * avr-tdep.c: Likewise.
4231 * ax-gdb.c: Likewise.
4232 * ax-general.c: Likewise.
4233 * bcache.c: Likewise.
4234 * bfin-tdep.c: Likewise.
4235 * breakpoint.c: Likewise.
4236 * build-id.c: Likewise.
4237 * buildsym.c: Likewise.
4238 * c-exp.y: Likewise.
4239 * c-lang.c: Likewise.
4240 * c-typeprint.c: Likewise.
4241 * c-valprint.c: Likewise.
4242 * charset.c: Likewise.
4243 * cli-out.c: Likewise.
4244 * cli/cli-cmds.c: Likewise.
4245 * cli/cli-decode.c: Likewise.
4246 * cli/cli-dump.c: Likewise.
4247 * cli/cli-interp.c: Likewise.
4248 * cli/cli-logging.c: Likewise.
4249 * cli/cli-script.c: Likewise.
4250 * cli/cli-setshow.c: Likewise.
4251 * cli/cli-utils.c: Likewise.
4252 * coffread.c: Likewise.
4253 * common/agent.c: Likewise.
4254 * common/buffer.c: Likewise.
4255 * common/buffer.h: Likewise.
4256 * common/common-utils.c: Likewise.
4257 * common/filestuff.c: Likewise.
4258 * common/filestuff.c: Likewise.
4259 * common/format.c: Likewise.
4260 * common/print-utils.c: Likewise.
4261 * common/rsp-low.c: Likewise.
4262 * common/signals.c: Likewise.
4263 * common/vec.h: Likewise.
4264 * common/xml-utils.c: Likewise.
4265 * core-regset.c: Likewise.
4266 * corefile.c: Likewise.
4267 * corelow.c: Likewise.
4268 * cp-abi.c: Likewise.
4269 * cp-name-parser.y: Likewise.
4270 * cp-support.c: Likewise.
4271 * cp-valprint.c: Likewise.
4272 * cris-tdep.c: Likewise.
4273 * d-exp.y: Likewise.
4274 * darwin-nat.c: Likewise.
4275 * dbxread.c: Likewise.
4276 * dcache.c: Likewise.
4277 * demangle.c: Likewise.
4278 * dicos-tdep.c: Likewise.
4279 * disasm.c: Likewise.
4280 * doublest.c: Likewise.
4281 * dsrec.c: Likewise.
4282 * dummy-frame.c: Likewise.
4283 * dwarf2-frame.c: Likewise.
4284 * dwarf2loc.c: Likewise.
4285 * dwarf2read.c: Likewise.
4286 * elfread.c: Likewise.
4287 * environ.c: Likewise.
4288 * eval.c: Likewise.
4289 * event-loop.c: Likewise.
4290 * exceptions.c: Likewise.
4291 * exec.c: Likewise.
4292 * expprint.c: Likewise.
4293 * f-exp.y: Likewise.
4294 * f-lang.c: Likewise.
4295 * f-typeprint.c: Likewise.
4296 * f-valprint.c: Likewise.
4297 * fbsd-nat.c: Likewise.
4298 * findcmd.c: Likewise.
4299 * findvar.c: Likewise.
4300 * fork-child.c: Likewise.
4301 * frame.c: Likewise.
4302 * frv-linux-tdep.c: Likewise.
4303 * frv-tdep.c: Likewise.
4304 * gdb.c: Likewise.
4305 * gdb_bfd.c: Likewise.
4306 * gdbarch.c: Likewise.
4307 * gdbarch.sh: Likewise.
4308 * gdbtypes.c: Likewise.
4309 * gnu-nat.c: Likewise.
4310 * gnu-v2-abi.c: Likewise.
4311 * gnu-v3-abi.c: Likewise.
4312 * go-exp.y: Likewise.
4313 * go-lang.c: Likewise.
4314 * go32-nat.c: Likewise.
4315 * guile/guile.c: Likewise.
4316 * guile/scm-auto-load.c: Likewise.
4317 * hppa-hpux-tdep.c: Likewise.
4318 * hppa-linux-nat.c: Likewise.
4319 * hppanbsd-tdep.c: Likewise.
4320 * hppaobsd-tdep.c: Likewise.
4321 * i386-cygwin-tdep.c: Likewise.
4322 * i386-dicos-tdep.c: Likewise.
4323 * i386-linux-tdep.c: Likewise.
4324 * i386-nto-tdep.c: Likewise.
4325 * i386-sol2-tdep.c: Likewise.
4326 * i386-tdep.c: Likewise.
4327 * i386bsd-tdep.c: Likewise.
4328 * i386gnu-nat.c: Likewise.
4329 * i386nbsd-tdep.c: Likewise.
4330 * i386obsd-tdep.c: Likewise.
4331 * i387-tdep.c: Likewise.
4332 * ia64-libunwind-tdep.c: Likewise.
4333 * ia64-linux-nat.c: Likewise.
4334 * inf-child.c: Likewise.
4335 * inf-ptrace.c: Likewise.
4336 * inf-ttrace.c: Likewise.
4337 * infcall.c: Likewise.
4338 * infcmd.c: Likewise.
4339 * inflow.c: Likewise.
4340 * infrun.c: Likewise.
4341 * interps.c: Likewise.
4342 * iq2000-tdep.c: Likewise.
4343 * irix5-nat.c: Likewise.
4344 * jv-exp.y: Likewise.
4345 * jv-lang.c: Likewise.
4346 * jv-typeprint.c: Likewise.
4347 * jv-valprint.c: Likewise.
4348 * language.c: Likewise.
4349 * linux-fork.c: Likewise.
4350 * linux-nat.c: Likewise.
4351 * lm32-tdep.c: Likewise.
4352 * m2-exp.y: Likewise.
4353 * m2-typeprint.c: Likewise.
4354 * m32c-tdep.c: Likewise.
4355 * m32r-linux-nat.c: Likewise.
4356 * m32r-linux-tdep.c: Likewise.
4357 * m32r-rom.c: Likewise.
4358 * m32r-tdep.c: Likewise.
4359 * m68hc11-tdep.c: Likewise.
4360 * m68k-tdep.c: Likewise.
4361 * m68kbsd-tdep.c: Likewise.
4362 * m68klinux-nat.c: Likewise.
4363 * m68klinux-tdep.c: Likewise.
4364 * m88k-tdep.c: Likewise.
4365 * machoread.c: Likewise.
4366 * macrocmd.c: Likewise.
4367 * main.c: Likewise.
4368 * mdebugread.c: Likewise.
4369 * mem-break.c: Likewise.
4370 * memattr.c: Likewise.
4371 * memory-map.c: Likewise.
4372 * mep-tdep.c: Likewise.
4373 * mi/mi-cmd-break.c: Likewise.
4374 * mi/mi-cmd-disas.c: Likewise.
4375 * mi/mi-cmd-env.c: Likewise.
4376 * mi/mi-cmd-stack.c: Likewise.
4377 * mi/mi-cmd-var.c: Likewise.
4378 * mi/mi-cmds.c: Likewise.
4379 * mi/mi-console.c: Likewise.
4380 * mi/mi-getopt.c: Likewise.
4381 * mi/mi-interp.c: Likewise.
4382 * mi/mi-main.c: Likewise.
4383 * mi/mi-parse.c: Likewise.
4384 * microblaze-rom.c: Likewise.
4385 * microblaze-tdep.c: Likewise.
4386 * mingw-hdep.c: Likewise.
4387 * minidebug.c: Likewise.
4388 * minsyms.c: Likewise.
4389 * mips-irix-tdep.c: Likewise.
4390 * mips-linux-tdep.c: Likewise.
4391 * mips-tdep.c: Likewise.
4392 * mips64obsd-tdep.c: Likewise.
4393 * mipsnbsd-tdep.c: Likewise.
4394 * mipsread.c: Likewise.
4395 * mn10300-linux-tdep.c: Likewise.
4396 * mn10300-tdep.c: Likewise.
4397 * monitor.c: Likewise.
4398 * moxie-tdep.c: Likewise.
4399 * mt-tdep.c: Likewise.
4400 * nat/linux-btrace.c: Likewise.
4401 * nat/linux-osdata.c: Likewise.
4402 * nat/linux-procfs.c: Likewise.
4403 * nat/linux-ptrace.c: Likewise.
4404 * nat/linux-waitpid.c: Likewise.
4405 * nbsd-tdep.c: Likewise.
4406 * nios2-linux-tdep.c: Likewise.
4407 * nto-procfs.c: Likewise.
4408 * nto-tdep.c: Likewise.
4409 * objc-lang.c: Likewise.
4410 * objfiles.c: Likewise.
4411 * opencl-lang.c: Likewise.
4412 * osabi.c: Likewise.
4413 * osdata.c: Likewise.
4414 * p-exp.y: Likewise.
4415 * p-lang.c: Likewise.
4416 * p-typeprint.c: Likewise.
4417 * parse.c: Likewise.
4418 * posix-hdep.c: Likewise.
4419 * ppc-linux-nat.c: Likewise.
4420 * ppc-sysv-tdep.c: Likewise.
4421 * ppcfbsd-tdep.c: Likewise.
4422 * ppcnbsd-tdep.c: Likewise.
4423 * ppcobsd-tdep.c: Likewise.
4424 * printcmd.c: Likewise.
4425 * procfs.c: Likewise.
4426 * prologue-value.c: Likewise.
4427 * python/py-auto-load.c: Likewise.
4428 * python/py-gdb-readline.c: Likewise.
4429 * ravenscar-thread.c: Likewise.
4430 * regcache.c: Likewise.
4431 * registry.c: Likewise.
4432 * remote-fileio.c: Likewise.
4433 * remote-m32r-sdi.c: Likewise.
4434 * remote-mips.c: Likewise.
4435 * remote-notif.c: Likewise.
4436 * remote-sim.c: Likewise.
4437 * remote.c: Likewise.
4438 * reverse.c: Likewise.
4439 * rs6000-aix-tdep.c: Likewise.
4440 * ser-base.c: Likewise.
4441 * ser-go32.c: Likewise.
4442 * ser-mingw.c: Likewise.
4443 * ser-pipe.c: Likewise.
4444 * ser-tcp.c: Likewise.
4445 * ser-unix.c: Likewise.
4446 * serial.c: Likewise.
4447 * sh-tdep.c: Likewise.
4448 * sh64-tdep.c: Likewise.
4449 * shnbsd-tdep.c: Likewise.
4450 * skip.c: Likewise.
4451 * sol-thread.c: Likewise.
4452 * solib-dsbt.c: Likewise.
4453 * solib-frv.c: Likewise.
4454 * solib-osf.c: Likewise.
4455 * solib-som.c: Likewise.
4456 * solib-spu.c: Likewise.
4457 * solib-target.c: Likewise.
4458 * solib.c: Likewise.
4459 * somread.c: Likewise.
4460 * source.c: Likewise.
4461 * sparc-nat.c: Likewise.
4462 * sparc-sol2-tdep.c: Likewise.
4463 * sparc-tdep.c: Likewise.
4464 * sparc64-tdep.c: Likewise.
4465 * sparc64fbsd-tdep.c: Likewise.
4466 * sparc64nbsd-tdep.c: Likewise.
4467 * sparcnbsd-tdep.c: Likewise.
4468 * spu-linux-nat.c: Likewise.
4469 * spu-multiarch.c: Likewise.
4470 * spu-tdep.c: Likewise.
4471 * stabsread.c: Likewise.
4472 * stack.c: Likewise.
4473 * std-regs.c: Likewise.
4474 * symfile.c: Likewise.
4475 * symmisc.c: Likewise.
4476 * symtab.c: Likewise.
4477 * target.c: Likewise.
4478 * thread.c: Likewise.
4479 * tilegx-linux-nat.c: Likewise.
4480 * tilegx-tdep.c: Likewise.
4481 * top.c: Likewise.
4482 * tracepoint.c: Likewise.
4483 * tui/tui-command.c: Likewise.
4484 * tui/tui-data.c: Likewise.
4485 * tui/tui-disasm.c: Likewise.
4486 * tui/tui-file.c: Likewise.
4487 * tui/tui-layout.c: Likewise.
4488 * tui/tui-out.c: Likewise.
4489 * tui/tui-regs.c: Likewise.
4490 * tui/tui-source.c: Likewise.
4491 * tui/tui-stack.c: Likewise.
4492 * tui/tui-win.c: Likewise.
4493 * tui/tui-windata.c: Likewise.
4494 * tui/tui-winsource.c: Likewise.
4495 * typeprint.c: Likewise.
4496 * ui-file.c: Likewise.
4497 * ui-out.c: Likewise.
4498 * user-regs.c: Likewise.
4499 * utils.c: Likewise.
4500 * v850-tdep.c: Likewise.
4501 * valarith.c: Likewise.
4502 * valops.c: Likewise.
4503 * valprint.c: Likewise.
4504 * value.c: Likewise.
4505 * varobj.c: Likewise.
4506 * vax-tdep.c: Likewise.
4507 * vaxnbsd-tdep.c: Likewise.
4508 * vaxobsd-tdep.c: Likewise.
4509 * windows-nat.c: Likewise.
4510 * xcoffread.c: Likewise.
4511 * xml-support.c: Likewise.
4512 * xstormy16-tdep.c: Likewise.
4513 * xtensa-linux-nat.c: Likewise.
4514
4515 2014-08-07 Gary Benson <gbenson@redhat.com>
4516
4517 * common/common-defs.h: Include gdb_assert.h.
4518 * aarch64-tdep.c: Do not include gdb_assert.h.
4519 * addrmap.c: Likewise.
4520 * aix-thread.c: Likewise.
4521 * alpha-linux-tdep.c: Likewise.
4522 * alpha-mdebug-tdep.c: Likewise.
4523 * alphanbsd-tdep.c: Likewise.
4524 * amd64-nat.c: Likewise.
4525 * amd64-tdep.c: Likewise.
4526 * amd64bsd-nat.c: Likewise.
4527 * amd64fbsd-nat.c: Likewise.
4528 * amd64fbsd-tdep.c: Likewise.
4529 * amd64nbsd-nat.c: Likewise.
4530 * amd64nbsd-tdep.c: Likewise.
4531 * amd64obsd-nat.c: Likewise.
4532 * amd64obsd-tdep.c: Likewise.
4533 * arch-utils.c: Likewise.
4534 * arm-tdep.c: Likewise.
4535 * armbsd-tdep.c: Likewise.
4536 * auxv.c: Likewise.
4537 * bcache.c: Likewise.
4538 * bfin-tdep.c: Likewise.
4539 * blockframe.c: Likewise.
4540 * breakpoint.c: Likewise.
4541 * bsd-kvm.c: Likewise.
4542 * bsd-uthread.c: Likewise.
4543 * buildsym.c: Likewise.
4544 * c-exp.y: Likewise.
4545 * c-lang.c: Likewise.
4546 * charset.c: Likewise.
4547 * cleanups.c: Likewise.
4548 * cli-out.c: Likewise.
4549 * cli/cli-decode.c: Likewise.
4550 * cli/cli-dump.c: Likewise.
4551 * cli/cli-logging.c: Likewise.
4552 * cli/cli-script.c: Likewise.
4553 * cli/cli-utils.c: Likewise.
4554 * coffread.c: Likewise.
4555 * common/common-utils.c: Likewise.
4556 * common/queue.h: Likewise.
4557 * common/signals.c: Likewise.
4558 * common/vec.h: Likewise.
4559 * complaints.c: Likewise.
4560 * completer.c: Likewise.
4561 * corelow.c: Likewise.
4562 * cp-abi.c: Likewise.
4563 * cp-name-parser.y: Likewise.
4564 * cp-namespace.c: Likewise.
4565 * cp-support.c: Likewise.
4566 * cris-tdep.c: Likewise.
4567 * dbxread.c: Likewise.
4568 * dictionary.c: Likewise.
4569 * doublest.c: Likewise.
4570 * dsrec.c: Likewise.
4571 * dummy-frame.c: Likewise.
4572 * dwarf2-frame-tailcall.c: Likewise.
4573 * dwarf2-frame.c: Likewise.
4574 * dwarf2expr.c: Likewise.
4575 * dwarf2loc.c: Likewise.
4576 * dwarf2read.c: Likewise.
4577 * eval.c: Likewise.
4578 * event-loop.c: Likewise.
4579 * exceptions.c: Likewise.
4580 * expprint.c: Likewise.
4581 * f-valprint.c: Likewise.
4582 * fbsd-nat.c: Likewise.
4583 * findvar.c: Likewise.
4584 * frame-unwind.c: Likewise.
4585 * frame.c: Likewise.
4586 * frv-tdep.c: Likewise.
4587 * gcore.c: Likewise.
4588 * gdb-dlfcn.c: Likewise.
4589 * gdb_bfd.c: Likewise.
4590 * gdbarch.c: Likewise.
4591 * gdbarch.sh: Likewise.
4592 * gdbtypes.c: Likewise.
4593 * gnu-nat.c: Likewise.
4594 * gnu-v3-abi.c: Likewise.
4595 * go-lang.c: Likewise.
4596 * guile/scm-exception.c: Likewise.
4597 * guile/scm-gsmob.c: Likewise.
4598 * guile/scm-lazy-string.c: Likewise.
4599 * guile/scm-math.c: Likewise.
4600 * guile/scm-pretty-print.c: Likewise.
4601 * guile/scm-safe-call.c: Likewise.
4602 * guile/scm-utils.c: Likewise.
4603 * guile/scm-value.c: Likewise.
4604 * h8300-tdep.c: Likewise.
4605 * hppa-hpux-nat.c: Likewise.
4606 * hppa-tdep.c: Likewise.
4607 * hppanbsd-tdep.c: Likewise.
4608 * hppaobsd-tdep.c: Likewise.
4609 * i386-darwin-nat.c: Likewise.
4610 * i386-darwin-tdep.c: Likewise.
4611 * i386-nto-tdep.c: Likewise.
4612 * i386-tdep.c: Likewise.
4613 * i386bsd-nat.c: Likewise.
4614 * i386fbsd-tdep.c: Likewise.
4615 * i386gnu-nat.c: Likewise.
4616 * i386nbsd-tdep.c: Likewise.
4617 * i386obsd-tdep.c: Likewise.
4618 * i387-tdep.c: Likewise.
4619 * ia64-libunwind-tdep.c: Likewise.
4620 * ia64-tdep.c: Likewise.
4621 * inf-ptrace.c: Likewise.
4622 * inf-ttrace.c: Likewise.
4623 * infcall.c: Likewise.
4624 * infcmd.c: Likewise.
4625 * infrun.c: Likewise.
4626 * inline-frame.c: Likewise.
4627 * interps.c: Likewise.
4628 * jv-lang.c: Likewise.
4629 * jv-typeprint.c: Likewise.
4630 * linux-fork.c: Likewise.
4631 * linux-nat.c: Likewise.
4632 * linux-thread-db.c: Likewise.
4633 * m32c-tdep.c: Likewise.
4634 * m32r-linux-nat.c: Likewise.
4635 * m32r-tdep.c: Likewise.
4636 * m68k-tdep.c: Likewise.
4637 * m68kbsd-nat.c: Likewise.
4638 * m68kbsd-tdep.c: Likewise.
4639 * m88k-tdep.c: Likewise.
4640 * machoread.c: Likewise.
4641 * macroexp.c: Likewise.
4642 * macrotab.c: Likewise.
4643 * maint.c: Likewise.
4644 * mdebugread.c: Likewise.
4645 * memory-map.c: Likewise.
4646 * mep-tdep.c: Likewise.
4647 * mi/mi-common.c: Likewise.
4648 * microblaze-tdep.c: Likewise.
4649 * mingw-hdep.c: Likewise.
4650 * mips-linux-nat.c: Likewise.
4651 * mips-linux-tdep.c: Likewise.
4652 * mips-tdep.c: Likewise.
4653 * mips64obsd-tdep.c: Likewise.
4654 * mipsnbsd-tdep.c: Likewise.
4655 * mn10300-linux-tdep.c: Likewise.
4656 * mn10300-tdep.c: Likewise.
4657 * moxie-tdep.c: Likewise.
4658 * mt-tdep.c: Likewise.
4659 * nat/linux-btrace.c: Likewise.
4660 * nat/linux-osdata.c: Likewise.
4661 * nat/linux-ptrace.c: Likewise.
4662 * nat/mips-linux-watch.c: Likewise.
4663 * nios2-linux-tdep.c: Likewise.
4664 * nios2-tdep.c: Likewise.
4665 * objc-lang.c: Likewise.
4666 * objfiles.c: Likewise.
4667 * obsd-nat.c: Likewise.
4668 * opencl-lang.c: Likewise.
4669 * osabi.c: Likewise.
4670 * parse.c: Likewise.
4671 * ppc-linux-nat.c: Likewise.
4672 * ppc-sysv-tdep.c: Likewise.
4673 * ppcfbsd-nat.c: Likewise.
4674 * ppcfbsd-tdep.c: Likewise.
4675 * ppcnbsd-nat.c: Likewise.
4676 * ppcnbsd-tdep.c: Likewise.
4677 * ppcobsd-nat.c: Likewise.
4678 * ppcobsd-tdep.c: Likewise.
4679 * printcmd.c: Likewise.
4680 * procfs.c: Likewise.
4681 * prologue-value.c: Likewise.
4682 * psymtab.c: Likewise.
4683 * python/py-lazy-string.c: Likewise.
4684 * python/py-value.c: Likewise.
4685 * regcache.c: Likewise.
4686 * reggroups.c: Likewise.
4687 * registry.c: Likewise.
4688 * remote-sim.c: Likewise.
4689 * remote.c: Likewise.
4690 * rs6000-aix-tdep.c: Likewise.
4691 * rs6000-tdep.c: Likewise.
4692 * s390-linux-tdep.c: Likewise.
4693 * score-tdep.c: Likewise.
4694 * ser-base.c: Likewise.
4695 * ser-mingw.c: Likewise.
4696 * sh-tdep.c: Likewise.
4697 * sh64-tdep.c: Likewise.
4698 * solib-darwin.c: Likewise.
4699 * solib-spu.c: Likewise.
4700 * solib-svr4.c: Likewise.
4701 * source.c: Likewise.
4702 * sparc-nat.c: Likewise.
4703 * sparc-sol2-tdep.c: Likewise.
4704 * sparc-tdep.c: Likewise.
4705 * sparc64-sol2-tdep.c: Likewise.
4706 * sparc64-tdep.c: Likewise.
4707 * sparc64fbsd-tdep.c: Likewise.
4708 * sparc64nbsd-tdep.c: Likewise.
4709 * sparc64obsd-tdep.c: Likewise.
4710 * sparcnbsd-tdep.c: Likewise.
4711 * sparcobsd-tdep.c: Likewise.
4712 * spu-multiarch.c: Likewise.
4713 * spu-tdep.c: Likewise.
4714 * stabsread.c: Likewise.
4715 * stack.c: Likewise.
4716 * symfile.c: Likewise.
4717 * symtab.c: Likewise.
4718 * target-descriptions.c: Likewise.
4719 * target-memory.c: Likewise.
4720 * target.c: Likewise.
4721 * tic6x-linux-tdep.c: Likewise.
4722 * tic6x-tdep.c: Likewise.
4723 * tilegx-linux-nat.c: Likewise.
4724 * tilegx-tdep.c: Likewise.
4725 * top.c: Likewise.
4726 * tramp-frame.c: Likewise.
4727 * tui/tui-out.c: Likewise.
4728 * tui/tui-winsource.c: Likewise.
4729 * ui-out.c: Likewise.
4730 * user-regs.c: Likewise.
4731 * utils.c: Likewise.
4732 * v850-tdep.c: Likewise.
4733 * valops.c: Likewise.
4734 * value.c: Likewise.
4735 * varobj.c: Likewise.
4736 * vax-nat.c: Likewise.
4737 * xml-syscall.c: Likewise.
4738 * xml-tdesc.c: Likewise.
4739 * xstormy16-tdep.c: Likewise.
4740 * xtensa-linux-nat.c: Likewise.
4741 * xtensa-tdep.c: Likewise.
4742
4743 2014-08-07 Gary Benson <gbenson@redhat.com>
4744
4745 * common/common-defs.h: Include common-utils.h.
4746 * defs.h: Do not include common-utils.h.
4747 * common/gdb_assert.h: Likewise.
4748 * darwin-nat.h: Likewise.
4749 * nat/linux-btrace.c: Likewise.
4750 * target/waitstatus.h: Likewise.
4751
4752 2014-08-07 Gary Benson <gbenson@redhat.com>
4753
4754 * common/common-defs.h: Include ptid.h.
4755 * defs.h: Do not include ptid.h.
4756 * inferior.h: Likewise.
4757 * infrun.h: Likewise.
4758 * nat/linux-btrace.h: Likewise.
4759 * nat/linux-osdata.h: Likewise.
4760 * target/waitstatus.h: Likewise.
4761
4762 2014-08-07 Gary Benson <gbenson@redhat.com>
4763
4764 * common/common-defs.h: Include gdb_locale.h.
4765 * defs.h: Do not include gdb_locale.h.
4766
4767 2014-08-07 Gary Benson <gbenson@redhat.com>
4768
4769 * common/common-defs.h: Include gdb/signals.h.
4770 * defs.h: Do not include gdb/signals.h.
4771
4772 2014-08-07 Gary Benson <gbenson@redhat.com>
4773
4774 * common/common-defs.h: Include pathmax.h.
4775 * defs.h: Do not include pathmax.h.
4776
4777 2014-08-07 Gary Benson <gbenson@redhat.com>
4778
4779 * common/common-defs.h: Include libiberty.h.
4780 * defs.h: Do not include libiberty.h.
4781 * common/queue.h: Likewise.
4782 * cp-name-parser.y: Likewise.
4783 * mi/mi-cmd-catch.c: Likewise.
4784 * python/python.c: Likewise.
4785
4786 2014-08-07 Gary Benson <gbenson@redhat.com>
4787
4788 * common/common-defs.h: Include ansidecl.h.
4789 * defs.h: Do not include ansidecl.h.
4790 * common/buffer.h: Likewise.
4791 * common/common-utils.h: Likewise.
4792
4793 2014-08-07 Gary Benson <gbenson@redhat.com>
4794
4795 * common/common-defs.h: Include stddef.h.
4796 * defs.h: Do not include stddef.h.
4797 * common/common-utils.h: Likewise.
4798 * amd64fbsd-nat.c: Likewise.
4799 * bcache.c: Likewise.
4800 * charset.c: Likewise.
4801 * common/buffer.h: Likewise.
4802 * common/vec.h: Likewise.
4803 * i386bsd-nat.c: Likewise.
4804 * nat/linux-btrace.h: Likewise.
4805 * ppcfbsd-nat.c: Likewise.
4806 * ppcnbsd-tdep.h: Likewise.
4807 * ppcobsd-nat.c: Likewise.
4808 * ppcobsd-tdep.h: Likewise.
4809 * python/py-gdb-readline.c: Likewise.
4810
4811 2014-08-07 Gary Benson <gbenson@redhat.com>
4812
4813 * common/common-defs.h: Include stdarg.h.
4814 * defs.h: Do not include stdarg.h.
4815 * ada-lang.c: Likewise.
4816 * common/common-utils.h: Likewise.
4817 * guile/scm-string.c: Likewise.
4818 * guile/scm-utils.c: Likewise.
4819 * m32c-tdep.c: Likewise.
4820
4821 2014-08-07 Gary Benson <gbenson@redhat.com>
4822
4823 * common/common-defs.h: Include stdlib.h.
4824 * defs.h: Do not include stdlib.h.
4825 * addrmap.c: Likewise.
4826 * bcache.c: Likewise.
4827 * common/buffer.c: Likewise.
4828 * common/common-utils.c: Likewise.
4829 * cp-name-parser.y: Likewise.
4830 * go32-nat.c: Likewise.
4831 * mn10300-linux-tdep.c: Likewise.
4832 * nat/linux-osdata.c: Likewise.
4833 * tui/tui.c: Likewise.
4834 * windows-nat.c: Likewise.
4835
4836 2014-08-07 Gary Benson <gbenson@redhat.com>
4837
4838 * common/common-defs.h: Include stdio.h.
4839 * defs.h: Do not include stdio.h.
4840 * ada-lang.c: Likewise.
4841 * common/buffer.c: Likewise.
4842 * common/common-utils.c: Likewise.
4843 * cp-name-parser.y: Likewise.
4844 * gnu-nat.c: Likewise.
4845 * go32-nat.c: Likewise.
4846 * i386gnu-nat.c: Likewise.
4847 * proc-api.c: Likewise.
4848 * proc-events.c: Likewise.
4849 * proc-flags.c: Likewise.
4850 * proc-why.c: Likewise.
4851 * python/python-internal.h: Likewise.
4852 * target-memory.c: Likewise.
4853 * tui/tui-io.c: Likewise.
4854 * tui/tui.c: Likewise.
4855
4856 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4857
4858 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4859 (scan_dyntag_auxv): Same.
4860
4861 2014-08-06 Yao Qi <yao@codesourcery.com>
4862
4863 * amd64-linux-nat.c: Remove duplicated include
4864 "x86-linux-nat.h".
4865 * i386-linux-nat.c: Likewise.
4866
4867 2014-08-06 Yao Qi <yao@codesourcery.com>
4868
4869 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4870 operand" with "Special opcode" in comments.
4871
4872 2014-08-05 Gary Benson <gbenson@redhat.com>
4873
4874 * interps.c (initialize_interps): Remove prototype.
4875 (interpreter_initialized): Remove static global.
4876 (interp_add): Do not call initialize_interps.
4877 (initialize_interps): Remove function.
4878
4879 2014-08-05 Gary Benson <gbenson@redhat.com>
4880
4881 * utils.c (vwarning): Remove spurious va_end.
4882
4883 2014-08-05 Alan Modra <amodra@gmail.com>
4884
4885 * charset.c (convert_between_encodings): Cast result of obstack_base.
4886 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4887 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4888 (read_unwind_info): Use size_t for some locals.
4889 * jit.c (finalize_symtab): Likewise.
4890 * utils.c (hashtab_obstack_allocate): Likewise.
4891 * symmisc.c (print_objfile_statistics): Update format strings.
4892
4893 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4894
4895 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4896 (Changes in GDB 7.8): ... here.
4897
4898 2014-08-04 Tom Tromey <tromey@redhat.com>
4899
4900 * target.c (set_targetdebug): New function.
4901 (initialize_targets): Pass set_targetdebug when creating "set
4902 debug target".
4903
4904 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4905
4906 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4907 if detecting a variable-sized field that is not the last field.
4908 Fix struct type length computation.
4909
4910 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4911
4912 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4913 Add debug trace.
4914
4915 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4916
4917 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4918 Remove "+ 8" offset in computation of CHAIN_VMA.
4919
4920 2014-07-31 Doug Evans <dje@google.com>
4921
4922 * inflow.c (child_terminal_inferior): Add comment.
4923 (child_terminal_ours_for_output): Add comment.
4924 (child_terminal_ours): Add comment.
4925 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4926 (linux_nat_terminal_ours): Add comment.
4927
4928 2014-07-31 Gary Benson <gbenson@redhat.com>
4929
4930 * common/btrace-common.h: Do not include defs.h or server.h.
4931 * nat/mips-linux-watch.h: Likewise.
4932 * gdb-dlfcn.h: Do not include defs.h.
4933 * tracefile.h: Likewise.
4934
4935 2014-07-30 Roland McGrath <mcgrathr@google.com>
4936
4937 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4938
4939 2014-07-30 Tom Tromey <tromey@redhat.com>
4940
4941 * bsd-kvm.c (bsd_kvm_open): Constify.
4942 * corelow.c (core_open): Constify.
4943 * ctf.c (ctf_open): Constify.
4944 * dbug-rom.c (dbug_open): Constify.
4945 * exec.c (exec_open): Constify.
4946 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4947 * microblaze-rom.c (picobug_open): Constify.
4948 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4949 Constify.
4950 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4951 * record-btrace.c (record_btrace_open): Constify.
4952 * record-full.c (record_full_core_open_1, record_full_open_1)
4953 (record_full_open): Constify.
4954 * remote-m32r-sdi.c (m32r_open): Constify.
4955 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4956 (rockhopper_open, lsi_open): Constify.
4957 * remote-sim.c (gdbsim_open): Constify.
4958 * remote.c (remote_open, extended_remote_open, remote_open_1):
4959 Constify.
4960 * target.h (struct target_ops) <to_open>: Make "arg" const.
4961 * tracefile-tfile.c (tfile_open): Constify.
4962
4963 2014-07-30 Tom Tromey <tromey@redhat.com>
4964
4965 * breakpoint.c (map_breakpoint_numbers): Update.
4966 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4967 (get_number_const): New function.
4968 (get_number): Rewrite using get_number_const.
4969 (init_number_or_range): Make "string" const.
4970 (number_is_in_list): Make "list" const.
4971 * cli/cli-utils.h (get_number_const): Declare.
4972 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4973 (init_number_or_range, number_is_in_list): Update.
4974 * printcmd.c (map_display_numbers): Update.
4975 * value.c (value_from_history_ref): Constify.
4976 * value.h (value_from_history_ref): Update.
4977
4978 2014-07-30 Tom Tromey <tromey@redhat.com>
4979
4980 * corefile.c (hook_type, call_extra_exec_file_hooks)
4981 (specify_exec_file_hook): Constify.
4982 * exec.c (exec_file_attach): Make "filename" const.
4983 * gdbcore.h (deprecated_exec_file_display_hook)
4984 (specify_exec_file_hook, exec_file_attach): Constify.
4985 * main.c (captured_main): Use catch_command_errors_const.
4986
4987 2014-07-30 Tom Tromey <tromey@redhat.com>
4988
4989 * target.c (open_target): New function.
4990 (add_target_with_completer, add_deprecated_target_alias): Use
4991 set_cmd_sfunc, set_cmd_context.
4992 (debug_to_open): Remove.
4993 (setup_target_debug): Update.
4994
4995 2014-07-30 Yao Qi <yao@codesourcery.com>
4996
4997 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4998 comments.
4999 * parse.c (exp_iterate): Update comments.
5000
5001 2014-07-30 Gary Benson <gbenson@redhat.com>
5002
5003 * common/common-defs.h: New file.
5004 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5005 * defs.h: Include common-defs.h.
5006 Do not include config.h or build-gnulib/config.h.
5007
5008 2014-07-30 Gary Benson <gbenson@redhat.com>
5009
5010 * common/common-utils.h: Do not include config.h.
5011 * nat/linux-btrace.h: Likewise.
5012
5013 2014-07-30 Gary Benson <gbenson@redhat.com>
5014
5015 * btrace.c: Include defs.h.
5016 * common/ptid.c: Include defs.h or server.h as appropriate.
5017 * nat/mips-linux-watch.c: Likewise.
5018
5019 2014-07-29 Tom Tromey <tromey@redhat.com>
5020
5021 * target.c (target_is_pushed): Simplify.
5022
5023 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5024
5025 GDB 7.8 released.
5026
5027 2014-07-29 Yao Qi <yao@codesourcery.com>
5028
5029 PR gdb/17206
5030 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5031
5032 2014-07-28 Doug Evans <xdje42@gmail.com>
5033
5034 PR guile/17203
5035 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5036 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5037 parameters.
5038
5039 2014-07-28 Will Newton <will.newton@linaro.org>
5040
5041 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5042 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5043 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5044 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5045 (THUMB2_EABI_SYSCALL): Likewise.
5046 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5047 struct tramp_frame.
5048 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5049 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5050
5051 2014-07-27 Doug Evans <xdje42@gmail.com>
5052
5053 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5054
5055 2014-07-27 Doug Evans <xdje42@gmail.com>
5056
5057 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5058
5059 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5060 Doug Evans <xdje42@gmail.com>
5061
5062 PR guile/17146
5063 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5064 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5065 * configure.ac: Try to use guild to compile an scm file, if it fails
5066 then disable guile support.
5067 * configure: Regenerate.
5068 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5069 GUILE_FILE_LIST.
5070 (GUILE_COMPILED_FILES): New variable.
5071 (GUILE_FILES) Update.
5072 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5073 (stamp-guile): Compile scm files.
5074 * guile/guile.c (boot_guile_support): New function.
5075 (standard_throw_args_p): New function.
5076 (print_standard_throw_error, print_throw_error): New functions.
5077 (handle_boot_error): New function.
5078 (initialize_scheme_side): Rewrite to call boot_guile_support.
5079 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5080 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5081
5082 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5083 Doug Evans <xdje42@gmail.com>
5084
5085 PR guile/17146
5086 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5087 * guile/lib/gdb/support.scm: New file.
5088 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5089 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5090 All uses updated.
5091 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5092 All uses updated.
5093 (%assert-type): Ditto, and renamed to assert-type.
5094 (%exception-print-style): Delete.
5095
5096 2014-07-26 Doug Evans <xdje42@gmail.com>
5097
5098 PR build/17105
5099 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5100 * configure: Regenerate.
5101 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5102 PYTHON_FILES.
5103 (PYTHON_FILES): New variable.
5104 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5105 (GUILE_FILES): New variable.
5106 (stamp-python, install-python, uninstall-python): Handle empty
5107 file list.
5108 (stamp-guile, install-guile, uninstall-guile): Ditto.
5109
5110 2014-07-26 Doug Evans <xdje42@gmail.com>
5111
5112 PR guile/17177
5113 * guile/lib/gdb.scm (pretty-printers): Export.
5114 (set-pretty-printers!): Export.
5115 * guile/lib/gdb/printing.scm (gdb module): Update.
5116 (prepend-pretty-printer!, append-pretty-printer!): Update.
5117 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5118 (pretty_printer_list_var): Delete.
5119 (pretty_printer_list): New static global.
5120 (gdbscm_pretty_printers): New function.
5121 (gdbscm_set_pretty_printers_x): New function.
5122 (ppscm_find_pretty_printer_from_gdb): Update.
5123 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5124 (gdbscm_initialize_pretty_printers): Update.
5125
5126 2014-07-26 Doug Evans <xdje42@gmail.com>
5127
5128 PR 17185
5129 * configure.ac: Add check for header gc/gc.h.
5130 Add check for function setenv.
5131 * configure: Regenerate.
5132 * config.in: Regenerate.
5133 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5134
5135 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5136
5137 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5138 variation in gdbarch matching.
5139
5140 2014-07-25 Tom Tromey <tromey@redhat.com>
5141
5142 * exec.c (using_exec_ops): Remove.
5143 (exec_close_1): Update. Remove extraneous block, reindent.
5144 (add_target_sections): Use target_is_pushed.
5145
5146 2014-07-25 Pedro Alves <palves@redhat.com>
5147
5148 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5149 * monitor.c (monitor_create_inferior): Likewise.
5150 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5151 * remote-sim.c (gdbsim_create_inferior): Likewise.
5152 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5153 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5154 * windows-nat.c (do_initial_windows_stuff): Likewise.
5155
5156 2014-07-25 Pedro Alves <palves@redhat.com>
5157
5158 * NEWS: Mention signal passing and "signal" command changes.
5159 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5160 comment.
5161 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5162 call.
5163 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5164 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5165 (jump_command): Adjust clear_proceed_status call.
5166 (signal_command): Warn if other thread that are resumed have
5167 signals that will be delivered. Adjust clear_proceed_status call.
5168 (until_next_command, finish_command)
5169 (proceed_after_attach_callback, attach_command_post_wait)
5170 (attach_command): Adjust clear_proceed_status call.
5171 * infrun.c (proceed_after_vfork_done): Likewise.
5172 (proceed_after_attach_callback): Adjust comment.
5173 (clear_proceed_status_thread): Clear stop_signal if not in pass
5174 state.
5175 (clear_proceed_status_callback): Delete.
5176 (clear_proceed_status): New 'step' parameter. Only clear the
5177 proceed status of threads the command being prepared is about to
5178 resume.
5179 (proceed): If passed in an explicit signal, override stop_signal
5180 with it. Don't pass the last stop signal to the thread we're
5181 resuming.
5182 (init_wait_for_inferior): Adjust clear_proceed_status call.
5183 (switch_back_to_stepped_thread): Clear the signal if it should not
5184 be passed.
5185 * infrun.h (clear_proceed_status): New 'step' parameter.
5186 (user_visible_resume_ptid): Add comment.
5187 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5188 signal is in pass state.
5189 * remote.c (append_pending_thread_resumptions): Likewise.
5190 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5191
5192 2014-07-25 Tom Tromey <tromey@redhat.com>
5193
5194 * target.h (target_stopped_data_address)
5195 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5196 parentheses.
5197
5198 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5199
5200 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5201 comments.
5202 (avr_pointer_to_address): Likewise.
5203
5204 2014-07-24 Tom Tromey <tromey@redhat.com>
5205
5206 * monitor.c (compile_pattern): Update.
5207 * target.h (struct target_ops) <to_shortname, to_longname,
5208 to_doc>: Now const.
5209
5210 2014-07-24 Tom Tromey <tromey@redhat.com>
5211
5212 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5213 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5214 (add_info_alias, add_com): Make "doc" const.
5215 (print_doc_line): Make "str" const.
5216 (delete_cmd): Update.
5217 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5218 (print_doc_line): Update.
5219 * cli/cli-script.c (document_command): Update.
5220 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5221 (add_com, add_info, add_info_alias): Update.
5222 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5223 * python/py-cmd.c (cmdpy_destroyer): Update.
5224
5225 2014-07-24 Tom Tromey <tromey@redhat.com>
5226
5227 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5228 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5229 (help_cmd_list): Constify.
5230 (lookup_cmd): Update.
5231 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5232 const.
5233 (help_cmd_list, apropos_cmd): Update.
5234 * cli/cli-script.c (show_user): Update.
5235 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5236 * cli/cli-setshow.h (cmd_show_list): Update.
5237 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5238 (cmd_show_list): Update.
5239 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5240 * python/py-cmd.c (cmdpy_destroyer): Update.
5241
5242 2014-07-24 Tom Tromey <tromey@redhat.com>
5243
5244 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5245 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5246 const.
5247 * command.h (deprecate_cmd): Update.
5248 * maint.c (maintenance_do_deprecate): Add casts.
5249
5250 2014-07-24 Tom Tromey <tromey@redhat.com>
5251
5252 * cli/cli-decode.c (help_cmd): Make parameter "const".
5253 * cli/cli-decode.h (help_cmd): Update.
5254
5255 2014-07-24 Tom Tromey <tromey@redhat.com>
5256
5257 * stack.c (up_silently_base, down_silently_base): Make argument
5258 const.
5259
5260 2014-07-24 Tom Tromey <tromey@redhat.com>
5261
5262 * solib.c (solib_add): Make "pattern" const.
5263 * solib.h (solib_add): Update.
5264
5265 2014-07-24 Tom Tromey <tromey@redhat.com>
5266
5267 * remote.c (remote_serial_open, print_packet, putpkt)
5268 (putpkt_binary): Constify.
5269 * remote.h (putpkt): Update.
5270
5271 2014-07-24 Tom Tromey <tromey@redhat.com>
5272
5273 * monitor.c (monitor_open): Make "args" const.
5274 * monitor.h (monitor_open): Update.
5275
5276 2014-07-24 Tom Tromey <tromey@redhat.com>
5277
5278 * maint.c (match_bfd_flags): Make "string" const.
5279 (print_bfd_section_info): Remove casts.
5280 (print_objfile_section_info): Make "string" const.
5281
5282 2014-07-24 Tom Tromey <tromey@redhat.com>
5283
5284 * inf-child.c (inf_child_open_target): Make "arg" const.
5285 * inf-child.h (inf_child_open_target): Update.
5286
5287 2014-07-24 Tom Tromey <tromey@redhat.com>
5288
5289 * environ.c (unset_in_environ): Make "var" const.
5290 * environ.h (unset_in_environ): Update.
5291
5292 2014-07-24 Tom Tromey <tromey@redhat.com>
5293
5294 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5295 Make "cmd" const.
5296 (scan_filename_with_cleanup): Likewise.
5297 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5298 Make arguments const.
5299 (restore_command): Update.
5300
5301 2014-07-24 Pedro Alves <palves@redhat.com>
5302
5303 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5304
5305 2014-07-24 Tom Tromey <tromey@redhat.com>
5306 Gary Benson <gbenson@redhat.com>
5307
5308 * nat/linux-ptrace.c (additional_flags): New global.
5309 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5310 additional_flags; don't check GDBSERVER.
5311 (linux_ptrace_set_additional_flags): New function.
5312 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5313 Declare.
5314 * linux-nat.c (_initialize_linux_nat): Call
5315 linux_ptrace_set_additional_flags.
5316
5317 2014-07-24 Tom Tromey <tromey@redhat.com>
5318
5319 * make-target-delegates (munge_type, write_debugmethod): New
5320 functions.
5321 (debug_names): New global.
5322 ($TARGET_DEBUG_PRINTER): New global.
5323 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5324 name.
5325 Write debug methods. Generate init_debug_target.
5326 * target-debug.h: New file.
5327 * target-delegates.c: Rebuild.
5328 * target.c: Include target-debug.h.
5329 (debug_target): Hoist definition.
5330 (target_kill, target_get_section_table, target_memory_map)
5331 (target_flash_erase, target_flash_done, target_detach)
5332 (target_disconnect, target_wait, target_resume)
5333 (target_pass_signals, target_program_signals, target_follow_fork)
5334 (target_mourn_inferior, target_search_memory)
5335 (target_thread_address_space, target_close)
5336 (target_find_new_threads, target_core_of_thread)
5337 (target_verify_memory, target_insert_mask_watchpoint)
5338 (target_remove_mask_watchpoint): Remove targetdebug code.
5339 (debug_to_post_attach, debug_to_prepare_to_store)
5340 (debug_to_files_info, debug_to_insert_breakpoint)
5341 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5342 (debug_to_region_ok_for_hw_watchpoint)
5343 (debug_to_can_accel_watchpoint_condition)
5344 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5345 (debug_to_watchpoint_addr_within_range)
5346 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5347 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5348 (debug_to_terminal_init, debug_to_terminal_inferior)
5349 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5350 (debug_to_terminal_save_ours, debug_to_terminal_info)
5351 (debug_to_load, debug_to_post_startup_inferior)
5352 (debug_to_insert_fork_catchpoint)
5353 (debug_to_remove_fork_catchpoint)
5354 (debug_to_insert_vfork_catchpoint)
5355 (debug_to_remove_vfork_catchpoint)
5356 (debug_to_insert_exec_catchpoint)
5357 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5358 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5359 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5360 (setup_target_debug): Call init_debug_target.
5361 * target.h (TARGET_DEBUG_PRINTER): New macro.
5362 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5363 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5364
5365 2014-07-24 Gary Benson <gbenson@redhat.com>
5366
5367 * exceptions.h (throw_vfatal): Renamed to...
5368 (throw_vquit): New declaration.
5369 (throw_quit): Likewise.
5370 * exceptions.c (throw_vfatal): Renamed to...
5371 (throw_vquit): New function.
5372 (throw_quit): Likewise.
5373 (throw_error): Call throw_verror rather than throw_it.
5374 * utils.h (vfatal): Removed.
5375 (fatal): Likewise.
5376 * utils.c (vfatal): Removed.
5377 (fatal): Likewise.
5378 (internal_verror): Replaced call to fatal with call to throw_quit.
5379 (quit): Replaced calls to fatal with calls to throw_quit.
5380
5381 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5382
5383 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5384 target_read_code.
5385
5386 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5387
5388 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5389 less than zero in conditional expression.
5390
5391 2014-07-23 Tom Tromey <tromey@redhat.com>
5392
5393 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5394 ($INTRO_PART): Don't match whitespace.
5395 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5396 argument matching.
5397 ($METHOD): Add $METHOD_TRAILER.
5398 (trim): Rewrite.
5399 (scan_target_h): New sub.
5400 Change main loop not to collect state.
5401 * target-delegates.c: Rebuild.
5402
5403 2014-07-23 Gary Benson <gbenson@redhat.com>
5404
5405 * cp-support.c (gdb_demangle): Fix build on systems without
5406 sigaltstack.
5407
5408 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5409
5410 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5411 for reference entry value target data value.
5412
5413 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5414
5415 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5416 value_available_contents_eq.
5417
5418 2014-07-22 Pedro Alves <palves@redhat.com>
5419
5420 * value.c (allocate_optimized_out_value): Don't mark value as
5421 non-lazy.
5422
5423 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5424
5425 * MAINTAINERS (Write After Approval): Update my email address.
5426
5427 2014-07-20 Doug Evans <dje@google.com>
5428
5429 PR server/17147
5430 * remote.c (putpkt_binary): Add text to error message.
5431
5432 2014-07-20 Yao Qi <yao@codesourcery.com>
5433
5434 * eval.c: Remove "Chill" from comments.
5435 * gdbtypes.h: Likewise.
5436 * symtab.h: Likewise.
5437
5438 2014-07-20 Yao Qi <yao@codesourcery.com>
5439
5440 * std-operator.def: Update comments to TERNOP_SLICE.
5441
5442 2014-07-20 Yao Qi <yao@codesourcery.com>
5443
5444 * std-operator.def: Remove BINOP_RANGE.
5445 * breakpoint.c (watchpoint_exp_is_const): Update.
5446 * expprint.c (dump_subexp_body_standard): Likewise.
5447 * eval.c (init_array_element): Remove dead code.
5448 (evaluate_subexp_standard): Likewise.
5449
5450 2014-07-20 Yao Qi <yao@codesourcery.com>
5451
5452 * std-operator.def: Remove BINOP_IN.
5453 * breakpoint.c (watchpoint_exp_is_const): Update.
5454 * eval.c (evaluate_subexp_standard): Likewise.
5455 * expprint.c (dump_subexp_body_standard): Likewise.
5456
5457 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5458
5459 * microblaze-tdep.c (microblaze_register_names): Add
5460 the rshr and rslr register names.
5461 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5462 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5463 Use of tdesc_numbered_register. Use of
5464 microblaze_register_g_packet_guesses. Use of
5465 tdesc_use_registers. Use of set_gdbarch_register_type.
5466 (microblaze_register_g_packet_guesses): New.
5467 * microblaze-tdep.h (microblaze_reg_num): Add
5468 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5469 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5470 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5471 * features/microblaze-core.xml: New file.
5472 * features/microblaze-stack-protect.xml: New file.
5473 * features/microblaze-with-stack-protect.c: New file.
5474 * features/microblaze-with-stack-protect.xml: New file.
5475 * features/microblaze.xml: New file.
5476 * features/microblaze.c: New file.
5477 * features/Makefile (microblaze-with-stack-protect): Add
5478 microblaze-with-stack-protect microblaze and microblaze-expedite.
5479 * regformats/microblaze-with-stack-protect.dat: New file.
5480 * regformats/microblaze.dat: New file.
5481 * doc/gdb.texinfo (MicroBlaze Features): Added.
5482
5483 2014-07-18 Tom Tromey <tromey@redhat.com>
5484
5485 * exec.c (exec_ops): Now static.
5486 * exec.h (exec_ops): Don't declare.
5487
5488 2014-07-18 Tom Tromey <tromey@redhat.com>
5489
5490 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5491 to find_target_beneath.
5492 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5493 find_target_beneath.
5494 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5495
5496 2014-07-18 Tom Tromey <tromey@redhat.com>
5497
5498 PR gdb/17130:
5499 * utils.c (quit): Use target_supports_terminal_ours.
5500 * target.h (target_supports_terminal_ours): Declare.
5501 * target.c (target_supports_delete_record): Don't check
5502 to_delete_record against NULL.
5503 (target_supports_terminal_ours): New function.
5504
5505 2014-07-18 Tom Tromey <tromey@redhat.com>
5506
5507 PR gdb/17130:
5508 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5509 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5510 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5511 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5512 * windows-nat.c (windows_xfer_partial): Always delegate.
5513 * record-btrace.c (record_btrace_xfer_partial): Simplify
5514 delegation.
5515 (record_btrace_fetch_registers, record_btrace_store_registers)
5516 (record_btrace_prepare_to_store, record_btrace_resume)
5517 (record_btrace_wait, record_btrace_find_new_threads)
5518 (record_btrace_thread_alive): Likewise.
5519 * procfs.c (procfs_xfer_partial): Always delegate.
5520 * corelow.c (core_xfer_partial): Always delegate.
5521 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5522
5523 2014-07-18 Tom Tromey <tromey@redhat.com>
5524
5525 * exec.c (exec_make_note_section): Move earlier.
5526
5527 2014-07-17 Doug Evans <dje@google.com>
5528
5529 PR gdb/17170
5530 * maint.c (count_symtabs_and_blocks): Handle NULL
5531 current_program_space.
5532 (report_command_stats): Check global enabled flag in addition to
5533 recorded enabled flag.
5534 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5535
5536 2014-07-16 Pedro Alves <palves@redhat.com>
5537
5538 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5539
5540 2014-07-16 Tom Tromey <tromey@redhat.com>
5541
5542 * target.h (struct target_ops) <to_delete_record>: Reformat
5543 comment.
5544
5545 2014-07-16 Tom Tromey <tromey@redhat.com>
5546
5547 * target-delegates.c: Rebuild.
5548
5549 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5550
5551 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5552 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5553 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5554 (avr_pointer_to_address): Likewise.
5555 (avr_address_class_type_flags): New function.
5556 (avr_address_class_type_flags_to_name): Likewise.
5557 (avr_address_class_name_to_type_flags): Likewise.
5558 (avr_gdbarch_init): Set address_class_type_flags,
5559 address_class_type_flags_to_name and
5560 address_class_name_to_type_flags.
5561
5562 2014-07-15 Pedro Alves <palves@redhat.com>
5563
5564 * linux-nat.c (kill_callback): Save errno and work with saved
5565 copy.
5566
5567 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5568
5569 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5570
5571 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5572
5573 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5574 breakpoint support correctly.
5575
5576 2014-07-14 Pedro Alves <palves@redhat.com>
5577
5578 * utils.c (prompt_for_continue): Call target_terminal_ours.
5579
5580 2014-07-14 Pedro Alves <palves@redhat.com>
5581
5582 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5583 catch_errors. Don't re-enable stdin or notify observers where,
5584 and rethrow error.
5585 (fetch_inferior_event_wrapper): Delete.
5586
5587 2014-07-14 Pedro Alves <palves@redhat.com>
5588
5589 PR gdb/17072
5590 * top.c: Include "inf-loop.h".
5591 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5592 field.
5593 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5594 was async before.
5595 (gdb_readline_wrapper): Store whether the target is async, and
5596 make it sync.
5597
5598 2014-07-14 Pedro Alves <palves@redhat.com>
5599
5600 PR gdb/17072
5601 * top.c (gdb_readline_wrapper_line): Tweak comment.
5602 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5603 the input handler callback.
5604
5605 2014-07-14 Pedro Alves <palves@redhat.com>
5606
5607 PR gdb/17072
5608 * main.c: Include event-top.h.
5609 (handle_command_errors): New function.
5610 (catch_command_errors, catch_command_errors_const): Use it.
5611
5612 2014-07-14 Pedro Alves <palves@redhat.com>
5613
5614 * exceptions.c (catch_command_errors, catch_command_errors_const):
5615 Moved to main.c.
5616 * exceptions.h (catch_command_errors_ftype)
5617 (catch_command_errors_const_ftype): Moved to main.c.
5618 (catch_command_errors, catch_command_errors_const): Delete
5619 declarations.
5620 * main.c (catch_command_errors_ftype)
5621 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5622 (catch_command_errors, catch_command_errors_const)): Moved here
5623 from exceptions.c and make static.
5624
5625 2014-07-14 Pedro Alves <palves@redhat.com>
5626
5627 * exceptions.c (print_any_exception): Delete.
5628 (catch_exceptions_with_msg): Use exception_print instead of
5629 print_any_exception.
5630 (catch_errors): Use exception_fprintf instead of
5631 print_any_exception.
5632 (catch_command_errors, catch_command_errors_const): Use
5633 exception_print instead of print_any_exception.
5634
5635 2014-07-14 Pedro Alves <palves@redhat.com>
5636
5637 * infcall.c (run_inferior_call): Set 'sync_execution' while
5638 running the inferior call.
5639
5640 2014-07-14 Pedro Alves <palves@redhat.com>
5641
5642 * value.c (value_contents_equal): Delete function.
5643 * value.h (value_contents_equal): Delete declaration.
5644
5645 2014-07-14 Tom Tromey <tromey@redhat.com>
5646
5647 PR exp/17106:
5648 * gdbtypes.c (is_dynamic_type_internal): New function, from
5649 is_dynamic_type.
5650 (is_dynamic_type): Rewrite.
5651 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5652 (resolve_dynamic_struct): Likewise.
5653 (resolve_dynamic_type_internal): New function, from
5654 resolve_dynamic_type.
5655 (resolve_dynamic_type): Rewrite.
5656
5657 2014-07-14 Tom Tromey <tromey@redhat.com>
5658
5659 * target.c (target_require_runnable): Also check record_stratum.
5660 Update comment.
5661
5662 2014-07-11 Yao Qi <yao@codesourcery.com>
5663
5664 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5665 thumb_instruction_restores_sp return true.
5666
5667 2014-07-11 Yao Qi <yao@codesourcery.com>
5668
5669 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5670 (thumb_in_function_epilogue_p): Call
5671 thumb_instruction_restores_sp.
5672
5673 2014-07-11 Yao Qi <yao@codesourcery.com>
5674
5675 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5676 'add sp, #imm'.
5677 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5678
5679 2014-07-11 Gary Benson <gbenson@redhat.com>
5680
5681 * amd64-linux-nat.c (gdbcore.h): Remove include.
5682 (regset.h): Likewise.
5683 (nat/linux-btrace.h): Likewise.
5684 (btrace.h): Likewise.
5685 (gdb_assert.h): Likewise.
5686 (string.h): Likewise.
5687 (sys/uio.h): Likewise.
5688 (sys/debugreg.h): Likewise.
5689 (sys/syscall.h): Likewise.
5690 (sys/procfs.h): Likewise.
5691 (sys/user.h): Likewise.
5692 (asm/ptrace.h): Likewise.
5693 (i386-nat.h): Likewise.
5694 * i386-linux-nat.c (i386-nat.h): Likewise.
5695 (regset.h): Likewise.
5696 (target.h): Likewise.
5697 (linux-nat.h): Likewise.
5698 (nat/linux-btrace.h): Likewise.
5699 (btrace.h): Likewise.
5700 (gdb_assert.h): Likewise.
5701 (string.h): Likewise.
5702 (sys/uio.h): Likewise.
5703 (sys/user.h): Likewise.
5704 (sys/procfs.h): Likewise.
5705 (sys/reg.h): Likewise.
5706 (sys/debugreg.h): Likewise.
5707 (ORIG_EAX): Remove definition.
5708
5709 2014-07-11 Gary Benson <gbenson@redhat.com>
5710
5711 * i386-linux-nat.h: New file.
5712 * x86-linux-nat.h: Likewise.
5713 * x86-linux-nat.c: Likewise.
5714 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5715 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5716 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5717 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5718 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5719 (PTRACE_SETREGSET): Likewise.
5720 (arch_lwp_info): Now in x86-linux-nat.c.
5721 (have_ptrace_getregset): Now in x86-linux-nat.h.
5722 (x86_linux_dr_get): Now in x86-linux-nat.c.
5723 (x86_linux_dr_set): Likewise.
5724 (x86_linux_dr_get_addr): Likewise.
5725 (x86_linux_dr_get_control): Likewise.
5726 (x86_linux_dr_get_status): Likewise.
5727 (update_debug_registers_callback): Likewise.
5728 (x86_linux_dr_set_control): Likewise.
5729 (x86_linux_dr_set_addr): Likewise.
5730 (x86_linux_prepare_to_resume): Likewise.
5731 (x86_linux_new_thread): Likewise.
5732 (x86_linux_new_fork): Likewise.
5733 (x86_linux_get_thread_area): Likewise.
5734 (super_post_startup_inferior): Likewise.
5735 (x86_linux_child_post_startup_inferior): Likewise.
5736 (AMD64_LINUX_USER64_CS): Likewise.
5737 (AMD64_LINUX_X32_DS): Likewise.
5738 (x86_linux_read_description): Likewise.
5739 (x86_linux_enable_btrace): Likewise.
5740 (x86_linux_disable_btrace): Likewise.
5741 (x86_linux_teardown_btrace): Likewise.
5742 (x86_linux_read_btrace): Likewise.
5743 (x86_linux_create_target): Likewise.
5744 (x86_linux_add_target): Likewise.
5745 * i386-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
5774 2014-07-11 Gary Benson <gbenson@redhat.com>
5775
5776 * amd64-linux-nat.c: Comment and whitespace changes.
5777 * i386-linux-nat.c: Comment and whitespace changes.
5778
5779 2014-07-11 Gary Benson <gbenson@redhat.com>
5780
5781 * amd64-linux-nat.c (x86_linux_create_target): New function.
5782 (x86_linux_add_target): Likewise.
5783 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5784 * i386-linux-nat.c (x86_linux_create_target): New function.
5785 (x86_linux_add_target): Likewise.
5786 (_initialize_i386_linux_nat): Delegate to the above new functions.
5787
5788 2014-07-11 Gary Benson <gbenson@redhat.com>
5789
5790 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5791 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5792 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5793 (ps_get_thread_area): Delegate to the above.
5794
5795 2014-07-11 Gary Benson <gbenson@redhat.com>
5796
5797 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5798 x86_linux_read_description. All uses updated. amd64-specific
5799 code conditionalized. Conditionalized i386-specific code added.
5800 Redundant cast removed.
5801 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5802 x86_linux_read_description. All uses updated. i386-specific
5803 code conditionalized. Conditionalized amd64-specific code added.
5804 One sizeof replaced with the actual type it is describing.
5805
5806 2014-07-11 Gary Benson <gbenson@redhat.com>
5807
5808 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5809 x86_linux_dr_get. All uses updated.
5810 (amd64_linux_dr_set): Renamed to
5811 x86_linux_dr_set. All uses updated.
5812 (amd64_linux_dr_get_addr): Renamed to
5813 x86_linux_dr_get_addr. All uses updated.
5814 (amd64_linux_dr_get_control): Renamed to
5815 x86_linux_dr_get_control. All uses updated.
5816 (amd64_linux_dr_get_status): Renamed to
5817 x86_linux_dr_get_status. All uses updated.
5818 (amd64_linux_dr_set_control): Renamed to
5819 x86_linux_dr_set_control. All uses updated.
5820 (amd64_linux_dr_set_addr): Renamed to
5821 x86_linux_dr_set_addr. All uses updated.
5822 (amd64_linux_prepare_to_resume): Renamed to
5823 x86_linux_prepare_to_resume. All uses updated.
5824 (amd64_linux_new_thread): Renamed to
5825 x86_linux_new_thread. All uses updated.
5826 (amd64_linux_new_fork): Renamed to
5827 x86_linux_new_fork. All uses updated.
5828 (amd64_linux_child_post_startup_inferior): Renamed to
5829 x86_linux_child_post_startup_inferior. All uses updated.
5830 (amd64_linux_enable_btrace): Renamed to
5831 x86_linux_enable_btrace. All uses updated.
5832 (amd64_linux_disable_btrace): Renamed to
5833 x86_linux_disable_btrace. All uses updated.
5834 (amd64_linux_teardown_btrace): Renamed to
5835 x86_linux_teardown_btrace. All uses updated.
5836 (amd64_linux_read_btrace): Renamed to
5837 x86_linux_read_btrace. All uses updated.
5838 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5839 x86_linux_dr_get. All uses updated.
5840 (i386_linux_dr_set): Renamed to
5841 x86_linux_dr_set. All uses updated.
5842 (i386_linux_dr_get_addr): Renamed to
5843 x86_linux_dr_get_addr. All uses updated.
5844 (i386_linux_dr_get_control): Renamed to
5845 x86_linux_dr_get_control. All uses updated.
5846 (i386_linux_dr_get_status): Renamed to
5847 x86_linux_dr_get_status. All uses updated.
5848 (i386_linux_dr_set_control): Renamed to
5849 x86_linux_dr_set_control. All uses updated.
5850 (i386_linux_dr_set_addr): Renamed to
5851 x86_linux_dr_set_addr. All uses updated.
5852 (i386_linux_prepare_to_resume): Renamed to
5853 x86_linux_prepare_to_resume. All uses updated.
5854 (i386_linux_new_thread): Renamed to
5855 x86_linux_new_thread. All uses updated.
5856 (i386_linux_new_fork): Renamed to
5857 x86_linux_new_fork. All uses updated.
5858 (i386_linux_child_post_startup_inferior): Renamed to
5859 x86_linux_child_post_startup_inferior. All uses updated.
5860 (i386_linux_enable_btrace): Renamed to
5861 x86_linux_enable_btrace. All uses updated.
5862 (i386_linux_disable_btrace): Renamed to
5863 x86_linux_disable_btrace. All uses updated.
5864 (i386_linux_teardown_btrace): Renamed to
5865 x86_linux_teardown_btrace. All uses updated.
5866 (i386_linux_read_btrace): Renamed to
5867 x86_linux_read_btrace. All uses updated.
5868
5869 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5870
5871 * remote.c (extended_remote_post_attach): New function.
5872 (init_extended_remote_ops): Install it as to_post_attach method.
5873
5874 2014-07-09 Pedro Alves <palves@redhat.com>
5875
5876 * infcmd.c (attach_command_post_wait): Don't call
5877 target_terminal_inferior here.
5878 (attach_command): Call it here instead.
5879
5880 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5881
5882 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5883 field.
5884 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5885 from varobj.c, with additional checks.
5886 (c_varobj_ops): Fill in is_path_expr_parent field.
5887 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5888 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5889 field.
5890 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5891 ops method.
5892 (varobj_default_is_path_expr_parent): New function.
5893 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5894 (varobj_default_is_path_expr_parent): Declare new function.
5895
5896 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5897
5898 * infcmd.c (finish_backward): Turn internal error into normal error.
5899
5900 2014-07-07 Pedro Alves <palves@redhat.com>
5901
5902 PR gdb/17096
5903 * remote.c (async_handle_remote_sigint)
5904 (async_handle_remote_sigint_twice): Call
5905 gdb_call_async_signal_handler instead of
5906 mark_async_signal_handler.
5907
5908 2014-07-07 Tom Tromey <tromey@redhat.com>
5909
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_info_record): Remove.
5912 * record.c (info_record_command): Unconditionally call
5913 to_info_record.
5914 * target.h (struct target_ops) <to_info_record>: Use
5915 TARGET_DEFAULT_IGNORE.
5916 (target_info_record): Remove.
5917
5918 2014-07-07 Tom Tromey <tromey@redhat.com>
5919
5920 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5921 TARGET_DEFAULT_NORETURN.
5922 * target.c (generic_tls_error): New function.
5923 (target_translate_tls_address): Don't search target stack.
5924 * target-delegates.c: Rebuild.
5925 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5926 stack.
5927 * linux-thread-db.c (thread_db_get_thread_local_address):
5928 Unconditionally call beneath target.
5929
5930 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5931
5932 * cli/cli-logging.c (pop_output_files): Assign targerr to
5933 gdb_stdtargerr.
5934
5935 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5936
5937 * MAINTAINERS (Write After Approval): Update my email address.
5938
5939 2014-07-02 Gary Benson <gbenson@redhat.com>
5940
5941 * proc-service.c (ps_xfer_memory): Update comment.
5942 (ps_pstop): Remove unused function.
5943 (ps_pcontinue): Likewise.
5944 (ps_lstop): Likewise.
5945 (ps_lcontinue): Likewise.
5946 (ps_lgetxregsize): Likewise.
5947 (ps_lgetxregs): Likewise.
5948 (ps_lsetxregs): Likewise.
5949 (ps_plog): Likewise.
5950 (ps_ptread): Likewise.
5951 (ps_ptwrite): Likewise.
5952
5953 2014-07-01 Mark Wielaard <mjw@redhat.com>
5954
5955 * dwarf2read.c (add_array_cv_type): New function.
5956 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5957 (read_tag_volatile_type): Likewise.
5958
5959 2014-07-01 Tom Tromey <tromey@redhat.com>
5960
5961 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5962 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5963 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5964 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5965 * command.h (cmd_cfunc_ftype): Move earlier.
5966 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5967 (add_com, add_info): Use cmd_cfunc_ftype.
5968
5969 2014-06-30 Tom Tromey <tromey@redhat.com>
5970
5971 * symtab.c (operator_chars): Make parameters and return type
5972 const.
5973 (file_matches): Make "files" const.
5974 (struct search_symbols_data) <files>: Now const.
5975 (search_symbols): Make "regexp" and "files" parameters const.
5976 Update.
5977 (symtab_symbol_info): Remove cast.
5978 (rbreak_command): Update.
5979 * symtab.h (search_symbols): Update.
5980
5981 2014-06-27 Yao Qi <yao@codesourcery.com>
5982
5983 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5984 Change parameter type to 'struct thread_info *'. Caller
5985 updated.
5986 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5987 Update declaration.
5988 * dummy-frame.c (struct dummy_frame_id): New.
5989 (dummy_frame_id_eq): New function.
5990 (struct dummy_frame) <id>: Change its type to 'struct
5991 dummy_frame_id'.
5992 (dummy_frame_push): Add parameter ptid and save it in
5993 dummy_frame_id.
5994 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5995 inferior_ptid.
5996 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5997 to inferior_ptid.
5998 (lookup_dummy_frame): Change parameter type to 'struct
5999 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6000 instead of frame_id_eq.
6001 (dummy_frame_pop): Add parameter ptid. Callers updated.
6002 Update comments. Compose dummy_frame_id and pass it to
6003 lookup_dummy_frame.
6004 (dummy_frame_discard): Add parameter ptid.
6005 (dummy_frame_sniffer): Compose dummy_frame_id and call
6006 dummy_frame_id_eq instead of frame_id_eq.
6007 (fprint_dummy_frames): Print ptid.
6008 * dummy-frame.h: Remove comments.
6009 (dummy_frame_push): Add ptid in declaration.
6010 (dummy_frame_pop, dummy_frame_discard): Likewise.
6011
6012 2014-06-26 Tom Tromey <tromey@redhat.com>
6013
6014 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6015 * command.h (error_no_arg): Update.
6016
6017 2014-06-26 Tom Tromey <tromey@redhat.com>
6018
6019 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6020 (do_show_command): Make "arg" const.
6021 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6022
6023 2014-06-26 Tom Tromey <tromey@redhat.com>
6024
6025 * record-full.c (record_full_get_bookmark): Make "args" const.
6026 (record_full_goto_bookmark): Make "raw_bookmark" const.
6027 * record.c (record_goto): New function.
6028 (cmd_record_goto): Use it. Now static.
6029 * record.h (record_goto): Declare.
6030 (cmd_record_goto): Remove declaration.
6031 * target-delegates.c: Rebuild.
6032 * target.h (struct target_ops) <to_get_bookmark,
6033 to_goto_bookmark>: Make parameter const.
6034
6035 2014-06-26 Tom Tromey <tromey@redhat.com>
6036
6037 * defs.h (generic_load): Update.
6038 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6039 * monitor.c (monitor_load): Make "args" const.
6040 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6041 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6042 const.
6043 (mips_load): Make "file" const.
6044 * remote-sim.c (gdbsim_load): Make "args" const.
6045 * remote.c (remote_load): Make "name" const.
6046 * symfile.c (generic_load): Make "args" const.
6047 * target-delegates.c: Rebuild.
6048 * target.c (target_load): Make "arg" const.
6049 (debug_to_load): Make "args" const.
6050 * target.h (struct target_ops) <to_load>: Make parameter const.
6051 (target_load): Update.
6052
6053 2014-06-26 Tom Tromey <tromey@redhat.com>
6054
6055 PR symtab/16902:
6056 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6057 (dwarf2_physname, read_partial_die)
6058 (guess_partial_die_structure_name, fixup_partial_die)
6059 (guess_full_die_structure_name, anonymous_struct_prefix)
6060 (dwarf2_name): Use per-BFD obstack.
6061
6062 2014-06-26 Yao Qi <yao@codesourcery.com>
6063
6064 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6065 dummyframe and this_id into inner block below.
6066
6067 2014-06-26 Yao Qi <yao@codesourcery.com>
6068
6069 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6070 with "signal_pass[0]" in the initialization of signal_pass.
6071
6072 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6073
6074 * record-btrace.c (record_btrace_generating_corefile)
6075 (record_btrace_prepare_to_generate_core)
6076 (record_btrace_done_generating_core): New.
6077 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6078 (record_btrace_store_registers, record_btrace_prepare_to_store):
6079 Forward request when generating a core file.
6080 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6081 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6082 to_done_generating_core.
6083
6084 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6085
6086 * target.h (target_ops) <to_prepare_to_generate_core>
6087 <to_done_generating_core>: New.
6088 (target_prepare_to_generate_core, target_done_generating_core): New.
6089 * target.c (target_prepare_to_generate_core)
6090 (target_done_generating_core): New.
6091 * target-delegates.c: Regenerate.
6092 * gcore.c: (write_gcore_file): Rename to ...
6093 (write_gcore_file_1): ...this.
6094 (write_gcore_file): Call target_prepare_to_generate_core
6095 and target_done_generating_core.
6096
6097 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6098
6099 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6100 * gcore.c (write_gcore_file): Free memory returned from
6101 make_corefile_notes.
6102 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6103 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6104
6105 2014-06-24 Yao Qi <yao@codesourcery.com>
6106
6107 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6108 (arm_linux_init_abi): Set skip_trampoline_code with
6109 gdbarch_skip_trampoline_code instead of
6110 find_solib_trampoline_target.
6111
6112 2014-06-24 Yao Qi <yao@codesourcery.com>
6113
6114 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6115 arm_skip_bx_reg returns non-zero.
6116
6117 2014-06-24 Yao Qi <yao@codesourcery.com>
6118
6119 * arm-tdep.c (arm_skip_bx_reg): New function.
6120 (arm_skip_stub): Call arm_skip_bx_reg.
6121
6122 2014-06-23 Don Breazeal <donb@codesourcery.com>
6123
6124 * MAINTAINERS: Add myself as write-after-approval maintainer.
6125
6126 2014-06-23 Pedro Alves <palves@redhat.com>
6127
6128 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6129 DR_CONTROL before setting DR0..DR3.
6130 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6131 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6132 bits of DR_CONTROL related to the debug register slot being
6133 disabled. If all slots are vacant, clear local slowdown as well,
6134 and assert DR_CONTROL is 0.
6135
6136 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6137
6138 * python/lib/gdb/command/xmethods.py
6139 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6140 current progspace only if the string "progspace" matches LOCUS_RE.
6141
6142 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6143
6144 Fix --with-system-readline with readline-6.3 patch 5.
6145 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6146 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6147 types.
6148
6149 2014-06-20 Tom Tromey <tromey@redhat.com>
6150
6151 * dwarf2read.c (dw2_get_real_path): Use correct type in
6152 OBSTACK_CALLOC.
6153 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6154
6155 2014-06-20 Gary Benson <gbenson@redhat.com>
6156
6157 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6158 * common/glibc_thread_db.h: Likewise.
6159 * common/i386-cpuid.h: Likewise.
6160 * common/i386-gcc-cpuid.h: Likewise.
6161 * common/linux-btrace.h: Likewise.
6162 * common/linux-osdata.h: Likewise.
6163 * common/linux-procfs.h: Likewise.
6164 * common/linux-ptrace.h: Likewise.
6165 * common/mips-linux-watch.h: Likewise.
6166 * common/linux-btrace.c: Moved to nat.
6167 * common/linux-osdata.c: Likewise.
6168 * common/linux-procfs.c: Likewise.
6169 * common/linux-ptrace.c: Likewise.
6170 * common/mips-linux-watch.c: Likewise.
6171 * nat/gdb_thread_db.h: Moved from common.
6172 * nat/glibc_thread_db.h: Likewise.
6173 * nat/i386-cpuid.h: Likewise.
6174 * nat/i386-gcc-cpuid.h: Likewise.
6175 * nat/linux-btrace.c: Likewise.
6176 * nat/linux-btrace.h: Likewise.
6177 * nat/linux-osdata.c: Likewise.
6178 * nat/linux-osdata.h: Likewise.
6179 * nat/linux-procfs.c: Likewise.
6180 * nat/linux-procfs.h: Likewise.
6181 * nat/linux-ptrace.c: Likewise.
6182 * nat/linux-ptrace.h: Likewise.
6183 * nat/mips-linux-watch.c: Likewise.
6184 * nat/mips-linux-watch.h: Likewise.
6185 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6186 (object file files): Reordered.
6187 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6188 of glibc_thread_db.h.
6189
6190 2014-06-20 Gary Benson <gbenson@redhat.com>
6191
6192 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6193 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6194 (i386_dr_low): Likewise.
6195 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6196 (i386_dr_low_set_addr): Likewise.
6197 (i386_dr_low_get_addr): Likewise.
6198 (i386_dr_low_can_set_control): Likewise.
6199 (i386_dr_low_set_control): Likewise.
6200 (i386_dr_low_get_control): Likewise.
6201 (i386_dr_low_get_status): Likewise.
6202 (i386_get_debug_register_length): Likewise.
6203 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6204 (i386_dr_low): Likewise.
6205 * nat/i386-dregs.c (i386-low.h): Remove include.
6206 (i386-nat.h): Likewise.
6207 (nat/i386-dregs.h): New include.
6208 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6209 (i386_dr_low_set_addr): Likewise.
6210 (i386_dr_low_get_addr): Likewise.
6211 (i386_dr_low_can_set_control): Likewise.
6212 (i386_dr_low_set_control): Likewise.
6213 (i386_dr_low_get_control): Likewise.
6214 (i386_dr_low_get_status): Likewise.
6215 (i386_get_debug_register_length): Likewise.
6216 (debug_hw_points): Likewise.
6217
6218 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6219
6220 * Makefile.in (SFILES): Add d-exp.y.
6221 (YYFILES): Add d-exp.c.
6222 (YYOBJ): Add d-exp.o.
6223 (local-maintainer-clean): Delete d-exp.c.
6224 * d-exp.y: New file.
6225 * d-lang.h (d_parse): New declaration.
6226 (d_error): New declaration.
6227 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6228 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6229 PREC_ORDER operators.
6230 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6231
6232 2014-06-19 Yao Qi <yao@codesourcery.com>
6233
6234 * gdbthread.h (any_running): Remove the declaration.
6235 * thread.c (any_running): Remove.
6236
6237 2014-06-19 Yao Qi <yao@codesourcery.com>
6238
6239 * gdbthread.h (struct thread_info) <state>: Change its type to
6240 'enum thread_state'. Update comments.
6241
6242 2014-06-19 Pedro Alves <palves@redhat.com>
6243
6244 * gdbthread.h (ALL_THREADS): Delete.
6245 (ALL_NON_EXITED_THREADS): New macro.
6246 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6247 instead of ALL_THREADS.
6248 * infrun.c (find_thread_needs_step_over)
6249 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6250 instead of ALL_THREADS.
6251 * record-btrace.c (record_btrace_open)
6252 (record_btrace_stop_recording, record_btrace_close)
6253 (record_btrace_is_replaying, record_btrace_resume)
6254 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6255 * remote.c (append_pending_thread_resumptions): Likewise.
6256 * thread.c (thread_apply_all_command): Likewise.
6257
6258 2014-06-19 Gary Benson <gbenson@redhat.com>
6259
6260 * i386-nat.c (i386_stopped_by_watchpoint):
6261 Use i386_dr_stopped_by_watchpoint.
6262 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6263 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6264
6265 2014-06-19 Gary Benson <gbenson@redhat.com>
6266
6267 * nat/i386-dregs.c: New file.
6268 * Makefile.in (i386-dregs.o): New rule.
6269 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6270 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6271 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6272 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6273 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6274 * config/i386/go32.mh (NATDEPFILES): Likewise.
6275 * config/i386/linux.mh (NATDEPFILES): Likewise.
6276 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6277 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6278 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6279 * i386-nat.h (debug_hw_points): New declaration.
6280 * i386-nat.c (breakpoint.h): Remove include.
6281 (command.h): Likewise.
6282 (target.h): Likewise.
6283 (gdb_assert.h): Likewise.
6284 (debug_hw_points): Made nonstatic.
6285 (debug_printf): Now in i386-dregs.c.
6286 (TARGET_HAS_DR_LEN_8): Likewise.
6287 (DR_CONTROL_SHIFT): Likewise.
6288 (DR_CONTROL_SIZE): Likewise.
6289 (DR_RW_EXECUTE): Likewise.
6290 (DR_RW_WRITE): Likewise.
6291 (DR_RW_READ): Likewise.
6292 (DR_RW_IORW): Likewise.
6293 (DR_LEN_1): Likewise.
6294 (DR_LEN_2): Likewise.
6295 (DR_LEN_4): Likewise.
6296 (DR_LEN_8): Likewise.
6297 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6298 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6299 (DR_ENABLE_SIZE): Likewise.
6300 (DR_LOCAL_SLOWDOWN): Likewise.
6301 (DR_GLOBAL_SLOWDOWN): Likewise.
6302 (DR_CONTROL_RESERVED): Likewise.
6303 (I386_DR_CONTROL_MASK): Likewise.
6304 (I386_DR_VACANT): Likewise.
6305 (I386_DR_LOCAL_ENABLE): Likewise.
6306 (I386_DR_GLOBAL_ENABLE): Likewise.
6307 (I386_DR_DISABLE): Likewise.
6308 (I386_DR_SET_RW_LEN): Likewise.
6309 (I386_DR_GET_RW_LEN): Likewise.
6310 (I386_DR_WATCH_HIT): Likewise.
6311 (i386_wp_op_t): Likewise.
6312 (i386_show_dr): Likewise.
6313 (i386_length_and_rw_bits): Likewise.
6314 (i386_insert_aligned_watchpoint): Likewise.
6315 (i386_remove_aligned_watchpoint): Likewise.
6316 (i386_handle_nonaligned_watchpoint): Likewise.
6317 (i386_update_inferior_debug_regs): Likewise.
6318 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6319 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6320 (i386_region_ok_for_watchpoint):
6321 Use i386_dr_region_ok_for_watchpoint.
6322 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6323
6324 2014-06-19 Gary Benson <gbenson@redhat.com>
6325
6326 * i386-nat.c (i386_insert_hw_breakpoint): Use
6327 i386_insert_watchpoint.
6328 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6329
6330 2014-06-19 Gary Benson <gbenson@redhat.com>
6331
6332 * i386-nat.c (i386_dr_show): Renamed to
6333 i386_show_dr and made static. All uses updated.
6334 (i386_dr_length_and_rw_bits): Renamed to
6335 i386_length_and_rw_bits and made static.
6336 All uses updated.
6337 (i386_dr_insert_aligned_watchpoint): Renamed to
6338 i386_insert_aligned_watchpoint and made static.
6339 All uses updated.
6340 (i386_dr_remove_aligned_watchpoint): Renamed to
6341 i386_remove_aligned_watchpoint and made static.
6342 All uses updated.
6343 (i386_dr_update_inferior_debug_regs): Renamed to
6344 i386_update_inferior_debug_regs and made static.
6345 All uses updated.
6346 * nat/i386-dregs.h (i386_dr_show): Removed.
6347 (i386_dr_length_and_rw_bits): Likewise.
6348 (i386_dr_insert_aligned_watchpoint): Likewise.
6349 (i386_dr_remove_aligned_watchpoint): Likewise.
6350 (i386_dr_update_inferior_debug_regs): Likewise.
6351
6352 2014-06-19 Gary Benson <gbenson@redhat.com>
6353
6354 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6355 * configure: Regenerate.
6356 * config.in: Likewise.
6357 * main.c (signal.h): New include.
6358 (setup_alternate_signal_stack): New function.
6359 (captured_main): Call the above.
6360 * cp-support.c (signal.h): New include.
6361 (catch_demangler_crashes): New flag.
6362 (SIGJMP_BUF): New define.
6363 (SIGSETJMP): Likewise.
6364 (SIGLONGJMP): Likewise.
6365 (gdb_demangle_jmp_buf): New static global.
6366 (gdb_demangle_attempt_core_dump): Likewise.
6367 (gdb_demangle_signal_handler): New function.
6368 (gdb_demangle): If catch_demangler_crashes is set, install the
6369 above signal handler before calling bfd_demangle, and restore
6370 the original signal handler afterwards. Display the offending
6371 symbol and call demangler_warning the first time a segmentation
6372 fault is caught.
6373 (_initialize_cp_support): New maint set/show command.
6374
6375 2014-06-19 Gary Benson <gbenson@redhat.com>
6376
6377 * utils.h (resource_limit_kind): New enum.
6378 (can_dump_core): New declaration.
6379 (warn_cant_dump_core): Likewise.
6380 (dump_core): Likewise.
6381 * utils.c (dump_core): Made nonstatic. Added new
6382 parameter "limit_kind".
6383 (can_dump_core): Made nonstatic. Moved printing code to...
6384 (warn_cant_dump_core): New function.
6385 (can_dump_core_warn): Likewise.
6386 (internal_vproblem): Replace calls to can_dump_core with
6387 calls to can_dump_core_warn. Supply new argument to each.
6388
6389 2014-06-19 Gary Benson <gbenson@redhat.com>
6390
6391 * utils.h (demangler_vwarning): New declaration.
6392 (demangler_warning): Likewise.
6393 * utils.c (struct internal_problem)
6394 <user_settable_should_quit>: New field.
6395 <user_settable_should_dump_core>: Likewise
6396 (internal_error_problem): Add values for above new fields.
6397 (internal_warning_problem): Likewise.
6398 (demangler_warning_problem): New static global.
6399 (demangler_vwarning): New function.
6400 (demangler_warning): Likewise.
6401 (add_internal_problem_command): Selectively add commands.
6402 (_initialize_utils): New internal problem command.
6403 * maint.c (maintenance_demangler_warning): New function.
6404 (_initialize_maint_cmds): New command.
6405
6406 2014-06-18 Tom Tromey <tromey@redhat.com>
6407
6408 * f-valprint.c (info_common_command_for_block): Update.
6409 * symtab.h (struct general_symbol_info) <common_block>: Now
6410 const.
6411
6412 2014-06-18 Tom Tromey <tromey@redhat.com>
6413
6414 * symtab.h (struct symtab) <blockvector>: Now const.
6415 * ada-lang.c (ada_add_global_exceptions): Update.
6416 * buildsym.c (augment_type_symtab): Update.
6417 * dwarf2read.c (dw2_lookup_symbol): Update.
6418 * jit.c (finalize_symtab): Update.
6419 * jv-lang.c (add_class_symtab_symbol): Update.
6420 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6421 Update.
6422 * objfiles.c (objfile_relocate1): Update.
6423 * psymtab.c (lookup_symbol_aux_psymtabs)
6424 (maintenance_check_psymtabs): Update.
6425 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6426 Update.
6427 * spu-tdep.c (spu_catch_start): Update.
6428 * symmisc.c (dump_symtab_1): Update.
6429 * symtab.c (lookup_global_symbol_from_objfile)
6430 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6431 (basic_lookup_transparent_type_quick)
6432 (basic_lookup_transparent_type, find_pc_sect_symtab)
6433 (find_pc_sect_line, search_symbols): Update.
6434 * block.c (find_block_in_blockvector): Make "bl" const.
6435 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6436 const.
6437 (blockvector_contains_pc): Make "bv" const.
6438 (block_for_pc_sect): Update.
6439 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6440 (blockvector_contains_pc): Update.
6441 * breakpoint.c (resolve_sal_pc): Update.
6442 * inline-frame.c (block_starting_point_at): Update.
6443
6444 2014-06-18 Tom Tromey <tromey@redhat.com>
6445
6446 * completer.c (complete_line): Make "line_buffer" const.
6447 * completer.h (complete_line): Update.
6448
6449 2014-06-18 Tom Tromey <tromey@redhat.com>
6450
6451 * symtab.c (add_macro_name): Remove unneeded cast.
6452
6453 2014-06-18 Tom Tromey <tromey@redhat.com>
6454
6455 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6456 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6457
6458 2014-06-18 Tom Tromey <tromey@redhat.com>
6459
6460 * probe.c (info_probes_for_ops): Make "arg" const.
6461 * probe.h (info_probes_for_ops): Update.
6462
6463 2014-06-18 Tom Tromey <tromey@redhat.com>
6464
6465 * varobj.c (varobj_create): Update.
6466 * valops.c (value_of_this): Update.
6467 * tracepoint.c (add_local_symbols, scope_info): Update.
6468 * symtab.h (struct general_symbol_info) <block>: Now const.
6469 * symtab.c (skip_prologue_sal)
6470 (default_make_symbol_completion_list_break_on)
6471 (skip_prologue_using_sal): Update.
6472 * stack.h (iterate_over_block_locals)
6473 (iterate_over_block_local_vars): Update.
6474 * stack.c (print_frame_args): Update.
6475 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6476 parameter const.
6477 (get_selected_block): Make return type const.
6478 * python/py-frame.c (frapy_block): Update.
6479 * python/py-block.c (gdbpy_block_for_pc): Update.
6480 * p-exp.y (%union) <bval>: Now const.
6481 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6482 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6483 * m2-exp.y (%union) <bval>: Now const.
6484 * linespec.c (get_current_search_block): Make return type const.
6485 (create_sals_line_offset, find_label_symbols): Update.
6486 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6487 Update.
6488 (block_starting_point_at): Make "block" const.
6489 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6490 (check_exception_resume): Update.
6491 * guile/scm-frame.c (gdbscm_frame_block): Update.
6492 * guile/scm-block.c (gdbscm_lookup_block): Update.
6493 * frame.h (get_frame_block): Update.
6494 (get_selected_block): Make return type const.
6495 * frame.c (frame_id_inner): Update.
6496 * f-valprint.c (info_common_command_for_block)
6497 (info_common_command): Update.
6498 * dwarf2loc.c (dwarf2_find_location_expression)
6499 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6500 (locexpr_describe_location_piece): Update.
6501 * c-exp.y (%union) <bval>: Now const.
6502 * breakpoint.c (resolve_sal_pc): Update.
6503 * blockframe.c (get_frame_block):Make return type const.
6504 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6505 (block_innermost_frame): Update.
6506 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6507 (block_for_pc, block_for_pc_sect): Update.
6508 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6509 'pblock' const.
6510 (block_for_pc_sect, block_for_pc): Make return type const.
6511 * ax-gdb.c (gen_expr): Update.
6512 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6513 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6514 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6515 (ada_read_var_value): Update.
6516 * ada-exp.y (struct name_info) <block>: Now const.
6517 (%union): Likewise.
6518 (block_lookup): Constify.
6519
6520 2014-06-18 Gary Benson <gbenson@redhat.com>
6521
6522 * nat/i386-dregs.h: New file.
6523 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6524 * i386-nat.h (i386-dregs.h): New include.
6525 (DR_FIRSTADDR): Now in i386-dregs.h.
6526 (DR_LASTADDR): Likewise.
6527 (DR_NADDR): Likewise.
6528 (DR_STATUS): Likewise.
6529 (DR_CONTROL): Likewise.
6530 (i386_debug_reg_state): Likewise.
6531 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6532
6533 2014-06-18 Don Breazeal <donb@codesourcery.com>
6534
6535 * breakpoint.c (set_longjmp_breakpoint): Call
6536 momentary_breakpoint_from_master with additional argument.
6537 (set_longjmp_breakpoint_for_call_dummy): Call
6538 momentary_breakpoint_from_master with additional argument.
6539 (set_std_terminate_breakpoint): Call
6540 momentary_breakpoint_from_master with additional argument.
6541 (momentary_breakpoint_from_master): Add argument to function
6542 definition and use it to initialize structure member flag.
6543 (clone_momentary_breakpoint): Call
6544 momentary_breakpoint_from_master with additional argument.
6545 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6546 member flags set in momentary_breakpoint_from_master.
6547
6548 2014-06-18 Gary Benson <gbenson@redhat.com>
6549
6550 * i386-nat.c (i386_show_dr): Renamed to
6551 i386_dr_show and made nonstatic. All uses updated.
6552 (i386_length_and_rw_bits): Renamed to
6553 i386_dr_length_and_rw_bits and made nonstatic.
6554 All uses updated.
6555 (i386_insert_aligned_watchpoint): Renamed to
6556 i386_dr_insert_aligned_watchpoint and made nonstatic.
6557 All uses updated.
6558 (i386_remove_aligned_watchpoint): Renamed to
6559 i386_dr_remove_aligned_watchpoint and made nonstatic.
6560 All uses updated.
6561 (i386_update_inferior_debug_regs): Renamed to
6562 i386_dr_update_inferior_debug_regs and made nonstatic.
6563 All uses updated.
6564
6565 2014-06-18 Gary Benson <gbenson@redhat.com>
6566
6567 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6568 (i386_dr_low_can_set_control): Likewise.
6569 (i386_dr_low_set_addr): Likewise.
6570 (i386_dr_low_set_control): Likewise.
6571 (i386_dr_low_get_addr): Likewise.
6572 (i386_dr_low_get_status): Likewise.
6573 (i386_dr_low_get_control): Likewise.
6574 (i386_insert_aligned_watchpoint): Use new macros.
6575 (i386_update_inferior_debug_regs): Likewise.
6576 (i386_stopped_data_address): Likewise.
6577
6578 2014-06-18 Gary Benson <gbenson@redhat.com>
6579
6580 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6581 New parameter. All uses updated.
6582
6583 2014-06-18 Gary Benson <gbenson@redhat.com>
6584
6585 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6586 All uses updated.
6587
6588 2014-06-18 Gary Benson <gbenson@redhat.com>
6589
6590 * i386-nat.c (debug_printf): New macro.
6591 (i386_get_debug_register_length): Likewise.
6592 (TARGET_HAS_DR_LEN_8): Use above macro.
6593 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6594 and printf_unfiltered. Use phex to format values.
6595
6596 2014-06-18 Gary Benson <gbenson@redhat.com>
6597
6598 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6599 Make const.
6600
6601 2014-06-18 Gary Benson <gbenson@redhat.com>
6602
6603 * i386-nat.c: Comment changes.
6604
6605 2014-06-18 Gary Benson <gbenson@redhat.com>
6606
6607 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6608
6609 2014-06-18 Gary Benson <gbenson@redhat.com>
6610
6611 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6612 (i386_insert_aligned_watchpoint): Likewise.
6613 (i386_remove_aligned_watchpoint): Likewise.
6614 (i386_handle_nonaligned_watchpoint): Likewise.
6615
6616 2014-06-18 Gary Benson <gbenson@redhat.com>
6617
6618 * i386-nat.c: Whitespace changes.
6619
6620 2014-06-17 Samuel Bronson <naesten@gmail.com>
6621
6622 * MAINTAINERS: Update Roland McGrath's email address.
6623 Thanks to Sergio Durigan Junior for pointing out that he left
6624 Red Hat a while ago, and giving me a current address.
6625
6626 2014-06-17 Tom Tromey <tromey@redhat.com>
6627
6628 * utils.h (savestring): Remove declaration.
6629
6630 2014-06-17 Tom Tromey <tromey@redhat.com>
6631
6632 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6633
6634 2014-06-16 Keith Seitz <keiths@redhat.com>
6635
6636 PR mi/15863
6637 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6638 to update the varobj if inferior_ptid is null_ptid.
6639
6640 2014-06-16 Tom Tromey <tromey@redhat.com>
6641
6642 * target.h (struct target_ops) <to_info_proc>: Make parameter
6643 const.
6644 (target_info_proc): Update.
6645 * target.c (target_info_proc): Make "args" const.
6646 * procfs.c (procfs_info_proc): Update.
6647 * linux-tdep.c (linux_info_proc): Update.
6648 (linux_core_info_proc_mappings): Make "args" const.
6649 (linux_core_info_proc): Update.
6650 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6651 * gdbarch.c: Rebuild.
6652 * gdbarch.h: Rebuild.
6653 * corelow.c (core_info_proc): Update.
6654
6655 2014-06-16 Tom Tromey <tromey@redhat.com>
6656
6657 * target.h (struct target_ops) <to_disconnect>: Make parameter
6658 const.
6659 (target_disconnect): Update.
6660 * target.c (target_disconnect): Make "args" const.
6661 * target-delegates.c: Rebuild.
6662 * remote.c (remote_disconnect): Update.
6663 * record.h (record_disconnect): Update.
6664 * record.c (record_disconnect): Update.
6665 * inf-child.c (inf_child_disconnect): Update.
6666
6667 2014-06-16 Tom Tromey <tromey@redhat.com>
6668
6669 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6670 * target.c (debug_to_rcmd, default_rcmd): Update.
6671 * target-delegates.c: Rebuild.
6672 * remote.c (remote_rcmd): Update.
6673 * monitor.c (monitor_rcmd): Update.
6674
6675 2014-06-16 Pedro Alves <palves@redhat.com>
6676
6677 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6678 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6679 have OBJF_SHARED set.
6680 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6681 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6682 instead of OBJF_USERLOADED.
6683 * objfiles.h (OBJF_SHARED): Update comment.
6684 (userloaded_objfile_contains_address_p): Rename to ...
6685 (shared_objfile_contains_address_p): ... this, and update
6686 comments.
6687 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6688 new objfile.
6689 (remove_symbol_file_command): Skip objfiles that don't have
6690 OBJF_SHARED set.
6691
6692 2014-06-16 Tom Tromey <tromey@redhat.com>
6693
6694 * minsyms.h (prim_record_minimal_symbol)
6695 (prim_record_minimal_symbol_and_info): Update comments.
6696
6697 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6698
6699 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6700 or --without-guile, according to how GDB was built.
6701
6702 2014-06-13 Tom Tromey <tromey@redhat.com>
6703
6704 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6705 to help_list.
6706 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6707 to help_list.
6708 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6709 help_list.
6710 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6711 help_list.Pass all_commands, not -1, to help_list.
6712 * cli/cli-dump.c (dump_command, append_command)
6713 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6714 (binary_dump_command, binary_append_command): Pass all_commands,
6715 not -1, to help_list.
6716 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6717 -1, to help_list.
6718 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6719 -1, to help_list.
6720 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6721 help_list.
6722 * top.c (set_history): Pass all_commands, not -1, to help_list.
6723 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6724 all_commands, not -1, to help_list.
6725 * symfile.c (overlay_command): Pass all_commands, not -1, to
6726 help_list.
6727 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6728 help_list.
6729 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6730 help_list.
6731 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6732 -1, to help_list.
6733 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6734 not -1, to help_list.
6735 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6736 not -1, to help_list.
6737 * maint.c (maintenance_command, maintenance_info_command)
6738 (maintenance_print_command, maintenance_set_cmd): Pass
6739 all_commands, not -1, to help_list.
6740 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6741 help_list.
6742 * language.c (set_check): Pass all_commands, not -1, to help_list.
6743 * infcmd.c (unset_command): Pass all_commands, not -1, to
6744 help_list.
6745 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6746 help_list.
6747 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6748 help_list.
6749 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6750 help_list.
6751 * breakpoint.c (save_command): Pass all_commands, not -1, to
6752 help_list.
6753 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6754 all_commands, not -1, to help_list.
6755
6756 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6757
6758 * regcache.c (struct register_to_invalidate): New structure.
6759 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6760 functions.
6761 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6762
6763 2014-06-12 Yao Qi <yao@codesourcery.com>
6764
6765 * varobj.c (varobj_get_num_children): Call
6766 varobj_is_dynamic_p.
6767 (varobj_list_children): Likewise.
6768 (varobj_update): Likewise. Update comments.
6769
6770 2014-06-12 Yao Qi <yao@codesourcery.com>
6771
6772 * varobj.c (varobj_pretty_printed_p): Rename to ...
6773 (varobj_is_dynamic_p): ... this. New function.
6774 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6775 (varobj_is_dynamic_p): Declare.
6776 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6777 (mi_print_value_p, varobj_update_one): Likewise.
6778
6779 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6780 Yao Qi <yao@codesourcery.com>
6781
6782 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6783 (varobj_get_iterator): Wrap up code for pretty-printer by
6784 "#if HAVE_PYTHON" and "#endif".
6785 (update_dynamic_varobj_children): Likewise.
6786
6787 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6788 Yao Qi <yao@codesourcery.com>
6789
6790 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6791 gdb_python_initialized is false. Move some code from varobj.c.
6792 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6793 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6794 (struct varobj_item): Moved to varobj-iter.h".
6795 (varobj_clear_saved_item): New function.
6796 (update_dynamic_varobj_children): Move python-related code to
6797 py-varobj.c.
6798 (free_variable): Call varobj_clear_saved_item and
6799 varobj_iter_delete.
6800
6801 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6802 Yao Qi <yao@codesourcery.com>
6803
6804 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6805 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6806 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6807 (py-varobj.o): New rule.
6808 * python/py-varobj.c: New file.
6809 * python/python-internal.h (py_varobj_get_iterator): Declare.
6810 * varobj-iter.h: New file.
6811 * varobj.c: Include "varobj-iter.h"
6812 (struct varobj) <child_iter>: Change its type from "PyObject *"
6813 to "struct varobj_iter *".
6814 <saved_item>: Likewise.
6815 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6816 [HAVE_PYTHON] (varobj_get_iterator): New function.
6817 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6818 python-specific code to python/py-varobj.c.
6819 (install_visualizer): Call varobj_iter_delete instead of
6820 Py_XDECREF.
6821 * varobj.h (varobj_ensure_python_env): Declare.
6822
6823 2014-06-12 Yao Qi <yao@codesourcery.com>
6824
6825 * varobj.c (struct varobj_item): New structure.
6826 (create_child_with_value): Update declaration.
6827 (varobj_add_child): Replace arguments 'name' and 'value' with
6828 'item'. All callers updated.
6829 (install_dynamic_child): Likewise.
6830 (update_dynamic_varobj_children): Likewise.
6831 (varobj_add_child): Likewise.
6832 (create_child_with_value): Likewise.
6833
6834 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6835
6836 * NEWS: Create a new section for the next release branch.
6837 Rename the section of the current branch, now that it has
6838 been cut.
6839
6840 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6841
6842 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6843 * version.in: Bump version to 7.8.50.DATE-cvs.
6844
6845 2014-06-11 Pedro Alves <palves@redhat.com>
6846
6847 PR remote/17028
6848 * ser-mingw.c (net_windows_socket_check_pending): New function.
6849 (net_windows_select_thread): Ignore spurious wakeups. Use
6850 net_windows_socket_check_pending.
6851 (net_windows_wait_handle): Check for pending events with
6852 ioctlsocket, through net_windows_socket_check_pending, instead of
6853 checking the socket's event.
6854
6855 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6856
6857 * python/python-internal.h (gdb_PyObject_GetAttrString)
6858 (gdb_PyObject_HasAttrString): New inline function definitions.
6859 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6860 char * of the second argument to PyObject_GetAttrString.
6861
6862 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6863
6864 * serial.c (serial_write): Fix index of character to be printed
6865 in call to serial_logchar when serial debug traces are enabled.
6866
6867 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6868
6869 * gdbtypes (resolve_dynamic_range): Add function description.
6870
6871 2014-06-09 Pedro Alves <palves@redhat.com>
6872
6873 * linux-nat.c (linux_child_follow_fork): Initialize status with
6874 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6875 inner block. Only pass the signal to PTRACE_DETACH if in pass
6876 state.
6877
6878 2014-06-09 Gary Benson <gbenson@redhat.com>
6879
6880 * common/signals.c (gdb_signal_from_host): Reorder to separate
6881 the always-available ANSI-standard signals from the signals that
6882 require checking.
6883 (do_gdb_signal_to_host): Likewise.
6884 * proc-events.c (signal_table): Likewise.
6885
6886 2014-06-08 Hui Zhu <hui@codesourcery.com>
6887
6888 * common/linux-ptrace.c (linux_disable_event_reporting): New
6889 function.
6890 * common/linux-ptrace.h (linux_disable_event_reporting): New
6891 declaration.
6892 * linux-nat.c (linux_child_follow_fork): Do a single step before
6893 detach.
6894
6895 2014-06-07 Keith Seitz <keiths@redhat.com>
6896
6897 Revert:
6898 PR c++/16253
6899 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6900 from symbol_matches_domain in symtab.c. All local callers
6901 of symbol_matches_domain updated.
6902 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6903 search STRUCT_DOMAIN.
6904 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6905 independently. standard_lookup will do that automatically.
6906 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6907 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6908 (cp_lookup_symbol_in_namespace): Likewise.
6909 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6910 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6911 may return a STRUCT_DOMAIN match.
6912 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6913 * cp-support.c: Include language.h.
6914 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6915 VAR_DOMAIN.
6916 * psymtab.c (match_partial_symbol): Compare the requested
6917 domain with the symbol's domain directly.
6918 (lookup_partial_symbol): Likewise.
6919 * symtab.c (lookup_symbol_in_language): Explain when/why
6920 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6921 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6922 appropriate languages.
6923 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6924 and moved to ada-lang.c
6925 (lookup_block_symbol): Explain that this function only returns
6926 symbol matching the requested DOMAIN.
6927 Compare the requested domain with the symbol's domain directly.
6928 (iterate_over_symbols): Compare the requested domain with the
6929 symbol's domain directly.
6930 * symtab.h (symbol_matches_domain): Remove.
6931
6932 2014-06-06 Doug Evans <xdje42@gmail.com>
6933
6934 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6935 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6936 (gdbscm_guile_version_is_at_least): Declare.
6937 (gdbscm_scm_string_to_int): Declare.
6938 * guile/guile.c (gdbscm_guile_major_version): New global.
6939 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6940 (guile_datadir): New static global.
6941 (gdbscm_guile_data_directory): New function.
6942 (initialize_scheme_side): Update.
6943 (misc_guile_functions): Add guile-data-directory.
6944 (initialize_gdb_module): Fetch guile version number.
6945 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6946 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6947 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6948 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6949 comments.
6950 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6951 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6952 * guile/scm-value.c (gdbscm_value_to_string): Only call
6953 scm_port_conversion_strategy if Guile version >= 2.0.6.
6954
6955 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6956
6957 * main.c (print_gdb_help): Add -q and --silent.
6958
6959 2014-06-06 Gary Benson <gbenson@redhat.com>
6960
6961 * common/signals.c: Remove preprocessor conditionals for
6962 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6963 SIGSEGV and SIGTERM.
6964 * proc-events.c: Likewise.
6965
6966 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6967
6968 * symfile.c (symfile_free_objfile): Remove restriction to
6969 OBJF_USERLOADED.
6970 * symfile-mem.c (symbol_file_add_from_memory): Call
6971 add_target_sections_of_objfile.
6972
6973 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6974
6975 * guile/scm-value.c (gdbscm_history_append_x): Use
6976 'vlscm_get_value_smob_arg_unsafe' instead of
6977 'vlscm_scm_to_value'.
6978
6979 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6980
6981 PR mi/15806
6982 * utils.c (printchar): Don't escape at all if quoter is NUL.
6983 Update function documentation to clarify effect of parameter
6984 QUOTER.
6985 * remote.c (escape_buffer): Pass '\\' as the quoter to
6986 fputstrn_unfiltered.
6987 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6988 generate the output.
6989 (mi_solib_unloaded): Same.
6990
6991 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6992
6993 * development.sh: Delete.
6994 * Makefile.in (config.status): Adjust dependency on development.sh.
6995 * configure.ac: Adjust development.sh source call.
6996 * configure: Regenerate.
6997
6998 2014-06-04 Doug Evans <xdje42@gmail.com>
6999
7000 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7001 is_scheme_bkpt, spec.
7002 (bpscm_make_breakpoint_smob): Initialize new members.
7003 (gdbscm_create_breakpoint_x): Split into two ...
7004 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7005 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7006 (scheme_function breakpoint_functions): Update.
7007 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7008 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7009 register-breakpoint!.
7010
7011 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7012
7013 PR server/17023
7014 * mem-break.c (z_type_supported): Return zero if
7015 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7016
7017 2014-06-04 Tom Tromey <tromey@redhat.com>
7018
7019 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7020 value_from_contents_and_address_unresolved.
7021 (ada_template_to_fixed_record_type_1): Likewise.
7022 (ada_which_variant_applies): Likewise.
7023 * value.h (value_from_contents_and_address_unresolved): Declare.
7024 * value.c (value_from_contents_and_address_unresolved): New
7025 function.
7026 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7027 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7028 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7029
7030 2014-06-04 Tom Tromey <tromey@redhat.com>
7031
7032 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7033
7034 2014-06-04 Tom Tromey <tromey@redhat.com>
7035
7036 * procfs.c (procfs_attach): Make "args" const.
7037 * windows-nat.c (windows_attach): Make "args" const.
7038 * nto-procfs.c (procfs_attach): Make "args" const.
7039 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7040 * go32-nat.c (go32_attach): Make "args" const.
7041 * gnu-nat.c (gnu_attach): Make "args" const.
7042 * darwin-nat.c (darwin_attach): Make "args" const.
7043 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7044 * linux-nat.c (linux_nat_attach): Make "args" const.
7045 * remote.c (extended_remote_attach_1, extended_remote_attach):
7046 Make "args" const.
7047 * target.h (struct target_ops) <to_attach>: Make "args" const.
7048 (find_default_attach): Likewise.
7049 * utils.c (parse_pid_to_attach): Make "args" const.
7050 * utils.h (parse_pid_to_attach): Update.
7051
7052 2014-06-04 Tom Tromey <tromey@redhat.com>
7053
7054 * target-delegates.c: Rebuild.
7055 * target.c (default_thread_address_space): New function.
7056 (target_thread_address_space): Simplify.
7057 * target.h (struct target_ops) <to_thread_address_space>: Add
7058 TARGET_DEFAULT_FUNC.
7059
7060 2014-06-04 Doug Evans <xdje42@gmail.com>
7061
7062 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7063
7064 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7065
7066 * record-btrace.c: Include event-loop.h and inf-loop.h.
7067 (record_btrace_resume_exec_dir)
7068 (record_btrace_async_inferior_event_handler)
7069 (record_btrace_handle_async_inferior_event): New.
7070 (record_btrace_open): Create async event handler.
7071 (record_btrace_close): Delete async event handler.
7072 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7073 Mark async event handler.
7074 (record_btrace_execution_direction): New.
7075 (init_record_btrace_ops): Initialize to_execution_direction.
7076
7077 2014-06-03 Doug Evans <xdje42@gmail.com>
7078
7079 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7080 (gdbscm_make_parameter): Ditto.
7081
7082 2014-06-03 Doug Evans <dje@google.com>
7083
7084 * exec.c (exec_close_1): Call clear_section_table instead of
7085 resize_section_table.
7086 (clear_section_table): New function.
7087 (resize_section_table): Make static. Rename arg num_added to
7088 adjustment.
7089 * exec.h (clear_section_table): Declare.
7090 (resize_section_table): Delete.
7091 * progspace.c (release_program_space): Call clear_section_table
7092 instead of resize_section_table.
7093
7094 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7095
7096 * NEWS (Python Scripting): Add entry about the new xmethods
7097 feature.
7098
7099 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7100
7101 * python/py-xmethods.c: New file.
7102 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7103 (objfpy_dealloc): XDECREF on the new xmethods field.
7104 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7105 field.
7106 (objfpy_get_xmethods): New function.
7107 (objfile_getset): New entry 'xmethods'.
7108 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7109 (pspy_dealloc): XDECREF on the new xmethods field.
7110 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7111 field.
7112 (pspy_get_xmethods): New function.
7113 (pspace_getset): New entry 'xmethods'.
7114 * python/python-internal.h: Add declarations for new functions.
7115 * python/python.c (_initialize_python): Invoke
7116 gdbpy_initialize_xmethods.
7117 * python/lib/gdb/__init__.py (xmethods): New
7118 attribute.
7119 * python/lib/gdb/xmethod.py: New file.
7120 * python/lib/gdb/command/xmethods.py: New file.
7121
7122 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7123
7124 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7125 best match method returned by find_overload_match is an xmethod.
7126 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7127 the best matching operator returned by find_overload_match is an
7128 xmethod.
7129 * valops.c: #include "extension.h".
7130 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7131 Return void. The list of matching source methods is returned in
7132 "fn_list" and a vector of matching debug method workers is
7133 returned in "xm_worker_vec". Update all callers.
7134 (value_find_oload_method_list): Likewise.
7135 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7136 non-NULL, then the index of the best matching method in this
7137 vector is returned. Update all callers.
7138 (find_overload_match): Include xmethods while performing overload
7139 resolution.
7140
7141 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7142
7143 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7144 * extension-priv.h (struct extension_language_ops): Add the
7145 xmethod interface.
7146 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7147 get_matching_xmethod_workers, get_xmethod_argtypes,
7148 invoke_xmethod, free_xmethod_worker,
7149 free_xmethod_worker_vec): New functions.
7150 * extension.h: #include "common/vec.h".
7151 New function declarations.
7152 (struct xmethod_worker): New struct.
7153 (VEC (xmethod_worker_ptr)): New vector type.
7154 (xmethod_worker_ptr): New typedef.
7155 (xmethod_worker_vec): Likewise.
7156 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7157 builtin_type.
7158 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7159 (struct builtin_type): New field "xmethod".
7160 * valarith.c (value_ptradd): Assert that the value argument is not
7161 lval_xcallable.
7162 * valops.c (value_must_coerce_to_target): Return 0 for
7163 lval_xcallable values.
7164 * value.c (struct value): New field XM_WORKER in the field
7165 LOCATION.
7166 (value_address, value_raw_address): Return 0 for lval_xcallable
7167 values.
7168 (set_value_address): Assert that the value is not an
7169 lval_xcallable.
7170 (value_free): Free the associated xmethod worker when freeing
7171 lval_xcallable values.
7172 (set_value_component_location): Assert that the WHOLE value is not
7173 lval_xcallable.
7174 (value_of_xmethod, call_xmethod): New functions.
7175 * value.h: Declare "struct xmethod_worker".
7176 Declare new functions value_of_xmethod, call_xmethod.
7177
7178 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7179 Pedro Alves <palves@redhat.com>
7180
7181 PR breakpoints/17000
7182 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7183 New function, extracted from software_breakpoint_inserted_here_p.
7184 (software_breakpoint_inserted_here_p): Replace factored out code
7185 by call to find_non_raw_software_breakpoint_inserted_here.
7186 (bp_target_info_copy_insertion_state): New function.
7187 (bkpt_insert_location): Handle the case of a single-step
7188 breakpoint already inserted at the same address.
7189 (bkpt_remove_location): Handle the case of a single-step
7190 breakpoint still inserted at the same address.
7191 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7192 breakpoint already inserted at the same address.
7193 (deprecated_remove_raw_breakpoint): Handle the case of a
7194 non-raw breakpoint still inserted at the same address.
7195 (find_single_step_breakpoint): New function, extracted from
7196 single_step_breakpoint_inserted_here_p.
7197 (find_single_step_breakpoint): New function,
7198 factored out from single_step_breakpoint_inserted_here_p.
7199 (single_step_breakpoint_inserted_here_p): Reimplement.
7200
7201 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7202
7203 Pushed by Joel Brobecker <brobecker@adacore.com>
7204 * source.c (show_substitute_path_command): Fix display of matching
7205 substitution rules.
7206
7207 2014-06-03 Gary Benson <gbenson@redhat.com>
7208
7209 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7210
7211 2014-06-02 Doug Evans <xdje42@gmail.com>
7212
7213 Add parameter support for Guile.
7214 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7215 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7216 (scm-param.o): New rule.
7217 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7218 (gdbscm_misc_error): Declare.
7219 (gdbscm_canonicalize_command_name): Declare.
7220 (gdbscm_scm_to_host_string): Declare.
7221 (gdbscm_scm_from_host_string): Declare.
7222 (gdbscm_initialize_parameters): Declare.
7223 * guile/guile.c (initialize_gdb_module): Call
7224 gdbscm_initialize_parameters.
7225 * guile/lib/gdb.scm: Export parameter symbols.
7226 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7227 cmdscm_canonicalize_name and made public. All callers updated.
7228 * guile/scm-exception.c (gdbscm_misc_error): New function.
7229 * guile/scm-param.c: New file.
7230 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7231 (gdbscm_scm_to_host_string): New function.
7232 (gdbscm_scm_from_host_string): New function.
7233 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7234
7235 2014-06-02 Doug Evans <xdje42@gmail.com>
7236
7237 Add command support for Guile.
7238 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7239 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7240 (scm-cmd.o): New rule.
7241 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7242 (gdbscm_user_error_p): Declare.
7243 (gdbscm_parse_command_name): Declare.
7244 (gdbscm_valid_command_class_p): Declare.
7245 (gdbscm_initialize_commands): Declare.
7246 * guile/guile.c (initialize_gdb_module): Call
7247 gdbscm_initialize_commands.
7248 * guile/lib/gdb.scm: Export command symbols.
7249 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7250 (throw-user-error): New function.
7251 * guile/scm-cmd.c: New file.
7252 * guile/scm-exception.c (user_error_symbol): New static global.
7253 (gdbscm_user_error_p): New function.
7254 (gdbscm_initialize_exceptions): Set user_error_symbol.
7255 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7256
7257 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7258
7259 * top.c (command_loop): Handle comments here...
7260 (command_line_input): ... not here.
7261
7262 2014-06-02 Doug Evans <xdje42@gmail.com>
7263
7264 Add progspace support for Guile.
7265 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7266 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7267 (scm-progspace.o): New rule.
7268 * guile/guile-internal.h (pspace_smob): New typedef.
7269 (psscm_pspace_smob_pretty_printers): Declare.
7270 (psscm_pspace_smob_from_pspace): Declare.
7271 (psscm_scm_from_pspace): Declare.
7272 * guile/guile.c (initialize_gdb_module): Call
7273 gdbscm_initialize_pspaces.
7274 * guile/lib/gdb.scm: Export progspace symbols.
7275 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7276 support.
7277 (append-pretty-printer!): Ditto.
7278 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7279 Implement.
7280 * guile/scm-progspace.c: New file.
7281
7282 2014-06-03 Alan Modra <amodra@gmail.com>
7283
7284 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7285 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7286
7287 2014-06-02 Doug Evans <dje@google.com>
7288
7289 Add support for skeletonless type units.
7290 * dwarf2read.c (struct dwarf2_per_objfile): New member
7291 n_allocated_type_units.
7292 (struct dwarf2_per_objfile) <tu_stats>: New member
7293 nr_all_type_units_reallocs.
7294 (create_signatured_type_table_from_index): Initialize
7295 n_allocated_type_units
7296 (create_all_type_units): Ditto.
7297 (add_type_unit): Move up in file. New arg slot.
7298 All callers updated. Increase space for all_type_units more
7299 efficiently.
7300 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7301 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7302 (lookup_dwp_signatured_type): Ditto.
7303 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7304 All callers updated.
7305 (build_type_psymtabs_1): Leave type_unit_groups as
7306 NULL if no TUs present.
7307 (print_tu_stats): New function.
7308 (process_skeletonless_type_unit): New function.
7309 (process_dwo_file_for_skeletonless_type_units): New
7310 function.
7311 (process_skeletonless_type_units): New function.
7312 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7313 Call print tu_stats if debugging enabled.
7314
7315 2014-06-02 Pedro Alves <palves@redhat.com>
7316
7317 * breakpoint.c (build_target_command_list): Don't build a command
7318 list if we have any duplicate location that isn't a dprintf.
7319
7320 2014-06-02 Pedro Alves <palves@redhat.com>
7321
7322 * breakpoint.c (dprintf_breakpoint_hit): New function.
7323 (initialize_breakpoint_ops): Install it as dprintf's
7324 breakpoint_hit method.
7325
7326 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7327
7328 * source.c (substitute_path_rule_matches): Simplify using
7329 filename_ncmp instead of FILENAME_CMP.
7330
7331 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7332
7333 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7334
7335 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7336
7337 * configure.ac: When Guile is available, check for the
7338 availability of 'scm_new_smob'.
7339 * configure, config.h.in: Regenerate.
7340 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7341 function.
7342
7343 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7344
7345 * frame.c (struct frame_info): Add stop_string field.
7346 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7347 (get_prev_frame_always): Old content moved into
7348 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7349 TRY_CATCH, handle MEMORY_ERROR exceptions.
7350 (frame_stop_reason_string): New function definition.
7351 * frame.h (unwind_stop_reason_to_string): Extend comment to
7352 mention frame_stop_reason_string.
7353 (frame_stop_reason_string): New function declaration.
7354 * stack.c (frame_info): Switch to frame_stop_reason_string.
7355 (backtrace_command_1): Switch to frame_stop_reason_string.
7356 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7357 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7358 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7359
7360 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7361
7362 * frame.c (frame_stop_reason_string): Rename to ...
7363 (unwind_stop_reason_to_string): this.
7364 * frame.h (frame_stop_reason_string): Rename to ...
7365 (unwind_stop_reason_to_string): this.
7366 * stack.c (frame_info): Update call to frame_stop_reason_string.
7367 (backtrace_command_1): Likewise.
7368 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7369 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7370
7371 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7372
7373 * frame.c (remove_prev_frame): New function.
7374 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7375 remove_prev_frame.
7376
7377 2014-05-29 Pedro Alves <palves@redhat.com>
7378
7379 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7380 and make it const. When a single-step decays to a continue,
7381 clear 'step', not 'hw_step'. Pass whether the caller wanted
7382 to step to user_visible_resume_ptid, not what we ask the
7383 target to do.
7384
7385 2014-05-29 Pedro Alves <palves@redhat.com>
7386
7387 * infrun.c (process_event_stop_test, handle_step_into_function)
7388 (handle_step_into_function_backward): Adjust.
7389 Don't set the even thread's stop_step and call stop_waiting before
7390 calling end_stepping_range. Instead do that ...
7391 (end_stepping_range): ... here. Take an ecs pointer parameter.
7392
7393 2014-05-29 Pedro Alves <palves@redhat.com>
7394
7395 * infrun.c (stop_stepping): Rename to ...
7396 (stop_waiting): ... this.
7397 (proceed): Update comment.
7398 (process_event_stop_test, handle_inferior_event)
7399 (handle_signal_stop, handle_step_into_function)
7400 (handle_step_into_function_backward): Update.
7401
7402 2014-05-29 Pedro Alves <palves@redhat.com>
7403
7404 * infcall.c (run_inferior_call): Don't check whether the current
7405 thread is running after the proceed call.
7406
7407 2014-05-29 Pedro Alves <palves@redhat.com>
7408 Tom Tromey <tromey@redhat.com>
7409
7410 * NEWS: Mention "maint set target-async", "set mi-async", and that
7411 background execution commands are now always available.
7412 * target.h (target_async_permitted): Update comment.
7413 * target.c (target_async_permitted, target_async_permitted_1):
7414 Default to 1.
7415 (set_target_async_command): Rename to ...
7416 (maint_set_target_async_command): ... this.
7417 (show_target_async_command): Rename to ...
7418 (maint_show_target_async_command): ... this.
7419 (_initialize_target): Adjust.
7420 * infcmd.c (prepare_execution_command): Make extern.
7421 * inferior.h (prepare_execution_command): Declare.
7422 * infrun.c (set_observer_mode): Leave target async alone.
7423 * mi/mi-interp.c (mi_interpreter_init): Install
7424 mi_on_sync_execution_done as sync_execution_done observer.
7425 (mi_on_sync_execution_done): New function.
7426 (mi_execute_command_input_handler): Don't print the prompt if we
7427 just started a synchronous command with an async target.
7428 (mi_on_resume): Check sync_execution before printing prompt.
7429 * mi/mi-main.h (mi_async_p): Declare.
7430 * mi/mi-main.c: Include gdbcmd.h.
7431 (mi_async_p): New function.
7432 (mi_async, mi_async_1): New globals.
7433 (set_mi_async_command, show_mi_async_command, mi_async): New
7434 functions.
7435 (exec_continue): Call prepare_execution_command.
7436 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7437 (mi_execute_async_cli_command): Use mi_async_p.
7438 (_initialize_mi_main): Install "set mi-async". Make
7439 "target-async" a deprecated alias.
7440
7441 2014-05-29 Pedro Alves <palves@redhat.com>
7442
7443 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7444 (_initialize_cli_interp): Adjust.
7445 * event-loop.c: Include "observer.h".
7446 (start_event_loop): Notify 'command_error' observers instead of
7447 calling display_gdb_prompt. Remove FIXME comment.
7448 * event-top.c (display_gdb_prompt): Remove call into the
7449 interpreters.
7450 * inf-loop.c: Include "observer.h".
7451 (inferior_event_handler): Notify 'command_error' observers instead
7452 of calling display_gdb_prompt.
7453 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7454 observers instead of calling display_gdb_prompt.
7455 * interps.c (interp_set): Don't call display_gdb_prompt.
7456 (current_interp_display_prompt_p): Delete.
7457 * interps.h (interp_prompt_p): Delete declaration.
7458 (interp_prompt_p_ftype): Delete.
7459 (struct interp_procs) <prompt_proc_p>: Delete field.
7460 (current_interp_display_prompt_p): Delete declaration.
7461 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7462 (_initialize_mi_interp): Adjust.
7463 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7464 'command_error' observers.
7465 (tui_on_sync_execution_done, tui_on_command_error): New
7466 functions.
7467 (tui_display_prompt_p): Delete.
7468 (_initialize_tui_interp): Adjust.
7469
7470 2014-05-29 Pedro Alves <palves@redhat.com>
7471
7472 PR gdb/13860
7473 * cli/cli-interp.c: Include infrun.h and observer.h.
7474 (cli_uiout, cli_interp): New globals.
7475 (cli_on_signal_received, cli_on_end_stepping_range)
7476 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7477 functions.
7478 (cli_interpreter_init): Install them as 'end_stepping_range',
7479 'signal_received' 'signal_exited', 'exited' and 'no_history'
7480 observers.
7481 (_initialize_cli_interp): Remove cli_interp local.
7482 * infrun.c (handle_inferior_event): Call the several stop reason
7483 observers instead of printing the stop reason directly.
7484 (end_stepping_range): New function.
7485 (print_end_stepping_range_reason, print_signal_exited_reason)
7486 (print_exited_reason, print_signal_received_reason)
7487 (print_no_history_reason): Make static, and add an uiout
7488 parameter. Print to that instead of to CURRENT_UIOUT.
7489 * infrun.h (print_end_stepping_range_reason)
7490 (print_signal_exited_reason, print_exited_reason)
7491 (print_signal_received_reason print_no_history_reason): New
7492 declarations.
7493 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7494 'mi_uiout'.
7495 <cli_uiout>: New field.
7496 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7497 uiout for CLI output. Install 'signal_received',
7498 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7499 observers.
7500 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7501 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7502 (mi_on_no_history): New functions.
7503 (ui_out_free_cleanup): Delete function.
7504 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7505 instead use the one already stored in the MI interpreter data.
7506 (mi_ui_out): Adjust.
7507 * tui/tui-interp.c: Include infrun.h and observer.h.
7508 (tui_interp): New global.
7509 (tui_on_signal_received, tui_on_end_stepping_range)
7510 (tui_on_signal_exited, tui_on_exited)
7511 (tui_on_no_history): New functions.
7512 (tui_init): Install them as 'end_stepping_range',
7513 'signal_received' 'signal_exited', 'exited' and 'no_history'
7514 observers.
7515 (_initialize_tui_interp): Delete tui_interp local.
7516
7517 2014-05-29 Pedro Alves <palves@redhat.com>
7518
7519 PR gdb/15713
7520 * linux-nat.c (linux_nat_resume_callback): Rename the second
7521 parameter to 'except'. Skip LP if it points to EXCEPT.
7522 (linux_nat_resume): Don't mark the event lwp as not stopped
7523 before resuming sibling lwps. Instead ask
7524 linux_nat_resume_callback to skip the event lwp. Mark it as not
7525 stopped after actually resuming it.
7526 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7527 resuming it.
7528 (wait_lwp): Mark the lwp as stopped here.
7529 (stop_wait_callback): Mark the lwp as not stopped right after
7530 resuming it. Don't mark lwps as stopped here.
7531 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7532 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7533
7534 2014-05-29 Pedro Alves <palves@redhat.com>
7535
7536 PR PR15693
7537 * infrun.c (resume): Determine how much to resume depending on
7538 whether the caller wanted a step, not whether we can hardware step
7539 the target. Mark all threads that we intend to run as running,
7540 unless we're calling an inferior function.
7541 (normal_stop): If the thread is running an infcall, don't finish
7542 thread state.
7543 * target.c (target_resume): Don't mark threads as running here.
7544
7545 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7546
7547 * serial.c (_initialize_serial): Remove support for
7548 the "set remotebaud" and "show remotebaud" commands.
7549 * NEWS: Add entry documenting the removal of that command.
7550
7551 2014-05-28 Yao Qi <yao@codesourcery.com>
7552
7553 * charset.c: Fix typo in comments.
7554
7555 2014-05-27 Gary Benson <gbenson@redhat.com>
7556
7557 * utils.c (internal_vproblem): Prompt for a bug report.
7558
7559 2014-05-26 Andy Wingo <wingo@igalia.com>
7560
7561 * guile/scm-arch.c (arscm_mark_arch_smob):
7562 * guile/scm-block.c (bkscm_mark_block_smob)
7563 (bkscm_mark_block_syms_progress_smob):
7564 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7565 * guile/scm-exception.c (exscm_mark_exception_smob):
7566 * guile/scm-frame.c (frscm_mark_frame_smob):
7567 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7568 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7569 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7570 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7571 (ppscm_mark_pretty_printer_worker_smob):
7572 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7573 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7574 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7575 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7576 mark functions.
7577 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7578 function.
7579
7580 2014-05-26 Andy Wingo <wingo@igalia.com>
7581 Doug Evans <xdje42@gmail.com>
7582
7583 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7584 empty_base_class. All uses updated.
7585 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7586 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7587 Adapt all callers.
7588 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7589 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7590 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7591 (gdbscm_gsmob_has_property_p, add_property_name)
7592 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7593 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7594 (gdb-object-has-property?, gdb-object-properties): Remove.
7595 (gdb-object-kind): Renamed from gsmob-kind.
7596
7597 2014-05-26 Andy Wingo <wingo@igalia.com>
7598
7599 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7600 * configure: Regenerate.
7601
7602 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7603
7604 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7605
7606 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7607
7608 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7609 (replay_memory_access_read_only, replay_memory_access_read_write)
7610 (replay_memory_access_types, replay_memory_access)
7611 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7612 (cmd_set_record_btrace, cmd_show_record_btrace)
7613 (cmd_show_replay_memory_access): New.
7614 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7615 (record_btrace_remove_breakpoint): Replace
7616 record_btrace_allow_memory_access with replay_memory_access.
7617 (_initialize_record_btrace): Add commands.
7618 * NEWS: Announce it.
7619
7620 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7621
7622 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7623
7624 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7625
7626 * MAINTAINERS (Write After Approval): Move self back from
7627 paper trail.
7628
7629 2014-05-22 Pedro Alves <palves@redhat.com>
7630
7631 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7632 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7633 (disable_randomization, enum exec_direction_kind)
7634 (execution_direction, stop_registers, start_remote)
7635 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7636 (wait_for_inferior, normal_stop, get_last_target_status)
7637 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7638 (insert_step_resume_breakpoint_at_sal)
7639 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7640 (set_step_info, print_stop_event, signal_stop_state)
7641 (signal_print_state, signal_pass_state, signal_stop_update)
7642 (signal_print_update, signal_pass_update)
7643 (update_signals_program_target, clear_exit_convenience_vars)
7644 (displaced_step_dump_bytes, update_observer_mode)
7645 (signal_catch_update, gdb_signal_from_command): Move
7646 declarations ...
7647 * infrun.h: ... to this new file.
7648 * amd64-tdep.c: Include infrun.h.
7649 * annotate.c: Include infrun.h.
7650 * arch-utils.c: Include infrun.h.
7651 * arm-linux-tdep.c: Include infrun.h.
7652 * arm-tdep.c: Include infrun.h.
7653 * break-catch-sig.c: Include infrun.h.
7654 * breakpoint.c: Include infrun.h.
7655 * common/agent.c: Include infrun.h instead of inferior.h.
7656 * corelow.c: Include infrun.h.
7657 * event-top.c: Include infrun.h.
7658 * go32-nat.c: Include infrun.h.
7659 * i386-tdep.c: Include infrun.h.
7660 * inf-loop.c: Include infrun.h.
7661 * infcall.c: Include infrun.h.
7662 * infcmd.c: Include infrun.h.
7663 * infrun.c: Include infrun.h.
7664 * linux-fork.c: Include infrun.h.
7665 * linux-nat.c: Include infrun.h.
7666 * linux-thread-db.c: Include infrun.h.
7667 * monitor.c: Include infrun.h.
7668 * nto-tdep.c: Include infrun.h.
7669 * procfs.c: Include infrun.h.
7670 * record-btrace.c: Include infrun.h.
7671 * record-full.c: Include infrun.h.
7672 * remote-m32r-sdi.c: Include infrun.h.
7673 * remote-mips.c: Include infrun.h.
7674 * remote-notif.c: Include infrun.h.
7675 * remote-sim.c: Include infrun.h.
7676 * remote.c: Include infrun.h.
7677 * reverse.c: Include infrun.h.
7678 * rs6000-tdep.c: Include infrun.h.
7679 * s390-linux-tdep.c: Include infrun.h.
7680 * solib-irix.c: Include infrun.h.
7681 * solib-osf.c: Include infrun.h.
7682 * solib-svr4.c: Include infrun.h.
7683 * target.c: Include infrun.h.
7684 * top.c: Include infrun.h.
7685 * windows-nat.c: Include infrun.h.
7686 * mi/mi-interp.c: Include infrun.h.
7687 * mi/mi-main.c: Include infrun.h.
7688 * python/py-threadevent.c: Include infrun.h.
7689
7690 2014-05-22 Pedro Alves <palves@redhat.com>
7691
7692 * infrun.c (handle_inferior_event): Store the exit code for
7693 --return-child-result here, instead of ...
7694 (print_exited_reason): ... here.
7695
7696 2014-05-21 Pedro Alves <palves@redhat.com>
7697
7698 PR gdb/13860
7699 * gdbthread.h (struct thread_control_state): New field
7700 `command_interp'.
7701 * infrun.c (follow_fork): Copy the new thread control field to the
7702 child fork thread.
7703 (clear_proceed_status_thread): Clear the new thread control field.
7704 (proceed): Set the new thread control field.
7705 * interps.h (command_interp): Declare.
7706 * interps.c (command_interpreter): New global.
7707 (command_interp): New function.
7708 (interp_exec): Set `command_interpreter' while here.
7709 * cli-out.c (cli_uiout_dtor): New function.
7710 (cli_ui_out_impl): Install it.
7711 * mi/mi-interp.c: Include cli-out.h.
7712 (mi_cmd_interpreter_exec): Add comment.
7713 (restore_current_uiout_cleanup): New function.
7714 (ui_out_free_cleanup): New function.
7715 (mi_on_normal_stop): If finishing an execution command started by
7716 a CLI command, or any kind of breakpoint-like event triggered,
7717 print the stop event to the output (CLI) stream.
7718 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7719
7720 2014-05-21 Pedro Alves <palves@redhat.com>
7721
7722 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7723 current source line having changed.
7724 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7725 * infrun.c (normal_stop): Adjust call to
7726 set_current_sal_from_frame.
7727 * source.c (clear_lines_listed_range): New function.
7728 (set_current_source_symtab_and_line, identify_source_line): Clear
7729 the lines listed range.
7730 (line_info): Handle the first "info line" after the current source
7731 line having changed.
7732 * stack.c (print_stack_frame): Remove center handling.
7733 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7734 center sal.line.
7735
7736 2014-05-21 Pedro Alves <palves@redhat.com>
7737
7738 * inf-child.c (inf_child_mourn_inferior): New function.
7739 * inf-child.h (inf_child_mourn_inferior): New declaration.
7740 * darwin-nat.c (darwin_mourn_inferior): Use
7741 inf_child_mourn_inferior.
7742 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7743 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7744 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7745 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7746 * windows-nat.c (windows_mourn_inferior): Likewise.
7747
7748 2014-05-21 Doug Evans <xdje42@gmail.com>
7749
7750 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7751
7752 2014-05-21 Doug Evans <xdje42@gmail.com>
7753
7754 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7755 (gdbscm_out_of_range_error): Ditto.
7756 (gdbscm_memory_error): Ditto.
7757 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7758 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7759 (gdbscm_out_of_range_error): Update.
7760 (gdbscm_memory_error): Update.
7761 (gdbscm_scm_to_target_string_unsafe): Delete.
7762
7763 2014-05-21 Pedro Alves <palves@redhat.com>
7764
7765 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7766 globals.
7767 (inf_child_open_target): New function.
7768 (inf_child_open): Use inf_child_open_target to push the target
7769 instead of erroring out.
7770 (inf_child_disconnect, inf_child_close)
7771 (inf_child_maybe_unpush_target): New functions.
7772 (inf_child_target): Install inf_child_disconnect and
7773 inf_child_close. Store a pointer to the returned object.
7774 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7775 declarations.
7776 * target.c (auto_connect_native_target): New global.
7777 (show_default_run_target): New function.
7778 (find_default_run_target): Return NULL if automatically connecting
7779 to the native target is disabled.
7780 (_initialize_target): Install set/show auto-connect-native-target.
7781 * NEWS: Mention "set auto-connect-native-target", and "target
7782 native".
7783 * linux-nat.c (super_close): New global.
7784 (linux_nat_close): Call super_close.
7785 (linux_nat_add_target): Store a pointer to the base class's
7786 to_close method.
7787 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7788 inf_child_maybe_unpush.
7789 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7790 already pushed.
7791 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7792 the inferior. Use inf_child_maybe_unpush_target.
7793 (inf_ttrace_attach): Don't push the target if it is already
7794 pushed.
7795 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7796 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7797 after mourning the inferior. Use inf_child_maybe_unpush_target.
7798 (darwin_attach_pid): Don't push the target if it is already
7799 pushed.
7800 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7801 mourning the inferior. Use inf_child_maybe_unpush_target.
7802 (gnu_detach): Use inf_child_maybe_unpush_target.
7803 * go32-nat.c (go32_create_inferior): Don't push the target if it
7804 is already pushed.
7805 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7806 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7807 (procfs_open): Rename to ...
7808 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7809 comments. Can target_preopen before changing node. Call
7810 inf_child_open_target to push the target explicitly.
7811 (procfs_attach): Don't push the target if it is already pushed.
7812 (procfs_detach): Use inf_child_maybe_unpush_target.
7813 (procfs_create_inferior): Don't push the target if it is already
7814 pushed.
7815 (nto_native_ops): New global.
7816 (procfs_open): Reimplement.
7817 (procfs_native_open): New function.
7818 (init_procfs_targets): Install procfs_native_open as to_open of
7819 "target native". Store a pointer to the "native" target in
7820 nto_native_ops.
7821 * procfs.c (procfs_attach): Don't push the target if it is already
7822 pushed.
7823 (procfs_detach): Use inf_child_maybe_unpush_target.
7824 (procfs_mourn_inferior): Only unpush the target after mourning the
7825 inferior. Use inf_child_maybe_unpush_target.
7826 (procfs_init_inferior): Don't push the target if it is already
7827 pushed.
7828 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7829 if it is already pushed.
7830
7831 2014-05-21 Pedro Alves <palves@redhat.com>
7832
7833 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7834 and "procfs" targets are now called "native" instead.
7835
7836 2014-05-21 Pedro Alves <palves@redhat.com>
7837
7838 * go32-nat.c (go32_open): Delete.
7839 (go32_target): Don't override the to_open method.
7840
7841 2014-05-21 Pedro Alves <palves@redhat.com>
7842
7843 * nto-procfs.c (procfs_can_run): New function.
7844 (nto_procfs_ops): New global.
7845 (init_procfs_targets): New, based on procfs_target. Install
7846 "target native" in addition to "target procfs".
7847 (_initialize_procfs): Call init_procfs_targets instead of adding
7848 the target here.
7849
7850 2014-05-21 Pedro Alves <palves@redhat.com>
7851
7852 * windows-nat.c (windows_target): Don't override to_shortname,
7853 to_longname or to_doc.
7854
7855 2014-05-21 Pedro Alves <palves@redhat.com>
7856
7857 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7858 to_doc.
7859
7860 2014-05-21 Pedro Alves <palves@redhat.com>
7861
7862 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7863 to_shortname, to_longname or to_doc.
7864
7865 2014-05-21 Pedro Alves <palves@redhat.com>
7866
7867 * go32-nat.c (go32_target): Don't override to_shortname,
7868 to_longname or to_doc.
7869
7870 2014-05-21 Pedro Alves <palves@redhat.com>
7871
7872 * inf-child.c (inf_child_open): Remove mention of "child".
7873 (inf_child_target): Rename target to "native" instead of "child".
7874
7875 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7876
7877 * Makefile.in (SFILES): Delete "regset.c".
7878 (COMMON_OBS): Delete "regset.o".
7879 * regset.c: Remove.
7880 * regset.h (regset_alloc): Delete prototype.
7881
7882 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7883
7884 * sparc-linux-tdep.c (sparc32_linux_gregset)
7885 (sparc32_linux_fpregset): New static regset structures.
7886 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7887 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7888 'fpregset' fields.
7889 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7890 (sparc64_linux_fpregset): New static regset structures.
7891 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7892 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7893 New static regset structures.
7894 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7895 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7896 New static regset structures.
7897 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7898 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7899 New static regset structures.
7900 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7901 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7902 New static regset structures.
7903 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7904
7905 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7906
7907 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7908 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7909 register maps ("regmaps") from "*regset" to "*regmap". Do this
7910 for all regmap types and variables.
7911 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7912 (sparc32_linux_supply_core_gregset)
7913 (sparc32_linux_collect_core_gregset)
7914 (sparc32_linux_supply_core_fpregset)
7915 (sparc32_linux_collect_core_fpregset): Likewise.
7916 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7917 (sparc_gregmap, sparc_fpregmap): ... these.
7918 (sparc_supply_gregset, sparc_collect_gregset)
7919 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7920 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7921 (_initialize_sparc_nat): Rename regmaps.
7922 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7923 (sparc_gregmap, sparc_fpregmap): ... these.
7924 (sparc_supply_gregset, sparc_collect_gregset)
7925 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7926 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7927 Rename macros to...
7928 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7929 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7930 Likewise.
7931 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7932 Rename to...
7933 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7934 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7935 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7936 regmaps.
7937 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7938 (sparc32_bsd_fpregset): Rename to...
7939 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7940 (sparc32_bsd_fpregmap): ... these.
7941 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7942 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7943 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7944 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7945 (struct sparc_gregmap, struct sparc_fpregmap)
7946 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7947 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7948 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7949 (sparc32_supply_regset, sparc32_collect_gregset)
7950 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7951 prototypes.
7952 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7953 (sparc64_linux_ptrace_gregmap): ... this.
7954 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7955 (_initialize_sparc64_linux_nat): Rename regmaps.
7956 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7957 (sparc64_linux_core_gregmap): ... this.
7958 (sparc64_linux_supply_core_gregset)
7959 (sparc64_linux_collect_core_gregset)
7960 (sparc64_linux_supply_core_fpregset)
7961 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7962 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7963 (sparc64_sol2_fpregset): Rename to...
7964 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7965 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7966 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7967 regmaps.
7968 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7969 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7970 (sparc64_bsd_fpregset): Rename to...
7971 (struct sparc_gregmap, sparc64_sol2_gregmap)
7972 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7973 (sparc64_bsd_fpregmap): ... these.
7974 (sparc64_supply_gregset, sparc64_collect_gregset)
7975 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7976 prototypes.
7977 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7978 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7979 (sparc64fbsd_gregmap): ... this.
7980 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7981 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7982 Rename regmaps.
7983 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7984 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7985 (sparc64nbsd_collect_fpregset): Likewise.
7986 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7987 (sparc64nbsd_gregmap): ... this.
7988 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7989 regmaps.
7990 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7991 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7992 (sparc64obsd_gregmap): ... this.
7993 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7994 regmaps.
7995 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7996 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7997 (sparc32nbsd_gregmap): ... this.
7998 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7999 regmaps.
8000
8001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8002
8003 * score-tdep.c (score7_linux_gregset): New static regset
8004 structure.
8005 (score7_linux_regset_from_core_section): Remove dynamic regset
8006 allocation.
8007 (score_gdbarch_init): Drop allocation of tdep structure.
8008 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8009
8010 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8011
8012 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8013 regset structures.
8014 (am33_regset_from_core_section): Remove dynamic regset
8015 allocations.
8016
8017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8018
8019 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8020 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8021 structures.
8022 (mips_linux_regset_from_core_section): Remove dynamic regset
8023 allocations.
8024 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8025 'gregset64', 'fpregset', and 'fpregset64'.
8026 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8027 deleted tdep fields.
8028
8029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8030
8031 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8032 regset structures.
8033 (amd64_regset_from_core_section): Remove dynamic regset
8034 allocations.
8035 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8036 structure.
8037 (amd64obsd_regset_from_core_section): Remove dynamic regset
8038 allocation.
8039 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8040 Likewise.
8041 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8042 x86-common regset supply function.
8043 * i386-tdep.c (i386_collect_gregset): Make static.
8044 (i386_gregset): New global regset structure.
8045 (i386_fpregset, i386_xstateregset): New static regset structures.
8046 (i386_regset_from_core_section): Remove dynamic regset
8047 allocations.
8048 (i386_gdbarch_init): Remove initialization of tdep fields
8049 'gregset', 'fpregset', and 'xstateregset'.
8050 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8051 'fpregset', and 'xstateregset'.
8052 (i386_collect_gregset): Remove prototype.
8053 (i386_gregset): New declaration.
8054 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8055 structure.
8056 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8057 allocation.
8058
8059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8060
8061 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8062 (arm_linux_vfpregset): New static regset structures.
8063 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8064 regset structures.
8065 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8066 and 'vfpregset' fields.
8067
8068 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8069
8070 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8071 (aarch64_linux_fpregset): New static regset structures.
8072 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8073 of regset structures.
8074 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8075 'fpregset' fields.
8076
8077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8078
8079 * regset.h (struct regset): Remove gdbarch field.
8080 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8081 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8082 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8083 Likewise.
8084 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8085 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8086 (ppc32_linux_vsxregset): Likewise.
8087 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8088 via the regcache instead of the regset.
8089 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8090 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8091 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8092 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8093 Likewise.
8094
8095 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8096
8097 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8098 Constify structures.
8099 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8100 (alphanbsd_aout_gregset): Likewise.
8101 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8102 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8103 Likewise.
8104 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8105 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8106 Likewise.
8107 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8108 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8109 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8110 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8111 * m88k-tdep.c (m88k_gregset): Likewise.
8112 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8113 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8114 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8115 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8116 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8117 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8118 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8119 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8120 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8121 Likewise.
8122 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8123 * sh-tdep.h (sh_corefile_gregset): Likewise.
8124 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8125 * vax-tdep.c (vax_gregset): Likewise.
8126
8127 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8128
8129 Fix TLS access for -static -pthread.
8130 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8131 (try_thread_db_load_1): Initialize it.
8132 (thread_db_get_thread_local_address): Call it if LM is zero.
8133 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8134 * target.h (struct target_ops) (to_get_thread_local_address): Add
8135 load_module_addr comment.
8136
8137 2014-05-21 Pedro Alves <palves@redhat.com>
8138
8139 * dcache.c (dcache_read_memory_partial): If reading the cache line
8140 fails, fallback to reading just the memory the caller wanted.
8141
8142 2014-05-20 Doug Evans <dje@google.com>
8143
8144 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8145 instead of get_current_arch.
8146
8147 2014-05-20 Pedro Alves <palves@redhat.com>
8148
8149 * NEWS: Mention that compare-sections now works with all targets.
8150
8151 * remote.c (PACKET_qCRC): New enum value.
8152 (remote_verify_memory): Don't send qCRC if the target has no
8153 execution. Use packet_support/packet_ok. If the target doesn't
8154 support the qCRC packet, fallback to a deep memory copy.
8155 (compare_sections_command): Say "target image" instead of "remote
8156 executable".
8157 (_initialize_remote): Add PACKET_qCRC to the list of config
8158 packets that have no associated command. Extend comment.
8159 * target.c (simple_verify_memory, default_verify_memory): New
8160 function.
8161 * target.h (struct target_ops) <to_verify_memory>: Default to
8162 default_verify_memory.
8163 (simple_verify_memory): New declaration.
8164 * target-delegates.c: Regenerate.
8165
8166 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8167
8168 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8169
8170 2014-05-20 Hui Zhu <hui@codesourcery.com>
8171 Yao Qi <yao@codesourcery.com>
8172
8173 PR backtrace/16558
8174 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8175 and change address of sp and pc.
8176
8177 2014-05-19 Tom Tromey <tromey@redhat.com>
8178
8179 * gdbtypes.c (rank_function): Use XNEWVEC.
8180 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8181
8182 2014-05-19 Doug Evans <dje@google.com>
8183
8184 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8185 build_type_unit_groups and moved closer to only caller. Remove
8186 arguments. All references updated. Remove outdated .gdb_index
8187 comment.
8188 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8189 build_type_psymtabs_1.
8190
8191 2014-05-19 Doug Evans <dje@google.com>
8192
8193 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8194 n_type_unit_groups, all_type_unit_groups. All uses removed.
8195 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8196 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8197 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8198 (add_type_unit_group_to_table): Delete.
8199
8200 2014-05-19 Doug Evans <dje@google.com>
8201
8202 * eval.c (evaluate_subexp_standard): Add some comments.
8203
8204 2014-05-17 Doug Evans <xdje42@gmail.com>
8205
8206 * progspace.c (remove_program_space): Delete, unused.
8207 * progspace.h (remove_program_space): Ditto.
8208
8209 2014-05-17 Doug Evans <xdje42@gmail.com>
8210
8211 * inferior.c (prune_inferiors): Fix comment.
8212 (remove_inferior_command): Call prune_program_spaces.
8213
8214 2014-05-16 Doug Evans <dje@google.com>
8215
8216 New command line option -D.
8217 * NEWS: Mention it.
8218 * main.c (set_gdb_data_directory): New function.
8219 (captured_main): Recognize -D. Flag error for --data-directory "".
8220 Call set_gdb_data_directory.
8221 (print_gdb_help): Print --data-directory, -D.
8222 * main.h (set_gdb_data_directory): Declare.
8223 * top.c (staged_gdb_datadir): New static global.
8224 (set_gdb_datadir): Call set_gdb_data_directory
8225 (show_gdb_datadir): New function.
8226 (init_main): Update init of data-directory parameter.
8227
8228 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8229
8230 Import the "dirfd" gnulib module.
8231 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8232 * gnulib/aclocal.m4: Update.
8233 * gnulib/config.in: Update.
8234 * gnulib/configure: Update.
8235 * gnulib/import/Makefile.am: Update.
8236 * gnulib/import/Makefile.in: Update.
8237 * gnulib/import/dirfd.c: New.
8238 * gnulib/import/m4/dirfd.m4: New.
8239 * gnulib/import/m4/gnulib-cache.m4: Update.
8240 * gnulib/import/m4/gnulib-comp.m4: Update.
8241
8242 2014-05-16 Pierre Muller <muller@sourceware.org>
8243 Yao Qi <yao@codesourcery.com>
8244
8245 * valprint.c (print_wchar): Move the code on checking whether
8246 W is a printable wide char to the default branch of switch
8247 statement below. Call wchar_printable instead of gdb_iswprint.
8248
8249 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8250
8251 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8252 ldr.w and ldrd instructions.
8253
8254 2014-05-15 Doug Evans <dje@google.com>
8255
8256 * dwarf2read.c (read_structure_type): Delete outdated comments.
8257
8258 2014-05-14 Tom Tromey <tromey@redhat.com>
8259
8260 * macrocmd.c (print_macro_definition): Reindent.
8261
8262 2014-05-13 Doug Evans <xdje42@gmail.com>
8263
8264 * python/py-cmd.c (cmdpy_completer): Add comment.
8265 (completers): Make const.
8266
8267 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8268
8269 * infrun.c (resume): Remove should_resume (unused). Move up
8270 declaration of resume_ptid.
8271
8272 2014-05-13 Tom Tromey <tromey@redhat.com>
8273
8274 * language.h (unop_type_check): Remove.
8275 (binop_type_check): Don't declare.
8276
8277 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8278
8279 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8280 call to regcache_raw_collect.
8281
8282 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8283
8284 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8285 mi_console->quote as the quoting character.
8286
8287 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8288
8289 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8290
8291 2014-04-29 Tom Tromey <tromey@redhat.com>
8292
8293 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8294 "show debug varobj".
8295
8296 2014-05-07 Kyle McMartin <kyle@redhat.com>
8297
8298 Pushed by Joel Brobecker <brobecker@adacore.com>.
8299 * aarch64-tdep.c (aarch64_software_single_step): New function.
8300 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8301 with aarch64_software_single_step.
8302
8303 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8304
8305 GDB 7.7.1 released.
8306
8307 2014-05-05 Keith Seitz <keiths@redhat.com>
8308
8309 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8310 variable or history value is successfully parsed.
8311
8312 2014-05-05 Yao Qi <yao@codesourcery.com>
8313 Pedro Alves <palves@redhat.com>
8314
8315 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8316 address of blocks that intersects the requested range. Trim
8317 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8318 sections.
8319 * ctf.c (ctf_xfer_partial): Likewise.
8320
8321 2014-05-05 Yao Qi <yao@codesourcery.com>
8322
8323 * printcmd.c (display_command): Remove the check to
8324 target_has_execution.
8325
8326 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8327
8328 * ppcobsd-nat.c: Include "obsd-nat.h".
8329 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8330 add_target.
8331 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8332
8333 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8334
8335 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8336 and 16-bit signed and unsigned arguments. Update comment.
8337 (stap_parse_probe_arguments): Extend code to handle such
8338 arguments. Use warning instead of complaint to notify about
8339 unrecognized bitness.
8340
8341 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8342
8343 PR breakpoints/16889
8344 * stap-probe.c (stap_parse_probe_arguments): Simplify
8345 check for non-prefixed probes (i.e., probes whose
8346 arguments do not start with "N@"). Always set the
8347 argument type to a sane value.
8348
8349 2014-05-01 David Taylor <dtaylor@emc.com>
8350
8351 * remote.c (compare_sections_command): Add -r option to compare
8352 all loadable read-only sections.
8353
8354 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8355
8356 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8357 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8358 Update all callers.
8359 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8360 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8361 Remove unused CORE_ADDR argument. Update all callers.
8362
8363 2014-04-29 Pedro Alves <palves@redhat.com>
8364
8365 * remote.c (struct packet_config) <detect>: Extend comment.
8366 (add_packet_config_cmd): Don't set the config's detect or support
8367 fields here.
8368 (init_all_packet_configs): Also initialize the config's 'detect'
8369 field.
8370 (reset_all_packet_configs_support): New function.
8371 (remote_open_1): Call reset_all_packet_configs_support instead of
8372 init_all_packet_configs.
8373 (_initialize_remote): Initialize all packet configs. Assert that
8374 all packets have an associated command, except a few known
8375 outliers.
8376
8377 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8378
8379 * dwarf2read.c (read_subrange_type): Handle dynamic
8380 DW_AT_lower_bound attributes.
8381
8382 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8383
8384 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8385 dynamic bounds before computing its upper bound.
8386 (ada_discrete_type_low_bound): Same as above with the lower bound.
8387
8388 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8389
8390 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8391 range types. Adjust the array handling implementation to
8392 take advantage of this change.
8393 (resolve_dynamic_range): New function, mostly extracted from
8394 resolve_dynamic_bounds.
8395 (resolve_dynamic_array): New function, mostly extracted from
8396 resolve_dynamic_bounds.
8397 (resolve_dynamic_bounds): Delete.
8398 (resolve_dynamic_type): Reimplement. Add handling of
8399 TYPE_CODE_RANGE types.
8400
8401 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8402
8403 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8404 handling of parallel ___XA types.
8405
8406 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8407
8408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8409 unnecessary second call to static_unwrap_type.
8410
8411 2014-04-27 Hui Zhu <hui@codesourcery.com>
8412
8413 * stack.c (print_frame_info): Call do_gdb_disassembly with
8414 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8415
8416 2014-04-26 Doug Evans <xdje42@gmail.com>
8417
8418 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8419
8420 2014-04-25 Pedro Alves <palves@redhat.com>
8421
8422 PR server/16255
8423 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8424 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8425 and newline from built string.
8426 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8427 (linux_ptrace_attach_fail_reason): ... this.
8428 * linux-nat.c (linux_nat_attach): Adjust to use
8429 linux_ptrace_attach_fail_reason.
8430
8431 2014-04-25 Pedro Alves <palves@redhat.com>
8432
8433 * remote.c (struct remote_state): Remove multi_process_aware,
8434 non_stop_aware, cond_tracepoints, cond_breakpoints,
8435 breakpoint_commands, fast_tracepoints, static_tracepoints,
8436 install_in_trace, disconnected_tracing,
8437 enable_disable_tracepoints, string_tracing, and
8438 augmented_libraries_svr4_read fields.
8439 (remote_multi_process_p): Move further below in the file.
8440 (struct packet_config): Add comments.
8441 (update_packet_config): Delete function.
8442 (show_packet_config_cmd): Use packet_config_support.
8443 (add_packet_config_cmd): Use NULL as set callback.
8444 (packet_ok): "set remote foo-packet"-style commands no longer
8445 change config->supported -- adjust.
8446 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8447 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8448 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8449 (PACKET_QNonStop, PACKET_multiprocess_feature)
8450 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8451 (PACKET_DisconnectedTracing_feature)
8452 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8453 (set_remote_protocol_packet_cmd): Delete function.
8454 (packet_config_support, packet_support): New functions.
8455 (set_remote_protocol_Z_packet_cmd): Don't call
8456 update_packet_config.
8457 (remote_query_attached, remote_pass_signals)
8458 (remote_program_signals, remote_threads_info)
8459 (remote_threads_extra_info, remote_start_remote): Use
8460 packet_support.
8461 (remote_start_remote): Use packet_config_support and
8462 packet_support.
8463 (init_all_packet_configs): Set all packets to unknown support,
8464 instead of calling update_packet_config.
8465 (remote_check_symbols): Use packet_support.
8466 (remote_supported_packet): Unconditionally set the packet config's
8467 support status.
8468 (remote_multi_process_feature, remote_non_stop_feature)
8469 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8470 (remote_breakpoint_commands_feature)
8471 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8472 (remote_install_in_trace_feature)
8473 (remote_disconnected_tracing_feature)
8474 (remote_enable_disable_tracepoint_feature)
8475 (remote_string_tracing_feature)
8476 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8477 (remote_protocol_features): Adjust to use remote_supported_packet
8478 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8479 "ConditionalTracepoints", "ConditionalBreakpoints",
8480 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8481 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8482 "EnableDisableTracepoints", and "tracenz".
8483 (remote_query_supported): Use packet_support.
8484 (remote_open_1): Adjust.
8485 (extended_remote_attach_1): Use packet_support. Switch on the
8486 result of packet_ok instead of checking whether the packet ended
8487 up disabled.
8488 (remote_vcont_resume): Use packet_support.
8489 (remote_resume, remote_stop_ns, fetch_register_using_p)
8490 (remote_prepare_to_store, store_register_using_P)
8491 (check_binary_download, remote_write_bytes): Use packet_support.
8492 (remote_vkill): Use packet_support. Switch on the result of
8493 packet_ok instead of checking whether the packet ended up
8494 disabled.
8495 (extended_remote_supports_disable_randomization): Use
8496 packet_support.
8497 (extended_remote_run): Switch on the result of packet_ok instead
8498 of checking whether the packet ended up disabled.
8499 (remote_insert_breakpoint, remote_remove_breakpoint)
8500 (remote_insert_watchpoint, remote_remove_watchpoint)
8501 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8502 packet_support.
8503 (remote_search_memory): Use packet_config_support.
8504 (remote_get_thread_local_address, remote_get_tib_address)
8505 (remote_hostio_send_command, remote_can_execute_reverse): Use
8506 packet_support.
8507 (remote_supports_cond_tracepoints)
8508 (remote_supports_cond_breakpoints)
8509 (remote_supports_fast_tracepoints)
8510 (remote_supports_static_tracepoints)
8511 (remote_supports_install_in_trace)
8512 (remote_supports_enable_disable_tracepoint)
8513 (remote_supports_string_tracing)
8514 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8515 the packet config says the feature is enabled or disabled.
8516 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8517 (remote_get_trace_status): Use packet_support.
8518 (remote_set_disconnected_tracing): Adjust to check whether the
8519 feature is enabled with packet_support.
8520 (remote_set_trace_buffer_size, remote_use_agent)
8521 (remote_can_use_agent, remote_supports_btrace): Use
8522 packet_support.
8523 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8524 Use packet_config_support.
8525 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8526 the packet config says the feature is enabled or disabled.
8527 (set_range_stepping): Use packet_support.
8528
8529 2014-04-25 Tom Tromey <tromey@redhat.com>
8530
8531 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8532 argument.
8533
8534 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8535
8536 * NEWS: Mention support for C99 variable length arrays.
8537
8538 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8539
8540 * ada-lang.c (standard_exc): Expand introductory comment.
8541
8542 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8543 Walfred Tedeschi <walfred.tedeschi@intel.com>
8544
8545 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8546 AVX512 registers.
8547 (amd64_linux_read_description): Add code to handle AVX512 xstate
8548 mask and return respective tdesc.
8549 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8550 and features/i386/x32-avx512-linux.c.
8551 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8552 (amd64_linux_core_read_description): Add code to handle AVX512
8553 xstate mask and return respective tdesc.
8554 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8555 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8556 calculation.
8557 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8558 (tdesc_amd64_avx512_linux): New prototype.
8559 (tdesc_x32_avx512_linux): Likewise.
8560 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8561 features/i386/x32-avx512.c.
8562 (amd64_ymm_avx512_names): New register names for pseudo
8563 registers YMM16-31.
8564 (amd64_ymmh_avx512_names): New register names for raw registers
8565 YMMH16-31.
8566 (amd64_k_names): New register names for K registers.
8567 (amd64_zmmh_names): New register names for ZMM raw registers.
8568 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8569 (amd64_xmm_avx512_names): New register names for XMM16-31
8570 registers.
8571 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8572 registers.
8573 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8574 if feature is present.
8575 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8576 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8577 (AMD64_NUM_REGS): Adjust to new number of registers.
8578 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8579 registers supplied via XSTATE by AVX512 registers.
8580 (i386_linux_read_description): Add case for AVX512.
8581 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8582 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8583 (i386_linux_core_read_description): Add case for AVX512.
8584 (i386_linux_init_abi): Install supported register note section
8585 for AVX512.
8586 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8587 AVX512.
8588 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8589 registers to be number of zmm7h + 1.
8590 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8591 * i386-tdep.c: Include features/i386/i386-avx512.c.
8592 (i386_zmm_names): Add ZMM pseudo register names array.
8593 (i386_zmmh_names): Add ZMM raw register names array.
8594 (i386_k_names): Add K raw register names array.
8595 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8596 registers. AVX512 has 16 more ZMM registers than there are YMM
8597 registers.
8598 (i386_zmmh_regnum_p): Add function to look up register number of
8599 ZMM raw registers.
8600 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8601 (i386_k_regnum_p): Likewise for K raw registers.
8602 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8603 registers added by AVX512.
8604 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8605 registers added by AVX512.
8606 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8607 added by AVX512.
8608 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8609 (i386_pseudo_register_name): Add ZMM pseudo registers.
8610 (i386_zmm_type): Construct and return vector registers type for ZMM
8611 registers.
8612 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8613 ZMM0-31 pseudo registers and K registers.
8614 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8615 and YMM16-31 registers from register cache.
8616 (i386_pseudo_register_write): Add code to write K, ZMM and
8617 YMM16-31 registers.
8618 (i386_register_reggroup_p): Add code to include/exclude AVX512
8619 registers in/from respective register groups.
8620 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8621 registers if feature is present in xcr0.
8622 (i386_gdbarch_init): Add code to initialize AVX512 feature
8623 variables in tdep structure, wire in pseudo registers and call
8624 initialize_tdesc_i386_avx512.
8625 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8626 variables.
8627 (i386_regnum): Add AVX512 registers.
8628 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8629 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8630 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8631 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8632 512 bits wide.
8633 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8634 (i386_ymm_avx512_regnum_p): Likewise.
8635 (i386_k_regnum_p): Likewise.
8636 (i386_zmm_regnum_p): Likewise.
8637 (i386_zmmh_regnum_p): Likewise.
8638 * i387-tdep.c : Update year in copyright notice.
8639 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8640 XSAVE buffer.
8641 (XSAVE_YMM_AVX512_ADDR): New macro.
8642 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8643 XSAVE buffer.
8644 (XSAVE_XMM_AVX512_ADDR): New macro.
8645 (xsave_avx512_k_offset): New table for K register offsets in
8646 XSAVE buffer.
8647 (XSAVE_AVX512_K_ADDR): New macro.
8648 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8649 in XSAVE buffer.
8650 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8651 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8652 buffer.
8653 (i387_collect_xsave): Add code to collect AVX512 registers from
8654 XSAVE buffer.
8655 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8656 of XMM16-31 registers.
8657 (I387_NUM_K_REGS): New define for number of K registers.
8658 (I387_K0_REGNUM): New define for K0 register number.
8659 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8660 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8661 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8662 registers.
8663 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8664 (I387_XMM16_REGNUM): New define for XMM16 register number.
8665 (I387_YMM0_REGNUM): New define for YMM0 register number.
8666 (I387_KEND_REGNUM): New define for last K register number.
8667 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8668 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8669 number.
8670 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8671 number.
8672 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8673 size.
8674 * features/Makefile: Add AVX512 related files.
8675 * features/i386/32bit-avx512.xml: New file.
8676 * features/i386/64bit-avx512.xml: Likewise.
8677 * features/i386/amd64-avx512-linux.c: Likewise.
8678 * features/i386/amd64-avx512-linux.xml: Likewise.
8679 * features/i386/amd64-avx512.c: Likewise.
8680 * features/i386/amd64-avx512.xml: Likewise.
8681 * features/i386/i386-avx512-linux.c: Likewise.
8682 * features/i386/i386-avx512-linux.xml: Likewise.
8683 * features/i386/i386-avx512.c: Likewise.
8684 * features/i386/i386-avx512.xml: Likewise.
8685 * features/i386/x32-avx512-linux.c: Likewise.
8686 * features/i386/x32-avx512-linux.xml: Likewise.
8687 * features/i386/x32-avx512.c: Likewise.
8688 * features/i386/x32-avx512.xml: Likewise.
8689 * regformats/i386/amd64-avx512-linux.dat: New file.
8690 * regformats/i386/amd64-avx512.dat: Likewise.
8691 * regformats/i386/i386-avx512-linux.dat: Likewise.
8692 * regformats/i386/i386-avx512.dat: Likewise.
8693 * regformats/i386/x32-avx512-linux.dat: Likewise.
8694 * regformats/i386/x32-avx512.dat: Likewise.
8695 * NEWS: Add note about new support for AVX512.
8696
8697
8698 2014-04-23 Pedro Alves <palves@redhat.com>
8699
8700 * breakpoint.c (insert_bp_location): Tolerate errors if the
8701 breakpoint is set in a user-loaded objfile.
8702 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8703 location is marked shlib_disabled. If the breakpoint is set in a
8704 user-loaded objfile is a GDB-side memory breakpoint, validate it
8705 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8706 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8707 flag.
8708 * mem-break.c (memory_validate_breakpoint): New function.
8709 * objfiles.c (userloaded_objfile_contains_address_p): New
8710 function.
8711 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8712 * target.h (memory_validate_breakpoint): New declaration.
8713
8714 2014-04-23 Pedro Alves <palves@redhat.com>
8715
8716 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8717 the breakpoint is set in a shared library, only suppress
8718 errors for software breakpoints, not hardware breakpoints.
8719
8720 2014-04-22 Pedro Alves <palves@redhat.com>
8721
8722 * infrun.c (schedlock_applies): New function, factored out from
8723 find_thread_needs_step_over.
8724 (find_thread_needs_step_over): Use it.
8725 (switch_back_to_stepped_thread): Always clear trap_expected if the
8726 step over is finished. Return early if scheduler locking applies.
8727 Look for the stepping thread and a potential step-over thread with
8728 a single loop.
8729 (currently_stepping_or_nexting_callback): Delete.
8730
8731 2014-04-22 Nick Clifton <nickc@redhat.com>
8732
8733 * NEWS: Mention that ARM sim now supports tracing.
8734
8735 2014-04-22 Yao Qi <yao@codesourcery.com>
8736
8737 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8738 to ...
8739 * tracefile.c (tracefile_fetch_registers): ... it. New
8740 function.
8741 * tracefile.h (tracefile_fetch_registers): Declare.
8742 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8743 tracefile_fetch_registers.
8744
8745 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8746
8747 PR gdb/14018
8748 * windows-nat.c (thread_rec): Don't display a warning when
8749 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8750 fails for any reason, set th->suspended to -1, so that we don't
8751 try to resume such a thread. Also, don't return NULL in these
8752 cases, to avoid completely ruin the session due to "PC register is
8753 not available" error.
8754 (do_windows_fetch_inferior_registers): Check errors in
8755 GetThreadContext call.
8756 (windows_continue): Accept an additional argument KILLED; if not
8757 zero, ignore errors in the SetThreadContext call, since the
8758 inferior was killed and is shutting down.
8759 (windows_resume, get_windows_debug_event)
8760 (windows_create_inferior, windows_mourn_inferior)
8761 (windows_kill_inferior): All callers of windows_continue changed
8762 to adjust to its new calling sequence.
8763
8764 2014-04-19 Yao Qi <yao@codesourcery.com>
8765
8766 * ctf.c (ctf_open): Call post_create_inferior.
8767
8768 2014-04-19 Yao Qi <yao@codesourcery.com>
8769
8770 * ctf.c (handle_id): New static variable.
8771 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8772 value. Get the declaration of event "register" and get length
8773 of field "contents".
8774
8775 2014-04-19 Yao Qi <yao@codesourcery.com>
8776
8777 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8778
8779 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8780
8781 * valops.c (oload_method_static): Remove unnecessary argument
8782 METHOD. Update all callers.
8783
8784 2014-04-18 Pedro alves <palves@redhat.com>
8785 Tom Tromey <tromey@redhat.com>
8786
8787 PR backtrace/15558
8788 * frame.c (get_prev_frame_1): Rename to ...
8789 (get_prev_frame_always): ... this, and make extern. Adjust.
8790 (skip_artificial_frames): Use get_prev_frame_always.
8791 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8792 (get_frame_unwind_stop_reason): Adjust to rename.
8793 * frame.h (get_prev_frame_always): Declare.
8794 * inline-frame.c: Include frame.h.
8795 (inline_frame_this_id): Use get_prev_frame_always.
8796
8797 2014-04-18 Tristan Gingold <gingold@adacore.com>
8798
8799 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8800 code by using bfd_mach_o_get_base_address.
8801
8802 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8803
8804 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8805 (spu_ax_pseudo_register_collect): New function.
8806 (spu_ax_pseudo_register_push_stack): Likewise.
8807 (spu_dwarf_reg_to_regnum): Likewise.
8808 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8809
8810 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8811
8812 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8813 Replace FRAME argument with FRAME_ID.
8814 * gdbarch.c, gdbarch.h: Regenerate.
8815 * findvar.c (default_value_from_register): Add GDBARCH argument;
8816 replace FRAME by FRAME_ID. No longer call get_frame_id.
8817 (value_from_register): Update call to gdbarch_value_from_register.
8818 * value.h (default_value_from_register): Update prototype.
8819 * s390-linux-tdep.c (s390_value_from_register): Update interface
8820 and call to default_value_from_register.
8821 * spu-tdep.c (spu_value_from_register): Likewise.
8822
8823 * findvar.c (address_from_register): Remove TYPE argument.
8824 Do not call value_from_register; use gdbarch_value_from_register
8825 with null_frame_id instead.
8826 * value.h (address_from_register): Update prototype.
8827 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8828 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8829 address_from_register interface change.
8830
8831 2014-04-17 Yao Qi <yao@codesourcery.com>
8832
8833 * gdbtypes.h: Update comments to link to types and macros'
8834 definitions.
8835
8836 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8837
8838 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8839
8840 2014-04-16 Keith Seitz <keiths@redhat.com>
8841
8842 PR gdb/15827
8843 * dwarf2read.c (skip_one_die): Check that all relative-offset
8844 sibling DIEs fall within range of the current reader's buffer.
8845 (read_partial_die): Likewise.
8846
8847 2014-04-16 Keith Seitz <keiths@redhat.com>
8848
8849 PR c++/16597
8850 * cp-namespace.c (lookup_symbol_file): If the type name of
8851 `this' is NULL, return immediately.
8852
8853 2014-04-14 Keith Seitz <keiths@redhat.com>
8854
8855 PR c++/16253
8856 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8857 from symbol_matches_domain in symtab.c. All local callers
8858 of symbol_matches_domain updated.
8859 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8860 search STRUCT_DOMAIN.
8861 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8862 independently. standard_lookup will do that automatically.
8863 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8864 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8865 (cp_lookup_symbol_in_namespace): Likewise.
8866 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8867 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8868 may return a STRUCT_DOMAIN match.
8869 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8870 * cp-support.c: Include language.h.
8871 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8872 VAR_DOMAIN.
8873 * psymtab.c (match_partial_symbol): Compare the requested
8874 domain with the symbol's domain directly.
8875 (lookup_partial_symbol): Likewise.
8876 * symtab.c (lookup_symbol_in_language): Explain when/why
8877 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8878 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8879 appropriate languages.
8880 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8881 and moved to ada-lang.c
8882 (lookup_block_symbol): Explain that this function only returns
8883 symbol matching the requested DOMAIN.
8884 Compare the requested domain with the symbol's domain directly.
8885 (iterate_over_symbols): Compare the requested domain with the
8886 symbol's domain directly.
8887 * symtab.h (symbol_matches_domain): Remove.
8888
8889 2014-04-14 Tom Tromey <tromey@redhat.com>
8890
8891 PR c++/15246:
8892 * c-exp.y (type_aggregate_p): New function.
8893 (qualified_name, classify_inner_name): Use it.
8894 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8895 and TYPE_TARGET_TYPE of an enum type.
8896 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8897 an enum type.
8898 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8899 handle TYPE_DECLARED_CLASS.
8900 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8901 types.
8902 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8903 * valops.c (enum_constant_from_type): New function.
8904 (value_aggregate_elt): Use it.
8905 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8906 TYPE_CODE_ENUM.
8907
8908 2014-04-14 Tom Tromey <tromey@redhat.com>
8909
8910 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8911 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8912 const.
8913 * value.h (value_aggregate_elt): Update.
8914
8915 2014-04-14 Tom Tromey <tromey@redhat.com>
8916
8917 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8918
8919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8920
8921 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8922 (evaluate_subexp_standard): Pass noside argument.
8923 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8924 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8925 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8926 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8927 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8928
8929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8930
8931 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8932 points to a constant blob.
8933
8934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8935
8936 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8937 property and store it as the high bound and flag the range accordingly.
8938 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8939 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8940 * gdbtypes.h (enum range_flags): New enum.
8941 (struct range_bounds): Add flags member.
8942
8943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8944
8945 * c-typeprint.c (c_type_print_varspec_suffix): Added
8946 check for not yet resolved high bound. If unresolved, print
8947 "variable length" string to the console instead of random
8948 length.
8949
8950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8951
8952 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8953 value.
8954 (ada_template_to_fixed_record_type_1): Likewise.
8955 (ada_to_fixed_type_1): Likewise.
8956 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8957 (cp_print_value): Likewise.
8958 * d-valprint.c (dynamic_array_type): Likewise.
8959 * findvar.c (address_of_variable): Likewise.
8960 * jv-valprint.c (java_value_print): Likewise.
8961 * valops.c (value_ind): Likewise.
8962 * value.c (coerce_ref): Likewise.
8963
8964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8965
8966 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8967 value and retrieve the dynamic type size.
8968
8969 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8970
8971 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8972 passed to sizeof is dynamic evaluate the argument to compute the length.
8973
8974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8975 Joel Brobecker <brobecker@adacore.com>
8976
8977 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8978 (dwarf2_evaluate_property): New function.
8979 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8980 * dwarf2read.c (attr_to_dynamic_prop): New function.
8981 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8982 attribute.
8983 * gdbtypes.c: Include dwarf2loc.h.
8984 (is_dynamic_type): New function.
8985 (resolve_dynamic_type): New function.
8986 (resolve_dynamic_bounds): New function.
8987 (get_type_length): New function.
8988 (check_typedef): Use get_type_length to compute type length.
8989 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8990 (TYPE_LOW_BOUND_KIND): New macro.
8991 (is_dynamic_type): New function prototype.
8992 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8993 to resolve dynamic properties of the type. Update comment.
8994 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8995
8996 2014-04-14 Richard Henderson <rth@redhat.com>
8997
8998 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8999
9000 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9001 Doug Evans <xdje42@gmail.com>
9002
9003 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9004 dereference TYPE_CODE_REF values.
9005
9006 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9007
9008 Revert the following changes due to regressions:
9009
9010 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9011 (dwarf2_evaluate_property): New function.
9012 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9013 * dwarf2read.c (attr_to_dynamic_prop): New function.
9014 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9015 attribute.
9016 * gdbtypes.c: Include dwarf2loc.h.
9017 (is_dynamic_type): New function.
9018 (resolve_dynamic_type): New function.
9019 (resolve_dynamic_bounds): New function.
9020 (get_type_length): New function.
9021 (check_typedef): Use get_type_length to compute type length.
9022 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9023 (TYPE_LOW_BOUND_KIND): New macro.
9024 (is_dynamic_type): New function prototype.
9025 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9026 to resolve dynamic properties of the type. Update comment.
9027 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9028
9029 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9030 passed to sizeof is dynamic evaluate the argument to compute the length.
9031
9032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9033 value and retrieve the dynamic type size.
9034
9035 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9036 (ada_template_to_fixed_record_type_1): Likewise.
9037 (ada_to_fixed_type_1): Likewise.
9038 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9039 (cp_print_value): Likewise.
9040 * d-valprint.c (dynamic_array_type): Likewise.
9041 * eval.c (evaluate_subexp_with_coercion): Likewise.
9042 * findvar.c (address_of_variable): Likewise.
9043 * jv-valprint.c (java_value_print): Likewise.
9044 * valops.c (value_ind): Likewise.
9045 * value.c (coerce_ref): Likewise.
9046
9047 * c-typeprint.c (c_type_print_varspec_suffix): Added
9048 check for not yet resolved high bound. If unresolved, print
9049 "variable length" string to the console instead of random
9050 length.
9051
9052 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9053 property and store it as the high bound and flag the range accordingly.
9054 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9055 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9056 * gdbtypes.h (enum range_flags): New enum.
9057 (struct range_bounds): Add flags member.
9058
9059 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9060 points to a constant blob.
9061
9062 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9063 (evaluate_subexp_standard): Pass noside argument.
9064 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9065 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9066 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9067 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9068 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9069
9070 2014-04-11 Keith Seitz <keiths@redhat.com>
9071
9072 PR c++/16675
9073 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9074 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9075 reference types.
9076
9077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9078
9079 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9080 (evaluate_subexp_standard): Pass noside argument.
9081 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9082 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9083 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9084 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9085 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9086
9087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9088
9089 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9090 points to a constant blob.
9091
9092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9093
9094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9095 property and store it as the high bound and flag the range accordingly.
9096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9098 * gdbtypes.h (enum range_flags): New enum.
9099 (struct range_bounds): Add flags member.
9100
9101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9102
9103 * c-typeprint.c (c_type_print_varspec_suffix): Added
9104 check for not yet resolved high bound. If unresolved, print
9105 "variable length" string to the console instead of random
9106 length.
9107
9108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9109
9110 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9111 (ada_template_to_fixed_record_type_1): Likewise.
9112 (ada_to_fixed_type_1): Likewise.
9113 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9114 (cp_print_value): Likewise.
9115 * d-valprint.c (dynamic_array_type): Likewise.
9116 * eval.c (evaluate_subexp_with_coercion): Likewise.
9117 * findvar.c (address_of_variable): Likewise.
9118 * jv-valprint.c (java_value_print): Likewise.
9119 * valops.c (value_ind): Likewise.
9120 * value.c (coerce_ref): Likewise.
9121
9122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9123
9124 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9125 value and retrieve the dynamic type size.
9126
9127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9128
9129 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9130 passed to sizeof is dynamic evaluate the argument to compute the length.
9131
9132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9133
9134 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9135 (dwarf2_evaluate_property): New function.
9136 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9137 * dwarf2read.c (attr_to_dynamic_prop): New function.
9138 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9139 attribute.
9140 * gdbtypes.c: Include dwarf2loc.h.
9141 (is_dynamic_type): New function.
9142 (resolve_dynamic_type): New function.
9143 (resolve_dynamic_bounds): New function.
9144 (get_type_length): New function.
9145 (check_typedef): Use get_type_length to compute type length.
9146 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9147 (TYPE_LOW_BOUND_KIND): New macro.
9148 (is_dynamic_type): New function prototype.
9149 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9150 to resolve dynamic properties of the type. Update comment.
9151 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9152
9153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9154
9155 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9156 declaring high/low bounds and change uses accordingly. Call
9157 create_range_type instead of create_static_range_type.
9158 * gdbtypes.c (create_range_type): New function.
9159 (create_range_type): Convert bounds into struct bound_prop and pass
9160 them to create_range_type.
9161 * gdbtypes.h (struct bound_prop): New struct.
9162 (create_range_type): New function prototype.
9163 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9164 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9165 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9166 part of the bound.
9167 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9168
9169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9170
9171 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9172 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9173 * ada-lang.c: All uses of create_range_type updated.
9174 * coffread.c: All uses of create_range_type updated.
9175 * dwarf2read.c: All uses of create_range_type updated.
9176 * f-exp.y: All uses of create_range_type updated.
9177 * m2-valprint.c: All uses of create_range_type updated.
9178 * mdebugread.c: All uses of create_range_type updated.
9179 * stabsread.c: All uses of create_range_type updated.
9180 * valops.c: All uses of create_range_type updated.
9181 * valprint.c: All uses of create_range_type updated.
9182
9183 2014-04-10 Pedro Alves <palves@redhat.com>
9184
9185 * breakpoint.c (single_step_breakpoints)
9186 (single_step_gdbarch): Move up in the file.
9187 (one_breakpoint_xfer_memory): New function, factored out from ...
9188 (breakpoint_xfer_memory): ... here. Also process single-step
9189 breakpoints.
9190
9191 2014-04-09 Tristan Gingold <gingold@adacore.com>
9192
9193 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9194 comments.
9195 (darwin_decode_exception_message): Free port only after use.
9196
9197 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9198
9199 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9200 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9201 when setting the size of call_length.
9202
9203 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9204
9205 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9206 dereference TYPE_CODE_REF values.
9207
9208 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9209
9210 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9211 end of warning message.
9212
9213 2014-04-03 Doug Evans <dje@google.com>
9214
9215 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9216 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9217
9218 2014-04-02 Alan Modra <amodra@gmail.com>
9219
9220 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9221 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9222 (struct symbol_file_add_from_memory_args): Add size field.
9223 (find_vdso_size): New function.
9224 (add_vsyscall_page): Attempt to find vdso size.
9225
9226 2014-04-01 Doug Evans <dje@google.com>
9227
9228 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9229
9230 2014-04-01 Tristan Gingold <gingold@adacore.com>
9231
9232 * darwin-nat.c (darwin_encode_reply): Add prototype.
9233 (darwin_decode_exception_message): Reply to unknown inferiors.
9234 (darwin_decode_message): Handle message by id. Ignore message
9235 to unknown inferior.
9236 (darwin_wait): Discard unknown messages, add debug trace.
9237
9238 2014-03-31 Doug Evans <dje@google.com>
9239
9240 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9241 comp_dir_string.
9242
9243 2014-03-31 Doug Evans <dje@google.com>
9244
9245 New option "set print symbol-loading".
9246 * NEWS: Mention it.
9247 * solib.c (solib_read_symbols): Only print symbol loading messages
9248 if requested.
9249 (solib_add): If symbol loading is in "brief" mode, notify user
9250 symbols are being loaded.
9251 (reload_shared_libraries_1): Ditto.
9252 * symfile.c (print_symbol_loading_off): New static global.
9253 (print_symbol_loading_brief): New static global.
9254 (print_symbol_loading_full): New static global.
9255 (print_symbol_loading_enums): New static global.
9256 (print_symbol_loading): New static global.
9257 (print_symbol_loading_p): New function.
9258 (symbol_file_add_with_addrs): Only print symbol loading messages
9259 if requested.
9260 (_initialize_symfile): Register "print symbol-loading" set/show
9261 command.
9262 * symfile.h (print_symbol_loading_p): Declare.
9263
9264 2014-03-30 Doug Evans <xdje42@gmail.com>
9265
9266 * infrun.c (set_last_target_status): New function.
9267 (handle_inferior_event): Call it.
9268
9269 2014-03-30 Doug Evans <xdje42@gmail.com>
9270
9271 * inferior.h (enum stop_kind): Improve comment.
9272
9273 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9274
9275 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9276 a reference, strip the reference layer before calling
9277 the lang_ops value_has_mutated callback.
9278
9279 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9280
9281 Remove some globals from our parser.
9282 * language.c (unk_lang_parser): Add "struct parser_state"
9283 argument.
9284 * language.h (struct language_defn) <la_parser>: Likewise.
9285 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9286 (initialize_expout): Add "struct parser_state" argument.
9287 Rewrite function to use the parser state.
9288 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9289 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9290 write_exp_elt_longcst, write_exp_elt_dblcst,
9291 write_exp_elt_decfloatcst, write_exp_elt_type,
9292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9293 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9294 write_dollar_variable): Likewise.
9295 (parse_exp_in_context_1): Use parser state.
9296 (insert_type_address_space): Add "struct parser_state" argument.
9297 Use parser state.
9298 (increase_expout_size): New function.
9299 * parser-defs.h: Forward declare "struct language_defn" and
9300 "struct parser_state".
9301 (expout, expout_size, expout_ptr): Remove extern declarations.
9302 (parse_gdbarch, parse_language): Rewrite macro declarations to
9303 accept the parser state.
9304 (struct parser_state): New struct.
9305 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9306 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9307 write_exp_elt_decfloatcst, write_exp_elt_type,
9308 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9309 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9310 write_exp_msymbol, write_dollar_variable,
9311 mark_struct_expression, insert_type_address_space): Add "struct
9312 parser_state" argument.
9313 (increase_expout_size): New function.
9314 * utils.c (do_clear_parser_state): New function.
9315 (make_cleanup_clear_parser_state): Likewise.
9316 * utils.h (make_cleanup_clear_parser_state): New function
9317 prototype.
9318 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9319 Update calls to write_exp* in order to pass the parser state.
9320 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9321 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9322 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9323 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9324 * stap-probe.c (stap_parse_register_operand): Likewise.
9325 (stap_parse_single_operand): Likewise.
9326 (stap_parse_argument_1): Likewise.
9327 (stap_parse_argument): Use parser state.
9328 * stap-probe.h: Include "parser-defs.h".
9329 (struct stap_parse_info) <pstate>: New field.
9330 * c-exp.y (parse_type): Rewrite to use parser state.
9331 (yyparse): Redefine to c_parse_internal.
9332 (pstate): New global variable.
9333 (parse_number): Add "struct parser_state" argument.
9334 (write_destructor_name): Likewise.
9335 (type_exp): Update calls to write_exp* and similars in order to
9336 use parser state.
9337 (exp1, exp, variable, qualified_name, space_identifier,
9338 typename, typebase): Likewise.
9339 (write_destructor_name, parse_number, lex_one_token,
9340 classify_name, classify_inner_name, c_parse): Add "struct
9341 parser_state" argument. Update function to use parser state.
9342 * c-lang.h: Forward declare "struct parser_state".
9343 (c_parse): Add "struct parser_state" argument.
9344 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9345 (yyparse): Redefine macro to ada_parse_internal.
9346 (pstate): New variable.
9347 (write_int, write_object_renaming, write_var_or_type,
9348 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9349 type_int, type_long, type_long_long, type_float, type_double,
9350 type_long_double, type_char, type_boolean, type_system_address):
9351 Add "struct parser_state" argument.
9352 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9353 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9354 var_or_type, aggregate, aggregate_component_list,
9355 positional_list, others, component_group,
9356 component_associations): Update calls to write_exp* and similar
9357 functions in order to use parser state.
9358 (ada_parse, write_var_from_sym, write_int,
9359 write_exp_op_with_string, write_object_renaming,
9360 find_primitive_type, write_selectors, write_ambiguous_var,
9361 write_var_or_type, write_name_assoc, type_int, type_long,
9362 type_long_long, type_float, type_double, type_long_double,
9363 type_char, type_boolean, type_system_address): Add "struct
9364 parser_state" argument. Adjust function to use parser state.
9365 * ada-lang.c (parse): Likewise.
9366 * ada-lang.h: Forward declare "struct parser_state".
9367 (ada_parse): Add "struct parser_state" argument.
9368 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9369 calls to both functions.
9370 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9371 parser state.
9372 (yyparse): Redefine macro to f_parse_internal.
9373 (pstate): New variable.
9374 (parse_number): Add "struct parser_state" argument.
9375 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9376 and similars in order to use parser state.
9377 (parse_number): Adjust code to use parser state.
9378 (yylex): Likewise.
9379 (f_parse): New function.
9380 * f-lang.h: Forward declare "struct parser_state".
9381 (f_parse): Add "struct parser_state" argument.
9382 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9383 parser state.
9384 (yyparse): Redefine macro for java_parse_internal.
9385 (pstate): New variable.
9386 (push_expression_name, push_expression_name, insert_exp): Add
9387 "struct parser_state" argument.
9388 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9389 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9390 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9391 PostIncrementExpression, PostDecrementExpression,
9392 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9393 UnaryExpressionNotPlusMinus, CastExpression,
9394 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9395 RelationalExpression, EqualityExpression, AndExpression,
9396 ExclusiveOrExpression, InclusiveOrExpression,
9397 ConditionalAndExpression, ConditionalOrExpression,
9398 ConditionalExpression, Assignment, LeftHandSide): Update
9399 calls to write_exp* and similars in order to use parser state.
9400 (parse_number): Ajust code to use parser state.
9401 (yylex): Likewise.
9402 (java_parse): New function.
9403 (push_variable): Add "struct parser_state" argument. Adjust
9404 code to user parser state.
9405 (push_fieldnames, push_qualified_expression_name,
9406 push_expression_name, insert_exp): Likewise.
9407 * jv-lang.h: Forward declare "struct parser_state".
9408 (java_parse): Add "struct parser_state" argument.
9409 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9410 parser state.
9411 (yyparse): Redefine macro to m2_parse_internal.
9412 (pstate): New variable.
9413 (type_exp, exp, fblock, variable, type): Update calls to
9414 write_exp* and similars to use parser state.
9415 (yylex): Likewise.
9416 (m2_parse): New function.
9417 * m2-lang.h: Forward declare "struct parser_state".
9418 (m2_parse): Add "struct parser_state" argument.
9419 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9420 * objc-lang.h: Forward declare "struct parser_state".
9421 (end_msglist): Add "struct parser_state" argument.
9422 * p-exp.y (parse_type): Rewrite macro to use parser state.
9423 (yyparse): Redefine macro to pascal_parse_internal.
9424 (pstate): New variable.
9425 (parse_number): Add "struct parser_state" argument.
9426 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9427 write_exp* and similars in order to use parser state.
9428 (parse_number, yylex): Adjust code to use parser state.
9429 (pascal_parse): New function.
9430 * p-lang.h: Forward declare "struct parser_state".
9431 (pascal_parse): Add "struct parser_state" argument.
9432 * go-exp.y (parse_type): Rewrite macro to use parser state.
9433 (yyparse): Redefine macro to go_parse_internal.
9434 (pstate): New variable.
9435 (parse_number): Add "struct parser_state" argument.
9436 (type_exp, exp1, exp, variable, type): Update calls to
9437 write_exp* and similars in order to use parser state.
9438 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9439 to use parser state.
9440 (go_parse): Likewise.
9441 * go-lang.h: Forward declare "struct parser_state".
9442 (go_parse): Add "struct parser_state" argument.
9443
9444 2014-03-27 Doug Evans <dje@google.com>
9445
9446 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9447
9448 2014-03-27 Doug Evans <dje@google.com>
9449
9450 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9451 Remove argument abbrev_section. All callers updated.
9452
9453 2014-03-27 Doug Evans <dje@google.com>
9454
9455 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9456 addr_base, ranges_base.
9457
9458 2014-03-26 Keith Seitz <keiths@redhat.com>
9459
9460 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9461 types, not VAR_DOMAIN.
9462
9463 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9464
9465 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9466 "ra" registers.
9467 * features/nios2-linux.c: Regenerated.
9468 * features/nios2.c: Regenerated.
9469
9470 2014-03-25 Pedro Alves <palves@redhat.com>
9471
9472 * cli/cli-script.c (script_from_file): Force the interpreter to
9473 sync mode.
9474
9475 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9476
9477 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9478 small stack allocation.
9479
9480 2014-03-24 Tristan Gingold <gingold@adacore.com>
9481
9482 * darwin-nat.c (exc_server): Remove unused prototype.
9483 (darwin_dump_message): Correctly display data on x86_64.
9484 (darwin_encode_reply): Fix style.
9485 Add comments and fix indentation.
9486
9487 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9488
9489 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9490
9491 2014-03-22 Doug Evans <xdje42@gmail.com>
9492
9493 * infcmd.c: Whitespace fixes.
9494 (interrupt_command): Merge two function comments into one.
9495
9496 2014-03-22 Doug Evans <xdje42@gmail.com>
9497
9498 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9499 All uses updated.
9500
9501 2014-03-22 Yao Qi <yao@codesourcery.com>
9502
9503 * remote.c (target_read_live_memory): Remove.
9504 (memory_xfer_live_readonly_partial): Rename it to
9505 remote_xfer_live_readonly_partial. Remove argument 'object'.
9506 All callers updated. Call remote_read_bytes_1
9507 instead of target_read_live_memory.
9508 * tracepoint.c (set_traceframe_number): Remove.
9509 (make_cleanup_restore_traceframe_number): Likewise .
9510 * tracepoint.h (set_traceframe_number): Remove declaration.
9511 (make_cleanup_restore_traceframe_number): Likewise.
9512
9513 2014-03-22 Yao Qi <yao@codesourcery.com>
9514
9515 * remote.c (remote_read_bytes): Move code on reading from the
9516 remote stub to ...
9517 (remote_read_bytes_1): ... here. New function.
9518
9519 2014-03-22 Yao Qi <yao@codesourcery.com>
9520
9521 * ctf.c (ctf_xfer_partial): Check the return value of
9522 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9523 return TARGET_XFER_UNAVAILABLE.
9524 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9525 * target.c (target_read_live_memory): Move it to remote.c.
9526 (memory_xfer_live_readonly_partial): Likewise.
9527 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9528 * remote.c (target_read_live_memory): Moved from target.c.
9529 (memory_xfer_live_readonly_partial): Likewise.
9530 (remote_read_bytes): Factored out from
9531 memory_xfer_partial_1.
9532
9533 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9534
9535 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9536 NULL pointer.
9537
9538 2014-03-21 Pedro Alves <palves@redhat.com>
9539
9540 * infrun.c (normal_stop): Extend comment.
9541
9542 2014-03-21 Hui Zhu <hui@codesourcery.com>
9543 Pedro Alves <palves@redhat.com>
9544
9545 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9546 static buffer.
9547 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9548 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9549 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9550
9551 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9552
9553 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9554 `z' formatted output modifier.
9555
9556 2014-03-20 Tom Tromey <tromey@redhat.com>
9557 Sergio Durigan Junior <sergiodj@redhat.com>
9558
9559 * probe.c (parse_probes): Turn assert into an ordinary error.
9560 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9561 exceptions when parsing probes. Rearrange the code for clarity.
9562
9563 2014-03-20 Tom Tromey <tromey@redhat.com>
9564
9565 PR gdb/14135
9566 * top.c (execute_command): Only dispatch events if the command
9567 started the target.
9568
9569 2014-03-20 Tom Tromey <tromey@redhat.com>
9570
9571 PR cli/15718
9572 * infcall.c: Include event-top.h.
9573 (run_inferior_call): Call async_disable_stdin if needed.
9574
9575 2014-03-20 Pedro Alves <palves@redhat.com>
9576
9577 * infrun.c (prepare_to_proceed): Delete.
9578 (thread_still_needs_step_over): New function.
9579 (find_thread_needs_step_over): New function.
9580 (proceed): If the current thread needs a step-over, set its
9581 steping_over_breakpoint flag. Adjust to use
9582 find_thread_needs_step_over instead of prepare_to_proceed.
9583 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9584 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9585 breakpoint.
9586 (switch_back_to_stepped_thread): Step over breakpoints of all
9587 threads not the stepping thread, before switching back to the
9588 stepping thread.
9589
9590 2014-03-20 Pedro Alves <palves@redhat.com>
9591
9592 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9593 extern.
9594 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9595 * infrun.c (saved_singlestep_ptid)
9596 (stepping_past_singlestep_breakpoint): Delete.
9597 (resume): Remove stepping_past_singlestep_breakpoint handling.
9598 (proceed): Store the prev_pc of the stepping thread too.
9599 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9600 singlestep_pc.
9601 (enum infwait_states): Delete infwait_thread_hop_state.
9602 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9603 field.
9604 (handle_inferior_event): Adjust.
9605 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9606 handling and the thread-hop code. Before removing single-step
9607 breakpoints, check whether the thread hit a single-step breakpoint
9608 of another thread. If it did, the trap is not a random signal.
9609 (switch_back_to_stepped_thread): If the event thread hit a
9610 single-step breakpoint, unblock it before switching to the
9611 stepping thread. Handle the case of the stepped thread having
9612 advanced already.
9613 (keep_going): Handle the case of the current thread moving past a
9614 single-step breakpoint.
9615
9616 2014-03-20 Pedro Alves <palves@redhat.com>
9617
9618 PR breakpoints/7143
9619 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9620 are being stepped over.
9621 (breakpoint_address_match): Make extern.
9622 * breakpoint.h (breakpoint_address_match): New declaration.
9623 * inferior.h (stepping_past_instruction_at): New declaration.
9624 * infrun.c (struct step_over_info): New type.
9625 (step_over_info): New global.
9626 (set_step_over_info, clear_step_over_info)
9627 (stepping_past_instruction_at): New functions.
9628 (handle_inferior_event): Clear the step-over info when
9629 trap_expected is cleared.
9630 (resume): Remove now stale comment.
9631 (clear_proceed_status): Clear step-over info.
9632 (proceed): Adjust step-over handling to set or clear the step-over
9633 info instead of removing all breakpoints.
9634 (handle_signal_stop): When setting up a thread-hop, don't remove
9635 breakpoints here.
9636 (stop_stepping): Clear step-over info.
9637 (keep_going): Adjust step-over handling to set or clear step-over
9638 info and then always inserting breakpoints, instead of removing
9639 all breakpoints when stepping over one.
9640
9641 2014-03-20 Pedro Alves <palves@redhat.com>
9642
9643 * infrun.c (previous_inferior_ptid): Adjust comment.
9644 (deferred_step_ptid): Delete.
9645 (infrun_thread_ptid_changed, prepare_to_proceed)
9646 (init_wait_for_inferior): Adjust.
9647 (handle_signal_stop): Delete deferred_step_ptid handling.
9648
9649 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9650
9651 PR gdb/15358
9652 * defs.h (sync_quit_force_run): New declaration.
9653 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9654 * event-top.c (async_sigterm_handler): New declaration.
9655 (async_sigterm_token): New variable.
9656 (async_init_signals): Create also async_sigterm_token.
9657 (async_sigterm_handler): New function.
9658 (sync_quit_force_run): New variable.
9659 (handle_sigterm): Replace quit_force call by other calls.
9660 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9661
9662 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9663
9664 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9665 offset into SPE pseudo registers.
9666
9667 2014-03-18 Pedro Alves <palves@redhat.com>
9668
9669 PR gdb/13860
9670 * inferior.h (print_stop_event): Declare.
9671 * infrun.c (print_stop_event): New, factored out from ...
9672 (normal_stop): ... this.
9673 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9674 of bpstat_print/print_stack_frame.
9675
9676 2014-03-17 Tom Tromey <tromey@redhat.com>
9677
9678 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9679
9680 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9681
9682 * ada-lang.c (decode_constrained_packed_array): Perform a
9683 minimal coercion for reference with coerce_ref instead of
9684 ada_coerce_ref.
9685
9686 2014-03-17 Tristan Gingold <gingold@adacore.com>
9687
9688 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9689 (darwin_solib_create_inferior_hook): Emit a warning if version
9690 is unhandled.
9691
9692 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9693
9694 * python/py-value.c (get_field_flag): Cast flag_name argument to
9695 PyObject_GetAttrString to support Python 2.4.
9696
9697 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9698
9699 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9700 (Global Maintainers): Remove Jan Kratochvil.
9701
9702 2014-03-14 Pedro Alves <palves@redhat.com>
9703
9704 * inferior.h (terminal_ours_for_output): Rename to ...
9705 (child_terminal_ours_for_output): ... this.
9706 (terminal_save_ours): Rename to ...
9707 (child_terminal_save_ours): ... this.
9708 (terminal_ours): Rename to ...
9709 (child_terminal_ours): ... this.
9710 (terminal_inferior): Rename to ...
9711 (child_terminal_inferior): ... this.
9712 (terminal_init_inferior): Rename to ...
9713 (child_terminal_init_inferior): ... this.
9714 (terminal_init_inferior_with_pgrp): Rename to ...
9715 (child_terminal_init_inferior_with_pgrp): ... this.
9716 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9717 (child_terminal_init_with_pgrp): ... this.
9718 (terminal_save_ours): Rename to ...
9719 (child_terminal_save_ours): ... this.
9720 (terminal_init_inferior): Rename to ...
9721 (child_terminal_init): ... this. Adjust.
9722 (terminal_inferior): Rename to ...
9723 (child_terminal_inferior): ... this.
9724 (terminal_ours_for_output): Rename to ...
9725 (child_terminal_ours_for_output): ... this. Adjust.
9726 (terminal_ours): Rename to ...
9727 (child_terminal_ours): ... this.
9728 (terminal_ours_1): Rename to ...
9729 (child_terminal_ours_1): ... this. Adjust.
9730 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9731 * windows-nat.c (do_initial_windows_stuff): Adjust.
9732 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9733 (gnu_terminal_init): ... this. Adjust.
9734 (gnu_target): Adjust.
9735 * inf-child.c (inf_child_target): Adjust.
9736
9737 2014-03-13 Doug Evans <xdje42@gmail.com>
9738
9739 PR guile/16612
9740 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9741 new eq?-hashtab.
9742
9743 2014-03-13 Doug Evans <xdje42@gmail.com>
9744
9745 * value.c (record_latest_value): Call release_value_or_incref
9746 instead of release_value.
9747
9748 2014-03-13 Pedro Alves <palves@redhat.com>
9749
9750 * procfs.c (procfs_target): Don't override to_shortname,
9751 to_longname or to_doc.
9752
9753 2014-03-13 Pedro Alves <palves@redhat.com>
9754
9755 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9756 Unix in user visible strings.
9757
9758 2014-03-12 Stan Shebs <stan@codesourcery.com>
9759
9760 * gdbtypes.h: Annotate comments for Doxygen, add a page
9761 block comment with some general info.
9762
9763 2014-03-12 Pedro Alves <palves@redhat.com>
9764
9765 * infcmd.c (prepare_execution_command): New function, factored out
9766 from several execution commands.
9767 (run_command_1, continue_command, step_1, jump_command)
9768 (signal_command, until_command, advance_command, finish_command)
9769 (attach_command): Use prepare_execution_command.
9770
9771 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9772
9773 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9774 (MAX_BPTS): Define.
9775 (MAX_WPTS): Define.
9776 (struct arm_linux_thread_points): Removed.
9777 (struct arm_linux_process_info): New.
9778 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9779 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9780 (arm_linux_find_breakpoints_by_tid): Removed.
9781 (struct arch_lwp_info): New.
9782 (arm_linux_find_process_pid): New functions.
9783 (arm_linux_add_process): New functions.
9784 (arm_linux_process_info_get): New functions.
9785 (arm_linux_forget_process): New function.
9786 (arm_linux_get_debug_reg_state): New function.
9787 (struct update_registers_data): New.
9788 (update_registers_callback): New function.
9789 (arm_linux_insert_hw_breakpoint1): Updated.
9790 (arm_linux_remove_hw_breakpoint1): Updated.
9791 (arm_linux_insert_hw_breakpoint): Updated.
9792 (arm_linux_remove_hw_breakpoint): Updated.
9793 (arm_linux_insert_watchpoint): Updated.
9794 (arm_linux_remove_watchpoint): Updated.
9795 (arm_linux_new_thread): Updated.
9796 (arm_linux_prepare_to_resume): New function.
9797 (arm_linux_new_fork): New function.
9798 (_initialize_arm_linux_nat): Updated.
9799
9800 2014-03-12 Pedro Alves <palves@redhat.com>
9801
9802 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9803
9804 2014-03-12 Tom Tromey <tromey@redhat.com>
9805
9806 * inf-child.c (return_zero): New function.
9807 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9808 * aix-thread.c (aix_thread_inferior_created): New function.
9809 (aix_thread_attach): Remove.
9810 (init_aix_thread_ops): Don't set to_attach.
9811 (_initialize_aix_thread): Register inferior_created observer.
9812 * corelow.c (init_core_ops): Don't set to_attach or
9813 to_create_inferior.
9814 * exec.c (init_exec_ops): Don't set to_attach or
9815 to_create_inferior.
9816 * infcmd.c (run_command_1): Use find_run_target. Make direct
9817 target calls.
9818 (attach_command): Use find_attach_target. Make direct target
9819 calls.
9820 * record-btrace.c (init_record_btrace_ops): Don't set
9821 to_create_inferior.
9822 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9823 Remove.
9824 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9825 set to_create_inferior.
9826 * target.c (complete_target_initialization): Add assertion.
9827 (target_create_inferior): Remove.
9828 (find_default_attach, find_default_create_inferior): Remove.
9829 (find_attach_target, find_run_target): New functions.
9830 (find_default_is_async_p, find_default_can_async_p)
9831 (target_supports_non_stop, target_attach): Remove.
9832 (init_dummy_target): Don't set to_create_inferior or
9833 to_supports_non_stop.
9834 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9835 TARGET_DEFAULT_FUNC.
9836 <to_create_inferior>: Add comment.
9837 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9838 TARGET_DEFAULT_RETURN.
9839 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9840 (find_attach_target, find_run_target): Declare.
9841 (target_create_inferior): Remove.
9842 (target_has_execution_1): Update comment.
9843 (target_supports_non_stop): Remove.
9844 * target-delegates.c: Rebuild.
9845
9846 2014-03-12 Pedro Alves <palves@redhat.com>
9847
9848 * inf-child.h: Update comment to not mention Unix.
9849
9850 2014-03-12 Pedro Alves <palves@redhat.com>
9851
9852 * inf-child.c: Update top comment to not mention Unix. Add
9853 generic comment describing how this target is meant to be used.
9854 (inf_child_post_attach, inf_child_post_startup_inferior)
9855 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9856 Unix in comment.
9857
9858 2014-03-12 Pedro Alves <palves@redhat.com>
9859
9860 * nto-procfs.c: Include inf-child.h.
9861 (procfs_ops): Delete global.
9862 (procfs_can_run): Delete method.
9863 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9864 target pointer instead of referencing procfs_ops.
9865 (procfs_prepare_to_store): Delete.
9866 (init_procfs_ops): Delete function.
9867 (procfs_target): New function, based on init_procfs_ops, but
9868 inherit inf_child_target.
9869 (_initialize_procfs): Use procfs_target.
9870
9871 2014-03-12 Pedro Alves <palves@redhat.com>
9872
9873 * windows-nat.c: Include inf-child.h.
9874 (windows_ops): Delete global.
9875 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9876 methods.
9877 (init_windows_ops): Delete function.
9878 (windows_target): New function, based on init_windows_ops, but
9879 inherit inf_child_target.
9880 (_initialize_windows_nat): Use windows_target. Install x86
9881 specific target methods here.
9882
9883 2014-03-10 Doug Evans <xdje42@gmail.com>
9884
9885 * guile/guile.c (call_initialize_gdb_module): New function.
9886 (initialize_guile): Replace call to scm_init_guile with call to
9887 scm_with_guile.
9888
9889 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9890
9891 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9892 in call to TYPE_CODE macro.
9893
9894 2014-03-10 Jerome Guitton <guitton@adacore.com>
9895
9896 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9897 Resolve tagged types to full view.
9898
9899 2014-03-10 Hui Zhu <hui@codesourcery.com>
9900
9901 * target.h (target_insert_breakpoint): Remove "hardware" from its
9902 comments.
9903
9904 2014-03-07 Doug Evans <dje@google.com>
9905
9906 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9907
9908 2014-03-07 Doug Evans <dje@google.com>
9909
9910 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9911 Remove unused local comp_dir_attr. Assert exactly one of
9912 stub_comp_unit_die, stub_comp_dir is non-NULL.
9913
9914 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9915
9916 * target.h (complete_target_initialization, add_target):
9917 Add comment.
9918
9919 2014-03-07 Pedro Alves <palves@redhat.com>
9920
9921 * go32-nat.c: Include inf-child.h.
9922 (go32_ops): Delete global.
9923 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9924 Delete methods.
9925 (go32_create_inferior): Push the passed in target pointer instead
9926 of referencing go32_ops.
9927 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9928 (go32_target): New function, based on init_go32_ops, but inherit
9929 inf_child_target.
9930 (_initialize_go32_nat): Use go32_target. Move parts of
9931 init_go32_ops here.
9932
9933 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9934
9935 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9936 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9937 SYMBOL_VALUE_ADDRESS.
9938 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9939
9940 2014-03-06 Yao Qi <yao@codesourcery.com>
9941
9942 * breakpoint.c (get_tracepoint_by_number): Remove argument
9943 optional_p. All callers updated. Adjust comments. Update
9944 output message.
9945 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9946
9947 2014-03-06 Yao Qi <yao@codesourcery.com>
9948
9949 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9950 early if get_number returns zero. Use 'p' instead of 'args'.
9951
9952 2014-03-06 Yao Qi <yao@codesourcery.com>
9953
9954 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9955 message.
9956
9957 2014-03-06 Yao Qi <yao@codesourcery.com>
9958
9959 PR breakpoints/16508
9960 * tracepoint.c (check_trace_running): New function.
9961 (trace_find_command): Move code to check_trace_running and
9962 call check_trace_running.
9963 (trace_find_pc_command): Likewise.
9964 (trace_find_tracepoint_command): Likewise.
9965 (trace_find_line_command): Likewise.
9966 (trace_find_range_command): Likewise.
9967 * tracepoint.h (check_trace_running): Likewise.
9968 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9969
9970 2014-03-06 Yao Qi <yao@codesourcery.com>
9971
9972 * target.h (struct target_ops) <to_traceframe_info>: Use
9973 TARGET_DEFAULT_NORETURN (tcomplain ()).
9974 * target-delegates.c: Regenerated.
9975
9976 2014-03-05 Pedro Alves <palves@redhat.com>
9977
9978 PR gdb/16575
9979 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9980 void. Update comment.
9981 (dcache_xfer_memory): Delete.
9982 (dcache_read_memory_partial): New, based on the read bits of
9983 dcache_xfer_memory.
9984 (dcache_update): Add status parameter. Use ULONGEST for len, and
9985 adjust. Discard cache lines if the reason for the update was
9986 error.
9987 * dcache.h (dcache_xfer_memory): Delete declaration.
9988 (dcache_read_memory_partial): New declaration.
9989 (dcache_update): Update prototype.
9990 * target.c (raw_memory_xfer_partial): Update the dcache here.
9991 (memory_xfer_partial_1): Don't handle dcache writes here.
9992
9993 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9994
9995 * remote-sim.c (gdbsim_load): Add const to prog.
9996
9997 2014-03-03 Tom Tromey <tromey@redhat.com>
9998
9999 * elfread.c (probe_key): Change to bfd_data.
10000 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10001 now per-BFD, not per-objfile.
10002 * stap-probe.c (stap_probe_destroy): Update comment.
10003 (handle_stap_probe): Allocate on the per-BFD obstack.
10004
10005 2014-03-03 Tom Tromey <tromey@redhat.com>
10006
10007 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10008 * breakpoint.c (create_longjmp_master_breakpoint): Use
10009 get_probe_address.
10010 (add_location_to_breakpoint, bkpt_probe_insert_location)
10011 (bkpt_probe_remove_location): Update.
10012 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10013 * elfread.c (elf_symfile_relocate_probe): Remove.
10014 (elf_probe_fns): Update.
10015 (insert_exception_resume_breakpoint): Change type of "probe"
10016 parameter to bound_probe.
10017 (check_exception_resume): Update.
10018 * objfiles.c (objfile_relocate1): Don't relocate probes.
10019 * probe.c (bound_probe_s): New typedef.
10020 (parse_probes): Use get_probe_address. Set sal's objfile.
10021 (find_probe_by_pc): Return a bound_probe.
10022 (collect_probes): Return a VEC(bound_probe_s).
10023 (compare_probes): Update.
10024 (gen_ui_out_table_header_info): Change type of "probes"
10025 parameter. Update.
10026 (info_probes_for_ops): Update.
10027 (get_probe_address): New function.
10028 (probe_safe_evaluate_at_pc): Update.
10029 * probe.h (struct probe_ops) <get_probe_address>: New field.
10030 <set_semaphore, clear_semaphore>: Add objfile parameter.
10031 (struct probe) <objfile>: Remove field.
10032 <arch>: New field.
10033 <address>: Update comment.
10034 (struct bound_probe): New.
10035 (find_probe_by_pc): Return a bound_probe.
10036 (get_probe_address): Declare.
10037 * solib-svr4.c (struct probe_and_action) <address>: New field.
10038 (hash_probe_and_action, equal_probe_and_action): Update.
10039 (register_solib_event_probe): Add address parameter.
10040 (solib_event_probe_at): Update.
10041 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10042 get_probe_address.
10043 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10044 (stap_get_probe_address): New function.
10045 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10046 (compile_probe_arg): Update.
10047 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10048 address.
10049 (handle_stap_probe): Don't relocate the probe.
10050 (stap_relocate): Remove.
10051 (stap_gen_info_probes_table_values): Update.
10052 (stap_probe_ops): Remove stap_relocate.
10053 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10054 (debug_sym_probe_fns): Update.
10055 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10056 * symtab.c (init_sal): Use memset.
10057 * symtab.h (struct symtab_and_line) <objfile>: New field.
10058 * tracepoint.c (start_tracing, stop_tracing): Update.
10059
10060 2014-03-03 Tom Tromey <tromey@redhat.com>
10061
10062 * probe.h (parse_probes, find_probe_by_pc)
10063 (find_probes_in_objfile): Fix comments.
10064
10065 2014-03-02 Doug Evans <xdje42@gmail.com>
10066
10067 * infrun.c (handle_signal_stop): Replace test for
10068 TARGET_WAITKIND_STOPPED with an assert.
10069
10070 2014-03-02 Doug Evans <xdje42@gmail.com>
10071
10072 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10073
10074 2014-03-02 Doug Evans <xdje42@gmail.com>
10075
10076 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10077
10078 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10079
10080 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10081
10082 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10083
10084 * i386obsd-nat.c: Include "obsd-nat.h".
10085 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10086 add_target.
10087 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10088
10089 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10090
10091 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10092
10093 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10094
10095 * mips64obsd-nat.c: Include "obsd-nath".
10096 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10097 add_target
10098 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10099
10100 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10101
10102 * amd64obsd-nat.c: Include "obsd-nat,h.
10103 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10104 add_target.
10105 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10106
10107 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10108
10109 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10110 (find_overload_match): Update call to find_oload_champ.
10111 (find_oload_champ_namespace_loop): Likewise
10112
10113 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10114
10115 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10116
10117 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10118 * config/sparc/obsd64.mh: New file.
10119 * sparc64obsd-nat.c: New file.
10120
10121 * obsd-nat.h: New file.
10122 * obsd-nat.c: New file.
10123 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10124 (ALLDEPFILES): Add obsd-nat.c.
10125
10126 2014-02-28 Tom Tromey <tromey@redhat.com>
10127
10128 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10129 * cli-out.h (cli_ui_out_impl): Now const.
10130 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10131 * ui-out.c (struct ui_out) <impl>: Now const.
10132 (default_ui_out_impl): Now const.
10133 (ui_out_new): Make 'impl' parameter const.
10134 * ui-out.h (ui_out_new): Update.
10135
10136 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10137
10138 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10139
10140 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10141
10142 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10143
10144 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10145
10146 Additional PR 8882 fix.
10147 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10148
10149 2014-02-27 Pedro Alves <palves@redhat.com>
10150
10151 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10152 isn't set.
10153
10154 2014-02-27 Pedro Alves <palves@redhat.com>
10155
10156 PR 12702
10157 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10158 * nat/linux-waitpid.c: Include string.h.
10159 (status_to_str): Moved here and made extern.
10160 * nat/linux-waitpid.h (status_to_str): New declaration.
10161
10162 2014-02-27 Hui Zhu <hui@codesourcery.com>
10163
10164 PR 12702
10165 * infrun.c (ptid_match): Move ...
10166 * common/ptid.c (ptid_match): ... here.
10167 * inferior.h (ptid_match): Move ...
10168 * common/ptid.h (ptid_match): ... here.
10169
10170 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10171
10172 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10173 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10174 gdb_target_obs.
10175
10176 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10177
10178 * obsd-tdep.c (obsd_auxv_parse): New function.
10179 (obsd_init_abi): Set auxv_parse.
10180
10181 * gdbarch.sh (auxv_parse): New.
10182 * gdbarch.h: Regenerated.
10183 * gdbarch.c: Regenerated.
10184 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10185
10186 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10187
10188 * guile/scm-value.c (gdbscm_history_append_x): New function.
10189 (value_functions): Add it.
10190
10191 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10192
10193 * dwarf2read.c (attr_value_as_address): New function.
10194 (dwarf2_find_base_address, read_call_site_scope): Use
10195 attr_value_as_address in place of DW_ADDR.
10196 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10197 the low and high addresses. Slight rework of the handling
10198 of the high pc being a constant form, and limit it to
10199 DWARF verson 4 or higher.
10200 (dwarf2_record_block_ranges): Likewise.
10201 (read_partial_die): Likewise.
10202 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10203
10204 2014-02-26 Tom Tromey <tromey@redhat.com>
10205
10206 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10207
10208 2014-02-26 Tom Tromey <tromey@redhat.com>
10209
10210 * elfread.c (elf_read_minimal_symbols): Return early if
10211 minimal symbols have already been read. Add "ei" parameter.
10212 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10213 * minsyms.c (prim_record_minimal_symbol_full): Update.
10214 * objfiles.h (struct objstats) <n_minsyms>: Move...
10215 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10216 * symmisc.c (print_objfile_statistics): Update.
10217
10218 2014-02-26 Tom Tromey <tromey@redhat.com>
10219
10220 * elfread.c (elf_read_minimal_symbols): New function, from
10221 elf_symfile_read.
10222 (elf_symfile_read): Call it.
10223
10224 2014-02-26 Tom Tromey <tromey@redhat.com>
10225
10226 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10227 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10228 (lookup_minimal_symbol_solib_trampoline)
10229 (lookup_minimal_symbol_by_pc_section_1)
10230 (lookup_minimal_symbol_and_objfile): Update.
10231 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10232 Don't allocate a minimal symbol if minsyms have already been read.
10233 (build_minimal_symbol_hash_tables): Update.
10234 (install_minimal_symbols): Do nothing if minsyms already read.
10235 Use the per-BFD obstack.
10236 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10237 * objfiles.c (allocate_objfile): Call
10238 terminate_minimal_symbol_table later.
10239 (have_minimal_symbols): Update.
10240 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10241 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10242 Move from struct objfile.
10243 <minsyms_read>: New field.
10244 (struct objfile) <msymbols, minimal_symbol_count,
10245 msymbol_hash, msymbol_demangled_hash>: Move.
10246 (ALL_OBJFILE_MSYMBOLS): Update.
10247 * symfile.c (read_symbols): Set minsyms_read.
10248 (reread_symbols): Update.
10249 * symmisc.c (dump_objfile, dump_msymbols): Update.
10250
10251 2014-02-26 Tom Tromey <tromey@redhat.com>
10252
10253 * minsyms.c (msymbols_sort): Remove.
10254 * minsyms.h (msymbols_sort): Remove.
10255 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10256 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10257 * elfread.c (elf_symtab_read): Don't add section offsets.
10258 * xcoffread.c (record_minimal_symbol): Don't add section offset
10259 to minimal symbol address.
10260 * somread.c (text_offset, data_offset): Remove.
10261 (som_symtab_read): Don't add section offsets to minimal symbol
10262 addresses.
10263 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10264 Don't add section offsets to minimal symbols.
10265 * coffread.c (coff_symtab_read): Don't add section offsets
10266 to minimal symbol addresses.
10267 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10268 to minimal symbol addresses.
10269 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10270 section offset to minimal symbol addresses.
10271 * mdebugread.c (parse_partial_symbols): Don't add section
10272 offset to minimal symbol addresses.
10273 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10274 offset to minimal symbol addresses.
10275
10276 2014-02-26 Tom Tromey <tromey@redhat.com>
10277
10278 * ada-lang.c (ada_main_name): Update.
10279 (ada_add_standard_exceptions): Update.
10280 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10281 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10282 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10283 * auxv.c (ld_so_xfer_auxv): Update.
10284 * avr-tdep.c (avr_scan_prologue): Update.
10285 * ax-gdb.c (gen_var_ref): Update.
10286 * blockframe.c (get_pc_function_start)
10287 (find_pc_partial_function_gnu_ifunc): Update.
10288 * breakpoint.c (create_overlay_event_breakpoint)
10289 (create_longjmp_master_breakpoint)
10290 (create_std_terminate_master_breakpoint)
10291 (create_exception_master_breakpoint): Update.
10292 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10293 * c-valprint.c (c_val_print): Update.
10294 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10295 * common/agent.c (agent_look_up_symbols): Update.
10296 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10297 * dwarf2loc.c (call_site_to_target_addr): Update.
10298 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10299 * elfread.c (elf_gnu_ifunc_record_cache)
10300 (elf_gnu_ifunc_resolve_by_got): Update.
10301 * findvar.c (default_read_var_value): Update.
10302 * frame.c (inside_main_func): Update.
10303 * frv-tdep.c (frv_frame_this_id): Update.
10304 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10305 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10306 Update.
10307 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10308 (hppa_hpux_find_dummy_bpaddr): Update.
10309 * hppa-tdep.c (hppa_symbol_address): Update.
10310 * infcmd.c (until_next_command): Update.
10311 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10312 Update.
10313 * linespec.c (minsym_found, add_minsym): Update.
10314 * linux-nat.c (get_signo): Update.
10315 * linux-thread-db.c (inferior_has_bug): Update.
10316 * m32c-tdep.c (m32c_return_value)
10317 (m32c_m16c_address_to_pointer): Update.
10318 * m32r-tdep.c (m32r_frame_this_id): Update.
10319 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10320 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10321 * maint.c (maintenance_translate_address): Update.
10322 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10323 (frob_address): New function.
10324 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10325 frob_address. Rename parameter to "pc_in".
10326 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10327 addresses.
10328 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10329 Update.
10330 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10331 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10332 * objc-lang.c (find_objc_msgsend): Update.
10333 * objfiles.c (objfile_relocate1): Update.
10334 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10335 * p-valprint.c (pascal_val_print): Update.
10336 * parse.c (write_exp_msymbol): Update.
10337 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10338 (ppc_elfv2_skip_entrypoint): Update.
10339 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10340 * printcmd.c (build_address_symbolic, msym_info)
10341 (address_info): Update.
10342 * proc-service.c (ps_pglobal_lookup): Update.
10343 * psymtab.c (find_pc_sect_psymtab_closer)
10344 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10345 Change msymbol parameter to bound_minimal_symbol.
10346 * ravenscar-thread.c (get_running_thread_id): Update.
10347 * remote.c (remote_check_symbols): Update.
10348 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10349 address.
10350 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10351 * solib-dsbt.c (lm_base): Update.
10352 * solib-frv.c (lm_base, main_got): Update.
10353 * solib-irix.c (locate_base): Update.
10354 * solib-som.c (som_solib_create_inferior_hook)
10355 (link_map_start): Update.
10356 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10357 * solib-svr4.c (elf_locate_base, enable_break): Update.
10358 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10359 (flush_ea_cache): Update.
10360 * stabsread.c (define_symbol, scan_file_globals): Update.
10361 * stack.c (find_frame_funname): Update.
10362 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10363 (debug_qf_find_pc_sect_symtab): Update.
10364 * symfile.c (simple_read_overlay_table)
10365 (simple_overlay_update): Update.
10366 * symfile.h (struct quick_symbol_functions)
10367 <find_pc_sect_symtab>: Change type of msymbol to
10368 bound_minimal_symbol.
10369 * symmisc.c (dump_msymbols): Update.
10370 * symtab.c (find_pc_sect_symtab_via_partial)
10371 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10372 (search_symbols, print_msymbol_info): Update.
10373 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10374 (MSYMBOL_VALUE_ADDRESS): Redefine.
10375 (BMSYMBOL_VALUE_ADDRESS): New macro.
10376 * tracepoint.c (scope_info): Update.
10377 * tui/tui-disasm.c (tui_find_disassembly_address)
10378 (tui_get_begin_asm_address): Update.
10379 * valops.c (find_function_in_inferior): Update.
10380 * value.c (value_static_field, value_fn_field): Update.
10381
10382 2014-02-26 Tom Tromey <tromey@redhat.com>
10383
10384 * ada-lang.c (ada_update_initial_language): Update.
10385 (ada_main_name, ada_has_this_exception_support): Update.
10386 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10387 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10388 * arm-tdep.c (arm_skip_stub): Update.
10389 * auxv.c (ld_so_xfer_auxv): Update.
10390 * avr-tdep.c (avr_scan_prologue): Update.
10391 * ax-gdb.c (gen_var_ref): Update.
10392 * breakpoint.c (struct breakpoint_objfile_data)
10393 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10394 type to bound_minimal_symbol.
10395 (create_overlay_event_breakpoint)
10396 (create_longjmp_master_breakpoint)
10397 (create_std_terminate_master_breakpoint)
10398 (create_exception_master_breakpoint): Update.
10399 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10400 * c-exp.y (classify_name): Update.
10401 * coffread.c (coff_symfile_read): Update.
10402 * common/agent.c (agent_look_up_symbols): Update.
10403 * d-lang.c (d_main_name): Update.
10404 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10405 * dec-thread.c (enable_dec_thread): Update.
10406 * dwarf2loc.c (call_site_to_target_addr): Update.
10407 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10408 * eval.c (evaluate_subexp_standard): Update.
10409 * findvar.c (struct minsym_lookup_data) <result>: Change type
10410 to bound_minimal_symbol.
10411 <objfile>: Remove.
10412 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10413 * frame.c (inside_main_func): Update.
10414 * frv-tdep.c (frv_frame_this_id): Update.
10415 * gcore.c (call_target_sbrk): Update.
10416 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10417 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10418 Update.
10419 * go-lang.c (go_main_name): Update.
10420 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10421 (hppa_hpux_find_import_stub_for_addr): Update.
10422 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10423 Update. Change return type.
10424 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10425 type.
10426 * jit.c (jit_breakpoint_re_set_internal): Update.
10427 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10428 Update.
10429 * linux-nat.c (get_signo): Update.
10430 * linux-thread-db.c (inferior_has_bug): Update
10431 * m32c-tdep.c (m32c_return_value)
10432 (m32c_m16c_address_to_pointer): Update.
10433 * m32r-tdep.c (m32r_frame_this_id): Update.
10434 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10435 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10436 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10437 lookup_minimal_symbol. Change return type.
10438 (lookup_minimal_symbol): Remove.
10439 (lookup_bound_minimal_symbol): Update.
10440 (lookup_minimal_symbol_text): Change return type.
10441 (lookup_minimal_symbol_solib_trampoline): Change return type.
10442 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10443 (lookup_minimal_symbol_solib_trampoline): Change return type.
10444 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10445 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10446 (value_nsstring, find_imps): Update.
10447 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10448 * p-lang.c (pascal_main_name): Update.
10449 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10450 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10451 * proc-service.c (ps_pglobal_lookup): Update.
10452 * ravenscar-thread.c (get_running_thread_msymbol): Change
10453 return type.
10454 (has_ravenscar_runtime, get_running_thread_id): Update.
10455 * remote.c (remote_check_symbols): Update.
10456 * sol-thread.c (ps_pglobal_lookup): Update.
10457 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10458 * solib-dsbt.c (lm_base): Update.
10459 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10460 Update.
10461 * solib-irix.c (locate_base): Update.
10462 * solib-som.c (som_solib_create_inferior_hook)
10463 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10464 Update.
10465 * solib-spu.c (spu_enable_break): Update.
10466 * solib-svr4.c (elf_locate_base, enable_break): Update.
10467 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10468 (flush_ea_cache): Update.
10469 * stabsread.c (define_symbol): Update.
10470 * symfile.c (simple_read_overlay_table): Update.
10471 * symtab.c (find_pc_sect_line): Update.
10472 * tracepoint.c (scope_info): Update.
10473 * tui-disasm.c (tui_get_begin_asm_address): Update.
10474 * value.c (value_static_field): Update.
10475
10476 2014-02-26 Tom Tromey <tromey@redhat.com>
10477
10478 * minsyms.c (prim_record_minimal_symbol_full): Use
10479 SET_MSYMBOL_VALUE_ADDRESS.
10480 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10481 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10482 SET_MSYMBOL_VALUE_ADDRESS.
10483 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10484 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10485
10486 2014-02-26 Tom Tromey <tromey@redhat.com>
10487
10488 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10489 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10490 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10491 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10492 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10493 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10494 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10495 * ada-lang.c (ada_main_name): Update.
10496 (ada_lookup_simple_minsym): Update.
10497 (ada_make_symbol_completion_list): Update.
10498 (ada_add_standard_exceptions): Update.
10499 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10500 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10501 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10502 * arm-tdep.c (skip_prologue_function): Update.
10503 (arm_skip_stack_protector, arm_skip_stub): Update.
10504 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10505 (arm_wince_skip_main_prologue): Update.
10506 * auxv.c (ld_so_xfer_auxv): Update.
10507 * avr-tdep.c (avr_scan_prologue): Update.
10508 * ax-gdb.c (gen_var_ref): Update.
10509 * block.c (call_site_for_pc): Update.
10510 * blockframe.c (get_pc_function_start): Update.
10511 (find_pc_partial_function_gnu_ifunc): Update.
10512 * breakpoint.c (create_overlay_event_breakpoint): Update.
10513 (create_longjmp_master_breakpoint): Update.
10514 (create_std_terminate_master_breakpoint): Update.
10515 (create_exception_master_breakpoint): Update.
10516 (resolve_sal_pc): Update.
10517 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10518 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10519 Update.
10520 * c-valprint.c (c_val_print): Update.
10521 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10522 * coffread.c (coff_symfile_read): Update.
10523 * common/agent.c (agent_look_up_symbols): Update.
10524 * dbxread.c (find_stab_function_addr): Update.
10525 (end_psymtab): Update.
10526 * dwarf2loc.c (call_site_to_target_addr): Update.
10527 (func_verify_no_selftailcall): Update.
10528 (tailcall_dump): Update.
10529 (call_site_find_chain_1): Update.
10530 (dwarf_expr_reg_to_entry_parameter): Update.
10531 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10532 (elf_gnu_ifunc_resolve_by_got): Update.
10533 * f-valprint.c (info_common_command): Update.
10534 * findvar.c (read_var_value): Update.
10535 * frame.c (get_prev_frame_1): Update.
10536 (inside_main_func): Update.
10537 * frv-tdep.c (frv_skip_main_prologue): Update.
10538 (frv_frame_this_id): Update.
10539 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10540 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10541 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10542 (gnuv3_skip_trampoline): Update.
10543 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10544 (hppa64_hpux_in_solib_call_trampoline): Update.
10545 (hppa_hpux_skip_trampoline_code): Update.
10546 (hppa64_hpux_search_dummy_call_sequence): Update.
10547 (hppa_hpux_find_import_stub_for_addr): Update.
10548 (hppa_hpux_find_dummy_bpaddr): Update.
10549 * hppa-tdep.c (hppa_symbol_address)
10550 (hppa_lookup_stub_minimal_symbol): Update.
10551 * i386-tdep.c (i386_skip_main_prologue): Update.
10552 (i386_pe_skip_trampoline_code): Update.
10553 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10554 * infcall.c (get_function_name): Update.
10555 * infcmd.c (until_next_command): Update.
10556 * jit.c (jit_breakpoint_re_set_internal): Update.
10557 (jit_inferior_init): Update.
10558 * linespec.c (minsym_found): Update.
10559 (add_minsym): Update.
10560 * linux-fork.c (info_checkpoints_command): Update.
10561 * linux-nat.c (get_signo): Update.
10562 * linux-thread-db.c (inferior_has_bug): Update.
10563 * m32c-tdep.c (m32c_return_value): Update.
10564 (m32c_m16c_address_to_pointer): Update.
10565 (m32c_m16c_pointer_to_address): Update.
10566 * m32r-tdep.c (m32r_frame_this_id): Update.
10567 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10568 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10569 * maint.c (maintenance_translate_address): Update.
10570 * minsyms.c (add_minsym_to_hash_table): Update.
10571 (add_minsym_to_demangled_hash_table): Update.
10572 (msymbol_objfile): Update.
10573 (lookup_minimal_symbol): Update.
10574 (iterate_over_minimal_symbols): Update.
10575 (lookup_minimal_symbol_text): Update.
10576 (lookup_minimal_symbol_by_pc_name): Update.
10577 (lookup_minimal_symbol_solib_trampoline): Update.
10578 (lookup_minimal_symbol_by_pc_section_1): Update.
10579 (lookup_minimal_symbol_and_objfile): Update.
10580 (prim_record_minimal_symbol_full): Update.
10581 (compare_minimal_symbols): Update.
10582 (compact_minimal_symbols): Update.
10583 (build_minimal_symbol_hash_tables): Update.
10584 (install_minimal_symbols): Update.
10585 (terminate_minimal_symbol_table): Update.
10586 (find_solib_trampoline_target): Update.
10587 (minimal_symbol_upper_bound): Update.
10588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10589 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10590 (mips_skip_pic_trampoline_code): Update.
10591 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10592 * objc-lang.c (selectors_info): Update.
10593 (classes_info): Update.
10594 (find_methods): Update.
10595 (find_imps): Update.
10596 (find_objc_msgsend): Update.
10597 * objfiles.c (objfile_relocate1): Update.
10598 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10599 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10600 * p-valprint.c (pascal_val_print): Update.
10601 * parse.c (write_exp_msymbol): Update.
10602 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10603 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10605 * printcmd.c (build_address_symbolic): Update.
10606 (sym_info): Update.
10607 (address_info): Update.
10608 * proc-service.c (ps_pglobal_lookup): Update.
10609 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10610 (find_pc_sect_psymtab): Update.
10611 * python/py-framefilter.c (py_print_frame): Update.
10612 * ravenscar-thread.c (get_running_thread_id): Update.
10613 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10614 Update.
10615 * remote.c (remote_check_symbols): Update.
10616 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10617 (rs6000_skip_trampoline_code): Update.
10618 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10619 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10620 * solib-dsbt.c (lm_base): Update.
10621 * solib-frv.c (lm_base): Update.
10622 (main_got): Update.
10623 * solib-irix.c (locate_base): Update.
10624 * solib-som.c (som_solib_create_inferior_hook): Update.
10625 (som_solib_desire_dynamic_linker_symbols): Update.
10626 (link_map_start): Update.
10627 * solib-spu.c (spu_enable_break): Update.
10628 (ocl_enable_break): Update.
10629 * solib-svr4.c (elf_locate_base): Update.
10630 (enable_break): Update.
10631 * spu-tdep.c (spu_get_overlay_table): Update.
10632 (spu_catch_start): Update.
10633 (flush_ea_cache): Update.
10634 * stabsread.c (define_symbol): Update.
10635 (scan_file_globals): Update.
10636 * stack.c (find_frame_funname): Update.
10637 (frame_info): Update.
10638 * symfile.c (simple_read_overlay_table): Update.
10639 (simple_overlay_update): Update.
10640 * symmisc.c (dump_msymbols): Update.
10641 * symtab.c (fixup_section): Update.
10642 (find_pc_sect_line): Update.
10643 (skip_prologue_sal): Update.
10644 (search_symbols): Update.
10645 (print_msymbol_info): Update.
10646 (rbreak_command): Update.
10647 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10648 (completion_list_objc_symbol): Update.
10649 (default_make_symbol_completion_list_break_on): Update.
10650 * tracepoint.c (scope_info): Update.
10651 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10652 (tui_get_begin_asm_address): Update.
10653 * valops.c (find_function_in_inferior): Update.
10654 * value.c (value_static_field): Update.
10655 (value_fn_field): Update.
10656
10657 2014-02-26 Tom Tromey <tromey@redhat.com>
10658
10659 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10660 bound minimal symbols. Move code that knows about minsym
10661 table layout...
10662 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10663 function.
10664 * minsyms.h (minimal_symbol_upper_bound): Declare.
10665 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10666 minimal_symbol_upper_bound.
10667
10668 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10669
10670 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10671 Use the type's name if its basic type does not have a tag.
10672
10673 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10674
10675 * dwarf2read.c (read_subrange_type): Add comment.
10676
10677 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10678
10679 * dwarf2read.c (update_enumeration_type_from_children): New
10680 function, mostly extracted from process_structure_scope.
10681 (read_enumeration_type): Call update_enumeration_type_from_children.
10682 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10683 and flag_flag_enum fields.
10684
10685 2014-02-26 Pedro Alves <palves@redhat.com>
10686
10687 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10688 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10689 to_xfer_partial method.
10690
10691 2014-02-26 Pedro Alves <palves@redhat.com>
10692
10693 * target.c (complete_target_initialization): Don't install
10694 default_xfer_partial as to_xfer_partial hook.
10695 (nomemory): Delete.
10696 (update_current_target): Don't INHERIT nor de_fault
10697 deprecated_xfer_memory. Delete de_fault macro.
10698 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10699 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10700 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10701 field.
10702
10703 2014-02-26 Pedro Alves <palves@redhat.com>
10704
10705 * go32-nat.c (my_write_child): New function.
10706 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10707 (go32_xfer_partial): New function.
10708 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10709 Instead install a to_xfer_partial hook.
10710
10711 2014-02-26 Pedro Alves <palves@redhat.com>
10712
10713 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10714 to_xfer_partial helper. Rewrite.
10715 (procfs_xfer_partial): New function.
10716 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10717 Install a to_xfer_partial hook.
10718
10719 2014-02-26 Pedro Alves <palves@redhat.com>
10720
10721 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10722 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10723 (m32r_xfer_partial): New function.
10724 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10725 Install a to_xfer_partial hook.
10726
10727 2014-02-26 Pedro Alves <palves@redhat.com>
10728
10729 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10730 helper.
10731 (mips_xfer_partial): New function.
10732 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10733 hook. Install a to_xfer_partial hook.
10734
10735 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10736
10737 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10738 * gdbtypes.c (create_array_type_with_stride): New function,
10739 renaming create_array_type, but with an added parameter
10740 called "bit_stride".
10741 (create_array_type): Re-implement using
10742 create_array_type_with_stride.
10743 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10744 and DW_AT_bit_stride attributes.
10745
10746 2014-02-26 Pedro Alves <palves@redhat.com>
10747
10748 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10749 task-specific breakpoints.
10750
10751 2014-02-25 Pedro Alves <palves@redhat.com>
10752
10753 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10754 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10755
10756 2014-02-25 Stan Shebs <stan@codesourcery.com>
10757
10758 * defs.h: Annotate comments for Doxygen.
10759
10760 2014-02-25 Tom Tromey <tromey@redhat.com>
10761
10762 * target.h (target_ignore): Don't declare.
10763 * target.c (target_ignore): Remove.
10764
10765 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 PR gdb/16626
10768 * auto-load.c (auto_load_objfile_script_1): Change filename to
10769 debugfile.
10770
10771 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10772
10773 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10774 documentation. Adjust prototype to match the target_ops
10775 to_xfer_partial method. Adjust implementation accordingly.
10776
10777 2014-02-25 Hui Zhu <hui@codesourcery.com>
10778
10779 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10780 to_traceframe_info.
10781
10782 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10783
10784 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10785 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10786 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10787 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10788 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10789 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10790 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10791 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10792 New constants.
10793 (rl78_register_type): Use a data pointer type for SP and
10794 new pseudo registers mentioned above. Use a 16 bit integer
10795 type for all other register pairs.
10796 (rl78_register_name, rl78_g10_register_name): Update for
10797 new pseudo registers.
10798 (rl78_pseudo_register_read): Likewise.
10799 (rl78_pseudo_register_write): Likewise.
10800 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10801 to the newly added pseudo registers.
10802
10803 2014-02-24 Doug Evans <dje@google.com>
10804
10805 * value.c (record_latest_value): Fix comment.
10806 * printcmd.c (print_command_1): Remove code to handle -1 return from
10807 record_latest_value.
10808
10809 2014-02-24 Pedro Alves <palves@redhat.com>
10810
10811 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10812 deprecated_xfer_memory hook.
10813 (procfs_xfer_partial): Call procfs_xfer_memory instead
10814 of the deprecated_xfer_memory target hook.
10815 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10816 helper.
10817
10818 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10819
10820 * windows-nat.c (windows_xfer_shared_libraries): Return
10821 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10822 requested object is TARGET_OBJECT_LIBRARIES.
10823
10824 2014-02-24 Yao Qi <yao@codesourcery.com>
10825
10826 * target.h (enum target_xfer_status)
10827 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10828 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10829 explicitly. New.
10830 * corefile.c (memory_error_message): User updated.
10831 * exec.c (section_table_read_available_memory): Likewise.
10832 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10833 * target.c (target_xfer_status_to_string): Likewise.
10834 (raw_memory_xfer_partial): Likewise.
10835 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10836 * valops.c (read_value_memory): Likewise.
10837 * exec.h: Update comments.
10838
10839 2014-02-24 Yao Qi <yao@codesourcery.com>
10840
10841 * target.c (target_xfer_status_to_string): Rename argument err
10842 to status.
10843 * target.h (target_xfer_status_to_string): Update declaration.
10844 Replace target_xfer_error_to_string with
10845 target_xfer_status_to_string in comment.
10846
10847 2014-02-24 Yao Qi <yao@codesourcery.com>
10848
10849 * mips-linux-nat.c (super_close): Update its type.
10850 (mips_linux_close): Pass 'self' to super_close.
10851
10852 2014-02-24 Yao Qi <yao@codesourcery.com>
10853
10854 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10855 * corefile.c (read_memory): Adjusted.
10856 * target.c (target_write_with_progress): Adjusted.
10857
10858 2014-02-23 Yao Qi <yao@codesourcery.com>
10859
10860 Revert two patches:
10861
10862 2013-10-25 Yao Qi <yao@codesourcery.com>
10863
10864 * remote.c (remote_traceframe_info): Return early if
10865 traceframe is not selected.
10866
10867 2013-07-19 Yao Qi <yao@codesourcery.com>
10868
10869 * target.c (update_current_target): Change the default action
10870 of 'to_traceframe_info' from tcomplain to return_zero.
10871 * target.h (struct target_ops) <to_traceframe_info>: Add more
10872 comments.
10873
10874 2014-02-23 Yao Qi <yao@codesourcery.com>
10875
10876 * valops.c (read_value_memory): Rewrite it. Call
10877 target_xfer_partial in a loop.
10878 * exec.h (section_table_available_memory): Remove declaration.
10879 Move comments to ...
10880 * exec.c (section_table_available_memory): ... here. Make it
10881 static.
10882
10883 2014-02-23 Yao Qi <yao@codesourcery.com>
10884
10885 * exec.c (section_table_read_available_memory): New function.
10886 * exec.h (section_table_read_available_memory): Declare.
10887 * ctf.c (ctf_xfer_partial): Call
10888 section_table_read_available_memory.
10889 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10890
10891 2014-02-23 Yao Qi <yao@codesourcery.com>
10892
10893 * ctf.c (ctf_xfer_partial): Move code to ...
10894 * exec.c (exec_read_partial_read_only): ... it. New function.
10895 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10896 * tracefile.c: Include "exec.h".
10897 * exec.h (exec_read_partial_read_only): Declare.
10898
10899 2014-02-23 Yao Qi <yao@codesourcery.com>
10900
10901 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10902 (tfile_has_memory): Remove.
10903 (init_tfile_ops): Don't set fields to_has_all_memory and
10904 to_has_memory of tfile_ops.
10905 * tracefile.c (tracefile_has_all_memory): New function.
10906 (tracefile_has_memory): New function.
10907 (init_tracefile_ops): Initialize fields to_has_all_memory and
10908 to_has_memory of 'ops'.
10909
10910 2014-02-23 Yao Qi <yao@codesourcery.com>
10911
10912 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10913 (ctf_thread_alive, ctf_get_trace_status): Remove.
10914 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10915 init_tracefile_ops.
10916 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10917 (tfile_has_stack, tfile_has_registers): Remove.
10918 (tfile_thread_alive): Remove.
10919 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10920 init_tracefile_ops.
10921 * tracefile.c (tracefile_has_stack): New function.
10922 (tracefile_has_registers): New function.
10923 (tracefile_thread_alive): New function.
10924 (tracefile_get_trace_status): New function.
10925 (init_tracefile_ops): New function.
10926 * tracefile.h (init_tracefile_ops): Declare.
10927
10928 2014-02-23 Yao Qi <yao@codesourcery.com>
10929
10930 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10931 (O_LARGEFILE): Likewise.
10932 (tfile_ops): Likewise.
10933 (TRACE_HEADER_SIZE): Likewise.
10934 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10935 (cur_data_size): Likewise.
10936 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10937 (tfile_close, tfile_files_info): Likewise.
10938 (tfile_get_trace_status): Likewise.
10939 (tfile_get_tracepoint_status): Likewise.
10940 (tfile_get_traceframe_address): Likewise.
10941 (tfile_trace_find, match_blocktype): Likewise.
10942 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10943 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10944 (tfile_get_trace_state_variable_value): Likewise.
10945 (tfile_has_all_memory, tfile_has_memory): Likewise.
10946 (tfile_has_stack, tfile_has_registers): Likewise.
10947 (tfile_thread_alive, build_traceframe_info): Likewise.
10948 (tfile_traceframe_info, init_tfile_ops): Likewise.
10949 (_initialize_tracepoint): Don't call init_tfile_ops
10950 and add_target_with_completer.
10951 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10952 exec.h, completer.h and filenames.h.
10953 (_initialize_tracefile_tfile): New function.
10954
10955 2014-02-23 Yao Qi <yao@codesourcery.com>
10956
10957 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10958 tracefile-tfile.o.
10959 (HFILES_NO_SRCDIR): Add tracefile.h.
10960 * ctf.c: Include "tracefile.h".
10961 * tracefile.h: New file.
10962 * tracefile.c: New file
10963 * tracefile-tfile.c: New file.
10964 * tracepoint.c: Include "tracefile.h".
10965 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10966 (stop_reason_names): Add const.
10967 (trace_file_writer_xfree): Move it to tracefile.c.
10968 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10969 (trace_save_ctf): Likewise.
10970 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10971 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10972 (tfile_write_header, tfile_write_regblock_type): Likewise.
10973 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10974 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10975 (tfile_write_raw_data, tfile_end): Likewise.
10976 (tfile_trace_file_writer_new): Likewise.
10977 (free_uploaded_tp): Make it extern.
10978 (free_uploaded_tsv): Make it extern.
10979 (_initialize_tracepoint): Move code to register command 'tsave'
10980 to tracefile.c.
10981 * tracepoint.h (stop_reason_names): Declare.
10982 (struct trace_frame_write_ops): Move it to tracefile.h.
10983 (struct trace_file_write_ops): Likewise.
10984 (struct trace_file_writer): Likewise.
10985 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10986
10987 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10988
10989 PR gdb/16594
10990 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10991 process name.
10992 (get_cores_used_by_process): New parameter num_cores, use it.
10993 (linux_xfer_osdata_processes): Pass num_cores to it.
10994 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10995 process name.
10996
10997 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10998
10999 * target.c (memory_xfer_partial): Fix length arg in call to
11000 breakpoint_xfer_memory.
11001
11002 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11003
11004 PR tdep/16397
11005 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11006 number comes after the + or - signs. Adjust length of register
11007 name to be extracted.
11008
11009 2014-02-20 Tom Tromey <tromey@redhat.com>
11010
11011 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11012 (ada_varobj_ops): Mark "extern".
11013
11014 2014-02-20 Tom Tromey <tromey@redhat.com>
11015
11016 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11017
11018 2014-02-20 Doug Evans <xdje42@gmail.com>
11019
11020 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11021 All callers updated.
11022 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11023 All callers updated.
11024 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11025 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11026
11027 2014-02-20 lin zuojian <manjian2006@gmail.com>
11028 Joel Brobecker <brobecker@adacore.com>
11029 Doug Evans <xdje42@gmail.com>
11030
11031 PR symtab/16581
11032 * dwarf2read.c (struct die_info): New member in_process.
11033 (reset_die_in_process): New function.
11034 (process_die): Set it at the start, reset when returning.
11035 (inherit_abstract_dies): Only call process_die if origin_child_die
11036 not already being processed.
11037
11038 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11039
11040 * windows-nat.c (handle_unload_dll): Add function documentation.
11041 (do_initial_windows_stuff): Add comment explaining why we wait
11042 until after inferior initialization has finished before
11043 processing all DLLs.
11044
11045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11046
11047 * windows-nat.c (get_module_name): Delete.
11048 (windows_get_exec_module_filename): New function, mostly
11049 inspired from get_module_name.
11050 (windows_pid_to_exec_file): Replace call to get_module_name
11051 by call to windows_get_exec_module_filename.
11052
11053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11054
11055 * windows-nat.c (handle_load_dll): Rewrite this function's
11056 introductory comment. Remove code using get_module_name
11057 to get the DLL's name.
11058
11059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11060
11061 * windows-nat.c (get_windows_debug_event): Ignore
11062 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11063 if windows_initialization_done == 0.
11064 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11065 Adjust implementation to always load all DLLs.
11066 (do_initial_windows_stuff): Replace call to
11067 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11068
11069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11070
11071 * windows-nat.c (_initialize_windows_nat): Deprecate the
11072 "dll-symbols" command. Turn the "add-shared-symbol-files"
11073 and "assf" aliases into commands, and deprecate them as well.
11074 * NEWS: Add entry explaining that "dll-symbols" and its two
11075 aliases are now deprecated.
11076
11077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11078
11079 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11080 new-line in debug string. Remove trailing spaces.
11081
11082 2014-02-19 Stan Shebs <stan@codesourcery.com>
11083
11084 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11085
11086 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11087
11088 * NEWS: Add entry for the new feature
11089 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11090 and class values.
11091
11092 2014-02-19 Stan Shebs <stan@codesourcery.com>
11093
11094 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11095
11096 2014-02-19 Pedro Alves <palves@redhat.com>
11097
11098 * common/ptid.h (struct ptid): Mention that process_stratum
11099 targets should prefer ptid.lwp.
11100
11101 2014-02-19 Pedro Alves <palves@redhat.com>
11102
11103 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11104 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11105 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11106 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11107 store remote thread ids rather than ptid.tid.
11108 (_initialize_remote): Adjust.
11109
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target.c (target_get_unwinder): Rewrite.
11113 (target_get_tailcall_unwinder): Rewrite.
11114 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11115 (record_btrace_to_get_tailcall_unwinder): New function.
11116 (init_record_btrace_ops): Update.
11117 * target.h (struct target_ops) <to_get_unwinder,
11118 to_get_tailcall_unwinder>: Now function pointers. Use
11119 TARGET_DEFAULT_RETURN.
11120
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11124 argument.
11125 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11126
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11130 directly.
11131 * target-delegates.c: Rebuild.
11132 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11133 TARGET_DEFAULT_FUNC.
11134 * target.c (default_target_decr_pc_after_break): Rename from
11135 forward_target_decr_pc_after_break. Simplify.
11136 (target_decr_pc_after_break): Rely on delegation.
11137
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target.c (update_current_target): Do not INHERIT to_doc or
11141 to_magic. Do not de_fault to_open or to_close.
11142
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * gcore.h (objfile_find_memory_regions): Declare.
11146 * gcore.c (objfile_find_memory_regions): No longer static. Add
11147 "self" argument.
11148 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11149 * exec.c: Include gcore.h.
11150 (exec_set_find_memory_regions): Remove.
11151 (exec_find_memory_regions): Remove.
11152 (exec_do_find_memory_regions): Remove.
11153 (init_exec_ops): Update.
11154 * defs.h (exec_set_find_memory_regions): Remove.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.h (struct target_ops) <to_extra_thread_info,
11160 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11161 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11162 not 0, in TARGET_DEFAULT_RETURN.
11163
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target.c (complete_target_initialization): Remove casts. Use
11167 return_zero_has_execution.
11168 (return_zero): Add "ignore" argument.
11169 (return_zero_has_execution): New function.
11170 (init_dummy_target): Remove casts. Use
11171 return_zero_has_execution.
11172
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target.c (update_current_target): Update comments. Do not
11176 INHERIT to_stratum.
11177
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11181 needed.
11182 * corelow.c (core_read_description): Delegate when needed.
11183 * remote.c (remote_read_description): Delegate when needed.
11184 * target-delegates.c: Rebuild.
11185 * target.c (target_read_description): Rewrite.
11186 * target.h (struct target_ops) <to_read_description>: Update
11187 comment. Use TARGET_DEFAULT_RETURN.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_can_run.
11194 (find_default_run_target): Check against delegate_can_run.
11195 * target.h (struct target_ops) <to_can_run>: Use
11196 TARGET_DEFAULT_RETURN.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target-delegates.c: Rebuild.
11201 * target.c (target_disconnect): Unconditionally delegate.
11202 * target.h (struct target_ops) <to_disconnect>: Use
11203 TARGET_DEFAULT_NORETURN.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * record.c (record_stop): Unconditionally delegate.
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_stop_recording): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_stop_recording>: Use
11211 TARGET_DEFAULT_IGNORE.
11212
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target-delegates.c: Rebuild.
11216 * target.c (target_enable_btrace): Unconditionally delegate.
11217 * target.h (struct target_ops) <to_enable_btrace>: Use
11218 TARGET_DEFAULT_NORETURN.
11219
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_read_btrace): Unconditionally delegate.
11224 * target.h (struct target_ops) <to_read_btrace>: Use
11225 TARGET_DEFAULT_NORETURN.
11226
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_teardown_btrace): Unconditionally delegate.
11231 * target.h (struct target_ops) <to_teardown_btrace>: Use
11232 TARGET_DEFAULT_NORETURN.
11233
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target-delegates.c: Rebuild.
11237 * target.c (target_disable_btrace): Unconditionally delegate.
11238 * target.h (struct target_ops) <to_disable_btrace>: Use
11239 TARGET_DEFAULT_NORETURN.
11240
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (default_search_memory): New function.
11245 (simple_search_memory): Update comment.
11246 (target_search_memory): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_search_memory>: Use
11248 TARGET_DEFAULT_FUNC.
11249
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * auxv.c (default_auxv_parse): No longer static.
11253 (target_auxv_parse): Unconditionally delegate.
11254 * auxv.h (default_auxv_parse): Declare.
11255 * target-delegates.c: Rebuild.
11256 * target.c: Include auxv.h.
11257 * target.h (struct target_ops) <to_auxv_parse>: Use
11258 TARGET_DEFAULT_FUNC.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (target_memory_map): Unconditionally delegate.
11264 * target.h (struct target_ops) <to_memory_map>: Use
11265 TARGET_DEFAULT_RETURN.
11266
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target-delegates.c: Rebuild.
11270 * target.c (target_thread_alive): Unconditionally delegate.
11271 * target.h (struct target_ops) <to_thread_alive>: Use
11272 TARGET_DEFAULT_RETURN.
11273
11274 2014-02-19 Tom Tromey <tromey@redhat.com>
11275
11276 * target-delegates.c: Rebuild.
11277 * target.c (target_save_record): Unconditionally delegate.
11278 * target.h (struct target_ops) <to_save_record>: Use
11279 TARGET_DEFAULT_NORETURN.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (target_delete_record): Unconditionally delegate.
11285 * target.h (struct target_ops) <to_delete_record>: Use
11286 TARGET_DEFAULT_NORETURN.
11287
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_record_is_replaying): Unconditionally
11292 delegate.
11293 * target.h (struct target_ops) <to_record_is_replaying>: Use
11294 TARGET_DEFAULT_RETURN.
11295
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_goto_record_begin): Unconditionally delegate.
11300 * target.h (struct target_ops) <to_goto_record_begin>: Use
11301 TARGET_DEFAULT_NORETURN.
11302
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target-delegates.c: Rebuild.
11306 * target.c (target_goto_record_end): Unconditionally delegate.
11307 * target.h (struct target_ops) <to_goto_record_end>: Use
11308 TARGET_DEFAULT_NORETURN.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (target_goto_record): Unconditionally delegate.
11314 * target.h (struct target_ops) <to_goto_record>: Use
11315 TARGET_DEFAULT_NORETURN.
11316
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target-delegates.c: Rebuild.
11320 * target.c (target_insn_history): Unconditionally delegate.
11321 * target.h (struct target_ops) <to_insn_history>: Use
11322 TARGET_DEFAULT_NORETURN.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target-delegates.c: Rebuild.
11327 * target.c (target_insn_history_from): Unconditionally delegate.
11328 * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
11335 * target.h (struct target_ops) <to_insn_history_range>: 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_call_history): Unconditionally delegate.
11342 * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_call_history_from>: 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_call_history_range): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_call_history_range>: 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_verify_memory): Unconditionally delegate.
11363 * target.h (struct target_ops) <to_verify_memory>: 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_core_of_thread): Unconditionally delegate.
11370 * target.h (struct target_ops) <to_core_of_thread>: Use
11371 TARGET_DEFAULT_RETURN.
11372
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * target-delegates.c: Rebuild.
11376 * target.c (target_flash_done): Unconditionally delegate.
11377 * target.h (struct target_ops) <to_flash_done>: 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_flash_erase): Unconditionally delegate.
11384 * target.h (struct target_ops) <to_flash_erase>: 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_get_section_table): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_get_section_table>: Use
11392 TARGET_DEFAULT_RETURN.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (target_pid_to_str): Unconditionally delegate.
11398 (init_dummy_target): Don't initialize to_pid_to_str.
11399 (default_pid_to_str): Rename from dummy_pid_to_str.
11400 * target.h (struct target_ops) <to_pid_to_str>: Use
11401 TARGET_DEFAULT_FUNC.
11402
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11404
11405 * target-delegates.c: Rebuild.
11406 * target.c (target_find_new_threads): Unconditionally delegate.
11407 * target.h (struct target_ops) <to_find_new_threads>: Use
11408 TARGET_DEFAULT_RETURN.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_program_signals): Unconditionally delegate.
11414 * target.h (struct target_ops) <to_program_signals>: Use
11415 TARGET_DEFAULT_IGNORE.
11416
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_pass_signals): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_pass_signals>: Use
11422 TARGET_DEFAULT_IGNORE.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (default_mourn_inferior): New function.
11428 (target_mourn_inferior): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_mourn_inferior>: Use
11430 TARGET_DEFAULT_FUNC.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (default_follow_fork): New function.
11436 (target_follow_fork): Unconditionally delegate.
11437 * target.h (struct target_ops) <to_follow_fork>: Use
11438 TARGET_DEFAULT_FUNC.
11439
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (target_kill): Unconditionally delegate.
11444 * target.h (struct target_ops) <to_kill>: Use
11445 TARGET_DEFAULT_NORETURN.
11446
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_masked_watch_num_registers): Unconditionally
11451 delegate.
11452 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11453 Use TARGET_DEFAULT_RETURN.
11454
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_remove_mask_watchpoint): Unconditionally
11459 delegate.
11460 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11461 TARGET_DEFAULT_RETURN.
11462
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (target_insert_mask_watchpoint): Unconditionally
11467 delegate.
11468 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11469 TARGET_DEFAULT_RETURN.
11470
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_ranged_break_num_registers): Unconditionally
11475 delegate.
11476 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11477 Use TARGET_DEFAULT_RETURN.
11478
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_fetch_registers): Unconditionally delegate.
11483 * target.h (struct target_ops) <to_fetch_registers>: Use
11484 TARGET_DEFAULT_NORETURN.
11485
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11490 to_stop.
11491 * target.h (struct target_ops) <to_stop>: Use
11492 TARGET_DEFAULT_IGNORE.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_can_run_breakpoint_commands.
11499 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11500 Use TARGET_DEFAULT_RETURN.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_supports_evaluation_of_breakpoint_conditions.
11507 * target.h (struct target_ops)
11508 <to_supports_evaluation_of_breakpoint_conditions>: Use
11509 TARGET_DEFAULT_RETURN.
11510
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_augmented_libraries_svr4_read.
11516 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11517 Use TARGET_DEFAULT_RETURN.
11518
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_can_use_agent.
11524 * target.h (struct target_ops) <to_can_use_agent>: Use
11525 TARGET_DEFAULT_RETURN.
11526
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_use_agent.
11532 * target.h (struct target_ops) <to_use_agent>: Use
11533 TARGET_DEFAULT_NORETURN.
11534
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_traceframe_info.
11540 (return_null): Remove.
11541 * target.h (struct target_ops) <to_traceframe_info>: Use
11542 TARGET_DEFAULT_RETURN.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_static_tracepoint_markers_by_strid.
11549 * target.h (struct target_ops)
11550 <to_static_tracepoint_markers_by_strid>: Use
11551 TARGET_DEFAULT_NORETURN.
11552
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_static_tracepoint_marker_at.
11558 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11559 Use TARGET_DEFAULT_RETURN.
11560
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_set_permissions.
11566 * target.h (struct target_ops) <to_set_permissions>: Use
11567 TARGET_DEFAULT_IGNORE.
11568
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_get_tib_address.
11574 * target.h (struct target_ops) <to_get_tib_address>: Use
11575 TARGET_DEFAULT_NORETURN.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_set_trace_notes.
11582 * target.h (struct target_ops) <to_set_trace_notes>: Use
11583 TARGET_DEFAULT_RETURN.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't initialize
11589 to_set_trace_buffer_size.
11590 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11591 TARGET_DEFAULT_IGNORE.
11592
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_set_circular_trace_buffer.
11598 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11599 TARGET_DEFAULT_IGNORE.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_set_disconnected_tracing.
11606 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11607 TARGET_DEFAULT_IGNORE.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_get_min_fast_tracepoint_insn_len.
11614 (return_minus_one): Remove.
11615 * target.h (struct target_ops)
11616 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11617
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_get_raw_trace_data.
11623 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11624 TARGET_DEFAULT_NORETURN.
11625
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_upload_trace_state_variables.
11631 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11632 Use TARGET_DEFAULT_RETURN.
11633
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_upload_tracepoints.
11639 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11640 TARGET_DEFAULT_RETURN.
11641
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_save_trace_data.
11647 * target.h (struct target_ops) <to_save_trace_data>: Use
11648 TARGET_DEFAULT_NORETURN.
11649
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_get_trace_state_variable_value.
11655 * target.h (struct target_ops)
11656 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11657
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_trace_find.
11663 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_trace_stop.
11670 * target.h (struct target_ops) <to_trace_stop>: Use
11671 TARGET_DEFAULT_NORETURN.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_get_tracepoint_status.
11678 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11679 TARGET_DEFAULT_NORETURN.
11680
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_get_trace_status.
11686 * target.h (struct target_ops) <to_get_trace_status>: Use
11687 TARGET_DEFAULT_RETURN.
11688
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_trace_start.
11694 * target.h (struct target_ops) <to_trace_start>: Use
11695 TARGET_DEFAULT_NORETURN.
11696
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_trace_set_readonly_regions.
11702 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11703 Use TARGET_DEFAULT_NORETURN.
11704
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_disable_tracepoint.
11710 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11711 TARGET_DEFAULT_NORETURN.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_enable_tracepoint.
11718 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_download_trace_state_variable.
11726 * target.h (struct target_ops) <to_download_trace_state_variable>:
11727 Use TARGET_DEFAULT_NORETURN.
11728
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_can_download_tracepoint.
11734 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11735 TARGET_DEFAULT_RETURN.
11736
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_download_tracepoint.
11742 * target.h (struct target_ops) <to_download_tracepoint>: Use
11743 TARGET_DEFAULT_NORETURN.
11744
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_trace_init.
11750 * target.h (struct target_ops) <to_trace_init>: Use
11751 TARGET_DEFAULT_RETURN.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_supports_string_tracing.
11758 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11759 TARGET_DEFAULT_RETURN.
11760
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_supports_enable_disable_tracepoint.
11766 * target.h (struct target_ops)
11767 <to_supports_enable_disable_tracepoint>: Use
11768 TARGET_DEFAULT_RETURN.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_supports_multi_process.
11775 * target.h (struct target_ops) <to_supports_multi_process>: Use
11776 TARGET_DEFAULT_RETURN.
11777
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_get_ada_task_ptid.
11783 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11784 TARGET_DEFAULT_FUNC.
11785
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_thread_architecture.
11791 * target.h (struct target_ops) <to_thread_architecture>: Use
11792 TARGET_DEFAULT_FUNC.
11793
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_execution_direction.
11799 * target.h (struct target_ops) <to_execution_direction>: Use
11800 TARGET_DEFAULT_FUNC.
11801
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_can_execute_reverse.
11807 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11808 TARGET_DEFAULT_RETURN.
11809 (target_can_execute_reverse): Unconditionally delegate.
11810
11811 2014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target-delegates.c: Rebuild.
11814 * target.c (update_current_target): Don't inherit or default
11815 to_goto_bookmark.
11816 (dummy_goto_bookmark): Remove.
11817 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11818 * target.h (struct target_ops) <to_goto_bookmark>: Use
11819 TARGET_DEFAULT_NORETURN.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_get_bookmark.
11826 (dummy_get_bookmark): Remove.
11827 (init_dummy_target): Don't inherit or default to_get_bookmark.
11828 * target.h (struct target_ops) <to_get_bookmark>: Use
11829 TARGET_DEFAULT_NORETURN
11830
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target-delegates.c: Rebuild.
11834 * target.c (update_current_target): Don't inherit or default
11835 to_make_corefile_notes.
11836 (init_dummy_target): Don't initialize to_make_corefile_notes.
11837 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11838 TARGET_DEFAULT_FUNC.
11839
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target-delegates.c: Rebuild.
11843 * target.c (update_current_target): Don't inherit or default
11844 to_find_memory_regions.
11845 (init_dummy_target): Don't initialize to_find_memory_regions.
11846 * target.h (struct target_ops) <to_find_memory_regions>: Use
11847 TARGET_DEFAULT_FUNC.
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_log_command.
11854 * target.h (struct target_ops) <to_log_command>: Use
11855 TARGET_DEFAULT_IGNORE.
11856 (target_log_command): Unconditionally delegate.
11857
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_pid_to_exec_file.
11863 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11864 TARGET_DEFAULT_RETURN.
11865
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_thread_name.
11871 (target_thread_name): Unconditionally delegate.
11872 * target.h (struct target_ops) <to_thread_name>: Use
11873 TARGET_DEFAULT_RETURN.
11874
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target-delegates.c: Rebuild.
11878 * target.c (update_current_target): Don't inherit or default
11879 to_extra_thread_info.
11880 * target.h (struct target_ops) <to_extra_thread_info>: Use
11881 TARGET_DEFAULT_RETURN.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target-delegates.c: Rebuild.
11886 * target.c (update_current_target): Don't inherit or default
11887 to_has_exited.
11888 * target.h (struct target_ops) <to_has_exited>: Use
11889 TARGET_DEFAULT_RETURN..
11890
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_set_syscall_catchpoint.
11896 (return_one): Remove.
11897 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11898 TARGET_DEFAULT_RETURN.
11899
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_insert_exec_catchpoint.
11905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11907
11908 2014-01-08 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_insert_exec_catchpoint.
11913 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11915
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_remove_vfork_catchpoint.
11921 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11922 TARGET_DEFAULT_RETURN.
11923
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_insert_vfork_catchpoint.
11929 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11930 TARGET_DEFAULT_RETURN.
11931
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_remove_fork_catchpoint.
11937 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11938 TARGET_DEFAULT_RETURN.
11939
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_insert_fork_catchpoint.
11945 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11946 TARGET_DEFAULT_RETURN.
11947
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_post_startup_inferior.
11953 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11954 TARGET_DEFAULT_IGNORE.
11955
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_load.
11961 * target.h (struct target_ops) <to_load>: Use
11962 TARGET_DEFAULT_NORETURN.
11963
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11968 to_terminal_info.
11969 * target.h (struct target_ops) <to_terminal_info>: Use
11970 TARGET_DEFAULT_FUNC.
11971
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11973
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_terminal_save_ours.
11977 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11978 TARGET_DEFAULT_IGNORE.
11979
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_terminal_ours.
11985 * target.h (struct target_ops) <to_terminal_ours>: Use
11986 TARGET_DEFAULT_IGNORE.
11987
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11992 to_terminal_ours_for_output.
11993 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11994 TARGET_DEFAULT_IGNORE.
11995
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_terminal_inferior.
12001 * target.h (struct target_ops) <to_terminal_inferior>: Use
12002 TARGET_DEFAULT_IGNORE.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_terminal_init.
12009 * target.h (struct target_ops) <to_terminal_init>: Use
12010 TARGET_DEFAULT_IGNORE.
12011
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_can_accel_watchpoint_condition.
12017 * target.h (struct target_ops)
12018 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12019
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_region_ok_for_hw_watchpoint.
12025 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12026 Use TARGET_DEFAULT_FUNC.
12027
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_watchpoint_addr_within_range.
12033 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12034 Use TARGET_DEFAULT_FUNC.
12035
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_remove_watchpoint.
12041 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12042 TARGET_DEFAULT_NORETURN.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_insert_watchpoint.
12049 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12051
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_remove_hw_breakpoint.
12057 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12059
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_insert_hw_breakpoint.
12065 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12067
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_can_use_hw_breakpoint.
12073 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12075
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_files_info.
12081 * target.h (struct target_ops) <to_files_info>: Use
12082 TARGET_DEFAULT_IGNORE.
12083
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_store.
12089 * target.h (struct target_ops) <to_store>: Use
12090 TARGET_DEFAULT_NORETURN.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_post_attach.
12097 * target.h (struct target_ops) <to_post_attach>: Use
12098 TARGET_DEFAULT_IGNORE.
12099
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12104 to_rcmd.
12105 (default_rcmd): New function.
12106 (do_monitor_command): Unconditionally delegate.
12107 * target.h (struct target_ops) <to_rmcd>: Use
12108 TARGET_DEFAULT_FUNC.
12109
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target-delegates.c: Rebuild.
12113 * target.c (init_dummy_target): Don't initialize to_attach.
12114 (target_attach): Unconditionally delegate.
12115 * target.h (struct target_ops) <to_attach>: Use
12116 TARGET_DEFAULT_FUNC.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target-delegates.c: Rebuild.
12121 * target.c (target_detach): Unconditionally delegate.
12122 (init_dummy_target): Don't initialize to_detach.
12123 * target.h (struct target_ops) <to_detach>: Use
12124 TARGET_DEFAULT_IGNORE.
12125
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12129 Add argument.
12130 (target_augmented_libraries_svr4_read): Add argument.
12131 * target.c (update_current_target): Update.
12132 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12133 argument.
12134
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target.h (struct target_ops) <to_call_history_range>: Add
12138 argument.
12139 * target.c (target_call_history_range): Add argument.
12140 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12141 argument.
12142 (record_btrace_call_history_from): Update.
12143
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target.h (struct target_ops) <to_call_history_from>: Add
12147 argument.
12148 * target.c (target_call_history_from): Add argument.
12149 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12150 argument.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target.h (struct target_ops) <to_call_history>: Add argument.
12155 * target.c (target_call_history): Add argument.
12156 * record-btrace.c (record_btrace_call_history): Add 'self'
12157 argument.
12158
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target.h (struct target_ops) <to_insn_history_range>: Add
12162 argument.
12163 * target.c (target_insn_history_range): Add argument.
12164 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12165 argument.
12166 (record_btrace_insn_history_from): Update.
12167
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_insn_history_from>: Add
12171 argument.
12172 * target.c (target_insn_history_from): Add argument.
12173 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12174 argument.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_insn_history>: Add argument.
12179 * target.c (target_insn_history): Add argument.
12180 * record-btrace.c (record_btrace_insn_history): Add 'self'
12181 argument.
12182
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12184
12185 * target.h (struct target_ops) <to_goto_record>: Add argument.
12186 * target.c (target_goto_record): Add argument.
12187 * record-full.c (record_full_goto): Add 'self' argument.
12188 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12189
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12191
12192 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12193 * target.c (target_goto_record_end): Add argument.
12194 * record-full.c (record_full_goto_end): Add 'self' argument.
12195 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12196
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target.h (struct target_ops) <to_goto_record_begin>: Add
12200 argument.
12201 * target.c (target_goto_record_begin): Add argument.
12202 * record-full.c (record_full_goto_begin): Add 'self' argument.
12203 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12204 argument.
12205
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * target.h (struct target_ops) <to_record_is_replaying>: Add
12209 argument.
12210 * target.c (target_record_is_replaying): Add argument.
12211 * record-full.c (record_full_is_replaying): Add 'self' argument.
12212 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12213 argument.
12214 (record_btrace_xfer_partial, record_btrace_store_registers)
12215 (record_btrace_prepare_to_store, record_btrace_resume)
12216 (record_btrace_wait, record_btrace_decr_pc_after_break)
12217 (record_btrace_find_new_threads, record_btrace_thread_alive):
12218 Update.
12219
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target.h (struct target_ops) <to_delete_record>: Add argument.
12223 * target.c (target_delete_record): Add argument.
12224 * record-full.c (record_full_delete): Add 'self' argument.
12225
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target.h (struct target_ops) <to_save_record>: Add argument.
12229 * target.c (target_save_record): Add argument.
12230 * record-full.c (record_full_save): Add 'self' argument.
12231 (record_full_save): Add 'self' argument.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_info_record>: Add argument.
12236 * target.c (target_info_record): Add argument.
12237 * record.c (info_record_command): Add argument.
12238 * record-full.c (record_full_info): Add 'self' argument.
12239 * record-btrace.c (record_btrace_info): Add 'self' argument.
12240
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12244 * target.c (target_stop_recording): Add argument.
12245 * record.c (record_stop): Add argument.
12246 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12247 argument.
12248
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12252 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12253 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12254 argument.
12255 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12256 (_initialize_amd64_linux_nat): Use it.
12257 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12258 (_initialize_i386_linux_nat): Use it.
12259
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12263 * target.c (target_teardown_btrace): Add argument.
12264 * remote.c (remote_teardown_btrace): Add 'self' argument.
12265 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12266 argument.
12267 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12268 argument.
12269
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12273 * target.c (target_disable_btrace): Add argument.
12274 * remote.c (remote_disable_btrace): Add 'self' argument.
12275 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12276 argument.
12277 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12278 argument.
12279
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12283 * target.c (target_enable_btrace): Add argument.
12284 * remote.c (remote_enable_btrace): Add 'self' argument.
12285 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12286 argument.
12287 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12288 argument.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12293 (target_can_use_agent): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_can_use_agent): Add 'self' argument.
12296 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12297
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_use_agent>: Add argument.
12301 (target_use_agent): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_use_agent): Add 'self' argument.
12304 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12305
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12309 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12310 (target_traceframe_info): Add argument.
12311 * target.c (update_current_target): Update.
12312 * remote.c (remote_traceframe_info): Add 'self' argument.
12313 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12314
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target.h (target_static_tracepoint_markers_by_strid): Add
12318 argument.
12319 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12320 'self' argument.
12321 * target.c (update_current_target): Update.
12322 * remote.c (struct target_ops)
12323 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12324 * linux-nat.c (struct target_ops)
12325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12326
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12330 Add argument.
12331 (target_static_tracepoint_marker_at): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12334 argument.
12335
12336 2014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12339 (target_set_permissions): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_set_permissions): Add 'self' argument.
12342 (remote_start_remote): Update.
12343
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12347 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12348 (target_get_tib_address): Add argument.
12349 * target.c (update_current_target): Update.
12350 * remote.c (remote_get_tib_address): Add 'self' argument.
12351
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12355 (target_set_trace_notes): Add argument.
12356 * target.c (update_current_target): Update.
12357 * remote.c (remote_set_trace_notes): Add 'self' argument.
12358
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12362 argument.
12363 (target_set_trace_buffer_size): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12366
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12370 argument.
12371 (target_set_circular_trace_buffer): Add argument.
12372 * target.c (update_current_target): Update.
12373 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12374 argument.
12375
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12377
12378 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12379 argument.
12380 (target_set_disconnected_tracing): Add argument.
12381 * target.c (update_current_target): Update.
12382 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12383
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12385
12386 * target.h (struct target_ops)
12387 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12388 (target_get_min_fast_tracepoint_insn_len): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12391 argument.
12392
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12394
12395 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12396 argument.
12397 (target_get_raw_trace_data): Add argument.
12398 * target.c (update_current_target): Update.
12399 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12400
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12404 Add argument.
12405 (target_upload_trace_state_variables): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_upload_trace_state_variables): Add 'self'
12408 argument.
12409 (remote_start_remote): Update.
12410
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12414 argument.
12415 (target_upload_tracepoints): Add argument.
12416 * target.c (update_current_target): Update.
12417 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12418 (remote_start_remote): Update.
12419
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12423 (target_save_trace_data): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_save_trace_data): Add 'self' argument.
12426
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12430 argument.
12431 * target.h (struct target_ops)
12432 <to_get_trace_state_variable_value>: Add argument.
12433 (target_get_trace_state_variable_value): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12436 argument.
12437 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12438
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12442 * target.h (struct target_ops) <to_trace_find>: Add argument.
12443 (target_trace_find): Add argument.
12444 * target.c (update_current_target): Update.
12445 * remote.c (remote_trace_find): Add 'self' argument.
12446 * ctf.c (ctf_trace_find): Add 'self' argument.
12447
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12451 (target_trace_stop): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_trace_stop): Add 'self' argument.
12454
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12458 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12459 argument.
12460 (target_get_tracepoint_status): Add argument.
12461 * target.c (update_current_target): Update.
12462 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12463
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12467 * target.h (struct target_ops) <to_get_trace_status>: Add
12468 argument.
12469 (target_get_trace_status): Add argument.
12470 * target.c (update_current_target): Update.
12471 * remote.c (remote_get_trace_status): Add 'self' argument.
12472 (remote_start_remote, remote_can_download_tracepoint): Update.
12473 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12474
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_trace_start>: Add argument.
12478 (target_trace_start): Add argument.
12479 * target.c (update_current_target): Update.
12480 * remote.c (remote_trace_start): Add 'self' argument.
12481
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12483
12484 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12485 Add argument.
12486 (target_trace_set_readonly_regions): Add argument.
12487 * target.c (update_current_target): Update.
12488 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12489 argument.
12490
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12494 argument.
12495 (target_disable_tracepoint): Add argument.
12496 * target.c (update_current_target): Update.
12497 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12498
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12502 argument.
12503 (target_enable_tracepoint): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12506
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target.h (struct target_ops) <to_download_trace_state_variable>:
12510 Add argument.
12511 (target_download_trace_state_variable): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_download_trace_state_variable): Add 'self'
12514 argument.
12515
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12517
12518 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12519 argument.
12520 (target_can_download_tracepoint): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12523
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_download_tracepoint>: Add
12527 argument.
12528 (target_download_tracepoint): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_download_tracepoint): Add 'self' argument.
12531
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target.h (struct target_ops) <to_trace_init>: Add argument.
12535 (target_trace_init): Add argument.
12536 * target.c (update_current_target): Update.
12537 * remote.c (remote_trace_init): Add 'self' argument.
12538
12539 2014-02-19 Tom Tromey <tromey@redhat.com>
12540
12541 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12542 * target.c (target_fileio_readlink): Add argument.
12543 * remote.c (remote_hostio_readlink): Add 'self' argument.
12544 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12545
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12549 * target.c (target_fileio_unlink): Add argument.
12550 * remote.c (remote_hostio_unlink): Add 'self' argument.
12551 (remote_file_delete): Update.
12552 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12553
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12557 * target.c (target_fileio_close): Add argument.
12558 * remote.c (remote_hostio_close): Add 'self' argument.
12559 (remote_hostio_close_cleanup): Update.
12560 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12561 Update.
12562 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12563
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12567 * target.c (target_fileio_pread): Add argument.
12568 * remote.c (remote_hostio_pread): Add 'self' argument.
12569 (remote_bfd_iovec_pread, remote_file_get): Update.
12570 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12571
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12575 * target.c (target_fileio_pwrite): Add argument.
12576 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12577 (remote_file_put): Update.
12578 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12579
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12583 * target.c (target_fileio_open): Add argument.
12584 * remote.c (remote_hostio_open): Add 'self' argument.
12585 (remote_bfd_iovec_open): Add 'self' argument.
12586 (remote_file_put): Add 'self' argument.
12587 (remote_file_get): Add 'self' argument.
12588 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12589
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12593 Add argument.
12594 (target_can_run_breakpoint_commands): Add argument.
12595 * target.c (update_current_target): Update.
12596 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12597 argument.
12598 (remote_insert_breakpoint): Add 'self' argument.
12599 (remote_insert_hw_breakpoint): Add 'self' argument.
12600 (remote_can_run_breakpoint_commands): Add 'self' argument.
12601
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops)
12605 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12606 (target_supports_evaluation_of_breakpoint_conditions): Add
12607 argument.
12608 * target.c (update_current_target): Update.
12609 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12610 argument.
12611 (remote_insert_breakpoint): Add 'self' argument.
12612 (remote_insert_hw_breakpoint): Add 'self' argument.
12613 (remote_supports_cond_breakpoints): Add 'self' argument.
12614
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12618 argument.
12619 (target_supports_string_tracing): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12622
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops)
12626 <to_supports_disable_randomization>: Add argument.
12627 * target.c (find_default_supports_disable_randomization): Add
12628 argument.
12629 (target_supports_disable_randomization): Add argument.
12630 (find_default_supports_disable_randomization): Add 'self'
12631 argument.
12632 * remote.c (extended_remote_supports_disable_randomization): Add
12633 'self' argument.
12634 (remote_supports_disable_randomization): Add 'self' argument.
12635 (extended_remote_create_inferior): Update.
12636 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12637 'self' argument.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops)
12642 <to_supports_enable_disable_tracepoint>: Add argument.
12643 (target_supports_enable_disable_tracepoint): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12646 argument.
12647
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target.h (struct target_ops) <to_supports_multi_process>: Add
12651 argument.
12652 (target_supports_multi_process): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_supports_multi_process): Add 'self' argument.
12655 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12656 argument.
12657 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12658 argument.
12659
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_execution_direction>: Add
12663 argument.
12664 (target_execution_direction): Add argument.
12665 * target.c (default_execution_direction): Add 'self' argument.
12666 * record-full.c (record_full_execution_direction): Add 'self'
12667 argument.
12668
12669 2014-02-19 Tom Tromey <tromey@redhat.com>
12670
12671 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12672 argument.
12673 (target_can_execute_reverse): Add argument.
12674 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12675 * record-full.c (record_full_can_execute_reverse): Add 'self'
12676 argument.
12677 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12678 argument.
12679
12680 2014-02-19 Tom Tromey <tromey@redhat.com>
12681
12682 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12683 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12684 argument.
12685 (target_get_ada_task_ptid): Add argument.
12686 * target.c (update_current_target): Update.
12687 (default_get_ada_task_ptid): Add 'self' argument.
12688 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12689 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12690 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12691 argument.
12692 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12693 argument.
12694 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12695 argument.
12696 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12697 argument.
12698 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12699 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12700 argument.
12701
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12703
12704 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12705 (target_goto_bookmark): Add argument.
12706 * target.c (dummy_goto_bookmark): Add 'self' argument.
12707 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12708
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12710
12711 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12712 (target_get_bookmark): Add argument.
12713 * target.c (dummy_get_bookmark): Add 'self' argument.
12714 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12715
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12717
12718 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12719 argument.
12720 (target_make_corefile_notes): Add argument.
12721 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12722 * procfs.c (procfs_make_note_section): Add 'self' argument.
12723 (procfs_make_note_section): Add 'self' argument.
12724 (procfs_make_note_section): Add 'self' argument.
12725 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12726 argument.
12727 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12728 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12729 * exec.c (exec_make_note_section): Add 'self' argument.
12730 (exec_make_note_section): Add 'self' argument.
12731
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12733
12734 * target.h (struct target_ops) <to_find_memory_regions>: Add
12735 argument.
12736 (target_find_memory_regions): Add argument.
12737 * target.c (dummy_find_memory_regions): Add 'self' argument.
12738 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12739 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12740 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12741 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12742 * exec. (exec_do_find_memory_regions): New global.
12743 (exec_set_find_memory_regions): Rewrite.
12744 (exec_find_memory_regions): New function.
12745 (init_exec_ops): Use exec_find_memory_regions.
12746
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_supports_non_stop>: Add
12750 argument.
12751 * target.c (find_default_supports_non_stop): Add argument.
12752 (target_supports_non_stop): Add argument.
12753 (find_default_supports_non_stop): Add 'self' argument.
12754 * remote.c (remote_supports_non_stop): Add 'self' argument.
12755 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12756
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12758
12759 * target.h (struct target_ops) <to_log_command>: Add argument.
12760 (target_log_command): Add argument.
12761 * serial.h (serial_log_command): Add 'self' argument.
12762 * serial.c (serial_log_command): Add 'self' argument.
12763
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12765
12766 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12767 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12768 argument.
12769 (target_pid_to_exec_file): Add argument.
12770 * target.c (debug_to_pid_to_exec_file): Add argument.
12771 (update_current_target): Update.
12772 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12773 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12774 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12775 (linux_handle_extended_wait): Update.
12776 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12777 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12778 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12779 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12780
12781 2014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_rcmd>: Add argument.
12784 (target_rcmd): Add argument.
12785 * target.c (debug_to_rcmd): Add argument.
12786 (update_current_target, do_monitor_command): Update.
12787 * remote.c (remote_rcmd): Add 'self' argument.
12788 * monitor.c (monitor_rcmd): Add 'self' argument.
12789
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12791
12792 * windows-nat.c (windows_stop): Add 'self' argument.
12793 * target.h (struct target_ops) <to_stop>: Add argument.
12794 * target.c (target_stop): Add argument.
12795 (debug_to_stop): Add argument.
12796 (update_current_target): Update.
12797 * remote.c (remote_stop): Add 'self' argument.
12798 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12799 (gdbsim_cntrl_c): Update.
12800 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12801 * procfs.c (procfs_stop): Add 'self' argument.
12802 * nto-procfs.c (procfs_stop): Add 'self' argument.
12803 * monitor.c (monitor_stop): Add 'self' argument.
12804 (monitor_open): Update.
12805 * linux-nat.c (linux_nat_stop): Add argument.
12806 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12807 * gnu-nat.c (gnu_stop): Add 'self' argument.
12808 * darwin-nat.c (darwin_stop): Add 'self' argument.
12809
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops) <to_thread_name>: Add argument.
12813 * target.c (target_thread_name): Add argument.
12814 (update_current_target): Update.
12815 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12816
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12818
12819 * target.h (struct target_ops) <to_extra_thread_info>: Add
12820 argument.
12821 (target_extra_thread_info): Add argument.
12822 * target.c (update_current_target): Update.
12823 * remote.c (remote_threads_extra_info): Add 'self' argument.
12824 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12825 argument.
12826 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12827 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12828 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12829 argument.
12830 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12831 argument.
12832 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12833 argument.
12834 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12835 argument.
12836
12837 2014-02-19 Tom Tromey <tromey@redhat.com>
12838
12839 * target.h (struct target_ops) <to_program_signals>: Add argument.
12840 * target.c (target_program_signals): Add argument.
12841 * remote.c (remote_program_signals): Add 'self' argument.
12842
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12844
12845 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12846 * target.c (target_pass_signals): Add argument.
12847 * remote.c (remote_pass_signals): Add 'self' argument.
12848 (remote_start_remote): Update.
12849 * procfs.c (procfs_pass_signals): Add 'self' argument.
12850 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12851 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12852 (linux_nat_create_inferior, linux_nat_attach): Update.
12853
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 * windows-nat.c (windows_can_run): Add 'self' argument.
12857 * target.h (struct target_ops) <to_can_run>: Add argument.
12858 (target_can_run): Add argument.
12859 * target.c (debug_to_can_run): Add argument.
12860 (update_current_target): Update.
12861 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12862 * inf-child.c (inf_child_can_run): Add 'self' argument.
12863 * go32-nat.c (go32_can_run): Add 'self' argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_has_exited>: Add argument.
12868 (target_has_exited): Add argument.
12869 * target.c (debug_to_has_exited): Add argument.
12870 (update_current_target): Update.
12871
12872 2014-02-19 Tom Tromey <tromey@redhat.com>
12873
12874 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12875 argument.
12876 (target_set_syscall_catchpoint): Add argument.
12877 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12878 argument.
12879 * target.c (update_current_target): Update.
12880
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12884 argument.
12885 (target_remove_exec_catchpoint): Add argument.
12886 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12887 (update_current_target): Update.
12888 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12889 argument.
12890
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12894 argument.
12895 (target_insert_exec_catchpoint): Add argument.
12896 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12897 (update_current_target): Update.
12898 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12899 argument.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12904 argument.
12905 (target_remove_vfork_catchpoint): Add argument.
12906 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12907 (update_current_target): Update.
12908 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12909 argument.
12910
12911 2014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12914 argument.
12915 (target_insert_vfork_catchpoint): Add argument.
12916 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12917 (update_current_target): Update.
12918 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12919 argument.
12920
12921 2014-02-19 Tom Tromey <tromey@redhat.com>
12922
12923 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12924 argument.
12925 (target_remove_fork_catchpoint): Add argument.
12926 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12927 (update_current_target): Update.
12928 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12929 argument.
12930
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12932
12933 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12934 argument.
12935 (target_insert_fork_catchpoint): Add argument.
12936 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12937 (update_current_target): Update.
12938 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12939 argument.
12940
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12942
12943 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12944 argument.
12945 (target_post_startup_inferior): Add argument.
12946 * target.c (debug_to_post_startup_inferior): Add argument.
12947 (update_current_target): Update.
12948 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12949 argument.
12950 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12951 argument.
12952 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12953 argument.
12954 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12955 argument.
12956 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12957 'self' argument.
12958 (super_post_startup_inferior): Likewise.
12959 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12960 'self' argument.
12961 (super_post_startup_inferior): Likewise.
12962 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12963 Add 'self' argument.
12964 (super_post_startup_inferior): Likewise.
12965
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12967
12968 * target.h (struct target_ops) <to_load>: Add argument.
12969 * target.c (target_load): Add argument.
12970 (debug_to_load): Add argument.
12971 (update_current_target): Update.
12972 * remote.c (remote_load): Add 'self' argument.
12973 * remote-sim.c (gdbsim_load): Add 'self' argument.
12974 * remote-mips.c (mips_load): Add 'self' argument.
12975 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12976 * monitor.c (monitor_load): Add 'self' argument.
12977 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12978
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12982 (target_terminal_info): Add argument.
12983 * target.c (debug_to_terminal_info): Add argument.
12984 (default_terminal_info): Likewise.
12985 * inflow.c (child_terminal_info): Add 'self' argument.
12986 * inferior.h (child_terminal_info): Add 'self' argument.
12987 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12988
12989 2014-02-19 Tom Tromey <tromey@redhat.com>
12990
12991 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12992 argument.
12993 (target_terminal_save_ours): Add argument.
12994 * target.c (debug_to_terminal_save_ours): Add argument.
12995 (update_current_target): Update.
12996 * inflow.c (terminal_save_ours): Add 'self' argument.
12997 * inferior.h (terminal_save_ours): Add 'self' argument.
12998
12999 2014-02-19 Tom Tromey <tromey@redhat.com>
13000
13001 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13002 (target_terminal_ours): Add argument.
13003 * target.c (debug_to_terminal_ours): Add argument.
13004 (update_current_target): Update.
13005 * remote.c (remote_terminal_ours): Add 'self' argument.
13006 (remote_close): Update.
13007 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13008 * inflow.c (terminal_ours): Add 'self' argument.
13009 * inferior.h (terminal_ours): Add 'self' argument.
13010 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13011
13012 2014-02-19 Pedro Alves <palves@redhat.com>
13013 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13016 argument.
13017 (target_terminal_ours_for_output): Add argument.
13018 * target.c (debug_to_terminal_ours_for_output): Add argument.
13019 (update_current_target): Update.
13020 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13021 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13022 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13023
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13025
13026 * target.h (struct target_ops) <to_terminal_inferior>: Add
13027 argument.
13028 * target.c (target_terminal_inferior): Add argument.
13029 (update_current_target): Update.
13030 * remote.c (remote_terminal_inferior): Add 'self' argument.
13031 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13032 * inflow.c (terminal_inferior): Add 'self' argument.
13033 * inferior.h (terminal_inferior): Add 'self' argument.
13034 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13035 (go32_terminal_inferior): Add 'self' argument.
13036
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13038
13039 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13040 (target_terminal_init): Add argument.
13041 * target.c (debug_to_terminal_init): Add argument.
13042 (update_current_target): Update.
13043 * inflow.c (terminal_init_inferior): Add 'self' argument.
13044 * inferior.h (terminal_init_inferior): Add 'self' argument.
13045 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13046 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13047
13048 2014-02-19 Tom Tromey <tromey@redhat.com>
13049
13050 * target.h (struct target_ops)
13051 <to_can_accel_watchpoint_condition>: Add argument.
13052 (target_can_accel_watchpoint_condition): Add argument.
13053 * target.c (debug_to_can_accel_watchpoint_condition): Add
13054 argument.
13055 (update_current_target): Update.
13056 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13057 'self' argument.
13058
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13062 Add argument.
13063 (target_region_ok_for_hw_watchpoint): Add argument.
13064 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13065 (default_region_ok_for_hw_watchpoint): Add argument.
13066 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13067 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13068 argument.
13069 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13070 argument.
13071 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13072 argument.
13073 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13074 'self' argument.
13075 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13076 'self' argument.
13077 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13078 'self' argument.
13079 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13080 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13081 'self' argument.
13082 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13083 Add 'self' argument.
13084
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13088 argument.
13089 (target_insert_watchpoint): Add argument.
13090 * target.c (debug_to_insert_watchpoint): Add argument.
13091 (update_current_target): Update.
13092 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13093 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13094 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13095 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13096 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13097 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13098 argument.
13099 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13100 (procfs_insert_hw_watchpoint): Add 'self' argument.
13101 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13102 argument.
13103 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13104 argument.
13105 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13106 argument.
13107 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13108 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13109 argument.
13110 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13111 'self' argument.
13112
13113 2014-02-19 Tom Tromey <tromey@redhat.com>
13114
13115 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13116 argument.
13117 (target_remove_watchpoint): Add argument.
13118 * target.c (debug_to_remove_watchpoint): Add argument.
13119 (update_current_target): Update.
13120 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13121 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13122 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13123 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13124 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13125 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13126 argument.
13127 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13128 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13129 argument.
13130 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13131 argument.
13132 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13133 argument.
13134 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13135 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13136 argument.
13137 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13138 'self' argument.
13139
13140 2014-02-19 Tom Tromey <tromey@redhat.com>
13141
13142 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13143 argument.
13144 (target_remove_hw_breakpoint): Add argument.
13145 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13146 (update_current_target): Update.
13147 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13148 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13149 argument.
13150 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13151 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13152 argument.
13153 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13154 'self' argument.
13155
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13157
13158 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13159 argument.
13160 (target_insert_hw_breakpoint): Add argument.
13161 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13162 (update_current_target): Update.
13163 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13164 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13165 argument.
13166 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13167 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13168 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13169 argument.
13170 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13171 'self' argument.
13172
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13176 argument.
13177 (target_can_use_hardware_watchpoint): Add argument.
13178 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13179 (update_current_target): Update.
13180 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13181 argument.
13182 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13183 argument.
13184 * remote.c (remote_check_watch_resources): Add 'self' argument.
13185 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13186 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13187 argument.
13188 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13189 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13190 argument.
13191 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13192 argument.
13193 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13194 argument.
13195 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13196 argument.
13197 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13198 argument.
13199 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13200 argument.
13201 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13202 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13203 argument.
13204 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13205 'self' argument.
13206
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13208
13209 * target.h (struct target_ops) <to_post_attach>: Add argument.
13210 (target_post_attach): Add argument.
13211 * target.c (debug_to_post_attach): Add argument.
13212 (update_current_target): Update.
13213 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13214 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13215 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13216 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13217 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13218
13219 2014-02-19 Tom Tromey <tromey@redhat.com>
13220
13221 * windows-nat.c (windows_close): Add 'self' argument.
13222 * tracepoint.c (tfile_close): Add 'self' argument.
13223 * target.h (struct target_ops) <to_close>: Add argument.
13224 * target.c (target_close): Add argument.
13225 (update_current_target): Update.
13226 * remote.c (remote_close): Add 'self' argument.
13227 * remote-sim.c (gdbsim_close): Add 'self' argument.
13228 * remote-mips.c (mips_close): Add 'self' argument.
13229 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13230 * record-full.c (record_full_close): Add 'self' argument.
13231 * record-btrace.c (record_btrace_close): Add 'self' argument.
13232 * monitor.h (monitor_close): Add 'self' argument.
13233 * monitor.c (monitor_close): Add 'self' argument.
13234 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13235 * linux-nat.c (linux_nat_close): Add argument.
13236 * go32-nat.c (go32_close): Add 'self' argument.
13237 * exec.c (exec_close_1): Add 'self' argument.
13238 * ctf.c (ctf_close): Add 'self' argument.
13239 * corelow.c (core_close): Add 'self' argument.
13240 (core_close_cleanup): Update.
13241 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13242 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13243
13244 2014-02-19 Tom Tromey <tromey@redhat.com>
13245
13246 * remote.c (remote_load): New function.
13247 (init_remote_ops): Use it.
13248
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13250
13251 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13252 argument.
13253 * common/linux-btrace.h (linux_supports_btrace): Update.
13254 * remote.c (remote_supports_btrace): Add "self" argument.
13255 * target-delegates.c: Rebuild.
13256 * target.c (target_supports_btrace): Remove.
13257 * target.h (struct target_ops) <to_supports_btrace>: Add
13258 target_ops argument.
13259 (target_supports_btrace): New define.
13260
13261 2014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * record-full.c (record_full_beneath_to_resume_ops)
13264 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13265 (record_full_beneath_to_wait)
13266 (record_full_beneath_to_store_registers_ops)
13267 (record_full_beneath_to_store_registers)
13268 (record_full_beneath_to_xfer_partial_ops)
13269 (record_full_beneath_to_xfer_partial)
13270 (record_full_beneath_to_insert_breakpoint_ops)
13271 (record_full_beneath_to_insert_breakpoint)
13272 (record_full_beneath_to_remove_breakpoint_ops)
13273 (record_full_beneath_to_remove_breakpoint)
13274 (record_full_beneath_to_stopped_by_watchpoint)
13275 (record_full_beneath_to_stopped_data_address)
13276 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13277 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13278 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13279 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13280 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13281 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13282 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13283 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13284 (record_full_resume, record_full_wait_1)
13285 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13286 (record_full_store_registers, record_full_xfer_partial)
13287 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13288 (record_full_async, record_full_core_xfer_partial): Use target
13289 delegation.
13290 * target-delegates.c: Rebuild.
13291 * target.c (current_xfer_partial): Remove.
13292 (update_current_target): Do not INHERIT or de_fault
13293 to_insert_breakpoint, to_remove_breakpoint,
13294 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13295 to_is_async_p, to_async. Do not set to_xfer_partial field.
13296 (default_xfer_partial): Simplify.
13297 (current_xfer_partial): Remove.
13298 (target_wait, target_resume): Simplify.
13299 (find_default_can_async_p, find_default_is_async_p): Update.
13300 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13301 to_xfer_partial, to_stopped_by_watchpoint,
13302 to_stopped_data_address.
13303 (target_store_registers): Simplify.
13304 (forward_target_remove_breakpoint)
13305 (forward_target_insert_breakpoint): Remove.
13306 (target_remove_breakpoint, target_insert_breakpoint)
13307 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13308 * target.h (struct target_ops) <to_resume, to_wait,
13309 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13310 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13311 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13312 markup.
13313 (forward_target_remove_breakpoint)
13314 (forward_target_insert_breakpoint): Remove.
13315 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13316 directly.
13317 (record_btrace_insert_breakpoint): Delegate directly.
13318
13319 2014-02-19 Tom Tromey <tromey@redhat.com>
13320
13321 PR build/7701:
13322 * target-delegates.c: New file.
13323 * target.c: Include target-delegates.c.
13324 (init_dummy_target): Call install_dummy_methods.
13325 (complete_target_initialization): Call install_delegators.
13326 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13327 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13328 * make-target-delegates: New file.
13329
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13331
13332 * record.c (find_record_target): Use find_target_at.
13333 * target.c (find_target_at): New function.
13334 * target.h (find_target_at): Declare.
13335
13336 2014-02-19 Tom Tromey <tromey@redhat.com>
13337
13338 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13339 Add 'ops' argument.
13340 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13341 'ops' argument.
13342 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13343 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13344 'ops' argument.
13345 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13346 argument.
13347 * linux-nat.c (save_sigtrap): Update.
13348 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13349 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13350 (linux_nat_close): Update.
13351 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13352 argument.
13353 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13354 argument.
13355 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13356 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13357 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13358 (tmp_to_async): Add 'ops' argument.
13359 (record_full_stopped_by_watchpoint, record_full_async)
13360 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13361 argument.
13362 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13363 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13364 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13365 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13366 (remote_is_async_p, remote_async): Add 'ops' argument.
13367 (remote_stopped_data_address): Update.
13368 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13369 * target.c (update_current_target)
13370 (find_default_can_async_p, find_default_is_async_p): Update.
13371 (init_dummy_target): Update.
13372 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13373 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13374 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13375 (target_can_async_p, target_is_async_p, target_async)
13376 (target_stopped_by_watchpoint): Update.
13377
13378 2014-02-19 Yao Qi <yao@codesourcery.com>
13379
13380 PR gdb/16220
13381 * gdbarch.sh: Remove startup_gdbarch.
13382 * gdbarch.c: Regenerated.
13383 * gdbarch.h: Likewise.
13384
13385 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13386
13387 * rl78-tdep.c (rl78_g10_register_name): New function.
13388 (rl78_return_value): Add g10 support.
13389 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13390 g10.
13391
13392 2014-02-17 Doug Evans <xdje42@gmail.com>
13393
13394 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13395 (SUBDIR_GUILE_SRCS): Ditto.
13396 (scm-gsmob.o): Ditto.
13397
13398 2014-02-17 Yao Qi <yao@codesourcery.com>
13399
13400 * gnu-nat.c (ILL_RPC): Declare defined function.
13401
13402 2014-02-17 Yao Qi <yao@codesourcery.com>
13403
13404 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13405 mach_msg_type_number_t.
13406 (gnu_write_inferior): Likewise.
13407
13408 2014-02-17 Yao Qi <yao@codesourcery.com>
13409
13410 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13411 in format string.
13412 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13413 (inf_validate_procs, inf_signal): Likewise.
13414 (S_exception_raise_request): Likewise.
13415 (do_mach_notify_dead_name): Likewise.
13416 (steal_exc_port): Likewise.
13417 (gnu_read_inferior): Change 'copy_count''s type to
13418 mach_msg_type_number_t.
13419 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13420 format string.
13421
13422 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13423
13424 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13425 flag. Adjust all users; in particular...
13426 (gnu_wait): ..., don't decrement its value in here...
13427 (gnu_create_inferior): ..., and instead set the flag in here,
13428 around the startup_inferior call, and call that one with
13429 START_INFERIOR_TRAPS_EXPECTED.
13430
13431 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13432 (ILL_RPC): ... new macro.
13433 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13434 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13435 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13436 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13437 functions with ILL_RPC macro.
13438 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13439 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13440 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13441 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13442 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13443 (S_proc_getlogin_reply, S_proc_getsid_reply)
13444 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13445 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13446 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13447 (S_proc_getnports_reply, S_proc_is_important_reply)
13448 (S_proc_get_code_reply): New stub functions, generated with
13449 ILL_RPC macro.
13450
13451 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13452 collected the type check structures.
13453
13454 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13455
13456 2014-02-14 Doug Evans <dje@google.com>
13457
13458 * target.c (target_write_partial): Fix result type.
13459
13460 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13461
13462 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13463 the proper offsets to access fpregset_t.
13464
13465 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13466
13467 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13468 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13469 * h8300-tdep.c (setmachinelist): Remove global.
13470 * hppa-tdep.c (hppa_sigtramp): Remove global.
13471 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13472 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13473 * ravenscar-thread.c (update_target_observer): Remove global.
13474 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13475
13476 2014-02-12 Tom Tromey <tromey@redhat.com>
13477
13478 * common/rsp-low.c: Update comments.
13479 * common/rsp-low.h: Update comments.
13480
13481 2014-02-12 Tom Tromey <tromey@redhat.com>
13482
13483 * common/rsp-low.c (convert_ascii_to_int): Remove.
13484 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13485
13486 2014-02-12 Tom Tromey <tromey@redhat.com>
13487
13488 * common/rsp-low.h (unhexify): Don't declare.
13489 * common/rsp-low.c (unhexify): Remove.
13490
13491 2014-02-12 Tom Tromey <tromey@redhat.com>
13492
13493 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13494 * common/rsp-low.c (convert_int_to_ascii): Remove.
13495
13496 2014-02-12 Tom Tromey <tromey@redhat.com>
13497
13498 * common/rsp-low.h (hexify): Don't declare.
13499 * common/rsp-low.c (hexify): Remove.
13500
13501 2014-02-12 Tom Tromey <tromey@redhat.com>
13502
13503 * common/rsp-low.c (hexify): Never take strlen of argument.
13504
13505 2014-02-12 Tom Tromey <tromey@redhat.com>
13506
13507 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13508 * remote.c (extended_remote_run, remote_rcmd)
13509 (remote_download_trace_state_variable, remote_save_trace_data)
13510 (remote_set_trace_notes): Update.
13511 * tracepoint.c (encode_source_string, tfile_write_status)
13512 (tfile_write_uploaded_tsv): Update.
13513
13514 2014-02-12 Tom Tromey <tromey@redhat.com>
13515
13516 * tracepoint.c: Include rsp-low.h.
13517 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13518 * remote.c: Include rsp-low.h.
13519 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13520 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13521 (remote_unescape_input): Move to common/rsp-low.c.
13522 * common/rsp-low.h: New file.
13523 * common/rsp-low.c: New file.
13524 * Makefile.in (SFILES): Add common/rsp-low.c.
13525 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13526 (COMMON_OBS): Add rsp-low.o.
13527 (rsp-low.o): New target.
13528
13529 2014-02-12 Tom Tromey <tromey@redhat.com>
13530
13531 * utils.h: Include print-utils.h.
13532 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13533 (int_string, core_addr_to_string, core_addr_to_string_nz)
13534 (hex_string, hex_string_custom): Don't declare.
13535 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13536 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13537 (hex_string_custom, int_string, core_addr_to_string)
13538 (core_addr_to_string_nz, host_address_to_string): Move to
13539 common/print-utils.c.
13540 * common/print-utils.h: New file.
13541 * common/print-utils.c: New file
13542 * Makefile.in (SFILES): Add common/print-utils.c.
13543 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13544 (COMMON_OBS): Add print-utils.o.
13545 (print-utils.o): New target.
13546
13547 2014-02-12 Tom Tromey <tromey@redhat.com>
13548
13549 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13550
13551 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13552
13553 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13554
13555 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13556
13557 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13558 if a PT_IO ptrace request returns sucessfully but indicates that 0
13559 bytes were transferred.
13560
13561 2014-02-12 Pedro Alves <palves@redhat.com>
13562 Kevin Buettner <kevinb@redhat.com>
13563
13564 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13565 TYPE_INSTANCE_FLAG_CODE_SPACE.
13566
13567 2014-02-12 Pedro Alves <palves@redhat.com>
13568
13569 * h8300-tdep.c (pseudo_from_raw_register)
13570 (raw_from_pseudo_register): New functions.
13571 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13572 them.
13573
13574 2014-02-12 Pedro Alves <palves@redhat.com>
13575
13576 * h8300-tdep.c (h8300_register_sim_regno): New function.
13577 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13578 gdbarch_register_sim_regno hook.
13579
13580 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13581
13582 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13583
13584 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13585
13586 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13587
13588 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13589
13590 * obsd-tdep.h (obsd_init_abi): New prototype.
13591 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13592 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13593 (obsd_init_abi): New functions.
13594 * i386obsd-tdep.c: Include "obsd-tdep.h".
13595 (i386obsd_init_abi): Call obsd_init_abi.
13596 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13597 (amd64obsd_init_abi): Call obsd_init_abi.
13598 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13599 obsd-tdep.c to gdb_target_obs.
13600
13601 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13602
13603 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13604 double float arguments to 16-byte in the argument slots.
13605
13606 2014-02-11 Doug Evans <xdje42@gmail.com>
13607
13608 * configure.ac: Don't crash if pkg-config is not found and guile
13609 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13610 in guile checks.
13611 * configure: Regenerate.
13612
13613 2014-02-11 Yao Qi <yao@codesourcery.com>
13614
13615 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13616 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13617 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13618 * gnu-nat.c (gnu_xfer_memory): Likewise.
13619 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13620 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13621 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13622 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13623
13624 2014-02-11 Yao Qi <yao@codesourcery.com>
13625
13626 * target.h (enum target_xfer_error): Rename to ...
13627 (enum target_xfer_status): ... it. New. All users updated.
13628 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13629 New.
13630 (TARGET_XFER_STATUS_ERROR_P): New macro.
13631 (target_xfer_error_to_string): Remove declaration.
13632 (target_xfer_status_to_string): Declare.
13633 (target_xfer_partial_ftype): Adjust it.
13634 (struct target_ops) <to_xfer_partial>: Return
13635 target_xfer_status. Add argument xfered_len. Update
13636 comments.
13637 * target.c (target_xfer_error_to_string): Rename to ...
13638 (target_xfer_status_to_string): ... it. New. All callers
13639 updated.
13640 (target_read_live_memory): Likewise. Call target_xfer_partial
13641 instead of target_read.
13642 (memory_xfer_live_readonly_partial): Return
13643 target_xfer_status. Add argument xfered_len.
13644 (raw_memory_xfer_partial): Likewise.
13645 (memory_xfer_partial_1): Likewise.
13646 (memory_xfer_partial): Likewise.
13647 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13648 properly. Update debug message.
13649 (default_xfer_partial, current_xfer_partial): Likewise.
13650 (target_write_partial): Likewise.
13651 (target_read_partial): Likewise. All callers updated.
13652 (read_whatever_is_readable): Likewise.
13653 (target_write_with_progress): Likewise.
13654 (target_read_alloc_1): Likewise.
13655
13656 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13657 * auxv.c (procfs_xfer_auxv): Likewise.
13658 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13659 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13660 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13661 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13662 * corefile.c (read_memory): Adjust.
13663 * corelow.c (core_xfer_partial): Likewise.
13664 * ctf.c (ctf_xfer_partial): Likewise.
13665 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13666 updated.
13667 (darwin_xfer_partial): Likewise.
13668 * exec.c (section_table_xfer_memory_partial): Likewise. All
13669 callers updated.
13670 (exec_xfer_partial): Likewise.
13671 * exec.h (section_table_xfer_memory_partial): Update
13672 declaration.
13673 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13674 negative.
13675 (gnu_xfer_partial): Likewise.
13676 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13677 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13678 (ia64_hpux_xfer_solib_got): Likewise.
13679 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13680 type of 'partial_len' to ULONGEST.
13681 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13682 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13683 (linux_nat_xfer_partial): Likewise.
13684 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13685 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13686 * monitor.c (monitor_xfer_memory): Likewise.
13687 (monitor_xfer_partial): Likewise.
13688 * procfs.c (procfs_xfer_partial): Likewise.
13689 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13690 * record-full.c (record_full_xfer_partial): Likewise.
13691 (record_full_core_xfer_partial): Likewise.
13692 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13693 (gdbsim_xfer_partial): Likewise.
13694 * remote.c (remote_write_bytes_aux): Likewise. All callers
13695 updated.
13696 (remote_write_bytes, remote_read_bytes): Likewise. All
13697 callers updated.
13698 (remote_flash_erase): Likewise. All callers updated.
13699 (remote_write_qxfer): Likewise. All callers updated.
13700 (remote_read_qxfer): Likewise. All callers updated.
13701 (remote_xfer_partial): Likewise.
13702 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13703 (rs6000_xfer_shared_libraries): Likewise.
13704 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13705 (sol_thread_xfer_partial): Likewise.
13706 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13707 (sparc_xfer_partial): Likewise.
13708 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13709 updated.
13710 (spu_xfer_partial): Likewise.
13711 * spu-multiarch.c (spu_xfer_partial): Likewise.
13712 * tracepoint.c (tfile_xfer_partial): Likewise.
13713 * windows-nat.c (windows_xfer_memory): Likewise.
13714 (windows_xfer_shared_libraries): Likewise.
13715 (windows_xfer_partial): Likewise.
13716 * valprint.c: Replace 'target_xfer_error' with
13717 'target_xfer_status' in comments.
13718
13719 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13720
13721 Checked in by Joel Brobecker <brobecker@adacore.com>.
13722 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13723
13724 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13725
13726 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13727 function parameters.
13728
13729 2014-02-10 Will Newton <will.newton@linaro.org>
13730
13731 * elfread.c (elf_rel_plt_read): Look for a .got section if
13732 looking up .got.plt fails.
13733 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13734 on address passed to elf_gnu_ifunc_record_cache.
13735 (elf_gnu_ifunc_resolve_addr): Likewise.
13736 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13737
13738 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13739
13740 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13741 (X_RETTURN): New macro.
13742 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13743
13744 * sparc64-tdep.c (sparc64_init_abi): Hook
13745 sparc_in_function_epilogue_p.
13746
13747 2014-02-10 Gary Benson <gbenson@redhat.com>
13748
13749 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13750 Rename name_matcher to symbol_matcher.
13751
13752 2014-02-10 Gary Benson <gbenson@redhat.com>
13753
13754 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13755 Use expand_symtabs_file_matcher_ftype and
13756 expand_symtabs_symbol_matcher_ftype.
13757
13758 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13759
13760 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13761 (struct ada_symbol_cache): New.
13762 (ada_free_symbol_cache): Forward declare.
13763 (struct ada_pspace_data): New.
13764 (ada_pspace_data_handle): New static global.
13765 (get_ada_pspace_data, ada_pspace_data_cleanup)
13766 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13767 (cache_space, cache): Delete, now folded inside struct
13768 ada_pspace_data.
13769 (ada_get_symbol_cache): New function.
13770 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13771 implementation.
13772 (_initialize_ada_language): Remove initialization of cache_space.
13773 Move call to observer_attach_inferior_exit up, grouping it
13774 with the other observer registrations inside this function.
13775 Rename command to be more general. Add call to
13776 register_program_space_data_with_cleanup.
13777
13778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13779
13780 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13781 ada_new_objfile_observer.
13782 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13783 (_initialize_tasks): Update uses of ada_new_objfile_observer
13784 and ada_tasks_normal_stop_observer.
13785
13786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13787
13788 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13789 returned by the 'Length attribute to integer.
13790
13791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13792
13793 * ada-lang.c (_initialize_ada_language): Initialize
13794 cache_space obstack.
13795
13796 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13797
13798 * ada-lang.c (HASH_SIZE): New macro.
13799 (struct cache_entry): New type.
13800 (cache_space, cache): New static globals.
13801 (ada_clear_symbol_cache, find_entry): New functions.
13802 (lookup_cached_symbol, cache_symbol): Implement.
13803 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13804 (_initialize_ada_language): Attach ada_new_objfile_observer
13805 and ada_free_objfile_observer.
13806
13807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13808
13809 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13810 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13811 struct block * parameter.
13812 (ada_lookup_symbol_list_worker): Constify local variable "block".
13813 Remove cast which is no longer necessary.
13814
13815 2014-02-10 Doug Evans <xdje42@gmail.com>
13816
13817 Add Guile as an extension language.
13818 * NEWS: Mention Guile scripting.
13819 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13820 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13821 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13822 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13823 (CLIBS): Add GUILE_LIBS.
13824 (install-guile): New rule.
13825 (guile.o): New rule.
13826 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13827 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13828 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13829 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13830 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13831 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13832 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13833 * configure.ac: New option --with-guile.
13834 * configure: Regenerate.
13835 * config.in: Regenerate.
13836 * auto-load.c: Remove #include "python/python.h". Add #include
13837 "gdb/section-scripts.h".
13838 (source_section_scripts): Handle Guile scripts.
13839 (_initialize_auto_load): Add name of Guile objfile script to
13840 scripts-directory help text.
13841 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13842 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13843 (struct breakpoint): New member scm_bp_object.
13844 * defs.h (enum command_control_type): New value guile_control.
13845 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13846 "extension.h".
13847 (show_user): Update comment.
13848 (_initialize_cli_cmds): Update help text for "show user". Update help
13849 text for max-user-call-depth.
13850 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13851 "extension.h".
13852 (multi_line_command_p): Add guile_control.
13853 (print_command_lines): Handle guile_control.
13854 (execute_control_command, recurse_read_control_structure): Ditto.
13855 (process_next_line): Recognize "guile" commands.
13856 * disasm.c (gdb_disassemble_info): Make non-static.
13857 * disasm.h: #include "dis-asm.h".
13858 (struct gdbarch): Add forward decl.
13859 (gdb_disassemble_info): Declare.
13860 * extension.c: #include "guile/guile.h".
13861 (extension_languages): Add guile.
13862 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13863 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13864 * gdbtypes.c (get_unsigned_type_max): New function.
13865 (get_signed_type_minmax): New function.
13866 * gdbtypes.h (get_unsigned_type_max): Declare.
13867 (get_signed_type_minmax): Declare.
13868 * guile/README: New file.
13869 * guile/guile-internal.h: New file.
13870 * guile/guile.c: New file.
13871 * guile/guile.h: New file.
13872 * guile/scm-arch.c: New file.
13873 * guile/scm-auto-load.c: New file.
13874 * guile/scm-block.c: New file.
13875 * guile/scm-breakpoint.c: New file.
13876 * guile/scm-disasm.c: New file.
13877 * guile/scm-exception.c: New file.
13878 * guile/scm-frame.c: New file.
13879 * guile/scm-gsmob.c: New file.
13880 * guile/scm-iterator.c: New file.
13881 * guile/scm-lazy-string.c: New file.
13882 * guile/scm-math.c: New file.
13883 * guile/scm-objfile.c: New file.
13884 * guile/scm-ports.c: New file.
13885 * guile/scm-pretty-print.c: New file.
13886 * guile/scm-safe-call.c: New file.
13887 * guile/scm-string.c: New file.
13888 * guile/scm-symbol.c: New file.
13889 * guile/scm-symtab.c: New file.
13890 * guile/scm-type.c: New file.
13891 * guile/scm-utils.c: New file.
13892 * guile/scm-value.c: New file.
13893 * guile/lib/gdb.scm: New file.
13894 * guile/lib/gdb/boot.scm: New file.
13895 * guile/lib/gdb/experimental.scm: New file.
13896 * guile/lib/gdb/init.scm: New file.
13897 * guile/lib/gdb/iterator.scm: New file.
13898 * guile/lib/gdb/printing.scm: New file.
13899 * guile/lib/gdb/types.scm: New file.
13900 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13901 (VPATH): Add $(GUILE_SRCDIR).
13902 (GUILE_DIR): New variable.
13903 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13904 (all): Add stamp-guile dependency.
13905 (stamp-guile): New rule.
13906 (clean-guile, install-guile, uninstall-guile): New rules.
13907 (install-only): Add install-guile dependency.
13908 (uninstall): Add uninstall-guile dependency.
13909 (clean): Add clean-guile dependency.
13910
13911 2014-02-09 Doug Evans <xdje42@gmail.com>
13912
13913 Revert this patch (which I approved, mea culpa).
13914
13915 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13916
13917 * Makefile.in (all-lib): Remove.
13918 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13919
13920 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13921
13922 Fix Python stack corruption.
13923 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13924 gdb_py_longest.
13925
13926 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13927
13928 * Makefile.in (all-lib): Remove.
13929 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13930
13931 2014-02-07 Doug Evans <dje@google.com>
13932
13933 * extension-priv.h (extension_language_script_ops): Add comment.
13934 (extension_language_ops): Add comment.
13935 (active_ext_lang_state): Fix typo in comment.
13936
13937 2014-02-07 Pedro Alves <palves@redhat.com>
13938
13939 PR breakpoints/16292
13940 * infrun.c (handle_signal_stop) <signal arrives while stepping
13941 over a breakpoint>: Switch back to the stepping thread.
13942
13943 2014-02-07 Yao Qi <yao@codesourcery.com>
13944
13945 * target.c (target_xfer_partial): Return zero if LEN is zero.
13946
13947 2014-02-07 Yao Qi <yao@codesourcery.com>
13948
13949 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13950 (ld_so_xfer_auxv): Likewise.
13951 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13952 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13953 * corelow.c (core_xfer_partial): Likewise.
13954 * ctf.c (ctf_xfer_partial): Likewise.
13955 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13956 (darwin_xfer_partial): Likewise.
13957 * exec.c (exec_xfer_partial): Likewise.
13958 * gnu-nat.c (gnu_xfer_partial): Likewise.
13959 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13960 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13961 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13962 * linux-nat.c (linux_xfer_siginfo): Likewise.
13963 (linux_proc_xfer_spu): Likewise.
13964 * procfs.c (procfs_xfer_partial): Likewise.
13965 * record-full.c (record_full_xfer_partial): Likewise.
13966 (record_full_core_xfer_partial): Likewise.
13967 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13968 * remote.c (remote_write_qxfer): Likewise.
13969 (remote_write_qxfer, remote_read_qxfer): Likewise.
13970 (remote_xfer_partial): Likewise.
13971 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13972 (rs6000_xfer_shared_libraries): Likewise.
13973 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13974 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13975 (spu_xfer_partial): Likewise.
13976 * target.c (memory_xfer_partial_1): Likewise.
13977 * tracepoint.c (tfile_xfer_partial): Likewise.
13978 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13979 (windows_xfer_partial): Likewise.
13980
13981 2014-02-07 Yao Qi <yao@codesourcery.com>
13982
13983 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13984 comments.
13985 (core_xfer_shared_libraries_aix): Likewise.
13986 * gdbarch.c, gdbarch.h: Regenerated.
13987 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13988 ULONGEST. Change 'len_avail' type to ULONGEST.
13989 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13990 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13991 declaration.
13992 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13993
13994 2014-02-07 Yao Qi <yao@codesourcery.com>
13995
13996 * corefile.c (memory_error): Get 'exception' from ERR and pass
13997 'exception' to throw_error.
13998
13999 2014-02-06 Doug Evans <xdje42@gmail.com>
14000
14001 * configure.ac (libpython checking): Remove all but python.o from
14002 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14003 * configure: Regenerate.
14004
14005 * Makefile.in (SFILES): Add extension.c.
14006 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14007 (COMMON_OBS): Add extension.o.
14008 * extension.h: New file.
14009 * extension-priv.h: New file.
14010 * extension.c: New file.
14011
14012 * python/python-internal.h: #include "extension.h".
14013 (gdbpy_auto_load_enabled): Declare.
14014 (gdbpy_apply_val_pretty_printer): Declare.
14015 (gdbpy_apply_frame_filter): Declare.
14016 (gdbpy_preserve_values): Declare.
14017 (gdbpy_breakpoint_cond_says_stop): Declare.
14018 (gdbpy_breakpoint_has_cond): Declare.
14019 (void source_python_script_for_objfile): Delete.
14020 * python/python.c: #include "extension-priv.h".
14021 Delete inclusion of "observer.h".
14022 (extension_language_python): Moved here and renamed from
14023 script_language_python in py-auto-load.c.
14024 Redefined to be of type extension_language_defn.
14025 (python_extension_script_ops): New global.
14026 (python_extension_ops): New global.
14027 (struct python_env): New member previous_active.
14028 (restore_python_env): Call restore_active_ext_lang.
14029 (ensure_python_env): Call set_active_ext_lang.
14030 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14031 New arg extlang.
14032 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14033 New arg extlang.
14034 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14035 New arg extlang.
14036 (gdbpy_eval_from_control_command): Renamed from
14037 eval_python_from_control_command, made static. New arg extlang.
14038 (gdbpy_source_script) Renamed from source_python_script, made static.
14039 New arg extlang.
14040 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14041 result to int. New arg extlang.
14042 (gdbpy_source_objfile_script): Renamed from
14043 source_python_script_for_objfile, made static. New arg extlang.
14044 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14045 static. New args extlang, extlang_printers. Change result type to
14046 "void".
14047 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14048 static. New arg extlang. Rename arg printers to extlang_printers
14049 and change type to ext_lang_type_printers *.
14050 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14051 static. Replace argument arg with extlang, extlang_printers.
14052 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14053 (!HAVE_PYTHON, source_python_script): Delete.
14054 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14055 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14056 (!HAVE_PYTHON, start_type_printers): Delete.
14057 (!HAVE_PYTHON, apply_type_printers): Delete.
14058 (!HAVE_PYTHON, free_type_printers): Delete.
14059 (_initialize_python): Delete call to observer_attach_before_prompt.
14060 (finalize_python): Set/restore active extension language.
14061 (gdbpy_finish_initialization) Renamed from
14062 finish_python_initialization, made static. New arg extlang.
14063 (gdbpy_initialized): New function.
14064 * python/python.h: #include "extension.h". Delete #include
14065 "value.h", "mi/mi-cmds.h".
14066 (extension_language_python): Declare.
14067 (GDBPY_AUTO_FILE_NAME): Delete.
14068 (enum py_bt_status): Moved to extension.h and renamed to
14069 ext_lang_bt_status.
14070 (enum frame_filter_flags): Moved to extension.h.
14071 (enum py_frame_args): Moved to extension.h and renamed to
14072 ext_lang_frame_args.
14073 (finish_python_initialization): Delete.
14074 (eval_python_from_control_command): Delete.
14075 (source_python_script): Delete.
14076 (apply_val_pretty_printer): Delete.
14077 (apply_frame_filter): Delete.
14078 (preserve_python_values): Delete.
14079 (gdbpy_script_language_defn): Delete.
14080 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14081 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14082
14083 * auto-load.c: #include "extension.h".
14084 (GDB_AUTO_FILE_NAME): Delete.
14085 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14086 (script_language_gdb): Delete, moved to extension.c and renamed to
14087 extension_language_gdb.
14088 (source_gdb_script_for_objfile): Delete.
14089 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14090 (loaded_script): Change type of language member to
14091 struct extension_language_defn *.
14092 (init_loaded_scripts_info): Initialize
14093 unsupported_script_warning_printed.
14094 (maybe_add_script): Make static. Change type of language arg to
14095 struct extension_language_defn *.
14096 (clear_section_scripts): Reset unsupported_script_warning_printed.
14097 (auto_load_objfile_script_1): Rewrite to use extension language API.
14098 (auto_load_objfile_script): Make public. Remove support-compiled-in
14099 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14100 (source_section_scripts): Rewrite to use extension language API.
14101 (load_auto_scripts_for_objfile): Rewrite to use
14102 auto_load_scripts_for_objfile.
14103 (collect_matching_scripts_data): Change type of language member to
14104 struct extension_language_defn *.
14105 (auto_load_info_scripts): Change type of language arg to
14106 struct extension_language_defn *.
14107 (unsupported_script_warning_print): New function.
14108 (script_not_found_warning_print): Make static.
14109 (_initialize_auto_load): Rewrite construction of scripts-directory
14110 help.
14111 * auto-load.h (struct objfile): Add forward decl.
14112 (struct script_language): Delete.
14113 (struct auto_load_pspace_info): Add forward decl.
14114 (struct extension_language_defn): Add forward decl.
14115 (maybe_add_script): Delete.
14116 (auto_load_objfile_script): Declare.
14117 (script_not_found_warning_print): Delete.
14118 (auto_load_info_scripts): Update prototype.
14119 (auto_load_gdb_scripts_enabled): Declare.
14120 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14121 auto_load_python_scripts_enabled and made public.
14122 (script_language_python): Delete, moved to python.c.
14123 (gdbpy_script_language_defn): Delete.
14124 (info_auto_load_python_scripts): Update to use
14125 extension_language_python.
14126
14127 * breakpoint.c (condition_command): Replace call to
14128 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14129 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14130 with call to breakpoint_ext_lang_cond_says_stop.
14131 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14132 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14133 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14134 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14135 New arg slang.
14136 (local_setattro): Print name of extension language with existing
14137 stop condition.
14138
14139 * valprint.c (val_print, value_print): Update to call
14140 apply_ext_lang_val_pretty_printer.
14141 * cp-valprint.c (cp_print_value): Update call to
14142 apply_ext_lang_val_pretty_printer.
14143 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14144 (gdbpy_apply_val_pretty_printer): Renamed from
14145 apply_val_pretty_printer. New arg extlang.
14146 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14147
14148 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14149 extension language API.
14150 * cli/cli-script.c (execute_control_command): Update to call
14151 eval_ext_lang_from_control_command.
14152
14153 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14154 enum ext_lang_bt_status values. Update call to
14155 apply_ext_lang_frame_filter.
14156 (mi_cmd_stack_list_locals): Ditto.
14157 (mi_cmd_stack_list_args): Ditto.
14158 (mi_cmd_stack_list_variables): Ditto.
14159 * mi/mi-main.c: Delete #include "python/python-internal.h".
14160 Add #include "extension.h".
14161 (mi_cmd_list_features): Replace reference to python internal variable
14162 gdb_python_initialized with call to ext_lang_initialized_p.
14163
14164 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14165 Update to use enum ext_lang_frame_args. Update to call
14166 apply_ext_lang_frame_filter.
14167 * python/py-framefilter.c (extract_sym): Update to use enum
14168 ext_lang_bt_status.
14169 (extract_value, py_print_type, py_print_value): Ditto.
14170 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14171 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14172 (py_print_frame): Ditto.
14173 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14174 New arg extlang. Update to use enum ext_lang_bt_status.
14175
14176 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14177 finish_python_initialization. Replace with call to
14178 finish_ext_lang_initialization.
14179
14180 * typeprint.c (do_free_global_table): Update to call
14181 free_ext_lang_type_printers.
14182 (create_global_typedef_table): Update to call
14183 start_ext_lang_type_printers.
14184 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14185 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14186 (type_print_options): Change type of global_printers from "void *"
14187 to "struct ext_lang_type_printers *".
14188
14189 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14190 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14191 (gdbpy_preserve_values): Renamed from preserve_python_values.
14192 New arg extlang.
14193 (!HAVE_PYTHON, preserve_python_values): Delete.
14194
14195 * utils.c (quit_flag): Delete, moved to extension.c.
14196 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14197 extension.c.
14198
14199 * eval.c: Delete #include "python/python.h".
14200 * main.c: Delete #include "python/python.h".
14201
14202 * defs.h: Update comment.
14203
14204 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14205
14206 GDB 7.7 released.
14207
14208 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14209
14210 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14211 defined.
14212
14213 2014-02-05 Yao Qi <yao@codesourcery.com>
14214
14215 * remote.c (remote_pass_signals): Remove local 'buf' and use
14216 rs->buf.
14217 (remote_program_signals): Likewise.
14218
14219 2014-02-05 Yao Qi <yao@codesourcery.com>
14220
14221 * ctf.c: Include "inferior.h" and "gdbthread.h".
14222 (CTF_PID): A new macro.
14223 (ctf_open): Call inferior_appeared and add_thread_silent.
14224 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14225 (ctf_thread_alive): New function.
14226 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14227
14228 2014-02-05 Yao Qi <yao@codesourcery.com>
14229
14230 Revert this patch:
14231
14232 2013-05-24 Yao Qi <yao@codesourcery.com>
14233
14234 * tracepoint.c (TFILE_PID): Remove.
14235 (tfile_open): Don't add thread and inferior.
14236 (tfile_close): Don't set 'inferior_ptid'. Don't call
14237 exit_inferior_silent.
14238 (tfile_thread_alive): Remove.
14239 (init_tfile_ops): Don't set field 'to_thread_alive' of
14240 tfile_ops.
14241
14242 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14243
14244 * remote.c (remote_start_remote): Call remote_check_symbols even
14245 if only symbol-file (not file) has been given.
14246
14247 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14248
14249 * gdbarch.sh (skip_entrypoint): New callback.
14250 * gdbarch.c, gdbarch.h: Regenerate.
14251 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14252 * infrun.c (fill_in_stop_func): Likewise.
14253 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14254 (ppc_elfv2_elf_make_msymbol_special): New function.
14255 (ppc_elfv2_skip_entrypoint): Likewise.
14256 (ppc_linux_init_abi): Install them for ELFv2.
14257
14258 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14259
14260 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14261 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14262 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14263 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14264 structures returned in GPRs.
14265
14266 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14267
14268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14269 offset to the stack parameter list for the ELFv2 ABI.
14270
14271 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14272
14273 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14274 set_gdbarch_convert_from_func_ptr_addr and
14275 set_gdbarch_elf_make_msymbol_special for ELFv1.
14276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14277 function descriptors on ELFv1.
14278 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14279 set up r12 at function entry.
14280
14281 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14282
14283 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14284 (struct gdbarch_tdep): New member elf_abi.
14285
14286 * rs6000-tdep.c: Include "elf/ppc64.h".
14287 (rs6000_gdbarch_init): Detect ELF ABI version.
14288
14289 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14290
14291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14292 within a register pair holding a DFP 128-bit value on little-endian.
14293 (ppc64_sysv_abi_return_value_base): Likewise.
14294 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14295 (dfp_pseudo_register_write): Likewise.
14296
14297 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14298
14299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14300 offset on little-endian when passing _Decimal32.
14301 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14302
14303 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14304
14305 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14306 of the overlapped FP register within the VSX register on little-
14307 endian platforms.
14308 (efpr_pseudo_register_write): Likewise.
14309
14310 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14311
14312 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14313 offset on little-endian when passing small structures.
14314
14315 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14316
14317 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14318 (struct ppc64_sysv_argpos): New data structure.
14319 (ppc64_sysv_abi_push_float): Remove.
14320 (ppc64_sysv_abi_push_val): New function.
14321 (ppc64_sysv_abi_push_integer): Likewise.
14322 (ppc64_sysv_abi_push_freg): Likewise.
14323 (ppc64_sysv_abi_push_vreg): Likewise.
14324 (ppc64_sysv_abi_push_param): Likewise.
14325 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14326 (ppc64_sysv_abi_return_value_base): New function.
14327 (ppc64_sysv_abi_return_value): Refactor to use it.
14328
14329 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14330
14331 * NEWS: Document new target powerpc64le-*-linux*.
14332
14333 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14334
14335 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14336 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14337 core dumps.
14338 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14339 register set used in ELF core dumps. Add floating-point register set.
14340
14341 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14342
14343 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14344 dwarf2_to_gdb[] table using symbolic constants. Adjust
14345 penultimate entry from number representing the PC register
14346 to symbolic constant representing the MDR register. Add
14347 constant for the PC register to the end of the table.
14348
14349 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14350
14351 * bsd-kvm.c: Include <sys/param.h>
14352
14353 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14354
14355 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14356
14357 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14358
14359 * ada-lang.h (clear_ada_sym_cache): Delete.
14360
14361 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14362
14363 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14364
14365 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14366
14367 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14368 the sigreturn register save area only if the syscall is
14369 sigreturn.
14370
14371 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14372
14373 * valops.c (value_slice): Minor reformatting.
14374
14375 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14376
14377 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14378
14379 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14380
14381 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14382 New static globals.
14383 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14384 (ada_ignore_descriptive_types_p): New static global.
14385 (find_parallel_type_by_descriptive_type): Return immediately
14386 if ada_ignore_descriptive_types_p is set.
14387 (_initialize_ada_language): Register new commands "maintenance
14388 set ada", "maintenance show ada", "maintenance set ada
14389 ignore-descriptive-types" and "maintenance show ada
14390 ignore-descriptive-types".
14391 * NEWS: Add entry for new "maint ada set/show
14392 ignore-descriptive-types" commands.
14393
14394 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14395
14396 * record-btrace.c (record_btrace_close): Call btrace_teardown
14397 for all threads.
14398
14399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14400
14401 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14402 "ui-out.h".
14403
14404 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14405
14406 * ada-typeprint (type_is_full_subrange_of_target_type):
14407 New function.
14408 (print_range): Add parameter bounds_prefered_p. If not set,
14409 try printing range types using the name of their base type.
14410 (print_range_type): Add parameter bounds_prefered_p.
14411 Use it in call to print_range.
14412 (print_array_type, ada_print_type): Update calls to print_range
14413 and print_range_type.
14414
14415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14416
14417 * ada-typeprint.c (print_array_type, print_choices, print_range)
14418 (print_range_bound, print_dynamic_range_bound, print_range_type):
14419 Remove declaration.
14420
14421 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14422
14423 * ada-typeprint.c (print_range): Add missing empty line
14424 after local declaration.
14425
14426 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14427
14428 * ada-valprint.c (print_optional_low_bound): Get index_type's
14429 target type for as long as it is a TYPE_CODE_RANGE.
14430
14431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14432
14433 * procfs.c (procfs_make_note_section): Remove assertion and
14434 associated comment.
14435
14436 2014-01-24 Yao Qi <yao@codesourcery.com>
14437
14438 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14439 * corelow.c (get_core_siginfo): Likewise.
14440
14441 2014-01-24 Yao Qi <yao@codesourcery.com>
14442
14443 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14444 ULONGEST. Don't check 'len' is negative.
14445 (remote_write_bytes): Change type of 'len' to ULONGEST.
14446
14447 2014-01-23 Tom Tromey <tromey@redhat.com>
14448
14449 PR python/16485:
14450 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14451 Handle exception from frame.block.
14452 (FrameVars.fetch_frame_locals): Likewise.
14453
14454 2014-01-23 Tom Tromey <tromey@redhat.com>
14455
14456 PR python/16487:
14457 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14458 on a NULL pointer. Move "goto error" to correct place.
14459
14460 2014-01-23 Tom Tromey <tromey@redhat.com>
14461
14462 PR python/16491:
14463 * python/py-framefilter.c (apply_frame_filter): Call
14464 ensure_python_env after computing gdbarch.
14465
14466 2014-01-23 Yao Qi <yao@codesourcery.com>
14467
14468 * target.c (raw_memory_xfer_partial): Change argument type
14469 from void * to gdb_byte *.
14470 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14471
14472 2014-01-22 Doug Evans <dje@google.com>
14473
14474 New gdbserver option --debug-format=timestamp.
14475 * NEWS: Mention it.
14476
14477 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14478
14479 * syscalls/s390x-linux.xml: New file.
14480 * syscalls/s390-linux.xml: New file.
14481 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14482 (XML_SYSCALL_FILENAME_S390X): Likewise.
14483 (op_svc): New enum value for SVC opcode.
14484 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14485 (s390_linux_get_syscall_number): New function.
14486 (s390_gdbarch_init): Register '*get_syscall_number' and the
14487 syscall xml file name.
14488 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14489 "s390-linux.xml" and "s390x-linux.xml".
14490 * NEWS: Announce new feature.
14491
14492 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14493
14494 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14495
14496 2014-01-22 Pedro Alves <palves@redhat.com>
14497
14498 * xtensa-config.c: Include defs.h.
14499
14500 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14501
14502 * common/common-utils.h: Add "ARI:" comment beside __func__
14503 reference.
14504
14505 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14506
14507 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14508 documentation a bit.
14509
14510 2014-01-21 Roland McGrath <mcgrathr@google.com>
14511
14512 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14513 * configure: Regenerate.
14514 * aclocal.m4: Regenerate.
14515 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14516 New substituted variables.
14517 (install-strip): New target.
14518 (INSTALL_SCRIPT): New substituted variable.
14519 (FLAGS_TO_PASS): Add it.
14520 (install-only): Use $(INSTALL_SCRIPT) rather than
14521 $(INSTALL_PROGRAM) for gcore.
14522
14523 2014-01-20 Tom Tromey <tromey@redhat.com>
14524
14525 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14526 together.
14527
14528 2014-01-20 Tom Tromey <tromey@redhat.com>
14529
14530 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14531 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14532 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14533 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14534 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14535 (struct cmd_list_element) <flags>: Remove.
14536 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14537 doc_allocated>: New fields.
14538 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14539 bitfields.
14540 * maint.c (maintenance_do_deprecate): Update.
14541 * top.c (execute_command): Update.
14542
14543 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14544
14545 * xtensa-linux-nat.c: Include asm/ptrace.h.
14546
14547 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14548
14549 * Makefile.in (SFILES): Add d-support.c.
14550 (COMMON_OBS): Add d-support.o.
14551 * d-lang.h (d_parse_symbol): Add comment, now defined in
14552 d-support.c.
14553 * d-lang.c (parse_call_convention)
14554 (parse_attributes, parse_function_types)
14555 (parse_function_args, parse_type, parse_identifier)
14556 (call_convention_p, d_parse_symbol): Move functions to ...
14557 * d-support.c: ... New file.
14558
14559 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14560
14561 * d-lang.h (d_parse_symbol): Add declaration.
14562 * d-lang.c (extract_identifiers)
14563 (extract_type_info): Remove functions.
14564 (parse_call_convention, parse_attributes)
14565 (parse_function_types, parse_function_args)
14566 (parse_type, parse_identifier, call_convention_p)
14567 (d_parse_symbol): New functions.
14568 (d_demangle): Use d_parse_symbol to demangle D symbols.
14569
14570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14571
14572 * d-lang.h (struct builtin_d_type): New data type.
14573 (builtin_d_type): Add declaration.
14574 * d-lang.c (d_language_arch_info, build_d_types)
14575 (builtin_d_type): New functions.
14576 (enum d_primitive_types): New data type.
14577 (d_language_defn): Change c_language_arch_info to
14578 d_language_arch_info.
14579 (d_type_data): New static variable.
14580 (_initialize_d_language): Initialize d_type_data.
14581
14582 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14583
14584 * d-lang.h (d_main_name): Add declaration.
14585 * d-lang.c (d_main_name): New function.
14586 * symtab.c (find_main_name): Add call to d_main_name.
14587
14588 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14589
14590 * d-lang.c (d_language_defn): Change macro_expansion_c to
14591 macro_expansion_no.
14592
14593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14594
14595 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14596
14597 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14598
14599 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14600 gdb_exception" declaration.
14601 * remote.c (getpkt_or_notif_sane): Likewise.
14602
14603 2014-01-17 Doug Evans <dje@google.com>
14604
14605 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14606 function, contents of dirnames_to_char_ptr_vec_append moved here.
14607 (delim_string_to_char_ptr_vec): New function.
14608 (dirnames_to_char_ptr_vec_append): Rewrite.
14609 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14610
14611 2014-01-17 Doug Evans <dje@google.com>
14612
14613 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14614 and moved here ...
14615 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14616 #include "common-utils.h".
14617 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14618 * common/vec.h (VEC_ASSERT_PASS): Update.
14619 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14620 (MACH_CHECK_ERROR): Update.
14621
14622 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14623
14624 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14625 comments.
14626 * gdbarch.h: Regenerate.
14627
14628 2014-01-16 Tom Tromey <tromey@redhat.com>
14629
14630 * value.c (struct value) <regnum>: Move earlier.
14631
14632 2014-01-16 Tom Tromey <tromey@redhat.com>
14633
14634 * remote.c (extended_remote_create_inferior): Rename from
14635 extended_remote_create_inferior_1. Add "ops" argument. Remove
14636 old implementation.
14637
14638 2014-01-16 Pedro Alves <palves@redhat.com>
14639
14640 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14641 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14642 the backchain.
14643
14644 2014-01-16 Doug Evans <dje@google.com>
14645
14646 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14647
14648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14649
14650 * btrace.h (btrace_thread_flag): New.
14651 (struct btrace_thread_info) <flags>: New.
14652 * record-btrace.c (record_btrace_resume_thread)
14653 (record_btrace_find_thread_to_move, btrace_step_no_history)
14654 (btrace_step_stopped, record_btrace_start_replaying)
14655 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14656 (record_btrace_find_resume_thread): New.
14657 (record_btrace_resume, record_btrace_wait): Extend.
14658 (record_btrace_can_execute_reverse): New.
14659 (record_btrace_open): Fail in non-stop mode.
14660 (record_btrace_set_replay): Split into this, ...
14661 (record_btrace_stop_replaying): ... this, ...
14662 (record_btrace_clear_histories): ... and this.
14663 (init_record_btrace_ops): Init to_can_execute_reverse.
14664 * NEWS: Announce it.
14665
14666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14667
14668 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14669 (forward_target_decr_pc_after_break)
14670 (target_decr_pc_after_break): New.
14671 * target.c (forward_target_decr_pc_after_break)
14672 (target_decr_pc_after_break): New.
14673 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14674 instead of gdbarch_decr_pc_after_break.
14675 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14676 instead of gdbarch_decr_pc_after_break.
14677 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14678 instead of gdbarch_decr_pc_after_break.
14679 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14680 instead of gdbarch_decr_pc_after_break.
14681 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14682 instead of gdbarch_decr_pc_after_break.
14683 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14684 instead of gdbarch_decr_pc_after_break.
14685
14686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14687
14688 * btrace.c: Include regcache.h.
14689 (btrace_add_pc): New.
14690 (btrace_enable): Call btrace_add_pc.
14691 (btrace_is_empty): New.
14692 * btrace.h (btrace_is_empty): New.
14693 * record-btrace.c (require_btrace, record_btrace_info): Call
14694 btrace_is_empty.
14695
14696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14697
14698 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14699 Support delta reads.
14700 (linux_disable_btrace): Change return type.
14701 * common/linux-btrace.h (linux_read_btrace): Change parameters
14702 and return type to allow error reporting. Update users.
14703 (linux_disable_btrace): Change return type. Update users.
14704 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14705 New.
14706 (btrace_error): New.
14707 (btrace_block) <begin>: Comment on BEGIN == 0.
14708 * btrace.c (btrace_compute_ftrace): Start from the end of
14709 the current trace.
14710 (btrace_stitch_trace, btrace_clear_history): New.
14711 (btrace_fetch): Read delta trace, return if replaying.
14712 (btrace_clear): Move clear history code to btrace_clear_history.
14713 (parse_xml_btrace): Throw an error if parsing failed.
14714 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14715 and return type to allow error reporting.
14716 (target_read_btrace): Change parameters and return type to allow
14717 error reporting.
14718 * target.c (target_read_btrace): Update.
14719 * remote.c (remote_read_btrace): Support delta reads. Pass
14720 errors on.
14721 * NEWS: Announce it.
14722
14723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14724
14725 * record.h (record_btrace_frame_unwind)
14726 (record_btrace_tailcall_frame_unwind): New declarations.
14727 * dwarf2-frame: Include record.h
14728 (dwarf2_frame_cfa): Throw an error for btrace frames.
14729 * record-btrace.c: Include hashtab.h.
14730 (btrace_get_bfun_name): New.
14731 (btrace_call_history): Call btrace_get_bfun_name.
14732 (struct btrace_frame_cache): New.
14733 (bfcache): New.
14734 (bfcache_hash, bfcache_eq, bfcache_new): New.
14735 (btrace_get_frame_function): New.
14736 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14737 (record_btrace_frame_this_id): Compute own id.
14738 (record_btrace_frame_prev_register): Provide PC, throw_error
14739 for all other registers.
14740 (record_btrace_frame_sniffer): Detect btrace frames.
14741 (record_btrace_tailcall_frame_sniffer): New.
14742 (record_btrace_frame_dealloc_cache): New.
14743 (record_btrace_frame_unwind): Add new functions.
14744 (record_btrace_tailcall_frame_unwind): New.
14745 (_initialize_record_btrace): Allocate cache.
14746 * btrace.c (btrace_clear): Call reinit_frame_cache.
14747 * NEWS: Announce it.
14748
14749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14750
14751 * record-btrace.c (record_btrace_set_replay)
14752 (record_btrace_goto_begin, record_btrace_goto_end)
14753 (record_btrace_goto): New.
14754 (init_record_btrace_ops): Initialize them.
14755 * NEWS: Announce it.
14756
14757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14758
14759 * record-btrace.c (record_btrace_find_new_threads)
14760 (record_btrace_thread_alive): New.
14761 (init_record_btrace_ops): Initialize to_find_new_threads and
14762 to_thread_alive.
14763
14764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14765
14766 * record-btrace.c (record_btrace_resume): New.
14767 (record_btrace_wait): New.
14768 (init_record_btrace_ops): Initialize to_wait and to_resume.
14769
14770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14771
14772 * record-btrace.c (record_btrace_xfer_partial)
14773 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14774 (record_btrace_allow_memory_access): New.
14775 (init_record_btrace_ops): Initialize new methods.
14776 * target.c (raw_memory_xfer_partial): Bail out if target reports
14777 that this memory is not available.
14778
14779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14780
14781 * target.h (target_ops) <to_insert_breakpoint>
14782 <to_remove_breakpoint>: Add target_ops parameter.
14783 (forward_target_insert_breakpoint): New.
14784 (forward_target_remove_breakpoint): New.
14785 (memory_remove_breakpoint, memory_insert_breakpoint):
14786 Add target_ops parameter.
14787 * target.c (target_insert_breakpoint): Split into this and ...
14788 (forward_target_insert_breakpoint): ... this.
14789 (target_remove_breakpoint): Split into this and ...
14790 (forward_target_remove_breakpoint): ... this.
14791 (debug_to_insert_breakpoint): Add target_ops parameter.
14792 Call forward_target_insert_breakpoint.
14793 (debug_to_remove_breakpoint): Add target_ops parameter.
14794 Call forward_target_remove_breakpoint.
14795 (update_current_target): Do not inherit or default to_insert_breakpoint
14796 and to_remove_breakpoint.
14797 * corelow.c (ignore): Add target_ops parameter.
14798 * exec.c (ignore): Add target_ops parameter.
14799 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14800 Add target_ops parameter.
14801 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14802 Add target_ops parameter.
14803 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14804 Add target_ops parameter.
14805 * record-full.c (record_full_beneath_to_insert_breakpoint)
14806 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14807 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14808 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14809 (record_full_core_remove_breakpoint): Add target_ops parameter.
14810 Update users.
14811 (record_full_beneath_to_insert_breakpoint_ops)
14812 (record_full_beneath_to_remove_breakpoint_ops)
14813 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14814 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14815 tmp_to_remove_breakpoint_ops,
14816 record_full_beneath_to_insert_breakpoint_ops, and
14817 record_full_beneath_to_remove_breakpoint_ops.
14818 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14819 (m32r_remove_breakpoint): Add target_ops parameter.
14820 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14821 Add target_ops parameter.
14822 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14823 Add target_ops parameter.
14824
14825 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14826 Markus Metzger <markus.t.metzger@intel.com>
14827
14828 * record-btrace.c: Include frame-unwind.h.
14829 (record_btrace_frame_unwind_stop_reason)
14830 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14831 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14832 New.
14833 (init_record_btrace_ops): Install it.
14834
14835 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14836
14837 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14838 get_prev_frame_1.
14839
14840 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14841
14842 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14843 earlier.
14844
14845 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14846
14847 * frame-unwind.c: Include target.h.
14848 (frame_unwind_try_unwinder): New function with code from ...
14849 (frame_unwind_find_by_frame): ... here. New variable
14850 unwinder_from_target, call also target_get_unwinder)
14851 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14852 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14853 * target.h (struct target_ops): New fields to_get_unwinder and
14854 to_get_tailcall_unwinder.
14855 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14856
14857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14858
14859 * record-btrace.c (record_btrace_fetch_registers)
14860 (record_btrace_store_registers)
14861 (record_btrace_to_prepare_to_store): New.
14862 (init_record_btrace_ops): Add the above.
14863
14864 2014-01-16 Tom Tromey <tromey@redhat.com>
14865
14866 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14867 * target.h (struct target_ops) <to_prepare_to_store>: Add
14868 argument.
14869 (target_prepare_to_store): Add argument.
14870 * target.c (debug_to_prepare_to_store): Add argument.
14871 (update_current_target): Update.
14872 * remote.c (remote_prepare_to_store): Add 'self' argument.
14873 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14874 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14875 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14876 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14877 argument.
14878 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14879 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14880 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14881 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14882 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14883
14884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14885
14886 * btrace.h (replay) <replay>: New.
14887 (btrace_is_replaying): New.
14888 * btrace.c (btrace_clear): Free replay iterator.
14889 (btrace_is_replaying): New.
14890 * record-btrace.c (record_btrace_is_replaying): New.
14891 (record_btrace_info): Print insn number if replaying.
14892 (record_btrace_insn_history): Start at replay position.
14893 (record_btrace_call_history): Start at replay position.
14894 (init_record_btrace_ops): Init to_record_is_replaying.
14895
14896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14897
14898 * record-btrace.c (record_btrace_insn_history_range): Include
14899 end.
14900 (record_btrace_insn_history_from): Adjust range.
14901 (record_btrace_call_history_range): Include
14902 end.
14903 (record_btrace_call_history_from): Adjust range.
14904 * NEWS: Announce changes.
14905
14906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14907
14908 * record.h (enum record_print_flag)
14909 <record_print_indent_calls>: New.
14910 * record.c (get_call_history_modifiers): Recognize /c modifier.
14911 (_initialize_record): Document /c modifier.
14912 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14913 Reorder fields. Optionally indent the function name. Update
14914 all users.
14915 * NEWS: Announce changes.
14916
14917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14918
14919 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14920
14921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14922
14923 * btrace.c (ftrace_new_function): Start counting at one.
14924 * record-btrace.c (record_btrace_info): Adjust number of calls
14925 and insns.
14926 * NEWS: Announce it.
14927
14928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14929
14930 * record-btrace.c (btrace_call_history_insn_range): Print
14931 insn range as [begin, end].
14932
14933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14934
14935 * btrace.h (struct btrace_func_link): New.
14936 (enum btrace_function_flag): New.
14937 (struct btrace_inst): Rename to ...
14938 (struct btrace_insn): ...this. Update all users.
14939 (struct btrace_func) <ibegin, iend>: Remove.
14940 (struct btrace_func_link): New.
14941 (struct btrace_func): Rename to ...
14942 (struct btrace_function): ...this. Update all users.
14943 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14944 (number, level, flags>: New.
14945 (struct btrace_insn_iterator): Rename to ...
14946 (struct btrace_insn_history): ...this.
14947 Update all users.
14948 (struct btrace_insn_iterator, btrace_call_iterator): New.
14949 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14950 (struct btrace_target_info) <begin, end, level>
14951 <insn_history, call_history>: New.
14952 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14953 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14954 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14955 (btrace_call_number, btrace_call_begin, btrace_call_end)
14956 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14957 (btrace_find_function_by_number, btrace_set_insn_history)
14958 (btrace_set_call_history): New.
14959 * btrace.c (btrace_init_insn_iterator)
14960 (btrace_init_func_iterator, compute_itrace): Remove.
14961 (ftrace_print_function_name, ftrace_print_filename)
14962 (ftrace_skip_file): Change
14963 parameter to const.
14964 (ftrace_init_func): Remove.
14965 (ftrace_debug): Use new btrace_function fields.
14966 (ftrace_function_switched): Also consider gaining and
14967 losing symbol information).
14968 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14969 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14970 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14971 New.
14972 (ftrace_new_function): Move. Remove debug print.
14973 (ftrace_update_lines, ftrace_update_insns): New.
14974 (ftrace_update_function): Check for call, ret, and jump.
14975 (compute_ftrace): Renamed to ...
14976 (btrace_compute_ftrace): ...this. Rewritten to compute call
14977 stack.
14978 (btrace_fetch, btrace_clear): Updated.
14979 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14980 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14981 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14982 (btrace_call_number, btrace_call_begin, btrace_call_end)
14983 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14984 (btrace_find_function_by_number, btrace_set_insn_history)
14985 (btrace_set_call_history): New.
14986 * record-btrace.c (require_btrace): Use new btrace thread
14987 info fields.
14988 (record_btrace_info, btrace_insn_history)
14989 (record_btrace_insn_history, record_btrace_insn_history_range):
14990 Use new btrace thread info fields and new iterator.
14991 (btrace_func_history_src_line): Rename to ...
14992 (btrace_call_history_src_line): ...this. Use new btrace
14993 thread info fields.
14994 (btrace_func_history): Rename to ...
14995 (btrace_call_history): ...this. Use new btrace thread info
14996 fields and new iterator.
14997 (record_btrace_call_history, record_btrace_call_history_range):
14998 Use new btrace thread info fields and new iterator.
14999
15000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15001
15002 * frame.h (frame_id_build_unavailable_stack_special): New.
15003 * frame.c (frame_id_build_unavailable_stack_special): New.
15004
15005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15006
15007 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15008 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15009 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15010 to gdbarch.
15011 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15012 (i386_insn_is_jump, i386_jmp_p): New.
15013 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15014 insn_is_jump to gdbarch.
15015 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15016 * gdbarch.h: Regenerated.
15017 * gdbarch.c: Regenerated.
15018 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15019 (default_insn_is_jump): New.
15020 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15021 (default_insn_is_jump): New.
15022
15023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15024
15025 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15026 Change to ...
15027 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15028 (btrace_read_type) <btrace_read_new>: Change to ...
15029 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15030
15031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15032
15033 * common/linux-btrace.c (linux_read_btrace): Free trace from
15034 previous iteration.
15035
15036 2014-01-15 Doug Evans <dje@google.com>
15037
15038 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15039 uint32_t.
15040
15041 2014-01-15 Tom Tromey <tromey@redhat.com>
15042
15043 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15044 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15045 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15046 (set_objfile_main_name): New function.
15047 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15048 language_of_main>: New fields.
15049 (set_objfile_main_name): Declare.
15050 * symtab.c (find_main_name): Loop over objfiles to find the main
15051 name and language.
15052 (set_main_name): Now static.
15053 (get_main_info): Add comment.
15054 * symtab.h (set_main_name): Don't declare.
15055
15056 2014-01-15 Tom Tromey <tromey@redhat.com>
15057
15058 * symtab.c (main_progspace_key): New global.
15059 (struct main_info): New.
15060 (name_of_main, language_of_main): Remove.
15061 (get_main_info, main_info_cleanup): New function.
15062 (set_main_name, main_name, main_language): Use get_main_info.
15063 (_initialize_symtab): Initialize main_progspace_key.
15064
15065 2014-01-15 Tom Tromey <tromey@redhat.com>
15066
15067 * dbxread.c (process_one_symbol): Update.
15068 * dwarf2read.c (read_partial_die): Update.
15069 * symfile.c (set_initial_language): Call main_language.
15070 * symtab.c (language_of_main): Now static.
15071 (set_main_name): Add 'lang' parameter.
15072 (find_main_name): Update.
15073 (main_language): New function.
15074 (symtab_observer_executable_changed): Update.
15075 * symtab.h (set_main_name): Update.
15076 (language_of_main): Remove.
15077 (main_language): Declare.
15078
15079 2014-01-15 Tom Tromey <tromey@redhat.com>
15080
15081 * symfile.c (init_entry_point_info): Use new "initialized" field.
15082 Update.
15083 * objfiles.h (struct entry_point) <initialized>: New field.
15084 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15085 (struct objfile) <ei>: ...here. Remove.
15086 * objfiles.c (entry_point_address_query): Update.
15087
15088 2014-01-15 Tom Tromey <tromey@redhat.com>
15089
15090 * objfiles.c (entry_point_address_query): Relocate entry point
15091 address.
15092 (objfile_relocate1): Do not relocate entry point address.
15093 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15094 <the_bfd_section_index>: New field.
15095 * symfile.c (init_entry_point_info): Find the entry point's
15096 section.
15097
15098 2014-01-15 Tom Tromey <tromey@redhat.com>
15099
15100 * solib-frv.c (enable_break): Use entry_point_address_query.
15101
15102 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15103
15104 * NEWS: Add note on improved process record-replay on
15105 arm*-linux* targets.
15106
15107 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15108
15109 * arm-tdep.c (enum arm_record_result): New enum.
15110 (arm_record_unsupported_insn): New function.
15111 (arm_record_coproc_data_proc): Removed.
15112 (thumb2_record_ld_st_multiple): New function.
15113 (thumb2_record_ld_st_dual_ex_tbb): New function.
15114 (thumb2_record_data_proc_sreg_mimm): New function.
15115 (thumb2_record_ps_dest_generic): New function.
15116 (thumb2_record_branch_misc_cntrl): New function.
15117 (thumb2_record_str_single_data): New function.
15118 (thumb2_record_ld_mem_hints): New function.
15119 (thumb2_record_ld_word): New function.
15120 (thumb2_record_lmul_lmla_div): New function.
15121 (thumb2_record_decode_insn_handler): New function.
15122 (decode_insn): Add thumb32 instruction handlers.
15123
15124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15125
15126 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15127 (struct arm_linux_record_tdep): Declare.
15128 (arm_canonicalize_syscall): New function.
15129 (arm_all_but_pc_registers_record): New function.
15130 (arm_linux_syscall_record): New function.
15131 (arm_linux_init_abi): Add syscall recording constructs.
15132 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15133 decoding. (arm_record_coproc_data_proc): Update arm syscall
15134 decoding.
15135 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15136 <arm_syscall_record>: New field.
15137 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15138 gdb_target_obs.
15139
15140 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15141
15142 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15143 register for push instruction recording.
15144
15145 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15146
15147 * arm-tdep.c (thumb_record_misc): Update to correct logical
15148 error while recording ldm, ldmia and pop instructions.
15149
15150 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15151
15152 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15153
15154 2014-01-15 Pedro Alves <palves@redhat.com>
15155
15156 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15157 (go32_resume, go32_fetch_registers, store_register)
15158 (go32_store_registers, go32_prepare_to_store)
15159 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15160 (go32_create_inferior, go32_can_run, go32_terminal_init)
15161 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15162 declarations.
15163
15164 2014-01-15 Tom Tromey <tromey@redhat.com>
15165
15166 * target.h (async_callback_ftype): New typedef.
15167 (struct target_ops) <to_async>: Use it.
15168
15169 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15170
15171 * python/py-value.c (get_field_type): Remove unnecessary curly
15172 braces for single-statement if block.
15173
15174 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15175
15176 * python/py-type.c (convert_field): Add missing empty line
15177 after declarations.
15178
15179 2014-01-14 Doug Evans <dje@google.com>
15180
15181 * symfile.h (expand_symtabs_matching): Renamed from
15182 expand_partial_symbol_names. Update prototype.
15183 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15184 * symfile.c (expand_symtabs_matching): Renamed from
15185 expand_partial_symbol_names. New args file_matcher, kind.
15186 Rename arg fun to symbol_matcher.
15187 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15188 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15189 ada_expand_partial_symbol_name.
15190 (ada_make_symbol_completion_list): Update to call
15191 expand_symtabs_matching.
15192 (ada_add_global_exceptions): Call expand_symtabs_matching.
15193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15194 call map_symbol_filenames.
15195 * symtab.c (sources_info): Update to call map_symbol_filenames.
15196 (search_symbols): Call expand_symtabs_matching.
15197 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15198 (default_make_symbol_completion_list_break_on): Update to call
15199 expand_symtabs_matching.
15200 (make_source_files_completion_list): Update to call
15201 map_symbol_filenames.
15202
15203 2014-01-14 Doug Evans <dje@google.com>
15204
15205 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15206 (expand_symtabs_symbol_matcher_ftype): New typedef.
15207 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15209 * symfile.c (expand_partial_symbol_names): Update to use
15210 expand_symtabs_symbol_matcher_ftype.
15211 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15212 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15213 Arg name_matcher renamed to symbol_matcher.
15214 * psymtab.c (recursively_search_psymtabs): Update to use
15215 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15216 sym_matcher.
15217 (expand_symtabs_matching_via_partial): Update to use
15218 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15219 Arg name_matcher renamed to symbol_matcher.
15220
15221 2014-01-14 Doug Evans <dje@google.com>
15222
15223 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15224 (map_partial_symbol_filenames): Ditto.
15225 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15226 (map_partial_symbol_filenames): Ditto.
15227 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15228 (map_partial_symbol_filenames): Ditto.
15229 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15230 (map_partial_symbol_filenames): Ditto.
15231 * symtab.c: Delete #include "psymtab.h".
15232
15233 2014-01-14 Pedro Alves <palves@redhat.com>
15234 Tom Tromey <tromey@redhat.com>
15235
15236 * infrun.c (use_displaced_stepping): Use find_record_target
15237 instead of RECORD_IS_USED.
15238 (adjust_pc_after_break): Use record_full_is_used instead of
15239 RECORD_IS_USED.
15240 * record-btrace.c (record_btrace_open): Call record_preopen
15241 instead of checking RECORD_IS_USED.
15242 * record-full.c (record_full_shortname)
15243 (record_full_core_shortname): New globals.
15244 (record_full_is_used): New function.
15245 (find_full_open): Call record_preopen instead of checking
15246 RECORD_IS_USED.
15247 (init_record_full_ops): Set the target's shortname to
15248 record_full_shortname.
15249 (init_record_full_core_ops): Set the target's shortname to
15250 record_full_core_shortname.
15251 * record-full.h (record_full_is_used): Declare.
15252 * record.c (find_record_target): Make extern.
15253 (record_preopen): New function.
15254 * record.h (RECORD_IS_USED): Delete macro.
15255 (find_record_target, record_preopen): Declare functions.
15256
15257 2014-01-14 Yao Qi <yao@codesourcery.com>
15258
15259 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15260 'len''s type to ULONGEST.
15261 (core_xfer_shared_libraries_aix): Likewise.
15262 * gdbarch.c, gdbarch.h: Regenerated.
15263 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15264 Change type of 'len' to ULONGEST.
15265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15266 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15267
15268 2014-01-14 Yao Qi <yao@codesourcery.com>
15269
15270 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15271 type of 'len' to ULONGEST.
15272 (linux_xfer_osdata_processgroups): Likewise.
15273 (linux_xfer_osdata_threads): Likewise.
15274 (linux_xfer_osdata_fds): Likewise.
15275 (linux_xfer_osdata_isockets): Likewise.
15276 (linux_xfer_osdata_shm): Likewise.
15277 (linux_xfer_osdata_sem): Likewise.
15278 (linux_xfer_osdata_msg): Likewise.
15279 (linux_common_xfer_osdata): Likewise.
15280 (struct osdata_type) <getter>: Likewise.
15281 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15282 the declaration.
15283
15284 2014-01-14 Yao Qi <yao@codesourcery.com>
15285
15286 * target.h (target_xfer_partial_ftype): Update.
15287 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15288 ULONGEST.
15289 * aix-thread.c (aix_thread_xfer_partial): Change type of
15290 argument 'len' to ULONGEST.
15291 * auxv.c (procfs_xfer_auxv): Likewise.
15292 (ld_so_xfer_auxv): Likewise.
15293 (memory_xfer_auxv): Likewise.
15294 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15295 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15296 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15297 * corelow.c (core_xfer_partial): Likewise.
15298 * ctf.c (ctf_xfer_partial): Likewise.
15299 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15300 '%u'.
15301 (darwin_read_dyld_info): Likewise.
15302 (darwin_xfer_partial): Likewise.
15303 * exec.c (section_table_xfer_memory_partial): Likewise.
15304 (exec_xfer_partial): Likewise.
15305 * exec.h (section_table_xfer_memory_partial): Update
15306 declaration.
15307 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15308 instead of plongest.
15309 (gnu_xfer_partial): Likewise.
15310 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15311 (ia64_hpux_xfer_solib_got): Likewise.
15312 (ia64_hpux_xfer_partial): Likewise.
15313 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15314 * inf-ptrace.c (inf_ptrace_xfer_partial):
15315 * inf-ttrace.c (inf_ttrace_xfer_partial):
15316 * linux-nat.c (linux_xfer_siginfo): Likewise.
15317 (linux_nat_xfer_partial): Likewise.
15318 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15319 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15320 * monitor.c (monitor_xfer_memory): Likewise.
15321 (monitor_xfer_partial): Likewise.
15322 * procfs.c (procfs_xfer_partial): Likewise.
15323 * record-full.c (record_full_xfer_partial): Likewise.
15324 (record_full_core_xfer_partial): Likewise.
15325 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15326 instead of plongest.
15327 (gdbsim_xfer_partial): Likewise.
15328 * remote.c (remote_xfer_partial): Likewise.
15329 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15330 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15331 declaration.
15332 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15333 (rs6000_xfer_shared_libraries): Likewise.
15334 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15335 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15336 (sparc_xfer_partial): Likewise.
15337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15338 (spu_xfer_partial): Likewise.
15339 * spu-multiarch.c (spu_xfer_partial): Likewise.
15340 * target.c (target_read_live_memory): Likewise.
15341 (memory_xfer_live_readonly_partial): Likewise.
15342 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15343 (target_xfer_partial, default_xfer_partial): Likewise.
15344 (current_xfer_partial): Likewise.
15345 * tracepoint.c (tfile_xfer_partial): Likewise.
15346 * windows-nat.c (windows_xfer_memory): Likewise. Call
15347 pulongest instead of plongest.
15348 (windows_xfer_partial): Likewise.
15349 (windows_xfer_shared_libraries): Likewise.
15350
15351 2014-01-14 Yao Qi <yao@codesourcery.com>
15352
15353 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15354 target_xfer_partial_ftype.
15355
15356 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15357
15358 PR python/15464
15359 PR python/16113
15360 * valops.c (value_struct_elt_bitpos): New function
15361 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15362 object to 'None' if the field name is an empty string ("").
15363 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15364 attribute to look for a field when 'name' is 'None'.
15365 (get_field_type): New function
15366
15367 2014-01-13 Doug Evans <dje@google.com>
15368
15369 PR symtab/16426
15370 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15371 (try_open_dwop_file): Ditto.
15372 * gdb_bfd.c: #include "vec.h".
15373 (bfdp): New typedef.
15374 (struct gdb_bfd_data): New member included_bfds.
15375 (gdb_bfd_unref): Unref all included bfds.
15376 (gdb_bfd_record_inclusion): New function.
15377 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15378
15379 2014-01-13 Tom Tromey <tromey@redhat.com>
15380
15381 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15382
15383 2014-01-13 Tom Tromey <tromey@redhat.com>
15384
15385 * defs.h (use_windows): Remove.
15386 * gdb.c (main): Update.
15387 * main.c (captured_main, gdb_main): Update.
15388 * main.h (struct captured_main_args) <use_windows>: Remove.
15389 * top.c (use_windows): Remove.
15390
15391 2014-01-13 Tom Tromey <tromey@redhat.com>
15392
15393 * defs.h (deprecated_flush_hook): Remove.
15394
15395 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15396
15397 PR threads/16216
15398 * linux-thread-db.c (try_thread_db_load): Add parameter
15399 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15400 (try_thread_db_load_from_pdir_1): Move it there from here.
15401 (try_thread_db_load_from_sdir): Update caller.
15402 (try_thread_db_load_from_dir): Move it there from here.
15403
15404 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15405
15406 * regformats/regdat.sh: Always rewrite the register file.
15407
15408 2014-01-13 Pedro Alves <palves@redhat.com>
15409
15410 * Makefile.in (CHECK_HEADERS): New variable.
15411 (check-headers:): New rule.
15412
15413 2014-01-13 Tom Tromey <tromey@redhat.com>
15414
15415 * cli/cli-setshow.c (do_set_command): Update.
15416 * defs.h (deprecated_set_hook): Remove.
15417 * top.c (deprecated_set_hook): Remove.
15418
15419 2014-01-13 Pedro Alves <palves@redhat.com>
15420
15421 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15422 the tracepoint if the PC is a pseudo-register.
15423
15424 2014-01-13 Tom Tromey <tromey@redhat.com>
15425
15426 * defs.h (XCALLOC): Remove.
15427 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15428 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15429 * dwarf2loc.c (allocate_piece_closure): Likewise.
15430 * elfread.c (elf_symfile_segments): Likewise.
15431 (elf_symfile_segments): Likewise.
15432 * gdbtypes.c (copy_type_recursive): Likewise.
15433 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15434 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15435 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15436 XCALLOC.
15437 * mt-tdep.c (mt_gdbarch_init): Likewise.
15438 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15439 XCALLOC.
15440 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15441 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15442 * registry.c (registry_alloc_data): Likewise.
15443 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15444 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15445 * serial.c (serial_fdopen_ops): Likewise.
15446 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15447 XCALLOC.
15448 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15449 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15450 not XCALLOC.
15451
15452 2014-01-13 Tom Tromey <tromey@redhat.com>
15453
15454 * defs.h (XMALLOC): Remove.
15455 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15456 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15457 * cli-out.c (struct ui_out *): Likewise.
15458 * cli/cli-dump.c (add_dump_command): Likewise.
15459 (add_dump_command): Likewise.
15460 * complaints.c (get_complaints): Likewise.
15461 (find_complaint): Likewise.
15462 * dwarf2-frame.c (execute_cfa_program): Likewise.
15463 * dwarf2read.c (abbrev_table_read_table): Likewise.
15464 * gdbarch.sh: Likewise.
15465 * gdbarch.c: Rebuild.
15466 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15467 * interps.c (interp_new): Likewise.
15468 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15469 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15470 * mi/mi-console.c (mi_console_file_new): Likewise.
15471 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15472 * mi/mi-out.c (mi_out_new): Likewise.
15473 * mi/mi-parse.c (mi_parse): Likewise.
15474 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15475 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15476 * observer.c (xalloc_observer_list_node): Likewise.
15477 * regcache.c (regcache_xmalloc_1): Likewise.
15478 * reggroups.c (reggroup_new): Likewise.
15479 (_initialize_reggroup): Likewise.
15480 * registry.c (register_data_with_cleanup): Likewise.
15481 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15482 * ser-base.c (serial_ttystate): Likewise.
15483 * ser-mingw.c (make_pipe_state): Likewise.
15484 * ser-pipe.c (pipe_open): Likewise.
15485 * serial.c (serial_open): Likewise.
15486 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15487 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15488 (tui_alloc_win_info): Likewise.
15489 (tui_add_content_elements): Likewise.
15490 * tui/tui-file.c (tui_file_new): Likewise.
15491 * tui/tui-out.c (tui_out_new): Likewise.
15492 * ui-file.c (mem_file_new): Likewise.
15493 * ui-out.c (push_level): Likewise.
15494 (make_cleanup_ui_out_end): Likewise.
15495 (append_header_to_list): Likewise.
15496 (ui_out_new): Likewise.
15497 * user-regs.c (user_reg_add_builtin): Likewise.
15498
15499 2014-01-13 Tom Tromey <tromey@redhat.com>
15500
15501 * defs.h (XZALLOC): Remove.
15502 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15503 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15504 (get_ada_tasks_inferior_data): Likewise.
15505 * auto-load.c (get_auto_load_pspace_data): Likewise.
15506 * auxv.c (get_auxv_inferior_data): Likewise.
15507 * bfd-target.c (target_bfd_reopen): Likewise.
15508 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15509 (deprecated_insert_raw_breakpoint): Likewise.
15510 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15511 * corelow.c (core_open): Likewise.
15512 * darwin-nat.c (darwin_check_new_threads): Likewise.
15513 (darwin_attach_pid): Likewise.
15514 * dummy-frame.c (dummy_frame_push): Likewise.
15515 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15516 * dwarf2loc.c (allocate_piece_closure): Likewise.
15517 * elfread.c (elf_symfile_segments): Likewise.
15518 * eval.c (ptrmath_type_p): Likewise.
15519 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15520 * gdbtypes.c (alloc_type_arch): Likewise.
15521 (alloc_type_instance): Likewise.
15522 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15523 * inf-child.c (inf_child_can_use_agent): Likewise.
15524 * inflow.c (get_inflow_inferior_data): Likewise.
15525 * infrun.c (save_infcall_suspend_state): Likewise.
15526 * jit.c (jit_reader_load): Likewise.
15527 (get_jit_objfile_data): Likewise.
15528 (get_jit_program_space_data): Likewise.
15529 (jit_object_open_impl): Likewise.
15530 (jit_symtab_open_impl): Likewise.
15531 (jit_block_open_impl): Likewise.
15532 (jit_frame_sniffer): Likewise.
15533 * linux-fork.c (add_fork): Likewise.
15534 * maint.c (make_command_stats_cleanup): Likewise.
15535 * objfiles.c (get_objfile_pspace_data): Likewise.
15536 * opencl-lang.c (struct lval_closure): Likewise.
15537 * osdata.c (osdata_start_osdata): Likewise.
15538 * progspace.c (new_address_space): Likewise.
15539 (add_program_space): Likewise.
15540 * remote-sim.c (get_sim_inferior_data): Likewise.
15541 * sh-tdep.c (sh_gdbarch_init): Likewise.
15542 * skip.c (Ignore): Likewise.
15543 (skip_delete_command): Likewise.
15544 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15545 (library_list_start_library): Likewise.
15546 (solib_aix_current_sos): Likewise.
15547 * solib-darwin.c (get_darwin_info): Likewise.
15548 (darwin_current_sos): Likewise.
15549 * solib-dsbt.c (get_dsbt_info): Likewise.
15550 * solib-ia64-hpux.c (new_so_list): Likewise.
15551 (ia64_hpux_get_solib_linkage_addr): Likewise.
15552 * solib-spu.c (append_ocl_sos): Likewise.
15553 (spu_current_sos): Likewise.
15554 * solib-svr4.c (get_svr4_info): Likewise.
15555 (svr4_keep_data_in_core): Likewise.
15556 (library_list_start_library): Likewise.
15557 (svr4_default_sos): Likewise.
15558 (svr4_read_so_list): Likewise.
15559 * solib-target.c (library_list_start_library): Likewise.
15560 (solib_target_current_sos): Likewise.
15561 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15562 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15563 * symfile.c (default_symfile_segments): Likewise.
15564 * target-descriptions.c (tdesc_data_init): Likewise.
15565 (tdesc_create_reg): Likewise.
15566 (struct tdesc_type *): Likewise.
15567 (tdesc_create_vector): Likewise.
15568 (tdesc_set_struct_size): Likewise.
15569 (struct tdesc_type *): Likewise.
15570 (tdesc_free_feature): Likewise.
15571 (tdesc_create_feature): Likewise.
15572 * windows-nat.c (windows_add_thread): Likewise.
15573 (windows_make_so): Likewise.
15574 * xml-support.c (gdb_xml_body_text): Likewise.
15575 (gdb_xml_create_parser_and_cleanup): Likewise.
15576 (xml_process_xincludes): Likewise.
15577 * xml-syscall.c (allocate_syscalls_info): Likewise.
15578 (syscall_create_syscall_desc): Likewise.
15579
15580 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15581
15582 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15583 function, with code from i386_stap_parse_special_token.
15584 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15585 (i386_stap_parse_special_token): Move code to the two functions
15586 above; simplify it.
15587
15588 2014-01-09 Pedro Alves <palves@redhat.com>
15589 Hui Zhu <hui@codesourcery.com>
15590
15591 PR gdb/16101
15592 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15593 bp_err_string. Don't mark the location shlib_disabled if the
15594 error thrown wasn't a generic or memory error. Catch errors
15595 thrown while inserting breakpoints in overlayed code. Output
15596 error message of software breakpoints.
15597 * remote.c (remote_insert_breakpoint): If this breakpoint has
15598 target-side commands but this stub doesn't support Z0 packets,
15599 throw NOT_SUPPORTED_ERROR error.
15600 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15601 * target.h (target_insert_breakpoint): Extend comment.
15602 (target_insert_hw_breakpoint): Add comment.
15603
15604 2014-01-08 Pedro Alves <palves@redhat.com>
15605
15606 * remote.c (remote_add_thread): Add threads silently if starting
15607 up.
15608 (remote_notice_new_inferior): If in all-stop, and starting up,
15609 don't call notice_new_inferior.
15610 (get_current_thread): New function, factored out from ...
15611 (add_current_inferior_and_thread): ... this. Adjust.
15612 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15613 found any thread, then select the remote's current thread as GDB's
15614 current thread too.
15615
15616 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15617
15618 * NEWS: Create a new section for the next release branch.
15619 Rename the section of the current branch, now that it has
15620 been cut.
15621
15622 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15623
15624 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15625 * version.in: Bump version to 7.7.50.DATE-cvs.
15626
15627 2014-01-08 Yao Qi <yao@codesourcery.com>
15628
15629 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15630 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15631 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15632
15633 2014-01-08 Yao Qi <yao@codesourcery.com>
15634
15635 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15636 return value of bfd_get_filename to symbol_file_add_from_bfd.
15637
15638 2014-01-08 Pierre Muller <muller@sourceware.org>
15639
15640 Fix PR16201.
15641 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15642 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15643 to prim_record_mininal_symbol_and_info.
15644 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15645 in call to prim_record_minimal_symbol_and_info.
15646 (read_pe_exported_syms): Set index field of section_data.
15647
15648 2014-01-07 Andrew Pinski <apinski@cavium.com>
15649
15650 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15651 * features/aarch64.c: Regenerate.
15652
15653 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15654
15655 * target.c (return_null): Define.
15656 (update_current_target): Use it instead of return_zero for
15657 functions that return a pointer.
15658
15659 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15660
15661 * source.c (add_path): Fix check for duplicated paths in the previously
15662 included paths.
15663
15664 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15665
15666 * ada-lang.c: Remove duplicated include statements.
15667 * alphabsd-nat.c: Ditto.
15668 * amd64-darwin-tdep.c: Ditto.
15669 * amd64fbsd-nat.c: Ditto.
15670 * auto-load.c: Ditto.
15671 * ax-gdb.c: Ditto.
15672 * breakpoint.c: Ditto.
15673 * dbxread.c: Ditto.
15674 * fork-child.c: Ditto.
15675 * gdb_usleep.c: Ditto.
15676 * i386-darwin-tdep.c: Ditto.
15677 * i386fbsd-nat.c: Ditto.
15678 * infcmd.c: Ditto.
15679 * inferior.c: Ditto.
15680 * jv-lang.c: Ditto.
15681 * linux-nat.c: Ditto.
15682 * linux-tdep.c: Ditto.
15683 * m68kbsd-nat.c: Ditto.
15684 * m68klinux-nat.c: Ditto.
15685 * microblaze-tdep.c: Ditto.
15686 * mips-linux-tdep.c: Ditto.
15687 * mn10300-tdep.c: Ditto.
15688 * nto-tdep.c: Ditto.
15689 * opencl-lang.c: Ditto.
15690 * osdata.c: Ditto.
15691 * printcmd.c: Ditto.
15692 * regcache.c: Ditto.
15693 * remote-m32r-sdi.c: Ditto.
15694 * remote.c: Ditto.
15695 * symfile.c: Ditto.
15696 * symtab.c: Ditto.
15697 * tilegx-linux-nat.c: Ditto.
15698 * tilegx-tdep.c: Ditto.
15699 * tracepoint.c: Ditto.
15700 * valops.c: Ditto.
15701 * vaxbsd-nat.c: Ditto.
15702 * windows-nat.c: Ditto.
15703 * xtensa-tdep.c: Ditto.
15704
15705 2014-01-07 Yao Qi <yao@codesourcery.com>
15706
15707 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15708
15709 2014-01-07 Yao Qi <yao@codesourcery.com>
15710 Joel Brobecker <brobecker@adacore.com>
15711
15712 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15713 (pdc_write_regs): Likewise.
15714 (fetch_regs_kernel_thread): Likewise.
15715 (store_regs_kernel_thread): Likewise.
15716
15717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15718
15719 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15720 tagged type objects to their actual type.
15721
15722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15723
15724 * ada-valprint.c (print_field_values): Add "language" parameter.
15725 Update calls to print_field_values and print_variant_part.
15726 Pass new parameter "language" in call to val_print instead
15727 of "current_language". Replace call to ada_val_print by call
15728 to val_print.
15729 (print_variant_part): Add "language" parameter.
15730 (ada_val_print_struct_union): Update call to print_field_values.
15731
15732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15733
15734 * ada-valprint.c (ui_memcpy): Delete.
15735 (ada_print_floating): Update documentation. Add empty line
15736 between between function documentation and implementation.
15737 Delete variable "buffer". Use ui_file_xstrdup in place of
15738 ui_file_put. Minor adjustments following this change.
15739
15740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15741
15742 * ada-valprint.c (ada_val_print_string): New function,
15743 extracted from ada_val_print_array.
15744 (ada_val_print_array): Replace extracted code by call
15745 to ada_val_print_string followed by a return. Move
15746 "else" branch to the function's top block.
15747
15748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15749
15750 * ada-valprint.c (ada_val_print_array): Move implementation
15751 down. Rename parameter "offset" and "val" into "offset_aligned"
15752 and "original_value" respectively. Add parameter "offset".
15753
15754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15755
15756 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15757 re-organizing the code. Change the "???" message printed
15758 when target type is a TYPE_CODE_UNDEF into
15759 "<ref to undefined type>".
15760
15761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15762
15763 * ada-valprint.c (print_record): Delete, implementation inlined...
15764 (ada_val_print_struct_union): ... here. Remove call to
15765 ada_check_typedef in inlined implementation.
15766
15767 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15768
15769 * ada-valprint.c (ada_val_print_gnat_array): New function,
15770 extracted from ada_val_print_1;
15771 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15772 (ada_val_print_flt, ada_val_print_struct_union)
15773 (ada_val_print_ref): Likewise.
15774 (ada_val_print_1): Delete variables i and elttype.
15775 Replace extracted-out code by call to corresponding
15776 new functions.
15777
15778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15779
15780 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15781
15782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15783
15784 * ada-valprint.c (ada_val_print_1): Replace calls to
15785 ada_val_print_1 by calls to val_print.
15786
15787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15788
15789 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15790 Update calls to self accordingly. Replace calls to c_val_print
15791 by calls to val_print.
15792
15793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15794
15795 * ada-valprint.c (print_record): Delete declaration.
15796 (adjust_type_signedness, ada_val_print_1): Likewise.
15797 (ada_val_print): Move function implementation down.
15798 (print_variant_part, print_field_values, print_record):
15799 Move function implementation up.
15800
15801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15802
15803 * python/py-type.c (typy_get_name): New function.
15804 (type_object_getset): Add entry for attribute "name".
15805 * NEWS: Add entry mentioning this new attribute.
15806
15807 2014-01-07 Yao Qi <yao@codesourcery.com>
15808
15809 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15810 statement.
15811
15812 2014-01-07 Yao Qi <yao@codesourcery.com>
15813
15814 * gnu-nat.c (info_port_rights): Add qualifier const to
15815 argument args.
15816
15817 2014-01-07 Yao Qi <yao@codesourcery.com>
15818
15819 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15820
15821 2014-01-07 Yao Qi <yao@codesourcery.com>
15822
15823 * gnu-nat.c (make_inf) Update declaration.
15824 (make_inf): Make it static.
15825 (inf_set_traced): Likewise.
15826 (inf_port_to_thread, inf_task_died_status): Likewise.
15827
15828 2014-01-07 Yao Qi <yao@codesourcery.com>
15829
15830 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15831
15832 2014-01-07 Yao Qi <yao@codesourcery.com>
15833
15834 * gnu-nat.c (_initialize_gnu_nat): Declare.
15835
15836 2014-01-07 Yao Qi <yao@codesourcery.com>
15837
15838 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15839 'enum bfd_endian'.
15840 (struct gdbarch_info) <byte_order>: Change type to
15841 'enum bfd_endian'.
15842 <byte_order_for_code>: Likewise.
15843 * gdbarch.c, gdbarch.h: Regenerated.
15844
15845 2014-01-06 Sasha Smundak <asmundak@google.com>
15846
15847 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15848
15849 2014-01-06 Tom Tromey <tromey@redhat.com>
15850
15851 * doublest.c (convert_doublest_to_floatformat): Use const, not
15852 CONST.
15853 * somread.c (som_symtab_read): Likewise.
15854
15855 2014-01-07 Hui Zhu <hui@codesourcery.com>
15856
15857 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15858 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15859 (gdb_bfd_fopen): Ditto.
15860 (gdb_bfd_openr): Ditto.
15861 (gdb_bfd_openw): Ditto.
15862 (gdb_bfd_openr_iovec): Ditto.
15863 (gdb_bfd_fdopenr): Ditto.
15864 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15865 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15866 with xstrdup.
15867 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15868 with xstrdup.
15869 * symfile-mem.c (symbol_file_add_from_memory): Removed
15870 gdb_bfd_stash_filename.
15871
15872 2014-01-03 Doug Evans <dje@google.com>
15873
15874 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15875 output.
15876
15877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15878
15879 Update year range in copyright notice of all files.
15880
15881 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15882
15883 * top.c (print_gdb_version): Set copyright year to 2014.
15884
15885 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15886
15887 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15888
15889 For older changes see ChangeLog-2013.
15890 \f
15891 Local Variables:
15892 mode: change-log
15893 left-margin: 8
15894 fill-column: 74
15895 version-control: never
15896 coding: utf-8
15897 End: