(lookup_global_symbol_from_objfile): Simplify.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fe2a438d
DE
12014-12-11 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
4 (symbol *lookup_symbol_via_quick_fns): Ditto.
5 (lookup_symbol_in_objfile): Add forward decl.
6 (lookup_global_symbol_from_objfile): Simplify, call
7 lookup_symbol_in_objfile.
8
540feddf
DE
92014-12-11 Doug Evans <xdje42@gmail.com>
10
11 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
12
fc126975
SM
132014-12-10 Simon Marchi <simon.marchi@ericsson.com>
14
15 PR breakpoints/17012
16 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
17 it is marked as persistent.
18
56286edf
DE
192014-12-10 Doug Evans <xdje42@gmail.com>
20
21 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
22 closer to its subroutines.
23
34ef8452
DE
242014-12-10 Doug Evans <xdje42@gmail.com>
25
26 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
27
9a80057a
DE
282014-12-10 Doug Evans <xdje42@gmail.com>
29
30 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
31 * cp-support.c (cp_lookup_symbol_imports): Delete.
32
1abf3a14
SM
332014-12-10 Simon Marchi <simon.marchi@ericsson.com>
34
35 PR gdb/17627
36 * target.c (cleanup_restore_target_terminal): New function.
37 (make_cleanup_restore_target_terminal): New function.
38 * target.h (make_cleanup_restore_target_terminal): New declaration.
39 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
40
d4d1e336
DE
412014-12-08 Doug Evans <dje@google.com>
42
43 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
44
a0be3e44
DE
452014-12-08 Doug Evans <dje@google.com>
46
47 * NEWS: Mention gdb.Objfile.owner.
48 * python/py-objfile.c (objfpy_get_owner): New function.
49 (objfile_getset): Add "owner".
50
6c1c7be3
JK
512014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
54 (lookup_global_symbol_from_objfile): Call it.
55
efad9b6a
JK
562014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 Remove const from struct objfile *.
59 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
60 symtab.c, symtab.h: In these files.
61
069bb7ec
AF
622014-12-05 Andreas From <andreas.from@ericsson.com>
63
64 * MAINTAINERS (Write After Approval): Add "Andreas From"
65
642a8d80
DE
662014-12-05 Doug Evans <xdje42@gmail.com>
67
68 Revert:
69 PR symtab/17602
70 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
71
86e4ed39
DE
722014-12-04 Doug Evans <dje@google.com>
73
74 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
75 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
76 (objfile_getset): Add "add_separate_debug_file".
77
7c50a931
DE
782014-12-04 Doug Evans <dje@google.com>
79
80 * NEWS: Mention gdb.Objfile.build_id.
81 * build-id.c (build_id_bfd_get): Make non-static.
82 * build-id.h (build_id_bfd_get): Add declaration.
83 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
84 (OBJFPY_REQUIRE_VALID): New macro.
85 (objfpy_get_build_id): New function.
86 (objfile_getset): Add "build_id".
87 * utils.c (make_hex_string): New function.
88 * utils.h (make_hex_string): Add declaration.
89
ba715d7f
JK
902014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 * block.c (block_lookup_symbol_primary): New function.
93 * block.h (block_lookup_symbol_primary): New declaration.
94 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
95 Call block_lookup_symbol_primary.
96
858339f2
MR
972014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
98
99 * tramp-frame.h (tramp_frame): Add `validate' member.
100 * tramp-frame.c (tramp_frame_start): Validate trampoline before
101 scanning.
102 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
103 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
104 (mips_linux_o32_sigframe): Initialize `validate' member.
105 (mips_linux_o32_rt_sigframe): Likewise.
106 (mips_linux_n32_rt_sigframe): Likewise.
107 (mips_linux_n64_rt_sigframe): Likewise.
108 (micromips_linux_o32_sigframe): New variable.
109 (micromips_linux_o32_rt_sigframe): Likewise.
110 (micromips_linux_n32_rt_sigframe): Likewise.
111 (micromips_linux_n64_rt_sigframe): Likewise.
112 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
113 (mips_linux_n32n64_sigframe_init): Likewise.
114 (mips_linux_sigframe_validate): New function.
115 (micromips_linux_sigframe_validate): Likewise.
116 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
117
ff1eb2b5
UW
1182014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
119
120 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
121 * sparc-sol2-tdep.c: Include "regset.h".
122 (sparc32_sol2_supply_core_gregset): New function.
123 (sparc32_sol2_collect_core_gregset): Likewise.
124 (sparc32_sol2_supply_core_fpregset): Likewise.
125 (sparc32_sol2_collect_core_fpregset): Likewise.
126 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
127 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
128 tdep->fpregset/sizeof_fpregset.
129 * sparc64-sol2-tdep.c: Include "regset.h".
130 (sparc64_sol2_supply_core_gregset): New function.
131 (sparc64_sol2_collect_core_gregset): Likewise.
132 (sparc64_sol2_supply_core_fpregset): Likewise.
133 (sparc64_sol2_collect_core_fpregset): Likewise.
134 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
135 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
136 tdep->fpregset/sizeof_fpregset.
137
75783939
SM
1382014-12-03 Simon Marchi <simon.marchi@ericsson.com>
139
140 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
141 type.
142
7c5fdd25
DE
1432014-12-02 Doug Evans <dje@google.com>
144
145 * symtab.c (symbol_init_cplus_specific): Delete.
146 (symbol_set_demangled_name): Remove special c++ support.
147 (symbol_get_demangled_name, symbol_set_language): Ditto.
148 * symtab.h (struct cplus_specific): Delete.
149 (struct general_symbol_info) <language_specific>: Remove
150 cplus_specific.
151
29f0c3b7
DE
1522014-12-02 Doug Evans <dje@google.com>
153
154 PR symtab/17602
155 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
156
72998fb3
DE
1572014-12-02 Doug Evans <dje@google.com>
158
159 PR symtab/17591
160 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
161 to strip parameters.
162
422b9917
DE
1632014-12-02 Doug Evans <dje@google.com>
164
165 * dwarf2read.c (peek_die_abbrev): Improve error message text.
166
47c6ee49
DE
1672014-12-02 Doug Evans <dje@google.com>
168
169 * valops.c (do_search_struct_field): Remove remnant of Chill support.
170 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
171
5da3ffc9
SM
1722014-12-02 Simon Marchi <simon.marchi@ericsson.com>
173
174 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
175
162078c8
NB
1762014-12-02 Nick Bull <nicholaspbull@gmail.com>
177
178 * NEWS: Mention new Python events.
179 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
180 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
181 (py-infevents.o): New rule.
182 * doc/observer.texi (inferior_call_pre, inferior_call_post)
183 (memory_changed, register_changed): New observers.
184 * infcall.c (call_function_by_hand): Notify observer before and
185 after inferior call.
186 * python/py-event.h (inferior_call_kind): New enum.
187 (emit_inferior_call_event): New prototype.
188 (emit_register_changed_event): New prototype.
189 (emit_memory_changed_event): New prototype.
190 * python/py-events.h (events_object): New registries
191 inferior_call, memory_changed and register_changed.
192 * python/py-evts.c (gdbpy_initialize_py_events): Add the
193 inferior_call, memory_changed and register_changed registries.
194 * python/py-infevents.c: New.
195 * python/py-inferior.c (python_on_inferior_call_pre)
196 (python_on_inferior_call_post, python_on_register_change)
197 (python_on_memory_change): New functions.
198 (gdbpy_initialize_inferior): Attach python handler to new
199 observers.
200 * python/py-infthread.c(gdbpy_create_ptid_object): New.
201 (thpy_get_ptid) Use gdbpy_create_ptid_object.
202 * python/python-internal.h:
203 (gdbpy_create_ptid_object)
204 (gdbpy_initialize_inferior_call_pre_event)
205 (gdbpy_initialize_inferior_call_post_event)
206 (gdbpy_initialize_register_changed_event)
207 (gdbpy_initialize_memory_changed_event): New prototypes.
208 * python/python.c (_initialize_python): Initialize new events.
209 * valops.c (value_assign): Notify register_changed observer.
210
007baf27
DE
2112014-12-02 Doug Evans <dje@google.com>
212
213 * python/py-infthread.c: Whitespace fixes.
214
d5552aab
AA
2152014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
216
217 * features/Makefile (s390-te-linux64-expedite): Replace
218 non-existant r14 and r15 by r14l and r15l, respectively.
219 * regformats/s390-te-linux64.dat: Regenerate.
220
30b5e341
SM
2212014-12-01 Simon Marchi <simon.marchi@ericsson.com>
222
223 * objfiles.c (allocate_objfile): Remove duplicate comment.
224
ac3d87c0
UW
2252014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
226
227 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
228 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
229 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
230 (supply_gregset, supply_fpregset): Remove.
231 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
232 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
233 and sizeof_gregset.
234
f10c5b19
JK
2352014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
236
237 Add add-auto-load-scripts-directory.
238 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
239 * auto-load.c (add_auto_load_dir): New function.
240 (_initialize_auto_load): Install it.
241
f0d4ba1f
MG
2422014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
243
244 Pushed by Joel Brobecker <brobecker@adacore.com>.
245 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
246
18ac6ffc
SC
2472014-11-29 Siva Chandra Reddy <sivachandra@google.com>
248
249 * eval.c (evaluate_subexp): Check that the thread stack temporaries
250 are not already enabled before enabling them.
251
4072f920
YQ
2522014-11-29 Yao Qi <yao@codesourcery.com>
253
254 * arm-tdep.c (arm_analyze_prologue): Move local variables
255 'framereg' and 'framesize' to inner block. Move code to
256 inner block too.
257
6c659fc2
SC
2582014-11-28 Siva Chandra Reddy <sivachandra@google.com>
259
260 * eval.c: Include gdbthread.h.
261 (evaluate_subexp): Enable thread stack temporaries before
262 evaluating a complete expression and clean them up after the
263 evaluation is complete.
264 * gdbthread.h: Include common/vec.h.
265 (value_ptr): New typedef.
266 (VEC (value_ptr)): New vector type.
267 (value_vec): New typedef.
268 (struct thread_info): Add new fields stack_temporaries_enabled
269 and stack_temporaries.
270 (enable_thread_stack_temporaries)
271 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
272 (get_last_thread_stack_temporary)
273 (value_in_thread_stack_temporaries): Declare.
274 * gdbtypes.c (class_or_union_p): New function.
275 * gdbtypes.h (class_or_union_p): Declare.
276 * infcall.c (call_function_by_hand): Store return values of class
277 type as temporaries on stack.
278 * thread.c (enable_thread_stack_temporaries): New function.
279 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
280 (get_last_thread_stack_temporary): Likewise.
281 (value_in_thread_stack_temporaries): Likewise.
282 * value.c (value_force_lval): New function.
283 * value.h (value_force_lval): Declare.
284
f7ca3fcf
PM
2852014-11-28 Pierre Muller <muller@sourceware.org>
286
287 Pushed by Joel Brobecker <brobecker@adacore.com>.
288 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
289 registers.
290
b2859a9a
UW
2912014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
292
293 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
294 * config/sparc/linux.mh (NATDEPFILES): Likewise.
295 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
296 * m68klinux-nat.c (fetch_core_registers): Remove.
297 (linux_elf_core_fns): Remove.
298 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
299
0fa9473f
JB
3002014-11-28 Joel Brobecker <brobecker@adacore.com>
301
302 * utils.c (gdb_realpath): Rework comment about handling on
303 Windows.
304
6a29c58e
YQ
3052014-11-28 Yao Qi <yao@codesourcery.com>
306
307 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
308 rename.
309 * gnulib/aclocal.m4: Re-generated.
310 * gnulib/config.in: Re-generated.
311 * gnulib/configure: Re-generated.
312 * gnulib/import/Makefile.am: Re-generated.
313 * gnulib/import/Makefile.in: Re-generated.
314 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
315 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
316 * import/basename-lgpl.c: New file.
317 * import/dirname-lgpl.c: New file.
318 * import/dirname.h: New file.
319 * import/m4/dirname.m4: New file.
320 * import/m4/malloc.m4: New file.
321 * import/m4/rename.m4: New file.
322 * import/m4/rmdir.m4: New file.
323 * import/m4/stdio_h.m4: New file.
324 * import/malloc.c: New file.
325 * import/rename.c: New file.
326 * import/rmdir.c: New file.
327 * import/same-inode.h: New file.
328 * import/stdio.c: New file.
329 * import/stdio.in.h: New file.
330 * import/stripslash.c: New file.
331
abbffc89
YQ
3322014-11-28 Yao Qi <yao@codesourcery.com>
333
334 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
335 and realpath.
336 * config.in: Re-generated.
337 * configure: Re-generated.
338 * utils.c (gdb_realpath): Remove code calling realpath,
339 canonicalize_file_name and pathconf.
340 [!_WIN32]: Call canonicalize_file_name.
341
98399780
YQ
3422014-11-28 Yao Qi <yao@codesourcery.com>
343
344 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
345 canonicalize-lgpl.
346 * aclocal.m4: Re-generated.
347 * config.in: Re-generated.
348 * configure: Re-generated.
349 * import/Makefile.am: Re-generated.
350 * import/Makefile.in: Re-generated.
351 * import/m4/gnulib-cache.m4: Re-generated.
352 * import/m4/gnulib-comp.m4: Re-generated.
353 * import/canonicalize-lgpl.c: New file.
354 * import/extra/snippet/_Noreturn.h: New file.
355 * import/m4/canonicalize.m4: New file.
356 * import/m4/double-slash-root.m4: New file.
357 * import/m4/eealloc.m4: New file.
358 * import/m4/malloca.m4: New file.
359 * import/m4/nocrash.m4: New file.
360 * import/m4/stdlib_h.m4: New file.
361 * import/malloca.c: New file.
362 * import/malloca.h: New file.
363 * import/malloca.valgrind: New file.
364
3332aaf2
YQ
3652014-11-28 Yao Qi <yao@codesourcery.com>
366
367 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
368 * config.in, configure: Regenerate.
369 * symfile.c (find_separate_debug_file_by_debuglink): Remove
370 code checking HAVE_LSTAT is defined.
371
f45c62c4
YQ
3722014-11-28 Yao Qi <yao@codesourcery.com>
373
374 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
375 lstat.
376 * gnulib/aclocal.m4: Re-generated.
377 * gnulib/config.in: Re-generated.
378 * gnulib/configure: Re-generated.
379 * gnulib/import/Makefile.am: Re-generated.
380 * gnulib/import/Makefile.in: Re-generated.
381 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
382 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
383 * gnulib/import/lstat.c: New file.
384 * gnulib/import/m4/lstat.m4: New file.
385
bdca27a2
YQ
3862014-11-28 Yao Qi <yao@codesourcery.com>
387
388 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
389 * config.in, configure: Re-generate.
390 * inf-child.c (inf_child_fileio_readlink): Don't check
391 HAVE_READLINK is defined.
392
2196f55f
YQ
3932014-11-28 Yao Qi <yao@codesourcery.com>
394
395 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
396 * gnulib/aclocal.m4: Re-generated.
397 * gnulib/config.in: Likewise.
398 * gnulib/configure: Likewise.
399 * gnulib/import/Makefile.am: Likewise.
400 * gnulib/import/Makefile.in: Likewise.
401 * gnulib/import/m4/gnulib-cache.m4: Likewise.
402 * gnulib/import/m4/gnulib-comp.m4: Likewise.
403 * gnulib/import/dosname.h: New file
404 * gnulib/import/m4/largefile.m4: New file.
405 * gnulib/import/m4/readlink.m4: New file.
406 * gnulib/import/m4/stat.m4: New file.
407 * gnulib/import/readlink.c: New file.
408 * gnulib/import/stat.c: New file.
409
7014e923 4102014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
411
412 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
413 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
414
aa489395
SL
4152014-11-25 Sandra Loosemore <sandra@codesourcery.com>
416
417 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
418 that there can be only one stack adjustment in the prologue
419 with tests to detect specific disallowed stack adjustments.
420
7f1659b5
SL
4212014-11-25 Sandra Loosemore <sandra@codesourcery.com>
422
423 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
424 adjustments.
425
d53c26c7
SL
4262014-11-25 Sandra Loosemore <sandra@codesourcery.com>
427
428 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
429 the instruction as well as reading it from memory.
430 (nios2_match_add): New.
431 (nios2_match_sub): New.
432 (nios2_match_addi): New.
433 (nios2_match_orhi): New.
434 (nios2_match_stw): New.
435 (nios2_match_ldw): New.
436 (nios2_match_rdctl): New.
437 (enum branch_condition): New.
438 (nios2_match_branch): New.
439 (nios2_match_jmpi): New.
440 (nios2_match_calli): New.
441 (nios2_match_jmpr): New.
442 (nios2_match_callr): New.
443 (nios2_match_break): New.
444 (nios2_match_trap): New.
445 (nios2_in_epilogue_p): Rewrite to use new functions.
446 (nios2_analyze_prologue): Likewise.
447 (nios2_skip_prologue): Delete unused local limit_pc.
448 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
449 (nios2_get_next_pc): Rewrite to use new functions.
450
cac9b138
JK
4512014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
454
a441dfbc
ST
4552014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
456
457 Pushed by Joel Brobecker <brobecker@adacore.com>
458 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
459 elements pi_len by the size of the elements before calling
460 vm_deallocate.
461 (inf_validate_task_sc): Likewise, and properly deallocate the
462 noise array.
463
4c9e8482
DE
4642014-11-23 Doug Evans <xdje42@gmail.com>
465
466 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
467 number and name if present. All callers updated.
468 (dump_fn_fieldlists): Fix indentation of args.
469
15ee0bbd
PP
4702014-11-23 Patrick Palka <patrick@parcs.ath.cx>
471
472 * MAINTAINERS (Write After Approval): Add myself.
473
e8af5d7a
JB
4742014-11-23 Joel Brobecker <brobecker@adacore.com>
475
476 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
477 to a bp_call_dummy breakpoint type.
478
a344fc09
PP
4792014-11-23 Patrick Palka <patrick@parcs.ath.cx>
480
481 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
482 registering the signal handler.
483
d64e57fa
PP
4842014-11-23 Patrick Palka <patrick@parcs.ath.cx>
485
486 * event-top.h (call_stdin_event_handler_again_p): Declare.
487 * event-top.c (call_stdin_event_handler_again_p): Define.
488 (stdin_event_handler): Use it.
489 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
490 handler again if there is pending input following a
491 start sequence.
492
6f9d33d8
PP
4932014-11-23 Patrick Palka <patrick@parcs.ath.cx>
494
495 Pushed by Joel Brobecker <brobecker@adacore.com>
496 * linux-fork.c (checkpoint_command): Print index of new
497 checkpoint in response message.
498
88db67ef
YQ
4992014-11-23 Yao Qi <yao@codesourcery.com>
500
501 * valprint.c (read_string): Move local variables 'found_nul',
502 'chunksize' and 'limit' to inner scope. Update comments.
503
01465b56
DE
5042014-11-22 Doug Evans <xdje42@gmail.com>
505
506 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
507 function comment.
508 (search_symbols): Fix comments and whitespace.
509
07a1c2c3
DE
5102014-11-22 Doug Evans <xdje42@gmail.com>
511
512 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
513
b2a919a8
DE
5142014-11-21 Doug Evans <dje@google.com>
515
516 * psymtab.c (psymtab_search_name): Fix whitespace.
517
278289d5
YQ
5182014-11-21 Yao Qi <yao@codesourcery.com>
519
520 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
521 errno.
522 * gnulib/import/Makefile.am: Re-generated.
523 * gnulib/import/Makefile.in: Likewise.
524 * gnulib/import/m4/gnulib-cache.m4: Likewise.
525
e01e2baa
YQ
5262014-11-21 Yao Qi <yao@codesourcery.com>
527
528 * gdb_wchar.h: Include wchar.h and wctype.h.
529 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
530 include wchar.h and wctype.h.
531 Don't check HAVE_WCHAR_H.
532
f0c00af8
YQ
5332014-11-21 Yao Qi <yao@codesourcery.com>
534
535 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
536 and wctype-h.
537 * gnulib/import/Makefile.am: Re-generated.
538 * gnulib/import/Makefile.in: Likewise.
539 * gnulib/import/m4/gnulib-cache.m4: Likewise.
540
0cae13bb
YQ
5412014-11-21 Yao Qi <yao@codesourcery.com>
542
543 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
544 memchr.
545 * gnulib/import/Makefile.am: Re-generated.
546 * gnulib/import/Makefile.in: Likewise.
547 * gnulib/import/m4/gnulib-cache.m4: Likewise.
548
9c232dda
YQ
5492014-11-21 Yao Qi <yao@codesourcery.com>
550
551 * common/common-defs.h: Include alloca.h
552 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
553 * configure: Re-generated.
554 * defs.h: Remove code handling alloca.
555 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
556 or not.
557
00d7f58f
YQ
5582014-11-21 Yao Qi <yao@codesourcery.com>
559
560 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
561 alloca.
562 * gnulib/import/Makefile.am: Re-generated.
563 * gnulib/import/Makefile.in: Likewise..
564 * gnulib/import/m4/gnulib-cache.m4: Likewise.
565
6068ad5d
YQ
5662014-11-21 Yao Qi <yao@codesourcery.com>
567
568 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
569 alphabetical order.
570
45e44d27
JB
5712014-11-21 Joel Brobecker <brobecker@adacore.com>
572
573 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
574 flag_unsigned if HIGH_BOUND is constant and negative.
575
7e7cbeb3
SDJ
5762014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
577
578 PR breakpoints/10737
579 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
580 modifier from "struct gdbarch" when compiling without Expat (XML)
581 support.
582 (get_syscall_by_number): Likewise.
583 (get_syscall_by_name): Likewise.
584 (get_syscall_names): Likewise.
585
458c8db8
SDJ
5862014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
587
588 PR breakpoints/10737
589 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
590 set_xml_syscall_file_name to provide gdbarch.
591 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
592 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
593 * breakpoint.c (print_it_catch_syscall): Adjust call to
594 get_syscall_by_number to provide gdbarch.
595 (print_one_catch_syscall): Likewise.
596 (print_mention_catch_syscall): Likewise.
597 (print_recreate_catch_syscall): Likewise.
598 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
599 and get_syscall_by_name to provide gdbarch.
600 (catch_syscall_completer): Adjust call to get_syscall_names to
601 provide gdbarch.
602 * gdbarch.c: Regenerate.
603 * gdbarch.h: Likewise.
604 * gdbarch.sh: Forward declare "struct syscalls_info".
605 (xml_syscall_file): New variable.
606 (syscalls_info): Likewise.
607 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
608 set_xml_syscall_file_name to provide gdbarch.
609 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
610 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
611 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
612 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
613 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
614 * xml-syscall.c: Include gdbarch.h.
615 (set_xml_syscall_file_name): Accept gdbarch parameter.
616 (get_syscall_by_number): Likewise.
617 (get_syscall_by_name): Likewise.
618 (get_syscall_names): Likewise.
619 (my_gdb_datadir): Delete global variable.
620 (struct syscalls_info) <my_gdb_datadir>: New variable.
621 (struct syscalls_info) <sysinfo>: Rename variable to
622 "syscalls_info".
623 (sysinfo): Delete global variable.
624 (have_initialized_sysinfo): Likewise.
625 (xml_syscall_file): Likewise.
626 (sysinfo_free_syscalls_desc): Rename to...
627 (syscalls_info_free_syscalls_desc): ... this.
628 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
629 code to the new layout of "struct syscalls_info".
630 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
631 "syscalls_info".
632 (syscall_create_syscall_desc): Likewise.
633 (syscall_start_syscall): Likewise.
634 (syscall_parse_xml): Likewise.
635 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
636 (init_sysinfo): Rename to...
637 (init_syscalls_info): ...this. Add gdbarch as a parameter.
638 Adjust function to deal with gdbarch.
639 (xml_get_syscall_number): Delete parameter sysinfo. Accept
640 gdbarch as a parameter. Adjust code.
641 (xml_get_syscall_name): Likewise.
642 (xml_list_of_syscalls): Likewise.
643 (set_xml_syscall_file_name): Accept gdbarch as parameter.
644 (get_syscall_by_number): Likewise.
645 (get_syscall_by_name): Likewise.
646 (get_syscall_names): Likewise.
647 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
648 (get_syscall_by_number): Likewise.
649 (get_syscall_by_name): Likewise.
650 (get_syscall_names): Likewise.
651
43f3e411
DE
6522014-11-20 Doug Evans <xdje42@gmail.com>
653
654 Split struct symtab into two: struct symtab and compunit_symtab.
655 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
656 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
657 to "struct compunit_symtab *". All callers updated.
658 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
659 "struct symtab *" argument to "struct compunit_symtab *".
660 All callers updated.
661 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
662 result to "struct compunit_symtab *". All callers updated.
663 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
664 Change result to "struct compunit_symtab *". All callers updated.
665 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
666 hange type to "struct compunit_symtab *". All uses updated.
667 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
668 Change type to "struct compunit_symtab *". All uses updated.
669 * buildsym.c (struct buildsym_compunit): New struct.
670 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
671 (buildsym_compunit): New static global.
672 (finish_block_internal): Update to fetch objfile from
673 buildsym_compunit.
674 (make_blockvector): Delete objfile argument.
675 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
676 debugformat, producer.
677 (start_buildsym_compunit): New function.
678 (free_buildsym_compunit): Renamed from free_subfiles_list.
679 All callers updated.
680 (patch_subfile_names): Rewrite to use buildsym_compunit.
681 (get_compunit_symtab): New function.
682 (get_macro_table): Delete argument comp_dir. All callers updated.
683 (start_symtab): Change result to "struct compunit_symtab *".
684 All callers updated. Create the subfile of the main source file.
685 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
686 (reset_symtab_globals): Update.
687 (end_symtab_get_static_block): Update to use buildsym_compunit.
688 (end_symtab_without_blockvector): Rewrite.
689 (end_symtab_with_blockvector): Change result to
690 "struct compunit_symtab *". All callers updated.
691 Update to use buildsym_compunit. Don't set symtab->dirname,
692 instead set it in the compunit.
693 Explicitly make sure main symtab is first in its list.
694 Set debugformat, producer, blockvector, block_line_section, and
695 macrotable in the compunit.
696 (end_symtab_from_static_block): Change result to
697 "struct compunit_symtab *". All callers updated.
698 (end_symtab, end_expandable_symtab): Ditto.
699 (set_missing_symtab): Change symtab argument to
700 "struct compunit_symtab *". All callers updated.
701 (augment_type_symtab): Ditto.
702 (record_debugformat): Update to use buildsym_compunit.
703 (record_producer): Update to use buildsym_compunit.
704 * buildsym.h (struct subfile) <dirname>: Delete.
705 <producer, debugformat>: Delete.
706 <buildsym_compunit>: New member.
707 (get_compunit_symtab): Declare.
708 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
709 from primary_symtab. Change type to "struct compunit_symtab *".
710 All uses updated.
711 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
712 All callers updated.
713 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
714 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
715 symtab. Change type to "struct compunit_symtab *". All uses updated.
716 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
717 All callers updated.
718 (dw2_find_last_source_symtab): Ditto.
719 (dw2_lookup_symbol): Ditto.
720 (recursively_find_pc_sect_compunit_symtab): Renamed from
721 recursively_find_pc_sect_symtab. Change result to
722 "struct compunit_symtab *". All callers updated.
723 (dw2_find_pc_sect_compunit_symtab): Renamed from
724 dw2_find_pc_sect_symtab. Change result to
725 "struct compunit_symtab *". All callers updated.
726 (get_compunit_symtab): Renamed from get_symtab. Change result to
727 "struct compunit_symtab *". All callers updated.
728 (recursively_compute_inclusions): Change type of immediate_parent
729 argument to "struct compunit_symtab *". All callers updated.
730 (compute_compunit_symtab_includes): Renamed from
731 compute_symtab_includes. All callers updated. Rewrite to compute
732 includes of compunit_symtabs and not symtabs.
733 (process_full_comp_unit): Update to work with struct compunit_symtab.
734 (process_full_type_unit): Ditto.
735 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
736 (dwarf_decode_lines): Remove special case handling of main subfile.
737 (macro_start_file): Delete argument comp_dir. All callers updated.
738 (dwarf_decode_macro_bytes): Ditto.
739 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
740 use struct compunit_symtab.
741 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
742 * jit.c (finalize_symtab): Build compunit_symtab.
743 * jv-lang.c (get_java_class_symtab): Change result to
744 "struct compunit_symtab *". All callers updated.
745 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
746 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
747 comp_dir. Change type to "struct compunit_symtab *".
748 All uses updated.
749 (new_macro_table): Change comp_dir argument to cust,
750 "struct compunit_symtab *". All callers updated.
751 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
752 nr_primary_symtabs. All uses updated.
753 (count_symtabs_and_blocks): Update to handle compunits.
754 (report_command_stats): Update output, "primary symtabs" renamed to
755 "compunits".
756 * mdebugread.c (new_symtab): Change result to
757 "struct compunit_symtab *". All callers updated.
758 (parse_procedure): Change type of search_symtab argument to
759 "struct compunit_symtab *". All callers updated.
760 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
761 separate loop.
762 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
763 symtabs. Change type to "struct compunit_symtab *". All uses updated.
764 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
765 All uses updated.
766 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
767 All uses updated.
768 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
769 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
770 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
771 symtab. Change type to "struct compunit_symtab *". All uses updated.
772 * psymtab.c (psymtab_to_symtab): Change result type to
773 "struct compunit_symtab *". All callers updated.
774 (find_pc_sect_compunit_symtab_from_partial): Renamed from
775 find_pc_sect_symtab_from_partial. Change result type to
776 "struct compunit_symtab *". All callers updated.
777 (lookup_symbol_aux_psymtabs): Change result type to
778 "struct compunit_symtab *". All callers updated.
779 (find_last_source_symtab_from_partial): Ditto.
780 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
781 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
782 and macro_table from compunit.
783 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
784 type to "struct compunit_symtab *". All callers updated.
785 (debug_qf_lookup_symbol): Ditto.
786 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
787 debug_qf_find_pc_sect_symtab, change result type to
788 "struct compunit_symtab *". All callers updated.
789 * symfile.c (allocate_symtab): Delete objfile argument.
790 New argument cust.
791 (allocate_compunit_symtab): New function.
792 (add_compunit_symtab_to_objfile): New function.
793 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
794 Change result type to "struct compunit_symtab *". All uses updated.
795 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
796 Change result type to "struct compunit_symtab *". All uses updated.
797 * symmisc.c (print_objfile_statistics): Compute blockvector count in
798 separate loop.
799 (dump_symtab_1): Update test for primary source symtab.
800 (maintenance_info_symtabs): Update to handle compunit symtabs.
801 (maintenance_check_symtabs): Ditto.
802 * symtab.c (set_primary_symtab): Delete.
803 (compunit_primary_filetab): New function.
804 (compunit_language): New function.
805 (iterate_over_some_symtabs): Change type of arguments "first",
806 "after_last" to "struct compunit_symtab *". All callers updated.
807 Update to loop over symtabs in each compunit.
808 (error_in_psymtab_expansion): Rename symtab argument to cust,
809 and change type to "struct compunit_symtab *". All callers updated.
810 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
811 Change result type to "struct compunit_symtab *". All callers updated.
812 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
813 Change result type to "struct compunit_symtab *". All callers updated.
814 (find_pc_sect_line): Only loop over symtabs within selected compunit
815 instead of all symtabs in the objfile.
816 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
817 <compunit_symtab> New member.
818 <block_line_section>: Moved to compunit_symtab.
819 <locations_valid>: Ditto.
820 <epilogue_unwind_valid>: Ditto.
821 <macro_table>: Ditto.
822 <dirname>: Ditto.
823 <debugformat>: Ditto.
824 <producer>: Ditto.
825 <objfile>: Ditto.
826 <call_site_htab>: Ditto.
827 <includes>: Ditto.
828 <user>: Ditto.
829 <primary>: Delete
830 (SYMTAB_COMPUNIT): New macro.
831 (SYMTAB_BLOCKVECTOR): Update definition.
832 (SYMTAB_OBJFILE): Update definition.
833 (SYMTAB_DIRNAME): Update definition.
834 (struct compunit_symtab): New type. Common members among all source
835 symtabs within a compilation unit moved here. All uses updated.
836 (COMPUNIT_OBJFILE): New macro.
837 (COMPUNIT_FILETABS): New macro.
838 (COMPUNIT_DEBUGFORMAT): New macro.
839 (COMPUNIT_PRODUCER): New macro.
840 (COMPUNIT_DIRNAME): New macro.
841 (COMPUNIT_BLOCKVECTOR): New macro.
842 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
843 (COMPUNIT_LOCATIONS_VALID): New macro.
844 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
845 (COMPUNIT_CALL_SITE_HTAB): New macro.
846 (COMPUNIT_MACRO_TABLE): New macro.
847 (ALL_COMPUNIT_FILETABS): New macro.
848 (compunit_symtab_ptr): New typedef.
849 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
850
005e2509
JB
8512014-11-20 Joel Brobecker <brobecker@adacore.com>
852
853 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
854 if the TYPE_CODE of range_type's base type does not match
855 the TYPE_CODE of encoding_type's base type.
856
2b0f535a
JB
8572014-11-19 Joel Brobecker <brobecker@adacore.com>
858
859 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
860 it starts with '<'.
861
8908fca5
JB
8622014-11-19 Joel Brobecker <brobecker@adacore.com>
863
864 * ada-lang.c (ada_is_redundant_range_encoding): New function.
865 (ada_is_redundant_index_type_desc): New function.
866 (to_fixed_array_type): Ignore parallel XA type if redundant.
867
4a46959e
JB
8682014-11-19 Joel Brobecker <brobecker@adacore.com>
869
870 * ada-lang.c (constrained_packed_array_type): Set the length
871 of the return array as if both bounds where zero if that
872 returned array's index type is dynamic.
873
2acf986b
YQ
8742014-11-19 Yao Qi <yao@codesourcery.com>
875
876 * config/i386/go32.mh (CC): Remove.
877
439247b6
DE
8782014-11-18 Doug Evans <xdje42@gmail.com>
879
880 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
881 updated.
882
4d663531
DE
8832014-11-18 Doug Evans <xdje42@gmail.com>
884
885 * buildsym.c (buildsym_objfile): New static global.
886 (buildsym_comp_dir): New static global.
887 (finish_block_internal): Delete arg objfile. All callers updated.
888 (finish_block): Delete arg objfile. All callers updated.
889 (start_subfile): Delete arg dirname. All callers updated.
890 (patch_subfile_names): Update buildsym_comp_dir.
891 (get_macro_table): Delete arg objfile. All callers updated.
892 (start_symtab): New arg objfile. All callers updated.
893 Rename arg dirname to comp_dir.
894 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
895 (end_symtab_get_static_block): Delete arg objfile. All callers
896 updated.
897 (end_symtab_without_blockvector): Ditto.
898 (end_symtab_with_blockvector): Ditto.
899 (end_symtab_from_static_block): Ditto.
900 (end_symtab): Ditto.
901 (end_expandable_symtab): Ditto.
902 (augment_type_symtab): Ditto.
903 * coffread.c (coff_start_symtab): New arg objfile. All callers
904 updated.
905
8435453b
DE
9062014-11-18 Doug Evans <xdje42@gmail.com>
907
908 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
909 updated.
910
ee6f8984
DE
9112014-11-18 Doug Evans <xdje42@gmail.com>
912
913 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
914 symtab.dirname updated to use it.
915
eb822aa6
DE
9162014-11-18 Doug Evans <xdje42@gmail.com>
917
918 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
919 symtab.objfile updated to use it.
920
98387a29
DE
9212014-11-18 Doug Evans <xdje42@gmail.com>
922
923 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
924
aff08958
DE
9252014-11-18 Doug Evans <xdje42@gmail.com>
926
927 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
928 SYMBOL_OBJFILE.
929 * findvar.c (default_read_var_value): Ditto.
930 * jv-lang.c (add_class_symtab_symbol): Ditto.
931 * parse.c (operator_check_standard): Ditto.
932 * printcmd.c (address_info): Ditto.
933 * symtab.c (fixup_symbol_section): Ditto.
934 (skip_prologue_sal): Ditto.
935 * tracepoint.c (scope_info): Ditto.
936 * valops.c (find_function_in_inferior): Ditto.
937 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
938 * python/py-symbol.c (set_symbol): Ditto.
939
7bab9b58
DE
9402014-11-18 Doug Evans <xdje42@gmail.com>
941
942 * buildsym.c (main_subfile): New static global.
943 (free_subfiles_list): New function.
944 (start_symtab): Set main_subfile.
945 (restart_symtab): Replace init of subfiles, current_subfile with
946 call to free_subfiles_list.
947 (watch_main_source_file_lossage): Use main_subfile.
948 (reset_symtab_globals): Replace init of current_subfile with call
949 to free_subfiles_list.
950 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
951 functions, split out from ...
952 (end_symtab_from_static_block): ... here. Rewrite to call them.
953
f194fefb
DE
9542014-11-18 Doug Evans <xdje42@gmail.com>
955
956 The result of symtab expansion is always a primary symtab.
957 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
958 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
959 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
960 (psymtab_to_symtab): Add comment and assert.
961 (map_matching_symbols_psymtab): Remove unnecessary test for
962 non-primary symtab.
963
34248c3a
DE
9642014-11-15 Doug Evans <xdje42@gmail.com>
965
966 PR symtab/17559
967 * symtab.c (find_pc_line_symtab): New function.
968 * symtab.h (find_pc_line_symtab): Declare.
969 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
970 find_pc_symtab.
971 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
972 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
973 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
974 * tui/tui-win.c (make_visible_with_new_height): Ditto.
975 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
976 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
977
2097ae25
DE
9782014-11-15 Doug Evans <xdje42@gmail.com>
979
980 * symtab.c (expand_symtab_containing_pc): Renamed from
981 find_pc_sect_symtab_via_partial. All callers updated.
982
1ada499f
YQ
9832014-11-15 Yao Qi <yao@codesourcery.com>
984
985 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
986
355e2102
JB
9872014-11-14 Joel Brobecker <brobecker@adacore.com>
988
989 * common/common-defs.h: Move <stdarg.h> #include ahead of
990 <stdio.h> #include.
991
83030110
PA
9922014-11-14 Pedro Alves <palves@redhat.com>
993
994 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
995 [!PHONY_ICONV] (gdb_iconv): New function.
996 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
997
a8719064
DE
9982014-11-13 Doug Evans <dje@google.com>
999
1000 PR symtab/17591
1001 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1002 "(anonymous namespace)".
1003
60f7655a
DE
10042014-11-13 Doug Evans <dje@google.com>
1005
1006 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1007 infinite loop.
1008
5784b3ca
JK
10092014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 * NEWS (maint set target-async): Fix typo.
1012
6218dc4b
PA
10132014-11-12 Pedro Alves <palves@redhat.com>
1014
1015 * infrun.c (enum infwait_states, infwait_state): Delete.
1016
af48d08f
PA
10172014-11-12 Pedro Alves <palves@redhat.com>
1018
1019 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1020 Rewrite stepping over a permanent breakpoint.
1021 (thread_still_needs_step_over, proceed): Don't set
1022 stepping_over_breakpoint for permanent breakpoints.
1023 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1024 single-step breakpoints out of the target on hardware step
1025 targets.
1026 (process_event_stop_test): If stepping a permanent breakpoint
1027 doesn't hit the step-resume breakpoint, delete the step-resume
1028 breakpoint.
1029 (switch_back_to_stepped_thread): Also check if the stepped thread
1030 has advanced already on hardware step targets.
1031 (currently_stepping): Return true if the thread stepped a
1032 breakpoint.
1033
1a853c52
PA
10342014-11-12 Pedro Alves <palves@redhat.com>
1035
1036 Mark locations as permanent, not the whole breakpoint.
1037 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1038 (mark_breakpoints_out): Don't mark permanent breakpoints as
1039 uninserted.
1040 (breakpoint_init_inferior): Use mark_breakpoints_out.
1041 (breakpoint_here_p): Adjust.
1042 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1043 of permanent breakpoints.
1044 (make_breakpoint_permanent): Mark each location as permanent,
1045 instead of marking the breakpoint.
1046 (add_location_to_breakpoint): If the location is permanent, mark
1047 it as such, and as inserted.
1048 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1049 (bp_location_compare, update_global_location_list): Adjust.
1050 (update_breakpoint_locations): Don't make the breakpoint permanent
1051 here.
1052 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1053 breakpoints.
1054 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1055 (struct bp_location) <permanent>: New field.
1056 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1057 reference to bp_permanent.
1058
ae9bb220
PA
10592014-11-12 Pedro Alves <palves@redhat.com>
1060
1061 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1062 * arch-utils.h (default_skip_permanent_breakpoint): New
1063 declaration.
1064 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1065 Install default_skip_permanent_breakpoint as default method.
1066 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1067 (i386_gdbarch_init): Don't install it.
1068 * infrun.c (resume): Assume there's always a
1069 gdbarch_skip_permanent_breakpoint implementation.
1070 * gdbarch.h, gdbarch.c: Regenerate.
1071
015de688
DC
10722014-11-11 Daniel Colascione <dancol@dancol.org>
1073
1074 Warn about cross-PID-namespace debugging.
1075 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1076 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1077 * linux-thread-db.c (check_pid_namespace_match): New function.
1078 (thread_db_inferior_created): Call it.
1079
26a84859
DE
10802014-11-10 Doug Evans <xdje42@gmail.com>
1081
1082 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1083 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1084
712a2e6d
DE
10852014-11-10 Doug Evans <xdje42@gmail.com>
1086
1087 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1088
af3768e9
DE
10892014-11-10 Doug Evans <xdje42@gmail.com>
1090
1091 PR symtab/17564
1092 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1093 (lookup_static_symbol): Move definition to new location and rewrite.
1094 (lookup_symbol_in_objfile): New function.
1095 (lookup_symbol_global_iterator_cb): Call it.
1096
b1f28d99
UW
10972014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1098
1099 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1100
b7a084be
PA
11012014-11-07 Pedro Alves <palves@redhat.com>
1102
1103 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1104 check if we did a "nexti" inside a prologue.
1105 * symtab.c (in_prologue): Delete function.
1106 * symtab.h (in_prologue): Delete declaration.
1107
67be31e5
DE
11082014-11-06 Doug Evans <xdje42@gmail.com>
1109
1110 * symtab.h (lookup_global_symbol): Improve function comment.
1111
08724ab7
DE
11122014-11-06 Doug Evans <xdje42@gmail.com>
1113
1114 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1115 All callers updated.
1116 * symtab.h (lookup_global_symbol): Update decl.
1117 (lookup_static_symbol): Move decl to better location.
1118
d9060ba6
DE
11192014-11-06 Doug Evans <xdje42@gmail.com>
1120
1121 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1122
74016e12
DE
11232014-11-06 Doug Evans <xdje42@gmail.com>
1124
1125 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1126 All callers updated.
1127 (lookup_symbol_in_all_objfiles): Renamed from
1128 lookup_symbol_aux_symtabs. All callers updated.
1129 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1130 All callers updated.
1131 (lookup_symbol_in_objfile_symtabs): Renamed from
1132 lookup_symbol_aux_objfile. All callers updated.
1133
d1a2d36d
DE
11342014-11-06 Doug Evans <xdje42@gmail.com>
1135
1136 * symtab.c (lookup_symbol_in_block): Renamed from
1137 lookup_symbol_aux_block. All callers updated.
1138
24d864bb
DE
11392014-11-06 Doug Evans <xdje42@gmail.com>
1140
1141 * symtab.c (lookup_static_symbol): Renamed from
1142 lookup_static_symbol_aux. All callers updated.
1143 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1144 All callers updated.
1145
358d6ab3
DE
11462014-11-06 Doug Evans <xdje42@gmail.com>
1147
1148 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1149 * block.c (block_lookup_symbol): Use it.
1150 * cp-support.c (make_symbol_overload_list_block): Use it.
1151 * symtab.c (iterate_over_symbols): Use it.
1152
16b2eaa1
DE
11532014-11-06 Doug Evans <xdje42@gmail.com>
1154
1155 * symtab.c (lookup_block_symbol): Moved to ...
1156 * block.c (block_lookup_symbol): ... here and renamed.
1157 All callers updated.
1158 * block.h (block_lookup_symbol): Declare.
1159 * symtab.h (lookup_block_symbol): Delete.
1160
2dd2cd1c
DE
11612014-11-06 Doug Evans <xdje42@gmail.com>
1162
1163 * ada-lang.c (ada_make_symbol_completion_list): Use
1164 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1165 * symtab.c (lookup_objfile_from_block): Ditto.
1166
d4c58915
DE
11672014-11-06 Doug Evans <xdje42@gmail.com>
1168
1169 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1170 TYPE_CODE_STRUCT.
1171
9c1877ea
DE
11722014-11-06 Doug Evans <xdje42@gmail.com>
1173
1174 * objfiles.c (get_objfile_arch): Constify.
1175 * objfiles.h (get_objfile_arch): Update prototype.
1176 * solib.c (solib_global_lookup): Fetch arch from objfile,
1177 not target_gdbarch.
1178
426a4079
SL
11792014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1180
1181 * nios2-tdep.c (wild_insn): Delete.
1182 (profiler_insn, irqentry_insn): Delete.
1183 (nios2_match_sequence): Delete.
1184 (nios2_analyze_prologue): Update comments. Remove matching
1185 of obsolete profiler_insn and irqentry_insn sequences.
1186
ee11262d
AM
11872014-11-05 Alan Modra <amodra@gmail.com>
1188
1189 * charset.c (convert_between_encodings): Shrink obstack using
1190 obstack_blank_fast.
1191 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1192 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1193 to char* before doing pointer arithmetic.
ee11262d 1194
c87e6d00
SM
11952014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1196
1197 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1198
441ef17f
PA
11992014-11-04 Pedro Alves <palves@redhat.com>
1200
1201 * breakpoint.c (breakpoint_thread_match): Delete function.
1202 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1203
e0f52461
SC
12042014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1205
1206 PR c++/17494
1207 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1208 the method args also under EVAL_SKIP when evaluating method
1209 calls under EVAL_SKIP.
1210
a0b4d890
YQ
12112014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1212
1213 * dwarf2loc.c (read_pieced_value): Do big endian
1214 processing only if gdb_regnum is not -1.
1215 (write_pieced_value): Ditto.
1216
12172014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1218
1219 * arm-linux-tdep.c (arm_linux_init_abi): Use
1220 info.byte_order_for_code to choose endianity of breakpoint
1221 instructions snippets.
1222
12232014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1224
1225 * arm-tdep.c (extract_arm_insn): Use
1226 gdbarch_byte_order_for_code to read arm instruction.
1227
e82149ff
DE
12282014-11-02 Doug Evans <xdje42@gmail.com>
1229
1230 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1231
d7ee84f1
DE
12322014-11-02 Doug Evans <xdje42@gmail.com>
1233
1234 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1235 main_subfile before returning.
1236
4f072d17
DE
12372014-10-31 Doug Evans <xdje42@gmail.com>
1238
1239 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1240 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1241
8301c89e
DE
12422014-10-31 Doug Evans <xdje42@gmail.com>
1243
1244 * valops.c (value_cast_pointers): Fix whitespace.
1245 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1246 Ditto.
1247
02be9a71
DE
12482014-10-30 Doug Evans <dje@google.com>
1249
1250 * NEWS: Mention ability add attributes to gdb.Objfile and
1251 gdb.Progspace objects.
1252 * python/py-objfile.c (objfile_object): New member dict.
1253 (objfpy_dealloc): Py_XDECREF dict.
1254 (objfpy_initialize): Initialize dict.
1255 (objfile_getset): Add __dict__.
1256 (objfile_object_type): Set tp_dictoffset member.
1257 * python/py-progspace.c (progspace_object): New member dict.
1258 (pspy_dealloc): Py_XDECREF dict.
1259 (pspy_initialize): Initialize dict.
1260 (pspace_getset): Add __dict__.
1261 (pspace_object_type): Set tp_dictoffset member.
1262
6427bef6
YQ
12632014-10-30 Yao Qi <yao@codesourcery.com>
1264
1265 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1266 replace '\\' with '\\\\'.
1267
f60325be
JB
12682014-10-29 Joel Brobecker <brobecker@adacore.com>
1269
1270 GDB 7.8.1 released.
1271
ab917dfb
PA
12722014-10-29 Pedro Alves <palves@redhat.com>
1273
1274 PR gdb/17408
1275 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1276 instead of assuming a thread with a stepping range is always
1277 stepping.
1278
d3d4baed
PA
12792014-10-29 Pedro Alves <palves@redhat.com>
1280
1281 PR python/17372
1282 * event-top.c (change_line_handler): Call
1283 gdb_rl_callback_handler_remove instead of
1284 rl_callback_handler_remove.
1285 (callback_handler_installed): New global.
1286 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1287 (gdb_rl_callback_handler_reinstall): New functions.
1288 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1289 gdb_rl_callback_handler_install instead of
1290 rl_callback_handler_remove and rl_callback_handler_install.
1291 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1292 instead of rl_callback_handler_remove.
1293 * event-top.h (gdb_rl_callback_handler_remove)
1294 (gdb_rl_callback_handler_install)
1295 (gdb_rl_callback_handler_reinstall): New declarations.
1296 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1297 cleanup function.
1298 (fetch_inferior_event): Install it.
1299 * top.c (gdb_readline_wrapper_line) Call
1300 gdb_rl_callback_handler_remove instead of
1301 rl_callback_handler_remove.
1302 (gdb_readline_wrapper_cleanup): Don't call
1303 rl_callback_handler_install.
1304
6e5d7f39
PA
13052014-10-29 Pedro Alves <palves@redhat.com>
1306
1307 * event-top.c (command_line_handler): Clear the first byte of
1308 linebuffer, when it is first allocated.
1309
551cb6a5
PA
13102014-10-29 Pedro Alves <palves@redhat.com>
1311
1312 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1313 TRY_CATCH.
1314
1e1e619b
PA
13152014-10-29 Pedro Alves <palves@redhat.com>
1316
1317 PR tui/16138
1318 PR tui/17519
1319 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1320 (tui_allowed_p): Delete function.
1321 * tui/tui.c: Include "interps.h".
1322 (tui_enable): Don't use tui_allowed_p. Error out here with
1323 detailed error messages if the TUI is the top level interpreter,
1324 or if output is not a terminal. Use newterm instead of initscr,
1325 and error out if initializing the terminal fails. Also error out if
1326 the terminal doesn't support cursor addressing.
1327 * tui/tui.h (tui_allowed_p): Delete declaration.
1328
6041179a
JB
13292014-10-29 Joel Brobecker <brobecker@adacore.com>
1330
1331 * arm-tdep.c (arm_skip_stack_protector): Return early if
1332 address loaded by first "ldr" instruction does not have
1333 a corresponding minimal symbol. Update comment.
1334
6ae274b7
YQ
13352014-10-29 Yao Qi <yao@codesourcery.com>
1336
1337 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1338 loaded address correctly of ldr instruction.
1339
7f5ef605
PA
13402014-10-28 Pedro Alves <palves@redhat.com>
1341
1342 PR gdb/12623
1343 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1344 field.
1345 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1346 thread's stepped_breakpoint field. Skip if reverse debugging.
1347 Add comment.
1348 (init_thread_stepping_state, handle_signal_stop): Clear the
1349 thread's stepped_breakpoint field.
1350
7d1a114c
PA
13512014-10-27 Pedro Alves <palves@redhat.com>
1352
1353 * remote.c (remote_thread_alive): New, factored out from ...
1354 (remote_thread_alive): ... this.
1355 (remote_update_thread_list): Bail out before deleting threads if
1356 the target returned an empty list, and, the current thread has a
1357 magic/fake ptid.
1358
e5f8a7cc
PA
13592014-10-27 Pedro Alves <palves@redhat.com>
1360
1361 * infrun.c (handle_signal_stop): Also skip handlers when a random
1362 signal arrives while handling a "stepi" or a "nexti". Set the
1363 thread's 'step_after_step_resume_breakpoint' flag.
1364
71e396f9
LM
13652014-10-27 Luis Machado <lgustavo@codesourcery.com>
1366
1367 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1368 (arm_record_ld_st_imm_offset): Reimplement to cover all
1369 load/store cases for ARM opcode 010.
1370 (arm_record_ld_st_multiple): Reimplement to cover all
1371 load/store cases for ARM opcode 100.
1372
3aee438b
DE
13732014-10-26 Doug Evans <xdje42@gmail.com>
1374
1375 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1376
f88cb4b6
DE
13772014-10-26 Doug Evans <xdje42@gmail.com>
1378
1379 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1380 parameter "kind" to "block_index".
1381 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1382 "block_index".
1383 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1384
a023a30f
DE
13852014-10-26 Doug Evans <xdje42@gmail.com>
1386
1387 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1388
4c35218e
DE
13892014-10-26 Doug Evans <xdje42@gmail.com>
1390
1391 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1392 obstack_alloc.
1393
f08e8df3
DE
13942014-10-26 Doug Evans <xdje42@gmail.com>
1395
1396 * parser-defs.h (block_found): Move decl from here ...
1397 * symtab.h (block_found): ... to here.
1398
cf901d3b
DE
13992014-10-26 Doug Evans <xdje42@gmail.com>
1400
1401 * symtab.h (struct field_of_this_result): Fix typo in comment.
1402 (lookup_symbol_in_language): Move function comment here.
1403 (lookup_symbol): Improve function comment.
1404 (basic_lookup_symbol_nonlocal): Ditto.
1405 (lookup_symbol_static, lookup_symbol_global): Ditto.
1406 (lookup_symbol_aux_block): Ditto.
1407 (lookup_language_this): Add function comment.
1408 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1409 function comment.
1410 (lookup_block_symbol): Improve function comment.
1411 (lookup_struct): Fix capitalization in function comment.
1412 (lookup_transparent_type): Add function comment.
1413 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1414 Improve function comment.
1415 (lookup_objfile_from_block): Add function comment.
1416 * symtab.c (lookup_symbol_in_language): Update function comment.
1417 (lookup_symbol, lookup_language_this): Ditto.
1418 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1419 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1420 (basic_lookup_symbol_nonlocal): Ditto.
1421 (lookup_symbol_static, lookup_symbol_global): Ditto.
1422 (lookup_transparent_type, lookup_block_symbol): Ditto.
1423
ff6c39cf
DE
14242014-10-25 Doug Evans <xdje42@gmail.com>
1425
1426 * symtab.c (types_info): Delete forward decl.
1427 (functions_info, variables_info, sources_info): Ditto.
1428 (_initialize_symtab): Rewrite forward decl to use
1429 initialize_file_ftype.
1430
ec201f0c
DE
14312014-10-25 Doug Evans <xdje42@gmail.com>
1432
1433 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1434
ca040673
DE
14352014-10-25 Doug Evans <xdje42@gmail.com>
1436
1437 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1438 of local var child_die.
1439
6f259a23
DB
14402014-10-24 Don Breazeal <donb@codesourcery.com>
1441
1442 * infrun.c (follow_fork_inferior): Update fork message printing
1443 to use target_terminal_ours_for_output instead of
1444 target_terminal_ours, to use _() for all format strings, to print
1445 "vfork" instead of "fork" for vforks, and to add a detach message.
1446 (handle_vfork_child_exec_or_exit): Update message printing to use
1447 target_terminal_ours_for_output instead of target_terminal_ours, to
1448 use _() for all format strings, and to fix some formatting.
1449
09dd9a69
PA
14502014-10-24 Pedro Alves <palves@redhat.com>
1451
1452 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1453 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1454 * config/vax/vax.mh: Delete.
1455 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1456 obsolete configurations section.
1457 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1458 * vax-nat.c: Delete file.
1459
5ab806de
PA
14602014-10-24 Pedro Alves <palves@redhat.com>
1461
1462 * NEWS (Removed targets): Add OS/arch column.
1463
3433cfa5
SC
14642014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1465
1466 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1467 on the arg type of a constructor only if it is of reference type.
1468
96ba4233
SL
14692014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1470
1471 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1472 accessors and constants from nios2 opcodes update.
1473 (nios2_get_next_pc): Likewise.
1474
28153fd3
DE
14752014-10-19 Doug Evans <xdje42@gmail.com>
1476
1477 * gdbthread.h (set_running): Fix comment.
1478 (set_executing, finish_thread_state): Fix comment.
1479
fc9b8e47
DE
14802014-10-18 Doug Evans <xdje42@gmail.com>
1481
1482 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1483
4ffbba72
DE
14842014-10-17 Doug Evans <dje@google.com>
1485
1486 * NEWS: Mention new event gdb.clear_objfiles.
1487 * python/py-event.h (emit_clear_objfiles_event): Clear
1488 * python/py-events.h (events_object): New member clear_objfiles.
1489 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1490 event.
1491 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1492 emit clear_objfiles event.
1493 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1494 function.
1495 (emit_clear_objfiles_event): New function.
1496 (clear_objfiles): New event.
1497 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1498 Declare.
1499 * python/python.c (_initialize_python): Call
1500 gdbpy_initialize_clear_objfiles_event.
1501
d096d8c1
DE
15022014-10-17 Doug Evans <dje@google.com>
1503
1504 * NEWS: Mention new gdb.Objfile.progspace attribute.
1505 * python/py-objfile.c (objfpy_get_progspace): New function.
1506 (objfile_getset): New entry for "progspace".
1507
6c4486e6
PA
15082014-10-17 Pedro Alves <palves@redhat.com>
1509
1510 PR gdb/17471
1511 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1512 returns a copy of the input.
1513 (run_command_1, continue_command, step_1, jump_command)
1514 (signal_command, until_command, advance_command, finish_command)
1515 (attach_command): Adjust and install a cleanup to free the
1516 stripped args.
1517
0ff33695
PA
15182014-10-17 Pedro Alves <palves@redhat.com>
1519
1520 PR gdb/17300
1521 * infcmd.c (continue_1): If continuing all threads in the
1522 foreground, make sure the inferior's terminal settings are put in
1523 effect.
1524
6fdebc3d
PA
15252014-10-17 Pedro Alves <palves@redhat.com>
1526
1527 PR gdb/17472
1528 * annotate.c (annotate_breakpoints_invalid): Use
1529 target_terminal_our_for_output instead of target_terminal_ours.
1530 Give back the terminal to the target.
1531 (annotate_frames_invalid): Likewise.
1532
5842f62a
PA
15332014-10-17 Pedro Alves <palves@redhat.com>
1534
1535 * target.c (enum terminal_state): New enum.
1536 (terminal_state): New global.
1537 (target_terminal_init): New function.
1538 (target_terminal_inferior): Skip if inferior already owns the
1539 terminal.
1540 (target_terminal_ours, target_terminal_ours_for_output): New
1541 functions.
1542 * target.h (target_terminal_init): Convert to function prototype.
1543 (target_terminal_ours_for_output): Convert to function prototype
1544 and tweak comment.
1545 (target_terminal_ours): Convert to function prototype and tweak
1546 comment.
1547 * windows-nat.c (do_initial_windows_stuff): Call
1548 target_terminal_init instead of child_terminal_init_with_pgrp.
1549
32a8097b
PA
15502014-10-17 Pedro Alves <palves@redhat.com>
1551
1552 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1553 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1554 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1555 solib-osf.c.
1556 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1557 * ada-lang.h [__alpha__ && __osf__]
1558 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1559 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1560 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1561 GDB_OSABI_OSF1.
1562 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1563 files.
1564 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1565 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1566 * configure: Regenerate.
1567 * configure.ac: Remove references to osf.
1568 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1569 section. Remove all other references to osf.
1570 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1571 Remove all other references to osf.
1572 * dec-thread.c: Delete file.
1573 * defs.h (GDB_OSABI_OSF1): Delete.
1574 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1575 defined.
1576 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1577 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1578 Delete code.
1579 (unconditionally_kill_inferior)
1580 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1581 * solib-osf.c: Delete file.
1582
80134cf5
PA
15832014-10-17 Pedro Alves <palves@redhat.com>
1584
1585 * remote.c (clear_threads_listing_context): Move higher up, out of
1586 the HAVE_LIBEXPAT guard.
1587
89c7137f
TG
15882014-10-16 Tristan Gingold <gingold@adacore.com>
1589
1590 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1591 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1592 on amd64.
1593
44ee4a52
PA
15942014-10-15 Pedro Alves <palves@redhat.com>
1595
1596 * dec-thread.c (dec_thread_count_gdb_threads)
1597 (dec_thread_add_gdb_thread): Delete.
1598 (dec_thread_update_thread_list): Delete.
1599 (dec_thread_find_new_threads): Rename to ...
1600 (dec_thread_update_thread_list): ... this. Delete GDB-size
1601 threads that are no longer found in dec_thread_list.
1602 (resync_thread_list): Delete.
1603 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1604 resync_thread_list.
1605
ab970af1
PA
16062014-10-15 Pedro Alves <palves@redhat.com>
1607
1608 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1609 * remote.c (remote_update_thread_list): Skip calling prune_threads
1610 if any thread listing method is supported, and instead walk over
1611 the set of remote threads listed, deleting those that are not
1612 found in GDB's thread list.
1613
e8032dde
PA
16142014-10-15 Pedro Alves <palves@redhat.com>
1615
1616 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1617 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1618 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1619 (bsd_uthread_target): Adjust.
1620 * corelow.c (core_open): Adjust.
1621 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1622 (dec_thread_update_thread_list): New function.
1623 (init_dec_thread_ops): Adjust.
1624 * gdbthread.h (prune_threads): New declaration.
1625 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1626 (thread_db_update_thread_list): ... this. Call prune_threads.
1627 (init_thread_db_ops): Adjust.
1628 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1629 (procfs_update_thread_list): ... this. Call prune_threads.
1630 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1631 Adjust.
1632 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1633 (obsd_update_thread_list): ... this. Call prune_threads.
1634 (obsd_add_target): Adjust.
1635 * procfs.c (procfs_target): Adjust.
1636 (procfs_notice_thread): Update comment.
1637 (procfs_find_new_threads): Rename to ...
1638 (procfs_update_thread_list): ... this. Call prune_threads.
1639 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1640 comment.
1641 (ravenscar_wait): Adjust.
1642 (ravenscar_find_new_threads): Rename to ...
1643 (ravenscar_update_thread_list): ... this. Call prune_threads.
1644 (init_ravenscar_thread_ops): Adjust.
1645 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1646 (record_btrace_update_thread_list): ... this. Adjust comment.
1647 (init_record_btrace_ops): Adjust.
1648 * remote.c (remote_threads_info): Rename to ...
1649 (remote_update_thread_list): ... this. Call prune_threads.
1650 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1651 Adjust.
1652 * sol-thread.c (check_for_thread_db): Adjust.
1653 (sol_find_new_threads_callback): Rename to ...
1654 (sol_update_thread_list_callback): ... this.
1655 (sol_find_new_threads): Rename to ...
1656 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1657 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1658 * target-delegates.c: Regenerate.
1659 * target.c (target_find_new_threads): Rename to ...
1660 (target_update_thread_list): ... this.
1661 * target.h (struct target_ops): Rename to_find_new_threads field
1662 to to_update_thread_list.
1663 (target_find_new_threads): Rename to ...
1664 (target_update_thread_list): ... this.
1665 * thread.c (prune_threads): Make extern.
1666 (update_thread_list): Adjust.
1667
6dc54d91
PA
16682014-10-15 Pedro Alves <palves@redhat.com>
1669
1670 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1671 Add describing comment. Return -1 if the qL packet is not
1672 supported.
1673 (struct thread_item, thread_item_t): Move higher up in
1674 the file. Add comments.
1675 (struct threads_parsing_context): Move higher up in
1676 the file, add comments, and remote to ...
1677 (struct threads_listing_context): ... this.
1678 (remote_newthread_step): Don't add the thread to GDB's thread
1679 database here. Instead push it to the thread_listing_context
1680 list.
1681 (remote_find_new_threads): Rename to ...
1682 (remote_get_threads_with_ql): ... this. Add target_ops and
1683 targets_listing_context parameters. Pass down context.
1684 (start_thread): Adjust.
1685 (clear_threads_parsing_context): Rename to ...
1686 (clear_threads_listing_context): ... this.
1687 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1688 remote_threads_info.
1689 (remote_get_threads_with_qthreadinfo): Ditto.
1690 (remote_threads_info): Reimplement.
1691
36728e82
PA
16922014-10-15 Pedro Alves <palves@redhat.com>
1693
1694 * infrun.c (resume): Don't force displaced-stepping for all
1695 single-steps on software single-stepping archs.
1696
34b7e8a6
PA
16972014-10-15 Pedro Alves <palves@redhat.com>
1698
1699 * breakpoint.c (single_step_breakpoints): Delete global.
1700 (insert_single_step_breakpoint): Adjust to store the breakpoint
1701 pointer in the current thread.
1702 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1703 (cancel_single_step_breakpoints): Delete functions.
1704 (breakpoint_has_location_inserted_here): Make extern.
1705 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1706 breakpoint list.
1707 * breakpoint.h (breakpoint_has_location_inserted_here): New
1708 declaration.
1709 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1710 (cancel_single_step_breakpoints): Remove declarations.
1711 * gdbthread.h (struct thread_control_state)
1712 <single_step_breakpoints>: New field.
1713 (delete_single_step_breakpoints)
1714 (thread_has_single_step_breakpoints_set)
1715 (thread_has_single_step_breakpoint_here): New declarations.
1716 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1717 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1718 (singlestep_pc): Delete globals.
1719 (infrun_thread_ptid_changed): Remove references to removed
1720 globals.
1721 (resume_cleanups): Delete the current thread's single-step
1722 breakpoints.
1723 (maybe_software_singlestep): Remove references to removed globals.
1724 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1725 delete_single_step_breakpoints.
1726 (init_wait_for_inferior): Remove references to removed globals.
1727 (delete_thread_infrun_breakpoints): Delete the thread's
1728 single-step breakpoints too.
1729 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1730 single-step breakpoints here.
1731 (delete_stopped_threads_single_step_breakpoints): New function.
1732 (adjust_pc_after_break): Adjust to use
1733 thread_has_single_step_breakpoints_set.
1734 (handle_inferior_event): Remove references to removed globals.
1735 Use delete_stopped_threads_single_step_breakpoints.
1736 (handle_signal_stop): Adjust to per-thread single-step
1737 breakpoints. Swap test order to do cheaper tests first.
1738 (switch_back_to_stepped_thread): Extend debug output. Remove
1739 references to removed globals.
1740 * record-full.c (record_full_wait_1): Adjust to per-thread
1741 single-step breakpoints.
1742 * thread.c (delete_single_step_breakpoints)
1743 (thread_has_single_step_breakpoints_set)
1744 (thread_has_single_step_breakpoint_here): New functions.
1745 (clear_thread_inferior_resources): Also delete the thread's
1746 single-step breakpoints.
1747
5b834a0a
PA
17482014-10-15 Pedro Alves <palves@redhat.com>
1749
1750 * thread.c (delete_thread_breakpoint): New function.
1751 (delete_step_resume_breakpoint)
1752 (delete_exception_resume_breakpoint): Use it.
1753 (delete_at_next_stop): New function.
1754 (clear_thread_inferior_resources): Use delete_at_next_stop.
1755
a1fd2fa5
PA
17562014-10-15 Pedro Alves <palves@redhat.com>
1757
1758 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1759 (breakpoint_inserted_here_p): ... here. Remove special case for
1760 software single-step breakpoints.
1761 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1762 (software_breakpoint_inserted_here_p): ... here. Remove special
1763 case for software single-step breakpoints.
1764 (bp_target_info_copy_insertion_state)
1765 (deprecated_insert_raw_breakpoint)
1766 (deprecated_remove_raw_breakpoint): Delete functions.
1767 * breakpoint.h (deprecated_insert_raw_breakpoint)
1768 (deprecated_remove_raw_breakpoint): Remove declarations.
1769
7c16b83e
PA
17702014-10-15 Pedro Alves <palves@redhat.com>
1771
1772 PR breakpoints/9649
1773 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1774 Delete array globals.
1775 (single_step_breakpoints): New global.
1776 (breakpoint_xfer_memory): Remove special handling for single-step
1777 breakpoints.
1778 (update_breakpoints_after_exec): Delete bp_single_step
1779 breakpoints.
1780 (detach_breakpoints): Remove special handling for single-step
1781 breakpoints.
1782 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1783 (bpstat_stop_status): Add comment.
1784 (bpstat_what, bptype_string, print_one_breakpoint_location)
1785 (adjust_breakpoint_address, init_bp_location): Handle
1786 bp_single_step.
1787 (new_single_step_breakpoint): New function.
1788 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1789 handling for single-step breakpoints.
1790 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1791 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1792 Rewrite.
1793 (detach_single_step_breakpoints, find_single_step_breakpoint):
1794 Delete functions.
1795 (breakpoint_has_location_inserted_here): New function.
1796 (single_step_breakpoint_inserted_here_p): Rewrite.
1797 * breakpoint.h: Remove FIXME.
1798 (enum bptype) <bp_single_step>: New enum value.
1799 (insert_single_step_breakpoint): Update comment.
1800 * infrun.c (resume_cleanups)
1801 (delete_step_thread_step_resume_breakpoint): Remove single-step
1802 breakpoints.
1803 (fetch_inferior_event): Install a cleanup that removes infrun
1804 breakpoints.
1805 (switch_back_to_stepped_thread) <expect thread advanced also>:
1806 Clear step-over info.
1807
0cbcdb96
PA
18082014-10-15 Pedro Alves <palves@redhat.com>
1809
1810 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1811 (delete_thread_infrun_breakpoints): New function, with parts
1812 salvaged from delete_step_resume_breakpoint_callback.
1813 (delete_step_thread_step_resume_breakpoint): Delete.
1814 (for_each_just_stopped_thread_callback_func): New typedef.
1815 (for_each_just_stopped_thread): New function.
1816 (delete_just_stopped_threads_infrun_breakpoints): New function.
1817 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1818 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1819 ... this. Adjust.
1820 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1821
963f9c80
PA
18222014-10-15 Pedro Alves <palves@redhat.com>
1823
1824 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1825 trying to step past a non-steppable watchpoint.
1826 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1827 field.
1828 * infrun.c (struct step_over_info): Add new field
1829 'nonsteppable_watchpoint_p' and adjust comments.
1830 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1831 Adjust.
1832 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1833 (stepping_past_nonsteppable_watchpoint): New function.
1834 (step_over_info_valid_p): Also return true if stepping past a
1835 nonsteppable watchpoint.
1836 (proceed): Adjust call to set_step_over_info. Remove reference to
1837 init_infwait_state.
1838 (init_wait_for_inferior): Remove reference to init_infwait_state.
1839 (waiton_ptid): Delete global.
1840 (struct execution_control_state)
1841 <stepped_after_stopped_by_watchpoint>: Delete field.
1842 (wait_for_inferior, fetch_inferior_event): Always pass
1843 minus_one_ptid to target_wait.
1844 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1845 field.
1846 (init_infwait_state): Delete function.
1847 (handle_inferior_event): Remove infwait_state handling.
1848 (handle_signal_stop) <watchpoints handling>: Adjust after
1849 stepped_after_stopped_by_watchpoint removal. Don't remove
1850 breakpoints here nor set infwait_state. Set the thread's
1851 stepping_over_watchpoint flag, and call keep_going instead.
1852 (keep_going): Handle stepping_over_watchpoint. Adjust
1853 set_step_over_info calls.
1854 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1855 function.
1856
6cc83d2a
PA
18572014-10-15 Pedro Alves <palves@redhat.com>
1858
1859 * infrun.c (step_over_info_valid_p): New function.
1860 (resume): Use step_over_info_valid_p instead of checking the
1861 threads's trap_expected flag.
1862
6979730b
DE
18632014-10-15 Doug Evans <dje@google.com>
1864 Walfred Tedeschi <walfred.tedeschi@intel.com>
1865
1866 PR python/17364
1867 * python/lib/gdb/__init__.py (packages): Add "printer".
1868 * python/lib/gdb/command/bound_registers.py: Moved to ...
1869 * python/lib/gdb/printer/bound_registers.py: ... here.
1870 Add printer to global set of builtin printers. Rename printer from
1871 "bound" to "mpx_bound128".
1872 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1873 registered as global "builtin" printer.
1874 (add_builtin_pretty_printer): New function.
1875 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1876 gdb/printer/__init__.py.
1877
35a49624
IB
18782014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1879
1880 * Makefile.in (SFILES): Remove d-support.c.
1881 (COMMON_OBS): Remove d-support.o.
1882 * d-lang.h (d_parse_symbol): Remove declaration.
1883 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1884 * d-support.c: Remove file.
1885
8fa0c4f8
AA
18862014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1887
1888 * gdb/infrun.c (process_event_stop_test): Apply
1889 gdbarch_addr_bits_remove to longjmp resume address.
1890
3666da81
PA
18912014-10-15 Pedro Alves <palves@redhat.com>
1892
1893 * regformats/microblaze.dat: Delete file.
1894
449aa9df
AKA
18952014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1896
1897 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1898 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1899
ebb8ece2
SC
19002014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1901
1902 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1903 as non-trivial.
1904
82c48ac7
SC
19052014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1906
1907 PR c++/13403
1908 PR c++/15154
1909 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1910 with qualified args.
1911
c40cc657
JB
19122014-10-14 Joel Brobecker <brobecker@adacore.com>
1913
1914 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1915 of the case where the second operand is a pointer.
1916 <BINOP_SUB>: Likewise.
1917
0ea5cda8
SDJ
19182014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1919
1920 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1921 only if it is not NULL.
1922 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1923 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1924 (struct probe_ops) <clear_semaphore>: Likewise.
1925 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1926 not NULL.
1927 (stop_tracing): Likewise, for clear_semaphore.
1928
f7088df3
SDJ
19292014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1930
1931 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1932 using language_c, instead of current_language.
1933
4e1bbde0
DE
19342014-10-13 Doug Evans <dje@google.com>
1935
6ff5a0f6 1936 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1937 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1938 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1939 (pspy_new, pspace_to_pspace_object): Call it.
1940
c780cc2f
JK
19412014-10-13 Miroslav Franc <mfranc@redhat.com>
1942 Jan Kratochvil <jan.kratochvil@redhat.com>
1943
1944 Fix "save breakpoints" for "catch" command.
1945 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1946 newline.
1947
99894e11
JK
19482014-10-12 Miroslav Franc <mfranc@redhat.com>
1949
1950 Fix "save breakpoints" for "disable $bpnum" command.
1951 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1952
3831839c
PA
19532014-10-10 Pedro Alves <palves@redhat.com>
1954
1955 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1956 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1957 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1958 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1959 and been removed.
1960 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1961 * configure.ac: Remove references to IRIX.
1962 * configure.host: Add *-*-irix* to the obsolete hosts section.
1963 Remove all other references to irix.
1964 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1965 Delete files.
1966
cc3afae2
AKA
19672014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1968
1969 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1970 isn't valid, release the tdesc arch data and return NULL.
1971
cdfa0b0a
PA
19722014-10-10 Pedro Alves <palves@redhat.com>
1973
1974 * linux-tdep.c: Include observer.h.
1975 (linux_inferior_data): New global.
1976 (struct linux_info): New structure.
1977 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1978 (get_linux_inferior_data): New functions.
1979 (linux_vsyscall_range): Rename to ...
1980 (linux_vsyscall_range_raw): ... this.
1981 (linux_vsyscall_range): New function; handles caching.
1982 (_initialize_linux_tdep): Register linux_inferior_data. Install
1983 inferior_exit and inferior_appeared observers.
1984
8b9a549d
PA
19852014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Pedro Alves <palves@redhat.com>
1987
1988 PR symtab/14466
1989 * solib-svr4.c (svr4_read_so_list): Rename to ...
1990 (svr4_current_sos_1): ... this and change the function comment.
1991 (svr4_current_sos): New function.
1992
3437254d
PA
19932014-10-10 Pedro Alves <palves@redhat.com>
1994
1995 * arch-utils.c (default_vsyscall_range): New function.
1996 * arch-utils.h (default_vsyscall_range): New declaration.
1997 * gdbarch.sh (vsyscall_range): New hook.
1998 * gdbarch.h, gdbarch.c: Regenerate.
1999 * linux-tdep.c (linux_vsyscall_range): New function.
2000 (linux_init_abi): Install linux_vsyscall_range as
2001 vsyscall_range gdbarch hook.
2002 * memrange.c (address_in_mem_range): New function.
2003 * memrange.h (address_in_mem_range): New declaration.
2004 * symfile-mem.c (find_vdso_size): Delete function.
2005 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2006
31cc0b80
PA
20072014-10-10 Pedro Alves <palves@redhat.com>
2008
2009 * infrun.c (normal_stop): Fix typo in comment.
2010
3e3286a2
SDJ
20112014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2012
2013 PR tdep/9390
2014 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2015 typo when using logical AND to determine instruction type.
2016
fcbdedf8
YQ
20172014-10-09 Yao Qi <yao@codesourcery.com>
2018
2019 * infrun.c (handle_signal_stop): Remove local variable
2020 'printed'.
2021
db984616
SS
20222014-10-08 Stan Shebs <stan@codesourcery.com>
2023
2024 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2025
3ba37e6c
GB
20262014-10-08 Gary Benson <gbenson@redhat.com>
2027
2028 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2029
a442d071
GB
20302014-10-08 Gary Benson <gbenson@redhat.com>
2031
2032 * common/common-defs.h: Include common-exceptions.h.
2033 * exceptions.h: Do not include common-exceptions.h.
2034
6f1947e8
GB
20352014-10-08 Gary Benson <gbenson@redhat.com>
2036
2037 * common/common-defs.h: Include cleanups.h.
2038 * common/common-exceptions.c: Do not include cleanups.h.
2039 * utils.h: Likewise.
2040
c765fdb9
GB
20412014-10-08 Gary Benson <gbenson@redhat.com>
2042
2043 * ada-lang.c: Do not include exceptions.h.
2044 * ada-valprint.c: Likewise.
2045 * amd64-tdep.c: Likewise.
2046 * auto-load.c: Likewise.
2047 * block.c: Likewise.
2048 * break-catch-throw.c: Likewise.
2049 * breakpoint.c: Likewise.
2050 * btrace.c: Likewise.
2051 * c-lang.c: Likewise.
2052 * cli/cli-cmds.c: Likewise.
2053 * cli/cli-interp.c: Likewise.
2054 * cli/cli-script.c: Likewise.
2055 * completer.c: Likewise.
2056 * corefile.c: Likewise.
2057 * corelow.c: Likewise.
2058 * cp-abi.c: Likewise.
2059 * cp-support.c: Likewise.
2060 * cp-valprint.c: Likewise.
2061 * darwin-nat.c: Likewise.
2062 * dwarf2-frame-tailcall.c: Likewise.
2063 * dwarf2-frame.c: Likewise.
2064 * dwarf2loc.c: Likewise.
2065 * dwarf2read.c: Likewise.
2066 * eval.c: Likewise.
2067 * event-loop.c: Likewise.
2068 * event-top.c: Likewise.
2069 * f-valprint.c: Likewise.
2070 * frame-unwind.c: Likewise.
2071 * frame.c: Likewise.
2072 * gdbtypes.c: Likewise.
2073 * gnu-v2-abi.c: Likewise.
2074 * gnu-v3-abi.c: Likewise.
2075 * guile/scm-auto-load.c: Likewise.
2076 * guile/scm-breakpoint.c: Likewise.
2077 * guile/scm-cmd.c: Likewise.
2078 * guile/scm-frame.c: Likewise.
2079 * guile/scm-lazy-string.c: Likewise.
2080 * guile/scm-param.c: Likewise.
2081 * guile/scm-symbol.c: Likewise.
2082 * guile/scm-type.c: Likewise.
2083 * hppa-hpux-tdep.c: Likewise.
2084 * i386-tdep.c: Likewise.
2085 * inf-loop.c: Likewise.
2086 * infcall.c: Likewise.
2087 * infcmd.c: Likewise.
2088 * infrun.c: Likewise.
2089 * interps.c: Likewise.
2090 * interps.h: Likewise.
2091 * jit.c: Likewise.
2092 * linespec.c: Likewise.
2093 * linux-nat.c: Likewise.
2094 * linux-thread-db.c: Likewise.
2095 * m32r-rom.c: Likewise.
2096 * main.c: Likewise.
2097 * memory-map.c: Likewise.
2098 * mi/mi-cmd-break.c: Likewise.
2099 * mi/mi-cmd-stack.c: Likewise.
2100 * mi/mi-interp.c: Likewise.
2101 * mi/mi-main.c: Likewise.
2102 * monitor.c: Likewise.
2103 * nto-procfs.c: Likewise.
2104 * objc-lang.c: Likewise.
2105 * p-valprint.c: Likewise.
2106 * parse.c: Likewise.
2107 * ppc-linux-tdep.c: Likewise.
2108 * printcmd.c: Likewise.
2109 * probe.c: Likewise.
2110 * python/py-auto-load.c: Likewise.
2111 * python/py-breakpoint.c: Likewise.
2112 * python/py-cmd.c: Likewise.
2113 * python/py-finishbreakpoint.c: Likewise.
2114 * python/py-frame.c: Likewise.
2115 * python/py-framefilter.c: Likewise.
2116 * python/py-function.c: Likewise.
2117 * python/py-gdb-readline.c: Likewise.
2118 * python/py-inferior.c: Likewise.
2119 * python/py-infthread.c: Likewise.
2120 * python/py-lazy-string.c: Likewise.
2121 * python/py-linetable.c: Likewise.
2122 * python/py-param.c: Likewise.
2123 * python/py-prettyprint.c: Likewise.
2124 * python/py-symbol.c: Likewise.
2125 * python/py-type.c: Likewise.
2126 * python/py-value.c: Likewise.
2127 * python/python-internal.h: Likewise.
2128 * python/python.c: Likewise.
2129 * record-btrace.c: Likewise.
2130 * record-full.c: Likewise.
2131 * regcache.c: Likewise.
2132 * remote-fileio.c: Likewise.
2133 * remote-mips.c: Likewise.
2134 * remote.c: Likewise.
2135 * rs6000-aix-tdep.c: Likewise.
2136 * rs6000-nat.c: Likewise.
2137 * skip.c: Likewise.
2138 * solib-darwin.c: Likewise.
2139 * solib-dsbt.c: Likewise.
2140 * solib-frv.c: Likewise.
2141 * solib-ia64-hpux.c: Likewise.
2142 * solib-spu.c: Likewise.
2143 * solib-svr4.c: Likewise.
2144 * solib.c: Likewise.
2145 * spu-tdep.c: Likewise.
2146 * stack.c: Likewise.
2147 * stap-probe.c: Likewise.
2148 * symfile-mem.c: Likewise.
2149 * symmisc.c: Likewise.
2150 * target.c: Likewise.
2151 * thread.c: Likewise.
2152 * top.c: Likewise.
2153 * tracepoint.c: Likewise.
2154 * tui/tui-interp.c: Likewise.
2155 * typeprint.c: Likewise.
2156 * utils.c: Likewise.
2157 * valarith.c: Likewise.
2158 * valops.c: Likewise.
2159 * valprint.c: Likewise.
2160 * value.c: Likewise.
2161 * varobj.c: Likewise.
2162 * windows-nat.c: Likewise.
2163 * xml-support.c: Likewise.
2164
484933d1
MR
21652014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2166
2167 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2168 name implies.
2169 (extended_mips16_next_pc): Update accordingly.
2170
ab50adb6
MR
21712014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2172
2173 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2174 function.
2175 (micromips_instruction_is_compact_branch): Likewise.
2176 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2177 or a compact jump, reaching a jump delay slot, or seeing a
2178 second non-prologue instruction.
2179 (micromips_scan_prologue): Also terminate scanning upon seeing a
2180 compact branch or jump, or reaching a branch or jump delay slot.
2181 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2182 or jump delay slot, or seeing a second non-prologue instruction.
2183 (mips32_instruction_has_delay_slot): Retain instruction
2184 examination code only, update arguments accordingly and move
2185 instruction fetch pieces to...
2186 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2187 (micromips_instruction_has_delay_slot): Likewise and to...
2188 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2189 (mips16_instruction_has_delay_slot): Likewise and to...
2190 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2191 (mips_single_step_through_delay): Update accordingly.
2192 (mips_adjust_breakpoint_address): Likewise.
2193
ae790652
MR
21942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2195
2196 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2197 !mustbe32 also return 1 for 32-bit instructions.
2198 (mips16_instruction_has_delay_slot): Likewise. Add an
2199 explanatory comment.
2200
9b807e7b
MR
22012014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2202
2203 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2204 symbols special.
2205
0d5ed153
MR
22062014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2207
2208 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2209 update comments.
2210 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2211 for the breakpoint's address. Don't preinitialize `placed_size'.
2212 (insert_bp_location): Set `reqstd_address' rather than
2213 `placed_address'.
2214 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2215 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2216 address.
2217 (bkpt_remove_location): Likewise.
2218 (deprecated_insert_raw_breakpoint): Likewise.
2219 (deprecated_remove_raw_breakpoint): Likewise.
2220 (find_single_step_breakpoint): Likewise.
2221 * mem-break.c (default_memory_insert_breakpoint): Use
2222 `reqstd_address' for the breakpoint's address. Don't set
2223 `placed_address' or `placed_size' if breakpoint contents couldn't
2224 have been determined.
2225 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2226 the breakpoint's address.
2227 (remote_insert_hw_breakpoint): Likewise. Don't set
2228 `placed_address' or `placed_size' if breakpoint couldn't have been
2229 set.
2230 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2231 `reqstd_address' for the breakpoint's address.
2232 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2233 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2234 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2235 * microblaze-linux-tdep.c
2236 (microblaze_linux_memory_remove_breakpoint): Likewise.
2237 * monitor.c (monitor_insert_breakpoint): Likewise.
2238 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2239 (procfs_insert_hw_breakpoint): Likewise.
2240 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2241 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2242 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2243 * remote-mips.c (mips_insert_breakpoint): Likewise.
2244 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2245
3e871532
LM
22462014-10-03 Luis Machado <lgustavo@codesourcery.com>
2247
2248 * valops.c (value_assign): Check for bit field assignments
2249 before calling architecture-specific register value
2250 conversion functions.
2251
ec48dc8b
PM
22522014-10-03 Pierre Muller <muller@sourceware.org>
2253
2254 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2255
b57bacec
PA
22562014-10-02 Pedro Alves <palves@redhat.com>
2257
2258 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2259 threads_are_executing.
2260 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2261 describing comment.
2262 * gdbthread.h (threads_are_executing): Declare.
2263 (handle_signal_stop) <random signals>: Don't print about the
2264 signal here if stopping.
2265 (end_stepping_range): Don't notify observers here.
2266 (normal_stop): Update the thread list. If stopped by a random
2267 signal or a stepping range ended, notify observers.
2268 * thread.c (threads_executing): New global.
2269 (init_thread_list): Clear 'threads_executing'.
2270 (set_executing): Set or clear 'threads_executing'.
2271 (threads_are_executing): New function.
2272 (update_threads_executing): New function.
2273 (update_thread_list): Use it.
2274
13fd3ff3
PA
22752014-10-02 Pedro Alves <palves@redhat.com>
2276
2277 PR breakpoints/17431
2278 * breakpoint.c (update_breakpoints_after_exec): Don't create
2279 overlay, longjmp, std terminate nor exception breakpoints here.
2280
32990ada
PA
22812014-10-02 Pedro Alves <palves@redhat.com>
2282
2283 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2284 Adjust comments.
2285 * inferior.c (find_inferior_for_program_space): Give preference to
2286 the current inferior.
2287 * inferior.h (find_inferior_for_program_space): Update comment.
2288 * progspace.c (switch_to_program_space_and_thread): Prefer the
2289 current inferior if it's bound to the program space requested. If
2290 the inferior found doesn't have a PID yet, don't bother looking up
2291 a thread.
2292 * progspace.h (switch_to_program_space_and_thread): Adjust
2293 comment.
2294 * thread.c (any_thread_of_process, any_live_thread_of_process):
2295 Give preference to the current thread.
2296
0fec99e8
PA
22972014-10-01 Pedro Alves <palves@redhat.com>
2298
2299 * breakpoint.c (insert_bp_location): Error out if inserting a
2300 software breakpoint at a read-only address.
2301 * target.c (memory_xfer_check_region): New function, factored out
2302 from ...
2303 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2304 ULONGEST.
2305 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2306 against the memory region attributes.
2307
2ddf4301
SM
23082014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2309
2310 * NEWS: Announce new exit-code field in -list-thread-groups
2311 output.
2312 * inferior.c (exit_inferior_1): Don't clear exit code.
2313 (inferior_appeared): Clear exit code.
2314 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2315 code.
2316
5fdeec1d
PA
23172014-10-01 Pedro Alves <palves@redhat.com>
2318
2319 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2320 GENERATED" along with emacs/vi read-only markers.
2321 * regformats/aarch64.dat: Regenerate.
2322 * regformats/arm-with-iwmmxt.dat: Regenerate.
2323 * regformats/arm-with-neon.dat: Regenerate.
2324 * regformats/arm-with-vfpv2.dat: Regenerate.
2325 * regformats/arm-with-vfpv3.dat: Regenerate.
2326 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2327 * regformats/i386/amd64-avx.dat: Regenerate.
2328 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2329 * regformats/i386/amd64-avx512.dat: Regenerate.
2330 * regformats/i386/amd64-linux.dat: Regenerate.
2331 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2332 * regformats/i386/amd64-mpx.dat: Regenerate.
2333 * regformats/i386/amd64.dat: Regenerate.
2334 * regformats/i386/i386-avx-linux.dat: Regenerate.
2335 * regformats/i386/i386-avx.dat: Regenerate.
2336 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2337 * regformats/i386/i386-avx512.dat: Regenerate.
2338 * regformats/i386/i386-linux.dat: Regenerate.
2339 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2340 * regformats/i386/i386-mmx.dat: Regenerate.
2341 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2342 * regformats/i386/i386-mpx.dat: Regenerate.
2343 * regformats/i386/i386.dat: Regenerate.
2344 * regformats/i386/x32-avx-linux.dat: Regenerate.
2345 * regformats/i386/x32-avx.dat: Regenerate.
2346 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2347 * regformats/i386/x32-avx512.dat: Regenerate.
2348 * regformats/i386/x32-linux.dat: Regenerate.
2349 * regformats/i386/x32.dat: Regenerate.
2350 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2351 * regformats/mips-dsp-linux.dat: Regenerate.
2352 * regformats/mips-linux.dat: Regenerate.
2353 * regformats/mips64-dsp-linux.dat: Regenerate.
2354 * regformats/mips64-linux.dat: Regenerate.
2355 * regformats/nios2-linux.dat: Regenerate.
2356 * regformats/rs6000/powerpc-32.dat: Regenerate.
2357 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2358 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2359 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2360 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2361 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2362 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2363 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2364 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2365 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2366 * regformats/s390-linux32.dat: Regenerate.
2367 * regformats/s390-linux32v1.dat: Regenerate.
2368 * regformats/s390-linux32v2.dat: Regenerate.
2369 * regformats/s390-linux64.dat: Regenerate.
2370 * regformats/s390-linux64v1.dat: Regenerate.
2371 * regformats/s390-linux64v2.dat: Regenerate.
2372 * regformats/s390-te-linux64.dat: Regenerate.
2373 * regformats/s390x-linux64.dat: Regenerate.
2374 * regformats/s390x-linux64v1.dat: Regenerate.
2375 * regformats/s390x-linux64v2.dat: Regenerate.
2376 * regformats/s390x-te-linux64.dat: Regenerate.
2377 * regformats/tic6x-c62x-linux.dat: Regenerate.
2378 * regformats/tic6x-c62x.dat: Regenerate.
2379 * regformats/tic6x-c64x-linux.dat: Regenerate.
2380 * regformats/tic6x-c64x.dat: Regenerate.
2381 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2382 * regformats/tic6x-c64xp.dat: Regenerate.
2383
db74e4ba
PA
23842014-10-01 Pedro Alves <palves@redhat.com>
2385
2386 * features/Makefile: Update comments.
2387 (XMLTOC): List all xml files we build C files from.
2388 (clean-cfiles): New rule.
2389
d63f2f84
PA
23902014-10-01 Pedro Alves <palves@redhat.com>
2391
2392 * features/i386/amd64-avx512-linux.c: Regenerate.
2393 * features/i386/amd64-avx512.c: Regenerate.
2394 * features/i386/x32-avx512-linux.c: Regenerate.
2395 * features/i386/x32-avx512.c: Regenerate.
2396
20ad026d
PA
23972014-10-01 Pedro Alves <palves@redhat.com>
2398
2399 * features/Makefile (WHICH): Remove arm-with-m,
2400 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2401
acc9fe45
PA
24022014-10-01 Pedro Alves <palves@redhat.com>
2403
2404 * features/Makefile (clean): New rule.
2405
e001e535
PA
24062014-10-01 Pedro Alves <palves@redhat.com>
2407
2408 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2409 (zmm14h): Add missing end quotes.
2410
bdc14417
PA
24112014-10-01 Pedro Alves <palves@redhat.com>
2412
2413 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2414 * features/aarch64.c: Regenerate.
2415
d83ad864
DB
24162014-09-30 Don Breazeal <donb@codesourcery.com>
2417
2418 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2419 code so as to work with follow_fork_inferior.
2420 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2421 (inf_ttrace_create_inferior): Remove reference to
2422 inf_ttrace_vfork_ppid.
2423 (inf_ttrace_attach): Ditto.
2424 (inf_ttrace_detach): Ditto.
2425 (inf_ttrace_kill): Use current_inferior instead of
2426 inf_ttrace_vfork_ppid.
2427 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2428 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2429 inferior away from the parent.
2430 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2431 target_follow_fork.
2432 (follow_fork_inferior): New function.
2433 (follow_inferior_reset_breakpoints): Make function static.
2434 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2435 * linux-nat.c (linux_child_follow_fork): Move target-independent
2436 code to infrun.c:follow_fork_inferior.
2437
29082443
AA
24382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2439
2440 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2441 * gdbarch.c: Regenerate.
2442 * gdbarch.h: Likewise.
2443 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2444 gdbarch method 'regset_from_core_section'.
2445 (get_core_register_section): Remove handling for the case that
2446 regset == NULL and regset_from_core_section is defined.
2447 (get_core_registers): Drop check for deleted method.
2448 * procfs.c (procfs_do_thread_registers): Adjust comment.
2449
f968fe80
AA
24502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2451
2452 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2453 (linux_nat_make_corefile_notes): Remove.
2454 (linux_target_install_ops): Do not set target method
2455 'make_corefile_notes'.
2456 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2457 Remove field.
2458 (linux_corefile_thread_callback): Instead of args->collect, call
2459 linux_collect_thread_registers.
2460 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2461 NULL unless there is a regset iterator.
2462 (linux_make_corefile_notes_1): Remove.
2463 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2464 by linux_make_corefile_notes.
2465 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2466
174ad59a
AA
24672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2468
2469 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2470 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2471 Remove.
2472 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2473
97094034
AA
24742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475
2476 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2477 (xtensa_iterate_over_regset_sections): New.
2478 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2479
f73d3ce7
AA
24802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2481
2482 * vax-tdep.c (vax_regset_from_core_section): Remove.
2483 (vax_iterate_over_regset_sections): New.
2484 (vax_gdbarch_init): Adjust gdbarch initialization.
2485
cb24567a
AA
24862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487
2488 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2489 (tilegx_regset_from_core_section): Remove.
2490 (tilegx_iterate_over_regset_sections): New.
2491 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2492
e5139de8
AA
24932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2494
2495 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2496 (sparc_iterate_over_regset_sections): New.
2497 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2498 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2499 targets.
2500 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2501 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2502 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2503 target method 'make_corefile_notes'.
2504
c6d41a6f
AA
25052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2508 'sizeof_gregset' and 'sizeof_fpregset'.
2509 * sh-tdep.c (sh_regset_from_core_section): Remove.
2510 (sh_iterate_over_regset_sections): New.
2511 (sh_gdbarch_init): Adjust gdbarch initialization.
2512 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2513 sizeof_fpregset.
2514 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2515 'sizeof_gregset'.
2516
9845a0b5
AA
25172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2518
2519 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2520 (score7_linux_iterate_over_regset_sections): New.
2521 (score_gdbarch_init): Adjust gdbarch initialization.
2522
23ea9aeb
AA
25232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2524
2525 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2526 FreeBSD targets.
2527 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2528 method 'make_corefile_notes'.
2529 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2530 (ppcfbsd_regset_from_core_section): Remove.
2531 (ppcfbsd_iterate_over_regset_sections): New.
2532 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2533 initialization.
2534 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2535 (ppcnbsd_iterate_over_regset_sections): New.
2536 (ppcnbsd_init_abi): Adjust.
2537 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2538 (ppcobsd_iterate_over_regset_sections): New.
2539 (ppcobsd_init_abi): Adjust.
2540 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2541 (rs6000_aix_iterate_over_regset_sections): New.
2542 (rs6000_aix_init_osabi): Adjust.
2543
c5b8d704
AA
25442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545
2546 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2547 (nios2_regset_from_core_section): Remove.
2548 (nios2_iterate_over_regset_sections): New.
2549 (nios2_linux_init_abi): Adjust gdbarch initialization.
2550
3636e608
AA
25512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2552
2553 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2554 (am33_iterate_over_regset_sections): New.
2555 (am33_linux_init_osabi): Adjust gdbarch initialization.
2556
d4036235
AA
25572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2558
2559 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2560 (mips_linux_iterate_over_regset_sections): New.
2561 (mips_linux_init_abi): Adjust gdbarch initialization.
2562 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2563 (mips64obsd_iterate_over_regset_sections): New.
2564 (mips64obsd_init_abi): Adjust.
2565 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2566 (mipsnbsd_iterate_over_regset_sections): New.
2567 (mipsnbsd_init_abi): Adjust.
2568
b61ddd6e
AA
25692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570
2571 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2572 (m88k_iterate_over_regset_sections): New.
2573 (m88k_gdbarch_init): Adjust gdbarch initialization.
2574
55a2906a
AA
25752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576
2577 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2578 (ia64_linux_iterate_over_regset_sections): New.
2579 (ia64_linux_init_abi): Adjust gdbarch initialization.
2580
022c98ab
AA
25812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2582
2583 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2584 (m68kbsd_iterate_over_regset_sections): New.
2585 (m68kbsd_init_abi): Adjust gdbarch initialization.
2586 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2587 (m68k_linux_iterate_over_regset_sections): New.
2588 (m68k_linux_init_abi): Adjust gdbarch initialization.
2589
5fac247f
AA
25902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591
2592 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2593 (m32r_linux_regset_from_core_section): Remove.
2594 (m32r_linux_iterate_over_regset_sections): New.
2595 (m32r_linux_init_abi): Adjust gdbarch initialization.
2596
490496c3
AA
25972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2598
2599 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2600 (amd64obsd_iterate_over_regset_sections): New.
2601 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2602 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2603 Remove.
2604 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2605 regset_from_core_section initialization.
2606 * i386-tdep.c (i386_regset_from_core_section): Remove.
2607 (i386_iterate_over_regset_sections): New.
2608 (i386_gdbarch_init): Adjust gdbarch initialization.
2609 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2610 (i386_iterate_over_regset_sections): New prototype.
2611 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2612 Remove.
2613 (i386obsd_aout_iterate_over_regset_sections): New.
2614 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2615 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2616 targets.
2617 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2618 (amd64fbsd_init_abi): Call fbsd_init_abi.
2619 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2620 (i386fbsd4_init_abi): Call fbsd_init_abi.
2621 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2622 target method 'make_corefile_notes'.
2623 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2624
50c5eb53
AA
26252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626
2627 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2628 (hppa_hpux_iterate_over_regset_sections): New.
2629 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2630 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2631 (hppa_linux_iterate_over_regset_sections): New.
2632 (hppa_linux_init_abi): Adjust.
2633 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2634 (hppanbsd_iterate_over_regset_sections): New.
2635 (hppanbsd_init_abi): Adjust.
2636 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2637 (hppaobsd_iterate_over_regset_sections): New.
2638 (hppaobsd_init_abi): Adjust.
2639
66afae4f
AA
26402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641
2642 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2643 (frv_linux_iterate_over_regset_sections): New.
2644 (frv_linux_init_abi): Adjust gdbarch initialization.
2645
ed09174e
AA
26462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2647
2648 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2649 (armbsd_iterate_over_regset_sections): New prototype.
2650 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2651 (armbsd_iterate_over_regset_sections): New.
2652 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2653 initialization.
2654
dff2166e
AA
26552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2656
2657 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2658 (alpha_linux_iterate_over_regset_sections): New.
2659 (alpha_linux_init_abi): Adjust gdbarch initialization.
2660 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2661 prototype.
2662 (alphanbsd_iterate_over_regset_sections): New prototype.
2663
4108500a
AA
26642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665
2666 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2667 Remove.
2668 (aarch64_linux_iterate_over_regset_sections): New.
2669 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2670
a904c024
AA
26712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * fbsd-tdep.c: New file.
2674 * fbsd-tdep.h: New file.
2675 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2676 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2677 (ALLDEPFILES): Add fbsd-tdep.c.
2678
8f0435f7
AA
26792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680
2681 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2682 parameter.
2683 * gdbarch.h: Regenerate.
2684 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2685 iterator.
2686 (get_core_register_section): Add parameter 'regset' and use it, if
2687 set. Add parameter 'min_size' and verify the bfd section size
2688 against it.
2689 (get_core_registers_cb): Add parameter 'regset' and pass it to
2690 get_core_register section. For the "standard" register sections
2691 ".reg" and ".reg2", set an appropriate default for human_name.
2692 (get_core_registers): Don't abort when the gdbarch has an iterator
2693 but no regset_from_core_section. Add NULL/0 for parameters
2694 'regset'/'min_size' in calls to get_core_register_section.
2695 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2696 'regset' and use it instead of calling the
2697 regset_from_core_section gdbarch method.
2698 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2699 * i386-tdep.c (i386_supply_xstateregset)
2700 (i386_collect_xstateregset, i386_xstateregset): Moved to
2701 i386-linux-tdep.c.
2702 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2703 .reg-xstate.
2704 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2705 core file support only if the regset iterator hasn't been set.
2706 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2707 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2708 Moved from i386-tdep.c and renamed to *_linux*.
2709 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2710 each callback invocation. Allow any .reg-xstate size when reading
2711 from a core file.
2712 * amd64-tdep.c (amd64_supply_xstateregset)
2713 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2714 amd64-linux-tdep.c.
2715 (amd64_regset_from_core_section): Remove.
2716 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2717 install an amd64-specific regset_from_core_section gdbarch method.
2718 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2719 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2720 Moved from amd64-tdep.c and renamed to *_linux*.
2721 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2722 to each callback invocation. Allow any .reg-xstate size when
2723 reading from a core file.
2724 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2725 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2726 each callback invocation.
2727 (arm_linux_init_abi): No longer set the regset_from_core_section
2728 gdbarch method.
2729 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2730 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2731 each callback invocation.
2732 (ppc_linux_init_abi): No longer set the regset_from_core_section
2733 gdbarch method.
2734 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2735 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2736 (s390_regset_from_core_section): Remove.
2737 (s390_iterate_over_regset_sections): Add regset parameter to each
2738 callback invocation.
2739 (s390_gdbarch_init): No longer set the regset_from_core_section
2740 gdbarch method. Drop initialization of deleted tdep fields.
2741
5aa82d05
AA
27422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2743
2744 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2745 (amd64_linux_iterate_over_regset_sections): New.
2746 (amd64_linux_init_abi_common): Don't install the regset section
2747 list, but the new iterator in gdbarch.
2748 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2749 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2750 (arm_linux_iterate_over_regset_sections): ...here. New function.
2751 (arm_linux_init_abi): Set iterator instead of section list.
2752 * corelow.c (get_core_registers_cb): New function, logic moved
2753 from...
2754 (get_core_registers): ...loop body here. Use new iterator method
2755 instead of walking through the regset section list.
2756 * gdbarch.sh: Remove 'core_regset_sections'. New method
2757 'iterate_over_regset_sections'. New typedef
2758 'iterate_over_regset_sections_cb'.
2759 * gdbarch.c: Regenerate.
2760 * gdbarch.h: Likewise.
2761 * i386-linux-tdep.c (i386_linux_regset_sections)
2762 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2763 Remove.
2764 (i386_linux_iterate_over_regset_sections): New.
2765 (i386_linux_init_abi): Don't choose a regset section list, but
2766 install new iterator in gdbarch.
2767 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2768 (linux_collect_regset_section_cb): New function, logic moved
2769 from...
2770 (linux_collect_thread_registers): ...loop body here. Use iterator
2771 method instead of walking through list.
2772 (linux_make_corefile_notes_1): Check for presence of iterator
2773 method instead of regset section list.
2774 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2775 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2776 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2777 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2778 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2779 (ppc_linux_init_abi): Don't choose from above regset section
2780 lists, but install new iterator in gdbarch.
2781 * regset.h (struct core_regset_section): Remove.
2782 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2783 have_linux_v1, have_linux_v2, and have_tdb.
2784 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2785 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2786 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2787 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2788 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2789 (s390_iterate_over_regset_sections): ...here. New function. Use
2790 new tdep fields.
2791 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2792 regset section lists, but install new iterator.
2793
2eca4a8d
JK
27942014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2797
a73c2b56
SM
27982014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2799
2800 * progspace.c (print_program_space): Don't prune program spaces
2801 before printing them.
2802
03d46957
PA
28032014-09-25 Pedro Alves <palves@redhat.com>
2804
2805 * infrun.c (user_visible_resume_ptid): Don't check
2806 singlestep_breakpoints_inserted_p.
2807
e558d7c1
PA
28082014-09-25 Pedro Alves <palves@redhat.com>
2809
2810 * breakpoint.c (should_be_inserted): Add debug output.
2811
7f89fd65
PA
28122014-09-25 Pedro Alves <palves@redhat.com>
2813
2814 * infrun.c (stepping_past_instruction_at)
2815 (clear_exit_convenience_vars): Point at infrun.h instead of
2816 inferior.h.
2817 (handle_signal_stop): Fix typo.
2818
b7576e5c
YQ
28192014-09-24 Yao Qi <yao@codesourcery.com>
2820
2821 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2822 bitmask.
2823
9a6cf368
GB
28242014-09-22 Gary Benson <gbenson@redhat.com>
2825
2826 * target.c (target_stop): Updated comment.
2827
03f4463b
GB
28282014-09-22 Gary Benson <gbenson@redhat.com>
2829
2830 * target/target.h (target_stop_ptid): Renamed as...
2831 (target_stop_and_wait): New function. Updated comment.
2832 All uses updated.
2833 (target_continue_ptid): Renamed as...
2834 (target_continue_no_signal): New function. Updated comment.
2835 All uses updated.
2836
a25a5a45
PA
28372014-09-22 Pedro Alves <palves@redhat.com>
2838
2839 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2840 and "auto" merged.
2841 * breakpoint.c (enum ugll_insert_mode): New enum.
2842 (always_inserted_mode): Now a plain boolean.
2843 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2844 (breakpoints_always_inserted_mode): Delete.
2845 (breakpoints_should_be_inserted_now): New function.
2846 (insert_breakpoints): Pass UGLL_INSERT to
2847 update_global_location_list instead of calling
2848 insert_breakpoint_locations manually.
2849 (create_solib_event_breakpoint_1): New, factored out from ...
2850 (create_solib_event_breakpoint): ... this.
2851 (create_and_insert_solib_event_breakpoint): Use
2852 create_solib_event_breakpoint_1 instead of calling
2853 insert_breakpoint_locations manually.
2854 (update_global_location_list): Change parameter type from boolean
2855 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2856 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2857 (update_global_location_list_nothrow): Change parameter type from
2858 boolean to enum ugll_insert_mode.
2859 (_initialize_breakpoint): "breakpoint always-inserted" option is
2860 now a boolean command. Update help text.
2861 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2862 (breakpoints_should_be_inserted_now): New declaration.
2863 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2864 Remove breakpoints_always_inserted_mode check.
2865 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2866 * remote.c (remote_start_remote): Likewise.
2867
04086b45
PA
28682014-09-22 Pedro Alves <palves@redhat.com>
2869
2870 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2871 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2872 Instead, pass UGLL_INSERT to update_global_location_list.
2873 (update_global_location_list): Change parameter type from boolean
2874 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2875 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2876 (create_solib_event_breakpoint_1): New, factored out from ...
2877 (create_solib_event_breakpoint): ... this.
2878 (create_and_insert_solib_event_breakpoint): Use
2879 create_solib_event_breakpoint_1 instead of calling
2880 insert_breakpoint_locations manually.
2881 (update_global_location_list): Handle UGLL_INSERT.
2882
44702360
PA
28832014-09-22 Pedro Alves <palves@redhat.com>
2884
2885 * breakpoint.c (enum ugll_insert_mode): New enum.
2886 (update_global_location_list)
2887 (update_global_location_list_nothrow): Change parameter type from
2888 boolean to enum ugll_insert_mode. All callers adjusted.
2889
93c6145a
JB
28902014-09-19 Joel Brobecker <brobecker@adacore.com>
2891
2892 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2893 SystemTap support in GDB.
2894
89a5711c
DB
28952014-09-19 Don Breazeal <donb@codesourcery.com>
2896
2897 * linux-nat.c (linux_handle_extended_wait): Call
2898 linux_ptrace_get_extended_event.
2899 (wait_lwp): Call linux_is_extended_waitstatus.
2900 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2901 and linux_is_extended_waitstatus.
2902 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2903 linux_ptrace_get_extended_event.
2904 (linux_ptrace_get_extended_event): New function.
2905 (linux_is_extended_waitstatus): New function.
2906 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2907 (linux_is_extended_waitstatus): New declarations.
2908
c3b7b696
YQ
29092014-09-19 Yao Qi <yao@codesourcery.com>
2910
2911 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2912 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2913 comments. Callers update.
2914 (dwarf_decode_lines): Likewise.
2915 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2916 comments. Skip the line table if 'lowpc' is greater than
2917 'address'. Don't check
2918 dwarf2_per_objfile->has_section_at_zero.
2919
2b4fd423
DE
29202014-09-18 Doug Evans <dje@google.com>
2921
2922 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2923 * python/py-symtab.c (stpy_get_producer): New function.
2924 (symtab_object_getset): Add "producer" attribute.
2925
5e43d467
UW
29262014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2927
2928 PR gdb/17384
2929 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2930 (do_captured_read_memory_integer): Remove.
2931 (safe_read_memory_integer): Use target_read_memory directly instead
2932 of catching errors in do_captured_read_memory_integer.
2933
04e79979
MR
29342014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2935
2936 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2937 not gdb/doc.
2938
76aeec5b
SDJ
29392014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2940
2941 * objc-lang.c (find_implementation_from_class): Remove dead code.
2942
2f693f9d
SDJ
29432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2944
2945 PR cli/7233
2946 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2947 "fprintf_unfiltered (gdb_stdlog...)".
2948
bb9d5f81
PP
29492014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2950
2951 PR breakpoints/12526
2952 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2953 val_bitsize.
2954 * breakpoint.c (watch_command_1): Use these fields to retain
2955 bitfield information.
2956 (extract_bitfield_from_watchpoint_value): New function.
2957 (watchpoint_check): Use it.
2958 (update_watchpoint): Use it. Optimize the address and length of a
2959 HW watchpoint pointing to a bitfield.
2960 * value.h (unpack_value_bitfield): New prototype.
2961 * value.c (unpack_value_bitfield): Make extern.
2962
05db5edd
ST
29632014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2964
2965 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2966 x86-dregs.o.
2967 * gnu-nat.c (inf_threads): New function.
2968 * gnu-nat.h (inf_threads_ftype): New typedef.
2969 (inf_threads): New declaration.
2970 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2971 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2972 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2973 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2974 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2975 (i386_gnu_dr_get_control): New functions.
2976 (reg_addr): New structure.
2977 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2978 i386 debugging register hooks.
2979 * NEWS: Mention this.
2980
5a578da5
OJ
29812014-08-13 Omair Javaid <omair.javaid@linaro.org>
2982
2983 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2984 vector data transfer instructions.
2985 (arm_record_coproc_data_proc): Updated.
2986
f20f80dd
OJ
29872014-08-13 Omair Javaid <omair.javaid@linaro.org>
2988
2989 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2990 arm_record_exreg_ld_st_insn.
2991 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2992 load/store insns.
2993
851f26ae
OJ
29942014-08-13 Omair Javaid <omair.javaid@linaro.org>
2995
2996 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2997 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2998 processing instructions.
2999
1e1b6563
OJ
30002014-08-13 Omair Javaid <omair.javaid@linaro.org>
3001
3002 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3003 for advance SIMD struct ld/st insn.
3004 (thumb2_record_decode_insn_handler): Replace stub handler with
3005 thumb2_record_asimd_struct_ld_st.
3006
60cc5e93
OJ
30072014-08-13 Omair Javaid <omair.javaid@linaro.org>
3008
3009 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3010 for asimd, vfp and coprocessor insns.
3011 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3012 and coprocessor insns.
3013 (thumb2_record_coproc_insn): New function.
3014 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3015 handlers.
3016 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3017 opcode 110 insns.
3018
81219e53
DE
30192014-09-13 Doug Evans <xdje42@gmail.com>
3020
3021 * NEWS: Mention new "queue-signal" command.
3022 * infcmd.c (queue_signal_command): New function.
3023 (_initialize_infcmd): Add new queue-signal command.
3024
d36bf488
DE
30252014-09-13 Doug Evans <xdje42@gmail.com>
3026
3027 * linux-nat.c (wait_lwp): Add debugging printf.
3028 (linux_nat_wait_1): Ditto.
3029
f37f681c
PA
30302014-09-12 Pedro Alves <palves@redhat.com>
3031
3032 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3033 (create_and_insert_solib_event_breakpoint): New functions.
3034 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3035 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3036 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3037 (remove_dbx_link_breakpoint): Delete function.
3038 (insert_dbx_link_bpt_in_file): Use
3039 create_and_insert_solib_event_breakpoint instead of
3040 deprecated_insert_raw_breakpoint.
3041 (procfs_wait): Don't check whether we hit __dbx_link here.
3042 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3043 here.
3044 * solib-irix.c (base_breakpoint): Delete global.
3045 (disable_break): Delete function.
3046 (enable_break): Use create_solib_event_breakpoint
3047 instead of deprecated_insert_raw_breakpoint.
3048 (irix_solib_handle_event): New function.
3049 (irix_solib_create_inferior_hook): Don't run the target or disable
3050 the mapping-complete breakpoint here.
3051 (_initialize_irix_solib): Install irix_solib_handle_event as
3052 so_ops->handle_event hook.
3053
9d9bf2df
EBM
30542014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3055 Ulrich Weigand  <uweigand@de.ibm.com>
3056
3057 PR tdep/17379
3058 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3059 instead of read_memory_unsigned_integer.
3060
b006a80e
GB
30612014-09-12 Gary Benson <gbenson@redhat.com>
3062
3063 * nat/linux-waitpid.c: Include common-defs.h.
3064 [GDBSERVER]: Add FIXME comment.
3065 [!GDBSERVER]: Don't include defs.h or signal.h.
3066 (linux_debug) [!GDBSERVER]: Remove empty block.
3067
296b1496
GB
30682014-09-12 Gary Benson <gbenson@redhat.com>
3069
3070 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3071 Don't include defs.h or server.h.
3072
53f81362
GB
30732014-09-12 Gary Benson <gbenson@redhat.com>
3074
3075 * nat/linux-btrace.c: Include common-defs.h.
3076 Don't include defs.h, server.h or gdbthread.h.
3077 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3078
727605ca
GB
30792014-09-12 Gary Benson <gbenson@redhat.com>
3080
3081 * common/agent.c: Include common-defs.h.
3082 Don't include defs.h or server.h.
3083 * common/buffer.c: Likewise.
3084 * common/common-debug.c: Likewise.
3085 * common/common-utils.c: Likewise.
3086 * common/errors.c: Likewise.
3087 * common/filestuff.c: Likewise.
3088 * common/format.c: Likewise.
3089 * common/gdb_vecs.c: Likewise.
3090 * common/print-utils.c: Likewise.
3091 * common/ptid.c: Likewise.
3092 * common/rsp-low.c: Likewise.
3093 * common/signals.c: Likewise.
3094 * common/vec.c: Likewise.
3095 * common/xml-utils.c: Likewise.
3096 * nat/linux-osdata.c: Likewise.
3097 * nat/linux-procfs.c: Likewise.
3098 * nat/linux-ptrace.c: Likewise.
3099 * nat/mips-linux-watch.c: Likewise.
3100 * target/waitstatus.c: Likewise.
3101
361c8ade
GB
31022014-09-12 Tom Tromey <tromey@redhat.com>
3103 Gary Benson <gbenson@redhat.com>
3104
3105 * common/common-regcache.h: New file.
3106 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3107 * regcache.h: Include common-regcache.h.
3108 (regcache_read_pc): Don't declare.
3109 * regcache.c (get_thread_regcache_for_ptid): New function.
3110 * nat/linux-btrace.c: Don't include regcache.h.
3111 Include common-regcache.h.
3112 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3113
a01cbb49
TS
31142014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3115
3116 * regcache.h (struct regset): Declare.
3117
98880d46
PA
31182014-09-11 Pedro Alves <palves@redhat.com>
3119
3120 PR gdb/17347
3121 * main.c: Include "infrun.h".
3122 (catch_command_errors, catch_command_errors_const): Wait for the
3123 foreground command to complete.
3124 * top.c (maybe_wait_sync_command_done): New function, factored out
3125 from ...
3126 (maybe_wait_sync_command_done): ... here.
3127 * top.h (maybe_wait_sync_command_done): New declaration.
3128
bd9269f7
GB
31292014-09-11 Tom Tromey <tromey@redhat.com>
3130 Gary Benson <gbenson@redhat.com>
3131
3132 * common/symbol.h: New file.
3133 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3134 * minsyms.c (find_minimal_symbol_address): New function.
3135 * common/agent.c: Include common/symbol.h.
3136 [!GDBSERVER]: Don't include objfiles.h.
3137 (agent_look_up_symbols): Use find_minimal_symbol_address.
3138
f8c1d06b
GB
31392014-09-11 Gary Benson <gbenson@redhat.com>
3140
3141 * target/target.h (target_stop_ptid, target_continue_ptid):
3142 Declare.
3143 * target.c (target_stop_ptid, target_continue_ptid): New
3144 functions.
3145 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3146 (agent_run_command): Always use target_stop_ptid and
3147 target_continue_ptid.
3148
721ec300
GB
31492014-09-11 Tom Tromey <tromey@redhat.com>
3150 Gary Benson <gbenson@redhat.com>
3151
3152 * target/target.h: New file.
3153 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3154 * target.h: Include target/target.h.
3155 (target_read_memory, target_write_memory): Don't declare.
3156 * target.c (target_read_uint32): New function.
3157 * common/agent.c: Include target/target.h.
3158 [!GDBSERVER]: Don't include target.h.
3159 (helper_thread_id): Type changed to uint32_t.
3160 (agent_get_helper_thread_id): Use target_read_uint32.
3161 (agent_run_command): Always use target_read_memory and
3162 target_write_memory.
3163 (agent_capability): Type changed to uint32_t.
3164 (agent_capability_check): Use target_read_uint32.
3165
c5e92cca
GB
31662014-09-11 Gary Benson <gbenson@redhat.com>
3167
3168 * common/common-debug.h (show_debug_regs): Declare.
3169 * common/common-debug.c (show_debug_regs): Define.
3170 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3171 all uses with show_debug_regs. Replace all uses that considered
3172 debug_hw_points as a multi-value integer with straight boolean
3173 uses.
3174 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3175 with show_debug_regs.
3176 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3177 all uses with show_debug_regs.
3178 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3179 uses with show_debug_regs.
3180
eeef931a
UW
31812014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3182
3183 * findvar.c (address_from_register): Handle targets requiring
3184 a special conversion routine even for plain pointer types.
3185
8efa9855
UW
31862014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3187
3188 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3189 (store_register): Do not call exec_one_dummy_insn.
3190
eb479039
JB
31912014-09-10 Joel Brobecker <brobecker@adacore.com>
3192
3193 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3194 dereference it first. Use value_enclosing_type instead of
3195 value_type.
3196 (ada_array_length): Likewise.
3197
deede10c
JB
31982014-09-10 Joel Brobecker <brobecker@adacore.com>
3199
3200 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3201 Adjust function implementation and documentation accordingly.
3202 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3203 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3204 Update call to ada_value_ptr_subscript.
3205
7828a5f5
JB
32062014-09-10 Joel Brobecker <brobecker@adacore.com>
3207
3208 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3209 instead of VAL's type.
3210
35782f14
JB
32112014-09-10 Joel Brobecker <brobecker@adacore.com>
3212
3213 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3214
d342a0da
DE
32152014-09-09 Doug Evans <xdje42@gmail.com>
3216
3217 PR guile/17367
3218 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3219 last parameter to pkg-config, not first.
3220 * configure.ac: Pass --with-guile provided pkg-config path to
3221 GDB_GUILE_PROGRAM_NAMES.
3222 * configure: Regenerate.
3223
b4a3d263
GKB
32242014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3225
3226 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3227 Bertazi".
3228
6e466374
MR
32292014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3230
3231 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3232 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3233 the list of sections determining GDB_OSABI_IRIX.
3234
a1ada89a
JH
32352014-09-09 James Hogan <james.hogan@imgtec.com>
3236
3237 * MAINTAINERS (Write After Approval): Add "James Hogan".
3238
86db008d
JH
32392014-09-09 James Hogan <james.hogan@imgtec.com>
3240
3241 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3242
72fde3df
JB
32432014-09-09 Joel Brobecker <brobecker@adacore.com>
3244
3245 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3246
92d8d229
DE
32472014-09-08 Doug Evans <xdje42@gmail.com>
3248
3249 PR 17247
3250 * guile.c: #include <signal.h>.
3251 (_initialize_guile): Block SIGCHLD while initializing Guile.
3252
3253 Replaces the following, which is reverted.
3254
3255 2014-07-26 Doug Evans <xdje42@gmail.com>
3256
3257 PR 17185
3258 * configure.ac: Add check for header gc/gc.h.
3259 Add check for function setenv.
3260 * configure: Regenerate.
3261 * config.in: Regenerate.
3262 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3263
d81412aa
DE
32642014-09-08 Doug Evans <xdje42@gmail.com>
3265
3266 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3267 with named constant. Fix style of pointer comparison.
3268 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3269
a9f116cb
GKB
32702014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3271
3272 PR gdb/17035
3273 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3274 decide whether we display the command on "show user".
3275 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3276 printing command name.
3277 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3278 * cli/cli-decode.c (cli_user_command_p): Create helper function
3279 to verify whether cmd_list_element is a user-defined command.
3280
c75bd3a2
JK
32812014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3282
3283 PR python/17355
3284 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3285 Fix goto out of TRY_CATCH.
3286
faa42425 32872014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3288 Tom Tromey <tromey@redhat.com>
faa42425
DE
3289
3290 PR 15276
3291 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3292 $_any_caller_matches.
3293 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3294 * python/lib/gdb/function/caller_is.py: New file.
3295
0d41ba00
DE
32962014-09-06 Doug Evans <xdje42@gmail.com>
3297
3298 * infcmd.c (program_info): Fix typo.
3299
474ca4f6
SDJ
33002014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3301
3302 PR gdb/17235
3303 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3304 'number'. New variable 'has_digit'. Rewrite code to deal with
3305 subexpressions on SDT probes.
3306
ebf13736
PA
33072014-09-04 Pedro Alves <palves@redhat.com>
3308
3309 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3310 the input is only one character long.
3311
eb0b0463
SDJ
33122014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3313
3314 PR fortran/17237
3315 * f-valprint.c (f_val_print): Specify the correct print option to
3316 use when printing integer values.
3317
5ee44bfa
GB
33182014-09-04 Gary Benson <gbenson@redhat.com>
3319
3320 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3321 Remove code to cope with LWPs wrapped as PIDs.
3322 Add assertions to ensure no wrapped LWPs are passed.
3323
4875ffdb
PA
33242014-09-04 Pedro Alves <palves@redhat.com>
3325
3326 * value.c (value_ranges_copy_adjusted): New function, factored out
3327 from ...
3328 (value_contents_copy_raw): ... here.
3329 (unpack_value_bits_as_long_1): Rename back to ...
3330 (unpack_bits_as_long): ... this. Remove 'original_value' and
3331 'result' parameters. Change return type to LONGEST.
3332 (unpack_value_bits_as_long): Delete.
3333 (unpack_value_field_as_long_1): Delete.
3334 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3335 (unpack_value_bitfield): New function.
3336 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3337 (value_fetch_lazy): Use unpack_value_bitfield.
3338 * value.h (unpack_value_bits_as_long): Delete declaration.
3339
5f3b99cf
SS
33402014-09-03 Sasha Smundak <asmundak@google.com>
3341
3342 * python/py-frame.c (frapy_read_register): New function.
3343
ac740bc7
JH
33442014-09-03 James Hogan <james.hogan@imgtec.com>
3345
3346 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3347 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3348
7d793aa9
SDJ
33492014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3350
3351 PR python/16699
3352 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3353 function.
3354 (add_cmd): Set "completer_handle_brkchars" to NULL.
3355 * cli/cli-decode.h (struct cmd_list_element)
3356 <completer_handle_brkchars>: New field.
3357 * command.h (completer_ftype_void): New typedef.
3358 (set_cmd_completer_handle_brkchars): New prototype.
3359 * completer.c (set_gdb_completion_word_break_characters): New
3360 function.
3361 (complete_line_internal): Call "completer_handle_brkchars"
3362 callback from command.
3363 * completer.h: Include "command.h".
3364 (set_gdb_completion_word_break_characters): New prototype.
3365 * python/py-cmd.c (cmdpy_completer_helper): New function.
3366 (cmdpy_completer_handle_brkchars): New function.
3367 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3368 (cmdpy_init): Set completer_handle_brkchars to
3369 cmdpy_completer_handle_brkchars.
3370
97ea6506
GB
33712014-09-03 Gary Benson <gbenson@redhat.com>
3372
3373 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3374 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3375 Loop conditions changed to equivalent form.
3376 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3377 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3378 ALL_DEBUG_ADDRESS_REGISTERS.
3379
d1437815
JB
33802014-09-03 Joel Brobecker <brobecker@adacore.com>
3381
3382 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3383 description fix.
3384
9b94fcf1
DE
33852014-09-02 Doug Evans <dje@google.com>
3386
3387 * typeprint.c (find_global_typedef): Fix comment.
3388
df7e5265
GB
33892014-09-02 Gary Benson <gbenson@redhat.com>
3390
3391 * i386-nat.h: Renamed as...
3392 * x86-nat.h: New file. All type, function and variable name
3393 prefixes changed from "i386_" to "x86_". All references updated.
3394 * i386-nat.c: Renamed as...
3395 * x86-nat.c: New file. All type, function and variable name
3396 prefixes changed from "i386_" to "x86_". All references updated.
3397 * common/i386-xstate.h: Renamed as...
3398 * common/x86-xstate.h: New file. All type, function and variable
3399 name prefixes changed from "i386_" to "x86_". All references
3400 updated.
3401 * nat/i386-cpuid.h: Renamed as...
3402 * nat/x86-cpuid.h: New file. All type, function and variable name
3403 prefixes changed from "i386_" to "x86_". All references updated.
3404 * nat/i386-gcc-cpuid.h: Renamed as...
3405 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3406 name prefixes changed from "i386_" to "x86_". All references
3407 updated.
3408 * nat/i386-dregs.h: Renamed as...
3409 * nat/x86-dregs.h: New file. All type, function and variable name
3410 prefixes changed from "i386_" to "x86_". All references updated.
3411 * nat/i386-dregs.c: Renamed as...
3412 * nat/x86-dregs.c: New file. All type, function and variable name
3413 prefixes changed from "i386_" to "x86_". All references updated.
3414
1c3569d4
MR
34152014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3416
3417 * varobj.c (_initialize_varobj): Move to the end of file.
3418
ff55e1b5
GB
34192014-08-29 Gary Benson <gbenson@redhat.com>
3420
3421 * common/common-exceptions.h: New file.
3422 * common/common-exceptions.c: Likewise.
3423 * Makefile.in (SFILES): Add common/common-exceptions.c.
3424 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3425 (COMMON_OBS): Add common-exceptions.o.
3426 (common-exceptions.o): New rule.
3427 * exceptions.h (common-exceptions.h): Include.
3428 (gdb_setjmp.h): Do not include.
3429 (return_reason): Moved to common-exceptions.h.
3430 (enum return_reason): Likewise.
3431 (RETURN_MASK): Likewise.
3432 (typedef return_mask): Likewise.
3433 (enum errors): Likewise.
3434 (struct gdb_exception): Likewise.
3435 (exceptions_state_mc_init): Likewise.
3436 (exceptions_state_mc_action_iter): Likewise.
3437 (exceptions_state_mc_action_iter_1): Likewise.
3438 (TRY_CATCH): Likewise.
3439 (throw_exception): Likewise.
3440 (throw_verror): Likewise.
3441 (throw_vquit): Likewise.
3442 (throw_error): Likewise.
3443 (throw_quit): Likewise.
3444 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3445 (enum catcher_action): Likewise.
3446 (struct catcher): Likewise.
3447 (current_catcher): Likewise.
3448 (catcher_list_size): Likewise.
3449 (exceptions_state_mc_init): Likewise.
3450 (catcher_pop): Likewise.
3451 (exceptions_state_mc): Likewise.
3452 (exceptions_state_mc_action_iter): Likewise.
3453 (exceptions_state_mc_action_iter_1): Likewise.
3454 (throw_exception): Likewise.
3455 (exception_messages): Likewise.
3456 (exception_messages_size): Likewise.
3457 (throw_it): Likewise.
3458 (throw_verror): Likewise.
3459 (throw_vquit): Likewise.
3460 (throw_error): Likewise.
3461 (throw_quit): Likewise.
3462 (prepare_to_throw_exception): New function.
3463
e9bcb658
GB
34642014-08-29 Gary Benson <gbenson@redhat.com>
3465
3466 * common/gdb_setjmp.h: New file.
3467 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3468 * configure.ac: Move sigsetjmp check...
3469 * common/common.m4: ...here.
3470 * configure: Regenerate.
3471 * cp-support.c (SIGJMP_BUF): Delete.
3472 (SIGSETJMP): Likewise.
3473 (SIGLONGJMP): Likewise.
3474 * exceptions.h (gdb_setjmp.h): Include.
3475 (setjmp.h): Do not include.
3476 (EXCEPTIONS_SIGJMP_BUF): Delete.
3477 (EXCEPTIONS_SIGSETJMP): Likewise.
3478 (EXCEPTIONS_SIGLONGJMP): Likewise.
3479 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3480 from gdb_setjmp.h.
3481 * exceptions.c: Likewise.
3482
e3180625
GB
34832014-08-29 Gary Benson <gbenson@redhat.com>
3484
3485 * cleanups.h: Moved to...
3486 * common/cleanups.h: New file.
3487 * cleanups.c: Moved to...
3488 * common/cleanups.c: New file. Include common-defs.h and
3489 cleanups.h. Do not include defs.h.
3490 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3491 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3492 (cleanups.o): New rule.
3493
e3d6ba5d
GB
34942014-08-29 Gary Benson <gbenson@redhat.com>
3495
3496 * common/errors.h (internal_warning): New declaration.
3497 (internal_vwarning): Likewise.
3498 * common/errors.c (internal_warning): New function.
3499 * utils.h (internal_warning): Don't declare.
3500 (internal_vwarning): Likewise.
3501 * utils.c (internal_warning): Removed.
3502
075c7033
GB
35032014-08-29 Gary Benson <gbenson@redhat.com>
3504
3505 * main.c (captured_main): Use warning during startup.
3506 Prefix startup warning messages with command name.
3507
91b35fd0
GB
35082014-08-29 Gary Benson <gbenson@redhat.com>
3509
3510 * main.c (captured_main): Handle usage errors with error.
3511
b1ec390e
GB
35122014-08-29 Gary Benson <gbenson@redhat.com>
3513
3514 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3515 exit pair with a call to error. Wrap the message with _().
3516
fd0ef3dd
GB
35172014-08-29 Gary Benson <gbenson@redhat.com>
3518
3519 * main.c (captured_main): Replace a fprintf/exit
3520 pair with a call to error. Wrap the message with _().
3521
e0e6bcab
GB
35222014-08-29 Gary Benson <gbenson@redhat.com>
3523
3524 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3525 pairs with calls to error. Wrap the message with _().
3526
0d2f5c07
GB
35272014-08-29 Gary Benson <gbenson@redhat.com>
3528
3529 * utils.c (vwarning): Protect calls to target_terminal_ours
3530 and wrap_here.
3531
5df43998
GB
35322014-08-29 Gary Benson <gbenson@redhat.com>
3533
3534 * exceptions.c (print_flush): Protect calls to
3535 target_terminal_ours and wrap_here.
3536
2437fd32
GB
35372014-08-29 Gary Benson <gbenson@redhat.com>
3538
3539 * utils.h (filtered_printing_initialized): New declaration.
3540 * utils.c (abort_with_message): New function.
3541 (internal_vproblem): Use abort_with_message for first level
3542 recursive internal problems, and if gdb_stderr is not set up.
3543 Protect calls to target_terminal_ours, begin_line and query.
3544
f1f58506
DE
35452014-08-28 Doug Evans <dje@google.com>
3546
3547 * symtab.c (in_prologue): Move definition to better spot.
3548 (skip_prologue_using_sal): Ditto.
3549
aab2f208
DE
35502014-08-28 Doug Evans <dje@google.com>
3551
3552 * symtab.c (find_function_start_sal): Move definition to better spot.
3553
6b65d1b6
YQ
35542014-08-28 Yao Qi <yao@codesourcery.com>
3555
3556 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3557 found_stack_adjust in forward scan. Remove condition check
3558 on found_stack_adjust which is always true. Indent the code.
3559
a1b34d15
YQ
35602014-08-28 Yao Qi <yao@codesourcery.com>
3561
3562 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3563 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3564 (dwarf_decode_lines): Remove argument
3565 want_line_info. Remove condition check on want_line_info.
3566 Callers update.
3567
d5962de5
DE
35682014-08-27 Doug Evans <dje@google.com>
3569
3570 * dwarf2read.c (dwarf_record_line): Fix typo.
3571
9b139002
SDJ
35722014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3573
3574 * target.h (struct target_ops::to_terminal_save_ours): Remove
3575 declaration.
3576 (target_terminal_save_ours): Remove macro.
3577 * target-delegates.c: Regenerate.
3578 * inf-child.c (inf_child_target): Don't set the nonexistent
3579 field to_terminal_save_ours.
3580 * inferior.h (child_terminal_save_ours): Remove declaration.
3581 * terminal.h (gdb_save_tty_state): New declaration.
3582 * inflow.c (child_terminal_save_ours): Rename to ...
3583 (gdb_save_tty_state): ... this.
3584 * tui/tui.c: Include terminal.h.
3585 (tui_enable): Use gdb_save_tty_state instead of
3586 target_terminal_save_ours.
3587 (tui_disable): Likewise.
3588
9debeba0
DE
35892014-08-25 Doug Evans <dje@google.com>
3590
3591 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3592 Pass NULL instead of 0 for context pointer.
3593
428fc5fc
YQ
35942014-08-25 Yao Qi <yao@codesourcery.com>
3595
3596 * dwarf2read.c: Fix grammatical error.
3597
cdc07690
YQ
35982014-08-24 Yao Qi <yao@codesourcery.com>
3599
3600 * dwarf2read.c (scan_partial_symbols): Update comments.
3601 Rename argument 'need_pc' with 'set_addrmap'.
3602 (add_partial_namespace): Rename argument 'need_pc' with
3603 'set_addrmap'.
3604 (add_partial_module): Likewise.
3605 (add_partial_subprogram): Likewise. Update comments.
3606 (dwarf2_name): Fix typo.
3607
a05a36a5
DE
36082014-08-22 Doug Evans <dje@google.com>
3609
3610 PR 17276
3611 * dwarf2read.c (dwarf_record_line_p): New function.
3612 (dwarf_decode_lines_1): Ignore subsequent line number entries
3613 for the same line if any entry had a non-zero discriminator.
3614
252a6764
DE
36152014-08-22 Doug Evans <dje@google.com>
3616
3617 * buildsym.h (record_line_ftype): New typedef.
3618 (record_line): Use it.
3619 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3620 (dwarf_decode_lines_1): Call them.
3621
510db052
YQ
36222014-08-22 Yao Qi <yao@codesourcery.com>
3623
3624 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3625 (ctf_end): Remove code.
3626
22fd09ae
JK
36272014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3630 (linux_make_corefile_notes): call update_thread_list, protected against
3631 exceptions.
3632
656e8868
PA
36332014-08-21 Pedro Alves <palves@redhat.com>
3634
3635 * infcmd.c (attach_command): Remove comment.
3636
de589d04
WN
36372014-08-21 Bin Cheng <bin.cheng@arm.com>
3638
3639 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3640 unsigned LONGEST to ULONGEST.
3641
2a31c623
PA
36422014-08-20 Pedro Alves <palves@redhat.com>
3643
3644 * Makefile.in (check-read1): New rule.
3645
d36430db
JB
36462014-08-20 Joel Brobecker <brobecker@adacore.com>
3647
3648 * value.c (value_from_contents_and_address): Strip resolved_type's
3649 typedef layers before checking its TYPE_DATA_LOCATION.
3650
000339af
PA
36512014-08-20 Pedro Alves <palves@redhat.com>
3652
3653 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3654
5f52445b
YQ
36552014-08-20 Yao Qi <yao@codesourcery.com>
3656
3657 * amd64-tdep.c (amd64_classify): Add a blank line after the
3658 example. Move "*/" to a new line.
3659 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3660 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3661 * dwarf2read.c (psymtab_include_file_name): Likewise.
3662
9a0dc9e3
PA
36632014-08-19 Andrew Burgess <aburgess@broadcom.com>
3664 Pedro Alves <palves@redhat.com>
3665
3666 PR symtab/14604
3667 PR symtab/14605
3668 * ada-lang.c (coerce_unspec_val_to_type): Use
3669 value_contents_copy_raw.
3670 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3671 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3672 * cp-valprint.c (cp_print_value_fields): Let the common printing
3673 code handle optimized out values.
3674 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3675 * d-valprint.c (dynamic_array_type): Use
3676 value_bits_any_optimized_out.
3677 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3678 check_any_valid fields.
3679 (check_pieced_value_bits): Delete and inline ...
3680 (check_pieced_synthetic_pointer): ... here.
3681 (check_pieced_value_validity): Delete.
3682 (check_pieced_value_invalid): Delete.
3683 (pieced_value_funcs): Remove check_validity and check_any_valid
3684 fields.
3685 (read_pieced_value): Use mark_value_bits_optimized_out.
3686 (write_pieced_value): Switch to use
3687 mark_value_bytes_optimized_out.
3688 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3689 of assuming the whole value is optimized out.
3690 * findvar.c (read_frame_register_value): Remove special handling
3691 of optimized out registers.
3692 (value_from_register): Use mark_value_bytes_optimized_out.
3693 * frame-unwind.c (frame_unwind_got_optimized): Use
3694 mark_value_bytes_optimized_out.
3695 * jv-valprint.c (java_value_print): Adjust.
3696 (java_print_value_fields): Let the common printing code handle
3697 optimized out values.
3698 * mips-tdep.c (mips_print_register): Remove special handling of
3699 optimized out registers.
3700 * opencl-lang.c (lval_func_check_validity): Delete.
3701 (lval_func_check_any_valid): Delete.
3702 (opencl_value_funcs): Remove check_validity and check_any_valid
3703 fields.
3704 * p-valprint.c (pascal_object_print_value_fields): Let the common
3705 printing code handle optimized out values.
3706 * stack.c (read_frame_arg): Remove special handling of optimized
3707 out values. Fetch both VAL and ENTRYVAL before comparing
3708 contents. Adjust to value_available_contents_eq rename.
3709 * valprint.c (valprint_check_validity)
3710 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3711 (val_print_array_elements): Adjust.
3712 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3713 (value_bits_any_optimized_out): New function.
3714 (value_entirely_covered_by_range_vector): New function, factored
3715 out from value_entirely_unavailable.
3716 (value_entirely_unavailable): Reimplement.
3717 (value_entirely_optimized_out): New function.
3718 (insert_into_bit_range_vector): New function, factored out from
3719 mark_value_bits_unavailable.
3720 (mark_value_bits_unavailable): Reimplement.
3721 (struct ranges_and_idx): New struct.
3722 (find_first_range_overlap_and_match): New function, factored out
3723 from value_available_contents_bits_eq.
3724 (value_available_contents_bits_eq): Rename to ...
3725 (value_contents_bits_eq): ... this. Check both unavailable
3726 contents and optimized out contents.
3727 (value_available_contents_eq): Rename to ...
3728 (value_contents_eq): ... this.
3729 (allocate_value_lazy): Remove reference to the old optimized_out
3730 boolean.
3731 (allocate_optimized_out_value): Use
3732 mark_value_bytes_optimized_out.
3733 (require_not_optimized_out): Adjust to check whether the
3734 optimized_out vec is empty.
3735 (ranges_copy_adjusted): New function, factored out from
3736 value_contents_copy_raw.
3737 (value_contents_copy_raw): Also copy the optimized out ranges.
3738 Assert the destination ranges aren't optimized out.
3739 (value_contents_copy): Update comment, remove call to
3740 require_not_optimized_out.
3741 (value_contents_equal): Adjust to check whether the optimized_out
3742 vec is empty.
3743 (set_value_optimized_out, value_optimized_out_const): Delete.
3744 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3745 New functions.
3746 (value_entirely_optimized_out, value_bits_valid): Delete.
3747 (value_copy): Take a VEC copy of the 'optimized_out' field.
3748 (value_primitive_field): Remove special handling of optimized out.
3749 (value_fetch_lazy): Assert that lazy values have no unavailable
3750 regions. Use value_bits_any_optimized_out. Remove some special
3751 handling for optimized out values.
3752 * value.h: Add intro comment about <optimized out> and
3753 <unavailable>.
3754 (struct lval_funcs): Remove check_validity and check_any_valid
3755 fields.
3756 (set_value_optimized_out, value_optimized_out_const): Remove.
3757 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3758 New declarations.
3759 (value_bits_any_optimized_out): New declaration.
3760 (value_bits_valid): Delete declaration.
3761 (value_available_contents_eq): Rename to ...
3762 (value_contents_eq): ... this, and extend comments.
3763
6694c411
JK
37642014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3765
3766 Fix -fsanitize=address on unreadable inferior strings.
3767 * valprint.c (val_print_string): Fix access before BUFFER.
3768
89a1c21a
SM
37692014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3770
3771 * target.c (target_struct_size): Remove.
3772 (target_struct_allocsize): Remove.
3773 (DEFAULT_ALLOCSIZE): Remove.
3774 (target_ops_p): New typedef.
3775 (DEF_VEC_P (target_ops_p)): New vector type.
3776 (target_structs): Change type to VEC (target_ops_p).
3777 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3778 (find_default_run_target): Rewrite for loop following changes to
3779 target_structs.
3780
cb417230
JB
37812014-08-19 Joel Brobecker <brobecker@adacore.com>
3782
3783 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3784 Adjust code accordingly. Adjust function description comment.
3785
817e0957
YQ
37862014-08-19 Yao Qi <yao@codesourcery.com>
3787
3788 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3789 types.
3790
2974be62
AM
37912014-08-19 Alan Modra <amodra@gmail.com>
3792
3793 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3794 * config.in: Regenerate.
3795 * configure: Regenerate.
3796
34abf635
GB
37972014-08-19 Tom Tromey <tromey@redhat.com>
3798 Gary Benson <gbenson@redhat.com>
3799
3800 * common/common-debug.h: New file.
3801 * common/common-debug.c: Likewise.
3802 * debug.c: Likewise.
3803 * Makefile.in (SFILES): Add common/common-debug.c.
3804 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3805 (COMMON_OBS): Add common-debug.o and debug.o.
3806 (common-debug.o): New rule.
3807 * common/common-defs.h: Include common-debug.h.
3808 * common/agent.c (debug_agent_printf): New function.
3809 (DEBUG_AGENT): Redefine.
3810 * nat/i386-dregs.c (debug_printf): Undefine.
3811
f6e94d78
GB
38122014-08-19 Gary Benson <gbenson@redhat.com>
3813
3814 * common/common-defs.h: Include print-utils.h.
3815 * utils.h: Do not include print-utils.h.
3816
9239eeab
GB
38172014-08-19 Tom Tromey <tromey@redhat.com>
3818 Gary Benson <gbenson@redhat.com>
3819
3820 * common/common-types.h: New file.
3821 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3822 * common/common-defs.h: Include common-types.h.
3823 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3824 (ULONGEST): Remove.
3825
ef87c8bb
GB
38262014-08-19 Tom Tromey <tromey@redhat.com>
3827 Gary Benson <gbenson@redhat.com>
3828
3829 * common/errors.h: New file.
3830 * common/errors.c: Likewise.
3831 * Makefile.in (SFILES): Add common/errors.c.
3832 (HFILES_NO_SRCDIR): Add common/errors.h.
3833 (COMMON_OBS): Add errors.o.
3834 (errors.o): New rule.
3835 * common/common-defs.h: Include errors.h.
3836 * utils.h (perror_with_name, error, verror, warning, vwarning):
3837 Don't declare.
3838 * common/common-utils.h: (malloc_failure, internal_error):
3839 Likewise.
3840
196a707b
GB
38412014-08-19 Gary Benson <gbenson@redhat.com>
3842
3843 * utils.c (internal_vproblem): Always print the message.
3844
ded4fc8f
DE
38452014-08-18 Doug Evans <dje@google.com>
3846
3847 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3848
950c97d8
JB
38492014-08-18 Joel Brobecker <brobecker@adacore.com>
3850
3851 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3852 Return 0 if TYPE is dynamic.
3853 (print_range): Add handling of dynamic ranges.
3854
3cdcd0ce
JB
38552014-08-18 Keven Boell <keven.boell@intel.com>
3856 Joel Brobecker <brobecker@adacore.com>
3857
3858 * gdbtypes.h (struct main_type): Add field "data_location".
3859 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3860 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3861 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3862 a dynamic data location.
3863 (resolve_dynamic_type): Add DW_AT_data_location handling.
3864 (copy_recursive, copy_type): Copy the data_location information
3865 when present.
3866 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3867 * value.c (value_from_contents_and_address): Add
3868 DW_AT_data_location handling.
3869
08412b07
JB
38702014-08-18 Keven Boell <keven.boell@intel.com>
3871 Joel Brobecker <brobecker@adacore.com>
3872
3873 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3874 field "get_object_address".
3875 * dwarf2expr.c (execute_stack_op): Add handling for
3876 DW_OP_push_object_address.
3877 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3878 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3879 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3880 (dwarf_expr_get_obj_addr): New function.
3881 (dwarf_expr_ctx_funcs): Add get_object_address field.
3882 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3883 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3884 (dwarf2_evaluate_property): Add parameter "address". Use it.
3885 (needs_get_obj_addr): New function.
3886 (needs_frame_ctx_funcs): Add get_object_address field.
3887 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3888 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3889 (resolve_dynamic_array): Likewise.
3890
84754697
JB
38912014-08-18 Joel Brobecker <brobecker@adacore.com>
3892
3893 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3894 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3895 fixed value for records and unions for which some GNAT encodings
3896 are present.
3897
da5c522f
JB
38982014-08-18 Joel Brobecker <brobecker@adacore.com>
3899
3900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3901 rewrite to avoid "else if" and "else" constructs. Should be
3902 a no-op in practice.
3903
0d72a7c3
JB
39042014-08-18 Joel Brobecker <brobecker@adacore.com>
3905
3906 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3907 of lexical block.
3908
e66d4446
SC
39092014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3910
3911 PR c++/17132
3912 * eval.c: Update all calls to find_overload_match.
3913 * valarith.c: Likewise.
3914 (value_user_defined_cpp_op, value_user_defined_op): New
3915 argument NOSIDE. Update all callers.
3916 * valops.c (find_overload_match): New argument NOSIDE.
3917 * value.h (find_overload_match): Update signature.
3918
940df408
SC
39192014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3920
3921 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3922 'items' methods instead of 'iteritems' method on dictionaries.
3923
699ca60a
DE
39242014-08-15 Doug Evans <dje@google.com>
3925
3926 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3927 closer to use.
3928
37780ee5
DE
39292014-08-15 Doug Evans <dje@google.com>
3930
3931 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3932
0ad93d4f
DE
39332014-08-15 Doug Evans <dje@google.com>
3934
3935 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3936
20d8c372
DE
39372014-08-15 Doug Evans <dje@google.com>
3938
3939 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3940 unused.
3941
cb039ba4
EZ
39422014-08-15 Eli Zaretskii <eliz@gnu.org>
3943
3944 * dcache.h: Include target.h, to avoid compile time warnings.
3945
eb7a547a
JB
39462014-08-15 Joel Brobecker <brobecker@adacore.com>
3947
3948 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3949 frame_info" partial declaration.
3950 * gdbarch.h: Regenerate.
3951
783cecc8
YQ
39522014-08-15 Yao Qi <yao@codesourcery.com>
3953
3954 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3955 Add parameter 'decode_for_pst_p'. Callers update.
3956
65c749e7
YQ
39572014-08-13 Yao Qi <yao@codesourcery.com>
3958
3959 PR build/17104
3960 * configure.ac: Use local variable 'pos'.
3961 * configure: Regenerated.
3962
d769e349
DE
39632014-08-11 Doug Evans <dje@google.com>
3964
3965 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3966 message, it is redundant with "Reading symbols from ..." message.
3967
24f1235e
DE
39682014-08-10 Doug Evans <xdje42@gmail.com>
3969
3970 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3971
dcd2e6ef
YQ
39722014-08-09 Yao Qi <yao@codesourcery.com>
3973
3974 PR remote/9053
3975 * remote.c (remote_xfer_partial): Remove dead code.
3976
070bdf0b
AA
39772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3978
3979 * ia64-linux-tdep.c: Include "regset.h".
3980 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3981 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3982 (ia64_linux_supply_fpregset): New function.
3983 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3984 (ia64_linux_regset_from_core_section): New function.
3985 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3986 method.
3987
08f9f542
AA
39882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3989
3990 * m68klinux-tdep.c: Include "regset.h".
3991 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3992 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3993 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3994 (m68k_linux_regset_from_core_section): New function.
3995 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3996 method.
3997
8f1cee41
AA
39982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3999
4000 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4001 function. Move logic to...
4002 (tilegx_linux_regmap): ... this new register map.
4003 (tilegx_linux_regset): Refer to register map, replace supply
4004 method by regcache_supply_regset, and add collect method.
4005 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4006 TILEGX_FIRST_EASY_REGNUM.
4007
c5741217
AA
40082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4009
4010 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4011 that calls regcache_supply_regset and handles the EPC register
4012 separately. Move main logic to...
4013 (score7_linux_gregmap): ... this new register map.
4014 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4015 (score7_linux_gregset): Refer to register map. Add collect method.
4016 (score7_linux_regset_from_core_section): Replace
4017 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4018 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4019 (struct regset): Delete unused forward declaraction.
4020 (struct pt_regs): Delete structure definition.
4021 (elf_gregset_t): Delete typedef.
4022
81580573
AA
40232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4024
4025 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4026 (nios2_core_regset): Add collect method.
4027
ba199d7d
AA
40282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4029
4030 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4031 platform-independent and don't write to read-only input buffer.
4032 (m32r_linux_collect_gregset): New function.
4033 (m32r_linux_gregset): Add collect method.
4034
0006a9da
AA
40352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4036
4037 * hppa-linux-tdep.c (greg_map): Rename to...
4038 (hppa_linux_gregmap): ... this. Also convert to
4039 regcache_map_entry format.
4040 (hppa_linux_supply_regset): Delete function.
4041 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4042 (hppa_linux_fpregmap): ... this new register map.
4043 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4044 register map, replace supply method by regcache_supply_regset, and
4045 add collect method regcache_collect_regset.
4046
901e1b23
AA
40472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4048
4049 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4050 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4051 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4052 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4053 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4054 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4055 (frv_linux_supply_gregset): Replace main logic by call to
4056 regcache_supply_regset, but keep clearing gr32-gr63.
4057 (frv_linux_supply_fpregset): Delete function.
4058 (frv_linux_gregset): Refer to appropriate register map and add
4059 regcache_collect_regset as the collect method.
4060 (frv_linux_fpregset): Likewise. Also exchange the supply method
4061 by regcache_supply_regset.
4062
1d6e7555
AA
40632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4064
4065 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4066 by call to alpha_supply_int_regs.
4067 (alpha_linux_collect_gregset): New function.
4068 (alpha_linux_supply_fpregset): Replace logic by call to
4069 alpha_supply_fp_regs.
4070 (alpha_linux_collect_fpregset): New function.
4071 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4072
d4d793bf
AA
40732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4074
4075 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4076 by call to regcache_collect_regset.
4077 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4078 instead of aarch64_linux_supply_gregset/_fpregset.
4079 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4080 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4081 header file instead.
4082 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4083 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4084 functions. Move logic to ...
4085 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4086 register maps.
4087 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4088 refer to new register maps, replace *_regset_from_core by
4089 regcache_supply_regset, and also use regcache_collect_regset.
4090 * aarch64-linux-tdep.h: Include "regset.h".
4091 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4092 Delete prototypes.
4093 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4094 macros, moved from C source file.
4095 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4096 variable declarations.
4097
99b7da5d
AA
40982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4099
4100 * s390-linux-nat.c: Include "regset.h".
4101 (regmap_gregset): Delete macro.
4102 (s390_64_regmap_gregset): New register map for
4103 regcache_supply/_collect_regset.
4104 (s390_64_gregset): New regset.
4105 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4106 (regmap_fpregset): Delete macro.
4107 (s390_native_supply, s390_native_collect): Delete functions.
4108 (supply_gregset, fill_gregset): Replace s390-specific regmap
4109 handling by a call to regcache_supply/_collect_regset.
4110 (supply_fpregset, fill_fpregset): Call regcache_supply/
4111 _collect_regset instead of s390_native_supply/_collect.
4112 (fetch_regset, store_regset): Likewise. Also change the last
4113 parameter to a regset instead of a regmap.
4114 (s390_linux_fetch_inferior_registers)
4115 (390_linux_store_inferior_registers): Adjust last parameter in
4116 calls to fetch_regset and store_regset.
4117 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4118 (s390_gregmap): ... this. Also make static const and convert to
4119 regcache_map_entry format.
4120 (s390x_regmap_gregset): Delete.
4121 (s390_regmap_fpregset): Rename to...
4122 (s390_fpregmap): ... this. Make static const and convert to
4123 regcache_map_entry format.
4124 (s390_regmap_upper, s390_regmap_last_break)
4125 (s390x_regmap_last_break, s390_regmap_system_call)
4126 (s390_regmap_tdb): Likewise.
4127 (s390_supply_regset, s390_collect_regset): Remove functions.
4128 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4129 s390_supply_regset.
4130 (s390_gregset, s390_fpregset, s390_upper_regset)
4131 (s390_last_break_regset, s390x_last_break_regset)
4132 (s390_system_call_regset, s390_tdb_regset): Make global and
4133 replace s390_supply/_collect_regset by regcache_supply/
4134 _collect_regset.
4135 (s390x_gregset): Delete.
4136 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4137 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4138 (s390_regmap_fpregset, s390_regmap_last_break)
4139 (s390x_regmap_last_break, s390_regmap_system_call)
4140 (s390_regmap_tdb): Delete global variable declarations.
4141 (s390_gregset, s390_fpregset, s390_last_break_regset)
4142 (s390x_last_break_regset, s390_system_call_regset)
4143 (s390_tdb_regset): New global variable declarations.
4144
0b309272
AA
41452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4146
4147 * regcache.c: Include "regset.h".
4148 (regcache_transfer_regset): New local function.
4149 (regcache_supply_regset, regcache_collect_regset): New functions.
4150 * regcache.h (struct regcache_map_entry): New structure.
4151 (REGCACHE_MAP_SKIP): New enum value.
4152 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4153
7fefa8d7
AA
41542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4155
4156 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4157 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4158 (ppc_linux_collect_gregset ): Likewise.
4159 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4160 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4161 (ppc_collect_vrregset): Likewise.
4162 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4163 Likewise.
4164
96c4f946
YQ
41652014-08-07 Yao Qi <yao@codesourcery.com>
4166
4167 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4168 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4169 * remote.c (remote_read_bytes): Likewise.
4170
fffbe6a8
YQ
41712014-08-07 Yao Qi <yao@codesourcery.com>
4172
4173 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4174
5ee8a82c
YQ
41752014-08-07 Yao Qi <yao@codesourcery.com>
4176
4177 PR remote/17230
4178 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4179 TARGET_XFER_OK instead of 0.
4180
bb974a24
GB
41812014-08-07 Gary Benson <gbenson@redhat.com>
4182
4183 * common/common-defs.h: Include errno.h.
4184 * defs.h: Do not include errno.h.
4185 * ada-typeprint.c: Likewise.
4186 * c-typeprint.c: Likewise.
4187 * core-regset.c: Likewise.
4188 * corefile.c: Likewise.
4189 * corelow.c: Likewise.
4190 * event-loop.c: Likewise.
4191 * f-typeprint.c: Likewise.
4192 * gnu-nat.c: Likewise.
4193 * go32-nat.c: Likewise.
4194 * i386gnu-nat.c: Likewise.
4195 * m2-typeprint.c: Likewise.
4196 * nat/linux-btrace.c: Likewise.
4197 * p-typeprint.c: Likewise.
4198 * procfs.c: Likewise.
4199 * remote-sim.c: Likewise.
4200 * rs6000-nat.c: Likewise.
4201 * target.c: Likewise.
4202 * typeprint.c: Likewise.
4203 * ui-file.c: Likewise.
4204 * valops.c: Likewise.
4205 * valprint.c: Likewise.
4206
6d3d12eb
GB
42072014-08-07 Gary Benson <gbenson@redhat.com>
4208
4209 * common/common-defs.h: Include string.h.
4210 * aarch64-tdep.c: Do not include string.h.
4211 * ada-exp.y: Likewise.
4212 * ada-lang.c: Likewise.
4213 * ada-lex.l: Likewise.
4214 * ada-typeprint.c: Likewise.
4215 * ada-valprint.c: Likewise.
4216 * aix-thread.c: Likewise.
4217 * alpha-linux-tdep.c: Likewise.
4218 * alpha-mdebug-tdep.c: Likewise.
4219 * alpha-nat.c: Likewise.
4220 * alpha-osf1-tdep.c: Likewise.
4221 * alpha-tdep.c: Likewise.
4222 * alphanbsd-tdep.c: Likewise.
4223 * amd64-dicos-tdep.c: Likewise.
4224 * amd64-linux-tdep.c: Likewise.
4225 * amd64-nat.c: Likewise.
4226 * amd64-sol2-tdep.c: Likewise.
4227 * amd64fbsd-tdep.c: Likewise.
4228 * amd64obsd-tdep.c: Likewise.
4229 * arch-utils.c: Likewise.
4230 * arm-linux-nat.c: Likewise.
4231 * arm-linux-tdep.c: Likewise.
4232 * arm-tdep.c: Likewise.
4233 * arm-wince-tdep.c: Likewise.
4234 * armbsd-tdep.c: Likewise.
4235 * armnbsd-nat.c: Likewise.
4236 * armnbsd-tdep.c: Likewise.
4237 * armobsd-tdep.c: Likewise.
4238 * avr-tdep.c: Likewise.
4239 * ax-gdb.c: Likewise.
4240 * ax-general.c: Likewise.
4241 * bcache.c: Likewise.
4242 * bfin-tdep.c: Likewise.
4243 * breakpoint.c: Likewise.
4244 * build-id.c: Likewise.
4245 * buildsym.c: Likewise.
4246 * c-exp.y: Likewise.
4247 * c-lang.c: Likewise.
4248 * c-typeprint.c: Likewise.
4249 * c-valprint.c: Likewise.
4250 * charset.c: Likewise.
4251 * cli-out.c: Likewise.
4252 * cli/cli-cmds.c: Likewise.
4253 * cli/cli-decode.c: Likewise.
4254 * cli/cli-dump.c: Likewise.
4255 * cli/cli-interp.c: Likewise.
4256 * cli/cli-logging.c: Likewise.
4257 * cli/cli-script.c: Likewise.
4258 * cli/cli-setshow.c: Likewise.
4259 * cli/cli-utils.c: Likewise.
4260 * coffread.c: Likewise.
4261 * common/agent.c: Likewise.
4262 * common/buffer.c: Likewise.
4263 * common/buffer.h: Likewise.
4264 * common/common-utils.c: Likewise.
4265 * common/filestuff.c: Likewise.
4266 * common/filestuff.c: Likewise.
4267 * common/format.c: Likewise.
4268 * common/print-utils.c: Likewise.
4269 * common/rsp-low.c: Likewise.
4270 * common/signals.c: Likewise.
4271 * common/vec.h: Likewise.
4272 * common/xml-utils.c: Likewise.
4273 * core-regset.c: Likewise.
4274 * corefile.c: Likewise.
4275 * corelow.c: Likewise.
4276 * cp-abi.c: Likewise.
4277 * cp-name-parser.y: Likewise.
4278 * cp-support.c: Likewise.
4279 * cp-valprint.c: Likewise.
4280 * cris-tdep.c: Likewise.
4281 * d-exp.y: Likewise.
4282 * darwin-nat.c: Likewise.
4283 * dbxread.c: Likewise.
4284 * dcache.c: Likewise.
4285 * demangle.c: Likewise.
4286 * dicos-tdep.c: Likewise.
4287 * disasm.c: Likewise.
4288 * doublest.c: Likewise.
4289 * dsrec.c: Likewise.
4290 * dummy-frame.c: Likewise.
4291 * dwarf2-frame.c: Likewise.
4292 * dwarf2loc.c: Likewise.
4293 * dwarf2read.c: Likewise.
4294 * elfread.c: Likewise.
4295 * environ.c: Likewise.
4296 * eval.c: Likewise.
4297 * event-loop.c: Likewise.
4298 * exceptions.c: Likewise.
4299 * exec.c: Likewise.
4300 * expprint.c: Likewise.
4301 * f-exp.y: Likewise.
4302 * f-lang.c: Likewise.
4303 * f-typeprint.c: Likewise.
4304 * f-valprint.c: Likewise.
4305 * fbsd-nat.c: Likewise.
4306 * findcmd.c: Likewise.
4307 * findvar.c: Likewise.
4308 * fork-child.c: Likewise.
4309 * frame.c: Likewise.
4310 * frv-linux-tdep.c: Likewise.
4311 * frv-tdep.c: Likewise.
4312 * gdb.c: Likewise.
4313 * gdb_bfd.c: Likewise.
4314 * gdbarch.c: Likewise.
4315 * gdbarch.sh: Likewise.
4316 * gdbtypes.c: Likewise.
4317 * gnu-nat.c: Likewise.
4318 * gnu-v2-abi.c: Likewise.
4319 * gnu-v3-abi.c: Likewise.
4320 * go-exp.y: Likewise.
4321 * go-lang.c: Likewise.
4322 * go32-nat.c: Likewise.
4323 * guile/guile.c: Likewise.
4324 * guile/scm-auto-load.c: Likewise.
4325 * hppa-hpux-tdep.c: Likewise.
4326 * hppa-linux-nat.c: Likewise.
4327 * hppanbsd-tdep.c: Likewise.
4328 * hppaobsd-tdep.c: Likewise.
4329 * i386-cygwin-tdep.c: Likewise.
4330 * i386-dicos-tdep.c: Likewise.
4331 * i386-linux-tdep.c: Likewise.
4332 * i386-nto-tdep.c: Likewise.
4333 * i386-sol2-tdep.c: Likewise.
4334 * i386-tdep.c: Likewise.
4335 * i386bsd-tdep.c: Likewise.
4336 * i386gnu-nat.c: Likewise.
4337 * i386nbsd-tdep.c: Likewise.
4338 * i386obsd-tdep.c: Likewise.
4339 * i387-tdep.c: Likewise.
4340 * ia64-libunwind-tdep.c: Likewise.
4341 * ia64-linux-nat.c: Likewise.
4342 * inf-child.c: Likewise.
4343 * inf-ptrace.c: Likewise.
4344 * inf-ttrace.c: Likewise.
4345 * infcall.c: Likewise.
4346 * infcmd.c: Likewise.
4347 * inflow.c: Likewise.
4348 * infrun.c: Likewise.
4349 * interps.c: Likewise.
4350 * iq2000-tdep.c: Likewise.
4351 * irix5-nat.c: Likewise.
4352 * jv-exp.y: Likewise.
4353 * jv-lang.c: Likewise.
4354 * jv-typeprint.c: Likewise.
4355 * jv-valprint.c: Likewise.
4356 * language.c: Likewise.
4357 * linux-fork.c: Likewise.
4358 * linux-nat.c: Likewise.
4359 * lm32-tdep.c: Likewise.
4360 * m2-exp.y: Likewise.
4361 * m2-typeprint.c: Likewise.
4362 * m32c-tdep.c: Likewise.
4363 * m32r-linux-nat.c: Likewise.
4364 * m32r-linux-tdep.c: Likewise.
4365 * m32r-rom.c: Likewise.
4366 * m32r-tdep.c: Likewise.
4367 * m68hc11-tdep.c: Likewise.
4368 * m68k-tdep.c: Likewise.
4369 * m68kbsd-tdep.c: Likewise.
4370 * m68klinux-nat.c: Likewise.
4371 * m68klinux-tdep.c: Likewise.
4372 * m88k-tdep.c: Likewise.
4373 * machoread.c: Likewise.
4374 * macrocmd.c: Likewise.
4375 * main.c: Likewise.
4376 * mdebugread.c: Likewise.
4377 * mem-break.c: Likewise.
4378 * memattr.c: Likewise.
4379 * memory-map.c: Likewise.
4380 * mep-tdep.c: Likewise.
4381 * mi/mi-cmd-break.c: Likewise.
4382 * mi/mi-cmd-disas.c: Likewise.
4383 * mi/mi-cmd-env.c: Likewise.
4384 * mi/mi-cmd-stack.c: Likewise.
4385 * mi/mi-cmd-var.c: Likewise.
4386 * mi/mi-cmds.c: Likewise.
4387 * mi/mi-console.c: Likewise.
4388 * mi/mi-getopt.c: Likewise.
4389 * mi/mi-interp.c: Likewise.
4390 * mi/mi-main.c: Likewise.
4391 * mi/mi-parse.c: Likewise.
4392 * microblaze-rom.c: Likewise.
4393 * microblaze-tdep.c: Likewise.
4394 * mingw-hdep.c: Likewise.
4395 * minidebug.c: Likewise.
4396 * minsyms.c: Likewise.
4397 * mips-irix-tdep.c: Likewise.
4398 * mips-linux-tdep.c: Likewise.
4399 * mips-tdep.c: Likewise.
4400 * mips64obsd-tdep.c: Likewise.
4401 * mipsnbsd-tdep.c: Likewise.
4402 * mipsread.c: Likewise.
4403 * mn10300-linux-tdep.c: Likewise.
4404 * mn10300-tdep.c: Likewise.
4405 * monitor.c: Likewise.
4406 * moxie-tdep.c: Likewise.
4407 * mt-tdep.c: Likewise.
4408 * nat/linux-btrace.c: Likewise.
4409 * nat/linux-osdata.c: Likewise.
4410 * nat/linux-procfs.c: Likewise.
4411 * nat/linux-ptrace.c: Likewise.
4412 * nat/linux-waitpid.c: Likewise.
4413 * nbsd-tdep.c: Likewise.
4414 * nios2-linux-tdep.c: Likewise.
4415 * nto-procfs.c: Likewise.
4416 * nto-tdep.c: Likewise.
4417 * objc-lang.c: Likewise.
4418 * objfiles.c: Likewise.
4419 * opencl-lang.c: Likewise.
4420 * osabi.c: Likewise.
4421 * osdata.c: Likewise.
4422 * p-exp.y: Likewise.
4423 * p-lang.c: Likewise.
4424 * p-typeprint.c: Likewise.
4425 * parse.c: Likewise.
4426 * posix-hdep.c: Likewise.
4427 * ppc-linux-nat.c: Likewise.
4428 * ppc-sysv-tdep.c: Likewise.
4429 * ppcfbsd-tdep.c: Likewise.
4430 * ppcnbsd-tdep.c: Likewise.
4431 * ppcobsd-tdep.c: Likewise.
4432 * printcmd.c: Likewise.
4433 * procfs.c: Likewise.
4434 * prologue-value.c: Likewise.
4435 * python/py-auto-load.c: Likewise.
4436 * python/py-gdb-readline.c: Likewise.
4437 * ravenscar-thread.c: Likewise.
4438 * regcache.c: Likewise.
4439 * registry.c: Likewise.
4440 * remote-fileio.c: Likewise.
4441 * remote-m32r-sdi.c: Likewise.
4442 * remote-mips.c: Likewise.
4443 * remote-notif.c: Likewise.
4444 * remote-sim.c: Likewise.
4445 * remote.c: Likewise.
4446 * reverse.c: Likewise.
4447 * rs6000-aix-tdep.c: Likewise.
4448 * ser-base.c: Likewise.
4449 * ser-go32.c: Likewise.
4450 * ser-mingw.c: Likewise.
4451 * ser-pipe.c: Likewise.
4452 * ser-tcp.c: Likewise.
4453 * ser-unix.c: Likewise.
4454 * serial.c: Likewise.
4455 * sh-tdep.c: Likewise.
4456 * sh64-tdep.c: Likewise.
4457 * shnbsd-tdep.c: Likewise.
4458 * skip.c: Likewise.
4459 * sol-thread.c: Likewise.
4460 * solib-dsbt.c: Likewise.
4461 * solib-frv.c: Likewise.
4462 * solib-osf.c: Likewise.
4463 * solib-som.c: Likewise.
4464 * solib-spu.c: Likewise.
4465 * solib-target.c: Likewise.
4466 * solib.c: Likewise.
4467 * somread.c: Likewise.
4468 * source.c: Likewise.
4469 * sparc-nat.c: Likewise.
4470 * sparc-sol2-tdep.c: Likewise.
4471 * sparc-tdep.c: Likewise.
4472 * sparc64-tdep.c: Likewise.
4473 * sparc64fbsd-tdep.c: Likewise.
4474 * sparc64nbsd-tdep.c: Likewise.
4475 * sparcnbsd-tdep.c: Likewise.
4476 * spu-linux-nat.c: Likewise.
4477 * spu-multiarch.c: Likewise.
4478 * spu-tdep.c: Likewise.
4479 * stabsread.c: Likewise.
4480 * stack.c: Likewise.
4481 * std-regs.c: Likewise.
4482 * symfile.c: Likewise.
4483 * symmisc.c: Likewise.
4484 * symtab.c: Likewise.
4485 * target.c: Likewise.
4486 * thread.c: Likewise.
4487 * tilegx-linux-nat.c: Likewise.
4488 * tilegx-tdep.c: Likewise.
4489 * top.c: Likewise.
4490 * tracepoint.c: Likewise.
4491 * tui/tui-command.c: Likewise.
4492 * tui/tui-data.c: Likewise.
4493 * tui/tui-disasm.c: Likewise.
4494 * tui/tui-file.c: Likewise.
4495 * tui/tui-layout.c: Likewise.
4496 * tui/tui-out.c: Likewise.
4497 * tui/tui-regs.c: Likewise.
4498 * tui/tui-source.c: Likewise.
4499 * tui/tui-stack.c: Likewise.
4500 * tui/tui-win.c: Likewise.
4501 * tui/tui-windata.c: Likewise.
4502 * tui/tui-winsource.c: Likewise.
4503 * typeprint.c: Likewise.
4504 * ui-file.c: Likewise.
4505 * ui-out.c: Likewise.
4506 * user-regs.c: Likewise.
4507 * utils.c: Likewise.
4508 * v850-tdep.c: Likewise.
4509 * valarith.c: Likewise.
4510 * valops.c: Likewise.
4511 * valprint.c: Likewise.
4512 * value.c: Likewise.
4513 * varobj.c: Likewise.
4514 * vax-tdep.c: Likewise.
4515 * vaxnbsd-tdep.c: Likewise.
4516 * vaxobsd-tdep.c: Likewise.
4517 * windows-nat.c: Likewise.
4518 * xcoffread.c: Likewise.
4519 * xml-support.c: Likewise.
4520 * xstormy16-tdep.c: Likewise.
4521 * xtensa-linux-nat.c: Likewise.
4522
dccbb609
GB
45232014-08-07 Gary Benson <gbenson@redhat.com>
4524
4525 * common/common-defs.h: Include gdb_assert.h.
4526 * aarch64-tdep.c: Do not include gdb_assert.h.
4527 * addrmap.c: Likewise.
4528 * aix-thread.c: Likewise.
4529 * alpha-linux-tdep.c: Likewise.
4530 * alpha-mdebug-tdep.c: Likewise.
4531 * alphanbsd-tdep.c: Likewise.
4532 * amd64-nat.c: Likewise.
4533 * amd64-tdep.c: Likewise.
4534 * amd64bsd-nat.c: Likewise.
4535 * amd64fbsd-nat.c: Likewise.
4536 * amd64fbsd-tdep.c: Likewise.
4537 * amd64nbsd-nat.c: Likewise.
4538 * amd64nbsd-tdep.c: Likewise.
4539 * amd64obsd-nat.c: Likewise.
4540 * amd64obsd-tdep.c: Likewise.
4541 * arch-utils.c: Likewise.
4542 * arm-tdep.c: Likewise.
4543 * armbsd-tdep.c: Likewise.
4544 * auxv.c: Likewise.
4545 * bcache.c: Likewise.
4546 * bfin-tdep.c: Likewise.
4547 * blockframe.c: Likewise.
4548 * breakpoint.c: Likewise.
4549 * bsd-kvm.c: Likewise.
4550 * bsd-uthread.c: Likewise.
4551 * buildsym.c: Likewise.
4552 * c-exp.y: Likewise.
4553 * c-lang.c: Likewise.
4554 * charset.c: Likewise.
4555 * cleanups.c: Likewise.
4556 * cli-out.c: Likewise.
4557 * cli/cli-decode.c: Likewise.
4558 * cli/cli-dump.c: Likewise.
4559 * cli/cli-logging.c: Likewise.
4560 * cli/cli-script.c: Likewise.
4561 * cli/cli-utils.c: Likewise.
4562 * coffread.c: Likewise.
4563 * common/common-utils.c: Likewise.
4564 * common/queue.h: Likewise.
4565 * common/signals.c: Likewise.
4566 * common/vec.h: Likewise.
4567 * complaints.c: Likewise.
4568 * completer.c: Likewise.
4569 * corelow.c: Likewise.
4570 * cp-abi.c: Likewise.
4571 * cp-name-parser.y: Likewise.
4572 * cp-namespace.c: Likewise.
4573 * cp-support.c: Likewise.
4574 * cris-tdep.c: Likewise.
4575 * dbxread.c: Likewise.
4576 * dictionary.c: Likewise.
4577 * doublest.c: Likewise.
4578 * dsrec.c: Likewise.
4579 * dummy-frame.c: Likewise.
4580 * dwarf2-frame-tailcall.c: Likewise.
4581 * dwarf2-frame.c: Likewise.
4582 * dwarf2expr.c: Likewise.
4583 * dwarf2loc.c: Likewise.
4584 * dwarf2read.c: Likewise.
4585 * eval.c: Likewise.
4586 * event-loop.c: Likewise.
4587 * exceptions.c: Likewise.
4588 * expprint.c: Likewise.
4589 * f-valprint.c: Likewise.
4590 * fbsd-nat.c: Likewise.
4591 * findvar.c: Likewise.
4592 * frame-unwind.c: Likewise.
4593 * frame.c: Likewise.
4594 * frv-tdep.c: Likewise.
4595 * gcore.c: Likewise.
4596 * gdb-dlfcn.c: Likewise.
4597 * gdb_bfd.c: Likewise.
4598 * gdbarch.c: Likewise.
4599 * gdbarch.sh: Likewise.
4600 * gdbtypes.c: Likewise.
4601 * gnu-nat.c: Likewise.
4602 * gnu-v3-abi.c: Likewise.
4603 * go-lang.c: Likewise.
4604 * guile/scm-exception.c: Likewise.
4605 * guile/scm-gsmob.c: Likewise.
4606 * guile/scm-lazy-string.c: Likewise.
4607 * guile/scm-math.c: Likewise.
4608 * guile/scm-pretty-print.c: Likewise.
4609 * guile/scm-safe-call.c: Likewise.
4610 * guile/scm-utils.c: Likewise.
4611 * guile/scm-value.c: Likewise.
4612 * h8300-tdep.c: Likewise.
4613 * hppa-hpux-nat.c: Likewise.
4614 * hppa-tdep.c: Likewise.
4615 * hppanbsd-tdep.c: Likewise.
4616 * hppaobsd-tdep.c: Likewise.
4617 * i386-darwin-nat.c: Likewise.
4618 * i386-darwin-tdep.c: Likewise.
4619 * i386-nto-tdep.c: Likewise.
4620 * i386-tdep.c: Likewise.
4621 * i386bsd-nat.c: Likewise.
4622 * i386fbsd-tdep.c: Likewise.
4623 * i386gnu-nat.c: Likewise.
4624 * i386nbsd-tdep.c: Likewise.
4625 * i386obsd-tdep.c: Likewise.
4626 * i387-tdep.c: Likewise.
4627 * ia64-libunwind-tdep.c: Likewise.
4628 * ia64-tdep.c: Likewise.
4629 * inf-ptrace.c: Likewise.
4630 * inf-ttrace.c: Likewise.
4631 * infcall.c: Likewise.
4632 * infcmd.c: Likewise.
4633 * infrun.c: Likewise.
4634 * inline-frame.c: Likewise.
4635 * interps.c: Likewise.
4636 * jv-lang.c: Likewise.
4637 * jv-typeprint.c: Likewise.
4638 * linux-fork.c: Likewise.
4639 * linux-nat.c: Likewise.
4640 * linux-thread-db.c: Likewise.
4641 * m32c-tdep.c: Likewise.
4642 * m32r-linux-nat.c: Likewise.
4643 * m32r-tdep.c: Likewise.
4644 * m68k-tdep.c: Likewise.
4645 * m68kbsd-nat.c: Likewise.
4646 * m68kbsd-tdep.c: Likewise.
4647 * m88k-tdep.c: Likewise.
4648 * machoread.c: Likewise.
4649 * macroexp.c: Likewise.
4650 * macrotab.c: Likewise.
4651 * maint.c: Likewise.
4652 * mdebugread.c: Likewise.
4653 * memory-map.c: Likewise.
4654 * mep-tdep.c: Likewise.
4655 * mi/mi-common.c: Likewise.
4656 * microblaze-tdep.c: Likewise.
4657 * mingw-hdep.c: Likewise.
4658 * mips-linux-nat.c: Likewise.
4659 * mips-linux-tdep.c: Likewise.
4660 * mips-tdep.c: Likewise.
4661 * mips64obsd-tdep.c: Likewise.
4662 * mipsnbsd-tdep.c: Likewise.
4663 * mn10300-linux-tdep.c: Likewise.
4664 * mn10300-tdep.c: Likewise.
4665 * moxie-tdep.c: Likewise.
4666 * mt-tdep.c: Likewise.
4667 * nat/linux-btrace.c: Likewise.
4668 * nat/linux-osdata.c: Likewise.
4669 * nat/linux-ptrace.c: Likewise.
4670 * nat/mips-linux-watch.c: Likewise.
4671 * nios2-linux-tdep.c: Likewise.
4672 * nios2-tdep.c: Likewise.
4673 * objc-lang.c: Likewise.
4674 * objfiles.c: Likewise.
4675 * obsd-nat.c: Likewise.
4676 * opencl-lang.c: Likewise.
4677 * osabi.c: Likewise.
4678 * parse.c: Likewise.
4679 * ppc-linux-nat.c: Likewise.
4680 * ppc-sysv-tdep.c: Likewise.
4681 * ppcfbsd-nat.c: Likewise.
4682 * ppcfbsd-tdep.c: Likewise.
4683 * ppcnbsd-nat.c: Likewise.
4684 * ppcnbsd-tdep.c: Likewise.
4685 * ppcobsd-nat.c: Likewise.
4686 * ppcobsd-tdep.c: Likewise.
4687 * printcmd.c: Likewise.
4688 * procfs.c: Likewise.
4689 * prologue-value.c: Likewise.
4690 * psymtab.c: Likewise.
4691 * python/py-lazy-string.c: Likewise.
4692 * python/py-value.c: Likewise.
4693 * regcache.c: Likewise.
4694 * reggroups.c: Likewise.
4695 * registry.c: Likewise.
4696 * remote-sim.c: Likewise.
4697 * remote.c: Likewise.
4698 * rs6000-aix-tdep.c: Likewise.
4699 * rs6000-tdep.c: Likewise.
4700 * s390-linux-tdep.c: Likewise.
4701 * score-tdep.c: Likewise.
4702 * ser-base.c: Likewise.
4703 * ser-mingw.c: Likewise.
4704 * sh-tdep.c: Likewise.
4705 * sh64-tdep.c: Likewise.
4706 * solib-darwin.c: Likewise.
4707 * solib-spu.c: Likewise.
4708 * solib-svr4.c: Likewise.
4709 * source.c: Likewise.
4710 * sparc-nat.c: Likewise.
4711 * sparc-sol2-tdep.c: Likewise.
4712 * sparc-tdep.c: Likewise.
4713 * sparc64-sol2-tdep.c: Likewise.
4714 * sparc64-tdep.c: Likewise.
4715 * sparc64fbsd-tdep.c: Likewise.
4716 * sparc64nbsd-tdep.c: Likewise.
4717 * sparc64obsd-tdep.c: Likewise.
4718 * sparcnbsd-tdep.c: Likewise.
4719 * sparcobsd-tdep.c: Likewise.
4720 * spu-multiarch.c: Likewise.
4721 * spu-tdep.c: Likewise.
4722 * stabsread.c: Likewise.
4723 * stack.c: Likewise.
4724 * symfile.c: Likewise.
4725 * symtab.c: Likewise.
4726 * target-descriptions.c: Likewise.
4727 * target-memory.c: Likewise.
4728 * target.c: Likewise.
4729 * tic6x-linux-tdep.c: Likewise.
4730 * tic6x-tdep.c: Likewise.
4731 * tilegx-linux-nat.c: Likewise.
4732 * tilegx-tdep.c: Likewise.
4733 * top.c: Likewise.
4734 * tramp-frame.c: Likewise.
4735 * tui/tui-out.c: Likewise.
4736 * tui/tui-winsource.c: Likewise.
4737 * ui-out.c: Likewise.
4738 * user-regs.c: Likewise.
4739 * utils.c: Likewise.
4740 * v850-tdep.c: Likewise.
4741 * valops.c: Likewise.
4742 * value.c: Likewise.
4743 * varobj.c: Likewise.
4744 * vax-nat.c: Likewise.
4745 * xml-syscall.c: Likewise.
4746 * xml-tdesc.c: Likewise.
4747 * xstormy16-tdep.c: Likewise.
4748 * xtensa-linux-nat.c: Likewise.
4749 * xtensa-tdep.c: Likewise.
4750
e76df0d0
GB
47512014-08-07 Gary Benson <gbenson@redhat.com>
4752
4753 * common/common-defs.h: Include common-utils.h.
4754 * defs.h: Do not include common-utils.h.
4755 * common/gdb_assert.h: Likewise.
4756 * darwin-nat.h: Likewise.
4757 * nat/linux-btrace.c: Likewise.
4758 * target/waitstatus.h: Likewise.
4759
4cb9c816
GB
47602014-08-07 Gary Benson <gbenson@redhat.com>
4761
4762 * common/common-defs.h: Include ptid.h.
4763 * defs.h: Do not include ptid.h.
4764 * inferior.h: Likewise.
4765 * infrun.h: Likewise.
4766 * nat/linux-btrace.h: Likewise.
4767 * nat/linux-osdata.h: Likewise.
4768 * target/waitstatus.h: Likewise.
4769
3995eeee
GB
47702014-08-07 Gary Benson <gbenson@redhat.com>
4771
4772 * common/common-defs.h: Include gdb_locale.h.
4773 * defs.h: Do not include gdb_locale.h.
4774
cb9f1a9b
GB
47752014-08-07 Gary Benson <gbenson@redhat.com>
4776
4777 * common/common-defs.h: Include gdb/signals.h.
4778 * defs.h: Do not include gdb/signals.h.
4779
a5fceff8
GB
47802014-08-07 Gary Benson <gbenson@redhat.com>
4781
4782 * common/common-defs.h: Include pathmax.h.
4783 * defs.h: Do not include pathmax.h.
4784
b9391142
GB
47852014-08-07 Gary Benson <gbenson@redhat.com>
4786
4787 * common/common-defs.h: Include libiberty.h.
4788 * defs.h: Do not include libiberty.h.
4789 * common/queue.h: Likewise.
4790 * cp-name-parser.y: Likewise.
4791 * mi/mi-cmd-catch.c: Likewise.
4792 * python/python.c: Likewise.
4793
0e443c87
GB
47942014-08-07 Gary Benson <gbenson@redhat.com>
4795
4796 * common/common-defs.h: Include ansidecl.h.
4797 * defs.h: Do not include ansidecl.h.
4798 * common/buffer.h: Likewise.
4799 * common/common-utils.h: Likewise.
4800
8ebb3f56
GB
48012014-08-07 Gary Benson <gbenson@redhat.com>
4802
4803 * common/common-defs.h: Include stddef.h.
4804 * defs.h: Do not include stddef.h.
4805 * common/common-utils.h: Likewise.
4806 * amd64fbsd-nat.c: Likewise.
4807 * bcache.c: Likewise.
4808 * charset.c: Likewise.
4809 * common/buffer.h: Likewise.
4810 * common/vec.h: Likewise.
4811 * i386bsd-nat.c: Likewise.
4812 * nat/linux-btrace.h: Likewise.
4813 * ppcfbsd-nat.c: Likewise.
4814 * ppcnbsd-tdep.h: Likewise.
4815 * ppcobsd-nat.c: Likewise.
4816 * ppcobsd-tdep.h: Likewise.
4817 * python/py-gdb-readline.c: Likewise.
4818
8980bdf6
GB
48192014-08-07 Gary Benson <gbenson@redhat.com>
4820
4821 * common/common-defs.h: Include stdarg.h.
4822 * defs.h: Do not include stdarg.h.
4823 * ada-lang.c: Likewise.
4824 * common/common-utils.h: Likewise.
4825 * guile/scm-string.c: Likewise.
4826 * guile/scm-utils.c: Likewise.
4827 * m32c-tdep.c: Likewise.
4828
d7096f71
GB
48292014-08-07 Gary Benson <gbenson@redhat.com>
4830
4831 * common/common-defs.h: Include stdlib.h.
4832 * defs.h: Do not include stdlib.h.
4833 * addrmap.c: Likewise.
4834 * bcache.c: Likewise.
4835 * common/buffer.c: Likewise.
4836 * common/common-utils.c: Likewise.
4837 * cp-name-parser.y: Likewise.
4838 * go32-nat.c: Likewise.
4839 * mn10300-linux-tdep.c: Likewise.
4840 * nat/linux-osdata.c: Likewise.
4841 * tui/tui.c: Likewise.
4842 * windows-nat.c: Likewise.
4843
d02f550d
GB
48442014-08-07 Gary Benson <gbenson@redhat.com>
4845
4846 * common/common-defs.h: Include stdio.h.
4847 * defs.h: Do not include stdio.h.
4848 * ada-lang.c: Likewise.
4849 * common/buffer.c: Likewise.
4850 * common/common-utils.c: Likewise.
4851 * cp-name-parser.y: Likewise.
4852 * gnu-nat.c: Likewise.
4853 * go32-nat.c: Likewise.
4854 * i386gnu-nat.c: Likewise.
4855 * proc-api.c: Likewise.
4856 * proc-events.c: Likewise.
4857 * proc-flags.c: Likewise.
4858 * proc-why.c: Likewise.
4859 * python/python-internal.h: Likewise.
4860 * target-memory.c: Likewise.
4861 * tui/tui-io.c: Likewise.
4862 * tui/tui.c: Likewise.
4863
b6d7a4bf
SM
48642014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4865
4866 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4867 (scan_dyntag_auxv): Same.
4868
af19829b
YQ
48692014-08-06 Yao Qi <yao@codesourcery.com>
4870
4871 * amd64-linux-nat.c: Remove duplicated include
4872 "x86-linux-nat.h".
4873 * i386-linux-nat.c: Likewise.
4874
8e07a239
YQ
48752014-08-06 Yao Qi <yao@codesourcery.com>
4876
4877 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4878 operand" with "Special opcode" in comments.
4879
7bfe8241
GB
48802014-08-05 Gary Benson <gbenson@redhat.com>
4881
4882 * interps.c (initialize_interps): Remove prototype.
4883 (interpreter_initialized): Remove static global.
4884 (interp_add): Do not call initialize_interps.
4885 (initialize_interps): Remove function.
4886
d6c95504
GB
48872014-08-05 Gary Benson <gbenson@redhat.com>
4888
4889 * utils.c (vwarning): Remove spurious va_end.
4890
241fd515
AM
48912014-08-05 Alan Modra <amodra@gmail.com>
4892
4893 * charset.c (convert_between_encodings): Cast result of obstack_base.
4894 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4895 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4896 (read_unwind_info): Use size_t for some locals.
4897 * jit.c (finalize_symtab): Likewise.
4898 * utils.c (hashtab_obstack_allocate): Likewise.
4899 * symmisc.c (print_objfile_statistics): Update format strings.
4900
dc304a94
JK
49012014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4902
4903 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4904 (Changes in GDB 7.8): ... here.
4905
3cecbbbe
TT
49062014-08-04 Tom Tromey <tromey@redhat.com>
4907
4908 * target.c (set_targetdebug): New function.
4909 (initialize_targets): Pass set_targetdebug when creating "set
4910 debug target".
4911
6908c509
JB
49122014-08-01 Joel Brobecker <brobecker@adacore.com>
4913
4914 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4915 if detecting a variable-sized field that is not the last field.
4916 Fix struct type length computation.
4917
53e8f97d
JB
49182014-08-01 Joel Brobecker <brobecker@adacore.com>
4919
4920 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4921 Add debug trace.
4922
e068c55d
JB
49232014-08-01 Joel Brobecker <brobecker@adacore.com>
4924
4925 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4926 Remove "+ 8" offset in computation of CHAIN_VMA.
4927
4d4ca2a1
DE
49282014-07-31 Doug Evans <dje@google.com>
4929
4930 * inflow.c (child_terminal_inferior): Add comment.
4931 (child_terminal_ours_for_output): Add comment.
4932 (child_terminal_ours): Add comment.
4933 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4934 (linux_nat_terminal_ours): Add comment.
4935
462f517e
GB
49362014-07-31 Gary Benson <gbenson@redhat.com>
4937
4938 * common/btrace-common.h: Do not include defs.h or server.h.
4939 * nat/mips-linux-watch.h: Likewise.
4940 * gdb-dlfcn.h: Do not include defs.h.
4941 * tracefile.h: Likewise.
4942
74228e77
RM
49432014-07-30 Roland McGrath <mcgrathr@google.com>
4944
4945 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4946
014f9477
TT
49472014-07-30 Tom Tromey <tromey@redhat.com>
4948
4949 * bsd-kvm.c (bsd_kvm_open): Constify.
4950 * corelow.c (core_open): Constify.
4951 * ctf.c (ctf_open): Constify.
4952 * dbug-rom.c (dbug_open): Constify.
4953 * exec.c (exec_open): Constify.
4954 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4955 * microblaze-rom.c (picobug_open): Constify.
4956 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4957 Constify.
4958 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4959 * record-btrace.c (record_btrace_open): Constify.
4960 * record-full.c (record_full_core_open_1, record_full_open_1)
4961 (record_full_open): Constify.
4962 * remote-m32r-sdi.c (m32r_open): Constify.
4963 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4964 (rockhopper_open, lsi_open): Constify.
4965 * remote-sim.c (gdbsim_open): Constify.
4966 * remote.c (remote_open, extended_remote_open, remote_open_1):
4967 Constify.
4968 * target.h (struct target_ops) <to_open>: Make "arg" const.
4969 * tracefile-tfile.c (tfile_open): Constify.
4970
e799154c
TT
49712014-07-30 Tom Tromey <tromey@redhat.com>
4972
4973 * breakpoint.c (map_breakpoint_numbers): Update.
4974 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4975 (get_number_const): New function.
4976 (get_number): Rewrite using get_number_const.
4977 (init_number_or_range): Make "string" const.
4978 (number_is_in_list): Make "list" const.
4979 * cli/cli-utils.h (get_number_const): Declare.
4980 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4981 (init_number_or_range, number_is_in_list): Update.
4982 * printcmd.c (map_display_numbers): Update.
4983 * value.c (value_from_history_ref): Constify.
4984 * value.h (value_from_history_ref): Update.
4985
5f08566b
TT
49862014-07-30 Tom Tromey <tromey@redhat.com>
4987
4988 * corefile.c (hook_type, call_extra_exec_file_hooks)
4989 (specify_exec_file_hook): Constify.
4990 * exec.c (exec_file_attach): Make "filename" const.
4991 * gdbcore.h (deprecated_exec_file_display_hook)
4992 (specify_exec_file_hook, exec_file_attach): Constify.
4993 * main.c (captured_main): Use catch_command_errors_const.
4994
8981c758
TT
49952014-07-30 Tom Tromey <tromey@redhat.com>
4996
4997 * target.c (open_target): New function.
4998 (add_target_with_completer, add_deprecated_target_alias): Use
4999 set_cmd_sfunc, set_cmd_context.
5000 (debug_to_open): Remove.
5001 (setup_target_debug): Update.
5002
a1c7835a
YQ
50032014-07-30 Yao Qi <yao@codesourcery.com>
5004
5005 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5006 comments.
5007 * parse.c (exp_iterate): Update comments.
5008
976411d6
GB
50092014-07-30 Gary Benson <gbenson@redhat.com>
5010
5011 * common/common-defs.h: New file.
5012 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5013 * defs.h: Include common-defs.h.
5014 Do not include config.h or build-gnulib/config.h.
5015
5d4848a4
GB
50162014-07-30 Gary Benson <gbenson@redhat.com>
5017
5018 * common/common-utils.h: Do not include config.h.
5019 * nat/linux-btrace.h: Likewise.
5020
d41f6d8e
GB
50212014-07-30 Gary Benson <gbenson@redhat.com>
5022
5023 * btrace.c: Include defs.h.
5024 * common/ptid.c: Include defs.h or server.h as appropriate.
5025 * nat/mips-linux-watch.c: Likewise.
5026
84202f9c
TT
50272014-07-29 Tom Tromey <tromey@redhat.com>
5028
5029 * target.c (target_is_pushed): Simplify.
5030
2530441c
JB
50312014-07-29 Joel Brobecker <brobecker@adacore.com>
5032
5033 GDB 7.8 released.
5034
7e09a223
YQ
50352014-07-29 Yao Qi <yao@codesourcery.com>
5036
5037 PR gdb/17206
5038 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5039
7ebdbe92
DE
50402014-07-28 Doug Evans <xdje42@gmail.com>
5041
5042 PR guile/17203
5043 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5044 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5045 parameters.
5046
f347ffc9
WN
50472014-07-28 Will Newton <will.newton@linaro.org>
5048
5049 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5050 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5051 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5052 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5053 (THUMB2_EABI_SYSCALL): Likewise.
5054 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5055 struct tramp_frame.
5056 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5057 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5058
37c5f1f7
DE
50592014-07-27 Doug Evans <xdje42@gmail.com>
5060
5061 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5062
0c3abbc7
DE
50632014-07-27 Doug Evans <xdje42@gmail.com>
5064
5065 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5066
e76c5d17
DE
50672014-07-26 Ludovic Courtès <ludo@gnu.org>
5068 Doug Evans <xdje42@gmail.com>
5069
5070 PR guile/17146
5071 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5072 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5073 * configure.ac: Try to use guild to compile an scm file, if it fails
5074 then disable guile support.
5075 * configure: Regenerate.
5076 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5077 GUILE_FILE_LIST.
5078 (GUILE_COMPILED_FILES): New variable.
5079 (GUILE_FILES) Update.
5080 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5081 (stamp-guile): Compile scm files.
5082 * guile/guile.c (boot_guile_support): New function.
5083 (standard_throw_args_p): New function.
5084 (print_standard_throw_error, print_throw_error): New functions.
5085 (handle_boot_error): New function.
5086 (initialize_scheme_side): Rewrite to call boot_guile_support.
5087 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5088 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5089
186fcde0
DE
50902014-07-26 Ludovic Courtès <ludo@gnu.org>
5091 Doug Evans <xdje42@gmail.com>
5092
5093 PR guile/17146
5094 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5095 * guile/lib/gdb/support.scm: New file.
5096 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5097 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5098 All uses updated.
5099 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5100 All uses updated.
5101 (%assert-type): Ditto, and renamed to assert-type.
5102 (%exception-print-style): Delete.
5103
4df42755
DE
51042014-07-26 Doug Evans <xdje42@gmail.com>
5105
5106 PR build/17105
5107 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5108 * configure: Regenerate.
5109 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5110 PYTHON_FILES.
5111 (PYTHON_FILES): New variable.
5112 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5113 (GUILE_FILES): New variable.
5114 (stamp-python, install-python, uninstall-python): Handle empty
5115 file list.
5116 (stamp-guile, install-guile, uninstall-guile): Ditto.
5117
ee7333ae
DE
51182014-07-26 Doug Evans <xdje42@gmail.com>
5119
5120 PR guile/17177
5121 * guile/lib/gdb.scm (pretty-printers): Export.
5122 (set-pretty-printers!): Export.
5123 * guile/lib/gdb/printing.scm (gdb module): Update.
5124 (prepend-pretty-printer!, append-pretty-printer!): Update.
5125 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5126 (pretty_printer_list_var): Delete.
5127 (pretty_printer_list): New static global.
5128 (gdbscm_pretty_printers): New function.
5129 (gdbscm_set_pretty_printers_x): New function.
5130 (ppscm_find_pretty_printer_from_gdb): Update.
5131 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5132 (gdbscm_initialize_pretty_printers): Update.
5133
74edf516
DE
51342014-07-26 Doug Evans <xdje42@gmail.com>
5135
5136 PR 17185
5137 * configure.ac: Add check for header gc/gc.h.
5138 Add check for function setenv.
5139 * configure: Regenerate.
5140 * config.in: Regenerate.
5141 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5142
d54398a7
MR
51432014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5144
5145 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5146 variation in gdbarch matching.
5147
ab16fce8
TT
51482014-07-25 Tom Tromey <tromey@redhat.com>
5149
5150 * exec.c (using_exec_ops): Remove.
5151 (exec_close_1): Update. Remove extraneous block, reindent.
5152 (add_target_sections): Use target_is_pushed.
5153
88056fbb
PA
51542014-07-25 Pedro Alves <palves@redhat.com>
5155
5156 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5157 * monitor.c (monitor_create_inferior): Likewise.
5158 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5159 * remote-sim.c (gdbsim_create_inferior): Likewise.
5160 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5161 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5162 * windows-nat.c (do_initial_windows_stuff): Likewise.
5163
70509625
PA
51642014-07-25 Pedro Alves <palves@redhat.com>
5165
5166 * NEWS: Mention signal passing and "signal" command changes.
5167 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5168 comment.
5169 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5170 call.
5171 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5172 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5173 (jump_command): Adjust clear_proceed_status call.
5174 (signal_command): Warn if other thread that are resumed have
5175 signals that will be delivered. Adjust clear_proceed_status call.
5176 (until_next_command, finish_command)
5177 (proceed_after_attach_callback, attach_command_post_wait)
5178 (attach_command): Adjust clear_proceed_status call.
5179 * infrun.c (proceed_after_vfork_done): Likewise.
5180 (proceed_after_attach_callback): Adjust comment.
5181 (clear_proceed_status_thread): Clear stop_signal if not in pass
5182 state.
5183 (clear_proceed_status_callback): Delete.
5184 (clear_proceed_status): New 'step' parameter. Only clear the
5185 proceed status of threads the command being prepared is about to
5186 resume.
5187 (proceed): If passed in an explicit signal, override stop_signal
5188 with it. Don't pass the last stop signal to the thread we're
5189 resuming.
5190 (init_wait_for_inferior): Adjust clear_proceed_status call.
5191 (switch_back_to_stepped_thread): Clear the signal if it should not
5192 be passed.
5193 * infrun.h (clear_proceed_status): New 'step' parameter.
5194 (user_visible_resume_ptid): Add comment.
5195 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5196 signal is in pass state.
5197 * remote.c (append_pending_thread_resumptions): Likewise.
5198 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5199
d8be2939
TT
52002014-07-25 Tom Tromey <tromey@redhat.com>
5201
5202 * target.h (target_stopped_data_address)
5203 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5204 parentheses.
5205
7d0d9d2b
PL
52062014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5207
5208 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5209 comments.
5210 (avr_pointer_to_address): Likewise.
5211
e9e7f724
TT
52122014-07-24 Tom Tromey <tromey@redhat.com>
5213
5214 * monitor.c (compile_pattern): Update.
5215 * target.h (struct target_ops) <to_shortname, to_longname,
5216 to_doc>: Now const.
5217
1947513d
TT
52182014-07-24 Tom Tromey <tromey@redhat.com>
5219
5220 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5221 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5222 (add_info_alias, add_com): Make "doc" const.
5223 (print_doc_line): Make "str" const.
5224 (delete_cmd): Update.
5225 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5226 (print_doc_line): Update.
5227 * cli/cli-script.c (document_command): Update.
5228 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5229 (add_com, add_info, add_info_alias): Update.
5230 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5231 * python/py-cmd.c (cmdpy_destroyer): Update.
5232
64e61d29
TT
52332014-07-24 Tom Tromey <tromey@redhat.com>
5234
5235 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5236 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5237 (help_cmd_list): Constify.
5238 (lookup_cmd): Update.
5239 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5240 const.
5241 (help_cmd_list, apropos_cmd): Update.
5242 * cli/cli-script.c (show_user): Update.
5243 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5244 * cli/cli-setshow.h (cmd_show_list): Update.
5245 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5246 (cmd_show_list): Update.
5247 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5248 * python/py-cmd.c (cmdpy_destroyer): Update.
5249
429e55ea
TT
52502014-07-24 Tom Tromey <tromey@redhat.com>
5251
5252 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5253 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5254 const.
5255 * command.h (deprecate_cmd): Update.
5256 * maint.c (maintenance_do_deprecate): Add casts.
5257
64669f3b
TT
52582014-07-24 Tom Tromey <tromey@redhat.com>
5259
5260 * cli/cli-decode.c (help_cmd): Make parameter "const".
5261 * cli/cli-decode.h (help_cmd): Update.
5262
d3d3328b
TT
52632014-07-24 Tom Tromey <tromey@redhat.com>
5264
5265 * stack.c (up_silently_base, down_silently_base): Make argument
5266 const.
5267
414842dc
TT
52682014-07-24 Tom Tromey <tromey@redhat.com>
5269
5270 * solib.c (solib_add): Make "pattern" const.
5271 * solib.h (solib_add): Update.
5272
baa336ce
TT
52732014-07-24 Tom Tromey <tromey@redhat.com>
5274
5275 * remote.c (remote_serial_open, print_packet, putpkt)
5276 (putpkt_binary): Constify.
5277 * remote.h (putpkt): Update.
5278
5a19e2d0
TT
52792014-07-24 Tom Tromey <tromey@redhat.com>
5280
5281 * monitor.c (monitor_open): Make "args" const.
5282 * monitor.h (monitor_open): Update.
5283
fc4baa5e
TT
52842014-07-24 Tom Tromey <tromey@redhat.com>
5285
5286 * maint.c (match_bfd_flags): Make "string" const.
5287 (print_bfd_section_info): Remove casts.
5288 (print_objfile_section_info): Make "string" const.
5289
0d5f0dbe
TT
52902014-07-24 Tom Tromey <tromey@redhat.com>
5291
5292 * inf-child.c (inf_child_open_target): Make "arg" const.
5293 * inf-child.h (inf_child_open_target): Update.
5294
41c77899
TT
52952014-07-24 Tom Tromey <tromey@redhat.com>
5296
5297 * environ.c (unset_in_environ): Make "var" const.
5298 * environ.h (unset_in_environ): Update.
5299
93db0d79
TT
53002014-07-24 Tom Tromey <tromey@redhat.com>
5301
5302 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5303 Make "cmd" const.
5304 (scan_filename_with_cleanup): Likewise.
5305 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5306 Make arguments const.
5307 (restore_command): Update.
5308
36d6eb95
PA
53092014-07-24 Pedro Alves <palves@redhat.com>
5310
5311 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5312
8009206a
TT
53132014-07-24 Tom Tromey <tromey@redhat.com>
5314 Gary Benson <gbenson@redhat.com>
5315
5316 * nat/linux-ptrace.c (additional_flags): New global.
5317 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5318 additional_flags; don't check GDBSERVER.
5319 (linux_ptrace_set_additional_flags): New function.
5320 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5321 Declare.
5322 * linux-nat.c (_initialize_linux_nat): Call
5323 linux_ptrace_set_additional_flags.
5324
a7068b60
TT
53252014-07-24 Tom Tromey <tromey@redhat.com>
5326
5327 * make-target-delegates (munge_type, write_debugmethod): New
5328 functions.
5329 (debug_names): New global.
5330 ($TARGET_DEBUG_PRINTER): New global.
5331 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5332 name.
5333 Write debug methods. Generate init_debug_target.
5334 * target-debug.h: New file.
5335 * target-delegates.c: Rebuild.
5336 * target.c: Include target-debug.h.
5337 (debug_target): Hoist definition.
5338 (target_kill, target_get_section_table, target_memory_map)
5339 (target_flash_erase, target_flash_done, target_detach)
5340 (target_disconnect, target_wait, target_resume)
5341 (target_pass_signals, target_program_signals, target_follow_fork)
5342 (target_mourn_inferior, target_search_memory)
5343 (target_thread_address_space, target_close)
5344 (target_find_new_threads, target_core_of_thread)
5345 (target_verify_memory, target_insert_mask_watchpoint)
5346 (target_remove_mask_watchpoint): Remove targetdebug code.
5347 (debug_to_post_attach, debug_to_prepare_to_store)
5348 (debug_to_files_info, debug_to_insert_breakpoint)
5349 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5350 (debug_to_region_ok_for_hw_watchpoint)
5351 (debug_to_can_accel_watchpoint_condition)
5352 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5353 (debug_to_watchpoint_addr_within_range)
5354 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5355 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5356 (debug_to_terminal_init, debug_to_terminal_inferior)
5357 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5358 (debug_to_terminal_save_ours, debug_to_terminal_info)
5359 (debug_to_load, debug_to_post_startup_inferior)
5360 (debug_to_insert_fork_catchpoint)
5361 (debug_to_remove_fork_catchpoint)
5362 (debug_to_insert_vfork_catchpoint)
5363 (debug_to_remove_vfork_catchpoint)
5364 (debug_to_insert_exec_catchpoint)
5365 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5366 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5367 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5368 (setup_target_debug): Call init_debug_target.
5369 * target.h (TARGET_DEBUG_PRINTER): New macro.
5370 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5371 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5372
2c51604d
GB
53732014-07-24 Gary Benson <gbenson@redhat.com>
5374
5375 * exceptions.h (throw_vfatal): Renamed to...
5376 (throw_vquit): New declaration.
5377 (throw_quit): Likewise.
5378 * exceptions.c (throw_vfatal): Renamed to...
5379 (throw_vquit): New function.
5380 (throw_quit): Likewise.
5381 (throw_error): Call throw_verror rather than throw_it.
5382 * utils.h (vfatal): Removed.
5383 (fatal): Likewise.
5384 * utils.c (vfatal): Removed.
5385 (fatal): Likewise.
5386 (internal_verror): Replaced call to fatal with call to throw_quit.
5387 (quit): Replaced calls to fatal with calls to throw_quit.
5388
34211963
ME
53892014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5390
5391 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5392 target_read_code.
5393
a52b4d3e
ME
53942014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5395
5396 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5397 less than zero in conditional expression.
5398
a8bdc56b
TT
53992014-07-23 Tom Tromey <tromey@redhat.com>
5400
5401 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5402 ($INTRO_PART): Don't match whitespace.
5403 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5404 argument matching.
5405 ($METHOD): Add $METHOD_TRAILER.
5406 (trim): Rewrite.
5407 (scan_target_h): New sub.
5408 Change main loop not to collect state.
5409 * target-delegates.c: Rebuild.
5410
91b52240
GB
54112014-07-23 Gary Benson <gbenson@redhat.com>
5412
5413 * cp-support.c (gdb_demangle): Fix build on systems without
5414 sigaltstack.
5415
45326f6f
JK
54162014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5417
5418 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5419 for reference entry value target data value.
5420
e214cf6c
JK
54212014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5422
5423 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5424 value_available_contents_eq.
5425
bddbbedd
PA
54262014-07-22 Pedro Alves <palves@redhat.com>
5427
5428 * value.c (allocate_optimized_out_value): Don't mark value as
5429 non-lazy.
5430
45c71484
JW
54312014-07-22 Jiong Wang <jiong.wang@arm.com>
5432
5433 * MAINTAINERS (Write After Approval): Update my email address.
5434
9597b22a
DE
54352014-07-20 Doug Evans <dje@google.com>
5436
5437 PR server/17147
5438 * remote.c (putpkt_binary): Add text to error message.
5439
91101fe5
YQ
54402014-07-20 Yao Qi <yao@codesourcery.com>
5441
5442 * eval.c: Remove "Chill" from comments.
5443 * gdbtypes.h: Likewise.
5444 * symtab.h: Likewise.
5445
c9402c95
YQ
54462014-07-20 Yao Qi <yao@codesourcery.com>
5447
5448 * std-operator.def: Update comments to TERNOP_SLICE.
5449
ae8fddda
YQ
54502014-07-20 Yao Qi <yao@codesourcery.com>
5451
5452 * std-operator.def: Remove BINOP_RANGE.
5453 * breakpoint.c (watchpoint_exp_is_const): Update.
5454 * expprint.c (dump_subexp_body_standard): Likewise.
5455 * eval.c (init_array_element): Remove dead code.
5456 (evaluate_subexp_standard): Likewise.
5457
9c816640
YQ
54582014-07-20 Yao Qi <yao@codesourcery.com>
5459
5460 * std-operator.def: Remove BINOP_IN.
5461 * breakpoint.c (watchpoint_exp_is_const): Update.
5462 * eval.c (evaluate_subexp_standard): Likewise.
5463 * expprint.c (dump_subexp_body_standard): Likewise.
5464
164224e9
ME
54652014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5466
5467 * microblaze-tdep.c (microblaze_register_names): Add
5468 the rshr and rslr register names.
5469 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5470 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5471 Use of tdesc_numbered_register. Use of
5472 microblaze_register_g_packet_guesses. Use of
5473 tdesc_use_registers. Use of set_gdbarch_register_type.
5474 (microblaze_register_g_packet_guesses): New.
5475 * microblaze-tdep.h (microblaze_reg_num): Add
5476 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5477 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5478 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5479 * features/microblaze-core.xml: New file.
5480 * features/microblaze-stack-protect.xml: New file.
5481 * features/microblaze-with-stack-protect.c: New file.
5482 * features/microblaze-with-stack-protect.xml: New file.
5483 * features/microblaze.xml: New file.
5484 * features/microblaze.c: New file.
5485 * features/Makefile (microblaze-with-stack-protect): Add
5486 microblaze-with-stack-protect microblaze and microblaze-expedite.
5487 * regformats/microblaze-with-stack-protect.dat: New file.
5488 * regformats/microblaze.dat: New file.
5489 * doc/gdb.texinfo (MicroBlaze Features): Added.
5490
e8b2341c
TT
54912014-07-18 Tom Tromey <tromey@redhat.com>
5492
5493 * exec.c (exec_ops): Now static.
5494 * exec.h (exec_ops): Don't declare.
5495
44e89118
TT
54962014-07-18 Tom Tromey <tromey@redhat.com>
5497
5498 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5499 to find_target_beneath.
5500 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5501 find_target_beneath.
5502 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5503
b0ed115f
TT
55042014-07-18 Tom Tromey <tromey@redhat.com>
5505
5506 PR gdb/17130:
5507 * utils.c (quit): Use target_supports_terminal_ours.
5508 * target.h (target_supports_terminal_ours): Declare.
5509 * target.c (target_supports_delete_record): Don't check
5510 to_delete_record against NULL.
5511 (target_supports_terminal_ours): New function.
5512
e75fdfca
TT
55132014-07-18 Tom Tromey <tromey@redhat.com>
5514
5515 PR gdb/17130:
5516 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5517 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5518 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5519 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5520 * windows-nat.c (windows_xfer_partial): Always delegate.
5521 * record-btrace.c (record_btrace_xfer_partial): Simplify
5522 delegation.
5523 (record_btrace_fetch_registers, record_btrace_store_registers)
5524 (record_btrace_prepare_to_store, record_btrace_resume)
5525 (record_btrace_wait, record_btrace_find_new_threads)
5526 (record_btrace_thread_alive): Likewise.
5527 * procfs.c (procfs_xfer_partial): Always delegate.
5528 * corelow.c (core_xfer_partial): Always delegate.
5529 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5530
83814951
TT
55312014-07-18 Tom Tromey <tromey@redhat.com>
5532
5533 * exec.c (exec_make_note_section): Move earlier.
5534
b8b8facf
DE
55352014-07-17 Doug Evans <dje@google.com>
5536
74b49205 5537 PR gdb/17170
b8b8facf
DE
5538 * maint.c (count_symtabs_and_blocks): Handle NULL
5539 current_program_space.
5540 (report_command_stats): Check global enabled flag in addition to
5541 recorded enabled flag.
5542 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5543
69ff6be5
PA
55442014-07-16 Pedro Alves <palves@redhat.com>
5545
5546 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5547
252db1b5
TT
55482014-07-16 Tom Tromey <tromey@redhat.com>
5549
5550 * target.h (struct target_ops) <to_delete_record>: Reformat
5551 comment.
5552
a432721e
TT
55532014-07-16 Tom Tromey <tromey@redhat.com>
5554
5555 * target-delegates.c: Rebuild.
5556
487d9753
PL
55572014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5558
5559 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5560 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5561 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5562 (avr_pointer_to_address): Likewise.
5563 (avr_address_class_type_flags): New function.
5564 (avr_address_class_type_flags_to_name): Likewise.
5565 (avr_address_class_name_to_type_flags): Likewise.
5566 (avr_gdbarch_init): Set address_class_type_flags,
5567 address_class_type_flags_to_name and
5568 address_class_name_to_type_flags.
5569
57745c90
PA
55702014-07-15 Pedro Alves <palves@redhat.com>
5571
5572 * linux-nat.c (kill_callback): Save errno and work with saved
5573 copy.
5574
2d40be18
SM
55752014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5576
5577 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5578
572f6555
EBM
55792014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5580
5581 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5582 breakpoint support correctly.
5583
cc1c52ad
PA
55842014-07-14 Pedro Alves <palves@redhat.com>
5585
5586 * utils.c (prompt_for_continue): Call target_terminal_ours.
5587
1e973570
PA
55882014-07-14 Pedro Alves <palves@redhat.com>
5589
5590 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5591 catch_errors. Don't re-enable stdin or notify observers where,
5592 and rethrow error.
5593 (fetch_inferior_event_wrapper): Delete.
5594
93d6eb10
PA
55952014-07-14 Pedro Alves <palves@redhat.com>
5596
5597 PR gdb/17072
5598 * top.c: Include "inf-loop.h".
5599 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5600 field.
5601 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5602 was async before.
5603 (gdb_readline_wrapper): Store whether the target is async, and
5604 make it sync.
5605
0017922d
PA
56062014-07-14 Pedro Alves <palves@redhat.com>
5607
5608 PR gdb/17072
5609 * top.c (gdb_readline_wrapper_line): Tweak comment.
5610 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5611 the input handler callback.
5612
94696ad3
PA
56132014-07-14 Pedro Alves <palves@redhat.com>
5614
5615 PR gdb/17072
5616 * main.c: Include event-top.h.
5617 (handle_command_errors): New function.
5618 (catch_command_errors, catch_command_errors_const): Use it.
5619
9d1e69a2
PA
56202014-07-14 Pedro Alves <palves@redhat.com>
5621
5622 * exceptions.c (catch_command_errors, catch_command_errors_const):
5623 Moved to main.c.
5624 * exceptions.h (catch_command_errors_ftype)
5625 (catch_command_errors_const_ftype): Moved to main.c.
5626 (catch_command_errors, catch_command_errors_const): Delete
5627 declarations.
5628 * main.c (catch_command_errors_ftype)
5629 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5630 (catch_command_errors, catch_command_errors_const)): Moved here
5631 from exceptions.c and make static.
5632
feefc97b
PA
56332014-07-14 Pedro Alves <palves@redhat.com>
5634
5635 * exceptions.c (print_any_exception): Delete.
5636 (catch_exceptions_with_msg): Use exception_print instead of
5637 print_any_exception.
5638 (catch_errors): Use exception_fprintf instead of
5639 print_any_exception.
5640 (catch_command_errors, catch_command_errors_const): Use
5641 exception_print instead of print_any_exception.
5642
c933f875
PA
56432014-07-14 Pedro Alves <palves@redhat.com>
5644
5645 * infcall.c (run_inferior_call): Set 'sync_execution' while
5646 running the inferior call.
5647
feb6f816
PA
56482014-07-14 Pedro Alves <palves@redhat.com>
5649
5650 * value.c (value_contents_equal): Delete function.
5651 * value.h (value_contents_equal): Delete declaration.
5652
d98b7a16
TT
56532014-07-14 Tom Tromey <tromey@redhat.com>
5654
5655 PR exp/17106:
5656 * gdbtypes.c (is_dynamic_type_internal): New function, from
5657 is_dynamic_type.
5658 (is_dynamic_type): Rewrite.
5659 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5660 (resolve_dynamic_struct): Likewise.
5661 (resolve_dynamic_type_internal): New function, from
5662 resolve_dynamic_type.
5663 (resolve_dynamic_type): Rewrite.
5664
548740d6
TT
56652014-07-14 Tom Tromey <tromey@redhat.com>
5666
5667 * target.c (target_require_runnable): Also check record_stratum.
5668 Update comment.
5669
808f7ab1
YQ
56702014-07-11 Yao Qi <yao@codesourcery.com>
5671
5672 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5673 thumb_instruction_restores_sp return true.
5674
540314bd
YQ
56752014-07-11 Yao Qi <yao@codesourcery.com>
5676
5677 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5678 (thumb_in_function_epilogue_p): Call
5679 thumb_instruction_restores_sp.
5680
1db01f22
YQ
56812014-07-11 Yao Qi <yao@codesourcery.com>
5682
5683 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5684 'add sp, #imm'.
5685 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5686
3116063b
GB
56872014-07-11 Gary Benson <gbenson@redhat.com>
5688
5689 * amd64-linux-nat.c (gdbcore.h): Remove include.
5690 (regset.h): Likewise.
5691 (nat/linux-btrace.h): Likewise.
5692 (btrace.h): Likewise.
5693 (gdb_assert.h): Likewise.
5694 (string.h): Likewise.
5695 (sys/uio.h): Likewise.
5696 (sys/debugreg.h): Likewise.
5697 (sys/syscall.h): Likewise.
5698 (sys/procfs.h): Likewise.
5699 (sys/user.h): Likewise.
5700 (asm/ptrace.h): Likewise.
5701 (i386-nat.h): Likewise.
5702 * i386-linux-nat.c (i386-nat.h): Likewise.
5703 (regset.h): Likewise.
5704 (target.h): Likewise.
5705 (linux-nat.h): Likewise.
5706 (nat/linux-btrace.h): Likewise.
5707 (btrace.h): Likewise.
5708 (gdb_assert.h): Likewise.
5709 (string.h): Likewise.
5710 (sys/uio.h): Likewise.
5711 (sys/user.h): Likewise.
5712 (sys/procfs.h): Likewise.
5713 (sys/reg.h): Likewise.
5714 (sys/debugreg.h): Likewise.
5715 (ORIG_EAX): Remove definition.
5716
040baaf6
GB
57172014-07-11 Gary Benson <gbenson@redhat.com>
5718
5719 * i386-linux-nat.h: New file.
5720 * x86-linux-nat.h: Likewise.
5721 * x86-linux-nat.c: Likewise.
5722 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5723 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5724 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5725 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5726 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5727 (PTRACE_SETREGSET): Likewise.
5728 (arch_lwp_info): Now in x86-linux-nat.c.
5729 (have_ptrace_getregset): Now in x86-linux-nat.h.
5730 (x86_linux_dr_get): Now in x86-linux-nat.c.
5731 (x86_linux_dr_set): Likewise.
5732 (x86_linux_dr_get_addr): Likewise.
5733 (x86_linux_dr_get_control): Likewise.
5734 (x86_linux_dr_get_status): Likewise.
5735 (update_debug_registers_callback): Likewise.
5736 (x86_linux_dr_set_control): Likewise.
5737 (x86_linux_dr_set_addr): Likewise.
5738 (x86_linux_prepare_to_resume): Likewise.
5739 (x86_linux_new_thread): Likewise.
5740 (x86_linux_new_fork): Likewise.
5741 (x86_linux_get_thread_area): Likewise.
5742 (super_post_startup_inferior): Likewise.
5743 (x86_linux_child_post_startup_inferior): Likewise.
5744 (AMD64_LINUX_USER64_CS): Likewise.
5745 (AMD64_LINUX_X32_DS): Likewise.
5746 (x86_linux_read_description): Likewise.
5747 (x86_linux_enable_btrace): Likewise.
5748 (x86_linux_disable_btrace): Likewise.
5749 (x86_linux_teardown_btrace): Likewise.
5750 (x86_linux_read_btrace): Likewise.
5751 (x86_linux_create_target): Likewise.
5752 (x86_linux_add_target): Likewise.
5753 * i386-linux-nat.c (x86-linux-nat.h): New include.
5754 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5755 (PTRACE_SETREGSET): Likewise.
5756 (arch_lwp_info): Now in x86-linux-nat.c.
5757 (have_ptrace_getregset): Now in x86-linux-nat.h.
5758 (x86_linux_dr_get): Now in x86-linux-nat.c.
5759 (x86_linux_dr_set): Likewise.
5760 (x86_linux_dr_get_addr): Likewise.
5761 (x86_linux_dr_get_control): Likewise.
5762 (x86_linux_dr_get_status): Likewise.
5763 (update_debug_registers_callback): Likewise.
5764 (x86_linux_dr_set_control): Likewise.
5765 (x86_linux_dr_set_addr): Likewise.
5766 (x86_linux_prepare_to_resume): Likewise.
5767 (x86_linux_new_thread): Likewise.
5768 (x86_linux_new_fork): Likewise.
5769 (x86_linux_get_thread_area): Likewise.
5770 (super_post_startup_inferior): Likewise.
5771 (x86_linux_child_post_startup_inferior): Likewise.
5772 (AMD64_LINUX_USER64_CS): Likewise.
5773 (AMD64_LINUX_X32_DS): Likewise.
5774 (x86_linux_read_description): Likewise.
5775 (x86_linux_enable_btrace): Likewise.
5776 (x86_linux_disable_btrace): Likewise.
5777 (x86_linux_teardown_btrace): Likewise.
5778 (x86_linux_read_btrace): Likewise.
5779 (x86_linux_create_target): Likewise.
5780 (x86_linux_add_target): Likewise.
5781
1aa7e42c
GB
57822014-07-11 Gary Benson <gbenson@redhat.com>
5783
5784 * amd64-linux-nat.c: Comment and whitespace changes.
5785 * i386-linux-nat.c: Comment and whitespace changes.
5786
c1e246a0
GB
57872014-07-11 Gary Benson <gbenson@redhat.com>
5788
5789 * amd64-linux-nat.c (x86_linux_create_target): New function.
5790 (x86_linux_add_target): Likewise.
5791 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5792 * i386-linux-nat.c (x86_linux_create_target): New function.
5793 (x86_linux_add_target): Likewise.
5794 (_initialize_i386_linux_nat): Delegate to the above new functions.
5795
8c420b8d
GB
57962014-07-11 Gary Benson <gbenson@redhat.com>
5797
5798 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5799 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5800 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5801 (ps_get_thread_area): Delegate to the above.
5802
cb1da100
GB
58032014-07-11 Gary Benson <gbenson@redhat.com>
5804
5805 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5806 x86_linux_read_description. All uses updated. amd64-specific
5807 code conditionalized. Conditionalized i386-specific code added.
5808 Redundant cast removed.
5809 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5810 x86_linux_read_description. All uses updated. i386-specific
5811 code conditionalized. Conditionalized amd64-specific code added.
5812 One sizeof replaced with the actual type it is describing.
5813
2acf3cd0
GB
58142014-07-11 Gary Benson <gbenson@redhat.com>
5815
5816 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5817 x86_linux_dr_get. All uses updated.
5818 (amd64_linux_dr_set): Renamed to
5819 x86_linux_dr_set. All uses updated.
5820 (amd64_linux_dr_get_addr): Renamed to
5821 x86_linux_dr_get_addr. All uses updated.
5822 (amd64_linux_dr_get_control): Renamed to
5823 x86_linux_dr_get_control. All uses updated.
5824 (amd64_linux_dr_get_status): Renamed to
5825 x86_linux_dr_get_status. All uses updated.
5826 (amd64_linux_dr_set_control): Renamed to
5827 x86_linux_dr_set_control. All uses updated.
5828 (amd64_linux_dr_set_addr): Renamed to
5829 x86_linux_dr_set_addr. All uses updated.
5830 (amd64_linux_prepare_to_resume): Renamed to
5831 x86_linux_prepare_to_resume. All uses updated.
5832 (amd64_linux_new_thread): Renamed to
5833 x86_linux_new_thread. All uses updated.
5834 (amd64_linux_new_fork): Renamed to
5835 x86_linux_new_fork. All uses updated.
5836 (amd64_linux_child_post_startup_inferior): Renamed to
5837 x86_linux_child_post_startup_inferior. All uses updated.
5838 (amd64_linux_enable_btrace): Renamed to
5839 x86_linux_enable_btrace. All uses updated.
5840 (amd64_linux_disable_btrace): Renamed to
5841 x86_linux_disable_btrace. All uses updated.
5842 (amd64_linux_teardown_btrace): Renamed to
5843 x86_linux_teardown_btrace. All uses updated.
5844 (amd64_linux_read_btrace): Renamed to
5845 x86_linux_read_btrace. All uses updated.
5846 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5847 x86_linux_dr_get. All uses updated.
5848 (i386_linux_dr_set): Renamed to
5849 x86_linux_dr_set. All uses updated.
5850 (i386_linux_dr_get_addr): Renamed to
5851 x86_linux_dr_get_addr. All uses updated.
5852 (i386_linux_dr_get_control): Renamed to
5853 x86_linux_dr_get_control. All uses updated.
5854 (i386_linux_dr_get_status): Renamed to
5855 x86_linux_dr_get_status. All uses updated.
5856 (i386_linux_dr_set_control): Renamed to
5857 x86_linux_dr_set_control. All uses updated.
5858 (i386_linux_dr_set_addr): Renamed to
5859 x86_linux_dr_set_addr. All uses updated.
5860 (i386_linux_prepare_to_resume): Renamed to
5861 x86_linux_prepare_to_resume. All uses updated.
5862 (i386_linux_new_thread): Renamed to
5863 x86_linux_new_thread. All uses updated.
5864 (i386_linux_new_fork): Renamed to
5865 x86_linux_new_fork. All uses updated.
5866 (i386_linux_child_post_startup_inferior): Renamed to
5867 x86_linux_child_post_startup_inferior. All uses updated.
5868 (i386_linux_enable_btrace): Renamed to
5869 x86_linux_enable_btrace. All uses updated.
5870 (i386_linux_disable_btrace): Renamed to
5871 x86_linux_disable_btrace. All uses updated.
5872 (i386_linux_teardown_btrace): Renamed to
5873 x86_linux_teardown_btrace. All uses updated.
5874 (i386_linux_read_btrace): Renamed to
5875 x86_linux_read_btrace. All uses updated.
5876
b9c1d481
AS
58772014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5878
5879 * remote.c (extended_remote_post_attach): New function.
5880 (init_extended_remote_ops): Install it as to_post_attach method.
5881
7180e04a
PA
58822014-07-09 Pedro Alves <palves@redhat.com>
5883
5884 * infcmd.c (attach_command_post_wait): Don't call
5885 target_terminal_inferior here.
5886 (attach_command): Call it here instead.
5887
9a9a7608
AB
58882014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5889
5890 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5891 field.
5892 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5893 from varobj.c, with additional checks.
5894 (c_varobj_ops): Fill in is_path_expr_parent field.
5895 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5896 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5897 field.
5898 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5899 ops method.
5900 (varobj_default_is_path_expr_parent): New function.
5901 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5902 (varobj_default_is_path_expr_parent): Declare new function.
5903
1f267ae3
MM
59042014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5905
5906 * infcmd.c (finish_backward): Turn internal error into normal error.
5907
b2ee242b
PA
59082014-07-07 Pedro Alves <palves@redhat.com>
5909
8a869bca 5910 PR gdb/17096
b2ee242b
PA
5911 * remote.c (async_handle_remote_sigint)
5912 (async_handle_remote_sigint_twice): Call
5913 gdb_call_async_signal_handler instead of
5914 mark_async_signal_handler.
5915
38e229b2
TT
59162014-07-07 Tom Tromey <tromey@redhat.com>
5917
5918 * target-delegates.c: Rebuild.
5919 * target.c (target_info_record): Remove.
5920 * record.c (info_record_command): Unconditionally call
5921 to_info_record.
5922 * target.h (struct target_ops) <to_info_record>: Use
5923 TARGET_DEFAULT_IGNORE.
5924 (target_info_record): Remove.
5925
f0f9ff95
TT
59262014-07-07 Tom Tromey <tromey@redhat.com>
5927
5928 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5929 TARGET_DEFAULT_NORETURN.
5930 * target.c (generic_tls_error): New function.
5931 (target_translate_tls_address): Don't search target stack.
5932 * target-delegates.c: Rebuild.
5933 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5934 stack.
5935 * linux-thread-db.c (thread_db_get_thread_local_address):
5936 Unconditionally call beneath target.
5937
4a5be5ee
MK
59382014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5939
5940 * cli/cli-logging.c (pop_output_files): Assign targerr to
5941 gdb_stdtargerr.
5942
92c3b204
AB
59432014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5944
5945 * MAINTAINERS (Write After Approval): Update my email address.
5946
9b11e3a7
GB
59472014-07-02 Gary Benson <gbenson@redhat.com>
5948
5949 * proc-service.c (ps_xfer_memory): Update comment.
5950 (ps_pstop): Remove unused function.
5951 (ps_pcontinue): Likewise.
5952 (ps_lstop): Likewise.
5953 (ps_lcontinue): Likewise.
5954 (ps_lgetxregsize): Likewise.
5955 (ps_lgetxregs): Likewise.
5956 (ps_lsetxregs): Likewise.
5957 (ps_plog): Likewise.
5958 (ps_ptread): Likewise.
5959 (ps_ptwrite): Likewise.
5960
cf363f18
MW
59612014-07-01 Mark Wielaard <mjw@redhat.com>
5962
5963 * dwarf2read.c (add_array_cv_type): New function.
5964 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5965 (read_tag_volatile_type): Likewise.
5966
82ae6c8d
TT
59672014-07-01 Tom Tromey <tromey@redhat.com>
5968
5969 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5970 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5971 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5972 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5973 * command.h (cmd_cfunc_ftype): Move earlier.
5974 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5975 (add_com, add_info): Use cmd_cfunc_ftype.
5976
96142726
TT
59772014-06-30 Tom Tromey <tromey@redhat.com>
5978
5979 * symtab.c (operator_chars): Make parameters and return type
5980 const.
5981 (file_matches): Make "files" const.
5982 (struct search_symbols_data) <files>: Now const.
5983 (search_symbols): Make "regexp" and "files" parameters const.
5984 Update.
5985 (symtab_symbol_info): Remove cast.
5986 (rbreak_command): Update.
5987 * symtab.h (search_symbols): Update.
5988
b67a2c6f
YQ
59892014-06-27 Yao Qi <yao@codesourcery.com>
5990
5991 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5992 Change parameter type to 'struct thread_info *'. Caller
5993 updated.
5994 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5995 Update declaration.
5996 * dummy-frame.c (struct dummy_frame_id): New.
5997 (dummy_frame_id_eq): New function.
5998 (struct dummy_frame) <id>: Change its type to 'struct
5999 dummy_frame_id'.
6000 (dummy_frame_push): Add parameter ptid and save it in
6001 dummy_frame_id.
6002 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6003 inferior_ptid.
6004 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6005 to inferior_ptid.
6006 (lookup_dummy_frame): Change parameter type to 'struct
6007 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6008 instead of frame_id_eq.
6009 (dummy_frame_pop): Add parameter ptid. Callers updated.
6010 Update comments. Compose dummy_frame_id and pass it to
6011 lookup_dummy_frame.
6012 (dummy_frame_discard): Add parameter ptid.
6013 (dummy_frame_sniffer): Compose dummy_frame_id and call
6014 dummy_frame_id_eq instead of frame_id_eq.
6015 (fprint_dummy_frames): Print ptid.
6016 * dummy-frame.h: Remove comments.
6017 (dummy_frame_push): Add ptid in declaration.
6018 (dummy_frame_pop, dummy_frame_discard): Likewise.
6019
5b10184c
TT
60202014-06-26 Tom Tromey <tromey@redhat.com>
6021
6022 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6023 * command.h (error_no_arg): Update.
6024
06900326
TT
60252014-06-26 Tom Tromey <tromey@redhat.com>
6026
6027 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6028 (do_show_command): Make "arg" const.
6029 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6030
c2bcbb1d
TT
60312014-06-26 Tom Tromey <tromey@redhat.com>
6032
6033 * record-full.c (record_full_get_bookmark): Make "args" const.
6034 (record_full_goto_bookmark): Make "raw_bookmark" const.
6035 * record.c (record_goto): New function.
6036 (cmd_record_goto): Use it. Now static.
6037 * record.h (record_goto): Declare.
6038 (cmd_record_goto): Remove declaration.
6039 * target-delegates.c: Rebuild.
6040 * target.h (struct target_ops) <to_get_bookmark,
6041 to_goto_bookmark>: Make parameter const.
6042
9cbe5fff
TT
60432014-06-26 Tom Tromey <tromey@redhat.com>
6044
6045 * defs.h (generic_load): Update.
6046 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6047 * monitor.c (monitor_load): Make "args" const.
6048 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6049 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6050 const.
6051 (mips_load): Make "file" const.
6052 * remote-sim.c (gdbsim_load): Make "args" const.
6053 * remote.c (remote_load): Make "name" const.
6054 * symfile.c (generic_load): Make "args" const.
6055 * target-delegates.c: Rebuild.
6056 * target.c (target_load): Make "arg" const.
6057 (debug_to_load): Make "args" const.
6058 * target.h (struct target_ops) <to_load>: Make parameter const.
6059 (target_load): Update.
6060
34a68019
TT
60612014-06-26 Tom Tromey <tromey@redhat.com>
6062
6063 PR symtab/16902:
6064 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6065 (dwarf2_physname, read_partial_die)
6066 (guess_partial_die_structure_name, fixup_partial_die)
6067 (guess_full_die_structure_name, anonymous_struct_prefix)
6068 (dwarf2_name): Use per-BFD obstack.
6069
efc889c1
YQ
60702014-06-26 Yao Qi <yao@codesourcery.com>
6071
6072 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6073 dummyframe and this_id into inner block below.
6074
4395285e
YQ
60752014-06-26 Yao Qi <yao@codesourcery.com>
6076
6077 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6078 with "signal_pass[0]" in the initialization of signal_pass.
6079
aef92902
MM
60802014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6081
6082 * record-btrace.c (record_btrace_generating_corefile)
6083 (record_btrace_prepare_to_generate_core)
6084 (record_btrace_done_generating_core): New.
6085 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6086 (record_btrace_store_registers, record_btrace_prepare_to_store):
6087 Forward request when generating a core file.
6088 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6089 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6090 to_done_generating_core.
6091
5fff78c4
MM
60922014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6093
6094 * target.h (target_ops) <to_prepare_to_generate_core>
6095 <to_done_generating_core>: New.
6096 (target_prepare_to_generate_core, target_done_generating_core): New.
6097 * target.c (target_prepare_to_generate_core)
6098 (target_done_generating_core): New.
6099 * target-delegates.c: Regenerate.
6100 * gcore.c: (write_gcore_file): Rename to ...
6101 (write_gcore_file_1): ...this.
6102 (write_gcore_file): Call target_prepare_to_generate_core
6103 and target_done_generating_core.
6104
1d1f1ccb
MM
61052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6106
6107 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6108 * gcore.c (write_gcore_file): Free memory returned from
6109 make_corefile_notes.
6110 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6111 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6112
3343ef86
YQ
61132014-06-24 Yao Qi <yao@codesourcery.com>
6114
6115 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6116 (arm_linux_init_abi): Set skip_trampoline_code with
6117 gdbarch_skip_trampoline_code instead of
6118 find_solib_trampoline_target.
6119
18d18ac8
YQ
61202014-06-24 Yao Qi <yao@codesourcery.com>
6121
6122 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6123 arm_skip_bx_reg returns non-zero.
6124
80d8d390
YQ
61252014-06-24 Yao Qi <yao@codesourcery.com>
6126
6127 * arm-tdep.c (arm_skip_bx_reg): New function.
6128 (arm_skip_stub): Call arm_skip_bx_reg.
6129
6a18a01c
DB
61302014-06-23 Don Breazeal <donb@codesourcery.com>
6131
6132 * MAINTAINERS: Add myself as write-after-approval maintainer.
6133
8e9db26e
PA
61342014-06-23 Pedro Alves <palves@redhat.com>
6135
6136 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6137 DR_CONTROL before setting DR0..DR3.
6138 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6139 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6140 bits of DR_CONTROL related to the debug register slot being
6141 disabled. If all slots are vacant, clear local slowdown as well,
6142 and assert DR_CONTROL is 0.
6143
70afc5b7
SC
61442014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6145
6146 * python/lib/gdb/command/xmethods.py
6147 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6148 current progspace only if the string "progspace" matches LOCUS_RE.
6149
840ed64d
JK
61502014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6151
6152 Fix --with-system-readline with readline-6.3 patch 5.
6153 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6154 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6155 types.
6156
26f2dc30
TT
61572014-06-20 Tom Tromey <tromey@redhat.com>
6158
6159 * dwarf2read.c (dw2_get_real_path): Use correct type in
6160 OBSTACK_CALLOC.
6161 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6162
125f8a3d
GB
61632014-06-20 Gary Benson <gbenson@redhat.com>
6164
6165 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6166 * common/glibc_thread_db.h: Likewise.
6167 * common/i386-cpuid.h: Likewise.
6168 * common/i386-gcc-cpuid.h: Likewise.
6169 * common/linux-btrace.h: Likewise.
6170 * common/linux-osdata.h: Likewise.
6171 * common/linux-procfs.h: Likewise.
6172 * common/linux-ptrace.h: Likewise.
6173 * common/mips-linux-watch.h: Likewise.
6174 * common/linux-btrace.c: Moved to nat.
6175 * common/linux-osdata.c: Likewise.
6176 * common/linux-procfs.c: Likewise.
6177 * common/linux-ptrace.c: Likewise.
6178 * common/mips-linux-watch.c: Likewise.
6179 * nat/gdb_thread_db.h: Moved from common.
6180 * nat/glibc_thread_db.h: Likewise.
6181 * nat/i386-cpuid.h: Likewise.
6182 * nat/i386-gcc-cpuid.h: Likewise.
6183 * nat/linux-btrace.c: Likewise.
6184 * nat/linux-btrace.h: Likewise.
6185 * nat/linux-osdata.c: Likewise.
6186 * nat/linux-osdata.h: Likewise.
6187 * nat/linux-procfs.c: Likewise.
6188 * nat/linux-procfs.h: Likewise.
6189 * nat/linux-ptrace.c: Likewise.
6190 * nat/linux-ptrace.h: Likewise.
6191 * nat/mips-linux-watch.c: Likewise.
6192 * nat/mips-linux-watch.h: Likewise.
6193 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6194 (object file files): Reordered.
6195 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6196 of glibc_thread_db.h.
6197
42995dbd
GB
61982014-06-20 Gary Benson <gbenson@redhat.com>
6199
6200 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6201 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6202 (i386_dr_low): Likewise.
6203 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6204 (i386_dr_low_set_addr): Likewise.
6205 (i386_dr_low_get_addr): Likewise.
6206 (i386_dr_low_can_set_control): Likewise.
6207 (i386_dr_low_set_control): Likewise.
6208 (i386_dr_low_get_control): Likewise.
6209 (i386_dr_low_get_status): Likewise.
6210 (i386_get_debug_register_length): Likewise.
6211 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6212 (i386_dr_low): Likewise.
6213 * nat/i386-dregs.c (i386-low.h): Remove include.
6214 (i386-nat.h): Likewise.
6215 (nat/i386-dregs.h): New include.
6216 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6217 (i386_dr_low_set_addr): Likewise.
6218 (i386_dr_low_get_addr): Likewise.
6219 (i386_dr_low_can_set_control): Likewise.
6220 (i386_dr_low_set_control): Likewise.
6221 (i386_dr_low_get_control): Likewise.
6222 (i386_dr_low_get_status): Likewise.
6223 (i386_get_debug_register_length): Likewise.
6224 (debug_hw_points): Likewise.
6225
3ed9baed
IB
62262014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6227
6228 * Makefile.in (SFILES): Add d-exp.y.
6229 (YYFILES): Add d-exp.c.
6230 (YYOBJ): Add d-exp.o.
6231 (local-maintainer-clean): Delete d-exp.c.
6232 * d-exp.y: New file.
6233 * d-lang.h (d_parse): New declaration.
6234 (d_error): New declaration.
6235 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6236 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6237 PREC_ORDER operators.
6238 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6239
78c164b0
YQ
62402014-06-19 Yao Qi <yao@codesourcery.com>
6241
6242 * gdbthread.h (any_running): Remove the declaration.
6243 * thread.c (any_running): Remove.
6244
f6e29b6e
YQ
62452014-06-19 Yao Qi <yao@codesourcery.com>
6246
6247 * gdbthread.h (struct thread_info) <state>: Change its type to
6248 'enum thread_state'. Update comments.
6249
034f788c
PA
62502014-06-19 Pedro Alves <palves@redhat.com>
6251
6252 * gdbthread.h (ALL_THREADS): Delete.
6253 (ALL_NON_EXITED_THREADS): New macro.
6254 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6255 instead of ALL_THREADS.
6256 * infrun.c (find_thread_needs_step_over)
6257 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6258 instead of ALL_THREADS.
6259 * record-btrace.c (record_btrace_open)
6260 (record_btrace_stop_recording, record_btrace_close)
6261 (record_btrace_is_replaying, record_btrace_resume)
6262 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6263 * remote.c (append_pending_thread_resumptions): Likewise.
6264 * thread.c (thread_apply_all_command): Likewise.
6265
46e33252
GB
62662014-06-19 Gary Benson <gbenson@redhat.com>
6267
6268 * i386-nat.c (i386_stopped_by_watchpoint):
6269 Use i386_dr_stopped_by_watchpoint.
6270 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6271 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6272
3a8ee006
GB
62732014-06-19 Gary Benson <gbenson@redhat.com>
6274
6275 * nat/i386-dregs.c: New file.
6276 * Makefile.in (i386-dregs.o): New rule.
6277 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6278 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6279 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6280 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6281 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6282 * config/i386/go32.mh (NATDEPFILES): Likewise.
6283 * config/i386/linux.mh (NATDEPFILES): Likewise.
6284 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6285 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6286 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6287 * i386-nat.h (debug_hw_points): New declaration.
6288 * i386-nat.c (breakpoint.h): Remove include.
6289 (command.h): Likewise.
6290 (target.h): Likewise.
6291 (gdb_assert.h): Likewise.
6292 (debug_hw_points): Made nonstatic.
6293 (debug_printf): Now in i386-dregs.c.
6294 (TARGET_HAS_DR_LEN_8): Likewise.
6295 (DR_CONTROL_SHIFT): Likewise.
6296 (DR_CONTROL_SIZE): Likewise.
6297 (DR_RW_EXECUTE): Likewise.
6298 (DR_RW_WRITE): Likewise.
6299 (DR_RW_READ): Likewise.
6300 (DR_RW_IORW): Likewise.
6301 (DR_LEN_1): Likewise.
6302 (DR_LEN_2): Likewise.
6303 (DR_LEN_4): Likewise.
6304 (DR_LEN_8): Likewise.
6305 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6306 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6307 (DR_ENABLE_SIZE): Likewise.
6308 (DR_LOCAL_SLOWDOWN): Likewise.
6309 (DR_GLOBAL_SLOWDOWN): Likewise.
6310 (DR_CONTROL_RESERVED): Likewise.
6311 (I386_DR_CONTROL_MASK): Likewise.
6312 (I386_DR_VACANT): Likewise.
6313 (I386_DR_LOCAL_ENABLE): Likewise.
6314 (I386_DR_GLOBAL_ENABLE): Likewise.
6315 (I386_DR_DISABLE): Likewise.
6316 (I386_DR_SET_RW_LEN): Likewise.
6317 (I386_DR_GET_RW_LEN): Likewise.
6318 (I386_DR_WATCH_HIT): Likewise.
6319 (i386_wp_op_t): Likewise.
6320 (i386_show_dr): Likewise.
6321 (i386_length_and_rw_bits): Likewise.
6322 (i386_insert_aligned_watchpoint): Likewise.
6323 (i386_remove_aligned_watchpoint): Likewise.
6324 (i386_handle_nonaligned_watchpoint): Likewise.
6325 (i386_update_inferior_debug_regs): Likewise.
6326 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6327 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6328 (i386_region_ok_for_watchpoint):
6329 Use i386_dr_region_ok_for_watchpoint.
6330 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6331
322a8e06
GB
63322014-06-19 Gary Benson <gbenson@redhat.com>
6333
6334 * i386-nat.c (i386_insert_hw_breakpoint): Use
6335 i386_insert_watchpoint.
6336 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6337
8f26655c
GB
63382014-06-19 Gary Benson <gbenson@redhat.com>
6339
6340 * i386-nat.c (i386_dr_show): Renamed to
6341 i386_show_dr and made static. All uses updated.
6342 (i386_dr_length_and_rw_bits): Renamed to
6343 i386_length_and_rw_bits and made static.
6344 All uses updated.
6345 (i386_dr_insert_aligned_watchpoint): Renamed to
6346 i386_insert_aligned_watchpoint and made static.
6347 All uses updated.
6348 (i386_dr_remove_aligned_watchpoint): Renamed to
6349 i386_remove_aligned_watchpoint and made static.
6350 All uses updated.
6351 (i386_dr_update_inferior_debug_regs): Renamed to
6352 i386_update_inferior_debug_regs and made static.
6353 All uses updated.
6354 * nat/i386-dregs.h (i386_dr_show): Removed.
6355 (i386_dr_length_and_rw_bits): Likewise.
6356 (i386_dr_insert_aligned_watchpoint): Likewise.
6357 (i386_dr_remove_aligned_watchpoint): Likewise.
6358 (i386_dr_update_inferior_debug_regs): Likewise.
6359
992c7d70
GB
63602014-06-19 Gary Benson <gbenson@redhat.com>
6361
6362 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6363 * configure: Regenerate.
6364 * config.in: Likewise.
6365 * main.c (signal.h): New include.
6366 (setup_alternate_signal_stack): New function.
6367 (captured_main): Call the above.
6368 * cp-support.c (signal.h): New include.
6369 (catch_demangler_crashes): New flag.
6370 (SIGJMP_BUF): New define.
6371 (SIGSETJMP): Likewise.
6372 (SIGLONGJMP): Likewise.
6373 (gdb_demangle_jmp_buf): New static global.
6374 (gdb_demangle_attempt_core_dump): Likewise.
6375 (gdb_demangle_signal_handler): New function.
6376 (gdb_demangle): If catch_demangler_crashes is set, install the
6377 above signal handler before calling bfd_demangle, and restore
6378 the original signal handler afterwards. Display the offending
6379 symbol and call demangler_warning the first time a segmentation
6380 fault is caught.
6381 (_initialize_cp_support): New maint set/show command.
6382
eae7090b
GB
63832014-06-19 Gary Benson <gbenson@redhat.com>
6384
6385 * utils.h (resource_limit_kind): New enum.
6386 (can_dump_core): New declaration.
6387 (warn_cant_dump_core): Likewise.
6388 (dump_core): Likewise.
6389 * utils.c (dump_core): Made nonstatic. Added new
6390 parameter "limit_kind".
6391 (can_dump_core): Made nonstatic. Moved printing code to...
6392 (warn_cant_dump_core): New function.
6393 (can_dump_core_warn): Likewise.
6394 (internal_vproblem): Replace calls to can_dump_core with
6395 calls to can_dump_core_warn. Supply new argument to each.
6396
57fcfb1b
GB
63972014-06-19 Gary Benson <gbenson@redhat.com>
6398
6399 * utils.h (demangler_vwarning): New declaration.
6400 (demangler_warning): Likewise.
6401 * utils.c (struct internal_problem)
6402 <user_settable_should_quit>: New field.
6403 <user_settable_should_dump_core>: Likewise
6404 (internal_error_problem): Add values for above new fields.
6405 (internal_warning_problem): Likewise.
6406 (demangler_warning_problem): New static global.
6407 (demangler_vwarning): New function.
6408 (demangler_warning): Likewise.
6409 (add_internal_problem_command): Selectively add commands.
6410 (_initialize_utils): New internal problem command.
6411 * maint.c (maintenance_demangler_warning): New function.
6412 (_initialize_maint_cmds): New command.
6413
17a40b44
TT
64142014-06-18 Tom Tromey <tromey@redhat.com>
6415
6416 * f-valprint.c (info_common_command_for_block): Update.
6417 * symtab.h (struct general_symbol_info) <common_block>: Now
6418 const.
6419
346d1dfe
TT
64202014-06-18 Tom Tromey <tromey@redhat.com>
6421
6422 * symtab.h (struct symtab) <blockvector>: Now const.
6423 * ada-lang.c (ada_add_global_exceptions): Update.
6424 * buildsym.c (augment_type_symtab): Update.
6425 * dwarf2read.c (dw2_lookup_symbol): Update.
6426 * jit.c (finalize_symtab): Update.
6427 * jv-lang.c (add_class_symtab_symbol): Update.
6428 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6429 Update.
6430 * objfiles.c (objfile_relocate1): Update.
6431 * psymtab.c (lookup_symbol_aux_psymtabs)
6432 (maintenance_check_psymtabs): Update.
6433 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6434 Update.
6435 * spu-tdep.c (spu_catch_start): Update.
6436 * symmisc.c (dump_symtab_1): Update.
6437 * symtab.c (lookup_global_symbol_from_objfile)
6438 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6439 (basic_lookup_transparent_type_quick)
6440 (basic_lookup_transparent_type, find_pc_sect_symtab)
6441 (find_pc_sect_line, search_symbols): Update.
6442 * block.c (find_block_in_blockvector): Make "bl" const.
6443 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6444 const.
6445 (blockvector_contains_pc): Make "bv" const.
6446 (block_for_pc_sect): Update.
6447 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6448 (blockvector_contains_pc): Update.
6449 * breakpoint.c (resolve_sal_pc): Update.
6450 * inline-frame.c (block_starting_point_at): Update.
6451
1834676b
TT
64522014-06-18 Tom Tromey <tromey@redhat.com>
6453
6454 * completer.c (complete_line): Make "line_buffer" const.
6455 * completer.h (complete_line): Update.
6456
ac1a991b
TT
64572014-06-18 Tom Tromey <tromey@redhat.com>
6458
6459 * symtab.c (add_macro_name): Remove unneeded cast.
6460
5bc98e52
TT
64612014-06-18 Tom Tromey <tromey@redhat.com>
6462
6463 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6464 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6465
8236def8
TT
64662014-06-18 Tom Tromey <tromey@redhat.com>
6467
6468 * probe.c (info_probes_for_ops): Make "arg" const.
6469 * probe.h (info_probes_for_ops): Update.
6470
3977b71f
TT
64712014-06-18 Tom Tromey <tromey@redhat.com>
6472
6473 * varobj.c (varobj_create): Update.
6474 * valops.c (value_of_this): Update.
6475 * tracepoint.c (add_local_symbols, scope_info): Update.
6476 * symtab.h (struct general_symbol_info) <block>: Now const.
6477 * symtab.c (skip_prologue_sal)
6478 (default_make_symbol_completion_list_break_on)
6479 (skip_prologue_using_sal): Update.
6480 * stack.h (iterate_over_block_locals)
6481 (iterate_over_block_local_vars): Update.
6482 * stack.c (print_frame_args): Update.
6483 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6484 parameter const.
6485 (get_selected_block): Make return type const.
6486 * python/py-frame.c (frapy_block): Update.
6487 * python/py-block.c (gdbpy_block_for_pc): Update.
6488 * p-exp.y (%union) <bval>: Now const.
6489 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6490 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6491 * m2-exp.y (%union) <bval>: Now const.
6492 * linespec.c (get_current_search_block): Make return type const.
6493 (create_sals_line_offset, find_label_symbols): Update.
6494 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6495 Update.
6496 (block_starting_point_at): Make "block" const.
6497 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6498 (check_exception_resume): Update.
6499 * guile/scm-frame.c (gdbscm_frame_block): Update.
6500 * guile/scm-block.c (gdbscm_lookup_block): Update.
6501 * frame.h (get_frame_block): Update.
6502 (get_selected_block): Make return type const.
6503 * frame.c (frame_id_inner): Update.
6504 * f-valprint.c (info_common_command_for_block)
6505 (info_common_command): Update.
6506 * dwarf2loc.c (dwarf2_find_location_expression)
6507 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6508 (locexpr_describe_location_piece): Update.
6509 * c-exp.y (%union) <bval>: Now const.
6510 * breakpoint.c (resolve_sal_pc): Update.
6511 * blockframe.c (get_frame_block):Make return type const.
6512 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6513 (block_innermost_frame): Update.
6514 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6515 (block_for_pc, block_for_pc_sect): Update.
6516 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6517 'pblock' const.
6518 (block_for_pc_sect, block_for_pc): Make return type const.
6519 * ax-gdb.c (gen_expr): Update.
6520 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6521 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6522 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6523 (ada_read_var_value): Update.
6524 * ada-exp.y (struct name_info) <block>: Now const.
6525 (%union): Likewise.
6526 (block_lookup): Constify.
6527
b9228891
GB
65282014-06-18 Gary Benson <gbenson@redhat.com>
6529
6530 * nat/i386-dregs.h: New file.
6531 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6532 * i386-nat.h (i386-dregs.h): New include.
6533 (DR_FIRSTADDR): Now in i386-dregs.h.
6534 (DR_LASTADDR): Likewise.
6535 (DR_NADDR): Likewise.
6536 (DR_STATUS): Likewise.
6537 (DR_CONTROL): Likewise.
6538 (i386_debug_reg_state): Likewise.
6539 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6540
a1aa2221
LM
65412014-06-18 Don Breazeal <donb@codesourcery.com>
6542
6543 * breakpoint.c (set_longjmp_breakpoint): Call
6544 momentary_breakpoint_from_master with additional argument.
6545 (set_longjmp_breakpoint_for_call_dummy): Call
6546 momentary_breakpoint_from_master with additional argument.
6547 (set_std_terminate_breakpoint): Call
6548 momentary_breakpoint_from_master with additional argument.
6549 (momentary_breakpoint_from_master): Add argument to function
6550 definition and use it to initialize structure member flag.
74228e77 6551 (clone_momentary_breakpoint): Call
a1aa2221
LM
6552 momentary_breakpoint_from_master with additional argument.
6553 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6554 member flags set in momentary_breakpoint_from_master.
6555
4be83cc2
GB
65562014-06-18 Gary Benson <gbenson@redhat.com>
6557
6558 * i386-nat.c (i386_show_dr): Renamed to
6559 i386_dr_show and made nonstatic. All uses updated.
6560 (i386_length_and_rw_bits): Renamed to
6561 i386_dr_length_and_rw_bits and made nonstatic.
6562 All uses updated.
6563 (i386_insert_aligned_watchpoint): Renamed to
6564 i386_dr_insert_aligned_watchpoint and made nonstatic.
6565 All uses updated.
6566 (i386_remove_aligned_watchpoint): Renamed to
6567 i386_dr_remove_aligned_watchpoint and made nonstatic.
6568 All uses updated.
6569 (i386_update_inferior_debug_regs): Renamed to
6570 i386_dr_update_inferior_debug_regs and made nonstatic.
6571 All uses updated.
6572
131aa0d4
GB
65732014-06-18 Gary Benson <gbenson@redhat.com>
6574
6575 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6576 (i386_dr_low_can_set_control): Likewise.
6577 (i386_dr_low_set_addr): Likewise.
6578 (i386_dr_low_set_control): Likewise.
6579 (i386_dr_low_get_addr): Likewise.
6580 (i386_dr_low_get_status): Likewise.
6581 (i386_dr_low_get_control): Likewise.
6582 (i386_insert_aligned_watchpoint): Use new macros.
6583 (i386_update_inferior_debug_regs): Likewise.
6584 (i386_stopped_data_address): Likewise.
6585
d9305f7f
GB
65862014-06-18 Gary Benson <gbenson@redhat.com>
6587
6588 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6589 New parameter. All uses updated.
6590
ea008da4
GB
65912014-06-18 Gary Benson <gbenson@redhat.com>
6592
6593 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6594 All uses updated.
6595
1b6d4134
GB
65962014-06-18 Gary Benson <gbenson@redhat.com>
6597
6598 * i386-nat.c (debug_printf): New macro.
6599 (i386_get_debug_register_length): Likewise.
6600 (TARGET_HAS_DR_LEN_8): Use above macro.
6601 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6602 and printf_unfiltered. Use phex to format values.
6603
9b4550ef
GB
66042014-06-18 Gary Benson <gbenson@redhat.com>
6605
6606 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6607 Make const.
6608
6e62758f
GB
66092014-06-18 Gary Benson <gbenson@redhat.com>
6610
6611 * i386-nat.c: Comment changes.
6612
51c79e94
GB
66132014-06-18 Gary Benson <gbenson@redhat.com>
6614
6615 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6616
3e11889a
GB
66172014-06-18 Gary Benson <gbenson@redhat.com>
6618
6619 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6620 (i386_insert_aligned_watchpoint): Likewise.
6621 (i386_remove_aligned_watchpoint): Likewise.
6622 (i386_handle_nonaligned_watchpoint): Likewise.
6623
fc6e2f03
GB
66242014-06-18 Gary Benson <gbenson@redhat.com>
6625
6626 * i386-nat.c: Whitespace changes.
6627
2afe7d50
SB
66282014-06-17 Samuel Bronson <naesten@gmail.com>
6629
6630 * MAINTAINERS: Update Roland McGrath's email address.
6631 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6632 Red Hat a while ago, and giving me a current address.
2afe7d50 6633
3bca49ee
TT
66342014-06-17 Tom Tromey <tromey@redhat.com>
6635
6636 * utils.h (savestring): Remove declaration.
6637
6e366df1
TT
66382014-06-17 Tom Tromey <tromey@redhat.com>
6639
6640 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6641
6be47f0c
KS
66422014-06-16 Keith Seitz <keiths@redhat.com>
6643
6644 PR mi/15863
6645 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6646 to update the varobj if inferior_ptid is null_ptid.
6647
7bc112c1
TT
66482014-06-16 Tom Tromey <tromey@redhat.com>
6649
6650 * target.h (struct target_ops) <to_info_proc>: Make parameter
6651 const.
6652 (target_info_proc): Update.
6653 * target.c (target_info_proc): Make "args" const.
6654 * procfs.c (procfs_info_proc): Update.
6655 * linux-tdep.c (linux_info_proc): Update.
6656 (linux_core_info_proc_mappings): Make "args" const.
6657 (linux_core_info_proc): Update.
6658 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6659 * gdbarch.c: Rebuild.
6660 * gdbarch.h: Rebuild.
6661 * corelow.c (core_info_proc): Update.
6662
fee354ee
TT
66632014-06-16 Tom Tromey <tromey@redhat.com>
6664
6665 * target.h (struct target_ops) <to_disconnect>: Make parameter
6666 const.
6667 (target_disconnect): Update.
6668 * target.c (target_disconnect): Make "args" const.
6669 * target-delegates.c: Rebuild.
6670 * remote.c (remote_disconnect): Update.
6671 * record.h (record_disconnect): Update.
6672 * record.c (record_disconnect): Update.
6673 * inf-child.c (inf_child_disconnect): Update.
6674
a30bf1f1
TT
66752014-06-16 Tom Tromey <tromey@redhat.com>
6676
6677 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6678 * target.c (debug_to_rcmd, default_rcmd): Update.
6679 * target-delegates.c: Rebuild.
6680 * remote.c (remote_rcmd): Update.
6681 * monitor.c (monitor_rcmd): Update.
6682
d03de421
PA
66832014-06-16 Pedro Alves <palves@redhat.com>
6684
6685 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6686 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6687 have OBJF_SHARED set.
6688 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6689 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6690 instead of OBJF_USERLOADED.
6691 * objfiles.h (OBJF_SHARED): Update comment.
6692 (userloaded_objfile_contains_address_p): Rename to ...
6693 (shared_objfile_contains_address_p): ... this, and update
6694 comments.
6695 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6696 new objfile.
6697 (remove_symbol_file_command): Skip objfiles that don't have
6698 OBJF_SHARED set.
6699
99f4262f
TT
67002014-06-16 Tom Tromey <tromey@redhat.com>
6701
6702 * minsyms.h (prim_record_minimal_symbol)
6703 (prim_record_minimal_symbol_and_info): Update comments.
6704
97d66cc6
EZ
67052014-06-14 Eli Zaretskii <eliz@gnu.org>
6706
6707 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6708 or --without-guile, according to how GDB was built.
6709
635c7e8a
TT
67102014-06-13 Tom Tromey <tromey@redhat.com>
6711
6712 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6713 to help_list.
6714 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6715 to help_list.
6716 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6717 help_list.
6718 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6719 help_list.Pass all_commands, not -1, to help_list.
6720 * cli/cli-dump.c (dump_command, append_command)
6721 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6722 (binary_dump_command, binary_append_command): Pass all_commands,
6723 not -1, to help_list.
6724 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6725 -1, to help_list.
6726 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6727 -1, to help_list.
6728 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6729 help_list.
6730 * top.c (set_history): Pass all_commands, not -1, to help_list.
6731 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6732 all_commands, not -1, to help_list.
6733 * symfile.c (overlay_command): Pass all_commands, not -1, to
6734 help_list.
6735 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6736 help_list.
6737 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6738 help_list.
6739 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6740 -1, to help_list.
6741 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6742 not -1, to help_list.
6743 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6744 not -1, to help_list.
6745 * maint.c (maintenance_command, maintenance_info_command)
6746 (maintenance_print_command, maintenance_set_cmd): Pass
6747 all_commands, not -1, to help_list.
6748 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6749 help_list.
6750 * language.c (set_check): Pass all_commands, not -1, to help_list.
6751 * infcmd.c (unset_command): Pass all_commands, not -1, to
6752 help_list.
6753 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6754 help_list.
6755 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6756 help_list.
6757 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6758 help_list.
6759 * breakpoint.c (save_command): Pass all_commands, not -1, to
6760 help_list.
6761 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6762 all_commands, not -1, to help_list.
6763
b94ade42
PL
67642014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6765
6766 * regcache.c (struct register_to_invalidate): New structure.
6767 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6768 functions.
6769 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6770
31f628ae
YQ
67712014-06-12 Yao Qi <yao@codesourcery.com>
6772
6773 * varobj.c (varobj_get_num_children): Call
6774 varobj_is_dynamic_p.
6775 (varobj_list_children): Likewise.
6776 (varobj_update): Likewise. Update comments.
6777
cde5ef40
YQ
67782014-06-12 Yao Qi <yao@codesourcery.com>
6779
6780 * varobj.c (varobj_pretty_printed_p): Rename to ...
6781 (varobj_is_dynamic_p): ... this. New function.
6782 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6783 (varobj_is_dynamic_p): Declare.
6784 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6785 (mi_print_value_p, varobj_update_one): Likewise.
6786
576ea091
YQ
67872014-06-12 Pedro Alves <pedro@codesourcery.com>
6788 Yao Qi <yao@codesourcery.com>
6789
6790 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6791 (varobj_get_iterator): Wrap up code for pretty-printer by
6792 "#if HAVE_PYTHON" and "#endif".
6793 (update_dynamic_varobj_children): Likewise.
6794
827f100c
YQ
67952014-06-12 Pedro Alves <pedro@codesourcery.com>
6796 Yao Qi <yao@codesourcery.com>
6797
6798 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6799 gdb_python_initialized is false. Move some code from varobj.c.
6800 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6801 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6802 (struct varobj_item): Moved to varobj-iter.h".
6803 (varobj_clear_saved_item): New function.
6804 (update_dynamic_varobj_children): Move python-related code to
6805 py-varobj.c.
6806 (free_variable): Call varobj_clear_saved_item and
6807 varobj_iter_delete.
6808
e5250216
YQ
68092014-06-12 Pedro Alves <pedro@codesourcery.com>
6810 Yao Qi <yao@codesourcery.com>
6811
6812 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6813 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6814 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6815 (py-varobj.o): New rule.
6816 * python/py-varobj.c: New file.
6817 * python/python-internal.h (py_varobj_get_iterator): Declare.
6818 * varobj-iter.h: New file.
6819 * varobj.c: Include "varobj-iter.h"
6820 (struct varobj) <child_iter>: Change its type from "PyObject *"
6821 to "struct varobj_iter *".
6822 <saved_item>: Likewise.
6823 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6824 [HAVE_PYTHON] (varobj_get_iterator): New function.
6825 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6826 python-specific code to python/py-varobj.c.
6827 (install_visualizer): Call varobj_iter_delete instead of
6828 Py_XDECREF.
6829 * varobj.h (varobj_ensure_python_env): Declare.
6830
5a2e0d6e
YQ
68312014-06-12 Yao Qi <yao@codesourcery.com>
6832
6833 * varobj.c (struct varobj_item): New structure.
6834 (create_child_with_value): Update declaration.
6835 (varobj_add_child): Replace arguments 'name' and 'value' with
6836 'item'. All callers updated.
6837 (install_dynamic_child): Likewise.
6838 (update_dynamic_varobj_children): Likewise.
6839 (varobj_add_child): Likewise.
6840 (create_child_with_value): Likewise.
6841
919b9a93
JB
68422014-06-11 Joel Brobecker <brobecker@adacore.com>
6843
6844 * NEWS: Create a new section for the next release branch.
6845 Rename the section of the current branch, now that it has
6846 been cut.
6847
71a55bdf
JB
68482014-06-11 Joel Brobecker <brobecker@adacore.com>
6849
6850 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6851 * version.in: Bump version to 7.8.50.DATE-cvs.
6852
364fe1f7
PA
68532014-06-11 Pedro Alves <palves@redhat.com>
6854
6855 PR remote/17028
6856 * ser-mingw.c (net_windows_socket_check_pending): New function.
6857 (net_windows_select_thread): Ignore spurious wakeups. Use
6858 net_windows_socket_check_pending.
6859 (net_windows_wait_handle): Check for pending events with
6860 ioctlsocket, through net_windows_socket_check_pending, instead of
6861 checking the socket's event.
6862
5a6c7709
SC
68632014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6864
6865 * python/python-internal.h (gdb_PyObject_GetAttrString)
6866 (gdb_PyObject_HasAttrString): New inline function definitions.
6867 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6868 char * of the second argument to PyObject_GetAttrString.
74228e77 6869
0e58ee40
JB
68702014-06-10 Joel Brobecker <brobecker@adacore.com>
6871
6872 * serial.c (serial_write): Fix index of character to be printed
6873 in call to serial_logchar when serial debug traces are enabled.
6874
d190df30
JB
68752014-06-10 Joel Brobecker <brobecker@adacore.com>
6876
6877 * gdbtypes (resolve_dynamic_range): Add function description.
6878
b4b01d36
PA
68792014-06-09 Pedro Alves <palves@redhat.com>
6880
6881 * linux-nat.c (linux_child_follow_fork): Initialize status with
6882 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6883 inner block. Only pass the signal to PTRACE_DETACH if in pass
6884 state.
6885
3657956b
GB
68862014-06-09 Gary Benson <gbenson@redhat.com>
6887
6888 * common/signals.c (gdb_signal_from_host): Reorder to separate
6889 the always-available ANSI-standard signals from the signals that
6890 require checking.
6891 (do_gdb_signal_to_host): Likewise.
6892 * proc-events.c (signal_table): Likewise.
6893
c077881a
HZ
68942014-06-08 Hui Zhu <hui@codesourcery.com>
6895
6896 * common/linux-ptrace.c (linux_disable_event_reporting): New
6897 function.
6898 * common/linux-ptrace.h (linux_disable_event_reporting): New
6899 declaration.
6900 * linux-nat.c (linux_child_follow_fork): Do a single step before
6901 detach.
6902
4186eb54
KS
69032014-06-07 Keith Seitz <keiths@redhat.com>
6904
6905 Revert:
6906 PR c++/16253
6907 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6908 from symbol_matches_domain in symtab.c. All local callers
6909 of symbol_matches_domain updated.
6910 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6911 search STRUCT_DOMAIN.
6912 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6913 independently. standard_lookup will do that automatically.
6914 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6915 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6916 (cp_lookup_symbol_in_namespace): Likewise.
6917 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6918 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6919 may return a STRUCT_DOMAIN match.
6920 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6921 * cp-support.c: Include language.h.
6922 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6923 VAR_DOMAIN.
6924 * psymtab.c (match_partial_symbol): Compare the requested
6925 domain with the symbol's domain directly.
6926 (lookup_partial_symbol): Likewise.
6927 * symtab.c (lookup_symbol_in_language): Explain when/why
6928 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6929 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6930 appropriate languages.
6931 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6932 and moved to ada-lang.c
6933 (lookup_block_symbol): Explain that this function only returns
6934 symbol matching the requested DOMAIN.
6935 Compare the requested domain with the symbol's domain directly.
6936 (iterate_over_symbols): Compare the requested domain with the
6937 symbol's domain directly.
6938 * symtab.h (symbol_matches_domain): Remove.
6939
25326a28 69402014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6941
6942 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6943 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6944 (gdbscm_guile_version_is_at_least): Declare.
6945 (gdbscm_scm_string_to_int): Declare.
6946 * guile/guile.c (gdbscm_guile_major_version): New global.
6947 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6948 (guile_datadir): New static global.
6949 (gdbscm_guile_data_directory): New function.
6950 (initialize_scheme_side): Update.
6951 (misc_guile_functions): Add guile-data-directory.
6952 (initialize_gdb_module): Fetch guile version number.
6953 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6954 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6955 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6956 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6957 comments.
6958 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6959 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6960 * guile/scm-value.c (gdbscm_value_to_string): Only call
6961 scm_port_conversion_strategy if Guile version >= 2.0.6.
6962
0a770bb2 69632014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6964
6965 * main.c (print_gdb_help): Add -q and --silent.
6966
73ba372c
GB
69672014-06-06 Gary Benson <gbenson@redhat.com>
6968
6969 * common/signals.c: Remove preprocessor conditionals for
6970 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6971 SIGSEGV and SIGTERM.
6972 * proc-events.c: Likewise.
6973
c33b2f12
MM
69742014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6975
6976 * symfile.c (symfile_free_objfile): Remove restriction to
6977 OBJF_USERLOADED.
6978 * symfile-mem.c (symbol_file_add_from_memory): Call
6979 add_target_sections_of_objfile.
6980
fb934770
LC
69812014-06-05 Ludovic Courtès <ludo@gnu.org>
6982
6983 * guile/scm-value.c (gdbscm_history_append_x): Use
6984 'vlscm_get_value_smob_arg_unsafe' instead of
6985 'vlscm_scm_to_value'.
6986
6ef284bd
SM
69872014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6988
6989 PR mi/15806
6990 * utils.c (printchar): Don't escape at all if quoter is NUL.
6991 Update function documentation to clarify effect of parameter
6992 QUOTER.
6993 * remote.c (escape_buffer): Pass '\\' as the quoter to
6994 fputstrn_unfiltered.
6995 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6996 generate the output.
6997 (mi_solib_unloaded): Same.
6998
270c9937
JB
69992014-06-05 Joel Brobecker <brobecker@adacore.com>
7000
7001 * development.sh: Delete.
7002 * Makefile.in (config.status): Adjust dependency on development.sh.
7003 * configure.ac: Adjust development.sh source call.
7004 * configure: Regenerate.
7005
16f691fb
DE
70062014-06-04 Doug Evans <xdje42@gmail.com>
7007
7008 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7009 is_scheme_bkpt, spec.
7010 (bpscm_make_breakpoint_smob): Initialize new members.
7011 (gdbscm_create_breakpoint_x): Split into two ...
7012 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7013 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7014 (scheme_function breakpoint_functions): Update.
7015 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7016 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7017 register-breakpoint!.
7018
ef7cab6b
JB
70192014-06-04 Joel Brobecker <brobecker@adacorer.com>
7020
7021 PR server/17023
7022 * mem-break.c (z_type_supported): Return zero if
7023 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7024
012370f6
TT
70252014-06-04 Tom Tromey <tromey@redhat.com>
7026
7027 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7028 value_from_contents_and_address_unresolved.
7029 (ada_template_to_fixed_record_type_1): Likewise.
7030 (ada_which_variant_applies): Likewise.
7031 * value.h (value_from_contents_and_address_unresolved): Declare.
7032 * value.c (value_from_contents_and_address_unresolved): New
7033 function.
7034 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7035 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7036 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7037
92e2a17f
TT
70382014-06-04 Tom Tromey <tromey@redhat.com>
7039
7040 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7041
c0939df1
TT
70422014-06-04 Tom Tromey <tromey@redhat.com>
7043
7044 * procfs.c (procfs_attach): Make "args" const.
7045 * windows-nat.c (windows_attach): Make "args" const.
7046 * nto-procfs.c (procfs_attach): Make "args" const.
7047 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7048 * go32-nat.c (go32_attach): Make "args" const.
7049 * gnu-nat.c (gnu_attach): Make "args" const.
7050 * darwin-nat.c (darwin_attach): Make "args" const.
7051 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7052 * linux-nat.c (linux_nat_attach): Make "args" const.
7053 * remote.c (extended_remote_attach_1, extended_remote_attach):
7054 Make "args" const.
7055 * target.h (struct target_ops) <to_attach>: Make "args" const.
7056 (find_default_attach): Likewise.
7057 * utils.c (parse_pid_to_attach): Make "args" const.
7058 * utils.h (parse_pid_to_attach): Update.
7059
8eaff7cd
TT
70602014-06-04 Tom Tromey <tromey@redhat.com>
7061
7062 * target-delegates.c: Rebuild.
7063 * target.c (default_thread_address_space): New function.
7064 (target_thread_address_space): Simplify.
7065 * target.h (struct target_ops) <to_thread_address_space>: Add
7066 TARGET_DEFAULT_FUNC.
7067
1913f160
DE
70682014-06-04 Doug Evans <xdje42@gmail.com>
7069
7070 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7071
70ad5bff
MM
70722014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7073
7074 * record-btrace.c: Include event-loop.h and inf-loop.h.
7075 (record_btrace_resume_exec_dir)
7076 (record_btrace_async_inferior_event_handler)
7077 (record_btrace_handle_async_inferior_event): New.
7078 (record_btrace_open): Create async event handler.
7079 (record_btrace_close): Delete async event handler.
7080 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7081 Mark async event handler.
7082 (record_btrace_execution_direction): New.
7083 (init_record_btrace_ops): Initialize to_execution_direction.
7084
b6210538
DE
70852014-06-03 Doug Evans <xdje42@gmail.com>
7086
7087 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7088 (gdbscm_make_parameter): Ditto.
7089
a5b1fd27
DE
70902014-06-03 Doug Evans <dje@google.com>
7091
7092 * exec.c (exec_close_1): Call clear_section_table instead of
7093 resize_section_table.
7094 (clear_section_table): New function.
7095 (resize_section_table): Make static. Rename arg num_added to
7096 adjustment.
7097 * exec.h (clear_section_table): Declare.
7098 (resize_section_table): Delete.
7099 * progspace.c (release_program_space): Call clear_section_table
7100 instead of resize_section_table.
7101
0c6e92a5
SC
71022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7103
7104 * NEWS (Python Scripting): Add entry about the new xmethods
7105 feature.
7106
883964a7
SC
71072014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7108
7109 * python/py-xmethods.c: New file.
7110 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7111 (objfpy_dealloc): XDECREF on the new xmethods field.
7112 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7113 field.
7114 (objfpy_get_xmethods): New function.
7115 (objfile_getset): New entry 'xmethods'.
7116 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7117 (pspy_dealloc): XDECREF on the new xmethods field.
7118 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7119 field.
7120 (pspy_get_xmethods): New function.
7121 (pspace_getset): New entry 'xmethods'.
7122 * python/python-internal.h: Add declarations for new functions.
7123 * python/python.c (_initialize_python): Invoke
7124 gdbpy_initialize_xmethods.
7125 * python/lib/gdb/__init__.py (xmethods): New
7126 attribute.
7127 * python/lib/gdb/xmethod.py: New file.
7128 * python/lib/gdb/command/xmethods.py: New file.
7129
58992dc5
SC
71302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7131
7132 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7133 best match method returned by find_overload_match is an xmethod.
7134 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7135 the best matching operator returned by find_overload_match is an
7136 xmethod.
7137 * valops.c: #include "extension.h".
7138 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7139 Return void. The list of matching source methods is returned in
7140 "fn_list" and a vector of matching debug method workers is
7141 returned in "xm_worker_vec". Update all callers.
7142 (value_find_oload_method_list): Likewise.
7143 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7144 non-NULL, then the index of the best matching method in this
7145 vector is returned. Update all callers.
7146 (find_overload_match): Include xmethods while performing overload
7147 resolution.
7148
e81e7f5e
SC
71492014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7150
7151 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7152 * extension-priv.h (struct extension_language_ops): Add the
7153 xmethod interface.
7154 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7155 get_matching_xmethod_workers, get_xmethod_argtypes,
7156 invoke_xmethod, free_xmethod_worker,
7157 free_xmethod_worker_vec): New functions.
7158 * extension.h: #include "common/vec.h".
7159 New function declarations.
7160 (struct xmethod_worker): New struct.
7161 (VEC (xmethod_worker_ptr)): New vector type.
7162 (xmethod_worker_ptr): New typedef.
7163 (xmethod_worker_vec): Likewise.
7164 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7165 builtin_type.
7166 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7167 (struct builtin_type): New field "xmethod".
7168 * valarith.c (value_ptradd): Assert that the value argument is not
7169 lval_xcallable.
7170 * valops.c (value_must_coerce_to_target): Return 0 for
7171 lval_xcallable values.
7172 * value.c (struct value): New field XM_WORKER in the field
7173 LOCATION.
7174 (value_address, value_raw_address): Return 0 for lval_xcallable
7175 values.
7176 (set_value_address): Assert that the value is not an
7177 lval_xcallable.
7178 (value_free): Free the associated xmethod worker when freeing
7179 lval_xcallable values.
7180 (set_value_component_location): Assert that the WHOLE value is not
7181 lval_xcallable.
7182 (value_of_xmethod, call_xmethod): New functions.
7183 * value.h: Declare "struct xmethod_worker".
7184 Declare new functions value_of_xmethod, call_xmethod.
7185
ef370185
JB
71862014-06-03 Joel Brobecker <brobecker@adacore.com>
7187 Pedro Alves <palves@redhat.com>
7188
7189 PR breakpoints/17000
7190 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7191 New function, extracted from software_breakpoint_inserted_here_p.
7192 (software_breakpoint_inserted_here_p): Replace factored out code
7193 by call to find_non_raw_software_breakpoint_inserted_here.
7194 (bp_target_info_copy_insertion_state): New function.
7195 (bkpt_insert_location): Handle the case of a single-step
7196 breakpoint already inserted at the same address.
7197 (bkpt_remove_location): Handle the case of a single-step
7198 breakpoint still inserted at the same address.
7199 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7200 breakpoint already inserted at the same address.
7201 (deprecated_remove_raw_breakpoint): Handle the case of a
7202 non-raw breakpoint still inserted at the same address.
7203 (find_single_step_breakpoint): New function, extracted from
7204 single_step_breakpoint_inserted_here_p.
7205 (find_single_step_breakpoint): New function,
7206 factored out from single_step_breakpoint_inserted_here_p.
7207 (single_step_breakpoint_inserted_here_p): Reimplement.
7208
1e2ccb61
BM
72092014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7210
7211 Pushed by Joel Brobecker <brobecker@adacore.com>
7212 * source.c (show_substitute_path_command): Fix display of matching
7213 substitution rules.
7214
d3448d85
GB
72152014-06-03 Gary Benson <gbenson@redhat.com>
7216
7217 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7218
06eb1586
DE
72192014-06-02 Doug Evans <xdje42@gmail.com>
7220
7221 Add parameter support for Guile.
7222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7223 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7224 (scm-param.o): New rule.
7225 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7226 (gdbscm_misc_error): Declare.
7227 (gdbscm_canonicalize_command_name): Declare.
7228 (gdbscm_scm_to_host_string): Declare.
7229 (gdbscm_scm_from_host_string): Declare.
7230 (gdbscm_initialize_parameters): Declare.
7231 * guile/guile.c (initialize_gdb_module): Call
7232 gdbscm_initialize_parameters.
7233 * guile/lib/gdb.scm: Export parameter symbols.
7234 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7235 cmdscm_canonicalize_name and made public. All callers updated.
7236 * guile/scm-exception.c (gdbscm_misc_error): New function.
7237 * guile/scm-param.c: New file.
7238 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7239 (gdbscm_scm_to_host_string): New function.
7240 (gdbscm_scm_from_host_string): New function.
7241 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7242
e698b8c4
DE
72432014-06-02 Doug Evans <xdje42@gmail.com>
7244
7245 Add command support for Guile.
7246 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7247 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7248 (scm-cmd.o): New rule.
7249 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7250 (gdbscm_user_error_p): Declare.
7251 (gdbscm_parse_command_name): Declare.
7252 (gdbscm_valid_command_class_p): Declare.
7253 (gdbscm_initialize_commands): Declare.
7254 * guile/guile.c (initialize_gdb_module): Call
7255 gdbscm_initialize_commands.
7256 * guile/lib/gdb.scm: Export command symbols.
7257 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7258 (throw-user-error): New function.
7259 * guile/scm-cmd.c: New file.
7260 * guile/scm-exception.c (user_error_symbol): New static global.
7261 (gdbscm_user_error_p): New function.
7262 (gdbscm_initialize_exceptions): Set user_error_symbol.
7263 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7264
fb1f94b0
PM
72652014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7266
7267 * top.c (command_loop): Handle comments here...
7268 (command_line_input): ... not here.
7269
ded03782
DE
72702014-06-02 Doug Evans <xdje42@gmail.com>
7271
7272 Add progspace support for Guile.
7273 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7274 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7275 (scm-progspace.o): New rule.
7276 * guile/guile-internal.h (pspace_smob): New typedef.
7277 (psscm_pspace_smob_pretty_printers): Declare.
7278 (psscm_pspace_smob_from_pspace): Declare.
7279 (psscm_scm_from_pspace): Declare.
7280 * guile/guile.c (initialize_gdb_module): Call
7281 gdbscm_initialize_pspaces.
7282 * guile/lib/gdb.scm: Export progspace symbols.
7283 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7284 support.
7285 (append-pretty-printer!): Ditto.
7286 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7287 Implement.
7288 * guile/scm-progspace.c: New file.
7289
397998fc
AM
72902014-06-03 Alan Modra <amodra@gmail.com>
7291
7292 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7293 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7294
6aa5f3a6
DE
72952014-06-02 Doug Evans <dje@google.com>
7296
7297 Add support for skeletonless type units.
7298 * dwarf2read.c (struct dwarf2_per_objfile): New member
7299 n_allocated_type_units.
7300 (struct dwarf2_per_objfile) <tu_stats>: New member
7301 nr_all_type_units_reallocs.
7302 (create_signatured_type_table_from_index): Initialize
7303 n_allocated_type_units
7304 (create_all_type_units): Ditto.
7305 (add_type_unit): Move up in file. New arg slot.
7306 All callers updated. Increase space for all_type_units more
7307 efficiently.
7308 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7309 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7310 (lookup_dwp_signatured_type): Ditto.
7311 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7312 All callers updated.
7313 (build_type_psymtabs_1): Leave type_unit_groups as
7314 NULL if no TUs present.
7315 (print_tu_stats): New function.
7316 (process_skeletonless_type_unit): New function.
7317 (process_dwo_file_for_skeletonless_type_units): New
7318 function.
7319 (process_skeletonless_type_units): New function.
7320 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7321 Call print tu_stats if debugging enabled.
7322
41fac0cf
PA
73232014-06-02 Pedro Alves <palves@redhat.com>
7324
7325 * breakpoint.c (build_target_command_list): Don't build a command
7326 list if we have any duplicate location that isn't a dprintf.
7327
cd1608cc
PA
73282014-06-02 Pedro Alves <palves@redhat.com>
7329
7330 * breakpoint.c (dprintf_breakpoint_hit): New function.
7331 (initialize_breakpoint_ops): Install it as dprintf's
7332 breakpoint_hit method.
7333
486ef3b9
JB
73342014-06-02 Joel Brobecker <brobecker@adacore.com>
7335
7336 * source.c (substitute_path_rule_matches): Simplify using
7337 filename_ncmp instead of FILENAME_CMP.
7338
230cd560
JB
73392014-06-02 Joel Brobecker <brobecker@adacore.com>
7340
7341 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7342
16954d5d
LC
73432014-06-01 Ludovic Courtès <ludo@gnu.org>
7344
7345 * configure.ac: When Guile is available, check for the
7346 availability of 'scm_new_smob'.
7347 * configure, config.h.in: Regenerate.
7348 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7349 function.
7350
53e8a631
AB
73512014-05-30 Andrew Burgess <aburgess@broadcom.com>
7352
7353 * frame.c (struct frame_info): Add stop_string field.
7354 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7355 (get_prev_frame_always): Old content moved into
7356 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7357 TRY_CATCH, handle MEMORY_ERROR exceptions.
7358 (frame_stop_reason_string): New function definition.
7359 * frame.h (unwind_stop_reason_to_string): Extend comment to
7360 mention frame_stop_reason_string.
7361 (frame_stop_reason_string): New function declaration.
7362 * stack.c (frame_info): Switch to frame_stop_reason_string.
7363 (backtrace_command_1): Switch to frame_stop_reason_string.
7364 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7365 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7366 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7367
70e38b8e
AB
73682014-05-30 Andrew Burgess <aburgess@broadcom.com>
7369
7370 * frame.c (frame_stop_reason_string): Rename to ...
7371 (unwind_stop_reason_to_string): this.
7372 * frame.h (frame_stop_reason_string): Rename to ...
7373 (unwind_stop_reason_to_string): this.
7374 * stack.c (frame_info): Update call to frame_stop_reason_string.
7375 (backtrace_command_1): Likewise.
7376 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7377 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7378
938f0e2f
AB
73792014-05-30 Andrew Burgess <aburgess@broadcom.com>
7380
7381 * frame.c (remove_prev_frame): New function.
7382 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7383 remove_prev_frame.
7384
a09dd441
PA
73852014-05-29 Pedro Alves <palves@redhat.com>
7386
7387 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7388 and make it const. When a single-step decays to a continue,
7389 clear 'step', not 'hw_step'. Pass whether the caller wanted
7390 to step to user_visible_resume_ptid, not what we ask the
7391 target to do.
7392
bdc36728
PA
73932014-05-29 Pedro Alves <palves@redhat.com>
7394
7395 * infrun.c (process_event_stop_test, handle_step_into_function)
7396 (handle_step_into_function_backward): Adjust.
7397 Don't set the even thread's stop_step and call stop_waiting before
7398 calling end_stepping_range. Instead do that ...
7399 (end_stepping_range): ... here. Take an ecs pointer parameter.
7400
22bcd14b
PA
74012014-05-29 Pedro Alves <palves@redhat.com>
7402
7403 * infrun.c (stop_stepping): Rename to ...
7404 (stop_waiting): ... this.
7405 (proceed): Update comment.
7406 (process_event_stop_test, handle_inferior_event)
7407 (handle_signal_stop, handle_step_into_function)
7408 (handle_step_into_function_backward): Update.
7409
4ae57c05
PA
74102014-05-29 Pedro Alves <palves@redhat.com>
7411
7412 * infcall.c (run_inferior_call): Don't check whether the current
7413 thread is running after the proceed call.
7414
329ea579
PA
74152014-05-29 Pedro Alves <palves@redhat.com>
7416 Tom Tromey <tromey@redhat.com>
7417
7418 * NEWS: Mention "maint set target-async", "set mi-async", and that
7419 background execution commands are now always available.
7420 * target.h (target_async_permitted): Update comment.
7421 * target.c (target_async_permitted, target_async_permitted_1):
7422 Default to 1.
7423 (set_target_async_command): Rename to ...
7424 (maint_set_target_async_command): ... this.
7425 (show_target_async_command): Rename to ...
7426 (maint_show_target_async_command): ... this.
7427 (_initialize_target): Adjust.
7428 * infcmd.c (prepare_execution_command): Make extern.
7429 * inferior.h (prepare_execution_command): Declare.
7430 * infrun.c (set_observer_mode): Leave target async alone.
7431 * mi/mi-interp.c (mi_interpreter_init): Install
7432 mi_on_sync_execution_done as sync_execution_done observer.
7433 (mi_on_sync_execution_done): New function.
7434 (mi_execute_command_input_handler): Don't print the prompt if we
7435 just started a synchronous command with an async target.
7436 (mi_on_resume): Check sync_execution before printing prompt.
7437 * mi/mi-main.h (mi_async_p): Declare.
7438 * mi/mi-main.c: Include gdbcmd.h.
7439 (mi_async_p): New function.
7440 (mi_async, mi_async_1): New globals.
7441 (set_mi_async_command, show_mi_async_command, mi_async): New
7442 functions.
7443 (exec_continue): Call prepare_execution_command.
7444 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7445 (mi_execute_async_cli_command): Use mi_async_p.
7446 (_initialize_mi_main): Install "set mi-async". Make
7447 "target-async" a deprecated alias.
7448
92bcb5f9
PA
74492014-05-29 Pedro Alves <palves@redhat.com>
7450
7451 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7452 (_initialize_cli_interp): Adjust.
7453 * event-loop.c: Include "observer.h".
7454 (start_event_loop): Notify 'command_error' observers instead of
7455 calling display_gdb_prompt. Remove FIXME comment.
7456 * event-top.c (display_gdb_prompt): Remove call into the
7457 interpreters.
7458 * inf-loop.c: Include "observer.h".
7459 (inferior_event_handler): Notify 'command_error' observers instead
7460 of calling display_gdb_prompt.
7461 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7462 observers instead of calling display_gdb_prompt.
7463 * interps.c (interp_set): Don't call display_gdb_prompt.
7464 (current_interp_display_prompt_p): Delete.
7465 * interps.h (interp_prompt_p): Delete declaration.
7466 (interp_prompt_p_ftype): Delete.
7467 (struct interp_procs) <prompt_proc_p>: Delete field.
7468 (current_interp_display_prompt_p): Delete declaration.
7469 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7470 (_initialize_mi_interp): Adjust.
7471 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7472 'command_error' observers.
7473 (tui_on_sync_execution_done, tui_on_command_error): New
7474 functions.
7475 (tui_display_prompt_p): Delete.
7476 (_initialize_tui_interp): Adjust.
7477
fd664c91
PA
74782014-05-29 Pedro Alves <palves@redhat.com>
7479
7480 PR gdb/13860
7481 * cli/cli-interp.c: Include infrun.h and observer.h.
7482 (cli_uiout, cli_interp): New globals.
7483 (cli_on_signal_received, cli_on_end_stepping_range)
7484 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7485 functions.
7486 (cli_interpreter_init): Install them as 'end_stepping_range',
7487 'signal_received' 'signal_exited', 'exited' and 'no_history'
7488 observers.
7489 (_initialize_cli_interp): Remove cli_interp local.
7490 * infrun.c (handle_inferior_event): Call the several stop reason
7491 observers instead of printing the stop reason directly.
7492 (end_stepping_range): New function.
7493 (print_end_stepping_range_reason, print_signal_exited_reason)
7494 (print_exited_reason, print_signal_received_reason)
7495 (print_no_history_reason): Make static, and add an uiout
7496 parameter. Print to that instead of to CURRENT_UIOUT.
7497 * infrun.h (print_end_stepping_range_reason)
7498 (print_signal_exited_reason, print_exited_reason)
7499 (print_signal_received_reason print_no_history_reason): New
7500 declarations.
7501 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7502 'mi_uiout'.
7503 <cli_uiout>: New field.
7504 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7505 uiout for CLI output. Install 'signal_received',
7506 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7507 observers.
7508 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7509 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7510 (mi_on_no_history): New functions.
7511 (ui_out_free_cleanup): Delete function.
7512 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7513 instead use the one already stored in the MI interpreter data.
7514 (mi_ui_out): Adjust.
7515 * tui/tui-interp.c: Include infrun.h and observer.h.
7516 (tui_interp): New global.
7517 (tui_on_signal_received, tui_on_end_stepping_range)
7518 (tui_on_signal_exited, tui_on_exited)
7519 (tui_on_no_history): New functions.
7520 (tui_init): Install them as 'end_stepping_range',
7521 'signal_received' 'signal_exited', 'exited' and 'no_history'
7522 observers.
7523 (_initialize_tui_interp): Delete tui_interp local.
7524
8817a6f2
PA
75252014-05-29 Pedro Alves <palves@redhat.com>
7526
7527 PR gdb/15713
7528 * linux-nat.c (linux_nat_resume_callback): Rename the second
7529 parameter to 'except'. Skip LP if it points to EXCEPT.
7530 (linux_nat_resume): Don't mark the event lwp as not stopped
7531 before resuming sibling lwps. Instead ask
7532 linux_nat_resume_callback to skip the event lwp. Mark it as not
7533 stopped after actually resuming it.
7534 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7535 resuming it.
7536 (wait_lwp): Mark the lwp as stopped here.
7537 (stop_wait_callback): Mark the lwp as not stopped right after
7538 resuming it. Don't mark lwps as stopped here.
7539 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7540 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7541
251bde03
PA
75422014-05-29 Pedro Alves <palves@redhat.com>
7543
7544 PR PR15693
7545 * infrun.c (resume): Determine how much to resume depending on
7546 whether the caller wanted a step, not whether we can hardware step
7547 the target. Mark all threads that we intend to run as running,
7548 unless we're calling an inferior function.
7549 (normal_stop): If the thread is running an infcall, don't finish
7550 thread state.
7551 * target.c (target_resume): Don't mark threads as running here.
7552
7f3c0343
JB
75532014-05-28 Joel Brobecker <brobecker@adacore.com>
7554
7555 * serial.c (_initialize_serial): Remove support for
7556 the "set remotebaud" and "show remotebaud" commands.
7557 * NEWS: Add entry documenting the removal of that command.
7558
ee34b3f9
YQ
75592014-05-28 Yao Qi <yao@codesourcery.com>
7560
7561 * charset.c: Fix typo in comments.
7562
add6c04d
GB
75632014-05-27 Gary Benson <gbenson@redhat.com>
7564
7565 * utils.c (internal_vproblem): Prompt for a bug report.
7566
92c48fc5
AW
75672014-05-26 Andy Wingo <wingo@igalia.com>
7568
7569 * guile/scm-arch.c (arscm_mark_arch_smob):
7570 * guile/scm-block.c (bkscm_mark_block_smob)
7571 (bkscm_mark_block_syms_progress_smob):
7572 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7573 * guile/scm-exception.c (exscm_mark_exception_smob):
7574 * guile/scm-frame.c (frscm_mark_frame_smob):
7575 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7576 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7577 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7578 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7579 (ppscm_mark_pretty_printer_worker_smob):
7580 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7581 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7582 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7583 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7584 mark functions.
7585 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7586 function.
7587
b2715b27
AW
75882014-05-26 Andy Wingo <wingo@igalia.com>
7589 Doug Evans <xdje42@gmail.com>
7590
7591 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7592 empty_base_class. All uses updated.
7593 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7594 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7595 Adapt all callers.
7596 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7597 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7598 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7599 (gdbscm_gsmob_has_property_p, add_property_name)
7600 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7601 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7602 (gdb-object-has-property?, gdb-object-properties): Remove.
7603 (gdb-object-kind): Renamed from gsmob-kind.
7604
214ab2da
AW
76052014-05-26 Andy Wingo <wingo@igalia.com>
7606
7607 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7608 * configure: Regenerate.
7609
589fdceb
MM
76102014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7611
7612 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7613
67b5c0c1
MM
76142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7615
7616 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7617 (replay_memory_access_read_only, replay_memory_access_read_write)
7618 (replay_memory_access_types, replay_memory_access)
7619 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7620 (cmd_set_record_btrace, cmd_show_record_btrace)
7621 (cmd_show_replay_memory_access): New.
7622 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7623 (record_btrace_remove_breakpoint): Replace
7624 record_btrace_allow_memory_access with replay_memory_access.
7625 (_initialize_record_btrace): Add commands.
7626 * NEWS: Announce it.
7627
036cd381
RR
76282014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7629
7630 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7631
c77c1e42
RR
76322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7633
7634 * MAINTAINERS (Write After Approval): Move self back from
7635 paper trail.
7636
45741a9c
PA
76372014-05-22 Pedro Alves <palves@redhat.com>
7638
7639 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7640 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7641 (disable_randomization, enum exec_direction_kind)
7642 (execution_direction, stop_registers, start_remote)
7643 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7644 (wait_for_inferior, normal_stop, get_last_target_status)
7645 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7646 (insert_step_resume_breakpoint_at_sal)
7647 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7648 (set_step_info, print_stop_event, signal_stop_state)
7649 (signal_print_state, signal_pass_state, signal_stop_update)
7650 (signal_print_update, signal_pass_update)
7651 (update_signals_program_target, clear_exit_convenience_vars)
7652 (displaced_step_dump_bytes, update_observer_mode)
7653 (signal_catch_update, gdb_signal_from_command): Move
7654 declarations ...
7655 * infrun.h: ... to this new file.
7656 * amd64-tdep.c: Include infrun.h.
7657 * annotate.c: Include infrun.h.
7658 * arch-utils.c: Include infrun.h.
7659 * arm-linux-tdep.c: Include infrun.h.
7660 * arm-tdep.c: Include infrun.h.
7661 * break-catch-sig.c: Include infrun.h.
7662 * breakpoint.c: Include infrun.h.
7663 * common/agent.c: Include infrun.h instead of inferior.h.
7664 * corelow.c: Include infrun.h.
7665 * event-top.c: Include infrun.h.
7666 * go32-nat.c: Include infrun.h.
7667 * i386-tdep.c: Include infrun.h.
7668 * inf-loop.c: Include infrun.h.
7669 * infcall.c: Include infrun.h.
7670 * infcmd.c: Include infrun.h.
7671 * infrun.c: Include infrun.h.
7672 * linux-fork.c: Include infrun.h.
7673 * linux-nat.c: Include infrun.h.
7674 * linux-thread-db.c: Include infrun.h.
7675 * monitor.c: Include infrun.h.
7676 * nto-tdep.c: Include infrun.h.
7677 * procfs.c: Include infrun.h.
7678 * record-btrace.c: Include infrun.h.
7679 * record-full.c: Include infrun.h.
7680 * remote-m32r-sdi.c: Include infrun.h.
7681 * remote-mips.c: Include infrun.h.
7682 * remote-notif.c: Include infrun.h.
7683 * remote-sim.c: Include infrun.h.
7684 * remote.c: Include infrun.h.
7685 * reverse.c: Include infrun.h.
7686 * rs6000-tdep.c: Include infrun.h.
7687 * s390-linux-tdep.c: Include infrun.h.
7688 * solib-irix.c: Include infrun.h.
7689 * solib-osf.c: Include infrun.h.
7690 * solib-svr4.c: Include infrun.h.
7691 * target.c: Include infrun.h.
7692 * top.c: Include infrun.h.
7693 * windows-nat.c: Include infrun.h.
7694 * mi/mi-interp.c: Include infrun.h.
7695 * mi/mi-main.c: Include infrun.h.
7696 * python/py-threadevent.c: Include infrun.h.
7697
98eb56a4
PA
76982014-05-22 Pedro Alves <palves@redhat.com>
7699
7700 * infrun.c (handle_inferior_event): Store the exit code for
7701 --return-child-result here, instead of ...
7702 (print_exited_reason): ... here.
7703
17b2616c
PA
77042014-05-21 Pedro Alves <palves@redhat.com>
7705
7706 PR gdb/13860
7707 * gdbthread.h (struct thread_control_state): New field
7708 `command_interp'.
7709 * infrun.c (follow_fork): Copy the new thread control field to the
7710 child fork thread.
7711 (clear_proceed_status_thread): Clear the new thread control field.
7712 (proceed): Set the new thread control field.
7713 * interps.h (command_interp): Declare.
7714 * interps.c (command_interpreter): New global.
7715 (command_interp): New function.
7716 (interp_exec): Set `command_interpreter' while here.
7717 * cli-out.c (cli_uiout_dtor): New function.
7718 (cli_ui_out_impl): Install it.
7719 * mi/mi-interp.c: Include cli-out.h.
7720 (mi_cmd_interpreter_exec): Add comment.
7721 (restore_current_uiout_cleanup): New function.
7722 (ui_out_free_cleanup): New function.
7723 (mi_on_normal_stop): If finishing an execution command started by
7724 a CLI command, or any kind of breakpoint-like event triggered,
7725 print the stop event to the output (CLI) stream.
7726 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7727
5166082f
PA
77282014-05-21 Pedro Alves <palves@redhat.com>
7729
7730 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7731 current source line having changed.
7732 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7733 * infrun.c (normal_stop): Adjust call to
7734 set_current_sal_from_frame.
7735 * source.c (clear_lines_listed_range): New function.
7736 (set_current_source_symtab_and_line, identify_source_line): Clear
7737 the lines listed range.
7738 (line_info): Handle the first "info line" after the current source
7739 line having changed.
7740 * stack.c (print_stack_frame): Remove center handling.
7741 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7742 center sal.line.
7743
c1ee2fb3
PA
77442014-05-21 Pedro Alves <palves@redhat.com>
7745
7746 * inf-child.c (inf_child_mourn_inferior): New function.
7747 * inf-child.h (inf_child_mourn_inferior): New declaration.
7748 * darwin-nat.c (darwin_mourn_inferior): Use
7749 inf_child_mourn_inferior.
7750 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7751 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7752 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7753 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7754 * windows-nat.c (windows_mourn_inferior): Likewise.
7755
5c6d4fb2
DE
77562014-05-21 Doug Evans <xdje42@gmail.com>
7757
250748cb 7758 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7759
4a2722c5
DE
77602014-05-21 Doug Evans <xdje42@gmail.com>
7761
17292b30 7762 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7763 (gdbscm_out_of_range_error): Ditto.
7764 (gdbscm_memory_error): Ditto.
250748cb
DE
7765 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7766 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7767 (gdbscm_out_of_range_error): Update.
7768 (gdbscm_memory_error): Update.
7769 (gdbscm_scm_to_target_string_unsafe): Delete.
7770
6a3cb8e8
PA
77712014-05-21 Pedro Alves <palves@redhat.com>
7772
7773 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7774 globals.
7775 (inf_child_open_target): New function.
7776 (inf_child_open): Use inf_child_open_target to push the target
7777 instead of erroring out.
7778 (inf_child_disconnect, inf_child_close)
7779 (inf_child_maybe_unpush_target): New functions.
7780 (inf_child_target): Install inf_child_disconnect and
7781 inf_child_close. Store a pointer to the returned object.
7782 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7783 declarations.
7784 * target.c (auto_connect_native_target): New global.
7785 (show_default_run_target): New function.
7786 (find_default_run_target): Return NULL if automatically connecting
7787 to the native target is disabled.
7788 (_initialize_target): Install set/show auto-connect-native-target.
7789 * NEWS: Mention "set auto-connect-native-target", and "target
7790 native".
7791 * linux-nat.c (super_close): New global.
7792 (linux_nat_close): Call super_close.
7793 (linux_nat_add_target): Store a pointer to the base class's
7794 to_close method.
7795 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7796 inf_child_maybe_unpush.
7797 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7798 already pushed.
7799 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7800 the inferior. Use inf_child_maybe_unpush_target.
7801 (inf_ttrace_attach): Don't push the target if it is already
7802 pushed.
7803 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7804 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7805 after mourning the inferior. Use inf_child_maybe_unpush_target.
7806 (darwin_attach_pid): Don't push the target if it is already
7807 pushed.
7808 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7809 mourning the inferior. Use inf_child_maybe_unpush_target.
7810 (gnu_detach): Use inf_child_maybe_unpush_target.
7811 * go32-nat.c (go32_create_inferior): Don't push the target if it
7812 is already pushed.
7813 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7814 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7815 (procfs_open): Rename to ...
7816 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7817 comments. Can target_preopen before changing node. Call
7818 inf_child_open_target to push the target explicitly.
7819 (procfs_attach): Don't push the target if it is already pushed.
7820 (procfs_detach): Use inf_child_maybe_unpush_target.
7821 (procfs_create_inferior): Don't push the target if it is already
7822 pushed.
7823 (nto_native_ops): New global.
7824 (procfs_open): Reimplement.
7825 (procfs_native_open): New function.
7826 (init_procfs_targets): Install procfs_native_open as to_open of
7827 "target native". Store a pointer to the "native" target in
7828 nto_native_ops.
7829 * procfs.c (procfs_attach): Don't push the target if it is already
7830 pushed.
7831 (procfs_detach): Use inf_child_maybe_unpush_target.
7832 (procfs_mourn_inferior): Only unpush the target after mourning the
7833 inferior. Use inf_child_maybe_unpush_target.
7834 (procfs_init_inferior): Don't push the target if it is already
7835 pushed.
7836 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7837 if it is already pushed.
7838
930ee1b1
PA
78392014-05-21 Pedro Alves <palves@redhat.com>
7840
7841 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7842 and "procfs" targets are now called "native" instead.
7843
1f5d1b13
PA
78442014-05-21 Pedro Alves <palves@redhat.com>
7845
7846 * go32-nat.c (go32_open): Delete.
7847 (go32_target): Don't override the to_open method.
7848
132f8e03
PA
78492014-05-21 Pedro Alves <palves@redhat.com>
7850
7851 * nto-procfs.c (procfs_can_run): New function.
7852 (nto_procfs_ops): New global.
7853 (init_procfs_targets): New, based on procfs_target. Install
7854 "target native" in addition to "target procfs".
7855 (_initialize_procfs): Call init_procfs_targets instead of adding
7856 the target here.
7857
03c136c3
PA
78582014-05-21 Pedro Alves <palves@redhat.com>
7859
7860 * windows-nat.c (windows_target): Don't override to_shortname,
7861 to_longname or to_doc.
7862
a635d0f3
PA
78632014-05-21 Pedro Alves <palves@redhat.com>
7864
7865 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7866 to_doc.
7867
4f9b5133
PA
78682014-05-21 Pedro Alves <palves@redhat.com>
7869
7870 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7871 to_shortname, to_longname or to_doc.
7872
bc85afde
PA
78732014-05-21 Pedro Alves <palves@redhat.com>
7874
7875 * go32-nat.c (go32_target): Don't override to_shortname,
7876 to_longname or to_doc.
7877
4ebfc96e
PA
78782014-05-21 Pedro Alves <palves@redhat.com>
7879
7880 * inf-child.c (inf_child_open): Remove mention of "child".
7881 (inf_child_target): Rename target to "native" instead of "child".
7882
2648dfed
AA
78832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7884
7885 * Makefile.in (SFILES): Delete "regset.c".
7886 (COMMON_OBS): Delete "regset.o".
7887 * regset.c: Remove.
7888 * regset.h (regset_alloc): Delete prototype.
7889
b13feb94
AA
78902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7891
7892 * sparc-linux-tdep.c (sparc32_linux_gregset)
7893 (sparc32_linux_fpregset): New static regset structures.
7894 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7895 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7896 'fpregset' fields.
7897 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7898 (sparc64_linux_fpregset): New static regset structures.
7899 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7900 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7901 New static regset structures.
7902 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7903 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7904 New static regset structures.
7905 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7906 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7907 New static regset structures.
7908 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7909 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7910 New static regset structures.
7911 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7912
b4fd25c9
AA
79132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7914
7915 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7916 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7917 register maps ("regmaps") from "*regset" to "*regmap". Do this
7918 for all regmap types and variables.
7919 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7920 (sparc32_linux_supply_core_gregset)
7921 (sparc32_linux_collect_core_gregset)
7922 (sparc32_linux_supply_core_fpregset)
7923 (sparc32_linux_collect_core_fpregset): Likewise.
7924 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7925 (sparc_gregmap, sparc_fpregmap): ... these.
7926 (sparc_supply_gregset, sparc_collect_gregset)
7927 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7928 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7929 (_initialize_sparc_nat): Rename regmaps.
7930 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7931 (sparc_gregmap, sparc_fpregmap): ... these.
7932 (sparc_supply_gregset, sparc_collect_gregset)
7933 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7934 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7935 Rename macros to...
7936 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7937 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7938 Likewise.
7939 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7940 Rename to...
7941 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7942 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7943 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7944 regmaps.
7945 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7946 (sparc32_bsd_fpregset): Rename to...
7947 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7948 (sparc32_bsd_fpregmap): ... these.
7949 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7950 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7951 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7952 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7953 (struct sparc_gregmap, struct sparc_fpregmap)
7954 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7955 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7956 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7957 (sparc32_supply_regset, sparc32_collect_gregset)
7958 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7959 prototypes.
7960 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7961 (sparc64_linux_ptrace_gregmap): ... this.
7962 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7963 (_initialize_sparc64_linux_nat): Rename regmaps.
7964 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7965 (sparc64_linux_core_gregmap): ... this.
7966 (sparc64_linux_supply_core_gregset)
7967 (sparc64_linux_collect_core_gregset)
7968 (sparc64_linux_supply_core_fpregset)
7969 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7970 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7971 (sparc64_sol2_fpregset): Rename to...
7972 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7973 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7974 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7975 regmaps.
7976 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7977 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7978 (sparc64_bsd_fpregset): Rename to...
7979 (struct sparc_gregmap, sparc64_sol2_gregmap)
7980 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7981 (sparc64_bsd_fpregmap): ... these.
7982 (sparc64_supply_gregset, sparc64_collect_gregset)
7983 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7984 prototypes.
7985 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7986 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7987 (sparc64fbsd_gregmap): ... this.
7988 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7989 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7990 Rename regmaps.
7991 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7992 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7993 (sparc64nbsd_collect_fpregset): Likewise.
7994 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7995 (sparc64nbsd_gregmap): ... this.
7996 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7997 regmaps.
7998 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7999 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8000 (sparc64obsd_gregmap): ... this.
8001 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8002 regmaps.
8003 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8004 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8005 (sparc32nbsd_gregmap): ... this.
8006 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8007 regmaps.
8008
8fea3224
AA
80092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8010
8011 * score-tdep.c (score7_linux_gregset): New static regset
8012 structure.
8013 (score7_linux_regset_from_core_section): Remove dynamic regset
8014 allocation.
8015 (score_gdbarch_init): Drop allocation of tdep structure.
8016 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8017
24534243
AA
80182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8019
8020 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8021 regset structures.
8022 (am33_regset_from_core_section): Remove dynamic regset
8023 allocations.
8024
b7195f27
AA
80252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8026
8027 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8028 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8029 structures.
8030 (mips_linux_regset_from_core_section): Remove dynamic regset
8031 allocations.
8032 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8033 'gregset64', 'fpregset', and 'fpregset64'.
8034 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8035 deleted tdep fields.
8036
ecc37a5a
AA
80372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8038
8039 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8040 regset structures.
8041 (amd64_regset_from_core_section): Remove dynamic regset
8042 allocations.
8043 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8044 structure.
8045 (amd64obsd_regset_from_core_section): Remove dynamic regset
8046 allocation.
8047 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8048 Likewise.
8049 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8050 x86-common regset supply function.
8051 * i386-tdep.c (i386_collect_gregset): Make static.
8052 (i386_gregset): New global regset structure.
8053 (i386_fpregset, i386_xstateregset): New static regset structures.
8054 (i386_regset_from_core_section): Remove dynamic regset
8055 allocations.
8056 (i386_gdbarch_init): Remove initialization of tdep fields
8057 'gregset', 'fpregset', and 'xstateregset'.
8058 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8059 'fpregset', and 'xstateregset'.
8060 (i386_collect_gregset): Remove prototype.
8061 (i386_gregset): New declaration.
8062 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8063 structure.
8064 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8065 allocation.
8066
b7611c43
AA
80672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8068
8069 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8070 (arm_linux_vfpregset): New static regset structures.
8071 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8072 regset structures.
8073 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8074 and 'vfpregset' fields.
8075
a069a2bd
AA
80762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8077
8078 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8079 (aarch64_linux_fpregset): New static regset structures.
8080 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8081 of regset structures.
8082 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8083 'fpregset' fields.
8084
09424cff
AA
80852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8086
8087 * regset.h (struct regset): Remove gdbarch field.
8088 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8089 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8090 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8091 Likewise.
8092 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8093 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8094 (ppc32_linux_vsxregset): Likewise.
8095 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8096 via the regcache instead of the regset.
8097 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8098 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8099 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8100 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8101 Likewise.
8102
3ca7dae4
AA
81032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8104
8105 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8106 Constify structures.
8107 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8108 (alphanbsd_aout_gregset): Likewise.
8109 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8110 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8111 Likewise.
8112 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8113 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8114 Likewise.
8115 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8116 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8117 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8118 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8119 * m88k-tdep.c (m88k_gregset): Likewise.
8120 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8121 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8122 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8123 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8124 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8125 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8126 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8127 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8128 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8129 Likewise.
8130 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8131 * sh-tdep.h (sh_corefile_gregset): Likewise.
8132 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8133 * vax-tdep.c (vax_gregset): Likewise.
8134
5876f503
JK
81352014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 Fix TLS access for -static -pthread.
8138 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8139 (try_thread_db_load_1): Initialize it.
8140 (thread_db_get_thread_local_address): Call it if LM is zero.
8141 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8142 * target.h (struct target_ops) (to_get_thread_local_address): Add
8143 load_module_addr comment.
8144
0256a6ac
PA
81452014-05-21 Pedro Alves <palves@redhat.com>
8146
8147 * dcache.c (dcache_read_memory_partial): If reading the cache line
8148 fails, fallback to reading just the memory the caller wanted.
8149
227533ac
DE
81502014-05-20 Doug Evans <dje@google.com>
8151
8152 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8153 instead of get_current_arch.
8154
936d2992
PA
81552014-05-20 Pedro Alves <palves@redhat.com>
8156
8157 * NEWS: Mention that compare-sections now works with all targets.
8158
8159 * remote.c (PACKET_qCRC): New enum value.
8160 (remote_verify_memory): Don't send qCRC if the target has no
8161 execution. Use packet_support/packet_ok. If the target doesn't
8162 support the qCRC packet, fallback to a deep memory copy.
8163 (compare_sections_command): Say "target image" instead of "remote
8164 executable".
8165 (_initialize_remote): Add PACKET_qCRC to the list of config
8166 packets that have no associated command. Extend comment.
8167 * target.c (simple_verify_memory, default_verify_memory): New
8168 function.
8169 * target.h (struct target_ops) <to_verify_memory>: Default to
8170 default_verify_memory.
8171 (simple_verify_memory): New declaration.
8172 * target-delegates.c: Regenerate.
8173
e59fa00f
MM
81742014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8175
8176 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8177
f2205de0
HZ
81782014-05-20 Hui Zhu <hui@codesourcery.com>
8179 Yao Qi <yao@codesourcery.com>
8180
8181 PR backtrace/16558
8182 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8183 and change address of sp and pc.
8184
c4e54771
TT
81852014-05-19 Tom Tromey <tromey@redhat.com>
8186
8187 * gdbtypes.c (rank_function): Use XNEWVEC.
8188 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8189
73051182
DE
81902014-05-19 Doug Evans <dje@google.com>
8191
8192 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8193 build_type_unit_groups and moved closer to only caller. Remove
8194 arguments. All references updated. Remove outdated .gdb_index
8195 comment.
8196 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8197 build_type_psymtabs_1.
8198
8832e7e3
DE
81992014-05-19 Doug Evans <dje@google.com>
8200
8201 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8202 n_type_unit_groups, all_type_unit_groups. All uses removed.
8203 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8204 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8205 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8206 (add_type_unit_group_to_table): Delete.
8207
cd8ae15e
DE
82082014-05-19 Doug Evans <dje@google.com>
8209
8210 * eval.c (evaluate_subexp_standard): Add some comments.
8211
08f4850b
DE
82122014-05-17 Doug Evans <xdje42@gmail.com>
8213
8214 * progspace.c (remove_program_space): Delete, unused.
8215 * progspace.h (remove_program_space): Ditto.
8216
bed8455c
DE
82172014-05-17 Doug Evans <xdje42@gmail.com>
8218
8219 * inferior.c (prune_inferiors): Fix comment.
8220 (remove_inferior_command): Call prune_program_spaces.
8221
8d551b02
DE
82222014-05-16 Doug Evans <dje@google.com>
8223
8224 New command line option -D.
8225 * NEWS: Mention it.
8226 * main.c (set_gdb_data_directory): New function.
8227 (captured_main): Recognize -D. Flag error for --data-directory "".
8228 Call set_gdb_data_directory.
8229 (print_gdb_help): Print --data-directory, -D.
8230 * main.h (set_gdb_data_directory): Declare.
8231 * top.c (staged_gdb_datadir): New static global.
8232 (set_gdb_datadir): Call set_gdb_data_directory
8233 (show_gdb_datadir): New function.
8234 (init_main): Update init of data-directory parameter.
8235
18848e28
GF
82362014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8237
8238 Import the "dirfd" gnulib module.
8239 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8240 * gnulib/aclocal.m4: Update.
8241 * gnulib/config.in: Update.
8242 * gnulib/configure: Update.
8243 * gnulib/import/Makefile.am: Update.
8244 * gnulib/import/Makefile.in: Update.
8245 * gnulib/import/dirfd.c: New.
8246 * gnulib/import/m4/dirfd.m4: New.
8247 * gnulib/import/m4/gnulib-cache.m4: Update.
8248 * gnulib/import/m4/gnulib-comp.m4: Update.
8249
95c64f92
YQ
82502014-05-16 Pierre Muller <muller@sourceware.org>
8251 Yao Qi <yao@codesourcery.com>
8252
8253 * valprint.c (print_wchar): Move the code on checking whether
8254 W is a printable wide char to the default branch of switch
8255 statement below. Call wchar_printable instead of gdb_iswprint.
8256
cac395ea
TM
82572014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8258
19679eca 8259 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8260 ldr.w and ldrd instructions.
8261
83655187
DE
82622014-05-15 Doug Evans <dje@google.com>
8263
8264 * dwarf2read.c (read_structure_type): Delete outdated comments.
8265
dd756689
TT
82662014-05-14 Tom Tromey <tromey@redhat.com>
8267
8268 * macrocmd.c (print_macro_definition): Reindent.
8269
75ddda77
DE
82702014-05-13 Doug Evans <xdje42@gmail.com>
8271
8272 * python/py-cmd.c (cmdpy_completer): Add comment.
8273 (completers): Make const.
8274
b0f16a3e
SM
82752014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8276
8277 * infrun.c (resume): Remove should_resume (unused). Move up
8278 declaration of resume_ptid.
8279
033c3379
TT
82802014-05-13 Tom Tromey <tromey@redhat.com>
8281
8282 * language.h (unop_type_check): Remove.
8283 (binop_type_check): Don't declare.
8284
9b44a3a5
AA
82852014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8286
8287 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8288 call to regcache_raw_collect.
8289
303a33fa
SM
82902014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8291
8292 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8293 mi_console->quote as the quoting character.
8294
196100a0
SM
82952014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8296
8297 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8298
f989a1c8
TT
82992014-04-29 Tom Tromey <tromey@redhat.com>
8300
8301 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8302 "show debug varobj".
8303
9404b58f
KM
83042014-05-07 Kyle McMartin <kyle@redhat.com>
8305
8306 Pushed by Joel Brobecker <brobecker@adacore.com>.
8307 * aarch64-tdep.c (aarch64_software_single_step): New function.
8308 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8309 with aarch64_software_single_step.
8310
5e49ba57
JB
83112014-05-05 Joel Brobecker <brobecker@adacore.com>
8312
8313 GDB 7.7.1 released.
8314
c888a17d
KS
83152014-05-05 Keith Seitz <keiths@redhat.com>
8316
8317 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8318 variable or history value is successfully parsed.
8319
290a839c
YQ
83202014-05-05 Yao Qi <yao@codesourcery.com>
8321 Pedro Alves <palves@redhat.com>
8322
8323 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8324 address of blocks that intersects the requested range. Trim
8325 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8326 sections.
8327 * ctf.c (ctf_xfer_partial): Likewise.
8328
91256dc2
YQ
83292014-05-05 Yao Qi <yao@codesourcery.com>
8330
8331 * printcmd.c (display_command): Remove the check to
8332 target_has_execution.
8333
07284463
MK
83342014-05-03 Mark Kettenis <kettenis@gnu.org>
8335
8336 * ppcobsd-nat.c: Include "obsd-nat.h".
8337 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8338 add_target.
8339 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8340
30a1e6cc
SDJ
83412014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8342
8343 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8344 and 16-bit signed and unsigned arguments. Update comment.
8345 (stap_parse_probe_arguments): Extend code to handle such
8346 arguments. Use warning instead of complaint to notify about
8347 unrecognized bitness.
8348
f33da99a
SDJ
83492014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8350
8351 PR breakpoints/16889
8352 * stap-probe.c (stap_parse_probe_arguments): Simplify
8353 check for non-prefixed probes (i.e., probes whose
8354 arguments do not start with "N@"). Always set the
8355 argument type to a sane value.
8356
95cf3b38
DT
83572014-05-01 David Taylor <dtaylor@emc.com>
8358
8359 * remote.c (compare_sections_command): Add -r option to compare
8360 all loadable read-only sections.
8361
1cfdf534
SC
83622014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8363
8364 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8365 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8366 Update all callers.
8367 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8368 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8369 Remove unused CORE_ADDR argument. Update all callers.
8370
ca4f7f8b
PA
83712014-04-29 Pedro Alves <palves@redhat.com>
8372
8373 * remote.c (struct packet_config) <detect>: Extend comment.
8374 (add_packet_config_cmd): Don't set the config's detect or support
8375 fields here.
8376 (init_all_packet_configs): Also initialize the config's 'detect'
8377 field.
8378 (reset_all_packet_configs_support): New function.
8379 (remote_open_1): Call reset_all_packet_configs_support instead of
8380 init_all_packet_configs.
8381 (_initialize_remote): Initialize all packet configs. Assert that
8382 all packets have an associated command, except a few known
8383 outliers.
8384
11c1ba78
JB
83852014-04-28 Joel Brobecker <brobecker@adacore.com>
8386
8387 * dwarf2read.c (read_subrange_type): Handle dynamic
8388 DW_AT_lower_bound attributes.
8389
8739bc53
JB
83902014-04-28 Joel Brobecker <brobecker@adacore.com>
8391
8392 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8393 dynamic bounds before computing its upper bound.
8394 (ada_discrete_type_low_bound): Same as above with the lower bound.
8395
6f8a3220
JB
83962014-04-28 Joel Brobecker <brobecker@adacore.com>
8397
8398 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8399 range types. Adjust the array handling implementation to
8400 take advantage of this change.
8401 (resolve_dynamic_range): New function, mostly extracted from
8402 resolve_dynamic_bounds.
8403 (resolve_dynamic_array): New function, mostly extracted from
8404 resolve_dynamic_bounds.
8405 (resolve_dynamic_bounds): Delete.
8406 (resolve_dynamic_type): Reimplement. Add handling of
8407 TYPE_CODE_RANGE types.
8408
4d072ce4
JB
84092014-04-28 Joel Brobecker <brobecker@adacore.com>
8410
8411 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8412 handling of parallel ___XA types.
8413
52865325
JB
84142014-04-28 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8417 unnecessary second call to static_unwrap_type.
8418
433e77fa
HZ
84192014-04-27 Hui Zhu <hui@codesourcery.com>
8420
8421 * stack.c (print_frame_info): Call do_gdb_disassembly with
8422 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8423
b51a69ee
DE
84242014-04-26 Doug Evans <xdje42@gmail.com>
8425
8426 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8427
7ae1a6a6
PA
84282014-04-25 Pedro Alves <palves@redhat.com>
8429
8430 PR server/16255
8431 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8432 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8433 and newline from built string.
8434 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8435 (linux_ptrace_attach_fail_reason): ... this.
8436 * linux-nat.c (linux_nat_attach): Adjust to use
8437 linux_ptrace_attach_fail_reason.
8438
4082afcc
PA
84392014-04-25 Pedro Alves <palves@redhat.com>
8440
8441 * remote.c (struct remote_state): Remove multi_process_aware,
8442 non_stop_aware, cond_tracepoints, cond_breakpoints,
8443 breakpoint_commands, fast_tracepoints, static_tracepoints,
8444 install_in_trace, disconnected_tracing,
8445 enable_disable_tracepoints, string_tracing, and
8446 augmented_libraries_svr4_read fields.
8447 (remote_multi_process_p): Move further below in the file.
8448 (struct packet_config): Add comments.
8449 (update_packet_config): Delete function.
8450 (show_packet_config_cmd): Use packet_config_support.
8451 (add_packet_config_cmd): Use NULL as set callback.
8452 (packet_ok): "set remote foo-packet"-style commands no longer
8453 change config->supported -- adjust.
8454 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8455 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8456 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8457 (PACKET_QNonStop, PACKET_multiprocess_feature)
8458 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8459 (PACKET_DisconnectedTracing_feature)
8460 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8461 (set_remote_protocol_packet_cmd): Delete function.
8462 (packet_config_support, packet_support): New functions.
8463 (set_remote_protocol_Z_packet_cmd): Don't call
8464 update_packet_config.
8465 (remote_query_attached, remote_pass_signals)
8466 (remote_program_signals, remote_threads_info)
8467 (remote_threads_extra_info, remote_start_remote): Use
8468 packet_support.
8469 (remote_start_remote): Use packet_config_support and
8470 packet_support.
8471 (init_all_packet_configs): Set all packets to unknown support,
8472 instead of calling update_packet_config.
8473 (remote_check_symbols): Use packet_support.
8474 (remote_supported_packet): Unconditionally set the packet config's
8475 support status.
8476 (remote_multi_process_feature, remote_non_stop_feature)
8477 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8478 (remote_breakpoint_commands_feature)
8479 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8480 (remote_install_in_trace_feature)
8481 (remote_disconnected_tracing_feature)
8482 (remote_enable_disable_tracepoint_feature)
8483 (remote_string_tracing_feature)
8484 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8485 (remote_protocol_features): Adjust to use remote_supported_packet
8486 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8487 "ConditionalTracepoints", "ConditionalBreakpoints",
8488 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8489 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8490 "EnableDisableTracepoints", and "tracenz".
8491 (remote_query_supported): Use packet_support.
8492 (remote_open_1): Adjust.
8493 (extended_remote_attach_1): Use packet_support. Switch on the
8494 result of packet_ok instead of checking whether the packet ended
8495 up disabled.
8496 (remote_vcont_resume): Use packet_support.
8497 (remote_resume, remote_stop_ns, fetch_register_using_p)
8498 (remote_prepare_to_store, store_register_using_P)
8499 (check_binary_download, remote_write_bytes): Use packet_support.
8500 (remote_vkill): Use packet_support. Switch on the result of
8501 packet_ok instead of checking whether the packet ended up
8502 disabled.
8503 (extended_remote_supports_disable_randomization): Use
8504 packet_support.
8505 (extended_remote_run): Switch on the result of packet_ok instead
8506 of checking whether the packet ended up disabled.
8507 (remote_insert_breakpoint, remote_remove_breakpoint)
8508 (remote_insert_watchpoint, remote_remove_watchpoint)
8509 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8510 packet_support.
8511 (remote_search_memory): Use packet_config_support.
8512 (remote_get_thread_local_address, remote_get_tib_address)
8513 (remote_hostio_send_command, remote_can_execute_reverse): Use
8514 packet_support.
8515 (remote_supports_cond_tracepoints)
8516 (remote_supports_cond_breakpoints)
8517 (remote_supports_fast_tracepoints)
8518 (remote_supports_static_tracepoints)
8519 (remote_supports_install_in_trace)
8520 (remote_supports_enable_disable_tracepoint)
8521 (remote_supports_string_tracing)
8522 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8523 the packet config says the feature is enabled or disabled.
8524 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8525 (remote_get_trace_status): Use packet_support.
8526 (remote_set_disconnected_tracing): Adjust to check whether the
8527 feature is enabled with packet_support.
8528 (remote_set_trace_buffer_size, remote_use_agent)
8529 (remote_can_use_agent, remote_supports_btrace): Use
8530 packet_support.
8531 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8532 Use packet_config_support.
8533 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8534 the packet config says the feature is enabled or disabled.
8535 (set_range_stepping): Use packet_support.
8536
bdb52a22
TT
85372014-04-25 Tom Tromey <tromey@redhat.com>
8538
8539 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8540 argument.
8541
e9475ead
SA
85422014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8543
8544 * NEWS: Mention support for C99 variable length arrays.
8545
82eacd52
JB
85462014-04-24 Joel Brobecker <brobecker@adacore.com>
8547
8548 * ada-lang.c (standard_exc): Expand introductory comment.
8549
01f9f808
MS
85502014-04-24 Michael Sturm <michael.sturm@mintel.com>
8551 Walfred Tedeschi <walfred.tedeschi@intel.com>
8552
8553 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8554 AVX512 registers.
8555 (amd64_linux_read_description): Add code to handle AVX512 xstate
8556 mask and return respective tdesc.
8557 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8558 and features/i386/x32-avx512-linux.c.
8559 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8560 (amd64_linux_core_read_description): Add code to handle AVX512
8561 xstate mask and return respective tdesc.
8562 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8563 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8564 calculation.
8565 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8566 (tdesc_amd64_avx512_linux): New prototype.
8567 (tdesc_x32_avx512_linux): Likewise.
8568 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8569 features/i386/x32-avx512.c.
8570 (amd64_ymm_avx512_names): New register names for pseudo
8571 registers YMM16-31.
8572 (amd64_ymmh_avx512_names): New register names for raw registers
8573 YMMH16-31.
8574 (amd64_k_names): New register names for K registers.
8575 (amd64_zmmh_names): New register names for ZMM raw registers.
8576 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8577 (amd64_xmm_avx512_names): New register names for XMM16-31
8578 registers.
8579 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8580 registers.
8581 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8582 if feature is present.
8583 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8584 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8585 (AMD64_NUM_REGS): Adjust to new number of registers.
8586 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8587 registers supplied via XSTATE by AVX512 registers.
8588 (i386_linux_read_description): Add case for AVX512.
8589 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8590 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8591 (i386_linux_core_read_description): Add case for AVX512.
8592 (i386_linux_init_abi): Install supported register note section
8593 for AVX512.
8594 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8595 AVX512.
8596 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8597 registers to be number of zmm7h + 1.
8598 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8599 * i386-tdep.c: Include features/i386/i386-avx512.c.
8600 (i386_zmm_names): Add ZMM pseudo register names array.
8601 (i386_zmmh_names): Add ZMM raw register names array.
8602 (i386_k_names): Add K raw register names array.
8603 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8604 registers. AVX512 has 16 more ZMM registers than there are YMM
8605 registers.
8606 (i386_zmmh_regnum_p): Add function to look up register number of
8607 ZMM raw registers.
8608 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8609 (i386_k_regnum_p): Likewise for K raw registers.
8610 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8611 registers added by AVX512.
8612 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8613 registers added by AVX512.
8614 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8615 added by AVX512.
8616 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8617 (i386_pseudo_register_name): Add ZMM pseudo registers.
8618 (i386_zmm_type): Construct and return vector registers type for ZMM
8619 registers.
8620 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8621 ZMM0-31 pseudo registers and K registers.
8622 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8623 and YMM16-31 registers from register cache.
8624 (i386_pseudo_register_write): Add code to write K, ZMM and
8625 YMM16-31 registers.
8626 (i386_register_reggroup_p): Add code to include/exclude AVX512
8627 registers in/from respective register groups.
8628 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8629 registers if feature is present in xcr0.
8630 (i386_gdbarch_init): Add code to initialize AVX512 feature
8631 variables in tdep structure, wire in pseudo registers and call
8632 initialize_tdesc_i386_avx512.
8633 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8634 variables.
8635 (i386_regnum): Add AVX512 registers.
8636 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8637 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8638 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8639 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8640 512 bits wide.
8641 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8642 (i386_ymm_avx512_regnum_p): Likewise.
8643 (i386_k_regnum_p): Likewise.
8644 (i386_zmm_regnum_p): Likewise.
8645 (i386_zmmh_regnum_p): Likewise.
8646 * i387-tdep.c : Update year in copyright notice.
8647 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8648 XSAVE buffer.
8649 (XSAVE_YMM_AVX512_ADDR): New macro.
8650 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8651 XSAVE buffer.
8652 (XSAVE_XMM_AVX512_ADDR): New macro.
8653 (xsave_avx512_k_offset): New table for K register offsets in
8654 XSAVE buffer.
8655 (XSAVE_AVX512_K_ADDR): New macro.
8656 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8657 in XSAVE buffer.
8658 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8659 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8660 buffer.
8661 (i387_collect_xsave): Add code to collect AVX512 registers from
8662 XSAVE buffer.
8663 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8664 of XMM16-31 registers.
8665 (I387_NUM_K_REGS): New define for number of K registers.
8666 (I387_K0_REGNUM): New define for K0 register number.
8667 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8668 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8669 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8670 registers.
8671 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8672 (I387_XMM16_REGNUM): New define for XMM16 register number.
8673 (I387_YMM0_REGNUM): New define for YMM0 register number.
8674 (I387_KEND_REGNUM): New define for last K register number.
8675 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8676 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8677 number.
8678 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8679 number.
8680 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8681 size.
8682 * features/Makefile: Add AVX512 related files.
8683 * features/i386/32bit-avx512.xml: New file.
8684 * features/i386/64bit-avx512.xml: Likewise.
8685 * features/i386/amd64-avx512-linux.c: Likewise.
8686 * features/i386/amd64-avx512-linux.xml: Likewise.
8687 * features/i386/amd64-avx512.c: Likewise.
8688 * features/i386/amd64-avx512.xml: Likewise.
8689 * features/i386/i386-avx512-linux.c: Likewise.
8690 * features/i386/i386-avx512-linux.xml: Likewise.
8691 * features/i386/i386-avx512.c: Likewise.
8692 * features/i386/i386-avx512.xml: Likewise.
8693 * features/i386/x32-avx512-linux.c: Likewise.
8694 * features/i386/x32-avx512-linux.xml: Likewise.
8695 * features/i386/x32-avx512.c: Likewise.
8696 * features/i386/x32-avx512.xml: Likewise.
8697 * regformats/i386/amd64-avx512-linux.dat: New file.
8698 * regformats/i386/amd64-avx512.dat: Likewise.
8699 * regformats/i386/i386-avx512-linux.dat: Likewise.
8700 * regformats/i386/i386-avx512.dat: Likewise.
8701 * regformats/i386/x32-avx512-linux.dat: Likewise.
8702 * regformats/i386/x32-avx512.dat: Likewise.
8703 * NEWS: Add note about new support for AVX512.
8704
8705
08351840
PA
87062014-04-23 Pedro Alves <palves@redhat.com>
8707
8708 * breakpoint.c (insert_bp_location): Tolerate errors if the
8709 breakpoint is set in a user-loaded objfile.
8710 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8711 location is marked shlib_disabled. If the breakpoint is set in a
8712 user-loaded objfile is a GDB-side memory breakpoint, validate it
8713 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8714 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8715 flag.
8716 * mem-break.c (memory_validate_breakpoint): New function.
8717 * objfiles.c (userloaded_objfile_contains_address_p): New
8718 function.
8719 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8720 * target.h (memory_validate_breakpoint): New declaration.
8721
076855f9
PA
87222014-04-23 Pedro Alves <palves@redhat.com>
8723
8724 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8725 the breakpoint is set in a shared library, only suppress
8726 errors for software breakpoints, not hardware breakpoints.
8727
483805cf
PA
87282014-04-22 Pedro Alves <palves@redhat.com>
8729
8730 * infrun.c (schedlock_applies): New function, factored out from
8731 find_thread_needs_step_over.
8732 (find_thread_needs_step_over): Use it.
8733 (switch_back_to_stepped_thread): Always clear trap_expected if the
8734 step over is finished. Return early if scheduler locking applies.
8735 Look for the stepping thread and a potential step-over thread with
8736 a single loop.
8737 (currently_stepping_or_nexting_callback): Delete.
8738
a75fef0e
NC
87392014-04-22 Nick Clifton <nickc@redhat.com>
8740
8741 * NEWS: Mention that ARM sim now supports tracing.
8742
48b6e87e
YQ
87432014-04-22 Yao Qi <yao@codesourcery.com>
8744
8745 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8746 to ...
8747 * tracefile.c (tracefile_fetch_registers): ... it. New
8748 function.
8749 * tracefile.h (tracefile_fetch_registers): Declare.
8750 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8751 tracefile_fetch_registers.
8752
17617f2d
EZ
87532014-04-19 Eli Zaretskii <eliz@gnu.org>
8754
8755 PR gdb/14018
8756 * windows-nat.c (thread_rec): Don't display a warning when
8757 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8758 fails for any reason, set th->suspended to -1, so that we don't
8759 try to resume such a thread. Also, don't return NULL in these
8760 cases, to avoid completely ruin the session due to "PC register is
8761 not available" error.
8762 (do_windows_fetch_inferior_registers): Check errors in
8763 GetThreadContext call.
8764 (windows_continue): Accept an additional argument KILLED; if not
8765 zero, ignore errors in the SetThreadContext call, since the
8766 inferior was killed and is shutting down.
8767 (windows_resume, get_windows_debug_event)
8768 (windows_create_inferior, windows_mourn_inferior)
8769 (windows_kill_inferior): All callers of windows_continue changed
8770 to adjust to its new calling sequence.
8771
5723a6fd
YQ
87722014-04-19 Yao Qi <yao@codesourcery.com>
8773
8774 * ctf.c (ctf_open): Call post_create_inferior.
8775
614d5099
YQ
87762014-04-19 Yao Qi <yao@codesourcery.com>
8777
8778 * ctf.c (handle_id): New static variable.
8779 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8780 value. Get the declaration of event "register" and get length
8781 of field "contents".
8782
dac3e710
YQ
87832014-04-19 Yao Qi <yao@codesourcery.com>
8784
8785 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8786
2bca57ba
SC
87872014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8788
8789 * valops.c (oload_method_static): Remove unnecessary argument
8790 METHOD. Update all callers.
8791
51d48146
PA
87922014-04-18 Pedro alves <palves@redhat.com>
8793 Tom Tromey <tromey@redhat.com>
8794
8795 PR backtrace/15558
8796 * frame.c (get_prev_frame_1): Rename to ...
8797 (get_prev_frame_always): ... this, and make extern. Adjust.
8798 (skip_artificial_frames): Use get_prev_frame_always.
8799 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8800 (get_frame_unwind_stop_reason): Adjust to rename.
8801 * frame.h (get_prev_frame_always): Declare.
8802 * inline-frame.c: Include frame.h.
8803 (inline_frame_this_id): Use get_prev_frame_always.
8804
1bdad2e0
TG
88052014-04-18 Tristan Gingold <gingold@adacore.com>
8806
8807 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8808 code by using bfd_mach_o_get_base_address.
8809
7ce16bd4
UW
88102014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8811
8812 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8813 (spu_ax_pseudo_register_collect): New function.
8814 (spu_ax_pseudo_register_push_stack): Likewise.
8815 (spu_dwarf_reg_to_regnum): Likewise.
8816 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8817
2ed3c037
UW
88182014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8819
8820 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8821 Replace FRAME argument with FRAME_ID.
8822 * gdbarch.c, gdbarch.h: Regenerate.
8823 * findvar.c (default_value_from_register): Add GDBARCH argument;
8824 replace FRAME by FRAME_ID. No longer call get_frame_id.
8825 (value_from_register): Update call to gdbarch_value_from_register.
8826 * value.h (default_value_from_register): Update prototype.
8827 * s390-linux-tdep.c (s390_value_from_register): Update interface
8828 and call to default_value_from_register.
8829 * spu-tdep.c (spu_value_from_register): Likewise.
8830
8831 * findvar.c (address_from_register): Remove TYPE argument.
8832 Do not call value_from_register; use gdbarch_value_from_register
8833 with null_frame_id instead.
8834 * value.h (address_from_register): Update prototype.
8835 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8836 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8837 address_from_register interface change.
8838
71e50e83
YQ
88392014-04-17 Yao Qi <yao@codesourcery.com>
8840
8841 * gdbtypes.h: Update comments to link to types and macros'
8842 definitions.
8843
7a23c549
SC
88442014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8845
8846 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8847
22869d73
KS
88482014-04-16 Keith Seitz <keiths@redhat.com>
8849
8850 PR gdb/15827
8851 * dwarf2read.c (skip_one_die): Check that all relative-offset
8852 sibling DIEs fall within range of the current reader's buffer.
8853 (read_partial_die): Likewise.
8854
c4f87ca6
KS
88552014-04-16 Keith Seitz <keiths@redhat.com>
8856
8857 PR c++/16597
8858 * cp-namespace.c (lookup_symbol_file): If the type name of
8859 `this' is NULL, return immediately.
8860
b50c8614
KS
88612014-04-14 Keith Seitz <keiths@redhat.com>
8862
8863 PR c++/16253
8864 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8865 from symbol_matches_domain in symtab.c. All local callers
8866 of symbol_matches_domain updated.
8867 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8868 search STRUCT_DOMAIN.
8869 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8870 independently. standard_lookup will do that automatically.
8871 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8872 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8873 (cp_lookup_symbol_in_namespace): Likewise.
8874 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8875 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8876 may return a STRUCT_DOMAIN match.
8877 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8878 * cp-support.c: Include language.h.
8879 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8880 VAR_DOMAIN.
8881 * psymtab.c (match_partial_symbol): Compare the requested
8882 domain with the symbol's domain directly.
8883 (lookup_partial_symbol): Likewise.
8884 * symtab.c (lookup_symbol_in_language): Explain when/why
8885 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8886 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8887 appropriate languages.
8888 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8889 and moved to ada-lang.c
8890 (lookup_block_symbol): Explain that this function only returns
8891 symbol matching the requested DOMAIN.
8892 Compare the requested domain with the symbol's domain directly.
8893 (iterate_over_symbols): Compare the requested domain with the
8894 symbol's domain directly.
8895 * symtab.h (symbol_matches_domain): Remove.
8896
3d567982
TT
88972014-04-14 Tom Tromey <tromey@redhat.com>
8898
8899 PR c++/15246:
8900 * c-exp.y (type_aggregate_p): New function.
8901 (qualified_name, classify_inner_name): Use it.
8902 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8903 and TYPE_TARGET_TYPE of an enum type.
8904 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8905 an enum type.
8906 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8907 handle TYPE_DECLARED_CLASS.
8908 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8909 types.
8910 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8911 * valops.c (enum_constant_from_type): New function.
8912 (value_aggregate_elt): Use it.
8913 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8914 TYPE_CODE_ENUM.
8915
c848d642
TT
89162014-04-14 Tom Tromey <tromey@redhat.com>
8917
8918 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8919 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8920 const.
8921 * value.h (value_aggregate_elt): Update.
8922
0626fc76
TT
89232014-04-14 Tom Tromey <tromey@redhat.com>
8924
8925 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8926
5ecaaa66
SA
89272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8928
8929 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8930 (evaluate_subexp_standard): Pass noside argument.
8931 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8932 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8933 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8934 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8935 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8936
1612e0c0
SA
89372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8938
8939 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8940 points to a constant blob.
8941
c451ebe5
SA
89422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8943
8944 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8945 property and store it as the high bound and flag the range accordingly.
8946 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8947 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8948 * gdbtypes.h (enum range_flags): New enum.
8949 (struct range_bounds): Add flags member.
8950
1d42e4c4
SA
89512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8952
8953 * c-typeprint.c (c_type_print_varspec_suffix): Added
8954 check for not yet resolved high bound. If unresolved, print
8955 "variable length" string to the console instead of random
8956 length.
8957
9f1f738a
SA
89582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8959
8960 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8961 value.
8962 (ada_template_to_fixed_record_type_1): Likewise.
8963 (ada_to_fixed_type_1): Likewise.
8964 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8965 (cp_print_value): Likewise.
8966 * d-valprint.c (dynamic_array_type): Likewise.
8967 * findvar.c (address_of_variable): Likewise.
8968 * jv-valprint.c (java_value_print): Likewise.
8969 * valops.c (value_ind): Likewise.
8970 * value.c (coerce_ref): Likewise.
8971
3c8452d4
SA
89722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8973
8974 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8975 value and retrieve the dynamic type size.
8976
4ad88275
SA
89772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8978
8979 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8980 passed to sizeof is dynamic evaluate the argument to compute the length.
8981
80180f79
SA
89822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8983 Joel Brobecker <brobecker@adacore.com>
8984
8985 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8986 (dwarf2_evaluate_property): New function.
8987 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8988 * dwarf2read.c (attr_to_dynamic_prop): New function.
8989 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8990 attribute.
8991 * gdbtypes.c: Include dwarf2loc.h.
8992 (is_dynamic_type): New function.
8993 (resolve_dynamic_type): New function.
8994 (resolve_dynamic_bounds): New function.
8995 (get_type_length): New function.
8996 (check_typedef): Use get_type_length to compute type length.
8997 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8998 (TYPE_LOW_BOUND_KIND): New macro.
8999 (is_dynamic_type): New function prototype.
9000 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9001 to resolve dynamic properties of the type. Update comment.
9002 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9003
a1556843
RH
90042014-04-14 Richard Henderson <rth@redhat.com>
9005
9006 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9007
0be03e84
DE
90082014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9009 Doug Evans <xdje42@gmail.com>
9010
9011 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9012 dereference TYPE_CODE_REF values.
9013
6b662e19
JB
90142014-04-11 Joel Brobecker <brobecker@adacore.com>
9015
9016 Revert the following changes due to regressions:
9017
9018 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9019 (dwarf2_evaluate_property): New function.
9020 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9021 * dwarf2read.c (attr_to_dynamic_prop): New function.
9022 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9023 attribute.
9024 * gdbtypes.c: Include dwarf2loc.h.
9025 (is_dynamic_type): New function.
9026 (resolve_dynamic_type): New function.
9027 (resolve_dynamic_bounds): New function.
9028 (get_type_length): New function.
9029 (check_typedef): Use get_type_length to compute type length.
9030 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9031 (TYPE_LOW_BOUND_KIND): New macro.
9032 (is_dynamic_type): New function prototype.
9033 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9034 to resolve dynamic properties of the type. Update comment.
9035 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9036
9037 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9038 passed to sizeof is dynamic evaluate the argument to compute the length.
9039
9040 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9041 value and retrieve the dynamic type size.
9042
9043 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9044 (ada_template_to_fixed_record_type_1): Likewise.
9045 (ada_to_fixed_type_1): Likewise.
9046 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9047 (cp_print_value): Likewise.
9048 * d-valprint.c (dynamic_array_type): Likewise.
9049 * eval.c (evaluate_subexp_with_coercion): Likewise.
9050 * findvar.c (address_of_variable): Likewise.
9051 * jv-valprint.c (java_value_print): Likewise.
9052 * valops.c (value_ind): Likewise.
9053 * value.c (coerce_ref): Likewise.
9054
9055 * c-typeprint.c (c_type_print_varspec_suffix): Added
9056 check for not yet resolved high bound. If unresolved, print
9057 "variable length" string to the console instead of random
9058 length.
9059
9060 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9061 property and store it as the high bound and flag the range accordingly.
9062 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9063 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9064 * gdbtypes.h (enum range_flags): New enum.
9065 (struct range_bounds): Add flags member.
9066
9067 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9068 points to a constant blob.
9069
9070 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9071 (evaluate_subexp_standard): Pass noside argument.
9072 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9073 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9074 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9075 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9076 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9077
245a5f0b
KS
90782014-04-11 Keith Seitz <keiths@redhat.com>
9079
9080 PR c++/16675
9081 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9082 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9083 reference types.
9084
3bce8237
SA
90852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9086
9087 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9088 (evaluate_subexp_standard): Pass noside argument.
9089 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9090 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9091 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9092 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9093 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9094
92b09522
SA
90952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9096
9097 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9098 points to a constant blob.
9099
e1969afb
SA
91002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9101
9102 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9103 property and store it as the high bound and flag the range accordingly.
9104 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9105 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9106 * gdbtypes.h (enum range_flags): New enum.
9107 (struct range_bounds): Add flags member.
9108
b86138fb
SA
91092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9110
9111 * c-typeprint.c (c_type_print_varspec_suffix): Added
9112 check for not yet resolved high bound. If unresolved, print
9113 "variable length" string to the console instead of random
9114 length.
9115
bcd629a4
SA
91162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9117
9118 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9119 (ada_template_to_fixed_record_type_1): Likewise.
9120 (ada_to_fixed_type_1): Likewise.
9121 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9122 (cp_print_value): Likewise.
9123 * d-valprint.c (dynamic_array_type): Likewise.
9124 * eval.c (evaluate_subexp_with_coercion): Likewise.
9125 * findvar.c (address_of_variable): Likewise.
9126 * jv-valprint.c (java_value_print): Likewise.
9127 * valops.c (value_ind): Likewise.
9128 * value.c (coerce_ref): Likewise.
9129
04b19544
SA
91302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9131
9132 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9133 value and retrieve the dynamic type size.
9134
26cb189f
SA
91352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9136
9137 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9138 passed to sizeof is dynamic evaluate the argument to compute the length.
9139
37c1ab67
SA
91402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9141
9142 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9143 (dwarf2_evaluate_property): New function.
9144 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9145 * dwarf2read.c (attr_to_dynamic_prop): New function.
9146 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9147 attribute.
9148 * gdbtypes.c: Include dwarf2loc.h.
9149 (is_dynamic_type): New function.
9150 (resolve_dynamic_type): New function.
9151 (resolve_dynamic_bounds): New function.
9152 (get_type_length): New function.
9153 (check_typedef): Use get_type_length to compute type length.
9154 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9155 (TYPE_LOW_BOUND_KIND): New macro.
9156 (is_dynamic_type): New function prototype.
9157 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9158 to resolve dynamic properties of the type. Update comment.
9159 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9160
729efb13
SA
91612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9162
9163 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9164 declaring high/low bounds and change uses accordingly. Call
9165 create_range_type instead of create_static_range_type.
9166 * gdbtypes.c (create_range_type): New function.
9167 (create_range_type): Convert bounds into struct bound_prop and pass
9168 them to create_range_type.
9169 * gdbtypes.h (struct bound_prop): New struct.
9170 (create_range_type): New function prototype.
9171 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9172 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9173 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9174 part of the bound.
9175 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9176
0c9c3474
SA
91772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9178
9179 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9180 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9181 * ada-lang.c: All uses of create_range_type updated.
9182 * coffread.c: All uses of create_range_type updated.
9183 * dwarf2read.c: All uses of create_range_type updated.
9184 * f-exp.y: All uses of create_range_type updated.
9185 * m2-valprint.c: All uses of create_range_type updated.
9186 * mdebugread.c: All uses of create_range_type updated.
9187 * stabsread.c: All uses of create_range_type updated.
9188 * valops.c: All uses of create_range_type updated.
9189 * valprint.c: All uses of create_range_type updated.
9190
9d497a19
PA
91912014-04-10 Pedro Alves <palves@redhat.com>
9192
9193 * breakpoint.c (single_step_breakpoints)
9194 (single_step_gdbarch): Move up in the file.
9195 (one_breakpoint_xfer_memory): New function, factored out from ...
9196 (breakpoint_xfer_memory): ... here. Also process single-step
9197 breakpoints.
9198
15a9128a
TG
91992014-04-09 Tristan Gingold <gingold@adacore.com>
9200
9201 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9202 comments.
9203 (darwin_decode_exception_message): Free port only after use.
9204
9c97a070
PL
92052014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9206
9207 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9208 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9209 when setting the size of call_length.
9210
7af389b8
SC
92112014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9212
9213 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9214 dereference TYPE_CODE_REF values.
9215
86ad98c3
JB
92162014-04-07 Joel Brobecker <brobecker@adacore.com>
9217
9218 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9219 end of warning message.
9220
b0aeadb3
DE
92212014-04-03 Doug Evans <dje@google.com>
9222
9223 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9224 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9225
5979d6b6
AM
92262014-04-02 Alan Modra <amodra@gmail.com>
9227
9228 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9229 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9230 (struct symbol_file_add_from_memory_args): Add size field.
9231 (find_vdso_size): New function.
9232 (add_vsyscall_page): Attempt to find vdso size.
9233
0d60c288
DE
92342014-04-01 Doug Evans <dje@google.com>
9235
9236 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9237
a41f2563
TG
92382014-04-01 Tristan Gingold <gingold@adacore.com>
9239
9240 * darwin-nat.c (darwin_encode_reply): Add prototype.
9241 (darwin_decode_exception_message): Reply to unknown inferiors.
9242 (darwin_decode_message): Handle message by id. Ignore message
9243 to unknown inferior.
9244 (darwin_wait): Discard unknown messages, add debug trace.
9245
11a865c8
DE
92462014-03-31 Doug Evans <dje@google.com>
9247
9248 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9249 comp_dir_string.
9250
770e7fc7
DE
92512014-03-31 Doug Evans <dje@google.com>
9252
9253 New option "set print symbol-loading".
9254 * NEWS: Mention it.
9255 * solib.c (solib_read_symbols): Only print symbol loading messages
9256 if requested.
9257 (solib_add): If symbol loading is in "brief" mode, notify user
9258 symbols are being loaded.
9259 (reload_shared_libraries_1): Ditto.
9260 * symfile.c (print_symbol_loading_off): New static global.
9261 (print_symbol_loading_brief): New static global.
9262 (print_symbol_loading_full): New static global.
9263 (print_symbol_loading_enums): New static global.
9264 (print_symbol_loading): New static global.
9265 (print_symbol_loading_p): New function.
9266 (symbol_file_add_with_addrs): Only print symbol loading messages
9267 if requested.
9268 (_initialize_symfile): Register "print symbol-loading" set/show
9269 command.
9270 * symfile.h (print_symbol_loading_p): Declare.
9271
c32c64b7
DE
92722014-03-30 Doug Evans <xdje42@gmail.com>
9273
9274 * infrun.c (set_last_target_status): New function.
9275 (handle_inferior_event): Call it.
9276
7c0bc051
DE
92772014-03-30 Doug Evans <xdje42@gmail.com>
9278
9279 * inferior.h (enum stop_kind): Improve comment.
9280
8776cfe9
JB
92812014-03-28 Joel Brobecker <brobecker@adacore.com>
9282
9283 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9284 a reference, strip the reference layer before calling
9285 the lang_ops value_has_mutated callback.
9286
410a0ff2
SDJ
92872014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9288
9289 Remove some globals from our parser.
9290 * language.c (unk_lang_parser): Add "struct parser_state"
9291 argument.
9292 * language.h (struct language_defn) <la_parser>: Likewise.
9293 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9294 (initialize_expout): Add "struct parser_state" argument.
9295 Rewrite function to use the parser state.
9296 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9297 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9298 write_exp_elt_longcst, write_exp_elt_dblcst,
9299 write_exp_elt_decfloatcst, write_exp_elt_type,
9300 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9301 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9302 write_dollar_variable): Likewise.
9303 (parse_exp_in_context_1): Use parser state.
9304 (insert_type_address_space): Add "struct parser_state" argument.
9305 Use parser state.
9306 (increase_expout_size): New function.
9307 * parser-defs.h: Forward declare "struct language_defn" and
9308 "struct parser_state".
9309 (expout, expout_size, expout_ptr): Remove extern declarations.
9310 (parse_gdbarch, parse_language): Rewrite macro declarations to
9311 accept the parser state.
9312 (struct parser_state): New struct.
9313 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9314 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9315 write_exp_elt_decfloatcst, write_exp_elt_type,
9316 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9317 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9318 write_exp_msymbol, write_dollar_variable,
9319 mark_struct_expression, insert_type_address_space): Add "struct
9320 parser_state" argument.
9321 (increase_expout_size): New function.
9322 * utils.c (do_clear_parser_state): New function.
9323 (make_cleanup_clear_parser_state): Likewise.
9324 * utils.h (make_cleanup_clear_parser_state): New function
9325 prototype.
9326 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9327 Update calls to write_exp* in order to pass the parser state.
9328 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9329 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9330 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9331 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9332 * stap-probe.c (stap_parse_register_operand): Likewise.
9333 (stap_parse_single_operand): Likewise.
9334 (stap_parse_argument_1): Likewise.
9335 (stap_parse_argument): Use parser state.
9336 * stap-probe.h: Include "parser-defs.h".
9337 (struct stap_parse_info) <pstate>: New field.
9338 * c-exp.y (parse_type): Rewrite to use parser state.
9339 (yyparse): Redefine to c_parse_internal.
9340 (pstate): New global variable.
9341 (parse_number): Add "struct parser_state" argument.
9342 (write_destructor_name): Likewise.
9343 (type_exp): Update calls to write_exp* and similars in order to
9344 use parser state.
9345 (exp1, exp, variable, qualified_name, space_identifier,
9346 typename, typebase): Likewise.
9347 (write_destructor_name, parse_number, lex_one_token,
9348 classify_name, classify_inner_name, c_parse): Add "struct
9349 parser_state" argument. Update function to use parser state.
9350 * c-lang.h: Forward declare "struct parser_state".
9351 (c_parse): Add "struct parser_state" argument.
9352 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9353 (yyparse): Redefine macro to ada_parse_internal.
9354 (pstate): New variable.
9355 (write_int, write_object_renaming, write_var_or_type,
9356 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9357 type_int, type_long, type_long_long, type_float, type_double,
9358 type_long_double, type_char, type_boolean, type_system_address):
9359 Add "struct parser_state" argument.
9360 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9361 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9362 var_or_type, aggregate, aggregate_component_list,
9363 positional_list, others, component_group,
9364 component_associations): Update calls to write_exp* and similar
9365 functions in order to use parser state.
9366 (ada_parse, write_var_from_sym, write_int,
9367 write_exp_op_with_string, write_object_renaming,
9368 find_primitive_type, write_selectors, write_ambiguous_var,
9369 write_var_or_type, write_name_assoc, type_int, type_long,
9370 type_long_long, type_float, type_double, type_long_double,
9371 type_char, type_boolean, type_system_address): Add "struct
9372 parser_state" argument. Adjust function to use parser state.
9373 * ada-lang.c (parse): Likewise.
9374 * ada-lang.h: Forward declare "struct parser_state".
9375 (ada_parse): Add "struct parser_state" argument.
9376 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9377 calls to both functions.
9378 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9379 parser state.
9380 (yyparse): Redefine macro to f_parse_internal.
9381 (pstate): New variable.
9382 (parse_number): Add "struct parser_state" argument.
9383 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9384 and similars in order to use parser state.
9385 (parse_number): Adjust code to use parser state.
9386 (yylex): Likewise.
9387 (f_parse): New function.
9388 * f-lang.h: Forward declare "struct parser_state".
9389 (f_parse): Add "struct parser_state" argument.
9390 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9391 parser state.
9392 (yyparse): Redefine macro for java_parse_internal.
9393 (pstate): New variable.
9394 (push_expression_name, push_expression_name, insert_exp): Add
9395 "struct parser_state" argument.
9396 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9397 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9398 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9399 PostIncrementExpression, PostDecrementExpression,
9400 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9401 UnaryExpressionNotPlusMinus, CastExpression,
9402 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9403 RelationalExpression, EqualityExpression, AndExpression,
9404 ExclusiveOrExpression, InclusiveOrExpression,
9405 ConditionalAndExpression, ConditionalOrExpression,
9406 ConditionalExpression, Assignment, LeftHandSide): Update
9407 calls to write_exp* and similars in order to use parser state.
9408 (parse_number): Ajust code to use parser state.
9409 (yylex): Likewise.
9410 (java_parse): New function.
9411 (push_variable): Add "struct parser_state" argument. Adjust
9412 code to user parser state.
9413 (push_fieldnames, push_qualified_expression_name,
9414 push_expression_name, insert_exp): Likewise.
9415 * jv-lang.h: Forward declare "struct parser_state".
9416 (java_parse): Add "struct parser_state" argument.
9417 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9418 parser state.
9419 (yyparse): Redefine macro to m2_parse_internal.
9420 (pstate): New variable.
9421 (type_exp, exp, fblock, variable, type): Update calls to
9422 write_exp* and similars to use parser state.
9423 (yylex): Likewise.
9424 (m2_parse): New function.
9425 * m2-lang.h: Forward declare "struct parser_state".
9426 (m2_parse): Add "struct parser_state" argument.
9427 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9428 * objc-lang.h: Forward declare "struct parser_state".
9429 (end_msglist): Add "struct parser_state" argument.
9430 * p-exp.y (parse_type): Rewrite macro to use parser state.
9431 (yyparse): Redefine macro to pascal_parse_internal.
9432 (pstate): New variable.
9433 (parse_number): Add "struct parser_state" argument.
9434 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9435 write_exp* and similars in order to use parser state.
9436 (parse_number, yylex): Adjust code to use parser state.
9437 (pascal_parse): New function.
9438 * p-lang.h: Forward declare "struct parser_state".
9439 (pascal_parse): Add "struct parser_state" argument.
9440 * go-exp.y (parse_type): Rewrite macro to use parser state.
9441 (yyparse): Redefine macro to go_parse_internal.
9442 (pstate): New variable.
9443 (parse_number): Add "struct parser_state" argument.
9444 (type_exp, exp1, exp, variable, type): Update calls to
9445 write_exp* and similars in order to use parser state.
9446 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9447 to use parser state.
9448 (go_parse): Likewise.
9449 * go-lang.h: Forward declare "struct parser_state".
9450 (go_parse): Add "struct parser_state" argument.
9451
342587c4
DE
94522014-03-27 Doug Evans <dje@google.com>
9453
9454 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9455
33e80786
DE
94562014-03-27 Doug Evans <dje@google.com>
9457
9458 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9459 Remove argument abbrev_section. All callers updated.
9460
1dbab08b
DE
94612014-03-27 Doug Evans <dje@google.com>
9462
9463 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9464 addr_base, ranges_base.
9465
318d3177
KS
94662014-03-26 Keith Seitz <keiths@redhat.com>
9467
9468 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9469 types, not VAR_DOMAIN.
9470
1e54db15
SL
94712014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9472
9473 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9474 "ra" registers.
9475 * features/nios2-linux.c: Regenerated.
9476 * features/nios2.c: Regenerated.
9477
d3839ede
PA
94782014-03-25 Pedro Alves <palves@redhat.com>
9479
9480 * cli/cli-script.c (script_from_file): Force the interpreter to
9481 sync mode.
9482
7588d2ec
PL
94832014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9484
9485 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9486 small stack allocation.
9487
a6290449
TG
94882014-03-24 Tristan Gingold <gingold@adacore.com>
9489
9490 * darwin-nat.c (exc_server): Remove unused prototype.
9491 (darwin_dump_message): Correctly display data on x86_64.
9492 (darwin_encode_reply): Fix style.
9493 Add comments and fix indentation.
9494
31ae9d24 94952014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9496
9497 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9498
6339bfc4
DE
94992014-03-22 Doug Evans <xdje42@gmail.com>
9500
9501 * infcmd.c: Whitespace fixes.
9502 (interrupt_command): Merge two function comments into one.
9503
0a07590b
DE
95042014-03-22 Doug Evans <xdje42@gmail.com>
9505
9506 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9507 All uses updated.
9508
b55fbac4
YQ
95092014-03-22 Yao Qi <yao@codesourcery.com>
9510
9511 * remote.c (target_read_live_memory): Remove.
9512 (memory_xfer_live_readonly_partial): Rename it to
9513 remote_xfer_live_readonly_partial. Remove argument 'object'.
9514 All callers updated. Call remote_read_bytes_1
9515 instead of target_read_live_memory.
9516 * tracepoint.c (set_traceframe_number): Remove.
9517 (make_cleanup_restore_traceframe_number): Likewise .
9518 * tracepoint.h (set_traceframe_number): Remove declaration.
9519 (make_cleanup_restore_traceframe_number): Likewise.
9520
9217e74e
YQ
95212014-03-22 Yao Qi <yao@codesourcery.com>
9522
9523 * remote.c (remote_read_bytes): Move code on reading from the
9524 remote stub to ...
9525 (remote_read_bytes_1): ... here. New function.
9526
8acf9577
YQ
95272014-03-22 Yao Qi <yao@codesourcery.com>
9528
9529 * ctf.c (ctf_xfer_partial): Check the return value of
9530 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9531 return TARGET_XFER_UNAVAILABLE.
9532 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9533 * target.c (target_read_live_memory): Move it to remote.c.
9534 (memory_xfer_live_readonly_partial): Likewise.
9535 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9536 * remote.c (target_read_live_memory): Moved from target.c.
9537 (memory_xfer_live_readonly_partial): Likewise.
9538 (remote_read_bytes): Factored out from
9539 memory_xfer_partial_1.
9540
feef67ab
DE
95412014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9542
9543 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9544 NULL pointer.
9545
b65dc60b
PA
95462014-03-21 Pedro Alves <palves@redhat.com>
9547
9548 * infrun.c (normal_stop): Extend comment.
9549
b4ab256d
HZ
95502014-03-21 Hui Zhu <hui@codesourcery.com>
9551 Pedro Alves <palves@redhat.com>
9552
9553 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9554 static buffer.
9555 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9556 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9557 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9558
deba7593
MR
95592014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9560
9561 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9562 `z' formatted output modifier.
9563
1bff71c3
SDJ
95642014-03-20 Tom Tromey <tromey@redhat.com>
9565 Sergio Durigan Junior <sergiodj@redhat.com>
9566
9567 * probe.c (parse_probes): Turn assert into an ordinary error.
9568 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9569 exceptions when parsing probes. Rearrange the code for clarity.
9570
90e28950
TT
95712014-03-20 Tom Tromey <tromey@redhat.com>
9572
9573 PR gdb/14135
9574 * top.c (execute_command): Only dispatch events if the command
9575 started the target.
9576
beb460e8
PA
95772014-03-20 Tom Tromey <tromey@redhat.com>
9578
9579 PR cli/15718
9580 * infcall.c: Include event-top.h.
9581 (run_inferior_call): Call async_disable_stdin if needed.
9582
99619bea
PA
95832014-03-20 Pedro Alves <palves@redhat.com>
9584
9585 * infrun.c (prepare_to_proceed): Delete.
9586 (thread_still_needs_step_over): New function.
9587 (find_thread_needs_step_over): New function.
9588 (proceed): If the current thread needs a step-over, set its
9589 steping_over_breakpoint flag. Adjust to use
9590 find_thread_needs_step_over instead of prepare_to_proceed.
9591 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9592 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9593 breakpoint.
9594 (switch_back_to_stepped_thread): Step over breakpoints of all
9595 threads not the stepping thread, before switching back to the
9596 stepping thread.
9597
2adfaa28
PA
95982014-03-20 Pedro Alves <palves@redhat.com>
9599
9600 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9601 extern.
9602 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9603 * infrun.c (saved_singlestep_ptid)
9604 (stepping_past_singlestep_breakpoint): Delete.
9605 (resume): Remove stepping_past_singlestep_breakpoint handling.
9606 (proceed): Store the prev_pc of the stepping thread too.
9607 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9608 singlestep_pc.
9609 (enum infwait_states): Delete infwait_thread_hop_state.
9610 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9611 field.
9612 (handle_inferior_event): Adjust.
9613 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9614 handling and the thread-hop code. Before removing single-step
9615 breakpoints, check whether the thread hit a single-step breakpoint
9616 of another thread. If it did, the trap is not a random signal.
9617 (switch_back_to_stepped_thread): If the event thread hit a
9618 single-step breakpoint, unblock it before switching to the
9619 stepping thread. Handle the case of the stepped thread having
9620 advanced already.
9621 (keep_going): Handle the case of the current thread moving past a
9622 single-step breakpoint.
9623
31e77af2
PA
96242014-03-20 Pedro Alves <palves@redhat.com>
9625
9626 PR breakpoints/7143
9627 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9628 are being stepped over.
9629 (breakpoint_address_match): Make extern.
9630 * breakpoint.h (breakpoint_address_match): New declaration.
9631 * inferior.h (stepping_past_instruction_at): New declaration.
9632 * infrun.c (struct step_over_info): New type.
9633 (step_over_info): New global.
9634 (set_step_over_info, clear_step_over_info)
9635 (stepping_past_instruction_at): New functions.
9636 (handle_inferior_event): Clear the step-over info when
9637 trap_expected is cleared.
9638 (resume): Remove now stale comment.
9639 (clear_proceed_status): Clear step-over info.
9640 (proceed): Adjust step-over handling to set or clear the step-over
9641 info instead of removing all breakpoints.
9642 (handle_signal_stop): When setting up a thread-hop, don't remove
9643 breakpoints here.
9644 (stop_stepping): Clear step-over info.
9645 (keep_going): Adjust step-over handling to set or clear step-over
9646 info and then always inserting breakpoints, instead of removing
9647 all breakpoints when stepping over one.
9648
b9f437de
PA
96492014-03-20 Pedro Alves <palves@redhat.com>
9650
9651 * infrun.c (previous_inferior_ptid): Adjust comment.
9652 (deferred_step_ptid): Delete.
9653 (infrun_thread_ptid_changed, prepare_to_proceed)
9654 (init_wait_for_inferior): Adjust.
9655 (handle_signal_stop): Delete deferred_step_ptid handling.
9656
06c868a8
JK
96572014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9658
9659 PR gdb/15358
9660 * defs.h (sync_quit_force_run): New declaration.
9661 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9662 * event-top.c (async_sigterm_handler): New declaration.
9663 (async_sigterm_token): New variable.
9664 (async_init_signals): Create also async_sigterm_token.
9665 (async_sigterm_handler): New function.
9666 (sync_quit_force_run): New variable.
9667 (handle_sigterm): Replace quit_force call by other calls.
9668 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9669
dea80df0
MR
96702014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9671
9672 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9673 offset into SPE pseudo registers.
9674
0c7e1a46
PA
96752014-03-18 Pedro Alves <palves@redhat.com>
9676
9677 PR gdb/13860
9678 * inferior.h (print_stop_event): Declare.
9679 * infrun.c (print_stop_event): New, factored out from ...
9680 (normal_stop): ... this.
9681 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9682 of bpstat_print/print_stack_frame.
9683
9c1fcd01
TT
96842014-03-17 Tom Tromey <tromey@redhat.com>
9685
9686 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9687
11aa919a
PMR
96882014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9689
9690 * ada-lang.c (decode_constrained_packed_array): Perform a
9691 minimal coercion for reference with coerce_ref instead of
9692 ada_coerce_ref.
9693
d4ccb5e0
TG
96942014-03-17 Tristan Gingold <gingold@adacore.com>
9695
9696 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9697 (darwin_solib_create_inferior_hook): Emit a warning if version
9698 is unhandled.
9699
49840f2a
UW
97002014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9701
9702 * python/py-value.c (get_field_flag): Cast flag_name argument to
9703 PyObject_GetAttrString to support Python 2.4.
9704
ed4123e5
JK
97052014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9706
9707 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9708 (Global Maintainers): Remove Jan Kratochvil.
9709
d6b64346
PA
97102014-03-14 Pedro Alves <palves@redhat.com>
9711
9712 * inferior.h (terminal_ours_for_output): Rename to ...
9713 (child_terminal_ours_for_output): ... this.
9714 (terminal_save_ours): Rename to ...
9715 (child_terminal_save_ours): ... this.
9716 (terminal_ours): Rename to ...
9717 (child_terminal_ours): ... this.
9718 (terminal_inferior): Rename to ...
9719 (child_terminal_inferior): ... this.
9720 (terminal_init_inferior): Rename to ...
9721 (child_terminal_init_inferior): ... this.
9722 (terminal_init_inferior_with_pgrp): Rename to ...
9723 (child_terminal_init_inferior_with_pgrp): ... this.
9724 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9725 (child_terminal_init_with_pgrp): ... this.
9726 (terminal_save_ours): Rename to ...
9727 (child_terminal_save_ours): ... this.
9728 (terminal_init_inferior): Rename to ...
9729 (child_terminal_init): ... this. Adjust.
9730 (terminal_inferior): Rename to ...
9731 (child_terminal_inferior): ... this.
9732 (terminal_ours_for_output): Rename to ...
9733 (child_terminal_ours_for_output): ... this. Adjust.
9734 (terminal_ours): Rename to ...
9735 (child_terminal_ours): ... this.
9736 (terminal_ours_1): Rename to ...
9737 (child_terminal_ours_1): ... this. Adjust.
9738 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9739 * windows-nat.c (do_initial_windows_stuff): Adjust.
9740 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9741 (gnu_terminal_init): ... this. Adjust.
9742 (gnu_target): Adjust.
9743 * inf-child.c (inf_child_target): Adjust.
9744
5a1e8c7a
DE
97452014-03-13 Doug Evans <xdje42@gmail.com>
9746
9747 PR guile/16612
9748 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9749 new eq?-hashtab.
9750
350e1a76
DE
97512014-03-13 Doug Evans <xdje42@gmail.com>
9752
9753 * value.c (record_latest_value): Call release_value_or_incref
9754 instead of release_value.
9755
a69900ae
PA
97562014-03-13 Pedro Alves <palves@redhat.com>
9757
9758 * procfs.c (procfs_target): Don't override to_shortname,
9759 to_longname or to_doc.
9760
5db9f0bd
PA
97612014-03-13 Pedro Alves <palves@redhat.com>
9762
9763 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9764 Unix in user visible strings.
9765
5e3a2c38
SS
97662014-03-12 Stan Shebs <stan@codesourcery.com>
9767
9768 * gdbtypes.h: Annotate comments for Doxygen, add a page
9769 block comment with some general info.
9770
8bc2fe48
PA
97712014-03-12 Pedro Alves <palves@redhat.com>
9772
9773 * infcmd.c (prepare_execution_command): New function, factored out
9774 from several execution commands.
9775 (run_command_1, continue_command, step_1, jump_command)
9776 (signal_command, until_command, advance_command, finish_command)
9777 (attach_command): Use prepare_execution_command.
9778
638c5f49
OJ
97792014-03-12 Omair Javaid <omair.javaid@linaro.org>
9780
9781 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9782 (MAX_BPTS): Define.
9783 (MAX_WPTS): Define.
9784 (struct arm_linux_thread_points): Removed.
9785 (struct arm_linux_process_info): New.
9786 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9787 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9788 (arm_linux_find_breakpoints_by_tid): Removed.
9789 (struct arch_lwp_info): New.
9790 (arm_linux_find_process_pid): New functions.
9791 (arm_linux_add_process): New functions.
9792 (arm_linux_process_info_get): New functions.
9793 (arm_linux_forget_process): New function.
9794 (arm_linux_get_debug_reg_state): New function.
9795 (struct update_registers_data): New.
9796 (update_registers_callback): New function.
9797 (arm_linux_insert_hw_breakpoint1): Updated.
9798 (arm_linux_remove_hw_breakpoint1): Updated.
9799 (arm_linux_insert_hw_breakpoint): Updated.
9800 (arm_linux_remove_hw_breakpoint): Updated.
9801 (arm_linux_insert_watchpoint): Updated.
9802 (arm_linux_remove_watchpoint): Updated.
9803 (arm_linux_new_thread): Updated.
9804 (arm_linux_prepare_to_resume): New function.
9805 (arm_linux_new_fork): New function.
9806 (_initialize_arm_linux_nat): Updated.
9807
6d03af93
PA
98082014-03-12 Pedro Alves <palves@redhat.com>
9809
9810 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9811
b3ccfe11
TT
98122014-03-12 Tom Tromey <tromey@redhat.com>
9813
9814 * inf-child.c (return_zero): New function.
9815 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9816 * aix-thread.c (aix_thread_inferior_created): New function.
9817 (aix_thread_attach): Remove.
9818 (init_aix_thread_ops): Don't set to_attach.
9819 (_initialize_aix_thread): Register inferior_created observer.
9820 * corelow.c (init_core_ops): Don't set to_attach or
9821 to_create_inferior.
9822 * exec.c (init_exec_ops): Don't set to_attach or
9823 to_create_inferior.
9824 * infcmd.c (run_command_1): Use find_run_target. Make direct
9825 target calls.
9826 (attach_command): Use find_attach_target. Make direct target
9827 calls.
9828 * record-btrace.c (init_record_btrace_ops): Don't set
9829 to_create_inferior.
9830 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9831 Remove.
9832 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9833 set to_create_inferior.
9834 * target.c (complete_target_initialization): Add assertion.
9835 (target_create_inferior): Remove.
9836 (find_default_attach, find_default_create_inferior): Remove.
9837 (find_attach_target, find_run_target): New functions.
9838 (find_default_is_async_p, find_default_can_async_p)
9839 (target_supports_non_stop, target_attach): Remove.
9840 (init_dummy_target): Don't set to_create_inferior or
9841 to_supports_non_stop.
9842 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9843 TARGET_DEFAULT_FUNC.
9844 <to_create_inferior>: Add comment.
9845 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9846 TARGET_DEFAULT_RETURN.
9847 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9848 (find_attach_target, find_run_target): Declare.
9849 (target_create_inferior): Remove.
9850 (target_has_execution_1): Update comment.
9851 (target_supports_non_stop): Remove.
9852 * target-delegates.c: Rebuild.
9853
91f83b02
PA
98542014-03-12 Pedro Alves <palves@redhat.com>
9855
9856 * inf-child.h: Update comment to not mention Unix.
9857
f1aea813
PA
98582014-03-12 Pedro Alves <palves@redhat.com>
9859
9860 * inf-child.c: Update top comment to not mention Unix. Add
9861 generic comment describing how this target is meant to be used.
9862 (inf_child_post_attach, inf_child_post_startup_inferior)
9863 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9864 Unix in comment.
9865
ee8e9165
PA
98662014-03-12 Pedro Alves <palves@redhat.com>
9867
9868 * nto-procfs.c: Include inf-child.h.
9869 (procfs_ops): Delete global.
9870 (procfs_can_run): Delete method.
9871 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9872 target pointer instead of referencing procfs_ops.
9873 (procfs_prepare_to_store): Delete.
9874 (init_procfs_ops): Delete function.
9875 (procfs_target): New function, based on init_procfs_ops, but
9876 inherit inf_child_target.
9877 (_initialize_procfs): Use procfs_target.
9878
51a9c8c5
PA
98792014-03-12 Pedro Alves <palves@redhat.com>
9880
9881 * windows-nat.c: Include inf-child.h.
9882 (windows_ops): Delete global.
9883 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9884 methods.
9885 (init_windows_ops): Delete function.
9886 (windows_target): New function, based on init_windows_ops, but
9887 inherit inf_child_target.
9888 (_initialize_windows_nat): Use windows_target. Install x86
9889 specific target methods here.
9890
c1966e26
DE
98912014-03-10 Doug Evans <xdje42@gmail.com>
9892
9893 * guile/guile.c (call_initialize_gdb_module): New function.
9894 (initialize_guile): Replace call to scm_init_guile with call to
9895 scm_with_guile.
9896
023db19c
JB
98972014-03-10 Joel Brobecker <brobecker@adacore.com>
9898
9899 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9900 in call to TYPE_CODE macro.
9901
5ec18f2b
JG
99022014-03-10 Jerome Guitton <guitton@adacore.com>
9903
8668be63
JB
9904 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9905 Resolve tagged types to full view.
5ec18f2b 9906
7d03f2eb
HZ
99072014-03-10 Hui Zhu <hui@codesourcery.com>
9908
9909 * target.h (target_insert_breakpoint): Remove "hardware" from its
9910 comments.
9911
c5164cbc
DE
99122014-03-07 Doug Evans <dje@google.com>
9913
9914 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9915
c4a3fee2
DE
99162014-03-07 Doug Evans <dje@google.com>
9917
9918 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9919 Remove unused local comp_dir_attr. Assert exactly one of
9920 stub_comp_unit_die, stub_comp_dir is non-NULL.
9921
3156469c
JB
99222014-03-07 Joel Brobecker <brobecker@adacore.com>
9923
9924 * target.h (complete_target_initialization, add_target):
9925 Add comment.
9926
c1a7b7c6
PA
99272014-03-07 Pedro Alves <palves@redhat.com>
9928
9929 * go32-nat.c: Include inf-child.h.
9930 (go32_ops): Delete global.
9931 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9932 Delete methods.
9933 (go32_create_inferior): Push the passed in target pointer instead
9934 of referencing go32_ops.
9935 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9936 (go32_target): New function, based on init_go32_ops, but inherit
9937 inf_child_target.
9938 (_initialize_go32_nat): Use go32_target. Move parts of
9939 init_go32_ops here.
9940
d3c1a85f
JB
99412014-03-06 Joel Brobecker <brobecker@adacore.com>
9942
9943 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9944 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9945 SYMBOL_VALUE_ADDRESS.
9946 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9947
5fa1d40e
YQ
99482014-03-06 Yao Qi <yao@codesourcery.com>
9949
9950 * breakpoint.c (get_tracepoint_by_number): Remove argument
9951 optional_p. All callers updated. Adjust comments. Update
9952 output message.
9953 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9954
0c13193f
YQ
99552014-03-06 Yao Qi <yao@codesourcery.com>
9956
9957 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9958 early if get_number returns zero. Use 'p' instead of 'args'.
9959
2217da06
YQ
99602014-03-06 Yao Qi <yao@codesourcery.com>
9961
9962 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9963 message.
9964
cc3da688
YQ
99652014-03-06 Yao Qi <yao@codesourcery.com>
9966
9967 PR breakpoints/16508
9968 * tracepoint.c (check_trace_running): New function.
9969 (trace_find_command): Move code to check_trace_running and
9970 call check_trace_running.
9971 (trace_find_pc_command): Likewise.
9972 (trace_find_tracepoint_command): Likewise.
9973 (trace_find_line_command): Likewise.
9974 (trace_find_range_command): Likewise.
9975 * tracepoint.h (check_trace_running): Likewise.
9976 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9977
6a5f844b
YQ
99782014-03-06 Yao Qi <yao@codesourcery.com>
9979
9980 * target.h (struct target_ops) <to_traceframe_info>: Use
9981 TARGET_DEFAULT_NORETURN (tcomplain ()).
9982 * target-delegates.c: Regenerated.
9983
0f26cec1
PA
99842014-03-05 Pedro Alves <palves@redhat.com>
9985
9986 PR gdb/16575
9987 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9988 void. Update comment.
9989 (dcache_xfer_memory): Delete.
9990 (dcache_read_memory_partial): New, based on the read bits of
9991 dcache_xfer_memory.
9992 (dcache_update): Add status parameter. Use ULONGEST for len, and
9993 adjust. Discard cache lines if the reason for the update was
9994 error.
9995 * dcache.h (dcache_xfer_memory): Delete declaration.
9996 (dcache_read_memory_partial): New declaration.
9997 (dcache_update): Update prototype.
9998 * target.c (raw_memory_xfer_partial): Update the dcache here.
9999 (memory_xfer_partial_1): Don't handle dcache writes here.
10000
b2b255bd
MF
100012014-03-05 Mike Frysinger <vapier@gentoo.org>
10002
10003 * remote-sim.c (gdbsim_load): Add const to prog.
10004
5d9cf8a4
TT
100052014-03-03 Tom Tromey <tromey@redhat.com>
10006
10007 * elfread.c (probe_key): Change to bfd_data.
10008 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10009 now per-BFD, not per-objfile.
10010 * stap-probe.c (stap_probe_destroy): Update comment.
10011 (handle_stap_probe): Allocate on the per-BFD obstack.
10012
729662a5
TT
100132014-03-03 Tom Tromey <tromey@redhat.com>
10014
10015 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10016 * breakpoint.c (create_longjmp_master_breakpoint): Use
10017 get_probe_address.
10018 (add_location_to_breakpoint, bkpt_probe_insert_location)
10019 (bkpt_probe_remove_location): Update.
10020 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10021 * elfread.c (elf_symfile_relocate_probe): Remove.
10022 (elf_probe_fns): Update.
10023 (insert_exception_resume_breakpoint): Change type of "probe"
10024 parameter to bound_probe.
10025 (check_exception_resume): Update.
10026 * objfiles.c (objfile_relocate1): Don't relocate probes.
10027 * probe.c (bound_probe_s): New typedef.
10028 (parse_probes): Use get_probe_address. Set sal's objfile.
10029 (find_probe_by_pc): Return a bound_probe.
10030 (collect_probes): Return a VEC(bound_probe_s).
10031 (compare_probes): Update.
10032 (gen_ui_out_table_header_info): Change type of "probes"
10033 parameter. Update.
10034 (info_probes_for_ops): Update.
10035 (get_probe_address): New function.
10036 (probe_safe_evaluate_at_pc): Update.
10037 * probe.h (struct probe_ops) <get_probe_address>: New field.
10038 <set_semaphore, clear_semaphore>: Add objfile parameter.
10039 (struct probe) <objfile>: Remove field.
10040 <arch>: New field.
10041 <address>: Update comment.
10042 (struct bound_probe): New.
10043 (find_probe_by_pc): Return a bound_probe.
10044 (get_probe_address): Declare.
10045 * solib-svr4.c (struct probe_and_action) <address>: New field.
10046 (hash_probe_and_action, equal_probe_and_action): Update.
10047 (register_solib_event_probe): Add address parameter.
10048 (solib_event_probe_at): Update.
10049 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10050 get_probe_address.
10051 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10052 (stap_get_probe_address): New function.
10053 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10054 (compile_probe_arg): Update.
10055 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10056 address.
10057 (handle_stap_probe): Don't relocate the probe.
10058 (stap_relocate): Remove.
10059 (stap_gen_info_probes_table_values): Update.
10060 (stap_probe_ops): Remove stap_relocate.
10061 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10062 (debug_sym_probe_fns): Update.
10063 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10064 * symtab.c (init_sal): Use memset.
10065 * symtab.h (struct symtab_and_line) <objfile>: New field.
10066 * tracepoint.c (start_tracing, stop_tracing): Update.
10067
ff887920
TT
100682014-03-03 Tom Tromey <tromey@redhat.com>
10069
10070 * probe.h (parse_probes, find_probe_by_pc)
10071 (find_probes_in_objfile): Fix comments.
10072
f0407826
DE
100732014-03-02 Doug Evans <xdje42@gmail.com>
10074
10075 * infrun.c (handle_signal_stop): Replace test for
10076 TARGET_WAITKIND_STOPPED with an assert.
10077
35e6a711
DE
100782014-03-02 Doug Evans <xdje42@gmail.com>
10079
10080 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10081
667f9d0b
DE
100822014-03-02 Doug Evans <xdje42@gmail.com>
10083
10084 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10085
dc92ace0
MK
100862014-03-01 Mark Kettenis <kettenis@gnu.org>
10087
10088 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10089
a900370f
MK
100902014-03-01 Mark Kettenis <kettenis@gnu.org>
10091
10092 * i386obsd-nat.c: Include "obsd-nat.h".
10093 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10094 add_target.
10095 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10096
b72a7981
MK
100972014-03-01 Mark Kettenis <kettenis@gnu.org>
10098
10099 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10100
96c70aba
MK
101012014-03-01 Mark Kettenis <kettenis@gnu.org>
10102
10103 * mips64obsd-nat.c: Include "obsd-nath".
10104 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10105 add_target
10106 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10107
874a80af
MK
101082014-03-01 Mark Kettenis <kettenis@gnu.org>
10109
8fd408f1
MK
10110 * amd64obsd-nat.c: Include "obsd-nat,h.
10111 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10112 add_target.
874a80af
MK
10113 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10114
9cf95373
SC
101152014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10116
10117 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10118 (find_overload_match): Update call to find_oload_champ.
10119 (find_oload_champ_namespace_loop): Likewise
10120
863e4da4
MK
101212014-02-28 Mark Kettenis <kettenis@gnu.org>
10122
025cac40
MK
10123 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10124
1ed586ce
MK
10125 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10126 * config/sparc/obsd64.mh: New file.
10127 * sparc64obsd-nat.c: New file.
10128
863e4da4
MK
10129 * obsd-nat.h: New file.
10130 * obsd-nat.c: New file.
10131 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10132 (ALLDEPFILES): Add obsd-nat.c.
10133
89de4da4
TT
101342014-02-28 Tom Tromey <tromey@redhat.com>
10135
10136 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10137 * cli-out.h (cli_ui_out_impl): Now const.
10138 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10139 * ui-out.c (struct ui_out) <impl>: Now const.
10140 (default_ui_out_impl): Now const.
10141 (ui_out_new): Make 'impl' parameter const.
10142 * ui-out.h (ui_out_new): Update.
10143
c725e7b6
MK
101442014-02-27 Mark Kettenis <kettenis@gnu.org>
10145
10146 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10147
670b46b3
MK
101482014-02-27 Mark Kettenis <kettenis@gnu.org>
10149
10150 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10151
c91550fc
JK
101522014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10153
10154 Additional PR 8882 fix.
10155 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10156
2fa0369e
PA
101572014-02-27 Pedro Alves <palves@redhat.com>
10158
10159 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10160 isn't set.
10161
d632a097
PA
101622014-02-27 Pedro Alves <palves@redhat.com>
10163
10164 PR 12702
10165 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10166 * nat/linux-waitpid.c: Include string.h.
10167 (status_to_str): Moved here and made extern.
10168 * nat/linux-waitpid.h (status_to_str): New declaration.
10169
2ebd5a35
HZ
101702014-02-27 Hui Zhu <hui@codesourcery.com>
10171
10172 PR 12702
10173 * infrun.c (ptid_match): Move ...
10174 * common/ptid.c (ptid_match): ... here.
10175 * inferior.h (ptid_match): Move ...
10176 * common/ptid.h (ptid_match): ... here.
10177
3cdd631f
MK
101782014-02-27 Mark Kettenis <kettenis@gnu.org>
10179
10180 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10181 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10182 gdb_target_obs.
10183
bee30a64
MK
101842014-02-27 Mark Kettenis <kettenis@gnu.org>
10185
10186 * obsd-tdep.c (obsd_auxv_parse): New function.
10187 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10188
10189 * gdbarch.sh (auxv_parse): New.
10190 * gdbarch.h: Regenerated.
10191 * gdbarch.c: Regenerated.
10192 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10193
7a5a839f
LC
101942014-02-26 Ludovic Courtès <ludo@gnu.org>
10195
10196 * guile/scm-value.c (gdbscm_history_append_x): New function.
10197 (value_functions): Add it.
10198
31aa7e4e
JB
101992014-02-27 Joel Brobecker <brobecker@adacore.com>
10200
10201 * dwarf2read.c (attr_value_as_address): New function.
10202 (dwarf2_find_base_address, read_call_site_scope): Use
10203 attr_value_as_address in place of DW_ADDR.
10204 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10205 the low and high addresses. Slight rework of the handling
10206 of the high pc being a constant form, and limit it to
10207 DWARF verson 4 or higher.
10208 (dwarf2_record_block_ranges): Likewise.
10209 (read_partial_die): Likewise.
10210 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10211
9b333ba3
TT
102122014-02-26 Tom Tromey <tromey@redhat.com>
10213
10214 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10215
5f6cac40
TT
102162014-02-26 Tom Tromey <tromey@redhat.com>
10217
10218 * elfread.c (elf_read_minimal_symbols): Return early if
10219 minimal symbols have already been read. Add "ei" parameter.
10220 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10221 * minsyms.c (prim_record_minimal_symbol_full): Update.
10222 * objfiles.h (struct objstats) <n_minsyms>: Move...
10223 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10224 * symmisc.c (print_objfile_statistics): Update.
10225
2750ef27
TT
102262014-02-26 Tom Tromey <tromey@redhat.com>
10227
10228 * elfread.c (elf_read_minimal_symbols): New function, from
10229 elf_symfile_read.
10230 (elf_symfile_read): Call it.
10231
34643a32
TT
102322014-02-26 Tom Tromey <tromey@redhat.com>
10233
10234 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10235 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10236 (lookup_minimal_symbol_solib_trampoline)
10237 (lookup_minimal_symbol_by_pc_section_1)
10238 (lookup_minimal_symbol_and_objfile): Update.
10239 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10240 Don't allocate a minimal symbol if minsyms have already been read.
10241 (build_minimal_symbol_hash_tables): Update.
10242 (install_minimal_symbols): Do nothing if minsyms already read.
10243 Use the per-BFD obstack.
10244 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10245 * objfiles.c (allocate_objfile): Call
10246 terminate_minimal_symbol_table later.
10247 (have_minimal_symbols): Update.
10248 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10249 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10250 Move from struct objfile.
10251 <minsyms_read>: New field.
10252 (struct objfile) <msymbols, minimal_symbol_count,
10253 msymbol_hash, msymbol_demangled_hash>: Move.
10254 (ALL_OBJFILE_MSYMBOLS): Update.
10255 * symfile.c (read_symbols): Set minsyms_read.
10256 (reread_symbols): Update.
10257 * symmisc.c (dump_objfile, dump_msymbols): Update.
10258
2273f0ac
TT
102592014-02-26 Tom Tromey <tromey@redhat.com>
10260
10261 * minsyms.c (msymbols_sort): Remove.
10262 * minsyms.h (msymbols_sort): Remove.
10263 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10264 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10265 * elfread.c (elf_symtab_read): Don't add section offsets.
10266 * xcoffread.c (record_minimal_symbol): Don't add section offset
10267 to minimal symbol address.
10268 * somread.c (text_offset, data_offset): Remove.
10269 (som_symtab_read): Don't add section offsets to minimal symbol
10270 addresses.
10271 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10272 Don't add section offsets to minimal symbols.
10273 * coffread.c (coff_symtab_read): Don't add section offsets
10274 to minimal symbol addresses.
10275 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10276 to minimal symbol addresses.
10277 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10278 section offset to minimal symbol addresses.
10279 * mdebugread.c (parse_partial_symbols): Don't add section
10280 offset to minimal symbol addresses.
10281 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10282 offset to minimal symbol addresses.
10283
77e371c0
TT
102842014-02-26 Tom Tromey <tromey@redhat.com>
10285
10286 * ada-lang.c (ada_main_name): Update.
10287 (ada_add_standard_exceptions): Update.
10288 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10289 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10290 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10291 * auxv.c (ld_so_xfer_auxv): Update.
10292 * avr-tdep.c (avr_scan_prologue): Update.
10293 * ax-gdb.c (gen_var_ref): Update.
10294 * blockframe.c (get_pc_function_start)
10295 (find_pc_partial_function_gnu_ifunc): Update.
10296 * breakpoint.c (create_overlay_event_breakpoint)
10297 (create_longjmp_master_breakpoint)
10298 (create_std_terminate_master_breakpoint)
10299 (create_exception_master_breakpoint): Update.
10300 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10301 * c-valprint.c (c_val_print): Update.
10302 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10303 * common/agent.c (agent_look_up_symbols): Update.
10304 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10305 * dwarf2loc.c (call_site_to_target_addr): Update.
10306 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10307 * elfread.c (elf_gnu_ifunc_record_cache)
10308 (elf_gnu_ifunc_resolve_by_got): Update.
10309 * findvar.c (default_read_var_value): Update.
10310 * frame.c (inside_main_func): Update.
10311 * frv-tdep.c (frv_frame_this_id): Update.
10312 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10313 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10314 Update.
10315 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10316 (hppa_hpux_find_dummy_bpaddr): Update.
10317 * hppa-tdep.c (hppa_symbol_address): Update.
10318 * infcmd.c (until_next_command): Update.
10319 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10320 Update.
10321 * linespec.c (minsym_found, add_minsym): Update.
10322 * linux-nat.c (get_signo): Update.
10323 * linux-thread-db.c (inferior_has_bug): Update.
10324 * m32c-tdep.c (m32c_return_value)
10325 (m32c_m16c_address_to_pointer): Update.
10326 * m32r-tdep.c (m32r_frame_this_id): Update.
10327 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10328 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10329 * maint.c (maintenance_translate_address): Update.
10330 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10331 (frob_address): New function.
10332 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10333 frob_address. Rename parameter to "pc_in".
10334 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10335 addresses.
10336 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10337 Update.
10338 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10339 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10340 * objc-lang.c (find_objc_msgsend): Update.
10341 * objfiles.c (objfile_relocate1): Update.
10342 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10343 * p-valprint.c (pascal_val_print): Update.
10344 * parse.c (write_exp_msymbol): Update.
10345 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10346 (ppc_elfv2_skip_entrypoint): Update.
10347 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10348 * printcmd.c (build_address_symbolic, msym_info)
10349 (address_info): Update.
10350 * proc-service.c (ps_pglobal_lookup): Update.
10351 * psymtab.c (find_pc_sect_psymtab_closer)
10352 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10353 Change msymbol parameter to bound_minimal_symbol.
10354 * ravenscar-thread.c (get_running_thread_id): Update.
10355 * remote.c (remote_check_symbols): Update.
10356 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10357 address.
10358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10359 * solib-dsbt.c (lm_base): Update.
10360 * solib-frv.c (lm_base, main_got): Update.
10361 * solib-irix.c (locate_base): Update.
10362 * solib-som.c (som_solib_create_inferior_hook)
10363 (link_map_start): Update.
10364 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10365 * solib-svr4.c (elf_locate_base, enable_break): Update.
10366 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10367 (flush_ea_cache): Update.
10368 * stabsread.c (define_symbol, scan_file_globals): Update.
10369 * stack.c (find_frame_funname): Update.
10370 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10371 (debug_qf_find_pc_sect_symtab): Update.
10372 * symfile.c (simple_read_overlay_table)
10373 (simple_overlay_update): Update.
10374 * symfile.h (struct quick_symbol_functions)
10375 <find_pc_sect_symtab>: Change type of msymbol to
10376 bound_minimal_symbol.
10377 * symmisc.c (dump_msymbols): Update.
10378 * symtab.c (find_pc_sect_symtab_via_partial)
10379 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10380 (search_symbols, print_msymbol_info): Update.
10381 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10382 (MSYMBOL_VALUE_ADDRESS): Redefine.
10383 (BMSYMBOL_VALUE_ADDRESS): New macro.
10384 * tracepoint.c (scope_info): Update.
10385 * tui/tui-disasm.c (tui_find_disassembly_address)
10386 (tui_get_begin_asm_address): Update.
10387 * valops.c (find_function_in_inferior): Update.
10388 * value.c (value_static_field, value_fn_field): Update.
10389
3b7344d5
TT
103902014-02-26 Tom Tromey <tromey@redhat.com>
10391
10392 * ada-lang.c (ada_update_initial_language): Update.
10393 (ada_main_name, ada_has_this_exception_support): Update.
10394 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10395 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10396 * arm-tdep.c (arm_skip_stub): Update.
10397 * auxv.c (ld_so_xfer_auxv): Update.
10398 * avr-tdep.c (avr_scan_prologue): Update.
10399 * ax-gdb.c (gen_var_ref): Update.
10400 * breakpoint.c (struct breakpoint_objfile_data)
10401 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10402 type to bound_minimal_symbol.
10403 (create_overlay_event_breakpoint)
10404 (create_longjmp_master_breakpoint)
10405 (create_std_terminate_master_breakpoint)
10406 (create_exception_master_breakpoint): Update.
10407 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10408 * c-exp.y (classify_name): Update.
10409 * coffread.c (coff_symfile_read): Update.
10410 * common/agent.c (agent_look_up_symbols): Update.
10411 * d-lang.c (d_main_name): Update.
10412 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10413 * dec-thread.c (enable_dec_thread): Update.
10414 * dwarf2loc.c (call_site_to_target_addr): Update.
10415 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10416 * eval.c (evaluate_subexp_standard): Update.
10417 * findvar.c (struct minsym_lookup_data) <result>: Change type
10418 to bound_minimal_symbol.
10419 <objfile>: Remove.
10420 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10421 * frame.c (inside_main_func): Update.
10422 * frv-tdep.c (frv_frame_this_id): Update.
10423 * gcore.c (call_target_sbrk): Update.
10424 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10425 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10426 Update.
10427 * go-lang.c (go_main_name): Update.
10428 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10429 (hppa_hpux_find_import_stub_for_addr): Update.
10430 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10431 Update. Change return type.
10432 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10433 type.
10434 * jit.c (jit_breakpoint_re_set_internal): Update.
10435 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10436 Update.
10437 * linux-nat.c (get_signo): Update.
10438 * linux-thread-db.c (inferior_has_bug): Update
10439 * m32c-tdep.c (m32c_return_value)
10440 (m32c_m16c_address_to_pointer): Update.
10441 * m32r-tdep.c (m32r_frame_this_id): Update.
10442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10444 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10445 lookup_minimal_symbol. Change return type.
10446 (lookup_minimal_symbol): Remove.
10447 (lookup_bound_minimal_symbol): Update.
10448 (lookup_minimal_symbol_text): Change return type.
10449 (lookup_minimal_symbol_solib_trampoline): Change return type.
10450 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10451 (lookup_minimal_symbol_solib_trampoline): Change return type.
10452 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10453 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10454 (value_nsstring, find_imps): Update.
10455 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10456 * p-lang.c (pascal_main_name): Update.
10457 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10458 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10459 * proc-service.c (ps_pglobal_lookup): Update.
10460 * ravenscar-thread.c (get_running_thread_msymbol): Change
10461 return type.
10462 (has_ravenscar_runtime, get_running_thread_id): Update.
10463 * remote.c (remote_check_symbols): Update.
10464 * sol-thread.c (ps_pglobal_lookup): Update.
10465 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10466 * solib-dsbt.c (lm_base): Update.
10467 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10468 Update.
10469 * solib-irix.c (locate_base): Update.
10470 * solib-som.c (som_solib_create_inferior_hook)
10471 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10472 Update.
10473 * solib-spu.c (spu_enable_break): Update.
10474 * solib-svr4.c (elf_locate_base, enable_break): Update.
10475 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10476 (flush_ea_cache): Update.
10477 * stabsread.c (define_symbol): Update.
10478 * symfile.c (simple_read_overlay_table): Update.
10479 * symtab.c (find_pc_sect_line): Update.
10480 * tracepoint.c (scope_info): Update.
10481 * tui-disasm.c (tui_get_begin_asm_address): Update.
10482 * value.c (value_static_field): Update.
10483
40c1a007
TT
104842014-02-26 Tom Tromey <tromey@redhat.com>
10485
10486 * minsyms.c (prim_record_minimal_symbol_full): Use
10487 SET_MSYMBOL_VALUE_ADDRESS.
10488 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10489 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10490 SET_MSYMBOL_VALUE_ADDRESS.
10491 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10492 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10493
efd66ac6
TT
104942014-02-26 Tom Tromey <tromey@redhat.com>
10495
10496 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10497 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10498 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10499 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10500 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10501 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10502 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10503 * ada-lang.c (ada_main_name): Update.
10504 (ada_lookup_simple_minsym): Update.
10505 (ada_make_symbol_completion_list): Update.
10506 (ada_add_standard_exceptions): Update.
10507 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10508 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10509 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10510 * arm-tdep.c (skip_prologue_function): Update.
10511 (arm_skip_stack_protector, arm_skip_stub): Update.
10512 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10513 (arm_wince_skip_main_prologue): Update.
10514 * auxv.c (ld_so_xfer_auxv): Update.
10515 * avr-tdep.c (avr_scan_prologue): Update.
10516 * ax-gdb.c (gen_var_ref): Update.
10517 * block.c (call_site_for_pc): Update.
10518 * blockframe.c (get_pc_function_start): Update.
10519 (find_pc_partial_function_gnu_ifunc): Update.
10520 * breakpoint.c (create_overlay_event_breakpoint): Update.
10521 (create_longjmp_master_breakpoint): Update.
10522 (create_std_terminate_master_breakpoint): Update.
10523 (create_exception_master_breakpoint): Update.
10524 (resolve_sal_pc): Update.
10525 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10526 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10527 Update.
10528 * c-valprint.c (c_val_print): Update.
10529 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10530 * coffread.c (coff_symfile_read): Update.
10531 * common/agent.c (agent_look_up_symbols): Update.
10532 * dbxread.c (find_stab_function_addr): Update.
10533 (end_psymtab): Update.
10534 * dwarf2loc.c (call_site_to_target_addr): Update.
10535 (func_verify_no_selftailcall): Update.
10536 (tailcall_dump): Update.
10537 (call_site_find_chain_1): Update.
10538 (dwarf_expr_reg_to_entry_parameter): Update.
10539 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10540 (elf_gnu_ifunc_resolve_by_got): Update.
10541 * f-valprint.c (info_common_command): Update.
10542 * findvar.c (read_var_value): Update.
10543 * frame.c (get_prev_frame_1): Update.
10544 (inside_main_func): Update.
10545 * frv-tdep.c (frv_skip_main_prologue): Update.
10546 (frv_frame_this_id): Update.
10547 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10548 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10549 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10550 (gnuv3_skip_trampoline): Update.
10551 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10552 (hppa64_hpux_in_solib_call_trampoline): Update.
10553 (hppa_hpux_skip_trampoline_code): Update.
10554 (hppa64_hpux_search_dummy_call_sequence): Update.
10555 (hppa_hpux_find_import_stub_for_addr): Update.
10556 (hppa_hpux_find_dummy_bpaddr): Update.
10557 * hppa-tdep.c (hppa_symbol_address)
10558 (hppa_lookup_stub_minimal_symbol): Update.
10559 * i386-tdep.c (i386_skip_main_prologue): Update.
10560 (i386_pe_skip_trampoline_code): Update.
10561 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10562 * infcall.c (get_function_name): Update.
10563 * infcmd.c (until_next_command): Update.
10564 * jit.c (jit_breakpoint_re_set_internal): Update.
10565 (jit_inferior_init): Update.
10566 * linespec.c (minsym_found): Update.
10567 (add_minsym): Update.
10568 * linux-fork.c (info_checkpoints_command): Update.
10569 * linux-nat.c (get_signo): Update.
10570 * linux-thread-db.c (inferior_has_bug): Update.
10571 * m32c-tdep.c (m32c_return_value): Update.
10572 (m32c_m16c_address_to_pointer): Update.
10573 (m32c_m16c_pointer_to_address): Update.
10574 * m32r-tdep.c (m32r_frame_this_id): Update.
10575 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10576 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10577 * maint.c (maintenance_translate_address): Update.
10578 * minsyms.c (add_minsym_to_hash_table): Update.
10579 (add_minsym_to_demangled_hash_table): Update.
10580 (msymbol_objfile): Update.
10581 (lookup_minimal_symbol): Update.
10582 (iterate_over_minimal_symbols): Update.
10583 (lookup_minimal_symbol_text): Update.
10584 (lookup_minimal_symbol_by_pc_name): Update.
10585 (lookup_minimal_symbol_solib_trampoline): Update.
10586 (lookup_minimal_symbol_by_pc_section_1): Update.
10587 (lookup_minimal_symbol_and_objfile): Update.
10588 (prim_record_minimal_symbol_full): Update.
10589 (compare_minimal_symbols): Update.
10590 (compact_minimal_symbols): Update.
10591 (build_minimal_symbol_hash_tables): Update.
10592 (install_minimal_symbols): Update.
10593 (terminate_minimal_symbol_table): Update.
10594 (find_solib_trampoline_target): Update.
10595 (minimal_symbol_upper_bound): Update.
10596 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10597 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10598 (mips_skip_pic_trampoline_code): Update.
10599 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10600 * objc-lang.c (selectors_info): Update.
10601 (classes_info): Update.
10602 (find_methods): Update.
10603 (find_imps): Update.
10604 (find_objc_msgsend): Update.
10605 * objfiles.c (objfile_relocate1): Update.
10606 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10607 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10608 * p-valprint.c (pascal_val_print): Update.
10609 * parse.c (write_exp_msymbol): Update.
10610 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10611 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10612 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10613 * printcmd.c (build_address_symbolic): Update.
10614 (sym_info): Update.
10615 (address_info): Update.
10616 * proc-service.c (ps_pglobal_lookup): Update.
10617 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10618 (find_pc_sect_psymtab): Update.
10619 * python/py-framefilter.c (py_print_frame): Update.
10620 * ravenscar-thread.c (get_running_thread_id): Update.
10621 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10622 Update.
10623 * remote.c (remote_check_symbols): Update.
10624 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10625 (rs6000_skip_trampoline_code): Update.
10626 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10627 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10628 * solib-dsbt.c (lm_base): Update.
10629 * solib-frv.c (lm_base): Update.
10630 (main_got): Update.
10631 * solib-irix.c (locate_base): Update.
10632 * solib-som.c (som_solib_create_inferior_hook): Update.
10633 (som_solib_desire_dynamic_linker_symbols): Update.
10634 (link_map_start): Update.
10635 * solib-spu.c (spu_enable_break): Update.
10636 (ocl_enable_break): Update.
10637 * solib-svr4.c (elf_locate_base): Update.
10638 (enable_break): Update.
10639 * spu-tdep.c (spu_get_overlay_table): Update.
10640 (spu_catch_start): Update.
10641 (flush_ea_cache): Update.
10642 * stabsread.c (define_symbol): Update.
10643 (scan_file_globals): Update.
10644 * stack.c (find_frame_funname): Update.
10645 (frame_info): Update.
10646 * symfile.c (simple_read_overlay_table): Update.
10647 (simple_overlay_update): Update.
10648 * symmisc.c (dump_msymbols): Update.
10649 * symtab.c (fixup_section): Update.
10650 (find_pc_sect_line): Update.
10651 (skip_prologue_sal): Update.
10652 (search_symbols): Update.
10653 (print_msymbol_info): Update.
10654 (rbreak_command): Update.
10655 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10656 (completion_list_objc_symbol): Update.
10657 (default_make_symbol_completion_list_break_on): Update.
10658 * tracepoint.c (scope_info): Update.
10659 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10660 (tui_get_begin_asm_address): Update.
10661 * valops.c (find_function_in_inferior): Update.
10662 * value.c (value_static_field): Update.
10663 (value_fn_field): Update.
10664
50e65b17
TT
106652014-02-26 Tom Tromey <tromey@redhat.com>
10666
10667 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10668 bound minimal symbols. Move code that knows about minsym
10669 table layout...
10670 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10671 function.
10672 * minsyms.h (minimal_symbol_upper_bound): Declare.
10673 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10674 minimal_symbol_upper_bound.
10675
1b588015
JB
106762014-02-27 Joel Brobecker <brobecker@adacore.com>
10677
10678 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10679 Use the type's name if its basic type does not have a tag.
10680
dbb9c2b1
JB
106812014-02-27 Joel Brobecker <brobecker@adacore.com>
10682
10683 * dwarf2read.c (read_subrange_type): Add comment.
10684
55426c9d
JB
106852014-02-27 Joel Brobecker <brobecker@adacore.com>
10686
10687 * dwarf2read.c (update_enumeration_type_from_children): New
10688 function, mostly extracted from process_structure_scope.
10689 (read_enumeration_type): Call update_enumeration_type_from_children.
10690 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10691 and flag_flag_enum fields.
10692
f2fce0ca
PA
106932014-02-26 Pedro Alves <palves@redhat.com>
10694
10695 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10696 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10697 to_xfer_partial method.
10698
7a44e40e
PA
106992014-02-26 Pedro Alves <palves@redhat.com>
10700
10701 * target.c (complete_target_initialization): Don't install
10702 default_xfer_partial as to_xfer_partial hook.
10703 (nomemory): Delete.
10704 (update_current_target): Don't INHERIT nor de_fault
10705 deprecated_xfer_memory. Delete de_fault macro.
10706 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10707 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10708 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10709 field.
10710
bd265cd0
PA
107112014-02-26 Pedro Alves <palves@redhat.com>
10712
10713 * go32-nat.c (my_write_child): New function.
10714 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10715 (go32_xfer_partial): New function.
10716 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10717 Instead install a to_xfer_partial hook.
10718
9d46c4e5
PA
107192014-02-26 Pedro Alves <palves@redhat.com>
10720
10721 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10722 to_xfer_partial helper. Rewrite.
10723 (procfs_xfer_partial): New function.
10724 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10725 Install a to_xfer_partial hook.
10726
a1583b1f
PA
107272014-02-26 Pedro Alves <palves@redhat.com>
10728
10729 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10730 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10731 (m32r_xfer_partial): New function.
10732 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10733 Install a to_xfer_partial hook.
10734
6df1b29f
PA
107352014-02-26 Pedro Alves <palves@redhat.com>
10736
10737 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10738 helper.
10739 (mips_xfer_partial): New function.
10740 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10741 hook. Install a to_xfer_partial hook.
10742
dc53a7ad
JB
107432014-02-26 Joel Brobecker <brobecker@adacore.com>
10744
10745 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10746 * gdbtypes.c (create_array_type_with_stride): New function,
10747 renaming create_array_type, but with an added parameter
10748 called "bit_stride".
10749 (create_array_type): Re-implement using
10750 create_array_type_with_stride.
10751 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10752 and DW_AT_bit_stride attributes.
10753
12ab52e9
PA
107542014-02-26 Pedro Alves <palves@redhat.com>
10755
10756 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10757 task-specific breakpoints.
10758
d16461ae
PA
107592014-02-25 Pedro Alves <palves@redhat.com>
10760
10761 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10762 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10763
a8b16220
SS
107642014-02-25 Stan Shebs <stan@codesourcery.com>
10765
10766 * defs.h: Annotate comments for Doxygen.
10767
b9e795ee
TT
107682014-02-25 Tom Tromey <tromey@redhat.com>
10769
10770 * target.h (target_ignore): Don't declare.
10771 * target.c (target_ignore): Remove.
10772
849c862e
JK
107732014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 PR gdb/16626
10776 * auto-load.c (auto_load_objfile_script_1): Change filename to
10777 debugfile.
10778
475109d8
JB
107792014-02-25 Joel Brobecker <brobecker@adacore.com>
10780
10781 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10782 documentation. Adjust prototype to match the target_ops
10783 to_xfer_partial method. Adjust implementation accordingly.
10784
e186c3bd
HZ
107852014-02-25 Hui Zhu <hui@codesourcery.com>
10786
10787 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10788 to_traceframe_info.
10789
6d451942
KB
107902014-02-25 Kevin Buettner <kevinb@redhat.com>
10791
041ab8b4 10792 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10793 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10794 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10795 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10796 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10797 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10798 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10799 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10800 New constants.
10801 (rl78_register_type): Use a data pointer type for SP and
10802 new pseudo registers mentioned above. Use a 16 bit integer
10803 type for all other register pairs.
10804 (rl78_register_name, rl78_g10_register_name): Update for
10805 new pseudo registers.
10806 (rl78_pseudo_register_read): Likewise.
10807 (rl78_pseudo_register_write): Likewise.
10808 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10809 to the newly added pseudo registers.
10810
eddf0bae
DE
108112014-02-24 Doug Evans <dje@google.com>
10812
10813 * value.c (record_latest_value): Fix comment.
10814 * printcmd.c (print_command_1): Remove code to handle -1 return from
10815 record_latest_value.
10816
e96027e0
PA
108172014-02-24 Pedro Alves <palves@redhat.com>
10818
10819 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10820 deprecated_xfer_memory hook.
10821 (procfs_xfer_partial): Call procfs_xfer_memory instead
10822 of the deprecated_xfer_memory target hook.
10823 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10824 helper.
10825
0837c976
YZ
108262014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10827
10828 * windows-nat.c (windows_xfer_shared_libraries): Return
10829 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10830 requested object is TARGET_OBJECT_LIBRARIES.
10831
bc113b4e
YQ
108322014-02-24 Yao Qi <yao@codesourcery.com>
10833
10834 * target.h (enum target_xfer_status)
10835 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10836 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10837 explicitly. New.
10838 * corefile.c (memory_error_message): User updated.
10839 * exec.c (section_table_read_available_memory): Likewise.
10840 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10841 * target.c (target_xfer_status_to_string): Likewise.
10842 (raw_memory_xfer_partial): Likewise.
10843 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10844 * valops.c (read_value_memory): Likewise.
10845 * exec.h: Update comments.
10846
01cb8804
YQ
108472014-02-24 Yao Qi <yao@codesourcery.com>
10848
10849 * target.c (target_xfer_status_to_string): Rename argument err
10850 to status.
10851 * target.h (target_xfer_status_to_string): Update declaration.
10852 Replace target_xfer_error_to_string with
10853 target_xfer_status_to_string in comment.
10854
93063aa6
YQ
108552014-02-24 Yao Qi <yao@codesourcery.com>
10856
10857 * mips-linux-nat.c (super_close): Update its type.
10858 (mips_linux_close): Pass 'self' to super_close.
10859
5c328c05
YQ
108602014-02-24 Yao Qi <yao@codesourcery.com>
10861
10862 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10863 * corefile.c (read_memory): Adjusted.
10864 * target.c (target_write_with_progress): Adjusted.
10865
f73023dd
YQ
108662014-02-23 Yao Qi <yao@codesourcery.com>
10867
10868 Revert two patches:
10869
10870 2013-10-25 Yao Qi <yao@codesourcery.com>
10871
10872 * remote.c (remote_traceframe_info): Return early if
10873 traceframe is not selected.
10874
10875 2013-07-19 Yao Qi <yao@codesourcery.com>
10876
10877 * target.c (update_current_target): Change the default action
10878 of 'to_traceframe_info' from tcomplain to return_zero.
10879 * target.h (struct target_ops) <to_traceframe_info>: Add more
10880 comments.
10881
5a2eb0ef
YQ
108822014-02-23 Yao Qi <yao@codesourcery.com>
10883
10884 * valops.c (read_value_memory): Rewrite it. Call
10885 target_xfer_partial in a loop.
10886 * exec.h (section_table_available_memory): Remove declaration.
10887 Move comments to ...
10888 * exec.c (section_table_available_memory): ... here. Make it
10889 static.
10890
1ee79381
YQ
108912014-02-23 Yao Qi <yao@codesourcery.com>
10892
10893 * exec.c (section_table_read_available_memory): New function.
10894 * exec.h (section_table_read_available_memory): Declare.
10895 * ctf.c (ctf_xfer_partial): Call
10896 section_table_read_available_memory.
10897 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10898
1ca49d37
YQ
108992014-02-23 Yao Qi <yao@codesourcery.com>
10900
10901 * ctf.c (ctf_xfer_partial): Move code to ...
10902 * exec.c (exec_read_partial_read_only): ... it. New function.
10903 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10904 * tracefile.c: Include "exec.h".
10905 * exec.h (exec_read_partial_read_only): Declare.
10906
a283690e
YQ
109072014-02-23 Yao Qi <yao@codesourcery.com>
10908
10909 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10910 (tfile_has_memory): Remove.
10911 (init_tfile_ops): Don't set fields to_has_all_memory and
10912 to_has_memory of tfile_ops.
10913 * tracefile.c (tracefile_has_all_memory): New function.
10914 (tracefile_has_memory): New function.
10915 (init_tracefile_ops): Initialize fields to_has_all_memory and
10916 to_has_memory of 'ops'.
10917
12e03cd0
YQ
109182014-02-23 Yao Qi <yao@codesourcery.com>
10919
10920 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10921 (ctf_thread_alive, ctf_get_trace_status): Remove.
10922 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10923 init_tracefile_ops.
10924 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10925 (tfile_has_stack, tfile_has_registers): Remove.
10926 (tfile_thread_alive): Remove.
10927 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10928 init_tracefile_ops.
10929 * tracefile.c (tracefile_has_stack): New function.
10930 (tracefile_has_registers): New function.
10931 (tracefile_thread_alive): New function.
10932 (tracefile_get_trace_status): New function.
10933 (init_tracefile_ops): New function.
10934 * tracefile.h (init_tracefile_ops): Declare.
10935
11395323
YQ
109362014-02-23 Yao Qi <yao@codesourcery.com>
10937
10938 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10939 (O_LARGEFILE): Likewise.
10940 (tfile_ops): Likewise.
10941 (TRACE_HEADER_SIZE): Likewise.
10942 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10943 (cur_data_size): Likewise.
10944 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10945 (tfile_close, tfile_files_info): Likewise.
10946 (tfile_get_trace_status): Likewise.
10947 (tfile_get_tracepoint_status): Likewise.
10948 (tfile_get_traceframe_address): Likewise.
10949 (tfile_trace_find, match_blocktype): Likewise.
10950 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10951 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10952 (tfile_get_trace_state_variable_value): Likewise.
10953 (tfile_has_all_memory, tfile_has_memory): Likewise.
10954 (tfile_has_stack, tfile_has_registers): Likewise.
10955 (tfile_thread_alive, build_traceframe_info): Likewise.
10956 (tfile_traceframe_info, init_tfile_ops): Likewise.
10957 (_initialize_tracepoint): Don't call init_tfile_ops
10958 and add_target_with_completer.
10959 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10960 exec.h, completer.h and filenames.h.
10961 (_initialize_tracefile_tfile): New function.
10962
7951c4eb
YQ
109632014-02-23 Yao Qi <yao@codesourcery.com>
10964
10965 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10966 tracefile-tfile.o.
10967 (HFILES_NO_SRCDIR): Add tracefile.h.
10968 * ctf.c: Include "tracefile.h".
10969 * tracefile.h: New file.
10970 * tracefile.c: New file
10971 * tracefile-tfile.c: New file.
10972 * tracepoint.c: Include "tracefile.h".
10973 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10974 (stop_reason_names): Add const.
10975 (trace_file_writer_xfree): Move it to tracefile.c.
10976 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10977 (trace_save_ctf): Likewise.
10978 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10979 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10980 (tfile_write_header, tfile_write_regblock_type): Likewise.
10981 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10982 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10983 (tfile_write_raw_data, tfile_end): Likewise.
10984 (tfile_trace_file_writer_new): Likewise.
10985 (free_uploaded_tp): Make it extern.
10986 (free_uploaded_tsv): Make it extern.
10987 (_initialize_tracepoint): Move code to register command 'tsave'
10988 to tracefile.c.
10989 * tracepoint.h (stop_reason_names): Declare.
10990 (struct trace_frame_write_ops): Move it to tracefile.h.
10991 (struct trace_file_write_ops): Likewise.
10992 (struct trace_file_writer): Likewise.
10993 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10994
184cd072
JK
109952014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 PR gdb/16594
10998 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10999 process name.
11000 (get_cores_used_by_process): New parameter num_cores, use it.
11001 (linux_xfer_osdata_processes): Pass num_cores to it.
11002 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11003 process name.
11004
c63528fc
AK
110052014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11006
11007 * target.c (memory_xfer_partial): Fix length arg in call to
11008 breakpoint_xfer_memory.
11009
d7b30f67
SDJ
110102014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11011
11012 PR tdep/16397
11013 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11014 number comes after the + or - signs. Adjust length of register
11015 name to be extracted.
11016
8838afaf
TT
110172014-02-20 Tom Tromey <tromey@redhat.com>
11018
11019 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11020 (ada_varobj_ops): Mark "extern".
11021
05227d14
TT
110222014-02-20 Tom Tromey <tromey@redhat.com>
11023
11024 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11025
1254eefc
DE
110262014-02-20 Doug Evans <xdje42@gmail.com>
11027
11028 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11029 All callers updated.
11030 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11031 All callers updated.
11032 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11033 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11034
adde2bff
DE
110352014-02-20 lin zuojian <manjian2006@gmail.com>
11036 Joel Brobecker <brobecker@adacore.com>
11037 Doug Evans <xdje42@gmail.com>
11038
11039 PR symtab/16581
11040 * dwarf2read.c (struct die_info): New member in_process.
11041 (reset_die_in_process): New function.
11042 (process_die): Set it at the start, reset when returning.
11043 (inherit_abstract_dies): Only call process_die if origin_child_die
11044 not already being processed.
11045
3be75f87
JB
110462014-02-20 Joel Brobecker <brobecker@adacore.com>
11047
11048 * windows-nat.c (handle_unload_dll): Add function documentation.
11049 (do_initial_windows_stuff): Add comment explaining why we wait
11050 until after inferior initialization has finished before
11051 processing all DLLs.
11052
47f7ffdb
JB
110532014-02-20 Joel Brobecker <brobecker@adacore.com>
11054
11055 * windows-nat.c (get_module_name): Delete.
11056 (windows_get_exec_module_filename): New function, mostly
11057 inspired from get_module_name.
11058 (windows_pid_to_exec_file): Replace call to get_module_name
11059 by call to windows_get_exec_module_filename.
11060
1cd9feab
JB
110612014-02-20 Joel Brobecker <brobecker@adacore.com>
11062
11063 * windows-nat.c (handle_load_dll): Rewrite this function's
11064 introductory comment. Remove code using get_module_name
11065 to get the DLL's name.
11066
ea39ad35
JB
110672014-02-20 Joel Brobecker <brobecker@adacore.com>
11068
11069 * windows-nat.c (get_windows_debug_event): Ignore
11070 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11071 if windows_initialization_done == 0.
11072 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11073 Adjust implementation to always load all DLLs.
11074 (do_initial_windows_stuff): Replace call to
11075 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11076
95060284
JB
110772014-02-20 Joel Brobecker <brobecker@adacore.com>
11078
11079 * windows-nat.c (_initialize_windows_nat): Deprecate the
11080 "dll-symbols" command. Turn the "add-shared-symbol-files"
11081 and "assf" aliases into commands, and deprecate them as well.
11082 * NEWS: Add entry explaining that "dll-symbols" and its two
11083 aliases are now deprecated.
11084
8d4fdb12
JB
110852014-02-20 Joel Brobecker <brobecker@adacore.com>
11086
11087 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11088 new-line in debug string. Remove trailing spaces.
11089
1b281443
SS
110902014-02-19 Stan Shebs <stan@codesourcery.com>
11091
11092 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11093
f7bd0f78
SC
110942014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11095
11096 * NEWS: Add entry for the new feature
11097 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11098 and class values.
11099
399ebc3d
SS
111002014-02-19 Stan Shebs <stan@codesourcery.com>
11101
11102 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11103
c658158d
PA
111042014-02-19 Pedro Alves <palves@redhat.com>
11105
11106 * common/ptid.h (struct ptid): Mention that process_stratum
11107 targets should prefer ptid.lwp.
11108
ba348170
PA
111092014-02-19 Pedro Alves <palves@redhat.com>
11110
11111 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11112 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11113 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11114 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11115 store remote thread ids rather than ptid.tid.
11116 (_initialize_remote): Adjust.
11117
ac01945b
TT
111182014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target.c (target_get_unwinder): Rewrite.
11121 (target_get_tailcall_unwinder): Rewrite.
11122 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11123 (record_btrace_to_get_tailcall_unwinder): New function.
11124 (init_record_btrace_ops): Update.
11125 * target.h (struct target_ops) <to_get_unwinder,
11126 to_get_tailcall_unwinder>: Now function pointers. Use
11127 TARGET_DEFAULT_RETURN.
11128
8476dc92
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11132 argument.
11133 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11134
c0eca49f
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11138 directly.
11139 * target-delegates.c: Rebuild.
11140 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11141 TARGET_DEFAULT_FUNC.
11142 * target.c (default_target_decr_pc_after_break): Rename from
11143 forward_target_decr_pc_after_break. Simplify.
11144 (target_decr_pc_after_break): Rely on delegation.
11145
596b6b39
TT
111462014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target.c (update_current_target): Do not INHERIT to_doc or
11149 to_magic. Do not de_fault to_open or to_close.
11150
b427c1bc
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * gcore.h (objfile_find_memory_regions): Declare.
11154 * gcore.c (objfile_find_memory_regions): No longer static. Add
11155 "self" argument.
11156 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11157 * exec.c: Include gcore.h.
11158 (exec_set_find_memory_regions): Remove.
11159 (exec_find_memory_regions): Remove.
11160 (exec_do_find_memory_regions): Remove.
11161 (init_exec_ops): Update.
11162 * defs.h (exec_set_find_memory_regions): Remove.
11163
9b144037
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.h (struct target_ops) <to_extra_thread_info,
11168 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11169 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11170 not 0, in TARGET_DEFAULT_RETURN.
11171
555bbdeb
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target.c (complete_target_initialization): Remove casts. Use
11175 return_zero_has_execution.
11176 (return_zero): Add "ignore" argument.
11177 (return_zero_has_execution): New function.
11178 (init_dummy_target): Remove casts. Use
11179 return_zero_has_execution.
11180
be4ddd36
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.c (update_current_target): Update comments. Do not
11184 INHERIT to_stratum.
11185
2117c711
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11189 needed.
11190 * corelow.c (core_read_description): Delegate when needed.
11191 * remote.c (remote_read_description): Delegate when needed.
11192 * target-delegates.c: Rebuild.
11193 * target.c (target_read_description): Rewrite.
11194 * target.h (struct target_ops) <to_read_description>: Update
11195 comment. Use TARGET_DEFAULT_RETURN.
11196
e88ef65c
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_can_run.
11202 (find_default_run_target): Check against delegate_can_run.
11203 * target.h (struct target_ops) <to_can_run>: Use
11204 TARGET_DEFAULT_RETURN.
11205
86a0854a
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_disconnect): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_disconnect>: Use
11211 TARGET_DEFAULT_NORETURN.
11212
ee97f592
TT
112132014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * record.c (record_stop): Unconditionally delegate.
11216 * target-delegates.c: Rebuild.
11217 * target.c (target_stop_recording): Unconditionally delegate.
11218 * target.h (struct target_ops) <to_stop_recording>: Use
11219 TARGET_DEFAULT_IGNORE.
11220
6dc7fcf4
TT
112212014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_enable_btrace): Unconditionally delegate.
11225 * target.h (struct target_ops) <to_enable_btrace>: Use
11226 TARGET_DEFAULT_NORETURN.
11227
eb5b20d4
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target-delegates.c: Rebuild.
11231 * target.c (target_read_btrace): Unconditionally delegate.
11232 * target.h (struct target_ops) <to_read_btrace>: Use
11233 TARGET_DEFAULT_NORETURN.
11234
9ace480d
TT
112352014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target-delegates.c: Rebuild.
11238 * target.c (target_teardown_btrace): Unconditionally delegate.
11239 * target.h (struct target_ops) <to_teardown_btrace>: Use
11240 TARGET_DEFAULT_NORETURN.
11241
8dc292d3
TT
112422014-02-19 Tom Tromey <tromey@redhat.com>
11243
11244 * target-delegates.c: Rebuild.
11245 * target.c (target_disable_btrace): Unconditionally delegate.
11246 * target.h (struct target_ops) <to_disable_btrace>: Use
11247 TARGET_DEFAULT_NORETURN.
11248
58a5184e
TT
112492014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target-delegates.c: Rebuild.
11252 * target.c (default_search_memory): New function.
11253 (simple_search_memory): Update comment.
11254 (target_search_memory): Unconditionally delegate.
11255 * target.h (struct target_ops) <to_search_memory>: Use
11256 TARGET_DEFAULT_FUNC.
11257
8de71aab
TT
112582014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * auxv.c (default_auxv_parse): No longer static.
11261 (target_auxv_parse): Unconditionally delegate.
11262 * auxv.h (default_auxv_parse): Declare.
11263 * target-delegates.c: Rebuild.
11264 * target.c: Include auxv.h.
11265 * target.h (struct target_ops) <to_auxv_parse>: Use
11266 TARGET_DEFAULT_FUNC.
11267
6b2c5a57
TT
112682014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target-delegates.c: Rebuild.
11271 * target.c (target_memory_map): Unconditionally delegate.
11272 * target.h (struct target_ops) <to_memory_map>: Use
11273 TARGET_DEFAULT_RETURN.
11274
cbffc065
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target-delegates.c: Rebuild.
11278 * target.c (target_thread_alive): Unconditionally delegate.
11279 * target.h (struct target_ops) <to_thread_alive>: Use
11280 TARGET_DEFAULT_RETURN.
11281
f09e2107
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target-delegates.c: Rebuild.
11285 * target.c (target_save_record): Unconditionally delegate.
11286 * target.h (struct target_ops) <to_save_record>: Use
11287 TARGET_DEFAULT_NORETURN.
11288
07366925
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target-delegates.c: Rebuild.
11292 * target.c (target_delete_record): Unconditionally delegate.
11293 * target.h (struct target_ops) <to_delete_record>: Use
11294 TARGET_DEFAULT_NORETURN.
11295
dd2e9d25
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_record_is_replaying): Unconditionally
11300 delegate.
11301 * target.h (struct target_ops) <to_record_is_replaying>: Use
11302 TARGET_DEFAULT_RETURN.
11303
671e76cc
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_goto_record_begin): Unconditionally delegate.
11308 * target.h (struct target_ops) <to_goto_record_begin>: Use
11309 TARGET_DEFAULT_NORETURN.
11310
e9179bb3
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (target_goto_record_end): Unconditionally delegate.
11315 * target.h (struct target_ops) <to_goto_record_end>: Use
11316 TARGET_DEFAULT_NORETURN.
11317
05969c84
TT
113182014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (target_goto_record): Unconditionally delegate.
11322 * target.h (struct target_ops) <to_goto_record>: Use
11323 TARGET_DEFAULT_NORETURN.
11324
3679abfa
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target-delegates.c: Rebuild.
11328 * target.c (target_insn_history): Unconditionally delegate.
11329 * target.h (struct target_ops) <to_insn_history>: Use
11330 TARGET_DEFAULT_NORETURN.
11331
8444ab58
TT
113322014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target-delegates.c: Rebuild.
11335 * target.c (target_insn_history_from): Unconditionally delegate.
11336 * target.h (struct target_ops) <to_insn_history_from>: Use
11337 TARGET_DEFAULT_NORETURN.
11338
c29302cc
TT
113392014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target-delegates.c: Rebuild.
11342 * target.c (target_insn_history_range): Unconditionally delegate.
11343 * target.h (struct target_ops) <to_insn_history_range>: Use
11344 TARGET_DEFAULT_NORETURN.
11345
170049d4
TT
113462014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target-delegates.c: Rebuild.
11349 * target.c (target_call_history): Unconditionally delegate.
11350 * target.h (struct target_ops) <to_call_history>: Use
11351 TARGET_DEFAULT_NORETURN.
11352
16fc27d6
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target-delegates.c: Rebuild.
11356 * target.c (target_call_history_from): Unconditionally delegate.
11357 * target.h (struct target_ops) <to_call_history_from>: Use
11358 TARGET_DEFAULT_NORETURN.
11359
115d9817
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (target_call_history_range): Unconditionally delegate.
11364 * target.h (struct target_ops) <to_call_history_range>: Use
11365 TARGET_DEFAULT_NORETURN.
11366
eb276a6b
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_verify_memory): Unconditionally delegate.
11371 * target.h (struct target_ops) <to_verify_memory>: Use
11372 TARGET_DEFAULT_NORETURN.
11373
9e538d0d
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target-delegates.c: Rebuild.
11377 * target.c (target_core_of_thread): Unconditionally delegate.
11378 * target.h (struct target_ops) <to_core_of_thread>: Use
11379 TARGET_DEFAULT_RETURN.
11380
f6fb2925
TT
113812014-02-19 Tom Tromey <tromey@redhat.com>
11382
11383 * target-delegates.c: Rebuild.
11384 * target.c (target_flash_done): Unconditionally delegate.
11385 * target.h (struct target_ops) <to_flash_done>: Use
11386 TARGET_DEFAULT_NORETURN.
11387
e8a6c6ac
TT
113882014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target-delegates.c: Rebuild.
11391 * target.c (target_flash_erase): Unconditionally delegate.
11392 * target.h (struct target_ops) <to_flash_erase>: Use
11393 TARGET_DEFAULT_NORETURN.
11394
7e35c012
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target-delegates.c: Rebuild.
11398 * target.c (target_get_section_table): Unconditionally delegate.
11399 * target.h (struct target_ops) <to_get_section_table>: Use
11400 TARGET_DEFAULT_RETURN.
11401
770234d3
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (target_pid_to_str): Unconditionally delegate.
11406 (init_dummy_target): Don't initialize to_pid_to_str.
11407 (default_pid_to_str): Rename from dummy_pid_to_str.
11408 * target.h (struct target_ops) <to_pid_to_str>: Use
11409 TARGET_DEFAULT_FUNC.
11410
09b0dc2b
TT
114112014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target-delegates.c: Rebuild.
11414 * target.c (target_find_new_threads): Unconditionally delegate.
11415 * target.h (struct target_ops) <to_find_new_threads>: Use
11416 TARGET_DEFAULT_RETURN.
11417
7d4f8efa
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_program_signals): Unconditionally delegate.
11422 * target.h (struct target_ops) <to_program_signals>: Use
11423 TARGET_DEFAULT_IGNORE.
11424
035cad7f
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_pass_signals): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_pass_signals>: Use
11430 TARGET_DEFAULT_IGNORE.
11431
8d657035
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (default_mourn_inferior): New function.
11436 (target_mourn_inferior): Unconditionally delegate.
11437 * target.h (struct target_ops) <to_mourn_inferior>: Use
11438 TARGET_DEFAULT_FUNC.
11439
098dba18
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (default_follow_fork): New function.
11444 (target_follow_fork): Unconditionally delegate.
11445 * target.h (struct target_ops) <to_follow_fork>: Use
11446 TARGET_DEFAULT_FUNC.
11447
423a4807
TT
114482014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (target_kill): Unconditionally delegate.
11452 * target.h (struct target_ops) <to_kill>: Use
11453 TARGET_DEFAULT_NORETURN.
11454
6c7e5e5c
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_masked_watch_num_registers): Unconditionally
11459 delegate.
11460 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11461 Use TARGET_DEFAULT_RETURN.
11462
8b1c364c
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (target_remove_mask_watchpoint): Unconditionally
11467 delegate.
11468 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11469 TARGET_DEFAULT_RETURN.
11470
cd4ae029
TT
114712014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_insert_mask_watchpoint): Unconditionally
11475 delegate.
11476 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11477 TARGET_DEFAULT_RETURN.
11478
a134316b
TT
114792014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_ranged_break_num_registers): Unconditionally
11483 delegate.
11484 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11485 Use TARGET_DEFAULT_RETURN.
11486
ad5989bd
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (target_fetch_registers): Unconditionally delegate.
11491 * target.h (struct target_ops) <to_fetch_registers>: Use
11492 TARGET_DEFAULT_NORETURN.
11493
46ee7e8d
TT
114942014-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_stop.
11499 * target.h (struct target_ops) <to_stop>: Use
11500 TARGET_DEFAULT_IGNORE.
11501
843f59ed
TT
115022014-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_can_run_breakpoint_commands.
11507 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11508 Use TARGET_DEFAULT_RETURN.
11509
ccfde2a0
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_supports_evaluation_of_breakpoint_conditions.
11515 * target.h (struct target_ops)
11516 <to_supports_evaluation_of_breakpoint_conditions>: Use
11517 TARGET_DEFAULT_RETURN.
11518
0de91722
TT
115192014-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_augmented_libraries_svr4_read.
11524 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11525 Use TARGET_DEFAULT_RETURN.
11526
9a7d8b48
TT
115272014-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_can_use_agent.
11532 * target.h (struct target_ops) <to_can_use_agent>: Use
11533 TARGET_DEFAULT_RETURN.
11534
d9db5b21
TT
115352014-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_use_agent.
11540 * target.h (struct target_ops) <to_use_agent>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
92155eeb
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_traceframe_info.
11548 (return_null): Remove.
11549 * target.h (struct target_ops) <to_traceframe_info>: Use
11550 TARGET_DEFAULT_RETURN.
11551
d6522a22
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_static_tracepoint_markers_by_strid.
11557 * target.h (struct target_ops)
11558 <to_static_tracepoint_markers_by_strid>: Use
11559 TARGET_DEFAULT_NORETURN.
11560
4c3e4425
TT
115612014-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_static_tracepoint_marker_at.
11566 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11567 Use TARGET_DEFAULT_RETURN.
11568
dcd6917f
TT
115692014-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_set_permissions.
11574 * target.h (struct target_ops) <to_set_permissions>: Use
11575 TARGET_DEFAULT_IGNORE.
11576
22bcceee
TT
115772014-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_get_tib_address.
11582 * target.h (struct target_ops) <to_get_tib_address>: Use
11583 TARGET_DEFAULT_NORETURN.
11584
8586ccaa
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_set_trace_notes.
11590 * target.h (struct target_ops) <to_set_trace_notes>: Use
11591 TARGET_DEFAULT_RETURN.
11592
91df8d1d
TT
115932014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't initialize
11597 to_set_trace_buffer_size.
11598 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11599 TARGET_DEFAULT_IGNORE.
11600
8d526939
TT
116012014-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_circular_trace_buffer.
11606 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11607 TARGET_DEFAULT_IGNORE.
11608
0bcfeddf
TT
116092014-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_set_disconnected_tracing.
11614 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11615 TARGET_DEFAULT_IGNORE.
11616
9249843f
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11621 to_get_min_fast_tracepoint_insn_len.
11622 (return_minus_one): Remove.
11623 * target.h (struct target_ops)
11624 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11625
ace92e7d
TT
116262014-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_get_raw_trace_data.
11631 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11632 TARGET_DEFAULT_NORETURN.
11633
08120467
TT
116342014-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_trace_state_variables.
11639 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11640 Use TARGET_DEFAULT_RETURN.
11641
1e949b00
TT
116422014-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_upload_tracepoints.
11647 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11648 TARGET_DEFAULT_RETURN.
11649
a2e6c147
TT
116502014-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_save_trace_data.
11655 * target.h (struct target_ops) <to_save_trace_data>: Use
11656 TARGET_DEFAULT_NORETURN.
11657
959bcd0b
TT
116582014-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_get_trace_state_variable_value.
11663 * target.h (struct target_ops)
11664 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11665
afc94e66
TT
116662014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target-delegates.c: Rebuild.
11669 * target.c (update_current_target): Don't inherit or default
11670 to_trace_find.
11671 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11672
e51c07ea
TT
116732014-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_trace_stop.
11678 * target.h (struct target_ops) <to_trace_stop>: Use
11679 TARGET_DEFAULT_NORETURN.
11680
6fea14cd
TT
116812014-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_tracepoint_status.
11686 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11687 TARGET_DEFAULT_NORETURN.
11688
4072d4ff
TT
116892014-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_get_trace_status.
11694 * target.h (struct target_ops) <to_get_trace_status>: Use
11695 TARGET_DEFAULT_RETURN.
11696
25da2e80
TT
116972014-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_start.
11702 * target.h (struct target_ops) <to_trace_start>: Use
11703 TARGET_DEFAULT_NORETURN.
11704
86dd181d
TT
117052014-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_trace_set_readonly_regions.
11710 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11711 Use TARGET_DEFAULT_NORETURN.
11712
05c41993
TT
117132014-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_disable_tracepoint.
11718 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
151f70f1
TT
117212014-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_enable_tracepoint.
11726 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11727 TARGET_DEFAULT_NORETURN.
11728
94eb98b9
TT
117292014-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_download_trace_state_variable.
11734 * target.h (struct target_ops) <to_download_trace_state_variable>:
11735 Use TARGET_DEFAULT_NORETURN.
11736
719acc4a
TT
117372014-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_can_download_tracepoint.
11742 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11743 TARGET_DEFAULT_RETURN.
11744
9a980a22
TT
117452014-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_download_tracepoint.
11750 * target.h (struct target_ops) <to_download_tracepoint>: Use
11751 TARGET_DEFAULT_NORETURN.
11752
5536135b
TT
117532014-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_trace_init.
11758 * target.h (struct target_ops) <to_trace_init>: Use
11759 TARGET_DEFAULT_RETURN.
11760
9409d39e
TT
117612014-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_string_tracing.
11766 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11767 TARGET_DEFAULT_RETURN.
11768
aab1b22d
TT
117692014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * target-delegates.c: Rebuild.
11772 * target.c (update_current_target): Don't inherit or default
11773 to_supports_enable_disable_tracepoint.
11774 * target.h (struct target_ops)
11775 <to_supports_enable_disable_tracepoint>: Use
11776 TARGET_DEFAULT_RETURN.
11777
a7304748
TT
117782014-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_supports_multi_process.
11783 * target.h (struct target_ops) <to_supports_multi_process>: Use
11784 TARGET_DEFAULT_RETURN.
11785
4229b31d
TT
117862014-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_get_ada_task_ptid.
11791 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11792 TARGET_DEFAULT_FUNC.
11793
43eba180
TT
117942014-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_thread_architecture.
11799 * target.h (struct target_ops) <to_thread_architecture>: Use
11800 TARGET_DEFAULT_FUNC.
11801
fe31bf5b
TT
118022014-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_execution_direction.
11807 * target.h (struct target_ops) <to_execution_direction>: Use
11808 TARGET_DEFAULT_FUNC.
11809
53e1cfc7
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_can_execute_reverse.
11815 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11816 TARGET_DEFAULT_RETURN.
11817 (target_can_execute_reverse): Unconditionally delegate.
11818
9bb9d61d
TT
118192014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11823 to_goto_bookmark.
11824 (dummy_goto_bookmark): Remove.
11825 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11826 * target.h (struct target_ops) <to_goto_bookmark>: Use
11827 TARGET_DEFAULT_NORETURN.
11828
3dbafbbb
TT
118292014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11833 to_get_bookmark.
11834 (dummy_get_bookmark): Remove.
11835 (init_dummy_target): Don't inherit or default to_get_bookmark.
11836 * target.h (struct target_ops) <to_get_bookmark>: Use
11837 TARGET_DEFAULT_NORETURN
11838
16f796b1
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_make_corefile_notes.
11844 (init_dummy_target): Don't initialize to_make_corefile_notes.
11845 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11846 TARGET_DEFAULT_FUNC.
11847
0b5a2719
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target-delegates.c: Rebuild.
11851 * target.c (update_current_target): Don't inherit or default
11852 to_find_memory_regions.
11853 (init_dummy_target): Don't initialize to_find_memory_regions.
11854 * target.h (struct target_ops) <to_find_memory_regions>: Use
11855 TARGET_DEFAULT_FUNC.
11856
d9cb0195
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11861 to_log_command.
11862 * target.h (struct target_ops) <to_log_command>: Use
11863 TARGET_DEFAULT_IGNORE.
11864 (target_log_command): Unconditionally delegate.
11865
830ca330
TT
118662014-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_pid_to_exec_file.
11871 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11872 TARGET_DEFAULT_RETURN.
11873
825828fc
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_thread_name.
11879 (target_thread_name): Unconditionally delegate.
11880 * target.h (struct target_ops) <to_thread_name>: Use
11881 TARGET_DEFAULT_RETURN.
11882
4a7e6dda
TT
118832014-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_extra_thread_info.
11888 * target.h (struct target_ops) <to_extra_thread_info>: Use
11889 TARGET_DEFAULT_RETURN.
11890
0db88c1d
TT
118912014-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_has_exited.
11896 * target.h (struct target_ops) <to_has_exited>: Use
11897 TARGET_DEFAULT_RETURN..
11898
6a9fa051
TT
118992014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target-delegates.c: Rebuild.
11902 * target.c (update_current_target): Don't inherit or default
11903 to_set_syscall_catchpoint.
11904 (return_one): Remove.
11905 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11907
62f64d7a
TT
119082014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_insert_exec_catchpoint.
11913 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11915
cda0f38c
TT
119162014-01-08 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_insert_exec_catchpoint.
11921 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11922 TARGET_DEFAULT_RETURN.
11923
95c3375e
TT
119242014-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_remove_vfork_catchpoint.
11929 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11930 TARGET_DEFAULT_RETURN.
11931
7e18a8dc
TT
119322014-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_insert_vfork_catchpoint.
11937 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11938 TARGET_DEFAULT_RETURN.
11939
e1a21fb7
TT
119402014-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_remove_fork_catchpoint.
11945 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11946 TARGET_DEFAULT_RETURN.
11947
5958ebeb
TT
119482014-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_insert_fork_catchpoint.
11953 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11954 TARGET_DEFAULT_RETURN.
11955
340ba4bf
TT
119562014-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_post_startup_inferior.
11961 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11962 TARGET_DEFAULT_IGNORE.
11963
7634da87
TT
119642014-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_load.
11969 * target.h (struct target_ops) <to_load>: Use
11970 TARGET_DEFAULT_NORETURN.
11971
e19e919f
TT
119722014-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_info.
11977 * target.h (struct target_ops) <to_terminal_info>: Use
11978 TARGET_DEFAULT_FUNC.
11979
c6ea8f79
TT
119802014-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_save_ours.
11985 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11986 TARGET_DEFAULT_IGNORE.
11987
e4a733f1
TT
119882014-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.
11993 * target.h (struct target_ops) <to_terminal_ours>: Use
11994 TARGET_DEFAULT_IGNORE.
11995
74fcbef9
TT
119962014-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_ours_for_output.
12001 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12002 TARGET_DEFAULT_IGNORE.
12003
ddeaacc9
TT
120042014-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_inferior.
12009 * target.h (struct target_ops) <to_terminal_inferior>: Use
12010 TARGET_DEFAULT_IGNORE.
12011
0343661d
TT
120122014-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_terminal_init.
12017 * target.h (struct target_ops) <to_terminal_init>: Use
12018 TARGET_DEFAULT_IGNORE.
12019
77cdffe9
TT
120202014-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_can_accel_watchpoint_condition.
12025 * target.h (struct target_ops)
12026 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12027
d03655e4
TT
120282014-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_region_ok_for_hw_watchpoint.
12033 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12034 Use TARGET_DEFAULT_FUNC.
12035
65f160a9
TT
120362014-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_watchpoint_addr_within_range.
12041 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12042 Use TARGET_DEFAULT_FUNC.
12043
61dd109f
TT
120442014-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_remove_watchpoint.
12049 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12050 TARGET_DEFAULT_NORETURN.
12051
016facd4
TT
120522014-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_insert_watchpoint.
12057 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12059
418dabac
TT
120602014-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_remove_hw_breakpoint.
12065 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12067
61b371f9
TT
120682014-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_insert_hw_breakpoint.
12073 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12075
52b51d06
TT
120762014-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_can_use_hw_breakpoint.
12081 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12082 TARGET_DEFAULT_RETURN.
12083
f86e59b2
TT
120842014-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_files_info.
12089 * target.h (struct target_ops) <to_files_info>: Use
12090 TARGET_DEFAULT_IGNORE.
12091
6c628163
TT
120922014-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_store.
12097 * target.h (struct target_ops) <to_store>: Use
12098 TARGET_DEFAULT_NORETURN.
12099
bebd3233
TT
121002014-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_post_attach.
12105 * target.h (struct target_ops) <to_post_attach>: Use
12106 TARGET_DEFAULT_IGNORE.
12107
a53f3625
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12112 to_rcmd.
12113 (default_rcmd): New function.
12114 (do_monitor_command): Unconditionally delegate.
12115 * target.h (struct target_ops) <to_rmcd>: Use
12116 TARGET_DEFAULT_FUNC.
12117
e9a29200
TT
121182014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target-delegates.c: Rebuild.
12121 * target.c (init_dummy_target): Don't initialize to_attach.
12122 (target_attach): Unconditionally delegate.
12123 * target.h (struct target_ops) <to_attach>: Use
12124 TARGET_DEFAULT_FUNC.
12125
09da0d0a
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target-delegates.c: Rebuild.
12129 * target.c (target_detach): Unconditionally delegate.
12130 (init_dummy_target): Don't initialize to_detach.
12131 * target.h (struct target_ops) <to_detach>: Use
12132 TARGET_DEFAULT_IGNORE.
12133
5436ff03
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12137 Add argument.
12138 (target_augmented_libraries_svr4_read): Add argument.
12139 * target.c (update_current_target): Update.
12140 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12141 argument.
12142
f0d960ea
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target.h (struct target_ops) <to_call_history_range>: Add
12146 argument.
12147 * target.c (target_call_history_range): Add argument.
12148 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12149 argument.
12150 (record_btrace_call_history_from): Update.
12151
ec0aea04
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target.h (struct target_ops) <to_call_history_from>: Add
12155 argument.
12156 * target.c (target_call_history_from): Add argument.
12157 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12158 argument.
12159
5df2fcba
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops) <to_call_history>: Add argument.
12163 * target.c (target_call_history): Add argument.
12164 * record-btrace.c (record_btrace_call_history): Add 'self'
12165 argument.
12166
4e99c6b7
TT
121672014-02-19 Tom Tromey <tromey@redhat.com>
12168
12169 * target.h (struct target_ops) <to_insn_history_range>: Add
12170 argument.
12171 * target.c (target_insn_history_range): Add argument.
12172 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12173 argument.
12174 (record_btrace_insn_history_from): Update.
12175
9abc3ff3
TT
121762014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_insn_history_from>: Add
12179 argument.
12180 * target.c (target_insn_history_from): Add argument.
12181 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12182 argument.
12183
7a6c5609
TT
121842014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_insn_history>: Add argument.
12187 * target.c (target_insn_history): Add argument.
12188 * record-btrace.c (record_btrace_insn_history): Add 'self'
12189 argument.
12190
606183ac
TT
121912014-02-19 Tom Tromey <tromey@redhat.com>
12192
12193 * target.h (struct target_ops) <to_goto_record>: Add argument.
12194 * target.c (target_goto_record): Add argument.
12195 * record-full.c (record_full_goto): Add 'self' argument.
12196 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12197
307a1b91
TT
121982014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12201 * target.c (target_goto_record_end): Add argument.
12202 * record-full.c (record_full_goto_end): Add 'self' argument.
12203 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12204
08475817
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target.h (struct target_ops) <to_goto_record_begin>: Add
12208 argument.
12209 * target.c (target_goto_record_begin): Add argument.
12210 * record-full.c (record_full_goto_begin): Add 'self' argument.
12211 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12212 argument.
12213
1c63c994
TT
122142014-02-19 Tom Tromey <tromey@redhat.com>
12215
12216 * target.h (struct target_ops) <to_record_is_replaying>: Add
12217 argument.
12218 * target.c (target_record_is_replaying): Add argument.
12219 * record-full.c (record_full_is_replaying): Add 'self' argument.
12220 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12221 argument.
12222 (record_btrace_xfer_partial, record_btrace_store_registers)
12223 (record_btrace_prepare_to_store, record_btrace_resume)
12224 (record_btrace_wait, record_btrace_decr_pc_after_break)
12225 (record_btrace_find_new_threads, record_btrace_thread_alive):
12226 Update.
12227
d1b55219
TT
122282014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target.h (struct target_ops) <to_delete_record>: Add argument.
12231 * target.c (target_delete_record): Add argument.
12232 * record-full.c (record_full_delete): Add 'self' argument.
12233
1390f529
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target.h (struct target_ops) <to_save_record>: Add argument.
12237 * target.c (target_save_record): Add argument.
12238 * record-full.c (record_full_save): Add 'self' argument.
12239 (record_full_save): Add 'self' argument.
12240
630d6a4a
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_info_record>: Add argument.
12244 * target.c (target_info_record): Add argument.
12245 * record.c (info_record_command): Add argument.
12246 * record-full.c (record_full_info): Add 'self' argument.
12247 * record-btrace.c (record_btrace_info): Add 'self' argument.
12248
c6cd7c02
TT
122492014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12252 * target.c (target_stop_recording): Add argument.
12253 * record.c (record_stop): Add argument.
12254 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12255 argument.
12256
39c49f83
TT
122572014-02-19 Tom Tromey <tromey@redhat.com>
12258
12259 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12260 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12261 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12262 argument.
12263 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12264 (_initialize_amd64_linux_nat): Use it.
12265 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12266 (_initialize_i386_linux_nat): Use it.
12267
1777056d
TT
122682014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12271 * target.c (target_teardown_btrace): Add argument.
12272 * remote.c (remote_teardown_btrace): Add 'self' argument.
12273 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12274 argument.
12275 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12276 argument.
12277
25e95349
TT
122782014-02-19 Tom Tromey <tromey@redhat.com>
12279
12280 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12281 * target.c (target_disable_btrace): Add argument.
12282 * remote.c (remote_disable_btrace): Add 'self' argument.
12283 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12284 argument.
12285 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12286 argument.
12287
e3c49f88
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12291 * target.c (target_enable_btrace): Add argument.
12292 * remote.c (remote_enable_btrace): Add 'self' argument.
12293 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12294 argument.
12295 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12296 argument.
12297
fe38f897
TT
122982014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12301 (target_can_use_agent): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_can_use_agent): Add 'self' argument.
12304 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12305
2c152180
TT
123062014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target.h (struct target_ops) <to_use_agent>: Add argument.
12309 (target_use_agent): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_use_agent): Add 'self' argument.
12312 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12313
a893e81f
TT
123142014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12317 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12318 (target_traceframe_info): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_traceframe_info): Add 'self' argument.
12321 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12322
c686c57f
TT
123232014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target.h (target_static_tracepoint_markers_by_strid): Add
12326 argument.
12327 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12328 'self' argument.
12329 * target.c (update_current_target): Update.
12330 * remote.c (struct target_ops)
12331 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12332 * linux-nat.c (struct target_ops)
12333 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12334
61fc905d
TT
123352014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12338 Add argument.
12339 (target_static_tracepoint_marker_at): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12342 argument.
12343
c378d69d
TT
123442014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12347 (target_set_permissions): Add argument.
12348 * target.c (update_current_target): Update.
12349 * remote.c (remote_set_permissions): Add 'self' argument.
12350 (remote_start_remote): Update.
12351
bd7ae0f5
TT
123522014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12355 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12356 (target_get_tib_address): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_get_tib_address): Add 'self' argument.
12359
d9e68a2c
TT
123602014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12363 (target_set_trace_notes): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_set_trace_notes): Add 'self' argument.
12366
4da384be
TT
123672014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12370 argument.
12371 (target_set_trace_buffer_size): Add argument.
12372 * target.c (update_current_target): Update.
12373 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12374
736d5b1f
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12378 argument.
12379 (target_set_circular_trace_buffer): Add argument.
12380 * target.c (update_current_target): Update.
12381 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12382 argument.
12383
37b25738
TT
123842014-02-19 Tom Tromey <tromey@redhat.com>
12385
12386 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12387 argument.
12388 (target_set_disconnected_tracing): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12391
0e67620a
TT
123922014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target.h (struct target_ops)
12395 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12396 (target_get_min_fast_tracepoint_insn_len): Add argument.
12397 * target.c (update_current_target): Update.
12398 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12399 argument.
12400
88ee6f45
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12404 argument.
12405 (target_get_raw_trace_data): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12408
181e3713
TT
124092014-02-19 Tom Tromey <tromey@redhat.com>
12410
12411 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12412 Add argument.
12413 (target_upload_trace_state_variables): Add argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (remote_upload_trace_state_variables): Add 'self'
12416 argument.
12417 (remote_start_remote): Update.
12418
ab6617cc
TT
124192014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12422 argument.
12423 (target_upload_tracepoints): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12426 (remote_start_remote): Update.
12427
dc3decaf
TT
124282014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12431 (target_save_trace_data): Add argument.
12432 * target.c (update_current_target): Update.
12433 * remote.c (remote_save_trace_data): Add 'self' argument.
12434
4011015b
TT
124352014-02-19 Tom Tromey <tromey@redhat.com>
12436
12437 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12438 argument.
12439 * target.h (struct target_ops)
12440 <to_get_trace_state_variable_value>: Add argument.
12441 (target_get_trace_state_variable_value): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12444 argument.
12445 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12446
bd4c6793
TT
124472014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12450 * target.h (struct target_ops) <to_trace_find>: Add argument.
12451 (target_trace_find): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_trace_find): Add 'self' argument.
12454 * ctf.c (ctf_trace_find): Add 'self' argument.
12455
74499f1b
TT
124562014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12459 (target_trace_stop): Add argument.
12460 * target.c (update_current_target): Update.
12461 * remote.c (remote_trace_stop): Add 'self' argument.
12462
db90e85c
TT
124632014-02-19 Tom Tromey <tromey@redhat.com>
12464
12465 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12466 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12467 argument.
12468 (target_get_tracepoint_status): Add argument.
12469 * target.c (update_current_target): Update.
12470 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12471
8bd200f1
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12475 * target.h (struct target_ops) <to_get_trace_status>: Add
12476 argument.
12477 (target_get_trace_status): Add argument.
12478 * target.c (update_current_target): Update.
12479 * remote.c (remote_get_trace_status): Add 'self' argument.
12480 (remote_start_remote, remote_can_download_tracepoint): Update.
12481 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12482
e2d1aae3
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_trace_start>: Add argument.
12486 (target_trace_start): Add argument.
12487 * target.c (update_current_target): Update.
12488 * remote.c (remote_trace_start): Add 'self' argument.
12489
583f9a86
TT
124902014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12493 Add argument.
12494 (target_trace_set_readonly_regions): Add argument.
12495 * target.c (update_current_target): Update.
12496 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12497 argument.
12498
780b049c
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12502 argument.
12503 (target_disable_tracepoint): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12506
46670d57
TT
125072014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12510 argument.
12511 (target_enable_tracepoint): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12514
559d2b81
TT
125152014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target.h (struct target_ops) <to_download_trace_state_variable>:
12518 Add argument.
12519 (target_download_trace_state_variable): Add argument.
12520 * target.c (update_current_target): Update.
12521 * remote.c (remote_download_trace_state_variable): Add 'self'
12522 argument.
12523
a52a8357
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12527 argument.
12528 (target_can_download_tracepoint): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12531
548f7808
TT
125322014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target.h (struct target_ops) <to_download_tracepoint>: Add
12535 argument.
12536 (target_download_tracepoint): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_download_tracepoint): Add 'self' argument.
12539
ecae04e1
TT
125402014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target.h (struct target_ops) <to_trace_init>: Add argument.
12543 (target_trace_init): Add argument.
12544 * target.c (update_current_target): Update.
12545 * remote.c (remote_trace_init): Add 'self' argument.
12546
fab5aa7c
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12550 * target.c (target_fileio_readlink): Add argument.
12551 * remote.c (remote_hostio_readlink): Add 'self' argument.
12552 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12553
dbbca37d
TT
125542014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12557 * target.c (target_fileio_unlink): Add argument.
12558 * remote.c (remote_hostio_unlink): Add 'self' argument.
12559 (remote_file_delete): Update.
12560 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12561
df39ea25
TT
125622014-02-19 Tom Tromey <tromey@redhat.com>
12563
12564 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12565 * target.c (target_fileio_close): Add argument.
12566 * remote.c (remote_hostio_close): Add 'self' argument.
12567 (remote_hostio_close_cleanup): Update.
12568 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12569 Update.
12570 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12571
a3be983c
TT
125722014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12575 * target.c (target_fileio_pread): Add argument.
12576 * remote.c (remote_hostio_pread): Add 'self' argument.
12577 (remote_bfd_iovec_pread, remote_file_get): Update.
12578 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12579
0d866f62
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12583 * target.c (target_fileio_pwrite): Add argument.
12584 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12585 (remote_file_put): Update.
12586 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12587
cd897586
TT
125882014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12591 * target.c (target_fileio_open): Add argument.
12592 * remote.c (remote_hostio_open): Add 'self' argument.
12593 (remote_bfd_iovec_open): Add 'self' argument.
12594 (remote_file_put): Add 'self' argument.
12595 (remote_file_get): Add 'self' argument.
12596 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12597
78eff0ec
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12601 Add argument.
12602 (target_can_run_breakpoint_commands): Add argument.
12603 * target.c (update_current_target): Update.
12604 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12605 argument.
12606 (remote_insert_breakpoint): Add 'self' argument.
12607 (remote_insert_hw_breakpoint): Add 'self' argument.
12608 (remote_can_run_breakpoint_commands): Add 'self' argument.
12609
efcc2da7
TT
126102014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target.h (struct target_ops)
12613 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12614 (target_supports_evaluation_of_breakpoint_conditions): Add
12615 argument.
12616 * target.c (update_current_target): Update.
12617 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12618 argument.
12619 (remote_insert_breakpoint): Add 'self' argument.
12620 (remote_insert_hw_breakpoint): Add 'self' argument.
12621 (remote_supports_cond_breakpoints): Add 'self' argument.
12622
6de37a3a
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12626 argument.
12627 (target_supports_string_tracing): Add argument.
12628 * target.c (update_current_target): Update.
12629 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12630
2bfc0540
TT
126312014-02-19 Tom Tromey <tromey@redhat.com>
12632
12633 * target.h (struct target_ops)
12634 <to_supports_disable_randomization>: Add argument.
12635 * target.c (find_default_supports_disable_randomization): Add
12636 argument.
12637 (target_supports_disable_randomization): Add argument.
12638 (find_default_supports_disable_randomization): Add 'self'
12639 argument.
12640 * remote.c (extended_remote_supports_disable_randomization): Add
12641 'self' argument.
12642 (remote_supports_disable_randomization): Add 'self' argument.
12643 (extended_remote_create_inferior): Update.
12644 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12645 'self' argument.
12646
7d178d6a
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops)
12650 <to_supports_enable_disable_tracepoint>: Add argument.
12651 (target_supports_enable_disable_tracepoint): Add argument.
12652 * target.c (update_current_target): Update.
12653 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12654 argument.
12655
86ce2668
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_supports_multi_process>: Add
12659 argument.
12660 (target_supports_multi_process): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_supports_multi_process): Add 'self' argument.
12663 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12664 argument.
12665 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12666 argument.
12667
4c612759
TT
126682014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target.h (struct target_ops) <to_execution_direction>: Add
12671 argument.
12672 (target_execution_direction): Add argument.
12673 * target.c (default_execution_direction): Add 'self' argument.
12674 * record-full.c (record_full_execution_direction): Add 'self'
12675 argument.
12676
19db3e69
TT
126772014-02-19 Tom Tromey <tromey@redhat.com>
12678
12679 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12680 argument.
12681 (target_can_execute_reverse): Add argument.
12682 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12683 * record-full.c (record_full_can_execute_reverse): Add 'self'
12684 argument.
12685 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12686 argument.
12687
1e6b91a4
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12691 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12692 argument.
12693 (target_get_ada_task_ptid): Add argument.
12694 * target.c (update_current_target): Update.
12695 (default_get_ada_task_ptid): Add 'self' argument.
12696 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12697 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12698 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12699 argument.
12700 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12701 argument.
12702 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12703 argument.
12704 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12705 argument.
12706 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12707 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12708 argument.
12709
3c80fb48
TT
127102014-02-19 Tom Tromey <tromey@redhat.com>
12711
12712 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12713 (target_goto_bookmark): Add argument.
12714 * target.c (dummy_goto_bookmark): Add 'self' argument.
12715 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12716
dd0e2830
TT
127172014-02-19 Tom Tromey <tromey@redhat.com>
12718
12719 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12720 (target_get_bookmark): Add argument.
12721 * target.c (dummy_get_bookmark): Add 'self' argument.
12722 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12723
fc6691b2
TT
127242014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12727 argument.
12728 (target_make_corefile_notes): Add argument.
12729 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12730 * procfs.c (procfs_make_note_section): Add 'self' argument.
12731 (procfs_make_note_section): Add 'self' argument.
12732 (procfs_make_note_section): Add 'self' argument.
12733 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12734 argument.
12735 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12736 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12737 * exec.c (exec_make_note_section): Add 'self' argument.
12738 (exec_make_note_section): Add 'self' argument.
12739
2e73927c
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_find_memory_regions>: Add
12743 argument.
12744 (target_find_memory_regions): Add argument.
12745 * target.c (dummy_find_memory_regions): Add 'self' argument.
12746 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12747 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12748 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12749 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12750 * exec. (exec_do_find_memory_regions): New global.
12751 (exec_set_find_memory_regions): Rewrite.
12752 (exec_find_memory_regions): New function.
12753 (init_exec_ops): Use exec_find_memory_regions.
12754
2a9a2795
TT
127552014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_supports_non_stop>: Add
12758 argument.
12759 * target.c (find_default_supports_non_stop): Add argument.
12760 (target_supports_non_stop): Add argument.
12761 (find_default_supports_non_stop): Add 'self' argument.
12762 * remote.c (remote_supports_non_stop): Add 'self' argument.
12763 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12764
4ab76ea3
TT
127652014-02-19 Tom Tromey <tromey@redhat.com>
12766
12767 * target.h (struct target_ops) <to_log_command>: Add argument.
12768 (target_log_command): Add argument.
12769 * serial.h (serial_log_command): Add 'self' argument.
12770 * serial.c (serial_log_command): Add 'self' argument.
12771
8dd27370
TT
127722014-02-19 Tom Tromey <tromey@redhat.com>
12773
12774 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12775 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12776 argument.
12777 (target_pid_to_exec_file): Add argument.
12778 * target.c (debug_to_pid_to_exec_file): Add argument.
12779 (update_current_target): Update.
12780 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12781 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12782 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12783 (linux_handle_extended_wait): Update.
12784 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12785 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12786 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12787 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12788
1aac633b
TT
127892014-02-19 Tom Tromey <tromey@redhat.com>
12790
12791 * target.h (struct target_ops) <to_rcmd>: Add argument.
12792 (target_rcmd): Add argument.
12793 * target.c (debug_to_rcmd): Add argument.
12794 (update_current_target, do_monitor_command): Update.
12795 * remote.c (remote_rcmd): Add 'self' argument.
12796 * monitor.c (monitor_rcmd): Add 'self' argument.
12797
1eab8a48
TT
127982014-02-19 Tom Tromey <tromey@redhat.com>
12799
12800 * windows-nat.c (windows_stop): Add 'self' argument.
12801 * target.h (struct target_ops) <to_stop>: Add argument.
12802 * target.c (target_stop): Add argument.
12803 (debug_to_stop): Add argument.
12804 (update_current_target): Update.
12805 * remote.c (remote_stop): Add 'self' argument.
12806 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12807 (gdbsim_cntrl_c): Update.
12808 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12809 * procfs.c (procfs_stop): Add 'self' argument.
12810 * nto-procfs.c (procfs_stop): Add 'self' argument.
12811 * monitor.c (monitor_stop): Add 'self' argument.
12812 (monitor_open): Update.
12813 * linux-nat.c (linux_nat_stop): Add argument.
12814 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12815 * gnu-nat.c (gnu_stop): Add 'self' argument.
12816 * darwin-nat.c (darwin_stop): Add 'self' argument.
12817
503a628d
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_thread_name>: Add argument.
12821 * target.c (target_thread_name): Add argument.
12822 (update_current_target): Update.
12823 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12824
c15906d8
TT
128252014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target.h (struct target_ops) <to_extra_thread_info>: Add
12828 argument.
12829 (target_extra_thread_info): Add argument.
12830 * target.c (update_current_target): Update.
12831 * remote.c (remote_threads_extra_info): Add 'self' argument.
12832 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12833 argument.
12834 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12835 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12836 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12837 argument.
12838 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12839 argument.
12840 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12841 argument.
12842 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12843 argument.
12844
daf5e9b6
TT
128452014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * target.h (struct target_ops) <to_program_signals>: Add argument.
12848 * target.c (target_program_signals): Add argument.
12849 * remote.c (remote_program_signals): Add 'self' argument.
12850
94bedb42
TT
128512014-02-19 Tom Tromey <tromey@redhat.com>
12852
12853 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12854 * target.c (target_pass_signals): Add argument.
12855 * remote.c (remote_pass_signals): Add 'self' argument.
12856 (remote_start_remote): Update.
12857 * procfs.c (procfs_pass_signals): Add 'self' argument.
12858 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12859 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12860 (linux_nat_create_inferior, linux_nat_attach): Update.
12861
da82bd6b
TT
128622014-02-19 Tom Tromey <tromey@redhat.com>
12863
12864 * windows-nat.c (windows_can_run): Add 'self' argument.
12865 * target.h (struct target_ops) <to_can_run>: Add argument.
12866 (target_can_run): Add argument.
12867 * target.c (debug_to_can_run): Add argument.
12868 (update_current_target): Update.
12869 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12870 * inf-child.c (inf_child_can_run): Add 'self' argument.
12871 * go32-nat.c (go32_can_run): Add 'self' argument.
12872
d796e1d6
TT
128732014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 * target.h (struct target_ops) <to_has_exited>: Add argument.
12876 (target_has_exited): Add argument.
12877 * target.c (debug_to_has_exited): Add argument.
12878 (update_current_target): Update.
12879
ff214e67
TT
128802014-02-19 Tom Tromey <tromey@redhat.com>
12881
12882 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12883 argument.
12884 (target_set_syscall_catchpoint): Add argument.
12885 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12886 argument.
12887 * target.c (update_current_target): Update.
12888
758e29d2
TT
128892014-02-19 Tom Tromey <tromey@redhat.com>
12890
12891 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12892 argument.
12893 (target_remove_exec_catchpoint): Add argument.
12894 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12895 (update_current_target): Update.
12896 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12897 argument.
12898
ba025e51
TT
128992014-02-19 Tom Tromey <tromey@redhat.com>
12900
12901 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12902 argument.
12903 (target_insert_exec_catchpoint): Add argument.
12904 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12905 (update_current_target): Update.
12906 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12907 argument.
12908
e98cf0cd
TT
129092014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12912 argument.
12913 (target_remove_vfork_catchpoint): Add argument.
12914 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12915 (update_current_target): Update.
12916 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12917 argument.
12918
3ecc7da0
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12922 argument.
12923 (target_insert_vfork_catchpoint): Add argument.
12924 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12925 (update_current_target): Update.
12926 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12927 argument.
12928
973fc227
TT
129292014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12932 argument.
12933 (target_remove_fork_catchpoint): Add argument.
12934 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12935 (update_current_target): Update.
12936 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12937 argument.
12938
a863b201
TT
129392014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12942 argument.
12943 (target_insert_fork_catchpoint): Add argument.
12944 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12945 (update_current_target): Update.
12946 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12947 argument.
12948
2e97a79e
TT
129492014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12952 argument.
12953 (target_post_startup_inferior): Add argument.
12954 * target.c (debug_to_post_startup_inferior): Add argument.
12955 (update_current_target): Update.
12956 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12957 argument.
12958 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12959 argument.
12960 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12961 argument.
12962 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12963 argument.
12964 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12965 'self' argument.
12966 (super_post_startup_inferior): Likewise.
12967 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12968 'self' argument.
12969 (super_post_startup_inferior): Likewise.
12970 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12971 Add 'self' argument.
12972 (super_post_startup_inferior): Likewise.
12973
71a9f134
TT
129742014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (struct target_ops) <to_load>: Add argument.
12977 * target.c (target_load): Add argument.
12978 (debug_to_load): Add argument.
12979 (update_current_target): Update.
12980 * remote.c (remote_load): Add 'self' argument.
12981 * remote-sim.c (gdbsim_load): Add 'self' argument.
12982 * remote-mips.c (mips_load): Add 'self' argument.
12983 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12984 * monitor.c (monitor_load): Add 'self' argument.
12985 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12986
0a4f40a2
TT
129872014-02-19 Tom Tromey <tromey@redhat.com>
12988
12989 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12990 (target_terminal_info): Add argument.
12991 * target.c (debug_to_terminal_info): Add argument.
12992 (default_terminal_info): Likewise.
12993 * inflow.c (child_terminal_info): Add 'self' argument.
12994 * inferior.h (child_terminal_info): Add 'self' argument.
12995 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12996
ae3bd431
TT
129972014-02-19 Tom Tromey <tromey@redhat.com>
12998
12999 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13000 argument.
13001 (target_terminal_save_ours): Add argument.
13002 * target.c (debug_to_terminal_save_ours): Add argument.
13003 (update_current_target): Update.
13004 * inflow.c (terminal_save_ours): Add 'self' argument.
13005 * inferior.h (terminal_save_ours): Add 'self' argument.
13006
e3594fd1
TT
130072014-02-19 Tom Tromey <tromey@redhat.com>
13008
13009 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13010 (target_terminal_ours): Add argument.
13011 * target.c (debug_to_terminal_ours): Add argument.
13012 (update_current_target): Update.
13013 * remote.c (remote_terminal_ours): Add 'self' argument.
13014 (remote_close): Update.
13015 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13016 * inflow.c (terminal_ours): Add 'self' argument.
13017 * inferior.h (terminal_ours): Add 'self' argument.
13018 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13019
2e1e1a19
TT
130202014-02-19 Pedro Alves <palves@redhat.com>
13021 Tom Tromey <tromey@redhat.com>
13022
13023 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13024 argument.
13025 (target_terminal_ours_for_output): Add argument.
13026 * target.c (debug_to_terminal_ours_for_output): Add argument.
13027 (update_current_target): Update.
13028 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13029 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13030 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13031
d2f640d4
TT
130322014-02-19 Tom Tromey <tromey@redhat.com>
13033
13034 * target.h (struct target_ops) <to_terminal_inferior>: Add
13035 argument.
13036 * target.c (target_terminal_inferior): Add argument.
13037 (update_current_target): Update.
13038 * remote.c (remote_terminal_inferior): Add 'self' argument.
13039 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13040 * inflow.c (terminal_inferior): Add 'self' argument.
13041 * inferior.h (terminal_inferior): Add 'self' argument.
13042 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13043 (go32_terminal_inferior): Add 'self' argument.
13044
c42bf286
TT
130452014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13048 (target_terminal_init): Add argument.
13049 * target.c (debug_to_terminal_init): Add argument.
13050 (update_current_target): Update.
13051 * inflow.c (terminal_init_inferior): Add 'self' argument.
13052 * inferior.h (terminal_init_inferior): Add 'self' argument.
13053 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13054 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13055
c3a5ff89
TT
130562014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops)
13059 <to_can_accel_watchpoint_condition>: Add argument.
13060 (target_can_accel_watchpoint_condition): Add argument.
13061 * target.c (debug_to_can_accel_watchpoint_condition): Add
13062 argument.
13063 (update_current_target): Update.
13064 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13065 'self' argument.
13066
31568a15
TT
130672014-02-19 Tom Tromey <tromey@redhat.com>
13068
13069 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13070 Add argument.
13071 (target_region_ok_for_hw_watchpoint): Add argument.
13072 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13073 (default_region_ok_for_hw_watchpoint): Add argument.
13074 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13075 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13076 argument.
13077 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13078 argument.
13079 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13080 argument.
13081 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13082 'self' argument.
13083 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13084 'self' argument.
13085 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13086 'self' argument.
13087 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13088 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13089 'self' argument.
13090 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13091 Add 'self' argument.
13092
7bb99c53
TT
130932014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13096 argument.
13097 (target_insert_watchpoint): Add argument.
13098 * target.c (debug_to_insert_watchpoint): Add argument.
13099 (update_current_target): Update.
13100 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13101 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13102 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13103 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13104 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13105 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13106 argument.
13107 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13108 (procfs_insert_hw_watchpoint): Add 'self' argument.
13109 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13110 argument.
13111 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13112 argument.
13113 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13114 argument.
13115 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13116 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13117 argument.
13118 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13119 'self' argument.
13120
11b5219a
TT
131212014-02-19 Tom Tromey <tromey@redhat.com>
13122
13123 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13124 argument.
13125 (target_remove_watchpoint): Add argument.
13126 * target.c (debug_to_remove_watchpoint): Add argument.
13127 (update_current_target): Update.
13128 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13129 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13130 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13131 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13132 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13133 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13134 argument.
13135 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13136 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13137 argument.
13138 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13139 argument.
13140 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13141 argument.
13142 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13143 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13144 argument.
13145 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13146 'self' argument.
13147
a64dc96c
TT
131482014-02-19 Tom Tromey <tromey@redhat.com>
13149
13150 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13151 argument.
13152 (target_remove_hw_breakpoint): Add argument.
13153 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13154 (update_current_target): Update.
13155 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13156 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13157 argument.
13158 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13159 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13160 argument.
13161 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13162 'self' argument.
13163
23a26771
TT
131642014-02-19 Tom Tromey <tromey@redhat.com>
13165
13166 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13167 argument.
13168 (target_insert_hw_breakpoint): Add argument.
13169 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13170 (update_current_target): Update.
13171 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13172 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13173 argument.
13174 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13175 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13176 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13177 argument.
13178 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13179 'self' argument.
13180
5461485a
TT
131812014-02-19 Tom Tromey <tromey@redhat.com>
13182
13183 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13184 argument.
13185 (target_can_use_hardware_watchpoint): Add argument.
13186 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13187 (update_current_target): Update.
13188 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13189 argument.
13190 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13191 argument.
13192 * remote.c (remote_check_watch_resources): Add 'self' argument.
13193 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13194 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13195 argument.
13196 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13197 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13198 argument.
13199 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13200 argument.
13201 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13202 argument.
13203 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13204 argument.
13205 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13206 argument.
13207 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13208 argument.
13209 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13210 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13211 argument.
13212 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13213 'self' argument.
13214
f045800c
TT
132152014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * target.h (struct target_ops) <to_post_attach>: Add argument.
13218 (target_post_attach): Add argument.
13219 * target.c (debug_to_post_attach): Add argument.
13220 (update_current_target): Update.
13221 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13222 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13223 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13224 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13225 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13226
de90e03d
TT
132272014-02-19 Tom Tromey <tromey@redhat.com>
13228
13229 * windows-nat.c (windows_close): Add 'self' argument.
13230 * tracepoint.c (tfile_close): Add 'self' argument.
13231 * target.h (struct target_ops) <to_close>: Add argument.
13232 * target.c (target_close): Add argument.
13233 (update_current_target): Update.
13234 * remote.c (remote_close): Add 'self' argument.
13235 * remote-sim.c (gdbsim_close): Add 'self' argument.
13236 * remote-mips.c (mips_close): Add 'self' argument.
13237 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13238 * record-full.c (record_full_close): Add 'self' argument.
13239 * record-btrace.c (record_btrace_close): Add 'self' argument.
13240 * monitor.h (monitor_close): Add 'self' argument.
13241 * monitor.c (monitor_close): Add 'self' argument.
13242 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13243 * linux-nat.c (linux_nat_close): Add argument.
13244 * go32-nat.c (go32_close): Add 'self' argument.
13245 * exec.c (exec_close_1): Add 'self' argument.
13246 * ctf.c (ctf_close): Add 'self' argument.
13247 * corelow.c (core_close): Add 'self' argument.
13248 (core_close_cleanup): Update.
13249 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13250 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13251
9dd130a0
TT
132522014-02-19 Tom Tromey <tromey@redhat.com>
13253
13254 * remote.c (remote_load): New function.
13255 (init_remote_ops): Use it.
13256
46917d26
TT
132572014-02-19 Tom Tromey <tromey@redhat.com>
13258
13259 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13260 argument.
13261 * common/linux-btrace.h (linux_supports_btrace): Update.
13262 * remote.c (remote_supports_btrace): Add "self" argument.
13263 * target-delegates.c: Rebuild.
13264 * target.c (target_supports_btrace): Remove.
13265 * target.h (struct target_ops) <to_supports_btrace>: Add
13266 target_ops argument.
13267 (target_supports_btrace): New define.
13268
6b84065d
TT
132692014-02-19 Tom Tromey <tromey@redhat.com>
13270
13271 * record-full.c (record_full_beneath_to_resume_ops)
13272 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13273 (record_full_beneath_to_wait)
13274 (record_full_beneath_to_store_registers_ops)
13275 (record_full_beneath_to_store_registers)
13276 (record_full_beneath_to_xfer_partial_ops)
13277 (record_full_beneath_to_xfer_partial)
13278 (record_full_beneath_to_insert_breakpoint_ops)
13279 (record_full_beneath_to_insert_breakpoint)
13280 (record_full_beneath_to_remove_breakpoint_ops)
13281 (record_full_beneath_to_remove_breakpoint)
13282 (record_full_beneath_to_stopped_by_watchpoint)
13283 (record_full_beneath_to_stopped_data_address)
13284 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13285 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13286 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13287 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13288 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13289 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13290 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13291 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13292 (record_full_resume, record_full_wait_1)
13293 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13294 (record_full_store_registers, record_full_xfer_partial)
13295 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13296 (record_full_async, record_full_core_xfer_partial): Use target
13297 delegation.
13298 * target-delegates.c: Rebuild.
13299 * target.c (current_xfer_partial): Remove.
13300 (update_current_target): Do not INHERIT or de_fault
13301 to_insert_breakpoint, to_remove_breakpoint,
13302 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13303 to_is_async_p, to_async. Do not set to_xfer_partial field.
13304 (default_xfer_partial): Simplify.
13305 (current_xfer_partial): Remove.
13306 (target_wait, target_resume): Simplify.
13307 (find_default_can_async_p, find_default_is_async_p): Update.
13308 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13309 to_xfer_partial, to_stopped_by_watchpoint,
13310 to_stopped_data_address.
13311 (target_store_registers): Simplify.
13312 (forward_target_remove_breakpoint)
13313 (forward_target_insert_breakpoint): Remove.
13314 (target_remove_breakpoint, target_insert_breakpoint)
13315 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13316 * target.h (struct target_ops) <to_resume, to_wait,
13317 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13318 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13319 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13320 markup.
13321 (forward_target_remove_breakpoint)
13322 (forward_target_insert_breakpoint): Remove.
13323 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13324 directly.
13325 (record_btrace_insert_breakpoint): Delegate directly.
13326
1101cb7b
TT
133272014-02-19 Tom Tromey <tromey@redhat.com>
13328
13329 PR build/7701:
13330 * target-delegates.c: New file.
13331 * target.c: Include target-delegates.c.
13332 (init_dummy_target): Call install_dummy_methods.
13333 (complete_target_initialization): Call install_delegators.
13334 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13335 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13336 * make-target-delegates: New file.
13337
8b06beed
TT
133382014-02-19 Tom Tromey <tromey@redhat.com>
13339
13340 * record.c (find_record_target): Use find_target_at.
13341 * target.c (find_target_at): New function.
13342 * target.h (find_target_at): Declare.
13343
6a109b6b
TT
133442014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13347 Add 'ops' argument.
13348 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13349 'ops' argument.
13350 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13351 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13352 'ops' argument.
13353 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13354 argument.
13355 * linux-nat.c (save_sigtrap): Update.
13356 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13357 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13358 (linux_nat_close): Update.
13359 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13360 argument.
13361 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13362 argument.
13363 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13364 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13365 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13366 (tmp_to_async): Add 'ops' argument.
13367 (record_full_stopped_by_watchpoint, record_full_async)
13368 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13369 argument.
13370 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13371 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13372 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13373 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13374 (remote_is_async_p, remote_async): Add 'ops' argument.
13375 (remote_stopped_data_address): Update.
13376 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13377 * target.c (update_current_target)
13378 (find_default_can_async_p, find_default_is_async_p): Update.
13379 (init_dummy_target): Update.
13380 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13381 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13382 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13383 (target_can_async_p, target_is_async_p, target_async)
13384 (target_stopped_by_watchpoint): Update.
13385
e095146b
YQ
133862014-02-19 Yao Qi <yao@codesourcery.com>
13387
13388 PR gdb/16220
13389 * gdbarch.sh: Remove startup_gdbarch.
13390 * gdbarch.c: Regenerated.
13391 * gdbarch.h: Likewise.
13392
bc3c6b36
KB
133932014-02-17 Kevin Buettner <kevinb@redhat.com>
13394
13395 * rl78-tdep.c (rl78_g10_register_name): New function.
13396 (rl78_return_value): Add g10 support.
13397 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13398 g10.
13399
98dc0167 134002014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13401
13402 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13403 (SUBDIR_GUILE_SRCS): Ditto.
13404 (scm-gsmob.o): Ditto.
13405
842c05cd
YQ
134062014-02-17 Yao Qi <yao@codesourcery.com>
13407
13408 * gnu-nat.c (ILL_RPC): Declare defined function.
13409
25c0bd04
YQ
134102014-02-17 Yao Qi <yao@codesourcery.com>
13411
13412 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13413 mach_msg_type_number_t.
13414 (gnu_write_inferior): Likewise.
13415
a9a758e3
YQ
134162014-02-17 Yao Qi <yao@codesourcery.com>
13417
13418 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13419 in format string.
13420 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13421 (inf_validate_procs, inf_signal): Likewise.
13422 (S_exception_raise_request): Likewise.
13423 (do_mach_notify_dead_name): Likewise.
13424 (steal_exc_port): Likewise.
13425 (gnu_read_inferior): Change 'copy_count''s type to
13426 mach_msg_type_number_t.
13427 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13428 format string.
13429
bae8023e
TS
134302014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13431
c82f56d9
TS
13432 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13433 flag. Adjust all users; in particular...
13434 (gnu_wait): ..., don't decrement its value in here...
13435 (gnu_create_inferior): ..., and instead set the flag in here,
13436 around the startup_inferior call, and call that one with
13437 START_INFERIOR_TRAPS_EXPECTED.
13438
3398af6a
TS
13439 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13440 (ILL_RPC): ... new macro.
13441 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13442 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13443 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13444 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13445 functions with ILL_RPC macro.
13446 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13447 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13448 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13449 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13450 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13451 (S_proc_getlogin_reply, S_proc_getsid_reply)
13452 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13453 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13454 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13455 (S_proc_getnports_reply, S_proc_is_important_reply)
13456 (S_proc_get_code_reply): New stub functions, generated with
13457 ILL_RPC macro.
13458
d47642c9
TS
13459 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13460 collected the type check structures.
13461
bae8023e
TS
13462 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13463
8a55ffb0
DE
134642014-02-14 Doug Evans <dje@google.com>
13465
13466 * target.c (target_write_partial): Fix result type.
13467
c2853f3d
JM
134682014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13469
13470 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13471 the proper offsets to access fpregset_t.
13472
ac61d2db
SA
134732014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13474
13475 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13476 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13477 * h8300-tdep.c (setmachinelist): Remove global.
13478 * hppa-tdep.c (hppa_sigtramp): Remove global.
13479 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13480 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13481 * ravenscar-thread.c (update_target_observer): Remove global.
13482 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13483
9d2d0b8b
TT
134842014-02-12 Tom Tromey <tromey@redhat.com>
13485
13486 * common/rsp-low.c: Update comments.
13487 * common/rsp-low.h: Update comments.
13488
a7191e8b
TT
134892014-02-12 Tom Tromey <tromey@redhat.com>
13490
13491 * common/rsp-low.c (convert_ascii_to_int): Remove.
13492 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13493
ff0e980e
TT
134942014-02-12 Tom Tromey <tromey@redhat.com>
13495
13496 * common/rsp-low.h (unhexify): Don't declare.
13497 * common/rsp-low.c (unhexify): Remove.
13498
e9371aff
TT
134992014-02-12 Tom Tromey <tromey@redhat.com>
13500
13501 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13502 * common/rsp-low.c (convert_int_to_ascii): Remove.
13503
971dc0b8
TT
135042014-02-12 Tom Tromey <tromey@redhat.com>
13505
13506 * common/rsp-low.h (hexify): Don't declare.
13507 * common/rsp-low.c (hexify): Remove.
13508
0a822afb
TT
135092014-02-12 Tom Tromey <tromey@redhat.com>
13510
13511 * common/rsp-low.c (hexify): Never take strlen of argument.
13512
9f1b45b0
TT
135132014-02-12 Tom Tromey <tromey@redhat.com>
13514
13515 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13516 * remote.c (extended_remote_run, remote_rcmd)
13517 (remote_download_trace_state_variable, remote_save_trace_data)
13518 (remote_set_trace_notes): Update.
13519 * tracepoint.c (encode_source_string, tfile_write_status)
13520 (tfile_write_uploaded_tsv): Update.
13521
9c3d6531
TT
135222014-02-12 Tom Tromey <tromey@redhat.com>
13523
13524 * tracepoint.c: Include rsp-low.h.
13525 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13526 * remote.c: Include rsp-low.h.
13527 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13528 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13529 (remote_unescape_input): Move to common/rsp-low.c.
13530 * common/rsp-low.h: New file.
13531 * common/rsp-low.c: New file.
13532 * Makefile.in (SFILES): Add common/rsp-low.c.
13533 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13534 (COMMON_OBS): Add rsp-low.o.
13535 (rsp-low.o): New target.
13536
01fd3ea5
TT
135372014-02-12 Tom Tromey <tromey@redhat.com>
13538
13539 * utils.h: Include print-utils.h.
13540 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13541 (int_string, core_addr_to_string, core_addr_to_string_nz)
13542 (hex_string, hex_string_custom): Don't declare.
13543 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13544 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13545 (hex_string_custom, int_string, core_addr_to_string)
13546 (core_addr_to_string_nz, host_address_to_string): Move to
13547 common/print-utils.c.
13548 * common/print-utils.h: New file.
13549 * common/print-utils.c: New file
13550 * Makefile.in (SFILES): Add common/print-utils.c.
13551 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13552 (COMMON_OBS): Add print-utils.o.
13553 (print-utils.o): New target.
13554
9fb50108
TT
135552014-02-12 Tom Tromey <tromey@redhat.com>
13556
13557 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13558
0548b5db
MK
135592014-02-12 Mark Kettenis <kettenis@gnu.org>
13560
13561 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13562
493443a4
MK
135632014-02-12 Mark Kettenis <kettenis@gnu.org>
13564
13565 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13566 if a PT_IO ptrace request returns sucessfully but indicates that 0
13567 bytes were transferred.
13568
706d0883
PA
135692014-02-12 Pedro Alves <palves@redhat.com>
13570 Kevin Buettner <kevinb@redhat.com>
13571
13572 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13573 TYPE_INSTANCE_FLAG_CODE_SPACE.
13574
5caa2f0b
PA
135752014-02-12 Pedro Alves <palves@redhat.com>
13576
13577 * h8300-tdep.c (pseudo_from_raw_register)
13578 (raw_from_pseudo_register): New functions.
13579 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13580 them.
13581
76fd5f74
PA
135822014-02-12 Pedro Alves <palves@redhat.com>
13583
13584 * h8300-tdep.c (h8300_register_sim_regno): New function.
13585 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13586 gdbarch_register_sim_regno hook.
13587
8f008406
SA
135882014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13589
13590 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13591
195abc10
SA
135922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13593
13594 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13595
93ffa5b9
MK
135962014-02-12 Mark Kettenis <kettenis@gnu.org>
13597
13598 * obsd-tdep.h (obsd_init_abi): New prototype.
13599 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13600 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13601 (obsd_init_abi): New functions.
13602 * i386obsd-tdep.c: Include "obsd-tdep.h".
13603 (i386obsd_init_abi): Call obsd_init_abi.
13604 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13605 (amd64obsd_init_abi): Call obsd_init_abi.
13606 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13607 obsd-tdep.c to gdb_target_obs.
13608
49caec94
JM
136092014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13610
13611 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13612 double float arguments to 16-byte in the argument slots.
13613
e1402065
DE
136142014-02-11 Doug Evans <xdje42@gmail.com>
13615
13616 * configure.ac: Don't crash if pkg-config is not found and guile
13617 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13618 in guile checks.
13619 * configure: Regenerate.
13620
edcc890f
YQ
136212014-02-11 Yao Qi <yao@codesourcery.com>
13622
13623 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13624 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13625 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13626 * gnu-nat.c (gnu_xfer_memory): Likewise.
13627 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13628 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13629 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13630 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13631
9b409511
YQ
136322014-02-11 Yao Qi <yao@codesourcery.com>
13633
13634 * target.h (enum target_xfer_error): Rename to ...
13635 (enum target_xfer_status): ... it. New. All users updated.
13636 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13637 New.
13638 (TARGET_XFER_STATUS_ERROR_P): New macro.
13639 (target_xfer_error_to_string): Remove declaration.
13640 (target_xfer_status_to_string): Declare.
13641 (target_xfer_partial_ftype): Adjust it.
13642 (struct target_ops) <to_xfer_partial>: Return
13643 target_xfer_status. Add argument xfered_len. Update
13644 comments.
13645 * target.c (target_xfer_error_to_string): Rename to ...
13646 (target_xfer_status_to_string): ... it. New. All callers
13647 updated.
13648 (target_read_live_memory): Likewise. Call target_xfer_partial
13649 instead of target_read.
13650 (memory_xfer_live_readonly_partial): Return
13651 target_xfer_status. Add argument xfered_len.
13652 (raw_memory_xfer_partial): Likewise.
13653 (memory_xfer_partial_1): Likewise.
13654 (memory_xfer_partial): Likewise.
13655 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13656 properly. Update debug message.
13657 (default_xfer_partial, current_xfer_partial): Likewise.
13658 (target_write_partial): Likewise.
13659 (target_read_partial): Likewise. All callers updated.
13660 (read_whatever_is_readable): Likewise.
13661 (target_write_with_progress): Likewise.
13662 (target_read_alloc_1): Likewise.
13663
13664 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13665 * auxv.c (procfs_xfer_auxv): Likewise.
13666 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13667 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13668 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13669 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13670 * corefile.c (read_memory): Adjust.
13671 * corelow.c (core_xfer_partial): Likewise.
13672 * ctf.c (ctf_xfer_partial): Likewise.
13673 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13674 updated.
13675 (darwin_xfer_partial): Likewise.
13676 * exec.c (section_table_xfer_memory_partial): Likewise. All
13677 callers updated.
13678 (exec_xfer_partial): Likewise.
13679 * exec.h (section_table_xfer_memory_partial): Update
13680 declaration.
13681 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13682 negative.
13683 (gnu_xfer_partial): Likewise.
13684 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13685 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13686 (ia64_hpux_xfer_solib_got): Likewise.
13687 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13688 type of 'partial_len' to ULONGEST.
13689 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13690 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13691 (linux_nat_xfer_partial): Likewise.
13692 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13693 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13694 * monitor.c (monitor_xfer_memory): Likewise.
13695 (monitor_xfer_partial): Likewise.
13696 * procfs.c (procfs_xfer_partial): Likewise.
13697 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13698 * record-full.c (record_full_xfer_partial): Likewise.
13699 (record_full_core_xfer_partial): Likewise.
13700 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13701 (gdbsim_xfer_partial): Likewise.
13702 * remote.c (remote_write_bytes_aux): Likewise. All callers
13703 updated.
13704 (remote_write_bytes, remote_read_bytes): Likewise. All
13705 callers updated.
13706 (remote_flash_erase): Likewise. All callers updated.
13707 (remote_write_qxfer): Likewise. All callers updated.
13708 (remote_read_qxfer): Likewise. All callers updated.
13709 (remote_xfer_partial): Likewise.
13710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13711 (rs6000_xfer_shared_libraries): Likewise.
13712 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13713 (sol_thread_xfer_partial): Likewise.
13714 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13715 (sparc_xfer_partial): Likewise.
13716 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13717 updated.
13718 (spu_xfer_partial): Likewise.
13719 * spu-multiarch.c (spu_xfer_partial): Likewise.
13720 * tracepoint.c (tfile_xfer_partial): Likewise.
13721 * windows-nat.c (windows_xfer_memory): Likewise.
13722 (windows_xfer_shared_libraries): Likewise.
13723 (windows_xfer_partial): Likewise.
13724 * valprint.c: Replace 'target_xfer_error' with
13725 'target_xfer_status' in comments.
13726
a8e63083
JB
137272014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13728
13729 Checked in by Joel Brobecker <brobecker@adacore.com>.
13730 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13731
e86b67d3
JB
137322014-02-11 Joel Brobecker <brobecker@adacore.com>
13733
13734 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13735 function parameters.
13736
4b7d1f7f
WN
137372014-02-10 Will Newton <will.newton@linaro.org>
13738
13739 * elfread.c (elf_rel_plt_read): Look for a .got section if
13740 looking up .got.plt fails.
13741 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13742 on address passed to elf_gnu_ifunc_record_cache.
13743 (elf_gnu_ifunc_resolve_addr): Likewise.
13744 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13745
961842b2
JM
137462014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13747
13748 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13749 (X_RETTURN): New macro.
13750 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13751
13752 * sparc64-tdep.c (sparc64_init_abi): Hook
13753 sparc_in_function_epilogue_p.
13754
3f03e7b1
GB
137552014-02-10 Gary Benson <gbenson@redhat.com>
13756
13757 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13758 Rename name_matcher to symbol_matcher.
13759
96f861ef
GB
137602014-02-10 Gary Benson <gbenson@redhat.com>
13761
13762 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13763 Use expand_symtabs_file_matcher_ftype and
13764 expand_symtabs_symbol_matcher_ftype.
13765
ee01b665
JB
137662014-02-10 Joel Brobecker <brobecker@adacore.com>
13767
13768 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13769 (struct ada_symbol_cache): New.
13770 (ada_free_symbol_cache): Forward declare.
13771 (struct ada_pspace_data): New.
13772 (ada_pspace_data_handle): New static global.
13773 (get_ada_pspace_data, ada_pspace_data_cleanup)
13774 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13775 (cache_space, cache): Delete, now folded inside struct
13776 ada_pspace_data.
13777 (ada_get_symbol_cache): New function.
13778 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13779 implementation.
13780 (_initialize_ada_language): Remove initialization of cache_space.
13781 Move call to observer_attach_inferior_exit up, grouping it
13782 with the other observer registrations inside this function.
13783 Rename command to be more general. Add call to
13784 register_program_space_data_with_cleanup.
13785
143adbbf
JB
137862014-02-10 Joel Brobecker <brobecker@adacore.com>
13787
13788 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13789 ada_new_objfile_observer.
13790 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13791 (_initialize_tasks): Update uses of ada_new_objfile_observer
13792 and ada_tasks_normal_stop_observer.
13793
aa4fb036
JB
137942014-02-10 Joel Brobecker <brobecker@adacore.com>
13795
13796 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13797 returned by the 'Length attribute to integer.
13798
9dee8cc6
JB
137992014-02-10 Joel Brobecker <brobecker@adacore.com>
13800
13801 * ada-lang.c (_initialize_ada_language): Initialize
13802 cache_space obstack.
13803
3d9434b5
JB
138042014-02-10 Joel Brobecker <brobecker@adacore.com>
13805
13806 * ada-lang.c (HASH_SIZE): New macro.
13807 (struct cache_entry): New type.
13808 (cache_space, cache): New static globals.
13809 (ada_clear_symbol_cache, find_entry): New functions.
13810 (lookup_cached_symbol, cache_symbol): Implement.
13811 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13812 (_initialize_ada_language): Attach ada_new_objfile_observer
13813 and ada_free_objfile_observer.
13814
f0c5f9b2
JB
138152014-02-10 Joel Brobecker <brobecker@adacore.com>
13816
13817 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13818 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13819 struct block * parameter.
13820 (ada_lookup_symbol_list_worker): Constify local variable "block".
13821 Remove cast which is no longer necessary.
13822
ed3ef339
DE
138232014-02-10 Doug Evans <xdje42@gmail.com>
13824
13825 Add Guile as an extension language.
13826 * NEWS: Mention Guile scripting.
13827 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13828 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13829 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13830 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13831 (CLIBS): Add GUILE_LIBS.
13832 (install-guile): New rule.
13833 (guile.o): New rule.
13834 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13835 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13836 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13837 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13838 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13839 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13840 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13841 * configure.ac: New option --with-guile.
13842 * configure: Regenerate.
13843 * config.in: Regenerate.
13844 * auto-load.c: Remove #include "python/python.h". Add #include
13845 "gdb/section-scripts.h".
13846 (source_section_scripts): Handle Guile scripts.
13847 (_initialize_auto_load): Add name of Guile objfile script to
13848 scripts-directory help text.
13849 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13850 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13851 (struct breakpoint): New member scm_bp_object.
13852 * defs.h (enum command_control_type): New value guile_control.
13853 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13854 "extension.h".
13855 (show_user): Update comment.
13856 (_initialize_cli_cmds): Update help text for "show user". Update help
13857 text for max-user-call-depth.
13858 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13859 "extension.h".
13860 (multi_line_command_p): Add guile_control.
13861 (print_command_lines): Handle guile_control.
13862 (execute_control_command, recurse_read_control_structure): Ditto.
13863 (process_next_line): Recognize "guile" commands.
13864 * disasm.c (gdb_disassemble_info): Make non-static.
13865 * disasm.h: #include "dis-asm.h".
13866 (struct gdbarch): Add forward decl.
13867 (gdb_disassemble_info): Declare.
13868 * extension.c: #include "guile/guile.h".
13869 (extension_languages): Add guile.
13870 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13871 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13872 * gdbtypes.c (get_unsigned_type_max): New function.
13873 (get_signed_type_minmax): New function.
13874 * gdbtypes.h (get_unsigned_type_max): Declare.
13875 (get_signed_type_minmax): Declare.
13876 * guile/README: New file.
13877 * guile/guile-internal.h: New file.
13878 * guile/guile.c: New file.
13879 * guile/guile.h: New file.
13880 * guile/scm-arch.c: New file.
13881 * guile/scm-auto-load.c: New file.
13882 * guile/scm-block.c: New file.
13883 * guile/scm-breakpoint.c: New file.
13884 * guile/scm-disasm.c: New file.
13885 * guile/scm-exception.c: New file.
13886 * guile/scm-frame.c: New file.
13887 * guile/scm-gsmob.c: New file.
13888 * guile/scm-iterator.c: New file.
13889 * guile/scm-lazy-string.c: New file.
13890 * guile/scm-math.c: New file.
13891 * guile/scm-objfile.c: New file.
13892 * guile/scm-ports.c: New file.
13893 * guile/scm-pretty-print.c: New file.
13894 * guile/scm-safe-call.c: New file.
13895 * guile/scm-string.c: New file.
13896 * guile/scm-symbol.c: New file.
13897 * guile/scm-symtab.c: New file.
13898 * guile/scm-type.c: New file.
13899 * guile/scm-utils.c: New file.
13900 * guile/scm-value.c: New file.
13901 * guile/lib/gdb.scm: New file.
13902 * guile/lib/gdb/boot.scm: New file.
13903 * guile/lib/gdb/experimental.scm: New file.
13904 * guile/lib/gdb/init.scm: New file.
13905 * guile/lib/gdb/iterator.scm: New file.
13906 * guile/lib/gdb/printing.scm: New file.
13907 * guile/lib/gdb/types.scm: New file.
13908 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13909 (VPATH): Add $(GUILE_SRCDIR).
13910 (GUILE_DIR): New variable.
13911 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13912 (all): Add stamp-guile dependency.
13913 (stamp-guile): New rule.
13914 (clean-guile, install-guile, uninstall-guile): New rules.
13915 (install-only): Add install-guile dependency.
13916 (uninstall): Add uninstall-guile dependency.
13917 (clean): Add clean-guile dependency.
13918
ac020ec5
DE
139192014-02-09 Doug Evans <xdje42@gmail.com>
13920
13921 Revert this patch (which I approved, mea culpa).
13922
13923 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13924
13925 * Makefile.in (all-lib): Remove.
13926 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13927
2a081c59
JK
139282014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13929
13930 Fix Python stack corruption.
13931 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13932 gdb_py_longest.
13933
0a6bd22d
MK
139342014-02-08 Mark Kettenis <kettenis@gnu.org>
13935
13936 * Makefile.in (all-lib): Remove.
13937 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13938
1a860409
DE
139392014-02-07 Doug Evans <dje@google.com>
13940
13941 * extension-priv.h (extension_language_script_ops): Add comment.
13942 (extension_language_ops): Add comment.
caf5a491 13943 (active_ext_lang_state): Fix typo in comment.
1a860409 13944
d137e6dc
PA
139452014-02-07 Pedro Alves <palves@redhat.com>
13946
0dcb32c3 13947 PR breakpoints/16292
d137e6dc
PA
13948 * infrun.c (handle_signal_stop) <signal arrives while stepping
13949 over a breakpoint>: Switch back to the stepping thread.
13950
ce6d0892
YQ
139512014-02-07 Yao Qi <yao@codesourcery.com>
13952
13953 * target.c (target_xfer_partial): Return zero if LEN is zero.
13954
2ed4b548
YQ
139552014-02-07 Yao Qi <yao@codesourcery.com>
13956
13957 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13958 (ld_so_xfer_auxv): Likewise.
13959 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13960 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13961 * corelow.c (core_xfer_partial): Likewise.
13962 * ctf.c (ctf_xfer_partial): Likewise.
13963 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13964 (darwin_xfer_partial): Likewise.
13965 * exec.c (exec_xfer_partial): Likewise.
13966 * gnu-nat.c (gnu_xfer_partial): Likewise.
13967 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13968 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13969 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13970 * linux-nat.c (linux_xfer_siginfo): Likewise.
13971 (linux_proc_xfer_spu): Likewise.
13972 * procfs.c (procfs_xfer_partial): Likewise.
13973 * record-full.c (record_full_xfer_partial): Likewise.
13974 (record_full_core_xfer_partial): Likewise.
13975 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13976 * remote.c (remote_write_qxfer): Likewise.
13977 (remote_write_qxfer, remote_read_qxfer): Likewise.
13978 (remote_xfer_partial): Likewise.
13979 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13980 (rs6000_xfer_shared_libraries): Likewise.
13981 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13982 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13983 (spu_xfer_partial): Likewise.
13984 * target.c (memory_xfer_partial_1): Likewise.
13985 * tracepoint.c (tfile_xfer_partial): Likewise.
13986 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13987 (windows_xfer_partial): Likewise.
13988
c09f20e4
YQ
139892014-02-07 Yao Qi <yao@codesourcery.com>
13990
13991 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13992 comments.
13993 (core_xfer_shared_libraries_aix): Likewise.
13994 * gdbarch.c, gdbarch.h: Regenerated.
13995 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13996 ULONGEST. Change 'len_avail' type to ULONGEST.
13997 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13998 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13999 declaration.
14000 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14001
8635b3bf
YQ
140022014-02-07 Yao Qi <yao@codesourcery.com>
14003
14004 * corefile.c (memory_error): Get 'exception' from ERR and pass
14005 'exception' to throw_error.
14006
6dddc817
DE
140072014-02-06 Doug Evans <xdje42@gmail.com>
14008
14009 * configure.ac (libpython checking): Remove all but python.o from
14010 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14011 * configure: Regenerate.
14012
14013 * Makefile.in (SFILES): Add extension.c.
14014 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14015 (COMMON_OBS): Add extension.o.
14016 * extension.h: New file.
14017 * extension-priv.h: New file.
14018 * extension.c: New file.
14019
14020 * python/python-internal.h: #include "extension.h".
14021 (gdbpy_auto_load_enabled): Declare.
14022 (gdbpy_apply_val_pretty_printer): Declare.
14023 (gdbpy_apply_frame_filter): Declare.
14024 (gdbpy_preserve_values): Declare.
14025 (gdbpy_breakpoint_cond_says_stop): Declare.
14026 (gdbpy_breakpoint_has_cond): Declare.
14027 (void source_python_script_for_objfile): Delete.
14028 * python/python.c: #include "extension-priv.h".
14029 Delete inclusion of "observer.h".
14030 (extension_language_python): Moved here and renamed from
14031 script_language_python in py-auto-load.c.
14032 Redefined to be of type extension_language_defn.
14033 (python_extension_script_ops): New global.
14034 (python_extension_ops): New global.
14035 (struct python_env): New member previous_active.
14036 (restore_python_env): Call restore_active_ext_lang.
14037 (ensure_python_env): Call set_active_ext_lang.
14038 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14039 New arg extlang.
14040 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14041 New arg extlang.
14042 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14043 New arg extlang.
14044 (gdbpy_eval_from_control_command): Renamed from
14045 eval_python_from_control_command, made static. New arg extlang.
14046 (gdbpy_source_script) Renamed from source_python_script, made static.
14047 New arg extlang.
14048 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14049 result to int. New arg extlang.
14050 (gdbpy_source_objfile_script): Renamed from
14051 source_python_script_for_objfile, made static. New arg extlang.
14052 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14053 static. New args extlang, extlang_printers. Change result type to
14054 "void".
14055 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14056 static. New arg extlang. Rename arg printers to extlang_printers
14057 and change type to ext_lang_type_printers *.
14058 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14059 static. Replace argument arg with extlang, extlang_printers.
14060 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14061 (!HAVE_PYTHON, source_python_script): Delete.
14062 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14063 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14064 (!HAVE_PYTHON, start_type_printers): Delete.
14065 (!HAVE_PYTHON, apply_type_printers): Delete.
14066 (!HAVE_PYTHON, free_type_printers): Delete.
14067 (_initialize_python): Delete call to observer_attach_before_prompt.
14068 (finalize_python): Set/restore active extension language.
14069 (gdbpy_finish_initialization) Renamed from
14070 finish_python_initialization, made static. New arg extlang.
14071 (gdbpy_initialized): New function.
14072 * python/python.h: #include "extension.h". Delete #include
14073 "value.h", "mi/mi-cmds.h".
14074 (extension_language_python): Declare.
14075 (GDBPY_AUTO_FILE_NAME): Delete.
14076 (enum py_bt_status): Moved to extension.h and renamed to
14077 ext_lang_bt_status.
14078 (enum frame_filter_flags): Moved to extension.h.
14079 (enum py_frame_args): Moved to extension.h and renamed to
14080 ext_lang_frame_args.
14081 (finish_python_initialization): Delete.
14082 (eval_python_from_control_command): Delete.
14083 (source_python_script): Delete.
14084 (apply_val_pretty_printer): Delete.
14085 (apply_frame_filter): Delete.
14086 (preserve_python_values): Delete.
14087 (gdbpy_script_language_defn): Delete.
14088 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14089 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14090
14091 * auto-load.c: #include "extension.h".
14092 (GDB_AUTO_FILE_NAME): Delete.
14093 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14094 (script_language_gdb): Delete, moved to extension.c and renamed to
14095 extension_language_gdb.
14096 (source_gdb_script_for_objfile): Delete.
14097 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14098 (loaded_script): Change type of language member to
14099 struct extension_language_defn *.
14100 (init_loaded_scripts_info): Initialize
14101 unsupported_script_warning_printed.
14102 (maybe_add_script): Make static. Change type of language arg to
14103 struct extension_language_defn *.
14104 (clear_section_scripts): Reset unsupported_script_warning_printed.
14105 (auto_load_objfile_script_1): Rewrite to use extension language API.
14106 (auto_load_objfile_script): Make public. Remove support-compiled-in
14107 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14108 (source_section_scripts): Rewrite to use extension language API.
14109 (load_auto_scripts_for_objfile): Rewrite to use
14110 auto_load_scripts_for_objfile.
14111 (collect_matching_scripts_data): Change type of language member to
14112 struct extension_language_defn *.
14113 (auto_load_info_scripts): Change type of language arg to
14114 struct extension_language_defn *.
14115 (unsupported_script_warning_print): New function.
14116 (script_not_found_warning_print): Make static.
14117 (_initialize_auto_load): Rewrite construction of scripts-directory
14118 help.
14119 * auto-load.h (struct objfile): Add forward decl.
14120 (struct script_language): Delete.
14121 (struct auto_load_pspace_info): Add forward decl.
14122 (struct extension_language_defn): Add forward decl.
14123 (maybe_add_script): Delete.
14124 (auto_load_objfile_script): Declare.
14125 (script_not_found_warning_print): Delete.
14126 (auto_load_info_scripts): Update prototype.
14127 (auto_load_gdb_scripts_enabled): Declare.
14128 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14129 auto_load_python_scripts_enabled and made public.
14130 (script_language_python): Delete, moved to python.c.
14131 (gdbpy_script_language_defn): Delete.
14132 (info_auto_load_python_scripts): Update to use
14133 extension_language_python.
14134
14135 * breakpoint.c (condition_command): Replace call to
14136 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14137 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14138 with call to breakpoint_ext_lang_cond_says_stop.
14139 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14140 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14141 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14142 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14143 New arg slang.
14144 (local_setattro): Print name of extension language with existing
14145 stop condition.
14146
14147 * valprint.c (val_print, value_print): Update to call
14148 apply_ext_lang_val_pretty_printer.
14149 * cp-valprint.c (cp_print_value): Update call to
14150 apply_ext_lang_val_pretty_printer.
14151 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14152 (gdbpy_apply_val_pretty_printer): Renamed from
14153 apply_val_pretty_printer. New arg extlang.
14154 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14155
14156 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14157 extension language API.
14158 * cli/cli-script.c (execute_control_command): Update to call
14159 eval_ext_lang_from_control_command.
14160
14161 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14162 enum ext_lang_bt_status values. Update call to
14163 apply_ext_lang_frame_filter.
14164 (mi_cmd_stack_list_locals): Ditto.
14165 (mi_cmd_stack_list_args): Ditto.
14166 (mi_cmd_stack_list_variables): Ditto.
14167 * mi/mi-main.c: Delete #include "python/python-internal.h".
14168 Add #include "extension.h".
14169 (mi_cmd_list_features): Replace reference to python internal variable
14170 gdb_python_initialized with call to ext_lang_initialized_p.
14171
14172 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14173 Update to use enum ext_lang_frame_args. Update to call
14174 apply_ext_lang_frame_filter.
14175 * python/py-framefilter.c (extract_sym): Update to use enum
14176 ext_lang_bt_status.
14177 (extract_value, py_print_type, py_print_value): Ditto.
14178 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14179 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14180 (py_print_frame): Ditto.
14181 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14182 New arg extlang. Update to use enum ext_lang_bt_status.
14183
14184 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14185 finish_python_initialization. Replace with call to
14186 finish_ext_lang_initialization.
14187
14188 * typeprint.c (do_free_global_table): Update to call
14189 free_ext_lang_type_printers.
14190 (create_global_typedef_table): Update to call
14191 start_ext_lang_type_printers.
14192 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14193 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14194 (type_print_options): Change type of global_printers from "void *"
14195 to "struct ext_lang_type_printers *".
14196
14197 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14198 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14199 (gdbpy_preserve_values): Renamed from preserve_python_values.
14200 New arg extlang.
14201 (!HAVE_PYTHON, preserve_python_values): Delete.
14202
14203 * utils.c (quit_flag): Delete, moved to extension.c.
14204 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14205 extension.c.
14206
14207 * eval.c: Delete #include "python/python.h".
14208 * main.c: Delete #include "python/python.h".
14209
14210 * defs.h: Update comment.
14211
6af79985
JB
142122014-02-06 Joel Brobecker <brobecker@adacore.com>
14213
14214 GDB 7.7 released.
14215
12c5175d
MK
142162014-02-05 Mark Kettenis <kettenis@gnu.org>
14217
14218 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14219 defined.
14220
8dc5b319
YQ
142212014-02-05 Yao Qi <yao@codesourcery.com>
14222
14223 * remote.c (remote_pass_signals): Remove local 'buf' and use
14224 rs->buf.
14225 (remote_program_signals): Likewise.
14226
de7b2893
YQ
142272014-02-05 Yao Qi <yao@codesourcery.com>
14228
14229 * ctf.c: Include "inferior.h" and "gdbthread.h".
14230 (CTF_PID): A new macro.
14231 (ctf_open): Call inferior_appeared and add_thread_silent.
14232 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14233 (ctf_thread_alive): New function.
14234 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14235
66d032ac
YQ
142362014-02-05 Yao Qi <yao@codesourcery.com>
14237
14238 Revert this patch:
14239
14240 2013-05-24 Yao Qi <yao@codesourcery.com>
14241
14242 * tracepoint.c (TFILE_PID): Remove.
14243 (tfile_open): Don't add thread and inferior.
14244 (tfile_close): Don't set 'inferior_ptid'. Don't call
14245 exit_inferior_silent.
14246 (tfile_thread_alive): Remove.
14247 (init_tfile_ops): Don't set field 'to_thread_alive' of
14248 tfile_ops.
14249
f4ccffad
CE
142502014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14251
14252 * remote.c (remote_start_remote): Call remote_check_symbols even
14253 if only symbol-file (not file) has been given.
14254
591a12a1
UW
142552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14256
14257 * gdbarch.sh (skip_entrypoint): New callback.
14258 * gdbarch.c, gdbarch.h: Regenerate.
14259 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14260 * infrun.c (fill_in_stop_func): Likewise.
14261 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14262 (ppc_elfv2_elf_make_msymbol_special): New function.
14263 (ppc_elfv2_skip_entrypoint): Likewise.
14264 (ppc_linux_init_abi): Install them for ELFv2.
14265
cc0e89c5
UW
142662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14267
14268 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14269 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14270 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14271 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14272 structures returned in GPRs.
14273
52f548e4
UW
142742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14275
14276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14277 offset to the stack parameter list for the ELFv2 ABI.
14278
d4094b6a
UW
142792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14280
14281 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14282 set_gdbarch_convert_from_func_ptr_addr and
14283 set_gdbarch_elf_make_msymbol_special for ELFv1.
14284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14285 function descriptors on ELFv1.
14286 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14287 set up r12 at function entry.
14288
cd453cd0
UW
142892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14290
14291 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14292 (struct gdbarch_tdep): New member elf_abi.
14293
14294 * rs6000-tdep.c: Include "elf/ppc64.h".
14295 (rs6000_gdbarch_init): Detect ELF ABI version.
14296
0ff3e01f
UW
142972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14298
14299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14300 within a register pair holding a DFP 128-bit value on little-endian.
14301 (ppc64_sysv_abi_return_value_base): Likewise.
14302 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14303 (dfp_pseudo_register_write): Likewise.
14304
5b757e5d
UW
143052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14306
14307 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14308 offset on little-endian when passing _Decimal32.
14309 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14310
084ee545
UW
143112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14312
14313 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14314 of the overlapped FP register within the VSX register on little-
14315 endian platforms.
14316 (efpr_pseudo_register_write): Likewise.
14317
d63167af
UW
143182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14319
14320 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14321 offset on little-endian when passing small structures.
14322
e765b44c
UW
143232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14324
14325 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14326 (struct ppc64_sysv_argpos): New data structure.
14327 (ppc64_sysv_abi_push_float): Remove.
14328 (ppc64_sysv_abi_push_val): New function.
14329 (ppc64_sysv_abi_push_integer): Likewise.
14330 (ppc64_sysv_abi_push_freg): Likewise.
14331 (ppc64_sysv_abi_push_vreg): Likewise.
14332 (ppc64_sysv_abi_push_param): Likewise.
14333 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14334 (ppc64_sysv_abi_return_value_base): New function.
14335 (ppc64_sysv_abi_return_value): Refactor to use it.
14336
36c24d95
UW
143372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14338
14339 * NEWS: Document new target powerpc64le-*-linux*.
14340
26fd9228
MK
143412014-02-04 Mark Kettenis <kettenis@gnu.org>
14342
14343 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14344 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14345 core dumps.
14346 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14347 register set used in ELF core dumps. Add floating-point register set.
14348
c5bb7362
KB
143492014-02-03 Kevin Buettner <kevinb@redhat.com>
14350
74228e77 14351 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14352 dwarf2_to_gdb[] table using symbolic constants. Adjust
14353 penultimate entry from number representing the PC register
14354 to symbolic constant representing the MDR register. Add
14355 constant for the PC register to the end of the table.
14356
af09351e
MK
143572014-02-03 Mark Kettenis <kettenis@gnu.org>
14358
14359 * bsd-kvm.c: Include <sys/param.h>
14360
8507e05d
MK
143612014-02-03 Mark Kettenis <kettenis@gnu.org>
14362
14363 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14364
ae56bfb8
JB
143652014-01-31 Joel Brobecker <brobecker@adacore.com>
14366
14367 * ada-lang.h (clear_ada_sym_cache): Delete.
14368
718ee4dc
UW
143692014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14370
14371 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14372
401e27fd
JM
143732014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14374
14375 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14376 the sigreturn register save area only if the syscall is
14377 sigreturn.
14378
a7c88acd
JB
143792014-01-29 Joel Brobecker <brobecker@adacore.com>
14380
14381 * valops.c (value_slice): Minor reformatting.
14382
fa0079ea
UW
143832014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14384
14385 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14386
c6044dd1
JB
143872014-01-28 Joel Brobecker <brobecker@adacore.com>
14388
14389 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14390 New static globals.
14391 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14392 (ada_ignore_descriptive_types_p): New static global.
14393 (find_parallel_type_by_descriptive_type): Return immediately
14394 if ada_ignore_descriptive_types_p is set.
14395 (_initialize_ada_language): Register new commands "maintenance
14396 set ada", "maintenance show ada", "maintenance set ada
14397 ignore-descriptive-types" and "maintenance show ada
14398 ignore-descriptive-types".
14399 * NEWS: Add entry for new "maint ada set/show
14400 ignore-descriptive-types" commands.
14401
568e808b
MM
144022014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14403
14404 * record-btrace.c (record_btrace_close): Call btrace_teardown
14405 for all threads.
14406
467d141b
JB
144072014-01-27 Joel Brobecker <brobecker@adacore.com>
14408
14409 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14410 "ui-out.h".
14411
fb151210
JB
144122014-01-27 Joel Brobecker <brobecker@adacore.com>
14413
14414 * ada-typeprint (type_is_full_subrange_of_target_type):
14415 New function.
14416 (print_range): Add parameter bounds_prefered_p. If not set,
14417 try printing range types using the name of their base type.
14418 (print_range_type): Add parameter bounds_prefered_p.
14419 Use it in call to print_range.
14420 (print_array_type, ada_print_type): Update calls to print_range
14421 and print_range_type.
14422
aba02109
JB
144232014-01-27 Joel Brobecker <brobecker@adacore.com>
14424
14425 * ada-typeprint.c (print_array_type, print_choices, print_range)
14426 (print_range_bound, print_dynamic_range_bound, print_range_type):
14427 Remove declaration.
14428
e62e21fd
JB
144292014-01-27 Joel Brobecker <brobecker@adacore.com>
14430
14431 * ada-typeprint.c (print_range): Add missing empty line
14432 after local declaration.
14433
859cf5d1
JB
144342014-01-27 Joel Brobecker <brobecker@adacore.com>
14435
14436 * ada-valprint.c (print_optional_low_bound): Get index_type's
14437 target type for as long as it is a TYPE_CODE_RANGE.
14438
25790f6f
JB
144392014-01-27 Joel Brobecker <brobecker@adacore.com>
14440
14441 * procfs.c (procfs_make_note_section): Remove assertion and
14442 associated comment.
14443
6b6aa828
YQ
144442014-01-24 Yao Qi <yao@codesourcery.com>
14445
14446 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14447 * corelow.c (get_core_siginfo): Likewise.
14448
5d6df423
YQ
144492014-01-24 Yao Qi <yao@codesourcery.com>
14450
14451 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14452 ULONGEST. Don't check 'len' is negative.
14453 (remote_write_bytes): Change type of 'len' to ULONGEST.
14454
83b645b8
TT
144552014-01-23 Tom Tromey <tromey@redhat.com>
14456
14457 PR python/16485:
14458 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14459 Handle exception from frame.block.
14460 (FrameVars.fetch_frame_locals): Likewise.
14461
0740f8d8
TT
144622014-01-23 Tom Tromey <tromey@redhat.com>
14463
14464 PR python/16487:
14465 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14466 on a NULL pointer. Move "goto error" to correct place.
14467
21909fa1
TT
144682014-01-23 Tom Tromey <tromey@redhat.com>
14469
14470 PR python/16491:
14471 * python/py-framefilter.c (apply_frame_filter): Call
14472 ensure_python_env after computing gdbarch.
14473
17fde6d0
YQ
144742014-01-23 Yao Qi <yao@codesourcery.com>
14475
14476 * target.c (raw_memory_xfer_partial): Change argument type
14477 from void * to gdb_byte *.
14478 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14479
87ce2a04
DE
144802014-01-22 Doug Evans <dje@google.com>
14481
14482 New gdbserver option --debug-format=timestamp.
14483 * NEWS: Mention it.
14484
237b092b
AA
144852014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14486
14487 * syscalls/s390x-linux.xml: New file.
14488 * syscalls/s390-linux.xml: New file.
14489 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14490 (XML_SYSCALL_FILENAME_S390X): Likewise.
14491 (op_svc): New enum value for SVC opcode.
14492 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14493 (s390_linux_get_syscall_number): New function.
14494 (s390_gdbarch_init): Register '*get_syscall_number' and the
14495 syscall xml file name.
14496 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14497 "s390-linux.xml" and "s390x-linux.xml".
14498 * NEWS: Announce new feature.
14499
54bff650
BS
145002014-01-22 Baruch Siach <baruch@tkos.co.il>
14501
14502 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14503
14e361d7
PA
145042014-01-22 Pedro Alves <palves@redhat.com>
14505
14506 * xtensa-config.c: Include defs.h.
14507
46bbb3ed
JB
145082014-01-22 Joel Brobecker <brobecker@adacore.com>
14509
14510 * common/common-utils.h: Add "ARI:" comment beside __func__
14511 reference.
14512
3a80edfc
JB
145132014-01-22 Joel Brobecker <brobecker@adacore.com>
14514
14515 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14516 documentation a bit.
14517
4869db5e
RM
145182014-01-21 Roland McGrath <mcgrathr@google.com>
14519
14520 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14521 * configure: Regenerate.
14522 * aclocal.m4: Regenerate.
14523 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14524 New substituted variables.
14525 (install-strip): New target.
14526 (INSTALL_SCRIPT): New substituted variable.
14527 (FLAGS_TO_PASS): Add it.
14528 (install-only): Use $(INSTALL_SCRIPT) rather than
14529 $(INSTALL_PROGRAM) for gcore.
14530
9ea4267d
TT
145312014-01-20 Tom Tromey <tromey@redhat.com>
14532
14533 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14534 together.
14535
1f2bdf09
TT
145362014-01-20 Tom Tromey <tromey@redhat.com>
14537
14538 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14539 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14540 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14541 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14542 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14543 (struct cmd_list_element) <flags>: Remove.
14544 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14545 doc_allocated>: New fields.
14546 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14547 bitfields.
14548 * maint.c (maintenance_do_deprecate): Update.
14549 * top.c (execute_command): Update.
14550
e671835b
BS
145512014-01-20 Baruch Siach <baruch@tkos.co.il>
14552
14553 * xtensa-linux-nat.c: Include asm/ptrace.h.
14554
50367cd2
IB
145552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14556
14557 * Makefile.in (SFILES): Add d-support.c.
14558 (COMMON_OBS): Add d-support.o.
14559 * d-lang.h (d_parse_symbol): Add comment, now defined in
14560 d-support.c.
14561 * d-lang.c (parse_call_convention)
14562 (parse_attributes, parse_function_types)
14563 (parse_function_args, parse_type, parse_identifier)
14564 (call_convention_p, d_parse_symbol): Move functions to ...
14565 * d-support.c: ... New file.
14566
ec9f644a
IB
145672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14568
14569 * d-lang.h (d_parse_symbol): Add declaration.
14570 * d-lang.c (extract_identifiers)
14571 (extract_type_info): Remove functions.
14572 (parse_call_convention, parse_attributes)
14573 (parse_function_types, parse_function_args)
14574 (parse_type, parse_identifier, call_convention_p)
14575 (d_parse_symbol): New functions.
14576 (d_demangle): Use d_parse_symbol to demangle D symbols.
14577
94b1b47e
IB
145782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14579
14580 * d-lang.h (struct builtin_d_type): New data type.
14581 (builtin_d_type): Add declaration.
14582 * d-lang.c (d_language_arch_info, build_d_types)
14583 (builtin_d_type): New functions.
14584 (enum d_primitive_types): New data type.
14585 (d_language_defn): Change c_language_arch_info to
14586 d_language_arch_info.
14587 (d_type_data): New static variable.
14588 (_initialize_d_language): Initialize d_type_data.
14589
63778547
IB
145902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14591
14592 * d-lang.h (d_main_name): Add declaration.
14593 * d-lang.c (d_main_name): New function.
14594 * symtab.c (find_main_name): Add call to d_main_name.
14595
3271ba66
IB
145962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14597
14598 * d-lang.c (d_language_defn): Change macro_expansion_c to
14599 macro_expansion_no.
14600
d36b3012
IB
146012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14602
14603 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14604
c90a6fb7
SDJ
146052014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14606
14607 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14608 gdb_exception" declaration.
14609 * remote.c (getpkt_or_notif_sane): Likewise.
14610
749234e5
DE
146112014-01-17 Doug Evans <dje@google.com>
14612
14613 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14614 function, contents of dirnames_to_char_ptr_vec_append moved here.
14615 (delim_string_to_char_ptr_vec): New function.
14616 (dirnames_to_char_ptr_vec_append): Rewrite.
14617 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14618
df049a58
DE
146192014-01-17 Doug Evans <dje@google.com>
14620
14621 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14622 and moved here ...
14623 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14624 #include "common-utils.h".
14625 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14626 * common/vec.h (VEC_ASSERT_PASS): Update.
14627 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14628 (MACH_CHECK_ERROR): Update.
14629
69f97648
SM
146302014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14631
14632 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14633 comments.
14634 * gdbarch.h: Regenerate.
14635
98b1cfdc
TT
146362014-01-16 Tom Tromey <tromey@redhat.com>
14637
14638 * value.c (struct value) <regnum>: Move earlier.
14639
77a19445
TT
146402014-01-16 Tom Tromey <tromey@redhat.com>
14641
14642 * remote.c (extended_remote_create_inferior): Rename from
14643 extended_remote_create_inferior_1. Add "ops" argument. Remove
14644 old implementation.
14645
62261490
PA
146462014-01-16 Pedro Alves <palves@redhat.com>
14647
14648 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14649 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14650 the backchain.
14651
4d65956b
DE
146522014-01-16 Doug Evans <dje@google.com>
14653
14654 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14655
52834460
MM
146562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14657
14658 * btrace.h (btrace_thread_flag): New.
14659 (struct btrace_thread_info) <flags>: New.
14660 * record-btrace.c (record_btrace_resume_thread)
14661 (record_btrace_find_thread_to_move, btrace_step_no_history)
14662 (btrace_step_stopped, record_btrace_start_replaying)
14663 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14664 (record_btrace_find_resume_thread): New.
14665 (record_btrace_resume, record_btrace_wait): Extend.
14666 (record_btrace_can_execute_reverse): New.
14667 (record_btrace_open): Fail in non-stop mode.
14668 (record_btrace_set_replay): Split into this, ...
14669 (record_btrace_stop_replaying): ... this, ...
14670 (record_btrace_clear_histories): ... and this.
14671 (init_record_btrace_ops): Init to_can_execute_reverse.
14672 * NEWS: Announce it.
14673
118e6252
MM
146742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14675
14676 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14677 (forward_target_decr_pc_after_break)
14678 (target_decr_pc_after_break): New.
14679 * target.c (forward_target_decr_pc_after_break)
14680 (target_decr_pc_after_break): New.
14681 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14682 instead of gdbarch_decr_pc_after_break.
14683 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14684 instead of gdbarch_decr_pc_after_break.
14685 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14686 instead of gdbarch_decr_pc_after_break.
14687 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14688 instead of gdbarch_decr_pc_after_break.
14689 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14690 instead of gdbarch_decr_pc_after_break.
14691 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14692 instead of gdbarch_decr_pc_after_break.
14693
6e07b1d2
MM
146942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14695
14696 * btrace.c: Include regcache.h.
14697 (btrace_add_pc): New.
14698 (btrace_enable): Call btrace_add_pc.
14699 (btrace_is_empty): New.
14700 * btrace.h (btrace_is_empty): New.
14701 * record-btrace.c (require_btrace, record_btrace_info): Call
14702 btrace_is_empty.
14703
969c39fb
MM
147042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14705
14706 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14707 Support delta reads.
14708 (linux_disable_btrace): Change return type.
14709 * common/linux-btrace.h (linux_read_btrace): Change parameters
14710 and return type to allow error reporting. Update users.
14711 (linux_disable_btrace): Change return type. Update users.
14712 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14713 New.
14714 (btrace_error): New.
14715 (btrace_block) <begin>: Comment on BEGIN == 0.
14716 * btrace.c (btrace_compute_ftrace): Start from the end of
14717 the current trace.
14718 (btrace_stitch_trace, btrace_clear_history): New.
14719 (btrace_fetch): Read delta trace, return if replaying.
14720 (btrace_clear): Move clear history code to btrace_clear_history.
14721 (parse_xml_btrace): Throw an error if parsing failed.
14722 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14723 and return type to allow error reporting.
14724 (target_read_btrace): Change parameters and return type to allow
14725 error reporting.
14726 * target.c (target_read_btrace): Update.
14727 * remote.c (remote_read_btrace): Support delta reads. Pass
14728 errors on.
14729 * NEWS: Announce it.
14730
0b722aec
MM
147312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14732
14733 * record.h (record_btrace_frame_unwind)
14734 (record_btrace_tailcall_frame_unwind): New declarations.
14735 * dwarf2-frame: Include record.h
14736 (dwarf2_frame_cfa): Throw an error for btrace frames.
14737 * record-btrace.c: Include hashtab.h.
14738 (btrace_get_bfun_name): New.
14739 (btrace_call_history): Call btrace_get_bfun_name.
14740 (struct btrace_frame_cache): New.
14741 (bfcache): New.
14742 (bfcache_hash, bfcache_eq, bfcache_new): New.
14743 (btrace_get_frame_function): New.
14744 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14745 (record_btrace_frame_this_id): Compute own id.
14746 (record_btrace_frame_prev_register): Provide PC, throw_error
14747 for all other registers.
14748 (record_btrace_frame_sniffer): Detect btrace frames.
14749 (record_btrace_tailcall_frame_sniffer): New.
14750 (record_btrace_frame_dealloc_cache): New.
14751 (record_btrace_frame_unwind): Add new functions.
14752 (record_btrace_tailcall_frame_unwind): New.
14753 (_initialize_record_btrace): Allocate cache.
14754 * btrace.c (btrace_clear): Call reinit_frame_cache.
14755 * NEWS: Announce it.
14756
066ce621
MM
147572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14758
14759 * record-btrace.c (record_btrace_set_replay)
14760 (record_btrace_goto_begin, record_btrace_goto_end)
14761 (record_btrace_goto): New.
14762 (init_record_btrace_ops): Initialize them.
14763 * NEWS: Announce it.
14764
e2887aa3
MM
147652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14766
14767 * record-btrace.c (record_btrace_find_new_threads)
14768 (record_btrace_thread_alive): New.
14769 (init_record_btrace_ops): Initialize to_find_new_threads and
14770 to_thread_alive.
14771
b2f4cfde
MM
147722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14773
14774 * record-btrace.c (record_btrace_resume): New.
14775 (record_btrace_wait): New.
14776 (init_record_btrace_ops): Initialize to_wait and to_resume.
14777
633785ff
MM
147782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14779
14780 * record-btrace.c (record_btrace_xfer_partial)
14781 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14782 (record_btrace_allow_memory_access): New.
14783 (init_record_btrace_ops): Initialize new methods.
14784 * target.c (raw_memory_xfer_partial): Bail out if target reports
14785 that this memory is not available.
14786
3db08215
MM
147872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14788
14789 * target.h (target_ops) <to_insert_breakpoint>
14790 <to_remove_breakpoint>: Add target_ops parameter.
14791 (forward_target_insert_breakpoint): New.
14792 (forward_target_remove_breakpoint): New.
14793 (memory_remove_breakpoint, memory_insert_breakpoint):
14794 Add target_ops parameter.
14795 * target.c (target_insert_breakpoint): Split into this and ...
14796 (forward_target_insert_breakpoint): ... this.
14797 (target_remove_breakpoint): Split into this and ...
14798 (forward_target_remove_breakpoint): ... this.
14799 (debug_to_insert_breakpoint): Add target_ops parameter.
14800 Call forward_target_insert_breakpoint.
14801 (debug_to_remove_breakpoint): Add target_ops parameter.
14802 Call forward_target_remove_breakpoint.
14803 (update_current_target): Do not inherit or default to_insert_breakpoint
14804 and to_remove_breakpoint.
14805 * corelow.c (ignore): Add target_ops parameter.
14806 * exec.c (ignore): Add target_ops parameter.
14807 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14808 Add target_ops parameter.
14809 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14810 Add target_ops parameter.
14811 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14812 Add target_ops parameter.
14813 * record-full.c (record_full_beneath_to_insert_breakpoint)
14814 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14815 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14816 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14817 (record_full_core_remove_breakpoint): Add target_ops parameter.
14818 Update users.
14819 (record_full_beneath_to_insert_breakpoint_ops)
14820 (record_full_beneath_to_remove_breakpoint_ops)
14821 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14822 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14823 tmp_to_remove_breakpoint_ops,
14824 record_full_beneath_to_insert_breakpoint_ops, and
14825 record_full_beneath_to_remove_breakpoint_ops.
14826 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14827 (m32r_remove_breakpoint): Add target_ops parameter.
14828 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14829 Add target_ops parameter.
14830 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14831 Add target_ops parameter.
14832
cecac1ab
MM
148332014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14834 Markus Metzger <markus.t.metzger@intel.com>
14835
14836 * record-btrace.c: Include frame-unwind.h.
14837 (record_btrace_frame_unwind_stop_reason)
14838 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14839 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14840 New.
14841 (init_record_btrace_ops): Install it.
14842
824344ca
MM
148432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14844
14845 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14846 get_prev_frame_1.
14847
32261e52
MM
148482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14849
14850 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14851 earlier.
14852
ea001bdc
MM
148532014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14854
14855 * frame-unwind.c: Include target.h.
14856 (frame_unwind_try_unwinder): New function with code from ...
14857 (frame_unwind_find_by_frame): ... here. New variable
14858 unwinder_from_target, call also target_get_unwinder)
14859 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14860 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14861 * target.h (struct target_ops): New fields to_get_unwinder and
14862 to_get_tailcall_unwinder.
14863 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14864
1f3ef581
MM
148652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14866
14867 * record-btrace.c (record_btrace_fetch_registers)
14868 (record_btrace_store_registers)
14869 (record_btrace_to_prepare_to_store): New.
14870 (init_record_btrace_ops): Add the above.
14871
f32dbf8c
MM
148722014-01-16 Tom Tromey <tromey@redhat.com>
14873
14874 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14875 * target.h (struct target_ops) <to_prepare_to_store>: Add
14876 argument.
14877 (target_prepare_to_store): Add argument.
14878 * target.c (debug_to_prepare_to_store): Add argument.
14879 (update_current_target): Update.
14880 * remote.c (remote_prepare_to_store): Add 'self' argument.
14881 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14882 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14883 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14884 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14885 argument.
14886 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14887 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14888 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14889 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14890 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14891
07bbe694
MM
148922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14893
14894 * btrace.h (replay) <replay>: New.
14895 (btrace_is_replaying): New.
14896 * btrace.c (btrace_clear): Free replay iterator.
14897 (btrace_is_replaying): New.
14898 * record-btrace.c (record_btrace_is_replaying): New.
14899 (record_btrace_info): Print insn number if replaying.
14900 (record_btrace_insn_history): Start at replay position.
14901 (record_btrace_call_history): Start at replay position.
14902 (init_record_btrace_ops): Init to_record_is_replaying.
14903
0688d04e
MM
149042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14905
14906 * record-btrace.c (record_btrace_insn_history_range): Include
14907 end.
14908 (record_btrace_insn_history_from): Adjust range.
14909 (record_btrace_call_history_range): Include
14910 end.
14911 (record_btrace_call_history_from): Adjust range.
14912 * NEWS: Announce changes.
14913
8710b709
MM
149142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14915
14916 * record.h (enum record_print_flag)
14917 <record_print_indent_calls>: New.
14918 * record.c (get_call_history_modifiers): Recognize /c modifier.
14919 (_initialize_record): Document /c modifier.
14920 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14921 Reorder fields. Optionally indent the function name. Update
14922 all users.
14923 * NEWS: Announce changes.
14924
d0fa7535
MM
149252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14926
14927 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14928
5de9129b
MM
149292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14930
14931 * btrace.c (ftrace_new_function): Start counting at one.
14932 * record-btrace.c (record_btrace_info): Adjust number of calls
14933 and insns.
14934 * NEWS: Announce it.
14935
7acbe133
MM
149362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14937
14938 * record-btrace.c (btrace_call_history_insn_range): Print
14939 insn range as [begin, end].
14940
23a7fe75
MM
149412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14942
14943 * btrace.h (struct btrace_func_link): New.
14944 (enum btrace_function_flag): New.
14945 (struct btrace_inst): Rename to ...
14946 (struct btrace_insn): ...this. Update all users.
14947 (struct btrace_func) <ibegin, iend>: Remove.
14948 (struct btrace_func_link): New.
14949 (struct btrace_func): Rename to ...
14950 (struct btrace_function): ...this. Update all users.
14951 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14952 (number, level, flags>: New.
14953 (struct btrace_insn_iterator): Rename to ...
14954 (struct btrace_insn_history): ...this.
14955 Update all users.
14956 (struct btrace_insn_iterator, btrace_call_iterator): New.
14957 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14958 (struct btrace_target_info) <begin, end, level>
14959 <insn_history, call_history>: New.
14960 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14961 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14962 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14963 (btrace_call_number, btrace_call_begin, btrace_call_end)
14964 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14965 (btrace_find_function_by_number, btrace_set_insn_history)
14966 (btrace_set_call_history): New.
14967 * btrace.c (btrace_init_insn_iterator)
14968 (btrace_init_func_iterator, compute_itrace): Remove.
14969 (ftrace_print_function_name, ftrace_print_filename)
14970 (ftrace_skip_file): Change
14971 parameter to const.
14972 (ftrace_init_func): Remove.
14973 (ftrace_debug): Use new btrace_function fields.
14974 (ftrace_function_switched): Also consider gaining and
14975 losing symbol information).
14976 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14977 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14978 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14979 New.
14980 (ftrace_new_function): Move. Remove debug print.
14981 (ftrace_update_lines, ftrace_update_insns): New.
14982 (ftrace_update_function): Check for call, ret, and jump.
14983 (compute_ftrace): Renamed to ...
14984 (btrace_compute_ftrace): ...this. Rewritten to compute call
14985 stack.
14986 (btrace_fetch, btrace_clear): Updated.
14987 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14988 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14989 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14990 (btrace_call_number, btrace_call_begin, btrace_call_end)
14991 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14992 (btrace_find_function_by_number, btrace_set_insn_history)
14993 (btrace_set_call_history): New.
14994 * record-btrace.c (require_btrace): Use new btrace thread
14995 info fields.
14996 (record_btrace_info, btrace_insn_history)
14997 (record_btrace_insn_history, record_btrace_insn_history_range):
14998 Use new btrace thread info fields and new iterator.
14999 (btrace_func_history_src_line): Rename to ...
15000 (btrace_call_history_src_line): ...this. Use new btrace
15001 thread info fields.
15002 (btrace_func_history): Rename to ...
15003 (btrace_call_history): ...this. Use new btrace thread info
15004 fields and new iterator.
15005 (record_btrace_call_history, record_btrace_call_history_range):
15006 Use new btrace thread info fields and new iterator.
15007
8372a7cb
MM
150082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15009
15010 * frame.h (frame_id_build_unavailable_stack_special): New.
15011 * frame.c (frame_id_build_unavailable_stack_special): New.
15012
c2170eef
MM
150132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15014
15015 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15016 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15017 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15018 to gdbarch.
15019 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15020 (i386_insn_is_jump, i386_jmp_p): New.
15021 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15022 insn_is_jump to gdbarch.
15023 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15024 * gdbarch.h: Regenerated.
15025 * gdbarch.c: Regenerated.
15026 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15027 (default_insn_is_jump): New.
15028 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15029 (default_insn_is_jump): New.
15030
864089d2
MM
150312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15032
15033 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15034 Change to ...
15035 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15036 (btrace_read_type) <btrace_read_new>: Change to ...
15037 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15038
ed9edfb5
MM
150392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15040
15041 * common/linux-btrace.c (linux_read_btrace): Free trace from
15042 previous iteration.
15043
fbcbc3fd
DE
150442014-01-15 Doug Evans <dje@google.com>
15045
15046 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15047 uint32_t.
15048
3d548a53
TT
150492014-01-15 Tom Tromey <tromey@redhat.com>
15050
15051 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15052 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15053 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15054 (set_objfile_main_name): New function.
15055 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15056 language_of_main>: New fields.
15057 (set_objfile_main_name): Declare.
15058 * symtab.c (find_main_name): Loop over objfiles to find the main
15059 name and language.
15060 (set_main_name): Now static.
15061 (get_main_info): Add comment.
15062 * symtab.h (set_main_name): Don't declare.
15063
32ac0d11
TT
150642014-01-15 Tom Tromey <tromey@redhat.com>
15065
15066 * symtab.c (main_progspace_key): New global.
15067 (struct main_info): New.
15068 (name_of_main, language_of_main): Remove.
15069 (get_main_info, main_info_cleanup): New function.
15070 (set_main_name, main_name, main_language): Use get_main_info.
15071 (_initialize_symtab): Initialize main_progspace_key.
15072
9e6c82ad
TT
150732014-01-15 Tom Tromey <tromey@redhat.com>
15074
15075 * dbxread.c (process_one_symbol): Update.
15076 * dwarf2read.c (read_partial_die): Update.
15077 * symfile.c (set_initial_language): Call main_language.
15078 * symtab.c (language_of_main): Now static.
15079 (set_main_name): Add 'lang' parameter.
15080 (find_main_name): Update.
15081 (main_language): New function.
15082 (symtab_observer_executable_changed): Update.
15083 * symtab.h (set_main_name): Update.
15084 (language_of_main): Remove.
15085 (main_language): Declare.
15086
6ef55de7
TT
150872014-01-15 Tom Tromey <tromey@redhat.com>
15088
15089 * symfile.c (init_entry_point_info): Use new "initialized" field.
15090 Update.
15091 * objfiles.h (struct entry_point) <initialized>: New field.
15092 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15093 (struct objfile) <ei>: ...here. Remove.
15094 * objfiles.c (entry_point_address_query): Update.
15095
53eddfa6
TT
150962014-01-15 Tom Tromey <tromey@redhat.com>
15097
15098 * objfiles.c (entry_point_address_query): Relocate entry point
15099 address.
15100 (objfile_relocate1): Do not relocate entry point address.
15101 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15102 <the_bfd_section_index>: New field.
15103 * symfile.c (init_entry_point_info): Find the entry point's
15104 section.
15105
d56e56aa
TT
151062014-01-15 Tom Tromey <tromey@redhat.com>
15107
15108 * solib-frv.c (enable_break): Use entry_point_address_query.
15109
33a97bbe
OJ
151102014-01-15 Omair Javaid <omair.javaid@linaro.org>
15111
15112 * NEWS: Add note on improved process record-replay on
15113 arm*-linux* targets.
15114
c6ec2b30
OJ
151152014-01-15 Omair Javaid <omair.javaid@linaro.org>
15116
15117 * arm-tdep.c (enum arm_record_result): New enum.
15118 (arm_record_unsupported_insn): New function.
15119 (arm_record_coproc_data_proc): Removed.
15120 (thumb2_record_ld_st_multiple): New function.
15121 (thumb2_record_ld_st_dual_ex_tbb): New function.
15122 (thumb2_record_data_proc_sreg_mimm): New function.
15123 (thumb2_record_ps_dest_generic): New function.
15124 (thumb2_record_branch_misc_cntrl): New function.
15125 (thumb2_record_str_single_data): New function.
15126 (thumb2_record_ld_mem_hints): New function.
15127 (thumb2_record_ld_word): New function.
15128 (thumb2_record_lmul_lmla_div): New function.
15129 (thumb2_record_decode_insn_handler): New function.
15130 (decode_insn): Add thumb32 instruction handlers.
15131
97dfe206
OJ
151322014-01-15 Omair Javaid <omair.javaid@linaro.org>
15133
15134 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15135 (struct arm_linux_record_tdep): Declare.
15136 (arm_canonicalize_syscall): New function.
15137 (arm_all_but_pc_registers_record): New function.
15138 (arm_linux_syscall_record): New function.
15139 (arm_linux_init_abi): Add syscall recording constructs.
15140 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15141 decoding. (arm_record_coproc_data_proc): Update arm syscall
15142 decoding.
15143 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15144 <arm_syscall_record>: New field.
15145 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15146 gdb_target_obs.
15147
9904a494
OJ
151482014-01-15 Omair Javaid <omair.javaid@linaro.org>
15149
15150 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15151 register for push instruction recording.
15152
f969241e
OJ
151532014-01-15 Omair Javaid <omair.javaid@linaro.org>
15154
15155 * arm-tdep.c (thumb_record_misc): Update to correct logical
15156 error while recording ldm, ldmia and pop instructions.
15157
bfbbec00
OJ
151582014-01-15 Omair Javaid <omair.javaid@linaro.org>
15159
15160 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15161
e40adcc9
PA
151622014-01-15 Pedro Alves <palves@redhat.com>
15163
15164 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15165 (go32_resume, go32_fetch_registers, store_register)
15166 (go32_store_registers, go32_prepare_to_store)
15167 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15168 (go32_create_inferior, go32_can_run, go32_terminal_init)
15169 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15170 declarations.
15171
b0a16e66
TT
151722014-01-15 Tom Tromey <tromey@redhat.com>
15173
15174 * target.h (async_callback_ftype): New typedef.
15175 (struct target_ops) <to_async>: Use it.
15176
bf7105a4
JB
151772014-01-15 Joel Brobecker <brobecker@adacore.com>
15178
15179 * python/py-value.c (get_field_type): Remove unnecessary curly
15180 braces for single-statement if block.
15181
a8f35c2e
JB
151822014-01-15 Joel Brobecker <brobecker@adacore.com>
15183
15184 * python/py-type.c (convert_field): Add missing empty line
15185 after declarations.
15186
bb4142cf
DE
151872014-01-14 Doug Evans <dje@google.com>
15188
15189 * symfile.h (expand_symtabs_matching): Renamed from
15190 expand_partial_symbol_names. Update prototype.
15191 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15192 * symfile.c (expand_symtabs_matching): Renamed from
15193 expand_partial_symbol_names. New args file_matcher, kind.
15194 Rename arg fun to symbol_matcher.
15195 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15196 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15197 ada_expand_partial_symbol_name.
15198 (ada_make_symbol_completion_list): Update to call
15199 expand_symtabs_matching.
15200 (ada_add_global_exceptions): Call expand_symtabs_matching.
15201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15202 call map_symbol_filenames.
15203 * symtab.c (sources_info): Update to call map_symbol_filenames.
15204 (search_symbols): Call expand_symtabs_matching.
15205 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15206 (default_make_symbol_completion_list_break_on): Update to call
15207 expand_symtabs_matching.
15208 (make_source_files_completion_list): Update to call
15209 map_symbol_filenames.
15210
206f2a57
DE
152112014-01-14 Doug Evans <dje@google.com>
15212
15213 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15214 (expand_symtabs_symbol_matcher_ftype): New typedef.
15215 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15216 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15217 * symfile.c (expand_partial_symbol_names): Update to use
15218 expand_symtabs_symbol_matcher_ftype.
15219 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15221 Arg name_matcher renamed to symbol_matcher.
15222 * psymtab.c (recursively_search_psymtabs): Update to use
15223 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15224 sym_matcher.
15225 (expand_symtabs_matching_via_partial): Update to use
15226 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15227 Arg name_matcher renamed to symbol_matcher.
15228
540c2971
DE
152292014-01-14 Doug Evans <dje@google.com>
15230
15231 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15232 (map_partial_symbol_filenames): Ditto.
15233 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15234 (map_partial_symbol_filenames): Ditto.
15235 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15236 (map_partial_symbol_filenames): Ditto.
15237 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15238 (map_partial_symbol_filenames): Ditto.
15239 * symtab.c: Delete #include "psymtab.h".
15240
8213266a
PA
152412014-01-14 Pedro Alves <palves@redhat.com>
15242 Tom Tromey <tromey@redhat.com>
15243
15244 * infrun.c (use_displaced_stepping): Use find_record_target
15245 instead of RECORD_IS_USED.
15246 (adjust_pc_after_break): Use record_full_is_used instead of
15247 RECORD_IS_USED.
15248 * record-btrace.c (record_btrace_open): Call record_preopen
15249 instead of checking RECORD_IS_USED.
15250 * record-full.c (record_full_shortname)
15251 (record_full_core_shortname): New globals.
15252 (record_full_is_used): New function.
15253 (find_full_open): Call record_preopen instead of checking
15254 RECORD_IS_USED.
15255 (init_record_full_ops): Set the target's shortname to
15256 record_full_shortname.
15257 (init_record_full_core_ops): Set the target's shortname to
15258 record_full_core_shortname.
15259 * record-full.h (record_full_is_used): Declare.
15260 * record.c (find_record_target): Make extern.
15261 (record_preopen): New function.
15262 * record.h (RECORD_IS_USED): Delete macro.
15263 (find_record_target, record_preopen): Declare functions.
15264
7ec1862d
YQ
152652014-01-14 Yao Qi <yao@codesourcery.com>
15266
15267 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15268 'len''s type to ULONGEST.
15269 (core_xfer_shared_libraries_aix): Likewise.
15270 * gdbarch.c, gdbarch.h: Regenerated.
15271 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15272 Change type of 'len' to ULONGEST.
15273 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15274 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15275
dea80a27
YQ
152762014-01-14 Yao Qi <yao@codesourcery.com>
15277
15278 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15279 type of 'len' to ULONGEST.
15280 (linux_xfer_osdata_processgroups): Likewise.
15281 (linux_xfer_osdata_threads): Likewise.
15282 (linux_xfer_osdata_fds): Likewise.
15283 (linux_xfer_osdata_isockets): Likewise.
15284 (linux_xfer_osdata_shm): Likewise.
15285 (linux_xfer_osdata_sem): Likewise.
15286 (linux_xfer_osdata_msg): Likewise.
15287 (linux_common_xfer_osdata): Likewise.
15288 (struct osdata_type) <getter>: Likewise.
15289 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15290 the declaration.
15291
b55e14c7
YQ
152922014-01-14 Yao Qi <yao@codesourcery.com>
15293
15294 * target.h (target_xfer_partial_ftype): Update.
15295 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15296 ULONGEST.
15297 * aix-thread.c (aix_thread_xfer_partial): Change type of
15298 argument 'len' to ULONGEST.
15299 * auxv.c (procfs_xfer_auxv): Likewise.
15300 (ld_so_xfer_auxv): Likewise.
15301 (memory_xfer_auxv): Likewise.
15302 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15303 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15304 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15305 * corelow.c (core_xfer_partial): Likewise.
15306 * ctf.c (ctf_xfer_partial): Likewise.
15307 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15308 '%u'.
15309 (darwin_read_dyld_info): Likewise.
15310 (darwin_xfer_partial): Likewise.
15311 * exec.c (section_table_xfer_memory_partial): Likewise.
15312 (exec_xfer_partial): Likewise.
15313 * exec.h (section_table_xfer_memory_partial): Update
15314 declaration.
15315 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15316 instead of plongest.
15317 (gnu_xfer_partial): Likewise.
15318 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15319 (ia64_hpux_xfer_solib_got): Likewise.
15320 (ia64_hpux_xfer_partial): Likewise.
15321 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15322 * inf-ptrace.c (inf_ptrace_xfer_partial):
15323 * inf-ttrace.c (inf_ttrace_xfer_partial):
15324 * linux-nat.c (linux_xfer_siginfo): Likewise.
15325 (linux_nat_xfer_partial): Likewise.
15326 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15327 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15328 * monitor.c (monitor_xfer_memory): Likewise.
15329 (monitor_xfer_partial): Likewise.
15330 * procfs.c (procfs_xfer_partial): Likewise.
15331 * record-full.c (record_full_xfer_partial): Likewise.
15332 (record_full_core_xfer_partial): Likewise.
15333 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15334 instead of plongest.
15335 (gdbsim_xfer_partial): Likewise.
15336 * remote.c (remote_xfer_partial): Likewise.
15337 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15338 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15339 declaration.
15340 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15341 (rs6000_xfer_shared_libraries): Likewise.
15342 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15343 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15344 (sparc_xfer_partial): Likewise.
15345 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15346 (spu_xfer_partial): Likewise.
15347 * spu-multiarch.c (spu_xfer_partial): Likewise.
15348 * target.c (target_read_live_memory): Likewise.
15349 (memory_xfer_live_readonly_partial): Likewise.
15350 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15351 (target_xfer_partial, default_xfer_partial): Likewise.
15352 (current_xfer_partial): Likewise.
15353 * tracepoint.c (tfile_xfer_partial): Likewise.
15354 * windows-nat.c (windows_xfer_memory): Likewise. Call
15355 pulongest instead of plongest.
15356 (windows_xfer_partial): Likewise.
15357 (windows_xfer_shared_libraries): Likewise.
15358
05804640
YQ
153592014-01-14 Yao Qi <yao@codesourcery.com>
15360
15361 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15362 target_xfer_partial_ftype.
15363
b5b08fb4
SC
153642014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15365
15366 PR python/15464
15367 PR python/16113
15368 * valops.c (value_struct_elt_bitpos): New function
15369 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15370 object to 'None' if the field name is an empty string ("").
15371 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15372 attribute to look for a field when 'name' is 'None'.
15373 (get_field_type): New function
15374
13aaf454
DE
153752014-01-13 Doug Evans <dje@google.com>
15376
15377 PR symtab/16426
15378 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15379 (try_open_dwop_file): Ditto.
15380 * gdb_bfd.c: #include "vec.h".
15381 (bfdp): New typedef.
15382 (struct gdb_bfd_data): New member included_bfds.
15383 (gdb_bfd_unref): Unref all included bfds.
15384 (gdb_bfd_record_inclusion): New function.
15385 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15386
c2cec97c
TT
153872014-01-13 Tom Tromey <tromey@redhat.com>
15388
15389 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15390
78e5999d
TT
153912014-01-13 Tom Tromey <tromey@redhat.com>
15392
15393 * defs.h (use_windows): Remove.
15394 * gdb.c (main): Update.
15395 * main.c (captured_main, gdb_main): Update.
15396 * main.h (struct captured_main_args) <use_windows>: Remove.
15397 * top.c (use_windows): Remove.
15398
f2052bbe
TT
153992014-01-13 Tom Tromey <tromey@redhat.com>
15400
15401 * defs.h (deprecated_flush_hook): Remove.
15402
fde4f8ed
JK
154032014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15404
15405 PR threads/16216
15406 * linux-thread-db.c (try_thread_db_load): Add parameter
15407 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15408 (try_thread_db_load_from_pdir_1): Move it there from here.
15409 (try_thread_db_load_from_sdir): Update caller.
15410 (try_thread_db_load_from_dir): Move it there from here.
15411
bdf61915
PP
154122014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15413
15414 * regformats/regdat.sh: Always rewrite the register file.
15415
f71e1a8d
PA
154162014-01-13 Pedro Alves <palves@redhat.com>
15417
15418 * Makefile.in (CHECK_HEADERS): New variable.
15419 (check-headers:): New rule.
15420
42c85435
TT
154212014-01-13 Tom Tromey <tromey@redhat.com>
15422
15423 * cli/cli-setshow.c (do_set_command): Update.
15424 * defs.h (deprecated_set_hook): Remove.
15425 * top.c (deprecated_set_hook): Remove.
15426
f8de5129
PA
154272014-01-13 Pedro Alves <palves@redhat.com>
15428
15429 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15430 the tracepoint if the PC is a pseudo-register.
15431
fc270c35
TT
154322014-01-13 Tom Tromey <tromey@redhat.com>
15433
15434 * defs.h (XCALLOC): Remove.
15435 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15436 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15437 * dwarf2loc.c (allocate_piece_closure): Likewise.
15438 * elfread.c (elf_symfile_segments): Likewise.
15439 (elf_symfile_segments): Likewise.
15440 * gdbtypes.c (copy_type_recursive): Likewise.
15441 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15442 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15443 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15444 XCALLOC.
15445 * mt-tdep.c (mt_gdbarch_init): Likewise.
15446 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15447 XCALLOC.
15448 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15449 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15450 * registry.c (registry_alloc_data): Likewise.
15451 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15452 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15453 * serial.c (serial_fdopen_ops): Likewise.
15454 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15455 XCALLOC.
15456 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15457 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15458 not XCALLOC.
15459
70ba0933
TT
154602014-01-13 Tom Tromey <tromey@redhat.com>
15461
15462 * defs.h (XMALLOC): Remove.
15463 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15464 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15465 * cli-out.c (struct ui_out *): Likewise.
15466 * cli/cli-dump.c (add_dump_command): Likewise.
15467 (add_dump_command): Likewise.
15468 * complaints.c (get_complaints): Likewise.
15469 (find_complaint): Likewise.
15470 * dwarf2-frame.c (execute_cfa_program): Likewise.
15471 * dwarf2read.c (abbrev_table_read_table): Likewise.
15472 * gdbarch.sh: Likewise.
15473 * gdbarch.c: Rebuild.
15474 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15475 * interps.c (interp_new): Likewise.
15476 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15477 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15478 * mi/mi-console.c (mi_console_file_new): Likewise.
15479 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15480 * mi/mi-out.c (mi_out_new): Likewise.
15481 * mi/mi-parse.c (mi_parse): Likewise.
15482 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15483 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15484 * observer.c (xalloc_observer_list_node): Likewise.
15485 * regcache.c (regcache_xmalloc_1): Likewise.
15486 * reggroups.c (reggroup_new): Likewise.
15487 (_initialize_reggroup): Likewise.
15488 * registry.c (register_data_with_cleanup): Likewise.
15489 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15490 * ser-base.c (serial_ttystate): Likewise.
15491 * ser-mingw.c (make_pipe_state): Likewise.
15492 * ser-pipe.c (pipe_open): Likewise.
15493 * serial.c (serial_open): Likewise.
15494 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15495 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15496 (tui_alloc_win_info): Likewise.
15497 (tui_add_content_elements): Likewise.
15498 * tui/tui-file.c (tui_file_new): Likewise.
15499 * tui/tui-out.c (tui_out_new): Likewise.
15500 * ui-file.c (mem_file_new): Likewise.
15501 * ui-out.c (push_level): Likewise.
15502 (make_cleanup_ui_out_end): Likewise.
15503 (append_header_to_list): Likewise.
15504 (ui_out_new): Likewise.
15505 * user-regs.c (user_reg_add_builtin): Likewise.
15506
41bf6aca
TT
155072014-01-13 Tom Tromey <tromey@redhat.com>
15508
15509 * defs.h (XZALLOC): Remove.
15510 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15511 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15512 (get_ada_tasks_inferior_data): Likewise.
15513 * auto-load.c (get_auto_load_pspace_data): Likewise.
15514 * auxv.c (get_auxv_inferior_data): Likewise.
15515 * bfd-target.c (target_bfd_reopen): Likewise.
15516 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15517 (deprecated_insert_raw_breakpoint): Likewise.
15518 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15519 * corelow.c (core_open): Likewise.
15520 * darwin-nat.c (darwin_check_new_threads): Likewise.
15521 (darwin_attach_pid): Likewise.
15522 * dummy-frame.c (dummy_frame_push): Likewise.
15523 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15524 * dwarf2loc.c (allocate_piece_closure): Likewise.
15525 * elfread.c (elf_symfile_segments): Likewise.
15526 * eval.c (ptrmath_type_p): Likewise.
15527 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15528 * gdbtypes.c (alloc_type_arch): Likewise.
15529 (alloc_type_instance): Likewise.
15530 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15531 * inf-child.c (inf_child_can_use_agent): Likewise.
15532 * inflow.c (get_inflow_inferior_data): Likewise.
15533 * infrun.c (save_infcall_suspend_state): Likewise.
15534 * jit.c (jit_reader_load): Likewise.
15535 (get_jit_objfile_data): Likewise.
15536 (get_jit_program_space_data): Likewise.
15537 (jit_object_open_impl): Likewise.
15538 (jit_symtab_open_impl): Likewise.
15539 (jit_block_open_impl): Likewise.
15540 (jit_frame_sniffer): Likewise.
15541 * linux-fork.c (add_fork): Likewise.
15542 * maint.c (make_command_stats_cleanup): Likewise.
15543 * objfiles.c (get_objfile_pspace_data): Likewise.
15544 * opencl-lang.c (struct lval_closure): Likewise.
15545 * osdata.c (osdata_start_osdata): Likewise.
15546 * progspace.c (new_address_space): Likewise.
15547 (add_program_space): Likewise.
15548 * remote-sim.c (get_sim_inferior_data): Likewise.
15549 * sh-tdep.c (sh_gdbarch_init): Likewise.
15550 * skip.c (Ignore): Likewise.
15551 (skip_delete_command): Likewise.
15552 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15553 (library_list_start_library): Likewise.
15554 (solib_aix_current_sos): Likewise.
15555 * solib-darwin.c (get_darwin_info): Likewise.
15556 (darwin_current_sos): Likewise.
15557 * solib-dsbt.c (get_dsbt_info): Likewise.
15558 * solib-ia64-hpux.c (new_so_list): Likewise.
15559 (ia64_hpux_get_solib_linkage_addr): Likewise.
15560 * solib-spu.c (append_ocl_sos): Likewise.
15561 (spu_current_sos): Likewise.
15562 * solib-svr4.c (get_svr4_info): Likewise.
15563 (svr4_keep_data_in_core): Likewise.
15564 (library_list_start_library): Likewise.
15565 (svr4_default_sos): Likewise.
15566 (svr4_read_so_list): Likewise.
15567 * solib-target.c (library_list_start_library): Likewise.
15568 (solib_target_current_sos): Likewise.
15569 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15570 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15571 * symfile.c (default_symfile_segments): Likewise.
15572 * target-descriptions.c (tdesc_data_init): Likewise.
15573 (tdesc_create_reg): Likewise.
15574 (struct tdesc_type *): Likewise.
15575 (tdesc_create_vector): Likewise.
15576 (tdesc_set_struct_size): Likewise.
15577 (struct tdesc_type *): Likewise.
15578 (tdesc_free_feature): Likewise.
15579 (tdesc_create_feature): Likewise.
15580 * windows-nat.c (windows_add_thread): Likewise.
15581 (windows_make_so): Likewise.
15582 * xml-support.c (gdb_xml_body_text): Likewise.
15583 (gdb_xml_create_parser_and_cleanup): Likewise.
15584 (xml_process_xincludes): Likewise.
15585 * xml-syscall.c (allocate_syscalls_info): Likewise.
15586 (syscall_create_syscall_desc): Likewise.
15587
5acfdbae
SDJ
155882014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15589
15590 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15591 function, with code from i386_stap_parse_special_token.
15592 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15593 (i386_stap_parse_special_token): Move code to the two functions
15594 above; simplify it.
15595
0000e5cc
PA
155962014-01-09 Pedro Alves <palves@redhat.com>
15597 Hui Zhu <hui@codesourcery.com>
15598
15599 PR gdb/16101
15600 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15601 bp_err_string. Don't mark the location shlib_disabled if the
15602 error thrown wasn't a generic or memory error. Catch errors
15603 thrown while inserting breakpoints in overlayed code. Output
15604 error message of software breakpoints.
15605 * remote.c (remote_insert_breakpoint): If this breakpoint has
15606 target-side commands but this stub doesn't support Z0 packets,
15607 throw NOT_SUPPORTED_ERROR error.
15608 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15609 * target.h (target_insert_breakpoint): Extend comment.
15610 (target_insert_hw_breakpoint): Add comment.
15611
b7ea362b
PA
156122014-01-08 Pedro Alves <palves@redhat.com>
15613
15614 * remote.c (remote_add_thread): Add threads silently if starting
15615 up.
15616 (remote_notice_new_inferior): If in all-stop, and starting up,
15617 don't call notice_new_inferior.
15618 (get_current_thread): New function, factored out from ...
15619 (add_current_inferior_and_thread): ... this. Adjust.
15620 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15621 found any thread, then select the remote's current thread as GDB's
15622 current thread too.
15623
b7bba001
JB
156242014-01-08 Joel Brobecker <brobecker@adacore.com>
15625
15626 * NEWS: Create a new section for the next release branch.
15627 Rename the section of the current branch, now that it has
15628 been cut.
15629
16dfbded
JB
156302014-01-08 Joel Brobecker <brobecker@adacore.com>
15631
15632 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15633 * version.in: Bump version to 7.7.50.DATE-cvs.
15634
22c90ac1
YQ
156352014-01-08 Yao Qi <yao@codesourcery.com>
15636
15637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15638 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15639 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15640
d64ad97c
YQ
156412014-01-08 Yao Qi <yao@codesourcery.com>
15642
15643 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15644 return value of bfd_get_filename to symbol_file_add_from_bfd.
15645
f93ba80c
PM
156462014-01-08 Pierre Muller <muller@sourceware.org>
15647
15648 Fix PR16201.
15649 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15650 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15651 to prim_record_mininal_symbol_and_info.
15652 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15653 in call to prim_record_minimal_symbol_and_info.
15654 (read_pe_exported_syms): Set index field of section_data.
15655
a4d9ba85
AP
156562014-01-07 Andrew Pinski <apinski@cavium.com>
15657
15658 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15659 * features/aarch64.c: Regenerate.
15660
1b67eb02
AS
156612014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15662
15663 * target.c (return_null): Define.
15664 (update_current_target): Use it instead of return_zero for
15665 functions that return a pointer.
15666
5e3f4fab
EBM
156672014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15668
15669 * source.c (add_path): Fix check for duplicated paths in the previously
15670 included paths.
15671
e2616788
HK
156722014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15673
15674 * ada-lang.c: Remove duplicated include statements.
15675 * alphabsd-nat.c: Ditto.
15676 * amd64-darwin-tdep.c: Ditto.
15677 * amd64fbsd-nat.c: Ditto.
15678 * auto-load.c: Ditto.
15679 * ax-gdb.c: Ditto.
15680 * breakpoint.c: Ditto.
15681 * dbxread.c: Ditto.
15682 * fork-child.c: Ditto.
15683 * gdb_usleep.c: Ditto.
15684 * i386-darwin-tdep.c: Ditto.
15685 * i386fbsd-nat.c: Ditto.
15686 * infcmd.c: Ditto.
15687 * inferior.c: Ditto.
15688 * jv-lang.c: Ditto.
15689 * linux-nat.c: Ditto.
15690 * linux-tdep.c: Ditto.
15691 * m68kbsd-nat.c: Ditto.
15692 * m68klinux-nat.c: Ditto.
15693 * microblaze-tdep.c: Ditto.
15694 * mips-linux-tdep.c: Ditto.
15695 * mn10300-tdep.c: Ditto.
15696 * nto-tdep.c: Ditto.
15697 * opencl-lang.c: Ditto.
15698 * osdata.c: Ditto.
15699 * printcmd.c: Ditto.
15700 * regcache.c: Ditto.
15701 * remote-m32r-sdi.c: Ditto.
15702 * remote.c: Ditto.
15703 * symfile.c: Ditto.
15704 * symtab.c: Ditto.
15705 * tilegx-linux-nat.c: Ditto.
15706 * tilegx-tdep.c: Ditto.
15707 * tracepoint.c: Ditto.
15708 * valops.c: Ditto.
15709 * vaxbsd-nat.c: Ditto.
15710 * windows-nat.c: Ditto.
15711 * xtensa-tdep.c: Ditto.
15712
bd1f7788
YQ
157132014-01-07 Yao Qi <yao@codesourcery.com>
15714
15715 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15716
79301218
JB
157172014-01-07 Yao Qi <yao@codesourcery.com>
15718 Joel Brobecker <brobecker@adacore.com>
15719
15720 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15721 (pdc_write_regs): Likewise.
15722 (fetch_regs_kernel_thread): Likewise.
15723 (store_regs_kernel_thread): Likewise.
15724
157252014-01-07 Joel Brobecker <brobecker@adacore.com>
15726
15727 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15728 tagged type objects to their actual type.
15729
8e355c5d
JB
157302014-01-07 Joel Brobecker <brobecker@adacore.com>
15731
15732 * ada-valprint.c (print_field_values): Add "language" parameter.
15733 Update calls to print_field_values and print_variant_part.
15734 Pass new parameter "language" in call to val_print instead
15735 of "current_language". Replace call to ada_val_print by call
15736 to val_print.
15737 (print_variant_part): Add "language" parameter.
15738 (ada_val_print_struct_union): Update call to print_field_values.
15739
4fbf5aa5
JB
157402014-01-07 Joel Brobecker <brobecker@adacore.com>
15741
15742 * ada-valprint.c (ui_memcpy): Delete.
15743 (ada_print_floating): Update documentation. Add empty line
15744 between between function documentation and implementation.
15745 Delete variable "buffer". Use ui_file_xstrdup in place of
15746 ui_file_put. Minor adjustments following this change.
15747
71855601
JB
157482014-01-07 Joel Brobecker <brobecker@adacore.com>
15749
15750 * ada-valprint.c (ada_val_print_string): New function,
15751 extracted from ada_val_print_array.
15752 (ada_val_print_array): Replace extracted code by call
15753 to ada_val_print_string followed by a return. Move
15754 "else" branch to the function's top block.
15755
4eb27a30
JB
157562014-01-07 Joel Brobecker <brobecker@adacore.com>
15757
15758 * ada-valprint.c (ada_val_print_array): Move implementation
15759 down. Rename parameter "offset" and "val" into "offset_aligned"
15760 and "original_value" respectively. Add parameter "offset".
15761
34b27950
JB
157622014-01-07 Joel Brobecker <brobecker@adacore.com>
15763
15764 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15765 re-organizing the code. Change the "???" message printed
15766 when target type is a TYPE_CODE_UNDEF into
15767 "<ref to undefined type>".
15768
079e4591
JB
157692014-01-07 Joel Brobecker <brobecker@adacore.com>
15770
15771 * ada-valprint.c (print_record): Delete, implementation inlined...
15772 (ada_val_print_struct_union): ... here. Remove call to
15773 ada_check_typedef in inlined implementation.
15774
8004dfd1
JB
157752014-01-07 Joel Brobecker <brobecker@adacore.com>
15776
15777 * ada-valprint.c (ada_val_print_gnat_array): New function,
15778 extracted from ada_val_print_1;
15779 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15780 (ada_val_print_flt, ada_val_print_struct_union)
15781 (ada_val_print_ref): Likewise.
15782 (ada_val_print_1): Delete variables i and elttype.
15783 Replace extracted-out code by call to corresponding
15784 new functions.
15785
760a2db0
JB
157862014-01-07 Joel Brobecker <brobecker@adacore.com>
15787
15788 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15789
3a92c861
JB
157902014-01-07 Joel Brobecker <brobecker@adacore.com>
15791
15792 * ada-valprint.c (ada_val_print_1): Replace calls to
15793 ada_val_print_1 by calls to val_print.
15794
cd1630f9
JB
157952014-01-07 Joel Brobecker <brobecker@adacore.com>
15796
15797 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15798 Update calls to self accordingly. Replace calls to c_val_print
15799 by calls to val_print.
15800
bdf779a0
JB
158012014-01-07 Joel Brobecker <brobecker@adacore.com>
15802
15803 * ada-valprint.c (print_record): Delete declaration.
15804 (adjust_type_signedness, ada_val_print_1): Likewise.
15805 (ada_val_print): Move function implementation down.
15806 (print_variant_part, print_field_values, print_record):
15807 Move function implementation up.
15808
c0d48811
JB
158092014-01-07 Joel Brobecker <brobecker@adacore.com>
15810
15811 * python/py-type.c (typy_get_name): New function.
15812 (type_object_getset): Add entry for attribute "name".
15813 * NEWS: Add entry mentioning this new attribute.
15814
c26e9cbb
YQ
158152014-01-07 Yao Qi <yao@codesourcery.com>
15816
15817 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15818 statement.
15819
0cc6f43d
YQ
158202014-01-07 Yao Qi <yao@codesourcery.com>
15821
15822 * gnu-nat.c (info_port_rights): Add qualifier const to
15823 argument args.
15824
eec03155
YQ
158252014-01-07 Yao Qi <yao@codesourcery.com>
15826
15827 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15828
f04a82ef
YQ
158292014-01-07 Yao Qi <yao@codesourcery.com>
15830
15831 * gnu-nat.c (make_inf) Update declaration.
15832 (make_inf): Make it static.
15833 (inf_set_traced): Likewise.
15834 (inf_port_to_thread, inf_task_died_status): Likewise.
15835
d57dda0a
YQ
158362014-01-07 Yao Qi <yao@codesourcery.com>
15837
15838 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15839
3aa8c969
YQ
158402014-01-07 Yao Qi <yao@codesourcery.com>
15841
15842 * gnu-nat.c (_initialize_gnu_nat): Declare.
15843
94123b4f
YQ
158442014-01-07 Yao Qi <yao@codesourcery.com>
15845
15846 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15847 'enum bfd_endian'.
15848 (struct gdbarch_info) <byte_order>: Change type to
15849 'enum bfd_endian'.
15850 <byte_order_for_code>: Likewise.
15851 * gdbarch.c, gdbarch.h: Regenerated.
15852
dc81d70a
TT
158532014-01-06 Sasha Smundak <asmundak@google.com>
15854
15855 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15856
cc2f3c35
TT
158572014-01-06 Tom Tromey <tromey@redhat.com>
15858
15859 * doublest.c (convert_doublest_to_floatformat): Use const, not
15860 CONST.
15861 * somread.c (som_symtab_read): Likewise.
15862
adcf2eed
HZ
158632014-01-07 Hui Zhu <hui@codesourcery.com>
15864
15865 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15866 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15867 (gdb_bfd_fopen): Ditto.
15868 (gdb_bfd_openr): Ditto.
15869 (gdb_bfd_openw): Ditto.
15870 (gdb_bfd_openr_iovec): Ditto.
15871 (gdb_bfd_fdopenr): Ditto.
15872 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15873 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15874 with xstrdup.
15875 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15876 with xstrdup.
15877 * symfile-mem.c (symbol_file_add_from_memory): Removed
15878 gdb_bfd_stash_filename.
15879
50722198
DE
158802014-01-03 Doug Evans <dje@google.com>
15881
15882 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15883 output.
15884
2fa4b862
JB
158852014-01-01 Joel Brobecker <brobecker@adacore.com>
15886
15887 Update year range in copyright notice of all files.
15888
28498c42
JB
158892014-01-01 Joel Brobecker <brobecker@adacore.com>
15890
15891 * top.c (print_gdb_version): Set copyright year to 2014.
15892
7b6e1046
JB
158932014-01-01 Joel Brobecker <brobecker@adacore.com>
15894
15895 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15896
df96af55 15897For older changes see ChangeLog-2013.
c906108c
SS
15898\f
15899Local Variables:
15900mode: change-log
15901left-margin: 8
15902fill-column: 74
15903version-control: never
57da7796 15904coding: utf-8
c906108c 15905End:
This page took 2.35438 seconds and 4 git commands to generate.