Define bfd_elf32_get_synthetic_symtab for x32
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
642a8d80
DE
12014-12-05 Doug Evans <xdje42@gmail.com>
2
3 Revert:
4 PR symtab/17602
5 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
6
86e4ed39
DE
72014-12-04 Doug Evans <dje@google.com>
8
9 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
10 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
11 (objfile_getset): Add "add_separate_debug_file".
12
7c50a931
DE
132014-12-04 Doug Evans <dje@google.com>
14
15 * NEWS: Mention gdb.Objfile.build_id.
16 * build-id.c (build_id_bfd_get): Make non-static.
17 * build-id.h (build_id_bfd_get): Add declaration.
18 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
19 (OBJFPY_REQUIRE_VALID): New macro.
20 (objfpy_get_build_id): New function.
21 (objfile_getset): Add "build_id".
22 * utils.c (make_hex_string): New function.
23 * utils.h (make_hex_string): Add declaration.
24
ba715d7f
JK
252014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
26
27 * block.c (block_lookup_symbol_primary): New function.
28 * block.h (block_lookup_symbol_primary): New declaration.
29 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
30 Call block_lookup_symbol_primary.
31
858339f2
MR
322014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
33
34 * tramp-frame.h (tramp_frame): Add `validate' member.
35 * tramp-frame.c (tramp_frame_start): Validate trampoline before
36 scanning.
37 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
38 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
39 (mips_linux_o32_sigframe): Initialize `validate' member.
40 (mips_linux_o32_rt_sigframe): Likewise.
41 (mips_linux_n32_rt_sigframe): Likewise.
42 (mips_linux_n64_rt_sigframe): Likewise.
43 (micromips_linux_o32_sigframe): New variable.
44 (micromips_linux_o32_rt_sigframe): Likewise.
45 (micromips_linux_n32_rt_sigframe): Likewise.
46 (micromips_linux_n64_rt_sigframe): Likewise.
47 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
48 (mips_linux_n32n64_sigframe_init): Likewise.
49 (mips_linux_sigframe_validate): New function.
50 (micromips_linux_sigframe_validate): Likewise.
51 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
52
ff1eb2b5
UW
532014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
54
55 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
56 * sparc-sol2-tdep.c: Include "regset.h".
57 (sparc32_sol2_supply_core_gregset): New function.
58 (sparc32_sol2_collect_core_gregset): Likewise.
59 (sparc32_sol2_supply_core_fpregset): Likewise.
60 (sparc32_sol2_collect_core_fpregset): Likewise.
61 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
62 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
63 tdep->fpregset/sizeof_fpregset.
64 * sparc64-sol2-tdep.c: Include "regset.h".
65 (sparc64_sol2_supply_core_gregset): New function.
66 (sparc64_sol2_collect_core_gregset): Likewise.
67 (sparc64_sol2_supply_core_fpregset): Likewise.
68 (sparc64_sol2_collect_core_fpregset): Likewise.
69 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
70 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
71 tdep->fpregset/sizeof_fpregset.
72
75783939
SM
732014-12-03 Simon Marchi <simon.marchi@ericsson.com>
74
75 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
76 type.
77
7c5fdd25
DE
782014-12-02 Doug Evans <dje@google.com>
79
80 * symtab.c (symbol_init_cplus_specific): Delete.
81 (symbol_set_demangled_name): Remove special c++ support.
82 (symbol_get_demangled_name, symbol_set_language): Ditto.
83 * symtab.h (struct cplus_specific): Delete.
84 (struct general_symbol_info) <language_specific>: Remove
85 cplus_specific.
86
29f0c3b7
DE
872014-12-02 Doug Evans <dje@google.com>
88
89 PR symtab/17602
90 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
91
72998fb3
DE
922014-12-02 Doug Evans <dje@google.com>
93
94 PR symtab/17591
95 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
96 to strip parameters.
97
422b9917
DE
982014-12-02 Doug Evans <dje@google.com>
99
100 * dwarf2read.c (peek_die_abbrev): Improve error message text.
101
47c6ee49
DE
1022014-12-02 Doug Evans <dje@google.com>
103
104 * valops.c (do_search_struct_field): Remove remnant of Chill support.
105 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
106
5da3ffc9
SM
1072014-12-02 Simon Marchi <simon.marchi@ericsson.com>
108
109 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
110
162078c8
NB
1112014-12-02 Nick Bull <nicholaspbull@gmail.com>
112
113 * NEWS: Mention new Python events.
114 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
115 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
116 (py-infevents.o): New rule.
117 * doc/observer.texi (inferior_call_pre, inferior_call_post)
118 (memory_changed, register_changed): New observers.
119 * infcall.c (call_function_by_hand): Notify observer before and
120 after inferior call.
121 * python/py-event.h (inferior_call_kind): New enum.
122 (emit_inferior_call_event): New prototype.
123 (emit_register_changed_event): New prototype.
124 (emit_memory_changed_event): New prototype.
125 * python/py-events.h (events_object): New registries
126 inferior_call, memory_changed and register_changed.
127 * python/py-evts.c (gdbpy_initialize_py_events): Add the
128 inferior_call, memory_changed and register_changed registries.
129 * python/py-infevents.c: New.
130 * python/py-inferior.c (python_on_inferior_call_pre)
131 (python_on_inferior_call_post, python_on_register_change)
132 (python_on_memory_change): New functions.
133 (gdbpy_initialize_inferior): Attach python handler to new
134 observers.
135 * python/py-infthread.c(gdbpy_create_ptid_object): New.
136 (thpy_get_ptid) Use gdbpy_create_ptid_object.
137 * python/python-internal.h:
138 (gdbpy_create_ptid_object)
139 (gdbpy_initialize_inferior_call_pre_event)
140 (gdbpy_initialize_inferior_call_post_event)
141 (gdbpy_initialize_register_changed_event)
142 (gdbpy_initialize_memory_changed_event): New prototypes.
143 * python/python.c (_initialize_python): Initialize new events.
144 * valops.c (value_assign): Notify register_changed observer.
145
007baf27
DE
1462014-12-02 Doug Evans <dje@google.com>
147
148 * python/py-infthread.c: Whitespace fixes.
149
d5552aab
AA
1502014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
151
152 * features/Makefile (s390-te-linux64-expedite): Replace
153 non-existant r14 and r15 by r14l and r15l, respectively.
154 * regformats/s390-te-linux64.dat: Regenerate.
155
30b5e341
SM
1562014-12-01 Simon Marchi <simon.marchi@ericsson.com>
157
158 * objfiles.c (allocate_objfile): Remove duplicate comment.
159
ac3d87c0
UW
1602014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
161
162 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
163 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
164 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
165 (supply_gregset, supply_fpregset): Remove.
166 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
167 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
168 and sizeof_gregset.
169
f10c5b19
JK
1702014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 Add add-auto-load-scripts-directory.
173 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
174 * auto-load.c (add_auto_load_dir): New function.
175 (_initialize_auto_load): Install it.
176
f0d4ba1f
MG
1772014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
178
179 Pushed by Joel Brobecker <brobecker@adacore.com>.
180 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
181
18ac6ffc
SC
1822014-11-29 Siva Chandra Reddy <sivachandra@google.com>
183
184 * eval.c (evaluate_subexp): Check that the thread stack temporaries
185 are not already enabled before enabling them.
186
4072f920
YQ
1872014-11-29 Yao Qi <yao@codesourcery.com>
188
189 * arm-tdep.c (arm_analyze_prologue): Move local variables
190 'framereg' and 'framesize' to inner block. Move code to
191 inner block too.
192
6c659fc2
SC
1932014-11-28 Siva Chandra Reddy <sivachandra@google.com>
194
195 * eval.c: Include gdbthread.h.
196 (evaluate_subexp): Enable thread stack temporaries before
197 evaluating a complete expression and clean them up after the
198 evaluation is complete.
199 * gdbthread.h: Include common/vec.h.
200 (value_ptr): New typedef.
201 (VEC (value_ptr)): New vector type.
202 (value_vec): New typedef.
203 (struct thread_info): Add new fields stack_temporaries_enabled
204 and stack_temporaries.
205 (enable_thread_stack_temporaries)
206 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
207 (get_last_thread_stack_temporary)
208 (value_in_thread_stack_temporaries): Declare.
209 * gdbtypes.c (class_or_union_p): New function.
210 * gdbtypes.h (class_or_union_p): Declare.
211 * infcall.c (call_function_by_hand): Store return values of class
212 type as temporaries on stack.
213 * thread.c (enable_thread_stack_temporaries): New function.
214 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
215 (get_last_thread_stack_temporary): Likewise.
216 (value_in_thread_stack_temporaries): Likewise.
217 * value.c (value_force_lval): New function.
218 * value.h (value_force_lval): Declare.
219
f7ca3fcf
PM
2202014-11-28 Pierre Muller <muller@sourceware.org>
221
222 Pushed by Joel Brobecker <brobecker@adacore.com>.
223 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
224 registers.
225
b2859a9a
UW
2262014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
227
228 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
229 * config/sparc/linux.mh (NATDEPFILES): Likewise.
230 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
231 * m68klinux-nat.c (fetch_core_registers): Remove.
232 (linux_elf_core_fns): Remove.
233 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
234
0fa9473f
JB
2352014-11-28 Joel Brobecker <brobecker@adacore.com>
236
237 * utils.c (gdb_realpath): Rework comment about handling on
238 Windows.
239
6a29c58e
YQ
2402014-11-28 Yao Qi <yao@codesourcery.com>
241
242 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
243 rename.
244 * gnulib/aclocal.m4: Re-generated.
245 * gnulib/config.in: Re-generated.
246 * gnulib/configure: Re-generated.
247 * gnulib/import/Makefile.am: Re-generated.
248 * gnulib/import/Makefile.in: Re-generated.
249 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
250 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
251 * import/basename-lgpl.c: New file.
252 * import/dirname-lgpl.c: New file.
253 * import/dirname.h: New file.
254 * import/m4/dirname.m4: New file.
255 * import/m4/malloc.m4: New file.
256 * import/m4/rename.m4: New file.
257 * import/m4/rmdir.m4: New file.
258 * import/m4/stdio_h.m4: New file.
259 * import/malloc.c: New file.
260 * import/rename.c: New file.
261 * import/rmdir.c: New file.
262 * import/same-inode.h: New file.
263 * import/stdio.c: New file.
264 * import/stdio.in.h: New file.
265 * import/stripslash.c: New file.
266
abbffc89
YQ
2672014-11-28 Yao Qi <yao@codesourcery.com>
268
269 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
270 and realpath.
271 * config.in: Re-generated.
272 * configure: Re-generated.
273 * utils.c (gdb_realpath): Remove code calling realpath,
274 canonicalize_file_name and pathconf.
275 [!_WIN32]: Call canonicalize_file_name.
276
98399780
YQ
2772014-11-28 Yao Qi <yao@codesourcery.com>
278
279 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
280 canonicalize-lgpl.
281 * aclocal.m4: Re-generated.
282 * config.in: Re-generated.
283 * configure: Re-generated.
284 * import/Makefile.am: Re-generated.
285 * import/Makefile.in: Re-generated.
286 * import/m4/gnulib-cache.m4: Re-generated.
287 * import/m4/gnulib-comp.m4: Re-generated.
288 * import/canonicalize-lgpl.c: New file.
289 * import/extra/snippet/_Noreturn.h: New file.
290 * import/m4/canonicalize.m4: New file.
291 * import/m4/double-slash-root.m4: New file.
292 * import/m4/eealloc.m4: New file.
293 * import/m4/malloca.m4: New file.
294 * import/m4/nocrash.m4: New file.
295 * import/m4/stdlib_h.m4: New file.
296 * import/malloca.c: New file.
297 * import/malloca.h: New file.
298 * import/malloca.valgrind: New file.
299
3332aaf2
YQ
3002014-11-28 Yao Qi <yao@codesourcery.com>
301
302 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
303 * config.in, configure: Regenerate.
304 * symfile.c (find_separate_debug_file_by_debuglink): Remove
305 code checking HAVE_LSTAT is defined.
306
f45c62c4
YQ
3072014-11-28 Yao Qi <yao@codesourcery.com>
308
309 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
310 lstat.
311 * gnulib/aclocal.m4: Re-generated.
312 * gnulib/config.in: Re-generated.
313 * gnulib/configure: Re-generated.
314 * gnulib/import/Makefile.am: Re-generated.
315 * gnulib/import/Makefile.in: Re-generated.
316 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
317 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
318 * gnulib/import/lstat.c: New file.
319 * gnulib/import/m4/lstat.m4: New file.
320
bdca27a2
YQ
3212014-11-28 Yao Qi <yao@codesourcery.com>
322
323 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
324 * config.in, configure: Re-generate.
325 * inf-child.c (inf_child_fileio_readlink): Don't check
326 HAVE_READLINK is defined.
327
2196f55f
YQ
3282014-11-28 Yao Qi <yao@codesourcery.com>
329
330 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
331 * gnulib/aclocal.m4: Re-generated.
332 * gnulib/config.in: Likewise.
333 * gnulib/configure: Likewise.
334 * gnulib/import/Makefile.am: Likewise.
335 * gnulib/import/Makefile.in: Likewise.
336 * gnulib/import/m4/gnulib-cache.m4: Likewise.
337 * gnulib/import/m4/gnulib-comp.m4: Likewise.
338 * gnulib/import/dosname.h: New file
339 * gnulib/import/m4/largefile.m4: New file.
340 * gnulib/import/m4/readlink.m4: New file.
341 * gnulib/import/m4/stat.m4: New file.
342 * gnulib/import/readlink.c: New file.
343 * gnulib/import/stat.c: New file.
344
7014e923 3452014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
346
347 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
348 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
349
aa489395
SL
3502014-11-25 Sandra Loosemore <sandra@codesourcery.com>
351
352 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
353 that there can be only one stack adjustment in the prologue
354 with tests to detect specific disallowed stack adjustments.
355
7f1659b5
SL
3562014-11-25 Sandra Loosemore <sandra@codesourcery.com>
357
358 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
359 adjustments.
360
d53c26c7
SL
3612014-11-25 Sandra Loosemore <sandra@codesourcery.com>
362
363 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
364 the instruction as well as reading it from memory.
365 (nios2_match_add): New.
366 (nios2_match_sub): New.
367 (nios2_match_addi): New.
368 (nios2_match_orhi): New.
369 (nios2_match_stw): New.
370 (nios2_match_ldw): New.
371 (nios2_match_rdctl): New.
372 (enum branch_condition): New.
373 (nios2_match_branch): New.
374 (nios2_match_jmpi): New.
375 (nios2_match_calli): New.
376 (nios2_match_jmpr): New.
377 (nios2_match_callr): New.
378 (nios2_match_break): New.
379 (nios2_match_trap): New.
380 (nios2_in_epilogue_p): Rewrite to use new functions.
381 (nios2_analyze_prologue): Likewise.
382 (nios2_skip_prologue): Delete unused local limit_pc.
383 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
384 (nios2_get_next_pc): Rewrite to use new functions.
385
cac9b138
JK
3862014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
387
388 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
389
a441dfbc
ST
3902014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
391
392 Pushed by Joel Brobecker <brobecker@adacore.com>
393 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
394 elements pi_len by the size of the elements before calling
395 vm_deallocate.
396 (inf_validate_task_sc): Likewise, and properly deallocate the
397 noise array.
398
4c9e8482
DE
3992014-11-23 Doug Evans <xdje42@gmail.com>
400
401 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
402 number and name if present. All callers updated.
403 (dump_fn_fieldlists): Fix indentation of args.
404
15ee0bbd
PP
4052014-11-23 Patrick Palka <patrick@parcs.ath.cx>
406
407 * MAINTAINERS (Write After Approval): Add myself.
408
e8af5d7a
JB
4092014-11-23 Joel Brobecker <brobecker@adacore.com>
410
411 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
412 to a bp_call_dummy breakpoint type.
413
a344fc09
PP
4142014-11-23 Patrick Palka <patrick@parcs.ath.cx>
415
416 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
417 registering the signal handler.
418
d64e57fa
PP
4192014-11-23 Patrick Palka <patrick@parcs.ath.cx>
420
421 * event-top.h (call_stdin_event_handler_again_p): Declare.
422 * event-top.c (call_stdin_event_handler_again_p): Define.
423 (stdin_event_handler): Use it.
424 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
425 handler again if there is pending input following a
426 start sequence.
427
6f9d33d8
PP
4282014-11-23 Patrick Palka <patrick@parcs.ath.cx>
429
430 Pushed by Joel Brobecker <brobecker@adacore.com>
431 * linux-fork.c (checkpoint_command): Print index of new
432 checkpoint in response message.
433
88db67ef
YQ
4342014-11-23 Yao Qi <yao@codesourcery.com>
435
436 * valprint.c (read_string): Move local variables 'found_nul',
437 'chunksize' and 'limit' to inner scope. Update comments.
438
01465b56
DE
4392014-11-22 Doug Evans <xdje42@gmail.com>
440
441 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
442 function comment.
443 (search_symbols): Fix comments and whitespace.
444
07a1c2c3
DE
4452014-11-22 Doug Evans <xdje42@gmail.com>
446
447 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
448
b2a919a8
DE
4492014-11-21 Doug Evans <dje@google.com>
450
451 * psymtab.c (psymtab_search_name): Fix whitespace.
452
278289d5
YQ
4532014-11-21 Yao Qi <yao@codesourcery.com>
454
455 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
456 errno.
457 * gnulib/import/Makefile.am: Re-generated.
458 * gnulib/import/Makefile.in: Likewise.
459 * gnulib/import/m4/gnulib-cache.m4: Likewise.
460
e01e2baa
YQ
4612014-11-21 Yao Qi <yao@codesourcery.com>
462
463 * gdb_wchar.h: Include wchar.h and wctype.h.
464 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
465 include wchar.h and wctype.h.
466 Don't check HAVE_WCHAR_H.
467
f0c00af8
YQ
4682014-11-21 Yao Qi <yao@codesourcery.com>
469
470 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
471 and wctype-h.
472 * gnulib/import/Makefile.am: Re-generated.
473 * gnulib/import/Makefile.in: Likewise.
474 * gnulib/import/m4/gnulib-cache.m4: Likewise.
475
0cae13bb
YQ
4762014-11-21 Yao Qi <yao@codesourcery.com>
477
478 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
479 memchr.
480 * gnulib/import/Makefile.am: Re-generated.
481 * gnulib/import/Makefile.in: Likewise.
482 * gnulib/import/m4/gnulib-cache.m4: Likewise.
483
9c232dda
YQ
4842014-11-21 Yao Qi <yao@codesourcery.com>
485
486 * common/common-defs.h: Include alloca.h
487 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
488 * configure: Re-generated.
489 * defs.h: Remove code handling alloca.
490 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
491 or not.
492
00d7f58f
YQ
4932014-11-21 Yao Qi <yao@codesourcery.com>
494
495 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
496 alloca.
497 * gnulib/import/Makefile.am: Re-generated.
498 * gnulib/import/Makefile.in: Likewise..
499 * gnulib/import/m4/gnulib-cache.m4: Likewise.
500
6068ad5d
YQ
5012014-11-21 Yao Qi <yao@codesourcery.com>
502
503 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
504 alphabetical order.
505
45e44d27
JB
5062014-11-21 Joel Brobecker <brobecker@adacore.com>
507
508 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
509 flag_unsigned if HIGH_BOUND is constant and negative.
510
7e7cbeb3
SDJ
5112014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
512
513 PR breakpoints/10737
514 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
515 modifier from "struct gdbarch" when compiling without Expat (XML)
516 support.
517 (get_syscall_by_number): Likewise.
518 (get_syscall_by_name): Likewise.
519 (get_syscall_names): Likewise.
520
458c8db8
SDJ
5212014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
522
523 PR breakpoints/10737
524 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
525 set_xml_syscall_file_name to provide gdbarch.
526 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
527 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
528 * breakpoint.c (print_it_catch_syscall): Adjust call to
529 get_syscall_by_number to provide gdbarch.
530 (print_one_catch_syscall): Likewise.
531 (print_mention_catch_syscall): Likewise.
532 (print_recreate_catch_syscall): Likewise.
533 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
534 and get_syscall_by_name to provide gdbarch.
535 (catch_syscall_completer): Adjust call to get_syscall_names to
536 provide gdbarch.
537 * gdbarch.c: Regenerate.
538 * gdbarch.h: Likewise.
539 * gdbarch.sh: Forward declare "struct syscalls_info".
540 (xml_syscall_file): New variable.
541 (syscalls_info): Likewise.
542 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
543 set_xml_syscall_file_name to provide gdbarch.
544 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
545 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
546 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
547 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
548 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
549 * xml-syscall.c: Include gdbarch.h.
550 (set_xml_syscall_file_name): Accept gdbarch parameter.
551 (get_syscall_by_number): Likewise.
552 (get_syscall_by_name): Likewise.
553 (get_syscall_names): Likewise.
554 (my_gdb_datadir): Delete global variable.
555 (struct syscalls_info) <my_gdb_datadir>: New variable.
556 (struct syscalls_info) <sysinfo>: Rename variable to
557 "syscalls_info".
558 (sysinfo): Delete global variable.
559 (have_initialized_sysinfo): Likewise.
560 (xml_syscall_file): Likewise.
561 (sysinfo_free_syscalls_desc): Rename to...
562 (syscalls_info_free_syscalls_desc): ... this.
563 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
564 code to the new layout of "struct syscalls_info".
565 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
566 "syscalls_info".
567 (syscall_create_syscall_desc): Likewise.
568 (syscall_start_syscall): Likewise.
569 (syscall_parse_xml): Likewise.
570 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
571 (init_sysinfo): Rename to...
572 (init_syscalls_info): ...this. Add gdbarch as a parameter.
573 Adjust function to deal with gdbarch.
574 (xml_get_syscall_number): Delete parameter sysinfo. Accept
575 gdbarch as a parameter. Adjust code.
576 (xml_get_syscall_name): Likewise.
577 (xml_list_of_syscalls): Likewise.
578 (set_xml_syscall_file_name): Accept gdbarch as parameter.
579 (get_syscall_by_number): Likewise.
580 (get_syscall_by_name): Likewise.
581 (get_syscall_names): Likewise.
582 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
583 (get_syscall_by_number): Likewise.
584 (get_syscall_by_name): Likewise.
585 (get_syscall_names): Likewise.
586
43f3e411
DE
5872014-11-20 Doug Evans <xdje42@gmail.com>
588
589 Split struct symtab into two: struct symtab and compunit_symtab.
590 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
591 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
592 to "struct compunit_symtab *". All callers updated.
593 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
594 "struct symtab *" argument to "struct compunit_symtab *".
595 All callers updated.
596 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
597 result to "struct compunit_symtab *". All callers updated.
598 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
599 Change result to "struct compunit_symtab *". All callers updated.
600 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
601 hange type to "struct compunit_symtab *". All uses updated.
602 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
603 Change type to "struct compunit_symtab *". All uses updated.
604 * buildsym.c (struct buildsym_compunit): New struct.
605 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
606 (buildsym_compunit): New static global.
607 (finish_block_internal): Update to fetch objfile from
608 buildsym_compunit.
609 (make_blockvector): Delete objfile argument.
610 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
611 debugformat, producer.
612 (start_buildsym_compunit): New function.
613 (free_buildsym_compunit): Renamed from free_subfiles_list.
614 All callers updated.
615 (patch_subfile_names): Rewrite to use buildsym_compunit.
616 (get_compunit_symtab): New function.
617 (get_macro_table): Delete argument comp_dir. All callers updated.
618 (start_symtab): Change result to "struct compunit_symtab *".
619 All callers updated. Create the subfile of the main source file.
620 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
621 (reset_symtab_globals): Update.
622 (end_symtab_get_static_block): Update to use buildsym_compunit.
623 (end_symtab_without_blockvector): Rewrite.
624 (end_symtab_with_blockvector): Change result to
625 "struct compunit_symtab *". All callers updated.
626 Update to use buildsym_compunit. Don't set symtab->dirname,
627 instead set it in the compunit.
628 Explicitly make sure main symtab is first in its list.
629 Set debugformat, producer, blockvector, block_line_section, and
630 macrotable in the compunit.
631 (end_symtab_from_static_block): Change result to
632 "struct compunit_symtab *". All callers updated.
633 (end_symtab, end_expandable_symtab): Ditto.
634 (set_missing_symtab): Change symtab argument to
635 "struct compunit_symtab *". All callers updated.
636 (augment_type_symtab): Ditto.
637 (record_debugformat): Update to use buildsym_compunit.
638 (record_producer): Update to use buildsym_compunit.
639 * buildsym.h (struct subfile) <dirname>: Delete.
640 <producer, debugformat>: Delete.
641 <buildsym_compunit>: New member.
642 (get_compunit_symtab): Declare.
643 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
644 from primary_symtab. Change type to "struct compunit_symtab *".
645 All uses updated.
646 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
647 All callers updated.
648 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
649 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
650 symtab. Change type to "struct compunit_symtab *". All uses updated.
651 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
652 All callers updated.
653 (dw2_find_last_source_symtab): Ditto.
654 (dw2_lookup_symbol): Ditto.
655 (recursively_find_pc_sect_compunit_symtab): Renamed from
656 recursively_find_pc_sect_symtab. Change result to
657 "struct compunit_symtab *". All callers updated.
658 (dw2_find_pc_sect_compunit_symtab): Renamed from
659 dw2_find_pc_sect_symtab. Change result to
660 "struct compunit_symtab *". All callers updated.
661 (get_compunit_symtab): Renamed from get_symtab. Change result to
662 "struct compunit_symtab *". All callers updated.
663 (recursively_compute_inclusions): Change type of immediate_parent
664 argument to "struct compunit_symtab *". All callers updated.
665 (compute_compunit_symtab_includes): Renamed from
666 compute_symtab_includes. All callers updated. Rewrite to compute
667 includes of compunit_symtabs and not symtabs.
668 (process_full_comp_unit): Update to work with struct compunit_symtab.
669 (process_full_type_unit): Ditto.
670 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
671 (dwarf_decode_lines): Remove special case handling of main subfile.
672 (macro_start_file): Delete argument comp_dir. All callers updated.
673 (dwarf_decode_macro_bytes): Ditto.
674 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
675 use struct compunit_symtab.
676 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
677 * jit.c (finalize_symtab): Build compunit_symtab.
678 * jv-lang.c (get_java_class_symtab): Change result to
679 "struct compunit_symtab *". All callers updated.
680 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
681 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
682 comp_dir. Change type to "struct compunit_symtab *".
683 All uses updated.
684 (new_macro_table): Change comp_dir argument to cust,
685 "struct compunit_symtab *". All callers updated.
686 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
687 nr_primary_symtabs. All uses updated.
688 (count_symtabs_and_blocks): Update to handle compunits.
689 (report_command_stats): Update output, "primary symtabs" renamed to
690 "compunits".
691 * mdebugread.c (new_symtab): Change result to
692 "struct compunit_symtab *". All callers updated.
693 (parse_procedure): Change type of search_symtab argument to
694 "struct compunit_symtab *". All callers updated.
695 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
696 separate loop.
697 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
698 symtabs. Change type to "struct compunit_symtab *". All uses updated.
699 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
700 All uses updated.
701 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
702 All uses updated.
703 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
704 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
705 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
706 symtab. Change type to "struct compunit_symtab *". All uses updated.
707 * psymtab.c (psymtab_to_symtab): Change result type to
708 "struct compunit_symtab *". All callers updated.
709 (find_pc_sect_compunit_symtab_from_partial): Renamed from
710 find_pc_sect_symtab_from_partial. Change result type to
711 "struct compunit_symtab *". All callers updated.
712 (lookup_symbol_aux_psymtabs): Change result type to
713 "struct compunit_symtab *". All callers updated.
714 (find_last_source_symtab_from_partial): Ditto.
715 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
716 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
717 and macro_table from compunit.
718 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
719 type to "struct compunit_symtab *". All callers updated.
720 (debug_qf_lookup_symbol): Ditto.
721 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
722 debug_qf_find_pc_sect_symtab, change result type to
723 "struct compunit_symtab *". All callers updated.
724 * symfile.c (allocate_symtab): Delete objfile argument.
725 New argument cust.
726 (allocate_compunit_symtab): New function.
727 (add_compunit_symtab_to_objfile): New function.
728 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
729 Change result type to "struct compunit_symtab *". All uses updated.
730 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
731 Change result type to "struct compunit_symtab *". All uses updated.
732 * symmisc.c (print_objfile_statistics): Compute blockvector count in
733 separate loop.
734 (dump_symtab_1): Update test for primary source symtab.
735 (maintenance_info_symtabs): Update to handle compunit symtabs.
736 (maintenance_check_symtabs): Ditto.
737 * symtab.c (set_primary_symtab): Delete.
738 (compunit_primary_filetab): New function.
739 (compunit_language): New function.
740 (iterate_over_some_symtabs): Change type of arguments "first",
741 "after_last" to "struct compunit_symtab *". All callers updated.
742 Update to loop over symtabs in each compunit.
743 (error_in_psymtab_expansion): Rename symtab argument to cust,
744 and change type to "struct compunit_symtab *". All callers updated.
745 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
746 Change result type to "struct compunit_symtab *". All callers updated.
747 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
748 Change result type to "struct compunit_symtab *". All callers updated.
749 (find_pc_sect_line): Only loop over symtabs within selected compunit
750 instead of all symtabs in the objfile.
751 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
752 <compunit_symtab> New member.
753 <block_line_section>: Moved to compunit_symtab.
754 <locations_valid>: Ditto.
755 <epilogue_unwind_valid>: Ditto.
756 <macro_table>: Ditto.
757 <dirname>: Ditto.
758 <debugformat>: Ditto.
759 <producer>: Ditto.
760 <objfile>: Ditto.
761 <call_site_htab>: Ditto.
762 <includes>: Ditto.
763 <user>: Ditto.
764 <primary>: Delete
765 (SYMTAB_COMPUNIT): New macro.
766 (SYMTAB_BLOCKVECTOR): Update definition.
767 (SYMTAB_OBJFILE): Update definition.
768 (SYMTAB_DIRNAME): Update definition.
769 (struct compunit_symtab): New type. Common members among all source
770 symtabs within a compilation unit moved here. All uses updated.
771 (COMPUNIT_OBJFILE): New macro.
772 (COMPUNIT_FILETABS): New macro.
773 (COMPUNIT_DEBUGFORMAT): New macro.
774 (COMPUNIT_PRODUCER): New macro.
775 (COMPUNIT_DIRNAME): New macro.
776 (COMPUNIT_BLOCKVECTOR): New macro.
777 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
778 (COMPUNIT_LOCATIONS_VALID): New macro.
779 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
780 (COMPUNIT_CALL_SITE_HTAB): New macro.
781 (COMPUNIT_MACRO_TABLE): New macro.
782 (ALL_COMPUNIT_FILETABS): New macro.
783 (compunit_symtab_ptr): New typedef.
784 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
785
005e2509
JB
7862014-11-20 Joel Brobecker <brobecker@adacore.com>
787
788 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
789 if the TYPE_CODE of range_type's base type does not match
790 the TYPE_CODE of encoding_type's base type.
791
2b0f535a
JB
7922014-11-19 Joel Brobecker <brobecker@adacore.com>
793
794 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
795 it starts with '<'.
796
8908fca5
JB
7972014-11-19 Joel Brobecker <brobecker@adacore.com>
798
799 * ada-lang.c (ada_is_redundant_range_encoding): New function.
800 (ada_is_redundant_index_type_desc): New function.
801 (to_fixed_array_type): Ignore parallel XA type if redundant.
802
4a46959e
JB
8032014-11-19 Joel Brobecker <brobecker@adacore.com>
804
805 * ada-lang.c (constrained_packed_array_type): Set the length
806 of the return array as if both bounds where zero if that
807 returned array's index type is dynamic.
808
2acf986b
YQ
8092014-11-19 Yao Qi <yao@codesourcery.com>
810
811 * config/i386/go32.mh (CC): Remove.
812
439247b6
DE
8132014-11-18 Doug Evans <xdje42@gmail.com>
814
815 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
816 updated.
817
4d663531
DE
8182014-11-18 Doug Evans <xdje42@gmail.com>
819
820 * buildsym.c (buildsym_objfile): New static global.
821 (buildsym_comp_dir): New static global.
822 (finish_block_internal): Delete arg objfile. All callers updated.
823 (finish_block): Delete arg objfile. All callers updated.
824 (start_subfile): Delete arg dirname. All callers updated.
825 (patch_subfile_names): Update buildsym_comp_dir.
826 (get_macro_table): Delete arg objfile. All callers updated.
827 (start_symtab): New arg objfile. All callers updated.
828 Rename arg dirname to comp_dir.
829 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
830 (end_symtab_get_static_block): Delete arg objfile. All callers
831 updated.
832 (end_symtab_without_blockvector): Ditto.
833 (end_symtab_with_blockvector): Ditto.
834 (end_symtab_from_static_block): Ditto.
835 (end_symtab): Ditto.
836 (end_expandable_symtab): Ditto.
837 (augment_type_symtab): Ditto.
838 * coffread.c (coff_start_symtab): New arg objfile. All callers
839 updated.
840
8435453b
DE
8412014-11-18 Doug Evans <xdje42@gmail.com>
842
843 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
844 updated.
845
ee6f8984
DE
8462014-11-18 Doug Evans <xdje42@gmail.com>
847
848 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
849 symtab.dirname updated to use it.
850
eb822aa6
DE
8512014-11-18 Doug Evans <xdje42@gmail.com>
852
853 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
854 symtab.objfile updated to use it.
855
98387a29
DE
8562014-11-18 Doug Evans <xdje42@gmail.com>
857
858 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
859
aff08958
DE
8602014-11-18 Doug Evans <xdje42@gmail.com>
861
862 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
863 SYMBOL_OBJFILE.
864 * findvar.c (default_read_var_value): Ditto.
865 * jv-lang.c (add_class_symtab_symbol): Ditto.
866 * parse.c (operator_check_standard): Ditto.
867 * printcmd.c (address_info): Ditto.
868 * symtab.c (fixup_symbol_section): Ditto.
869 (skip_prologue_sal): Ditto.
870 * tracepoint.c (scope_info): Ditto.
871 * valops.c (find_function_in_inferior): Ditto.
872 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
873 * python/py-symbol.c (set_symbol): Ditto.
874
7bab9b58
DE
8752014-11-18 Doug Evans <xdje42@gmail.com>
876
877 * buildsym.c (main_subfile): New static global.
878 (free_subfiles_list): New function.
879 (start_symtab): Set main_subfile.
880 (restart_symtab): Replace init of subfiles, current_subfile with
881 call to free_subfiles_list.
882 (watch_main_source_file_lossage): Use main_subfile.
883 (reset_symtab_globals): Replace init of current_subfile with call
884 to free_subfiles_list.
885 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
886 functions, split out from ...
887 (end_symtab_from_static_block): ... here. Rewrite to call them.
888
f194fefb
DE
8892014-11-18 Doug Evans <xdje42@gmail.com>
890
891 The result of symtab expansion is always a primary symtab.
892 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
893 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
894 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
895 (psymtab_to_symtab): Add comment and assert.
896 (map_matching_symbols_psymtab): Remove unnecessary test for
897 non-primary symtab.
898
34248c3a
DE
8992014-11-15 Doug Evans <xdje42@gmail.com>
900
901 PR symtab/17559
902 * symtab.c (find_pc_line_symtab): New function.
903 * symtab.h (find_pc_line_symtab): Declare.
904 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
905 find_pc_symtab.
906 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
907 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
908 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
909 * tui/tui-win.c (make_visible_with_new_height): Ditto.
910 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
911 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
912
2097ae25
DE
9132014-11-15 Doug Evans <xdje42@gmail.com>
914
915 * symtab.c (expand_symtab_containing_pc): Renamed from
916 find_pc_sect_symtab_via_partial. All callers updated.
917
1ada499f
YQ
9182014-11-15 Yao Qi <yao@codesourcery.com>
919
920 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
921
355e2102
JB
9222014-11-14 Joel Brobecker <brobecker@adacore.com>
923
924 * common/common-defs.h: Move <stdarg.h> #include ahead of
925 <stdio.h> #include.
926
83030110
PA
9272014-11-14 Pedro Alves <palves@redhat.com>
928
929 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
930 [!PHONY_ICONV] (gdb_iconv): New function.
931 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
932
a8719064
DE
9332014-11-13 Doug Evans <dje@google.com>
934
935 PR symtab/17591
936 * dwarf2read.c (find_slot_in_mapped_hash): Handle
937 "(anonymous namespace)".
938
60f7655a
DE
9392014-11-13 Doug Evans <dje@google.com>
940
941 * dwarf2read.c (update_enumeration_type_from_children): Avoid
942 infinite loop.
943
5784b3ca
JK
9442014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
945
946 * NEWS (maint set target-async): Fix typo.
947
6218dc4b
PA
9482014-11-12 Pedro Alves <palves@redhat.com>
949
950 * infrun.c (enum infwait_states, infwait_state): Delete.
951
af48d08f
PA
9522014-11-12 Pedro Alves <palves@redhat.com>
953
954 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
955 Rewrite stepping over a permanent breakpoint.
956 (thread_still_needs_step_over, proceed): Don't set
957 stepping_over_breakpoint for permanent breakpoints.
958 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
959 single-step breakpoints out of the target on hardware step
960 targets.
961 (process_event_stop_test): If stepping a permanent breakpoint
962 doesn't hit the step-resume breakpoint, delete the step-resume
963 breakpoint.
964 (switch_back_to_stepped_thread): Also check if the stepped thread
965 has advanced already on hardware step targets.
966 (currently_stepping): Return true if the thread stepped a
967 breakpoint.
968
1a853c52
PA
9692014-11-12 Pedro Alves <palves@redhat.com>
970
971 Mark locations as permanent, not the whole breakpoint.
972 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
973 (mark_breakpoints_out): Don't mark permanent breakpoints as
974 uninserted.
975 (breakpoint_init_inferior): Use mark_breakpoints_out.
976 (breakpoint_here_p): Adjust.
977 (bpstat_stop_status, describe_other_breakpoints): Remove handling
978 of permanent breakpoints.
979 (make_breakpoint_permanent): Mark each location as permanent,
980 instead of marking the breakpoint.
981 (add_location_to_breakpoint): If the location is permanent, mark
982 it as such, and as inserted.
983 (init_breakpoint_sal): Don't make the breakpoint permanent here.
984 (bp_location_compare, update_global_location_list): Adjust.
985 (update_breakpoint_locations): Don't make the breakpoint permanent
986 here.
987 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
988 breakpoints.
989 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
990 (struct bp_location) <permanent>: New field.
991 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
992 reference to bp_permanent.
993
ae9bb220
PA
9942014-11-12 Pedro Alves <palves@redhat.com>
995
996 * arch-utils.c (default_skip_permanent_breakpoint): New function.
997 * arch-utils.h (default_skip_permanent_breakpoint): New
998 declaration.
999 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1000 Install default_skip_permanent_breakpoint as default method.
1001 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1002 (i386_gdbarch_init): Don't install it.
1003 * infrun.c (resume): Assume there's always a
1004 gdbarch_skip_permanent_breakpoint implementation.
1005 * gdbarch.h, gdbarch.c: Regenerate.
1006
015de688
DC
10072014-11-11 Daniel Colascione <dancol@dancol.org>
1008
1009 Warn about cross-PID-namespace debugging.
1010 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1011 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1012 * linux-thread-db.c (check_pid_namespace_match): New function.
1013 (thread_db_inferior_created): Call it.
1014
26a84859
DE
10152014-11-10 Doug Evans <xdje42@gmail.com>
1016
1017 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1018 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1019
712a2e6d
DE
10202014-11-10 Doug Evans <xdje42@gmail.com>
1021
1022 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1023
af3768e9
DE
10242014-11-10 Doug Evans <xdje42@gmail.com>
1025
1026 PR symtab/17564
1027 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1028 (lookup_static_symbol): Move definition to new location and rewrite.
1029 (lookup_symbol_in_objfile): New function.
1030 (lookup_symbol_global_iterator_cb): Call it.
1031
b1f28d99
UW
10322014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1033
1034 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1035
b7a084be
PA
10362014-11-07 Pedro Alves <palves@redhat.com>
1037
1038 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1039 check if we did a "nexti" inside a prologue.
1040 * symtab.c (in_prologue): Delete function.
1041 * symtab.h (in_prologue): Delete declaration.
1042
67be31e5
DE
10432014-11-06 Doug Evans <xdje42@gmail.com>
1044
1045 * symtab.h (lookup_global_symbol): Improve function comment.
1046
08724ab7
DE
10472014-11-06 Doug Evans <xdje42@gmail.com>
1048
1049 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1050 All callers updated.
1051 * symtab.h (lookup_global_symbol): Update decl.
1052 (lookup_static_symbol): Move decl to better location.
1053
d9060ba6
DE
10542014-11-06 Doug Evans <xdje42@gmail.com>
1055
1056 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1057
74016e12
DE
10582014-11-06 Doug Evans <xdje42@gmail.com>
1059
1060 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1061 All callers updated.
1062 (lookup_symbol_in_all_objfiles): Renamed from
1063 lookup_symbol_aux_symtabs. All callers updated.
1064 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1065 All callers updated.
1066 (lookup_symbol_in_objfile_symtabs): Renamed from
1067 lookup_symbol_aux_objfile. All callers updated.
1068
d1a2d36d
DE
10692014-11-06 Doug Evans <xdje42@gmail.com>
1070
1071 * symtab.c (lookup_symbol_in_block): Renamed from
1072 lookup_symbol_aux_block. All callers updated.
1073
24d864bb
DE
10742014-11-06 Doug Evans <xdje42@gmail.com>
1075
1076 * symtab.c (lookup_static_symbol): Renamed from
1077 lookup_static_symbol_aux. All callers updated.
1078 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1079 All callers updated.
1080
358d6ab3
DE
10812014-11-06 Doug Evans <xdje42@gmail.com>
1082
1083 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1084 * block.c (block_lookup_symbol): Use it.
1085 * cp-support.c (make_symbol_overload_list_block): Use it.
1086 * symtab.c (iterate_over_symbols): Use it.
1087
16b2eaa1
DE
10882014-11-06 Doug Evans <xdje42@gmail.com>
1089
1090 * symtab.c (lookup_block_symbol): Moved to ...
1091 * block.c (block_lookup_symbol): ... here and renamed.
1092 All callers updated.
1093 * block.h (block_lookup_symbol): Declare.
1094 * symtab.h (lookup_block_symbol): Delete.
1095
2dd2cd1c
DE
10962014-11-06 Doug Evans <xdje42@gmail.com>
1097
1098 * ada-lang.c (ada_make_symbol_completion_list): Use
1099 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1100 * symtab.c (lookup_objfile_from_block): Ditto.
1101
d4c58915
DE
11022014-11-06 Doug Evans <xdje42@gmail.com>
1103
1104 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1105 TYPE_CODE_STRUCT.
1106
9c1877ea
DE
11072014-11-06 Doug Evans <xdje42@gmail.com>
1108
1109 * objfiles.c (get_objfile_arch): Constify.
1110 * objfiles.h (get_objfile_arch): Update prototype.
1111 * solib.c (solib_global_lookup): Fetch arch from objfile,
1112 not target_gdbarch.
1113
426a4079
SL
11142014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1115
1116 * nios2-tdep.c (wild_insn): Delete.
1117 (profiler_insn, irqentry_insn): Delete.
1118 (nios2_match_sequence): Delete.
1119 (nios2_analyze_prologue): Update comments. Remove matching
1120 of obsolete profiler_insn and irqentry_insn sequences.
1121
ee11262d
AM
11222014-11-05 Alan Modra <amodra@gmail.com>
1123
1124 * charset.c (convert_between_encodings): Shrink obstack using
1125 obstack_blank_fast.
1126 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1127 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1128 to char* before doing pointer arithmetic.
ee11262d 1129
c87e6d00
SM
11302014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1131
1132 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1133
441ef17f
PA
11342014-11-04 Pedro Alves <palves@redhat.com>
1135
1136 * breakpoint.c (breakpoint_thread_match): Delete function.
1137 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1138
e0f52461
SC
11392014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1140
1141 PR c++/17494
1142 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1143 the method args also under EVAL_SKIP when evaluating method
1144 calls under EVAL_SKIP.
1145
a0b4d890
YQ
11462014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1147
1148 * dwarf2loc.c (read_pieced_value): Do big endian
1149 processing only if gdb_regnum is not -1.
1150 (write_pieced_value): Ditto.
1151
11522014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1153
1154 * arm-linux-tdep.c (arm_linux_init_abi): Use
1155 info.byte_order_for_code to choose endianity of breakpoint
1156 instructions snippets.
1157
11582014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1159
1160 * arm-tdep.c (extract_arm_insn): Use
1161 gdbarch_byte_order_for_code to read arm instruction.
1162
e82149ff
DE
11632014-11-02 Doug Evans <xdje42@gmail.com>
1164
1165 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1166
d7ee84f1
DE
11672014-11-02 Doug Evans <xdje42@gmail.com>
1168
1169 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1170 main_subfile before returning.
1171
4f072d17
DE
11722014-10-31 Doug Evans <xdje42@gmail.com>
1173
1174 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1175 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1176
8301c89e
DE
11772014-10-31 Doug Evans <xdje42@gmail.com>
1178
1179 * valops.c (value_cast_pointers): Fix whitespace.
1180 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1181 Ditto.
1182
02be9a71
DE
11832014-10-30 Doug Evans <dje@google.com>
1184
1185 * NEWS: Mention ability add attributes to gdb.Objfile and
1186 gdb.Progspace objects.
1187 * python/py-objfile.c (objfile_object): New member dict.
1188 (objfpy_dealloc): Py_XDECREF dict.
1189 (objfpy_initialize): Initialize dict.
1190 (objfile_getset): Add __dict__.
1191 (objfile_object_type): Set tp_dictoffset member.
1192 * python/py-progspace.c (progspace_object): New member dict.
1193 (pspy_dealloc): Py_XDECREF dict.
1194 (pspy_initialize): Initialize dict.
1195 (pspace_getset): Add __dict__.
1196 (pspace_object_type): Set tp_dictoffset member.
1197
6427bef6
YQ
11982014-10-30 Yao Qi <yao@codesourcery.com>
1199
1200 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1201 replace '\\' with '\\\\'.
1202
f60325be
JB
12032014-10-29 Joel Brobecker <brobecker@adacore.com>
1204
1205 GDB 7.8.1 released.
1206
ab917dfb
PA
12072014-10-29 Pedro Alves <palves@redhat.com>
1208
1209 PR gdb/17408
1210 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1211 instead of assuming a thread with a stepping range is always
1212 stepping.
1213
d3d4baed
PA
12142014-10-29 Pedro Alves <palves@redhat.com>
1215
1216 PR python/17372
1217 * event-top.c (change_line_handler): Call
1218 gdb_rl_callback_handler_remove instead of
1219 rl_callback_handler_remove.
1220 (callback_handler_installed): New global.
1221 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1222 (gdb_rl_callback_handler_reinstall): New functions.
1223 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1224 gdb_rl_callback_handler_install instead of
1225 rl_callback_handler_remove and rl_callback_handler_install.
1226 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1227 instead of rl_callback_handler_remove.
1228 * event-top.h (gdb_rl_callback_handler_remove)
1229 (gdb_rl_callback_handler_install)
1230 (gdb_rl_callback_handler_reinstall): New declarations.
1231 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1232 cleanup function.
1233 (fetch_inferior_event): Install it.
1234 * top.c (gdb_readline_wrapper_line) Call
1235 gdb_rl_callback_handler_remove instead of
1236 rl_callback_handler_remove.
1237 (gdb_readline_wrapper_cleanup): Don't call
1238 rl_callback_handler_install.
1239
6e5d7f39
PA
12402014-10-29 Pedro Alves <palves@redhat.com>
1241
1242 * event-top.c (command_line_handler): Clear the first byte of
1243 linebuffer, when it is first allocated.
1244
551cb6a5
PA
12452014-10-29 Pedro Alves <palves@redhat.com>
1246
1247 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1248 TRY_CATCH.
1249
1e1e619b
PA
12502014-10-29 Pedro Alves <palves@redhat.com>
1251
1252 PR tui/16138
1253 PR tui/17519
1254 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1255 (tui_allowed_p): Delete function.
1256 * tui/tui.c: Include "interps.h".
1257 (tui_enable): Don't use tui_allowed_p. Error out here with
1258 detailed error messages if the TUI is the top level interpreter,
1259 or if output is not a terminal. Use newterm instead of initscr,
1260 and error out if initializing the terminal fails. Also error out if
1261 the terminal doesn't support cursor addressing.
1262 * tui/tui.h (tui_allowed_p): Delete declaration.
1263
6041179a
JB
12642014-10-29 Joel Brobecker <brobecker@adacore.com>
1265
1266 * arm-tdep.c (arm_skip_stack_protector): Return early if
1267 address loaded by first "ldr" instruction does not have
1268 a corresponding minimal symbol. Update comment.
1269
6ae274b7
YQ
12702014-10-29 Yao Qi <yao@codesourcery.com>
1271
1272 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1273 loaded address correctly of ldr instruction.
1274
7f5ef605
PA
12752014-10-28 Pedro Alves <palves@redhat.com>
1276
1277 PR gdb/12623
1278 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1279 field.
1280 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1281 thread's stepped_breakpoint field. Skip if reverse debugging.
1282 Add comment.
1283 (init_thread_stepping_state, handle_signal_stop): Clear the
1284 thread's stepped_breakpoint field.
1285
7d1a114c
PA
12862014-10-27 Pedro Alves <palves@redhat.com>
1287
1288 * remote.c (remote_thread_alive): New, factored out from ...
1289 (remote_thread_alive): ... this.
1290 (remote_update_thread_list): Bail out before deleting threads if
1291 the target returned an empty list, and, the current thread has a
1292 magic/fake ptid.
1293
e5f8a7cc
PA
12942014-10-27 Pedro Alves <palves@redhat.com>
1295
1296 * infrun.c (handle_signal_stop): Also skip handlers when a random
1297 signal arrives while handling a "stepi" or a "nexti". Set the
1298 thread's 'step_after_step_resume_breakpoint' flag.
1299
71e396f9
LM
13002014-10-27 Luis Machado <lgustavo@codesourcery.com>
1301
1302 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1303 (arm_record_ld_st_imm_offset): Reimplement to cover all
1304 load/store cases for ARM opcode 010.
1305 (arm_record_ld_st_multiple): Reimplement to cover all
1306 load/store cases for ARM opcode 100.
1307
3aee438b
DE
13082014-10-26 Doug Evans <xdje42@gmail.com>
1309
1310 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1311
f88cb4b6
DE
13122014-10-26 Doug Evans <xdje42@gmail.com>
1313
1314 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1315 parameter "kind" to "block_index".
1316 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1317 "block_index".
1318 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1319
a023a30f
DE
13202014-10-26 Doug Evans <xdje42@gmail.com>
1321
1322 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1323
4c35218e
DE
13242014-10-26 Doug Evans <xdje42@gmail.com>
1325
1326 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1327 obstack_alloc.
1328
f08e8df3
DE
13292014-10-26 Doug Evans <xdje42@gmail.com>
1330
1331 * parser-defs.h (block_found): Move decl from here ...
1332 * symtab.h (block_found): ... to here.
1333
cf901d3b
DE
13342014-10-26 Doug Evans <xdje42@gmail.com>
1335
1336 * symtab.h (struct field_of_this_result): Fix typo in comment.
1337 (lookup_symbol_in_language): Move function comment here.
1338 (lookup_symbol): Improve function comment.
1339 (basic_lookup_symbol_nonlocal): Ditto.
1340 (lookup_symbol_static, lookup_symbol_global): Ditto.
1341 (lookup_symbol_aux_block): Ditto.
1342 (lookup_language_this): Add function comment.
1343 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1344 function comment.
1345 (lookup_block_symbol): Improve function comment.
1346 (lookup_struct): Fix capitalization in function comment.
1347 (lookup_transparent_type): Add function comment.
1348 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1349 Improve function comment.
1350 (lookup_objfile_from_block): Add function comment.
1351 * symtab.c (lookup_symbol_in_language): Update function comment.
1352 (lookup_symbol, lookup_language_this): Ditto.
1353 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1354 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1355 (basic_lookup_symbol_nonlocal): Ditto.
1356 (lookup_symbol_static, lookup_symbol_global): Ditto.
1357 (lookup_transparent_type, lookup_block_symbol): Ditto.
1358
ff6c39cf
DE
13592014-10-25 Doug Evans <xdje42@gmail.com>
1360
1361 * symtab.c (types_info): Delete forward decl.
1362 (functions_info, variables_info, sources_info): Ditto.
1363 (_initialize_symtab): Rewrite forward decl to use
1364 initialize_file_ftype.
1365
ec201f0c
DE
13662014-10-25 Doug Evans <xdje42@gmail.com>
1367
1368 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1369
ca040673
DE
13702014-10-25 Doug Evans <xdje42@gmail.com>
1371
1372 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1373 of local var child_die.
1374
6f259a23
DB
13752014-10-24 Don Breazeal <donb@codesourcery.com>
1376
1377 * infrun.c (follow_fork_inferior): Update fork message printing
1378 to use target_terminal_ours_for_output instead of
1379 target_terminal_ours, to use _() for all format strings, to print
1380 "vfork" instead of "fork" for vforks, and to add a detach message.
1381 (handle_vfork_child_exec_or_exit): Update message printing to use
1382 target_terminal_ours_for_output instead of target_terminal_ours, to
1383 use _() for all format strings, and to fix some formatting.
1384
09dd9a69
PA
13852014-10-24 Pedro Alves <palves@redhat.com>
1386
1387 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1388 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1389 * config/vax/vax.mh: Delete.
1390 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1391 obsolete configurations section.
1392 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1393 * vax-nat.c: Delete file.
1394
5ab806de
PA
13952014-10-24 Pedro Alves <palves@redhat.com>
1396
1397 * NEWS (Removed targets): Add OS/arch column.
1398
3433cfa5
SC
13992014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1400
1401 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1402 on the arg type of a constructor only if it is of reference type.
1403
96ba4233
SL
14042014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1405
1406 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1407 accessors and constants from nios2 opcodes update.
1408 (nios2_get_next_pc): Likewise.
1409
28153fd3
DE
14102014-10-19 Doug Evans <xdje42@gmail.com>
1411
1412 * gdbthread.h (set_running): Fix comment.
1413 (set_executing, finish_thread_state): Fix comment.
1414
fc9b8e47
DE
14152014-10-18 Doug Evans <xdje42@gmail.com>
1416
1417 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1418
4ffbba72
DE
14192014-10-17 Doug Evans <dje@google.com>
1420
1421 * NEWS: Mention new event gdb.clear_objfiles.
1422 * python/py-event.h (emit_clear_objfiles_event): Clear
1423 * python/py-events.h (events_object): New member clear_objfiles.
1424 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1425 event.
1426 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1427 emit clear_objfiles event.
1428 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1429 function.
1430 (emit_clear_objfiles_event): New function.
1431 (clear_objfiles): New event.
1432 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1433 Declare.
1434 * python/python.c (_initialize_python): Call
1435 gdbpy_initialize_clear_objfiles_event.
1436
d096d8c1
DE
14372014-10-17 Doug Evans <dje@google.com>
1438
1439 * NEWS: Mention new gdb.Objfile.progspace attribute.
1440 * python/py-objfile.c (objfpy_get_progspace): New function.
1441 (objfile_getset): New entry for "progspace".
1442
6c4486e6
PA
14432014-10-17 Pedro Alves <palves@redhat.com>
1444
1445 PR gdb/17471
1446 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1447 returns a copy of the input.
1448 (run_command_1, continue_command, step_1, jump_command)
1449 (signal_command, until_command, advance_command, finish_command)
1450 (attach_command): Adjust and install a cleanup to free the
1451 stripped args.
1452
0ff33695
PA
14532014-10-17 Pedro Alves <palves@redhat.com>
1454
1455 PR gdb/17300
1456 * infcmd.c (continue_1): If continuing all threads in the
1457 foreground, make sure the inferior's terminal settings are put in
1458 effect.
1459
6fdebc3d
PA
14602014-10-17 Pedro Alves <palves@redhat.com>
1461
1462 PR gdb/17472
1463 * annotate.c (annotate_breakpoints_invalid): Use
1464 target_terminal_our_for_output instead of target_terminal_ours.
1465 Give back the terminal to the target.
1466 (annotate_frames_invalid): Likewise.
1467
5842f62a
PA
14682014-10-17 Pedro Alves <palves@redhat.com>
1469
1470 * target.c (enum terminal_state): New enum.
1471 (terminal_state): New global.
1472 (target_terminal_init): New function.
1473 (target_terminal_inferior): Skip if inferior already owns the
1474 terminal.
1475 (target_terminal_ours, target_terminal_ours_for_output): New
1476 functions.
1477 * target.h (target_terminal_init): Convert to function prototype.
1478 (target_terminal_ours_for_output): Convert to function prototype
1479 and tweak comment.
1480 (target_terminal_ours): Convert to function prototype and tweak
1481 comment.
1482 * windows-nat.c (do_initial_windows_stuff): Call
1483 target_terminal_init instead of child_terminal_init_with_pgrp.
1484
32a8097b
PA
14852014-10-17 Pedro Alves <palves@redhat.com>
1486
1487 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1488 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1489 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1490 solib-osf.c.
1491 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1492 * ada-lang.h [__alpha__ && __osf__]
1493 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1494 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1495 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1496 GDB_OSABI_OSF1.
1497 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1498 files.
1499 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1500 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1501 * configure: Regenerate.
1502 * configure.ac: Remove references to osf.
1503 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1504 section. Remove all other references to osf.
1505 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1506 Remove all other references to osf.
1507 * dec-thread.c: Delete file.
1508 * defs.h (GDB_OSABI_OSF1): Delete.
1509 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1510 defined.
1511 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1512 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1513 Delete code.
1514 (unconditionally_kill_inferior)
1515 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1516 * solib-osf.c: Delete file.
1517
80134cf5
PA
15182014-10-17 Pedro Alves <palves@redhat.com>
1519
1520 * remote.c (clear_threads_listing_context): Move higher up, out of
1521 the HAVE_LIBEXPAT guard.
1522
89c7137f
TG
15232014-10-16 Tristan Gingold <gingold@adacore.com>
1524
1525 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1526 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1527 on amd64.
1528
44ee4a52
PA
15292014-10-15 Pedro Alves <palves@redhat.com>
1530
1531 * dec-thread.c (dec_thread_count_gdb_threads)
1532 (dec_thread_add_gdb_thread): Delete.
1533 (dec_thread_update_thread_list): Delete.
1534 (dec_thread_find_new_threads): Rename to ...
1535 (dec_thread_update_thread_list): ... this. Delete GDB-size
1536 threads that are no longer found in dec_thread_list.
1537 (resync_thread_list): Delete.
1538 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1539 resync_thread_list.
1540
ab970af1
PA
15412014-10-15 Pedro Alves <palves@redhat.com>
1542
1543 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1544 * remote.c (remote_update_thread_list): Skip calling prune_threads
1545 if any thread listing method is supported, and instead walk over
1546 the set of remote threads listed, deleting those that are not
1547 found in GDB's thread list.
1548
e8032dde
PA
15492014-10-15 Pedro Alves <palves@redhat.com>
1550
1551 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1552 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1553 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1554 (bsd_uthread_target): Adjust.
1555 * corelow.c (core_open): Adjust.
1556 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1557 (dec_thread_update_thread_list): New function.
1558 (init_dec_thread_ops): Adjust.
1559 * gdbthread.h (prune_threads): New declaration.
1560 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1561 (thread_db_update_thread_list): ... this. Call prune_threads.
1562 (init_thread_db_ops): Adjust.
1563 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1564 (procfs_update_thread_list): ... this. Call prune_threads.
1565 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1566 Adjust.
1567 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1568 (obsd_update_thread_list): ... this. Call prune_threads.
1569 (obsd_add_target): Adjust.
1570 * procfs.c (procfs_target): Adjust.
1571 (procfs_notice_thread): Update comment.
1572 (procfs_find_new_threads): Rename to ...
1573 (procfs_update_thread_list): ... this. Call prune_threads.
1574 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1575 comment.
1576 (ravenscar_wait): Adjust.
1577 (ravenscar_find_new_threads): Rename to ...
1578 (ravenscar_update_thread_list): ... this. Call prune_threads.
1579 (init_ravenscar_thread_ops): Adjust.
1580 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1581 (record_btrace_update_thread_list): ... this. Adjust comment.
1582 (init_record_btrace_ops): Adjust.
1583 * remote.c (remote_threads_info): Rename to ...
1584 (remote_update_thread_list): ... this. Call prune_threads.
1585 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1586 Adjust.
1587 * sol-thread.c (check_for_thread_db): Adjust.
1588 (sol_find_new_threads_callback): Rename to ...
1589 (sol_update_thread_list_callback): ... this.
1590 (sol_find_new_threads): Rename to ...
1591 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1592 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1593 * target-delegates.c: Regenerate.
1594 * target.c (target_find_new_threads): Rename to ...
1595 (target_update_thread_list): ... this.
1596 * target.h (struct target_ops): Rename to_find_new_threads field
1597 to to_update_thread_list.
1598 (target_find_new_threads): Rename to ...
1599 (target_update_thread_list): ... this.
1600 * thread.c (prune_threads): Make extern.
1601 (update_thread_list): Adjust.
1602
6dc54d91
PA
16032014-10-15 Pedro Alves <palves@redhat.com>
1604
1605 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1606 Add describing comment. Return -1 if the qL packet is not
1607 supported.
1608 (struct thread_item, thread_item_t): Move higher up in
1609 the file. Add comments.
1610 (struct threads_parsing_context): Move higher up in
1611 the file, add comments, and remote to ...
1612 (struct threads_listing_context): ... this.
1613 (remote_newthread_step): Don't add the thread to GDB's thread
1614 database here. Instead push it to the thread_listing_context
1615 list.
1616 (remote_find_new_threads): Rename to ...
1617 (remote_get_threads_with_ql): ... this. Add target_ops and
1618 targets_listing_context parameters. Pass down context.
1619 (start_thread): Adjust.
1620 (clear_threads_parsing_context): Rename to ...
1621 (clear_threads_listing_context): ... this.
1622 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1623 remote_threads_info.
1624 (remote_get_threads_with_qthreadinfo): Ditto.
1625 (remote_threads_info): Reimplement.
1626
36728e82
PA
16272014-10-15 Pedro Alves <palves@redhat.com>
1628
1629 * infrun.c (resume): Don't force displaced-stepping for all
1630 single-steps on software single-stepping archs.
1631
34b7e8a6
PA
16322014-10-15 Pedro Alves <palves@redhat.com>
1633
1634 * breakpoint.c (single_step_breakpoints): Delete global.
1635 (insert_single_step_breakpoint): Adjust to store the breakpoint
1636 pointer in the current thread.
1637 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1638 (cancel_single_step_breakpoints): Delete functions.
1639 (breakpoint_has_location_inserted_here): Make extern.
1640 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1641 breakpoint list.
1642 * breakpoint.h (breakpoint_has_location_inserted_here): New
1643 declaration.
1644 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1645 (cancel_single_step_breakpoints): Remove declarations.
1646 * gdbthread.h (struct thread_control_state)
1647 <single_step_breakpoints>: New field.
1648 (delete_single_step_breakpoints)
1649 (thread_has_single_step_breakpoints_set)
1650 (thread_has_single_step_breakpoint_here): New declarations.
1651 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1652 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1653 (singlestep_pc): Delete globals.
1654 (infrun_thread_ptid_changed): Remove references to removed
1655 globals.
1656 (resume_cleanups): Delete the current thread's single-step
1657 breakpoints.
1658 (maybe_software_singlestep): Remove references to removed globals.
1659 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1660 delete_single_step_breakpoints.
1661 (init_wait_for_inferior): Remove references to removed globals.
1662 (delete_thread_infrun_breakpoints): Delete the thread's
1663 single-step breakpoints too.
1664 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1665 single-step breakpoints here.
1666 (delete_stopped_threads_single_step_breakpoints): New function.
1667 (adjust_pc_after_break): Adjust to use
1668 thread_has_single_step_breakpoints_set.
1669 (handle_inferior_event): Remove references to removed globals.
1670 Use delete_stopped_threads_single_step_breakpoints.
1671 (handle_signal_stop): Adjust to per-thread single-step
1672 breakpoints. Swap test order to do cheaper tests first.
1673 (switch_back_to_stepped_thread): Extend debug output. Remove
1674 references to removed globals.
1675 * record-full.c (record_full_wait_1): Adjust to per-thread
1676 single-step breakpoints.
1677 * thread.c (delete_single_step_breakpoints)
1678 (thread_has_single_step_breakpoints_set)
1679 (thread_has_single_step_breakpoint_here): New functions.
1680 (clear_thread_inferior_resources): Also delete the thread's
1681 single-step breakpoints.
1682
5b834a0a
PA
16832014-10-15 Pedro Alves <palves@redhat.com>
1684
1685 * thread.c (delete_thread_breakpoint): New function.
1686 (delete_step_resume_breakpoint)
1687 (delete_exception_resume_breakpoint): Use it.
1688 (delete_at_next_stop): New function.
1689 (clear_thread_inferior_resources): Use delete_at_next_stop.
1690
a1fd2fa5
PA
16912014-10-15 Pedro Alves <palves@redhat.com>
1692
1693 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1694 (breakpoint_inserted_here_p): ... here. Remove special case for
1695 software single-step breakpoints.
1696 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1697 (software_breakpoint_inserted_here_p): ... here. Remove special
1698 case for software single-step breakpoints.
1699 (bp_target_info_copy_insertion_state)
1700 (deprecated_insert_raw_breakpoint)
1701 (deprecated_remove_raw_breakpoint): Delete functions.
1702 * breakpoint.h (deprecated_insert_raw_breakpoint)
1703 (deprecated_remove_raw_breakpoint): Remove declarations.
1704
7c16b83e
PA
17052014-10-15 Pedro Alves <palves@redhat.com>
1706
1707 PR breakpoints/9649
1708 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1709 Delete array globals.
1710 (single_step_breakpoints): New global.
1711 (breakpoint_xfer_memory): Remove special handling for single-step
1712 breakpoints.
1713 (update_breakpoints_after_exec): Delete bp_single_step
1714 breakpoints.
1715 (detach_breakpoints): Remove special handling for single-step
1716 breakpoints.
1717 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1718 (bpstat_stop_status): Add comment.
1719 (bpstat_what, bptype_string, print_one_breakpoint_location)
1720 (adjust_breakpoint_address, init_bp_location): Handle
1721 bp_single_step.
1722 (new_single_step_breakpoint): New function.
1723 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1724 handling for single-step breakpoints.
1725 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1726 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1727 Rewrite.
1728 (detach_single_step_breakpoints, find_single_step_breakpoint):
1729 Delete functions.
1730 (breakpoint_has_location_inserted_here): New function.
1731 (single_step_breakpoint_inserted_here_p): Rewrite.
1732 * breakpoint.h: Remove FIXME.
1733 (enum bptype) <bp_single_step>: New enum value.
1734 (insert_single_step_breakpoint): Update comment.
1735 * infrun.c (resume_cleanups)
1736 (delete_step_thread_step_resume_breakpoint): Remove single-step
1737 breakpoints.
1738 (fetch_inferior_event): Install a cleanup that removes infrun
1739 breakpoints.
1740 (switch_back_to_stepped_thread) <expect thread advanced also>:
1741 Clear step-over info.
1742
0cbcdb96
PA
17432014-10-15 Pedro Alves <palves@redhat.com>
1744
1745 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1746 (delete_thread_infrun_breakpoints): New function, with parts
1747 salvaged from delete_step_resume_breakpoint_callback.
1748 (delete_step_thread_step_resume_breakpoint): Delete.
1749 (for_each_just_stopped_thread_callback_func): New typedef.
1750 (for_each_just_stopped_thread): New function.
1751 (delete_just_stopped_threads_infrun_breakpoints): New function.
1752 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1753 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1754 ... this. Adjust.
1755 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1756
963f9c80
PA
17572014-10-15 Pedro Alves <palves@redhat.com>
1758
1759 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1760 trying to step past a non-steppable watchpoint.
1761 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1762 field.
1763 * infrun.c (struct step_over_info): Add new field
1764 'nonsteppable_watchpoint_p' and adjust comments.
1765 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1766 Adjust.
1767 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1768 (stepping_past_nonsteppable_watchpoint): New function.
1769 (step_over_info_valid_p): Also return true if stepping past a
1770 nonsteppable watchpoint.
1771 (proceed): Adjust call to set_step_over_info. Remove reference to
1772 init_infwait_state.
1773 (init_wait_for_inferior): Remove reference to init_infwait_state.
1774 (waiton_ptid): Delete global.
1775 (struct execution_control_state)
1776 <stepped_after_stopped_by_watchpoint>: Delete field.
1777 (wait_for_inferior, fetch_inferior_event): Always pass
1778 minus_one_ptid to target_wait.
1779 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1780 field.
1781 (init_infwait_state): Delete function.
1782 (handle_inferior_event): Remove infwait_state handling.
1783 (handle_signal_stop) <watchpoints handling>: Adjust after
1784 stepped_after_stopped_by_watchpoint removal. Don't remove
1785 breakpoints here nor set infwait_state. Set the thread's
1786 stepping_over_watchpoint flag, and call keep_going instead.
1787 (keep_going): Handle stepping_over_watchpoint. Adjust
1788 set_step_over_info calls.
1789 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1790 function.
1791
6cc83d2a
PA
17922014-10-15 Pedro Alves <palves@redhat.com>
1793
1794 * infrun.c (step_over_info_valid_p): New function.
1795 (resume): Use step_over_info_valid_p instead of checking the
1796 threads's trap_expected flag.
1797
6979730b
DE
17982014-10-15 Doug Evans <dje@google.com>
1799 Walfred Tedeschi <walfred.tedeschi@intel.com>
1800
1801 PR python/17364
1802 * python/lib/gdb/__init__.py (packages): Add "printer".
1803 * python/lib/gdb/command/bound_registers.py: Moved to ...
1804 * python/lib/gdb/printer/bound_registers.py: ... here.
1805 Add printer to global set of builtin printers. Rename printer from
1806 "bound" to "mpx_bound128".
1807 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1808 registered as global "builtin" printer.
1809 (add_builtin_pretty_printer): New function.
1810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1811 gdb/printer/__init__.py.
1812
35a49624
IB
18132014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1814
1815 * Makefile.in (SFILES): Remove d-support.c.
1816 (COMMON_OBS): Remove d-support.o.
1817 * d-lang.h (d_parse_symbol): Remove declaration.
1818 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1819 * d-support.c: Remove file.
1820
8fa0c4f8
AA
18212014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1822
1823 * gdb/infrun.c (process_event_stop_test): Apply
1824 gdbarch_addr_bits_remove to longjmp resume address.
1825
3666da81
PA
18262014-10-15 Pedro Alves <palves@redhat.com>
1827
1828 * regformats/microblaze.dat: Delete file.
1829
449aa9df
AKA
18302014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1831
1832 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1833 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1834
ebb8ece2
SC
18352014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1836
1837 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1838 as non-trivial.
1839
82c48ac7
SC
18402014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1841
1842 PR c++/13403
1843 PR c++/15154
1844 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1845 with qualified args.
1846
c40cc657
JB
18472014-10-14 Joel Brobecker <brobecker@adacore.com>
1848
1849 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1850 of the case where the second operand is a pointer.
1851 <BINOP_SUB>: Likewise.
1852
0ea5cda8
SDJ
18532014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1854
1855 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1856 only if it is not NULL.
1857 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1858 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1859 (struct probe_ops) <clear_semaphore>: Likewise.
1860 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1861 not NULL.
1862 (stop_tracing): Likewise, for clear_semaphore.
1863
f7088df3
SDJ
18642014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1865
1866 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1867 using language_c, instead of current_language.
1868
4e1bbde0
DE
18692014-10-13 Doug Evans <dje@google.com>
1870
6ff5a0f6 1871 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1872 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1873 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1874 (pspy_new, pspace_to_pspace_object): Call it.
1875
c780cc2f
JK
18762014-10-13 Miroslav Franc <mfranc@redhat.com>
1877 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 Fix "save breakpoints" for "catch" command.
1880 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1881 newline.
1882
99894e11
JK
18832014-10-12 Miroslav Franc <mfranc@redhat.com>
1884
1885 Fix "save breakpoints" for "disable $bpnum" command.
1886 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1887
3831839c
PA
18882014-10-10 Pedro Alves <palves@redhat.com>
1889
1890 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1891 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1892 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1893 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1894 and been removed.
1895 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1896 * configure.ac: Remove references to IRIX.
1897 * configure.host: Add *-*-irix* to the obsolete hosts section.
1898 Remove all other references to irix.
1899 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1900 Delete files.
1901
cc3afae2
AKA
19022014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1903
1904 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1905 isn't valid, release the tdesc arch data and return NULL.
1906
cdfa0b0a
PA
19072014-10-10 Pedro Alves <palves@redhat.com>
1908
1909 * linux-tdep.c: Include observer.h.
1910 (linux_inferior_data): New global.
1911 (struct linux_info): New structure.
1912 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1913 (get_linux_inferior_data): New functions.
1914 (linux_vsyscall_range): Rename to ...
1915 (linux_vsyscall_range_raw): ... this.
1916 (linux_vsyscall_range): New function; handles caching.
1917 (_initialize_linux_tdep): Register linux_inferior_data. Install
1918 inferior_exit and inferior_appeared observers.
1919
8b9a549d
PA
19202014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 Pedro Alves <palves@redhat.com>
1922
1923 PR symtab/14466
1924 * solib-svr4.c (svr4_read_so_list): Rename to ...
1925 (svr4_current_sos_1): ... this and change the function comment.
1926 (svr4_current_sos): New function.
1927
3437254d
PA
19282014-10-10 Pedro Alves <palves@redhat.com>
1929
1930 * arch-utils.c (default_vsyscall_range): New function.
1931 * arch-utils.h (default_vsyscall_range): New declaration.
1932 * gdbarch.sh (vsyscall_range): New hook.
1933 * gdbarch.h, gdbarch.c: Regenerate.
1934 * linux-tdep.c (linux_vsyscall_range): New function.
1935 (linux_init_abi): Install linux_vsyscall_range as
1936 vsyscall_range gdbarch hook.
1937 * memrange.c (address_in_mem_range): New function.
1938 * memrange.h (address_in_mem_range): New declaration.
1939 * symfile-mem.c (find_vdso_size): Delete function.
1940 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1941
31cc0b80
PA
19422014-10-10 Pedro Alves <palves@redhat.com>
1943
1944 * infrun.c (normal_stop): Fix typo in comment.
1945
3e3286a2
SDJ
19462014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1947
1948 PR tdep/9390
1949 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1950 typo when using logical AND to determine instruction type.
1951
fcbdedf8
YQ
19522014-10-09 Yao Qi <yao@codesourcery.com>
1953
1954 * infrun.c (handle_signal_stop): Remove local variable
1955 'printed'.
1956
db984616
SS
19572014-10-08 Stan Shebs <stan@codesourcery.com>
1958
1959 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1960
3ba37e6c
GB
19612014-10-08 Gary Benson <gbenson@redhat.com>
1962
1963 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1964
a442d071
GB
19652014-10-08 Gary Benson <gbenson@redhat.com>
1966
1967 * common/common-defs.h: Include common-exceptions.h.
1968 * exceptions.h: Do not include common-exceptions.h.
1969
6f1947e8
GB
19702014-10-08 Gary Benson <gbenson@redhat.com>
1971
1972 * common/common-defs.h: Include cleanups.h.
1973 * common/common-exceptions.c: Do not include cleanups.h.
1974 * utils.h: Likewise.
1975
c765fdb9
GB
19762014-10-08 Gary Benson <gbenson@redhat.com>
1977
1978 * ada-lang.c: Do not include exceptions.h.
1979 * ada-valprint.c: Likewise.
1980 * amd64-tdep.c: Likewise.
1981 * auto-load.c: Likewise.
1982 * block.c: Likewise.
1983 * break-catch-throw.c: Likewise.
1984 * breakpoint.c: Likewise.
1985 * btrace.c: Likewise.
1986 * c-lang.c: Likewise.
1987 * cli/cli-cmds.c: Likewise.
1988 * cli/cli-interp.c: Likewise.
1989 * cli/cli-script.c: Likewise.
1990 * completer.c: Likewise.
1991 * corefile.c: Likewise.
1992 * corelow.c: Likewise.
1993 * cp-abi.c: Likewise.
1994 * cp-support.c: Likewise.
1995 * cp-valprint.c: Likewise.
1996 * darwin-nat.c: Likewise.
1997 * dwarf2-frame-tailcall.c: Likewise.
1998 * dwarf2-frame.c: Likewise.
1999 * dwarf2loc.c: Likewise.
2000 * dwarf2read.c: Likewise.
2001 * eval.c: Likewise.
2002 * event-loop.c: Likewise.
2003 * event-top.c: Likewise.
2004 * f-valprint.c: Likewise.
2005 * frame-unwind.c: Likewise.
2006 * frame.c: Likewise.
2007 * gdbtypes.c: Likewise.
2008 * gnu-v2-abi.c: Likewise.
2009 * gnu-v3-abi.c: Likewise.
2010 * guile/scm-auto-load.c: Likewise.
2011 * guile/scm-breakpoint.c: Likewise.
2012 * guile/scm-cmd.c: Likewise.
2013 * guile/scm-frame.c: Likewise.
2014 * guile/scm-lazy-string.c: Likewise.
2015 * guile/scm-param.c: Likewise.
2016 * guile/scm-symbol.c: Likewise.
2017 * guile/scm-type.c: Likewise.
2018 * hppa-hpux-tdep.c: Likewise.
2019 * i386-tdep.c: Likewise.
2020 * inf-loop.c: Likewise.
2021 * infcall.c: Likewise.
2022 * infcmd.c: Likewise.
2023 * infrun.c: Likewise.
2024 * interps.c: Likewise.
2025 * interps.h: Likewise.
2026 * jit.c: Likewise.
2027 * linespec.c: Likewise.
2028 * linux-nat.c: Likewise.
2029 * linux-thread-db.c: Likewise.
2030 * m32r-rom.c: Likewise.
2031 * main.c: Likewise.
2032 * memory-map.c: Likewise.
2033 * mi/mi-cmd-break.c: Likewise.
2034 * mi/mi-cmd-stack.c: Likewise.
2035 * mi/mi-interp.c: Likewise.
2036 * mi/mi-main.c: Likewise.
2037 * monitor.c: Likewise.
2038 * nto-procfs.c: Likewise.
2039 * objc-lang.c: Likewise.
2040 * p-valprint.c: Likewise.
2041 * parse.c: Likewise.
2042 * ppc-linux-tdep.c: Likewise.
2043 * printcmd.c: Likewise.
2044 * probe.c: Likewise.
2045 * python/py-auto-load.c: Likewise.
2046 * python/py-breakpoint.c: Likewise.
2047 * python/py-cmd.c: Likewise.
2048 * python/py-finishbreakpoint.c: Likewise.
2049 * python/py-frame.c: Likewise.
2050 * python/py-framefilter.c: Likewise.
2051 * python/py-function.c: Likewise.
2052 * python/py-gdb-readline.c: Likewise.
2053 * python/py-inferior.c: Likewise.
2054 * python/py-infthread.c: Likewise.
2055 * python/py-lazy-string.c: Likewise.
2056 * python/py-linetable.c: Likewise.
2057 * python/py-param.c: Likewise.
2058 * python/py-prettyprint.c: Likewise.
2059 * python/py-symbol.c: Likewise.
2060 * python/py-type.c: Likewise.
2061 * python/py-value.c: Likewise.
2062 * python/python-internal.h: Likewise.
2063 * python/python.c: Likewise.
2064 * record-btrace.c: Likewise.
2065 * record-full.c: Likewise.
2066 * regcache.c: Likewise.
2067 * remote-fileio.c: Likewise.
2068 * remote-mips.c: Likewise.
2069 * remote.c: Likewise.
2070 * rs6000-aix-tdep.c: Likewise.
2071 * rs6000-nat.c: Likewise.
2072 * skip.c: Likewise.
2073 * solib-darwin.c: Likewise.
2074 * solib-dsbt.c: Likewise.
2075 * solib-frv.c: Likewise.
2076 * solib-ia64-hpux.c: Likewise.
2077 * solib-spu.c: Likewise.
2078 * solib-svr4.c: Likewise.
2079 * solib.c: Likewise.
2080 * spu-tdep.c: Likewise.
2081 * stack.c: Likewise.
2082 * stap-probe.c: Likewise.
2083 * symfile-mem.c: Likewise.
2084 * symmisc.c: Likewise.
2085 * target.c: Likewise.
2086 * thread.c: Likewise.
2087 * top.c: Likewise.
2088 * tracepoint.c: Likewise.
2089 * tui/tui-interp.c: Likewise.
2090 * typeprint.c: Likewise.
2091 * utils.c: Likewise.
2092 * valarith.c: Likewise.
2093 * valops.c: Likewise.
2094 * valprint.c: Likewise.
2095 * value.c: Likewise.
2096 * varobj.c: Likewise.
2097 * windows-nat.c: Likewise.
2098 * xml-support.c: Likewise.
2099
484933d1
MR
21002014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2101
2102 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2103 name implies.
2104 (extended_mips16_next_pc): Update accordingly.
2105
ab50adb6
MR
21062014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2107
2108 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2109 function.
2110 (micromips_instruction_is_compact_branch): Likewise.
2111 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2112 or a compact jump, reaching a jump delay slot, or seeing a
2113 second non-prologue instruction.
2114 (micromips_scan_prologue): Also terminate scanning upon seeing a
2115 compact branch or jump, or reaching a branch or jump delay slot.
2116 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2117 or jump delay slot, or seeing a second non-prologue instruction.
2118 (mips32_instruction_has_delay_slot): Retain instruction
2119 examination code only, update arguments accordingly and move
2120 instruction fetch pieces to...
2121 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2122 (micromips_instruction_has_delay_slot): Likewise and to...
2123 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2124 (mips16_instruction_has_delay_slot): Likewise and to...
2125 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2126 (mips_single_step_through_delay): Update accordingly.
2127 (mips_adjust_breakpoint_address): Likewise.
2128
ae790652
MR
21292014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2130
2131 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2132 !mustbe32 also return 1 for 32-bit instructions.
2133 (mips16_instruction_has_delay_slot): Likewise. Add an
2134 explanatory comment.
2135
9b807e7b
MR
21362014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2137
2138 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2139 symbols special.
2140
0d5ed153
MR
21412014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2142
2143 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2144 update comments.
2145 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2146 for the breakpoint's address. Don't preinitialize `placed_size'.
2147 (insert_bp_location): Set `reqstd_address' rather than
2148 `placed_address'.
2149 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2150 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2151 address.
2152 (bkpt_remove_location): Likewise.
2153 (deprecated_insert_raw_breakpoint): Likewise.
2154 (deprecated_remove_raw_breakpoint): Likewise.
2155 (find_single_step_breakpoint): Likewise.
2156 * mem-break.c (default_memory_insert_breakpoint): Use
2157 `reqstd_address' for the breakpoint's address. Don't set
2158 `placed_address' or `placed_size' if breakpoint contents couldn't
2159 have been determined.
2160 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2161 the breakpoint's address.
2162 (remote_insert_hw_breakpoint): Likewise. Don't set
2163 `placed_address' or `placed_size' if breakpoint couldn't have been
2164 set.
2165 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2166 `reqstd_address' for the breakpoint's address.
2167 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2168 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2169 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2170 * microblaze-linux-tdep.c
2171 (microblaze_linux_memory_remove_breakpoint): Likewise.
2172 * monitor.c (monitor_insert_breakpoint): Likewise.
2173 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2174 (procfs_insert_hw_breakpoint): Likewise.
2175 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2176 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2177 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2178 * remote-mips.c (mips_insert_breakpoint): Likewise.
2179 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2180
3e871532
LM
21812014-10-03 Luis Machado <lgustavo@codesourcery.com>
2182
2183 * valops.c (value_assign): Check for bit field assignments
2184 before calling architecture-specific register value
2185 conversion functions.
2186
ec48dc8b
PM
21872014-10-03 Pierre Muller <muller@sourceware.org>
2188
2189 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2190
b57bacec
PA
21912014-10-02 Pedro Alves <palves@redhat.com>
2192
2193 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2194 threads_are_executing.
2195 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2196 describing comment.
2197 * gdbthread.h (threads_are_executing): Declare.
2198 (handle_signal_stop) <random signals>: Don't print about the
2199 signal here if stopping.
2200 (end_stepping_range): Don't notify observers here.
2201 (normal_stop): Update the thread list. If stopped by a random
2202 signal or a stepping range ended, notify observers.
2203 * thread.c (threads_executing): New global.
2204 (init_thread_list): Clear 'threads_executing'.
2205 (set_executing): Set or clear 'threads_executing'.
2206 (threads_are_executing): New function.
2207 (update_threads_executing): New function.
2208 (update_thread_list): Use it.
2209
13fd3ff3
PA
22102014-10-02 Pedro Alves <palves@redhat.com>
2211
2212 PR breakpoints/17431
2213 * breakpoint.c (update_breakpoints_after_exec): Don't create
2214 overlay, longjmp, std terminate nor exception breakpoints here.
2215
32990ada
PA
22162014-10-02 Pedro Alves <palves@redhat.com>
2217
2218 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2219 Adjust comments.
2220 * inferior.c (find_inferior_for_program_space): Give preference to
2221 the current inferior.
2222 * inferior.h (find_inferior_for_program_space): Update comment.
2223 * progspace.c (switch_to_program_space_and_thread): Prefer the
2224 current inferior if it's bound to the program space requested. If
2225 the inferior found doesn't have a PID yet, don't bother looking up
2226 a thread.
2227 * progspace.h (switch_to_program_space_and_thread): Adjust
2228 comment.
2229 * thread.c (any_thread_of_process, any_live_thread_of_process):
2230 Give preference to the current thread.
2231
0fec99e8
PA
22322014-10-01 Pedro Alves <palves@redhat.com>
2233
2234 * breakpoint.c (insert_bp_location): Error out if inserting a
2235 software breakpoint at a read-only address.
2236 * target.c (memory_xfer_check_region): New function, factored out
2237 from ...
2238 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2239 ULONGEST.
2240 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2241 against the memory region attributes.
2242
2ddf4301
SM
22432014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2244
2245 * NEWS: Announce new exit-code field in -list-thread-groups
2246 output.
2247 * inferior.c (exit_inferior_1): Don't clear exit code.
2248 (inferior_appeared): Clear exit code.
2249 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2250 code.
2251
5fdeec1d
PA
22522014-10-01 Pedro Alves <palves@redhat.com>
2253
2254 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2255 GENERATED" along with emacs/vi read-only markers.
2256 * regformats/aarch64.dat: Regenerate.
2257 * regformats/arm-with-iwmmxt.dat: Regenerate.
2258 * regformats/arm-with-neon.dat: Regenerate.
2259 * regformats/arm-with-vfpv2.dat: Regenerate.
2260 * regformats/arm-with-vfpv3.dat: Regenerate.
2261 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2262 * regformats/i386/amd64-avx.dat: Regenerate.
2263 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2264 * regformats/i386/amd64-avx512.dat: Regenerate.
2265 * regformats/i386/amd64-linux.dat: Regenerate.
2266 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2267 * regformats/i386/amd64-mpx.dat: Regenerate.
2268 * regformats/i386/amd64.dat: Regenerate.
2269 * regformats/i386/i386-avx-linux.dat: Regenerate.
2270 * regformats/i386/i386-avx.dat: Regenerate.
2271 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2272 * regformats/i386/i386-avx512.dat: Regenerate.
2273 * regformats/i386/i386-linux.dat: Regenerate.
2274 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2275 * regformats/i386/i386-mmx.dat: Regenerate.
2276 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2277 * regformats/i386/i386-mpx.dat: Regenerate.
2278 * regformats/i386/i386.dat: Regenerate.
2279 * regformats/i386/x32-avx-linux.dat: Regenerate.
2280 * regformats/i386/x32-avx.dat: Regenerate.
2281 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2282 * regformats/i386/x32-avx512.dat: Regenerate.
2283 * regformats/i386/x32-linux.dat: Regenerate.
2284 * regformats/i386/x32.dat: Regenerate.
2285 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2286 * regformats/mips-dsp-linux.dat: Regenerate.
2287 * regformats/mips-linux.dat: Regenerate.
2288 * regformats/mips64-dsp-linux.dat: Regenerate.
2289 * regformats/mips64-linux.dat: Regenerate.
2290 * regformats/nios2-linux.dat: Regenerate.
2291 * regformats/rs6000/powerpc-32.dat: Regenerate.
2292 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2293 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2294 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2295 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2296 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2297 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2298 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2299 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2300 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2301 * regformats/s390-linux32.dat: Regenerate.
2302 * regformats/s390-linux32v1.dat: Regenerate.
2303 * regformats/s390-linux32v2.dat: Regenerate.
2304 * regformats/s390-linux64.dat: Regenerate.
2305 * regformats/s390-linux64v1.dat: Regenerate.
2306 * regformats/s390-linux64v2.dat: Regenerate.
2307 * regformats/s390-te-linux64.dat: Regenerate.
2308 * regformats/s390x-linux64.dat: Regenerate.
2309 * regformats/s390x-linux64v1.dat: Regenerate.
2310 * regformats/s390x-linux64v2.dat: Regenerate.
2311 * regformats/s390x-te-linux64.dat: Regenerate.
2312 * regformats/tic6x-c62x-linux.dat: Regenerate.
2313 * regformats/tic6x-c62x.dat: Regenerate.
2314 * regformats/tic6x-c64x-linux.dat: Regenerate.
2315 * regformats/tic6x-c64x.dat: Regenerate.
2316 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2317 * regformats/tic6x-c64xp.dat: Regenerate.
2318
db74e4ba
PA
23192014-10-01 Pedro Alves <palves@redhat.com>
2320
2321 * features/Makefile: Update comments.
2322 (XMLTOC): List all xml files we build C files from.
2323 (clean-cfiles): New rule.
2324
d63f2f84
PA
23252014-10-01 Pedro Alves <palves@redhat.com>
2326
2327 * features/i386/amd64-avx512-linux.c: Regenerate.
2328 * features/i386/amd64-avx512.c: Regenerate.
2329 * features/i386/x32-avx512-linux.c: Regenerate.
2330 * features/i386/x32-avx512.c: Regenerate.
2331
20ad026d
PA
23322014-10-01 Pedro Alves <palves@redhat.com>
2333
2334 * features/Makefile (WHICH): Remove arm-with-m,
2335 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2336
acc9fe45
PA
23372014-10-01 Pedro Alves <palves@redhat.com>
2338
2339 * features/Makefile (clean): New rule.
2340
e001e535
PA
23412014-10-01 Pedro Alves <palves@redhat.com>
2342
2343 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2344 (zmm14h): Add missing end quotes.
2345
bdc14417
PA
23462014-10-01 Pedro Alves <palves@redhat.com>
2347
2348 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2349 * features/aarch64.c: Regenerate.
2350
d83ad864
DB
23512014-09-30 Don Breazeal <donb@codesourcery.com>
2352
2353 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2354 code so as to work with follow_fork_inferior.
2355 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2356 (inf_ttrace_create_inferior): Remove reference to
2357 inf_ttrace_vfork_ppid.
2358 (inf_ttrace_attach): Ditto.
2359 (inf_ttrace_detach): Ditto.
2360 (inf_ttrace_kill): Use current_inferior instead of
2361 inf_ttrace_vfork_ppid.
2362 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2363 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2364 inferior away from the parent.
2365 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2366 target_follow_fork.
2367 (follow_fork_inferior): New function.
2368 (follow_inferior_reset_breakpoints): Make function static.
2369 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2370 * linux-nat.c (linux_child_follow_fork): Move target-independent
2371 code to infrun.c:follow_fork_inferior.
2372
29082443
AA
23732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2374
2375 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2376 * gdbarch.c: Regenerate.
2377 * gdbarch.h: Likewise.
2378 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2379 gdbarch method 'regset_from_core_section'.
2380 (get_core_register_section): Remove handling for the case that
2381 regset == NULL and regset_from_core_section is defined.
2382 (get_core_registers): Drop check for deleted method.
2383 * procfs.c (procfs_do_thread_registers): Adjust comment.
2384
f968fe80
AA
23852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2386
2387 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2388 (linux_nat_make_corefile_notes): Remove.
2389 (linux_target_install_ops): Do not set target method
2390 'make_corefile_notes'.
2391 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2392 Remove field.
2393 (linux_corefile_thread_callback): Instead of args->collect, call
2394 linux_collect_thread_registers.
2395 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2396 NULL unless there is a regset iterator.
2397 (linux_make_corefile_notes_1): Remove.
2398 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2399 by linux_make_corefile_notes.
2400 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2401
174ad59a
AA
24022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2403
2404 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2405 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2406 Remove.
2407 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2408
97094034
AA
24092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2412 (xtensa_iterate_over_regset_sections): New.
2413 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2414
f73d3ce7
AA
24152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2416
2417 * vax-tdep.c (vax_regset_from_core_section): Remove.
2418 (vax_iterate_over_regset_sections): New.
2419 (vax_gdbarch_init): Adjust gdbarch initialization.
2420
cb24567a
AA
24212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2422
2423 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2424 (tilegx_regset_from_core_section): Remove.
2425 (tilegx_iterate_over_regset_sections): New.
2426 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2427
e5139de8
AA
24282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2429
2430 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2431 (sparc_iterate_over_regset_sections): New.
2432 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2433 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2434 targets.
2435 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2436 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2437 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2438 target method 'make_corefile_notes'.
2439
c6d41a6f
AA
24402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2441
2442 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2443 'sizeof_gregset' and 'sizeof_fpregset'.
2444 * sh-tdep.c (sh_regset_from_core_section): Remove.
2445 (sh_iterate_over_regset_sections): New.
2446 (sh_gdbarch_init): Adjust gdbarch initialization.
2447 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2448 sizeof_fpregset.
2449 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2450 'sizeof_gregset'.
2451
9845a0b5
AA
24522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2453
2454 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2455 (score7_linux_iterate_over_regset_sections): New.
2456 (score_gdbarch_init): Adjust gdbarch initialization.
2457
23ea9aeb
AA
24582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2459
2460 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2461 FreeBSD targets.
2462 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2463 method 'make_corefile_notes'.
2464 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2465 (ppcfbsd_regset_from_core_section): Remove.
2466 (ppcfbsd_iterate_over_regset_sections): New.
2467 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2468 initialization.
2469 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2470 (ppcnbsd_iterate_over_regset_sections): New.
2471 (ppcnbsd_init_abi): Adjust.
2472 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2473 (ppcobsd_iterate_over_regset_sections): New.
2474 (ppcobsd_init_abi): Adjust.
2475 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2476 (rs6000_aix_iterate_over_regset_sections): New.
2477 (rs6000_aix_init_osabi): Adjust.
2478
c5b8d704
AA
24792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2480
2481 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2482 (nios2_regset_from_core_section): Remove.
2483 (nios2_iterate_over_regset_sections): New.
2484 (nios2_linux_init_abi): Adjust gdbarch initialization.
2485
3636e608
AA
24862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487
2488 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2489 (am33_iterate_over_regset_sections): New.
2490 (am33_linux_init_osabi): Adjust gdbarch initialization.
2491
d4036235
AA
24922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2493
2494 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2495 (mips_linux_iterate_over_regset_sections): New.
2496 (mips_linux_init_abi): Adjust gdbarch initialization.
2497 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2498 (mips64obsd_iterate_over_regset_sections): New.
2499 (mips64obsd_init_abi): Adjust.
2500 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2501 (mipsnbsd_iterate_over_regset_sections): New.
2502 (mipsnbsd_init_abi): Adjust.
2503
b61ddd6e
AA
25042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2507 (m88k_iterate_over_regset_sections): New.
2508 (m88k_gdbarch_init): Adjust gdbarch initialization.
2509
55a2906a
AA
25102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2511
2512 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2513 (ia64_linux_iterate_over_regset_sections): New.
2514 (ia64_linux_init_abi): Adjust gdbarch initialization.
2515
022c98ab
AA
25162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517
2518 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2519 (m68kbsd_iterate_over_regset_sections): New.
2520 (m68kbsd_init_abi): Adjust gdbarch initialization.
2521 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2522 (m68k_linux_iterate_over_regset_sections): New.
2523 (m68k_linux_init_abi): Adjust gdbarch initialization.
2524
5fac247f
AA
25252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2526
2527 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2528 (m32r_linux_regset_from_core_section): Remove.
2529 (m32r_linux_iterate_over_regset_sections): New.
2530 (m32r_linux_init_abi): Adjust gdbarch initialization.
2531
490496c3
AA
25322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2533
2534 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2535 (amd64obsd_iterate_over_regset_sections): New.
2536 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2537 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2538 Remove.
2539 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2540 regset_from_core_section initialization.
2541 * i386-tdep.c (i386_regset_from_core_section): Remove.
2542 (i386_iterate_over_regset_sections): New.
2543 (i386_gdbarch_init): Adjust gdbarch initialization.
2544 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2545 (i386_iterate_over_regset_sections): New prototype.
2546 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2547 Remove.
2548 (i386obsd_aout_iterate_over_regset_sections): New.
2549 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2550 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2551 targets.
2552 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2553 (amd64fbsd_init_abi): Call fbsd_init_abi.
2554 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2555 (i386fbsd4_init_abi): Call fbsd_init_abi.
2556 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2557 target method 'make_corefile_notes'.
2558 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2559
50c5eb53
AA
25602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2561
2562 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2563 (hppa_hpux_iterate_over_regset_sections): New.
2564 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2565 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2566 (hppa_linux_iterate_over_regset_sections): New.
2567 (hppa_linux_init_abi): Adjust.
2568 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2569 (hppanbsd_iterate_over_regset_sections): New.
2570 (hppanbsd_init_abi): Adjust.
2571 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2572 (hppaobsd_iterate_over_regset_sections): New.
2573 (hppaobsd_init_abi): Adjust.
2574
66afae4f
AA
25752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576
2577 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2578 (frv_linux_iterate_over_regset_sections): New.
2579 (frv_linux_init_abi): Adjust gdbarch initialization.
2580
ed09174e
AA
25812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2582
2583 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2584 (armbsd_iterate_over_regset_sections): New prototype.
2585 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2586 (armbsd_iterate_over_regset_sections): New.
2587 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2588 initialization.
2589
dff2166e
AA
25902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591
2592 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2593 (alpha_linux_iterate_over_regset_sections): New.
2594 (alpha_linux_init_abi): Adjust gdbarch initialization.
2595 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2596 prototype.
2597 (alphanbsd_iterate_over_regset_sections): New prototype.
2598
4108500a
AA
25992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2600
2601 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2602 Remove.
2603 (aarch64_linux_iterate_over_regset_sections): New.
2604 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2605
a904c024
AA
26062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2607
2608 * fbsd-tdep.c: New file.
2609 * fbsd-tdep.h: New file.
2610 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2611 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2612 (ALLDEPFILES): Add fbsd-tdep.c.
2613
8f0435f7
AA
26142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2615
2616 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2617 parameter.
2618 * gdbarch.h: Regenerate.
2619 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2620 iterator.
2621 (get_core_register_section): Add parameter 'regset' and use it, if
2622 set. Add parameter 'min_size' and verify the bfd section size
2623 against it.
2624 (get_core_registers_cb): Add parameter 'regset' and pass it to
2625 get_core_register section. For the "standard" register sections
2626 ".reg" and ".reg2", set an appropriate default for human_name.
2627 (get_core_registers): Don't abort when the gdbarch has an iterator
2628 but no regset_from_core_section. Add NULL/0 for parameters
2629 'regset'/'min_size' in calls to get_core_register_section.
2630 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2631 'regset' and use it instead of calling the
2632 regset_from_core_section gdbarch method.
2633 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2634 * i386-tdep.c (i386_supply_xstateregset)
2635 (i386_collect_xstateregset, i386_xstateregset): Moved to
2636 i386-linux-tdep.c.
2637 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2638 .reg-xstate.
2639 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2640 core file support only if the regset iterator hasn't been set.
2641 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2642 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2643 Moved from i386-tdep.c and renamed to *_linux*.
2644 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2645 each callback invocation. Allow any .reg-xstate size when reading
2646 from a core file.
2647 * amd64-tdep.c (amd64_supply_xstateregset)
2648 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2649 amd64-linux-tdep.c.
2650 (amd64_regset_from_core_section): Remove.
2651 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2652 install an amd64-specific regset_from_core_section gdbarch method.
2653 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2654 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2655 Moved from amd64-tdep.c and renamed to *_linux*.
2656 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2657 to each callback invocation. Allow any .reg-xstate size when
2658 reading from a core file.
2659 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2660 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2661 each callback invocation.
2662 (arm_linux_init_abi): No longer set the regset_from_core_section
2663 gdbarch method.
2664 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2665 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2666 each callback invocation.
2667 (ppc_linux_init_abi): No longer set the regset_from_core_section
2668 gdbarch method.
2669 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2670 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2671 (s390_regset_from_core_section): Remove.
2672 (s390_iterate_over_regset_sections): Add regset parameter to each
2673 callback invocation.
2674 (s390_gdbarch_init): No longer set the regset_from_core_section
2675 gdbarch method. Drop initialization of deleted tdep fields.
2676
5aa82d05
AA
26772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2678
2679 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2680 (amd64_linux_iterate_over_regset_sections): New.
2681 (amd64_linux_init_abi_common): Don't install the regset section
2682 list, but the new iterator in gdbarch.
2683 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2684 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2685 (arm_linux_iterate_over_regset_sections): ...here. New function.
2686 (arm_linux_init_abi): Set iterator instead of section list.
2687 * corelow.c (get_core_registers_cb): New function, logic moved
2688 from...
2689 (get_core_registers): ...loop body here. Use new iterator method
2690 instead of walking through the regset section list.
2691 * gdbarch.sh: Remove 'core_regset_sections'. New method
2692 'iterate_over_regset_sections'. New typedef
2693 'iterate_over_regset_sections_cb'.
2694 * gdbarch.c: Regenerate.
2695 * gdbarch.h: Likewise.
2696 * i386-linux-tdep.c (i386_linux_regset_sections)
2697 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2698 Remove.
2699 (i386_linux_iterate_over_regset_sections): New.
2700 (i386_linux_init_abi): Don't choose a regset section list, but
2701 install new iterator in gdbarch.
2702 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2703 (linux_collect_regset_section_cb): New function, logic moved
2704 from...
2705 (linux_collect_thread_registers): ...loop body here. Use iterator
2706 method instead of walking through list.
2707 (linux_make_corefile_notes_1): Check for presence of iterator
2708 method instead of regset section list.
2709 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2710 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2711 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2712 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2713 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2714 (ppc_linux_init_abi): Don't choose from above regset section
2715 lists, but install new iterator in gdbarch.
2716 * regset.h (struct core_regset_section): Remove.
2717 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2718 have_linux_v1, have_linux_v2, and have_tdb.
2719 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2720 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2721 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2722 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2723 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2724 (s390_iterate_over_regset_sections): ...here. New function. Use
2725 new tdep fields.
2726 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2727 regset section lists, but install new iterator.
2728
2eca4a8d
JK
27292014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2732
a73c2b56
SM
27332014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2734
2735 * progspace.c (print_program_space): Don't prune program spaces
2736 before printing them.
2737
03d46957
PA
27382014-09-25 Pedro Alves <palves@redhat.com>
2739
2740 * infrun.c (user_visible_resume_ptid): Don't check
2741 singlestep_breakpoints_inserted_p.
2742
e558d7c1
PA
27432014-09-25 Pedro Alves <palves@redhat.com>
2744
2745 * breakpoint.c (should_be_inserted): Add debug output.
2746
7f89fd65
PA
27472014-09-25 Pedro Alves <palves@redhat.com>
2748
2749 * infrun.c (stepping_past_instruction_at)
2750 (clear_exit_convenience_vars): Point at infrun.h instead of
2751 inferior.h.
2752 (handle_signal_stop): Fix typo.
2753
b7576e5c
YQ
27542014-09-24 Yao Qi <yao@codesourcery.com>
2755
2756 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2757 bitmask.
2758
9a6cf368
GB
27592014-09-22 Gary Benson <gbenson@redhat.com>
2760
2761 * target.c (target_stop): Updated comment.
2762
03f4463b
GB
27632014-09-22 Gary Benson <gbenson@redhat.com>
2764
2765 * target/target.h (target_stop_ptid): Renamed as...
2766 (target_stop_and_wait): New function. Updated comment.
2767 All uses updated.
2768 (target_continue_ptid): Renamed as...
2769 (target_continue_no_signal): New function. Updated comment.
2770 All uses updated.
2771
a25a5a45
PA
27722014-09-22 Pedro Alves <palves@redhat.com>
2773
2774 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2775 and "auto" merged.
2776 * breakpoint.c (enum ugll_insert_mode): New enum.
2777 (always_inserted_mode): Now a plain boolean.
2778 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2779 (breakpoints_always_inserted_mode): Delete.
2780 (breakpoints_should_be_inserted_now): New function.
2781 (insert_breakpoints): Pass UGLL_INSERT to
2782 update_global_location_list instead of calling
2783 insert_breakpoint_locations manually.
2784 (create_solib_event_breakpoint_1): New, factored out from ...
2785 (create_solib_event_breakpoint): ... this.
2786 (create_and_insert_solib_event_breakpoint): Use
2787 create_solib_event_breakpoint_1 instead of calling
2788 insert_breakpoint_locations manually.
2789 (update_global_location_list): Change parameter type from boolean
2790 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2791 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2792 (update_global_location_list_nothrow): Change parameter type from
2793 boolean to enum ugll_insert_mode.
2794 (_initialize_breakpoint): "breakpoint always-inserted" option is
2795 now a boolean command. Update help text.
2796 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2797 (breakpoints_should_be_inserted_now): New declaration.
2798 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2799 Remove breakpoints_always_inserted_mode check.
2800 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2801 * remote.c (remote_start_remote): Likewise.
2802
04086b45
PA
28032014-09-22 Pedro Alves <palves@redhat.com>
2804
2805 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2806 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2807 Instead, pass UGLL_INSERT to update_global_location_list.
2808 (update_global_location_list): Change parameter type from boolean
2809 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2810 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2811 (create_solib_event_breakpoint_1): New, factored out from ...
2812 (create_solib_event_breakpoint): ... this.
2813 (create_and_insert_solib_event_breakpoint): Use
2814 create_solib_event_breakpoint_1 instead of calling
2815 insert_breakpoint_locations manually.
2816 (update_global_location_list): Handle UGLL_INSERT.
2817
44702360
PA
28182014-09-22 Pedro Alves <palves@redhat.com>
2819
2820 * breakpoint.c (enum ugll_insert_mode): New enum.
2821 (update_global_location_list)
2822 (update_global_location_list_nothrow): Change parameter type from
2823 boolean to enum ugll_insert_mode. All callers adjusted.
2824
93c6145a
JB
28252014-09-19 Joel Brobecker <brobecker@adacore.com>
2826
2827 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2828 SystemTap support in GDB.
2829
89a5711c
DB
28302014-09-19 Don Breazeal <donb@codesourcery.com>
2831
2832 * linux-nat.c (linux_handle_extended_wait): Call
2833 linux_ptrace_get_extended_event.
2834 (wait_lwp): Call linux_is_extended_waitstatus.
2835 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2836 and linux_is_extended_waitstatus.
2837 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2838 linux_ptrace_get_extended_event.
2839 (linux_ptrace_get_extended_event): New function.
2840 (linux_is_extended_waitstatus): New function.
2841 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2842 (linux_is_extended_waitstatus): New declarations.
2843
c3b7b696
YQ
28442014-09-19 Yao Qi <yao@codesourcery.com>
2845
2846 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2847 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2848 comments. Callers update.
2849 (dwarf_decode_lines): Likewise.
2850 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2851 comments. Skip the line table if 'lowpc' is greater than
2852 'address'. Don't check
2853 dwarf2_per_objfile->has_section_at_zero.
2854
2b4fd423
DE
28552014-09-18 Doug Evans <dje@google.com>
2856
2857 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2858 * python/py-symtab.c (stpy_get_producer): New function.
2859 (symtab_object_getset): Add "producer" attribute.
2860
5e43d467
UW
28612014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2862
2863 PR gdb/17384
2864 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2865 (do_captured_read_memory_integer): Remove.
2866 (safe_read_memory_integer): Use target_read_memory directly instead
2867 of catching errors in do_captured_read_memory_integer.
2868
04e79979
MR
28692014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2870
2871 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2872 not gdb/doc.
2873
76aeec5b
SDJ
28742014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2875
2876 * objc-lang.c (find_implementation_from_class): Remove dead code.
2877
2f693f9d
SDJ
28782014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2879
2880 PR cli/7233
2881 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2882 "fprintf_unfiltered (gdb_stdlog...)".
2883
bb9d5f81
PP
28842014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2885
2886 PR breakpoints/12526
2887 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2888 val_bitsize.
2889 * breakpoint.c (watch_command_1): Use these fields to retain
2890 bitfield information.
2891 (extract_bitfield_from_watchpoint_value): New function.
2892 (watchpoint_check): Use it.
2893 (update_watchpoint): Use it. Optimize the address and length of a
2894 HW watchpoint pointing to a bitfield.
2895 * value.h (unpack_value_bitfield): New prototype.
2896 * value.c (unpack_value_bitfield): Make extern.
2897
05db5edd
ST
28982014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2899
2900 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2901 x86-dregs.o.
2902 * gnu-nat.c (inf_threads): New function.
2903 * gnu-nat.h (inf_threads_ftype): New typedef.
2904 (inf_threads): New declaration.
2905 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2906 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2907 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2908 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2909 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2910 (i386_gnu_dr_get_control): New functions.
2911 (reg_addr): New structure.
2912 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2913 i386 debugging register hooks.
2914 * NEWS: Mention this.
2915
5a578da5
OJ
29162014-08-13 Omair Javaid <omair.javaid@linaro.org>
2917
2918 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2919 vector data transfer instructions.
2920 (arm_record_coproc_data_proc): Updated.
2921
f20f80dd
OJ
29222014-08-13 Omair Javaid <omair.javaid@linaro.org>
2923
2924 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2925 arm_record_exreg_ld_st_insn.
2926 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2927 load/store insns.
2928
851f26ae
OJ
29292014-08-13 Omair Javaid <omair.javaid@linaro.org>
2930
2931 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2932 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2933 processing instructions.
2934
1e1b6563
OJ
29352014-08-13 Omair Javaid <omair.javaid@linaro.org>
2936
2937 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2938 for advance SIMD struct ld/st insn.
2939 (thumb2_record_decode_insn_handler): Replace stub handler with
2940 thumb2_record_asimd_struct_ld_st.
2941
60cc5e93
OJ
29422014-08-13 Omair Javaid <omair.javaid@linaro.org>
2943
2944 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2945 for asimd, vfp and coprocessor insns.
2946 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2947 and coprocessor insns.
2948 (thumb2_record_coproc_insn): New function.
2949 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2950 handlers.
2951 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2952 opcode 110 insns.
2953
81219e53
DE
29542014-09-13 Doug Evans <xdje42@gmail.com>
2955
2956 * NEWS: Mention new "queue-signal" command.
2957 * infcmd.c (queue_signal_command): New function.
2958 (_initialize_infcmd): Add new queue-signal command.
2959
d36bf488
DE
29602014-09-13 Doug Evans <xdje42@gmail.com>
2961
2962 * linux-nat.c (wait_lwp): Add debugging printf.
2963 (linux_nat_wait_1): Ditto.
2964
f37f681c
PA
29652014-09-12 Pedro Alves <palves@redhat.com>
2966
2967 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2968 (create_and_insert_solib_event_breakpoint): New functions.
2969 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2970 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2971 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2972 (remove_dbx_link_breakpoint): Delete function.
2973 (insert_dbx_link_bpt_in_file): Use
2974 create_and_insert_solib_event_breakpoint instead of
2975 deprecated_insert_raw_breakpoint.
2976 (procfs_wait): Don't check whether we hit __dbx_link here.
2977 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2978 here.
2979 * solib-irix.c (base_breakpoint): Delete global.
2980 (disable_break): Delete function.
2981 (enable_break): Use create_solib_event_breakpoint
2982 instead of deprecated_insert_raw_breakpoint.
2983 (irix_solib_handle_event): New function.
2984 (irix_solib_create_inferior_hook): Don't run the target or disable
2985 the mapping-complete breakpoint here.
2986 (_initialize_irix_solib): Install irix_solib_handle_event as
2987 so_ops->handle_event hook.
2988
9d9bf2df
EBM
29892014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2990 Ulrich Weigand  <uweigand@de.ibm.com>
2991
2992 PR tdep/17379
2993 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2994 instead of read_memory_unsigned_integer.
2995
b006a80e
GB
29962014-09-12 Gary Benson <gbenson@redhat.com>
2997
2998 * nat/linux-waitpid.c: Include common-defs.h.
2999 [GDBSERVER]: Add FIXME comment.
3000 [!GDBSERVER]: Don't include defs.h or signal.h.
3001 (linux_debug) [!GDBSERVER]: Remove empty block.
3002
296b1496
GB
30032014-09-12 Gary Benson <gbenson@redhat.com>
3004
3005 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3006 Don't include defs.h or server.h.
3007
53f81362
GB
30082014-09-12 Gary Benson <gbenson@redhat.com>
3009
3010 * nat/linux-btrace.c: Include common-defs.h.
3011 Don't include defs.h, server.h or gdbthread.h.
3012 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3013
727605ca
GB
30142014-09-12 Gary Benson <gbenson@redhat.com>
3015
3016 * common/agent.c: Include common-defs.h.
3017 Don't include defs.h or server.h.
3018 * common/buffer.c: Likewise.
3019 * common/common-debug.c: Likewise.
3020 * common/common-utils.c: Likewise.
3021 * common/errors.c: Likewise.
3022 * common/filestuff.c: Likewise.
3023 * common/format.c: Likewise.
3024 * common/gdb_vecs.c: Likewise.
3025 * common/print-utils.c: Likewise.
3026 * common/ptid.c: Likewise.
3027 * common/rsp-low.c: Likewise.
3028 * common/signals.c: Likewise.
3029 * common/vec.c: Likewise.
3030 * common/xml-utils.c: Likewise.
3031 * nat/linux-osdata.c: Likewise.
3032 * nat/linux-procfs.c: Likewise.
3033 * nat/linux-ptrace.c: Likewise.
3034 * nat/mips-linux-watch.c: Likewise.
3035 * target/waitstatus.c: Likewise.
3036
361c8ade
GB
30372014-09-12 Tom Tromey <tromey@redhat.com>
3038 Gary Benson <gbenson@redhat.com>
3039
3040 * common/common-regcache.h: New file.
3041 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3042 * regcache.h: Include common-regcache.h.
3043 (regcache_read_pc): Don't declare.
3044 * regcache.c (get_thread_regcache_for_ptid): New function.
3045 * nat/linux-btrace.c: Don't include regcache.h.
3046 Include common-regcache.h.
3047 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3048
a01cbb49
TS
30492014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3050
3051 * regcache.h (struct regset): Declare.
3052
98880d46
PA
30532014-09-11 Pedro Alves <palves@redhat.com>
3054
3055 PR gdb/17347
3056 * main.c: Include "infrun.h".
3057 (catch_command_errors, catch_command_errors_const): Wait for the
3058 foreground command to complete.
3059 * top.c (maybe_wait_sync_command_done): New function, factored out
3060 from ...
3061 (maybe_wait_sync_command_done): ... here.
3062 * top.h (maybe_wait_sync_command_done): New declaration.
3063
bd9269f7
GB
30642014-09-11 Tom Tromey <tromey@redhat.com>
3065 Gary Benson <gbenson@redhat.com>
3066
3067 * common/symbol.h: New file.
3068 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3069 * minsyms.c (find_minimal_symbol_address): New function.
3070 * common/agent.c: Include common/symbol.h.
3071 [!GDBSERVER]: Don't include objfiles.h.
3072 (agent_look_up_symbols): Use find_minimal_symbol_address.
3073
f8c1d06b
GB
30742014-09-11 Gary Benson <gbenson@redhat.com>
3075
3076 * target/target.h (target_stop_ptid, target_continue_ptid):
3077 Declare.
3078 * target.c (target_stop_ptid, target_continue_ptid): New
3079 functions.
3080 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3081 (agent_run_command): Always use target_stop_ptid and
3082 target_continue_ptid.
3083
721ec300
GB
30842014-09-11 Tom Tromey <tromey@redhat.com>
3085 Gary Benson <gbenson@redhat.com>
3086
3087 * target/target.h: New file.
3088 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3089 * target.h: Include target/target.h.
3090 (target_read_memory, target_write_memory): Don't declare.
3091 * target.c (target_read_uint32): New function.
3092 * common/agent.c: Include target/target.h.
3093 [!GDBSERVER]: Don't include target.h.
3094 (helper_thread_id): Type changed to uint32_t.
3095 (agent_get_helper_thread_id): Use target_read_uint32.
3096 (agent_run_command): Always use target_read_memory and
3097 target_write_memory.
3098 (agent_capability): Type changed to uint32_t.
3099 (agent_capability_check): Use target_read_uint32.
3100
c5e92cca
GB
31012014-09-11 Gary Benson <gbenson@redhat.com>
3102
3103 * common/common-debug.h (show_debug_regs): Declare.
3104 * common/common-debug.c (show_debug_regs): Define.
3105 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3106 all uses with show_debug_regs. Replace all uses that considered
3107 debug_hw_points as a multi-value integer with straight boolean
3108 uses.
3109 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3110 with show_debug_regs.
3111 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3112 all uses with show_debug_regs.
3113 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3114 uses with show_debug_regs.
3115
eeef931a
UW
31162014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3117
3118 * findvar.c (address_from_register): Handle targets requiring
3119 a special conversion routine even for plain pointer types.
3120
8efa9855
UW
31212014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3122
3123 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3124 (store_register): Do not call exec_one_dummy_insn.
3125
eb479039
JB
31262014-09-10 Joel Brobecker <brobecker@adacore.com>
3127
3128 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3129 dereference it first. Use value_enclosing_type instead of
3130 value_type.
3131 (ada_array_length): Likewise.
3132
deede10c
JB
31332014-09-10 Joel Brobecker <brobecker@adacore.com>
3134
3135 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3136 Adjust function implementation and documentation accordingly.
3137 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3138 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3139 Update call to ada_value_ptr_subscript.
3140
7828a5f5
JB
31412014-09-10 Joel Brobecker <brobecker@adacore.com>
3142
3143 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3144 instead of VAL's type.
3145
35782f14
JB
31462014-09-10 Joel Brobecker <brobecker@adacore.com>
3147
3148 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3149
d342a0da
DE
31502014-09-09 Doug Evans <xdje42@gmail.com>
3151
3152 PR guile/17367
3153 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3154 last parameter to pkg-config, not first.
3155 * configure.ac: Pass --with-guile provided pkg-config path to
3156 GDB_GUILE_PROGRAM_NAMES.
3157 * configure: Regenerate.
3158
b4a3d263
GKB
31592014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3160
3161 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3162 Bertazi".
3163
6e466374
MR
31642014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3165
3166 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3167 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3168 the list of sections determining GDB_OSABI_IRIX.
3169
a1ada89a
JH
31702014-09-09 James Hogan <james.hogan@imgtec.com>
3171
3172 * MAINTAINERS (Write After Approval): Add "James Hogan".
3173
86db008d
JH
31742014-09-09 James Hogan <james.hogan@imgtec.com>
3175
3176 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3177
72fde3df
JB
31782014-09-09 Joel Brobecker <brobecker@adacore.com>
3179
3180 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3181
92d8d229
DE
31822014-09-08 Doug Evans <xdje42@gmail.com>
3183
3184 PR 17247
3185 * guile.c: #include <signal.h>.
3186 (_initialize_guile): Block SIGCHLD while initializing Guile.
3187
3188 Replaces the following, which is reverted.
3189
3190 2014-07-26 Doug Evans <xdje42@gmail.com>
3191
3192 PR 17185
3193 * configure.ac: Add check for header gc/gc.h.
3194 Add check for function setenv.
3195 * configure: Regenerate.
3196 * config.in: Regenerate.
3197 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3198
d81412aa
DE
31992014-09-08 Doug Evans <xdje42@gmail.com>
3200
3201 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3202 with named constant. Fix style of pointer comparison.
3203 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3204
a9f116cb
GKB
32052014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3206
3207 PR gdb/17035
3208 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3209 decide whether we display the command on "show user".
3210 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3211 printing command name.
3212 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3213 * cli/cli-decode.c (cli_user_command_p): Create helper function
3214 to verify whether cmd_list_element is a user-defined command.
3215
c75bd3a2
JK
32162014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 PR python/17355
3219 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3220 Fix goto out of TRY_CATCH.
3221
faa42425 32222014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3223 Tom Tromey <tromey@redhat.com>
faa42425
DE
3224
3225 PR 15276
3226 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3227 $_any_caller_matches.
3228 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3229 * python/lib/gdb/function/caller_is.py: New file.
3230
0d41ba00
DE
32312014-09-06 Doug Evans <xdje42@gmail.com>
3232
3233 * infcmd.c (program_info): Fix typo.
3234
474ca4f6
SDJ
32352014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3236
3237 PR gdb/17235
3238 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3239 'number'. New variable 'has_digit'. Rewrite code to deal with
3240 subexpressions on SDT probes.
3241
ebf13736
PA
32422014-09-04 Pedro Alves <palves@redhat.com>
3243
3244 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3245 the input is only one character long.
3246
eb0b0463
SDJ
32472014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3248
3249 PR fortran/17237
3250 * f-valprint.c (f_val_print): Specify the correct print option to
3251 use when printing integer values.
3252
5ee44bfa
GB
32532014-09-04 Gary Benson <gbenson@redhat.com>
3254
3255 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3256 Remove code to cope with LWPs wrapped as PIDs.
3257 Add assertions to ensure no wrapped LWPs are passed.
3258
4875ffdb
PA
32592014-09-04 Pedro Alves <palves@redhat.com>
3260
3261 * value.c (value_ranges_copy_adjusted): New function, factored out
3262 from ...
3263 (value_contents_copy_raw): ... here.
3264 (unpack_value_bits_as_long_1): Rename back to ...
3265 (unpack_bits_as_long): ... this. Remove 'original_value' and
3266 'result' parameters. Change return type to LONGEST.
3267 (unpack_value_bits_as_long): Delete.
3268 (unpack_value_field_as_long_1): Delete.
3269 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3270 (unpack_value_bitfield): New function.
3271 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3272 (value_fetch_lazy): Use unpack_value_bitfield.
3273 * value.h (unpack_value_bits_as_long): Delete declaration.
3274
5f3b99cf
SS
32752014-09-03 Sasha Smundak <asmundak@google.com>
3276
3277 * python/py-frame.c (frapy_read_register): New function.
3278
ac740bc7
JH
32792014-09-03 James Hogan <james.hogan@imgtec.com>
3280
3281 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3282 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3283
7d793aa9
SDJ
32842014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3285
3286 PR python/16699
3287 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3288 function.
3289 (add_cmd): Set "completer_handle_brkchars" to NULL.
3290 * cli/cli-decode.h (struct cmd_list_element)
3291 <completer_handle_brkchars>: New field.
3292 * command.h (completer_ftype_void): New typedef.
3293 (set_cmd_completer_handle_brkchars): New prototype.
3294 * completer.c (set_gdb_completion_word_break_characters): New
3295 function.
3296 (complete_line_internal): Call "completer_handle_brkchars"
3297 callback from command.
3298 * completer.h: Include "command.h".
3299 (set_gdb_completion_word_break_characters): New prototype.
3300 * python/py-cmd.c (cmdpy_completer_helper): New function.
3301 (cmdpy_completer_handle_brkchars): New function.
3302 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3303 (cmdpy_init): Set completer_handle_brkchars to
3304 cmdpy_completer_handle_brkchars.
3305
97ea6506
GB
33062014-09-03 Gary Benson <gbenson@redhat.com>
3307
3308 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3309 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3310 Loop conditions changed to equivalent form.
3311 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3312 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3313 ALL_DEBUG_ADDRESS_REGISTERS.
3314
d1437815
JB
33152014-09-03 Joel Brobecker <brobecker@adacore.com>
3316
3317 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3318 description fix.
3319
9b94fcf1
DE
33202014-09-02 Doug Evans <dje@google.com>
3321
3322 * typeprint.c (find_global_typedef): Fix comment.
3323
df7e5265
GB
33242014-09-02 Gary Benson <gbenson@redhat.com>
3325
3326 * i386-nat.h: Renamed as...
3327 * x86-nat.h: New file. All type, function and variable name
3328 prefixes changed from "i386_" to "x86_". All references updated.
3329 * i386-nat.c: Renamed as...
3330 * x86-nat.c: New file. All type, function and variable name
3331 prefixes changed from "i386_" to "x86_". All references updated.
3332 * common/i386-xstate.h: Renamed as...
3333 * common/x86-xstate.h: New file. All type, function and variable
3334 name prefixes changed from "i386_" to "x86_". All references
3335 updated.
3336 * nat/i386-cpuid.h: Renamed as...
3337 * nat/x86-cpuid.h: New file. All type, function and variable name
3338 prefixes changed from "i386_" to "x86_". All references updated.
3339 * nat/i386-gcc-cpuid.h: Renamed as...
3340 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3341 name prefixes changed from "i386_" to "x86_". All references
3342 updated.
3343 * nat/i386-dregs.h: Renamed as...
3344 * nat/x86-dregs.h: New file. All type, function and variable name
3345 prefixes changed from "i386_" to "x86_". All references updated.
3346 * nat/i386-dregs.c: Renamed as...
3347 * nat/x86-dregs.c: New file. All type, function and variable name
3348 prefixes changed from "i386_" to "x86_". All references updated.
3349
1c3569d4
MR
33502014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3351
3352 * varobj.c (_initialize_varobj): Move to the end of file.
3353
ff55e1b5
GB
33542014-08-29 Gary Benson <gbenson@redhat.com>
3355
3356 * common/common-exceptions.h: New file.
3357 * common/common-exceptions.c: Likewise.
3358 * Makefile.in (SFILES): Add common/common-exceptions.c.
3359 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3360 (COMMON_OBS): Add common-exceptions.o.
3361 (common-exceptions.o): New rule.
3362 * exceptions.h (common-exceptions.h): Include.
3363 (gdb_setjmp.h): Do not include.
3364 (return_reason): Moved to common-exceptions.h.
3365 (enum return_reason): Likewise.
3366 (RETURN_MASK): Likewise.
3367 (typedef return_mask): Likewise.
3368 (enum errors): Likewise.
3369 (struct gdb_exception): Likewise.
3370 (exceptions_state_mc_init): Likewise.
3371 (exceptions_state_mc_action_iter): Likewise.
3372 (exceptions_state_mc_action_iter_1): Likewise.
3373 (TRY_CATCH): Likewise.
3374 (throw_exception): Likewise.
3375 (throw_verror): Likewise.
3376 (throw_vquit): Likewise.
3377 (throw_error): Likewise.
3378 (throw_quit): Likewise.
3379 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3380 (enum catcher_action): Likewise.
3381 (struct catcher): Likewise.
3382 (current_catcher): Likewise.
3383 (catcher_list_size): Likewise.
3384 (exceptions_state_mc_init): Likewise.
3385 (catcher_pop): Likewise.
3386 (exceptions_state_mc): Likewise.
3387 (exceptions_state_mc_action_iter): Likewise.
3388 (exceptions_state_mc_action_iter_1): Likewise.
3389 (throw_exception): Likewise.
3390 (exception_messages): Likewise.
3391 (exception_messages_size): Likewise.
3392 (throw_it): Likewise.
3393 (throw_verror): Likewise.
3394 (throw_vquit): Likewise.
3395 (throw_error): Likewise.
3396 (throw_quit): Likewise.
3397 (prepare_to_throw_exception): New function.
3398
e9bcb658
GB
33992014-08-29 Gary Benson <gbenson@redhat.com>
3400
3401 * common/gdb_setjmp.h: New file.
3402 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3403 * configure.ac: Move sigsetjmp check...
3404 * common/common.m4: ...here.
3405 * configure: Regenerate.
3406 * cp-support.c (SIGJMP_BUF): Delete.
3407 (SIGSETJMP): Likewise.
3408 (SIGLONGJMP): Likewise.
3409 * exceptions.h (gdb_setjmp.h): Include.
3410 (setjmp.h): Do not include.
3411 (EXCEPTIONS_SIGJMP_BUF): Delete.
3412 (EXCEPTIONS_SIGSETJMP): Likewise.
3413 (EXCEPTIONS_SIGLONGJMP): Likewise.
3414 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3415 from gdb_setjmp.h.
3416 * exceptions.c: Likewise.
3417
e3180625
GB
34182014-08-29 Gary Benson <gbenson@redhat.com>
3419
3420 * cleanups.h: Moved to...
3421 * common/cleanups.h: New file.
3422 * cleanups.c: Moved to...
3423 * common/cleanups.c: New file. Include common-defs.h and
3424 cleanups.h. Do not include defs.h.
3425 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3426 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3427 (cleanups.o): New rule.
3428
e3d6ba5d
GB
34292014-08-29 Gary Benson <gbenson@redhat.com>
3430
3431 * common/errors.h (internal_warning): New declaration.
3432 (internal_vwarning): Likewise.
3433 * common/errors.c (internal_warning): New function.
3434 * utils.h (internal_warning): Don't declare.
3435 (internal_vwarning): Likewise.
3436 * utils.c (internal_warning): Removed.
3437
075c7033
GB
34382014-08-29 Gary Benson <gbenson@redhat.com>
3439
3440 * main.c (captured_main): Use warning during startup.
3441 Prefix startup warning messages with command name.
3442
91b35fd0
GB
34432014-08-29 Gary Benson <gbenson@redhat.com>
3444
3445 * main.c (captured_main): Handle usage errors with error.
3446
b1ec390e
GB
34472014-08-29 Gary Benson <gbenson@redhat.com>
3448
3449 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3450 exit pair with a call to error. Wrap the message with _().
3451
fd0ef3dd
GB
34522014-08-29 Gary Benson <gbenson@redhat.com>
3453
3454 * main.c (captured_main): Replace a fprintf/exit
3455 pair with a call to error. Wrap the message with _().
3456
e0e6bcab
GB
34572014-08-29 Gary Benson <gbenson@redhat.com>
3458
3459 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3460 pairs with calls to error. Wrap the message with _().
3461
0d2f5c07
GB
34622014-08-29 Gary Benson <gbenson@redhat.com>
3463
3464 * utils.c (vwarning): Protect calls to target_terminal_ours
3465 and wrap_here.
3466
5df43998
GB
34672014-08-29 Gary Benson <gbenson@redhat.com>
3468
3469 * exceptions.c (print_flush): Protect calls to
3470 target_terminal_ours and wrap_here.
3471
2437fd32
GB
34722014-08-29 Gary Benson <gbenson@redhat.com>
3473
3474 * utils.h (filtered_printing_initialized): New declaration.
3475 * utils.c (abort_with_message): New function.
3476 (internal_vproblem): Use abort_with_message for first level
3477 recursive internal problems, and if gdb_stderr is not set up.
3478 Protect calls to target_terminal_ours, begin_line and query.
3479
f1f58506
DE
34802014-08-28 Doug Evans <dje@google.com>
3481
3482 * symtab.c (in_prologue): Move definition to better spot.
3483 (skip_prologue_using_sal): Ditto.
3484
aab2f208
DE
34852014-08-28 Doug Evans <dje@google.com>
3486
3487 * symtab.c (find_function_start_sal): Move definition to better spot.
3488
6b65d1b6
YQ
34892014-08-28 Yao Qi <yao@codesourcery.com>
3490
3491 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3492 found_stack_adjust in forward scan. Remove condition check
3493 on found_stack_adjust which is always true. Indent the code.
3494
a1b34d15
YQ
34952014-08-28 Yao Qi <yao@codesourcery.com>
3496
3497 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3498 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3499 (dwarf_decode_lines): Remove argument
3500 want_line_info. Remove condition check on want_line_info.
3501 Callers update.
3502
d5962de5
DE
35032014-08-27 Doug Evans <dje@google.com>
3504
3505 * dwarf2read.c (dwarf_record_line): Fix typo.
3506
9b139002
SDJ
35072014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3508
3509 * target.h (struct target_ops::to_terminal_save_ours): Remove
3510 declaration.
3511 (target_terminal_save_ours): Remove macro.
3512 * target-delegates.c: Regenerate.
3513 * inf-child.c (inf_child_target): Don't set the nonexistent
3514 field to_terminal_save_ours.
3515 * inferior.h (child_terminal_save_ours): Remove declaration.
3516 * terminal.h (gdb_save_tty_state): New declaration.
3517 * inflow.c (child_terminal_save_ours): Rename to ...
3518 (gdb_save_tty_state): ... this.
3519 * tui/tui.c: Include terminal.h.
3520 (tui_enable): Use gdb_save_tty_state instead of
3521 target_terminal_save_ours.
3522 (tui_disable): Likewise.
3523
9debeba0
DE
35242014-08-25 Doug Evans <dje@google.com>
3525
3526 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3527 Pass NULL instead of 0 for context pointer.
3528
428fc5fc
YQ
35292014-08-25 Yao Qi <yao@codesourcery.com>
3530
3531 * dwarf2read.c: Fix grammatical error.
3532
cdc07690
YQ
35332014-08-24 Yao Qi <yao@codesourcery.com>
3534
3535 * dwarf2read.c (scan_partial_symbols): Update comments.
3536 Rename argument 'need_pc' with 'set_addrmap'.
3537 (add_partial_namespace): Rename argument 'need_pc' with
3538 'set_addrmap'.
3539 (add_partial_module): Likewise.
3540 (add_partial_subprogram): Likewise. Update comments.
3541 (dwarf2_name): Fix typo.
3542
a05a36a5
DE
35432014-08-22 Doug Evans <dje@google.com>
3544
3545 PR 17276
3546 * dwarf2read.c (dwarf_record_line_p): New function.
3547 (dwarf_decode_lines_1): Ignore subsequent line number entries
3548 for the same line if any entry had a non-zero discriminator.
3549
252a6764
DE
35502014-08-22 Doug Evans <dje@google.com>
3551
3552 * buildsym.h (record_line_ftype): New typedef.
3553 (record_line): Use it.
3554 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3555 (dwarf_decode_lines_1): Call them.
3556
510db052
YQ
35572014-08-22 Yao Qi <yao@codesourcery.com>
3558
3559 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3560 (ctf_end): Remove code.
3561
22fd09ae
JK
35622014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3563
3564 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3565 (linux_make_corefile_notes): call update_thread_list, protected against
3566 exceptions.
3567
656e8868
PA
35682014-08-21 Pedro Alves <palves@redhat.com>
3569
3570 * infcmd.c (attach_command): Remove comment.
3571
de589d04
WN
35722014-08-21 Bin Cheng <bin.cheng@arm.com>
3573
3574 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3575 unsigned LONGEST to ULONGEST.
3576
2a31c623
PA
35772014-08-20 Pedro Alves <palves@redhat.com>
3578
3579 * Makefile.in (check-read1): New rule.
3580
d36430db
JB
35812014-08-20 Joel Brobecker <brobecker@adacore.com>
3582
3583 * value.c (value_from_contents_and_address): Strip resolved_type's
3584 typedef layers before checking its TYPE_DATA_LOCATION.
3585
000339af
PA
35862014-08-20 Pedro Alves <palves@redhat.com>
3587
3588 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3589
5f52445b
YQ
35902014-08-20 Yao Qi <yao@codesourcery.com>
3591
3592 * amd64-tdep.c (amd64_classify): Add a blank line after the
3593 example. Move "*/" to a new line.
3594 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3595 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3596 * dwarf2read.c (psymtab_include_file_name): Likewise.
3597
9a0dc9e3
PA
35982014-08-19 Andrew Burgess <aburgess@broadcom.com>
3599 Pedro Alves <palves@redhat.com>
3600
3601 PR symtab/14604
3602 PR symtab/14605
3603 * ada-lang.c (coerce_unspec_val_to_type): Use
3604 value_contents_copy_raw.
3605 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3606 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3607 * cp-valprint.c (cp_print_value_fields): Let the common printing
3608 code handle optimized out values.
3609 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3610 * d-valprint.c (dynamic_array_type): Use
3611 value_bits_any_optimized_out.
3612 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3613 check_any_valid fields.
3614 (check_pieced_value_bits): Delete and inline ...
3615 (check_pieced_synthetic_pointer): ... here.
3616 (check_pieced_value_validity): Delete.
3617 (check_pieced_value_invalid): Delete.
3618 (pieced_value_funcs): Remove check_validity and check_any_valid
3619 fields.
3620 (read_pieced_value): Use mark_value_bits_optimized_out.
3621 (write_pieced_value): Switch to use
3622 mark_value_bytes_optimized_out.
3623 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3624 of assuming the whole value is optimized out.
3625 * findvar.c (read_frame_register_value): Remove special handling
3626 of optimized out registers.
3627 (value_from_register): Use mark_value_bytes_optimized_out.
3628 * frame-unwind.c (frame_unwind_got_optimized): Use
3629 mark_value_bytes_optimized_out.
3630 * jv-valprint.c (java_value_print): Adjust.
3631 (java_print_value_fields): Let the common printing code handle
3632 optimized out values.
3633 * mips-tdep.c (mips_print_register): Remove special handling of
3634 optimized out registers.
3635 * opencl-lang.c (lval_func_check_validity): Delete.
3636 (lval_func_check_any_valid): Delete.
3637 (opencl_value_funcs): Remove check_validity and check_any_valid
3638 fields.
3639 * p-valprint.c (pascal_object_print_value_fields): Let the common
3640 printing code handle optimized out values.
3641 * stack.c (read_frame_arg): Remove special handling of optimized
3642 out values. Fetch both VAL and ENTRYVAL before comparing
3643 contents. Adjust to value_available_contents_eq rename.
3644 * valprint.c (valprint_check_validity)
3645 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3646 (val_print_array_elements): Adjust.
3647 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3648 (value_bits_any_optimized_out): New function.
3649 (value_entirely_covered_by_range_vector): New function, factored
3650 out from value_entirely_unavailable.
3651 (value_entirely_unavailable): Reimplement.
3652 (value_entirely_optimized_out): New function.
3653 (insert_into_bit_range_vector): New function, factored out from
3654 mark_value_bits_unavailable.
3655 (mark_value_bits_unavailable): Reimplement.
3656 (struct ranges_and_idx): New struct.
3657 (find_first_range_overlap_and_match): New function, factored out
3658 from value_available_contents_bits_eq.
3659 (value_available_contents_bits_eq): Rename to ...
3660 (value_contents_bits_eq): ... this. Check both unavailable
3661 contents and optimized out contents.
3662 (value_available_contents_eq): Rename to ...
3663 (value_contents_eq): ... this.
3664 (allocate_value_lazy): Remove reference to the old optimized_out
3665 boolean.
3666 (allocate_optimized_out_value): Use
3667 mark_value_bytes_optimized_out.
3668 (require_not_optimized_out): Adjust to check whether the
3669 optimized_out vec is empty.
3670 (ranges_copy_adjusted): New function, factored out from
3671 value_contents_copy_raw.
3672 (value_contents_copy_raw): Also copy the optimized out ranges.
3673 Assert the destination ranges aren't optimized out.
3674 (value_contents_copy): Update comment, remove call to
3675 require_not_optimized_out.
3676 (value_contents_equal): Adjust to check whether the optimized_out
3677 vec is empty.
3678 (set_value_optimized_out, value_optimized_out_const): Delete.
3679 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3680 New functions.
3681 (value_entirely_optimized_out, value_bits_valid): Delete.
3682 (value_copy): Take a VEC copy of the 'optimized_out' field.
3683 (value_primitive_field): Remove special handling of optimized out.
3684 (value_fetch_lazy): Assert that lazy values have no unavailable
3685 regions. Use value_bits_any_optimized_out. Remove some special
3686 handling for optimized out values.
3687 * value.h: Add intro comment about <optimized out> and
3688 <unavailable>.
3689 (struct lval_funcs): Remove check_validity and check_any_valid
3690 fields.
3691 (set_value_optimized_out, value_optimized_out_const): Remove.
3692 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3693 New declarations.
3694 (value_bits_any_optimized_out): New declaration.
3695 (value_bits_valid): Delete declaration.
3696 (value_available_contents_eq): Rename to ...
3697 (value_contents_eq): ... this, and extend comments.
3698
6694c411
JK
36992014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3700
3701 Fix -fsanitize=address on unreadable inferior strings.
3702 * valprint.c (val_print_string): Fix access before BUFFER.
3703
89a1c21a
SM
37042014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3705
3706 * target.c (target_struct_size): Remove.
3707 (target_struct_allocsize): Remove.
3708 (DEFAULT_ALLOCSIZE): Remove.
3709 (target_ops_p): New typedef.
3710 (DEF_VEC_P (target_ops_p)): New vector type.
3711 (target_structs): Change type to VEC (target_ops_p).
3712 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3713 (find_default_run_target): Rewrite for loop following changes to
3714 target_structs.
3715
cb417230
JB
37162014-08-19 Joel Brobecker <brobecker@adacore.com>
3717
3718 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3719 Adjust code accordingly. Adjust function description comment.
3720
817e0957
YQ
37212014-08-19 Yao Qi <yao@codesourcery.com>
3722
3723 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3724 types.
3725
2974be62
AM
37262014-08-19 Alan Modra <amodra@gmail.com>
3727
3728 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3729 * config.in: Regenerate.
3730 * configure: Regenerate.
3731
34abf635
GB
37322014-08-19 Tom Tromey <tromey@redhat.com>
3733 Gary Benson <gbenson@redhat.com>
3734
3735 * common/common-debug.h: New file.
3736 * common/common-debug.c: Likewise.
3737 * debug.c: Likewise.
3738 * Makefile.in (SFILES): Add common/common-debug.c.
3739 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3740 (COMMON_OBS): Add common-debug.o and debug.o.
3741 (common-debug.o): New rule.
3742 * common/common-defs.h: Include common-debug.h.
3743 * common/agent.c (debug_agent_printf): New function.
3744 (DEBUG_AGENT): Redefine.
3745 * nat/i386-dregs.c (debug_printf): Undefine.
3746
f6e94d78
GB
37472014-08-19 Gary Benson <gbenson@redhat.com>
3748
3749 * common/common-defs.h: Include print-utils.h.
3750 * utils.h: Do not include print-utils.h.
3751
9239eeab
GB
37522014-08-19 Tom Tromey <tromey@redhat.com>
3753 Gary Benson <gbenson@redhat.com>
3754
3755 * common/common-types.h: New file.
3756 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3757 * common/common-defs.h: Include common-types.h.
3758 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3759 (ULONGEST): Remove.
3760
ef87c8bb
GB
37612014-08-19 Tom Tromey <tromey@redhat.com>
3762 Gary Benson <gbenson@redhat.com>
3763
3764 * common/errors.h: New file.
3765 * common/errors.c: Likewise.
3766 * Makefile.in (SFILES): Add common/errors.c.
3767 (HFILES_NO_SRCDIR): Add common/errors.h.
3768 (COMMON_OBS): Add errors.o.
3769 (errors.o): New rule.
3770 * common/common-defs.h: Include errors.h.
3771 * utils.h (perror_with_name, error, verror, warning, vwarning):
3772 Don't declare.
3773 * common/common-utils.h: (malloc_failure, internal_error):
3774 Likewise.
3775
196a707b
GB
37762014-08-19 Gary Benson <gbenson@redhat.com>
3777
3778 * utils.c (internal_vproblem): Always print the message.
3779
ded4fc8f
DE
37802014-08-18 Doug Evans <dje@google.com>
3781
3782 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3783
950c97d8
JB
37842014-08-18 Joel Brobecker <brobecker@adacore.com>
3785
3786 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3787 Return 0 if TYPE is dynamic.
3788 (print_range): Add handling of dynamic ranges.
3789
3cdcd0ce
JB
37902014-08-18 Keven Boell <keven.boell@intel.com>
3791 Joel Brobecker <brobecker@adacore.com>
3792
3793 * gdbtypes.h (struct main_type): Add field "data_location".
3794 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3795 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3796 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3797 a dynamic data location.
3798 (resolve_dynamic_type): Add DW_AT_data_location handling.
3799 (copy_recursive, copy_type): Copy the data_location information
3800 when present.
3801 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3802 * value.c (value_from_contents_and_address): Add
3803 DW_AT_data_location handling.
3804
08412b07
JB
38052014-08-18 Keven Boell <keven.boell@intel.com>
3806 Joel Brobecker <brobecker@adacore.com>
3807
3808 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3809 field "get_object_address".
3810 * dwarf2expr.c (execute_stack_op): Add handling for
3811 DW_OP_push_object_address.
3812 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3813 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3814 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3815 (dwarf_expr_get_obj_addr): New function.
3816 (dwarf_expr_ctx_funcs): Add get_object_address field.
3817 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3818 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3819 (dwarf2_evaluate_property): Add parameter "address". Use it.
3820 (needs_get_obj_addr): New function.
3821 (needs_frame_ctx_funcs): Add get_object_address field.
3822 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3823 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3824 (resolve_dynamic_array): Likewise.
3825
84754697
JB
38262014-08-18 Joel Brobecker <brobecker@adacore.com>
3827
3828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3829 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3830 fixed value for records and unions for which some GNAT encodings
3831 are present.
3832
da5c522f
JB
38332014-08-18 Joel Brobecker <brobecker@adacore.com>
3834
3835 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3836 rewrite to avoid "else if" and "else" constructs. Should be
3837 a no-op in practice.
3838
0d72a7c3
JB
38392014-08-18 Joel Brobecker <brobecker@adacore.com>
3840
3841 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3842 of lexical block.
3843
e66d4446
SC
38442014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3845
3846 PR c++/17132
3847 * eval.c: Update all calls to find_overload_match.
3848 * valarith.c: Likewise.
3849 (value_user_defined_cpp_op, value_user_defined_op): New
3850 argument NOSIDE. Update all callers.
3851 * valops.c (find_overload_match): New argument NOSIDE.
3852 * value.h (find_overload_match): Update signature.
3853
940df408
SC
38542014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3855
3856 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3857 'items' methods instead of 'iteritems' method on dictionaries.
3858
699ca60a
DE
38592014-08-15 Doug Evans <dje@google.com>
3860
3861 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3862 closer to use.
3863
37780ee5
DE
38642014-08-15 Doug Evans <dje@google.com>
3865
3866 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3867
0ad93d4f
DE
38682014-08-15 Doug Evans <dje@google.com>
3869
3870 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3871
20d8c372
DE
38722014-08-15 Doug Evans <dje@google.com>
3873
3874 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3875 unused.
3876
cb039ba4
EZ
38772014-08-15 Eli Zaretskii <eliz@gnu.org>
3878
3879 * dcache.h: Include target.h, to avoid compile time warnings.
3880
eb7a547a
JB
38812014-08-15 Joel Brobecker <brobecker@adacore.com>
3882
3883 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3884 frame_info" partial declaration.
3885 * gdbarch.h: Regenerate.
3886
783cecc8
YQ
38872014-08-15 Yao Qi <yao@codesourcery.com>
3888
3889 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3890 Add parameter 'decode_for_pst_p'. Callers update.
3891
65c749e7
YQ
38922014-08-13 Yao Qi <yao@codesourcery.com>
3893
3894 PR build/17104
3895 * configure.ac: Use local variable 'pos'.
3896 * configure: Regenerated.
3897
d769e349
DE
38982014-08-11 Doug Evans <dje@google.com>
3899
3900 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3901 message, it is redundant with "Reading symbols from ..." message.
3902
24f1235e
DE
39032014-08-10 Doug Evans <xdje42@gmail.com>
3904
3905 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3906
dcd2e6ef
YQ
39072014-08-09 Yao Qi <yao@codesourcery.com>
3908
3909 PR remote/9053
3910 * remote.c (remote_xfer_partial): Remove dead code.
3911
070bdf0b
AA
39122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3913
3914 * ia64-linux-tdep.c: Include "regset.h".
3915 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3916 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3917 (ia64_linux_supply_fpregset): New function.
3918 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3919 (ia64_linux_regset_from_core_section): New function.
3920 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3921 method.
3922
08f9f542
AA
39232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3924
3925 * m68klinux-tdep.c: Include "regset.h".
3926 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3927 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3928 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3929 (m68k_linux_regset_from_core_section): New function.
3930 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3931 method.
3932
8f1cee41
AA
39332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3934
3935 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3936 function. Move logic to...
3937 (tilegx_linux_regmap): ... this new register map.
3938 (tilegx_linux_regset): Refer to register map, replace supply
3939 method by regcache_supply_regset, and add collect method.
3940 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3941 TILEGX_FIRST_EASY_REGNUM.
3942
c5741217
AA
39432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3944
3945 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3946 that calls regcache_supply_regset and handles the EPC register
3947 separately. Move main logic to...
3948 (score7_linux_gregmap): ... this new register map.
3949 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3950 (score7_linux_gregset): Refer to register map. Add collect method.
3951 (score7_linux_regset_from_core_section): Replace
3952 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3953 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3954 (struct regset): Delete unused forward declaraction.
3955 (struct pt_regs): Delete structure definition.
3956 (elf_gregset_t): Delete typedef.
3957
81580573
AA
39582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3959
3960 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3961 (nios2_core_regset): Add collect method.
3962
ba199d7d
AA
39632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3964
3965 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3966 platform-independent and don't write to read-only input buffer.
3967 (m32r_linux_collect_gregset): New function.
3968 (m32r_linux_gregset): Add collect method.
3969
0006a9da
AA
39702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971
3972 * hppa-linux-tdep.c (greg_map): Rename to...
3973 (hppa_linux_gregmap): ... this. Also convert to
3974 regcache_map_entry format.
3975 (hppa_linux_supply_regset): Delete function.
3976 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3977 (hppa_linux_fpregmap): ... this new register map.
3978 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3979 register map, replace supply method by regcache_supply_regset, and
3980 add collect method regcache_collect_regset.
3981
901e1b23
AA
39822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3983
3984 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3985 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3986 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3987 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3988 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3989 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3990 (frv_linux_supply_gregset): Replace main logic by call to
3991 regcache_supply_regset, but keep clearing gr32-gr63.
3992 (frv_linux_supply_fpregset): Delete function.
3993 (frv_linux_gregset): Refer to appropriate register map and add
3994 regcache_collect_regset as the collect method.
3995 (frv_linux_fpregset): Likewise. Also exchange the supply method
3996 by regcache_supply_regset.
3997
1d6e7555
AA
39982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3999
4000 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4001 by call to alpha_supply_int_regs.
4002 (alpha_linux_collect_gregset): New function.
4003 (alpha_linux_supply_fpregset): Replace logic by call to
4004 alpha_supply_fp_regs.
4005 (alpha_linux_collect_fpregset): New function.
4006 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4007
d4d793bf
AA
40082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4009
4010 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4011 by call to regcache_collect_regset.
4012 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4013 instead of aarch64_linux_supply_gregset/_fpregset.
4014 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4015 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4016 header file instead.
4017 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4018 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4019 functions. Move logic to ...
4020 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4021 register maps.
4022 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4023 refer to new register maps, replace *_regset_from_core by
4024 regcache_supply_regset, and also use regcache_collect_regset.
4025 * aarch64-linux-tdep.h: Include "regset.h".
4026 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4027 Delete prototypes.
4028 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4029 macros, moved from C source file.
4030 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4031 variable declarations.
4032
99b7da5d
AA
40332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4034
4035 * s390-linux-nat.c: Include "regset.h".
4036 (regmap_gregset): Delete macro.
4037 (s390_64_regmap_gregset): New register map for
4038 regcache_supply/_collect_regset.
4039 (s390_64_gregset): New regset.
4040 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4041 (regmap_fpregset): Delete macro.
4042 (s390_native_supply, s390_native_collect): Delete functions.
4043 (supply_gregset, fill_gregset): Replace s390-specific regmap
4044 handling by a call to regcache_supply/_collect_regset.
4045 (supply_fpregset, fill_fpregset): Call regcache_supply/
4046 _collect_regset instead of s390_native_supply/_collect.
4047 (fetch_regset, store_regset): Likewise. Also change the last
4048 parameter to a regset instead of a regmap.
4049 (s390_linux_fetch_inferior_registers)
4050 (390_linux_store_inferior_registers): Adjust last parameter in
4051 calls to fetch_regset and store_regset.
4052 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4053 (s390_gregmap): ... this. Also make static const and convert to
4054 regcache_map_entry format.
4055 (s390x_regmap_gregset): Delete.
4056 (s390_regmap_fpregset): Rename to...
4057 (s390_fpregmap): ... this. Make static const and convert to
4058 regcache_map_entry format.
4059 (s390_regmap_upper, s390_regmap_last_break)
4060 (s390x_regmap_last_break, s390_regmap_system_call)
4061 (s390_regmap_tdb): Likewise.
4062 (s390_supply_regset, s390_collect_regset): Remove functions.
4063 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4064 s390_supply_regset.
4065 (s390_gregset, s390_fpregset, s390_upper_regset)
4066 (s390_last_break_regset, s390x_last_break_regset)
4067 (s390_system_call_regset, s390_tdb_regset): Make global and
4068 replace s390_supply/_collect_regset by regcache_supply/
4069 _collect_regset.
4070 (s390x_gregset): Delete.
4071 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4072 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4073 (s390_regmap_fpregset, s390_regmap_last_break)
4074 (s390x_regmap_last_break, s390_regmap_system_call)
4075 (s390_regmap_tdb): Delete global variable declarations.
4076 (s390_gregset, s390_fpregset, s390_last_break_regset)
4077 (s390x_last_break_regset, s390_system_call_regset)
4078 (s390_tdb_regset): New global variable declarations.
4079
0b309272
AA
40802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4081
4082 * regcache.c: Include "regset.h".
4083 (regcache_transfer_regset): New local function.
4084 (regcache_supply_regset, regcache_collect_regset): New functions.
4085 * regcache.h (struct regcache_map_entry): New structure.
4086 (REGCACHE_MAP_SKIP): New enum value.
4087 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4088
7fefa8d7
AA
40892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4090
4091 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4092 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4093 (ppc_linux_collect_gregset ): Likewise.
4094 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4095 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4096 (ppc_collect_vrregset): Likewise.
4097 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4098 Likewise.
4099
96c4f946
YQ
41002014-08-07 Yao Qi <yao@codesourcery.com>
4101
4102 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4103 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4104 * remote.c (remote_read_bytes): Likewise.
4105
fffbe6a8
YQ
41062014-08-07 Yao Qi <yao@codesourcery.com>
4107
4108 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4109
5ee8a82c
YQ
41102014-08-07 Yao Qi <yao@codesourcery.com>
4111
4112 PR remote/17230
4113 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4114 TARGET_XFER_OK instead of 0.
4115
bb974a24
GB
41162014-08-07 Gary Benson <gbenson@redhat.com>
4117
4118 * common/common-defs.h: Include errno.h.
4119 * defs.h: Do not include errno.h.
4120 * ada-typeprint.c: Likewise.
4121 * c-typeprint.c: Likewise.
4122 * core-regset.c: Likewise.
4123 * corefile.c: Likewise.
4124 * corelow.c: Likewise.
4125 * event-loop.c: Likewise.
4126 * f-typeprint.c: Likewise.
4127 * gnu-nat.c: Likewise.
4128 * go32-nat.c: Likewise.
4129 * i386gnu-nat.c: Likewise.
4130 * m2-typeprint.c: Likewise.
4131 * nat/linux-btrace.c: Likewise.
4132 * p-typeprint.c: Likewise.
4133 * procfs.c: Likewise.
4134 * remote-sim.c: Likewise.
4135 * rs6000-nat.c: Likewise.
4136 * target.c: Likewise.
4137 * typeprint.c: Likewise.
4138 * ui-file.c: Likewise.
4139 * valops.c: Likewise.
4140 * valprint.c: Likewise.
4141
6d3d12eb
GB
41422014-08-07 Gary Benson <gbenson@redhat.com>
4143
4144 * common/common-defs.h: Include string.h.
4145 * aarch64-tdep.c: Do not include string.h.
4146 * ada-exp.y: Likewise.
4147 * ada-lang.c: Likewise.
4148 * ada-lex.l: Likewise.
4149 * ada-typeprint.c: Likewise.
4150 * ada-valprint.c: Likewise.
4151 * aix-thread.c: Likewise.
4152 * alpha-linux-tdep.c: Likewise.
4153 * alpha-mdebug-tdep.c: Likewise.
4154 * alpha-nat.c: Likewise.
4155 * alpha-osf1-tdep.c: Likewise.
4156 * alpha-tdep.c: Likewise.
4157 * alphanbsd-tdep.c: Likewise.
4158 * amd64-dicos-tdep.c: Likewise.
4159 * amd64-linux-tdep.c: Likewise.
4160 * amd64-nat.c: Likewise.
4161 * amd64-sol2-tdep.c: Likewise.
4162 * amd64fbsd-tdep.c: Likewise.
4163 * amd64obsd-tdep.c: Likewise.
4164 * arch-utils.c: Likewise.
4165 * arm-linux-nat.c: Likewise.
4166 * arm-linux-tdep.c: Likewise.
4167 * arm-tdep.c: Likewise.
4168 * arm-wince-tdep.c: Likewise.
4169 * armbsd-tdep.c: Likewise.
4170 * armnbsd-nat.c: Likewise.
4171 * armnbsd-tdep.c: Likewise.
4172 * armobsd-tdep.c: Likewise.
4173 * avr-tdep.c: Likewise.
4174 * ax-gdb.c: Likewise.
4175 * ax-general.c: Likewise.
4176 * bcache.c: Likewise.
4177 * bfin-tdep.c: Likewise.
4178 * breakpoint.c: Likewise.
4179 * build-id.c: Likewise.
4180 * buildsym.c: Likewise.
4181 * c-exp.y: Likewise.
4182 * c-lang.c: Likewise.
4183 * c-typeprint.c: Likewise.
4184 * c-valprint.c: Likewise.
4185 * charset.c: Likewise.
4186 * cli-out.c: Likewise.
4187 * cli/cli-cmds.c: Likewise.
4188 * cli/cli-decode.c: Likewise.
4189 * cli/cli-dump.c: Likewise.
4190 * cli/cli-interp.c: Likewise.
4191 * cli/cli-logging.c: Likewise.
4192 * cli/cli-script.c: Likewise.
4193 * cli/cli-setshow.c: Likewise.
4194 * cli/cli-utils.c: Likewise.
4195 * coffread.c: Likewise.
4196 * common/agent.c: Likewise.
4197 * common/buffer.c: Likewise.
4198 * common/buffer.h: Likewise.
4199 * common/common-utils.c: Likewise.
4200 * common/filestuff.c: Likewise.
4201 * common/filestuff.c: Likewise.
4202 * common/format.c: Likewise.
4203 * common/print-utils.c: Likewise.
4204 * common/rsp-low.c: Likewise.
4205 * common/signals.c: Likewise.
4206 * common/vec.h: Likewise.
4207 * common/xml-utils.c: Likewise.
4208 * core-regset.c: Likewise.
4209 * corefile.c: Likewise.
4210 * corelow.c: Likewise.
4211 * cp-abi.c: Likewise.
4212 * cp-name-parser.y: Likewise.
4213 * cp-support.c: Likewise.
4214 * cp-valprint.c: Likewise.
4215 * cris-tdep.c: Likewise.
4216 * d-exp.y: Likewise.
4217 * darwin-nat.c: Likewise.
4218 * dbxread.c: Likewise.
4219 * dcache.c: Likewise.
4220 * demangle.c: Likewise.
4221 * dicos-tdep.c: Likewise.
4222 * disasm.c: Likewise.
4223 * doublest.c: Likewise.
4224 * dsrec.c: Likewise.
4225 * dummy-frame.c: Likewise.
4226 * dwarf2-frame.c: Likewise.
4227 * dwarf2loc.c: Likewise.
4228 * dwarf2read.c: Likewise.
4229 * elfread.c: Likewise.
4230 * environ.c: Likewise.
4231 * eval.c: Likewise.
4232 * event-loop.c: Likewise.
4233 * exceptions.c: Likewise.
4234 * exec.c: Likewise.
4235 * expprint.c: Likewise.
4236 * f-exp.y: Likewise.
4237 * f-lang.c: Likewise.
4238 * f-typeprint.c: Likewise.
4239 * f-valprint.c: Likewise.
4240 * fbsd-nat.c: Likewise.
4241 * findcmd.c: Likewise.
4242 * findvar.c: Likewise.
4243 * fork-child.c: Likewise.
4244 * frame.c: Likewise.
4245 * frv-linux-tdep.c: Likewise.
4246 * frv-tdep.c: Likewise.
4247 * gdb.c: Likewise.
4248 * gdb_bfd.c: Likewise.
4249 * gdbarch.c: Likewise.
4250 * gdbarch.sh: Likewise.
4251 * gdbtypes.c: Likewise.
4252 * gnu-nat.c: Likewise.
4253 * gnu-v2-abi.c: Likewise.
4254 * gnu-v3-abi.c: Likewise.
4255 * go-exp.y: Likewise.
4256 * go-lang.c: Likewise.
4257 * go32-nat.c: Likewise.
4258 * guile/guile.c: Likewise.
4259 * guile/scm-auto-load.c: Likewise.
4260 * hppa-hpux-tdep.c: Likewise.
4261 * hppa-linux-nat.c: Likewise.
4262 * hppanbsd-tdep.c: Likewise.
4263 * hppaobsd-tdep.c: Likewise.
4264 * i386-cygwin-tdep.c: Likewise.
4265 * i386-dicos-tdep.c: Likewise.
4266 * i386-linux-tdep.c: Likewise.
4267 * i386-nto-tdep.c: Likewise.
4268 * i386-sol2-tdep.c: Likewise.
4269 * i386-tdep.c: Likewise.
4270 * i386bsd-tdep.c: Likewise.
4271 * i386gnu-nat.c: Likewise.
4272 * i386nbsd-tdep.c: Likewise.
4273 * i386obsd-tdep.c: Likewise.
4274 * i387-tdep.c: Likewise.
4275 * ia64-libunwind-tdep.c: Likewise.
4276 * ia64-linux-nat.c: Likewise.
4277 * inf-child.c: Likewise.
4278 * inf-ptrace.c: Likewise.
4279 * inf-ttrace.c: Likewise.
4280 * infcall.c: Likewise.
4281 * infcmd.c: Likewise.
4282 * inflow.c: Likewise.
4283 * infrun.c: Likewise.
4284 * interps.c: Likewise.
4285 * iq2000-tdep.c: Likewise.
4286 * irix5-nat.c: Likewise.
4287 * jv-exp.y: Likewise.
4288 * jv-lang.c: Likewise.
4289 * jv-typeprint.c: Likewise.
4290 * jv-valprint.c: Likewise.
4291 * language.c: Likewise.
4292 * linux-fork.c: Likewise.
4293 * linux-nat.c: Likewise.
4294 * lm32-tdep.c: Likewise.
4295 * m2-exp.y: Likewise.
4296 * m2-typeprint.c: Likewise.
4297 * m32c-tdep.c: Likewise.
4298 * m32r-linux-nat.c: Likewise.
4299 * m32r-linux-tdep.c: Likewise.
4300 * m32r-rom.c: Likewise.
4301 * m32r-tdep.c: Likewise.
4302 * m68hc11-tdep.c: Likewise.
4303 * m68k-tdep.c: Likewise.
4304 * m68kbsd-tdep.c: Likewise.
4305 * m68klinux-nat.c: Likewise.
4306 * m68klinux-tdep.c: Likewise.
4307 * m88k-tdep.c: Likewise.
4308 * machoread.c: Likewise.
4309 * macrocmd.c: Likewise.
4310 * main.c: Likewise.
4311 * mdebugread.c: Likewise.
4312 * mem-break.c: Likewise.
4313 * memattr.c: Likewise.
4314 * memory-map.c: Likewise.
4315 * mep-tdep.c: Likewise.
4316 * mi/mi-cmd-break.c: Likewise.
4317 * mi/mi-cmd-disas.c: Likewise.
4318 * mi/mi-cmd-env.c: Likewise.
4319 * mi/mi-cmd-stack.c: Likewise.
4320 * mi/mi-cmd-var.c: Likewise.
4321 * mi/mi-cmds.c: Likewise.
4322 * mi/mi-console.c: Likewise.
4323 * mi/mi-getopt.c: Likewise.
4324 * mi/mi-interp.c: Likewise.
4325 * mi/mi-main.c: Likewise.
4326 * mi/mi-parse.c: Likewise.
4327 * microblaze-rom.c: Likewise.
4328 * microblaze-tdep.c: Likewise.
4329 * mingw-hdep.c: Likewise.
4330 * minidebug.c: Likewise.
4331 * minsyms.c: Likewise.
4332 * mips-irix-tdep.c: Likewise.
4333 * mips-linux-tdep.c: Likewise.
4334 * mips-tdep.c: Likewise.
4335 * mips64obsd-tdep.c: Likewise.
4336 * mipsnbsd-tdep.c: Likewise.
4337 * mipsread.c: Likewise.
4338 * mn10300-linux-tdep.c: Likewise.
4339 * mn10300-tdep.c: Likewise.
4340 * monitor.c: Likewise.
4341 * moxie-tdep.c: Likewise.
4342 * mt-tdep.c: Likewise.
4343 * nat/linux-btrace.c: Likewise.
4344 * nat/linux-osdata.c: Likewise.
4345 * nat/linux-procfs.c: Likewise.
4346 * nat/linux-ptrace.c: Likewise.
4347 * nat/linux-waitpid.c: Likewise.
4348 * nbsd-tdep.c: Likewise.
4349 * nios2-linux-tdep.c: Likewise.
4350 * nto-procfs.c: Likewise.
4351 * nto-tdep.c: Likewise.
4352 * objc-lang.c: Likewise.
4353 * objfiles.c: Likewise.
4354 * opencl-lang.c: Likewise.
4355 * osabi.c: Likewise.
4356 * osdata.c: Likewise.
4357 * p-exp.y: Likewise.
4358 * p-lang.c: Likewise.
4359 * p-typeprint.c: Likewise.
4360 * parse.c: Likewise.
4361 * posix-hdep.c: Likewise.
4362 * ppc-linux-nat.c: Likewise.
4363 * ppc-sysv-tdep.c: Likewise.
4364 * ppcfbsd-tdep.c: Likewise.
4365 * ppcnbsd-tdep.c: Likewise.
4366 * ppcobsd-tdep.c: Likewise.
4367 * printcmd.c: Likewise.
4368 * procfs.c: Likewise.
4369 * prologue-value.c: Likewise.
4370 * python/py-auto-load.c: Likewise.
4371 * python/py-gdb-readline.c: Likewise.
4372 * ravenscar-thread.c: Likewise.
4373 * regcache.c: Likewise.
4374 * registry.c: Likewise.
4375 * remote-fileio.c: Likewise.
4376 * remote-m32r-sdi.c: Likewise.
4377 * remote-mips.c: Likewise.
4378 * remote-notif.c: Likewise.
4379 * remote-sim.c: Likewise.
4380 * remote.c: Likewise.
4381 * reverse.c: Likewise.
4382 * rs6000-aix-tdep.c: Likewise.
4383 * ser-base.c: Likewise.
4384 * ser-go32.c: Likewise.
4385 * ser-mingw.c: Likewise.
4386 * ser-pipe.c: Likewise.
4387 * ser-tcp.c: Likewise.
4388 * ser-unix.c: Likewise.
4389 * serial.c: Likewise.
4390 * sh-tdep.c: Likewise.
4391 * sh64-tdep.c: Likewise.
4392 * shnbsd-tdep.c: Likewise.
4393 * skip.c: Likewise.
4394 * sol-thread.c: Likewise.
4395 * solib-dsbt.c: Likewise.
4396 * solib-frv.c: Likewise.
4397 * solib-osf.c: Likewise.
4398 * solib-som.c: Likewise.
4399 * solib-spu.c: Likewise.
4400 * solib-target.c: Likewise.
4401 * solib.c: Likewise.
4402 * somread.c: Likewise.
4403 * source.c: Likewise.
4404 * sparc-nat.c: Likewise.
4405 * sparc-sol2-tdep.c: Likewise.
4406 * sparc-tdep.c: Likewise.
4407 * sparc64-tdep.c: Likewise.
4408 * sparc64fbsd-tdep.c: Likewise.
4409 * sparc64nbsd-tdep.c: Likewise.
4410 * sparcnbsd-tdep.c: Likewise.
4411 * spu-linux-nat.c: Likewise.
4412 * spu-multiarch.c: Likewise.
4413 * spu-tdep.c: Likewise.
4414 * stabsread.c: Likewise.
4415 * stack.c: Likewise.
4416 * std-regs.c: Likewise.
4417 * symfile.c: Likewise.
4418 * symmisc.c: Likewise.
4419 * symtab.c: Likewise.
4420 * target.c: Likewise.
4421 * thread.c: Likewise.
4422 * tilegx-linux-nat.c: Likewise.
4423 * tilegx-tdep.c: Likewise.
4424 * top.c: Likewise.
4425 * tracepoint.c: Likewise.
4426 * tui/tui-command.c: Likewise.
4427 * tui/tui-data.c: Likewise.
4428 * tui/tui-disasm.c: Likewise.
4429 * tui/tui-file.c: Likewise.
4430 * tui/tui-layout.c: Likewise.
4431 * tui/tui-out.c: Likewise.
4432 * tui/tui-regs.c: Likewise.
4433 * tui/tui-source.c: Likewise.
4434 * tui/tui-stack.c: Likewise.
4435 * tui/tui-win.c: Likewise.
4436 * tui/tui-windata.c: Likewise.
4437 * tui/tui-winsource.c: Likewise.
4438 * typeprint.c: Likewise.
4439 * ui-file.c: Likewise.
4440 * ui-out.c: Likewise.
4441 * user-regs.c: Likewise.
4442 * utils.c: Likewise.
4443 * v850-tdep.c: Likewise.
4444 * valarith.c: Likewise.
4445 * valops.c: Likewise.
4446 * valprint.c: Likewise.
4447 * value.c: Likewise.
4448 * varobj.c: Likewise.
4449 * vax-tdep.c: Likewise.
4450 * vaxnbsd-tdep.c: Likewise.
4451 * vaxobsd-tdep.c: Likewise.
4452 * windows-nat.c: Likewise.
4453 * xcoffread.c: Likewise.
4454 * xml-support.c: Likewise.
4455 * xstormy16-tdep.c: Likewise.
4456 * xtensa-linux-nat.c: Likewise.
4457
dccbb609
GB
44582014-08-07 Gary Benson <gbenson@redhat.com>
4459
4460 * common/common-defs.h: Include gdb_assert.h.
4461 * aarch64-tdep.c: Do not include gdb_assert.h.
4462 * addrmap.c: Likewise.
4463 * aix-thread.c: Likewise.
4464 * alpha-linux-tdep.c: Likewise.
4465 * alpha-mdebug-tdep.c: Likewise.
4466 * alphanbsd-tdep.c: Likewise.
4467 * amd64-nat.c: Likewise.
4468 * amd64-tdep.c: Likewise.
4469 * amd64bsd-nat.c: Likewise.
4470 * amd64fbsd-nat.c: Likewise.
4471 * amd64fbsd-tdep.c: Likewise.
4472 * amd64nbsd-nat.c: Likewise.
4473 * amd64nbsd-tdep.c: Likewise.
4474 * amd64obsd-nat.c: Likewise.
4475 * amd64obsd-tdep.c: Likewise.
4476 * arch-utils.c: Likewise.
4477 * arm-tdep.c: Likewise.
4478 * armbsd-tdep.c: Likewise.
4479 * auxv.c: Likewise.
4480 * bcache.c: Likewise.
4481 * bfin-tdep.c: Likewise.
4482 * blockframe.c: Likewise.
4483 * breakpoint.c: Likewise.
4484 * bsd-kvm.c: Likewise.
4485 * bsd-uthread.c: Likewise.
4486 * buildsym.c: Likewise.
4487 * c-exp.y: Likewise.
4488 * c-lang.c: Likewise.
4489 * charset.c: Likewise.
4490 * cleanups.c: Likewise.
4491 * cli-out.c: Likewise.
4492 * cli/cli-decode.c: Likewise.
4493 * cli/cli-dump.c: Likewise.
4494 * cli/cli-logging.c: Likewise.
4495 * cli/cli-script.c: Likewise.
4496 * cli/cli-utils.c: Likewise.
4497 * coffread.c: Likewise.
4498 * common/common-utils.c: Likewise.
4499 * common/queue.h: Likewise.
4500 * common/signals.c: Likewise.
4501 * common/vec.h: Likewise.
4502 * complaints.c: Likewise.
4503 * completer.c: Likewise.
4504 * corelow.c: Likewise.
4505 * cp-abi.c: Likewise.
4506 * cp-name-parser.y: Likewise.
4507 * cp-namespace.c: Likewise.
4508 * cp-support.c: Likewise.
4509 * cris-tdep.c: Likewise.
4510 * dbxread.c: Likewise.
4511 * dictionary.c: Likewise.
4512 * doublest.c: Likewise.
4513 * dsrec.c: Likewise.
4514 * dummy-frame.c: Likewise.
4515 * dwarf2-frame-tailcall.c: Likewise.
4516 * dwarf2-frame.c: Likewise.
4517 * dwarf2expr.c: Likewise.
4518 * dwarf2loc.c: Likewise.
4519 * dwarf2read.c: Likewise.
4520 * eval.c: Likewise.
4521 * event-loop.c: Likewise.
4522 * exceptions.c: Likewise.
4523 * expprint.c: Likewise.
4524 * f-valprint.c: Likewise.
4525 * fbsd-nat.c: Likewise.
4526 * findvar.c: Likewise.
4527 * frame-unwind.c: Likewise.
4528 * frame.c: Likewise.
4529 * frv-tdep.c: Likewise.
4530 * gcore.c: Likewise.
4531 * gdb-dlfcn.c: Likewise.
4532 * gdb_bfd.c: Likewise.
4533 * gdbarch.c: Likewise.
4534 * gdbarch.sh: Likewise.
4535 * gdbtypes.c: Likewise.
4536 * gnu-nat.c: Likewise.
4537 * gnu-v3-abi.c: Likewise.
4538 * go-lang.c: Likewise.
4539 * guile/scm-exception.c: Likewise.
4540 * guile/scm-gsmob.c: Likewise.
4541 * guile/scm-lazy-string.c: Likewise.
4542 * guile/scm-math.c: Likewise.
4543 * guile/scm-pretty-print.c: Likewise.
4544 * guile/scm-safe-call.c: Likewise.
4545 * guile/scm-utils.c: Likewise.
4546 * guile/scm-value.c: Likewise.
4547 * h8300-tdep.c: Likewise.
4548 * hppa-hpux-nat.c: Likewise.
4549 * hppa-tdep.c: Likewise.
4550 * hppanbsd-tdep.c: Likewise.
4551 * hppaobsd-tdep.c: Likewise.
4552 * i386-darwin-nat.c: Likewise.
4553 * i386-darwin-tdep.c: Likewise.
4554 * i386-nto-tdep.c: Likewise.
4555 * i386-tdep.c: Likewise.
4556 * i386bsd-nat.c: Likewise.
4557 * i386fbsd-tdep.c: Likewise.
4558 * i386gnu-nat.c: Likewise.
4559 * i386nbsd-tdep.c: Likewise.
4560 * i386obsd-tdep.c: Likewise.
4561 * i387-tdep.c: Likewise.
4562 * ia64-libunwind-tdep.c: Likewise.
4563 * ia64-tdep.c: Likewise.
4564 * inf-ptrace.c: Likewise.
4565 * inf-ttrace.c: Likewise.
4566 * infcall.c: Likewise.
4567 * infcmd.c: Likewise.
4568 * infrun.c: Likewise.
4569 * inline-frame.c: Likewise.
4570 * interps.c: Likewise.
4571 * jv-lang.c: Likewise.
4572 * jv-typeprint.c: Likewise.
4573 * linux-fork.c: Likewise.
4574 * linux-nat.c: Likewise.
4575 * linux-thread-db.c: Likewise.
4576 * m32c-tdep.c: Likewise.
4577 * m32r-linux-nat.c: Likewise.
4578 * m32r-tdep.c: Likewise.
4579 * m68k-tdep.c: Likewise.
4580 * m68kbsd-nat.c: Likewise.
4581 * m68kbsd-tdep.c: Likewise.
4582 * m88k-tdep.c: Likewise.
4583 * machoread.c: Likewise.
4584 * macroexp.c: Likewise.
4585 * macrotab.c: Likewise.
4586 * maint.c: Likewise.
4587 * mdebugread.c: Likewise.
4588 * memory-map.c: Likewise.
4589 * mep-tdep.c: Likewise.
4590 * mi/mi-common.c: Likewise.
4591 * microblaze-tdep.c: Likewise.
4592 * mingw-hdep.c: Likewise.
4593 * mips-linux-nat.c: Likewise.
4594 * mips-linux-tdep.c: Likewise.
4595 * mips-tdep.c: Likewise.
4596 * mips64obsd-tdep.c: Likewise.
4597 * mipsnbsd-tdep.c: Likewise.
4598 * mn10300-linux-tdep.c: Likewise.
4599 * mn10300-tdep.c: Likewise.
4600 * moxie-tdep.c: Likewise.
4601 * mt-tdep.c: Likewise.
4602 * nat/linux-btrace.c: Likewise.
4603 * nat/linux-osdata.c: Likewise.
4604 * nat/linux-ptrace.c: Likewise.
4605 * nat/mips-linux-watch.c: Likewise.
4606 * nios2-linux-tdep.c: Likewise.
4607 * nios2-tdep.c: Likewise.
4608 * objc-lang.c: Likewise.
4609 * objfiles.c: Likewise.
4610 * obsd-nat.c: Likewise.
4611 * opencl-lang.c: Likewise.
4612 * osabi.c: Likewise.
4613 * parse.c: Likewise.
4614 * ppc-linux-nat.c: Likewise.
4615 * ppc-sysv-tdep.c: Likewise.
4616 * ppcfbsd-nat.c: Likewise.
4617 * ppcfbsd-tdep.c: Likewise.
4618 * ppcnbsd-nat.c: Likewise.
4619 * ppcnbsd-tdep.c: Likewise.
4620 * ppcobsd-nat.c: Likewise.
4621 * ppcobsd-tdep.c: Likewise.
4622 * printcmd.c: Likewise.
4623 * procfs.c: Likewise.
4624 * prologue-value.c: Likewise.
4625 * psymtab.c: Likewise.
4626 * python/py-lazy-string.c: Likewise.
4627 * python/py-value.c: Likewise.
4628 * regcache.c: Likewise.
4629 * reggroups.c: Likewise.
4630 * registry.c: Likewise.
4631 * remote-sim.c: Likewise.
4632 * remote.c: Likewise.
4633 * rs6000-aix-tdep.c: Likewise.
4634 * rs6000-tdep.c: Likewise.
4635 * s390-linux-tdep.c: Likewise.
4636 * score-tdep.c: Likewise.
4637 * ser-base.c: Likewise.
4638 * ser-mingw.c: Likewise.
4639 * sh-tdep.c: Likewise.
4640 * sh64-tdep.c: Likewise.
4641 * solib-darwin.c: Likewise.
4642 * solib-spu.c: Likewise.
4643 * solib-svr4.c: Likewise.
4644 * source.c: Likewise.
4645 * sparc-nat.c: Likewise.
4646 * sparc-sol2-tdep.c: Likewise.
4647 * sparc-tdep.c: Likewise.
4648 * sparc64-sol2-tdep.c: Likewise.
4649 * sparc64-tdep.c: Likewise.
4650 * sparc64fbsd-tdep.c: Likewise.
4651 * sparc64nbsd-tdep.c: Likewise.
4652 * sparc64obsd-tdep.c: Likewise.
4653 * sparcnbsd-tdep.c: Likewise.
4654 * sparcobsd-tdep.c: Likewise.
4655 * spu-multiarch.c: Likewise.
4656 * spu-tdep.c: Likewise.
4657 * stabsread.c: Likewise.
4658 * stack.c: Likewise.
4659 * symfile.c: Likewise.
4660 * symtab.c: Likewise.
4661 * target-descriptions.c: Likewise.
4662 * target-memory.c: Likewise.
4663 * target.c: Likewise.
4664 * tic6x-linux-tdep.c: Likewise.
4665 * tic6x-tdep.c: Likewise.
4666 * tilegx-linux-nat.c: Likewise.
4667 * tilegx-tdep.c: Likewise.
4668 * top.c: Likewise.
4669 * tramp-frame.c: Likewise.
4670 * tui/tui-out.c: Likewise.
4671 * tui/tui-winsource.c: Likewise.
4672 * ui-out.c: Likewise.
4673 * user-regs.c: Likewise.
4674 * utils.c: Likewise.
4675 * v850-tdep.c: Likewise.
4676 * valops.c: Likewise.
4677 * value.c: Likewise.
4678 * varobj.c: Likewise.
4679 * vax-nat.c: Likewise.
4680 * xml-syscall.c: Likewise.
4681 * xml-tdesc.c: Likewise.
4682 * xstormy16-tdep.c: Likewise.
4683 * xtensa-linux-nat.c: Likewise.
4684 * xtensa-tdep.c: Likewise.
4685
e76df0d0
GB
46862014-08-07 Gary Benson <gbenson@redhat.com>
4687
4688 * common/common-defs.h: Include common-utils.h.
4689 * defs.h: Do not include common-utils.h.
4690 * common/gdb_assert.h: Likewise.
4691 * darwin-nat.h: Likewise.
4692 * nat/linux-btrace.c: Likewise.
4693 * target/waitstatus.h: Likewise.
4694
4cb9c816
GB
46952014-08-07 Gary Benson <gbenson@redhat.com>
4696
4697 * common/common-defs.h: Include ptid.h.
4698 * defs.h: Do not include ptid.h.
4699 * inferior.h: Likewise.
4700 * infrun.h: Likewise.
4701 * nat/linux-btrace.h: Likewise.
4702 * nat/linux-osdata.h: Likewise.
4703 * target/waitstatus.h: Likewise.
4704
3995eeee
GB
47052014-08-07 Gary Benson <gbenson@redhat.com>
4706
4707 * common/common-defs.h: Include gdb_locale.h.
4708 * defs.h: Do not include gdb_locale.h.
4709
cb9f1a9b
GB
47102014-08-07 Gary Benson <gbenson@redhat.com>
4711
4712 * common/common-defs.h: Include gdb/signals.h.
4713 * defs.h: Do not include gdb/signals.h.
4714
a5fceff8
GB
47152014-08-07 Gary Benson <gbenson@redhat.com>
4716
4717 * common/common-defs.h: Include pathmax.h.
4718 * defs.h: Do not include pathmax.h.
4719
b9391142
GB
47202014-08-07 Gary Benson <gbenson@redhat.com>
4721
4722 * common/common-defs.h: Include libiberty.h.
4723 * defs.h: Do not include libiberty.h.
4724 * common/queue.h: Likewise.
4725 * cp-name-parser.y: Likewise.
4726 * mi/mi-cmd-catch.c: Likewise.
4727 * python/python.c: Likewise.
4728
0e443c87
GB
47292014-08-07 Gary Benson <gbenson@redhat.com>
4730
4731 * common/common-defs.h: Include ansidecl.h.
4732 * defs.h: Do not include ansidecl.h.
4733 * common/buffer.h: Likewise.
4734 * common/common-utils.h: Likewise.
4735
8ebb3f56
GB
47362014-08-07 Gary Benson <gbenson@redhat.com>
4737
4738 * common/common-defs.h: Include stddef.h.
4739 * defs.h: Do not include stddef.h.
4740 * common/common-utils.h: Likewise.
4741 * amd64fbsd-nat.c: Likewise.
4742 * bcache.c: Likewise.
4743 * charset.c: Likewise.
4744 * common/buffer.h: Likewise.
4745 * common/vec.h: Likewise.
4746 * i386bsd-nat.c: Likewise.
4747 * nat/linux-btrace.h: Likewise.
4748 * ppcfbsd-nat.c: Likewise.
4749 * ppcnbsd-tdep.h: Likewise.
4750 * ppcobsd-nat.c: Likewise.
4751 * ppcobsd-tdep.h: Likewise.
4752 * python/py-gdb-readline.c: Likewise.
4753
8980bdf6
GB
47542014-08-07 Gary Benson <gbenson@redhat.com>
4755
4756 * common/common-defs.h: Include stdarg.h.
4757 * defs.h: Do not include stdarg.h.
4758 * ada-lang.c: Likewise.
4759 * common/common-utils.h: Likewise.
4760 * guile/scm-string.c: Likewise.
4761 * guile/scm-utils.c: Likewise.
4762 * m32c-tdep.c: Likewise.
4763
d7096f71
GB
47642014-08-07 Gary Benson <gbenson@redhat.com>
4765
4766 * common/common-defs.h: Include stdlib.h.
4767 * defs.h: Do not include stdlib.h.
4768 * addrmap.c: Likewise.
4769 * bcache.c: Likewise.
4770 * common/buffer.c: Likewise.
4771 * common/common-utils.c: Likewise.
4772 * cp-name-parser.y: Likewise.
4773 * go32-nat.c: Likewise.
4774 * mn10300-linux-tdep.c: Likewise.
4775 * nat/linux-osdata.c: Likewise.
4776 * tui/tui.c: Likewise.
4777 * windows-nat.c: Likewise.
4778
d02f550d
GB
47792014-08-07 Gary Benson <gbenson@redhat.com>
4780
4781 * common/common-defs.h: Include stdio.h.
4782 * defs.h: Do not include stdio.h.
4783 * ada-lang.c: Likewise.
4784 * common/buffer.c: Likewise.
4785 * common/common-utils.c: Likewise.
4786 * cp-name-parser.y: Likewise.
4787 * gnu-nat.c: Likewise.
4788 * go32-nat.c: Likewise.
4789 * i386gnu-nat.c: Likewise.
4790 * proc-api.c: Likewise.
4791 * proc-events.c: Likewise.
4792 * proc-flags.c: Likewise.
4793 * proc-why.c: Likewise.
4794 * python/python-internal.h: Likewise.
4795 * target-memory.c: Likewise.
4796 * tui/tui-io.c: Likewise.
4797 * tui/tui.c: Likewise.
4798
b6d7a4bf
SM
47992014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4800
4801 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4802 (scan_dyntag_auxv): Same.
4803
af19829b
YQ
48042014-08-06 Yao Qi <yao@codesourcery.com>
4805
4806 * amd64-linux-nat.c: Remove duplicated include
4807 "x86-linux-nat.h".
4808 * i386-linux-nat.c: Likewise.
4809
8e07a239
YQ
48102014-08-06 Yao Qi <yao@codesourcery.com>
4811
4812 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4813 operand" with "Special opcode" in comments.
4814
7bfe8241
GB
48152014-08-05 Gary Benson <gbenson@redhat.com>
4816
4817 * interps.c (initialize_interps): Remove prototype.
4818 (interpreter_initialized): Remove static global.
4819 (interp_add): Do not call initialize_interps.
4820 (initialize_interps): Remove function.
4821
d6c95504
GB
48222014-08-05 Gary Benson <gbenson@redhat.com>
4823
4824 * utils.c (vwarning): Remove spurious va_end.
4825
241fd515
AM
48262014-08-05 Alan Modra <amodra@gmail.com>
4827
4828 * charset.c (convert_between_encodings): Cast result of obstack_base.
4829 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4830 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4831 (read_unwind_info): Use size_t for some locals.
4832 * jit.c (finalize_symtab): Likewise.
4833 * utils.c (hashtab_obstack_allocate): Likewise.
4834 * symmisc.c (print_objfile_statistics): Update format strings.
4835
dc304a94
JK
48362014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4839 (Changes in GDB 7.8): ... here.
4840
3cecbbbe
TT
48412014-08-04 Tom Tromey <tromey@redhat.com>
4842
4843 * target.c (set_targetdebug): New function.
4844 (initialize_targets): Pass set_targetdebug when creating "set
4845 debug target".
4846
6908c509
JB
48472014-08-01 Joel Brobecker <brobecker@adacore.com>
4848
4849 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4850 if detecting a variable-sized field that is not the last field.
4851 Fix struct type length computation.
4852
53e8f97d
JB
48532014-08-01 Joel Brobecker <brobecker@adacore.com>
4854
4855 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4856 Add debug trace.
4857
e068c55d
JB
48582014-08-01 Joel Brobecker <brobecker@adacore.com>
4859
4860 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4861 Remove "+ 8" offset in computation of CHAIN_VMA.
4862
4d4ca2a1
DE
48632014-07-31 Doug Evans <dje@google.com>
4864
4865 * inflow.c (child_terminal_inferior): Add comment.
4866 (child_terminal_ours_for_output): Add comment.
4867 (child_terminal_ours): Add comment.
4868 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4869 (linux_nat_terminal_ours): Add comment.
4870
462f517e
GB
48712014-07-31 Gary Benson <gbenson@redhat.com>
4872
4873 * common/btrace-common.h: Do not include defs.h or server.h.
4874 * nat/mips-linux-watch.h: Likewise.
4875 * gdb-dlfcn.h: Do not include defs.h.
4876 * tracefile.h: Likewise.
4877
74228e77
RM
48782014-07-30 Roland McGrath <mcgrathr@google.com>
4879
4880 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4881
014f9477
TT
48822014-07-30 Tom Tromey <tromey@redhat.com>
4883
4884 * bsd-kvm.c (bsd_kvm_open): Constify.
4885 * corelow.c (core_open): Constify.
4886 * ctf.c (ctf_open): Constify.
4887 * dbug-rom.c (dbug_open): Constify.
4888 * exec.c (exec_open): Constify.
4889 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4890 * microblaze-rom.c (picobug_open): Constify.
4891 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4892 Constify.
4893 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4894 * record-btrace.c (record_btrace_open): Constify.
4895 * record-full.c (record_full_core_open_1, record_full_open_1)
4896 (record_full_open): Constify.
4897 * remote-m32r-sdi.c (m32r_open): Constify.
4898 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4899 (rockhopper_open, lsi_open): Constify.
4900 * remote-sim.c (gdbsim_open): Constify.
4901 * remote.c (remote_open, extended_remote_open, remote_open_1):
4902 Constify.
4903 * target.h (struct target_ops) <to_open>: Make "arg" const.
4904 * tracefile-tfile.c (tfile_open): Constify.
4905
e799154c
TT
49062014-07-30 Tom Tromey <tromey@redhat.com>
4907
4908 * breakpoint.c (map_breakpoint_numbers): Update.
4909 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4910 (get_number_const): New function.
4911 (get_number): Rewrite using get_number_const.
4912 (init_number_or_range): Make "string" const.
4913 (number_is_in_list): Make "list" const.
4914 * cli/cli-utils.h (get_number_const): Declare.
4915 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4916 (init_number_or_range, number_is_in_list): Update.
4917 * printcmd.c (map_display_numbers): Update.
4918 * value.c (value_from_history_ref): Constify.
4919 * value.h (value_from_history_ref): Update.
4920
5f08566b
TT
49212014-07-30 Tom Tromey <tromey@redhat.com>
4922
4923 * corefile.c (hook_type, call_extra_exec_file_hooks)
4924 (specify_exec_file_hook): Constify.
4925 * exec.c (exec_file_attach): Make "filename" const.
4926 * gdbcore.h (deprecated_exec_file_display_hook)
4927 (specify_exec_file_hook, exec_file_attach): Constify.
4928 * main.c (captured_main): Use catch_command_errors_const.
4929
8981c758
TT
49302014-07-30 Tom Tromey <tromey@redhat.com>
4931
4932 * target.c (open_target): New function.
4933 (add_target_with_completer, add_deprecated_target_alias): Use
4934 set_cmd_sfunc, set_cmd_context.
4935 (debug_to_open): Remove.
4936 (setup_target_debug): Update.
4937
a1c7835a
YQ
49382014-07-30 Yao Qi <yao@codesourcery.com>
4939
4940 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4941 comments.
4942 * parse.c (exp_iterate): Update comments.
4943
976411d6
GB
49442014-07-30 Gary Benson <gbenson@redhat.com>
4945
4946 * common/common-defs.h: New file.
4947 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4948 * defs.h: Include common-defs.h.
4949 Do not include config.h or build-gnulib/config.h.
4950
5d4848a4
GB
49512014-07-30 Gary Benson <gbenson@redhat.com>
4952
4953 * common/common-utils.h: Do not include config.h.
4954 * nat/linux-btrace.h: Likewise.
4955
d41f6d8e
GB
49562014-07-30 Gary Benson <gbenson@redhat.com>
4957
4958 * btrace.c: Include defs.h.
4959 * common/ptid.c: Include defs.h or server.h as appropriate.
4960 * nat/mips-linux-watch.c: Likewise.
4961
84202f9c
TT
49622014-07-29 Tom Tromey <tromey@redhat.com>
4963
4964 * target.c (target_is_pushed): Simplify.
4965
2530441c
JB
49662014-07-29 Joel Brobecker <brobecker@adacore.com>
4967
4968 GDB 7.8 released.
4969
7e09a223
YQ
49702014-07-29 Yao Qi <yao@codesourcery.com>
4971
4972 PR gdb/17206
4973 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4974
7ebdbe92
DE
49752014-07-28 Doug Evans <xdje42@gmail.com>
4976
4977 PR guile/17203
4978 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4979 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4980 parameters.
4981
f347ffc9
WN
49822014-07-28 Will Newton <will.newton@linaro.org>
4983
4984 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4985 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4986 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4987 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4988 (THUMB2_EABI_SYSCALL): Likewise.
4989 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4990 struct tramp_frame.
4991 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4992 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4993
37c5f1f7
DE
49942014-07-27 Doug Evans <xdje42@gmail.com>
4995
4996 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4997
0c3abbc7
DE
49982014-07-27 Doug Evans <xdje42@gmail.com>
4999
5000 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5001
e76c5d17
DE
50022014-07-26 Ludovic Courtès <ludo@gnu.org>
5003 Doug Evans <xdje42@gmail.com>
5004
5005 PR guile/17146
5006 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5007 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5008 * configure.ac: Try to use guild to compile an scm file, if it fails
5009 then disable guile support.
5010 * configure: Regenerate.
5011 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5012 GUILE_FILE_LIST.
5013 (GUILE_COMPILED_FILES): New variable.
5014 (GUILE_FILES) Update.
5015 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5016 (stamp-guile): Compile scm files.
5017 * guile/guile.c (boot_guile_support): New function.
5018 (standard_throw_args_p): New function.
5019 (print_standard_throw_error, print_throw_error): New functions.
5020 (handle_boot_error): New function.
5021 (initialize_scheme_side): Rewrite to call boot_guile_support.
5022 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5023 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5024
186fcde0
DE
50252014-07-26 Ludovic Courtès <ludo@gnu.org>
5026 Doug Evans <xdje42@gmail.com>
5027
5028 PR guile/17146
5029 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5030 * guile/lib/gdb/support.scm: New file.
5031 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5032 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5033 All uses updated.
5034 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5035 All uses updated.
5036 (%assert-type): Ditto, and renamed to assert-type.
5037 (%exception-print-style): Delete.
5038
4df42755
DE
50392014-07-26 Doug Evans <xdje42@gmail.com>
5040
5041 PR build/17105
5042 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5043 * configure: Regenerate.
5044 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5045 PYTHON_FILES.
5046 (PYTHON_FILES): New variable.
5047 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5048 (GUILE_FILES): New variable.
5049 (stamp-python, install-python, uninstall-python): Handle empty
5050 file list.
5051 (stamp-guile, install-guile, uninstall-guile): Ditto.
5052
ee7333ae
DE
50532014-07-26 Doug Evans <xdje42@gmail.com>
5054
5055 PR guile/17177
5056 * guile/lib/gdb.scm (pretty-printers): Export.
5057 (set-pretty-printers!): Export.
5058 * guile/lib/gdb/printing.scm (gdb module): Update.
5059 (prepend-pretty-printer!, append-pretty-printer!): Update.
5060 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5061 (pretty_printer_list_var): Delete.
5062 (pretty_printer_list): New static global.
5063 (gdbscm_pretty_printers): New function.
5064 (gdbscm_set_pretty_printers_x): New function.
5065 (ppscm_find_pretty_printer_from_gdb): Update.
5066 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5067 (gdbscm_initialize_pretty_printers): Update.
5068
74edf516
DE
50692014-07-26 Doug Evans <xdje42@gmail.com>
5070
5071 PR 17185
5072 * configure.ac: Add check for header gc/gc.h.
5073 Add check for function setenv.
5074 * configure: Regenerate.
5075 * config.in: Regenerate.
5076 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5077
d54398a7
MR
50782014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5079
5080 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5081 variation in gdbarch matching.
5082
ab16fce8
TT
50832014-07-25 Tom Tromey <tromey@redhat.com>
5084
5085 * exec.c (using_exec_ops): Remove.
5086 (exec_close_1): Update. Remove extraneous block, reindent.
5087 (add_target_sections): Use target_is_pushed.
5088
88056fbb
PA
50892014-07-25 Pedro Alves <palves@redhat.com>
5090
5091 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5092 * monitor.c (monitor_create_inferior): Likewise.
5093 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5094 * remote-sim.c (gdbsim_create_inferior): Likewise.
5095 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5096 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5097 * windows-nat.c (do_initial_windows_stuff): Likewise.
5098
70509625
PA
50992014-07-25 Pedro Alves <palves@redhat.com>
5100
5101 * NEWS: Mention signal passing and "signal" command changes.
5102 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5103 comment.
5104 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5105 call.
5106 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5107 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5108 (jump_command): Adjust clear_proceed_status call.
5109 (signal_command): Warn if other thread that are resumed have
5110 signals that will be delivered. Adjust clear_proceed_status call.
5111 (until_next_command, finish_command)
5112 (proceed_after_attach_callback, attach_command_post_wait)
5113 (attach_command): Adjust clear_proceed_status call.
5114 * infrun.c (proceed_after_vfork_done): Likewise.
5115 (proceed_after_attach_callback): Adjust comment.
5116 (clear_proceed_status_thread): Clear stop_signal if not in pass
5117 state.
5118 (clear_proceed_status_callback): Delete.
5119 (clear_proceed_status): New 'step' parameter. Only clear the
5120 proceed status of threads the command being prepared is about to
5121 resume.
5122 (proceed): If passed in an explicit signal, override stop_signal
5123 with it. Don't pass the last stop signal to the thread we're
5124 resuming.
5125 (init_wait_for_inferior): Adjust clear_proceed_status call.
5126 (switch_back_to_stepped_thread): Clear the signal if it should not
5127 be passed.
5128 * infrun.h (clear_proceed_status): New 'step' parameter.
5129 (user_visible_resume_ptid): Add comment.
5130 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5131 signal is in pass state.
5132 * remote.c (append_pending_thread_resumptions): Likewise.
5133 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5134
d8be2939
TT
51352014-07-25 Tom Tromey <tromey@redhat.com>
5136
5137 * target.h (target_stopped_data_address)
5138 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5139 parentheses.
5140
7d0d9d2b
PL
51412014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5142
5143 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5144 comments.
5145 (avr_pointer_to_address): Likewise.
5146
e9e7f724
TT
51472014-07-24 Tom Tromey <tromey@redhat.com>
5148
5149 * monitor.c (compile_pattern): Update.
5150 * target.h (struct target_ops) <to_shortname, to_longname,
5151 to_doc>: Now const.
5152
1947513d
TT
51532014-07-24 Tom Tromey <tromey@redhat.com>
5154
5155 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5156 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5157 (add_info_alias, add_com): Make "doc" const.
5158 (print_doc_line): Make "str" const.
5159 (delete_cmd): Update.
5160 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5161 (print_doc_line): Update.
5162 * cli/cli-script.c (document_command): Update.
5163 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5164 (add_com, add_info, add_info_alias): Update.
5165 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5166 * python/py-cmd.c (cmdpy_destroyer): Update.
5167
64e61d29
TT
51682014-07-24 Tom Tromey <tromey@redhat.com>
5169
5170 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5171 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5172 (help_cmd_list): Constify.
5173 (lookup_cmd): Update.
5174 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5175 const.
5176 (help_cmd_list, apropos_cmd): Update.
5177 * cli/cli-script.c (show_user): Update.
5178 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5179 * cli/cli-setshow.h (cmd_show_list): Update.
5180 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5181 (cmd_show_list): Update.
5182 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5183 * python/py-cmd.c (cmdpy_destroyer): Update.
5184
429e55ea
TT
51852014-07-24 Tom Tromey <tromey@redhat.com>
5186
5187 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5188 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5189 const.
5190 * command.h (deprecate_cmd): Update.
5191 * maint.c (maintenance_do_deprecate): Add casts.
5192
64669f3b
TT
51932014-07-24 Tom Tromey <tromey@redhat.com>
5194
5195 * cli/cli-decode.c (help_cmd): Make parameter "const".
5196 * cli/cli-decode.h (help_cmd): Update.
5197
d3d3328b
TT
51982014-07-24 Tom Tromey <tromey@redhat.com>
5199
5200 * stack.c (up_silently_base, down_silently_base): Make argument
5201 const.
5202
414842dc
TT
52032014-07-24 Tom Tromey <tromey@redhat.com>
5204
5205 * solib.c (solib_add): Make "pattern" const.
5206 * solib.h (solib_add): Update.
5207
baa336ce
TT
52082014-07-24 Tom Tromey <tromey@redhat.com>
5209
5210 * remote.c (remote_serial_open, print_packet, putpkt)
5211 (putpkt_binary): Constify.
5212 * remote.h (putpkt): Update.
5213
5a19e2d0
TT
52142014-07-24 Tom Tromey <tromey@redhat.com>
5215
5216 * monitor.c (monitor_open): Make "args" const.
5217 * monitor.h (monitor_open): Update.
5218
fc4baa5e
TT
52192014-07-24 Tom Tromey <tromey@redhat.com>
5220
5221 * maint.c (match_bfd_flags): Make "string" const.
5222 (print_bfd_section_info): Remove casts.
5223 (print_objfile_section_info): Make "string" const.
5224
0d5f0dbe
TT
52252014-07-24 Tom Tromey <tromey@redhat.com>
5226
5227 * inf-child.c (inf_child_open_target): Make "arg" const.
5228 * inf-child.h (inf_child_open_target): Update.
5229
41c77899
TT
52302014-07-24 Tom Tromey <tromey@redhat.com>
5231
5232 * environ.c (unset_in_environ): Make "var" const.
5233 * environ.h (unset_in_environ): Update.
5234
93db0d79
TT
52352014-07-24 Tom Tromey <tromey@redhat.com>
5236
5237 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5238 Make "cmd" const.
5239 (scan_filename_with_cleanup): Likewise.
5240 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5241 Make arguments const.
5242 (restore_command): Update.
5243
36d6eb95
PA
52442014-07-24 Pedro Alves <palves@redhat.com>
5245
5246 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5247
8009206a
TT
52482014-07-24 Tom Tromey <tromey@redhat.com>
5249 Gary Benson <gbenson@redhat.com>
5250
5251 * nat/linux-ptrace.c (additional_flags): New global.
5252 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5253 additional_flags; don't check GDBSERVER.
5254 (linux_ptrace_set_additional_flags): New function.
5255 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5256 Declare.
5257 * linux-nat.c (_initialize_linux_nat): Call
5258 linux_ptrace_set_additional_flags.
5259
a7068b60
TT
52602014-07-24 Tom Tromey <tromey@redhat.com>
5261
5262 * make-target-delegates (munge_type, write_debugmethod): New
5263 functions.
5264 (debug_names): New global.
5265 ($TARGET_DEBUG_PRINTER): New global.
5266 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5267 name.
5268 Write debug methods. Generate init_debug_target.
5269 * target-debug.h: New file.
5270 * target-delegates.c: Rebuild.
5271 * target.c: Include target-debug.h.
5272 (debug_target): Hoist definition.
5273 (target_kill, target_get_section_table, target_memory_map)
5274 (target_flash_erase, target_flash_done, target_detach)
5275 (target_disconnect, target_wait, target_resume)
5276 (target_pass_signals, target_program_signals, target_follow_fork)
5277 (target_mourn_inferior, target_search_memory)
5278 (target_thread_address_space, target_close)
5279 (target_find_new_threads, target_core_of_thread)
5280 (target_verify_memory, target_insert_mask_watchpoint)
5281 (target_remove_mask_watchpoint): Remove targetdebug code.
5282 (debug_to_post_attach, debug_to_prepare_to_store)
5283 (debug_to_files_info, debug_to_insert_breakpoint)
5284 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5285 (debug_to_region_ok_for_hw_watchpoint)
5286 (debug_to_can_accel_watchpoint_condition)
5287 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5288 (debug_to_watchpoint_addr_within_range)
5289 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5290 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5291 (debug_to_terminal_init, debug_to_terminal_inferior)
5292 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5293 (debug_to_terminal_save_ours, debug_to_terminal_info)
5294 (debug_to_load, debug_to_post_startup_inferior)
5295 (debug_to_insert_fork_catchpoint)
5296 (debug_to_remove_fork_catchpoint)
5297 (debug_to_insert_vfork_catchpoint)
5298 (debug_to_remove_vfork_catchpoint)
5299 (debug_to_insert_exec_catchpoint)
5300 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5301 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5302 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5303 (setup_target_debug): Call init_debug_target.
5304 * target.h (TARGET_DEBUG_PRINTER): New macro.
5305 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5306 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5307
2c51604d
GB
53082014-07-24 Gary Benson <gbenson@redhat.com>
5309
5310 * exceptions.h (throw_vfatal): Renamed to...
5311 (throw_vquit): New declaration.
5312 (throw_quit): Likewise.
5313 * exceptions.c (throw_vfatal): Renamed to...
5314 (throw_vquit): New function.
5315 (throw_quit): Likewise.
5316 (throw_error): Call throw_verror rather than throw_it.
5317 * utils.h (vfatal): Removed.
5318 (fatal): Likewise.
5319 * utils.c (vfatal): Removed.
5320 (fatal): Likewise.
5321 (internal_verror): Replaced call to fatal with call to throw_quit.
5322 (quit): Replaced calls to fatal with calls to throw_quit.
5323
34211963
ME
53242014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5325
5326 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5327 target_read_code.
5328
a52b4d3e
ME
53292014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5330
5331 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5332 less than zero in conditional expression.
5333
a8bdc56b
TT
53342014-07-23 Tom Tromey <tromey@redhat.com>
5335
5336 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5337 ($INTRO_PART): Don't match whitespace.
5338 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5339 argument matching.
5340 ($METHOD): Add $METHOD_TRAILER.
5341 (trim): Rewrite.
5342 (scan_target_h): New sub.
5343 Change main loop not to collect state.
5344 * target-delegates.c: Rebuild.
5345
91b52240
GB
53462014-07-23 Gary Benson <gbenson@redhat.com>
5347
5348 * cp-support.c (gdb_demangle): Fix build on systems without
5349 sigaltstack.
5350
45326f6f
JK
53512014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5352
5353 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5354 for reference entry value target data value.
5355
e214cf6c
JK
53562014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5359 value_available_contents_eq.
5360
bddbbedd
PA
53612014-07-22 Pedro Alves <palves@redhat.com>
5362
5363 * value.c (allocate_optimized_out_value): Don't mark value as
5364 non-lazy.
5365
45c71484
JW
53662014-07-22 Jiong Wang <jiong.wang@arm.com>
5367
5368 * MAINTAINERS (Write After Approval): Update my email address.
5369
9597b22a
DE
53702014-07-20 Doug Evans <dje@google.com>
5371
5372 PR server/17147
5373 * remote.c (putpkt_binary): Add text to error message.
5374
91101fe5
YQ
53752014-07-20 Yao Qi <yao@codesourcery.com>
5376
5377 * eval.c: Remove "Chill" from comments.
5378 * gdbtypes.h: Likewise.
5379 * symtab.h: Likewise.
5380
c9402c95
YQ
53812014-07-20 Yao Qi <yao@codesourcery.com>
5382
5383 * std-operator.def: Update comments to TERNOP_SLICE.
5384
ae8fddda
YQ
53852014-07-20 Yao Qi <yao@codesourcery.com>
5386
5387 * std-operator.def: Remove BINOP_RANGE.
5388 * breakpoint.c (watchpoint_exp_is_const): Update.
5389 * expprint.c (dump_subexp_body_standard): Likewise.
5390 * eval.c (init_array_element): Remove dead code.
5391 (evaluate_subexp_standard): Likewise.
5392
9c816640
YQ
53932014-07-20 Yao Qi <yao@codesourcery.com>
5394
5395 * std-operator.def: Remove BINOP_IN.
5396 * breakpoint.c (watchpoint_exp_is_const): Update.
5397 * eval.c (evaluate_subexp_standard): Likewise.
5398 * expprint.c (dump_subexp_body_standard): Likewise.
5399
164224e9
ME
54002014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5401
5402 * microblaze-tdep.c (microblaze_register_names): Add
5403 the rshr and rslr register names.
5404 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5405 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5406 Use of tdesc_numbered_register. Use of
5407 microblaze_register_g_packet_guesses. Use of
5408 tdesc_use_registers. Use of set_gdbarch_register_type.
5409 (microblaze_register_g_packet_guesses): New.
5410 * microblaze-tdep.h (microblaze_reg_num): Add
5411 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5412 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5413 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5414 * features/microblaze-core.xml: New file.
5415 * features/microblaze-stack-protect.xml: New file.
5416 * features/microblaze-with-stack-protect.c: New file.
5417 * features/microblaze-with-stack-protect.xml: New file.
5418 * features/microblaze.xml: New file.
5419 * features/microblaze.c: New file.
5420 * features/Makefile (microblaze-with-stack-protect): Add
5421 microblaze-with-stack-protect microblaze and microblaze-expedite.
5422 * regformats/microblaze-with-stack-protect.dat: New file.
5423 * regformats/microblaze.dat: New file.
5424 * doc/gdb.texinfo (MicroBlaze Features): Added.
5425
e8b2341c
TT
54262014-07-18 Tom Tromey <tromey@redhat.com>
5427
5428 * exec.c (exec_ops): Now static.
5429 * exec.h (exec_ops): Don't declare.
5430
44e89118
TT
54312014-07-18 Tom Tromey <tromey@redhat.com>
5432
5433 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5434 to find_target_beneath.
5435 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5436 find_target_beneath.
5437 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5438
b0ed115f
TT
54392014-07-18 Tom Tromey <tromey@redhat.com>
5440
5441 PR gdb/17130:
5442 * utils.c (quit): Use target_supports_terminal_ours.
5443 * target.h (target_supports_terminal_ours): Declare.
5444 * target.c (target_supports_delete_record): Don't check
5445 to_delete_record against NULL.
5446 (target_supports_terminal_ours): New function.
5447
e75fdfca
TT
54482014-07-18 Tom Tromey <tromey@redhat.com>
5449
5450 PR gdb/17130:
5451 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5452 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5453 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5454 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5455 * windows-nat.c (windows_xfer_partial): Always delegate.
5456 * record-btrace.c (record_btrace_xfer_partial): Simplify
5457 delegation.
5458 (record_btrace_fetch_registers, record_btrace_store_registers)
5459 (record_btrace_prepare_to_store, record_btrace_resume)
5460 (record_btrace_wait, record_btrace_find_new_threads)
5461 (record_btrace_thread_alive): Likewise.
5462 * procfs.c (procfs_xfer_partial): Always delegate.
5463 * corelow.c (core_xfer_partial): Always delegate.
5464 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5465
83814951
TT
54662014-07-18 Tom Tromey <tromey@redhat.com>
5467
5468 * exec.c (exec_make_note_section): Move earlier.
5469
b8b8facf
DE
54702014-07-17 Doug Evans <dje@google.com>
5471
74b49205 5472 PR gdb/17170
b8b8facf
DE
5473 * maint.c (count_symtabs_and_blocks): Handle NULL
5474 current_program_space.
5475 (report_command_stats): Check global enabled flag in addition to
5476 recorded enabled flag.
5477 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5478
69ff6be5
PA
54792014-07-16 Pedro Alves <palves@redhat.com>
5480
5481 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5482
252db1b5
TT
54832014-07-16 Tom Tromey <tromey@redhat.com>
5484
5485 * target.h (struct target_ops) <to_delete_record>: Reformat
5486 comment.
5487
a432721e
TT
54882014-07-16 Tom Tromey <tromey@redhat.com>
5489
5490 * target-delegates.c: Rebuild.
5491
487d9753
PL
54922014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5493
5494 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5495 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5496 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5497 (avr_pointer_to_address): Likewise.
5498 (avr_address_class_type_flags): New function.
5499 (avr_address_class_type_flags_to_name): Likewise.
5500 (avr_address_class_name_to_type_flags): Likewise.
5501 (avr_gdbarch_init): Set address_class_type_flags,
5502 address_class_type_flags_to_name and
5503 address_class_name_to_type_flags.
5504
57745c90
PA
55052014-07-15 Pedro Alves <palves@redhat.com>
5506
5507 * linux-nat.c (kill_callback): Save errno and work with saved
5508 copy.
5509
2d40be18
SM
55102014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5513
572f6555
EBM
55142014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5515
5516 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5517 breakpoint support correctly.
5518
cc1c52ad
PA
55192014-07-14 Pedro Alves <palves@redhat.com>
5520
5521 * utils.c (prompt_for_continue): Call target_terminal_ours.
5522
1e973570
PA
55232014-07-14 Pedro Alves <palves@redhat.com>
5524
5525 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5526 catch_errors. Don't re-enable stdin or notify observers where,
5527 and rethrow error.
5528 (fetch_inferior_event_wrapper): Delete.
5529
93d6eb10
PA
55302014-07-14 Pedro Alves <palves@redhat.com>
5531
5532 PR gdb/17072
5533 * top.c: Include "inf-loop.h".
5534 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5535 field.
5536 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5537 was async before.
5538 (gdb_readline_wrapper): Store whether the target is async, and
5539 make it sync.
5540
0017922d
PA
55412014-07-14 Pedro Alves <palves@redhat.com>
5542
5543 PR gdb/17072
5544 * top.c (gdb_readline_wrapper_line): Tweak comment.
5545 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5546 the input handler callback.
5547
94696ad3
PA
55482014-07-14 Pedro Alves <palves@redhat.com>
5549
5550 PR gdb/17072
5551 * main.c: Include event-top.h.
5552 (handle_command_errors): New function.
5553 (catch_command_errors, catch_command_errors_const): Use it.
5554
9d1e69a2
PA
55552014-07-14 Pedro Alves <palves@redhat.com>
5556
5557 * exceptions.c (catch_command_errors, catch_command_errors_const):
5558 Moved to main.c.
5559 * exceptions.h (catch_command_errors_ftype)
5560 (catch_command_errors_const_ftype): Moved to main.c.
5561 (catch_command_errors, catch_command_errors_const): Delete
5562 declarations.
5563 * main.c (catch_command_errors_ftype)
5564 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5565 (catch_command_errors, catch_command_errors_const)): Moved here
5566 from exceptions.c and make static.
5567
feefc97b
PA
55682014-07-14 Pedro Alves <palves@redhat.com>
5569
5570 * exceptions.c (print_any_exception): Delete.
5571 (catch_exceptions_with_msg): Use exception_print instead of
5572 print_any_exception.
5573 (catch_errors): Use exception_fprintf instead of
5574 print_any_exception.
5575 (catch_command_errors, catch_command_errors_const): Use
5576 exception_print instead of print_any_exception.
5577
c933f875
PA
55782014-07-14 Pedro Alves <palves@redhat.com>
5579
5580 * infcall.c (run_inferior_call): Set 'sync_execution' while
5581 running the inferior call.
5582
feb6f816
PA
55832014-07-14 Pedro Alves <palves@redhat.com>
5584
5585 * value.c (value_contents_equal): Delete function.
5586 * value.h (value_contents_equal): Delete declaration.
5587
d98b7a16
TT
55882014-07-14 Tom Tromey <tromey@redhat.com>
5589
5590 PR exp/17106:
5591 * gdbtypes.c (is_dynamic_type_internal): New function, from
5592 is_dynamic_type.
5593 (is_dynamic_type): Rewrite.
5594 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5595 (resolve_dynamic_struct): Likewise.
5596 (resolve_dynamic_type_internal): New function, from
5597 resolve_dynamic_type.
5598 (resolve_dynamic_type): Rewrite.
5599
548740d6
TT
56002014-07-14 Tom Tromey <tromey@redhat.com>
5601
5602 * target.c (target_require_runnable): Also check record_stratum.
5603 Update comment.
5604
808f7ab1
YQ
56052014-07-11 Yao Qi <yao@codesourcery.com>
5606
5607 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5608 thumb_instruction_restores_sp return true.
5609
540314bd
YQ
56102014-07-11 Yao Qi <yao@codesourcery.com>
5611
5612 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5613 (thumb_in_function_epilogue_p): Call
5614 thumb_instruction_restores_sp.
5615
1db01f22
YQ
56162014-07-11 Yao Qi <yao@codesourcery.com>
5617
5618 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5619 'add sp, #imm'.
5620 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5621
3116063b
GB
56222014-07-11 Gary Benson <gbenson@redhat.com>
5623
5624 * amd64-linux-nat.c (gdbcore.h): Remove include.
5625 (regset.h): Likewise.
5626 (nat/linux-btrace.h): Likewise.
5627 (btrace.h): Likewise.
5628 (gdb_assert.h): Likewise.
5629 (string.h): Likewise.
5630 (sys/uio.h): Likewise.
5631 (sys/debugreg.h): Likewise.
5632 (sys/syscall.h): Likewise.
5633 (sys/procfs.h): Likewise.
5634 (sys/user.h): Likewise.
5635 (asm/ptrace.h): Likewise.
5636 (i386-nat.h): Likewise.
5637 * i386-linux-nat.c (i386-nat.h): Likewise.
5638 (regset.h): Likewise.
5639 (target.h): Likewise.
5640 (linux-nat.h): Likewise.
5641 (nat/linux-btrace.h): Likewise.
5642 (btrace.h): Likewise.
5643 (gdb_assert.h): Likewise.
5644 (string.h): Likewise.
5645 (sys/uio.h): Likewise.
5646 (sys/user.h): Likewise.
5647 (sys/procfs.h): Likewise.
5648 (sys/reg.h): Likewise.
5649 (sys/debugreg.h): Likewise.
5650 (ORIG_EAX): Remove definition.
5651
040baaf6
GB
56522014-07-11 Gary Benson <gbenson@redhat.com>
5653
5654 * i386-linux-nat.h: New file.
5655 * x86-linux-nat.h: Likewise.
5656 * x86-linux-nat.c: Likewise.
5657 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5658 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5659 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5660 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5661 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5662 (PTRACE_SETREGSET): Likewise.
5663 (arch_lwp_info): Now in x86-linux-nat.c.
5664 (have_ptrace_getregset): Now in x86-linux-nat.h.
5665 (x86_linux_dr_get): Now in x86-linux-nat.c.
5666 (x86_linux_dr_set): Likewise.
5667 (x86_linux_dr_get_addr): Likewise.
5668 (x86_linux_dr_get_control): Likewise.
5669 (x86_linux_dr_get_status): Likewise.
5670 (update_debug_registers_callback): Likewise.
5671 (x86_linux_dr_set_control): Likewise.
5672 (x86_linux_dr_set_addr): Likewise.
5673 (x86_linux_prepare_to_resume): Likewise.
5674 (x86_linux_new_thread): Likewise.
5675 (x86_linux_new_fork): Likewise.
5676 (x86_linux_get_thread_area): Likewise.
5677 (super_post_startup_inferior): Likewise.
5678 (x86_linux_child_post_startup_inferior): Likewise.
5679 (AMD64_LINUX_USER64_CS): Likewise.
5680 (AMD64_LINUX_X32_DS): Likewise.
5681 (x86_linux_read_description): Likewise.
5682 (x86_linux_enable_btrace): Likewise.
5683 (x86_linux_disable_btrace): Likewise.
5684 (x86_linux_teardown_btrace): Likewise.
5685 (x86_linux_read_btrace): Likewise.
5686 (x86_linux_create_target): Likewise.
5687 (x86_linux_add_target): Likewise.
5688 * i386-linux-nat.c (x86-linux-nat.h): New include.
5689 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5690 (PTRACE_SETREGSET): Likewise.
5691 (arch_lwp_info): Now in x86-linux-nat.c.
5692 (have_ptrace_getregset): Now in x86-linux-nat.h.
5693 (x86_linux_dr_get): Now in x86-linux-nat.c.
5694 (x86_linux_dr_set): Likewise.
5695 (x86_linux_dr_get_addr): Likewise.
5696 (x86_linux_dr_get_control): Likewise.
5697 (x86_linux_dr_get_status): Likewise.
5698 (update_debug_registers_callback): Likewise.
5699 (x86_linux_dr_set_control): Likewise.
5700 (x86_linux_dr_set_addr): Likewise.
5701 (x86_linux_prepare_to_resume): Likewise.
5702 (x86_linux_new_thread): Likewise.
5703 (x86_linux_new_fork): Likewise.
5704 (x86_linux_get_thread_area): Likewise.
5705 (super_post_startup_inferior): Likewise.
5706 (x86_linux_child_post_startup_inferior): Likewise.
5707 (AMD64_LINUX_USER64_CS): Likewise.
5708 (AMD64_LINUX_X32_DS): Likewise.
5709 (x86_linux_read_description): Likewise.
5710 (x86_linux_enable_btrace): Likewise.
5711 (x86_linux_disable_btrace): Likewise.
5712 (x86_linux_teardown_btrace): Likewise.
5713 (x86_linux_read_btrace): Likewise.
5714 (x86_linux_create_target): Likewise.
5715 (x86_linux_add_target): Likewise.
5716
1aa7e42c
GB
57172014-07-11 Gary Benson <gbenson@redhat.com>
5718
5719 * amd64-linux-nat.c: Comment and whitespace changes.
5720 * i386-linux-nat.c: Comment and whitespace changes.
5721
c1e246a0
GB
57222014-07-11 Gary Benson <gbenson@redhat.com>
5723
5724 * amd64-linux-nat.c (x86_linux_create_target): New function.
5725 (x86_linux_add_target): Likewise.
5726 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5727 * i386-linux-nat.c (x86_linux_create_target): New function.
5728 (x86_linux_add_target): Likewise.
5729 (_initialize_i386_linux_nat): Delegate to the above new functions.
5730
8c420b8d
GB
57312014-07-11 Gary Benson <gbenson@redhat.com>
5732
5733 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5734 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5735 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5736 (ps_get_thread_area): Delegate to the above.
5737
cb1da100
GB
57382014-07-11 Gary Benson <gbenson@redhat.com>
5739
5740 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5741 x86_linux_read_description. All uses updated. amd64-specific
5742 code conditionalized. Conditionalized i386-specific code added.
5743 Redundant cast removed.
5744 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5745 x86_linux_read_description. All uses updated. i386-specific
5746 code conditionalized. Conditionalized amd64-specific code added.
5747 One sizeof replaced with the actual type it is describing.
5748
2acf3cd0
GB
57492014-07-11 Gary Benson <gbenson@redhat.com>
5750
5751 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5752 x86_linux_dr_get. All uses updated.
5753 (amd64_linux_dr_set): Renamed to
5754 x86_linux_dr_set. All uses updated.
5755 (amd64_linux_dr_get_addr): Renamed to
5756 x86_linux_dr_get_addr. All uses updated.
5757 (amd64_linux_dr_get_control): Renamed to
5758 x86_linux_dr_get_control. All uses updated.
5759 (amd64_linux_dr_get_status): Renamed to
5760 x86_linux_dr_get_status. All uses updated.
5761 (amd64_linux_dr_set_control): Renamed to
5762 x86_linux_dr_set_control. All uses updated.
5763 (amd64_linux_dr_set_addr): Renamed to
5764 x86_linux_dr_set_addr. All uses updated.
5765 (amd64_linux_prepare_to_resume): Renamed to
5766 x86_linux_prepare_to_resume. All uses updated.
5767 (amd64_linux_new_thread): Renamed to
5768 x86_linux_new_thread. All uses updated.
5769 (amd64_linux_new_fork): Renamed to
5770 x86_linux_new_fork. All uses updated.
5771 (amd64_linux_child_post_startup_inferior): Renamed to
5772 x86_linux_child_post_startup_inferior. All uses updated.
5773 (amd64_linux_enable_btrace): Renamed to
5774 x86_linux_enable_btrace. All uses updated.
5775 (amd64_linux_disable_btrace): Renamed to
5776 x86_linux_disable_btrace. All uses updated.
5777 (amd64_linux_teardown_btrace): Renamed to
5778 x86_linux_teardown_btrace. All uses updated.
5779 (amd64_linux_read_btrace): Renamed to
5780 x86_linux_read_btrace. All uses updated.
5781 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5782 x86_linux_dr_get. All uses updated.
5783 (i386_linux_dr_set): Renamed to
5784 x86_linux_dr_set. All uses updated.
5785 (i386_linux_dr_get_addr): Renamed to
5786 x86_linux_dr_get_addr. All uses updated.
5787 (i386_linux_dr_get_control): Renamed to
5788 x86_linux_dr_get_control. All uses updated.
5789 (i386_linux_dr_get_status): Renamed to
5790 x86_linux_dr_get_status. All uses updated.
5791 (i386_linux_dr_set_control): Renamed to
5792 x86_linux_dr_set_control. All uses updated.
5793 (i386_linux_dr_set_addr): Renamed to
5794 x86_linux_dr_set_addr. All uses updated.
5795 (i386_linux_prepare_to_resume): Renamed to
5796 x86_linux_prepare_to_resume. All uses updated.
5797 (i386_linux_new_thread): Renamed to
5798 x86_linux_new_thread. All uses updated.
5799 (i386_linux_new_fork): Renamed to
5800 x86_linux_new_fork. All uses updated.
5801 (i386_linux_child_post_startup_inferior): Renamed to
5802 x86_linux_child_post_startup_inferior. All uses updated.
5803 (i386_linux_enable_btrace): Renamed to
5804 x86_linux_enable_btrace. All uses updated.
5805 (i386_linux_disable_btrace): Renamed to
5806 x86_linux_disable_btrace. All uses updated.
5807 (i386_linux_teardown_btrace): Renamed to
5808 x86_linux_teardown_btrace. All uses updated.
5809 (i386_linux_read_btrace): Renamed to
5810 x86_linux_read_btrace. All uses updated.
5811
b9c1d481
AS
58122014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5813
5814 * remote.c (extended_remote_post_attach): New function.
5815 (init_extended_remote_ops): Install it as to_post_attach method.
5816
7180e04a
PA
58172014-07-09 Pedro Alves <palves@redhat.com>
5818
5819 * infcmd.c (attach_command_post_wait): Don't call
5820 target_terminal_inferior here.
5821 (attach_command): Call it here instead.
5822
9a9a7608
AB
58232014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5826 field.
5827 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5828 from varobj.c, with additional checks.
5829 (c_varobj_ops): Fill in is_path_expr_parent field.
5830 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5831 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5832 field.
5833 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5834 ops method.
5835 (varobj_default_is_path_expr_parent): New function.
5836 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5837 (varobj_default_is_path_expr_parent): Declare new function.
5838
1f267ae3
MM
58392014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5840
5841 * infcmd.c (finish_backward): Turn internal error into normal error.
5842
b2ee242b
PA
58432014-07-07 Pedro Alves <palves@redhat.com>
5844
8a869bca 5845 PR gdb/17096
b2ee242b
PA
5846 * remote.c (async_handle_remote_sigint)
5847 (async_handle_remote_sigint_twice): Call
5848 gdb_call_async_signal_handler instead of
5849 mark_async_signal_handler.
5850
38e229b2
TT
58512014-07-07 Tom Tromey <tromey@redhat.com>
5852
5853 * target-delegates.c: Rebuild.
5854 * target.c (target_info_record): Remove.
5855 * record.c (info_record_command): Unconditionally call
5856 to_info_record.
5857 * target.h (struct target_ops) <to_info_record>: Use
5858 TARGET_DEFAULT_IGNORE.
5859 (target_info_record): Remove.
5860
f0f9ff95
TT
58612014-07-07 Tom Tromey <tromey@redhat.com>
5862
5863 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5864 TARGET_DEFAULT_NORETURN.
5865 * target.c (generic_tls_error): New function.
5866 (target_translate_tls_address): Don't search target stack.
5867 * target-delegates.c: Rebuild.
5868 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5869 stack.
5870 * linux-thread-db.c (thread_db_get_thread_local_address):
5871 Unconditionally call beneath target.
5872
4a5be5ee
MK
58732014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5874
5875 * cli/cli-logging.c (pop_output_files): Assign targerr to
5876 gdb_stdtargerr.
5877
92c3b204
AB
58782014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * MAINTAINERS (Write After Approval): Update my email address.
5881
9b11e3a7
GB
58822014-07-02 Gary Benson <gbenson@redhat.com>
5883
5884 * proc-service.c (ps_xfer_memory): Update comment.
5885 (ps_pstop): Remove unused function.
5886 (ps_pcontinue): Likewise.
5887 (ps_lstop): Likewise.
5888 (ps_lcontinue): Likewise.
5889 (ps_lgetxregsize): Likewise.
5890 (ps_lgetxregs): Likewise.
5891 (ps_lsetxregs): Likewise.
5892 (ps_plog): Likewise.
5893 (ps_ptread): Likewise.
5894 (ps_ptwrite): Likewise.
5895
cf363f18
MW
58962014-07-01 Mark Wielaard <mjw@redhat.com>
5897
5898 * dwarf2read.c (add_array_cv_type): New function.
5899 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5900 (read_tag_volatile_type): Likewise.
5901
82ae6c8d
TT
59022014-07-01 Tom Tromey <tromey@redhat.com>
5903
5904 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5905 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5906 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5907 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5908 * command.h (cmd_cfunc_ftype): Move earlier.
5909 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5910 (add_com, add_info): Use cmd_cfunc_ftype.
5911
96142726
TT
59122014-06-30 Tom Tromey <tromey@redhat.com>
5913
5914 * symtab.c (operator_chars): Make parameters and return type
5915 const.
5916 (file_matches): Make "files" const.
5917 (struct search_symbols_data) <files>: Now const.
5918 (search_symbols): Make "regexp" and "files" parameters const.
5919 Update.
5920 (symtab_symbol_info): Remove cast.
5921 (rbreak_command): Update.
5922 * symtab.h (search_symbols): Update.
5923
b67a2c6f
YQ
59242014-06-27 Yao Qi <yao@codesourcery.com>
5925
5926 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5927 Change parameter type to 'struct thread_info *'. Caller
5928 updated.
5929 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5930 Update declaration.
5931 * dummy-frame.c (struct dummy_frame_id): New.
5932 (dummy_frame_id_eq): New function.
5933 (struct dummy_frame) <id>: Change its type to 'struct
5934 dummy_frame_id'.
5935 (dummy_frame_push): Add parameter ptid and save it in
5936 dummy_frame_id.
5937 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5938 inferior_ptid.
5939 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5940 to inferior_ptid.
5941 (lookup_dummy_frame): Change parameter type to 'struct
5942 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5943 instead of frame_id_eq.
5944 (dummy_frame_pop): Add parameter ptid. Callers updated.
5945 Update comments. Compose dummy_frame_id and pass it to
5946 lookup_dummy_frame.
5947 (dummy_frame_discard): Add parameter ptid.
5948 (dummy_frame_sniffer): Compose dummy_frame_id and call
5949 dummy_frame_id_eq instead of frame_id_eq.
5950 (fprint_dummy_frames): Print ptid.
5951 * dummy-frame.h: Remove comments.
5952 (dummy_frame_push): Add ptid in declaration.
5953 (dummy_frame_pop, dummy_frame_discard): Likewise.
5954
5b10184c
TT
59552014-06-26 Tom Tromey <tromey@redhat.com>
5956
5957 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5958 * command.h (error_no_arg): Update.
5959
06900326
TT
59602014-06-26 Tom Tromey <tromey@redhat.com>
5961
5962 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5963 (do_show_command): Make "arg" const.
5964 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5965
c2bcbb1d
TT
59662014-06-26 Tom Tromey <tromey@redhat.com>
5967
5968 * record-full.c (record_full_get_bookmark): Make "args" const.
5969 (record_full_goto_bookmark): Make "raw_bookmark" const.
5970 * record.c (record_goto): New function.
5971 (cmd_record_goto): Use it. Now static.
5972 * record.h (record_goto): Declare.
5973 (cmd_record_goto): Remove declaration.
5974 * target-delegates.c: Rebuild.
5975 * target.h (struct target_ops) <to_get_bookmark,
5976 to_goto_bookmark>: Make parameter const.
5977
9cbe5fff
TT
59782014-06-26 Tom Tromey <tromey@redhat.com>
5979
5980 * defs.h (generic_load): Update.
5981 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5982 * monitor.c (monitor_load): Make "args" const.
5983 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5984 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5985 const.
5986 (mips_load): Make "file" const.
5987 * remote-sim.c (gdbsim_load): Make "args" const.
5988 * remote.c (remote_load): Make "name" const.
5989 * symfile.c (generic_load): Make "args" const.
5990 * target-delegates.c: Rebuild.
5991 * target.c (target_load): Make "arg" const.
5992 (debug_to_load): Make "args" const.
5993 * target.h (struct target_ops) <to_load>: Make parameter const.
5994 (target_load): Update.
5995
34a68019
TT
59962014-06-26 Tom Tromey <tromey@redhat.com>
5997
5998 PR symtab/16902:
5999 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6000 (dwarf2_physname, read_partial_die)
6001 (guess_partial_die_structure_name, fixup_partial_die)
6002 (guess_full_die_structure_name, anonymous_struct_prefix)
6003 (dwarf2_name): Use per-BFD obstack.
6004
efc889c1
YQ
60052014-06-26 Yao Qi <yao@codesourcery.com>
6006
6007 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6008 dummyframe and this_id into inner block below.
6009
4395285e
YQ
60102014-06-26 Yao Qi <yao@codesourcery.com>
6011
6012 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6013 with "signal_pass[0]" in the initialization of signal_pass.
6014
aef92902
MM
60152014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * record-btrace.c (record_btrace_generating_corefile)
6018 (record_btrace_prepare_to_generate_core)
6019 (record_btrace_done_generating_core): New.
6020 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6021 (record_btrace_store_registers, record_btrace_prepare_to_store):
6022 Forward request when generating a core file.
6023 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6024 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6025 to_done_generating_core.
6026
5fff78c4
MM
60272014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6028
6029 * target.h (target_ops) <to_prepare_to_generate_core>
6030 <to_done_generating_core>: New.
6031 (target_prepare_to_generate_core, target_done_generating_core): New.
6032 * target.c (target_prepare_to_generate_core)
6033 (target_done_generating_core): New.
6034 * target-delegates.c: Regenerate.
6035 * gcore.c: (write_gcore_file): Rename to ...
6036 (write_gcore_file_1): ...this.
6037 (write_gcore_file): Call target_prepare_to_generate_core
6038 and target_done_generating_core.
6039
1d1f1ccb
MM
60402014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6041
6042 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6043 * gcore.c (write_gcore_file): Free memory returned from
6044 make_corefile_notes.
6045 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6046 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6047
3343ef86
YQ
60482014-06-24 Yao Qi <yao@codesourcery.com>
6049
6050 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6051 (arm_linux_init_abi): Set skip_trampoline_code with
6052 gdbarch_skip_trampoline_code instead of
6053 find_solib_trampoline_target.
6054
18d18ac8
YQ
60552014-06-24 Yao Qi <yao@codesourcery.com>
6056
6057 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6058 arm_skip_bx_reg returns non-zero.
6059
80d8d390
YQ
60602014-06-24 Yao Qi <yao@codesourcery.com>
6061
6062 * arm-tdep.c (arm_skip_bx_reg): New function.
6063 (arm_skip_stub): Call arm_skip_bx_reg.
6064
6a18a01c
DB
60652014-06-23 Don Breazeal <donb@codesourcery.com>
6066
6067 * MAINTAINERS: Add myself as write-after-approval maintainer.
6068
8e9db26e
PA
60692014-06-23 Pedro Alves <palves@redhat.com>
6070
6071 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6072 DR_CONTROL before setting DR0..DR3.
6073 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6074 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6075 bits of DR_CONTROL related to the debug register slot being
6076 disabled. If all slots are vacant, clear local slowdown as well,
6077 and assert DR_CONTROL is 0.
6078
70afc5b7
SC
60792014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6080
6081 * python/lib/gdb/command/xmethods.py
6082 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6083 current progspace only if the string "progspace" matches LOCUS_RE.
6084
840ed64d
JK
60852014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6086
6087 Fix --with-system-readline with readline-6.3 patch 5.
6088 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6089 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6090 types.
6091
26f2dc30
TT
60922014-06-20 Tom Tromey <tromey@redhat.com>
6093
6094 * dwarf2read.c (dw2_get_real_path): Use correct type in
6095 OBSTACK_CALLOC.
6096 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6097
125f8a3d
GB
60982014-06-20 Gary Benson <gbenson@redhat.com>
6099
6100 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6101 * common/glibc_thread_db.h: Likewise.
6102 * common/i386-cpuid.h: Likewise.
6103 * common/i386-gcc-cpuid.h: Likewise.
6104 * common/linux-btrace.h: Likewise.
6105 * common/linux-osdata.h: Likewise.
6106 * common/linux-procfs.h: Likewise.
6107 * common/linux-ptrace.h: Likewise.
6108 * common/mips-linux-watch.h: Likewise.
6109 * common/linux-btrace.c: Moved to nat.
6110 * common/linux-osdata.c: Likewise.
6111 * common/linux-procfs.c: Likewise.
6112 * common/linux-ptrace.c: Likewise.
6113 * common/mips-linux-watch.c: Likewise.
6114 * nat/gdb_thread_db.h: Moved from common.
6115 * nat/glibc_thread_db.h: Likewise.
6116 * nat/i386-cpuid.h: Likewise.
6117 * nat/i386-gcc-cpuid.h: Likewise.
6118 * nat/linux-btrace.c: Likewise.
6119 * nat/linux-btrace.h: Likewise.
6120 * nat/linux-osdata.c: Likewise.
6121 * nat/linux-osdata.h: Likewise.
6122 * nat/linux-procfs.c: Likewise.
6123 * nat/linux-procfs.h: Likewise.
6124 * nat/linux-ptrace.c: Likewise.
6125 * nat/linux-ptrace.h: Likewise.
6126 * nat/mips-linux-watch.c: Likewise.
6127 * nat/mips-linux-watch.h: Likewise.
6128 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6129 (object file files): Reordered.
6130 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6131 of glibc_thread_db.h.
6132
42995dbd
GB
61332014-06-20 Gary Benson <gbenson@redhat.com>
6134
6135 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6136 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6137 (i386_dr_low): Likewise.
6138 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6139 (i386_dr_low_set_addr): Likewise.
6140 (i386_dr_low_get_addr): Likewise.
6141 (i386_dr_low_can_set_control): Likewise.
6142 (i386_dr_low_set_control): Likewise.
6143 (i386_dr_low_get_control): Likewise.
6144 (i386_dr_low_get_status): Likewise.
6145 (i386_get_debug_register_length): Likewise.
6146 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6147 (i386_dr_low): Likewise.
6148 * nat/i386-dregs.c (i386-low.h): Remove include.
6149 (i386-nat.h): Likewise.
6150 (nat/i386-dregs.h): New include.
6151 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6152 (i386_dr_low_set_addr): Likewise.
6153 (i386_dr_low_get_addr): Likewise.
6154 (i386_dr_low_can_set_control): Likewise.
6155 (i386_dr_low_set_control): Likewise.
6156 (i386_dr_low_get_control): Likewise.
6157 (i386_dr_low_get_status): Likewise.
6158 (i386_get_debug_register_length): Likewise.
6159 (debug_hw_points): Likewise.
6160
3ed9baed
IB
61612014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6162
6163 * Makefile.in (SFILES): Add d-exp.y.
6164 (YYFILES): Add d-exp.c.
6165 (YYOBJ): Add d-exp.o.
6166 (local-maintainer-clean): Delete d-exp.c.
6167 * d-exp.y: New file.
6168 * d-lang.h (d_parse): New declaration.
6169 (d_error): New declaration.
6170 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6171 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6172 PREC_ORDER operators.
6173 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6174
78c164b0
YQ
61752014-06-19 Yao Qi <yao@codesourcery.com>
6176
6177 * gdbthread.h (any_running): Remove the declaration.
6178 * thread.c (any_running): Remove.
6179
f6e29b6e
YQ
61802014-06-19 Yao Qi <yao@codesourcery.com>
6181
6182 * gdbthread.h (struct thread_info) <state>: Change its type to
6183 'enum thread_state'. Update comments.
6184
034f788c
PA
61852014-06-19 Pedro Alves <palves@redhat.com>
6186
6187 * gdbthread.h (ALL_THREADS): Delete.
6188 (ALL_NON_EXITED_THREADS): New macro.
6189 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6190 instead of ALL_THREADS.
6191 * infrun.c (find_thread_needs_step_over)
6192 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6193 instead of ALL_THREADS.
6194 * record-btrace.c (record_btrace_open)
6195 (record_btrace_stop_recording, record_btrace_close)
6196 (record_btrace_is_replaying, record_btrace_resume)
6197 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6198 * remote.c (append_pending_thread_resumptions): Likewise.
6199 * thread.c (thread_apply_all_command): Likewise.
6200
46e33252
GB
62012014-06-19 Gary Benson <gbenson@redhat.com>
6202
6203 * i386-nat.c (i386_stopped_by_watchpoint):
6204 Use i386_dr_stopped_by_watchpoint.
6205 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6206 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6207
3a8ee006
GB
62082014-06-19 Gary Benson <gbenson@redhat.com>
6209
6210 * nat/i386-dregs.c: New file.
6211 * Makefile.in (i386-dregs.o): New rule.
6212 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6213 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6214 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6215 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6216 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6217 * config/i386/go32.mh (NATDEPFILES): Likewise.
6218 * config/i386/linux.mh (NATDEPFILES): Likewise.
6219 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6220 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6221 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6222 * i386-nat.h (debug_hw_points): New declaration.
6223 * i386-nat.c (breakpoint.h): Remove include.
6224 (command.h): Likewise.
6225 (target.h): Likewise.
6226 (gdb_assert.h): Likewise.
6227 (debug_hw_points): Made nonstatic.
6228 (debug_printf): Now in i386-dregs.c.
6229 (TARGET_HAS_DR_LEN_8): Likewise.
6230 (DR_CONTROL_SHIFT): Likewise.
6231 (DR_CONTROL_SIZE): Likewise.
6232 (DR_RW_EXECUTE): Likewise.
6233 (DR_RW_WRITE): Likewise.
6234 (DR_RW_READ): Likewise.
6235 (DR_RW_IORW): Likewise.
6236 (DR_LEN_1): Likewise.
6237 (DR_LEN_2): Likewise.
6238 (DR_LEN_4): Likewise.
6239 (DR_LEN_8): Likewise.
6240 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6241 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6242 (DR_ENABLE_SIZE): Likewise.
6243 (DR_LOCAL_SLOWDOWN): Likewise.
6244 (DR_GLOBAL_SLOWDOWN): Likewise.
6245 (DR_CONTROL_RESERVED): Likewise.
6246 (I386_DR_CONTROL_MASK): Likewise.
6247 (I386_DR_VACANT): Likewise.
6248 (I386_DR_LOCAL_ENABLE): Likewise.
6249 (I386_DR_GLOBAL_ENABLE): Likewise.
6250 (I386_DR_DISABLE): Likewise.
6251 (I386_DR_SET_RW_LEN): Likewise.
6252 (I386_DR_GET_RW_LEN): Likewise.
6253 (I386_DR_WATCH_HIT): Likewise.
6254 (i386_wp_op_t): Likewise.
6255 (i386_show_dr): Likewise.
6256 (i386_length_and_rw_bits): Likewise.
6257 (i386_insert_aligned_watchpoint): Likewise.
6258 (i386_remove_aligned_watchpoint): Likewise.
6259 (i386_handle_nonaligned_watchpoint): Likewise.
6260 (i386_update_inferior_debug_regs): Likewise.
6261 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6262 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6263 (i386_region_ok_for_watchpoint):
6264 Use i386_dr_region_ok_for_watchpoint.
6265 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6266
322a8e06
GB
62672014-06-19 Gary Benson <gbenson@redhat.com>
6268
6269 * i386-nat.c (i386_insert_hw_breakpoint): Use
6270 i386_insert_watchpoint.
6271 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6272
8f26655c
GB
62732014-06-19 Gary Benson <gbenson@redhat.com>
6274
6275 * i386-nat.c (i386_dr_show): Renamed to
6276 i386_show_dr and made static. All uses updated.
6277 (i386_dr_length_and_rw_bits): Renamed to
6278 i386_length_and_rw_bits and made static.
6279 All uses updated.
6280 (i386_dr_insert_aligned_watchpoint): Renamed to
6281 i386_insert_aligned_watchpoint and made static.
6282 All uses updated.
6283 (i386_dr_remove_aligned_watchpoint): Renamed to
6284 i386_remove_aligned_watchpoint and made static.
6285 All uses updated.
6286 (i386_dr_update_inferior_debug_regs): Renamed to
6287 i386_update_inferior_debug_regs and made static.
6288 All uses updated.
6289 * nat/i386-dregs.h (i386_dr_show): Removed.
6290 (i386_dr_length_and_rw_bits): Likewise.
6291 (i386_dr_insert_aligned_watchpoint): Likewise.
6292 (i386_dr_remove_aligned_watchpoint): Likewise.
6293 (i386_dr_update_inferior_debug_regs): Likewise.
6294
992c7d70
GB
62952014-06-19 Gary Benson <gbenson@redhat.com>
6296
6297 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6298 * configure: Regenerate.
6299 * config.in: Likewise.
6300 * main.c (signal.h): New include.
6301 (setup_alternate_signal_stack): New function.
6302 (captured_main): Call the above.
6303 * cp-support.c (signal.h): New include.
6304 (catch_demangler_crashes): New flag.
6305 (SIGJMP_BUF): New define.
6306 (SIGSETJMP): Likewise.
6307 (SIGLONGJMP): Likewise.
6308 (gdb_demangle_jmp_buf): New static global.
6309 (gdb_demangle_attempt_core_dump): Likewise.
6310 (gdb_demangle_signal_handler): New function.
6311 (gdb_demangle): If catch_demangler_crashes is set, install the
6312 above signal handler before calling bfd_demangle, and restore
6313 the original signal handler afterwards. Display the offending
6314 symbol and call demangler_warning the first time a segmentation
6315 fault is caught.
6316 (_initialize_cp_support): New maint set/show command.
6317
eae7090b
GB
63182014-06-19 Gary Benson <gbenson@redhat.com>
6319
6320 * utils.h (resource_limit_kind): New enum.
6321 (can_dump_core): New declaration.
6322 (warn_cant_dump_core): Likewise.
6323 (dump_core): Likewise.
6324 * utils.c (dump_core): Made nonstatic. Added new
6325 parameter "limit_kind".
6326 (can_dump_core): Made nonstatic. Moved printing code to...
6327 (warn_cant_dump_core): New function.
6328 (can_dump_core_warn): Likewise.
6329 (internal_vproblem): Replace calls to can_dump_core with
6330 calls to can_dump_core_warn. Supply new argument to each.
6331
57fcfb1b
GB
63322014-06-19 Gary Benson <gbenson@redhat.com>
6333
6334 * utils.h (demangler_vwarning): New declaration.
6335 (demangler_warning): Likewise.
6336 * utils.c (struct internal_problem)
6337 <user_settable_should_quit>: New field.
6338 <user_settable_should_dump_core>: Likewise
6339 (internal_error_problem): Add values for above new fields.
6340 (internal_warning_problem): Likewise.
6341 (demangler_warning_problem): New static global.
6342 (demangler_vwarning): New function.
6343 (demangler_warning): Likewise.
6344 (add_internal_problem_command): Selectively add commands.
6345 (_initialize_utils): New internal problem command.
6346 * maint.c (maintenance_demangler_warning): New function.
6347 (_initialize_maint_cmds): New command.
6348
17a40b44
TT
63492014-06-18 Tom Tromey <tromey@redhat.com>
6350
6351 * f-valprint.c (info_common_command_for_block): Update.
6352 * symtab.h (struct general_symbol_info) <common_block>: Now
6353 const.
6354
346d1dfe
TT
63552014-06-18 Tom Tromey <tromey@redhat.com>
6356
6357 * symtab.h (struct symtab) <blockvector>: Now const.
6358 * ada-lang.c (ada_add_global_exceptions): Update.
6359 * buildsym.c (augment_type_symtab): Update.
6360 * dwarf2read.c (dw2_lookup_symbol): Update.
6361 * jit.c (finalize_symtab): Update.
6362 * jv-lang.c (add_class_symtab_symbol): Update.
6363 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6364 Update.
6365 * objfiles.c (objfile_relocate1): Update.
6366 * psymtab.c (lookup_symbol_aux_psymtabs)
6367 (maintenance_check_psymtabs): Update.
6368 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6369 Update.
6370 * spu-tdep.c (spu_catch_start): Update.
6371 * symmisc.c (dump_symtab_1): Update.
6372 * symtab.c (lookup_global_symbol_from_objfile)
6373 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6374 (basic_lookup_transparent_type_quick)
6375 (basic_lookup_transparent_type, find_pc_sect_symtab)
6376 (find_pc_sect_line, search_symbols): Update.
6377 * block.c (find_block_in_blockvector): Make "bl" const.
6378 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6379 const.
6380 (blockvector_contains_pc): Make "bv" const.
6381 (block_for_pc_sect): Update.
6382 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6383 (blockvector_contains_pc): Update.
6384 * breakpoint.c (resolve_sal_pc): Update.
6385 * inline-frame.c (block_starting_point_at): Update.
6386
1834676b
TT
63872014-06-18 Tom Tromey <tromey@redhat.com>
6388
6389 * completer.c (complete_line): Make "line_buffer" const.
6390 * completer.h (complete_line): Update.
6391
ac1a991b
TT
63922014-06-18 Tom Tromey <tromey@redhat.com>
6393
6394 * symtab.c (add_macro_name): Remove unneeded cast.
6395
5bc98e52
TT
63962014-06-18 Tom Tromey <tromey@redhat.com>
6397
6398 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6399 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6400
8236def8
TT
64012014-06-18 Tom Tromey <tromey@redhat.com>
6402
6403 * probe.c (info_probes_for_ops): Make "arg" const.
6404 * probe.h (info_probes_for_ops): Update.
6405
3977b71f
TT
64062014-06-18 Tom Tromey <tromey@redhat.com>
6407
6408 * varobj.c (varobj_create): Update.
6409 * valops.c (value_of_this): Update.
6410 * tracepoint.c (add_local_symbols, scope_info): Update.
6411 * symtab.h (struct general_symbol_info) <block>: Now const.
6412 * symtab.c (skip_prologue_sal)
6413 (default_make_symbol_completion_list_break_on)
6414 (skip_prologue_using_sal): Update.
6415 * stack.h (iterate_over_block_locals)
6416 (iterate_over_block_local_vars): Update.
6417 * stack.c (print_frame_args): Update.
6418 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6419 parameter const.
6420 (get_selected_block): Make return type const.
6421 * python/py-frame.c (frapy_block): Update.
6422 * python/py-block.c (gdbpy_block_for_pc): Update.
6423 * p-exp.y (%union) <bval>: Now const.
6424 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6425 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6426 * m2-exp.y (%union) <bval>: Now const.
6427 * linespec.c (get_current_search_block): Make return type const.
6428 (create_sals_line_offset, find_label_symbols): Update.
6429 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6430 Update.
6431 (block_starting_point_at): Make "block" const.
6432 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6433 (check_exception_resume): Update.
6434 * guile/scm-frame.c (gdbscm_frame_block): Update.
6435 * guile/scm-block.c (gdbscm_lookup_block): Update.
6436 * frame.h (get_frame_block): Update.
6437 (get_selected_block): Make return type const.
6438 * frame.c (frame_id_inner): Update.
6439 * f-valprint.c (info_common_command_for_block)
6440 (info_common_command): Update.
6441 * dwarf2loc.c (dwarf2_find_location_expression)
6442 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6443 (locexpr_describe_location_piece): Update.
6444 * c-exp.y (%union) <bval>: Now const.
6445 * breakpoint.c (resolve_sal_pc): Update.
6446 * blockframe.c (get_frame_block):Make return type const.
6447 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6448 (block_innermost_frame): Update.
6449 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6450 (block_for_pc, block_for_pc_sect): Update.
6451 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6452 'pblock' const.
6453 (block_for_pc_sect, block_for_pc): Make return type const.
6454 * ax-gdb.c (gen_expr): Update.
6455 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6456 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6457 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6458 (ada_read_var_value): Update.
6459 * ada-exp.y (struct name_info) <block>: Now const.
6460 (%union): Likewise.
6461 (block_lookup): Constify.
6462
b9228891
GB
64632014-06-18 Gary Benson <gbenson@redhat.com>
6464
6465 * nat/i386-dregs.h: New file.
6466 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6467 * i386-nat.h (i386-dregs.h): New include.
6468 (DR_FIRSTADDR): Now in i386-dregs.h.
6469 (DR_LASTADDR): Likewise.
6470 (DR_NADDR): Likewise.
6471 (DR_STATUS): Likewise.
6472 (DR_CONTROL): Likewise.
6473 (i386_debug_reg_state): Likewise.
6474 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6475
a1aa2221
LM
64762014-06-18 Don Breazeal <donb@codesourcery.com>
6477
6478 * breakpoint.c (set_longjmp_breakpoint): Call
6479 momentary_breakpoint_from_master with additional argument.
6480 (set_longjmp_breakpoint_for_call_dummy): Call
6481 momentary_breakpoint_from_master with additional argument.
6482 (set_std_terminate_breakpoint): Call
6483 momentary_breakpoint_from_master with additional argument.
6484 (momentary_breakpoint_from_master): Add argument to function
6485 definition and use it to initialize structure member flag.
74228e77 6486 (clone_momentary_breakpoint): Call
a1aa2221
LM
6487 momentary_breakpoint_from_master with additional argument.
6488 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6489 member flags set in momentary_breakpoint_from_master.
6490
4be83cc2
GB
64912014-06-18 Gary Benson <gbenson@redhat.com>
6492
6493 * i386-nat.c (i386_show_dr): Renamed to
6494 i386_dr_show and made nonstatic. All uses updated.
6495 (i386_length_and_rw_bits): Renamed to
6496 i386_dr_length_and_rw_bits and made nonstatic.
6497 All uses updated.
6498 (i386_insert_aligned_watchpoint): Renamed to
6499 i386_dr_insert_aligned_watchpoint and made nonstatic.
6500 All uses updated.
6501 (i386_remove_aligned_watchpoint): Renamed to
6502 i386_dr_remove_aligned_watchpoint and made nonstatic.
6503 All uses updated.
6504 (i386_update_inferior_debug_regs): Renamed to
6505 i386_dr_update_inferior_debug_regs and made nonstatic.
6506 All uses updated.
6507
131aa0d4
GB
65082014-06-18 Gary Benson <gbenson@redhat.com>
6509
6510 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6511 (i386_dr_low_can_set_control): Likewise.
6512 (i386_dr_low_set_addr): Likewise.
6513 (i386_dr_low_set_control): Likewise.
6514 (i386_dr_low_get_addr): Likewise.
6515 (i386_dr_low_get_status): Likewise.
6516 (i386_dr_low_get_control): Likewise.
6517 (i386_insert_aligned_watchpoint): Use new macros.
6518 (i386_update_inferior_debug_regs): Likewise.
6519 (i386_stopped_data_address): Likewise.
6520
d9305f7f
GB
65212014-06-18 Gary Benson <gbenson@redhat.com>
6522
6523 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6524 New parameter. All uses updated.
6525
ea008da4
GB
65262014-06-18 Gary Benson <gbenson@redhat.com>
6527
6528 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6529 All uses updated.
6530
1b6d4134
GB
65312014-06-18 Gary Benson <gbenson@redhat.com>
6532
6533 * i386-nat.c (debug_printf): New macro.
6534 (i386_get_debug_register_length): Likewise.
6535 (TARGET_HAS_DR_LEN_8): Use above macro.
6536 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6537 and printf_unfiltered. Use phex to format values.
6538
9b4550ef
GB
65392014-06-18 Gary Benson <gbenson@redhat.com>
6540
6541 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6542 Make const.
6543
6e62758f
GB
65442014-06-18 Gary Benson <gbenson@redhat.com>
6545
6546 * i386-nat.c: Comment changes.
6547
51c79e94
GB
65482014-06-18 Gary Benson <gbenson@redhat.com>
6549
6550 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6551
3e11889a
GB
65522014-06-18 Gary Benson <gbenson@redhat.com>
6553
6554 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6555 (i386_insert_aligned_watchpoint): Likewise.
6556 (i386_remove_aligned_watchpoint): Likewise.
6557 (i386_handle_nonaligned_watchpoint): Likewise.
6558
fc6e2f03
GB
65592014-06-18 Gary Benson <gbenson@redhat.com>
6560
6561 * i386-nat.c: Whitespace changes.
6562
2afe7d50
SB
65632014-06-17 Samuel Bronson <naesten@gmail.com>
6564
6565 * MAINTAINERS: Update Roland McGrath's email address.
6566 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6567 Red Hat a while ago, and giving me a current address.
2afe7d50 6568
3bca49ee
TT
65692014-06-17 Tom Tromey <tromey@redhat.com>
6570
6571 * utils.h (savestring): Remove declaration.
6572
6e366df1
TT
65732014-06-17 Tom Tromey <tromey@redhat.com>
6574
6575 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6576
6be47f0c
KS
65772014-06-16 Keith Seitz <keiths@redhat.com>
6578
6579 PR mi/15863
6580 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6581 to update the varobj if inferior_ptid is null_ptid.
6582
7bc112c1
TT
65832014-06-16 Tom Tromey <tromey@redhat.com>
6584
6585 * target.h (struct target_ops) <to_info_proc>: Make parameter
6586 const.
6587 (target_info_proc): Update.
6588 * target.c (target_info_proc): Make "args" const.
6589 * procfs.c (procfs_info_proc): Update.
6590 * linux-tdep.c (linux_info_proc): Update.
6591 (linux_core_info_proc_mappings): Make "args" const.
6592 (linux_core_info_proc): Update.
6593 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6594 * gdbarch.c: Rebuild.
6595 * gdbarch.h: Rebuild.
6596 * corelow.c (core_info_proc): Update.
6597
fee354ee
TT
65982014-06-16 Tom Tromey <tromey@redhat.com>
6599
6600 * target.h (struct target_ops) <to_disconnect>: Make parameter
6601 const.
6602 (target_disconnect): Update.
6603 * target.c (target_disconnect): Make "args" const.
6604 * target-delegates.c: Rebuild.
6605 * remote.c (remote_disconnect): Update.
6606 * record.h (record_disconnect): Update.
6607 * record.c (record_disconnect): Update.
6608 * inf-child.c (inf_child_disconnect): Update.
6609
a30bf1f1
TT
66102014-06-16 Tom Tromey <tromey@redhat.com>
6611
6612 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6613 * target.c (debug_to_rcmd, default_rcmd): Update.
6614 * target-delegates.c: Rebuild.
6615 * remote.c (remote_rcmd): Update.
6616 * monitor.c (monitor_rcmd): Update.
6617
d03de421
PA
66182014-06-16 Pedro Alves <palves@redhat.com>
6619
6620 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6621 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6622 have OBJF_SHARED set.
6623 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6624 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6625 instead of OBJF_USERLOADED.
6626 * objfiles.h (OBJF_SHARED): Update comment.
6627 (userloaded_objfile_contains_address_p): Rename to ...
6628 (shared_objfile_contains_address_p): ... this, and update
6629 comments.
6630 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6631 new objfile.
6632 (remove_symbol_file_command): Skip objfiles that don't have
6633 OBJF_SHARED set.
6634
99f4262f
TT
66352014-06-16 Tom Tromey <tromey@redhat.com>
6636
6637 * minsyms.h (prim_record_minimal_symbol)
6638 (prim_record_minimal_symbol_and_info): Update comments.
6639
97d66cc6
EZ
66402014-06-14 Eli Zaretskii <eliz@gnu.org>
6641
6642 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6643 or --without-guile, according to how GDB was built.
6644
635c7e8a
TT
66452014-06-13 Tom Tromey <tromey@redhat.com>
6646
6647 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6648 to help_list.
6649 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6650 to help_list.
6651 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6652 help_list.
6653 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6654 help_list.Pass all_commands, not -1, to help_list.
6655 * cli/cli-dump.c (dump_command, append_command)
6656 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6657 (binary_dump_command, binary_append_command): Pass all_commands,
6658 not -1, to help_list.
6659 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6660 -1, to help_list.
6661 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6662 -1, to help_list.
6663 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6664 help_list.
6665 * top.c (set_history): Pass all_commands, not -1, to help_list.
6666 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6667 all_commands, not -1, to help_list.
6668 * symfile.c (overlay_command): Pass all_commands, not -1, to
6669 help_list.
6670 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6671 help_list.
6672 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6673 help_list.
6674 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6675 -1, to help_list.
6676 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6677 not -1, to help_list.
6678 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6679 not -1, to help_list.
6680 * maint.c (maintenance_command, maintenance_info_command)
6681 (maintenance_print_command, maintenance_set_cmd): Pass
6682 all_commands, not -1, to help_list.
6683 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6684 help_list.
6685 * language.c (set_check): Pass all_commands, not -1, to help_list.
6686 * infcmd.c (unset_command): Pass all_commands, not -1, to
6687 help_list.
6688 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6689 help_list.
6690 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6691 help_list.
6692 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6693 help_list.
6694 * breakpoint.c (save_command): Pass all_commands, not -1, to
6695 help_list.
6696 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6697 all_commands, not -1, to help_list.
6698
b94ade42
PL
66992014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6700
6701 * regcache.c (struct register_to_invalidate): New structure.
6702 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6703 functions.
6704 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6705
31f628ae
YQ
67062014-06-12 Yao Qi <yao@codesourcery.com>
6707
6708 * varobj.c (varobj_get_num_children): Call
6709 varobj_is_dynamic_p.
6710 (varobj_list_children): Likewise.
6711 (varobj_update): Likewise. Update comments.
6712
cde5ef40
YQ
67132014-06-12 Yao Qi <yao@codesourcery.com>
6714
6715 * varobj.c (varobj_pretty_printed_p): Rename to ...
6716 (varobj_is_dynamic_p): ... this. New function.
6717 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6718 (varobj_is_dynamic_p): Declare.
6719 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6720 (mi_print_value_p, varobj_update_one): Likewise.
6721
576ea091
YQ
67222014-06-12 Pedro Alves <pedro@codesourcery.com>
6723 Yao Qi <yao@codesourcery.com>
6724
6725 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6726 (varobj_get_iterator): Wrap up code for pretty-printer by
6727 "#if HAVE_PYTHON" and "#endif".
6728 (update_dynamic_varobj_children): Likewise.
6729
827f100c
YQ
67302014-06-12 Pedro Alves <pedro@codesourcery.com>
6731 Yao Qi <yao@codesourcery.com>
6732
6733 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6734 gdb_python_initialized is false. Move some code from varobj.c.
6735 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6736 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6737 (struct varobj_item): Moved to varobj-iter.h".
6738 (varobj_clear_saved_item): New function.
6739 (update_dynamic_varobj_children): Move python-related code to
6740 py-varobj.c.
6741 (free_variable): Call varobj_clear_saved_item and
6742 varobj_iter_delete.
6743
e5250216
YQ
67442014-06-12 Pedro Alves <pedro@codesourcery.com>
6745 Yao Qi <yao@codesourcery.com>
6746
6747 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6748 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6749 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6750 (py-varobj.o): New rule.
6751 * python/py-varobj.c: New file.
6752 * python/python-internal.h (py_varobj_get_iterator): Declare.
6753 * varobj-iter.h: New file.
6754 * varobj.c: Include "varobj-iter.h"
6755 (struct varobj) <child_iter>: Change its type from "PyObject *"
6756 to "struct varobj_iter *".
6757 <saved_item>: Likewise.
6758 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6759 [HAVE_PYTHON] (varobj_get_iterator): New function.
6760 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6761 python-specific code to python/py-varobj.c.
6762 (install_visualizer): Call varobj_iter_delete instead of
6763 Py_XDECREF.
6764 * varobj.h (varobj_ensure_python_env): Declare.
6765
5a2e0d6e
YQ
67662014-06-12 Yao Qi <yao@codesourcery.com>
6767
6768 * varobj.c (struct varobj_item): New structure.
6769 (create_child_with_value): Update declaration.
6770 (varobj_add_child): Replace arguments 'name' and 'value' with
6771 'item'. All callers updated.
6772 (install_dynamic_child): Likewise.
6773 (update_dynamic_varobj_children): Likewise.
6774 (varobj_add_child): Likewise.
6775 (create_child_with_value): Likewise.
6776
919b9a93
JB
67772014-06-11 Joel Brobecker <brobecker@adacore.com>
6778
6779 * NEWS: Create a new section for the next release branch.
6780 Rename the section of the current branch, now that it has
6781 been cut.
6782
71a55bdf
JB
67832014-06-11 Joel Brobecker <brobecker@adacore.com>
6784
6785 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6786 * version.in: Bump version to 7.8.50.DATE-cvs.
6787
364fe1f7
PA
67882014-06-11 Pedro Alves <palves@redhat.com>
6789
6790 PR remote/17028
6791 * ser-mingw.c (net_windows_socket_check_pending): New function.
6792 (net_windows_select_thread): Ignore spurious wakeups. Use
6793 net_windows_socket_check_pending.
6794 (net_windows_wait_handle): Check for pending events with
6795 ioctlsocket, through net_windows_socket_check_pending, instead of
6796 checking the socket's event.
6797
5a6c7709
SC
67982014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6799
6800 * python/python-internal.h (gdb_PyObject_GetAttrString)
6801 (gdb_PyObject_HasAttrString): New inline function definitions.
6802 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6803 char * of the second argument to PyObject_GetAttrString.
74228e77 6804
0e58ee40
JB
68052014-06-10 Joel Brobecker <brobecker@adacore.com>
6806
6807 * serial.c (serial_write): Fix index of character to be printed
6808 in call to serial_logchar when serial debug traces are enabled.
6809
d190df30
JB
68102014-06-10 Joel Brobecker <brobecker@adacore.com>
6811
6812 * gdbtypes (resolve_dynamic_range): Add function description.
6813
b4b01d36
PA
68142014-06-09 Pedro Alves <palves@redhat.com>
6815
6816 * linux-nat.c (linux_child_follow_fork): Initialize status with
6817 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6818 inner block. Only pass the signal to PTRACE_DETACH if in pass
6819 state.
6820
3657956b
GB
68212014-06-09 Gary Benson <gbenson@redhat.com>
6822
6823 * common/signals.c (gdb_signal_from_host): Reorder to separate
6824 the always-available ANSI-standard signals from the signals that
6825 require checking.
6826 (do_gdb_signal_to_host): Likewise.
6827 * proc-events.c (signal_table): Likewise.
6828
c077881a
HZ
68292014-06-08 Hui Zhu <hui@codesourcery.com>
6830
6831 * common/linux-ptrace.c (linux_disable_event_reporting): New
6832 function.
6833 * common/linux-ptrace.h (linux_disable_event_reporting): New
6834 declaration.
6835 * linux-nat.c (linux_child_follow_fork): Do a single step before
6836 detach.
6837
4186eb54
KS
68382014-06-07 Keith Seitz <keiths@redhat.com>
6839
6840 Revert:
6841 PR c++/16253
6842 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6843 from symbol_matches_domain in symtab.c. All local callers
6844 of symbol_matches_domain updated.
6845 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6846 search STRUCT_DOMAIN.
6847 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6848 independently. standard_lookup will do that automatically.
6849 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6850 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6851 (cp_lookup_symbol_in_namespace): Likewise.
6852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6853 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6854 may return a STRUCT_DOMAIN match.
6855 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6856 * cp-support.c: Include language.h.
6857 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6858 VAR_DOMAIN.
6859 * psymtab.c (match_partial_symbol): Compare the requested
6860 domain with the symbol's domain directly.
6861 (lookup_partial_symbol): Likewise.
6862 * symtab.c (lookup_symbol_in_language): Explain when/why
6863 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6864 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6865 appropriate languages.
6866 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6867 and moved to ada-lang.c
6868 (lookup_block_symbol): Explain that this function only returns
6869 symbol matching the requested DOMAIN.
6870 Compare the requested domain with the symbol's domain directly.
6871 (iterate_over_symbols): Compare the requested domain with the
6872 symbol's domain directly.
6873 * symtab.h (symbol_matches_domain): Remove.
6874
25326a28 68752014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6876
6877 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6878 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6879 (gdbscm_guile_version_is_at_least): Declare.
6880 (gdbscm_scm_string_to_int): Declare.
6881 * guile/guile.c (gdbscm_guile_major_version): New global.
6882 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6883 (guile_datadir): New static global.
6884 (gdbscm_guile_data_directory): New function.
6885 (initialize_scheme_side): Update.
6886 (misc_guile_functions): Add guile-data-directory.
6887 (initialize_gdb_module): Fetch guile version number.
6888 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6889 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6890 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6891 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6892 comments.
6893 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6894 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6895 * guile/scm-value.c (gdbscm_value_to_string): Only call
6896 scm_port_conversion_strategy if Guile version >= 2.0.6.
6897
0a770bb2 68982014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6899
6900 * main.c (print_gdb_help): Add -q and --silent.
6901
73ba372c
GB
69022014-06-06 Gary Benson <gbenson@redhat.com>
6903
6904 * common/signals.c: Remove preprocessor conditionals for
6905 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6906 SIGSEGV and SIGTERM.
6907 * proc-events.c: Likewise.
6908
c33b2f12
MM
69092014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6910
6911 * symfile.c (symfile_free_objfile): Remove restriction to
6912 OBJF_USERLOADED.
6913 * symfile-mem.c (symbol_file_add_from_memory): Call
6914 add_target_sections_of_objfile.
6915
fb934770
LC
69162014-06-05 Ludovic Courtès <ludo@gnu.org>
6917
6918 * guile/scm-value.c (gdbscm_history_append_x): Use
6919 'vlscm_get_value_smob_arg_unsafe' instead of
6920 'vlscm_scm_to_value'.
6921
6ef284bd
SM
69222014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 PR mi/15806
6925 * utils.c (printchar): Don't escape at all if quoter is NUL.
6926 Update function documentation to clarify effect of parameter
6927 QUOTER.
6928 * remote.c (escape_buffer): Pass '\\' as the quoter to
6929 fputstrn_unfiltered.
6930 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6931 generate the output.
6932 (mi_solib_unloaded): Same.
6933
270c9937
JB
69342014-06-05 Joel Brobecker <brobecker@adacore.com>
6935
6936 * development.sh: Delete.
6937 * Makefile.in (config.status): Adjust dependency on development.sh.
6938 * configure.ac: Adjust development.sh source call.
6939 * configure: Regenerate.
6940
16f691fb
DE
69412014-06-04 Doug Evans <xdje42@gmail.com>
6942
6943 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6944 is_scheme_bkpt, spec.
6945 (bpscm_make_breakpoint_smob): Initialize new members.
6946 (gdbscm_create_breakpoint_x): Split into two ...
6947 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6948 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6949 (scheme_function breakpoint_functions): Update.
6950 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6951 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6952 register-breakpoint!.
6953
ef7cab6b
JB
69542014-06-04 Joel Brobecker <brobecker@adacorer.com>
6955
6956 PR server/17023
6957 * mem-break.c (z_type_supported): Return zero if
6958 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6959
012370f6
TT
69602014-06-04 Tom Tromey <tromey@redhat.com>
6961
6962 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6963 value_from_contents_and_address_unresolved.
6964 (ada_template_to_fixed_record_type_1): Likewise.
6965 (ada_which_variant_applies): Likewise.
6966 * value.h (value_from_contents_and_address_unresolved): Declare.
6967 * value.c (value_from_contents_and_address_unresolved): New
6968 function.
6969 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6970 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6971 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6972
92e2a17f
TT
69732014-06-04 Tom Tromey <tromey@redhat.com>
6974
6975 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6976
c0939df1
TT
69772014-06-04 Tom Tromey <tromey@redhat.com>
6978
6979 * procfs.c (procfs_attach): Make "args" const.
6980 * windows-nat.c (windows_attach): Make "args" const.
6981 * nto-procfs.c (procfs_attach): Make "args" const.
6982 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6983 * go32-nat.c (go32_attach): Make "args" const.
6984 * gnu-nat.c (gnu_attach): Make "args" const.
6985 * darwin-nat.c (darwin_attach): Make "args" const.
6986 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6987 * linux-nat.c (linux_nat_attach): Make "args" const.
6988 * remote.c (extended_remote_attach_1, extended_remote_attach):
6989 Make "args" const.
6990 * target.h (struct target_ops) <to_attach>: Make "args" const.
6991 (find_default_attach): Likewise.
6992 * utils.c (parse_pid_to_attach): Make "args" const.
6993 * utils.h (parse_pid_to_attach): Update.
6994
8eaff7cd
TT
69952014-06-04 Tom Tromey <tromey@redhat.com>
6996
6997 * target-delegates.c: Rebuild.
6998 * target.c (default_thread_address_space): New function.
6999 (target_thread_address_space): Simplify.
7000 * target.h (struct target_ops) <to_thread_address_space>: Add
7001 TARGET_DEFAULT_FUNC.
7002
1913f160
DE
70032014-06-04 Doug Evans <xdje42@gmail.com>
7004
7005 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7006
70ad5bff
MM
70072014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7008
7009 * record-btrace.c: Include event-loop.h and inf-loop.h.
7010 (record_btrace_resume_exec_dir)
7011 (record_btrace_async_inferior_event_handler)
7012 (record_btrace_handle_async_inferior_event): New.
7013 (record_btrace_open): Create async event handler.
7014 (record_btrace_close): Delete async event handler.
7015 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7016 Mark async event handler.
7017 (record_btrace_execution_direction): New.
7018 (init_record_btrace_ops): Initialize to_execution_direction.
7019
b6210538
DE
70202014-06-03 Doug Evans <xdje42@gmail.com>
7021
7022 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7023 (gdbscm_make_parameter): Ditto.
7024
a5b1fd27
DE
70252014-06-03 Doug Evans <dje@google.com>
7026
7027 * exec.c (exec_close_1): Call clear_section_table instead of
7028 resize_section_table.
7029 (clear_section_table): New function.
7030 (resize_section_table): Make static. Rename arg num_added to
7031 adjustment.
7032 * exec.h (clear_section_table): Declare.
7033 (resize_section_table): Delete.
7034 * progspace.c (release_program_space): Call clear_section_table
7035 instead of resize_section_table.
7036
0c6e92a5
SC
70372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7038
7039 * NEWS (Python Scripting): Add entry about the new xmethods
7040 feature.
7041
883964a7
SC
70422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7043
7044 * python/py-xmethods.c: New file.
7045 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7046 (objfpy_dealloc): XDECREF on the new xmethods field.
7047 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7048 field.
7049 (objfpy_get_xmethods): New function.
7050 (objfile_getset): New entry 'xmethods'.
7051 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7052 (pspy_dealloc): XDECREF on the new xmethods field.
7053 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7054 field.
7055 (pspy_get_xmethods): New function.
7056 (pspace_getset): New entry 'xmethods'.
7057 * python/python-internal.h: Add declarations for new functions.
7058 * python/python.c (_initialize_python): Invoke
7059 gdbpy_initialize_xmethods.
7060 * python/lib/gdb/__init__.py (xmethods): New
7061 attribute.
7062 * python/lib/gdb/xmethod.py: New file.
7063 * python/lib/gdb/command/xmethods.py: New file.
7064
58992dc5
SC
70652014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7066
7067 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7068 best match method returned by find_overload_match is an xmethod.
7069 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7070 the best matching operator returned by find_overload_match is an
7071 xmethod.
7072 * valops.c: #include "extension.h".
7073 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7074 Return void. The list of matching source methods is returned in
7075 "fn_list" and a vector of matching debug method workers is
7076 returned in "xm_worker_vec". Update all callers.
7077 (value_find_oload_method_list): Likewise.
7078 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7079 non-NULL, then the index of the best matching method in this
7080 vector is returned. Update all callers.
7081 (find_overload_match): Include xmethods while performing overload
7082 resolution.
7083
e81e7f5e
SC
70842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7085
7086 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7087 * extension-priv.h (struct extension_language_ops): Add the
7088 xmethod interface.
7089 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7090 get_matching_xmethod_workers, get_xmethod_argtypes,
7091 invoke_xmethod, free_xmethod_worker,
7092 free_xmethod_worker_vec): New functions.
7093 * extension.h: #include "common/vec.h".
7094 New function declarations.
7095 (struct xmethod_worker): New struct.
7096 (VEC (xmethod_worker_ptr)): New vector type.
7097 (xmethod_worker_ptr): New typedef.
7098 (xmethod_worker_vec): Likewise.
7099 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7100 builtin_type.
7101 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7102 (struct builtin_type): New field "xmethod".
7103 * valarith.c (value_ptradd): Assert that the value argument is not
7104 lval_xcallable.
7105 * valops.c (value_must_coerce_to_target): Return 0 for
7106 lval_xcallable values.
7107 * value.c (struct value): New field XM_WORKER in the field
7108 LOCATION.
7109 (value_address, value_raw_address): Return 0 for lval_xcallable
7110 values.
7111 (set_value_address): Assert that the value is not an
7112 lval_xcallable.
7113 (value_free): Free the associated xmethod worker when freeing
7114 lval_xcallable values.
7115 (set_value_component_location): Assert that the WHOLE value is not
7116 lval_xcallable.
7117 (value_of_xmethod, call_xmethod): New functions.
7118 * value.h: Declare "struct xmethod_worker".
7119 Declare new functions value_of_xmethod, call_xmethod.
7120
ef370185
JB
71212014-06-03 Joel Brobecker <brobecker@adacore.com>
7122 Pedro Alves <palves@redhat.com>
7123
7124 PR breakpoints/17000
7125 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7126 New function, extracted from software_breakpoint_inserted_here_p.
7127 (software_breakpoint_inserted_here_p): Replace factored out code
7128 by call to find_non_raw_software_breakpoint_inserted_here.
7129 (bp_target_info_copy_insertion_state): New function.
7130 (bkpt_insert_location): Handle the case of a single-step
7131 breakpoint already inserted at the same address.
7132 (bkpt_remove_location): Handle the case of a single-step
7133 breakpoint still inserted at the same address.
7134 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7135 breakpoint already inserted at the same address.
7136 (deprecated_remove_raw_breakpoint): Handle the case of a
7137 non-raw breakpoint still inserted at the same address.
7138 (find_single_step_breakpoint): New function, extracted from
7139 single_step_breakpoint_inserted_here_p.
7140 (find_single_step_breakpoint): New function,
7141 factored out from single_step_breakpoint_inserted_here_p.
7142 (single_step_breakpoint_inserted_here_p): Reimplement.
7143
1e2ccb61
BM
71442014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7145
7146 Pushed by Joel Brobecker <brobecker@adacore.com>
7147 * source.c (show_substitute_path_command): Fix display of matching
7148 substitution rules.
7149
d3448d85
GB
71502014-06-03 Gary Benson <gbenson@redhat.com>
7151
7152 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7153
06eb1586
DE
71542014-06-02 Doug Evans <xdje42@gmail.com>
7155
7156 Add parameter support for Guile.
7157 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7158 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7159 (scm-param.o): New rule.
7160 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7161 (gdbscm_misc_error): Declare.
7162 (gdbscm_canonicalize_command_name): Declare.
7163 (gdbscm_scm_to_host_string): Declare.
7164 (gdbscm_scm_from_host_string): Declare.
7165 (gdbscm_initialize_parameters): Declare.
7166 * guile/guile.c (initialize_gdb_module): Call
7167 gdbscm_initialize_parameters.
7168 * guile/lib/gdb.scm: Export parameter symbols.
7169 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7170 cmdscm_canonicalize_name and made public. All callers updated.
7171 * guile/scm-exception.c (gdbscm_misc_error): New function.
7172 * guile/scm-param.c: New file.
7173 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7174 (gdbscm_scm_to_host_string): New function.
7175 (gdbscm_scm_from_host_string): New function.
7176 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7177
e698b8c4
DE
71782014-06-02 Doug Evans <xdje42@gmail.com>
7179
7180 Add command support for Guile.
7181 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7182 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7183 (scm-cmd.o): New rule.
7184 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7185 (gdbscm_user_error_p): Declare.
7186 (gdbscm_parse_command_name): Declare.
7187 (gdbscm_valid_command_class_p): Declare.
7188 (gdbscm_initialize_commands): Declare.
7189 * guile/guile.c (initialize_gdb_module): Call
7190 gdbscm_initialize_commands.
7191 * guile/lib/gdb.scm: Export command symbols.
7192 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7193 (throw-user-error): New function.
7194 * guile/scm-cmd.c: New file.
7195 * guile/scm-exception.c (user_error_symbol): New static global.
7196 (gdbscm_user_error_p): New function.
7197 (gdbscm_initialize_exceptions): Set user_error_symbol.
7198 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7199
fb1f94b0
PM
72002014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7201
7202 * top.c (command_loop): Handle comments here...
7203 (command_line_input): ... not here.
7204
ded03782
DE
72052014-06-02 Doug Evans <xdje42@gmail.com>
7206
7207 Add progspace support for Guile.
7208 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7209 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7210 (scm-progspace.o): New rule.
7211 * guile/guile-internal.h (pspace_smob): New typedef.
7212 (psscm_pspace_smob_pretty_printers): Declare.
7213 (psscm_pspace_smob_from_pspace): Declare.
7214 (psscm_scm_from_pspace): Declare.
7215 * guile/guile.c (initialize_gdb_module): Call
7216 gdbscm_initialize_pspaces.
7217 * guile/lib/gdb.scm: Export progspace symbols.
7218 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7219 support.
7220 (append-pretty-printer!): Ditto.
7221 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7222 Implement.
7223 * guile/scm-progspace.c: New file.
7224
397998fc
AM
72252014-06-03 Alan Modra <amodra@gmail.com>
7226
7227 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7228 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7229
6aa5f3a6
DE
72302014-06-02 Doug Evans <dje@google.com>
7231
7232 Add support for skeletonless type units.
7233 * dwarf2read.c (struct dwarf2_per_objfile): New member
7234 n_allocated_type_units.
7235 (struct dwarf2_per_objfile) <tu_stats>: New member
7236 nr_all_type_units_reallocs.
7237 (create_signatured_type_table_from_index): Initialize
7238 n_allocated_type_units
7239 (create_all_type_units): Ditto.
7240 (add_type_unit): Move up in file. New arg slot.
7241 All callers updated. Increase space for all_type_units more
7242 efficiently.
7243 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7244 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7245 (lookup_dwp_signatured_type): Ditto.
7246 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7247 All callers updated.
7248 (build_type_psymtabs_1): Leave type_unit_groups as
7249 NULL if no TUs present.
7250 (print_tu_stats): New function.
7251 (process_skeletonless_type_unit): New function.
7252 (process_dwo_file_for_skeletonless_type_units): New
7253 function.
7254 (process_skeletonless_type_units): New function.
7255 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7256 Call print tu_stats if debugging enabled.
7257
41fac0cf
PA
72582014-06-02 Pedro Alves <palves@redhat.com>
7259
7260 * breakpoint.c (build_target_command_list): Don't build a command
7261 list if we have any duplicate location that isn't a dprintf.
7262
cd1608cc
PA
72632014-06-02 Pedro Alves <palves@redhat.com>
7264
7265 * breakpoint.c (dprintf_breakpoint_hit): New function.
7266 (initialize_breakpoint_ops): Install it as dprintf's
7267 breakpoint_hit method.
7268
486ef3b9
JB
72692014-06-02 Joel Brobecker <brobecker@adacore.com>
7270
7271 * source.c (substitute_path_rule_matches): Simplify using
7272 filename_ncmp instead of FILENAME_CMP.
7273
230cd560
JB
72742014-06-02 Joel Brobecker <brobecker@adacore.com>
7275
7276 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7277
16954d5d
LC
72782014-06-01 Ludovic Courtès <ludo@gnu.org>
7279
7280 * configure.ac: When Guile is available, check for the
7281 availability of 'scm_new_smob'.
7282 * configure, config.h.in: Regenerate.
7283 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7284 function.
7285
53e8a631
AB
72862014-05-30 Andrew Burgess <aburgess@broadcom.com>
7287
7288 * frame.c (struct frame_info): Add stop_string field.
7289 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7290 (get_prev_frame_always): Old content moved into
7291 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7292 TRY_CATCH, handle MEMORY_ERROR exceptions.
7293 (frame_stop_reason_string): New function definition.
7294 * frame.h (unwind_stop_reason_to_string): Extend comment to
7295 mention frame_stop_reason_string.
7296 (frame_stop_reason_string): New function declaration.
7297 * stack.c (frame_info): Switch to frame_stop_reason_string.
7298 (backtrace_command_1): Switch to frame_stop_reason_string.
7299 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7300 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7301 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7302
70e38b8e
AB
73032014-05-30 Andrew Burgess <aburgess@broadcom.com>
7304
7305 * frame.c (frame_stop_reason_string): Rename to ...
7306 (unwind_stop_reason_to_string): this.
7307 * frame.h (frame_stop_reason_string): Rename to ...
7308 (unwind_stop_reason_to_string): this.
7309 * stack.c (frame_info): Update call to frame_stop_reason_string.
7310 (backtrace_command_1): Likewise.
7311 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7312 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7313
938f0e2f
AB
73142014-05-30 Andrew Burgess <aburgess@broadcom.com>
7315
7316 * frame.c (remove_prev_frame): New function.
7317 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7318 remove_prev_frame.
7319
a09dd441
PA
73202014-05-29 Pedro Alves <palves@redhat.com>
7321
7322 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7323 and make it const. When a single-step decays to a continue,
7324 clear 'step', not 'hw_step'. Pass whether the caller wanted
7325 to step to user_visible_resume_ptid, not what we ask the
7326 target to do.
7327
bdc36728
PA
73282014-05-29 Pedro Alves <palves@redhat.com>
7329
7330 * infrun.c (process_event_stop_test, handle_step_into_function)
7331 (handle_step_into_function_backward): Adjust.
7332 Don't set the even thread's stop_step and call stop_waiting before
7333 calling end_stepping_range. Instead do that ...
7334 (end_stepping_range): ... here. Take an ecs pointer parameter.
7335
22bcd14b
PA
73362014-05-29 Pedro Alves <palves@redhat.com>
7337
7338 * infrun.c (stop_stepping): Rename to ...
7339 (stop_waiting): ... this.
7340 (proceed): Update comment.
7341 (process_event_stop_test, handle_inferior_event)
7342 (handle_signal_stop, handle_step_into_function)
7343 (handle_step_into_function_backward): Update.
7344
4ae57c05
PA
73452014-05-29 Pedro Alves <palves@redhat.com>
7346
7347 * infcall.c (run_inferior_call): Don't check whether the current
7348 thread is running after the proceed call.
7349
329ea579
PA
73502014-05-29 Pedro Alves <palves@redhat.com>
7351 Tom Tromey <tromey@redhat.com>
7352
7353 * NEWS: Mention "maint set target-async", "set mi-async", and that
7354 background execution commands are now always available.
7355 * target.h (target_async_permitted): Update comment.
7356 * target.c (target_async_permitted, target_async_permitted_1):
7357 Default to 1.
7358 (set_target_async_command): Rename to ...
7359 (maint_set_target_async_command): ... this.
7360 (show_target_async_command): Rename to ...
7361 (maint_show_target_async_command): ... this.
7362 (_initialize_target): Adjust.
7363 * infcmd.c (prepare_execution_command): Make extern.
7364 * inferior.h (prepare_execution_command): Declare.
7365 * infrun.c (set_observer_mode): Leave target async alone.
7366 * mi/mi-interp.c (mi_interpreter_init): Install
7367 mi_on_sync_execution_done as sync_execution_done observer.
7368 (mi_on_sync_execution_done): New function.
7369 (mi_execute_command_input_handler): Don't print the prompt if we
7370 just started a synchronous command with an async target.
7371 (mi_on_resume): Check sync_execution before printing prompt.
7372 * mi/mi-main.h (mi_async_p): Declare.
7373 * mi/mi-main.c: Include gdbcmd.h.
7374 (mi_async_p): New function.
7375 (mi_async, mi_async_1): New globals.
7376 (set_mi_async_command, show_mi_async_command, mi_async): New
7377 functions.
7378 (exec_continue): Call prepare_execution_command.
7379 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7380 (mi_execute_async_cli_command): Use mi_async_p.
7381 (_initialize_mi_main): Install "set mi-async". Make
7382 "target-async" a deprecated alias.
7383
92bcb5f9
PA
73842014-05-29 Pedro Alves <palves@redhat.com>
7385
7386 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7387 (_initialize_cli_interp): Adjust.
7388 * event-loop.c: Include "observer.h".
7389 (start_event_loop): Notify 'command_error' observers instead of
7390 calling display_gdb_prompt. Remove FIXME comment.
7391 * event-top.c (display_gdb_prompt): Remove call into the
7392 interpreters.
7393 * inf-loop.c: Include "observer.h".
7394 (inferior_event_handler): Notify 'command_error' observers instead
7395 of calling display_gdb_prompt.
7396 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7397 observers instead of calling display_gdb_prompt.
7398 * interps.c (interp_set): Don't call display_gdb_prompt.
7399 (current_interp_display_prompt_p): Delete.
7400 * interps.h (interp_prompt_p): Delete declaration.
7401 (interp_prompt_p_ftype): Delete.
7402 (struct interp_procs) <prompt_proc_p>: Delete field.
7403 (current_interp_display_prompt_p): Delete declaration.
7404 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7405 (_initialize_mi_interp): Adjust.
7406 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7407 'command_error' observers.
7408 (tui_on_sync_execution_done, tui_on_command_error): New
7409 functions.
7410 (tui_display_prompt_p): Delete.
7411 (_initialize_tui_interp): Adjust.
7412
fd664c91
PA
74132014-05-29 Pedro Alves <palves@redhat.com>
7414
7415 PR gdb/13860
7416 * cli/cli-interp.c: Include infrun.h and observer.h.
7417 (cli_uiout, cli_interp): New globals.
7418 (cli_on_signal_received, cli_on_end_stepping_range)
7419 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7420 functions.
7421 (cli_interpreter_init): Install them as 'end_stepping_range',
7422 'signal_received' 'signal_exited', 'exited' and 'no_history'
7423 observers.
7424 (_initialize_cli_interp): Remove cli_interp local.
7425 * infrun.c (handle_inferior_event): Call the several stop reason
7426 observers instead of printing the stop reason directly.
7427 (end_stepping_range): New function.
7428 (print_end_stepping_range_reason, print_signal_exited_reason)
7429 (print_exited_reason, print_signal_received_reason)
7430 (print_no_history_reason): Make static, and add an uiout
7431 parameter. Print to that instead of to CURRENT_UIOUT.
7432 * infrun.h (print_end_stepping_range_reason)
7433 (print_signal_exited_reason, print_exited_reason)
7434 (print_signal_received_reason print_no_history_reason): New
7435 declarations.
7436 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7437 'mi_uiout'.
7438 <cli_uiout>: New field.
7439 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7440 uiout for CLI output. Install 'signal_received',
7441 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7442 observers.
7443 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7444 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7445 (mi_on_no_history): New functions.
7446 (ui_out_free_cleanup): Delete function.
7447 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7448 instead use the one already stored in the MI interpreter data.
7449 (mi_ui_out): Adjust.
7450 * tui/tui-interp.c: Include infrun.h and observer.h.
7451 (tui_interp): New global.
7452 (tui_on_signal_received, tui_on_end_stepping_range)
7453 (tui_on_signal_exited, tui_on_exited)
7454 (tui_on_no_history): New functions.
7455 (tui_init): Install them as 'end_stepping_range',
7456 'signal_received' 'signal_exited', 'exited' and 'no_history'
7457 observers.
7458 (_initialize_tui_interp): Delete tui_interp local.
7459
8817a6f2
PA
74602014-05-29 Pedro Alves <palves@redhat.com>
7461
7462 PR gdb/15713
7463 * linux-nat.c (linux_nat_resume_callback): Rename the second
7464 parameter to 'except'. Skip LP if it points to EXCEPT.
7465 (linux_nat_resume): Don't mark the event lwp as not stopped
7466 before resuming sibling lwps. Instead ask
7467 linux_nat_resume_callback to skip the event lwp. Mark it as not
7468 stopped after actually resuming it.
7469 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7470 resuming it.
7471 (wait_lwp): Mark the lwp as stopped here.
7472 (stop_wait_callback): Mark the lwp as not stopped right after
7473 resuming it. Don't mark lwps as stopped here.
7474 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7475 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7476
251bde03
PA
74772014-05-29 Pedro Alves <palves@redhat.com>
7478
7479 PR PR15693
7480 * infrun.c (resume): Determine how much to resume depending on
7481 whether the caller wanted a step, not whether we can hardware step
7482 the target. Mark all threads that we intend to run as running,
7483 unless we're calling an inferior function.
7484 (normal_stop): If the thread is running an infcall, don't finish
7485 thread state.
7486 * target.c (target_resume): Don't mark threads as running here.
7487
7f3c0343
JB
74882014-05-28 Joel Brobecker <brobecker@adacore.com>
7489
7490 * serial.c (_initialize_serial): Remove support for
7491 the "set remotebaud" and "show remotebaud" commands.
7492 * NEWS: Add entry documenting the removal of that command.
7493
ee34b3f9
YQ
74942014-05-28 Yao Qi <yao@codesourcery.com>
7495
7496 * charset.c: Fix typo in comments.
7497
add6c04d
GB
74982014-05-27 Gary Benson <gbenson@redhat.com>
7499
7500 * utils.c (internal_vproblem): Prompt for a bug report.
7501
92c48fc5
AW
75022014-05-26 Andy Wingo <wingo@igalia.com>
7503
7504 * guile/scm-arch.c (arscm_mark_arch_smob):
7505 * guile/scm-block.c (bkscm_mark_block_smob)
7506 (bkscm_mark_block_syms_progress_smob):
7507 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7508 * guile/scm-exception.c (exscm_mark_exception_smob):
7509 * guile/scm-frame.c (frscm_mark_frame_smob):
7510 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7511 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7512 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7513 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7514 (ppscm_mark_pretty_printer_worker_smob):
7515 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7516 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7517 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7518 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7519 mark functions.
7520 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7521 function.
7522
b2715b27
AW
75232014-05-26 Andy Wingo <wingo@igalia.com>
7524 Doug Evans <xdje42@gmail.com>
7525
7526 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7527 empty_base_class. All uses updated.
7528 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7529 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7530 Adapt all callers.
7531 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7532 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7533 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7534 (gdbscm_gsmob_has_property_p, add_property_name)
7535 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7536 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7537 (gdb-object-has-property?, gdb-object-properties): Remove.
7538 (gdb-object-kind): Renamed from gsmob-kind.
7539
214ab2da
AW
75402014-05-26 Andy Wingo <wingo@igalia.com>
7541
7542 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7543 * configure: Regenerate.
7544
589fdceb
MM
75452014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7546
7547 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7548
67b5c0c1
MM
75492014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7550
7551 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7552 (replay_memory_access_read_only, replay_memory_access_read_write)
7553 (replay_memory_access_types, replay_memory_access)
7554 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7555 (cmd_set_record_btrace, cmd_show_record_btrace)
7556 (cmd_show_replay_memory_access): New.
7557 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7558 (record_btrace_remove_breakpoint): Replace
7559 record_btrace_allow_memory_access with replay_memory_access.
7560 (_initialize_record_btrace): Add commands.
7561 * NEWS: Announce it.
7562
036cd381
RR
75632014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7564
7565 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7566
c77c1e42
RR
75672014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7568
7569 * MAINTAINERS (Write After Approval): Move self back from
7570 paper trail.
7571
45741a9c
PA
75722014-05-22 Pedro Alves <palves@redhat.com>
7573
7574 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7575 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7576 (disable_randomization, enum exec_direction_kind)
7577 (execution_direction, stop_registers, start_remote)
7578 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7579 (wait_for_inferior, normal_stop, get_last_target_status)
7580 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7581 (insert_step_resume_breakpoint_at_sal)
7582 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7583 (set_step_info, print_stop_event, signal_stop_state)
7584 (signal_print_state, signal_pass_state, signal_stop_update)
7585 (signal_print_update, signal_pass_update)
7586 (update_signals_program_target, clear_exit_convenience_vars)
7587 (displaced_step_dump_bytes, update_observer_mode)
7588 (signal_catch_update, gdb_signal_from_command): Move
7589 declarations ...
7590 * infrun.h: ... to this new file.
7591 * amd64-tdep.c: Include infrun.h.
7592 * annotate.c: Include infrun.h.
7593 * arch-utils.c: Include infrun.h.
7594 * arm-linux-tdep.c: Include infrun.h.
7595 * arm-tdep.c: Include infrun.h.
7596 * break-catch-sig.c: Include infrun.h.
7597 * breakpoint.c: Include infrun.h.
7598 * common/agent.c: Include infrun.h instead of inferior.h.
7599 * corelow.c: Include infrun.h.
7600 * event-top.c: Include infrun.h.
7601 * go32-nat.c: Include infrun.h.
7602 * i386-tdep.c: Include infrun.h.
7603 * inf-loop.c: Include infrun.h.
7604 * infcall.c: Include infrun.h.
7605 * infcmd.c: Include infrun.h.
7606 * infrun.c: Include infrun.h.
7607 * linux-fork.c: Include infrun.h.
7608 * linux-nat.c: Include infrun.h.
7609 * linux-thread-db.c: Include infrun.h.
7610 * monitor.c: Include infrun.h.
7611 * nto-tdep.c: Include infrun.h.
7612 * procfs.c: Include infrun.h.
7613 * record-btrace.c: Include infrun.h.
7614 * record-full.c: Include infrun.h.
7615 * remote-m32r-sdi.c: Include infrun.h.
7616 * remote-mips.c: Include infrun.h.
7617 * remote-notif.c: Include infrun.h.
7618 * remote-sim.c: Include infrun.h.
7619 * remote.c: Include infrun.h.
7620 * reverse.c: Include infrun.h.
7621 * rs6000-tdep.c: Include infrun.h.
7622 * s390-linux-tdep.c: Include infrun.h.
7623 * solib-irix.c: Include infrun.h.
7624 * solib-osf.c: Include infrun.h.
7625 * solib-svr4.c: Include infrun.h.
7626 * target.c: Include infrun.h.
7627 * top.c: Include infrun.h.
7628 * windows-nat.c: Include infrun.h.
7629 * mi/mi-interp.c: Include infrun.h.
7630 * mi/mi-main.c: Include infrun.h.
7631 * python/py-threadevent.c: Include infrun.h.
7632
98eb56a4
PA
76332014-05-22 Pedro Alves <palves@redhat.com>
7634
7635 * infrun.c (handle_inferior_event): Store the exit code for
7636 --return-child-result here, instead of ...
7637 (print_exited_reason): ... here.
7638
17b2616c
PA
76392014-05-21 Pedro Alves <palves@redhat.com>
7640
7641 PR gdb/13860
7642 * gdbthread.h (struct thread_control_state): New field
7643 `command_interp'.
7644 * infrun.c (follow_fork): Copy the new thread control field to the
7645 child fork thread.
7646 (clear_proceed_status_thread): Clear the new thread control field.
7647 (proceed): Set the new thread control field.
7648 * interps.h (command_interp): Declare.
7649 * interps.c (command_interpreter): New global.
7650 (command_interp): New function.
7651 (interp_exec): Set `command_interpreter' while here.
7652 * cli-out.c (cli_uiout_dtor): New function.
7653 (cli_ui_out_impl): Install it.
7654 * mi/mi-interp.c: Include cli-out.h.
7655 (mi_cmd_interpreter_exec): Add comment.
7656 (restore_current_uiout_cleanup): New function.
7657 (ui_out_free_cleanup): New function.
7658 (mi_on_normal_stop): If finishing an execution command started by
7659 a CLI command, or any kind of breakpoint-like event triggered,
7660 print the stop event to the output (CLI) stream.
7661 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7662
5166082f
PA
76632014-05-21 Pedro Alves <palves@redhat.com>
7664
7665 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7666 current source line having changed.
7667 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7668 * infrun.c (normal_stop): Adjust call to
7669 set_current_sal_from_frame.
7670 * source.c (clear_lines_listed_range): New function.
7671 (set_current_source_symtab_and_line, identify_source_line): Clear
7672 the lines listed range.
7673 (line_info): Handle the first "info line" after the current source
7674 line having changed.
7675 * stack.c (print_stack_frame): Remove center handling.
7676 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7677 center sal.line.
7678
c1ee2fb3
PA
76792014-05-21 Pedro Alves <palves@redhat.com>
7680
7681 * inf-child.c (inf_child_mourn_inferior): New function.
7682 * inf-child.h (inf_child_mourn_inferior): New declaration.
7683 * darwin-nat.c (darwin_mourn_inferior): Use
7684 inf_child_mourn_inferior.
7685 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7686 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7687 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7688 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7689 * windows-nat.c (windows_mourn_inferior): Likewise.
7690
5c6d4fb2
DE
76912014-05-21 Doug Evans <xdje42@gmail.com>
7692
250748cb 7693 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7694
4a2722c5
DE
76952014-05-21 Doug Evans <xdje42@gmail.com>
7696
17292b30 7697 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7698 (gdbscm_out_of_range_error): Ditto.
7699 (gdbscm_memory_error): Ditto.
250748cb
DE
7700 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7701 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7702 (gdbscm_out_of_range_error): Update.
7703 (gdbscm_memory_error): Update.
7704 (gdbscm_scm_to_target_string_unsafe): Delete.
7705
6a3cb8e8
PA
77062014-05-21 Pedro Alves <palves@redhat.com>
7707
7708 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7709 globals.
7710 (inf_child_open_target): New function.
7711 (inf_child_open): Use inf_child_open_target to push the target
7712 instead of erroring out.
7713 (inf_child_disconnect, inf_child_close)
7714 (inf_child_maybe_unpush_target): New functions.
7715 (inf_child_target): Install inf_child_disconnect and
7716 inf_child_close. Store a pointer to the returned object.
7717 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7718 declarations.
7719 * target.c (auto_connect_native_target): New global.
7720 (show_default_run_target): New function.
7721 (find_default_run_target): Return NULL if automatically connecting
7722 to the native target is disabled.
7723 (_initialize_target): Install set/show auto-connect-native-target.
7724 * NEWS: Mention "set auto-connect-native-target", and "target
7725 native".
7726 * linux-nat.c (super_close): New global.
7727 (linux_nat_close): Call super_close.
7728 (linux_nat_add_target): Store a pointer to the base class's
7729 to_close method.
7730 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7731 inf_child_maybe_unpush.
7732 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7733 already pushed.
7734 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7735 the inferior. Use inf_child_maybe_unpush_target.
7736 (inf_ttrace_attach): Don't push the target if it is already
7737 pushed.
7738 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7739 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7740 after mourning the inferior. Use inf_child_maybe_unpush_target.
7741 (darwin_attach_pid): Don't push the target if it is already
7742 pushed.
7743 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7744 mourning the inferior. Use inf_child_maybe_unpush_target.
7745 (gnu_detach): Use inf_child_maybe_unpush_target.
7746 * go32-nat.c (go32_create_inferior): Don't push the target if it
7747 is already pushed.
7748 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7749 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7750 (procfs_open): Rename to ...
7751 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7752 comments. Can target_preopen before changing node. Call
7753 inf_child_open_target to push the target explicitly.
7754 (procfs_attach): Don't push the target if it is already pushed.
7755 (procfs_detach): Use inf_child_maybe_unpush_target.
7756 (procfs_create_inferior): Don't push the target if it is already
7757 pushed.
7758 (nto_native_ops): New global.
7759 (procfs_open): Reimplement.
7760 (procfs_native_open): New function.
7761 (init_procfs_targets): Install procfs_native_open as to_open of
7762 "target native". Store a pointer to the "native" target in
7763 nto_native_ops.
7764 * procfs.c (procfs_attach): Don't push the target if it is already
7765 pushed.
7766 (procfs_detach): Use inf_child_maybe_unpush_target.
7767 (procfs_mourn_inferior): Only unpush the target after mourning the
7768 inferior. Use inf_child_maybe_unpush_target.
7769 (procfs_init_inferior): Don't push the target if it is already
7770 pushed.
7771 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7772 if it is already pushed.
7773
930ee1b1
PA
77742014-05-21 Pedro Alves <palves@redhat.com>
7775
7776 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7777 and "procfs" targets are now called "native" instead.
7778
1f5d1b13
PA
77792014-05-21 Pedro Alves <palves@redhat.com>
7780
7781 * go32-nat.c (go32_open): Delete.
7782 (go32_target): Don't override the to_open method.
7783
132f8e03
PA
77842014-05-21 Pedro Alves <palves@redhat.com>
7785
7786 * nto-procfs.c (procfs_can_run): New function.
7787 (nto_procfs_ops): New global.
7788 (init_procfs_targets): New, based on procfs_target. Install
7789 "target native" in addition to "target procfs".
7790 (_initialize_procfs): Call init_procfs_targets instead of adding
7791 the target here.
7792
03c136c3
PA
77932014-05-21 Pedro Alves <palves@redhat.com>
7794
7795 * windows-nat.c (windows_target): Don't override to_shortname,
7796 to_longname or to_doc.
7797
a635d0f3
PA
77982014-05-21 Pedro Alves <palves@redhat.com>
7799
7800 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7801 to_doc.
7802
4f9b5133
PA
78032014-05-21 Pedro Alves <palves@redhat.com>
7804
7805 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7806 to_shortname, to_longname or to_doc.
7807
bc85afde
PA
78082014-05-21 Pedro Alves <palves@redhat.com>
7809
7810 * go32-nat.c (go32_target): Don't override to_shortname,
7811 to_longname or to_doc.
7812
4ebfc96e
PA
78132014-05-21 Pedro Alves <palves@redhat.com>
7814
7815 * inf-child.c (inf_child_open): Remove mention of "child".
7816 (inf_child_target): Rename target to "native" instead of "child".
7817
2648dfed
AA
78182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7819
7820 * Makefile.in (SFILES): Delete "regset.c".
7821 (COMMON_OBS): Delete "regset.o".
7822 * regset.c: Remove.
7823 * regset.h (regset_alloc): Delete prototype.
7824
b13feb94
AA
78252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7826
7827 * sparc-linux-tdep.c (sparc32_linux_gregset)
7828 (sparc32_linux_fpregset): New static regset structures.
7829 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7830 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7831 'fpregset' fields.
7832 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7833 (sparc64_linux_fpregset): New static regset structures.
7834 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7835 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7836 New static regset structures.
7837 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7838 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7839 New static regset structures.
7840 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7841 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7842 New static regset structures.
7843 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7844 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7845 New static regset structures.
7846 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7847
b4fd25c9
AA
78482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7849
7850 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7851 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7852 register maps ("regmaps") from "*regset" to "*regmap". Do this
7853 for all regmap types and variables.
7854 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7855 (sparc32_linux_supply_core_gregset)
7856 (sparc32_linux_collect_core_gregset)
7857 (sparc32_linux_supply_core_fpregset)
7858 (sparc32_linux_collect_core_fpregset): Likewise.
7859 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7860 (sparc_gregmap, sparc_fpregmap): ... these.
7861 (sparc_supply_gregset, sparc_collect_gregset)
7862 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7863 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7864 (_initialize_sparc_nat): Rename regmaps.
7865 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7866 (sparc_gregmap, sparc_fpregmap): ... these.
7867 (sparc_supply_gregset, sparc_collect_gregset)
7868 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7869 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7870 Rename macros to...
7871 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7872 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7873 Likewise.
7874 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7875 Rename to...
7876 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7877 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7878 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7879 regmaps.
7880 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7881 (sparc32_bsd_fpregset): Rename to...
7882 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7883 (sparc32_bsd_fpregmap): ... these.
7884 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7885 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7886 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7887 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7888 (struct sparc_gregmap, struct sparc_fpregmap)
7889 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7890 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7891 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7892 (sparc32_supply_regset, sparc32_collect_gregset)
7893 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7894 prototypes.
7895 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7896 (sparc64_linux_ptrace_gregmap): ... this.
7897 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7898 (_initialize_sparc64_linux_nat): Rename regmaps.
7899 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7900 (sparc64_linux_core_gregmap): ... this.
7901 (sparc64_linux_supply_core_gregset)
7902 (sparc64_linux_collect_core_gregset)
7903 (sparc64_linux_supply_core_fpregset)
7904 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7905 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7906 (sparc64_sol2_fpregset): Rename to...
7907 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7908 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7909 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7910 regmaps.
7911 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7912 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7913 (sparc64_bsd_fpregset): Rename to...
7914 (struct sparc_gregmap, sparc64_sol2_gregmap)
7915 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7916 (sparc64_bsd_fpregmap): ... these.
7917 (sparc64_supply_gregset, sparc64_collect_gregset)
7918 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7919 prototypes.
7920 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7921 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7922 (sparc64fbsd_gregmap): ... this.
7923 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7924 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7925 Rename regmaps.
7926 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7927 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7928 (sparc64nbsd_collect_fpregset): Likewise.
7929 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7930 (sparc64nbsd_gregmap): ... this.
7931 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7932 regmaps.
7933 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7934 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7935 (sparc64obsd_gregmap): ... this.
7936 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7937 regmaps.
7938 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7939 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7940 (sparc32nbsd_gregmap): ... this.
7941 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7942 regmaps.
7943
8fea3224
AA
79442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7945
7946 * score-tdep.c (score7_linux_gregset): New static regset
7947 structure.
7948 (score7_linux_regset_from_core_section): Remove dynamic regset
7949 allocation.
7950 (score_gdbarch_init): Drop allocation of tdep structure.
7951 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7952
24534243
AA
79532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7954
7955 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7956 regset structures.
7957 (am33_regset_from_core_section): Remove dynamic regset
7958 allocations.
7959
b7195f27
AA
79602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7961
7962 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7963 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7964 structures.
7965 (mips_linux_regset_from_core_section): Remove dynamic regset
7966 allocations.
7967 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7968 'gregset64', 'fpregset', and 'fpregset64'.
7969 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7970 deleted tdep fields.
7971
ecc37a5a
AA
79722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7973
7974 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7975 regset structures.
7976 (amd64_regset_from_core_section): Remove dynamic regset
7977 allocations.
7978 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7979 structure.
7980 (amd64obsd_regset_from_core_section): Remove dynamic regset
7981 allocation.
7982 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7983 Likewise.
7984 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7985 x86-common regset supply function.
7986 * i386-tdep.c (i386_collect_gregset): Make static.
7987 (i386_gregset): New global regset structure.
7988 (i386_fpregset, i386_xstateregset): New static regset structures.
7989 (i386_regset_from_core_section): Remove dynamic regset
7990 allocations.
7991 (i386_gdbarch_init): Remove initialization of tdep fields
7992 'gregset', 'fpregset', and 'xstateregset'.
7993 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7994 'fpregset', and 'xstateregset'.
7995 (i386_collect_gregset): Remove prototype.
7996 (i386_gregset): New declaration.
7997 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7998 structure.
7999 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8000 allocation.
8001
b7611c43
AA
80022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8003
8004 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8005 (arm_linux_vfpregset): New static regset structures.
8006 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8007 regset structures.
8008 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8009 and 'vfpregset' fields.
8010
a069a2bd
AA
80112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8012
8013 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8014 (aarch64_linux_fpregset): New static regset structures.
8015 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8016 of regset structures.
8017 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8018 'fpregset' fields.
8019
09424cff
AA
80202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8021
8022 * regset.h (struct regset): Remove gdbarch field.
8023 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8024 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8025 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8026 Likewise.
8027 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8028 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8029 (ppc32_linux_vsxregset): Likewise.
8030 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8031 via the regcache instead of the regset.
8032 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8033 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8034 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8035 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8036 Likewise.
8037
3ca7dae4
AA
80382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8039
8040 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8041 Constify structures.
8042 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8043 (alphanbsd_aout_gregset): Likewise.
8044 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8045 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8046 Likewise.
8047 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8048 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8049 Likewise.
8050 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8051 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8052 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8053 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8054 * m88k-tdep.c (m88k_gregset): Likewise.
8055 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8056 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8057 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8058 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8059 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8060 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8061 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8062 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8063 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8064 Likewise.
8065 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8066 * sh-tdep.h (sh_corefile_gregset): Likewise.
8067 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8068 * vax-tdep.c (vax_gregset): Likewise.
8069
5876f503
JK
80702014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Fix TLS access for -static -pthread.
8073 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8074 (try_thread_db_load_1): Initialize it.
8075 (thread_db_get_thread_local_address): Call it if LM is zero.
8076 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8077 * target.h (struct target_ops) (to_get_thread_local_address): Add
8078 load_module_addr comment.
8079
0256a6ac
PA
80802014-05-21 Pedro Alves <palves@redhat.com>
8081
8082 * dcache.c (dcache_read_memory_partial): If reading the cache line
8083 fails, fallback to reading just the memory the caller wanted.
8084
227533ac
DE
80852014-05-20 Doug Evans <dje@google.com>
8086
8087 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8088 instead of get_current_arch.
8089
936d2992
PA
80902014-05-20 Pedro Alves <palves@redhat.com>
8091
8092 * NEWS: Mention that compare-sections now works with all targets.
8093
8094 * remote.c (PACKET_qCRC): New enum value.
8095 (remote_verify_memory): Don't send qCRC if the target has no
8096 execution. Use packet_support/packet_ok. If the target doesn't
8097 support the qCRC packet, fallback to a deep memory copy.
8098 (compare_sections_command): Say "target image" instead of "remote
8099 executable".
8100 (_initialize_remote): Add PACKET_qCRC to the list of config
8101 packets that have no associated command. Extend comment.
8102 * target.c (simple_verify_memory, default_verify_memory): New
8103 function.
8104 * target.h (struct target_ops) <to_verify_memory>: Default to
8105 default_verify_memory.
8106 (simple_verify_memory): New declaration.
8107 * target-delegates.c: Regenerate.
8108
e59fa00f
MM
81092014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8110
8111 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8112
f2205de0
HZ
81132014-05-20 Hui Zhu <hui@codesourcery.com>
8114 Yao Qi <yao@codesourcery.com>
8115
8116 PR backtrace/16558
8117 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8118 and change address of sp and pc.
8119
c4e54771
TT
81202014-05-19 Tom Tromey <tromey@redhat.com>
8121
8122 * gdbtypes.c (rank_function): Use XNEWVEC.
8123 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8124
73051182
DE
81252014-05-19 Doug Evans <dje@google.com>
8126
8127 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8128 build_type_unit_groups and moved closer to only caller. Remove
8129 arguments. All references updated. Remove outdated .gdb_index
8130 comment.
8131 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8132 build_type_psymtabs_1.
8133
8832e7e3
DE
81342014-05-19 Doug Evans <dje@google.com>
8135
8136 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8137 n_type_unit_groups, all_type_unit_groups. All uses removed.
8138 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8139 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8140 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8141 (add_type_unit_group_to_table): Delete.
8142
cd8ae15e
DE
81432014-05-19 Doug Evans <dje@google.com>
8144
8145 * eval.c (evaluate_subexp_standard): Add some comments.
8146
08f4850b
DE
81472014-05-17 Doug Evans <xdje42@gmail.com>
8148
8149 * progspace.c (remove_program_space): Delete, unused.
8150 * progspace.h (remove_program_space): Ditto.
8151
bed8455c
DE
81522014-05-17 Doug Evans <xdje42@gmail.com>
8153
8154 * inferior.c (prune_inferiors): Fix comment.
8155 (remove_inferior_command): Call prune_program_spaces.
8156
8d551b02
DE
81572014-05-16 Doug Evans <dje@google.com>
8158
8159 New command line option -D.
8160 * NEWS: Mention it.
8161 * main.c (set_gdb_data_directory): New function.
8162 (captured_main): Recognize -D. Flag error for --data-directory "".
8163 Call set_gdb_data_directory.
8164 (print_gdb_help): Print --data-directory, -D.
8165 * main.h (set_gdb_data_directory): Declare.
8166 * top.c (staged_gdb_datadir): New static global.
8167 (set_gdb_datadir): Call set_gdb_data_directory
8168 (show_gdb_datadir): New function.
8169 (init_main): Update init of data-directory parameter.
8170
18848e28
GF
81712014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8172
8173 Import the "dirfd" gnulib module.
8174 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8175 * gnulib/aclocal.m4: Update.
8176 * gnulib/config.in: Update.
8177 * gnulib/configure: Update.
8178 * gnulib/import/Makefile.am: Update.
8179 * gnulib/import/Makefile.in: Update.
8180 * gnulib/import/dirfd.c: New.
8181 * gnulib/import/m4/dirfd.m4: New.
8182 * gnulib/import/m4/gnulib-cache.m4: Update.
8183 * gnulib/import/m4/gnulib-comp.m4: Update.
8184
95c64f92
YQ
81852014-05-16 Pierre Muller <muller@sourceware.org>
8186 Yao Qi <yao@codesourcery.com>
8187
8188 * valprint.c (print_wchar): Move the code on checking whether
8189 W is a printable wide char to the default branch of switch
8190 statement below. Call wchar_printable instead of gdb_iswprint.
8191
cac395ea
TM
81922014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8193
19679eca 8194 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8195 ldr.w and ldrd instructions.
8196
83655187
DE
81972014-05-15 Doug Evans <dje@google.com>
8198
8199 * dwarf2read.c (read_structure_type): Delete outdated comments.
8200
dd756689
TT
82012014-05-14 Tom Tromey <tromey@redhat.com>
8202
8203 * macrocmd.c (print_macro_definition): Reindent.
8204
75ddda77
DE
82052014-05-13 Doug Evans <xdje42@gmail.com>
8206
8207 * python/py-cmd.c (cmdpy_completer): Add comment.
8208 (completers): Make const.
8209
b0f16a3e
SM
82102014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8211
8212 * infrun.c (resume): Remove should_resume (unused). Move up
8213 declaration of resume_ptid.
8214
033c3379
TT
82152014-05-13 Tom Tromey <tromey@redhat.com>
8216
8217 * language.h (unop_type_check): Remove.
8218 (binop_type_check): Don't declare.
8219
9b44a3a5
AA
82202014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8221
8222 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8223 call to regcache_raw_collect.
8224
303a33fa
SM
82252014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8226
8227 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8228 mi_console->quote as the quoting character.
8229
196100a0
SM
82302014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8231
8232 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8233
f989a1c8
TT
82342014-04-29 Tom Tromey <tromey@redhat.com>
8235
8236 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8237 "show debug varobj".
8238
9404b58f
KM
82392014-05-07 Kyle McMartin <kyle@redhat.com>
8240
8241 Pushed by Joel Brobecker <brobecker@adacore.com>.
8242 * aarch64-tdep.c (aarch64_software_single_step): New function.
8243 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8244 with aarch64_software_single_step.
8245
5e49ba57
JB
82462014-05-05 Joel Brobecker <brobecker@adacore.com>
8247
8248 GDB 7.7.1 released.
8249
c888a17d
KS
82502014-05-05 Keith Seitz <keiths@redhat.com>
8251
8252 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8253 variable or history value is successfully parsed.
8254
290a839c
YQ
82552014-05-05 Yao Qi <yao@codesourcery.com>
8256 Pedro Alves <palves@redhat.com>
8257
8258 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8259 address of blocks that intersects the requested range. Trim
8260 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8261 sections.
8262 * ctf.c (ctf_xfer_partial): Likewise.
8263
91256dc2
YQ
82642014-05-05 Yao Qi <yao@codesourcery.com>
8265
8266 * printcmd.c (display_command): Remove the check to
8267 target_has_execution.
8268
07284463
MK
82692014-05-03 Mark Kettenis <kettenis@gnu.org>
8270
8271 * ppcobsd-nat.c: Include "obsd-nat.h".
8272 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8273 add_target.
8274 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8275
30a1e6cc
SDJ
82762014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8277
8278 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8279 and 16-bit signed and unsigned arguments. Update comment.
8280 (stap_parse_probe_arguments): Extend code to handle such
8281 arguments. Use warning instead of complaint to notify about
8282 unrecognized bitness.
8283
f33da99a
SDJ
82842014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8285
8286 PR breakpoints/16889
8287 * stap-probe.c (stap_parse_probe_arguments): Simplify
8288 check for non-prefixed probes (i.e., probes whose
8289 arguments do not start with "N@"). Always set the
8290 argument type to a sane value.
8291
95cf3b38
DT
82922014-05-01 David Taylor <dtaylor@emc.com>
8293
8294 * remote.c (compare_sections_command): Add -r option to compare
8295 all loadable read-only sections.
8296
1cfdf534
SC
82972014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8298
8299 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8300 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8301 Update all callers.
8302 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8303 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8304 Remove unused CORE_ADDR argument. Update all callers.
8305
ca4f7f8b
PA
83062014-04-29 Pedro Alves <palves@redhat.com>
8307
8308 * remote.c (struct packet_config) <detect>: Extend comment.
8309 (add_packet_config_cmd): Don't set the config's detect or support
8310 fields here.
8311 (init_all_packet_configs): Also initialize the config's 'detect'
8312 field.
8313 (reset_all_packet_configs_support): New function.
8314 (remote_open_1): Call reset_all_packet_configs_support instead of
8315 init_all_packet_configs.
8316 (_initialize_remote): Initialize all packet configs. Assert that
8317 all packets have an associated command, except a few known
8318 outliers.
8319
11c1ba78
JB
83202014-04-28 Joel Brobecker <brobecker@adacore.com>
8321
8322 * dwarf2read.c (read_subrange_type): Handle dynamic
8323 DW_AT_lower_bound attributes.
8324
8739bc53
JB
83252014-04-28 Joel Brobecker <brobecker@adacore.com>
8326
8327 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8328 dynamic bounds before computing its upper bound.
8329 (ada_discrete_type_low_bound): Same as above with the lower bound.
8330
6f8a3220
JB
83312014-04-28 Joel Brobecker <brobecker@adacore.com>
8332
8333 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8334 range types. Adjust the array handling implementation to
8335 take advantage of this change.
8336 (resolve_dynamic_range): New function, mostly extracted from
8337 resolve_dynamic_bounds.
8338 (resolve_dynamic_array): New function, mostly extracted from
8339 resolve_dynamic_bounds.
8340 (resolve_dynamic_bounds): Delete.
8341 (resolve_dynamic_type): Reimplement. Add handling of
8342 TYPE_CODE_RANGE types.
8343
4d072ce4
JB
83442014-04-28 Joel Brobecker <brobecker@adacore.com>
8345
8346 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8347 handling of parallel ___XA types.
8348
52865325
JB
83492014-04-28 Joel Brobecker <brobecker@adacore.com>
8350
8351 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8352 unnecessary second call to static_unwrap_type.
8353
433e77fa
HZ
83542014-04-27 Hui Zhu <hui@codesourcery.com>
8355
8356 * stack.c (print_frame_info): Call do_gdb_disassembly with
8357 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8358
b51a69ee
DE
83592014-04-26 Doug Evans <xdje42@gmail.com>
8360
8361 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8362
7ae1a6a6
PA
83632014-04-25 Pedro Alves <palves@redhat.com>
8364
8365 PR server/16255
8366 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8367 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8368 and newline from built string.
8369 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8370 (linux_ptrace_attach_fail_reason): ... this.
8371 * linux-nat.c (linux_nat_attach): Adjust to use
8372 linux_ptrace_attach_fail_reason.
8373
4082afcc
PA
83742014-04-25 Pedro Alves <palves@redhat.com>
8375
8376 * remote.c (struct remote_state): Remove multi_process_aware,
8377 non_stop_aware, cond_tracepoints, cond_breakpoints,
8378 breakpoint_commands, fast_tracepoints, static_tracepoints,
8379 install_in_trace, disconnected_tracing,
8380 enable_disable_tracepoints, string_tracing, and
8381 augmented_libraries_svr4_read fields.
8382 (remote_multi_process_p): Move further below in the file.
8383 (struct packet_config): Add comments.
8384 (update_packet_config): Delete function.
8385 (show_packet_config_cmd): Use packet_config_support.
8386 (add_packet_config_cmd): Use NULL as set callback.
8387 (packet_ok): "set remote foo-packet"-style commands no longer
8388 change config->supported -- adjust.
8389 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8390 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8391 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8392 (PACKET_QNonStop, PACKET_multiprocess_feature)
8393 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8394 (PACKET_DisconnectedTracing_feature)
8395 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8396 (set_remote_protocol_packet_cmd): Delete function.
8397 (packet_config_support, packet_support): New functions.
8398 (set_remote_protocol_Z_packet_cmd): Don't call
8399 update_packet_config.
8400 (remote_query_attached, remote_pass_signals)
8401 (remote_program_signals, remote_threads_info)
8402 (remote_threads_extra_info, remote_start_remote): Use
8403 packet_support.
8404 (remote_start_remote): Use packet_config_support and
8405 packet_support.
8406 (init_all_packet_configs): Set all packets to unknown support,
8407 instead of calling update_packet_config.
8408 (remote_check_symbols): Use packet_support.
8409 (remote_supported_packet): Unconditionally set the packet config's
8410 support status.
8411 (remote_multi_process_feature, remote_non_stop_feature)
8412 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8413 (remote_breakpoint_commands_feature)
8414 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8415 (remote_install_in_trace_feature)
8416 (remote_disconnected_tracing_feature)
8417 (remote_enable_disable_tracepoint_feature)
8418 (remote_string_tracing_feature)
8419 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8420 (remote_protocol_features): Adjust to use remote_supported_packet
8421 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8422 "ConditionalTracepoints", "ConditionalBreakpoints",
8423 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8424 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8425 "EnableDisableTracepoints", and "tracenz".
8426 (remote_query_supported): Use packet_support.
8427 (remote_open_1): Adjust.
8428 (extended_remote_attach_1): Use packet_support. Switch on the
8429 result of packet_ok instead of checking whether the packet ended
8430 up disabled.
8431 (remote_vcont_resume): Use packet_support.
8432 (remote_resume, remote_stop_ns, fetch_register_using_p)
8433 (remote_prepare_to_store, store_register_using_P)
8434 (check_binary_download, remote_write_bytes): Use packet_support.
8435 (remote_vkill): Use packet_support. Switch on the result of
8436 packet_ok instead of checking whether the packet ended up
8437 disabled.
8438 (extended_remote_supports_disable_randomization): Use
8439 packet_support.
8440 (extended_remote_run): Switch on the result of packet_ok instead
8441 of checking whether the packet ended up disabled.
8442 (remote_insert_breakpoint, remote_remove_breakpoint)
8443 (remote_insert_watchpoint, remote_remove_watchpoint)
8444 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8445 packet_support.
8446 (remote_search_memory): Use packet_config_support.
8447 (remote_get_thread_local_address, remote_get_tib_address)
8448 (remote_hostio_send_command, remote_can_execute_reverse): Use
8449 packet_support.
8450 (remote_supports_cond_tracepoints)
8451 (remote_supports_cond_breakpoints)
8452 (remote_supports_fast_tracepoints)
8453 (remote_supports_static_tracepoints)
8454 (remote_supports_install_in_trace)
8455 (remote_supports_enable_disable_tracepoint)
8456 (remote_supports_string_tracing)
8457 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8458 the packet config says the feature is enabled or disabled.
8459 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8460 (remote_get_trace_status): Use packet_support.
8461 (remote_set_disconnected_tracing): Adjust to check whether the
8462 feature is enabled with packet_support.
8463 (remote_set_trace_buffer_size, remote_use_agent)
8464 (remote_can_use_agent, remote_supports_btrace): Use
8465 packet_support.
8466 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8467 Use packet_config_support.
8468 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8469 the packet config says the feature is enabled or disabled.
8470 (set_range_stepping): Use packet_support.
8471
bdb52a22
TT
84722014-04-25 Tom Tromey <tromey@redhat.com>
8473
8474 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8475 argument.
8476
e9475ead
SA
84772014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8478
8479 * NEWS: Mention support for C99 variable length arrays.
8480
82eacd52
JB
84812014-04-24 Joel Brobecker <brobecker@adacore.com>
8482
8483 * ada-lang.c (standard_exc): Expand introductory comment.
8484
01f9f808
MS
84852014-04-24 Michael Sturm <michael.sturm@mintel.com>
8486 Walfred Tedeschi <walfred.tedeschi@intel.com>
8487
8488 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8489 AVX512 registers.
8490 (amd64_linux_read_description): Add code to handle AVX512 xstate
8491 mask and return respective tdesc.
8492 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8493 and features/i386/x32-avx512-linux.c.
8494 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8495 (amd64_linux_core_read_description): Add code to handle AVX512
8496 xstate mask and return respective tdesc.
8497 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8498 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8499 calculation.
8500 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8501 (tdesc_amd64_avx512_linux): New prototype.
8502 (tdesc_x32_avx512_linux): Likewise.
8503 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8504 features/i386/x32-avx512.c.
8505 (amd64_ymm_avx512_names): New register names for pseudo
8506 registers YMM16-31.
8507 (amd64_ymmh_avx512_names): New register names for raw registers
8508 YMMH16-31.
8509 (amd64_k_names): New register names for K registers.
8510 (amd64_zmmh_names): New register names for ZMM raw registers.
8511 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8512 (amd64_xmm_avx512_names): New register names for XMM16-31
8513 registers.
8514 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8515 registers.
8516 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8517 if feature is present.
8518 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8519 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8520 (AMD64_NUM_REGS): Adjust to new number of registers.
8521 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8522 registers supplied via XSTATE by AVX512 registers.
8523 (i386_linux_read_description): Add case for AVX512.
8524 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8525 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8526 (i386_linux_core_read_description): Add case for AVX512.
8527 (i386_linux_init_abi): Install supported register note section
8528 for AVX512.
8529 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8530 AVX512.
8531 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8532 registers to be number of zmm7h + 1.
8533 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8534 * i386-tdep.c: Include features/i386/i386-avx512.c.
8535 (i386_zmm_names): Add ZMM pseudo register names array.
8536 (i386_zmmh_names): Add ZMM raw register names array.
8537 (i386_k_names): Add K raw register names array.
8538 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8539 registers. AVX512 has 16 more ZMM registers than there are YMM
8540 registers.
8541 (i386_zmmh_regnum_p): Add function to look up register number of
8542 ZMM raw registers.
8543 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8544 (i386_k_regnum_p): Likewise for K raw registers.
8545 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8546 registers added by AVX512.
8547 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8548 registers added by AVX512.
8549 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8550 added by AVX512.
8551 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8552 (i386_pseudo_register_name): Add ZMM pseudo registers.
8553 (i386_zmm_type): Construct and return vector registers type for ZMM
8554 registers.
8555 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8556 ZMM0-31 pseudo registers and K registers.
8557 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8558 and YMM16-31 registers from register cache.
8559 (i386_pseudo_register_write): Add code to write K, ZMM and
8560 YMM16-31 registers.
8561 (i386_register_reggroup_p): Add code to include/exclude AVX512
8562 registers in/from respective register groups.
8563 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8564 registers if feature is present in xcr0.
8565 (i386_gdbarch_init): Add code to initialize AVX512 feature
8566 variables in tdep structure, wire in pseudo registers and call
8567 initialize_tdesc_i386_avx512.
8568 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8569 variables.
8570 (i386_regnum): Add AVX512 registers.
8571 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8572 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8573 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8574 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8575 512 bits wide.
8576 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8577 (i386_ymm_avx512_regnum_p): Likewise.
8578 (i386_k_regnum_p): Likewise.
8579 (i386_zmm_regnum_p): Likewise.
8580 (i386_zmmh_regnum_p): Likewise.
8581 * i387-tdep.c : Update year in copyright notice.
8582 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8583 XSAVE buffer.
8584 (XSAVE_YMM_AVX512_ADDR): New macro.
8585 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8586 XSAVE buffer.
8587 (XSAVE_XMM_AVX512_ADDR): New macro.
8588 (xsave_avx512_k_offset): New table for K register offsets in
8589 XSAVE buffer.
8590 (XSAVE_AVX512_K_ADDR): New macro.
8591 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8592 in XSAVE buffer.
8593 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8594 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8595 buffer.
8596 (i387_collect_xsave): Add code to collect AVX512 registers from
8597 XSAVE buffer.
8598 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8599 of XMM16-31 registers.
8600 (I387_NUM_K_REGS): New define for number of K registers.
8601 (I387_K0_REGNUM): New define for K0 register number.
8602 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8603 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8604 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8605 registers.
8606 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8607 (I387_XMM16_REGNUM): New define for XMM16 register number.
8608 (I387_YMM0_REGNUM): New define for YMM0 register number.
8609 (I387_KEND_REGNUM): New define for last K register number.
8610 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8611 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8612 number.
8613 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8614 number.
8615 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8616 size.
8617 * features/Makefile: Add AVX512 related files.
8618 * features/i386/32bit-avx512.xml: New file.
8619 * features/i386/64bit-avx512.xml: Likewise.
8620 * features/i386/amd64-avx512-linux.c: Likewise.
8621 * features/i386/amd64-avx512-linux.xml: Likewise.
8622 * features/i386/amd64-avx512.c: Likewise.
8623 * features/i386/amd64-avx512.xml: Likewise.
8624 * features/i386/i386-avx512-linux.c: Likewise.
8625 * features/i386/i386-avx512-linux.xml: Likewise.
8626 * features/i386/i386-avx512.c: Likewise.
8627 * features/i386/i386-avx512.xml: Likewise.
8628 * features/i386/x32-avx512-linux.c: Likewise.
8629 * features/i386/x32-avx512-linux.xml: Likewise.
8630 * features/i386/x32-avx512.c: Likewise.
8631 * features/i386/x32-avx512.xml: Likewise.
8632 * regformats/i386/amd64-avx512-linux.dat: New file.
8633 * regformats/i386/amd64-avx512.dat: Likewise.
8634 * regformats/i386/i386-avx512-linux.dat: Likewise.
8635 * regformats/i386/i386-avx512.dat: Likewise.
8636 * regformats/i386/x32-avx512-linux.dat: Likewise.
8637 * regformats/i386/x32-avx512.dat: Likewise.
8638 * NEWS: Add note about new support for AVX512.
8639
8640
08351840
PA
86412014-04-23 Pedro Alves <palves@redhat.com>
8642
8643 * breakpoint.c (insert_bp_location): Tolerate errors if the
8644 breakpoint is set in a user-loaded objfile.
8645 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8646 location is marked shlib_disabled. If the breakpoint is set in a
8647 user-loaded objfile is a GDB-side memory breakpoint, validate it
8648 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8649 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8650 flag.
8651 * mem-break.c (memory_validate_breakpoint): New function.
8652 * objfiles.c (userloaded_objfile_contains_address_p): New
8653 function.
8654 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8655 * target.h (memory_validate_breakpoint): New declaration.
8656
076855f9
PA
86572014-04-23 Pedro Alves <palves@redhat.com>
8658
8659 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8660 the breakpoint is set in a shared library, only suppress
8661 errors for software breakpoints, not hardware breakpoints.
8662
483805cf
PA
86632014-04-22 Pedro Alves <palves@redhat.com>
8664
8665 * infrun.c (schedlock_applies): New function, factored out from
8666 find_thread_needs_step_over.
8667 (find_thread_needs_step_over): Use it.
8668 (switch_back_to_stepped_thread): Always clear trap_expected if the
8669 step over is finished. Return early if scheduler locking applies.
8670 Look for the stepping thread and a potential step-over thread with
8671 a single loop.
8672 (currently_stepping_or_nexting_callback): Delete.
8673
a75fef0e
NC
86742014-04-22 Nick Clifton <nickc@redhat.com>
8675
8676 * NEWS: Mention that ARM sim now supports tracing.
8677
48b6e87e
YQ
86782014-04-22 Yao Qi <yao@codesourcery.com>
8679
8680 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8681 to ...
8682 * tracefile.c (tracefile_fetch_registers): ... it. New
8683 function.
8684 * tracefile.h (tracefile_fetch_registers): Declare.
8685 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8686 tracefile_fetch_registers.
8687
17617f2d
EZ
86882014-04-19 Eli Zaretskii <eliz@gnu.org>
8689
8690 PR gdb/14018
8691 * windows-nat.c (thread_rec): Don't display a warning when
8692 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8693 fails for any reason, set th->suspended to -1, so that we don't
8694 try to resume such a thread. Also, don't return NULL in these
8695 cases, to avoid completely ruin the session due to "PC register is
8696 not available" error.
8697 (do_windows_fetch_inferior_registers): Check errors in
8698 GetThreadContext call.
8699 (windows_continue): Accept an additional argument KILLED; if not
8700 zero, ignore errors in the SetThreadContext call, since the
8701 inferior was killed and is shutting down.
8702 (windows_resume, get_windows_debug_event)
8703 (windows_create_inferior, windows_mourn_inferior)
8704 (windows_kill_inferior): All callers of windows_continue changed
8705 to adjust to its new calling sequence.
8706
5723a6fd
YQ
87072014-04-19 Yao Qi <yao@codesourcery.com>
8708
8709 * ctf.c (ctf_open): Call post_create_inferior.
8710
614d5099
YQ
87112014-04-19 Yao Qi <yao@codesourcery.com>
8712
8713 * ctf.c (handle_id): New static variable.
8714 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8715 value. Get the declaration of event "register" and get length
8716 of field "contents".
8717
dac3e710
YQ
87182014-04-19 Yao Qi <yao@codesourcery.com>
8719
8720 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8721
2bca57ba
SC
87222014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8723
8724 * valops.c (oload_method_static): Remove unnecessary argument
8725 METHOD. Update all callers.
8726
51d48146
PA
87272014-04-18 Pedro alves <palves@redhat.com>
8728 Tom Tromey <tromey@redhat.com>
8729
8730 PR backtrace/15558
8731 * frame.c (get_prev_frame_1): Rename to ...
8732 (get_prev_frame_always): ... this, and make extern. Adjust.
8733 (skip_artificial_frames): Use get_prev_frame_always.
8734 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8735 (get_frame_unwind_stop_reason): Adjust to rename.
8736 * frame.h (get_prev_frame_always): Declare.
8737 * inline-frame.c: Include frame.h.
8738 (inline_frame_this_id): Use get_prev_frame_always.
8739
1bdad2e0
TG
87402014-04-18 Tristan Gingold <gingold@adacore.com>
8741
8742 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8743 code by using bfd_mach_o_get_base_address.
8744
7ce16bd4
UW
87452014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8746
8747 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8748 (spu_ax_pseudo_register_collect): New function.
8749 (spu_ax_pseudo_register_push_stack): Likewise.
8750 (spu_dwarf_reg_to_regnum): Likewise.
8751 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8752
2ed3c037
UW
87532014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8754
8755 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8756 Replace FRAME argument with FRAME_ID.
8757 * gdbarch.c, gdbarch.h: Regenerate.
8758 * findvar.c (default_value_from_register): Add GDBARCH argument;
8759 replace FRAME by FRAME_ID. No longer call get_frame_id.
8760 (value_from_register): Update call to gdbarch_value_from_register.
8761 * value.h (default_value_from_register): Update prototype.
8762 * s390-linux-tdep.c (s390_value_from_register): Update interface
8763 and call to default_value_from_register.
8764 * spu-tdep.c (spu_value_from_register): Likewise.
8765
8766 * findvar.c (address_from_register): Remove TYPE argument.
8767 Do not call value_from_register; use gdbarch_value_from_register
8768 with null_frame_id instead.
8769 * value.h (address_from_register): Update prototype.
8770 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8771 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8772 address_from_register interface change.
8773
71e50e83
YQ
87742014-04-17 Yao Qi <yao@codesourcery.com>
8775
8776 * gdbtypes.h: Update comments to link to types and macros'
8777 definitions.
8778
7a23c549
SC
87792014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8780
8781 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8782
22869d73
KS
87832014-04-16 Keith Seitz <keiths@redhat.com>
8784
8785 PR gdb/15827
8786 * dwarf2read.c (skip_one_die): Check that all relative-offset
8787 sibling DIEs fall within range of the current reader's buffer.
8788 (read_partial_die): Likewise.
8789
c4f87ca6
KS
87902014-04-16 Keith Seitz <keiths@redhat.com>
8791
8792 PR c++/16597
8793 * cp-namespace.c (lookup_symbol_file): If the type name of
8794 `this' is NULL, return immediately.
8795
b50c8614
KS
87962014-04-14 Keith Seitz <keiths@redhat.com>
8797
8798 PR c++/16253
8799 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8800 from symbol_matches_domain in symtab.c. All local callers
8801 of symbol_matches_domain updated.
8802 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8803 search STRUCT_DOMAIN.
8804 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8805 independently. standard_lookup will do that automatically.
8806 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8807 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8808 (cp_lookup_symbol_in_namespace): Likewise.
8809 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8810 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8811 may return a STRUCT_DOMAIN match.
8812 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8813 * cp-support.c: Include language.h.
8814 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8815 VAR_DOMAIN.
8816 * psymtab.c (match_partial_symbol): Compare the requested
8817 domain with the symbol's domain directly.
8818 (lookup_partial_symbol): Likewise.
8819 * symtab.c (lookup_symbol_in_language): Explain when/why
8820 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8821 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8822 appropriate languages.
8823 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8824 and moved to ada-lang.c
8825 (lookup_block_symbol): Explain that this function only returns
8826 symbol matching the requested DOMAIN.
8827 Compare the requested domain with the symbol's domain directly.
8828 (iterate_over_symbols): Compare the requested domain with the
8829 symbol's domain directly.
8830 * symtab.h (symbol_matches_domain): Remove.
8831
3d567982
TT
88322014-04-14 Tom Tromey <tromey@redhat.com>
8833
8834 PR c++/15246:
8835 * c-exp.y (type_aggregate_p): New function.
8836 (qualified_name, classify_inner_name): Use it.
8837 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8838 and TYPE_TARGET_TYPE of an enum type.
8839 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8840 an enum type.
8841 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8842 handle TYPE_DECLARED_CLASS.
8843 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8844 types.
8845 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8846 * valops.c (enum_constant_from_type): New function.
8847 (value_aggregate_elt): Use it.
8848 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8849 TYPE_CODE_ENUM.
8850
c848d642
TT
88512014-04-14 Tom Tromey <tromey@redhat.com>
8852
8853 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8854 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8855 const.
8856 * value.h (value_aggregate_elt): Update.
8857
0626fc76
TT
88582014-04-14 Tom Tromey <tromey@redhat.com>
8859
8860 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8861
5ecaaa66
SA
88622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8863
8864 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8865 (evaluate_subexp_standard): Pass noside argument.
8866 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8867 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8868 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8869 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8870 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8871
1612e0c0
SA
88722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8873
8874 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8875 points to a constant blob.
8876
c451ebe5
SA
88772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8878
8879 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8880 property and store it as the high bound and flag the range accordingly.
8881 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8882 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8883 * gdbtypes.h (enum range_flags): New enum.
8884 (struct range_bounds): Add flags member.
8885
1d42e4c4
SA
88862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8887
8888 * c-typeprint.c (c_type_print_varspec_suffix): Added
8889 check for not yet resolved high bound. If unresolved, print
8890 "variable length" string to the console instead of random
8891 length.
8892
9f1f738a
SA
88932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8894
8895 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8896 value.
8897 (ada_template_to_fixed_record_type_1): Likewise.
8898 (ada_to_fixed_type_1): Likewise.
8899 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8900 (cp_print_value): Likewise.
8901 * d-valprint.c (dynamic_array_type): Likewise.
8902 * findvar.c (address_of_variable): Likewise.
8903 * jv-valprint.c (java_value_print): Likewise.
8904 * valops.c (value_ind): Likewise.
8905 * value.c (coerce_ref): Likewise.
8906
3c8452d4
SA
89072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8908
8909 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8910 value and retrieve the dynamic type size.
8911
4ad88275
SA
89122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8913
8914 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8915 passed to sizeof is dynamic evaluate the argument to compute the length.
8916
80180f79
SA
89172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8918 Joel Brobecker <brobecker@adacore.com>
8919
8920 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8921 (dwarf2_evaluate_property): New function.
8922 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8923 * dwarf2read.c (attr_to_dynamic_prop): New function.
8924 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8925 attribute.
8926 * gdbtypes.c: Include dwarf2loc.h.
8927 (is_dynamic_type): New function.
8928 (resolve_dynamic_type): New function.
8929 (resolve_dynamic_bounds): New function.
8930 (get_type_length): New function.
8931 (check_typedef): Use get_type_length to compute type length.
8932 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8933 (TYPE_LOW_BOUND_KIND): New macro.
8934 (is_dynamic_type): New function prototype.
8935 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8936 to resolve dynamic properties of the type. Update comment.
8937 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8938
a1556843
RH
89392014-04-14 Richard Henderson <rth@redhat.com>
8940
8941 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8942
0be03e84
DE
89432014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8944 Doug Evans <xdje42@gmail.com>
8945
8946 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8947 dereference TYPE_CODE_REF values.
8948
6b662e19
JB
89492014-04-11 Joel Brobecker <brobecker@adacore.com>
8950
8951 Revert the following changes due to regressions:
8952
8953 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8954 (dwarf2_evaluate_property): New function.
8955 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8956 * dwarf2read.c (attr_to_dynamic_prop): New function.
8957 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8958 attribute.
8959 * gdbtypes.c: Include dwarf2loc.h.
8960 (is_dynamic_type): New function.
8961 (resolve_dynamic_type): New function.
8962 (resolve_dynamic_bounds): New function.
8963 (get_type_length): New function.
8964 (check_typedef): Use get_type_length to compute type length.
8965 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8966 (TYPE_LOW_BOUND_KIND): New macro.
8967 (is_dynamic_type): New function prototype.
8968 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8969 to resolve dynamic properties of the type. Update comment.
8970 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8971
8972 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8973 passed to sizeof is dynamic evaluate the argument to compute the length.
8974
8975 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8976 value and retrieve the dynamic type size.
8977
8978 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8979 (ada_template_to_fixed_record_type_1): Likewise.
8980 (ada_to_fixed_type_1): Likewise.
8981 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8982 (cp_print_value): Likewise.
8983 * d-valprint.c (dynamic_array_type): Likewise.
8984 * eval.c (evaluate_subexp_with_coercion): Likewise.
8985 * findvar.c (address_of_variable): Likewise.
8986 * jv-valprint.c (java_value_print): Likewise.
8987 * valops.c (value_ind): Likewise.
8988 * value.c (coerce_ref): Likewise.
8989
8990 * c-typeprint.c (c_type_print_varspec_suffix): Added
8991 check for not yet resolved high bound. If unresolved, print
8992 "variable length" string to the console instead of random
8993 length.
8994
8995 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8996 property and store it as the high bound and flag the range accordingly.
8997 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8998 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8999 * gdbtypes.h (enum range_flags): New enum.
9000 (struct range_bounds): Add flags member.
9001
9002 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9003 points to a constant blob.
9004
9005 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9006 (evaluate_subexp_standard): Pass noside argument.
9007 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9008 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9009 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9010 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9011 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9012
245a5f0b
KS
90132014-04-11 Keith Seitz <keiths@redhat.com>
9014
9015 PR c++/16675
9016 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9017 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9018 reference types.
9019
3bce8237
SA
90202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9021
9022 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9023 (evaluate_subexp_standard): Pass noside argument.
9024 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9025 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9026 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9027 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9028 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9029
92b09522
SA
90302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9031
9032 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9033 points to a constant blob.
9034
e1969afb
SA
90352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9036
9037 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9038 property and store it as the high bound and flag the range accordingly.
9039 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9040 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9041 * gdbtypes.h (enum range_flags): New enum.
9042 (struct range_bounds): Add flags member.
9043
b86138fb
SA
90442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9045
9046 * c-typeprint.c (c_type_print_varspec_suffix): Added
9047 check for not yet resolved high bound. If unresolved, print
9048 "variable length" string to the console instead of random
9049 length.
9050
bcd629a4
SA
90512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9052
9053 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9054 (ada_template_to_fixed_record_type_1): Likewise.
9055 (ada_to_fixed_type_1): Likewise.
9056 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9057 (cp_print_value): Likewise.
9058 * d-valprint.c (dynamic_array_type): Likewise.
9059 * eval.c (evaluate_subexp_with_coercion): Likewise.
9060 * findvar.c (address_of_variable): Likewise.
9061 * jv-valprint.c (java_value_print): Likewise.
9062 * valops.c (value_ind): Likewise.
9063 * value.c (coerce_ref): Likewise.
9064
04b19544
SA
90652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9066
9067 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9068 value and retrieve the dynamic type size.
9069
26cb189f
SA
90702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9071
9072 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9073 passed to sizeof is dynamic evaluate the argument to compute the length.
9074
37c1ab67
SA
90752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9076
9077 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9078 (dwarf2_evaluate_property): New function.
9079 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9080 * dwarf2read.c (attr_to_dynamic_prop): New function.
9081 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9082 attribute.
9083 * gdbtypes.c: Include dwarf2loc.h.
9084 (is_dynamic_type): New function.
9085 (resolve_dynamic_type): New function.
9086 (resolve_dynamic_bounds): New function.
9087 (get_type_length): New function.
9088 (check_typedef): Use get_type_length to compute type length.
9089 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9090 (TYPE_LOW_BOUND_KIND): New macro.
9091 (is_dynamic_type): New function prototype.
9092 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9093 to resolve dynamic properties of the type. Update comment.
9094 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9095
729efb13
SA
90962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9097
9098 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9099 declaring high/low bounds and change uses accordingly. Call
9100 create_range_type instead of create_static_range_type.
9101 * gdbtypes.c (create_range_type): New function.
9102 (create_range_type): Convert bounds into struct bound_prop and pass
9103 them to create_range_type.
9104 * gdbtypes.h (struct bound_prop): New struct.
9105 (create_range_type): New function prototype.
9106 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9107 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9108 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9109 part of the bound.
9110 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9111
0c9c3474
SA
91122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9113
9114 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9115 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9116 * ada-lang.c: All uses of create_range_type updated.
9117 * coffread.c: All uses of create_range_type updated.
9118 * dwarf2read.c: All uses of create_range_type updated.
9119 * f-exp.y: All uses of create_range_type updated.
9120 * m2-valprint.c: All uses of create_range_type updated.
9121 * mdebugread.c: All uses of create_range_type updated.
9122 * stabsread.c: All uses of create_range_type updated.
9123 * valops.c: All uses of create_range_type updated.
9124 * valprint.c: All uses of create_range_type updated.
9125
9d497a19
PA
91262014-04-10 Pedro Alves <palves@redhat.com>
9127
9128 * breakpoint.c (single_step_breakpoints)
9129 (single_step_gdbarch): Move up in the file.
9130 (one_breakpoint_xfer_memory): New function, factored out from ...
9131 (breakpoint_xfer_memory): ... here. Also process single-step
9132 breakpoints.
9133
15a9128a
TG
91342014-04-09 Tristan Gingold <gingold@adacore.com>
9135
9136 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9137 comments.
9138 (darwin_decode_exception_message): Free port only after use.
9139
9c97a070
PL
91402014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9141
9142 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9143 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9144 when setting the size of call_length.
9145
7af389b8
SC
91462014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9147
9148 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9149 dereference TYPE_CODE_REF values.
9150
86ad98c3
JB
91512014-04-07 Joel Brobecker <brobecker@adacore.com>
9152
9153 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9154 end of warning message.
9155
b0aeadb3
DE
91562014-04-03 Doug Evans <dje@google.com>
9157
9158 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9159 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9160
5979d6b6
AM
91612014-04-02 Alan Modra <amodra@gmail.com>
9162
9163 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9164 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9165 (struct symbol_file_add_from_memory_args): Add size field.
9166 (find_vdso_size): New function.
9167 (add_vsyscall_page): Attempt to find vdso size.
9168
0d60c288
DE
91692014-04-01 Doug Evans <dje@google.com>
9170
9171 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9172
a41f2563
TG
91732014-04-01 Tristan Gingold <gingold@adacore.com>
9174
9175 * darwin-nat.c (darwin_encode_reply): Add prototype.
9176 (darwin_decode_exception_message): Reply to unknown inferiors.
9177 (darwin_decode_message): Handle message by id. Ignore message
9178 to unknown inferior.
9179 (darwin_wait): Discard unknown messages, add debug trace.
9180
11a865c8
DE
91812014-03-31 Doug Evans <dje@google.com>
9182
9183 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9184 comp_dir_string.
9185
770e7fc7
DE
91862014-03-31 Doug Evans <dje@google.com>
9187
9188 New option "set print symbol-loading".
9189 * NEWS: Mention it.
9190 * solib.c (solib_read_symbols): Only print symbol loading messages
9191 if requested.
9192 (solib_add): If symbol loading is in "brief" mode, notify user
9193 symbols are being loaded.
9194 (reload_shared_libraries_1): Ditto.
9195 * symfile.c (print_symbol_loading_off): New static global.
9196 (print_symbol_loading_brief): New static global.
9197 (print_symbol_loading_full): New static global.
9198 (print_symbol_loading_enums): New static global.
9199 (print_symbol_loading): New static global.
9200 (print_symbol_loading_p): New function.
9201 (symbol_file_add_with_addrs): Only print symbol loading messages
9202 if requested.
9203 (_initialize_symfile): Register "print symbol-loading" set/show
9204 command.
9205 * symfile.h (print_symbol_loading_p): Declare.
9206
c32c64b7
DE
92072014-03-30 Doug Evans <xdje42@gmail.com>
9208
9209 * infrun.c (set_last_target_status): New function.
9210 (handle_inferior_event): Call it.
9211
7c0bc051
DE
92122014-03-30 Doug Evans <xdje42@gmail.com>
9213
9214 * inferior.h (enum stop_kind): Improve comment.
9215
8776cfe9
JB
92162014-03-28 Joel Brobecker <brobecker@adacore.com>
9217
9218 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9219 a reference, strip the reference layer before calling
9220 the lang_ops value_has_mutated callback.
9221
410a0ff2
SDJ
92222014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9223
9224 Remove some globals from our parser.
9225 * language.c (unk_lang_parser): Add "struct parser_state"
9226 argument.
9227 * language.h (struct language_defn) <la_parser>: Likewise.
9228 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9229 (initialize_expout): Add "struct parser_state" argument.
9230 Rewrite function to use the parser state.
9231 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9232 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9233 write_exp_elt_longcst, write_exp_elt_dblcst,
9234 write_exp_elt_decfloatcst, write_exp_elt_type,
9235 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9236 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9237 write_dollar_variable): Likewise.
9238 (parse_exp_in_context_1): Use parser state.
9239 (insert_type_address_space): Add "struct parser_state" argument.
9240 Use parser state.
9241 (increase_expout_size): New function.
9242 * parser-defs.h: Forward declare "struct language_defn" and
9243 "struct parser_state".
9244 (expout, expout_size, expout_ptr): Remove extern declarations.
9245 (parse_gdbarch, parse_language): Rewrite macro declarations to
9246 accept the parser state.
9247 (struct parser_state): New struct.
9248 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9249 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9250 write_exp_elt_decfloatcst, write_exp_elt_type,
9251 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9252 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9253 write_exp_msymbol, write_dollar_variable,
9254 mark_struct_expression, insert_type_address_space): Add "struct
9255 parser_state" argument.
9256 (increase_expout_size): New function.
9257 * utils.c (do_clear_parser_state): New function.
9258 (make_cleanup_clear_parser_state): Likewise.
9259 * utils.h (make_cleanup_clear_parser_state): New function
9260 prototype.
9261 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9262 Update calls to write_exp* in order to pass the parser state.
9263 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9264 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9265 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9266 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9267 * stap-probe.c (stap_parse_register_operand): Likewise.
9268 (stap_parse_single_operand): Likewise.
9269 (stap_parse_argument_1): Likewise.
9270 (stap_parse_argument): Use parser state.
9271 * stap-probe.h: Include "parser-defs.h".
9272 (struct stap_parse_info) <pstate>: New field.
9273 * c-exp.y (parse_type): Rewrite to use parser state.
9274 (yyparse): Redefine to c_parse_internal.
9275 (pstate): New global variable.
9276 (parse_number): Add "struct parser_state" argument.
9277 (write_destructor_name): Likewise.
9278 (type_exp): Update calls to write_exp* and similars in order to
9279 use parser state.
9280 (exp1, exp, variable, qualified_name, space_identifier,
9281 typename, typebase): Likewise.
9282 (write_destructor_name, parse_number, lex_one_token,
9283 classify_name, classify_inner_name, c_parse): Add "struct
9284 parser_state" argument. Update function to use parser state.
9285 * c-lang.h: Forward declare "struct parser_state".
9286 (c_parse): Add "struct parser_state" argument.
9287 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9288 (yyparse): Redefine macro to ada_parse_internal.
9289 (pstate): New variable.
9290 (write_int, write_object_renaming, write_var_or_type,
9291 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9292 type_int, type_long, type_long_long, type_float, type_double,
9293 type_long_double, type_char, type_boolean, type_system_address):
9294 Add "struct parser_state" argument.
9295 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9296 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9297 var_or_type, aggregate, aggregate_component_list,
9298 positional_list, others, component_group,
9299 component_associations): Update calls to write_exp* and similar
9300 functions in order to use parser state.
9301 (ada_parse, write_var_from_sym, write_int,
9302 write_exp_op_with_string, write_object_renaming,
9303 find_primitive_type, write_selectors, write_ambiguous_var,
9304 write_var_or_type, write_name_assoc, type_int, type_long,
9305 type_long_long, type_float, type_double, type_long_double,
9306 type_char, type_boolean, type_system_address): Add "struct
9307 parser_state" argument. Adjust function to use parser state.
9308 * ada-lang.c (parse): Likewise.
9309 * ada-lang.h: Forward declare "struct parser_state".
9310 (ada_parse): Add "struct parser_state" argument.
9311 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9312 calls to both functions.
9313 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9314 parser state.
9315 (yyparse): Redefine macro to f_parse_internal.
9316 (pstate): New variable.
9317 (parse_number): Add "struct parser_state" argument.
9318 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9319 and similars in order to use parser state.
9320 (parse_number): Adjust code to use parser state.
9321 (yylex): Likewise.
9322 (f_parse): New function.
9323 * f-lang.h: Forward declare "struct parser_state".
9324 (f_parse): Add "struct parser_state" argument.
9325 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9326 parser state.
9327 (yyparse): Redefine macro for java_parse_internal.
9328 (pstate): New variable.
9329 (push_expression_name, push_expression_name, insert_exp): Add
9330 "struct parser_state" argument.
9331 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9332 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9333 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9334 PostIncrementExpression, PostDecrementExpression,
9335 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9336 UnaryExpressionNotPlusMinus, CastExpression,
9337 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9338 RelationalExpression, EqualityExpression, AndExpression,
9339 ExclusiveOrExpression, InclusiveOrExpression,
9340 ConditionalAndExpression, ConditionalOrExpression,
9341 ConditionalExpression, Assignment, LeftHandSide): Update
9342 calls to write_exp* and similars in order to use parser state.
9343 (parse_number): Ajust code to use parser state.
9344 (yylex): Likewise.
9345 (java_parse): New function.
9346 (push_variable): Add "struct parser_state" argument. Adjust
9347 code to user parser state.
9348 (push_fieldnames, push_qualified_expression_name,
9349 push_expression_name, insert_exp): Likewise.
9350 * jv-lang.h: Forward declare "struct parser_state".
9351 (java_parse): Add "struct parser_state" argument.
9352 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9353 parser state.
9354 (yyparse): Redefine macro to m2_parse_internal.
9355 (pstate): New variable.
9356 (type_exp, exp, fblock, variable, type): Update calls to
9357 write_exp* and similars to use parser state.
9358 (yylex): Likewise.
9359 (m2_parse): New function.
9360 * m2-lang.h: Forward declare "struct parser_state".
9361 (m2_parse): Add "struct parser_state" argument.
9362 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9363 * objc-lang.h: Forward declare "struct parser_state".
9364 (end_msglist): Add "struct parser_state" argument.
9365 * p-exp.y (parse_type): Rewrite macro to use parser state.
9366 (yyparse): Redefine macro to pascal_parse_internal.
9367 (pstate): New variable.
9368 (parse_number): Add "struct parser_state" argument.
9369 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9370 write_exp* and similars in order to use parser state.
9371 (parse_number, yylex): Adjust code to use parser state.
9372 (pascal_parse): New function.
9373 * p-lang.h: Forward declare "struct parser_state".
9374 (pascal_parse): Add "struct parser_state" argument.
9375 * go-exp.y (parse_type): Rewrite macro to use parser state.
9376 (yyparse): Redefine macro to go_parse_internal.
9377 (pstate): New variable.
9378 (parse_number): Add "struct parser_state" argument.
9379 (type_exp, exp1, exp, variable, type): Update calls to
9380 write_exp* and similars in order to use parser state.
9381 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9382 to use parser state.
9383 (go_parse): Likewise.
9384 * go-lang.h: Forward declare "struct parser_state".
9385 (go_parse): Add "struct parser_state" argument.
9386
342587c4
DE
93872014-03-27 Doug Evans <dje@google.com>
9388
9389 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9390
33e80786
DE
93912014-03-27 Doug Evans <dje@google.com>
9392
9393 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9394 Remove argument abbrev_section. All callers updated.
9395
1dbab08b
DE
93962014-03-27 Doug Evans <dje@google.com>
9397
9398 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9399 addr_base, ranges_base.
9400
318d3177
KS
94012014-03-26 Keith Seitz <keiths@redhat.com>
9402
9403 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9404 types, not VAR_DOMAIN.
9405
1e54db15
SL
94062014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9407
9408 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9409 "ra" registers.
9410 * features/nios2-linux.c: Regenerated.
9411 * features/nios2.c: Regenerated.
9412
d3839ede
PA
94132014-03-25 Pedro Alves <palves@redhat.com>
9414
9415 * cli/cli-script.c (script_from_file): Force the interpreter to
9416 sync mode.
9417
7588d2ec
PL
94182014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9419
9420 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9421 small stack allocation.
9422
a6290449
TG
94232014-03-24 Tristan Gingold <gingold@adacore.com>
9424
9425 * darwin-nat.c (exc_server): Remove unused prototype.
9426 (darwin_dump_message): Correctly display data on x86_64.
9427 (darwin_encode_reply): Fix style.
9428 Add comments and fix indentation.
9429
31ae9d24 94302014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9431
9432 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9433
6339bfc4
DE
94342014-03-22 Doug Evans <xdje42@gmail.com>
9435
9436 * infcmd.c: Whitespace fixes.
9437 (interrupt_command): Merge two function comments into one.
9438
0a07590b
DE
94392014-03-22 Doug Evans <xdje42@gmail.com>
9440
9441 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9442 All uses updated.
9443
b55fbac4
YQ
94442014-03-22 Yao Qi <yao@codesourcery.com>
9445
9446 * remote.c (target_read_live_memory): Remove.
9447 (memory_xfer_live_readonly_partial): Rename it to
9448 remote_xfer_live_readonly_partial. Remove argument 'object'.
9449 All callers updated. Call remote_read_bytes_1
9450 instead of target_read_live_memory.
9451 * tracepoint.c (set_traceframe_number): Remove.
9452 (make_cleanup_restore_traceframe_number): Likewise .
9453 * tracepoint.h (set_traceframe_number): Remove declaration.
9454 (make_cleanup_restore_traceframe_number): Likewise.
9455
9217e74e
YQ
94562014-03-22 Yao Qi <yao@codesourcery.com>
9457
9458 * remote.c (remote_read_bytes): Move code on reading from the
9459 remote stub to ...
9460 (remote_read_bytes_1): ... here. New function.
9461
8acf9577
YQ
94622014-03-22 Yao Qi <yao@codesourcery.com>
9463
9464 * ctf.c (ctf_xfer_partial): Check the return value of
9465 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9466 return TARGET_XFER_UNAVAILABLE.
9467 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9468 * target.c (target_read_live_memory): Move it to remote.c.
9469 (memory_xfer_live_readonly_partial): Likewise.
9470 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9471 * remote.c (target_read_live_memory): Moved from target.c.
9472 (memory_xfer_live_readonly_partial): Likewise.
9473 (remote_read_bytes): Factored out from
9474 memory_xfer_partial_1.
9475
feef67ab
DE
94762014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9477
9478 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9479 NULL pointer.
9480
b65dc60b
PA
94812014-03-21 Pedro Alves <palves@redhat.com>
9482
9483 * infrun.c (normal_stop): Extend comment.
9484
b4ab256d
HZ
94852014-03-21 Hui Zhu <hui@codesourcery.com>
9486 Pedro Alves <palves@redhat.com>
9487
9488 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9489 static buffer.
9490 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9491 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9492 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9493
deba7593
MR
94942014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9495
9496 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9497 `z' formatted output modifier.
9498
1bff71c3
SDJ
94992014-03-20 Tom Tromey <tromey@redhat.com>
9500 Sergio Durigan Junior <sergiodj@redhat.com>
9501
9502 * probe.c (parse_probes): Turn assert into an ordinary error.
9503 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9504 exceptions when parsing probes. Rearrange the code for clarity.
9505
90e28950
TT
95062014-03-20 Tom Tromey <tromey@redhat.com>
9507
9508 PR gdb/14135
9509 * top.c (execute_command): Only dispatch events if the command
9510 started the target.
9511
beb460e8
PA
95122014-03-20 Tom Tromey <tromey@redhat.com>
9513
9514 PR cli/15718
9515 * infcall.c: Include event-top.h.
9516 (run_inferior_call): Call async_disable_stdin if needed.
9517
99619bea
PA
95182014-03-20 Pedro Alves <palves@redhat.com>
9519
9520 * infrun.c (prepare_to_proceed): Delete.
9521 (thread_still_needs_step_over): New function.
9522 (find_thread_needs_step_over): New function.
9523 (proceed): If the current thread needs a step-over, set its
9524 steping_over_breakpoint flag. Adjust to use
9525 find_thread_needs_step_over instead of prepare_to_proceed.
9526 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9527 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9528 breakpoint.
9529 (switch_back_to_stepped_thread): Step over breakpoints of all
9530 threads not the stepping thread, before switching back to the
9531 stepping thread.
9532
2adfaa28
PA
95332014-03-20 Pedro Alves <palves@redhat.com>
9534
9535 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9536 extern.
9537 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9538 * infrun.c (saved_singlestep_ptid)
9539 (stepping_past_singlestep_breakpoint): Delete.
9540 (resume): Remove stepping_past_singlestep_breakpoint handling.
9541 (proceed): Store the prev_pc of the stepping thread too.
9542 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9543 singlestep_pc.
9544 (enum infwait_states): Delete infwait_thread_hop_state.
9545 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9546 field.
9547 (handle_inferior_event): Adjust.
9548 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9549 handling and the thread-hop code. Before removing single-step
9550 breakpoints, check whether the thread hit a single-step breakpoint
9551 of another thread. If it did, the trap is not a random signal.
9552 (switch_back_to_stepped_thread): If the event thread hit a
9553 single-step breakpoint, unblock it before switching to the
9554 stepping thread. Handle the case of the stepped thread having
9555 advanced already.
9556 (keep_going): Handle the case of the current thread moving past a
9557 single-step breakpoint.
9558
31e77af2
PA
95592014-03-20 Pedro Alves <palves@redhat.com>
9560
9561 PR breakpoints/7143
9562 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9563 are being stepped over.
9564 (breakpoint_address_match): Make extern.
9565 * breakpoint.h (breakpoint_address_match): New declaration.
9566 * inferior.h (stepping_past_instruction_at): New declaration.
9567 * infrun.c (struct step_over_info): New type.
9568 (step_over_info): New global.
9569 (set_step_over_info, clear_step_over_info)
9570 (stepping_past_instruction_at): New functions.
9571 (handle_inferior_event): Clear the step-over info when
9572 trap_expected is cleared.
9573 (resume): Remove now stale comment.
9574 (clear_proceed_status): Clear step-over info.
9575 (proceed): Adjust step-over handling to set or clear the step-over
9576 info instead of removing all breakpoints.
9577 (handle_signal_stop): When setting up a thread-hop, don't remove
9578 breakpoints here.
9579 (stop_stepping): Clear step-over info.
9580 (keep_going): Adjust step-over handling to set or clear step-over
9581 info and then always inserting breakpoints, instead of removing
9582 all breakpoints when stepping over one.
9583
b9f437de
PA
95842014-03-20 Pedro Alves <palves@redhat.com>
9585
9586 * infrun.c (previous_inferior_ptid): Adjust comment.
9587 (deferred_step_ptid): Delete.
9588 (infrun_thread_ptid_changed, prepare_to_proceed)
9589 (init_wait_for_inferior): Adjust.
9590 (handle_signal_stop): Delete deferred_step_ptid handling.
9591
06c868a8
JK
95922014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9593
9594 PR gdb/15358
9595 * defs.h (sync_quit_force_run): New declaration.
9596 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9597 * event-top.c (async_sigterm_handler): New declaration.
9598 (async_sigterm_token): New variable.
9599 (async_init_signals): Create also async_sigterm_token.
9600 (async_sigterm_handler): New function.
9601 (sync_quit_force_run): New variable.
9602 (handle_sigterm): Replace quit_force call by other calls.
9603 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9604
dea80df0
MR
96052014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9606
9607 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9608 offset into SPE pseudo registers.
9609
0c7e1a46
PA
96102014-03-18 Pedro Alves <palves@redhat.com>
9611
9612 PR gdb/13860
9613 * inferior.h (print_stop_event): Declare.
9614 * infrun.c (print_stop_event): New, factored out from ...
9615 (normal_stop): ... this.
9616 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9617 of bpstat_print/print_stack_frame.
9618
9c1fcd01
TT
96192014-03-17 Tom Tromey <tromey@redhat.com>
9620
9621 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9622
11aa919a
PMR
96232014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9624
9625 * ada-lang.c (decode_constrained_packed_array): Perform a
9626 minimal coercion for reference with coerce_ref instead of
9627 ada_coerce_ref.
9628
d4ccb5e0
TG
96292014-03-17 Tristan Gingold <gingold@adacore.com>
9630
9631 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9632 (darwin_solib_create_inferior_hook): Emit a warning if version
9633 is unhandled.
9634
49840f2a
UW
96352014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9636
9637 * python/py-value.c (get_field_flag): Cast flag_name argument to
9638 PyObject_GetAttrString to support Python 2.4.
9639
ed4123e5
JK
96402014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9641
9642 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9643 (Global Maintainers): Remove Jan Kratochvil.
9644
d6b64346
PA
96452014-03-14 Pedro Alves <palves@redhat.com>
9646
9647 * inferior.h (terminal_ours_for_output): Rename to ...
9648 (child_terminal_ours_for_output): ... this.
9649 (terminal_save_ours): Rename to ...
9650 (child_terminal_save_ours): ... this.
9651 (terminal_ours): Rename to ...
9652 (child_terminal_ours): ... this.
9653 (terminal_inferior): Rename to ...
9654 (child_terminal_inferior): ... this.
9655 (terminal_init_inferior): Rename to ...
9656 (child_terminal_init_inferior): ... this.
9657 (terminal_init_inferior_with_pgrp): Rename to ...
9658 (child_terminal_init_inferior_with_pgrp): ... this.
9659 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9660 (child_terminal_init_with_pgrp): ... this.
9661 (terminal_save_ours): Rename to ...
9662 (child_terminal_save_ours): ... this.
9663 (terminal_init_inferior): Rename to ...
9664 (child_terminal_init): ... this. Adjust.
9665 (terminal_inferior): Rename to ...
9666 (child_terminal_inferior): ... this.
9667 (terminal_ours_for_output): Rename to ...
9668 (child_terminal_ours_for_output): ... this. Adjust.
9669 (terminal_ours): Rename to ...
9670 (child_terminal_ours): ... this.
9671 (terminal_ours_1): Rename to ...
9672 (child_terminal_ours_1): ... this. Adjust.
9673 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9674 * windows-nat.c (do_initial_windows_stuff): Adjust.
9675 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9676 (gnu_terminal_init): ... this. Adjust.
9677 (gnu_target): Adjust.
9678 * inf-child.c (inf_child_target): Adjust.
9679
5a1e8c7a
DE
96802014-03-13 Doug Evans <xdje42@gmail.com>
9681
9682 PR guile/16612
9683 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9684 new eq?-hashtab.
9685
350e1a76
DE
96862014-03-13 Doug Evans <xdje42@gmail.com>
9687
9688 * value.c (record_latest_value): Call release_value_or_incref
9689 instead of release_value.
9690
a69900ae
PA
96912014-03-13 Pedro Alves <palves@redhat.com>
9692
9693 * procfs.c (procfs_target): Don't override to_shortname,
9694 to_longname or to_doc.
9695
5db9f0bd
PA
96962014-03-13 Pedro Alves <palves@redhat.com>
9697
9698 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9699 Unix in user visible strings.
9700
5e3a2c38
SS
97012014-03-12 Stan Shebs <stan@codesourcery.com>
9702
9703 * gdbtypes.h: Annotate comments for Doxygen, add a page
9704 block comment with some general info.
9705
8bc2fe48
PA
97062014-03-12 Pedro Alves <palves@redhat.com>
9707
9708 * infcmd.c (prepare_execution_command): New function, factored out
9709 from several execution commands.
9710 (run_command_1, continue_command, step_1, jump_command)
9711 (signal_command, until_command, advance_command, finish_command)
9712 (attach_command): Use prepare_execution_command.
9713
638c5f49
OJ
97142014-03-12 Omair Javaid <omair.javaid@linaro.org>
9715
9716 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9717 (MAX_BPTS): Define.
9718 (MAX_WPTS): Define.
9719 (struct arm_linux_thread_points): Removed.
9720 (struct arm_linux_process_info): New.
9721 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9722 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9723 (arm_linux_find_breakpoints_by_tid): Removed.
9724 (struct arch_lwp_info): New.
9725 (arm_linux_find_process_pid): New functions.
9726 (arm_linux_add_process): New functions.
9727 (arm_linux_process_info_get): New functions.
9728 (arm_linux_forget_process): New function.
9729 (arm_linux_get_debug_reg_state): New function.
9730 (struct update_registers_data): New.
9731 (update_registers_callback): New function.
9732 (arm_linux_insert_hw_breakpoint1): Updated.
9733 (arm_linux_remove_hw_breakpoint1): Updated.
9734 (arm_linux_insert_hw_breakpoint): Updated.
9735 (arm_linux_remove_hw_breakpoint): Updated.
9736 (arm_linux_insert_watchpoint): Updated.
9737 (arm_linux_remove_watchpoint): Updated.
9738 (arm_linux_new_thread): Updated.
9739 (arm_linux_prepare_to_resume): New function.
9740 (arm_linux_new_fork): New function.
9741 (_initialize_arm_linux_nat): Updated.
9742
6d03af93
PA
97432014-03-12 Pedro Alves <palves@redhat.com>
9744
9745 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9746
b3ccfe11
TT
97472014-03-12 Tom Tromey <tromey@redhat.com>
9748
9749 * inf-child.c (return_zero): New function.
9750 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9751 * aix-thread.c (aix_thread_inferior_created): New function.
9752 (aix_thread_attach): Remove.
9753 (init_aix_thread_ops): Don't set to_attach.
9754 (_initialize_aix_thread): Register inferior_created observer.
9755 * corelow.c (init_core_ops): Don't set to_attach or
9756 to_create_inferior.
9757 * exec.c (init_exec_ops): Don't set to_attach or
9758 to_create_inferior.
9759 * infcmd.c (run_command_1): Use find_run_target. Make direct
9760 target calls.
9761 (attach_command): Use find_attach_target. Make direct target
9762 calls.
9763 * record-btrace.c (init_record_btrace_ops): Don't set
9764 to_create_inferior.
9765 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9766 Remove.
9767 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9768 set to_create_inferior.
9769 * target.c (complete_target_initialization): Add assertion.
9770 (target_create_inferior): Remove.
9771 (find_default_attach, find_default_create_inferior): Remove.
9772 (find_attach_target, find_run_target): New functions.
9773 (find_default_is_async_p, find_default_can_async_p)
9774 (target_supports_non_stop, target_attach): Remove.
9775 (init_dummy_target): Don't set to_create_inferior or
9776 to_supports_non_stop.
9777 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9778 TARGET_DEFAULT_FUNC.
9779 <to_create_inferior>: Add comment.
9780 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9781 TARGET_DEFAULT_RETURN.
9782 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9783 (find_attach_target, find_run_target): Declare.
9784 (target_create_inferior): Remove.
9785 (target_has_execution_1): Update comment.
9786 (target_supports_non_stop): Remove.
9787 * target-delegates.c: Rebuild.
9788
91f83b02
PA
97892014-03-12 Pedro Alves <palves@redhat.com>
9790
9791 * inf-child.h: Update comment to not mention Unix.
9792
f1aea813
PA
97932014-03-12 Pedro Alves <palves@redhat.com>
9794
9795 * inf-child.c: Update top comment to not mention Unix. Add
9796 generic comment describing how this target is meant to be used.
9797 (inf_child_post_attach, inf_child_post_startup_inferior)
9798 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9799 Unix in comment.
9800
ee8e9165
PA
98012014-03-12 Pedro Alves <palves@redhat.com>
9802
9803 * nto-procfs.c: Include inf-child.h.
9804 (procfs_ops): Delete global.
9805 (procfs_can_run): Delete method.
9806 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9807 target pointer instead of referencing procfs_ops.
9808 (procfs_prepare_to_store): Delete.
9809 (init_procfs_ops): Delete function.
9810 (procfs_target): New function, based on init_procfs_ops, but
9811 inherit inf_child_target.
9812 (_initialize_procfs): Use procfs_target.
9813
51a9c8c5
PA
98142014-03-12 Pedro Alves <palves@redhat.com>
9815
9816 * windows-nat.c: Include inf-child.h.
9817 (windows_ops): Delete global.
9818 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9819 methods.
9820 (init_windows_ops): Delete function.
9821 (windows_target): New function, based on init_windows_ops, but
9822 inherit inf_child_target.
9823 (_initialize_windows_nat): Use windows_target. Install x86
9824 specific target methods here.
9825
c1966e26
DE
98262014-03-10 Doug Evans <xdje42@gmail.com>
9827
9828 * guile/guile.c (call_initialize_gdb_module): New function.
9829 (initialize_guile): Replace call to scm_init_guile with call to
9830 scm_with_guile.
9831
023db19c
JB
98322014-03-10 Joel Brobecker <brobecker@adacore.com>
9833
9834 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9835 in call to TYPE_CODE macro.
9836
5ec18f2b
JG
98372014-03-10 Jerome Guitton <guitton@adacore.com>
9838
8668be63
JB
9839 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9840 Resolve tagged types to full view.
5ec18f2b 9841
7d03f2eb
HZ
98422014-03-10 Hui Zhu <hui@codesourcery.com>
9843
9844 * target.h (target_insert_breakpoint): Remove "hardware" from its
9845 comments.
9846
c5164cbc
DE
98472014-03-07 Doug Evans <dje@google.com>
9848
9849 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9850
c4a3fee2
DE
98512014-03-07 Doug Evans <dje@google.com>
9852
9853 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9854 Remove unused local comp_dir_attr. Assert exactly one of
9855 stub_comp_unit_die, stub_comp_dir is non-NULL.
9856
3156469c
JB
98572014-03-07 Joel Brobecker <brobecker@adacore.com>
9858
9859 * target.h (complete_target_initialization, add_target):
9860 Add comment.
9861
c1a7b7c6
PA
98622014-03-07 Pedro Alves <palves@redhat.com>
9863
9864 * go32-nat.c: Include inf-child.h.
9865 (go32_ops): Delete global.
9866 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9867 Delete methods.
9868 (go32_create_inferior): Push the passed in target pointer instead
9869 of referencing go32_ops.
9870 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9871 (go32_target): New function, based on init_go32_ops, but inherit
9872 inf_child_target.
9873 (_initialize_go32_nat): Use go32_target. Move parts of
9874 init_go32_ops here.
9875
d3c1a85f
JB
98762014-03-06 Joel Brobecker <brobecker@adacore.com>
9877
9878 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9879 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9880 SYMBOL_VALUE_ADDRESS.
9881 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9882
5fa1d40e
YQ
98832014-03-06 Yao Qi <yao@codesourcery.com>
9884
9885 * breakpoint.c (get_tracepoint_by_number): Remove argument
9886 optional_p. All callers updated. Adjust comments. Update
9887 output message.
9888 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9889
0c13193f
YQ
98902014-03-06 Yao Qi <yao@codesourcery.com>
9891
9892 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9893 early if get_number returns zero. Use 'p' instead of 'args'.
9894
2217da06
YQ
98952014-03-06 Yao Qi <yao@codesourcery.com>
9896
9897 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9898 message.
9899
cc3da688
YQ
99002014-03-06 Yao Qi <yao@codesourcery.com>
9901
9902 PR breakpoints/16508
9903 * tracepoint.c (check_trace_running): New function.
9904 (trace_find_command): Move code to check_trace_running and
9905 call check_trace_running.
9906 (trace_find_pc_command): Likewise.
9907 (trace_find_tracepoint_command): Likewise.
9908 (trace_find_line_command): Likewise.
9909 (trace_find_range_command): Likewise.
9910 * tracepoint.h (check_trace_running): Likewise.
9911 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9912
6a5f844b
YQ
99132014-03-06 Yao Qi <yao@codesourcery.com>
9914
9915 * target.h (struct target_ops) <to_traceframe_info>: Use
9916 TARGET_DEFAULT_NORETURN (tcomplain ()).
9917 * target-delegates.c: Regenerated.
9918
0f26cec1
PA
99192014-03-05 Pedro Alves <palves@redhat.com>
9920
9921 PR gdb/16575
9922 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9923 void. Update comment.
9924 (dcache_xfer_memory): Delete.
9925 (dcache_read_memory_partial): New, based on the read bits of
9926 dcache_xfer_memory.
9927 (dcache_update): Add status parameter. Use ULONGEST for len, and
9928 adjust. Discard cache lines if the reason for the update was
9929 error.
9930 * dcache.h (dcache_xfer_memory): Delete declaration.
9931 (dcache_read_memory_partial): New declaration.
9932 (dcache_update): Update prototype.
9933 * target.c (raw_memory_xfer_partial): Update the dcache here.
9934 (memory_xfer_partial_1): Don't handle dcache writes here.
9935
b2b255bd
MF
99362014-03-05 Mike Frysinger <vapier@gentoo.org>
9937
9938 * remote-sim.c (gdbsim_load): Add const to prog.
9939
5d9cf8a4
TT
99402014-03-03 Tom Tromey <tromey@redhat.com>
9941
9942 * elfread.c (probe_key): Change to bfd_data.
9943 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9944 now per-BFD, not per-objfile.
9945 * stap-probe.c (stap_probe_destroy): Update comment.
9946 (handle_stap_probe): Allocate on the per-BFD obstack.
9947
729662a5
TT
99482014-03-03 Tom Tromey <tromey@redhat.com>
9949
9950 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9951 * breakpoint.c (create_longjmp_master_breakpoint): Use
9952 get_probe_address.
9953 (add_location_to_breakpoint, bkpt_probe_insert_location)
9954 (bkpt_probe_remove_location): Update.
9955 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9956 * elfread.c (elf_symfile_relocate_probe): Remove.
9957 (elf_probe_fns): Update.
9958 (insert_exception_resume_breakpoint): Change type of "probe"
9959 parameter to bound_probe.
9960 (check_exception_resume): Update.
9961 * objfiles.c (objfile_relocate1): Don't relocate probes.
9962 * probe.c (bound_probe_s): New typedef.
9963 (parse_probes): Use get_probe_address. Set sal's objfile.
9964 (find_probe_by_pc): Return a bound_probe.
9965 (collect_probes): Return a VEC(bound_probe_s).
9966 (compare_probes): Update.
9967 (gen_ui_out_table_header_info): Change type of "probes"
9968 parameter. Update.
9969 (info_probes_for_ops): Update.
9970 (get_probe_address): New function.
9971 (probe_safe_evaluate_at_pc): Update.
9972 * probe.h (struct probe_ops) <get_probe_address>: New field.
9973 <set_semaphore, clear_semaphore>: Add objfile parameter.
9974 (struct probe) <objfile>: Remove field.
9975 <arch>: New field.
9976 <address>: Update comment.
9977 (struct bound_probe): New.
9978 (find_probe_by_pc): Return a bound_probe.
9979 (get_probe_address): Declare.
9980 * solib-svr4.c (struct probe_and_action) <address>: New field.
9981 (hash_probe_and_action, equal_probe_and_action): Update.
9982 (register_solib_event_probe): Add address parameter.
9983 (solib_event_probe_at): Update.
9984 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9985 get_probe_address.
9986 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9987 (stap_get_probe_address): New function.
9988 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9989 (compile_probe_arg): Update.
9990 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9991 address.
9992 (handle_stap_probe): Don't relocate the probe.
9993 (stap_relocate): Remove.
9994 (stap_gen_info_probes_table_values): Update.
9995 (stap_probe_ops): Remove stap_relocate.
9996 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9997 (debug_sym_probe_fns): Update.
9998 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9999 * symtab.c (init_sal): Use memset.
10000 * symtab.h (struct symtab_and_line) <objfile>: New field.
10001 * tracepoint.c (start_tracing, stop_tracing): Update.
10002
ff887920
TT
100032014-03-03 Tom Tromey <tromey@redhat.com>
10004
10005 * probe.h (parse_probes, find_probe_by_pc)
10006 (find_probes_in_objfile): Fix comments.
10007
f0407826
DE
100082014-03-02 Doug Evans <xdje42@gmail.com>
10009
10010 * infrun.c (handle_signal_stop): Replace test for
10011 TARGET_WAITKIND_STOPPED with an assert.
10012
35e6a711
DE
100132014-03-02 Doug Evans <xdje42@gmail.com>
10014
10015 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10016
667f9d0b
DE
100172014-03-02 Doug Evans <xdje42@gmail.com>
10018
10019 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10020
dc92ace0
MK
100212014-03-01 Mark Kettenis <kettenis@gnu.org>
10022
10023 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10024
a900370f
MK
100252014-03-01 Mark Kettenis <kettenis@gnu.org>
10026
10027 * i386obsd-nat.c: Include "obsd-nat.h".
10028 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10029 add_target.
10030 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10031
b72a7981
MK
100322014-03-01 Mark Kettenis <kettenis@gnu.org>
10033
10034 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10035
96c70aba
MK
100362014-03-01 Mark Kettenis <kettenis@gnu.org>
10037
10038 * mips64obsd-nat.c: Include "obsd-nath".
10039 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10040 add_target
10041 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10042
874a80af
MK
100432014-03-01 Mark Kettenis <kettenis@gnu.org>
10044
8fd408f1
MK
10045 * amd64obsd-nat.c: Include "obsd-nat,h.
10046 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10047 add_target.
874a80af
MK
10048 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10049
9cf95373
SC
100502014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10051
10052 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10053 (find_overload_match): Update call to find_oload_champ.
10054 (find_oload_champ_namespace_loop): Likewise
10055
863e4da4
MK
100562014-02-28 Mark Kettenis <kettenis@gnu.org>
10057
025cac40
MK
10058 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10059
1ed586ce
MK
10060 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10061 * config/sparc/obsd64.mh: New file.
10062 * sparc64obsd-nat.c: New file.
10063
863e4da4
MK
10064 * obsd-nat.h: New file.
10065 * obsd-nat.c: New file.
10066 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10067 (ALLDEPFILES): Add obsd-nat.c.
10068
89de4da4
TT
100692014-02-28 Tom Tromey <tromey@redhat.com>
10070
10071 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10072 * cli-out.h (cli_ui_out_impl): Now const.
10073 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10074 * ui-out.c (struct ui_out) <impl>: Now const.
10075 (default_ui_out_impl): Now const.
10076 (ui_out_new): Make 'impl' parameter const.
10077 * ui-out.h (ui_out_new): Update.
10078
c725e7b6
MK
100792014-02-27 Mark Kettenis <kettenis@gnu.org>
10080
10081 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10082
670b46b3
MK
100832014-02-27 Mark Kettenis <kettenis@gnu.org>
10084
10085 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10086
c91550fc
JK
100872014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 Additional PR 8882 fix.
10090 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10091
2fa0369e
PA
100922014-02-27 Pedro Alves <palves@redhat.com>
10093
10094 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10095 isn't set.
10096
d632a097
PA
100972014-02-27 Pedro Alves <palves@redhat.com>
10098
10099 PR 12702
10100 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10101 * nat/linux-waitpid.c: Include string.h.
10102 (status_to_str): Moved here and made extern.
10103 * nat/linux-waitpid.h (status_to_str): New declaration.
10104
2ebd5a35
HZ
101052014-02-27 Hui Zhu <hui@codesourcery.com>
10106
10107 PR 12702
10108 * infrun.c (ptid_match): Move ...
10109 * common/ptid.c (ptid_match): ... here.
10110 * inferior.h (ptid_match): Move ...
10111 * common/ptid.h (ptid_match): ... here.
10112
3cdd631f
MK
101132014-02-27 Mark Kettenis <kettenis@gnu.org>
10114
10115 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10116 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10117 gdb_target_obs.
10118
bee30a64
MK
101192014-02-27 Mark Kettenis <kettenis@gnu.org>
10120
10121 * obsd-tdep.c (obsd_auxv_parse): New function.
10122 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10123
10124 * gdbarch.sh (auxv_parse): New.
10125 * gdbarch.h: Regenerated.
10126 * gdbarch.c: Regenerated.
10127 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10128
7a5a839f
LC
101292014-02-26 Ludovic Courtès <ludo@gnu.org>
10130
10131 * guile/scm-value.c (gdbscm_history_append_x): New function.
10132 (value_functions): Add it.
10133
31aa7e4e
JB
101342014-02-27 Joel Brobecker <brobecker@adacore.com>
10135
10136 * dwarf2read.c (attr_value_as_address): New function.
10137 (dwarf2_find_base_address, read_call_site_scope): Use
10138 attr_value_as_address in place of DW_ADDR.
10139 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10140 the low and high addresses. Slight rework of the handling
10141 of the high pc being a constant form, and limit it to
10142 DWARF verson 4 or higher.
10143 (dwarf2_record_block_ranges): Likewise.
10144 (read_partial_die): Likewise.
10145 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10146
9b333ba3
TT
101472014-02-26 Tom Tromey <tromey@redhat.com>
10148
10149 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10150
5f6cac40
TT
101512014-02-26 Tom Tromey <tromey@redhat.com>
10152
10153 * elfread.c (elf_read_minimal_symbols): Return early if
10154 minimal symbols have already been read. Add "ei" parameter.
10155 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10156 * minsyms.c (prim_record_minimal_symbol_full): Update.
10157 * objfiles.h (struct objstats) <n_minsyms>: Move...
10158 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10159 * symmisc.c (print_objfile_statistics): Update.
10160
2750ef27
TT
101612014-02-26 Tom Tromey <tromey@redhat.com>
10162
10163 * elfread.c (elf_read_minimal_symbols): New function, from
10164 elf_symfile_read.
10165 (elf_symfile_read): Call it.
10166
34643a32
TT
101672014-02-26 Tom Tromey <tromey@redhat.com>
10168
10169 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10170 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10171 (lookup_minimal_symbol_solib_trampoline)
10172 (lookup_minimal_symbol_by_pc_section_1)
10173 (lookup_minimal_symbol_and_objfile): Update.
10174 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10175 Don't allocate a minimal symbol if minsyms have already been read.
10176 (build_minimal_symbol_hash_tables): Update.
10177 (install_minimal_symbols): Do nothing if minsyms already read.
10178 Use the per-BFD obstack.
10179 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10180 * objfiles.c (allocate_objfile): Call
10181 terminate_minimal_symbol_table later.
10182 (have_minimal_symbols): Update.
10183 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10184 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10185 Move from struct objfile.
10186 <minsyms_read>: New field.
10187 (struct objfile) <msymbols, minimal_symbol_count,
10188 msymbol_hash, msymbol_demangled_hash>: Move.
10189 (ALL_OBJFILE_MSYMBOLS): Update.
10190 * symfile.c (read_symbols): Set minsyms_read.
10191 (reread_symbols): Update.
10192 * symmisc.c (dump_objfile, dump_msymbols): Update.
10193
2273f0ac
TT
101942014-02-26 Tom Tromey <tromey@redhat.com>
10195
10196 * minsyms.c (msymbols_sort): Remove.
10197 * minsyms.h (msymbols_sort): Remove.
10198 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10199 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10200 * elfread.c (elf_symtab_read): Don't add section offsets.
10201 * xcoffread.c (record_minimal_symbol): Don't add section offset
10202 to minimal symbol address.
10203 * somread.c (text_offset, data_offset): Remove.
10204 (som_symtab_read): Don't add section offsets to minimal symbol
10205 addresses.
10206 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10207 Don't add section offsets to minimal symbols.
10208 * coffread.c (coff_symtab_read): Don't add section offsets
10209 to minimal symbol addresses.
10210 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10211 to minimal symbol addresses.
10212 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10213 section offset to minimal symbol addresses.
10214 * mdebugread.c (parse_partial_symbols): Don't add section
10215 offset to minimal symbol addresses.
10216 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10217 offset to minimal symbol addresses.
10218
77e371c0
TT
102192014-02-26 Tom Tromey <tromey@redhat.com>
10220
10221 * ada-lang.c (ada_main_name): Update.
10222 (ada_add_standard_exceptions): Update.
10223 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10224 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10225 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10226 * auxv.c (ld_so_xfer_auxv): Update.
10227 * avr-tdep.c (avr_scan_prologue): Update.
10228 * ax-gdb.c (gen_var_ref): Update.
10229 * blockframe.c (get_pc_function_start)
10230 (find_pc_partial_function_gnu_ifunc): Update.
10231 * breakpoint.c (create_overlay_event_breakpoint)
10232 (create_longjmp_master_breakpoint)
10233 (create_std_terminate_master_breakpoint)
10234 (create_exception_master_breakpoint): Update.
10235 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10236 * c-valprint.c (c_val_print): Update.
10237 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10238 * common/agent.c (agent_look_up_symbols): Update.
10239 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10240 * dwarf2loc.c (call_site_to_target_addr): Update.
10241 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10242 * elfread.c (elf_gnu_ifunc_record_cache)
10243 (elf_gnu_ifunc_resolve_by_got): Update.
10244 * findvar.c (default_read_var_value): Update.
10245 * frame.c (inside_main_func): Update.
10246 * frv-tdep.c (frv_frame_this_id): Update.
10247 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10248 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10249 Update.
10250 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10251 (hppa_hpux_find_dummy_bpaddr): Update.
10252 * hppa-tdep.c (hppa_symbol_address): Update.
10253 * infcmd.c (until_next_command): Update.
10254 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10255 Update.
10256 * linespec.c (minsym_found, add_minsym): Update.
10257 * linux-nat.c (get_signo): Update.
10258 * linux-thread-db.c (inferior_has_bug): Update.
10259 * m32c-tdep.c (m32c_return_value)
10260 (m32c_m16c_address_to_pointer): Update.
10261 * m32r-tdep.c (m32r_frame_this_id): Update.
10262 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10263 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10264 * maint.c (maintenance_translate_address): Update.
10265 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10266 (frob_address): New function.
10267 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10268 frob_address. Rename parameter to "pc_in".
10269 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10270 addresses.
10271 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10272 Update.
10273 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10274 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10275 * objc-lang.c (find_objc_msgsend): Update.
10276 * objfiles.c (objfile_relocate1): Update.
10277 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10278 * p-valprint.c (pascal_val_print): Update.
10279 * parse.c (write_exp_msymbol): Update.
10280 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10281 (ppc_elfv2_skip_entrypoint): Update.
10282 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10283 * printcmd.c (build_address_symbolic, msym_info)
10284 (address_info): Update.
10285 * proc-service.c (ps_pglobal_lookup): Update.
10286 * psymtab.c (find_pc_sect_psymtab_closer)
10287 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10288 Change msymbol parameter to bound_minimal_symbol.
10289 * ravenscar-thread.c (get_running_thread_id): Update.
10290 * remote.c (remote_check_symbols): Update.
10291 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10292 address.
10293 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10294 * solib-dsbt.c (lm_base): Update.
10295 * solib-frv.c (lm_base, main_got): Update.
10296 * solib-irix.c (locate_base): Update.
10297 * solib-som.c (som_solib_create_inferior_hook)
10298 (link_map_start): Update.
10299 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10300 * solib-svr4.c (elf_locate_base, enable_break): Update.
10301 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10302 (flush_ea_cache): Update.
10303 * stabsread.c (define_symbol, scan_file_globals): Update.
10304 * stack.c (find_frame_funname): Update.
10305 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10306 (debug_qf_find_pc_sect_symtab): Update.
10307 * symfile.c (simple_read_overlay_table)
10308 (simple_overlay_update): Update.
10309 * symfile.h (struct quick_symbol_functions)
10310 <find_pc_sect_symtab>: Change type of msymbol to
10311 bound_minimal_symbol.
10312 * symmisc.c (dump_msymbols): Update.
10313 * symtab.c (find_pc_sect_symtab_via_partial)
10314 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10315 (search_symbols, print_msymbol_info): Update.
10316 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10317 (MSYMBOL_VALUE_ADDRESS): Redefine.
10318 (BMSYMBOL_VALUE_ADDRESS): New macro.
10319 * tracepoint.c (scope_info): Update.
10320 * tui/tui-disasm.c (tui_find_disassembly_address)
10321 (tui_get_begin_asm_address): Update.
10322 * valops.c (find_function_in_inferior): Update.
10323 * value.c (value_static_field, value_fn_field): Update.
10324
3b7344d5
TT
103252014-02-26 Tom Tromey <tromey@redhat.com>
10326
10327 * ada-lang.c (ada_update_initial_language): Update.
10328 (ada_main_name, ada_has_this_exception_support): Update.
10329 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10330 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10331 * arm-tdep.c (arm_skip_stub): Update.
10332 * auxv.c (ld_so_xfer_auxv): Update.
10333 * avr-tdep.c (avr_scan_prologue): Update.
10334 * ax-gdb.c (gen_var_ref): Update.
10335 * breakpoint.c (struct breakpoint_objfile_data)
10336 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10337 type to bound_minimal_symbol.
10338 (create_overlay_event_breakpoint)
10339 (create_longjmp_master_breakpoint)
10340 (create_std_terminate_master_breakpoint)
10341 (create_exception_master_breakpoint): Update.
10342 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10343 * c-exp.y (classify_name): Update.
10344 * coffread.c (coff_symfile_read): Update.
10345 * common/agent.c (agent_look_up_symbols): Update.
10346 * d-lang.c (d_main_name): Update.
10347 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10348 * dec-thread.c (enable_dec_thread): Update.
10349 * dwarf2loc.c (call_site_to_target_addr): Update.
10350 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10351 * eval.c (evaluate_subexp_standard): Update.
10352 * findvar.c (struct minsym_lookup_data) <result>: Change type
10353 to bound_minimal_symbol.
10354 <objfile>: Remove.
10355 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10356 * frame.c (inside_main_func): Update.
10357 * frv-tdep.c (frv_frame_this_id): Update.
10358 * gcore.c (call_target_sbrk): Update.
10359 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10360 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10361 Update.
10362 * go-lang.c (go_main_name): Update.
10363 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10364 (hppa_hpux_find_import_stub_for_addr): Update.
10365 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10366 Update. Change return type.
10367 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10368 type.
10369 * jit.c (jit_breakpoint_re_set_internal): Update.
10370 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10371 Update.
10372 * linux-nat.c (get_signo): Update.
10373 * linux-thread-db.c (inferior_has_bug): Update
10374 * m32c-tdep.c (m32c_return_value)
10375 (m32c_m16c_address_to_pointer): Update.
10376 * m32r-tdep.c (m32r_frame_this_id): Update.
10377 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10378 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10379 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10380 lookup_minimal_symbol. Change return type.
10381 (lookup_minimal_symbol): Remove.
10382 (lookup_bound_minimal_symbol): Update.
10383 (lookup_minimal_symbol_text): Change return type.
10384 (lookup_minimal_symbol_solib_trampoline): Change return type.
10385 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10386 (lookup_minimal_symbol_solib_trampoline): Change return type.
10387 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10388 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10389 (value_nsstring, find_imps): Update.
10390 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10391 * p-lang.c (pascal_main_name): Update.
10392 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10393 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10394 * proc-service.c (ps_pglobal_lookup): Update.
10395 * ravenscar-thread.c (get_running_thread_msymbol): Change
10396 return type.
10397 (has_ravenscar_runtime, get_running_thread_id): Update.
10398 * remote.c (remote_check_symbols): Update.
10399 * sol-thread.c (ps_pglobal_lookup): Update.
10400 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10401 * solib-dsbt.c (lm_base): Update.
10402 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10403 Update.
10404 * solib-irix.c (locate_base): Update.
10405 * solib-som.c (som_solib_create_inferior_hook)
10406 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10407 Update.
10408 * solib-spu.c (spu_enable_break): Update.
10409 * solib-svr4.c (elf_locate_base, enable_break): Update.
10410 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10411 (flush_ea_cache): Update.
10412 * stabsread.c (define_symbol): Update.
10413 * symfile.c (simple_read_overlay_table): Update.
10414 * symtab.c (find_pc_sect_line): Update.
10415 * tracepoint.c (scope_info): Update.
10416 * tui-disasm.c (tui_get_begin_asm_address): Update.
10417 * value.c (value_static_field): Update.
10418
40c1a007
TT
104192014-02-26 Tom Tromey <tromey@redhat.com>
10420
10421 * minsyms.c (prim_record_minimal_symbol_full): Use
10422 SET_MSYMBOL_VALUE_ADDRESS.
10423 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10424 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10425 SET_MSYMBOL_VALUE_ADDRESS.
10426 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10427 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10428
efd66ac6
TT
104292014-02-26 Tom Tromey <tromey@redhat.com>
10430
10431 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10432 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10433 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10434 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10435 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10436 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10437 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10438 * ada-lang.c (ada_main_name): Update.
10439 (ada_lookup_simple_minsym): Update.
10440 (ada_make_symbol_completion_list): Update.
10441 (ada_add_standard_exceptions): Update.
10442 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10443 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10444 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10445 * arm-tdep.c (skip_prologue_function): Update.
10446 (arm_skip_stack_protector, arm_skip_stub): Update.
10447 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10448 (arm_wince_skip_main_prologue): Update.
10449 * auxv.c (ld_so_xfer_auxv): Update.
10450 * avr-tdep.c (avr_scan_prologue): Update.
10451 * ax-gdb.c (gen_var_ref): Update.
10452 * block.c (call_site_for_pc): Update.
10453 * blockframe.c (get_pc_function_start): Update.
10454 (find_pc_partial_function_gnu_ifunc): Update.
10455 * breakpoint.c (create_overlay_event_breakpoint): Update.
10456 (create_longjmp_master_breakpoint): Update.
10457 (create_std_terminate_master_breakpoint): Update.
10458 (create_exception_master_breakpoint): Update.
10459 (resolve_sal_pc): Update.
10460 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10461 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10462 Update.
10463 * c-valprint.c (c_val_print): Update.
10464 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10465 * coffread.c (coff_symfile_read): Update.
10466 * common/agent.c (agent_look_up_symbols): Update.
10467 * dbxread.c (find_stab_function_addr): Update.
10468 (end_psymtab): Update.
10469 * dwarf2loc.c (call_site_to_target_addr): Update.
10470 (func_verify_no_selftailcall): Update.
10471 (tailcall_dump): Update.
10472 (call_site_find_chain_1): Update.
10473 (dwarf_expr_reg_to_entry_parameter): Update.
10474 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10475 (elf_gnu_ifunc_resolve_by_got): Update.
10476 * f-valprint.c (info_common_command): Update.
10477 * findvar.c (read_var_value): Update.
10478 * frame.c (get_prev_frame_1): Update.
10479 (inside_main_func): Update.
10480 * frv-tdep.c (frv_skip_main_prologue): Update.
10481 (frv_frame_this_id): Update.
10482 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10483 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10484 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10485 (gnuv3_skip_trampoline): Update.
10486 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10487 (hppa64_hpux_in_solib_call_trampoline): Update.
10488 (hppa_hpux_skip_trampoline_code): Update.
10489 (hppa64_hpux_search_dummy_call_sequence): Update.
10490 (hppa_hpux_find_import_stub_for_addr): Update.
10491 (hppa_hpux_find_dummy_bpaddr): Update.
10492 * hppa-tdep.c (hppa_symbol_address)
10493 (hppa_lookup_stub_minimal_symbol): Update.
10494 * i386-tdep.c (i386_skip_main_prologue): Update.
10495 (i386_pe_skip_trampoline_code): Update.
10496 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10497 * infcall.c (get_function_name): Update.
10498 * infcmd.c (until_next_command): Update.
10499 * jit.c (jit_breakpoint_re_set_internal): Update.
10500 (jit_inferior_init): Update.
10501 * linespec.c (minsym_found): Update.
10502 (add_minsym): Update.
10503 * linux-fork.c (info_checkpoints_command): Update.
10504 * linux-nat.c (get_signo): Update.
10505 * linux-thread-db.c (inferior_has_bug): Update.
10506 * m32c-tdep.c (m32c_return_value): Update.
10507 (m32c_m16c_address_to_pointer): Update.
10508 (m32c_m16c_pointer_to_address): Update.
10509 * m32r-tdep.c (m32r_frame_this_id): Update.
10510 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10511 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10512 * maint.c (maintenance_translate_address): Update.
10513 * minsyms.c (add_minsym_to_hash_table): Update.
10514 (add_minsym_to_demangled_hash_table): Update.
10515 (msymbol_objfile): Update.
10516 (lookup_minimal_symbol): Update.
10517 (iterate_over_minimal_symbols): Update.
10518 (lookup_minimal_symbol_text): Update.
10519 (lookup_minimal_symbol_by_pc_name): Update.
10520 (lookup_minimal_symbol_solib_trampoline): Update.
10521 (lookup_minimal_symbol_by_pc_section_1): Update.
10522 (lookup_minimal_symbol_and_objfile): Update.
10523 (prim_record_minimal_symbol_full): Update.
10524 (compare_minimal_symbols): Update.
10525 (compact_minimal_symbols): Update.
10526 (build_minimal_symbol_hash_tables): Update.
10527 (install_minimal_symbols): Update.
10528 (terminate_minimal_symbol_table): Update.
10529 (find_solib_trampoline_target): Update.
10530 (minimal_symbol_upper_bound): Update.
10531 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10532 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10533 (mips_skip_pic_trampoline_code): Update.
10534 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10535 * objc-lang.c (selectors_info): Update.
10536 (classes_info): Update.
10537 (find_methods): Update.
10538 (find_imps): Update.
10539 (find_objc_msgsend): Update.
10540 * objfiles.c (objfile_relocate1): Update.
10541 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10542 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10543 * p-valprint.c (pascal_val_print): Update.
10544 * parse.c (write_exp_msymbol): Update.
10545 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10546 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10547 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10548 * printcmd.c (build_address_symbolic): Update.
10549 (sym_info): Update.
10550 (address_info): Update.
10551 * proc-service.c (ps_pglobal_lookup): Update.
10552 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10553 (find_pc_sect_psymtab): Update.
10554 * python/py-framefilter.c (py_print_frame): Update.
10555 * ravenscar-thread.c (get_running_thread_id): Update.
10556 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10557 Update.
10558 * remote.c (remote_check_symbols): Update.
10559 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10560 (rs6000_skip_trampoline_code): Update.
10561 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10562 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10563 * solib-dsbt.c (lm_base): Update.
10564 * solib-frv.c (lm_base): Update.
10565 (main_got): Update.
10566 * solib-irix.c (locate_base): Update.
10567 * solib-som.c (som_solib_create_inferior_hook): Update.
10568 (som_solib_desire_dynamic_linker_symbols): Update.
10569 (link_map_start): Update.
10570 * solib-spu.c (spu_enable_break): Update.
10571 (ocl_enable_break): Update.
10572 * solib-svr4.c (elf_locate_base): Update.
10573 (enable_break): Update.
10574 * spu-tdep.c (spu_get_overlay_table): Update.
10575 (spu_catch_start): Update.
10576 (flush_ea_cache): Update.
10577 * stabsread.c (define_symbol): Update.
10578 (scan_file_globals): Update.
10579 * stack.c (find_frame_funname): Update.
10580 (frame_info): Update.
10581 * symfile.c (simple_read_overlay_table): Update.
10582 (simple_overlay_update): Update.
10583 * symmisc.c (dump_msymbols): Update.
10584 * symtab.c (fixup_section): Update.
10585 (find_pc_sect_line): Update.
10586 (skip_prologue_sal): Update.
10587 (search_symbols): Update.
10588 (print_msymbol_info): Update.
10589 (rbreak_command): Update.
10590 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10591 (completion_list_objc_symbol): Update.
10592 (default_make_symbol_completion_list_break_on): Update.
10593 * tracepoint.c (scope_info): Update.
10594 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10595 (tui_get_begin_asm_address): Update.
10596 * valops.c (find_function_in_inferior): Update.
10597 * value.c (value_static_field): Update.
10598 (value_fn_field): Update.
10599
50e65b17
TT
106002014-02-26 Tom Tromey <tromey@redhat.com>
10601
10602 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10603 bound minimal symbols. Move code that knows about minsym
10604 table layout...
10605 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10606 function.
10607 * minsyms.h (minimal_symbol_upper_bound): Declare.
10608 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10609 minimal_symbol_upper_bound.
10610
1b588015
JB
106112014-02-27 Joel Brobecker <brobecker@adacore.com>
10612
10613 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10614 Use the type's name if its basic type does not have a tag.
10615
dbb9c2b1
JB
106162014-02-27 Joel Brobecker <brobecker@adacore.com>
10617
10618 * dwarf2read.c (read_subrange_type): Add comment.
10619
55426c9d
JB
106202014-02-27 Joel Brobecker <brobecker@adacore.com>
10621
10622 * dwarf2read.c (update_enumeration_type_from_children): New
10623 function, mostly extracted from process_structure_scope.
10624 (read_enumeration_type): Call update_enumeration_type_from_children.
10625 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10626 and flag_flag_enum fields.
10627
f2fce0ca
PA
106282014-02-26 Pedro Alves <palves@redhat.com>
10629
10630 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10631 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10632 to_xfer_partial method.
10633
7a44e40e
PA
106342014-02-26 Pedro Alves <palves@redhat.com>
10635
10636 * target.c (complete_target_initialization): Don't install
10637 default_xfer_partial as to_xfer_partial hook.
10638 (nomemory): Delete.
10639 (update_current_target): Don't INHERIT nor de_fault
10640 deprecated_xfer_memory. Delete de_fault macro.
10641 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10642 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10643 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10644 field.
10645
bd265cd0
PA
106462014-02-26 Pedro Alves <palves@redhat.com>
10647
10648 * go32-nat.c (my_write_child): New function.
10649 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10650 (go32_xfer_partial): New function.
10651 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10652 Instead install a to_xfer_partial hook.
10653
9d46c4e5
PA
106542014-02-26 Pedro Alves <palves@redhat.com>
10655
10656 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10657 to_xfer_partial helper. Rewrite.
10658 (procfs_xfer_partial): New function.
10659 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10660 Install a to_xfer_partial hook.
10661
a1583b1f
PA
106622014-02-26 Pedro Alves <palves@redhat.com>
10663
10664 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10665 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10666 (m32r_xfer_partial): New function.
10667 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10668 Install a to_xfer_partial hook.
10669
6df1b29f
PA
106702014-02-26 Pedro Alves <palves@redhat.com>
10671
10672 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10673 helper.
10674 (mips_xfer_partial): New function.
10675 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10676 hook. Install a to_xfer_partial hook.
10677
dc53a7ad
JB
106782014-02-26 Joel Brobecker <brobecker@adacore.com>
10679
10680 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10681 * gdbtypes.c (create_array_type_with_stride): New function,
10682 renaming create_array_type, but with an added parameter
10683 called "bit_stride".
10684 (create_array_type): Re-implement using
10685 create_array_type_with_stride.
10686 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10687 and DW_AT_bit_stride attributes.
10688
12ab52e9
PA
106892014-02-26 Pedro Alves <palves@redhat.com>
10690
10691 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10692 task-specific breakpoints.
10693
d16461ae
PA
106942014-02-25 Pedro Alves <palves@redhat.com>
10695
10696 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10697 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10698
a8b16220
SS
106992014-02-25 Stan Shebs <stan@codesourcery.com>
10700
10701 * defs.h: Annotate comments for Doxygen.
10702
b9e795ee
TT
107032014-02-25 Tom Tromey <tromey@redhat.com>
10704
10705 * target.h (target_ignore): Don't declare.
10706 * target.c (target_ignore): Remove.
10707
849c862e
JK
107082014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 PR gdb/16626
10711 * auto-load.c (auto_load_objfile_script_1): Change filename to
10712 debugfile.
10713
475109d8
JB
107142014-02-25 Joel Brobecker <brobecker@adacore.com>
10715
10716 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10717 documentation. Adjust prototype to match the target_ops
10718 to_xfer_partial method. Adjust implementation accordingly.
10719
e186c3bd
HZ
107202014-02-25 Hui Zhu <hui@codesourcery.com>
10721
10722 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10723 to_traceframe_info.
10724
6d451942
KB
107252014-02-25 Kevin Buettner <kevinb@redhat.com>
10726
041ab8b4 10727 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10728 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10729 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10730 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10731 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10732 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10733 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10734 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10735 New constants.
10736 (rl78_register_type): Use a data pointer type for SP and
10737 new pseudo registers mentioned above. Use a 16 bit integer
10738 type for all other register pairs.
10739 (rl78_register_name, rl78_g10_register_name): Update for
10740 new pseudo registers.
10741 (rl78_pseudo_register_read): Likewise.
10742 (rl78_pseudo_register_write): Likewise.
10743 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10744 to the newly added pseudo registers.
10745
eddf0bae
DE
107462014-02-24 Doug Evans <dje@google.com>
10747
10748 * value.c (record_latest_value): Fix comment.
10749 * printcmd.c (print_command_1): Remove code to handle -1 return from
10750 record_latest_value.
10751
e96027e0
PA
107522014-02-24 Pedro Alves <palves@redhat.com>
10753
10754 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10755 deprecated_xfer_memory hook.
10756 (procfs_xfer_partial): Call procfs_xfer_memory instead
10757 of the deprecated_xfer_memory target hook.
10758 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10759 helper.
10760
0837c976
YZ
107612014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10762
10763 * windows-nat.c (windows_xfer_shared_libraries): Return
10764 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10765 requested object is TARGET_OBJECT_LIBRARIES.
10766
bc113b4e
YQ
107672014-02-24 Yao Qi <yao@codesourcery.com>
10768
10769 * target.h (enum target_xfer_status)
10770 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10771 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10772 explicitly. New.
10773 * corefile.c (memory_error_message): User updated.
10774 * exec.c (section_table_read_available_memory): Likewise.
10775 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10776 * target.c (target_xfer_status_to_string): Likewise.
10777 (raw_memory_xfer_partial): Likewise.
10778 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10779 * valops.c (read_value_memory): Likewise.
10780 * exec.h: Update comments.
10781
01cb8804
YQ
107822014-02-24 Yao Qi <yao@codesourcery.com>
10783
10784 * target.c (target_xfer_status_to_string): Rename argument err
10785 to status.
10786 * target.h (target_xfer_status_to_string): Update declaration.
10787 Replace target_xfer_error_to_string with
10788 target_xfer_status_to_string in comment.
10789
93063aa6
YQ
107902014-02-24 Yao Qi <yao@codesourcery.com>
10791
10792 * mips-linux-nat.c (super_close): Update its type.
10793 (mips_linux_close): Pass 'self' to super_close.
10794
5c328c05
YQ
107952014-02-24 Yao Qi <yao@codesourcery.com>
10796
10797 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10798 * corefile.c (read_memory): Adjusted.
10799 * target.c (target_write_with_progress): Adjusted.
10800
f73023dd
YQ
108012014-02-23 Yao Qi <yao@codesourcery.com>
10802
10803 Revert two patches:
10804
10805 2013-10-25 Yao Qi <yao@codesourcery.com>
10806
10807 * remote.c (remote_traceframe_info): Return early if
10808 traceframe is not selected.
10809
10810 2013-07-19 Yao Qi <yao@codesourcery.com>
10811
10812 * target.c (update_current_target): Change the default action
10813 of 'to_traceframe_info' from tcomplain to return_zero.
10814 * target.h (struct target_ops) <to_traceframe_info>: Add more
10815 comments.
10816
5a2eb0ef
YQ
108172014-02-23 Yao Qi <yao@codesourcery.com>
10818
10819 * valops.c (read_value_memory): Rewrite it. Call
10820 target_xfer_partial in a loop.
10821 * exec.h (section_table_available_memory): Remove declaration.
10822 Move comments to ...
10823 * exec.c (section_table_available_memory): ... here. Make it
10824 static.
10825
1ee79381
YQ
108262014-02-23 Yao Qi <yao@codesourcery.com>
10827
10828 * exec.c (section_table_read_available_memory): New function.
10829 * exec.h (section_table_read_available_memory): Declare.
10830 * ctf.c (ctf_xfer_partial): Call
10831 section_table_read_available_memory.
10832 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10833
1ca49d37
YQ
108342014-02-23 Yao Qi <yao@codesourcery.com>
10835
10836 * ctf.c (ctf_xfer_partial): Move code to ...
10837 * exec.c (exec_read_partial_read_only): ... it. New function.
10838 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10839 * tracefile.c: Include "exec.h".
10840 * exec.h (exec_read_partial_read_only): Declare.
10841
a283690e
YQ
108422014-02-23 Yao Qi <yao@codesourcery.com>
10843
10844 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10845 (tfile_has_memory): Remove.
10846 (init_tfile_ops): Don't set fields to_has_all_memory and
10847 to_has_memory of tfile_ops.
10848 * tracefile.c (tracefile_has_all_memory): New function.
10849 (tracefile_has_memory): New function.
10850 (init_tracefile_ops): Initialize fields to_has_all_memory and
10851 to_has_memory of 'ops'.
10852
12e03cd0
YQ
108532014-02-23 Yao Qi <yao@codesourcery.com>
10854
10855 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10856 (ctf_thread_alive, ctf_get_trace_status): Remove.
10857 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10858 init_tracefile_ops.
10859 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10860 (tfile_has_stack, tfile_has_registers): Remove.
10861 (tfile_thread_alive): Remove.
10862 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10863 init_tracefile_ops.
10864 * tracefile.c (tracefile_has_stack): New function.
10865 (tracefile_has_registers): New function.
10866 (tracefile_thread_alive): New function.
10867 (tracefile_get_trace_status): New function.
10868 (init_tracefile_ops): New function.
10869 * tracefile.h (init_tracefile_ops): Declare.
10870
11395323
YQ
108712014-02-23 Yao Qi <yao@codesourcery.com>
10872
10873 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10874 (O_LARGEFILE): Likewise.
10875 (tfile_ops): Likewise.
10876 (TRACE_HEADER_SIZE): Likewise.
10877 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10878 (cur_data_size): Likewise.
10879 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10880 (tfile_close, tfile_files_info): Likewise.
10881 (tfile_get_trace_status): Likewise.
10882 (tfile_get_tracepoint_status): Likewise.
10883 (tfile_get_traceframe_address): Likewise.
10884 (tfile_trace_find, match_blocktype): Likewise.
10885 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10886 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10887 (tfile_get_trace_state_variable_value): Likewise.
10888 (tfile_has_all_memory, tfile_has_memory): Likewise.
10889 (tfile_has_stack, tfile_has_registers): Likewise.
10890 (tfile_thread_alive, build_traceframe_info): Likewise.
10891 (tfile_traceframe_info, init_tfile_ops): Likewise.
10892 (_initialize_tracepoint): Don't call init_tfile_ops
10893 and add_target_with_completer.
10894 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10895 exec.h, completer.h and filenames.h.
10896 (_initialize_tracefile_tfile): New function.
10897
7951c4eb
YQ
108982014-02-23 Yao Qi <yao@codesourcery.com>
10899
10900 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10901 tracefile-tfile.o.
10902 (HFILES_NO_SRCDIR): Add tracefile.h.
10903 * ctf.c: Include "tracefile.h".
10904 * tracefile.h: New file.
10905 * tracefile.c: New file
10906 * tracefile-tfile.c: New file.
10907 * tracepoint.c: Include "tracefile.h".
10908 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10909 (stop_reason_names): Add const.
10910 (trace_file_writer_xfree): Move it to tracefile.c.
10911 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10912 (trace_save_ctf): Likewise.
10913 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10914 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10915 (tfile_write_header, tfile_write_regblock_type): Likewise.
10916 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10917 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10918 (tfile_write_raw_data, tfile_end): Likewise.
10919 (tfile_trace_file_writer_new): Likewise.
10920 (free_uploaded_tp): Make it extern.
10921 (free_uploaded_tsv): Make it extern.
10922 (_initialize_tracepoint): Move code to register command 'tsave'
10923 to tracefile.c.
10924 * tracepoint.h (stop_reason_names): Declare.
10925 (struct trace_frame_write_ops): Move it to tracefile.h.
10926 (struct trace_file_write_ops): Likewise.
10927 (struct trace_file_writer): Likewise.
10928 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10929
184cd072
JK
109302014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 PR gdb/16594
10933 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10934 process name.
10935 (get_cores_used_by_process): New parameter num_cores, use it.
10936 (linux_xfer_osdata_processes): Pass num_cores to it.
10937 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10938 process name.
10939
c63528fc
AK
109402014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10941
10942 * target.c (memory_xfer_partial): Fix length arg in call to
10943 breakpoint_xfer_memory.
10944
d7b30f67
SDJ
109452014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10946
10947 PR tdep/16397
10948 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10949 number comes after the + or - signs. Adjust length of register
10950 name to be extracted.
10951
8838afaf
TT
109522014-02-20 Tom Tromey <tromey@redhat.com>
10953
10954 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10955 (ada_varobj_ops): Mark "extern".
10956
05227d14
TT
109572014-02-20 Tom Tromey <tromey@redhat.com>
10958
10959 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10960
1254eefc
DE
109612014-02-20 Doug Evans <xdje42@gmail.com>
10962
10963 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10964 All callers updated.
10965 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10966 All callers updated.
10967 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10968 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10969
adde2bff
DE
109702014-02-20 lin zuojian <manjian2006@gmail.com>
10971 Joel Brobecker <brobecker@adacore.com>
10972 Doug Evans <xdje42@gmail.com>
10973
10974 PR symtab/16581
10975 * dwarf2read.c (struct die_info): New member in_process.
10976 (reset_die_in_process): New function.
10977 (process_die): Set it at the start, reset when returning.
10978 (inherit_abstract_dies): Only call process_die if origin_child_die
10979 not already being processed.
10980
3be75f87
JB
109812014-02-20 Joel Brobecker <brobecker@adacore.com>
10982
10983 * windows-nat.c (handle_unload_dll): Add function documentation.
10984 (do_initial_windows_stuff): Add comment explaining why we wait
10985 until after inferior initialization has finished before
10986 processing all DLLs.
10987
47f7ffdb
JB
109882014-02-20 Joel Brobecker <brobecker@adacore.com>
10989
10990 * windows-nat.c (get_module_name): Delete.
10991 (windows_get_exec_module_filename): New function, mostly
10992 inspired from get_module_name.
10993 (windows_pid_to_exec_file): Replace call to get_module_name
10994 by call to windows_get_exec_module_filename.
10995
1cd9feab
JB
109962014-02-20 Joel Brobecker <brobecker@adacore.com>
10997
10998 * windows-nat.c (handle_load_dll): Rewrite this function's
10999 introductory comment. Remove code using get_module_name
11000 to get the DLL's name.
11001
ea39ad35
JB
110022014-02-20 Joel Brobecker <brobecker@adacore.com>
11003
11004 * windows-nat.c (get_windows_debug_event): Ignore
11005 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11006 if windows_initialization_done == 0.
11007 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11008 Adjust implementation to always load all DLLs.
11009 (do_initial_windows_stuff): Replace call to
11010 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11011
95060284
JB
110122014-02-20 Joel Brobecker <brobecker@adacore.com>
11013
11014 * windows-nat.c (_initialize_windows_nat): Deprecate the
11015 "dll-symbols" command. Turn the "add-shared-symbol-files"
11016 and "assf" aliases into commands, and deprecate them as well.
11017 * NEWS: Add entry explaining that "dll-symbols" and its two
11018 aliases are now deprecated.
11019
8d4fdb12
JB
110202014-02-20 Joel Brobecker <brobecker@adacore.com>
11021
11022 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11023 new-line in debug string. Remove trailing spaces.
11024
1b281443
SS
110252014-02-19 Stan Shebs <stan@codesourcery.com>
11026
11027 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11028
f7bd0f78
SC
110292014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11030
11031 * NEWS: Add entry for the new feature
11032 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11033 and class values.
11034
399ebc3d
SS
110352014-02-19 Stan Shebs <stan@codesourcery.com>
11036
11037 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11038
c658158d
PA
110392014-02-19 Pedro Alves <palves@redhat.com>
11040
11041 * common/ptid.h (struct ptid): Mention that process_stratum
11042 targets should prefer ptid.lwp.
11043
ba348170
PA
110442014-02-19 Pedro Alves <palves@redhat.com>
11045
11046 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11047 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11048 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11049 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11050 store remote thread ids rather than ptid.tid.
11051 (_initialize_remote): Adjust.
11052
ac01945b
TT
110532014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target.c (target_get_unwinder): Rewrite.
11056 (target_get_tailcall_unwinder): Rewrite.
11057 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11058 (record_btrace_to_get_tailcall_unwinder): New function.
11059 (init_record_btrace_ops): Update.
11060 * target.h (struct target_ops) <to_get_unwinder,
11061 to_get_tailcall_unwinder>: Now function pointers. Use
11062 TARGET_DEFAULT_RETURN.
11063
8476dc92
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11067 argument.
11068 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11069
c0eca49f
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11073 directly.
11074 * target-delegates.c: Rebuild.
11075 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11076 TARGET_DEFAULT_FUNC.
11077 * target.c (default_target_decr_pc_after_break): Rename from
11078 forward_target_decr_pc_after_break. Simplify.
11079 (target_decr_pc_after_break): Rely on delegation.
11080
596b6b39
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.c (update_current_target): Do not INHERIT to_doc or
11084 to_magic. Do not de_fault to_open or to_close.
11085
b427c1bc
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * gcore.h (objfile_find_memory_regions): Declare.
11089 * gcore.c (objfile_find_memory_regions): No longer static. Add
11090 "self" argument.
11091 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11092 * exec.c: Include gcore.h.
11093 (exec_set_find_memory_regions): Remove.
11094 (exec_find_memory_regions): Remove.
11095 (exec_do_find_memory_regions): Remove.
11096 (init_exec_ops): Update.
11097 * defs.h (exec_set_find_memory_regions): Remove.
11098
9b144037
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target-delegates.c: Rebuild.
11102 * target.h (struct target_ops) <to_extra_thread_info,
11103 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11104 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11105 not 0, in TARGET_DEFAULT_RETURN.
11106
555bbdeb
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target.c (complete_target_initialization): Remove casts. Use
11110 return_zero_has_execution.
11111 (return_zero): Add "ignore" argument.
11112 (return_zero_has_execution): New function.
11113 (init_dummy_target): Remove casts. Use
11114 return_zero_has_execution.
11115
be4ddd36
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target.c (update_current_target): Update comments. Do not
11119 INHERIT to_stratum.
11120
2117c711
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11124 needed.
11125 * corelow.c (core_read_description): Delegate when needed.
11126 * remote.c (remote_read_description): Delegate when needed.
11127 * target-delegates.c: Rebuild.
11128 * target.c (target_read_description): Rewrite.
11129 * target.h (struct target_ops) <to_read_description>: Update
11130 comment. Use TARGET_DEFAULT_RETURN.
11131
e88ef65c
TT
111322014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target-delegates.c: Rebuild.
11135 * target.c (update_current_target): Don't inherit or default
11136 to_can_run.
11137 (find_default_run_target): Check against delegate_can_run.
11138 * target.h (struct target_ops) <to_can_run>: Use
11139 TARGET_DEFAULT_RETURN.
11140
86a0854a
TT
111412014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target-delegates.c: Rebuild.
11144 * target.c (target_disconnect): Unconditionally delegate.
11145 * target.h (struct target_ops) <to_disconnect>: Use
11146 TARGET_DEFAULT_NORETURN.
11147
ee97f592
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * record.c (record_stop): Unconditionally delegate.
11151 * target-delegates.c: Rebuild.
11152 * target.c (target_stop_recording): Unconditionally delegate.
11153 * target.h (struct target_ops) <to_stop_recording>: Use
11154 TARGET_DEFAULT_IGNORE.
11155
6dc7fcf4
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (target_enable_btrace): Unconditionally delegate.
11160 * target.h (struct target_ops) <to_enable_btrace>: Use
11161 TARGET_DEFAULT_NORETURN.
11162
eb5b20d4
TT
111632014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target-delegates.c: Rebuild.
11166 * target.c (target_read_btrace): Unconditionally delegate.
11167 * target.h (struct target_ops) <to_read_btrace>: Use
11168 TARGET_DEFAULT_NORETURN.
11169
9ace480d
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target-delegates.c: Rebuild.
11173 * target.c (target_teardown_btrace): Unconditionally delegate.
11174 * target.h (struct target_ops) <to_teardown_btrace>: Use
11175 TARGET_DEFAULT_NORETURN.
11176
8dc292d3
TT
111772014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (target_disable_btrace): Unconditionally delegate.
11181 * target.h (struct target_ops) <to_disable_btrace>: Use
11182 TARGET_DEFAULT_NORETURN.
11183
58a5184e
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (default_search_memory): New function.
11188 (simple_search_memory): Update comment.
11189 (target_search_memory): Unconditionally delegate.
11190 * target.h (struct target_ops) <to_search_memory>: Use
11191 TARGET_DEFAULT_FUNC.
11192
8de71aab
TT
111932014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * auxv.c (default_auxv_parse): No longer static.
11196 (target_auxv_parse): Unconditionally delegate.
11197 * auxv.h (default_auxv_parse): Declare.
11198 * target-delegates.c: Rebuild.
11199 * target.c: Include auxv.h.
11200 * target.h (struct target_ops) <to_auxv_parse>: Use
11201 TARGET_DEFAULT_FUNC.
11202
6b2c5a57
TT
112032014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (target_memory_map): Unconditionally delegate.
11207 * target.h (struct target_ops) <to_memory_map>: Use
11208 TARGET_DEFAULT_RETURN.
11209
cbffc065
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_thread_alive): Unconditionally delegate.
11214 * target.h (struct target_ops) <to_thread_alive>: Use
11215 TARGET_DEFAULT_RETURN.
11216
f09e2107
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (target_save_record): Unconditionally delegate.
11221 * target.h (struct target_ops) <to_save_record>: Use
11222 TARGET_DEFAULT_NORETURN.
11223
07366925
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (target_delete_record): Unconditionally delegate.
11228 * target.h (struct target_ops) <to_delete_record>: Use
11229 TARGET_DEFAULT_NORETURN.
11230
dd2e9d25
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target-delegates.c: Rebuild.
11234 * target.c (target_record_is_replaying): Unconditionally
11235 delegate.
11236 * target.h (struct target_ops) <to_record_is_replaying>: Use
11237 TARGET_DEFAULT_RETURN.
11238
671e76cc
TT
112392014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_goto_record_begin): Unconditionally delegate.
11243 * target.h (struct target_ops) <to_goto_record_begin>: Use
11244 TARGET_DEFAULT_NORETURN.
11245
e9179bb3
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (target_goto_record_end): Unconditionally delegate.
11250 * target.h (struct target_ops) <to_goto_record_end>: Use
11251 TARGET_DEFAULT_NORETURN.
11252
05969c84
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (target_goto_record): Unconditionally delegate.
11257 * target.h (struct target_ops) <to_goto_record>: Use
11258 TARGET_DEFAULT_NORETURN.
11259
3679abfa
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (target_insn_history): Unconditionally delegate.
11264 * target.h (struct target_ops) <to_insn_history>: Use
11265 TARGET_DEFAULT_NORETURN.
11266
8444ab58
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target-delegates.c: Rebuild.
11270 * target.c (target_insn_history_from): Unconditionally delegate.
11271 * target.h (struct target_ops) <to_insn_history_from>: Use
11272 TARGET_DEFAULT_NORETURN.
11273
c29302cc
TT
112742014-02-19 Tom Tromey <tromey@redhat.com>
11275
11276 * target-delegates.c: Rebuild.
11277 * target.c (target_insn_history_range): Unconditionally delegate.
11278 * target.h (struct target_ops) <to_insn_history_range>: Use
11279 TARGET_DEFAULT_NORETURN.
11280
170049d4
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (target_call_history): Unconditionally delegate.
11285 * target.h (struct target_ops) <to_call_history>: Use
11286 TARGET_DEFAULT_NORETURN.
11287
16fc27d6
TT
112882014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_call_history_from): Unconditionally delegate.
11292 * target.h (struct target_ops) <to_call_history_from>: Use
11293 TARGET_DEFAULT_NORETURN.
11294
115d9817
TT
112952014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (target_call_history_range): Unconditionally delegate.
11299 * target.h (struct target_ops) <to_call_history_range>: Use
11300 TARGET_DEFAULT_NORETURN.
11301
eb276a6b
TT
113022014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target-delegates.c: Rebuild.
11305 * target.c (target_verify_memory): Unconditionally delegate.
11306 * target.h (struct target_ops) <to_verify_memory>: Use
11307 TARGET_DEFAULT_NORETURN.
11308
9e538d0d
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (target_core_of_thread): Unconditionally delegate.
11313 * target.h (struct target_ops) <to_core_of_thread>: Use
11314 TARGET_DEFAULT_RETURN.
11315
f6fb2925
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target-delegates.c: Rebuild.
11319 * target.c (target_flash_done): Unconditionally delegate.
11320 * target.h (struct target_ops) <to_flash_done>: Use
11321 TARGET_DEFAULT_NORETURN.
11322
e8a6c6ac
TT
113232014-02-19 Tom Tromey <tromey@redhat.com>
11324
11325 * target-delegates.c: Rebuild.
11326 * target.c (target_flash_erase): Unconditionally delegate.
11327 * target.h (struct target_ops) <to_flash_erase>: Use
11328 TARGET_DEFAULT_NORETURN.
11329
7e35c012
TT
113302014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * target-delegates.c: Rebuild.
11333 * target.c (target_get_section_table): Unconditionally delegate.
11334 * target.h (struct target_ops) <to_get_section_table>: Use
11335 TARGET_DEFAULT_RETURN.
11336
770234d3
TT
113372014-02-19 Tom Tromey <tromey@redhat.com>
11338
11339 * target-delegates.c: Rebuild.
11340 * target.c (target_pid_to_str): Unconditionally delegate.
11341 (init_dummy_target): Don't initialize to_pid_to_str.
11342 (default_pid_to_str): Rename from dummy_pid_to_str.
11343 * target.h (struct target_ops) <to_pid_to_str>: Use
11344 TARGET_DEFAULT_FUNC.
11345
09b0dc2b
TT
113462014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target-delegates.c: Rebuild.
11349 * target.c (target_find_new_threads): Unconditionally delegate.
11350 * target.h (struct target_ops) <to_find_new_threads>: Use
11351 TARGET_DEFAULT_RETURN.
11352
7d4f8efa
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target-delegates.c: Rebuild.
11356 * target.c (target_program_signals): Unconditionally delegate.
11357 * target.h (struct target_ops) <to_program_signals>: Use
11358 TARGET_DEFAULT_IGNORE.
11359
035cad7f
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (target_pass_signals): Unconditionally delegate.
11364 * target.h (struct target_ops) <to_pass_signals>: Use
11365 TARGET_DEFAULT_IGNORE.
11366
8d657035
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (default_mourn_inferior): New function.
11371 (target_mourn_inferior): Unconditionally delegate.
11372 * target.h (struct target_ops) <to_mourn_inferior>: Use
11373 TARGET_DEFAULT_FUNC.
11374
098dba18
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (default_follow_fork): New function.
11379 (target_follow_fork): Unconditionally delegate.
11380 * target.h (struct target_ops) <to_follow_fork>: Use
11381 TARGET_DEFAULT_FUNC.
11382
423a4807
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (target_kill): Unconditionally delegate.
11387 * target.h (struct target_ops) <to_kill>: Use
11388 TARGET_DEFAULT_NORETURN.
11389
6c7e5e5c
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (target_masked_watch_num_registers): Unconditionally
11394 delegate.
11395 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11396 Use TARGET_DEFAULT_RETURN.
11397
8b1c364c
TT
113982014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target-delegates.c: Rebuild.
11401 * target.c (target_remove_mask_watchpoint): Unconditionally
11402 delegate.
11403 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11404 TARGET_DEFAULT_RETURN.
11405
cd4ae029
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (target_insert_mask_watchpoint): Unconditionally
11410 delegate.
11411 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11412 TARGET_DEFAULT_RETURN.
11413
a134316b
TT
114142014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (target_ranged_break_num_registers): Unconditionally
11418 delegate.
11419 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11420 Use TARGET_DEFAULT_RETURN.
11421
ad5989bd
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (target_fetch_registers): Unconditionally delegate.
11426 * target.h (struct target_ops) <to_fetch_registers>: Use
11427 TARGET_DEFAULT_NORETURN.
11428
46ee7e8d
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target-delegates.c: Rebuild.
11432 * target.c (update_current_target): Don't inherit or default
11433 to_stop.
11434 * target.h (struct target_ops) <to_stop>: Use
11435 TARGET_DEFAULT_IGNORE.
11436
843f59ed
TT
114372014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target-delegates.c: Rebuild.
11440 * target.c (update_current_target): Don't inherit or default
11441 to_can_run_breakpoint_commands.
11442 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11443 Use TARGET_DEFAULT_RETURN.
11444
ccfde2a0
TT
114452014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (update_current_target): Don't inherit or default
11449 to_supports_evaluation_of_breakpoint_conditions.
11450 * target.h (struct target_ops)
11451 <to_supports_evaluation_of_breakpoint_conditions>: Use
11452 TARGET_DEFAULT_RETURN.
11453
0de91722
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_augmented_libraries_svr4_read.
11459 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11460 Use TARGET_DEFAULT_RETURN.
11461
9a7d8b48
TT
114622014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_can_use_agent.
11467 * target.h (struct target_ops) <to_can_use_agent>: Use
11468 TARGET_DEFAULT_RETURN.
11469
d9db5b21
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_use_agent.
11475 * target.h (struct target_ops) <to_use_agent>: Use
11476 TARGET_DEFAULT_NORETURN.
11477
92155eeb
TT
114782014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_traceframe_info.
11483 (return_null): Remove.
11484 * target.h (struct target_ops) <to_traceframe_info>: Use
11485 TARGET_DEFAULT_RETURN.
11486
d6522a22
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_static_tracepoint_markers_by_strid.
11492 * target.h (struct target_ops)
11493 <to_static_tracepoint_markers_by_strid>: Use
11494 TARGET_DEFAULT_NORETURN.
11495
4c3e4425
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_static_tracepoint_marker_at.
11501 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11502 Use TARGET_DEFAULT_RETURN.
11503
dcd6917f
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_set_permissions.
11509 * target.h (struct target_ops) <to_set_permissions>: Use
11510 TARGET_DEFAULT_IGNORE.
11511
22bcceee
TT
115122014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_get_tib_address.
11517 * target.h (struct target_ops) <to_get_tib_address>: Use
11518 TARGET_DEFAULT_NORETURN.
11519
8586ccaa
TT
115202014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_set_trace_notes.
11525 * target.h (struct target_ops) <to_set_trace_notes>: Use
11526 TARGET_DEFAULT_RETURN.
11527
91df8d1d
TT
115282014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't initialize
11532 to_set_trace_buffer_size.
11533 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11534 TARGET_DEFAULT_IGNORE.
11535
8d526939
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_set_circular_trace_buffer.
11541 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11542 TARGET_DEFAULT_IGNORE.
11543
0bcfeddf
TT
115442014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_set_disconnected_tracing.
11549 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11550 TARGET_DEFAULT_IGNORE.
11551
9249843f
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_get_min_fast_tracepoint_insn_len.
11557 (return_minus_one): Remove.
11558 * target.h (struct target_ops)
11559 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11560
ace92e7d
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_get_raw_trace_data.
11566 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11567 TARGET_DEFAULT_NORETURN.
11568
08120467
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_upload_trace_state_variables.
11574 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11575 Use TARGET_DEFAULT_RETURN.
11576
1e949b00
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_upload_tracepoints.
11582 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11583 TARGET_DEFAULT_RETURN.
11584
a2e6c147
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_save_trace_data.
11590 * target.h (struct target_ops) <to_save_trace_data>: Use
11591 TARGET_DEFAULT_NORETURN.
11592
959bcd0b
TT
115932014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_get_trace_state_variable_value.
11598 * target.h (struct target_ops)
11599 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11600
afc94e66
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_trace_find.
11606 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11607
e51c07ea
TT
116082014-02-19 Tom Tromey <tromey@redhat.com>
11609
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11612 to_trace_stop.
11613 * target.h (struct target_ops) <to_trace_stop>: Use
11614 TARGET_DEFAULT_NORETURN.
11615
6fea14cd
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_get_tracepoint_status.
11621 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11622 TARGET_DEFAULT_NORETURN.
11623
4072d4ff
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_get_trace_status.
11629 * target.h (struct target_ops) <to_get_trace_status>: Use
11630 TARGET_DEFAULT_RETURN.
11631
25da2e80
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_trace_start.
11637 * target.h (struct target_ops) <to_trace_start>: Use
11638 TARGET_DEFAULT_NORETURN.
11639
86dd181d
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_trace_set_readonly_regions.
11645 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11646 Use TARGET_DEFAULT_NORETURN.
11647
05c41993
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_disable_tracepoint.
11653 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11654 TARGET_DEFAULT_NORETURN.
11655
151f70f1
TT
116562014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_enable_tracepoint.
11661 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11662 TARGET_DEFAULT_NORETURN.
11663
94eb98b9
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11668 to_download_trace_state_variable.
11669 * target.h (struct target_ops) <to_download_trace_state_variable>:
11670 Use TARGET_DEFAULT_NORETURN.
11671
719acc4a
TT
116722014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target-delegates.c: Rebuild.
11675 * target.c (update_current_target): Don't inherit or default
11676 to_can_download_tracepoint.
11677 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11678 TARGET_DEFAULT_RETURN.
11679
9a980a22
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target-delegates.c: Rebuild.
11683 * target.c (update_current_target): Don't inherit or default
11684 to_download_tracepoint.
11685 * target.h (struct target_ops) <to_download_tracepoint>: Use
11686 TARGET_DEFAULT_NORETURN.
11687
5536135b
TT
116882014-02-19 Tom Tromey <tromey@redhat.com>
11689
11690 * target-delegates.c: Rebuild.
11691 * target.c (update_current_target): Don't inherit or default
11692 to_trace_init.
11693 * target.h (struct target_ops) <to_trace_init>: Use
11694 TARGET_DEFAULT_RETURN.
11695
9409d39e
TT
116962014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target-delegates.c: Rebuild.
11699 * target.c (update_current_target): Don't inherit or default
11700 to_supports_string_tracing.
11701 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11702 TARGET_DEFAULT_RETURN.
11703
aab1b22d
TT
117042014-02-19 Tom Tromey <tromey@redhat.com>
11705
11706 * target-delegates.c: Rebuild.
11707 * target.c (update_current_target): Don't inherit or default
11708 to_supports_enable_disable_tracepoint.
11709 * target.h (struct target_ops)
11710 <to_supports_enable_disable_tracepoint>: Use
11711 TARGET_DEFAULT_RETURN.
11712
a7304748
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_supports_multi_process.
11718 * target.h (struct target_ops) <to_supports_multi_process>: Use
11719 TARGET_DEFAULT_RETURN.
11720
4229b31d
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_get_ada_task_ptid.
11726 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11727 TARGET_DEFAULT_FUNC.
11728
43eba180
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_thread_architecture.
11734 * target.h (struct target_ops) <to_thread_architecture>: Use
11735 TARGET_DEFAULT_FUNC.
11736
fe31bf5b
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_execution_direction.
11742 * target.h (struct target_ops) <to_execution_direction>: Use
11743 TARGET_DEFAULT_FUNC.
11744
53e1cfc7
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_can_execute_reverse.
11750 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11751 TARGET_DEFAULT_RETURN.
11752 (target_can_execute_reverse): Unconditionally delegate.
11753
9bb9d61d
TT
117542014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_goto_bookmark.
11759 (dummy_goto_bookmark): Remove.
11760 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11761 * target.h (struct target_ops) <to_goto_bookmark>: Use
11762 TARGET_DEFAULT_NORETURN.
11763
3dbafbbb
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target-delegates.c: Rebuild.
11767 * target.c (update_current_target): Don't inherit or default
11768 to_get_bookmark.
11769 (dummy_get_bookmark): Remove.
11770 (init_dummy_target): Don't inherit or default to_get_bookmark.
11771 * target.h (struct target_ops) <to_get_bookmark>: Use
11772 TARGET_DEFAULT_NORETURN
11773
16f796b1
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_make_corefile_notes.
11779 (init_dummy_target): Don't initialize to_make_corefile_notes.
11780 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11781 TARGET_DEFAULT_FUNC.
11782
0b5a2719
TT
117832014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target-delegates.c: Rebuild.
11786 * target.c (update_current_target): Don't inherit or default
11787 to_find_memory_regions.
11788 (init_dummy_target): Don't initialize to_find_memory_regions.
11789 * target.h (struct target_ops) <to_find_memory_regions>: Use
11790 TARGET_DEFAULT_FUNC.
11791
d9cb0195
TT
117922014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_log_command.
11797 * target.h (struct target_ops) <to_log_command>: Use
11798 TARGET_DEFAULT_IGNORE.
11799 (target_log_command): Unconditionally delegate.
11800
830ca330
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_pid_to_exec_file.
11806 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11807 TARGET_DEFAULT_RETURN.
11808
825828fc
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_thread_name.
11814 (target_thread_name): Unconditionally delegate.
11815 * target.h (struct target_ops) <to_thread_name>: Use
11816 TARGET_DEFAULT_RETURN.
11817
4a7e6dda
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target-delegates.c: Rebuild.
11821 * target.c (update_current_target): Don't inherit or default
11822 to_extra_thread_info.
11823 * target.h (struct target_ops) <to_extra_thread_info>: Use
11824 TARGET_DEFAULT_RETURN.
11825
0db88c1d
TT
118262014-02-19 Tom Tromey <tromey@redhat.com>
11827
11828 * target-delegates.c: Rebuild.
11829 * target.c (update_current_target): Don't inherit or default
11830 to_has_exited.
11831 * target.h (struct target_ops) <to_has_exited>: Use
11832 TARGET_DEFAULT_RETURN..
11833
6a9fa051
TT
118342014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_set_syscall_catchpoint.
11839 (return_one): Remove.
11840 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11841 TARGET_DEFAULT_RETURN.
11842
62f64d7a
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_insert_exec_catchpoint.
11848 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11849 TARGET_DEFAULT_RETURN.
11850
cda0f38c
TT
118512014-01-08 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_insert_exec_catchpoint.
11856 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11857 TARGET_DEFAULT_RETURN.
11858
95c3375e
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_remove_vfork_catchpoint.
11864 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11865 TARGET_DEFAULT_RETURN.
11866
7e18a8dc
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_insert_vfork_catchpoint.
11872 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11873 TARGET_DEFAULT_RETURN.
11874
e1a21fb7
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target-delegates.c: Rebuild.
11878 * target.c (update_current_target): Don't inherit or default
11879 to_remove_fork_catchpoint.
11880 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11881 TARGET_DEFAULT_RETURN.
11882
5958ebeb
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_insert_fork_catchpoint.
11888 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11889 TARGET_DEFAULT_RETURN.
11890
340ba4bf
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_post_startup_inferior.
11896 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11897 TARGET_DEFAULT_IGNORE.
11898
7634da87
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_load.
11904 * target.h (struct target_ops) <to_load>: Use
11905 TARGET_DEFAULT_NORETURN.
11906
e19e919f
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (update_current_target): Don't inherit or default
11911 to_terminal_info.
11912 * target.h (struct target_ops) <to_terminal_info>: Use
11913 TARGET_DEFAULT_FUNC.
11914
c6ea8f79
TT
119152014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target-delegates.c: Rebuild.
11918 * target.c (update_current_target): Don't inherit or default
11919 to_terminal_save_ours.
11920 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11921 TARGET_DEFAULT_IGNORE.
11922
e4a733f1
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target-delegates.c: Rebuild.
11926 * target.c (update_current_target): Don't inherit or default
11927 to_terminal_ours.
11928 * target.h (struct target_ops) <to_terminal_ours>: Use
11929 TARGET_DEFAULT_IGNORE.
11930
74fcbef9
TT
119312014-02-19 Tom Tromey <tromey@redhat.com>
11932
11933 * target-delegates.c: Rebuild.
11934 * target.c (update_current_target): Don't inherit or default
11935 to_terminal_ours_for_output.
11936 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11937 TARGET_DEFAULT_IGNORE.
11938
ddeaacc9
TT
119392014-02-19 Tom Tromey <tromey@redhat.com>
11940
11941 * target-delegates.c: Rebuild.
11942 * target.c (update_current_target): Don't inherit or default
11943 to_terminal_inferior.
11944 * target.h (struct target_ops) <to_terminal_inferior>: Use
11945 TARGET_DEFAULT_IGNORE.
11946
0343661d
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target-delegates.c: Rebuild.
11950 * target.c (update_current_target): Don't inherit or default
11951 to_terminal_init.
11952 * target.h (struct target_ops) <to_terminal_init>: Use
11953 TARGET_DEFAULT_IGNORE.
11954
77cdffe9
TT
119552014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target-delegates.c: Rebuild.
11958 * target.c (update_current_target): Don't inherit or default
11959 to_can_accel_watchpoint_condition.
11960 * target.h (struct target_ops)
11961 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11962
d03655e4
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * target-delegates.c: Rebuild.
11966 * target.c (update_current_target): Don't inherit or default
11967 to_region_ok_for_hw_watchpoint.
11968 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11969 Use TARGET_DEFAULT_FUNC.
11970
65f160a9
TT
119712014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * target-delegates.c: Rebuild.
11974 * target.c (update_current_target): Don't inherit or default
11975 to_watchpoint_addr_within_range.
11976 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11977 Use TARGET_DEFAULT_FUNC.
11978
61dd109f
TT
119792014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target-delegates.c: Rebuild.
11982 * target.c (update_current_target): Don't inherit or default
11983 to_remove_watchpoint.
11984 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11985 TARGET_DEFAULT_NORETURN.
11986
016facd4
TT
119872014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_insert_watchpoint.
11992 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11993 TARGET_DEFAULT_RETURN.
11994
418dabac
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
11999 to_remove_hw_breakpoint.
12000 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12001 TARGET_DEFAULT_RETURN.
12002
61b371f9
TT
120032014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_insert_hw_breakpoint.
12008 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12009 TARGET_DEFAULT_RETURN.
12010
52b51d06
TT
120112014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target-delegates.c: Rebuild.
12014 * target.c (update_current_target): Don't inherit or default
12015 to_can_use_hw_breakpoint.
12016 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12017 TARGET_DEFAULT_RETURN.
12018
f86e59b2
TT
120192014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't inherit or default
12023 to_files_info.
12024 * target.h (struct target_ops) <to_files_info>: Use
12025 TARGET_DEFAULT_IGNORE.
12026
6c628163
TT
120272014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12031 to_store.
12032 * target.h (struct target_ops) <to_store>: Use
12033 TARGET_DEFAULT_NORETURN.
12034
bebd3233
TT
120352014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_post_attach.
12040 * target.h (struct target_ops) <to_post_attach>: Use
12041 TARGET_DEFAULT_IGNORE.
12042
a53f3625
TT
120432014-02-19 Tom Tromey <tromey@redhat.com>
12044
12045 * target-delegates.c: Rebuild.
12046 * target.c (update_current_target): Don't inherit or default
12047 to_rcmd.
12048 (default_rcmd): New function.
12049 (do_monitor_command): Unconditionally delegate.
12050 * target.h (struct target_ops) <to_rmcd>: Use
12051 TARGET_DEFAULT_FUNC.
12052
e9a29200
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target-delegates.c: Rebuild.
12056 * target.c (init_dummy_target): Don't initialize to_attach.
12057 (target_attach): Unconditionally delegate.
12058 * target.h (struct target_ops) <to_attach>: Use
12059 TARGET_DEFAULT_FUNC.
12060
09da0d0a
TT
120612014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target-delegates.c: Rebuild.
12064 * target.c (target_detach): Unconditionally delegate.
12065 (init_dummy_target): Don't initialize to_detach.
12066 * target.h (struct target_ops) <to_detach>: Use
12067 TARGET_DEFAULT_IGNORE.
12068
5436ff03
TT
120692014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12072 Add argument.
12073 (target_augmented_libraries_svr4_read): Add argument.
12074 * target.c (update_current_target): Update.
12075 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12076 argument.
12077
f0d960ea
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target.h (struct target_ops) <to_call_history_range>: Add
12081 argument.
12082 * target.c (target_call_history_range): Add argument.
12083 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12084 argument.
12085 (record_btrace_call_history_from): Update.
12086
ec0aea04
TT
120872014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target.h (struct target_ops) <to_call_history_from>: Add
12090 argument.
12091 * target.c (target_call_history_from): Add argument.
12092 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12093 argument.
12094
5df2fcba
TT
120952014-02-19 Tom Tromey <tromey@redhat.com>
12096
12097 * target.h (struct target_ops) <to_call_history>: Add argument.
12098 * target.c (target_call_history): Add argument.
12099 * record-btrace.c (record_btrace_call_history): Add 'self'
12100 argument.
12101
4e99c6b7
TT
121022014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target.h (struct target_ops) <to_insn_history_range>: Add
12105 argument.
12106 * target.c (target_insn_history_range): Add argument.
12107 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12108 argument.
12109 (record_btrace_insn_history_from): Update.
12110
9abc3ff3
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_insn_history_from>: Add
12114 argument.
12115 * target.c (target_insn_history_from): Add argument.
12116 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12117 argument.
12118
7a6c5609
TT
121192014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target.h (struct target_ops) <to_insn_history>: Add argument.
12122 * target.c (target_insn_history): Add argument.
12123 * record-btrace.c (record_btrace_insn_history): Add 'self'
12124 argument.
12125
606183ac
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_goto_record>: Add argument.
12129 * target.c (target_goto_record): Add argument.
12130 * record-full.c (record_full_goto): Add 'self' argument.
12131 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12132
307a1b91
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12136 * target.c (target_goto_record_end): Add argument.
12137 * record-full.c (record_full_goto_end): Add 'self' argument.
12138 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12139
08475817
TT
121402014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target.h (struct target_ops) <to_goto_record_begin>: Add
12143 argument.
12144 * target.c (target_goto_record_begin): Add argument.
12145 * record-full.c (record_full_goto_begin): Add 'self' argument.
12146 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12147 argument.
12148
1c63c994
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target.h (struct target_ops) <to_record_is_replaying>: Add
12152 argument.
12153 * target.c (target_record_is_replaying): Add argument.
12154 * record-full.c (record_full_is_replaying): Add 'self' argument.
12155 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12156 argument.
12157 (record_btrace_xfer_partial, record_btrace_store_registers)
12158 (record_btrace_prepare_to_store, record_btrace_resume)
12159 (record_btrace_wait, record_btrace_decr_pc_after_break)
12160 (record_btrace_find_new_threads, record_btrace_thread_alive):
12161 Update.
12162
d1b55219
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target.h (struct target_ops) <to_delete_record>: Add argument.
12166 * target.c (target_delete_record): Add argument.
12167 * record-full.c (record_full_delete): Add 'self' argument.
12168
1390f529
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_save_record>: Add argument.
12172 * target.c (target_save_record): Add argument.
12173 * record-full.c (record_full_save): Add 'self' argument.
12174 (record_full_save): Add 'self' argument.
12175
630d6a4a
TT
121762014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_info_record>: Add argument.
12179 * target.c (target_info_record): Add argument.
12180 * record.c (info_record_command): Add argument.
12181 * record-full.c (record_full_info): Add 'self' argument.
12182 * record-btrace.c (record_btrace_info): Add 'self' argument.
12183
c6cd7c02
TT
121842014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12187 * target.c (target_stop_recording): Add argument.
12188 * record.c (record_stop): Add argument.
12189 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12190 argument.
12191
39c49f83
TT
121922014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12195 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12196 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12197 argument.
12198 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12199 (_initialize_amd64_linux_nat): Use it.
12200 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12201 (_initialize_i386_linux_nat): Use it.
12202
1777056d
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12206 * target.c (target_teardown_btrace): Add argument.
12207 * remote.c (remote_teardown_btrace): Add 'self' argument.
12208 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12209 argument.
12210 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12211 argument.
12212
25e95349
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12216 * target.c (target_disable_btrace): Add argument.
12217 * remote.c (remote_disable_btrace): Add 'self' argument.
12218 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12219 argument.
12220 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12221 argument.
12222
e3c49f88
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12226 * target.c (target_enable_btrace): Add argument.
12227 * remote.c (remote_enable_btrace): Add 'self' argument.
12228 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12229 argument.
12230 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12231 argument.
12232
fe38f897
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12236 (target_can_use_agent): Add argument.
12237 * target.c (update_current_target): Update.
12238 * remote.c (remote_can_use_agent): Add 'self' argument.
12239 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12240
2c152180
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_use_agent>: Add argument.
12244 (target_use_agent): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_use_agent): Add 'self' argument.
12247 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12248
a893e81f
TT
122492014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12252 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12253 (target_traceframe_info): Add argument.
12254 * target.c (update_current_target): Update.
12255 * remote.c (remote_traceframe_info): Add 'self' argument.
12256 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12257
c686c57f
TT
122582014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target.h (target_static_tracepoint_markers_by_strid): Add
12261 argument.
12262 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12263 'self' argument.
12264 * target.c (update_current_target): Update.
12265 * remote.c (struct target_ops)
12266 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12267 * linux-nat.c (struct target_ops)
12268 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12269
61fc905d
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12273 Add argument.
12274 (target_static_tracepoint_marker_at): Add argument.
12275 * target.c (update_current_target): Update.
12276 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12277 argument.
12278
c378d69d
TT
122792014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12282 (target_set_permissions): Add argument.
12283 * target.c (update_current_target): Update.
12284 * remote.c (remote_set_permissions): Add 'self' argument.
12285 (remote_start_remote): Update.
12286
bd7ae0f5
TT
122872014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12290 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12291 (target_get_tib_address): Add argument.
12292 * target.c (update_current_target): Update.
12293 * remote.c (remote_get_tib_address): Add 'self' argument.
12294
d9e68a2c
TT
122952014-02-19 Tom Tromey <tromey@redhat.com>
12296
12297 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12298 (target_set_trace_notes): Add argument.
12299 * target.c (update_current_target): Update.
12300 * remote.c (remote_set_trace_notes): Add 'self' argument.
12301
4da384be
TT
123022014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12305 argument.
12306 (target_set_trace_buffer_size): Add argument.
12307 * target.c (update_current_target): Update.
12308 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12309
736d5b1f
TT
123102014-02-19 Tom Tromey <tromey@redhat.com>
12311
12312 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12313 argument.
12314 (target_set_circular_trace_buffer): Add argument.
12315 * target.c (update_current_target): Update.
12316 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12317 argument.
12318
37b25738
TT
123192014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12322 argument.
12323 (target_set_disconnected_tracing): Add argument.
12324 * target.c (update_current_target): Update.
12325 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12326
0e67620a
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops)
12330 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12331 (target_get_min_fast_tracepoint_insn_len): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12334 argument.
12335
88ee6f45
TT
123362014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12339 argument.
12340 (target_get_raw_trace_data): Add argument.
12341 * target.c (update_current_target): Update.
12342 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12343
181e3713
TT
123442014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12347 Add argument.
12348 (target_upload_trace_state_variables): Add argument.
12349 * target.c (update_current_target): Update.
12350 * remote.c (remote_upload_trace_state_variables): Add 'self'
12351 argument.
12352 (remote_start_remote): Update.
12353
ab6617cc
TT
123542014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12357 argument.
12358 (target_upload_tracepoints): Add argument.
12359 * target.c (update_current_target): Update.
12360 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12361 (remote_start_remote): Update.
12362
dc3decaf
TT
123632014-02-19 Tom Tromey <tromey@redhat.com>
12364
12365 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12366 (target_save_trace_data): Add argument.
12367 * target.c (update_current_target): Update.
12368 * remote.c (remote_save_trace_data): Add 'self' argument.
12369
4011015b
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12373 argument.
12374 * target.h (struct target_ops)
12375 <to_get_trace_state_variable_value>: Add argument.
12376 (target_get_trace_state_variable_value): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12379 argument.
12380 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12381
bd4c6793
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12385 * target.h (struct target_ops) <to_trace_find>: Add argument.
12386 (target_trace_find): Add argument.
12387 * target.c (update_current_target): Update.
12388 * remote.c (remote_trace_find): Add 'self' argument.
12389 * ctf.c (ctf_trace_find): Add 'self' argument.
12390
74499f1b
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12394 (target_trace_stop): Add argument.
12395 * target.c (update_current_target): Update.
12396 * remote.c (remote_trace_stop): Add 'self' argument.
12397
db90e85c
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12401 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12402 argument.
12403 (target_get_tracepoint_status): Add argument.
12404 * target.c (update_current_target): Update.
12405 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12406
8bd200f1
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12410 * target.h (struct target_ops) <to_get_trace_status>: Add
12411 argument.
12412 (target_get_trace_status): Add argument.
12413 * target.c (update_current_target): Update.
12414 * remote.c (remote_get_trace_status): Add 'self' argument.
12415 (remote_start_remote, remote_can_download_tracepoint): Update.
12416 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12417
e2d1aae3
TT
124182014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * target.h (struct target_ops) <to_trace_start>: Add argument.
12421 (target_trace_start): Add argument.
12422 * target.c (update_current_target): Update.
12423 * remote.c (remote_trace_start): Add 'self' argument.
12424
583f9a86
TT
124252014-02-19 Tom Tromey <tromey@redhat.com>
12426
12427 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12428 Add argument.
12429 (target_trace_set_readonly_regions): Add argument.
12430 * target.c (update_current_target): Update.
12431 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12432 argument.
12433
780b049c
TT
124342014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12437 argument.
12438 (target_disable_tracepoint): Add argument.
12439 * target.c (update_current_target): Update.
12440 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12441
46670d57
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12445 argument.
12446 (target_enable_tracepoint): Add argument.
12447 * target.c (update_current_target): Update.
12448 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12449
559d2b81
TT
124502014-02-19 Tom Tromey <tromey@redhat.com>
12451
12452 * target.h (struct target_ops) <to_download_trace_state_variable>:
12453 Add argument.
12454 (target_download_trace_state_variable): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_download_trace_state_variable): Add 'self'
12457 argument.
12458
a52a8357
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12462 argument.
12463 (target_can_download_tracepoint): Add argument.
12464 * target.c (update_current_target): Update.
12465 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12466
548f7808
TT
124672014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * target.h (struct target_ops) <to_download_tracepoint>: Add
12470 argument.
12471 (target_download_tracepoint): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_download_tracepoint): Add 'self' argument.
12474
ecae04e1
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_trace_init>: Add argument.
12478 (target_trace_init): Add argument.
12479 * target.c (update_current_target): Update.
12480 * remote.c (remote_trace_init): Add 'self' argument.
12481
fab5aa7c
TT
124822014-02-19 Tom Tromey <tromey@redhat.com>
12483
12484 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12485 * target.c (target_fileio_readlink): Add argument.
12486 * remote.c (remote_hostio_readlink): Add 'self' argument.
12487 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12488
dbbca37d
TT
124892014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12492 * target.c (target_fileio_unlink): Add argument.
12493 * remote.c (remote_hostio_unlink): Add 'self' argument.
12494 (remote_file_delete): Update.
12495 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12496
df39ea25
TT
124972014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12500 * target.c (target_fileio_close): Add argument.
12501 * remote.c (remote_hostio_close): Add 'self' argument.
12502 (remote_hostio_close_cleanup): Update.
12503 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12504 Update.
12505 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12506
a3be983c
TT
125072014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12510 * target.c (target_fileio_pread): Add argument.
12511 * remote.c (remote_hostio_pread): Add 'self' argument.
12512 (remote_bfd_iovec_pread, remote_file_get): Update.
12513 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12514
0d866f62
TT
125152014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12518 * target.c (target_fileio_pwrite): Add argument.
12519 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12520 (remote_file_put): Update.
12521 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12522
cd897586
TT
125232014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12526 * target.c (target_fileio_open): Add argument.
12527 * remote.c (remote_hostio_open): Add 'self' argument.
12528 (remote_bfd_iovec_open): Add 'self' argument.
12529 (remote_file_put): Add 'self' argument.
12530 (remote_file_get): Add 'self' argument.
12531 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12532
78eff0ec
TT
125332014-02-19 Tom Tromey <tromey@redhat.com>
12534
12535 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12536 Add argument.
12537 (target_can_run_breakpoint_commands): Add argument.
12538 * target.c (update_current_target): Update.
12539 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12540 argument.
12541 (remote_insert_breakpoint): Add 'self' argument.
12542 (remote_insert_hw_breakpoint): Add 'self' argument.
12543 (remote_can_run_breakpoint_commands): Add 'self' argument.
12544
efcc2da7
TT
125452014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target.h (struct target_ops)
12548 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12549 (target_supports_evaluation_of_breakpoint_conditions): Add
12550 argument.
12551 * target.c (update_current_target): Update.
12552 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12553 argument.
12554 (remote_insert_breakpoint): Add 'self' argument.
12555 (remote_insert_hw_breakpoint): Add 'self' argument.
12556 (remote_supports_cond_breakpoints): Add 'self' argument.
12557
6de37a3a
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12561 argument.
12562 (target_supports_string_tracing): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12565
2bfc0540
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops)
12569 <to_supports_disable_randomization>: Add argument.
12570 * target.c (find_default_supports_disable_randomization): Add
12571 argument.
12572 (target_supports_disable_randomization): Add argument.
12573 (find_default_supports_disable_randomization): Add 'self'
12574 argument.
12575 * remote.c (extended_remote_supports_disable_randomization): Add
12576 'self' argument.
12577 (remote_supports_disable_randomization): Add 'self' argument.
12578 (extended_remote_create_inferior): Update.
12579 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12580 'self' argument.
12581
7d178d6a
TT
125822014-02-19 Tom Tromey <tromey@redhat.com>
12583
12584 * target.h (struct target_ops)
12585 <to_supports_enable_disable_tracepoint>: Add argument.
12586 (target_supports_enable_disable_tracepoint): Add argument.
12587 * target.c (update_current_target): Update.
12588 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12589 argument.
12590
86ce2668
TT
125912014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_supports_multi_process>: Add
12594 argument.
12595 (target_supports_multi_process): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_supports_multi_process): Add 'self' argument.
12598 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12599 argument.
12600 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12601 argument.
12602
4c612759
TT
126032014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target.h (struct target_ops) <to_execution_direction>: Add
12606 argument.
12607 (target_execution_direction): Add argument.
12608 * target.c (default_execution_direction): Add 'self' argument.
12609 * record-full.c (record_full_execution_direction): Add 'self'
12610 argument.
12611
19db3e69
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12615 argument.
12616 (target_can_execute_reverse): Add argument.
12617 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12618 * record-full.c (record_full_can_execute_reverse): Add 'self'
12619 argument.
12620 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12621 argument.
12622
1e6b91a4
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12626 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12627 argument.
12628 (target_get_ada_task_ptid): Add argument.
12629 * target.c (update_current_target): Update.
12630 (default_get_ada_task_ptid): Add 'self' argument.
12631 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12632 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12633 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12634 argument.
12635 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12636 argument.
12637 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12638 argument.
12639 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12640 argument.
12641 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12642 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12643 argument.
12644
3c80fb48
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12648 (target_goto_bookmark): Add argument.
12649 * target.c (dummy_goto_bookmark): Add 'self' argument.
12650 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12651
dd0e2830
TT
126522014-02-19 Tom Tromey <tromey@redhat.com>
12653
12654 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12655 (target_get_bookmark): Add argument.
12656 * target.c (dummy_get_bookmark): Add 'self' argument.
12657 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12658
fc6691b2
TT
126592014-02-19 Tom Tromey <tromey@redhat.com>
12660
12661 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12662 argument.
12663 (target_make_corefile_notes): Add argument.
12664 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12665 * procfs.c (procfs_make_note_section): Add 'self' argument.
12666 (procfs_make_note_section): Add 'self' argument.
12667 (procfs_make_note_section): Add 'self' argument.
12668 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12669 argument.
12670 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12671 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12672 * exec.c (exec_make_note_section): Add 'self' argument.
12673 (exec_make_note_section): Add 'self' argument.
12674
2e73927c
TT
126752014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_find_memory_regions>: Add
12678 argument.
12679 (target_find_memory_regions): Add argument.
12680 * target.c (dummy_find_memory_regions): Add 'self' argument.
12681 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12682 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12683 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12684 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12685 * exec. (exec_do_find_memory_regions): New global.
12686 (exec_set_find_memory_regions): Rewrite.
12687 (exec_find_memory_regions): New function.
12688 (init_exec_ops): Use exec_find_memory_regions.
12689
2a9a2795
TT
126902014-02-19 Tom Tromey <tromey@redhat.com>
12691
12692 * target.h (struct target_ops) <to_supports_non_stop>: Add
12693 argument.
12694 * target.c (find_default_supports_non_stop): Add argument.
12695 (target_supports_non_stop): Add argument.
12696 (find_default_supports_non_stop): Add 'self' argument.
12697 * remote.c (remote_supports_non_stop): Add 'self' argument.
12698 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12699
4ab76ea3
TT
127002014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target.h (struct target_ops) <to_log_command>: Add argument.
12703 (target_log_command): Add argument.
12704 * serial.h (serial_log_command): Add 'self' argument.
12705 * serial.c (serial_log_command): Add 'self' argument.
12706
8dd27370
TT
127072014-02-19 Tom Tromey <tromey@redhat.com>
12708
12709 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12710 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12711 argument.
12712 (target_pid_to_exec_file): Add argument.
12713 * target.c (debug_to_pid_to_exec_file): Add argument.
12714 (update_current_target): Update.
12715 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12716 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12717 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12718 (linux_handle_extended_wait): Update.
12719 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12720 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12721 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12722 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12723
1aac633b
TT
127242014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_rcmd>: Add argument.
12727 (target_rcmd): Add argument.
12728 * target.c (debug_to_rcmd): Add argument.
12729 (update_current_target, do_monitor_command): Update.
12730 * remote.c (remote_rcmd): Add 'self' argument.
12731 * monitor.c (monitor_rcmd): Add 'self' argument.
12732
1eab8a48
TT
127332014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * windows-nat.c (windows_stop): Add 'self' argument.
12736 * target.h (struct target_ops) <to_stop>: Add argument.
12737 * target.c (target_stop): Add argument.
12738 (debug_to_stop): Add argument.
12739 (update_current_target): Update.
12740 * remote.c (remote_stop): Add 'self' argument.
12741 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12742 (gdbsim_cntrl_c): Update.
12743 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12744 * procfs.c (procfs_stop): Add 'self' argument.
12745 * nto-procfs.c (procfs_stop): Add 'self' argument.
12746 * monitor.c (monitor_stop): Add 'self' argument.
12747 (monitor_open): Update.
12748 * linux-nat.c (linux_nat_stop): Add argument.
12749 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12750 * gnu-nat.c (gnu_stop): Add 'self' argument.
12751 * darwin-nat.c (darwin_stop): Add 'self' argument.
12752
503a628d
TT
127532014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_thread_name>: Add argument.
12756 * target.c (target_thread_name): Add argument.
12757 (update_current_target): Update.
12758 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12759
c15906d8
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops) <to_extra_thread_info>: Add
12763 argument.
12764 (target_extra_thread_info): Add argument.
12765 * target.c (update_current_target): Update.
12766 * remote.c (remote_threads_extra_info): Add 'self' argument.
12767 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12768 argument.
12769 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12770 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12771 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12772 argument.
12773 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12774 argument.
12775 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12776 argument.
12777 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12778 argument.
12779
daf5e9b6
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_program_signals>: Add argument.
12783 * target.c (target_program_signals): Add argument.
12784 * remote.c (remote_program_signals): Add 'self' argument.
12785
94bedb42
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12789 * target.c (target_pass_signals): Add argument.
12790 * remote.c (remote_pass_signals): Add 'self' argument.
12791 (remote_start_remote): Update.
12792 * procfs.c (procfs_pass_signals): Add 'self' argument.
12793 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12794 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12795 (linux_nat_create_inferior, linux_nat_attach): Update.
12796
da82bd6b
TT
127972014-02-19 Tom Tromey <tromey@redhat.com>
12798
12799 * windows-nat.c (windows_can_run): Add 'self' argument.
12800 * target.h (struct target_ops) <to_can_run>: Add argument.
12801 (target_can_run): Add argument.
12802 * target.c (debug_to_can_run): Add argument.
12803 (update_current_target): Update.
12804 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12805 * inf-child.c (inf_child_can_run): Add 'self' argument.
12806 * go32-nat.c (go32_can_run): Add 'self' argument.
12807
d796e1d6
TT
128082014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * target.h (struct target_ops) <to_has_exited>: Add argument.
12811 (target_has_exited): Add argument.
12812 * target.c (debug_to_has_exited): Add argument.
12813 (update_current_target): Update.
12814
ff214e67
TT
128152014-02-19 Tom Tromey <tromey@redhat.com>
12816
12817 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12818 argument.
12819 (target_set_syscall_catchpoint): Add argument.
12820 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12821 argument.
12822 * target.c (update_current_target): Update.
12823
758e29d2
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12827 argument.
12828 (target_remove_exec_catchpoint): Add argument.
12829 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12830 (update_current_target): Update.
12831 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12832 argument.
12833
ba025e51
TT
128342014-02-19 Tom Tromey <tromey@redhat.com>
12835
12836 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12837 argument.
12838 (target_insert_exec_catchpoint): Add argument.
12839 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12840 (update_current_target): Update.
12841 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12842 argument.
12843
e98cf0cd
TT
128442014-02-19 Tom Tromey <tromey@redhat.com>
12845
12846 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12847 argument.
12848 (target_remove_vfork_catchpoint): Add argument.
12849 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12850 (update_current_target): Update.
12851 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12852 argument.
12853
3ecc7da0
TT
128542014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12857 argument.
12858 (target_insert_vfork_catchpoint): Add argument.
12859 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12860 (update_current_target): Update.
12861 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12862 argument.
12863
973fc227
TT
128642014-02-19 Tom Tromey <tromey@redhat.com>
12865
12866 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12867 argument.
12868 (target_remove_fork_catchpoint): Add argument.
12869 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12870 (update_current_target): Update.
12871 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12872 argument.
12873
a863b201
TT
128742014-02-19 Tom Tromey <tromey@redhat.com>
12875
12876 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12877 argument.
12878 (target_insert_fork_catchpoint): Add argument.
12879 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12880 (update_current_target): Update.
12881 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12882 argument.
12883
2e97a79e
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12887 argument.
12888 (target_post_startup_inferior): Add argument.
12889 * target.c (debug_to_post_startup_inferior): Add argument.
12890 (update_current_target): Update.
12891 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12892 argument.
12893 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12894 argument.
12895 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12896 argument.
12897 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12898 argument.
12899 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12900 'self' argument.
12901 (super_post_startup_inferior): Likewise.
12902 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12903 'self' argument.
12904 (super_post_startup_inferior): Likewise.
12905 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12906 Add 'self' argument.
12907 (super_post_startup_inferior): Likewise.
12908
71a9f134
TT
129092014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops) <to_load>: Add argument.
12912 * target.c (target_load): Add argument.
12913 (debug_to_load): Add argument.
12914 (update_current_target): Update.
12915 * remote.c (remote_load): Add 'self' argument.
12916 * remote-sim.c (gdbsim_load): Add 'self' argument.
12917 * remote-mips.c (mips_load): Add 'self' argument.
12918 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12919 * monitor.c (monitor_load): Add 'self' argument.
12920 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12921
0a4f40a2
TT
129222014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12925 (target_terminal_info): Add argument.
12926 * target.c (debug_to_terminal_info): Add argument.
12927 (default_terminal_info): Likewise.
12928 * inflow.c (child_terminal_info): Add 'self' argument.
12929 * inferior.h (child_terminal_info): Add 'self' argument.
12930 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12931
ae3bd431
TT
129322014-02-19 Tom Tromey <tromey@redhat.com>
12933
12934 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12935 argument.
12936 (target_terminal_save_ours): Add argument.
12937 * target.c (debug_to_terminal_save_ours): Add argument.
12938 (update_current_target): Update.
12939 * inflow.c (terminal_save_ours): Add 'self' argument.
12940 * inferior.h (terminal_save_ours): Add 'self' argument.
12941
e3594fd1
TT
129422014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12945 (target_terminal_ours): Add argument.
12946 * target.c (debug_to_terminal_ours): Add argument.
12947 (update_current_target): Update.
12948 * remote.c (remote_terminal_ours): Add 'self' argument.
12949 (remote_close): Update.
12950 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12951 * inflow.c (terminal_ours): Add 'self' argument.
12952 * inferior.h (terminal_ours): Add 'self' argument.
12953 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12954
2e1e1a19
TT
129552014-02-19 Pedro Alves <palves@redhat.com>
12956 Tom Tromey <tromey@redhat.com>
12957
12958 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12959 argument.
12960 (target_terminal_ours_for_output): Add argument.
12961 * target.c (debug_to_terminal_ours_for_output): Add argument.
12962 (update_current_target): Update.
12963 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12964 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12965 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12966
d2f640d4
TT
129672014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * target.h (struct target_ops) <to_terminal_inferior>: Add
12970 argument.
12971 * target.c (target_terminal_inferior): Add argument.
12972 (update_current_target): Update.
12973 * remote.c (remote_terminal_inferior): Add 'self' argument.
12974 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12975 * inflow.c (terminal_inferior): Add 'self' argument.
12976 * inferior.h (terminal_inferior): Add 'self' argument.
12977 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12978 (go32_terminal_inferior): Add 'self' argument.
12979
c42bf286
TT
129802014-02-19 Tom Tromey <tromey@redhat.com>
12981
12982 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12983 (target_terminal_init): Add argument.
12984 * target.c (debug_to_terminal_init): Add argument.
12985 (update_current_target): Update.
12986 * inflow.c (terminal_init_inferior): Add 'self' argument.
12987 * inferior.h (terminal_init_inferior): Add 'self' argument.
12988 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12989 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12990
c3a5ff89
TT
129912014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops)
12994 <to_can_accel_watchpoint_condition>: Add argument.
12995 (target_can_accel_watchpoint_condition): Add argument.
12996 * target.c (debug_to_can_accel_watchpoint_condition): Add
12997 argument.
12998 (update_current_target): Update.
12999 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13000 'self' argument.
13001
31568a15
TT
130022014-02-19 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13005 Add argument.
13006 (target_region_ok_for_hw_watchpoint): Add argument.
13007 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13008 (default_region_ok_for_hw_watchpoint): Add argument.
13009 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13010 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13011 argument.
13012 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13013 argument.
13014 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13015 argument.
13016 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13017 'self' argument.
13018 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13019 'self' argument.
13020 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13021 'self' argument.
13022 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13023 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13024 'self' argument.
13025 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13026 Add 'self' argument.
13027
7bb99c53
TT
130282014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13031 argument.
13032 (target_insert_watchpoint): Add argument.
13033 * target.c (debug_to_insert_watchpoint): Add argument.
13034 (update_current_target): Update.
13035 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13036 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13037 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13038 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13039 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13040 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13041 argument.
13042 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13043 (procfs_insert_hw_watchpoint): Add 'self' argument.
13044 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13045 argument.
13046 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13047 argument.
13048 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13049 argument.
13050 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13051 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13052 argument.
13053 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13054 'self' argument.
13055
11b5219a
TT
130562014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13059 argument.
13060 (target_remove_watchpoint): Add argument.
13061 * target.c (debug_to_remove_watchpoint): Add argument.
13062 (update_current_target): Update.
13063 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13064 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13065 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13066 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13067 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13068 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13069 argument.
13070 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13071 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13072 argument.
13073 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13074 argument.
13075 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13076 argument.
13077 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13078 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13079 argument.
13080 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13081 'self' argument.
13082
a64dc96c
TT
130832014-02-19 Tom Tromey <tromey@redhat.com>
13084
13085 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13086 argument.
13087 (target_remove_hw_breakpoint): Add argument.
13088 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13089 (update_current_target): Update.
13090 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13091 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13092 argument.
13093 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13094 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13095 argument.
13096 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13097 'self' argument.
13098
23a26771
TT
130992014-02-19 Tom Tromey <tromey@redhat.com>
13100
13101 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13102 argument.
13103 (target_insert_hw_breakpoint): Add argument.
13104 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13105 (update_current_target): Update.
13106 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13107 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13108 argument.
13109 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13110 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13111 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13112 argument.
13113 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13114 'self' argument.
13115
5461485a
TT
131162014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13119 argument.
13120 (target_can_use_hardware_watchpoint): Add argument.
13121 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13122 (update_current_target): Update.
13123 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13124 argument.
13125 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13126 argument.
13127 * remote.c (remote_check_watch_resources): Add 'self' argument.
13128 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13129 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13130 argument.
13131 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13132 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13133 argument.
13134 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13135 argument.
13136 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13137 argument.
13138 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13139 argument.
13140 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13141 argument.
13142 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13143 argument.
13144 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13145 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13146 argument.
13147 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13148 'self' argument.
13149
f045800c
TT
131502014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * target.h (struct target_ops) <to_post_attach>: Add argument.
13153 (target_post_attach): Add argument.
13154 * target.c (debug_to_post_attach): Add argument.
13155 (update_current_target): Update.
13156 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13157 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13158 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13159 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13160 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13161
de90e03d
TT
131622014-02-19 Tom Tromey <tromey@redhat.com>
13163
13164 * windows-nat.c (windows_close): Add 'self' argument.
13165 * tracepoint.c (tfile_close): Add 'self' argument.
13166 * target.h (struct target_ops) <to_close>: Add argument.
13167 * target.c (target_close): Add argument.
13168 (update_current_target): Update.
13169 * remote.c (remote_close): Add 'self' argument.
13170 * remote-sim.c (gdbsim_close): Add 'self' argument.
13171 * remote-mips.c (mips_close): Add 'self' argument.
13172 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13173 * record-full.c (record_full_close): Add 'self' argument.
13174 * record-btrace.c (record_btrace_close): Add 'self' argument.
13175 * monitor.h (monitor_close): Add 'self' argument.
13176 * monitor.c (monitor_close): Add 'self' argument.
13177 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13178 * linux-nat.c (linux_nat_close): Add argument.
13179 * go32-nat.c (go32_close): Add 'self' argument.
13180 * exec.c (exec_close_1): Add 'self' argument.
13181 * ctf.c (ctf_close): Add 'self' argument.
13182 * corelow.c (core_close): Add 'self' argument.
13183 (core_close_cleanup): Update.
13184 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13185 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13186
9dd130a0
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * remote.c (remote_load): New function.
13190 (init_remote_ops): Use it.
13191
46917d26
TT
131922014-02-19 Tom Tromey <tromey@redhat.com>
13193
13194 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13195 argument.
13196 * common/linux-btrace.h (linux_supports_btrace): Update.
13197 * remote.c (remote_supports_btrace): Add "self" argument.
13198 * target-delegates.c: Rebuild.
13199 * target.c (target_supports_btrace): Remove.
13200 * target.h (struct target_ops) <to_supports_btrace>: Add
13201 target_ops argument.
13202 (target_supports_btrace): New define.
13203
6b84065d
TT
132042014-02-19 Tom Tromey <tromey@redhat.com>
13205
13206 * record-full.c (record_full_beneath_to_resume_ops)
13207 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13208 (record_full_beneath_to_wait)
13209 (record_full_beneath_to_store_registers_ops)
13210 (record_full_beneath_to_store_registers)
13211 (record_full_beneath_to_xfer_partial_ops)
13212 (record_full_beneath_to_xfer_partial)
13213 (record_full_beneath_to_insert_breakpoint_ops)
13214 (record_full_beneath_to_insert_breakpoint)
13215 (record_full_beneath_to_remove_breakpoint_ops)
13216 (record_full_beneath_to_remove_breakpoint)
13217 (record_full_beneath_to_stopped_by_watchpoint)
13218 (record_full_beneath_to_stopped_data_address)
13219 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13220 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13221 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13222 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13223 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13224 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13225 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13226 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13227 (record_full_resume, record_full_wait_1)
13228 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13229 (record_full_store_registers, record_full_xfer_partial)
13230 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13231 (record_full_async, record_full_core_xfer_partial): Use target
13232 delegation.
13233 * target-delegates.c: Rebuild.
13234 * target.c (current_xfer_partial): Remove.
13235 (update_current_target): Do not INHERIT or de_fault
13236 to_insert_breakpoint, to_remove_breakpoint,
13237 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13238 to_is_async_p, to_async. Do not set to_xfer_partial field.
13239 (default_xfer_partial): Simplify.
13240 (current_xfer_partial): Remove.
13241 (target_wait, target_resume): Simplify.
13242 (find_default_can_async_p, find_default_is_async_p): Update.
13243 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13244 to_xfer_partial, to_stopped_by_watchpoint,
13245 to_stopped_data_address.
13246 (target_store_registers): Simplify.
13247 (forward_target_remove_breakpoint)
13248 (forward_target_insert_breakpoint): Remove.
13249 (target_remove_breakpoint, target_insert_breakpoint)
13250 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13251 * target.h (struct target_ops) <to_resume, to_wait,
13252 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13253 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13254 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13255 markup.
13256 (forward_target_remove_breakpoint)
13257 (forward_target_insert_breakpoint): Remove.
13258 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13259 directly.
13260 (record_btrace_insert_breakpoint): Delegate directly.
13261
1101cb7b
TT
132622014-02-19 Tom Tromey <tromey@redhat.com>
13263
13264 PR build/7701:
13265 * target-delegates.c: New file.
13266 * target.c: Include target-delegates.c.
13267 (init_dummy_target): Call install_dummy_methods.
13268 (complete_target_initialization): Call install_delegators.
13269 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13270 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13271 * make-target-delegates: New file.
13272
8b06beed
TT
132732014-02-19 Tom Tromey <tromey@redhat.com>
13274
13275 * record.c (find_record_target): Use find_target_at.
13276 * target.c (find_target_at): New function.
13277 * target.h (find_target_at): Declare.
13278
6a109b6b
TT
132792014-02-19 Tom Tromey <tromey@redhat.com>
13280
13281 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13282 Add 'ops' argument.
13283 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13284 'ops' argument.
13285 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13286 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13287 'ops' argument.
13288 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13289 argument.
13290 * linux-nat.c (save_sigtrap): Update.
13291 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13292 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13293 (linux_nat_close): Update.
13294 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13295 argument.
13296 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13297 argument.
13298 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13299 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13300 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13301 (tmp_to_async): Add 'ops' argument.
13302 (record_full_stopped_by_watchpoint, record_full_async)
13303 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13304 argument.
13305 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13306 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13307 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13308 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13309 (remote_is_async_p, remote_async): Add 'ops' argument.
13310 (remote_stopped_data_address): Update.
13311 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13312 * target.c (update_current_target)
13313 (find_default_can_async_p, find_default_is_async_p): Update.
13314 (init_dummy_target): Update.
13315 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13316 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13317 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13318 (target_can_async_p, target_is_async_p, target_async)
13319 (target_stopped_by_watchpoint): Update.
13320
e095146b
YQ
133212014-02-19 Yao Qi <yao@codesourcery.com>
13322
13323 PR gdb/16220
13324 * gdbarch.sh: Remove startup_gdbarch.
13325 * gdbarch.c: Regenerated.
13326 * gdbarch.h: Likewise.
13327
bc3c6b36
KB
133282014-02-17 Kevin Buettner <kevinb@redhat.com>
13329
13330 * rl78-tdep.c (rl78_g10_register_name): New function.
13331 (rl78_return_value): Add g10 support.
13332 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13333 g10.
13334
98dc0167 133352014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13336
13337 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13338 (SUBDIR_GUILE_SRCS): Ditto.
13339 (scm-gsmob.o): Ditto.
13340
842c05cd
YQ
133412014-02-17 Yao Qi <yao@codesourcery.com>
13342
13343 * gnu-nat.c (ILL_RPC): Declare defined function.
13344
25c0bd04
YQ
133452014-02-17 Yao Qi <yao@codesourcery.com>
13346
13347 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13348 mach_msg_type_number_t.
13349 (gnu_write_inferior): Likewise.
13350
a9a758e3
YQ
133512014-02-17 Yao Qi <yao@codesourcery.com>
13352
13353 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13354 in format string.
13355 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13356 (inf_validate_procs, inf_signal): Likewise.
13357 (S_exception_raise_request): Likewise.
13358 (do_mach_notify_dead_name): Likewise.
13359 (steal_exc_port): Likewise.
13360 (gnu_read_inferior): Change 'copy_count''s type to
13361 mach_msg_type_number_t.
13362 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13363 format string.
13364
bae8023e
TS
133652014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13366
c82f56d9
TS
13367 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13368 flag. Adjust all users; in particular...
13369 (gnu_wait): ..., don't decrement its value in here...
13370 (gnu_create_inferior): ..., and instead set the flag in here,
13371 around the startup_inferior call, and call that one with
13372 START_INFERIOR_TRAPS_EXPECTED.
13373
3398af6a
TS
13374 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13375 (ILL_RPC): ... new macro.
13376 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13377 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13378 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13379 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13380 functions with ILL_RPC macro.
13381 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13382 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13383 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13384 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13385 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13386 (S_proc_getlogin_reply, S_proc_getsid_reply)
13387 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13388 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13389 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13390 (S_proc_getnports_reply, S_proc_is_important_reply)
13391 (S_proc_get_code_reply): New stub functions, generated with
13392 ILL_RPC macro.
13393
d47642c9
TS
13394 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13395 collected the type check structures.
13396
bae8023e
TS
13397 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13398
8a55ffb0
DE
133992014-02-14 Doug Evans <dje@google.com>
13400
13401 * target.c (target_write_partial): Fix result type.
13402
c2853f3d
JM
134032014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13404
13405 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13406 the proper offsets to access fpregset_t.
13407
ac61d2db
SA
134082014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13409
13410 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13411 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13412 * h8300-tdep.c (setmachinelist): Remove global.
13413 * hppa-tdep.c (hppa_sigtramp): Remove global.
13414 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13415 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13416 * ravenscar-thread.c (update_target_observer): Remove global.
13417 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13418
9d2d0b8b
TT
134192014-02-12 Tom Tromey <tromey@redhat.com>
13420
13421 * common/rsp-low.c: Update comments.
13422 * common/rsp-low.h: Update comments.
13423
a7191e8b
TT
134242014-02-12 Tom Tromey <tromey@redhat.com>
13425
13426 * common/rsp-low.c (convert_ascii_to_int): Remove.
13427 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13428
ff0e980e
TT
134292014-02-12 Tom Tromey <tromey@redhat.com>
13430
13431 * common/rsp-low.h (unhexify): Don't declare.
13432 * common/rsp-low.c (unhexify): Remove.
13433
e9371aff
TT
134342014-02-12 Tom Tromey <tromey@redhat.com>
13435
13436 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13437 * common/rsp-low.c (convert_int_to_ascii): Remove.
13438
971dc0b8
TT
134392014-02-12 Tom Tromey <tromey@redhat.com>
13440
13441 * common/rsp-low.h (hexify): Don't declare.
13442 * common/rsp-low.c (hexify): Remove.
13443
0a822afb
TT
134442014-02-12 Tom Tromey <tromey@redhat.com>
13445
13446 * common/rsp-low.c (hexify): Never take strlen of argument.
13447
9f1b45b0
TT
134482014-02-12 Tom Tromey <tromey@redhat.com>
13449
13450 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13451 * remote.c (extended_remote_run, remote_rcmd)
13452 (remote_download_trace_state_variable, remote_save_trace_data)
13453 (remote_set_trace_notes): Update.
13454 * tracepoint.c (encode_source_string, tfile_write_status)
13455 (tfile_write_uploaded_tsv): Update.
13456
9c3d6531
TT
134572014-02-12 Tom Tromey <tromey@redhat.com>
13458
13459 * tracepoint.c: Include rsp-low.h.
13460 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13461 * remote.c: Include rsp-low.h.
13462 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13463 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13464 (remote_unescape_input): Move to common/rsp-low.c.
13465 * common/rsp-low.h: New file.
13466 * common/rsp-low.c: New file.
13467 * Makefile.in (SFILES): Add common/rsp-low.c.
13468 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13469 (COMMON_OBS): Add rsp-low.o.
13470 (rsp-low.o): New target.
13471
01fd3ea5
TT
134722014-02-12 Tom Tromey <tromey@redhat.com>
13473
13474 * utils.h: Include print-utils.h.
13475 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13476 (int_string, core_addr_to_string, core_addr_to_string_nz)
13477 (hex_string, hex_string_custom): Don't declare.
13478 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13479 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13480 (hex_string_custom, int_string, core_addr_to_string)
13481 (core_addr_to_string_nz, host_address_to_string): Move to
13482 common/print-utils.c.
13483 * common/print-utils.h: New file.
13484 * common/print-utils.c: New file
13485 * Makefile.in (SFILES): Add common/print-utils.c.
13486 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13487 (COMMON_OBS): Add print-utils.o.
13488 (print-utils.o): New target.
13489
9fb50108
TT
134902014-02-12 Tom Tromey <tromey@redhat.com>
13491
13492 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13493
0548b5db
MK
134942014-02-12 Mark Kettenis <kettenis@gnu.org>
13495
13496 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13497
493443a4
MK
134982014-02-12 Mark Kettenis <kettenis@gnu.org>
13499
13500 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13501 if a PT_IO ptrace request returns sucessfully but indicates that 0
13502 bytes were transferred.
13503
706d0883
PA
135042014-02-12 Pedro Alves <palves@redhat.com>
13505 Kevin Buettner <kevinb@redhat.com>
13506
13507 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13508 TYPE_INSTANCE_FLAG_CODE_SPACE.
13509
5caa2f0b
PA
135102014-02-12 Pedro Alves <palves@redhat.com>
13511
13512 * h8300-tdep.c (pseudo_from_raw_register)
13513 (raw_from_pseudo_register): New functions.
13514 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13515 them.
13516
76fd5f74
PA
135172014-02-12 Pedro Alves <palves@redhat.com>
13518
13519 * h8300-tdep.c (h8300_register_sim_regno): New function.
13520 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13521 gdbarch_register_sim_regno hook.
13522
8f008406
SA
135232014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13524
13525 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13526
195abc10
SA
135272014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13528
13529 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13530
93ffa5b9
MK
135312014-02-12 Mark Kettenis <kettenis@gnu.org>
13532
13533 * obsd-tdep.h (obsd_init_abi): New prototype.
13534 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13535 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13536 (obsd_init_abi): New functions.
13537 * i386obsd-tdep.c: Include "obsd-tdep.h".
13538 (i386obsd_init_abi): Call obsd_init_abi.
13539 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13540 (amd64obsd_init_abi): Call obsd_init_abi.
13541 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13542 obsd-tdep.c to gdb_target_obs.
13543
49caec94
JM
135442014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13545
13546 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13547 double float arguments to 16-byte in the argument slots.
13548
e1402065
DE
135492014-02-11 Doug Evans <xdje42@gmail.com>
13550
13551 * configure.ac: Don't crash if pkg-config is not found and guile
13552 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13553 in guile checks.
13554 * configure: Regenerate.
13555
edcc890f
YQ
135562014-02-11 Yao Qi <yao@codesourcery.com>
13557
13558 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13559 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13560 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13561 * gnu-nat.c (gnu_xfer_memory): Likewise.
13562 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13563 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13564 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13565 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13566
9b409511
YQ
135672014-02-11 Yao Qi <yao@codesourcery.com>
13568
13569 * target.h (enum target_xfer_error): Rename to ...
13570 (enum target_xfer_status): ... it. New. All users updated.
13571 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13572 New.
13573 (TARGET_XFER_STATUS_ERROR_P): New macro.
13574 (target_xfer_error_to_string): Remove declaration.
13575 (target_xfer_status_to_string): Declare.
13576 (target_xfer_partial_ftype): Adjust it.
13577 (struct target_ops) <to_xfer_partial>: Return
13578 target_xfer_status. Add argument xfered_len. Update
13579 comments.
13580 * target.c (target_xfer_error_to_string): Rename to ...
13581 (target_xfer_status_to_string): ... it. New. All callers
13582 updated.
13583 (target_read_live_memory): Likewise. Call target_xfer_partial
13584 instead of target_read.
13585 (memory_xfer_live_readonly_partial): Return
13586 target_xfer_status. Add argument xfered_len.
13587 (raw_memory_xfer_partial): Likewise.
13588 (memory_xfer_partial_1): Likewise.
13589 (memory_xfer_partial): Likewise.
13590 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13591 properly. Update debug message.
13592 (default_xfer_partial, current_xfer_partial): Likewise.
13593 (target_write_partial): Likewise.
13594 (target_read_partial): Likewise. All callers updated.
13595 (read_whatever_is_readable): Likewise.
13596 (target_write_with_progress): Likewise.
13597 (target_read_alloc_1): Likewise.
13598
13599 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13600 * auxv.c (procfs_xfer_auxv): Likewise.
13601 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13602 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13603 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13604 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13605 * corefile.c (read_memory): Adjust.
13606 * corelow.c (core_xfer_partial): Likewise.
13607 * ctf.c (ctf_xfer_partial): Likewise.
13608 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13609 updated.
13610 (darwin_xfer_partial): Likewise.
13611 * exec.c (section_table_xfer_memory_partial): Likewise. All
13612 callers updated.
13613 (exec_xfer_partial): Likewise.
13614 * exec.h (section_table_xfer_memory_partial): Update
13615 declaration.
13616 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13617 negative.
13618 (gnu_xfer_partial): Likewise.
13619 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13620 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13621 (ia64_hpux_xfer_solib_got): Likewise.
13622 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13623 type of 'partial_len' to ULONGEST.
13624 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13625 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13626 (linux_nat_xfer_partial): Likewise.
13627 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13628 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13629 * monitor.c (monitor_xfer_memory): Likewise.
13630 (monitor_xfer_partial): Likewise.
13631 * procfs.c (procfs_xfer_partial): Likewise.
13632 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13633 * record-full.c (record_full_xfer_partial): Likewise.
13634 (record_full_core_xfer_partial): Likewise.
13635 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13636 (gdbsim_xfer_partial): Likewise.
13637 * remote.c (remote_write_bytes_aux): Likewise. All callers
13638 updated.
13639 (remote_write_bytes, remote_read_bytes): Likewise. All
13640 callers updated.
13641 (remote_flash_erase): Likewise. All callers updated.
13642 (remote_write_qxfer): Likewise. All callers updated.
13643 (remote_read_qxfer): Likewise. All callers updated.
13644 (remote_xfer_partial): Likewise.
13645 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13646 (rs6000_xfer_shared_libraries): Likewise.
13647 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13648 (sol_thread_xfer_partial): Likewise.
13649 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13650 (sparc_xfer_partial): Likewise.
13651 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13652 updated.
13653 (spu_xfer_partial): Likewise.
13654 * spu-multiarch.c (spu_xfer_partial): Likewise.
13655 * tracepoint.c (tfile_xfer_partial): Likewise.
13656 * windows-nat.c (windows_xfer_memory): Likewise.
13657 (windows_xfer_shared_libraries): Likewise.
13658 (windows_xfer_partial): Likewise.
13659 * valprint.c: Replace 'target_xfer_error' with
13660 'target_xfer_status' in comments.
13661
a8e63083
JB
136622014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13663
13664 Checked in by Joel Brobecker <brobecker@adacore.com>.
13665 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13666
e86b67d3
JB
136672014-02-11 Joel Brobecker <brobecker@adacore.com>
13668
13669 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13670 function parameters.
13671
4b7d1f7f
WN
136722014-02-10 Will Newton <will.newton@linaro.org>
13673
13674 * elfread.c (elf_rel_plt_read): Look for a .got section if
13675 looking up .got.plt fails.
13676 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13677 on address passed to elf_gnu_ifunc_record_cache.
13678 (elf_gnu_ifunc_resolve_addr): Likewise.
13679 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13680
961842b2
JM
136812014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13682
13683 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13684 (X_RETTURN): New macro.
13685 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13686
13687 * sparc64-tdep.c (sparc64_init_abi): Hook
13688 sparc_in_function_epilogue_p.
13689
3f03e7b1
GB
136902014-02-10 Gary Benson <gbenson@redhat.com>
13691
13692 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13693 Rename name_matcher to symbol_matcher.
13694
96f861ef
GB
136952014-02-10 Gary Benson <gbenson@redhat.com>
13696
13697 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13698 Use expand_symtabs_file_matcher_ftype and
13699 expand_symtabs_symbol_matcher_ftype.
13700
ee01b665
JB
137012014-02-10 Joel Brobecker <brobecker@adacore.com>
13702
13703 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13704 (struct ada_symbol_cache): New.
13705 (ada_free_symbol_cache): Forward declare.
13706 (struct ada_pspace_data): New.
13707 (ada_pspace_data_handle): New static global.
13708 (get_ada_pspace_data, ada_pspace_data_cleanup)
13709 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13710 (cache_space, cache): Delete, now folded inside struct
13711 ada_pspace_data.
13712 (ada_get_symbol_cache): New function.
13713 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13714 implementation.
13715 (_initialize_ada_language): Remove initialization of cache_space.
13716 Move call to observer_attach_inferior_exit up, grouping it
13717 with the other observer registrations inside this function.
13718 Rename command to be more general. Add call to
13719 register_program_space_data_with_cleanup.
13720
143adbbf
JB
137212014-02-10 Joel Brobecker <brobecker@adacore.com>
13722
13723 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13724 ada_new_objfile_observer.
13725 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13726 (_initialize_tasks): Update uses of ada_new_objfile_observer
13727 and ada_tasks_normal_stop_observer.
13728
aa4fb036
JB
137292014-02-10 Joel Brobecker <brobecker@adacore.com>
13730
13731 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13732 returned by the 'Length attribute to integer.
13733
9dee8cc6
JB
137342014-02-10 Joel Brobecker <brobecker@adacore.com>
13735
13736 * ada-lang.c (_initialize_ada_language): Initialize
13737 cache_space obstack.
13738
3d9434b5
JB
137392014-02-10 Joel Brobecker <brobecker@adacore.com>
13740
13741 * ada-lang.c (HASH_SIZE): New macro.
13742 (struct cache_entry): New type.
13743 (cache_space, cache): New static globals.
13744 (ada_clear_symbol_cache, find_entry): New functions.
13745 (lookup_cached_symbol, cache_symbol): Implement.
13746 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13747 (_initialize_ada_language): Attach ada_new_objfile_observer
13748 and ada_free_objfile_observer.
13749
f0c5f9b2
JB
137502014-02-10 Joel Brobecker <brobecker@adacore.com>
13751
13752 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13753 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13754 struct block * parameter.
13755 (ada_lookup_symbol_list_worker): Constify local variable "block".
13756 Remove cast which is no longer necessary.
13757
ed3ef339
DE
137582014-02-10 Doug Evans <xdje42@gmail.com>
13759
13760 Add Guile as an extension language.
13761 * NEWS: Mention Guile scripting.
13762 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13763 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13764 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13765 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13766 (CLIBS): Add GUILE_LIBS.
13767 (install-guile): New rule.
13768 (guile.o): New rule.
13769 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13770 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13771 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13772 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13773 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13774 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13775 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13776 * configure.ac: New option --with-guile.
13777 * configure: Regenerate.
13778 * config.in: Regenerate.
13779 * auto-load.c: Remove #include "python/python.h". Add #include
13780 "gdb/section-scripts.h".
13781 (source_section_scripts): Handle Guile scripts.
13782 (_initialize_auto_load): Add name of Guile objfile script to
13783 scripts-directory help text.
13784 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13785 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13786 (struct breakpoint): New member scm_bp_object.
13787 * defs.h (enum command_control_type): New value guile_control.
13788 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13789 "extension.h".
13790 (show_user): Update comment.
13791 (_initialize_cli_cmds): Update help text for "show user". Update help
13792 text for max-user-call-depth.
13793 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13794 "extension.h".
13795 (multi_line_command_p): Add guile_control.
13796 (print_command_lines): Handle guile_control.
13797 (execute_control_command, recurse_read_control_structure): Ditto.
13798 (process_next_line): Recognize "guile" commands.
13799 * disasm.c (gdb_disassemble_info): Make non-static.
13800 * disasm.h: #include "dis-asm.h".
13801 (struct gdbarch): Add forward decl.
13802 (gdb_disassemble_info): Declare.
13803 * extension.c: #include "guile/guile.h".
13804 (extension_languages): Add guile.
13805 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13806 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13807 * gdbtypes.c (get_unsigned_type_max): New function.
13808 (get_signed_type_minmax): New function.
13809 * gdbtypes.h (get_unsigned_type_max): Declare.
13810 (get_signed_type_minmax): Declare.
13811 * guile/README: New file.
13812 * guile/guile-internal.h: New file.
13813 * guile/guile.c: New file.
13814 * guile/guile.h: New file.
13815 * guile/scm-arch.c: New file.
13816 * guile/scm-auto-load.c: New file.
13817 * guile/scm-block.c: New file.
13818 * guile/scm-breakpoint.c: New file.
13819 * guile/scm-disasm.c: New file.
13820 * guile/scm-exception.c: New file.
13821 * guile/scm-frame.c: New file.
13822 * guile/scm-gsmob.c: New file.
13823 * guile/scm-iterator.c: New file.
13824 * guile/scm-lazy-string.c: New file.
13825 * guile/scm-math.c: New file.
13826 * guile/scm-objfile.c: New file.
13827 * guile/scm-ports.c: New file.
13828 * guile/scm-pretty-print.c: New file.
13829 * guile/scm-safe-call.c: New file.
13830 * guile/scm-string.c: New file.
13831 * guile/scm-symbol.c: New file.
13832 * guile/scm-symtab.c: New file.
13833 * guile/scm-type.c: New file.
13834 * guile/scm-utils.c: New file.
13835 * guile/scm-value.c: New file.
13836 * guile/lib/gdb.scm: New file.
13837 * guile/lib/gdb/boot.scm: New file.
13838 * guile/lib/gdb/experimental.scm: New file.
13839 * guile/lib/gdb/init.scm: New file.
13840 * guile/lib/gdb/iterator.scm: New file.
13841 * guile/lib/gdb/printing.scm: New file.
13842 * guile/lib/gdb/types.scm: New file.
13843 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13844 (VPATH): Add $(GUILE_SRCDIR).
13845 (GUILE_DIR): New variable.
13846 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13847 (all): Add stamp-guile dependency.
13848 (stamp-guile): New rule.
13849 (clean-guile, install-guile, uninstall-guile): New rules.
13850 (install-only): Add install-guile dependency.
13851 (uninstall): Add uninstall-guile dependency.
13852 (clean): Add clean-guile dependency.
13853
ac020ec5
DE
138542014-02-09 Doug Evans <xdje42@gmail.com>
13855
13856 Revert this patch (which I approved, mea culpa).
13857
13858 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13859
13860 * Makefile.in (all-lib): Remove.
13861 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13862
2a081c59
JK
138632014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13864
13865 Fix Python stack corruption.
13866 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13867 gdb_py_longest.
13868
0a6bd22d
MK
138692014-02-08 Mark Kettenis <kettenis@gnu.org>
13870
13871 * Makefile.in (all-lib): Remove.
13872 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13873
1a860409
DE
138742014-02-07 Doug Evans <dje@google.com>
13875
13876 * extension-priv.h (extension_language_script_ops): Add comment.
13877 (extension_language_ops): Add comment.
caf5a491 13878 (active_ext_lang_state): Fix typo in comment.
1a860409 13879
d137e6dc
PA
138802014-02-07 Pedro Alves <palves@redhat.com>
13881
0dcb32c3 13882 PR breakpoints/16292
d137e6dc
PA
13883 * infrun.c (handle_signal_stop) <signal arrives while stepping
13884 over a breakpoint>: Switch back to the stepping thread.
13885
ce6d0892
YQ
138862014-02-07 Yao Qi <yao@codesourcery.com>
13887
13888 * target.c (target_xfer_partial): Return zero if LEN is zero.
13889
2ed4b548
YQ
138902014-02-07 Yao Qi <yao@codesourcery.com>
13891
13892 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13893 (ld_so_xfer_auxv): Likewise.
13894 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13895 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13896 * corelow.c (core_xfer_partial): Likewise.
13897 * ctf.c (ctf_xfer_partial): Likewise.
13898 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13899 (darwin_xfer_partial): Likewise.
13900 * exec.c (exec_xfer_partial): Likewise.
13901 * gnu-nat.c (gnu_xfer_partial): Likewise.
13902 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13903 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13904 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13905 * linux-nat.c (linux_xfer_siginfo): Likewise.
13906 (linux_proc_xfer_spu): Likewise.
13907 * procfs.c (procfs_xfer_partial): Likewise.
13908 * record-full.c (record_full_xfer_partial): Likewise.
13909 (record_full_core_xfer_partial): Likewise.
13910 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13911 * remote.c (remote_write_qxfer): Likewise.
13912 (remote_write_qxfer, remote_read_qxfer): Likewise.
13913 (remote_xfer_partial): Likewise.
13914 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13915 (rs6000_xfer_shared_libraries): Likewise.
13916 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13917 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13918 (spu_xfer_partial): Likewise.
13919 * target.c (memory_xfer_partial_1): Likewise.
13920 * tracepoint.c (tfile_xfer_partial): Likewise.
13921 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13922 (windows_xfer_partial): Likewise.
13923
c09f20e4
YQ
139242014-02-07 Yao Qi <yao@codesourcery.com>
13925
13926 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13927 comments.
13928 (core_xfer_shared_libraries_aix): Likewise.
13929 * gdbarch.c, gdbarch.h: Regenerated.
13930 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13931 ULONGEST. Change 'len_avail' type to ULONGEST.
13932 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13933 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13934 declaration.
13935 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13936
8635b3bf
YQ
139372014-02-07 Yao Qi <yao@codesourcery.com>
13938
13939 * corefile.c (memory_error): Get 'exception' from ERR and pass
13940 'exception' to throw_error.
13941
6dddc817
DE
139422014-02-06 Doug Evans <xdje42@gmail.com>
13943
13944 * configure.ac (libpython checking): Remove all but python.o from
13945 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13946 * configure: Regenerate.
13947
13948 * Makefile.in (SFILES): Add extension.c.
13949 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13950 (COMMON_OBS): Add extension.o.
13951 * extension.h: New file.
13952 * extension-priv.h: New file.
13953 * extension.c: New file.
13954
13955 * python/python-internal.h: #include "extension.h".
13956 (gdbpy_auto_load_enabled): Declare.
13957 (gdbpy_apply_val_pretty_printer): Declare.
13958 (gdbpy_apply_frame_filter): Declare.
13959 (gdbpy_preserve_values): Declare.
13960 (gdbpy_breakpoint_cond_says_stop): Declare.
13961 (gdbpy_breakpoint_has_cond): Declare.
13962 (void source_python_script_for_objfile): Delete.
13963 * python/python.c: #include "extension-priv.h".
13964 Delete inclusion of "observer.h".
13965 (extension_language_python): Moved here and renamed from
13966 script_language_python in py-auto-load.c.
13967 Redefined to be of type extension_language_defn.
13968 (python_extension_script_ops): New global.
13969 (python_extension_ops): New global.
13970 (struct python_env): New member previous_active.
13971 (restore_python_env): Call restore_active_ext_lang.
13972 (ensure_python_env): Call set_active_ext_lang.
13973 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13974 New arg extlang.
13975 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13976 New arg extlang.
13977 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13978 New arg extlang.
13979 (gdbpy_eval_from_control_command): Renamed from
13980 eval_python_from_control_command, made static. New arg extlang.
13981 (gdbpy_source_script) Renamed from source_python_script, made static.
13982 New arg extlang.
13983 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13984 result to int. New arg extlang.
13985 (gdbpy_source_objfile_script): Renamed from
13986 source_python_script_for_objfile, made static. New arg extlang.
13987 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13988 static. New args extlang, extlang_printers. Change result type to
13989 "void".
13990 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13991 static. New arg extlang. Rename arg printers to extlang_printers
13992 and change type to ext_lang_type_printers *.
13993 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13994 static. Replace argument arg with extlang, extlang_printers.
13995 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13996 (!HAVE_PYTHON, source_python_script): Delete.
13997 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13998 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13999 (!HAVE_PYTHON, start_type_printers): Delete.
14000 (!HAVE_PYTHON, apply_type_printers): Delete.
14001 (!HAVE_PYTHON, free_type_printers): Delete.
14002 (_initialize_python): Delete call to observer_attach_before_prompt.
14003 (finalize_python): Set/restore active extension language.
14004 (gdbpy_finish_initialization) Renamed from
14005 finish_python_initialization, made static. New arg extlang.
14006 (gdbpy_initialized): New function.
14007 * python/python.h: #include "extension.h". Delete #include
14008 "value.h", "mi/mi-cmds.h".
14009 (extension_language_python): Declare.
14010 (GDBPY_AUTO_FILE_NAME): Delete.
14011 (enum py_bt_status): Moved to extension.h and renamed to
14012 ext_lang_bt_status.
14013 (enum frame_filter_flags): Moved to extension.h.
14014 (enum py_frame_args): Moved to extension.h and renamed to
14015 ext_lang_frame_args.
14016 (finish_python_initialization): Delete.
14017 (eval_python_from_control_command): Delete.
14018 (source_python_script): Delete.
14019 (apply_val_pretty_printer): Delete.
14020 (apply_frame_filter): Delete.
14021 (preserve_python_values): Delete.
14022 (gdbpy_script_language_defn): Delete.
14023 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14024 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14025
14026 * auto-load.c: #include "extension.h".
14027 (GDB_AUTO_FILE_NAME): Delete.
14028 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14029 (script_language_gdb): Delete, moved to extension.c and renamed to
14030 extension_language_gdb.
14031 (source_gdb_script_for_objfile): Delete.
14032 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14033 (loaded_script): Change type of language member to
14034 struct extension_language_defn *.
14035 (init_loaded_scripts_info): Initialize
14036 unsupported_script_warning_printed.
14037 (maybe_add_script): Make static. Change type of language arg to
14038 struct extension_language_defn *.
14039 (clear_section_scripts): Reset unsupported_script_warning_printed.
14040 (auto_load_objfile_script_1): Rewrite to use extension language API.
14041 (auto_load_objfile_script): Make public. Remove support-compiled-in
14042 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14043 (source_section_scripts): Rewrite to use extension language API.
14044 (load_auto_scripts_for_objfile): Rewrite to use
14045 auto_load_scripts_for_objfile.
14046 (collect_matching_scripts_data): Change type of language member to
14047 struct extension_language_defn *.
14048 (auto_load_info_scripts): Change type of language arg to
14049 struct extension_language_defn *.
14050 (unsupported_script_warning_print): New function.
14051 (script_not_found_warning_print): Make static.
14052 (_initialize_auto_load): Rewrite construction of scripts-directory
14053 help.
14054 * auto-load.h (struct objfile): Add forward decl.
14055 (struct script_language): Delete.
14056 (struct auto_load_pspace_info): Add forward decl.
14057 (struct extension_language_defn): Add forward decl.
14058 (maybe_add_script): Delete.
14059 (auto_load_objfile_script): Declare.
14060 (script_not_found_warning_print): Delete.
14061 (auto_load_info_scripts): Update prototype.
14062 (auto_load_gdb_scripts_enabled): Declare.
14063 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14064 auto_load_python_scripts_enabled and made public.
14065 (script_language_python): Delete, moved to python.c.
14066 (gdbpy_script_language_defn): Delete.
14067 (info_auto_load_python_scripts): Update to use
14068 extension_language_python.
14069
14070 * breakpoint.c (condition_command): Replace call to
14071 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14072 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14073 with call to breakpoint_ext_lang_cond_says_stop.
14074 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14075 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14076 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14077 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14078 New arg slang.
14079 (local_setattro): Print name of extension language with existing
14080 stop condition.
14081
14082 * valprint.c (val_print, value_print): Update to call
14083 apply_ext_lang_val_pretty_printer.
14084 * cp-valprint.c (cp_print_value): Update call to
14085 apply_ext_lang_val_pretty_printer.
14086 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14087 (gdbpy_apply_val_pretty_printer): Renamed from
14088 apply_val_pretty_printer. New arg extlang.
14089 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14090
14091 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14092 extension language API.
14093 * cli/cli-script.c (execute_control_command): Update to call
14094 eval_ext_lang_from_control_command.
14095
14096 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14097 enum ext_lang_bt_status values. Update call to
14098 apply_ext_lang_frame_filter.
14099 (mi_cmd_stack_list_locals): Ditto.
14100 (mi_cmd_stack_list_args): Ditto.
14101 (mi_cmd_stack_list_variables): Ditto.
14102 * mi/mi-main.c: Delete #include "python/python-internal.h".
14103 Add #include "extension.h".
14104 (mi_cmd_list_features): Replace reference to python internal variable
14105 gdb_python_initialized with call to ext_lang_initialized_p.
14106
14107 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14108 Update to use enum ext_lang_frame_args. Update to call
14109 apply_ext_lang_frame_filter.
14110 * python/py-framefilter.c (extract_sym): Update to use enum
14111 ext_lang_bt_status.
14112 (extract_value, py_print_type, py_print_value): Ditto.
14113 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14114 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14115 (py_print_frame): Ditto.
14116 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14117 New arg extlang. Update to use enum ext_lang_bt_status.
14118
14119 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14120 finish_python_initialization. Replace with call to
14121 finish_ext_lang_initialization.
14122
14123 * typeprint.c (do_free_global_table): Update to call
14124 free_ext_lang_type_printers.
14125 (create_global_typedef_table): Update to call
14126 start_ext_lang_type_printers.
14127 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14128 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14129 (type_print_options): Change type of global_printers from "void *"
14130 to "struct ext_lang_type_printers *".
14131
14132 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14133 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14134 (gdbpy_preserve_values): Renamed from preserve_python_values.
14135 New arg extlang.
14136 (!HAVE_PYTHON, preserve_python_values): Delete.
14137
14138 * utils.c (quit_flag): Delete, moved to extension.c.
14139 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14140 extension.c.
14141
14142 * eval.c: Delete #include "python/python.h".
14143 * main.c: Delete #include "python/python.h".
14144
14145 * defs.h: Update comment.
14146
6af79985
JB
141472014-02-06 Joel Brobecker <brobecker@adacore.com>
14148
14149 GDB 7.7 released.
14150
12c5175d
MK
141512014-02-05 Mark Kettenis <kettenis@gnu.org>
14152
14153 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14154 defined.
14155
8dc5b319
YQ
141562014-02-05 Yao Qi <yao@codesourcery.com>
14157
14158 * remote.c (remote_pass_signals): Remove local 'buf' and use
14159 rs->buf.
14160 (remote_program_signals): Likewise.
14161
de7b2893
YQ
141622014-02-05 Yao Qi <yao@codesourcery.com>
14163
14164 * ctf.c: Include "inferior.h" and "gdbthread.h".
14165 (CTF_PID): A new macro.
14166 (ctf_open): Call inferior_appeared and add_thread_silent.
14167 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14168 (ctf_thread_alive): New function.
14169 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14170
66d032ac
YQ
141712014-02-05 Yao Qi <yao@codesourcery.com>
14172
14173 Revert this patch:
14174
14175 2013-05-24 Yao Qi <yao@codesourcery.com>
14176
14177 * tracepoint.c (TFILE_PID): Remove.
14178 (tfile_open): Don't add thread and inferior.
14179 (tfile_close): Don't set 'inferior_ptid'. Don't call
14180 exit_inferior_silent.
14181 (tfile_thread_alive): Remove.
14182 (init_tfile_ops): Don't set field 'to_thread_alive' of
14183 tfile_ops.
14184
f4ccffad
CE
141852014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14186
14187 * remote.c (remote_start_remote): Call remote_check_symbols even
14188 if only symbol-file (not file) has been given.
14189
591a12a1
UW
141902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14191
14192 * gdbarch.sh (skip_entrypoint): New callback.
14193 * gdbarch.c, gdbarch.h: Regenerate.
14194 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14195 * infrun.c (fill_in_stop_func): Likewise.
14196 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14197 (ppc_elfv2_elf_make_msymbol_special): New function.
14198 (ppc_elfv2_skip_entrypoint): Likewise.
14199 (ppc_linux_init_abi): Install them for ELFv2.
14200
cc0e89c5
UW
142012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14202
14203 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14204 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14205 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14206 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14207 structures returned in GPRs.
14208
52f548e4
UW
142092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14210
14211 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14212 offset to the stack parameter list for the ELFv2 ABI.
14213
d4094b6a
UW
142142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14215
14216 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14217 set_gdbarch_convert_from_func_ptr_addr and
14218 set_gdbarch_elf_make_msymbol_special for ELFv1.
14219 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14220 function descriptors on ELFv1.
14221 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14222 set up r12 at function entry.
14223
cd453cd0
UW
142242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14225
14226 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14227 (struct gdbarch_tdep): New member elf_abi.
14228
14229 * rs6000-tdep.c: Include "elf/ppc64.h".
14230 (rs6000_gdbarch_init): Detect ELF ABI version.
14231
0ff3e01f
UW
142322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14233
14234 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14235 within a register pair holding a DFP 128-bit value on little-endian.
14236 (ppc64_sysv_abi_return_value_base): Likewise.
14237 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14238 (dfp_pseudo_register_write): Likewise.
14239
5b757e5d
UW
142402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14241
14242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14243 offset on little-endian when passing _Decimal32.
14244 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14245
084ee545
UW
142462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14247
14248 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14249 of the overlapped FP register within the VSX register on little-
14250 endian platforms.
14251 (efpr_pseudo_register_write): Likewise.
14252
d63167af
UW
142532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14254
14255 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14256 offset on little-endian when passing small structures.
14257
e765b44c
UW
142582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14259
14260 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14261 (struct ppc64_sysv_argpos): New data structure.
14262 (ppc64_sysv_abi_push_float): Remove.
14263 (ppc64_sysv_abi_push_val): New function.
14264 (ppc64_sysv_abi_push_integer): Likewise.
14265 (ppc64_sysv_abi_push_freg): Likewise.
14266 (ppc64_sysv_abi_push_vreg): Likewise.
14267 (ppc64_sysv_abi_push_param): Likewise.
14268 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14269 (ppc64_sysv_abi_return_value_base): New function.
14270 (ppc64_sysv_abi_return_value): Refactor to use it.
14271
36c24d95
UW
142722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14273
14274 * NEWS: Document new target powerpc64le-*-linux*.
14275
26fd9228
MK
142762014-02-04 Mark Kettenis <kettenis@gnu.org>
14277
14278 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14279 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14280 core dumps.
14281 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14282 register set used in ELF core dumps. Add floating-point register set.
14283
c5bb7362
KB
142842014-02-03 Kevin Buettner <kevinb@redhat.com>
14285
74228e77 14286 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14287 dwarf2_to_gdb[] table using symbolic constants. Adjust
14288 penultimate entry from number representing the PC register
14289 to symbolic constant representing the MDR register. Add
14290 constant for the PC register to the end of the table.
14291
af09351e
MK
142922014-02-03 Mark Kettenis <kettenis@gnu.org>
14293
14294 * bsd-kvm.c: Include <sys/param.h>
14295
8507e05d
MK
142962014-02-03 Mark Kettenis <kettenis@gnu.org>
14297
14298 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14299
ae56bfb8
JB
143002014-01-31 Joel Brobecker <brobecker@adacore.com>
14301
14302 * ada-lang.h (clear_ada_sym_cache): Delete.
14303
718ee4dc
UW
143042014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14305
14306 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14307
401e27fd
JM
143082014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14309
14310 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14311 the sigreturn register save area only if the syscall is
14312 sigreturn.
14313
a7c88acd
JB
143142014-01-29 Joel Brobecker <brobecker@adacore.com>
14315
14316 * valops.c (value_slice): Minor reformatting.
14317
fa0079ea
UW
143182014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14319
14320 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14321
c6044dd1
JB
143222014-01-28 Joel Brobecker <brobecker@adacore.com>
14323
14324 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14325 New static globals.
14326 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14327 (ada_ignore_descriptive_types_p): New static global.
14328 (find_parallel_type_by_descriptive_type): Return immediately
14329 if ada_ignore_descriptive_types_p is set.
14330 (_initialize_ada_language): Register new commands "maintenance
14331 set ada", "maintenance show ada", "maintenance set ada
14332 ignore-descriptive-types" and "maintenance show ada
14333 ignore-descriptive-types".
14334 * NEWS: Add entry for new "maint ada set/show
14335 ignore-descriptive-types" commands.
14336
568e808b
MM
143372014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14338
14339 * record-btrace.c (record_btrace_close): Call btrace_teardown
14340 for all threads.
14341
467d141b
JB
143422014-01-27 Joel Brobecker <brobecker@adacore.com>
14343
14344 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14345 "ui-out.h".
14346
fb151210
JB
143472014-01-27 Joel Brobecker <brobecker@adacore.com>
14348
14349 * ada-typeprint (type_is_full_subrange_of_target_type):
14350 New function.
14351 (print_range): Add parameter bounds_prefered_p. If not set,
14352 try printing range types using the name of their base type.
14353 (print_range_type): Add parameter bounds_prefered_p.
14354 Use it in call to print_range.
14355 (print_array_type, ada_print_type): Update calls to print_range
14356 and print_range_type.
14357
aba02109
JB
143582014-01-27 Joel Brobecker <brobecker@adacore.com>
14359
14360 * ada-typeprint.c (print_array_type, print_choices, print_range)
14361 (print_range_bound, print_dynamic_range_bound, print_range_type):
14362 Remove declaration.
14363
e62e21fd
JB
143642014-01-27 Joel Brobecker <brobecker@adacore.com>
14365
14366 * ada-typeprint.c (print_range): Add missing empty line
14367 after local declaration.
14368
859cf5d1
JB
143692014-01-27 Joel Brobecker <brobecker@adacore.com>
14370
14371 * ada-valprint.c (print_optional_low_bound): Get index_type's
14372 target type for as long as it is a TYPE_CODE_RANGE.
14373
25790f6f
JB
143742014-01-27 Joel Brobecker <brobecker@adacore.com>
14375
14376 * procfs.c (procfs_make_note_section): Remove assertion and
14377 associated comment.
14378
6b6aa828
YQ
143792014-01-24 Yao Qi <yao@codesourcery.com>
14380
14381 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14382 * corelow.c (get_core_siginfo): Likewise.
14383
5d6df423
YQ
143842014-01-24 Yao Qi <yao@codesourcery.com>
14385
14386 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14387 ULONGEST. Don't check 'len' is negative.
14388 (remote_write_bytes): Change type of 'len' to ULONGEST.
14389
83b645b8
TT
143902014-01-23 Tom Tromey <tromey@redhat.com>
14391
14392 PR python/16485:
14393 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14394 Handle exception from frame.block.
14395 (FrameVars.fetch_frame_locals): Likewise.
14396
0740f8d8
TT
143972014-01-23 Tom Tromey <tromey@redhat.com>
14398
14399 PR python/16487:
14400 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14401 on a NULL pointer. Move "goto error" to correct place.
14402
21909fa1
TT
144032014-01-23 Tom Tromey <tromey@redhat.com>
14404
14405 PR python/16491:
14406 * python/py-framefilter.c (apply_frame_filter): Call
14407 ensure_python_env after computing gdbarch.
14408
17fde6d0
YQ
144092014-01-23 Yao Qi <yao@codesourcery.com>
14410
14411 * target.c (raw_memory_xfer_partial): Change argument type
14412 from void * to gdb_byte *.
14413 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14414
87ce2a04
DE
144152014-01-22 Doug Evans <dje@google.com>
14416
14417 New gdbserver option --debug-format=timestamp.
14418 * NEWS: Mention it.
14419
237b092b
AA
144202014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14421
14422 * syscalls/s390x-linux.xml: New file.
14423 * syscalls/s390-linux.xml: New file.
14424 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14425 (XML_SYSCALL_FILENAME_S390X): Likewise.
14426 (op_svc): New enum value for SVC opcode.
14427 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14428 (s390_linux_get_syscall_number): New function.
14429 (s390_gdbarch_init): Register '*get_syscall_number' and the
14430 syscall xml file name.
14431 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14432 "s390-linux.xml" and "s390x-linux.xml".
14433 * NEWS: Announce new feature.
14434
54bff650
BS
144352014-01-22 Baruch Siach <baruch@tkos.co.il>
14436
14437 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14438
14e361d7
PA
144392014-01-22 Pedro Alves <palves@redhat.com>
14440
14441 * xtensa-config.c: Include defs.h.
14442
46bbb3ed
JB
144432014-01-22 Joel Brobecker <brobecker@adacore.com>
14444
14445 * common/common-utils.h: Add "ARI:" comment beside __func__
14446 reference.
14447
3a80edfc
JB
144482014-01-22 Joel Brobecker <brobecker@adacore.com>
14449
14450 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14451 documentation a bit.
14452
4869db5e
RM
144532014-01-21 Roland McGrath <mcgrathr@google.com>
14454
14455 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14456 * configure: Regenerate.
14457 * aclocal.m4: Regenerate.
14458 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14459 New substituted variables.
14460 (install-strip): New target.
14461 (INSTALL_SCRIPT): New substituted variable.
14462 (FLAGS_TO_PASS): Add it.
14463 (install-only): Use $(INSTALL_SCRIPT) rather than
14464 $(INSTALL_PROGRAM) for gcore.
14465
9ea4267d
TT
144662014-01-20 Tom Tromey <tromey@redhat.com>
14467
14468 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14469 together.
14470
1f2bdf09
TT
144712014-01-20 Tom Tromey <tromey@redhat.com>
14472
14473 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14474 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14475 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14476 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14477 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14478 (struct cmd_list_element) <flags>: Remove.
14479 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14480 doc_allocated>: New fields.
14481 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14482 bitfields.
14483 * maint.c (maintenance_do_deprecate): Update.
14484 * top.c (execute_command): Update.
14485
e671835b
BS
144862014-01-20 Baruch Siach <baruch@tkos.co.il>
14487
14488 * xtensa-linux-nat.c: Include asm/ptrace.h.
14489
50367cd2
IB
144902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14491
14492 * Makefile.in (SFILES): Add d-support.c.
14493 (COMMON_OBS): Add d-support.o.
14494 * d-lang.h (d_parse_symbol): Add comment, now defined in
14495 d-support.c.
14496 * d-lang.c (parse_call_convention)
14497 (parse_attributes, parse_function_types)
14498 (parse_function_args, parse_type, parse_identifier)
14499 (call_convention_p, d_parse_symbol): Move functions to ...
14500 * d-support.c: ... New file.
14501
ec9f644a
IB
145022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14503
14504 * d-lang.h (d_parse_symbol): Add declaration.
14505 * d-lang.c (extract_identifiers)
14506 (extract_type_info): Remove functions.
14507 (parse_call_convention, parse_attributes)
14508 (parse_function_types, parse_function_args)
14509 (parse_type, parse_identifier, call_convention_p)
14510 (d_parse_symbol): New functions.
14511 (d_demangle): Use d_parse_symbol to demangle D symbols.
14512
94b1b47e
IB
145132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14514
14515 * d-lang.h (struct builtin_d_type): New data type.
14516 (builtin_d_type): Add declaration.
14517 * d-lang.c (d_language_arch_info, build_d_types)
14518 (builtin_d_type): New functions.
14519 (enum d_primitive_types): New data type.
14520 (d_language_defn): Change c_language_arch_info to
14521 d_language_arch_info.
14522 (d_type_data): New static variable.
14523 (_initialize_d_language): Initialize d_type_data.
14524
63778547
IB
145252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14526
14527 * d-lang.h (d_main_name): Add declaration.
14528 * d-lang.c (d_main_name): New function.
14529 * symtab.c (find_main_name): Add call to d_main_name.
14530
3271ba66
IB
145312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14532
14533 * d-lang.c (d_language_defn): Change macro_expansion_c to
14534 macro_expansion_no.
14535
d36b3012
IB
145362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14537
14538 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14539
c90a6fb7
SDJ
145402014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14541
14542 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14543 gdb_exception" declaration.
14544 * remote.c (getpkt_or_notif_sane): Likewise.
14545
749234e5
DE
145462014-01-17 Doug Evans <dje@google.com>
14547
14548 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14549 function, contents of dirnames_to_char_ptr_vec_append moved here.
14550 (delim_string_to_char_ptr_vec): New function.
14551 (dirnames_to_char_ptr_vec_append): Rewrite.
14552 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14553
df049a58
DE
145542014-01-17 Doug Evans <dje@google.com>
14555
14556 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14557 and moved here ...
14558 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14559 #include "common-utils.h".
14560 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14561 * common/vec.h (VEC_ASSERT_PASS): Update.
14562 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14563 (MACH_CHECK_ERROR): Update.
14564
69f97648
SM
145652014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14566
14567 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14568 comments.
14569 * gdbarch.h: Regenerate.
14570
98b1cfdc
TT
145712014-01-16 Tom Tromey <tromey@redhat.com>
14572
14573 * value.c (struct value) <regnum>: Move earlier.
14574
77a19445
TT
145752014-01-16 Tom Tromey <tromey@redhat.com>
14576
14577 * remote.c (extended_remote_create_inferior): Rename from
14578 extended_remote_create_inferior_1. Add "ops" argument. Remove
14579 old implementation.
14580
62261490
PA
145812014-01-16 Pedro Alves <palves@redhat.com>
14582
14583 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14584 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14585 the backchain.
14586
4d65956b
DE
145872014-01-16 Doug Evans <dje@google.com>
14588
14589 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14590
52834460
MM
145912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14592
14593 * btrace.h (btrace_thread_flag): New.
14594 (struct btrace_thread_info) <flags>: New.
14595 * record-btrace.c (record_btrace_resume_thread)
14596 (record_btrace_find_thread_to_move, btrace_step_no_history)
14597 (btrace_step_stopped, record_btrace_start_replaying)
14598 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14599 (record_btrace_find_resume_thread): New.
14600 (record_btrace_resume, record_btrace_wait): Extend.
14601 (record_btrace_can_execute_reverse): New.
14602 (record_btrace_open): Fail in non-stop mode.
14603 (record_btrace_set_replay): Split into this, ...
14604 (record_btrace_stop_replaying): ... this, ...
14605 (record_btrace_clear_histories): ... and this.
14606 (init_record_btrace_ops): Init to_can_execute_reverse.
14607 * NEWS: Announce it.
14608
118e6252
MM
146092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14610
14611 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14612 (forward_target_decr_pc_after_break)
14613 (target_decr_pc_after_break): New.
14614 * target.c (forward_target_decr_pc_after_break)
14615 (target_decr_pc_after_break): New.
14616 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14617 instead of gdbarch_decr_pc_after_break.
14618 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14619 instead of gdbarch_decr_pc_after_break.
14620 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14621 instead of gdbarch_decr_pc_after_break.
14622 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14623 instead of gdbarch_decr_pc_after_break.
14624 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14625 instead of gdbarch_decr_pc_after_break.
14626 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14627 instead of gdbarch_decr_pc_after_break.
14628
6e07b1d2
MM
146292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14630
14631 * btrace.c: Include regcache.h.
14632 (btrace_add_pc): New.
14633 (btrace_enable): Call btrace_add_pc.
14634 (btrace_is_empty): New.
14635 * btrace.h (btrace_is_empty): New.
14636 * record-btrace.c (require_btrace, record_btrace_info): Call
14637 btrace_is_empty.
14638
969c39fb
MM
146392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14640
14641 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14642 Support delta reads.
14643 (linux_disable_btrace): Change return type.
14644 * common/linux-btrace.h (linux_read_btrace): Change parameters
14645 and return type to allow error reporting. Update users.
14646 (linux_disable_btrace): Change return type. Update users.
14647 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14648 New.
14649 (btrace_error): New.
14650 (btrace_block) <begin>: Comment on BEGIN == 0.
14651 * btrace.c (btrace_compute_ftrace): Start from the end of
14652 the current trace.
14653 (btrace_stitch_trace, btrace_clear_history): New.
14654 (btrace_fetch): Read delta trace, return if replaying.
14655 (btrace_clear): Move clear history code to btrace_clear_history.
14656 (parse_xml_btrace): Throw an error if parsing failed.
14657 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14658 and return type to allow error reporting.
14659 (target_read_btrace): Change parameters and return type to allow
14660 error reporting.
14661 * target.c (target_read_btrace): Update.
14662 * remote.c (remote_read_btrace): Support delta reads. Pass
14663 errors on.
14664 * NEWS: Announce it.
14665
0b722aec
MM
146662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14667
14668 * record.h (record_btrace_frame_unwind)
14669 (record_btrace_tailcall_frame_unwind): New declarations.
14670 * dwarf2-frame: Include record.h
14671 (dwarf2_frame_cfa): Throw an error for btrace frames.
14672 * record-btrace.c: Include hashtab.h.
14673 (btrace_get_bfun_name): New.
14674 (btrace_call_history): Call btrace_get_bfun_name.
14675 (struct btrace_frame_cache): New.
14676 (bfcache): New.
14677 (bfcache_hash, bfcache_eq, bfcache_new): New.
14678 (btrace_get_frame_function): New.
14679 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14680 (record_btrace_frame_this_id): Compute own id.
14681 (record_btrace_frame_prev_register): Provide PC, throw_error
14682 for all other registers.
14683 (record_btrace_frame_sniffer): Detect btrace frames.
14684 (record_btrace_tailcall_frame_sniffer): New.
14685 (record_btrace_frame_dealloc_cache): New.
14686 (record_btrace_frame_unwind): Add new functions.
14687 (record_btrace_tailcall_frame_unwind): New.
14688 (_initialize_record_btrace): Allocate cache.
14689 * btrace.c (btrace_clear): Call reinit_frame_cache.
14690 * NEWS: Announce it.
14691
066ce621
MM
146922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14693
14694 * record-btrace.c (record_btrace_set_replay)
14695 (record_btrace_goto_begin, record_btrace_goto_end)
14696 (record_btrace_goto): New.
14697 (init_record_btrace_ops): Initialize them.
14698 * NEWS: Announce it.
14699
e2887aa3
MM
147002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14701
14702 * record-btrace.c (record_btrace_find_new_threads)
14703 (record_btrace_thread_alive): New.
14704 (init_record_btrace_ops): Initialize to_find_new_threads and
14705 to_thread_alive.
14706
b2f4cfde
MM
147072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14708
14709 * record-btrace.c (record_btrace_resume): New.
14710 (record_btrace_wait): New.
14711 (init_record_btrace_ops): Initialize to_wait and to_resume.
14712
633785ff
MM
147132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14714
14715 * record-btrace.c (record_btrace_xfer_partial)
14716 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14717 (record_btrace_allow_memory_access): New.
14718 (init_record_btrace_ops): Initialize new methods.
14719 * target.c (raw_memory_xfer_partial): Bail out if target reports
14720 that this memory is not available.
14721
3db08215
MM
147222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14723
14724 * target.h (target_ops) <to_insert_breakpoint>
14725 <to_remove_breakpoint>: Add target_ops parameter.
14726 (forward_target_insert_breakpoint): New.
14727 (forward_target_remove_breakpoint): New.
14728 (memory_remove_breakpoint, memory_insert_breakpoint):
14729 Add target_ops parameter.
14730 * target.c (target_insert_breakpoint): Split into this and ...
14731 (forward_target_insert_breakpoint): ... this.
14732 (target_remove_breakpoint): Split into this and ...
14733 (forward_target_remove_breakpoint): ... this.
14734 (debug_to_insert_breakpoint): Add target_ops parameter.
14735 Call forward_target_insert_breakpoint.
14736 (debug_to_remove_breakpoint): Add target_ops parameter.
14737 Call forward_target_remove_breakpoint.
14738 (update_current_target): Do not inherit or default to_insert_breakpoint
14739 and to_remove_breakpoint.
14740 * corelow.c (ignore): Add target_ops parameter.
14741 * exec.c (ignore): Add target_ops parameter.
14742 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14743 Add target_ops parameter.
14744 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14745 Add target_ops parameter.
14746 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14747 Add target_ops parameter.
14748 * record-full.c (record_full_beneath_to_insert_breakpoint)
14749 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14750 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14751 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14752 (record_full_core_remove_breakpoint): Add target_ops parameter.
14753 Update users.
14754 (record_full_beneath_to_insert_breakpoint_ops)
14755 (record_full_beneath_to_remove_breakpoint_ops)
14756 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14757 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14758 tmp_to_remove_breakpoint_ops,
14759 record_full_beneath_to_insert_breakpoint_ops, and
14760 record_full_beneath_to_remove_breakpoint_ops.
14761 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14762 (m32r_remove_breakpoint): Add target_ops parameter.
14763 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14764 Add target_ops parameter.
14765 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14766 Add target_ops parameter.
14767
cecac1ab
MM
147682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14769 Markus Metzger <markus.t.metzger@intel.com>
14770
14771 * record-btrace.c: Include frame-unwind.h.
14772 (record_btrace_frame_unwind_stop_reason)
14773 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14774 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14775 New.
14776 (init_record_btrace_ops): Install it.
14777
824344ca
MM
147782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14779
14780 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14781 get_prev_frame_1.
14782
32261e52
MM
147832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14784
14785 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14786 earlier.
14787
ea001bdc
MM
147882014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14789
14790 * frame-unwind.c: Include target.h.
14791 (frame_unwind_try_unwinder): New function with code from ...
14792 (frame_unwind_find_by_frame): ... here. New variable
14793 unwinder_from_target, call also target_get_unwinder)
14794 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14795 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14796 * target.h (struct target_ops): New fields to_get_unwinder and
14797 to_get_tailcall_unwinder.
14798 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14799
1f3ef581
MM
148002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14801
14802 * record-btrace.c (record_btrace_fetch_registers)
14803 (record_btrace_store_registers)
14804 (record_btrace_to_prepare_to_store): New.
14805 (init_record_btrace_ops): Add the above.
14806
f32dbf8c
MM
148072014-01-16 Tom Tromey <tromey@redhat.com>
14808
14809 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14810 * target.h (struct target_ops) <to_prepare_to_store>: Add
14811 argument.
14812 (target_prepare_to_store): Add argument.
14813 * target.c (debug_to_prepare_to_store): Add argument.
14814 (update_current_target): Update.
14815 * remote.c (remote_prepare_to_store): Add 'self' argument.
14816 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14817 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14818 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14819 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14820 argument.
14821 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14822 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14823 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14824 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14825 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14826
07bbe694
MM
148272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14828
14829 * btrace.h (replay) <replay>: New.
14830 (btrace_is_replaying): New.
14831 * btrace.c (btrace_clear): Free replay iterator.
14832 (btrace_is_replaying): New.
14833 * record-btrace.c (record_btrace_is_replaying): New.
14834 (record_btrace_info): Print insn number if replaying.
14835 (record_btrace_insn_history): Start at replay position.
14836 (record_btrace_call_history): Start at replay position.
14837 (init_record_btrace_ops): Init to_record_is_replaying.
14838
0688d04e
MM
148392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14840
14841 * record-btrace.c (record_btrace_insn_history_range): Include
14842 end.
14843 (record_btrace_insn_history_from): Adjust range.
14844 (record_btrace_call_history_range): Include
14845 end.
14846 (record_btrace_call_history_from): Adjust range.
14847 * NEWS: Announce changes.
14848
8710b709
MM
148492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14850
14851 * record.h (enum record_print_flag)
14852 <record_print_indent_calls>: New.
14853 * record.c (get_call_history_modifiers): Recognize /c modifier.
14854 (_initialize_record): Document /c modifier.
14855 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14856 Reorder fields. Optionally indent the function name. Update
14857 all users.
14858 * NEWS: Announce changes.
14859
d0fa7535
MM
148602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14861
14862 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14863
5de9129b
MM
148642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14865
14866 * btrace.c (ftrace_new_function): Start counting at one.
14867 * record-btrace.c (record_btrace_info): Adjust number of calls
14868 and insns.
14869 * NEWS: Announce it.
14870
7acbe133
MM
148712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14872
14873 * record-btrace.c (btrace_call_history_insn_range): Print
14874 insn range as [begin, end].
14875
23a7fe75
MM
148762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14877
14878 * btrace.h (struct btrace_func_link): New.
14879 (enum btrace_function_flag): New.
14880 (struct btrace_inst): Rename to ...
14881 (struct btrace_insn): ...this. Update all users.
14882 (struct btrace_func) <ibegin, iend>: Remove.
14883 (struct btrace_func_link): New.
14884 (struct btrace_func): Rename to ...
14885 (struct btrace_function): ...this. Update all users.
14886 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14887 (number, level, flags>: New.
14888 (struct btrace_insn_iterator): Rename to ...
14889 (struct btrace_insn_history): ...this.
14890 Update all users.
14891 (struct btrace_insn_iterator, btrace_call_iterator): New.
14892 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14893 (struct btrace_target_info) <begin, end, level>
14894 <insn_history, call_history>: New.
14895 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14896 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14897 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14898 (btrace_call_number, btrace_call_begin, btrace_call_end)
14899 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14900 (btrace_find_function_by_number, btrace_set_insn_history)
14901 (btrace_set_call_history): New.
14902 * btrace.c (btrace_init_insn_iterator)
14903 (btrace_init_func_iterator, compute_itrace): Remove.
14904 (ftrace_print_function_name, ftrace_print_filename)
14905 (ftrace_skip_file): Change
14906 parameter to const.
14907 (ftrace_init_func): Remove.
14908 (ftrace_debug): Use new btrace_function fields.
14909 (ftrace_function_switched): Also consider gaining and
14910 losing symbol information).
14911 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14912 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14913 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14914 New.
14915 (ftrace_new_function): Move. Remove debug print.
14916 (ftrace_update_lines, ftrace_update_insns): New.
14917 (ftrace_update_function): Check for call, ret, and jump.
14918 (compute_ftrace): Renamed to ...
14919 (btrace_compute_ftrace): ...this. Rewritten to compute call
14920 stack.
14921 (btrace_fetch, btrace_clear): Updated.
14922 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14923 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14924 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14925 (btrace_call_number, btrace_call_begin, btrace_call_end)
14926 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14927 (btrace_find_function_by_number, btrace_set_insn_history)
14928 (btrace_set_call_history): New.
14929 * record-btrace.c (require_btrace): Use new btrace thread
14930 info fields.
14931 (record_btrace_info, btrace_insn_history)
14932 (record_btrace_insn_history, record_btrace_insn_history_range):
14933 Use new btrace thread info fields and new iterator.
14934 (btrace_func_history_src_line): Rename to ...
14935 (btrace_call_history_src_line): ...this. Use new btrace
14936 thread info fields.
14937 (btrace_func_history): Rename to ...
14938 (btrace_call_history): ...this. Use new btrace thread info
14939 fields and new iterator.
14940 (record_btrace_call_history, record_btrace_call_history_range):
14941 Use new btrace thread info fields and new iterator.
14942
8372a7cb
MM
149432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14944
14945 * frame.h (frame_id_build_unavailable_stack_special): New.
14946 * frame.c (frame_id_build_unavailable_stack_special): New.
14947
c2170eef
MM
149482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14949
14950 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14951 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14952 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14953 to gdbarch.
14954 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14955 (i386_insn_is_jump, i386_jmp_p): New.
14956 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14957 insn_is_jump to gdbarch.
14958 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14959 * gdbarch.h: Regenerated.
14960 * gdbarch.c: Regenerated.
14961 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14962 (default_insn_is_jump): New.
14963 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14964 (default_insn_is_jump): New.
14965
864089d2
MM
149662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14967
14968 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14969 Change to ...
14970 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14971 (btrace_read_type) <btrace_read_new>: Change to ...
14972 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14973
ed9edfb5
MM
149742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14975
14976 * common/linux-btrace.c (linux_read_btrace): Free trace from
14977 previous iteration.
14978
fbcbc3fd
DE
149792014-01-15 Doug Evans <dje@google.com>
14980
14981 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14982 uint32_t.
14983
3d548a53
TT
149842014-01-15 Tom Tromey <tromey@redhat.com>
14985
14986 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14987 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14988 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14989 (set_objfile_main_name): New function.
14990 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14991 language_of_main>: New fields.
14992 (set_objfile_main_name): Declare.
14993 * symtab.c (find_main_name): Loop over objfiles to find the main
14994 name and language.
14995 (set_main_name): Now static.
14996 (get_main_info): Add comment.
14997 * symtab.h (set_main_name): Don't declare.
14998
32ac0d11
TT
149992014-01-15 Tom Tromey <tromey@redhat.com>
15000
15001 * symtab.c (main_progspace_key): New global.
15002 (struct main_info): New.
15003 (name_of_main, language_of_main): Remove.
15004 (get_main_info, main_info_cleanup): New function.
15005 (set_main_name, main_name, main_language): Use get_main_info.
15006 (_initialize_symtab): Initialize main_progspace_key.
15007
9e6c82ad
TT
150082014-01-15 Tom Tromey <tromey@redhat.com>
15009
15010 * dbxread.c (process_one_symbol): Update.
15011 * dwarf2read.c (read_partial_die): Update.
15012 * symfile.c (set_initial_language): Call main_language.
15013 * symtab.c (language_of_main): Now static.
15014 (set_main_name): Add 'lang' parameter.
15015 (find_main_name): Update.
15016 (main_language): New function.
15017 (symtab_observer_executable_changed): Update.
15018 * symtab.h (set_main_name): Update.
15019 (language_of_main): Remove.
15020 (main_language): Declare.
15021
6ef55de7
TT
150222014-01-15 Tom Tromey <tromey@redhat.com>
15023
15024 * symfile.c (init_entry_point_info): Use new "initialized" field.
15025 Update.
15026 * objfiles.h (struct entry_point) <initialized>: New field.
15027 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15028 (struct objfile) <ei>: ...here. Remove.
15029 * objfiles.c (entry_point_address_query): Update.
15030
53eddfa6
TT
150312014-01-15 Tom Tromey <tromey@redhat.com>
15032
15033 * objfiles.c (entry_point_address_query): Relocate entry point
15034 address.
15035 (objfile_relocate1): Do not relocate entry point address.
15036 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15037 <the_bfd_section_index>: New field.
15038 * symfile.c (init_entry_point_info): Find the entry point's
15039 section.
15040
d56e56aa
TT
150412014-01-15 Tom Tromey <tromey@redhat.com>
15042
15043 * solib-frv.c (enable_break): Use entry_point_address_query.
15044
33a97bbe
OJ
150452014-01-15 Omair Javaid <omair.javaid@linaro.org>
15046
15047 * NEWS: Add note on improved process record-replay on
15048 arm*-linux* targets.
15049
c6ec2b30
OJ
150502014-01-15 Omair Javaid <omair.javaid@linaro.org>
15051
15052 * arm-tdep.c (enum arm_record_result): New enum.
15053 (arm_record_unsupported_insn): New function.
15054 (arm_record_coproc_data_proc): Removed.
15055 (thumb2_record_ld_st_multiple): New function.
15056 (thumb2_record_ld_st_dual_ex_tbb): New function.
15057 (thumb2_record_data_proc_sreg_mimm): New function.
15058 (thumb2_record_ps_dest_generic): New function.
15059 (thumb2_record_branch_misc_cntrl): New function.
15060 (thumb2_record_str_single_data): New function.
15061 (thumb2_record_ld_mem_hints): New function.
15062 (thumb2_record_ld_word): New function.
15063 (thumb2_record_lmul_lmla_div): New function.
15064 (thumb2_record_decode_insn_handler): New function.
15065 (decode_insn): Add thumb32 instruction handlers.
15066
97dfe206
OJ
150672014-01-15 Omair Javaid <omair.javaid@linaro.org>
15068
15069 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15070 (struct arm_linux_record_tdep): Declare.
15071 (arm_canonicalize_syscall): New function.
15072 (arm_all_but_pc_registers_record): New function.
15073 (arm_linux_syscall_record): New function.
15074 (arm_linux_init_abi): Add syscall recording constructs.
15075 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15076 decoding. (arm_record_coproc_data_proc): Update arm syscall
15077 decoding.
15078 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15079 <arm_syscall_record>: New field.
15080 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15081 gdb_target_obs.
15082
9904a494
OJ
150832014-01-15 Omair Javaid <omair.javaid@linaro.org>
15084
15085 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15086 register for push instruction recording.
15087
f969241e
OJ
150882014-01-15 Omair Javaid <omair.javaid@linaro.org>
15089
15090 * arm-tdep.c (thumb_record_misc): Update to correct logical
15091 error while recording ldm, ldmia and pop instructions.
15092
bfbbec00
OJ
150932014-01-15 Omair Javaid <omair.javaid@linaro.org>
15094
15095 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15096
e40adcc9
PA
150972014-01-15 Pedro Alves <palves@redhat.com>
15098
15099 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15100 (go32_resume, go32_fetch_registers, store_register)
15101 (go32_store_registers, go32_prepare_to_store)
15102 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15103 (go32_create_inferior, go32_can_run, go32_terminal_init)
15104 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15105 declarations.
15106
b0a16e66
TT
151072014-01-15 Tom Tromey <tromey@redhat.com>
15108
15109 * target.h (async_callback_ftype): New typedef.
15110 (struct target_ops) <to_async>: Use it.
15111
bf7105a4
JB
151122014-01-15 Joel Brobecker <brobecker@adacore.com>
15113
15114 * python/py-value.c (get_field_type): Remove unnecessary curly
15115 braces for single-statement if block.
15116
a8f35c2e
JB
151172014-01-15 Joel Brobecker <brobecker@adacore.com>
15118
15119 * python/py-type.c (convert_field): Add missing empty line
15120 after declarations.
15121
bb4142cf
DE
151222014-01-14 Doug Evans <dje@google.com>
15123
15124 * symfile.h (expand_symtabs_matching): Renamed from
15125 expand_partial_symbol_names. Update prototype.
15126 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15127 * symfile.c (expand_symtabs_matching): Renamed from
15128 expand_partial_symbol_names. New args file_matcher, kind.
15129 Rename arg fun to symbol_matcher.
15130 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15131 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15132 ada_expand_partial_symbol_name.
15133 (ada_make_symbol_completion_list): Update to call
15134 expand_symtabs_matching.
15135 (ada_add_global_exceptions): Call expand_symtabs_matching.
15136 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15137 call map_symbol_filenames.
15138 * symtab.c (sources_info): Update to call map_symbol_filenames.
15139 (search_symbols): Call expand_symtabs_matching.
15140 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15141 (default_make_symbol_completion_list_break_on): Update to call
15142 expand_symtabs_matching.
15143 (make_source_files_completion_list): Update to call
15144 map_symbol_filenames.
15145
206f2a57
DE
151462014-01-14 Doug Evans <dje@google.com>
15147
15148 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15149 (expand_symtabs_symbol_matcher_ftype): New typedef.
15150 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15151 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15152 * symfile.c (expand_partial_symbol_names): Update to use
15153 expand_symtabs_symbol_matcher_ftype.
15154 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15155 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15156 Arg name_matcher renamed to symbol_matcher.
15157 * psymtab.c (recursively_search_psymtabs): Update to use
15158 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15159 sym_matcher.
15160 (expand_symtabs_matching_via_partial): Update to use
15161 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15162 Arg name_matcher renamed to symbol_matcher.
15163
540c2971
DE
151642014-01-14 Doug Evans <dje@google.com>
15165
15166 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15167 (map_partial_symbol_filenames): Ditto.
15168 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15169 (map_partial_symbol_filenames): Ditto.
15170 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15171 (map_partial_symbol_filenames): Ditto.
15172 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15173 (map_partial_symbol_filenames): Ditto.
15174 * symtab.c: Delete #include "psymtab.h".
15175
8213266a
PA
151762014-01-14 Pedro Alves <palves@redhat.com>
15177 Tom Tromey <tromey@redhat.com>
15178
15179 * infrun.c (use_displaced_stepping): Use find_record_target
15180 instead of RECORD_IS_USED.
15181 (adjust_pc_after_break): Use record_full_is_used instead of
15182 RECORD_IS_USED.
15183 * record-btrace.c (record_btrace_open): Call record_preopen
15184 instead of checking RECORD_IS_USED.
15185 * record-full.c (record_full_shortname)
15186 (record_full_core_shortname): New globals.
15187 (record_full_is_used): New function.
15188 (find_full_open): Call record_preopen instead of checking
15189 RECORD_IS_USED.
15190 (init_record_full_ops): Set the target's shortname to
15191 record_full_shortname.
15192 (init_record_full_core_ops): Set the target's shortname to
15193 record_full_core_shortname.
15194 * record-full.h (record_full_is_used): Declare.
15195 * record.c (find_record_target): Make extern.
15196 (record_preopen): New function.
15197 * record.h (RECORD_IS_USED): Delete macro.
15198 (find_record_target, record_preopen): Declare functions.
15199
7ec1862d
YQ
152002014-01-14 Yao Qi <yao@codesourcery.com>
15201
15202 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15203 'len''s type to ULONGEST.
15204 (core_xfer_shared_libraries_aix): Likewise.
15205 * gdbarch.c, gdbarch.h: Regenerated.
15206 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15207 Change type of 'len' to ULONGEST.
15208 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15209 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15210
dea80a27
YQ
152112014-01-14 Yao Qi <yao@codesourcery.com>
15212
15213 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15214 type of 'len' to ULONGEST.
15215 (linux_xfer_osdata_processgroups): Likewise.
15216 (linux_xfer_osdata_threads): Likewise.
15217 (linux_xfer_osdata_fds): Likewise.
15218 (linux_xfer_osdata_isockets): Likewise.
15219 (linux_xfer_osdata_shm): Likewise.
15220 (linux_xfer_osdata_sem): Likewise.
15221 (linux_xfer_osdata_msg): Likewise.
15222 (linux_common_xfer_osdata): Likewise.
15223 (struct osdata_type) <getter>: Likewise.
15224 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15225 the declaration.
15226
b55e14c7
YQ
152272014-01-14 Yao Qi <yao@codesourcery.com>
15228
15229 * target.h (target_xfer_partial_ftype): Update.
15230 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15231 ULONGEST.
15232 * aix-thread.c (aix_thread_xfer_partial): Change type of
15233 argument 'len' to ULONGEST.
15234 * auxv.c (procfs_xfer_auxv): Likewise.
15235 (ld_so_xfer_auxv): Likewise.
15236 (memory_xfer_auxv): Likewise.
15237 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15238 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15239 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15240 * corelow.c (core_xfer_partial): Likewise.
15241 * ctf.c (ctf_xfer_partial): Likewise.
15242 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15243 '%u'.
15244 (darwin_read_dyld_info): Likewise.
15245 (darwin_xfer_partial): Likewise.
15246 * exec.c (section_table_xfer_memory_partial): Likewise.
15247 (exec_xfer_partial): Likewise.
15248 * exec.h (section_table_xfer_memory_partial): Update
15249 declaration.
15250 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15251 instead of plongest.
15252 (gnu_xfer_partial): Likewise.
15253 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15254 (ia64_hpux_xfer_solib_got): Likewise.
15255 (ia64_hpux_xfer_partial): Likewise.
15256 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15257 * inf-ptrace.c (inf_ptrace_xfer_partial):
15258 * inf-ttrace.c (inf_ttrace_xfer_partial):
15259 * linux-nat.c (linux_xfer_siginfo): Likewise.
15260 (linux_nat_xfer_partial): Likewise.
15261 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15262 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15263 * monitor.c (monitor_xfer_memory): Likewise.
15264 (monitor_xfer_partial): Likewise.
15265 * procfs.c (procfs_xfer_partial): Likewise.
15266 * record-full.c (record_full_xfer_partial): Likewise.
15267 (record_full_core_xfer_partial): Likewise.
15268 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15269 instead of plongest.
15270 (gdbsim_xfer_partial): Likewise.
15271 * remote.c (remote_xfer_partial): Likewise.
15272 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15273 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15274 declaration.
15275 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15276 (rs6000_xfer_shared_libraries): Likewise.
15277 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15278 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15279 (sparc_xfer_partial): Likewise.
15280 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15281 (spu_xfer_partial): Likewise.
15282 * spu-multiarch.c (spu_xfer_partial): Likewise.
15283 * target.c (target_read_live_memory): Likewise.
15284 (memory_xfer_live_readonly_partial): Likewise.
15285 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15286 (target_xfer_partial, default_xfer_partial): Likewise.
15287 (current_xfer_partial): Likewise.
15288 * tracepoint.c (tfile_xfer_partial): Likewise.
15289 * windows-nat.c (windows_xfer_memory): Likewise. Call
15290 pulongest instead of plongest.
15291 (windows_xfer_partial): Likewise.
15292 (windows_xfer_shared_libraries): Likewise.
15293
05804640
YQ
152942014-01-14 Yao Qi <yao@codesourcery.com>
15295
15296 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15297 target_xfer_partial_ftype.
15298
b5b08fb4
SC
152992014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15300
15301 PR python/15464
15302 PR python/16113
15303 * valops.c (value_struct_elt_bitpos): New function
15304 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15305 object to 'None' if the field name is an empty string ("").
15306 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15307 attribute to look for a field when 'name' is 'None'.
15308 (get_field_type): New function
15309
13aaf454
DE
153102014-01-13 Doug Evans <dje@google.com>
15311
15312 PR symtab/16426
15313 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15314 (try_open_dwop_file): Ditto.
15315 * gdb_bfd.c: #include "vec.h".
15316 (bfdp): New typedef.
15317 (struct gdb_bfd_data): New member included_bfds.
15318 (gdb_bfd_unref): Unref all included bfds.
15319 (gdb_bfd_record_inclusion): New function.
15320 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15321
c2cec97c
TT
153222014-01-13 Tom Tromey <tromey@redhat.com>
15323
15324 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15325
78e5999d
TT
153262014-01-13 Tom Tromey <tromey@redhat.com>
15327
15328 * defs.h (use_windows): Remove.
15329 * gdb.c (main): Update.
15330 * main.c (captured_main, gdb_main): Update.
15331 * main.h (struct captured_main_args) <use_windows>: Remove.
15332 * top.c (use_windows): Remove.
15333
f2052bbe
TT
153342014-01-13 Tom Tromey <tromey@redhat.com>
15335
15336 * defs.h (deprecated_flush_hook): Remove.
15337
fde4f8ed
JK
153382014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15339
15340 PR threads/16216
15341 * linux-thread-db.c (try_thread_db_load): Add parameter
15342 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15343 (try_thread_db_load_from_pdir_1): Move it there from here.
15344 (try_thread_db_load_from_sdir): Update caller.
15345 (try_thread_db_load_from_dir): Move it there from here.
15346
bdf61915
PP
153472014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15348
15349 * regformats/regdat.sh: Always rewrite the register file.
15350
f71e1a8d
PA
153512014-01-13 Pedro Alves <palves@redhat.com>
15352
15353 * Makefile.in (CHECK_HEADERS): New variable.
15354 (check-headers:): New rule.
15355
42c85435
TT
153562014-01-13 Tom Tromey <tromey@redhat.com>
15357
15358 * cli/cli-setshow.c (do_set_command): Update.
15359 * defs.h (deprecated_set_hook): Remove.
15360 * top.c (deprecated_set_hook): Remove.
15361
f8de5129
PA
153622014-01-13 Pedro Alves <palves@redhat.com>
15363
15364 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15365 the tracepoint if the PC is a pseudo-register.
15366
fc270c35
TT
153672014-01-13 Tom Tromey <tromey@redhat.com>
15368
15369 * defs.h (XCALLOC): Remove.
15370 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15371 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15372 * dwarf2loc.c (allocate_piece_closure): Likewise.
15373 * elfread.c (elf_symfile_segments): Likewise.
15374 (elf_symfile_segments): Likewise.
15375 * gdbtypes.c (copy_type_recursive): Likewise.
15376 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15377 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15378 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15379 XCALLOC.
15380 * mt-tdep.c (mt_gdbarch_init): Likewise.
15381 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15382 XCALLOC.
15383 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15384 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15385 * registry.c (registry_alloc_data): Likewise.
15386 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15387 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15388 * serial.c (serial_fdopen_ops): Likewise.
15389 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15390 XCALLOC.
15391 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15392 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15393 not XCALLOC.
15394
70ba0933
TT
153952014-01-13 Tom Tromey <tromey@redhat.com>
15396
15397 * defs.h (XMALLOC): Remove.
15398 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15399 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15400 * cli-out.c (struct ui_out *): Likewise.
15401 * cli/cli-dump.c (add_dump_command): Likewise.
15402 (add_dump_command): Likewise.
15403 * complaints.c (get_complaints): Likewise.
15404 (find_complaint): Likewise.
15405 * dwarf2-frame.c (execute_cfa_program): Likewise.
15406 * dwarf2read.c (abbrev_table_read_table): Likewise.
15407 * gdbarch.sh: Likewise.
15408 * gdbarch.c: Rebuild.
15409 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15410 * interps.c (interp_new): Likewise.
15411 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15412 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15413 * mi/mi-console.c (mi_console_file_new): Likewise.
15414 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15415 * mi/mi-out.c (mi_out_new): Likewise.
15416 * mi/mi-parse.c (mi_parse): Likewise.
15417 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15418 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15419 * observer.c (xalloc_observer_list_node): Likewise.
15420 * regcache.c (regcache_xmalloc_1): Likewise.
15421 * reggroups.c (reggroup_new): Likewise.
15422 (_initialize_reggroup): Likewise.
15423 * registry.c (register_data_with_cleanup): Likewise.
15424 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15425 * ser-base.c (serial_ttystate): Likewise.
15426 * ser-mingw.c (make_pipe_state): Likewise.
15427 * ser-pipe.c (pipe_open): Likewise.
15428 * serial.c (serial_open): Likewise.
15429 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15430 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15431 (tui_alloc_win_info): Likewise.
15432 (tui_add_content_elements): Likewise.
15433 * tui/tui-file.c (tui_file_new): Likewise.
15434 * tui/tui-out.c (tui_out_new): Likewise.
15435 * ui-file.c (mem_file_new): Likewise.
15436 * ui-out.c (push_level): Likewise.
15437 (make_cleanup_ui_out_end): Likewise.
15438 (append_header_to_list): Likewise.
15439 (ui_out_new): Likewise.
15440 * user-regs.c (user_reg_add_builtin): Likewise.
15441
41bf6aca
TT
154422014-01-13 Tom Tromey <tromey@redhat.com>
15443
15444 * defs.h (XZALLOC): Remove.
15445 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15446 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15447 (get_ada_tasks_inferior_data): Likewise.
15448 * auto-load.c (get_auto_load_pspace_data): Likewise.
15449 * auxv.c (get_auxv_inferior_data): Likewise.
15450 * bfd-target.c (target_bfd_reopen): Likewise.
15451 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15452 (deprecated_insert_raw_breakpoint): Likewise.
15453 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15454 * corelow.c (core_open): Likewise.
15455 * darwin-nat.c (darwin_check_new_threads): Likewise.
15456 (darwin_attach_pid): Likewise.
15457 * dummy-frame.c (dummy_frame_push): Likewise.
15458 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15459 * dwarf2loc.c (allocate_piece_closure): Likewise.
15460 * elfread.c (elf_symfile_segments): Likewise.
15461 * eval.c (ptrmath_type_p): Likewise.
15462 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15463 * gdbtypes.c (alloc_type_arch): Likewise.
15464 (alloc_type_instance): Likewise.
15465 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15466 * inf-child.c (inf_child_can_use_agent): Likewise.
15467 * inflow.c (get_inflow_inferior_data): Likewise.
15468 * infrun.c (save_infcall_suspend_state): Likewise.
15469 * jit.c (jit_reader_load): Likewise.
15470 (get_jit_objfile_data): Likewise.
15471 (get_jit_program_space_data): Likewise.
15472 (jit_object_open_impl): Likewise.
15473 (jit_symtab_open_impl): Likewise.
15474 (jit_block_open_impl): Likewise.
15475 (jit_frame_sniffer): Likewise.
15476 * linux-fork.c (add_fork): Likewise.
15477 * maint.c (make_command_stats_cleanup): Likewise.
15478 * objfiles.c (get_objfile_pspace_data): Likewise.
15479 * opencl-lang.c (struct lval_closure): Likewise.
15480 * osdata.c (osdata_start_osdata): Likewise.
15481 * progspace.c (new_address_space): Likewise.
15482 (add_program_space): Likewise.
15483 * remote-sim.c (get_sim_inferior_data): Likewise.
15484 * sh-tdep.c (sh_gdbarch_init): Likewise.
15485 * skip.c (Ignore): Likewise.
15486 (skip_delete_command): Likewise.
15487 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15488 (library_list_start_library): Likewise.
15489 (solib_aix_current_sos): Likewise.
15490 * solib-darwin.c (get_darwin_info): Likewise.
15491 (darwin_current_sos): Likewise.
15492 * solib-dsbt.c (get_dsbt_info): Likewise.
15493 * solib-ia64-hpux.c (new_so_list): Likewise.
15494 (ia64_hpux_get_solib_linkage_addr): Likewise.
15495 * solib-spu.c (append_ocl_sos): Likewise.
15496 (spu_current_sos): Likewise.
15497 * solib-svr4.c (get_svr4_info): Likewise.
15498 (svr4_keep_data_in_core): Likewise.
15499 (library_list_start_library): Likewise.
15500 (svr4_default_sos): Likewise.
15501 (svr4_read_so_list): Likewise.
15502 * solib-target.c (library_list_start_library): Likewise.
15503 (solib_target_current_sos): Likewise.
15504 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15505 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15506 * symfile.c (default_symfile_segments): Likewise.
15507 * target-descriptions.c (tdesc_data_init): Likewise.
15508 (tdesc_create_reg): Likewise.
15509 (struct tdesc_type *): Likewise.
15510 (tdesc_create_vector): Likewise.
15511 (tdesc_set_struct_size): Likewise.
15512 (struct tdesc_type *): Likewise.
15513 (tdesc_free_feature): Likewise.
15514 (tdesc_create_feature): Likewise.
15515 * windows-nat.c (windows_add_thread): Likewise.
15516 (windows_make_so): Likewise.
15517 * xml-support.c (gdb_xml_body_text): Likewise.
15518 (gdb_xml_create_parser_and_cleanup): Likewise.
15519 (xml_process_xincludes): Likewise.
15520 * xml-syscall.c (allocate_syscalls_info): Likewise.
15521 (syscall_create_syscall_desc): Likewise.
15522
5acfdbae
SDJ
155232014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15524
15525 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15526 function, with code from i386_stap_parse_special_token.
15527 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15528 (i386_stap_parse_special_token): Move code to the two functions
15529 above; simplify it.
15530
0000e5cc
PA
155312014-01-09 Pedro Alves <palves@redhat.com>
15532 Hui Zhu <hui@codesourcery.com>
15533
15534 PR gdb/16101
15535 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15536 bp_err_string. Don't mark the location shlib_disabled if the
15537 error thrown wasn't a generic or memory error. Catch errors
15538 thrown while inserting breakpoints in overlayed code. Output
15539 error message of software breakpoints.
15540 * remote.c (remote_insert_breakpoint): If this breakpoint has
15541 target-side commands but this stub doesn't support Z0 packets,
15542 throw NOT_SUPPORTED_ERROR error.
15543 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15544 * target.h (target_insert_breakpoint): Extend comment.
15545 (target_insert_hw_breakpoint): Add comment.
15546
b7ea362b
PA
155472014-01-08 Pedro Alves <palves@redhat.com>
15548
15549 * remote.c (remote_add_thread): Add threads silently if starting
15550 up.
15551 (remote_notice_new_inferior): If in all-stop, and starting up,
15552 don't call notice_new_inferior.
15553 (get_current_thread): New function, factored out from ...
15554 (add_current_inferior_and_thread): ... this. Adjust.
15555 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15556 found any thread, then select the remote's current thread as GDB's
15557 current thread too.
15558
b7bba001
JB
155592014-01-08 Joel Brobecker <brobecker@adacore.com>
15560
15561 * NEWS: Create a new section for the next release branch.
15562 Rename the section of the current branch, now that it has
15563 been cut.
15564
16dfbded
JB
155652014-01-08 Joel Brobecker <brobecker@adacore.com>
15566
15567 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15568 * version.in: Bump version to 7.7.50.DATE-cvs.
15569
22c90ac1
YQ
155702014-01-08 Yao Qi <yao@codesourcery.com>
15571
15572 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15573 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15574 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15575
d64ad97c
YQ
155762014-01-08 Yao Qi <yao@codesourcery.com>
15577
15578 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15579 return value of bfd_get_filename to symbol_file_add_from_bfd.
15580
f93ba80c
PM
155812014-01-08 Pierre Muller <muller@sourceware.org>
15582
15583 Fix PR16201.
15584 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15585 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15586 to prim_record_mininal_symbol_and_info.
15587 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15588 in call to prim_record_minimal_symbol_and_info.
15589 (read_pe_exported_syms): Set index field of section_data.
15590
a4d9ba85
AP
155912014-01-07 Andrew Pinski <apinski@cavium.com>
15592
15593 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15594 * features/aarch64.c: Regenerate.
15595
1b67eb02
AS
155962014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15597
15598 * target.c (return_null): Define.
15599 (update_current_target): Use it instead of return_zero for
15600 functions that return a pointer.
15601
5e3f4fab
EBM
156022014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15603
15604 * source.c (add_path): Fix check for duplicated paths in the previously
15605 included paths.
15606
e2616788
HK
156072014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15608
15609 * ada-lang.c: Remove duplicated include statements.
15610 * alphabsd-nat.c: Ditto.
15611 * amd64-darwin-tdep.c: Ditto.
15612 * amd64fbsd-nat.c: Ditto.
15613 * auto-load.c: Ditto.
15614 * ax-gdb.c: Ditto.
15615 * breakpoint.c: Ditto.
15616 * dbxread.c: Ditto.
15617 * fork-child.c: Ditto.
15618 * gdb_usleep.c: Ditto.
15619 * i386-darwin-tdep.c: Ditto.
15620 * i386fbsd-nat.c: Ditto.
15621 * infcmd.c: Ditto.
15622 * inferior.c: Ditto.
15623 * jv-lang.c: Ditto.
15624 * linux-nat.c: Ditto.
15625 * linux-tdep.c: Ditto.
15626 * m68kbsd-nat.c: Ditto.
15627 * m68klinux-nat.c: Ditto.
15628 * microblaze-tdep.c: Ditto.
15629 * mips-linux-tdep.c: Ditto.
15630 * mn10300-tdep.c: Ditto.
15631 * nto-tdep.c: Ditto.
15632 * opencl-lang.c: Ditto.
15633 * osdata.c: Ditto.
15634 * printcmd.c: Ditto.
15635 * regcache.c: Ditto.
15636 * remote-m32r-sdi.c: Ditto.
15637 * remote.c: Ditto.
15638 * symfile.c: Ditto.
15639 * symtab.c: Ditto.
15640 * tilegx-linux-nat.c: Ditto.
15641 * tilegx-tdep.c: Ditto.
15642 * tracepoint.c: Ditto.
15643 * valops.c: Ditto.
15644 * vaxbsd-nat.c: Ditto.
15645 * windows-nat.c: Ditto.
15646 * xtensa-tdep.c: Ditto.
15647
bd1f7788
YQ
156482014-01-07 Yao Qi <yao@codesourcery.com>
15649
15650 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15651
79301218
JB
156522014-01-07 Yao Qi <yao@codesourcery.com>
15653 Joel Brobecker <brobecker@adacore.com>
15654
15655 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15656 (pdc_write_regs): Likewise.
15657 (fetch_regs_kernel_thread): Likewise.
15658 (store_regs_kernel_thread): Likewise.
15659
156602014-01-07 Joel Brobecker <brobecker@adacore.com>
15661
15662 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15663 tagged type objects to their actual type.
15664
8e355c5d
JB
156652014-01-07 Joel Brobecker <brobecker@adacore.com>
15666
15667 * ada-valprint.c (print_field_values): Add "language" parameter.
15668 Update calls to print_field_values and print_variant_part.
15669 Pass new parameter "language" in call to val_print instead
15670 of "current_language". Replace call to ada_val_print by call
15671 to val_print.
15672 (print_variant_part): Add "language" parameter.
15673 (ada_val_print_struct_union): Update call to print_field_values.
15674
4fbf5aa5
JB
156752014-01-07 Joel Brobecker <brobecker@adacore.com>
15676
15677 * ada-valprint.c (ui_memcpy): Delete.
15678 (ada_print_floating): Update documentation. Add empty line
15679 between between function documentation and implementation.
15680 Delete variable "buffer". Use ui_file_xstrdup in place of
15681 ui_file_put. Minor adjustments following this change.
15682
71855601
JB
156832014-01-07 Joel Brobecker <brobecker@adacore.com>
15684
15685 * ada-valprint.c (ada_val_print_string): New function,
15686 extracted from ada_val_print_array.
15687 (ada_val_print_array): Replace extracted code by call
15688 to ada_val_print_string followed by a return. Move
15689 "else" branch to the function's top block.
15690
4eb27a30
JB
156912014-01-07 Joel Brobecker <brobecker@adacore.com>
15692
15693 * ada-valprint.c (ada_val_print_array): Move implementation
15694 down. Rename parameter "offset" and "val" into "offset_aligned"
15695 and "original_value" respectively. Add parameter "offset".
15696
34b27950
JB
156972014-01-07 Joel Brobecker <brobecker@adacore.com>
15698
15699 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15700 re-organizing the code. Change the "???" message printed
15701 when target type is a TYPE_CODE_UNDEF into
15702 "<ref to undefined type>".
15703
079e4591
JB
157042014-01-07 Joel Brobecker <brobecker@adacore.com>
15705
15706 * ada-valprint.c (print_record): Delete, implementation inlined...
15707 (ada_val_print_struct_union): ... here. Remove call to
15708 ada_check_typedef in inlined implementation.
15709
8004dfd1
JB
157102014-01-07 Joel Brobecker <brobecker@adacore.com>
15711
15712 * ada-valprint.c (ada_val_print_gnat_array): New function,
15713 extracted from ada_val_print_1;
15714 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15715 (ada_val_print_flt, ada_val_print_struct_union)
15716 (ada_val_print_ref): Likewise.
15717 (ada_val_print_1): Delete variables i and elttype.
15718 Replace extracted-out code by call to corresponding
15719 new functions.
15720
760a2db0
JB
157212014-01-07 Joel Brobecker <brobecker@adacore.com>
15722
15723 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15724
3a92c861
JB
157252014-01-07 Joel Brobecker <brobecker@adacore.com>
15726
15727 * ada-valprint.c (ada_val_print_1): Replace calls to
15728 ada_val_print_1 by calls to val_print.
15729
cd1630f9
JB
157302014-01-07 Joel Brobecker <brobecker@adacore.com>
15731
15732 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15733 Update calls to self accordingly. Replace calls to c_val_print
15734 by calls to val_print.
15735
bdf779a0
JB
157362014-01-07 Joel Brobecker <brobecker@adacore.com>
15737
15738 * ada-valprint.c (print_record): Delete declaration.
15739 (adjust_type_signedness, ada_val_print_1): Likewise.
15740 (ada_val_print): Move function implementation down.
15741 (print_variant_part, print_field_values, print_record):
15742 Move function implementation up.
15743
c0d48811
JB
157442014-01-07 Joel Brobecker <brobecker@adacore.com>
15745
15746 * python/py-type.c (typy_get_name): New function.
15747 (type_object_getset): Add entry for attribute "name".
15748 * NEWS: Add entry mentioning this new attribute.
15749
c26e9cbb
YQ
157502014-01-07 Yao Qi <yao@codesourcery.com>
15751
15752 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15753 statement.
15754
0cc6f43d
YQ
157552014-01-07 Yao Qi <yao@codesourcery.com>
15756
15757 * gnu-nat.c (info_port_rights): Add qualifier const to
15758 argument args.
15759
eec03155
YQ
157602014-01-07 Yao Qi <yao@codesourcery.com>
15761
15762 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15763
f04a82ef
YQ
157642014-01-07 Yao Qi <yao@codesourcery.com>
15765
15766 * gnu-nat.c (make_inf) Update declaration.
15767 (make_inf): Make it static.
15768 (inf_set_traced): Likewise.
15769 (inf_port_to_thread, inf_task_died_status): Likewise.
15770
d57dda0a
YQ
157712014-01-07 Yao Qi <yao@codesourcery.com>
15772
15773 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15774
3aa8c969
YQ
157752014-01-07 Yao Qi <yao@codesourcery.com>
15776
15777 * gnu-nat.c (_initialize_gnu_nat): Declare.
15778
94123b4f
YQ
157792014-01-07 Yao Qi <yao@codesourcery.com>
15780
15781 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15782 'enum bfd_endian'.
15783 (struct gdbarch_info) <byte_order>: Change type to
15784 'enum bfd_endian'.
15785 <byte_order_for_code>: Likewise.
15786 * gdbarch.c, gdbarch.h: Regenerated.
15787
dc81d70a
TT
157882014-01-06 Sasha Smundak <asmundak@google.com>
15789
15790 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15791
cc2f3c35
TT
157922014-01-06 Tom Tromey <tromey@redhat.com>
15793
15794 * doublest.c (convert_doublest_to_floatformat): Use const, not
15795 CONST.
15796 * somread.c (som_symtab_read): Likewise.
15797
adcf2eed
HZ
157982014-01-07 Hui Zhu <hui@codesourcery.com>
15799
15800 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15801 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15802 (gdb_bfd_fopen): Ditto.
15803 (gdb_bfd_openr): Ditto.
15804 (gdb_bfd_openw): Ditto.
15805 (gdb_bfd_openr_iovec): Ditto.
15806 (gdb_bfd_fdopenr): Ditto.
15807 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15808 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15809 with xstrdup.
15810 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15811 with xstrdup.
15812 * symfile-mem.c (symbol_file_add_from_memory): Removed
15813 gdb_bfd_stash_filename.
15814
50722198
DE
158152014-01-03 Doug Evans <dje@google.com>
15816
15817 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15818 output.
15819
2fa4b862
JB
158202014-01-01 Joel Brobecker <brobecker@adacore.com>
15821
15822 Update year range in copyright notice of all files.
15823
28498c42
JB
158242014-01-01 Joel Brobecker <brobecker@adacore.com>
15825
15826 * top.c (print_gdb_version): Set copyright year to 2014.
15827
7b6e1046
JB
158282014-01-01 Joel Brobecker <brobecker@adacore.com>
15829
15830 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15831
df96af55 15832For older changes see ChangeLog-2013.
c906108c
SS
15833\f
15834Local Variables:
15835mode: change-log
15836left-margin: 8
15837fill-column: 74
15838version-control: never
57da7796 15839coding: utf-8
c906108c 15840End:
This page took 3.089474 seconds and 4 git commands to generate.