Use standard_testfile in i386-bp_permanent.exp
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
86e4ed39
DE
12014-12-04 Doug Evans <dje@google.com>
2
3 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
4 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
5 (objfile_getset): Add "add_separate_debug_file".
6
7c50a931
DE
72014-12-04 Doug Evans <dje@google.com>
8
9 * NEWS: Mention gdb.Objfile.build_id.
10 * build-id.c (build_id_bfd_get): Make non-static.
11 * build-id.h (build_id_bfd_get): Add declaration.
12 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
13 (OBJFPY_REQUIRE_VALID): New macro.
14 (objfpy_get_build_id): New function.
15 (objfile_getset): Add "build_id".
16 * utils.c (make_hex_string): New function.
17 * utils.h (make_hex_string): Add declaration.
18
ba715d7f
JK
192014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
20
21 * block.c (block_lookup_symbol_primary): New function.
22 * block.h (block_lookup_symbol_primary): New declaration.
23 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
24 Call block_lookup_symbol_primary.
25
858339f2
MR
262014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
27
28 * tramp-frame.h (tramp_frame): Add `validate' member.
29 * tramp-frame.c (tramp_frame_start): Validate trampoline before
30 scanning.
31 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
32 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
33 (mips_linux_o32_sigframe): Initialize `validate' member.
34 (mips_linux_o32_rt_sigframe): Likewise.
35 (mips_linux_n32_rt_sigframe): Likewise.
36 (mips_linux_n64_rt_sigframe): Likewise.
37 (micromips_linux_o32_sigframe): New variable.
38 (micromips_linux_o32_rt_sigframe): Likewise.
39 (micromips_linux_n32_rt_sigframe): Likewise.
40 (micromips_linux_n64_rt_sigframe): Likewise.
41 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
42 (mips_linux_n32n64_sigframe_init): Likewise.
43 (mips_linux_sigframe_validate): New function.
44 (micromips_linux_sigframe_validate): Likewise.
45 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
46
ff1eb2b5
UW
472014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
48
49 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
50 * sparc-sol2-tdep.c: Include "regset.h".
51 (sparc32_sol2_supply_core_gregset): New function.
52 (sparc32_sol2_collect_core_gregset): Likewise.
53 (sparc32_sol2_supply_core_fpregset): Likewise.
54 (sparc32_sol2_collect_core_fpregset): Likewise.
55 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
56 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
57 tdep->fpregset/sizeof_fpregset.
58 * sparc64-sol2-tdep.c: Include "regset.h".
59 (sparc64_sol2_supply_core_gregset): New function.
60 (sparc64_sol2_collect_core_gregset): Likewise.
61 (sparc64_sol2_supply_core_fpregset): Likewise.
62 (sparc64_sol2_collect_core_fpregset): Likewise.
63 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
64 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
65 tdep->fpregset/sizeof_fpregset.
66
75783939
SM
672014-12-03 Simon Marchi <simon.marchi@ericsson.com>
68
69 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
70 type.
71
7c5fdd25
DE
722014-12-02 Doug Evans <dje@google.com>
73
74 * symtab.c (symbol_init_cplus_specific): Delete.
75 (symbol_set_demangled_name): Remove special c++ support.
76 (symbol_get_demangled_name, symbol_set_language): Ditto.
77 * symtab.h (struct cplus_specific): Delete.
78 (struct general_symbol_info) <language_specific>: Remove
79 cplus_specific.
80
29f0c3b7
DE
812014-12-02 Doug Evans <dje@google.com>
82
83 PR symtab/17602
84 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
85
72998fb3
DE
862014-12-02 Doug Evans <dje@google.com>
87
88 PR symtab/17591
89 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
90 to strip parameters.
91
422b9917
DE
922014-12-02 Doug Evans <dje@google.com>
93
94 * dwarf2read.c (peek_die_abbrev): Improve error message text.
95
47c6ee49
DE
962014-12-02 Doug Evans <dje@google.com>
97
98 * valops.c (do_search_struct_field): Remove remnant of Chill support.
99 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
100
5da3ffc9
SM
1012014-12-02 Simon Marchi <simon.marchi@ericsson.com>
102
103 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
104
162078c8
NB
1052014-12-02 Nick Bull <nicholaspbull@gmail.com>
106
107 * NEWS: Mention new Python events.
108 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
109 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
110 (py-infevents.o): New rule.
111 * doc/observer.texi (inferior_call_pre, inferior_call_post)
112 (memory_changed, register_changed): New observers.
113 * infcall.c (call_function_by_hand): Notify observer before and
114 after inferior call.
115 * python/py-event.h (inferior_call_kind): New enum.
116 (emit_inferior_call_event): New prototype.
117 (emit_register_changed_event): New prototype.
118 (emit_memory_changed_event): New prototype.
119 * python/py-events.h (events_object): New registries
120 inferior_call, memory_changed and register_changed.
121 * python/py-evts.c (gdbpy_initialize_py_events): Add the
122 inferior_call, memory_changed and register_changed registries.
123 * python/py-infevents.c: New.
124 * python/py-inferior.c (python_on_inferior_call_pre)
125 (python_on_inferior_call_post, python_on_register_change)
126 (python_on_memory_change): New functions.
127 (gdbpy_initialize_inferior): Attach python handler to new
128 observers.
129 * python/py-infthread.c(gdbpy_create_ptid_object): New.
130 (thpy_get_ptid) Use gdbpy_create_ptid_object.
131 * python/python-internal.h:
132 (gdbpy_create_ptid_object)
133 (gdbpy_initialize_inferior_call_pre_event)
134 (gdbpy_initialize_inferior_call_post_event)
135 (gdbpy_initialize_register_changed_event)
136 (gdbpy_initialize_memory_changed_event): New prototypes.
137 * python/python.c (_initialize_python): Initialize new events.
138 * valops.c (value_assign): Notify register_changed observer.
139
007baf27
DE
1402014-12-02 Doug Evans <dje@google.com>
141
142 * python/py-infthread.c: Whitespace fixes.
143
d5552aab
AA
1442014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
145
146 * features/Makefile (s390-te-linux64-expedite): Replace
147 non-existant r14 and r15 by r14l and r15l, respectively.
148 * regformats/s390-te-linux64.dat: Regenerate.
149
30b5e341
SM
1502014-12-01 Simon Marchi <simon.marchi@ericsson.com>
151
152 * objfiles.c (allocate_objfile): Remove duplicate comment.
153
ac3d87c0
UW
1542014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
155
156 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
157 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
158 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
159 (supply_gregset, supply_fpregset): Remove.
160 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
161 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
162 and sizeof_gregset.
163
f10c5b19
JK
1642014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 Add add-auto-load-scripts-directory.
167 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
168 * auto-load.c (add_auto_load_dir): New function.
169 (_initialize_auto_load): Install it.
170
f0d4ba1f
MG
1712014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
172
173 Pushed by Joel Brobecker <brobecker@adacore.com>.
174 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
175
18ac6ffc
SC
1762014-11-29 Siva Chandra Reddy <sivachandra@google.com>
177
178 * eval.c (evaluate_subexp): Check that the thread stack temporaries
179 are not already enabled before enabling them.
180
4072f920
YQ
1812014-11-29 Yao Qi <yao@codesourcery.com>
182
183 * arm-tdep.c (arm_analyze_prologue): Move local variables
184 'framereg' and 'framesize' to inner block. Move code to
185 inner block too.
186
6c659fc2
SC
1872014-11-28 Siva Chandra Reddy <sivachandra@google.com>
188
189 * eval.c: Include gdbthread.h.
190 (evaluate_subexp): Enable thread stack temporaries before
191 evaluating a complete expression and clean them up after the
192 evaluation is complete.
193 * gdbthread.h: Include common/vec.h.
194 (value_ptr): New typedef.
195 (VEC (value_ptr)): New vector type.
196 (value_vec): New typedef.
197 (struct thread_info): Add new fields stack_temporaries_enabled
198 and stack_temporaries.
199 (enable_thread_stack_temporaries)
200 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
201 (get_last_thread_stack_temporary)
202 (value_in_thread_stack_temporaries): Declare.
203 * gdbtypes.c (class_or_union_p): New function.
204 * gdbtypes.h (class_or_union_p): Declare.
205 * infcall.c (call_function_by_hand): Store return values of class
206 type as temporaries on stack.
207 * thread.c (enable_thread_stack_temporaries): New function.
208 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
209 (get_last_thread_stack_temporary): Likewise.
210 (value_in_thread_stack_temporaries): Likewise.
211 * value.c (value_force_lval): New function.
212 * value.h (value_force_lval): Declare.
213
f7ca3fcf
PM
2142014-11-28 Pierre Muller <muller@sourceware.org>
215
216 Pushed by Joel Brobecker <brobecker@adacore.com>.
217 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
218 registers.
219
b2859a9a
UW
2202014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
221
222 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
223 * config/sparc/linux.mh (NATDEPFILES): Likewise.
224 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
225 * m68klinux-nat.c (fetch_core_registers): Remove.
226 (linux_elf_core_fns): Remove.
227 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
228
0fa9473f
JB
2292014-11-28 Joel Brobecker <brobecker@adacore.com>
230
231 * utils.c (gdb_realpath): Rework comment about handling on
232 Windows.
233
6a29c58e
YQ
2342014-11-28 Yao Qi <yao@codesourcery.com>
235
236 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
237 rename.
238 * gnulib/aclocal.m4: Re-generated.
239 * gnulib/config.in: Re-generated.
240 * gnulib/configure: Re-generated.
241 * gnulib/import/Makefile.am: Re-generated.
242 * gnulib/import/Makefile.in: Re-generated.
243 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
244 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
245 * import/basename-lgpl.c: New file.
246 * import/dirname-lgpl.c: New file.
247 * import/dirname.h: New file.
248 * import/m4/dirname.m4: New file.
249 * import/m4/malloc.m4: New file.
250 * import/m4/rename.m4: New file.
251 * import/m4/rmdir.m4: New file.
252 * import/m4/stdio_h.m4: New file.
253 * import/malloc.c: New file.
254 * import/rename.c: New file.
255 * import/rmdir.c: New file.
256 * import/same-inode.h: New file.
257 * import/stdio.c: New file.
258 * import/stdio.in.h: New file.
259 * import/stripslash.c: New file.
260
abbffc89
YQ
2612014-11-28 Yao Qi <yao@codesourcery.com>
262
263 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
264 and realpath.
265 * config.in: Re-generated.
266 * configure: Re-generated.
267 * utils.c (gdb_realpath): Remove code calling realpath,
268 canonicalize_file_name and pathconf.
269 [!_WIN32]: Call canonicalize_file_name.
270
98399780
YQ
2712014-11-28 Yao Qi <yao@codesourcery.com>
272
273 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
274 canonicalize-lgpl.
275 * aclocal.m4: Re-generated.
276 * config.in: Re-generated.
277 * configure: Re-generated.
278 * import/Makefile.am: Re-generated.
279 * import/Makefile.in: Re-generated.
280 * import/m4/gnulib-cache.m4: Re-generated.
281 * import/m4/gnulib-comp.m4: Re-generated.
282 * import/canonicalize-lgpl.c: New file.
283 * import/extra/snippet/_Noreturn.h: New file.
284 * import/m4/canonicalize.m4: New file.
285 * import/m4/double-slash-root.m4: New file.
286 * import/m4/eealloc.m4: New file.
287 * import/m4/malloca.m4: New file.
288 * import/m4/nocrash.m4: New file.
289 * import/m4/stdlib_h.m4: New file.
290 * import/malloca.c: New file.
291 * import/malloca.h: New file.
292 * import/malloca.valgrind: New file.
293
3332aaf2
YQ
2942014-11-28 Yao Qi <yao@codesourcery.com>
295
296 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
297 * config.in, configure: Regenerate.
298 * symfile.c (find_separate_debug_file_by_debuglink): Remove
299 code checking HAVE_LSTAT is defined.
300
f45c62c4
YQ
3012014-11-28 Yao Qi <yao@codesourcery.com>
302
303 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
304 lstat.
305 * gnulib/aclocal.m4: Re-generated.
306 * gnulib/config.in: Re-generated.
307 * gnulib/configure: Re-generated.
308 * gnulib/import/Makefile.am: Re-generated.
309 * gnulib/import/Makefile.in: Re-generated.
310 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
311 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
312 * gnulib/import/lstat.c: New file.
313 * gnulib/import/m4/lstat.m4: New file.
314
bdca27a2
YQ
3152014-11-28 Yao Qi <yao@codesourcery.com>
316
317 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
318 * config.in, configure: Re-generate.
319 * inf-child.c (inf_child_fileio_readlink): Don't check
320 HAVE_READLINK is defined.
321
2196f55f
YQ
3222014-11-28 Yao Qi <yao@codesourcery.com>
323
324 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
325 * gnulib/aclocal.m4: Re-generated.
326 * gnulib/config.in: Likewise.
327 * gnulib/configure: Likewise.
328 * gnulib/import/Makefile.am: Likewise.
329 * gnulib/import/Makefile.in: Likewise.
330 * gnulib/import/m4/gnulib-cache.m4: Likewise.
331 * gnulib/import/m4/gnulib-comp.m4: Likewise.
332 * gnulib/import/dosname.h: New file
333 * gnulib/import/m4/largefile.m4: New file.
334 * gnulib/import/m4/readlink.m4: New file.
335 * gnulib/import/m4/stat.m4: New file.
336 * gnulib/import/readlink.c: New file.
337 * gnulib/import/stat.c: New file.
338
7014e923 3392014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
340
341 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
342 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
343
aa489395
SL
3442014-11-25 Sandra Loosemore <sandra@codesourcery.com>
345
346 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
347 that there can be only one stack adjustment in the prologue
348 with tests to detect specific disallowed stack adjustments.
349
7f1659b5
SL
3502014-11-25 Sandra Loosemore <sandra@codesourcery.com>
351
352 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
353 adjustments.
354
d53c26c7
SL
3552014-11-25 Sandra Loosemore <sandra@codesourcery.com>
356
357 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
358 the instruction as well as reading it from memory.
359 (nios2_match_add): New.
360 (nios2_match_sub): New.
361 (nios2_match_addi): New.
362 (nios2_match_orhi): New.
363 (nios2_match_stw): New.
364 (nios2_match_ldw): New.
365 (nios2_match_rdctl): New.
366 (enum branch_condition): New.
367 (nios2_match_branch): New.
368 (nios2_match_jmpi): New.
369 (nios2_match_calli): New.
370 (nios2_match_jmpr): New.
371 (nios2_match_callr): New.
372 (nios2_match_break): New.
373 (nios2_match_trap): New.
374 (nios2_in_epilogue_p): Rewrite to use new functions.
375 (nios2_analyze_prologue): Likewise.
376 (nios2_skip_prologue): Delete unused local limit_pc.
377 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
378 (nios2_get_next_pc): Rewrite to use new functions.
379
cac9b138
JK
3802014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
383
a441dfbc
ST
3842014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
385
386 Pushed by Joel Brobecker <brobecker@adacore.com>
387 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
388 elements pi_len by the size of the elements before calling
389 vm_deallocate.
390 (inf_validate_task_sc): Likewise, and properly deallocate the
391 noise array.
392
4c9e8482
DE
3932014-11-23 Doug Evans <xdje42@gmail.com>
394
395 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
396 number and name if present. All callers updated.
397 (dump_fn_fieldlists): Fix indentation of args.
398
15ee0bbd
PP
3992014-11-23 Patrick Palka <patrick@parcs.ath.cx>
400
401 * MAINTAINERS (Write After Approval): Add myself.
402
e8af5d7a
JB
4032014-11-23 Joel Brobecker <brobecker@adacore.com>
404
405 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
406 to a bp_call_dummy breakpoint type.
407
a344fc09
PP
4082014-11-23 Patrick Palka <patrick@parcs.ath.cx>
409
410 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
411 registering the signal handler.
412
d64e57fa
PP
4132014-11-23 Patrick Palka <patrick@parcs.ath.cx>
414
415 * event-top.h (call_stdin_event_handler_again_p): Declare.
416 * event-top.c (call_stdin_event_handler_again_p): Define.
417 (stdin_event_handler): Use it.
418 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
419 handler again if there is pending input following a
420 start sequence.
421
6f9d33d8
PP
4222014-11-23 Patrick Palka <patrick@parcs.ath.cx>
423
424 Pushed by Joel Brobecker <brobecker@adacore.com>
425 * linux-fork.c (checkpoint_command): Print index of new
426 checkpoint in response message.
427
88db67ef
YQ
4282014-11-23 Yao Qi <yao@codesourcery.com>
429
430 * valprint.c (read_string): Move local variables 'found_nul',
431 'chunksize' and 'limit' to inner scope. Update comments.
432
01465b56
DE
4332014-11-22 Doug Evans <xdje42@gmail.com>
434
435 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
436 function comment.
437 (search_symbols): Fix comments and whitespace.
438
07a1c2c3
DE
4392014-11-22 Doug Evans <xdje42@gmail.com>
440
441 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
442
b2a919a8
DE
4432014-11-21 Doug Evans <dje@google.com>
444
445 * psymtab.c (psymtab_search_name): Fix whitespace.
446
278289d5
YQ
4472014-11-21 Yao Qi <yao@codesourcery.com>
448
449 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
450 errno.
451 * gnulib/import/Makefile.am: Re-generated.
452 * gnulib/import/Makefile.in: Likewise.
453 * gnulib/import/m4/gnulib-cache.m4: Likewise.
454
e01e2baa
YQ
4552014-11-21 Yao Qi <yao@codesourcery.com>
456
457 * gdb_wchar.h: Include wchar.h and wctype.h.
458 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
459 include wchar.h and wctype.h.
460 Don't check HAVE_WCHAR_H.
461
f0c00af8
YQ
4622014-11-21 Yao Qi <yao@codesourcery.com>
463
464 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
465 and wctype-h.
466 * gnulib/import/Makefile.am: Re-generated.
467 * gnulib/import/Makefile.in: Likewise.
468 * gnulib/import/m4/gnulib-cache.m4: Likewise.
469
0cae13bb
YQ
4702014-11-21 Yao Qi <yao@codesourcery.com>
471
472 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
473 memchr.
474 * gnulib/import/Makefile.am: Re-generated.
475 * gnulib/import/Makefile.in: Likewise.
476 * gnulib/import/m4/gnulib-cache.m4: Likewise.
477
9c232dda
YQ
4782014-11-21 Yao Qi <yao@codesourcery.com>
479
480 * common/common-defs.h: Include alloca.h
481 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
482 * configure: Re-generated.
483 * defs.h: Remove code handling alloca.
484 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
485 or not.
486
00d7f58f
YQ
4872014-11-21 Yao Qi <yao@codesourcery.com>
488
489 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
490 alloca.
491 * gnulib/import/Makefile.am: Re-generated.
492 * gnulib/import/Makefile.in: Likewise..
493 * gnulib/import/m4/gnulib-cache.m4: Likewise.
494
6068ad5d
YQ
4952014-11-21 Yao Qi <yao@codesourcery.com>
496
497 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
498 alphabetical order.
499
45e44d27
JB
5002014-11-21 Joel Brobecker <brobecker@adacore.com>
501
502 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
503 flag_unsigned if HIGH_BOUND is constant and negative.
504
7e7cbeb3
SDJ
5052014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
506
507 PR breakpoints/10737
508 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
509 modifier from "struct gdbarch" when compiling without Expat (XML)
510 support.
511 (get_syscall_by_number): Likewise.
512 (get_syscall_by_name): Likewise.
513 (get_syscall_names): Likewise.
514
458c8db8
SDJ
5152014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
516
517 PR breakpoints/10737
518 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
519 set_xml_syscall_file_name to provide gdbarch.
520 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
521 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
522 * breakpoint.c (print_it_catch_syscall): Adjust call to
523 get_syscall_by_number to provide gdbarch.
524 (print_one_catch_syscall): Likewise.
525 (print_mention_catch_syscall): Likewise.
526 (print_recreate_catch_syscall): Likewise.
527 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
528 and get_syscall_by_name to provide gdbarch.
529 (catch_syscall_completer): Adjust call to get_syscall_names to
530 provide gdbarch.
531 * gdbarch.c: Regenerate.
532 * gdbarch.h: Likewise.
533 * gdbarch.sh: Forward declare "struct syscalls_info".
534 (xml_syscall_file): New variable.
535 (syscalls_info): Likewise.
536 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
537 set_xml_syscall_file_name to provide gdbarch.
538 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
539 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
540 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
541 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
542 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
543 * xml-syscall.c: Include gdbarch.h.
544 (set_xml_syscall_file_name): Accept gdbarch parameter.
545 (get_syscall_by_number): Likewise.
546 (get_syscall_by_name): Likewise.
547 (get_syscall_names): Likewise.
548 (my_gdb_datadir): Delete global variable.
549 (struct syscalls_info) <my_gdb_datadir>: New variable.
550 (struct syscalls_info) <sysinfo>: Rename variable to
551 "syscalls_info".
552 (sysinfo): Delete global variable.
553 (have_initialized_sysinfo): Likewise.
554 (xml_syscall_file): Likewise.
555 (sysinfo_free_syscalls_desc): Rename to...
556 (syscalls_info_free_syscalls_desc): ... this.
557 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
558 code to the new layout of "struct syscalls_info".
559 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
560 "syscalls_info".
561 (syscall_create_syscall_desc): Likewise.
562 (syscall_start_syscall): Likewise.
563 (syscall_parse_xml): Likewise.
564 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
565 (init_sysinfo): Rename to...
566 (init_syscalls_info): ...this. Add gdbarch as a parameter.
567 Adjust function to deal with gdbarch.
568 (xml_get_syscall_number): Delete parameter sysinfo. Accept
569 gdbarch as a parameter. Adjust code.
570 (xml_get_syscall_name): Likewise.
571 (xml_list_of_syscalls): Likewise.
572 (set_xml_syscall_file_name): Accept gdbarch as parameter.
573 (get_syscall_by_number): Likewise.
574 (get_syscall_by_name): Likewise.
575 (get_syscall_names): Likewise.
576 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
577 (get_syscall_by_number): Likewise.
578 (get_syscall_by_name): Likewise.
579 (get_syscall_names): Likewise.
580
43f3e411
DE
5812014-11-20 Doug Evans <xdje42@gmail.com>
582
583 Split struct symtab into two: struct symtab and compunit_symtab.
584 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
585 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
586 to "struct compunit_symtab *". All callers updated.
587 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
588 "struct symtab *" argument to "struct compunit_symtab *".
589 All callers updated.
590 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
591 result to "struct compunit_symtab *". All callers updated.
592 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
593 Change result to "struct compunit_symtab *". All callers updated.
594 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
595 hange type to "struct compunit_symtab *". All uses updated.
596 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
597 Change type to "struct compunit_symtab *". All uses updated.
598 * buildsym.c (struct buildsym_compunit): New struct.
599 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
600 (buildsym_compunit): New static global.
601 (finish_block_internal): Update to fetch objfile from
602 buildsym_compunit.
603 (make_blockvector): Delete objfile argument.
604 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
605 debugformat, producer.
606 (start_buildsym_compunit): New function.
607 (free_buildsym_compunit): Renamed from free_subfiles_list.
608 All callers updated.
609 (patch_subfile_names): Rewrite to use buildsym_compunit.
610 (get_compunit_symtab): New function.
611 (get_macro_table): Delete argument comp_dir. All callers updated.
612 (start_symtab): Change result to "struct compunit_symtab *".
613 All callers updated. Create the subfile of the main source file.
614 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
615 (reset_symtab_globals): Update.
616 (end_symtab_get_static_block): Update to use buildsym_compunit.
617 (end_symtab_without_blockvector): Rewrite.
618 (end_symtab_with_blockvector): Change result to
619 "struct compunit_symtab *". All callers updated.
620 Update to use buildsym_compunit. Don't set symtab->dirname,
621 instead set it in the compunit.
622 Explicitly make sure main symtab is first in its list.
623 Set debugformat, producer, blockvector, block_line_section, and
624 macrotable in the compunit.
625 (end_symtab_from_static_block): Change result to
626 "struct compunit_symtab *". All callers updated.
627 (end_symtab, end_expandable_symtab): Ditto.
628 (set_missing_symtab): Change symtab argument to
629 "struct compunit_symtab *". All callers updated.
630 (augment_type_symtab): Ditto.
631 (record_debugformat): Update to use buildsym_compunit.
632 (record_producer): Update to use buildsym_compunit.
633 * buildsym.h (struct subfile) <dirname>: Delete.
634 <producer, debugformat>: Delete.
635 <buildsym_compunit>: New member.
636 (get_compunit_symtab): Declare.
637 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
638 from primary_symtab. Change type to "struct compunit_symtab *".
639 All uses updated.
640 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
641 All callers updated.
642 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
643 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
644 symtab. Change type to "struct compunit_symtab *". All uses updated.
645 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
646 All callers updated.
647 (dw2_find_last_source_symtab): Ditto.
648 (dw2_lookup_symbol): Ditto.
649 (recursively_find_pc_sect_compunit_symtab): Renamed from
650 recursively_find_pc_sect_symtab. Change result to
651 "struct compunit_symtab *". All callers updated.
652 (dw2_find_pc_sect_compunit_symtab): Renamed from
653 dw2_find_pc_sect_symtab. Change result to
654 "struct compunit_symtab *". All callers updated.
655 (get_compunit_symtab): Renamed from get_symtab. Change result to
656 "struct compunit_symtab *". All callers updated.
657 (recursively_compute_inclusions): Change type of immediate_parent
658 argument to "struct compunit_symtab *". All callers updated.
659 (compute_compunit_symtab_includes): Renamed from
660 compute_symtab_includes. All callers updated. Rewrite to compute
661 includes of compunit_symtabs and not symtabs.
662 (process_full_comp_unit): Update to work with struct compunit_symtab.
663 (process_full_type_unit): Ditto.
664 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
665 (dwarf_decode_lines): Remove special case handling of main subfile.
666 (macro_start_file): Delete argument comp_dir. All callers updated.
667 (dwarf_decode_macro_bytes): Ditto.
668 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
669 use struct compunit_symtab.
670 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
671 * jit.c (finalize_symtab): Build compunit_symtab.
672 * jv-lang.c (get_java_class_symtab): Change result to
673 "struct compunit_symtab *". All callers updated.
674 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
675 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
676 comp_dir. Change type to "struct compunit_symtab *".
677 All uses updated.
678 (new_macro_table): Change comp_dir argument to cust,
679 "struct compunit_symtab *". All callers updated.
680 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
681 nr_primary_symtabs. All uses updated.
682 (count_symtabs_and_blocks): Update to handle compunits.
683 (report_command_stats): Update output, "primary symtabs" renamed to
684 "compunits".
685 * mdebugread.c (new_symtab): Change result to
686 "struct compunit_symtab *". All callers updated.
687 (parse_procedure): Change type of search_symtab argument to
688 "struct compunit_symtab *". All callers updated.
689 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
690 separate loop.
691 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
692 symtabs. Change type to "struct compunit_symtab *". All uses updated.
693 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
694 All uses updated.
695 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
696 All uses updated.
697 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
698 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
699 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
700 symtab. Change type to "struct compunit_symtab *". All uses updated.
701 * psymtab.c (psymtab_to_symtab): Change result type to
702 "struct compunit_symtab *". All callers updated.
703 (find_pc_sect_compunit_symtab_from_partial): Renamed from
704 find_pc_sect_symtab_from_partial. Change result type to
705 "struct compunit_symtab *". All callers updated.
706 (lookup_symbol_aux_psymtabs): Change result type to
707 "struct compunit_symtab *". All callers updated.
708 (find_last_source_symtab_from_partial): Ditto.
709 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
710 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
711 and macro_table from compunit.
712 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
713 type to "struct compunit_symtab *". All callers updated.
714 (debug_qf_lookup_symbol): Ditto.
715 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
716 debug_qf_find_pc_sect_symtab, change result type to
717 "struct compunit_symtab *". All callers updated.
718 * symfile.c (allocate_symtab): Delete objfile argument.
719 New argument cust.
720 (allocate_compunit_symtab): New function.
721 (add_compunit_symtab_to_objfile): New function.
722 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
723 Change result type to "struct compunit_symtab *". All uses updated.
724 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
725 Change result type to "struct compunit_symtab *". All uses updated.
726 * symmisc.c (print_objfile_statistics): Compute blockvector count in
727 separate loop.
728 (dump_symtab_1): Update test for primary source symtab.
729 (maintenance_info_symtabs): Update to handle compunit symtabs.
730 (maintenance_check_symtabs): Ditto.
731 * symtab.c (set_primary_symtab): Delete.
732 (compunit_primary_filetab): New function.
733 (compunit_language): New function.
734 (iterate_over_some_symtabs): Change type of arguments "first",
735 "after_last" to "struct compunit_symtab *". All callers updated.
736 Update to loop over symtabs in each compunit.
737 (error_in_psymtab_expansion): Rename symtab argument to cust,
738 and change type to "struct compunit_symtab *". All callers updated.
739 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
740 Change result type to "struct compunit_symtab *". All callers updated.
741 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
742 Change result type to "struct compunit_symtab *". All callers updated.
743 (find_pc_sect_line): Only loop over symtabs within selected compunit
744 instead of all symtabs in the objfile.
745 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
746 <compunit_symtab> New member.
747 <block_line_section>: Moved to compunit_symtab.
748 <locations_valid>: Ditto.
749 <epilogue_unwind_valid>: Ditto.
750 <macro_table>: Ditto.
751 <dirname>: Ditto.
752 <debugformat>: Ditto.
753 <producer>: Ditto.
754 <objfile>: Ditto.
755 <call_site_htab>: Ditto.
756 <includes>: Ditto.
757 <user>: Ditto.
758 <primary>: Delete
759 (SYMTAB_COMPUNIT): New macro.
760 (SYMTAB_BLOCKVECTOR): Update definition.
761 (SYMTAB_OBJFILE): Update definition.
762 (SYMTAB_DIRNAME): Update definition.
763 (struct compunit_symtab): New type. Common members among all source
764 symtabs within a compilation unit moved here. All uses updated.
765 (COMPUNIT_OBJFILE): New macro.
766 (COMPUNIT_FILETABS): New macro.
767 (COMPUNIT_DEBUGFORMAT): New macro.
768 (COMPUNIT_PRODUCER): New macro.
769 (COMPUNIT_DIRNAME): New macro.
770 (COMPUNIT_BLOCKVECTOR): New macro.
771 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
772 (COMPUNIT_LOCATIONS_VALID): New macro.
773 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
774 (COMPUNIT_CALL_SITE_HTAB): New macro.
775 (COMPUNIT_MACRO_TABLE): New macro.
776 (ALL_COMPUNIT_FILETABS): New macro.
777 (compunit_symtab_ptr): New typedef.
778 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
779
005e2509
JB
7802014-11-20 Joel Brobecker <brobecker@adacore.com>
781
782 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
783 if the TYPE_CODE of range_type's base type does not match
784 the TYPE_CODE of encoding_type's base type.
785
2b0f535a
JB
7862014-11-19 Joel Brobecker <brobecker@adacore.com>
787
788 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
789 it starts with '<'.
790
8908fca5
JB
7912014-11-19 Joel Brobecker <brobecker@adacore.com>
792
793 * ada-lang.c (ada_is_redundant_range_encoding): New function.
794 (ada_is_redundant_index_type_desc): New function.
795 (to_fixed_array_type): Ignore parallel XA type if redundant.
796
4a46959e
JB
7972014-11-19 Joel Brobecker <brobecker@adacore.com>
798
799 * ada-lang.c (constrained_packed_array_type): Set the length
800 of the return array as if both bounds where zero if that
801 returned array's index type is dynamic.
802
2acf986b
YQ
8032014-11-19 Yao Qi <yao@codesourcery.com>
804
805 * config/i386/go32.mh (CC): Remove.
806
439247b6
DE
8072014-11-18 Doug Evans <xdje42@gmail.com>
808
809 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
810 updated.
811
4d663531
DE
8122014-11-18 Doug Evans <xdje42@gmail.com>
813
814 * buildsym.c (buildsym_objfile): New static global.
815 (buildsym_comp_dir): New static global.
816 (finish_block_internal): Delete arg objfile. All callers updated.
817 (finish_block): Delete arg objfile. All callers updated.
818 (start_subfile): Delete arg dirname. All callers updated.
819 (patch_subfile_names): Update buildsym_comp_dir.
820 (get_macro_table): Delete arg objfile. All callers updated.
821 (start_symtab): New arg objfile. All callers updated.
822 Rename arg dirname to comp_dir.
823 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
824 (end_symtab_get_static_block): Delete arg objfile. All callers
825 updated.
826 (end_symtab_without_blockvector): Ditto.
827 (end_symtab_with_blockvector): Ditto.
828 (end_symtab_from_static_block): Ditto.
829 (end_symtab): Ditto.
830 (end_expandable_symtab): Ditto.
831 (augment_type_symtab): Ditto.
832 * coffread.c (coff_start_symtab): New arg objfile. All callers
833 updated.
834
8435453b
DE
8352014-11-18 Doug Evans <xdje42@gmail.com>
836
837 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
838 updated.
839
ee6f8984
DE
8402014-11-18 Doug Evans <xdje42@gmail.com>
841
842 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
843 symtab.dirname updated to use it.
844
eb822aa6
DE
8452014-11-18 Doug Evans <xdje42@gmail.com>
846
847 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
848 symtab.objfile updated to use it.
849
98387a29
DE
8502014-11-18 Doug Evans <xdje42@gmail.com>
851
852 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
853
aff08958
DE
8542014-11-18 Doug Evans <xdje42@gmail.com>
855
856 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
857 SYMBOL_OBJFILE.
858 * findvar.c (default_read_var_value): Ditto.
859 * jv-lang.c (add_class_symtab_symbol): Ditto.
860 * parse.c (operator_check_standard): Ditto.
861 * printcmd.c (address_info): Ditto.
862 * symtab.c (fixup_symbol_section): Ditto.
863 (skip_prologue_sal): Ditto.
864 * tracepoint.c (scope_info): Ditto.
865 * valops.c (find_function_in_inferior): Ditto.
866 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
867 * python/py-symbol.c (set_symbol): Ditto.
868
7bab9b58
DE
8692014-11-18 Doug Evans <xdje42@gmail.com>
870
871 * buildsym.c (main_subfile): New static global.
872 (free_subfiles_list): New function.
873 (start_symtab): Set main_subfile.
874 (restart_symtab): Replace init of subfiles, current_subfile with
875 call to free_subfiles_list.
876 (watch_main_source_file_lossage): Use main_subfile.
877 (reset_symtab_globals): Replace init of current_subfile with call
878 to free_subfiles_list.
879 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
880 functions, split out from ...
881 (end_symtab_from_static_block): ... here. Rewrite to call them.
882
f194fefb
DE
8832014-11-18 Doug Evans <xdje42@gmail.com>
884
885 The result of symtab expansion is always a primary symtab.
886 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
887 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
888 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
889 (psymtab_to_symtab): Add comment and assert.
890 (map_matching_symbols_psymtab): Remove unnecessary test for
891 non-primary symtab.
892
34248c3a
DE
8932014-11-15 Doug Evans <xdje42@gmail.com>
894
895 PR symtab/17559
896 * symtab.c (find_pc_line_symtab): New function.
897 * symtab.h (find_pc_line_symtab): Declare.
898 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
899 find_pc_symtab.
900 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
901 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
902 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
903 * tui/tui-win.c (make_visible_with_new_height): Ditto.
904 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
905 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
906
2097ae25
DE
9072014-11-15 Doug Evans <xdje42@gmail.com>
908
909 * symtab.c (expand_symtab_containing_pc): Renamed from
910 find_pc_sect_symtab_via_partial. All callers updated.
911
1ada499f
YQ
9122014-11-15 Yao Qi <yao@codesourcery.com>
913
914 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
915
355e2102
JB
9162014-11-14 Joel Brobecker <brobecker@adacore.com>
917
918 * common/common-defs.h: Move <stdarg.h> #include ahead of
919 <stdio.h> #include.
920
83030110
PA
9212014-11-14 Pedro Alves <palves@redhat.com>
922
923 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
924 [!PHONY_ICONV] (gdb_iconv): New function.
925 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
926
a8719064
DE
9272014-11-13 Doug Evans <dje@google.com>
928
929 PR symtab/17591
930 * dwarf2read.c (find_slot_in_mapped_hash): Handle
931 "(anonymous namespace)".
932
60f7655a
DE
9332014-11-13 Doug Evans <dje@google.com>
934
935 * dwarf2read.c (update_enumeration_type_from_children): Avoid
936 infinite loop.
937
5784b3ca
JK
9382014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
939
940 * NEWS (maint set target-async): Fix typo.
941
6218dc4b
PA
9422014-11-12 Pedro Alves <palves@redhat.com>
943
944 * infrun.c (enum infwait_states, infwait_state): Delete.
945
af48d08f
PA
9462014-11-12 Pedro Alves <palves@redhat.com>
947
948 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
949 Rewrite stepping over a permanent breakpoint.
950 (thread_still_needs_step_over, proceed): Don't set
951 stepping_over_breakpoint for permanent breakpoints.
952 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
953 single-step breakpoints out of the target on hardware step
954 targets.
955 (process_event_stop_test): If stepping a permanent breakpoint
956 doesn't hit the step-resume breakpoint, delete the step-resume
957 breakpoint.
958 (switch_back_to_stepped_thread): Also check if the stepped thread
959 has advanced already on hardware step targets.
960 (currently_stepping): Return true if the thread stepped a
961 breakpoint.
962
1a853c52
PA
9632014-11-12 Pedro Alves <palves@redhat.com>
964
965 Mark locations as permanent, not the whole breakpoint.
966 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
967 (mark_breakpoints_out): Don't mark permanent breakpoints as
968 uninserted.
969 (breakpoint_init_inferior): Use mark_breakpoints_out.
970 (breakpoint_here_p): Adjust.
971 (bpstat_stop_status, describe_other_breakpoints): Remove handling
972 of permanent breakpoints.
973 (make_breakpoint_permanent): Mark each location as permanent,
974 instead of marking the breakpoint.
975 (add_location_to_breakpoint): If the location is permanent, mark
976 it as such, and as inserted.
977 (init_breakpoint_sal): Don't make the breakpoint permanent here.
978 (bp_location_compare, update_global_location_list): Adjust.
979 (update_breakpoint_locations): Don't make the breakpoint permanent
980 here.
981 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
982 breakpoints.
983 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
984 (struct bp_location) <permanent>: New field.
985 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
986 reference to bp_permanent.
987
ae9bb220
PA
9882014-11-12 Pedro Alves <palves@redhat.com>
989
990 * arch-utils.c (default_skip_permanent_breakpoint): New function.
991 * arch-utils.h (default_skip_permanent_breakpoint): New
992 declaration.
993 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
994 Install default_skip_permanent_breakpoint as default method.
995 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
996 (i386_gdbarch_init): Don't install it.
997 * infrun.c (resume): Assume there's always a
998 gdbarch_skip_permanent_breakpoint implementation.
999 * gdbarch.h, gdbarch.c: Regenerate.
1000
015de688
DC
10012014-11-11 Daniel Colascione <dancol@dancol.org>
1002
1003 Warn about cross-PID-namespace debugging.
1004 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1005 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1006 * linux-thread-db.c (check_pid_namespace_match): New function.
1007 (thread_db_inferior_created): Call it.
1008
26a84859
DE
10092014-11-10 Doug Evans <xdje42@gmail.com>
1010
1011 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1012 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1013
712a2e6d
DE
10142014-11-10 Doug Evans <xdje42@gmail.com>
1015
1016 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1017
af3768e9
DE
10182014-11-10 Doug Evans <xdje42@gmail.com>
1019
1020 PR symtab/17564
1021 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1022 (lookup_static_symbol): Move definition to new location and rewrite.
1023 (lookup_symbol_in_objfile): New function.
1024 (lookup_symbol_global_iterator_cb): Call it.
1025
b1f28d99
UW
10262014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1027
1028 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1029
b7a084be
PA
10302014-11-07 Pedro Alves <palves@redhat.com>
1031
1032 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1033 check if we did a "nexti" inside a prologue.
1034 * symtab.c (in_prologue): Delete function.
1035 * symtab.h (in_prologue): Delete declaration.
1036
67be31e5
DE
10372014-11-06 Doug Evans <xdje42@gmail.com>
1038
1039 * symtab.h (lookup_global_symbol): Improve function comment.
1040
08724ab7
DE
10412014-11-06 Doug Evans <xdje42@gmail.com>
1042
1043 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1044 All callers updated.
1045 * symtab.h (lookup_global_symbol): Update decl.
1046 (lookup_static_symbol): Move decl to better location.
1047
d9060ba6
DE
10482014-11-06 Doug Evans <xdje42@gmail.com>
1049
1050 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1051
74016e12
DE
10522014-11-06 Doug Evans <xdje42@gmail.com>
1053
1054 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1055 All callers updated.
1056 (lookup_symbol_in_all_objfiles): Renamed from
1057 lookup_symbol_aux_symtabs. All callers updated.
1058 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1059 All callers updated.
1060 (lookup_symbol_in_objfile_symtabs): Renamed from
1061 lookup_symbol_aux_objfile. All callers updated.
1062
d1a2d36d
DE
10632014-11-06 Doug Evans <xdje42@gmail.com>
1064
1065 * symtab.c (lookup_symbol_in_block): Renamed from
1066 lookup_symbol_aux_block. All callers updated.
1067
24d864bb
DE
10682014-11-06 Doug Evans <xdje42@gmail.com>
1069
1070 * symtab.c (lookup_static_symbol): Renamed from
1071 lookup_static_symbol_aux. All callers updated.
1072 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1073 All callers updated.
1074
358d6ab3
DE
10752014-11-06 Doug Evans <xdje42@gmail.com>
1076
1077 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1078 * block.c (block_lookup_symbol): Use it.
1079 * cp-support.c (make_symbol_overload_list_block): Use it.
1080 * symtab.c (iterate_over_symbols): Use it.
1081
16b2eaa1
DE
10822014-11-06 Doug Evans <xdje42@gmail.com>
1083
1084 * symtab.c (lookup_block_symbol): Moved to ...
1085 * block.c (block_lookup_symbol): ... here and renamed.
1086 All callers updated.
1087 * block.h (block_lookup_symbol): Declare.
1088 * symtab.h (lookup_block_symbol): Delete.
1089
2dd2cd1c
DE
10902014-11-06 Doug Evans <xdje42@gmail.com>
1091
1092 * ada-lang.c (ada_make_symbol_completion_list): Use
1093 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1094 * symtab.c (lookup_objfile_from_block): Ditto.
1095
d4c58915
DE
10962014-11-06 Doug Evans <xdje42@gmail.com>
1097
1098 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1099 TYPE_CODE_STRUCT.
1100
9c1877ea
DE
11012014-11-06 Doug Evans <xdje42@gmail.com>
1102
1103 * objfiles.c (get_objfile_arch): Constify.
1104 * objfiles.h (get_objfile_arch): Update prototype.
1105 * solib.c (solib_global_lookup): Fetch arch from objfile,
1106 not target_gdbarch.
1107
426a4079
SL
11082014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1109
1110 * nios2-tdep.c (wild_insn): Delete.
1111 (profiler_insn, irqentry_insn): Delete.
1112 (nios2_match_sequence): Delete.
1113 (nios2_analyze_prologue): Update comments. Remove matching
1114 of obsolete profiler_insn and irqentry_insn sequences.
1115
ee11262d
AM
11162014-11-05 Alan Modra <amodra@gmail.com>
1117
1118 * charset.c (convert_between_encodings): Shrink obstack using
1119 obstack_blank_fast.
1120 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1121 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1122 to char* before doing pointer arithmetic.
ee11262d 1123
c87e6d00
SM
11242014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1125
1126 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1127
441ef17f
PA
11282014-11-04 Pedro Alves <palves@redhat.com>
1129
1130 * breakpoint.c (breakpoint_thread_match): Delete function.
1131 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1132
e0f52461
SC
11332014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1134
1135 PR c++/17494
1136 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1137 the method args also under EVAL_SKIP when evaluating method
1138 calls under EVAL_SKIP.
1139
a0b4d890
YQ
11402014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1141
1142 * dwarf2loc.c (read_pieced_value): Do big endian
1143 processing only if gdb_regnum is not -1.
1144 (write_pieced_value): Ditto.
1145
11462014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1147
1148 * arm-linux-tdep.c (arm_linux_init_abi): Use
1149 info.byte_order_for_code to choose endianity of breakpoint
1150 instructions snippets.
1151
11522014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1153
1154 * arm-tdep.c (extract_arm_insn): Use
1155 gdbarch_byte_order_for_code to read arm instruction.
1156
e82149ff
DE
11572014-11-02 Doug Evans <xdje42@gmail.com>
1158
1159 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1160
d7ee84f1
DE
11612014-11-02 Doug Evans <xdje42@gmail.com>
1162
1163 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1164 main_subfile before returning.
1165
4f072d17
DE
11662014-10-31 Doug Evans <xdje42@gmail.com>
1167
1168 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1169 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1170
8301c89e
DE
11712014-10-31 Doug Evans <xdje42@gmail.com>
1172
1173 * valops.c (value_cast_pointers): Fix whitespace.
1174 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1175 Ditto.
1176
02be9a71
DE
11772014-10-30 Doug Evans <dje@google.com>
1178
1179 * NEWS: Mention ability add attributes to gdb.Objfile and
1180 gdb.Progspace objects.
1181 * python/py-objfile.c (objfile_object): New member dict.
1182 (objfpy_dealloc): Py_XDECREF dict.
1183 (objfpy_initialize): Initialize dict.
1184 (objfile_getset): Add __dict__.
1185 (objfile_object_type): Set tp_dictoffset member.
1186 * python/py-progspace.c (progspace_object): New member dict.
1187 (pspy_dealloc): Py_XDECREF dict.
1188 (pspy_initialize): Initialize dict.
1189 (pspace_getset): Add __dict__.
1190 (pspace_object_type): Set tp_dictoffset member.
1191
6427bef6
YQ
11922014-10-30 Yao Qi <yao@codesourcery.com>
1193
1194 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1195 replace '\\' with '\\\\'.
1196
f60325be
JB
11972014-10-29 Joel Brobecker <brobecker@adacore.com>
1198
1199 GDB 7.8.1 released.
1200
ab917dfb
PA
12012014-10-29 Pedro Alves <palves@redhat.com>
1202
1203 PR gdb/17408
1204 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1205 instead of assuming a thread with a stepping range is always
1206 stepping.
1207
d3d4baed
PA
12082014-10-29 Pedro Alves <palves@redhat.com>
1209
1210 PR python/17372
1211 * event-top.c (change_line_handler): Call
1212 gdb_rl_callback_handler_remove instead of
1213 rl_callback_handler_remove.
1214 (callback_handler_installed): New global.
1215 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1216 (gdb_rl_callback_handler_reinstall): New functions.
1217 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1218 gdb_rl_callback_handler_install instead of
1219 rl_callback_handler_remove and rl_callback_handler_install.
1220 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1221 instead of rl_callback_handler_remove.
1222 * event-top.h (gdb_rl_callback_handler_remove)
1223 (gdb_rl_callback_handler_install)
1224 (gdb_rl_callback_handler_reinstall): New declarations.
1225 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1226 cleanup function.
1227 (fetch_inferior_event): Install it.
1228 * top.c (gdb_readline_wrapper_line) Call
1229 gdb_rl_callback_handler_remove instead of
1230 rl_callback_handler_remove.
1231 (gdb_readline_wrapper_cleanup): Don't call
1232 rl_callback_handler_install.
1233
6e5d7f39
PA
12342014-10-29 Pedro Alves <palves@redhat.com>
1235
1236 * event-top.c (command_line_handler): Clear the first byte of
1237 linebuffer, when it is first allocated.
1238
551cb6a5
PA
12392014-10-29 Pedro Alves <palves@redhat.com>
1240
1241 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1242 TRY_CATCH.
1243
1e1e619b
PA
12442014-10-29 Pedro Alves <palves@redhat.com>
1245
1246 PR tui/16138
1247 PR tui/17519
1248 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1249 (tui_allowed_p): Delete function.
1250 * tui/tui.c: Include "interps.h".
1251 (tui_enable): Don't use tui_allowed_p. Error out here with
1252 detailed error messages if the TUI is the top level interpreter,
1253 or if output is not a terminal. Use newterm instead of initscr,
1254 and error out if initializing the terminal fails. Also error out if
1255 the terminal doesn't support cursor addressing.
1256 * tui/tui.h (tui_allowed_p): Delete declaration.
1257
6041179a
JB
12582014-10-29 Joel Brobecker <brobecker@adacore.com>
1259
1260 * arm-tdep.c (arm_skip_stack_protector): Return early if
1261 address loaded by first "ldr" instruction does not have
1262 a corresponding minimal symbol. Update comment.
1263
6ae274b7
YQ
12642014-10-29 Yao Qi <yao@codesourcery.com>
1265
1266 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1267 loaded address correctly of ldr instruction.
1268
7f5ef605
PA
12692014-10-28 Pedro Alves <palves@redhat.com>
1270
1271 PR gdb/12623
1272 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1273 field.
1274 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1275 thread's stepped_breakpoint field. Skip if reverse debugging.
1276 Add comment.
1277 (init_thread_stepping_state, handle_signal_stop): Clear the
1278 thread's stepped_breakpoint field.
1279
7d1a114c
PA
12802014-10-27 Pedro Alves <palves@redhat.com>
1281
1282 * remote.c (remote_thread_alive): New, factored out from ...
1283 (remote_thread_alive): ... this.
1284 (remote_update_thread_list): Bail out before deleting threads if
1285 the target returned an empty list, and, the current thread has a
1286 magic/fake ptid.
1287
e5f8a7cc
PA
12882014-10-27 Pedro Alves <palves@redhat.com>
1289
1290 * infrun.c (handle_signal_stop): Also skip handlers when a random
1291 signal arrives while handling a "stepi" or a "nexti". Set the
1292 thread's 'step_after_step_resume_breakpoint' flag.
1293
71e396f9
LM
12942014-10-27 Luis Machado <lgustavo@codesourcery.com>
1295
1296 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1297 (arm_record_ld_st_imm_offset): Reimplement to cover all
1298 load/store cases for ARM opcode 010.
1299 (arm_record_ld_st_multiple): Reimplement to cover all
1300 load/store cases for ARM opcode 100.
1301
3aee438b
DE
13022014-10-26 Doug Evans <xdje42@gmail.com>
1303
1304 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1305
f88cb4b6
DE
13062014-10-26 Doug Evans <xdje42@gmail.com>
1307
1308 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1309 parameter "kind" to "block_index".
1310 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1311 "block_index".
1312 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1313
a023a30f
DE
13142014-10-26 Doug Evans <xdje42@gmail.com>
1315
1316 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1317
4c35218e
DE
13182014-10-26 Doug Evans <xdje42@gmail.com>
1319
1320 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1321 obstack_alloc.
1322
f08e8df3
DE
13232014-10-26 Doug Evans <xdje42@gmail.com>
1324
1325 * parser-defs.h (block_found): Move decl from here ...
1326 * symtab.h (block_found): ... to here.
1327
cf901d3b
DE
13282014-10-26 Doug Evans <xdje42@gmail.com>
1329
1330 * symtab.h (struct field_of_this_result): Fix typo in comment.
1331 (lookup_symbol_in_language): Move function comment here.
1332 (lookup_symbol): Improve function comment.
1333 (basic_lookup_symbol_nonlocal): Ditto.
1334 (lookup_symbol_static, lookup_symbol_global): Ditto.
1335 (lookup_symbol_aux_block): Ditto.
1336 (lookup_language_this): Add function comment.
1337 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1338 function comment.
1339 (lookup_block_symbol): Improve function comment.
1340 (lookup_struct): Fix capitalization in function comment.
1341 (lookup_transparent_type): Add function comment.
1342 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1343 Improve function comment.
1344 (lookup_objfile_from_block): Add function comment.
1345 * symtab.c (lookup_symbol_in_language): Update function comment.
1346 (lookup_symbol, lookup_language_this): Ditto.
1347 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1348 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1349 (basic_lookup_symbol_nonlocal): Ditto.
1350 (lookup_symbol_static, lookup_symbol_global): Ditto.
1351 (lookup_transparent_type, lookup_block_symbol): Ditto.
1352
ff6c39cf
DE
13532014-10-25 Doug Evans <xdje42@gmail.com>
1354
1355 * symtab.c (types_info): Delete forward decl.
1356 (functions_info, variables_info, sources_info): Ditto.
1357 (_initialize_symtab): Rewrite forward decl to use
1358 initialize_file_ftype.
1359
ec201f0c
DE
13602014-10-25 Doug Evans <xdje42@gmail.com>
1361
1362 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1363
ca040673
DE
13642014-10-25 Doug Evans <xdje42@gmail.com>
1365
1366 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1367 of local var child_die.
1368
6f259a23
DB
13692014-10-24 Don Breazeal <donb@codesourcery.com>
1370
1371 * infrun.c (follow_fork_inferior): Update fork message printing
1372 to use target_terminal_ours_for_output instead of
1373 target_terminal_ours, to use _() for all format strings, to print
1374 "vfork" instead of "fork" for vforks, and to add a detach message.
1375 (handle_vfork_child_exec_or_exit): Update message printing to use
1376 target_terminal_ours_for_output instead of target_terminal_ours, to
1377 use _() for all format strings, and to fix some formatting.
1378
09dd9a69
PA
13792014-10-24 Pedro Alves <palves@redhat.com>
1380
1381 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1382 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1383 * config/vax/vax.mh: Delete.
1384 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1385 obsolete configurations section.
1386 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1387 * vax-nat.c: Delete file.
1388
5ab806de
PA
13892014-10-24 Pedro Alves <palves@redhat.com>
1390
1391 * NEWS (Removed targets): Add OS/arch column.
1392
3433cfa5
SC
13932014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1394
1395 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1396 on the arg type of a constructor only if it is of reference type.
1397
96ba4233
SL
13982014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1399
1400 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1401 accessors and constants from nios2 opcodes update.
1402 (nios2_get_next_pc): Likewise.
1403
28153fd3
DE
14042014-10-19 Doug Evans <xdje42@gmail.com>
1405
1406 * gdbthread.h (set_running): Fix comment.
1407 (set_executing, finish_thread_state): Fix comment.
1408
fc9b8e47
DE
14092014-10-18 Doug Evans <xdje42@gmail.com>
1410
1411 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1412
4ffbba72
DE
14132014-10-17 Doug Evans <dje@google.com>
1414
1415 * NEWS: Mention new event gdb.clear_objfiles.
1416 * python/py-event.h (emit_clear_objfiles_event): Clear
1417 * python/py-events.h (events_object): New member clear_objfiles.
1418 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1419 event.
1420 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1421 emit clear_objfiles event.
1422 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1423 function.
1424 (emit_clear_objfiles_event): New function.
1425 (clear_objfiles): New event.
1426 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1427 Declare.
1428 * python/python.c (_initialize_python): Call
1429 gdbpy_initialize_clear_objfiles_event.
1430
d096d8c1
DE
14312014-10-17 Doug Evans <dje@google.com>
1432
1433 * NEWS: Mention new gdb.Objfile.progspace attribute.
1434 * python/py-objfile.c (objfpy_get_progspace): New function.
1435 (objfile_getset): New entry for "progspace".
1436
6c4486e6
PA
14372014-10-17 Pedro Alves <palves@redhat.com>
1438
1439 PR gdb/17471
1440 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1441 returns a copy of the input.
1442 (run_command_1, continue_command, step_1, jump_command)
1443 (signal_command, until_command, advance_command, finish_command)
1444 (attach_command): Adjust and install a cleanup to free the
1445 stripped args.
1446
0ff33695
PA
14472014-10-17 Pedro Alves <palves@redhat.com>
1448
1449 PR gdb/17300
1450 * infcmd.c (continue_1): If continuing all threads in the
1451 foreground, make sure the inferior's terminal settings are put in
1452 effect.
1453
6fdebc3d
PA
14542014-10-17 Pedro Alves <palves@redhat.com>
1455
1456 PR gdb/17472
1457 * annotate.c (annotate_breakpoints_invalid): Use
1458 target_terminal_our_for_output instead of target_terminal_ours.
1459 Give back the terminal to the target.
1460 (annotate_frames_invalid): Likewise.
1461
5842f62a
PA
14622014-10-17 Pedro Alves <palves@redhat.com>
1463
1464 * target.c (enum terminal_state): New enum.
1465 (terminal_state): New global.
1466 (target_terminal_init): New function.
1467 (target_terminal_inferior): Skip if inferior already owns the
1468 terminal.
1469 (target_terminal_ours, target_terminal_ours_for_output): New
1470 functions.
1471 * target.h (target_terminal_init): Convert to function prototype.
1472 (target_terminal_ours_for_output): Convert to function prototype
1473 and tweak comment.
1474 (target_terminal_ours): Convert to function prototype and tweak
1475 comment.
1476 * windows-nat.c (do_initial_windows_stuff): Call
1477 target_terminal_init instead of child_terminal_init_with_pgrp.
1478
32a8097b
PA
14792014-10-17 Pedro Alves <palves@redhat.com>
1480
1481 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1482 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1483 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1484 solib-osf.c.
1485 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1486 * ada-lang.h [__alpha__ && __osf__]
1487 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1488 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1489 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1490 GDB_OSABI_OSF1.
1491 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1492 files.
1493 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1494 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1495 * configure: Regenerate.
1496 * configure.ac: Remove references to osf.
1497 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1498 section. Remove all other references to osf.
1499 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1500 Remove all other references to osf.
1501 * dec-thread.c: Delete file.
1502 * defs.h (GDB_OSABI_OSF1): Delete.
1503 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1504 defined.
1505 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1506 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1507 Delete code.
1508 (unconditionally_kill_inferior)
1509 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1510 * solib-osf.c: Delete file.
1511
80134cf5
PA
15122014-10-17 Pedro Alves <palves@redhat.com>
1513
1514 * remote.c (clear_threads_listing_context): Move higher up, out of
1515 the HAVE_LIBEXPAT guard.
1516
89c7137f
TG
15172014-10-16 Tristan Gingold <gingold@adacore.com>
1518
1519 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1520 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1521 on amd64.
1522
44ee4a52
PA
15232014-10-15 Pedro Alves <palves@redhat.com>
1524
1525 * dec-thread.c (dec_thread_count_gdb_threads)
1526 (dec_thread_add_gdb_thread): Delete.
1527 (dec_thread_update_thread_list): Delete.
1528 (dec_thread_find_new_threads): Rename to ...
1529 (dec_thread_update_thread_list): ... this. Delete GDB-size
1530 threads that are no longer found in dec_thread_list.
1531 (resync_thread_list): Delete.
1532 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1533 resync_thread_list.
1534
ab970af1
PA
15352014-10-15 Pedro Alves <palves@redhat.com>
1536
1537 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1538 * remote.c (remote_update_thread_list): Skip calling prune_threads
1539 if any thread listing method is supported, and instead walk over
1540 the set of remote threads listed, deleting those that are not
1541 found in GDB's thread list.
1542
e8032dde
PA
15432014-10-15 Pedro Alves <palves@redhat.com>
1544
1545 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1546 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1547 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1548 (bsd_uthread_target): Adjust.
1549 * corelow.c (core_open): Adjust.
1550 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1551 (dec_thread_update_thread_list): New function.
1552 (init_dec_thread_ops): Adjust.
1553 * gdbthread.h (prune_threads): New declaration.
1554 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1555 (thread_db_update_thread_list): ... this. Call prune_threads.
1556 (init_thread_db_ops): Adjust.
1557 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1558 (procfs_update_thread_list): ... this. Call prune_threads.
1559 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1560 Adjust.
1561 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1562 (obsd_update_thread_list): ... this. Call prune_threads.
1563 (obsd_add_target): Adjust.
1564 * procfs.c (procfs_target): Adjust.
1565 (procfs_notice_thread): Update comment.
1566 (procfs_find_new_threads): Rename to ...
1567 (procfs_update_thread_list): ... this. Call prune_threads.
1568 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1569 comment.
1570 (ravenscar_wait): Adjust.
1571 (ravenscar_find_new_threads): Rename to ...
1572 (ravenscar_update_thread_list): ... this. Call prune_threads.
1573 (init_ravenscar_thread_ops): Adjust.
1574 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1575 (record_btrace_update_thread_list): ... this. Adjust comment.
1576 (init_record_btrace_ops): Adjust.
1577 * remote.c (remote_threads_info): Rename to ...
1578 (remote_update_thread_list): ... this. Call prune_threads.
1579 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1580 Adjust.
1581 * sol-thread.c (check_for_thread_db): Adjust.
1582 (sol_find_new_threads_callback): Rename to ...
1583 (sol_update_thread_list_callback): ... this.
1584 (sol_find_new_threads): Rename to ...
1585 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1586 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1587 * target-delegates.c: Regenerate.
1588 * target.c (target_find_new_threads): Rename to ...
1589 (target_update_thread_list): ... this.
1590 * target.h (struct target_ops): Rename to_find_new_threads field
1591 to to_update_thread_list.
1592 (target_find_new_threads): Rename to ...
1593 (target_update_thread_list): ... this.
1594 * thread.c (prune_threads): Make extern.
1595 (update_thread_list): Adjust.
1596
6dc54d91
PA
15972014-10-15 Pedro Alves <palves@redhat.com>
1598
1599 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1600 Add describing comment. Return -1 if the qL packet is not
1601 supported.
1602 (struct thread_item, thread_item_t): Move higher up in
1603 the file. Add comments.
1604 (struct threads_parsing_context): Move higher up in
1605 the file, add comments, and remote to ...
1606 (struct threads_listing_context): ... this.
1607 (remote_newthread_step): Don't add the thread to GDB's thread
1608 database here. Instead push it to the thread_listing_context
1609 list.
1610 (remote_find_new_threads): Rename to ...
1611 (remote_get_threads_with_ql): ... this. Add target_ops and
1612 targets_listing_context parameters. Pass down context.
1613 (start_thread): Adjust.
1614 (clear_threads_parsing_context): Rename to ...
1615 (clear_threads_listing_context): ... this.
1616 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1617 remote_threads_info.
1618 (remote_get_threads_with_qthreadinfo): Ditto.
1619 (remote_threads_info): Reimplement.
1620
36728e82
PA
16212014-10-15 Pedro Alves <palves@redhat.com>
1622
1623 * infrun.c (resume): Don't force displaced-stepping for all
1624 single-steps on software single-stepping archs.
1625
34b7e8a6
PA
16262014-10-15 Pedro Alves <palves@redhat.com>
1627
1628 * breakpoint.c (single_step_breakpoints): Delete global.
1629 (insert_single_step_breakpoint): Adjust to store the breakpoint
1630 pointer in the current thread.
1631 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1632 (cancel_single_step_breakpoints): Delete functions.
1633 (breakpoint_has_location_inserted_here): Make extern.
1634 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1635 breakpoint list.
1636 * breakpoint.h (breakpoint_has_location_inserted_here): New
1637 declaration.
1638 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1639 (cancel_single_step_breakpoints): Remove declarations.
1640 * gdbthread.h (struct thread_control_state)
1641 <single_step_breakpoints>: New field.
1642 (delete_single_step_breakpoints)
1643 (thread_has_single_step_breakpoints_set)
1644 (thread_has_single_step_breakpoint_here): New declarations.
1645 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1646 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1647 (singlestep_pc): Delete globals.
1648 (infrun_thread_ptid_changed): Remove references to removed
1649 globals.
1650 (resume_cleanups): Delete the current thread's single-step
1651 breakpoints.
1652 (maybe_software_singlestep): Remove references to removed globals.
1653 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1654 delete_single_step_breakpoints.
1655 (init_wait_for_inferior): Remove references to removed globals.
1656 (delete_thread_infrun_breakpoints): Delete the thread's
1657 single-step breakpoints too.
1658 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1659 single-step breakpoints here.
1660 (delete_stopped_threads_single_step_breakpoints): New function.
1661 (adjust_pc_after_break): Adjust to use
1662 thread_has_single_step_breakpoints_set.
1663 (handle_inferior_event): Remove references to removed globals.
1664 Use delete_stopped_threads_single_step_breakpoints.
1665 (handle_signal_stop): Adjust to per-thread single-step
1666 breakpoints. Swap test order to do cheaper tests first.
1667 (switch_back_to_stepped_thread): Extend debug output. Remove
1668 references to removed globals.
1669 * record-full.c (record_full_wait_1): Adjust to per-thread
1670 single-step breakpoints.
1671 * thread.c (delete_single_step_breakpoints)
1672 (thread_has_single_step_breakpoints_set)
1673 (thread_has_single_step_breakpoint_here): New functions.
1674 (clear_thread_inferior_resources): Also delete the thread's
1675 single-step breakpoints.
1676
5b834a0a
PA
16772014-10-15 Pedro Alves <palves@redhat.com>
1678
1679 * thread.c (delete_thread_breakpoint): New function.
1680 (delete_step_resume_breakpoint)
1681 (delete_exception_resume_breakpoint): Use it.
1682 (delete_at_next_stop): New function.
1683 (clear_thread_inferior_resources): Use delete_at_next_stop.
1684
a1fd2fa5
PA
16852014-10-15 Pedro Alves <palves@redhat.com>
1686
1687 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1688 (breakpoint_inserted_here_p): ... here. Remove special case for
1689 software single-step breakpoints.
1690 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1691 (software_breakpoint_inserted_here_p): ... here. Remove special
1692 case for software single-step breakpoints.
1693 (bp_target_info_copy_insertion_state)
1694 (deprecated_insert_raw_breakpoint)
1695 (deprecated_remove_raw_breakpoint): Delete functions.
1696 * breakpoint.h (deprecated_insert_raw_breakpoint)
1697 (deprecated_remove_raw_breakpoint): Remove declarations.
1698
7c16b83e
PA
16992014-10-15 Pedro Alves <palves@redhat.com>
1700
1701 PR breakpoints/9649
1702 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1703 Delete array globals.
1704 (single_step_breakpoints): New global.
1705 (breakpoint_xfer_memory): Remove special handling for single-step
1706 breakpoints.
1707 (update_breakpoints_after_exec): Delete bp_single_step
1708 breakpoints.
1709 (detach_breakpoints): Remove special handling for single-step
1710 breakpoints.
1711 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1712 (bpstat_stop_status): Add comment.
1713 (bpstat_what, bptype_string, print_one_breakpoint_location)
1714 (adjust_breakpoint_address, init_bp_location): Handle
1715 bp_single_step.
1716 (new_single_step_breakpoint): New function.
1717 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1718 handling for single-step breakpoints.
1719 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1720 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1721 Rewrite.
1722 (detach_single_step_breakpoints, find_single_step_breakpoint):
1723 Delete functions.
1724 (breakpoint_has_location_inserted_here): New function.
1725 (single_step_breakpoint_inserted_here_p): Rewrite.
1726 * breakpoint.h: Remove FIXME.
1727 (enum bptype) <bp_single_step>: New enum value.
1728 (insert_single_step_breakpoint): Update comment.
1729 * infrun.c (resume_cleanups)
1730 (delete_step_thread_step_resume_breakpoint): Remove single-step
1731 breakpoints.
1732 (fetch_inferior_event): Install a cleanup that removes infrun
1733 breakpoints.
1734 (switch_back_to_stepped_thread) <expect thread advanced also>:
1735 Clear step-over info.
1736
0cbcdb96
PA
17372014-10-15 Pedro Alves <palves@redhat.com>
1738
1739 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1740 (delete_thread_infrun_breakpoints): New function, with parts
1741 salvaged from delete_step_resume_breakpoint_callback.
1742 (delete_step_thread_step_resume_breakpoint): Delete.
1743 (for_each_just_stopped_thread_callback_func): New typedef.
1744 (for_each_just_stopped_thread): New function.
1745 (delete_just_stopped_threads_infrun_breakpoints): New function.
1746 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1747 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1748 ... this. Adjust.
1749 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1750
963f9c80
PA
17512014-10-15 Pedro Alves <palves@redhat.com>
1752
1753 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1754 trying to step past a non-steppable watchpoint.
1755 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1756 field.
1757 * infrun.c (struct step_over_info): Add new field
1758 'nonsteppable_watchpoint_p' and adjust comments.
1759 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1760 Adjust.
1761 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1762 (stepping_past_nonsteppable_watchpoint): New function.
1763 (step_over_info_valid_p): Also return true if stepping past a
1764 nonsteppable watchpoint.
1765 (proceed): Adjust call to set_step_over_info. Remove reference to
1766 init_infwait_state.
1767 (init_wait_for_inferior): Remove reference to init_infwait_state.
1768 (waiton_ptid): Delete global.
1769 (struct execution_control_state)
1770 <stepped_after_stopped_by_watchpoint>: Delete field.
1771 (wait_for_inferior, fetch_inferior_event): Always pass
1772 minus_one_ptid to target_wait.
1773 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1774 field.
1775 (init_infwait_state): Delete function.
1776 (handle_inferior_event): Remove infwait_state handling.
1777 (handle_signal_stop) <watchpoints handling>: Adjust after
1778 stepped_after_stopped_by_watchpoint removal. Don't remove
1779 breakpoints here nor set infwait_state. Set the thread's
1780 stepping_over_watchpoint flag, and call keep_going instead.
1781 (keep_going): Handle stepping_over_watchpoint. Adjust
1782 set_step_over_info calls.
1783 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1784 function.
1785
6cc83d2a
PA
17862014-10-15 Pedro Alves <palves@redhat.com>
1787
1788 * infrun.c (step_over_info_valid_p): New function.
1789 (resume): Use step_over_info_valid_p instead of checking the
1790 threads's trap_expected flag.
1791
6979730b
DE
17922014-10-15 Doug Evans <dje@google.com>
1793 Walfred Tedeschi <walfred.tedeschi@intel.com>
1794
1795 PR python/17364
1796 * python/lib/gdb/__init__.py (packages): Add "printer".
1797 * python/lib/gdb/command/bound_registers.py: Moved to ...
1798 * python/lib/gdb/printer/bound_registers.py: ... here.
1799 Add printer to global set of builtin printers. Rename printer from
1800 "bound" to "mpx_bound128".
1801 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1802 registered as global "builtin" printer.
1803 (add_builtin_pretty_printer): New function.
1804 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1805 gdb/printer/__init__.py.
1806
35a49624
IB
18072014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1808
1809 * Makefile.in (SFILES): Remove d-support.c.
1810 (COMMON_OBS): Remove d-support.o.
1811 * d-lang.h (d_parse_symbol): Remove declaration.
1812 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1813 * d-support.c: Remove file.
1814
8fa0c4f8
AA
18152014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1816
1817 * gdb/infrun.c (process_event_stop_test): Apply
1818 gdbarch_addr_bits_remove to longjmp resume address.
1819
3666da81
PA
18202014-10-15 Pedro Alves <palves@redhat.com>
1821
1822 * regformats/microblaze.dat: Delete file.
1823
449aa9df
AKA
18242014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1825
1826 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1827 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1828
ebb8ece2
SC
18292014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1830
1831 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1832 as non-trivial.
1833
82c48ac7
SC
18342014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1835
1836 PR c++/13403
1837 PR c++/15154
1838 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1839 with qualified args.
1840
c40cc657
JB
18412014-10-14 Joel Brobecker <brobecker@adacore.com>
1842
1843 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1844 of the case where the second operand is a pointer.
1845 <BINOP_SUB>: Likewise.
1846
0ea5cda8
SDJ
18472014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1848
1849 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1850 only if it is not NULL.
1851 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1852 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1853 (struct probe_ops) <clear_semaphore>: Likewise.
1854 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1855 not NULL.
1856 (stop_tracing): Likewise, for clear_semaphore.
1857
f7088df3
SDJ
18582014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1859
1860 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1861 using language_c, instead of current_language.
1862
4e1bbde0
DE
18632014-10-13 Doug Evans <dje@google.com>
1864
6ff5a0f6 1865 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1866 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1867 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1868 (pspy_new, pspace_to_pspace_object): Call it.
1869
c780cc2f
JK
18702014-10-13 Miroslav Franc <mfranc@redhat.com>
1871 Jan Kratochvil <jan.kratochvil@redhat.com>
1872
1873 Fix "save breakpoints" for "catch" command.
1874 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1875 newline.
1876
99894e11
JK
18772014-10-12 Miroslav Franc <mfranc@redhat.com>
1878
1879 Fix "save breakpoints" for "disable $bpnum" command.
1880 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1881
3831839c
PA
18822014-10-10 Pedro Alves <palves@redhat.com>
1883
1884 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1885 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1886 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1887 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1888 and been removed.
1889 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1890 * configure.ac: Remove references to IRIX.
1891 * configure.host: Add *-*-irix* to the obsolete hosts section.
1892 Remove all other references to irix.
1893 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1894 Delete files.
1895
cc3afae2
AKA
18962014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1897
1898 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1899 isn't valid, release the tdesc arch data and return NULL.
1900
cdfa0b0a
PA
19012014-10-10 Pedro Alves <palves@redhat.com>
1902
1903 * linux-tdep.c: Include observer.h.
1904 (linux_inferior_data): New global.
1905 (struct linux_info): New structure.
1906 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1907 (get_linux_inferior_data): New functions.
1908 (linux_vsyscall_range): Rename to ...
1909 (linux_vsyscall_range_raw): ... this.
1910 (linux_vsyscall_range): New function; handles caching.
1911 (_initialize_linux_tdep): Register linux_inferior_data. Install
1912 inferior_exit and inferior_appeared observers.
1913
8b9a549d
PA
19142014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1915 Pedro Alves <palves@redhat.com>
1916
1917 PR symtab/14466
1918 * solib-svr4.c (svr4_read_so_list): Rename to ...
1919 (svr4_current_sos_1): ... this and change the function comment.
1920 (svr4_current_sos): New function.
1921
3437254d
PA
19222014-10-10 Pedro Alves <palves@redhat.com>
1923
1924 * arch-utils.c (default_vsyscall_range): New function.
1925 * arch-utils.h (default_vsyscall_range): New declaration.
1926 * gdbarch.sh (vsyscall_range): New hook.
1927 * gdbarch.h, gdbarch.c: Regenerate.
1928 * linux-tdep.c (linux_vsyscall_range): New function.
1929 (linux_init_abi): Install linux_vsyscall_range as
1930 vsyscall_range gdbarch hook.
1931 * memrange.c (address_in_mem_range): New function.
1932 * memrange.h (address_in_mem_range): New declaration.
1933 * symfile-mem.c (find_vdso_size): Delete function.
1934 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1935
31cc0b80
PA
19362014-10-10 Pedro Alves <palves@redhat.com>
1937
1938 * infrun.c (normal_stop): Fix typo in comment.
1939
3e3286a2
SDJ
19402014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1941
1942 PR tdep/9390
1943 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1944 typo when using logical AND to determine instruction type.
1945
fcbdedf8
YQ
19462014-10-09 Yao Qi <yao@codesourcery.com>
1947
1948 * infrun.c (handle_signal_stop): Remove local variable
1949 'printed'.
1950
db984616
SS
19512014-10-08 Stan Shebs <stan@codesourcery.com>
1952
1953 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1954
3ba37e6c
GB
19552014-10-08 Gary Benson <gbenson@redhat.com>
1956
1957 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1958
a442d071
GB
19592014-10-08 Gary Benson <gbenson@redhat.com>
1960
1961 * common/common-defs.h: Include common-exceptions.h.
1962 * exceptions.h: Do not include common-exceptions.h.
1963
6f1947e8
GB
19642014-10-08 Gary Benson <gbenson@redhat.com>
1965
1966 * common/common-defs.h: Include cleanups.h.
1967 * common/common-exceptions.c: Do not include cleanups.h.
1968 * utils.h: Likewise.
1969
c765fdb9
GB
19702014-10-08 Gary Benson <gbenson@redhat.com>
1971
1972 * ada-lang.c: Do not include exceptions.h.
1973 * ada-valprint.c: Likewise.
1974 * amd64-tdep.c: Likewise.
1975 * auto-load.c: Likewise.
1976 * block.c: Likewise.
1977 * break-catch-throw.c: Likewise.
1978 * breakpoint.c: Likewise.
1979 * btrace.c: Likewise.
1980 * c-lang.c: Likewise.
1981 * cli/cli-cmds.c: Likewise.
1982 * cli/cli-interp.c: Likewise.
1983 * cli/cli-script.c: Likewise.
1984 * completer.c: Likewise.
1985 * corefile.c: Likewise.
1986 * corelow.c: Likewise.
1987 * cp-abi.c: Likewise.
1988 * cp-support.c: Likewise.
1989 * cp-valprint.c: Likewise.
1990 * darwin-nat.c: Likewise.
1991 * dwarf2-frame-tailcall.c: Likewise.
1992 * dwarf2-frame.c: Likewise.
1993 * dwarf2loc.c: Likewise.
1994 * dwarf2read.c: Likewise.
1995 * eval.c: Likewise.
1996 * event-loop.c: Likewise.
1997 * event-top.c: Likewise.
1998 * f-valprint.c: Likewise.
1999 * frame-unwind.c: Likewise.
2000 * frame.c: Likewise.
2001 * gdbtypes.c: Likewise.
2002 * gnu-v2-abi.c: Likewise.
2003 * gnu-v3-abi.c: Likewise.
2004 * guile/scm-auto-load.c: Likewise.
2005 * guile/scm-breakpoint.c: Likewise.
2006 * guile/scm-cmd.c: Likewise.
2007 * guile/scm-frame.c: Likewise.
2008 * guile/scm-lazy-string.c: Likewise.
2009 * guile/scm-param.c: Likewise.
2010 * guile/scm-symbol.c: Likewise.
2011 * guile/scm-type.c: Likewise.
2012 * hppa-hpux-tdep.c: Likewise.
2013 * i386-tdep.c: Likewise.
2014 * inf-loop.c: Likewise.
2015 * infcall.c: Likewise.
2016 * infcmd.c: Likewise.
2017 * infrun.c: Likewise.
2018 * interps.c: Likewise.
2019 * interps.h: Likewise.
2020 * jit.c: Likewise.
2021 * linespec.c: Likewise.
2022 * linux-nat.c: Likewise.
2023 * linux-thread-db.c: Likewise.
2024 * m32r-rom.c: Likewise.
2025 * main.c: Likewise.
2026 * memory-map.c: Likewise.
2027 * mi/mi-cmd-break.c: Likewise.
2028 * mi/mi-cmd-stack.c: Likewise.
2029 * mi/mi-interp.c: Likewise.
2030 * mi/mi-main.c: Likewise.
2031 * monitor.c: Likewise.
2032 * nto-procfs.c: Likewise.
2033 * objc-lang.c: Likewise.
2034 * p-valprint.c: Likewise.
2035 * parse.c: Likewise.
2036 * ppc-linux-tdep.c: Likewise.
2037 * printcmd.c: Likewise.
2038 * probe.c: Likewise.
2039 * python/py-auto-load.c: Likewise.
2040 * python/py-breakpoint.c: Likewise.
2041 * python/py-cmd.c: Likewise.
2042 * python/py-finishbreakpoint.c: Likewise.
2043 * python/py-frame.c: Likewise.
2044 * python/py-framefilter.c: Likewise.
2045 * python/py-function.c: Likewise.
2046 * python/py-gdb-readline.c: Likewise.
2047 * python/py-inferior.c: Likewise.
2048 * python/py-infthread.c: Likewise.
2049 * python/py-lazy-string.c: Likewise.
2050 * python/py-linetable.c: Likewise.
2051 * python/py-param.c: Likewise.
2052 * python/py-prettyprint.c: Likewise.
2053 * python/py-symbol.c: Likewise.
2054 * python/py-type.c: Likewise.
2055 * python/py-value.c: Likewise.
2056 * python/python-internal.h: Likewise.
2057 * python/python.c: Likewise.
2058 * record-btrace.c: Likewise.
2059 * record-full.c: Likewise.
2060 * regcache.c: Likewise.
2061 * remote-fileio.c: Likewise.
2062 * remote-mips.c: Likewise.
2063 * remote.c: Likewise.
2064 * rs6000-aix-tdep.c: Likewise.
2065 * rs6000-nat.c: Likewise.
2066 * skip.c: Likewise.
2067 * solib-darwin.c: Likewise.
2068 * solib-dsbt.c: Likewise.
2069 * solib-frv.c: Likewise.
2070 * solib-ia64-hpux.c: Likewise.
2071 * solib-spu.c: Likewise.
2072 * solib-svr4.c: Likewise.
2073 * solib.c: Likewise.
2074 * spu-tdep.c: Likewise.
2075 * stack.c: Likewise.
2076 * stap-probe.c: Likewise.
2077 * symfile-mem.c: Likewise.
2078 * symmisc.c: Likewise.
2079 * target.c: Likewise.
2080 * thread.c: Likewise.
2081 * top.c: Likewise.
2082 * tracepoint.c: Likewise.
2083 * tui/tui-interp.c: Likewise.
2084 * typeprint.c: Likewise.
2085 * utils.c: Likewise.
2086 * valarith.c: Likewise.
2087 * valops.c: Likewise.
2088 * valprint.c: Likewise.
2089 * value.c: Likewise.
2090 * varobj.c: Likewise.
2091 * windows-nat.c: Likewise.
2092 * xml-support.c: Likewise.
2093
484933d1
MR
20942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2095
2096 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2097 name implies.
2098 (extended_mips16_next_pc): Update accordingly.
2099
ab50adb6
MR
21002014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2101
2102 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2103 function.
2104 (micromips_instruction_is_compact_branch): Likewise.
2105 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2106 or a compact jump, reaching a jump delay slot, or seeing a
2107 second non-prologue instruction.
2108 (micromips_scan_prologue): Also terminate scanning upon seeing a
2109 compact branch or jump, or reaching a branch or jump delay slot.
2110 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2111 or jump delay slot, or seeing a second non-prologue instruction.
2112 (mips32_instruction_has_delay_slot): Retain instruction
2113 examination code only, update arguments accordingly and move
2114 instruction fetch pieces to...
2115 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2116 (micromips_instruction_has_delay_slot): Likewise and to...
2117 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2118 (mips16_instruction_has_delay_slot): Likewise and to...
2119 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2120 (mips_single_step_through_delay): Update accordingly.
2121 (mips_adjust_breakpoint_address): Likewise.
2122
ae790652
MR
21232014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2124
2125 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2126 !mustbe32 also return 1 for 32-bit instructions.
2127 (mips16_instruction_has_delay_slot): Likewise. Add an
2128 explanatory comment.
2129
9b807e7b
MR
21302014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2131
2132 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2133 symbols special.
2134
0d5ed153
MR
21352014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2136
2137 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2138 update comments.
2139 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2140 for the breakpoint's address. Don't preinitialize `placed_size'.
2141 (insert_bp_location): Set `reqstd_address' rather than
2142 `placed_address'.
2143 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2144 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2145 address.
2146 (bkpt_remove_location): Likewise.
2147 (deprecated_insert_raw_breakpoint): Likewise.
2148 (deprecated_remove_raw_breakpoint): Likewise.
2149 (find_single_step_breakpoint): Likewise.
2150 * mem-break.c (default_memory_insert_breakpoint): Use
2151 `reqstd_address' for the breakpoint's address. Don't set
2152 `placed_address' or `placed_size' if breakpoint contents couldn't
2153 have been determined.
2154 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2155 the breakpoint's address.
2156 (remote_insert_hw_breakpoint): Likewise. Don't set
2157 `placed_address' or `placed_size' if breakpoint couldn't have been
2158 set.
2159 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2160 `reqstd_address' for the breakpoint's address.
2161 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2162 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2163 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2164 * microblaze-linux-tdep.c
2165 (microblaze_linux_memory_remove_breakpoint): Likewise.
2166 * monitor.c (monitor_insert_breakpoint): Likewise.
2167 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2168 (procfs_insert_hw_breakpoint): Likewise.
2169 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2170 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2171 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2172 * remote-mips.c (mips_insert_breakpoint): Likewise.
2173 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2174
3e871532
LM
21752014-10-03 Luis Machado <lgustavo@codesourcery.com>
2176
2177 * valops.c (value_assign): Check for bit field assignments
2178 before calling architecture-specific register value
2179 conversion functions.
2180
ec48dc8b
PM
21812014-10-03 Pierre Muller <muller@sourceware.org>
2182
2183 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2184
b57bacec
PA
21852014-10-02 Pedro Alves <palves@redhat.com>
2186
2187 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2188 threads_are_executing.
2189 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2190 describing comment.
2191 * gdbthread.h (threads_are_executing): Declare.
2192 (handle_signal_stop) <random signals>: Don't print about the
2193 signal here if stopping.
2194 (end_stepping_range): Don't notify observers here.
2195 (normal_stop): Update the thread list. If stopped by a random
2196 signal or a stepping range ended, notify observers.
2197 * thread.c (threads_executing): New global.
2198 (init_thread_list): Clear 'threads_executing'.
2199 (set_executing): Set or clear 'threads_executing'.
2200 (threads_are_executing): New function.
2201 (update_threads_executing): New function.
2202 (update_thread_list): Use it.
2203
13fd3ff3
PA
22042014-10-02 Pedro Alves <palves@redhat.com>
2205
2206 PR breakpoints/17431
2207 * breakpoint.c (update_breakpoints_after_exec): Don't create
2208 overlay, longjmp, std terminate nor exception breakpoints here.
2209
32990ada
PA
22102014-10-02 Pedro Alves <palves@redhat.com>
2211
2212 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2213 Adjust comments.
2214 * inferior.c (find_inferior_for_program_space): Give preference to
2215 the current inferior.
2216 * inferior.h (find_inferior_for_program_space): Update comment.
2217 * progspace.c (switch_to_program_space_and_thread): Prefer the
2218 current inferior if it's bound to the program space requested. If
2219 the inferior found doesn't have a PID yet, don't bother looking up
2220 a thread.
2221 * progspace.h (switch_to_program_space_and_thread): Adjust
2222 comment.
2223 * thread.c (any_thread_of_process, any_live_thread_of_process):
2224 Give preference to the current thread.
2225
0fec99e8
PA
22262014-10-01 Pedro Alves <palves@redhat.com>
2227
2228 * breakpoint.c (insert_bp_location): Error out if inserting a
2229 software breakpoint at a read-only address.
2230 * target.c (memory_xfer_check_region): New function, factored out
2231 from ...
2232 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2233 ULONGEST.
2234 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2235 against the memory region attributes.
2236
2ddf4301
SM
22372014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2238
2239 * NEWS: Announce new exit-code field in -list-thread-groups
2240 output.
2241 * inferior.c (exit_inferior_1): Don't clear exit code.
2242 (inferior_appeared): Clear exit code.
2243 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2244 code.
2245
5fdeec1d
PA
22462014-10-01 Pedro Alves <palves@redhat.com>
2247
2248 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2249 GENERATED" along with emacs/vi read-only markers.
2250 * regformats/aarch64.dat: Regenerate.
2251 * regformats/arm-with-iwmmxt.dat: Regenerate.
2252 * regformats/arm-with-neon.dat: Regenerate.
2253 * regformats/arm-with-vfpv2.dat: Regenerate.
2254 * regformats/arm-with-vfpv3.dat: Regenerate.
2255 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2256 * regformats/i386/amd64-avx.dat: Regenerate.
2257 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2258 * regformats/i386/amd64-avx512.dat: Regenerate.
2259 * regformats/i386/amd64-linux.dat: Regenerate.
2260 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2261 * regformats/i386/amd64-mpx.dat: Regenerate.
2262 * regformats/i386/amd64.dat: Regenerate.
2263 * regformats/i386/i386-avx-linux.dat: Regenerate.
2264 * regformats/i386/i386-avx.dat: Regenerate.
2265 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2266 * regformats/i386/i386-avx512.dat: Regenerate.
2267 * regformats/i386/i386-linux.dat: Regenerate.
2268 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2269 * regformats/i386/i386-mmx.dat: Regenerate.
2270 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2271 * regformats/i386/i386-mpx.dat: Regenerate.
2272 * regformats/i386/i386.dat: Regenerate.
2273 * regformats/i386/x32-avx-linux.dat: Regenerate.
2274 * regformats/i386/x32-avx.dat: Regenerate.
2275 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2276 * regformats/i386/x32-avx512.dat: Regenerate.
2277 * regformats/i386/x32-linux.dat: Regenerate.
2278 * regformats/i386/x32.dat: Regenerate.
2279 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2280 * regformats/mips-dsp-linux.dat: Regenerate.
2281 * regformats/mips-linux.dat: Regenerate.
2282 * regformats/mips64-dsp-linux.dat: Regenerate.
2283 * regformats/mips64-linux.dat: Regenerate.
2284 * regformats/nios2-linux.dat: Regenerate.
2285 * regformats/rs6000/powerpc-32.dat: Regenerate.
2286 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2287 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2288 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2289 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2290 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2291 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2292 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2293 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2294 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2295 * regformats/s390-linux32.dat: Regenerate.
2296 * regformats/s390-linux32v1.dat: Regenerate.
2297 * regformats/s390-linux32v2.dat: Regenerate.
2298 * regformats/s390-linux64.dat: Regenerate.
2299 * regformats/s390-linux64v1.dat: Regenerate.
2300 * regformats/s390-linux64v2.dat: Regenerate.
2301 * regformats/s390-te-linux64.dat: Regenerate.
2302 * regformats/s390x-linux64.dat: Regenerate.
2303 * regformats/s390x-linux64v1.dat: Regenerate.
2304 * regformats/s390x-linux64v2.dat: Regenerate.
2305 * regformats/s390x-te-linux64.dat: Regenerate.
2306 * regformats/tic6x-c62x-linux.dat: Regenerate.
2307 * regformats/tic6x-c62x.dat: Regenerate.
2308 * regformats/tic6x-c64x-linux.dat: Regenerate.
2309 * regformats/tic6x-c64x.dat: Regenerate.
2310 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2311 * regformats/tic6x-c64xp.dat: Regenerate.
2312
db74e4ba
PA
23132014-10-01 Pedro Alves <palves@redhat.com>
2314
2315 * features/Makefile: Update comments.
2316 (XMLTOC): List all xml files we build C files from.
2317 (clean-cfiles): New rule.
2318
d63f2f84
PA
23192014-10-01 Pedro Alves <palves@redhat.com>
2320
2321 * features/i386/amd64-avx512-linux.c: Regenerate.
2322 * features/i386/amd64-avx512.c: Regenerate.
2323 * features/i386/x32-avx512-linux.c: Regenerate.
2324 * features/i386/x32-avx512.c: Regenerate.
2325
20ad026d
PA
23262014-10-01 Pedro Alves <palves@redhat.com>
2327
2328 * features/Makefile (WHICH): Remove arm-with-m,
2329 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2330
acc9fe45
PA
23312014-10-01 Pedro Alves <palves@redhat.com>
2332
2333 * features/Makefile (clean): New rule.
2334
e001e535
PA
23352014-10-01 Pedro Alves <palves@redhat.com>
2336
2337 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2338 (zmm14h): Add missing end quotes.
2339
bdc14417
PA
23402014-10-01 Pedro Alves <palves@redhat.com>
2341
2342 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2343 * features/aarch64.c: Regenerate.
2344
d83ad864
DB
23452014-09-30 Don Breazeal <donb@codesourcery.com>
2346
2347 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2348 code so as to work with follow_fork_inferior.
2349 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2350 (inf_ttrace_create_inferior): Remove reference to
2351 inf_ttrace_vfork_ppid.
2352 (inf_ttrace_attach): Ditto.
2353 (inf_ttrace_detach): Ditto.
2354 (inf_ttrace_kill): Use current_inferior instead of
2355 inf_ttrace_vfork_ppid.
2356 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2357 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2358 inferior away from the parent.
2359 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2360 target_follow_fork.
2361 (follow_fork_inferior): New function.
2362 (follow_inferior_reset_breakpoints): Make function static.
2363 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2364 * linux-nat.c (linux_child_follow_fork): Move target-independent
2365 code to infrun.c:follow_fork_inferior.
2366
29082443
AA
23672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2368
2369 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2370 * gdbarch.c: Regenerate.
2371 * gdbarch.h: Likewise.
2372 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2373 gdbarch method 'regset_from_core_section'.
2374 (get_core_register_section): Remove handling for the case that
2375 regset == NULL and regset_from_core_section is defined.
2376 (get_core_registers): Drop check for deleted method.
2377 * procfs.c (procfs_do_thread_registers): Adjust comment.
2378
f968fe80
AA
23792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2380
2381 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2382 (linux_nat_make_corefile_notes): Remove.
2383 (linux_target_install_ops): Do not set target method
2384 'make_corefile_notes'.
2385 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2386 Remove field.
2387 (linux_corefile_thread_callback): Instead of args->collect, call
2388 linux_collect_thread_registers.
2389 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2390 NULL unless there is a regset iterator.
2391 (linux_make_corefile_notes_1): Remove.
2392 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2393 by linux_make_corefile_notes.
2394 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2395
174ad59a
AA
23962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2397
2398 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2399 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2400 Remove.
2401 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2402
97094034
AA
24032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2404
2405 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2406 (xtensa_iterate_over_regset_sections): New.
2407 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2408
f73d3ce7
AA
24092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * vax-tdep.c (vax_regset_from_core_section): Remove.
2412 (vax_iterate_over_regset_sections): New.
2413 (vax_gdbarch_init): Adjust gdbarch initialization.
2414
cb24567a
AA
24152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2416
2417 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2418 (tilegx_regset_from_core_section): Remove.
2419 (tilegx_iterate_over_regset_sections): New.
2420 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2421
e5139de8
AA
24222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2423
2424 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2425 (sparc_iterate_over_regset_sections): New.
2426 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2427 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2428 targets.
2429 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2430 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2431 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2432 target method 'make_corefile_notes'.
2433
c6d41a6f
AA
24342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2435
2436 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2437 'sizeof_gregset' and 'sizeof_fpregset'.
2438 * sh-tdep.c (sh_regset_from_core_section): Remove.
2439 (sh_iterate_over_regset_sections): New.
2440 (sh_gdbarch_init): Adjust gdbarch initialization.
2441 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2442 sizeof_fpregset.
2443 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2444 'sizeof_gregset'.
2445
9845a0b5
AA
24462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2447
2448 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2449 (score7_linux_iterate_over_regset_sections): New.
2450 (score_gdbarch_init): Adjust gdbarch initialization.
2451
23ea9aeb
AA
24522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2453
2454 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2455 FreeBSD targets.
2456 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2457 method 'make_corefile_notes'.
2458 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2459 (ppcfbsd_regset_from_core_section): Remove.
2460 (ppcfbsd_iterate_over_regset_sections): New.
2461 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2462 initialization.
2463 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2464 (ppcnbsd_iterate_over_regset_sections): New.
2465 (ppcnbsd_init_abi): Adjust.
2466 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2467 (ppcobsd_iterate_over_regset_sections): New.
2468 (ppcobsd_init_abi): Adjust.
2469 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2470 (rs6000_aix_iterate_over_regset_sections): New.
2471 (rs6000_aix_init_osabi): Adjust.
2472
c5b8d704
AA
24732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2474
2475 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2476 (nios2_regset_from_core_section): Remove.
2477 (nios2_iterate_over_regset_sections): New.
2478 (nios2_linux_init_abi): Adjust gdbarch initialization.
2479
3636e608
AA
24802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2481
2482 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2483 (am33_iterate_over_regset_sections): New.
2484 (am33_linux_init_osabi): Adjust gdbarch initialization.
2485
d4036235
AA
24862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487
2488 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2489 (mips_linux_iterate_over_regset_sections): New.
2490 (mips_linux_init_abi): Adjust gdbarch initialization.
2491 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2492 (mips64obsd_iterate_over_regset_sections): New.
2493 (mips64obsd_init_abi): Adjust.
2494 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2495 (mipsnbsd_iterate_over_regset_sections): New.
2496 (mipsnbsd_init_abi): Adjust.
2497
b61ddd6e
AA
24982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2499
2500 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2501 (m88k_iterate_over_regset_sections): New.
2502 (m88k_gdbarch_init): Adjust gdbarch initialization.
2503
55a2906a
AA
25042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2507 (ia64_linux_iterate_over_regset_sections): New.
2508 (ia64_linux_init_abi): Adjust gdbarch initialization.
2509
022c98ab
AA
25102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2511
2512 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2513 (m68kbsd_iterate_over_regset_sections): New.
2514 (m68kbsd_init_abi): Adjust gdbarch initialization.
2515 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2516 (m68k_linux_iterate_over_regset_sections): New.
2517 (m68k_linux_init_abi): Adjust gdbarch initialization.
2518
5fac247f
AA
25192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2520
2521 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2522 (m32r_linux_regset_from_core_section): Remove.
2523 (m32r_linux_iterate_over_regset_sections): New.
2524 (m32r_linux_init_abi): Adjust gdbarch initialization.
2525
490496c3
AA
25262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527
2528 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2529 (amd64obsd_iterate_over_regset_sections): New.
2530 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2531 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2532 Remove.
2533 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2534 regset_from_core_section initialization.
2535 * i386-tdep.c (i386_regset_from_core_section): Remove.
2536 (i386_iterate_over_regset_sections): New.
2537 (i386_gdbarch_init): Adjust gdbarch initialization.
2538 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2539 (i386_iterate_over_regset_sections): New prototype.
2540 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2541 Remove.
2542 (i386obsd_aout_iterate_over_regset_sections): New.
2543 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2544 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2545 targets.
2546 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2547 (amd64fbsd_init_abi): Call fbsd_init_abi.
2548 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2549 (i386fbsd4_init_abi): Call fbsd_init_abi.
2550 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2551 target method 'make_corefile_notes'.
2552 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2553
50c5eb53
AA
25542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2555
2556 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2557 (hppa_hpux_iterate_over_regset_sections): New.
2558 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2559 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2560 (hppa_linux_iterate_over_regset_sections): New.
2561 (hppa_linux_init_abi): Adjust.
2562 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2563 (hppanbsd_iterate_over_regset_sections): New.
2564 (hppanbsd_init_abi): Adjust.
2565 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2566 (hppaobsd_iterate_over_regset_sections): New.
2567 (hppaobsd_init_abi): Adjust.
2568
66afae4f
AA
25692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570
2571 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2572 (frv_linux_iterate_over_regset_sections): New.
2573 (frv_linux_init_abi): Adjust gdbarch initialization.
2574
ed09174e
AA
25752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576
2577 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2578 (armbsd_iterate_over_regset_sections): New prototype.
2579 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2580 (armbsd_iterate_over_regset_sections): New.
2581 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2582 initialization.
2583
dff2166e
AA
25842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2585
2586 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2587 (alpha_linux_iterate_over_regset_sections): New.
2588 (alpha_linux_init_abi): Adjust gdbarch initialization.
2589 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2590 prototype.
2591 (alphanbsd_iterate_over_regset_sections): New prototype.
2592
4108500a
AA
25932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2594
2595 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2596 Remove.
2597 (aarch64_linux_iterate_over_regset_sections): New.
2598 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2599
a904c024
AA
26002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2601
2602 * fbsd-tdep.c: New file.
2603 * fbsd-tdep.h: New file.
2604 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2605 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2606 (ALLDEPFILES): Add fbsd-tdep.c.
2607
8f0435f7
AA
26082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609
2610 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2611 parameter.
2612 * gdbarch.h: Regenerate.
2613 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2614 iterator.
2615 (get_core_register_section): Add parameter 'regset' and use it, if
2616 set. Add parameter 'min_size' and verify the bfd section size
2617 against it.
2618 (get_core_registers_cb): Add parameter 'regset' and pass it to
2619 get_core_register section. For the "standard" register sections
2620 ".reg" and ".reg2", set an appropriate default for human_name.
2621 (get_core_registers): Don't abort when the gdbarch has an iterator
2622 but no regset_from_core_section. Add NULL/0 for parameters
2623 'regset'/'min_size' in calls to get_core_register_section.
2624 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2625 'regset' and use it instead of calling the
2626 regset_from_core_section gdbarch method.
2627 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2628 * i386-tdep.c (i386_supply_xstateregset)
2629 (i386_collect_xstateregset, i386_xstateregset): Moved to
2630 i386-linux-tdep.c.
2631 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2632 .reg-xstate.
2633 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2634 core file support only if the regset iterator hasn't been set.
2635 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2636 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2637 Moved from i386-tdep.c and renamed to *_linux*.
2638 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2639 each callback invocation. Allow any .reg-xstate size when reading
2640 from a core file.
2641 * amd64-tdep.c (amd64_supply_xstateregset)
2642 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2643 amd64-linux-tdep.c.
2644 (amd64_regset_from_core_section): Remove.
2645 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2646 install an amd64-specific regset_from_core_section gdbarch method.
2647 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2648 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2649 Moved from amd64-tdep.c and renamed to *_linux*.
2650 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2651 to each callback invocation. Allow any .reg-xstate size when
2652 reading from a core file.
2653 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2654 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2655 each callback invocation.
2656 (arm_linux_init_abi): No longer set the regset_from_core_section
2657 gdbarch method.
2658 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2659 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2660 each callback invocation.
2661 (ppc_linux_init_abi): No longer set the regset_from_core_section
2662 gdbarch method.
2663 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2664 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2665 (s390_regset_from_core_section): Remove.
2666 (s390_iterate_over_regset_sections): Add regset parameter to each
2667 callback invocation.
2668 (s390_gdbarch_init): No longer set the regset_from_core_section
2669 gdbarch method. Drop initialization of deleted tdep fields.
2670
5aa82d05
AA
26712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2674 (amd64_linux_iterate_over_regset_sections): New.
2675 (amd64_linux_init_abi_common): Don't install the regset section
2676 list, but the new iterator in gdbarch.
2677 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2678 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2679 (arm_linux_iterate_over_regset_sections): ...here. New function.
2680 (arm_linux_init_abi): Set iterator instead of section list.
2681 * corelow.c (get_core_registers_cb): New function, logic moved
2682 from...
2683 (get_core_registers): ...loop body here. Use new iterator method
2684 instead of walking through the regset section list.
2685 * gdbarch.sh: Remove 'core_regset_sections'. New method
2686 'iterate_over_regset_sections'. New typedef
2687 'iterate_over_regset_sections_cb'.
2688 * gdbarch.c: Regenerate.
2689 * gdbarch.h: Likewise.
2690 * i386-linux-tdep.c (i386_linux_regset_sections)
2691 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2692 Remove.
2693 (i386_linux_iterate_over_regset_sections): New.
2694 (i386_linux_init_abi): Don't choose a regset section list, but
2695 install new iterator in gdbarch.
2696 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2697 (linux_collect_regset_section_cb): New function, logic moved
2698 from...
2699 (linux_collect_thread_registers): ...loop body here. Use iterator
2700 method instead of walking through list.
2701 (linux_make_corefile_notes_1): Check for presence of iterator
2702 method instead of regset section list.
2703 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2704 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2705 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2706 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2707 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2708 (ppc_linux_init_abi): Don't choose from above regset section
2709 lists, but install new iterator in gdbarch.
2710 * regset.h (struct core_regset_section): Remove.
2711 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2712 have_linux_v1, have_linux_v2, and have_tdb.
2713 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2714 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2715 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2716 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2717 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2718 (s390_iterate_over_regset_sections): ...here. New function. Use
2719 new tdep fields.
2720 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2721 regset section lists, but install new iterator.
2722
2eca4a8d
JK
27232014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2726
a73c2b56
SM
27272014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2728
2729 * progspace.c (print_program_space): Don't prune program spaces
2730 before printing them.
2731
03d46957
PA
27322014-09-25 Pedro Alves <palves@redhat.com>
2733
2734 * infrun.c (user_visible_resume_ptid): Don't check
2735 singlestep_breakpoints_inserted_p.
2736
e558d7c1
PA
27372014-09-25 Pedro Alves <palves@redhat.com>
2738
2739 * breakpoint.c (should_be_inserted): Add debug output.
2740
7f89fd65
PA
27412014-09-25 Pedro Alves <palves@redhat.com>
2742
2743 * infrun.c (stepping_past_instruction_at)
2744 (clear_exit_convenience_vars): Point at infrun.h instead of
2745 inferior.h.
2746 (handle_signal_stop): Fix typo.
2747
b7576e5c
YQ
27482014-09-24 Yao Qi <yao@codesourcery.com>
2749
2750 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2751 bitmask.
2752
9a6cf368
GB
27532014-09-22 Gary Benson <gbenson@redhat.com>
2754
2755 * target.c (target_stop): Updated comment.
2756
03f4463b
GB
27572014-09-22 Gary Benson <gbenson@redhat.com>
2758
2759 * target/target.h (target_stop_ptid): Renamed as...
2760 (target_stop_and_wait): New function. Updated comment.
2761 All uses updated.
2762 (target_continue_ptid): Renamed as...
2763 (target_continue_no_signal): New function. Updated comment.
2764 All uses updated.
2765
a25a5a45
PA
27662014-09-22 Pedro Alves <palves@redhat.com>
2767
2768 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2769 and "auto" merged.
2770 * breakpoint.c (enum ugll_insert_mode): New enum.
2771 (always_inserted_mode): Now a plain boolean.
2772 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2773 (breakpoints_always_inserted_mode): Delete.
2774 (breakpoints_should_be_inserted_now): New function.
2775 (insert_breakpoints): Pass UGLL_INSERT to
2776 update_global_location_list instead of calling
2777 insert_breakpoint_locations manually.
2778 (create_solib_event_breakpoint_1): New, factored out from ...
2779 (create_solib_event_breakpoint): ... this.
2780 (create_and_insert_solib_event_breakpoint): Use
2781 create_solib_event_breakpoint_1 instead of calling
2782 insert_breakpoint_locations manually.
2783 (update_global_location_list): Change parameter type from boolean
2784 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2785 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2786 (update_global_location_list_nothrow): Change parameter type from
2787 boolean to enum ugll_insert_mode.
2788 (_initialize_breakpoint): "breakpoint always-inserted" option is
2789 now a boolean command. Update help text.
2790 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2791 (breakpoints_should_be_inserted_now): New declaration.
2792 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2793 Remove breakpoints_always_inserted_mode check.
2794 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2795 * remote.c (remote_start_remote): Likewise.
2796
04086b45
PA
27972014-09-22 Pedro Alves <palves@redhat.com>
2798
2799 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2800 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2801 Instead, pass UGLL_INSERT to update_global_location_list.
2802 (update_global_location_list): Change parameter type from boolean
2803 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2804 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2805 (create_solib_event_breakpoint_1): New, factored out from ...
2806 (create_solib_event_breakpoint): ... this.
2807 (create_and_insert_solib_event_breakpoint): Use
2808 create_solib_event_breakpoint_1 instead of calling
2809 insert_breakpoint_locations manually.
2810 (update_global_location_list): Handle UGLL_INSERT.
2811
44702360
PA
28122014-09-22 Pedro Alves <palves@redhat.com>
2813
2814 * breakpoint.c (enum ugll_insert_mode): New enum.
2815 (update_global_location_list)
2816 (update_global_location_list_nothrow): Change parameter type from
2817 boolean to enum ugll_insert_mode. All callers adjusted.
2818
93c6145a
JB
28192014-09-19 Joel Brobecker <brobecker@adacore.com>
2820
2821 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2822 SystemTap support in GDB.
2823
89a5711c
DB
28242014-09-19 Don Breazeal <donb@codesourcery.com>
2825
2826 * linux-nat.c (linux_handle_extended_wait): Call
2827 linux_ptrace_get_extended_event.
2828 (wait_lwp): Call linux_is_extended_waitstatus.
2829 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2830 and linux_is_extended_waitstatus.
2831 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2832 linux_ptrace_get_extended_event.
2833 (linux_ptrace_get_extended_event): New function.
2834 (linux_is_extended_waitstatus): New function.
2835 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2836 (linux_is_extended_waitstatus): New declarations.
2837
c3b7b696
YQ
28382014-09-19 Yao Qi <yao@codesourcery.com>
2839
2840 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2841 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2842 comments. Callers update.
2843 (dwarf_decode_lines): Likewise.
2844 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2845 comments. Skip the line table if 'lowpc' is greater than
2846 'address'. Don't check
2847 dwarf2_per_objfile->has_section_at_zero.
2848
2b4fd423
DE
28492014-09-18 Doug Evans <dje@google.com>
2850
2851 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2852 * python/py-symtab.c (stpy_get_producer): New function.
2853 (symtab_object_getset): Add "producer" attribute.
2854
5e43d467
UW
28552014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2856
2857 PR gdb/17384
2858 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2859 (do_captured_read_memory_integer): Remove.
2860 (safe_read_memory_integer): Use target_read_memory directly instead
2861 of catching errors in do_captured_read_memory_integer.
2862
04e79979
MR
28632014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2864
2865 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2866 not gdb/doc.
2867
76aeec5b
SDJ
28682014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2869
2870 * objc-lang.c (find_implementation_from_class): Remove dead code.
2871
2f693f9d
SDJ
28722014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2873
2874 PR cli/7233
2875 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2876 "fprintf_unfiltered (gdb_stdlog...)".
2877
bb9d5f81
PP
28782014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2879
2880 PR breakpoints/12526
2881 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2882 val_bitsize.
2883 * breakpoint.c (watch_command_1): Use these fields to retain
2884 bitfield information.
2885 (extract_bitfield_from_watchpoint_value): New function.
2886 (watchpoint_check): Use it.
2887 (update_watchpoint): Use it. Optimize the address and length of a
2888 HW watchpoint pointing to a bitfield.
2889 * value.h (unpack_value_bitfield): New prototype.
2890 * value.c (unpack_value_bitfield): Make extern.
2891
05db5edd
ST
28922014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2893
2894 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2895 x86-dregs.o.
2896 * gnu-nat.c (inf_threads): New function.
2897 * gnu-nat.h (inf_threads_ftype): New typedef.
2898 (inf_threads): New declaration.
2899 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2900 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2901 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2902 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2903 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2904 (i386_gnu_dr_get_control): New functions.
2905 (reg_addr): New structure.
2906 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2907 i386 debugging register hooks.
2908 * NEWS: Mention this.
2909
5a578da5
OJ
29102014-08-13 Omair Javaid <omair.javaid@linaro.org>
2911
2912 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2913 vector data transfer instructions.
2914 (arm_record_coproc_data_proc): Updated.
2915
f20f80dd
OJ
29162014-08-13 Omair Javaid <omair.javaid@linaro.org>
2917
2918 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2919 arm_record_exreg_ld_st_insn.
2920 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2921 load/store insns.
2922
851f26ae
OJ
29232014-08-13 Omair Javaid <omair.javaid@linaro.org>
2924
2925 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2926 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2927 processing instructions.
2928
1e1b6563
OJ
29292014-08-13 Omair Javaid <omair.javaid@linaro.org>
2930
2931 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2932 for advance SIMD struct ld/st insn.
2933 (thumb2_record_decode_insn_handler): Replace stub handler with
2934 thumb2_record_asimd_struct_ld_st.
2935
60cc5e93
OJ
29362014-08-13 Omair Javaid <omair.javaid@linaro.org>
2937
2938 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2939 for asimd, vfp and coprocessor insns.
2940 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2941 and coprocessor insns.
2942 (thumb2_record_coproc_insn): New function.
2943 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2944 handlers.
2945 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2946 opcode 110 insns.
2947
81219e53
DE
29482014-09-13 Doug Evans <xdje42@gmail.com>
2949
2950 * NEWS: Mention new "queue-signal" command.
2951 * infcmd.c (queue_signal_command): New function.
2952 (_initialize_infcmd): Add new queue-signal command.
2953
d36bf488
DE
29542014-09-13 Doug Evans <xdje42@gmail.com>
2955
2956 * linux-nat.c (wait_lwp): Add debugging printf.
2957 (linux_nat_wait_1): Ditto.
2958
f37f681c
PA
29592014-09-12 Pedro Alves <palves@redhat.com>
2960
2961 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2962 (create_and_insert_solib_event_breakpoint): New functions.
2963 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2964 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2965 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2966 (remove_dbx_link_breakpoint): Delete function.
2967 (insert_dbx_link_bpt_in_file): Use
2968 create_and_insert_solib_event_breakpoint instead of
2969 deprecated_insert_raw_breakpoint.
2970 (procfs_wait): Don't check whether we hit __dbx_link here.
2971 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2972 here.
2973 * solib-irix.c (base_breakpoint): Delete global.
2974 (disable_break): Delete function.
2975 (enable_break): Use create_solib_event_breakpoint
2976 instead of deprecated_insert_raw_breakpoint.
2977 (irix_solib_handle_event): New function.
2978 (irix_solib_create_inferior_hook): Don't run the target or disable
2979 the mapping-complete breakpoint here.
2980 (_initialize_irix_solib): Install irix_solib_handle_event as
2981 so_ops->handle_event hook.
2982
9d9bf2df
EBM
29832014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2984 Ulrich Weigand  <uweigand@de.ibm.com>
2985
2986 PR tdep/17379
2987 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2988 instead of read_memory_unsigned_integer.
2989
b006a80e
GB
29902014-09-12 Gary Benson <gbenson@redhat.com>
2991
2992 * nat/linux-waitpid.c: Include common-defs.h.
2993 [GDBSERVER]: Add FIXME comment.
2994 [!GDBSERVER]: Don't include defs.h or signal.h.
2995 (linux_debug) [!GDBSERVER]: Remove empty block.
2996
296b1496
GB
29972014-09-12 Gary Benson <gbenson@redhat.com>
2998
2999 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3000 Don't include defs.h or server.h.
3001
53f81362
GB
30022014-09-12 Gary Benson <gbenson@redhat.com>
3003
3004 * nat/linux-btrace.c: Include common-defs.h.
3005 Don't include defs.h, server.h or gdbthread.h.
3006 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3007
727605ca
GB
30082014-09-12 Gary Benson <gbenson@redhat.com>
3009
3010 * common/agent.c: Include common-defs.h.
3011 Don't include defs.h or server.h.
3012 * common/buffer.c: Likewise.
3013 * common/common-debug.c: Likewise.
3014 * common/common-utils.c: Likewise.
3015 * common/errors.c: Likewise.
3016 * common/filestuff.c: Likewise.
3017 * common/format.c: Likewise.
3018 * common/gdb_vecs.c: Likewise.
3019 * common/print-utils.c: Likewise.
3020 * common/ptid.c: Likewise.
3021 * common/rsp-low.c: Likewise.
3022 * common/signals.c: Likewise.
3023 * common/vec.c: Likewise.
3024 * common/xml-utils.c: Likewise.
3025 * nat/linux-osdata.c: Likewise.
3026 * nat/linux-procfs.c: Likewise.
3027 * nat/linux-ptrace.c: Likewise.
3028 * nat/mips-linux-watch.c: Likewise.
3029 * target/waitstatus.c: Likewise.
3030
361c8ade
GB
30312014-09-12 Tom Tromey <tromey@redhat.com>
3032 Gary Benson <gbenson@redhat.com>
3033
3034 * common/common-regcache.h: New file.
3035 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3036 * regcache.h: Include common-regcache.h.
3037 (regcache_read_pc): Don't declare.
3038 * regcache.c (get_thread_regcache_for_ptid): New function.
3039 * nat/linux-btrace.c: Don't include regcache.h.
3040 Include common-regcache.h.
3041 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3042
a01cbb49
TS
30432014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3044
3045 * regcache.h (struct regset): Declare.
3046
98880d46
PA
30472014-09-11 Pedro Alves <palves@redhat.com>
3048
3049 PR gdb/17347
3050 * main.c: Include "infrun.h".
3051 (catch_command_errors, catch_command_errors_const): Wait for the
3052 foreground command to complete.
3053 * top.c (maybe_wait_sync_command_done): New function, factored out
3054 from ...
3055 (maybe_wait_sync_command_done): ... here.
3056 * top.h (maybe_wait_sync_command_done): New declaration.
3057
bd9269f7
GB
30582014-09-11 Tom Tromey <tromey@redhat.com>
3059 Gary Benson <gbenson@redhat.com>
3060
3061 * common/symbol.h: New file.
3062 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3063 * minsyms.c (find_minimal_symbol_address): New function.
3064 * common/agent.c: Include common/symbol.h.
3065 [!GDBSERVER]: Don't include objfiles.h.
3066 (agent_look_up_symbols): Use find_minimal_symbol_address.
3067
f8c1d06b
GB
30682014-09-11 Gary Benson <gbenson@redhat.com>
3069
3070 * target/target.h (target_stop_ptid, target_continue_ptid):
3071 Declare.
3072 * target.c (target_stop_ptid, target_continue_ptid): New
3073 functions.
3074 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3075 (agent_run_command): Always use target_stop_ptid and
3076 target_continue_ptid.
3077
721ec300
GB
30782014-09-11 Tom Tromey <tromey@redhat.com>
3079 Gary Benson <gbenson@redhat.com>
3080
3081 * target/target.h: New file.
3082 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3083 * target.h: Include target/target.h.
3084 (target_read_memory, target_write_memory): Don't declare.
3085 * target.c (target_read_uint32): New function.
3086 * common/agent.c: Include target/target.h.
3087 [!GDBSERVER]: Don't include target.h.
3088 (helper_thread_id): Type changed to uint32_t.
3089 (agent_get_helper_thread_id): Use target_read_uint32.
3090 (agent_run_command): Always use target_read_memory and
3091 target_write_memory.
3092 (agent_capability): Type changed to uint32_t.
3093 (agent_capability_check): Use target_read_uint32.
3094
c5e92cca
GB
30952014-09-11 Gary Benson <gbenson@redhat.com>
3096
3097 * common/common-debug.h (show_debug_regs): Declare.
3098 * common/common-debug.c (show_debug_regs): Define.
3099 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3100 all uses with show_debug_regs. Replace all uses that considered
3101 debug_hw_points as a multi-value integer with straight boolean
3102 uses.
3103 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3104 with show_debug_regs.
3105 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3106 all uses with show_debug_regs.
3107 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3108 uses with show_debug_regs.
3109
eeef931a
UW
31102014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3111
3112 * findvar.c (address_from_register): Handle targets requiring
3113 a special conversion routine even for plain pointer types.
3114
8efa9855
UW
31152014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3116
3117 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3118 (store_register): Do not call exec_one_dummy_insn.
3119
eb479039
JB
31202014-09-10 Joel Brobecker <brobecker@adacore.com>
3121
3122 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3123 dereference it first. Use value_enclosing_type instead of
3124 value_type.
3125 (ada_array_length): Likewise.
3126
deede10c
JB
31272014-09-10 Joel Brobecker <brobecker@adacore.com>
3128
3129 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3130 Adjust function implementation and documentation accordingly.
3131 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3132 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3133 Update call to ada_value_ptr_subscript.
3134
7828a5f5
JB
31352014-09-10 Joel Brobecker <brobecker@adacore.com>
3136
3137 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3138 instead of VAL's type.
3139
35782f14
JB
31402014-09-10 Joel Brobecker <brobecker@adacore.com>
3141
3142 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3143
d342a0da
DE
31442014-09-09 Doug Evans <xdje42@gmail.com>
3145
3146 PR guile/17367
3147 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3148 last parameter to pkg-config, not first.
3149 * configure.ac: Pass --with-guile provided pkg-config path to
3150 GDB_GUILE_PROGRAM_NAMES.
3151 * configure: Regenerate.
3152
b4a3d263
GKB
31532014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3154
3155 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3156 Bertazi".
3157
6e466374
MR
31582014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3159
3160 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3161 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3162 the list of sections determining GDB_OSABI_IRIX.
3163
a1ada89a
JH
31642014-09-09 James Hogan <james.hogan@imgtec.com>
3165
3166 * MAINTAINERS (Write After Approval): Add "James Hogan".
3167
86db008d
JH
31682014-09-09 James Hogan <james.hogan@imgtec.com>
3169
3170 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3171
72fde3df
JB
31722014-09-09 Joel Brobecker <brobecker@adacore.com>
3173
3174 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3175
92d8d229
DE
31762014-09-08 Doug Evans <xdje42@gmail.com>
3177
3178 PR 17247
3179 * guile.c: #include <signal.h>.
3180 (_initialize_guile): Block SIGCHLD while initializing Guile.
3181
3182 Replaces the following, which is reverted.
3183
3184 2014-07-26 Doug Evans <xdje42@gmail.com>
3185
3186 PR 17185
3187 * configure.ac: Add check for header gc/gc.h.
3188 Add check for function setenv.
3189 * configure: Regenerate.
3190 * config.in: Regenerate.
3191 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3192
d81412aa
DE
31932014-09-08 Doug Evans <xdje42@gmail.com>
3194
3195 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3196 with named constant. Fix style of pointer comparison.
3197 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3198
a9f116cb
GKB
31992014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3200
3201 PR gdb/17035
3202 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3203 decide whether we display the command on "show user".
3204 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3205 printing command name.
3206 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3207 * cli/cli-decode.c (cli_user_command_p): Create helper function
3208 to verify whether cmd_list_element is a user-defined command.
3209
c75bd3a2
JK
32102014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3211
3212 PR python/17355
3213 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3214 Fix goto out of TRY_CATCH.
3215
faa42425 32162014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3217 Tom Tromey <tromey@redhat.com>
faa42425
DE
3218
3219 PR 15276
3220 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3221 $_any_caller_matches.
3222 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3223 * python/lib/gdb/function/caller_is.py: New file.
3224
0d41ba00
DE
32252014-09-06 Doug Evans <xdje42@gmail.com>
3226
3227 * infcmd.c (program_info): Fix typo.
3228
474ca4f6
SDJ
32292014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3230
3231 PR gdb/17235
3232 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3233 'number'. New variable 'has_digit'. Rewrite code to deal with
3234 subexpressions on SDT probes.
3235
ebf13736
PA
32362014-09-04 Pedro Alves <palves@redhat.com>
3237
3238 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3239 the input is only one character long.
3240
eb0b0463
SDJ
32412014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3242
3243 PR fortran/17237
3244 * f-valprint.c (f_val_print): Specify the correct print option to
3245 use when printing integer values.
3246
5ee44bfa
GB
32472014-09-04 Gary Benson <gbenson@redhat.com>
3248
3249 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3250 Remove code to cope with LWPs wrapped as PIDs.
3251 Add assertions to ensure no wrapped LWPs are passed.
3252
4875ffdb
PA
32532014-09-04 Pedro Alves <palves@redhat.com>
3254
3255 * value.c (value_ranges_copy_adjusted): New function, factored out
3256 from ...
3257 (value_contents_copy_raw): ... here.
3258 (unpack_value_bits_as_long_1): Rename back to ...
3259 (unpack_bits_as_long): ... this. Remove 'original_value' and
3260 'result' parameters. Change return type to LONGEST.
3261 (unpack_value_bits_as_long): Delete.
3262 (unpack_value_field_as_long_1): Delete.
3263 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3264 (unpack_value_bitfield): New function.
3265 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3266 (value_fetch_lazy): Use unpack_value_bitfield.
3267 * value.h (unpack_value_bits_as_long): Delete declaration.
3268
5f3b99cf
SS
32692014-09-03 Sasha Smundak <asmundak@google.com>
3270
3271 * python/py-frame.c (frapy_read_register): New function.
3272
ac740bc7
JH
32732014-09-03 James Hogan <james.hogan@imgtec.com>
3274
3275 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3276 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3277
7d793aa9
SDJ
32782014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3279
3280 PR python/16699
3281 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3282 function.
3283 (add_cmd): Set "completer_handle_brkchars" to NULL.
3284 * cli/cli-decode.h (struct cmd_list_element)
3285 <completer_handle_brkchars>: New field.
3286 * command.h (completer_ftype_void): New typedef.
3287 (set_cmd_completer_handle_brkchars): New prototype.
3288 * completer.c (set_gdb_completion_word_break_characters): New
3289 function.
3290 (complete_line_internal): Call "completer_handle_brkchars"
3291 callback from command.
3292 * completer.h: Include "command.h".
3293 (set_gdb_completion_word_break_characters): New prototype.
3294 * python/py-cmd.c (cmdpy_completer_helper): New function.
3295 (cmdpy_completer_handle_brkchars): New function.
3296 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3297 (cmdpy_init): Set completer_handle_brkchars to
3298 cmdpy_completer_handle_brkchars.
3299
97ea6506
GB
33002014-09-03 Gary Benson <gbenson@redhat.com>
3301
3302 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3303 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3304 Loop conditions changed to equivalent form.
3305 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3306 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3307 ALL_DEBUG_ADDRESS_REGISTERS.
3308
d1437815
JB
33092014-09-03 Joel Brobecker <brobecker@adacore.com>
3310
3311 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3312 description fix.
3313
9b94fcf1
DE
33142014-09-02 Doug Evans <dje@google.com>
3315
3316 * typeprint.c (find_global_typedef): Fix comment.
3317
df7e5265
GB
33182014-09-02 Gary Benson <gbenson@redhat.com>
3319
3320 * i386-nat.h: Renamed as...
3321 * x86-nat.h: New file. All type, function and variable name
3322 prefixes changed from "i386_" to "x86_". All references updated.
3323 * i386-nat.c: Renamed as...
3324 * x86-nat.c: New file. All type, function and variable name
3325 prefixes changed from "i386_" to "x86_". All references updated.
3326 * common/i386-xstate.h: Renamed as...
3327 * common/x86-xstate.h: New file. All type, function and variable
3328 name prefixes changed from "i386_" to "x86_". All references
3329 updated.
3330 * nat/i386-cpuid.h: Renamed as...
3331 * nat/x86-cpuid.h: New file. All type, function and variable name
3332 prefixes changed from "i386_" to "x86_". All references updated.
3333 * nat/i386-gcc-cpuid.h: Renamed as...
3334 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3335 name prefixes changed from "i386_" to "x86_". All references
3336 updated.
3337 * nat/i386-dregs.h: Renamed as...
3338 * nat/x86-dregs.h: New file. All type, function and variable name
3339 prefixes changed from "i386_" to "x86_". All references updated.
3340 * nat/i386-dregs.c: Renamed as...
3341 * nat/x86-dregs.c: New file. All type, function and variable name
3342 prefixes changed from "i386_" to "x86_". All references updated.
3343
1c3569d4
MR
33442014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3345
3346 * varobj.c (_initialize_varobj): Move to the end of file.
3347
ff55e1b5
GB
33482014-08-29 Gary Benson <gbenson@redhat.com>
3349
3350 * common/common-exceptions.h: New file.
3351 * common/common-exceptions.c: Likewise.
3352 * Makefile.in (SFILES): Add common/common-exceptions.c.
3353 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3354 (COMMON_OBS): Add common-exceptions.o.
3355 (common-exceptions.o): New rule.
3356 * exceptions.h (common-exceptions.h): Include.
3357 (gdb_setjmp.h): Do not include.
3358 (return_reason): Moved to common-exceptions.h.
3359 (enum return_reason): Likewise.
3360 (RETURN_MASK): Likewise.
3361 (typedef return_mask): Likewise.
3362 (enum errors): Likewise.
3363 (struct gdb_exception): Likewise.
3364 (exceptions_state_mc_init): Likewise.
3365 (exceptions_state_mc_action_iter): Likewise.
3366 (exceptions_state_mc_action_iter_1): Likewise.
3367 (TRY_CATCH): Likewise.
3368 (throw_exception): Likewise.
3369 (throw_verror): Likewise.
3370 (throw_vquit): Likewise.
3371 (throw_error): Likewise.
3372 (throw_quit): Likewise.
3373 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3374 (enum catcher_action): Likewise.
3375 (struct catcher): Likewise.
3376 (current_catcher): Likewise.
3377 (catcher_list_size): Likewise.
3378 (exceptions_state_mc_init): Likewise.
3379 (catcher_pop): Likewise.
3380 (exceptions_state_mc): Likewise.
3381 (exceptions_state_mc_action_iter): Likewise.
3382 (exceptions_state_mc_action_iter_1): Likewise.
3383 (throw_exception): Likewise.
3384 (exception_messages): Likewise.
3385 (exception_messages_size): Likewise.
3386 (throw_it): Likewise.
3387 (throw_verror): Likewise.
3388 (throw_vquit): Likewise.
3389 (throw_error): Likewise.
3390 (throw_quit): Likewise.
3391 (prepare_to_throw_exception): New function.
3392
e9bcb658
GB
33932014-08-29 Gary Benson <gbenson@redhat.com>
3394
3395 * common/gdb_setjmp.h: New file.
3396 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3397 * configure.ac: Move sigsetjmp check...
3398 * common/common.m4: ...here.
3399 * configure: Regenerate.
3400 * cp-support.c (SIGJMP_BUF): Delete.
3401 (SIGSETJMP): Likewise.
3402 (SIGLONGJMP): Likewise.
3403 * exceptions.h (gdb_setjmp.h): Include.
3404 (setjmp.h): Do not include.
3405 (EXCEPTIONS_SIGJMP_BUF): Delete.
3406 (EXCEPTIONS_SIGSETJMP): Likewise.
3407 (EXCEPTIONS_SIGLONGJMP): Likewise.
3408 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3409 from gdb_setjmp.h.
3410 * exceptions.c: Likewise.
3411
e3180625
GB
34122014-08-29 Gary Benson <gbenson@redhat.com>
3413
3414 * cleanups.h: Moved to...
3415 * common/cleanups.h: New file.
3416 * cleanups.c: Moved to...
3417 * common/cleanups.c: New file. Include common-defs.h and
3418 cleanups.h. Do not include defs.h.
3419 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3420 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3421 (cleanups.o): New rule.
3422
e3d6ba5d
GB
34232014-08-29 Gary Benson <gbenson@redhat.com>
3424
3425 * common/errors.h (internal_warning): New declaration.
3426 (internal_vwarning): Likewise.
3427 * common/errors.c (internal_warning): New function.
3428 * utils.h (internal_warning): Don't declare.
3429 (internal_vwarning): Likewise.
3430 * utils.c (internal_warning): Removed.
3431
075c7033
GB
34322014-08-29 Gary Benson <gbenson@redhat.com>
3433
3434 * main.c (captured_main): Use warning during startup.
3435 Prefix startup warning messages with command name.
3436
91b35fd0
GB
34372014-08-29 Gary Benson <gbenson@redhat.com>
3438
3439 * main.c (captured_main): Handle usage errors with error.
3440
b1ec390e
GB
34412014-08-29 Gary Benson <gbenson@redhat.com>
3442
3443 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3444 exit pair with a call to error. Wrap the message with _().
3445
fd0ef3dd
GB
34462014-08-29 Gary Benson <gbenson@redhat.com>
3447
3448 * main.c (captured_main): Replace a fprintf/exit
3449 pair with a call to error. Wrap the message with _().
3450
e0e6bcab
GB
34512014-08-29 Gary Benson <gbenson@redhat.com>
3452
3453 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3454 pairs with calls to error. Wrap the message with _().
3455
0d2f5c07
GB
34562014-08-29 Gary Benson <gbenson@redhat.com>
3457
3458 * utils.c (vwarning): Protect calls to target_terminal_ours
3459 and wrap_here.
3460
5df43998
GB
34612014-08-29 Gary Benson <gbenson@redhat.com>
3462
3463 * exceptions.c (print_flush): Protect calls to
3464 target_terminal_ours and wrap_here.
3465
2437fd32
GB
34662014-08-29 Gary Benson <gbenson@redhat.com>
3467
3468 * utils.h (filtered_printing_initialized): New declaration.
3469 * utils.c (abort_with_message): New function.
3470 (internal_vproblem): Use abort_with_message for first level
3471 recursive internal problems, and if gdb_stderr is not set up.
3472 Protect calls to target_terminal_ours, begin_line and query.
3473
f1f58506
DE
34742014-08-28 Doug Evans <dje@google.com>
3475
3476 * symtab.c (in_prologue): Move definition to better spot.
3477 (skip_prologue_using_sal): Ditto.
3478
aab2f208
DE
34792014-08-28 Doug Evans <dje@google.com>
3480
3481 * symtab.c (find_function_start_sal): Move definition to better spot.
3482
6b65d1b6
YQ
34832014-08-28 Yao Qi <yao@codesourcery.com>
3484
3485 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3486 found_stack_adjust in forward scan. Remove condition check
3487 on found_stack_adjust which is always true. Indent the code.
3488
a1b34d15
YQ
34892014-08-28 Yao Qi <yao@codesourcery.com>
3490
3491 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3492 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3493 (dwarf_decode_lines): Remove argument
3494 want_line_info. Remove condition check on want_line_info.
3495 Callers update.
3496
d5962de5
DE
34972014-08-27 Doug Evans <dje@google.com>
3498
3499 * dwarf2read.c (dwarf_record_line): Fix typo.
3500
9b139002
SDJ
35012014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3502
3503 * target.h (struct target_ops::to_terminal_save_ours): Remove
3504 declaration.
3505 (target_terminal_save_ours): Remove macro.
3506 * target-delegates.c: Regenerate.
3507 * inf-child.c (inf_child_target): Don't set the nonexistent
3508 field to_terminal_save_ours.
3509 * inferior.h (child_terminal_save_ours): Remove declaration.
3510 * terminal.h (gdb_save_tty_state): New declaration.
3511 * inflow.c (child_terminal_save_ours): Rename to ...
3512 (gdb_save_tty_state): ... this.
3513 * tui/tui.c: Include terminal.h.
3514 (tui_enable): Use gdb_save_tty_state instead of
3515 target_terminal_save_ours.
3516 (tui_disable): Likewise.
3517
9debeba0
DE
35182014-08-25 Doug Evans <dje@google.com>
3519
3520 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3521 Pass NULL instead of 0 for context pointer.
3522
428fc5fc
YQ
35232014-08-25 Yao Qi <yao@codesourcery.com>
3524
3525 * dwarf2read.c: Fix grammatical error.
3526
cdc07690
YQ
35272014-08-24 Yao Qi <yao@codesourcery.com>
3528
3529 * dwarf2read.c (scan_partial_symbols): Update comments.
3530 Rename argument 'need_pc' with 'set_addrmap'.
3531 (add_partial_namespace): Rename argument 'need_pc' with
3532 'set_addrmap'.
3533 (add_partial_module): Likewise.
3534 (add_partial_subprogram): Likewise. Update comments.
3535 (dwarf2_name): Fix typo.
3536
a05a36a5
DE
35372014-08-22 Doug Evans <dje@google.com>
3538
3539 PR 17276
3540 * dwarf2read.c (dwarf_record_line_p): New function.
3541 (dwarf_decode_lines_1): Ignore subsequent line number entries
3542 for the same line if any entry had a non-zero discriminator.
3543
252a6764
DE
35442014-08-22 Doug Evans <dje@google.com>
3545
3546 * buildsym.h (record_line_ftype): New typedef.
3547 (record_line): Use it.
3548 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3549 (dwarf_decode_lines_1): Call them.
3550
510db052
YQ
35512014-08-22 Yao Qi <yao@codesourcery.com>
3552
3553 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3554 (ctf_end): Remove code.
3555
22fd09ae
JK
35562014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3557
3558 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3559 (linux_make_corefile_notes): call update_thread_list, protected against
3560 exceptions.
3561
656e8868
PA
35622014-08-21 Pedro Alves <palves@redhat.com>
3563
3564 * infcmd.c (attach_command): Remove comment.
3565
de589d04
WN
35662014-08-21 Bin Cheng <bin.cheng@arm.com>
3567
3568 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3569 unsigned LONGEST to ULONGEST.
3570
2a31c623
PA
35712014-08-20 Pedro Alves <palves@redhat.com>
3572
3573 * Makefile.in (check-read1): New rule.
3574
d36430db
JB
35752014-08-20 Joel Brobecker <brobecker@adacore.com>
3576
3577 * value.c (value_from_contents_and_address): Strip resolved_type's
3578 typedef layers before checking its TYPE_DATA_LOCATION.
3579
000339af
PA
35802014-08-20 Pedro Alves <palves@redhat.com>
3581
3582 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3583
5f52445b
YQ
35842014-08-20 Yao Qi <yao@codesourcery.com>
3585
3586 * amd64-tdep.c (amd64_classify): Add a blank line after the
3587 example. Move "*/" to a new line.
3588 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3589 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3590 * dwarf2read.c (psymtab_include_file_name): Likewise.
3591
9a0dc9e3
PA
35922014-08-19 Andrew Burgess <aburgess@broadcom.com>
3593 Pedro Alves <palves@redhat.com>
3594
3595 PR symtab/14604
3596 PR symtab/14605
3597 * ada-lang.c (coerce_unspec_val_to_type): Use
3598 value_contents_copy_raw.
3599 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3600 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3601 * cp-valprint.c (cp_print_value_fields): Let the common printing
3602 code handle optimized out values.
3603 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3604 * d-valprint.c (dynamic_array_type): Use
3605 value_bits_any_optimized_out.
3606 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3607 check_any_valid fields.
3608 (check_pieced_value_bits): Delete and inline ...
3609 (check_pieced_synthetic_pointer): ... here.
3610 (check_pieced_value_validity): Delete.
3611 (check_pieced_value_invalid): Delete.
3612 (pieced_value_funcs): Remove check_validity and check_any_valid
3613 fields.
3614 (read_pieced_value): Use mark_value_bits_optimized_out.
3615 (write_pieced_value): Switch to use
3616 mark_value_bytes_optimized_out.
3617 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3618 of assuming the whole value is optimized out.
3619 * findvar.c (read_frame_register_value): Remove special handling
3620 of optimized out registers.
3621 (value_from_register): Use mark_value_bytes_optimized_out.
3622 * frame-unwind.c (frame_unwind_got_optimized): Use
3623 mark_value_bytes_optimized_out.
3624 * jv-valprint.c (java_value_print): Adjust.
3625 (java_print_value_fields): Let the common printing code handle
3626 optimized out values.
3627 * mips-tdep.c (mips_print_register): Remove special handling of
3628 optimized out registers.
3629 * opencl-lang.c (lval_func_check_validity): Delete.
3630 (lval_func_check_any_valid): Delete.
3631 (opencl_value_funcs): Remove check_validity and check_any_valid
3632 fields.
3633 * p-valprint.c (pascal_object_print_value_fields): Let the common
3634 printing code handle optimized out values.
3635 * stack.c (read_frame_arg): Remove special handling of optimized
3636 out values. Fetch both VAL and ENTRYVAL before comparing
3637 contents. Adjust to value_available_contents_eq rename.
3638 * valprint.c (valprint_check_validity)
3639 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3640 (val_print_array_elements): Adjust.
3641 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3642 (value_bits_any_optimized_out): New function.
3643 (value_entirely_covered_by_range_vector): New function, factored
3644 out from value_entirely_unavailable.
3645 (value_entirely_unavailable): Reimplement.
3646 (value_entirely_optimized_out): New function.
3647 (insert_into_bit_range_vector): New function, factored out from
3648 mark_value_bits_unavailable.
3649 (mark_value_bits_unavailable): Reimplement.
3650 (struct ranges_and_idx): New struct.
3651 (find_first_range_overlap_and_match): New function, factored out
3652 from value_available_contents_bits_eq.
3653 (value_available_contents_bits_eq): Rename to ...
3654 (value_contents_bits_eq): ... this. Check both unavailable
3655 contents and optimized out contents.
3656 (value_available_contents_eq): Rename to ...
3657 (value_contents_eq): ... this.
3658 (allocate_value_lazy): Remove reference to the old optimized_out
3659 boolean.
3660 (allocate_optimized_out_value): Use
3661 mark_value_bytes_optimized_out.
3662 (require_not_optimized_out): Adjust to check whether the
3663 optimized_out vec is empty.
3664 (ranges_copy_adjusted): New function, factored out from
3665 value_contents_copy_raw.
3666 (value_contents_copy_raw): Also copy the optimized out ranges.
3667 Assert the destination ranges aren't optimized out.
3668 (value_contents_copy): Update comment, remove call to
3669 require_not_optimized_out.
3670 (value_contents_equal): Adjust to check whether the optimized_out
3671 vec is empty.
3672 (set_value_optimized_out, value_optimized_out_const): Delete.
3673 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3674 New functions.
3675 (value_entirely_optimized_out, value_bits_valid): Delete.
3676 (value_copy): Take a VEC copy of the 'optimized_out' field.
3677 (value_primitive_field): Remove special handling of optimized out.
3678 (value_fetch_lazy): Assert that lazy values have no unavailable
3679 regions. Use value_bits_any_optimized_out. Remove some special
3680 handling for optimized out values.
3681 * value.h: Add intro comment about <optimized out> and
3682 <unavailable>.
3683 (struct lval_funcs): Remove check_validity and check_any_valid
3684 fields.
3685 (set_value_optimized_out, value_optimized_out_const): Remove.
3686 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3687 New declarations.
3688 (value_bits_any_optimized_out): New declaration.
3689 (value_bits_valid): Delete declaration.
3690 (value_available_contents_eq): Rename to ...
3691 (value_contents_eq): ... this, and extend comments.
3692
6694c411
JK
36932014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3694
3695 Fix -fsanitize=address on unreadable inferior strings.
3696 * valprint.c (val_print_string): Fix access before BUFFER.
3697
89a1c21a
SM
36982014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3699
3700 * target.c (target_struct_size): Remove.
3701 (target_struct_allocsize): Remove.
3702 (DEFAULT_ALLOCSIZE): Remove.
3703 (target_ops_p): New typedef.
3704 (DEF_VEC_P (target_ops_p)): New vector type.
3705 (target_structs): Change type to VEC (target_ops_p).
3706 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3707 (find_default_run_target): Rewrite for loop following changes to
3708 target_structs.
3709
cb417230
JB
37102014-08-19 Joel Brobecker <brobecker@adacore.com>
3711
3712 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3713 Adjust code accordingly. Adjust function description comment.
3714
817e0957
YQ
37152014-08-19 Yao Qi <yao@codesourcery.com>
3716
3717 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3718 types.
3719
2974be62
AM
37202014-08-19 Alan Modra <amodra@gmail.com>
3721
3722 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3723 * config.in: Regenerate.
3724 * configure: Regenerate.
3725
34abf635
GB
37262014-08-19 Tom Tromey <tromey@redhat.com>
3727 Gary Benson <gbenson@redhat.com>
3728
3729 * common/common-debug.h: New file.
3730 * common/common-debug.c: Likewise.
3731 * debug.c: Likewise.
3732 * Makefile.in (SFILES): Add common/common-debug.c.
3733 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3734 (COMMON_OBS): Add common-debug.o and debug.o.
3735 (common-debug.o): New rule.
3736 * common/common-defs.h: Include common-debug.h.
3737 * common/agent.c (debug_agent_printf): New function.
3738 (DEBUG_AGENT): Redefine.
3739 * nat/i386-dregs.c (debug_printf): Undefine.
3740
f6e94d78
GB
37412014-08-19 Gary Benson <gbenson@redhat.com>
3742
3743 * common/common-defs.h: Include print-utils.h.
3744 * utils.h: Do not include print-utils.h.
3745
9239eeab
GB
37462014-08-19 Tom Tromey <tromey@redhat.com>
3747 Gary Benson <gbenson@redhat.com>
3748
3749 * common/common-types.h: New file.
3750 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3751 * common/common-defs.h: Include common-types.h.
3752 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3753 (ULONGEST): Remove.
3754
ef87c8bb
GB
37552014-08-19 Tom Tromey <tromey@redhat.com>
3756 Gary Benson <gbenson@redhat.com>
3757
3758 * common/errors.h: New file.
3759 * common/errors.c: Likewise.
3760 * Makefile.in (SFILES): Add common/errors.c.
3761 (HFILES_NO_SRCDIR): Add common/errors.h.
3762 (COMMON_OBS): Add errors.o.
3763 (errors.o): New rule.
3764 * common/common-defs.h: Include errors.h.
3765 * utils.h (perror_with_name, error, verror, warning, vwarning):
3766 Don't declare.
3767 * common/common-utils.h: (malloc_failure, internal_error):
3768 Likewise.
3769
196a707b
GB
37702014-08-19 Gary Benson <gbenson@redhat.com>
3771
3772 * utils.c (internal_vproblem): Always print the message.
3773
ded4fc8f
DE
37742014-08-18 Doug Evans <dje@google.com>
3775
3776 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3777
950c97d8
JB
37782014-08-18 Joel Brobecker <brobecker@adacore.com>
3779
3780 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3781 Return 0 if TYPE is dynamic.
3782 (print_range): Add handling of dynamic ranges.
3783
3cdcd0ce
JB
37842014-08-18 Keven Boell <keven.boell@intel.com>
3785 Joel Brobecker <brobecker@adacore.com>
3786
3787 * gdbtypes.h (struct main_type): Add field "data_location".
3788 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3789 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3790 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3791 a dynamic data location.
3792 (resolve_dynamic_type): Add DW_AT_data_location handling.
3793 (copy_recursive, copy_type): Copy the data_location information
3794 when present.
3795 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3796 * value.c (value_from_contents_and_address): Add
3797 DW_AT_data_location handling.
3798
08412b07
JB
37992014-08-18 Keven Boell <keven.boell@intel.com>
3800 Joel Brobecker <brobecker@adacore.com>
3801
3802 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3803 field "get_object_address".
3804 * dwarf2expr.c (execute_stack_op): Add handling for
3805 DW_OP_push_object_address.
3806 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3807 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3808 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3809 (dwarf_expr_get_obj_addr): New function.
3810 (dwarf_expr_ctx_funcs): Add get_object_address field.
3811 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3812 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3813 (dwarf2_evaluate_property): Add parameter "address". Use it.
3814 (needs_get_obj_addr): New function.
3815 (needs_frame_ctx_funcs): Add get_object_address field.
3816 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3817 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3818 (resolve_dynamic_array): Likewise.
3819
84754697
JB
38202014-08-18 Joel Brobecker <brobecker@adacore.com>
3821
3822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3823 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3824 fixed value for records and unions for which some GNAT encodings
3825 are present.
3826
da5c522f
JB
38272014-08-18 Joel Brobecker <brobecker@adacore.com>
3828
3829 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3830 rewrite to avoid "else if" and "else" constructs. Should be
3831 a no-op in practice.
3832
0d72a7c3
JB
38332014-08-18 Joel Brobecker <brobecker@adacore.com>
3834
3835 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3836 of lexical block.
3837
e66d4446
SC
38382014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3839
3840 PR c++/17132
3841 * eval.c: Update all calls to find_overload_match.
3842 * valarith.c: Likewise.
3843 (value_user_defined_cpp_op, value_user_defined_op): New
3844 argument NOSIDE. Update all callers.
3845 * valops.c (find_overload_match): New argument NOSIDE.
3846 * value.h (find_overload_match): Update signature.
3847
940df408
SC
38482014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3849
3850 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3851 'items' methods instead of 'iteritems' method on dictionaries.
3852
699ca60a
DE
38532014-08-15 Doug Evans <dje@google.com>
3854
3855 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3856 closer to use.
3857
37780ee5
DE
38582014-08-15 Doug Evans <dje@google.com>
3859
3860 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3861
0ad93d4f
DE
38622014-08-15 Doug Evans <dje@google.com>
3863
3864 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3865
20d8c372
DE
38662014-08-15 Doug Evans <dje@google.com>
3867
3868 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3869 unused.
3870
cb039ba4
EZ
38712014-08-15 Eli Zaretskii <eliz@gnu.org>
3872
3873 * dcache.h: Include target.h, to avoid compile time warnings.
3874
eb7a547a
JB
38752014-08-15 Joel Brobecker <brobecker@adacore.com>
3876
3877 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3878 frame_info" partial declaration.
3879 * gdbarch.h: Regenerate.
3880
783cecc8
YQ
38812014-08-15 Yao Qi <yao@codesourcery.com>
3882
3883 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3884 Add parameter 'decode_for_pst_p'. Callers update.
3885
65c749e7
YQ
38862014-08-13 Yao Qi <yao@codesourcery.com>
3887
3888 PR build/17104
3889 * configure.ac: Use local variable 'pos'.
3890 * configure: Regenerated.
3891
d769e349
DE
38922014-08-11 Doug Evans <dje@google.com>
3893
3894 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3895 message, it is redundant with "Reading symbols from ..." message.
3896
24f1235e
DE
38972014-08-10 Doug Evans <xdje42@gmail.com>
3898
3899 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3900
dcd2e6ef
YQ
39012014-08-09 Yao Qi <yao@codesourcery.com>
3902
3903 PR remote/9053
3904 * remote.c (remote_xfer_partial): Remove dead code.
3905
070bdf0b
AA
39062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3907
3908 * ia64-linux-tdep.c: Include "regset.h".
3909 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3910 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3911 (ia64_linux_supply_fpregset): New function.
3912 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3913 (ia64_linux_regset_from_core_section): New function.
3914 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3915 method.
3916
08f9f542
AA
39172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3918
3919 * m68klinux-tdep.c: Include "regset.h".
3920 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3921 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3922 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3923 (m68k_linux_regset_from_core_section): New function.
3924 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3925 method.
3926
8f1cee41
AA
39272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3928
3929 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3930 function. Move logic to...
3931 (tilegx_linux_regmap): ... this new register map.
3932 (tilegx_linux_regset): Refer to register map, replace supply
3933 method by regcache_supply_regset, and add collect method.
3934 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3935 TILEGX_FIRST_EASY_REGNUM.
3936
c5741217
AA
39372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3938
3939 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3940 that calls regcache_supply_regset and handles the EPC register
3941 separately. Move main logic to...
3942 (score7_linux_gregmap): ... this new register map.
3943 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3944 (score7_linux_gregset): Refer to register map. Add collect method.
3945 (score7_linux_regset_from_core_section): Replace
3946 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3947 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3948 (struct regset): Delete unused forward declaraction.
3949 (struct pt_regs): Delete structure definition.
3950 (elf_gregset_t): Delete typedef.
3951
81580573
AA
39522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3953
3954 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3955 (nios2_core_regset): Add collect method.
3956
ba199d7d
AA
39572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3958
3959 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3960 platform-independent and don't write to read-only input buffer.
3961 (m32r_linux_collect_gregset): New function.
3962 (m32r_linux_gregset): Add collect method.
3963
0006a9da
AA
39642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3965
3966 * hppa-linux-tdep.c (greg_map): Rename to...
3967 (hppa_linux_gregmap): ... this. Also convert to
3968 regcache_map_entry format.
3969 (hppa_linux_supply_regset): Delete function.
3970 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3971 (hppa_linux_fpregmap): ... this new register map.
3972 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3973 register map, replace supply method by regcache_supply_regset, and
3974 add collect method regcache_collect_regset.
3975
901e1b23
AA
39762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3977
3978 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3979 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3980 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3981 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3982 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3983 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3984 (frv_linux_supply_gregset): Replace main logic by call to
3985 regcache_supply_regset, but keep clearing gr32-gr63.
3986 (frv_linux_supply_fpregset): Delete function.
3987 (frv_linux_gregset): Refer to appropriate register map and add
3988 regcache_collect_regset as the collect method.
3989 (frv_linux_fpregset): Likewise. Also exchange the supply method
3990 by regcache_supply_regset.
3991
1d6e7555
AA
39922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3993
3994 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3995 by call to alpha_supply_int_regs.
3996 (alpha_linux_collect_gregset): New function.
3997 (alpha_linux_supply_fpregset): Replace logic by call to
3998 alpha_supply_fp_regs.
3999 (alpha_linux_collect_fpregset): New function.
4000 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4001
d4d793bf
AA
40022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4003
4004 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4005 by call to regcache_collect_regset.
4006 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4007 instead of aarch64_linux_supply_gregset/_fpregset.
4008 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4009 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4010 header file instead.
4011 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4012 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4013 functions. Move logic to ...
4014 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4015 register maps.
4016 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4017 refer to new register maps, replace *_regset_from_core by
4018 regcache_supply_regset, and also use regcache_collect_regset.
4019 * aarch64-linux-tdep.h: Include "regset.h".
4020 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4021 Delete prototypes.
4022 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4023 macros, moved from C source file.
4024 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4025 variable declarations.
4026
99b7da5d
AA
40272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4028
4029 * s390-linux-nat.c: Include "regset.h".
4030 (regmap_gregset): Delete macro.
4031 (s390_64_regmap_gregset): New register map for
4032 regcache_supply/_collect_regset.
4033 (s390_64_gregset): New regset.
4034 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4035 (regmap_fpregset): Delete macro.
4036 (s390_native_supply, s390_native_collect): Delete functions.
4037 (supply_gregset, fill_gregset): Replace s390-specific regmap
4038 handling by a call to regcache_supply/_collect_regset.
4039 (supply_fpregset, fill_fpregset): Call regcache_supply/
4040 _collect_regset instead of s390_native_supply/_collect.
4041 (fetch_regset, store_regset): Likewise. Also change the last
4042 parameter to a regset instead of a regmap.
4043 (s390_linux_fetch_inferior_registers)
4044 (390_linux_store_inferior_registers): Adjust last parameter in
4045 calls to fetch_regset and store_regset.
4046 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4047 (s390_gregmap): ... this. Also make static const and convert to
4048 regcache_map_entry format.
4049 (s390x_regmap_gregset): Delete.
4050 (s390_regmap_fpregset): Rename to...
4051 (s390_fpregmap): ... this. Make static const and convert to
4052 regcache_map_entry format.
4053 (s390_regmap_upper, s390_regmap_last_break)
4054 (s390x_regmap_last_break, s390_regmap_system_call)
4055 (s390_regmap_tdb): Likewise.
4056 (s390_supply_regset, s390_collect_regset): Remove functions.
4057 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4058 s390_supply_regset.
4059 (s390_gregset, s390_fpregset, s390_upper_regset)
4060 (s390_last_break_regset, s390x_last_break_regset)
4061 (s390_system_call_regset, s390_tdb_regset): Make global and
4062 replace s390_supply/_collect_regset by regcache_supply/
4063 _collect_regset.
4064 (s390x_gregset): Delete.
4065 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4066 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4067 (s390_regmap_fpregset, s390_regmap_last_break)
4068 (s390x_regmap_last_break, s390_regmap_system_call)
4069 (s390_regmap_tdb): Delete global variable declarations.
4070 (s390_gregset, s390_fpregset, s390_last_break_regset)
4071 (s390x_last_break_regset, s390_system_call_regset)
4072 (s390_tdb_regset): New global variable declarations.
4073
0b309272
AA
40742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4075
4076 * regcache.c: Include "regset.h".
4077 (regcache_transfer_regset): New local function.
4078 (regcache_supply_regset, regcache_collect_regset): New functions.
4079 * regcache.h (struct regcache_map_entry): New structure.
4080 (REGCACHE_MAP_SKIP): New enum value.
4081 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4082
7fefa8d7
AA
40832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4084
4085 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4086 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4087 (ppc_linux_collect_gregset ): Likewise.
4088 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4089 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4090 (ppc_collect_vrregset): Likewise.
4091 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4092 Likewise.
4093
96c4f946
YQ
40942014-08-07 Yao Qi <yao@codesourcery.com>
4095
4096 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4097 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4098 * remote.c (remote_read_bytes): Likewise.
4099
fffbe6a8
YQ
41002014-08-07 Yao Qi <yao@codesourcery.com>
4101
4102 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4103
5ee8a82c
YQ
41042014-08-07 Yao Qi <yao@codesourcery.com>
4105
4106 PR remote/17230
4107 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4108 TARGET_XFER_OK instead of 0.
4109
bb974a24
GB
41102014-08-07 Gary Benson <gbenson@redhat.com>
4111
4112 * common/common-defs.h: Include errno.h.
4113 * defs.h: Do not include errno.h.
4114 * ada-typeprint.c: Likewise.
4115 * c-typeprint.c: Likewise.
4116 * core-regset.c: Likewise.
4117 * corefile.c: Likewise.
4118 * corelow.c: Likewise.
4119 * event-loop.c: Likewise.
4120 * f-typeprint.c: Likewise.
4121 * gnu-nat.c: Likewise.
4122 * go32-nat.c: Likewise.
4123 * i386gnu-nat.c: Likewise.
4124 * m2-typeprint.c: Likewise.
4125 * nat/linux-btrace.c: Likewise.
4126 * p-typeprint.c: Likewise.
4127 * procfs.c: Likewise.
4128 * remote-sim.c: Likewise.
4129 * rs6000-nat.c: Likewise.
4130 * target.c: Likewise.
4131 * typeprint.c: Likewise.
4132 * ui-file.c: Likewise.
4133 * valops.c: Likewise.
4134 * valprint.c: Likewise.
4135
6d3d12eb
GB
41362014-08-07 Gary Benson <gbenson@redhat.com>
4137
4138 * common/common-defs.h: Include string.h.
4139 * aarch64-tdep.c: Do not include string.h.
4140 * ada-exp.y: Likewise.
4141 * ada-lang.c: Likewise.
4142 * ada-lex.l: Likewise.
4143 * ada-typeprint.c: Likewise.
4144 * ada-valprint.c: Likewise.
4145 * aix-thread.c: Likewise.
4146 * alpha-linux-tdep.c: Likewise.
4147 * alpha-mdebug-tdep.c: Likewise.
4148 * alpha-nat.c: Likewise.
4149 * alpha-osf1-tdep.c: Likewise.
4150 * alpha-tdep.c: Likewise.
4151 * alphanbsd-tdep.c: Likewise.
4152 * amd64-dicos-tdep.c: Likewise.
4153 * amd64-linux-tdep.c: Likewise.
4154 * amd64-nat.c: Likewise.
4155 * amd64-sol2-tdep.c: Likewise.
4156 * amd64fbsd-tdep.c: Likewise.
4157 * amd64obsd-tdep.c: Likewise.
4158 * arch-utils.c: Likewise.
4159 * arm-linux-nat.c: Likewise.
4160 * arm-linux-tdep.c: Likewise.
4161 * arm-tdep.c: Likewise.
4162 * arm-wince-tdep.c: Likewise.
4163 * armbsd-tdep.c: Likewise.
4164 * armnbsd-nat.c: Likewise.
4165 * armnbsd-tdep.c: Likewise.
4166 * armobsd-tdep.c: Likewise.
4167 * avr-tdep.c: Likewise.
4168 * ax-gdb.c: Likewise.
4169 * ax-general.c: Likewise.
4170 * bcache.c: Likewise.
4171 * bfin-tdep.c: Likewise.
4172 * breakpoint.c: Likewise.
4173 * build-id.c: Likewise.
4174 * buildsym.c: Likewise.
4175 * c-exp.y: Likewise.
4176 * c-lang.c: Likewise.
4177 * c-typeprint.c: Likewise.
4178 * c-valprint.c: Likewise.
4179 * charset.c: Likewise.
4180 * cli-out.c: Likewise.
4181 * cli/cli-cmds.c: Likewise.
4182 * cli/cli-decode.c: Likewise.
4183 * cli/cli-dump.c: Likewise.
4184 * cli/cli-interp.c: Likewise.
4185 * cli/cli-logging.c: Likewise.
4186 * cli/cli-script.c: Likewise.
4187 * cli/cli-setshow.c: Likewise.
4188 * cli/cli-utils.c: Likewise.
4189 * coffread.c: Likewise.
4190 * common/agent.c: Likewise.
4191 * common/buffer.c: Likewise.
4192 * common/buffer.h: Likewise.
4193 * common/common-utils.c: Likewise.
4194 * common/filestuff.c: Likewise.
4195 * common/filestuff.c: Likewise.
4196 * common/format.c: Likewise.
4197 * common/print-utils.c: Likewise.
4198 * common/rsp-low.c: Likewise.
4199 * common/signals.c: Likewise.
4200 * common/vec.h: Likewise.
4201 * common/xml-utils.c: Likewise.
4202 * core-regset.c: Likewise.
4203 * corefile.c: Likewise.
4204 * corelow.c: Likewise.
4205 * cp-abi.c: Likewise.
4206 * cp-name-parser.y: Likewise.
4207 * cp-support.c: Likewise.
4208 * cp-valprint.c: Likewise.
4209 * cris-tdep.c: Likewise.
4210 * d-exp.y: Likewise.
4211 * darwin-nat.c: Likewise.
4212 * dbxread.c: Likewise.
4213 * dcache.c: Likewise.
4214 * demangle.c: Likewise.
4215 * dicos-tdep.c: Likewise.
4216 * disasm.c: Likewise.
4217 * doublest.c: Likewise.
4218 * dsrec.c: Likewise.
4219 * dummy-frame.c: Likewise.
4220 * dwarf2-frame.c: Likewise.
4221 * dwarf2loc.c: Likewise.
4222 * dwarf2read.c: Likewise.
4223 * elfread.c: Likewise.
4224 * environ.c: Likewise.
4225 * eval.c: Likewise.
4226 * event-loop.c: Likewise.
4227 * exceptions.c: Likewise.
4228 * exec.c: Likewise.
4229 * expprint.c: Likewise.
4230 * f-exp.y: Likewise.
4231 * f-lang.c: Likewise.
4232 * f-typeprint.c: Likewise.
4233 * f-valprint.c: Likewise.
4234 * fbsd-nat.c: Likewise.
4235 * findcmd.c: Likewise.
4236 * findvar.c: Likewise.
4237 * fork-child.c: Likewise.
4238 * frame.c: Likewise.
4239 * frv-linux-tdep.c: Likewise.
4240 * frv-tdep.c: Likewise.
4241 * gdb.c: Likewise.
4242 * gdb_bfd.c: Likewise.
4243 * gdbarch.c: Likewise.
4244 * gdbarch.sh: Likewise.
4245 * gdbtypes.c: Likewise.
4246 * gnu-nat.c: Likewise.
4247 * gnu-v2-abi.c: Likewise.
4248 * gnu-v3-abi.c: Likewise.
4249 * go-exp.y: Likewise.
4250 * go-lang.c: Likewise.
4251 * go32-nat.c: Likewise.
4252 * guile/guile.c: Likewise.
4253 * guile/scm-auto-load.c: Likewise.
4254 * hppa-hpux-tdep.c: Likewise.
4255 * hppa-linux-nat.c: Likewise.
4256 * hppanbsd-tdep.c: Likewise.
4257 * hppaobsd-tdep.c: Likewise.
4258 * i386-cygwin-tdep.c: Likewise.
4259 * i386-dicos-tdep.c: Likewise.
4260 * i386-linux-tdep.c: Likewise.
4261 * i386-nto-tdep.c: Likewise.
4262 * i386-sol2-tdep.c: Likewise.
4263 * i386-tdep.c: Likewise.
4264 * i386bsd-tdep.c: Likewise.
4265 * i386gnu-nat.c: Likewise.
4266 * i386nbsd-tdep.c: Likewise.
4267 * i386obsd-tdep.c: Likewise.
4268 * i387-tdep.c: Likewise.
4269 * ia64-libunwind-tdep.c: Likewise.
4270 * ia64-linux-nat.c: Likewise.
4271 * inf-child.c: Likewise.
4272 * inf-ptrace.c: Likewise.
4273 * inf-ttrace.c: Likewise.
4274 * infcall.c: Likewise.
4275 * infcmd.c: Likewise.
4276 * inflow.c: Likewise.
4277 * infrun.c: Likewise.
4278 * interps.c: Likewise.
4279 * iq2000-tdep.c: Likewise.
4280 * irix5-nat.c: Likewise.
4281 * jv-exp.y: Likewise.
4282 * jv-lang.c: Likewise.
4283 * jv-typeprint.c: Likewise.
4284 * jv-valprint.c: Likewise.
4285 * language.c: Likewise.
4286 * linux-fork.c: Likewise.
4287 * linux-nat.c: Likewise.
4288 * lm32-tdep.c: Likewise.
4289 * m2-exp.y: Likewise.
4290 * m2-typeprint.c: Likewise.
4291 * m32c-tdep.c: Likewise.
4292 * m32r-linux-nat.c: Likewise.
4293 * m32r-linux-tdep.c: Likewise.
4294 * m32r-rom.c: Likewise.
4295 * m32r-tdep.c: Likewise.
4296 * m68hc11-tdep.c: Likewise.
4297 * m68k-tdep.c: Likewise.
4298 * m68kbsd-tdep.c: Likewise.
4299 * m68klinux-nat.c: Likewise.
4300 * m68klinux-tdep.c: Likewise.
4301 * m88k-tdep.c: Likewise.
4302 * machoread.c: Likewise.
4303 * macrocmd.c: Likewise.
4304 * main.c: Likewise.
4305 * mdebugread.c: Likewise.
4306 * mem-break.c: Likewise.
4307 * memattr.c: Likewise.
4308 * memory-map.c: Likewise.
4309 * mep-tdep.c: Likewise.
4310 * mi/mi-cmd-break.c: Likewise.
4311 * mi/mi-cmd-disas.c: Likewise.
4312 * mi/mi-cmd-env.c: Likewise.
4313 * mi/mi-cmd-stack.c: Likewise.
4314 * mi/mi-cmd-var.c: Likewise.
4315 * mi/mi-cmds.c: Likewise.
4316 * mi/mi-console.c: Likewise.
4317 * mi/mi-getopt.c: Likewise.
4318 * mi/mi-interp.c: Likewise.
4319 * mi/mi-main.c: Likewise.
4320 * mi/mi-parse.c: Likewise.
4321 * microblaze-rom.c: Likewise.
4322 * microblaze-tdep.c: Likewise.
4323 * mingw-hdep.c: Likewise.
4324 * minidebug.c: Likewise.
4325 * minsyms.c: Likewise.
4326 * mips-irix-tdep.c: Likewise.
4327 * mips-linux-tdep.c: Likewise.
4328 * mips-tdep.c: Likewise.
4329 * mips64obsd-tdep.c: Likewise.
4330 * mipsnbsd-tdep.c: Likewise.
4331 * mipsread.c: Likewise.
4332 * mn10300-linux-tdep.c: Likewise.
4333 * mn10300-tdep.c: Likewise.
4334 * monitor.c: Likewise.
4335 * moxie-tdep.c: Likewise.
4336 * mt-tdep.c: Likewise.
4337 * nat/linux-btrace.c: Likewise.
4338 * nat/linux-osdata.c: Likewise.
4339 * nat/linux-procfs.c: Likewise.
4340 * nat/linux-ptrace.c: Likewise.
4341 * nat/linux-waitpid.c: Likewise.
4342 * nbsd-tdep.c: Likewise.
4343 * nios2-linux-tdep.c: Likewise.
4344 * nto-procfs.c: Likewise.
4345 * nto-tdep.c: Likewise.
4346 * objc-lang.c: Likewise.
4347 * objfiles.c: Likewise.
4348 * opencl-lang.c: Likewise.
4349 * osabi.c: Likewise.
4350 * osdata.c: Likewise.
4351 * p-exp.y: Likewise.
4352 * p-lang.c: Likewise.
4353 * p-typeprint.c: Likewise.
4354 * parse.c: Likewise.
4355 * posix-hdep.c: Likewise.
4356 * ppc-linux-nat.c: Likewise.
4357 * ppc-sysv-tdep.c: Likewise.
4358 * ppcfbsd-tdep.c: Likewise.
4359 * ppcnbsd-tdep.c: Likewise.
4360 * ppcobsd-tdep.c: Likewise.
4361 * printcmd.c: Likewise.
4362 * procfs.c: Likewise.
4363 * prologue-value.c: Likewise.
4364 * python/py-auto-load.c: Likewise.
4365 * python/py-gdb-readline.c: Likewise.
4366 * ravenscar-thread.c: Likewise.
4367 * regcache.c: Likewise.
4368 * registry.c: Likewise.
4369 * remote-fileio.c: Likewise.
4370 * remote-m32r-sdi.c: Likewise.
4371 * remote-mips.c: Likewise.
4372 * remote-notif.c: Likewise.
4373 * remote-sim.c: Likewise.
4374 * remote.c: Likewise.
4375 * reverse.c: Likewise.
4376 * rs6000-aix-tdep.c: Likewise.
4377 * ser-base.c: Likewise.
4378 * ser-go32.c: Likewise.
4379 * ser-mingw.c: Likewise.
4380 * ser-pipe.c: Likewise.
4381 * ser-tcp.c: Likewise.
4382 * ser-unix.c: Likewise.
4383 * serial.c: Likewise.
4384 * sh-tdep.c: Likewise.
4385 * sh64-tdep.c: Likewise.
4386 * shnbsd-tdep.c: Likewise.
4387 * skip.c: Likewise.
4388 * sol-thread.c: Likewise.
4389 * solib-dsbt.c: Likewise.
4390 * solib-frv.c: Likewise.
4391 * solib-osf.c: Likewise.
4392 * solib-som.c: Likewise.
4393 * solib-spu.c: Likewise.
4394 * solib-target.c: Likewise.
4395 * solib.c: Likewise.
4396 * somread.c: Likewise.
4397 * source.c: Likewise.
4398 * sparc-nat.c: Likewise.
4399 * sparc-sol2-tdep.c: Likewise.
4400 * sparc-tdep.c: Likewise.
4401 * sparc64-tdep.c: Likewise.
4402 * sparc64fbsd-tdep.c: Likewise.
4403 * sparc64nbsd-tdep.c: Likewise.
4404 * sparcnbsd-tdep.c: Likewise.
4405 * spu-linux-nat.c: Likewise.
4406 * spu-multiarch.c: Likewise.
4407 * spu-tdep.c: Likewise.
4408 * stabsread.c: Likewise.
4409 * stack.c: Likewise.
4410 * std-regs.c: Likewise.
4411 * symfile.c: Likewise.
4412 * symmisc.c: Likewise.
4413 * symtab.c: Likewise.
4414 * target.c: Likewise.
4415 * thread.c: Likewise.
4416 * tilegx-linux-nat.c: Likewise.
4417 * tilegx-tdep.c: Likewise.
4418 * top.c: Likewise.
4419 * tracepoint.c: Likewise.
4420 * tui/tui-command.c: Likewise.
4421 * tui/tui-data.c: Likewise.
4422 * tui/tui-disasm.c: Likewise.
4423 * tui/tui-file.c: Likewise.
4424 * tui/tui-layout.c: Likewise.
4425 * tui/tui-out.c: Likewise.
4426 * tui/tui-regs.c: Likewise.
4427 * tui/tui-source.c: Likewise.
4428 * tui/tui-stack.c: Likewise.
4429 * tui/tui-win.c: Likewise.
4430 * tui/tui-windata.c: Likewise.
4431 * tui/tui-winsource.c: Likewise.
4432 * typeprint.c: Likewise.
4433 * ui-file.c: Likewise.
4434 * ui-out.c: Likewise.
4435 * user-regs.c: Likewise.
4436 * utils.c: Likewise.
4437 * v850-tdep.c: Likewise.
4438 * valarith.c: Likewise.
4439 * valops.c: Likewise.
4440 * valprint.c: Likewise.
4441 * value.c: Likewise.
4442 * varobj.c: Likewise.
4443 * vax-tdep.c: Likewise.
4444 * vaxnbsd-tdep.c: Likewise.
4445 * vaxobsd-tdep.c: Likewise.
4446 * windows-nat.c: Likewise.
4447 * xcoffread.c: Likewise.
4448 * xml-support.c: Likewise.
4449 * xstormy16-tdep.c: Likewise.
4450 * xtensa-linux-nat.c: Likewise.
4451
dccbb609
GB
44522014-08-07 Gary Benson <gbenson@redhat.com>
4453
4454 * common/common-defs.h: Include gdb_assert.h.
4455 * aarch64-tdep.c: Do not include gdb_assert.h.
4456 * addrmap.c: Likewise.
4457 * aix-thread.c: Likewise.
4458 * alpha-linux-tdep.c: Likewise.
4459 * alpha-mdebug-tdep.c: Likewise.
4460 * alphanbsd-tdep.c: Likewise.
4461 * amd64-nat.c: Likewise.
4462 * amd64-tdep.c: Likewise.
4463 * amd64bsd-nat.c: Likewise.
4464 * amd64fbsd-nat.c: Likewise.
4465 * amd64fbsd-tdep.c: Likewise.
4466 * amd64nbsd-nat.c: Likewise.
4467 * amd64nbsd-tdep.c: Likewise.
4468 * amd64obsd-nat.c: Likewise.
4469 * amd64obsd-tdep.c: Likewise.
4470 * arch-utils.c: Likewise.
4471 * arm-tdep.c: Likewise.
4472 * armbsd-tdep.c: Likewise.
4473 * auxv.c: Likewise.
4474 * bcache.c: Likewise.
4475 * bfin-tdep.c: Likewise.
4476 * blockframe.c: Likewise.
4477 * breakpoint.c: Likewise.
4478 * bsd-kvm.c: Likewise.
4479 * bsd-uthread.c: Likewise.
4480 * buildsym.c: Likewise.
4481 * c-exp.y: Likewise.
4482 * c-lang.c: Likewise.
4483 * charset.c: Likewise.
4484 * cleanups.c: Likewise.
4485 * cli-out.c: Likewise.
4486 * cli/cli-decode.c: Likewise.
4487 * cli/cli-dump.c: Likewise.
4488 * cli/cli-logging.c: Likewise.
4489 * cli/cli-script.c: Likewise.
4490 * cli/cli-utils.c: Likewise.
4491 * coffread.c: Likewise.
4492 * common/common-utils.c: Likewise.
4493 * common/queue.h: Likewise.
4494 * common/signals.c: Likewise.
4495 * common/vec.h: Likewise.
4496 * complaints.c: Likewise.
4497 * completer.c: Likewise.
4498 * corelow.c: Likewise.
4499 * cp-abi.c: Likewise.
4500 * cp-name-parser.y: Likewise.
4501 * cp-namespace.c: Likewise.
4502 * cp-support.c: Likewise.
4503 * cris-tdep.c: Likewise.
4504 * dbxread.c: Likewise.
4505 * dictionary.c: Likewise.
4506 * doublest.c: Likewise.
4507 * dsrec.c: Likewise.
4508 * dummy-frame.c: Likewise.
4509 * dwarf2-frame-tailcall.c: Likewise.
4510 * dwarf2-frame.c: Likewise.
4511 * dwarf2expr.c: Likewise.
4512 * dwarf2loc.c: Likewise.
4513 * dwarf2read.c: Likewise.
4514 * eval.c: Likewise.
4515 * event-loop.c: Likewise.
4516 * exceptions.c: Likewise.
4517 * expprint.c: Likewise.
4518 * f-valprint.c: Likewise.
4519 * fbsd-nat.c: Likewise.
4520 * findvar.c: Likewise.
4521 * frame-unwind.c: Likewise.
4522 * frame.c: Likewise.
4523 * frv-tdep.c: Likewise.
4524 * gcore.c: Likewise.
4525 * gdb-dlfcn.c: Likewise.
4526 * gdb_bfd.c: Likewise.
4527 * gdbarch.c: Likewise.
4528 * gdbarch.sh: Likewise.
4529 * gdbtypes.c: Likewise.
4530 * gnu-nat.c: Likewise.
4531 * gnu-v3-abi.c: Likewise.
4532 * go-lang.c: Likewise.
4533 * guile/scm-exception.c: Likewise.
4534 * guile/scm-gsmob.c: Likewise.
4535 * guile/scm-lazy-string.c: Likewise.
4536 * guile/scm-math.c: Likewise.
4537 * guile/scm-pretty-print.c: Likewise.
4538 * guile/scm-safe-call.c: Likewise.
4539 * guile/scm-utils.c: Likewise.
4540 * guile/scm-value.c: Likewise.
4541 * h8300-tdep.c: Likewise.
4542 * hppa-hpux-nat.c: Likewise.
4543 * hppa-tdep.c: Likewise.
4544 * hppanbsd-tdep.c: Likewise.
4545 * hppaobsd-tdep.c: Likewise.
4546 * i386-darwin-nat.c: Likewise.
4547 * i386-darwin-tdep.c: Likewise.
4548 * i386-nto-tdep.c: Likewise.
4549 * i386-tdep.c: Likewise.
4550 * i386bsd-nat.c: Likewise.
4551 * i386fbsd-tdep.c: Likewise.
4552 * i386gnu-nat.c: Likewise.
4553 * i386nbsd-tdep.c: Likewise.
4554 * i386obsd-tdep.c: Likewise.
4555 * i387-tdep.c: Likewise.
4556 * ia64-libunwind-tdep.c: Likewise.
4557 * ia64-tdep.c: Likewise.
4558 * inf-ptrace.c: Likewise.
4559 * inf-ttrace.c: Likewise.
4560 * infcall.c: Likewise.
4561 * infcmd.c: Likewise.
4562 * infrun.c: Likewise.
4563 * inline-frame.c: Likewise.
4564 * interps.c: Likewise.
4565 * jv-lang.c: Likewise.
4566 * jv-typeprint.c: Likewise.
4567 * linux-fork.c: Likewise.
4568 * linux-nat.c: Likewise.
4569 * linux-thread-db.c: Likewise.
4570 * m32c-tdep.c: Likewise.
4571 * m32r-linux-nat.c: Likewise.
4572 * m32r-tdep.c: Likewise.
4573 * m68k-tdep.c: Likewise.
4574 * m68kbsd-nat.c: Likewise.
4575 * m68kbsd-tdep.c: Likewise.
4576 * m88k-tdep.c: Likewise.
4577 * machoread.c: Likewise.
4578 * macroexp.c: Likewise.
4579 * macrotab.c: Likewise.
4580 * maint.c: Likewise.
4581 * mdebugread.c: Likewise.
4582 * memory-map.c: Likewise.
4583 * mep-tdep.c: Likewise.
4584 * mi/mi-common.c: Likewise.
4585 * microblaze-tdep.c: Likewise.
4586 * mingw-hdep.c: Likewise.
4587 * mips-linux-nat.c: Likewise.
4588 * mips-linux-tdep.c: Likewise.
4589 * mips-tdep.c: Likewise.
4590 * mips64obsd-tdep.c: Likewise.
4591 * mipsnbsd-tdep.c: Likewise.
4592 * mn10300-linux-tdep.c: Likewise.
4593 * mn10300-tdep.c: Likewise.
4594 * moxie-tdep.c: Likewise.
4595 * mt-tdep.c: Likewise.
4596 * nat/linux-btrace.c: Likewise.
4597 * nat/linux-osdata.c: Likewise.
4598 * nat/linux-ptrace.c: Likewise.
4599 * nat/mips-linux-watch.c: Likewise.
4600 * nios2-linux-tdep.c: Likewise.
4601 * nios2-tdep.c: Likewise.
4602 * objc-lang.c: Likewise.
4603 * objfiles.c: Likewise.
4604 * obsd-nat.c: Likewise.
4605 * opencl-lang.c: Likewise.
4606 * osabi.c: Likewise.
4607 * parse.c: Likewise.
4608 * ppc-linux-nat.c: Likewise.
4609 * ppc-sysv-tdep.c: Likewise.
4610 * ppcfbsd-nat.c: Likewise.
4611 * ppcfbsd-tdep.c: Likewise.
4612 * ppcnbsd-nat.c: Likewise.
4613 * ppcnbsd-tdep.c: Likewise.
4614 * ppcobsd-nat.c: Likewise.
4615 * ppcobsd-tdep.c: Likewise.
4616 * printcmd.c: Likewise.
4617 * procfs.c: Likewise.
4618 * prologue-value.c: Likewise.
4619 * psymtab.c: Likewise.
4620 * python/py-lazy-string.c: Likewise.
4621 * python/py-value.c: Likewise.
4622 * regcache.c: Likewise.
4623 * reggroups.c: Likewise.
4624 * registry.c: Likewise.
4625 * remote-sim.c: Likewise.
4626 * remote.c: Likewise.
4627 * rs6000-aix-tdep.c: Likewise.
4628 * rs6000-tdep.c: Likewise.
4629 * s390-linux-tdep.c: Likewise.
4630 * score-tdep.c: Likewise.
4631 * ser-base.c: Likewise.
4632 * ser-mingw.c: Likewise.
4633 * sh-tdep.c: Likewise.
4634 * sh64-tdep.c: Likewise.
4635 * solib-darwin.c: Likewise.
4636 * solib-spu.c: Likewise.
4637 * solib-svr4.c: Likewise.
4638 * source.c: Likewise.
4639 * sparc-nat.c: Likewise.
4640 * sparc-sol2-tdep.c: Likewise.
4641 * sparc-tdep.c: Likewise.
4642 * sparc64-sol2-tdep.c: Likewise.
4643 * sparc64-tdep.c: Likewise.
4644 * sparc64fbsd-tdep.c: Likewise.
4645 * sparc64nbsd-tdep.c: Likewise.
4646 * sparc64obsd-tdep.c: Likewise.
4647 * sparcnbsd-tdep.c: Likewise.
4648 * sparcobsd-tdep.c: Likewise.
4649 * spu-multiarch.c: Likewise.
4650 * spu-tdep.c: Likewise.
4651 * stabsread.c: Likewise.
4652 * stack.c: Likewise.
4653 * symfile.c: Likewise.
4654 * symtab.c: Likewise.
4655 * target-descriptions.c: Likewise.
4656 * target-memory.c: Likewise.
4657 * target.c: Likewise.
4658 * tic6x-linux-tdep.c: Likewise.
4659 * tic6x-tdep.c: Likewise.
4660 * tilegx-linux-nat.c: Likewise.
4661 * tilegx-tdep.c: Likewise.
4662 * top.c: Likewise.
4663 * tramp-frame.c: Likewise.
4664 * tui/tui-out.c: Likewise.
4665 * tui/tui-winsource.c: Likewise.
4666 * ui-out.c: Likewise.
4667 * user-regs.c: Likewise.
4668 * utils.c: Likewise.
4669 * v850-tdep.c: Likewise.
4670 * valops.c: Likewise.
4671 * value.c: Likewise.
4672 * varobj.c: Likewise.
4673 * vax-nat.c: Likewise.
4674 * xml-syscall.c: Likewise.
4675 * xml-tdesc.c: Likewise.
4676 * xstormy16-tdep.c: Likewise.
4677 * xtensa-linux-nat.c: Likewise.
4678 * xtensa-tdep.c: Likewise.
4679
e76df0d0
GB
46802014-08-07 Gary Benson <gbenson@redhat.com>
4681
4682 * common/common-defs.h: Include common-utils.h.
4683 * defs.h: Do not include common-utils.h.
4684 * common/gdb_assert.h: Likewise.
4685 * darwin-nat.h: Likewise.
4686 * nat/linux-btrace.c: Likewise.
4687 * target/waitstatus.h: Likewise.
4688
4cb9c816
GB
46892014-08-07 Gary Benson <gbenson@redhat.com>
4690
4691 * common/common-defs.h: Include ptid.h.
4692 * defs.h: Do not include ptid.h.
4693 * inferior.h: Likewise.
4694 * infrun.h: Likewise.
4695 * nat/linux-btrace.h: Likewise.
4696 * nat/linux-osdata.h: Likewise.
4697 * target/waitstatus.h: Likewise.
4698
3995eeee
GB
46992014-08-07 Gary Benson <gbenson@redhat.com>
4700
4701 * common/common-defs.h: Include gdb_locale.h.
4702 * defs.h: Do not include gdb_locale.h.
4703
cb9f1a9b
GB
47042014-08-07 Gary Benson <gbenson@redhat.com>
4705
4706 * common/common-defs.h: Include gdb/signals.h.
4707 * defs.h: Do not include gdb/signals.h.
4708
a5fceff8
GB
47092014-08-07 Gary Benson <gbenson@redhat.com>
4710
4711 * common/common-defs.h: Include pathmax.h.
4712 * defs.h: Do not include pathmax.h.
4713
b9391142
GB
47142014-08-07 Gary Benson <gbenson@redhat.com>
4715
4716 * common/common-defs.h: Include libiberty.h.
4717 * defs.h: Do not include libiberty.h.
4718 * common/queue.h: Likewise.
4719 * cp-name-parser.y: Likewise.
4720 * mi/mi-cmd-catch.c: Likewise.
4721 * python/python.c: Likewise.
4722
0e443c87
GB
47232014-08-07 Gary Benson <gbenson@redhat.com>
4724
4725 * common/common-defs.h: Include ansidecl.h.
4726 * defs.h: Do not include ansidecl.h.
4727 * common/buffer.h: Likewise.
4728 * common/common-utils.h: Likewise.
4729
8ebb3f56
GB
47302014-08-07 Gary Benson <gbenson@redhat.com>
4731
4732 * common/common-defs.h: Include stddef.h.
4733 * defs.h: Do not include stddef.h.
4734 * common/common-utils.h: Likewise.
4735 * amd64fbsd-nat.c: Likewise.
4736 * bcache.c: Likewise.
4737 * charset.c: Likewise.
4738 * common/buffer.h: Likewise.
4739 * common/vec.h: Likewise.
4740 * i386bsd-nat.c: Likewise.
4741 * nat/linux-btrace.h: Likewise.
4742 * ppcfbsd-nat.c: Likewise.
4743 * ppcnbsd-tdep.h: Likewise.
4744 * ppcobsd-nat.c: Likewise.
4745 * ppcobsd-tdep.h: Likewise.
4746 * python/py-gdb-readline.c: Likewise.
4747
8980bdf6
GB
47482014-08-07 Gary Benson <gbenson@redhat.com>
4749
4750 * common/common-defs.h: Include stdarg.h.
4751 * defs.h: Do not include stdarg.h.
4752 * ada-lang.c: Likewise.
4753 * common/common-utils.h: Likewise.
4754 * guile/scm-string.c: Likewise.
4755 * guile/scm-utils.c: Likewise.
4756 * m32c-tdep.c: Likewise.
4757
d7096f71
GB
47582014-08-07 Gary Benson <gbenson@redhat.com>
4759
4760 * common/common-defs.h: Include stdlib.h.
4761 * defs.h: Do not include stdlib.h.
4762 * addrmap.c: Likewise.
4763 * bcache.c: Likewise.
4764 * common/buffer.c: Likewise.
4765 * common/common-utils.c: Likewise.
4766 * cp-name-parser.y: Likewise.
4767 * go32-nat.c: Likewise.
4768 * mn10300-linux-tdep.c: Likewise.
4769 * nat/linux-osdata.c: Likewise.
4770 * tui/tui.c: Likewise.
4771 * windows-nat.c: Likewise.
4772
d02f550d
GB
47732014-08-07 Gary Benson <gbenson@redhat.com>
4774
4775 * common/common-defs.h: Include stdio.h.
4776 * defs.h: Do not include stdio.h.
4777 * ada-lang.c: Likewise.
4778 * common/buffer.c: Likewise.
4779 * common/common-utils.c: Likewise.
4780 * cp-name-parser.y: Likewise.
4781 * gnu-nat.c: Likewise.
4782 * go32-nat.c: Likewise.
4783 * i386gnu-nat.c: Likewise.
4784 * proc-api.c: Likewise.
4785 * proc-events.c: Likewise.
4786 * proc-flags.c: Likewise.
4787 * proc-why.c: Likewise.
4788 * python/python-internal.h: Likewise.
4789 * target-memory.c: Likewise.
4790 * tui/tui-io.c: Likewise.
4791 * tui/tui.c: Likewise.
4792
b6d7a4bf
SM
47932014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4794
4795 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4796 (scan_dyntag_auxv): Same.
4797
af19829b
YQ
47982014-08-06 Yao Qi <yao@codesourcery.com>
4799
4800 * amd64-linux-nat.c: Remove duplicated include
4801 "x86-linux-nat.h".
4802 * i386-linux-nat.c: Likewise.
4803
8e07a239
YQ
48042014-08-06 Yao Qi <yao@codesourcery.com>
4805
4806 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4807 operand" with "Special opcode" in comments.
4808
7bfe8241
GB
48092014-08-05 Gary Benson <gbenson@redhat.com>
4810
4811 * interps.c (initialize_interps): Remove prototype.
4812 (interpreter_initialized): Remove static global.
4813 (interp_add): Do not call initialize_interps.
4814 (initialize_interps): Remove function.
4815
d6c95504
GB
48162014-08-05 Gary Benson <gbenson@redhat.com>
4817
4818 * utils.c (vwarning): Remove spurious va_end.
4819
241fd515
AM
48202014-08-05 Alan Modra <amodra@gmail.com>
4821
4822 * charset.c (convert_between_encodings): Cast result of obstack_base.
4823 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4824 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4825 (read_unwind_info): Use size_t for some locals.
4826 * jit.c (finalize_symtab): Likewise.
4827 * utils.c (hashtab_obstack_allocate): Likewise.
4828 * symmisc.c (print_objfile_statistics): Update format strings.
4829
dc304a94
JK
48302014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4833 (Changes in GDB 7.8): ... here.
4834
3cecbbbe
TT
48352014-08-04 Tom Tromey <tromey@redhat.com>
4836
4837 * target.c (set_targetdebug): New function.
4838 (initialize_targets): Pass set_targetdebug when creating "set
4839 debug target".
4840
6908c509
JB
48412014-08-01 Joel Brobecker <brobecker@adacore.com>
4842
4843 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4844 if detecting a variable-sized field that is not the last field.
4845 Fix struct type length computation.
4846
53e8f97d
JB
48472014-08-01 Joel Brobecker <brobecker@adacore.com>
4848
4849 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4850 Add debug trace.
4851
e068c55d
JB
48522014-08-01 Joel Brobecker <brobecker@adacore.com>
4853
4854 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4855 Remove "+ 8" offset in computation of CHAIN_VMA.
4856
4d4ca2a1
DE
48572014-07-31 Doug Evans <dje@google.com>
4858
4859 * inflow.c (child_terminal_inferior): Add comment.
4860 (child_terminal_ours_for_output): Add comment.
4861 (child_terminal_ours): Add comment.
4862 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4863 (linux_nat_terminal_ours): Add comment.
4864
462f517e
GB
48652014-07-31 Gary Benson <gbenson@redhat.com>
4866
4867 * common/btrace-common.h: Do not include defs.h or server.h.
4868 * nat/mips-linux-watch.h: Likewise.
4869 * gdb-dlfcn.h: Do not include defs.h.
4870 * tracefile.h: Likewise.
4871
74228e77
RM
48722014-07-30 Roland McGrath <mcgrathr@google.com>
4873
4874 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4875
014f9477
TT
48762014-07-30 Tom Tromey <tromey@redhat.com>
4877
4878 * bsd-kvm.c (bsd_kvm_open): Constify.
4879 * corelow.c (core_open): Constify.
4880 * ctf.c (ctf_open): Constify.
4881 * dbug-rom.c (dbug_open): Constify.
4882 * exec.c (exec_open): Constify.
4883 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4884 * microblaze-rom.c (picobug_open): Constify.
4885 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4886 Constify.
4887 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4888 * record-btrace.c (record_btrace_open): Constify.
4889 * record-full.c (record_full_core_open_1, record_full_open_1)
4890 (record_full_open): Constify.
4891 * remote-m32r-sdi.c (m32r_open): Constify.
4892 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4893 (rockhopper_open, lsi_open): Constify.
4894 * remote-sim.c (gdbsim_open): Constify.
4895 * remote.c (remote_open, extended_remote_open, remote_open_1):
4896 Constify.
4897 * target.h (struct target_ops) <to_open>: Make "arg" const.
4898 * tracefile-tfile.c (tfile_open): Constify.
4899
e799154c
TT
49002014-07-30 Tom Tromey <tromey@redhat.com>
4901
4902 * breakpoint.c (map_breakpoint_numbers): Update.
4903 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4904 (get_number_const): New function.
4905 (get_number): Rewrite using get_number_const.
4906 (init_number_or_range): Make "string" const.
4907 (number_is_in_list): Make "list" const.
4908 * cli/cli-utils.h (get_number_const): Declare.
4909 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4910 (init_number_or_range, number_is_in_list): Update.
4911 * printcmd.c (map_display_numbers): Update.
4912 * value.c (value_from_history_ref): Constify.
4913 * value.h (value_from_history_ref): Update.
4914
5f08566b
TT
49152014-07-30 Tom Tromey <tromey@redhat.com>
4916
4917 * corefile.c (hook_type, call_extra_exec_file_hooks)
4918 (specify_exec_file_hook): Constify.
4919 * exec.c (exec_file_attach): Make "filename" const.
4920 * gdbcore.h (deprecated_exec_file_display_hook)
4921 (specify_exec_file_hook, exec_file_attach): Constify.
4922 * main.c (captured_main): Use catch_command_errors_const.
4923
8981c758
TT
49242014-07-30 Tom Tromey <tromey@redhat.com>
4925
4926 * target.c (open_target): New function.
4927 (add_target_with_completer, add_deprecated_target_alias): Use
4928 set_cmd_sfunc, set_cmd_context.
4929 (debug_to_open): Remove.
4930 (setup_target_debug): Update.
4931
a1c7835a
YQ
49322014-07-30 Yao Qi <yao@codesourcery.com>
4933
4934 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4935 comments.
4936 * parse.c (exp_iterate): Update comments.
4937
976411d6
GB
49382014-07-30 Gary Benson <gbenson@redhat.com>
4939
4940 * common/common-defs.h: New file.
4941 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4942 * defs.h: Include common-defs.h.
4943 Do not include config.h or build-gnulib/config.h.
4944
5d4848a4
GB
49452014-07-30 Gary Benson <gbenson@redhat.com>
4946
4947 * common/common-utils.h: Do not include config.h.
4948 * nat/linux-btrace.h: Likewise.
4949
d41f6d8e
GB
49502014-07-30 Gary Benson <gbenson@redhat.com>
4951
4952 * btrace.c: Include defs.h.
4953 * common/ptid.c: Include defs.h or server.h as appropriate.
4954 * nat/mips-linux-watch.c: Likewise.
4955
84202f9c
TT
49562014-07-29 Tom Tromey <tromey@redhat.com>
4957
4958 * target.c (target_is_pushed): Simplify.
4959
2530441c
JB
49602014-07-29 Joel Brobecker <brobecker@adacore.com>
4961
4962 GDB 7.8 released.
4963
7e09a223
YQ
49642014-07-29 Yao Qi <yao@codesourcery.com>
4965
4966 PR gdb/17206
4967 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4968
7ebdbe92
DE
49692014-07-28 Doug Evans <xdje42@gmail.com>
4970
4971 PR guile/17203
4972 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4973 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4974 parameters.
4975
f347ffc9
WN
49762014-07-28 Will Newton <will.newton@linaro.org>
4977
4978 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4979 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4980 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4981 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4982 (THUMB2_EABI_SYSCALL): Likewise.
4983 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4984 struct tramp_frame.
4985 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4986 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4987
37c5f1f7
DE
49882014-07-27 Doug Evans <xdje42@gmail.com>
4989
4990 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4991
0c3abbc7
DE
49922014-07-27 Doug Evans <xdje42@gmail.com>
4993
4994 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4995
e76c5d17
DE
49962014-07-26 Ludovic Courtès <ludo@gnu.org>
4997 Doug Evans <xdje42@gmail.com>
4998
4999 PR guile/17146
5000 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5001 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5002 * configure.ac: Try to use guild to compile an scm file, if it fails
5003 then disable guile support.
5004 * configure: Regenerate.
5005 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5006 GUILE_FILE_LIST.
5007 (GUILE_COMPILED_FILES): New variable.
5008 (GUILE_FILES) Update.
5009 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5010 (stamp-guile): Compile scm files.
5011 * guile/guile.c (boot_guile_support): New function.
5012 (standard_throw_args_p): New function.
5013 (print_standard_throw_error, print_throw_error): New functions.
5014 (handle_boot_error): New function.
5015 (initialize_scheme_side): Rewrite to call boot_guile_support.
5016 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5017 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5018
186fcde0
DE
50192014-07-26 Ludovic Courtès <ludo@gnu.org>
5020 Doug Evans <xdje42@gmail.com>
5021
5022 PR guile/17146
5023 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5024 * guile/lib/gdb/support.scm: New file.
5025 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5026 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5027 All uses updated.
5028 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5029 All uses updated.
5030 (%assert-type): Ditto, and renamed to assert-type.
5031 (%exception-print-style): Delete.
5032
4df42755
DE
50332014-07-26 Doug Evans <xdje42@gmail.com>
5034
5035 PR build/17105
5036 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5037 * configure: Regenerate.
5038 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5039 PYTHON_FILES.
5040 (PYTHON_FILES): New variable.
5041 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5042 (GUILE_FILES): New variable.
5043 (stamp-python, install-python, uninstall-python): Handle empty
5044 file list.
5045 (stamp-guile, install-guile, uninstall-guile): Ditto.
5046
ee7333ae
DE
50472014-07-26 Doug Evans <xdje42@gmail.com>
5048
5049 PR guile/17177
5050 * guile/lib/gdb.scm (pretty-printers): Export.
5051 (set-pretty-printers!): Export.
5052 * guile/lib/gdb/printing.scm (gdb module): Update.
5053 (prepend-pretty-printer!, append-pretty-printer!): Update.
5054 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5055 (pretty_printer_list_var): Delete.
5056 (pretty_printer_list): New static global.
5057 (gdbscm_pretty_printers): New function.
5058 (gdbscm_set_pretty_printers_x): New function.
5059 (ppscm_find_pretty_printer_from_gdb): Update.
5060 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5061 (gdbscm_initialize_pretty_printers): Update.
5062
74edf516
DE
50632014-07-26 Doug Evans <xdje42@gmail.com>
5064
5065 PR 17185
5066 * configure.ac: Add check for header gc/gc.h.
5067 Add check for function setenv.
5068 * configure: Regenerate.
5069 * config.in: Regenerate.
5070 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5071
d54398a7
MR
50722014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5073
5074 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5075 variation in gdbarch matching.
5076
ab16fce8
TT
50772014-07-25 Tom Tromey <tromey@redhat.com>
5078
5079 * exec.c (using_exec_ops): Remove.
5080 (exec_close_1): Update. Remove extraneous block, reindent.
5081 (add_target_sections): Use target_is_pushed.
5082
88056fbb
PA
50832014-07-25 Pedro Alves <palves@redhat.com>
5084
5085 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5086 * monitor.c (monitor_create_inferior): Likewise.
5087 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5088 * remote-sim.c (gdbsim_create_inferior): Likewise.
5089 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5090 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5091 * windows-nat.c (do_initial_windows_stuff): Likewise.
5092
70509625
PA
50932014-07-25 Pedro Alves <palves@redhat.com>
5094
5095 * NEWS: Mention signal passing and "signal" command changes.
5096 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5097 comment.
5098 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5099 call.
5100 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5101 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5102 (jump_command): Adjust clear_proceed_status call.
5103 (signal_command): Warn if other thread that are resumed have
5104 signals that will be delivered. Adjust clear_proceed_status call.
5105 (until_next_command, finish_command)
5106 (proceed_after_attach_callback, attach_command_post_wait)
5107 (attach_command): Adjust clear_proceed_status call.
5108 * infrun.c (proceed_after_vfork_done): Likewise.
5109 (proceed_after_attach_callback): Adjust comment.
5110 (clear_proceed_status_thread): Clear stop_signal if not in pass
5111 state.
5112 (clear_proceed_status_callback): Delete.
5113 (clear_proceed_status): New 'step' parameter. Only clear the
5114 proceed status of threads the command being prepared is about to
5115 resume.
5116 (proceed): If passed in an explicit signal, override stop_signal
5117 with it. Don't pass the last stop signal to the thread we're
5118 resuming.
5119 (init_wait_for_inferior): Adjust clear_proceed_status call.
5120 (switch_back_to_stepped_thread): Clear the signal if it should not
5121 be passed.
5122 * infrun.h (clear_proceed_status): New 'step' parameter.
5123 (user_visible_resume_ptid): Add comment.
5124 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5125 signal is in pass state.
5126 * remote.c (append_pending_thread_resumptions): Likewise.
5127 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5128
d8be2939
TT
51292014-07-25 Tom Tromey <tromey@redhat.com>
5130
5131 * target.h (target_stopped_data_address)
5132 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5133 parentheses.
5134
7d0d9d2b
PL
51352014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5136
5137 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5138 comments.
5139 (avr_pointer_to_address): Likewise.
5140
e9e7f724
TT
51412014-07-24 Tom Tromey <tromey@redhat.com>
5142
5143 * monitor.c (compile_pattern): Update.
5144 * target.h (struct target_ops) <to_shortname, to_longname,
5145 to_doc>: Now const.
5146
1947513d
TT
51472014-07-24 Tom Tromey <tromey@redhat.com>
5148
5149 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5150 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5151 (add_info_alias, add_com): Make "doc" const.
5152 (print_doc_line): Make "str" const.
5153 (delete_cmd): Update.
5154 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5155 (print_doc_line): Update.
5156 * cli/cli-script.c (document_command): Update.
5157 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5158 (add_com, add_info, add_info_alias): Update.
5159 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5160 * python/py-cmd.c (cmdpy_destroyer): Update.
5161
64e61d29
TT
51622014-07-24 Tom Tromey <tromey@redhat.com>
5163
5164 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5165 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5166 (help_cmd_list): Constify.
5167 (lookup_cmd): Update.
5168 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5169 const.
5170 (help_cmd_list, apropos_cmd): Update.
5171 * cli/cli-script.c (show_user): Update.
5172 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5173 * cli/cli-setshow.h (cmd_show_list): Update.
5174 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5175 (cmd_show_list): Update.
5176 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5177 * python/py-cmd.c (cmdpy_destroyer): Update.
5178
429e55ea
TT
51792014-07-24 Tom Tromey <tromey@redhat.com>
5180
5181 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5182 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5183 const.
5184 * command.h (deprecate_cmd): Update.
5185 * maint.c (maintenance_do_deprecate): Add casts.
5186
64669f3b
TT
51872014-07-24 Tom Tromey <tromey@redhat.com>
5188
5189 * cli/cli-decode.c (help_cmd): Make parameter "const".
5190 * cli/cli-decode.h (help_cmd): Update.
5191
d3d3328b
TT
51922014-07-24 Tom Tromey <tromey@redhat.com>
5193
5194 * stack.c (up_silently_base, down_silently_base): Make argument
5195 const.
5196
414842dc
TT
51972014-07-24 Tom Tromey <tromey@redhat.com>
5198
5199 * solib.c (solib_add): Make "pattern" const.
5200 * solib.h (solib_add): Update.
5201
baa336ce
TT
52022014-07-24 Tom Tromey <tromey@redhat.com>
5203
5204 * remote.c (remote_serial_open, print_packet, putpkt)
5205 (putpkt_binary): Constify.
5206 * remote.h (putpkt): Update.
5207
5a19e2d0
TT
52082014-07-24 Tom Tromey <tromey@redhat.com>
5209
5210 * monitor.c (monitor_open): Make "args" const.
5211 * monitor.h (monitor_open): Update.
5212
fc4baa5e
TT
52132014-07-24 Tom Tromey <tromey@redhat.com>
5214
5215 * maint.c (match_bfd_flags): Make "string" const.
5216 (print_bfd_section_info): Remove casts.
5217 (print_objfile_section_info): Make "string" const.
5218
0d5f0dbe
TT
52192014-07-24 Tom Tromey <tromey@redhat.com>
5220
5221 * inf-child.c (inf_child_open_target): Make "arg" const.
5222 * inf-child.h (inf_child_open_target): Update.
5223
41c77899
TT
52242014-07-24 Tom Tromey <tromey@redhat.com>
5225
5226 * environ.c (unset_in_environ): Make "var" const.
5227 * environ.h (unset_in_environ): Update.
5228
93db0d79
TT
52292014-07-24 Tom Tromey <tromey@redhat.com>
5230
5231 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5232 Make "cmd" const.
5233 (scan_filename_with_cleanup): Likewise.
5234 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5235 Make arguments const.
5236 (restore_command): Update.
5237
36d6eb95
PA
52382014-07-24 Pedro Alves <palves@redhat.com>
5239
5240 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5241
8009206a
TT
52422014-07-24 Tom Tromey <tromey@redhat.com>
5243 Gary Benson <gbenson@redhat.com>
5244
5245 * nat/linux-ptrace.c (additional_flags): New global.
5246 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5247 additional_flags; don't check GDBSERVER.
5248 (linux_ptrace_set_additional_flags): New function.
5249 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5250 Declare.
5251 * linux-nat.c (_initialize_linux_nat): Call
5252 linux_ptrace_set_additional_flags.
5253
a7068b60
TT
52542014-07-24 Tom Tromey <tromey@redhat.com>
5255
5256 * make-target-delegates (munge_type, write_debugmethod): New
5257 functions.
5258 (debug_names): New global.
5259 ($TARGET_DEBUG_PRINTER): New global.
5260 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5261 name.
5262 Write debug methods. Generate init_debug_target.
5263 * target-debug.h: New file.
5264 * target-delegates.c: Rebuild.
5265 * target.c: Include target-debug.h.
5266 (debug_target): Hoist definition.
5267 (target_kill, target_get_section_table, target_memory_map)
5268 (target_flash_erase, target_flash_done, target_detach)
5269 (target_disconnect, target_wait, target_resume)
5270 (target_pass_signals, target_program_signals, target_follow_fork)
5271 (target_mourn_inferior, target_search_memory)
5272 (target_thread_address_space, target_close)
5273 (target_find_new_threads, target_core_of_thread)
5274 (target_verify_memory, target_insert_mask_watchpoint)
5275 (target_remove_mask_watchpoint): Remove targetdebug code.
5276 (debug_to_post_attach, debug_to_prepare_to_store)
5277 (debug_to_files_info, debug_to_insert_breakpoint)
5278 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5279 (debug_to_region_ok_for_hw_watchpoint)
5280 (debug_to_can_accel_watchpoint_condition)
5281 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5282 (debug_to_watchpoint_addr_within_range)
5283 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5284 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5285 (debug_to_terminal_init, debug_to_terminal_inferior)
5286 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5287 (debug_to_terminal_save_ours, debug_to_terminal_info)
5288 (debug_to_load, debug_to_post_startup_inferior)
5289 (debug_to_insert_fork_catchpoint)
5290 (debug_to_remove_fork_catchpoint)
5291 (debug_to_insert_vfork_catchpoint)
5292 (debug_to_remove_vfork_catchpoint)
5293 (debug_to_insert_exec_catchpoint)
5294 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5295 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5296 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5297 (setup_target_debug): Call init_debug_target.
5298 * target.h (TARGET_DEBUG_PRINTER): New macro.
5299 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5300 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5301
2c51604d
GB
53022014-07-24 Gary Benson <gbenson@redhat.com>
5303
5304 * exceptions.h (throw_vfatal): Renamed to...
5305 (throw_vquit): New declaration.
5306 (throw_quit): Likewise.
5307 * exceptions.c (throw_vfatal): Renamed to...
5308 (throw_vquit): New function.
5309 (throw_quit): Likewise.
5310 (throw_error): Call throw_verror rather than throw_it.
5311 * utils.h (vfatal): Removed.
5312 (fatal): Likewise.
5313 * utils.c (vfatal): Removed.
5314 (fatal): Likewise.
5315 (internal_verror): Replaced call to fatal with call to throw_quit.
5316 (quit): Replaced calls to fatal with calls to throw_quit.
5317
34211963
ME
53182014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5319
5320 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5321 target_read_code.
5322
a52b4d3e
ME
53232014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5324
5325 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5326 less than zero in conditional expression.
5327
a8bdc56b
TT
53282014-07-23 Tom Tromey <tromey@redhat.com>
5329
5330 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5331 ($INTRO_PART): Don't match whitespace.
5332 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5333 argument matching.
5334 ($METHOD): Add $METHOD_TRAILER.
5335 (trim): Rewrite.
5336 (scan_target_h): New sub.
5337 Change main loop not to collect state.
5338 * target-delegates.c: Rebuild.
5339
91b52240
GB
53402014-07-23 Gary Benson <gbenson@redhat.com>
5341
5342 * cp-support.c (gdb_demangle): Fix build on systems without
5343 sigaltstack.
5344
45326f6f
JK
53452014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5348 for reference entry value target data value.
5349
e214cf6c
JK
53502014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5351
5352 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5353 value_available_contents_eq.
5354
bddbbedd
PA
53552014-07-22 Pedro Alves <palves@redhat.com>
5356
5357 * value.c (allocate_optimized_out_value): Don't mark value as
5358 non-lazy.
5359
45c71484
JW
53602014-07-22 Jiong Wang <jiong.wang@arm.com>
5361
5362 * MAINTAINERS (Write After Approval): Update my email address.
5363
9597b22a
DE
53642014-07-20 Doug Evans <dje@google.com>
5365
5366 PR server/17147
5367 * remote.c (putpkt_binary): Add text to error message.
5368
91101fe5
YQ
53692014-07-20 Yao Qi <yao@codesourcery.com>
5370
5371 * eval.c: Remove "Chill" from comments.
5372 * gdbtypes.h: Likewise.
5373 * symtab.h: Likewise.
5374
c9402c95
YQ
53752014-07-20 Yao Qi <yao@codesourcery.com>
5376
5377 * std-operator.def: Update comments to TERNOP_SLICE.
5378
ae8fddda
YQ
53792014-07-20 Yao Qi <yao@codesourcery.com>
5380
5381 * std-operator.def: Remove BINOP_RANGE.
5382 * breakpoint.c (watchpoint_exp_is_const): Update.
5383 * expprint.c (dump_subexp_body_standard): Likewise.
5384 * eval.c (init_array_element): Remove dead code.
5385 (evaluate_subexp_standard): Likewise.
5386
9c816640
YQ
53872014-07-20 Yao Qi <yao@codesourcery.com>
5388
5389 * std-operator.def: Remove BINOP_IN.
5390 * breakpoint.c (watchpoint_exp_is_const): Update.
5391 * eval.c (evaluate_subexp_standard): Likewise.
5392 * expprint.c (dump_subexp_body_standard): Likewise.
5393
164224e9
ME
53942014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5395
5396 * microblaze-tdep.c (microblaze_register_names): Add
5397 the rshr and rslr register names.
5398 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5399 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5400 Use of tdesc_numbered_register. Use of
5401 microblaze_register_g_packet_guesses. Use of
5402 tdesc_use_registers. Use of set_gdbarch_register_type.
5403 (microblaze_register_g_packet_guesses): New.
5404 * microblaze-tdep.h (microblaze_reg_num): Add
5405 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5406 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5407 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5408 * features/microblaze-core.xml: New file.
5409 * features/microblaze-stack-protect.xml: New file.
5410 * features/microblaze-with-stack-protect.c: New file.
5411 * features/microblaze-with-stack-protect.xml: New file.
5412 * features/microblaze.xml: New file.
5413 * features/microblaze.c: New file.
5414 * features/Makefile (microblaze-with-stack-protect): Add
5415 microblaze-with-stack-protect microblaze and microblaze-expedite.
5416 * regformats/microblaze-with-stack-protect.dat: New file.
5417 * regformats/microblaze.dat: New file.
5418 * doc/gdb.texinfo (MicroBlaze Features): Added.
5419
e8b2341c
TT
54202014-07-18 Tom Tromey <tromey@redhat.com>
5421
5422 * exec.c (exec_ops): Now static.
5423 * exec.h (exec_ops): Don't declare.
5424
44e89118
TT
54252014-07-18 Tom Tromey <tromey@redhat.com>
5426
5427 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5428 to find_target_beneath.
5429 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5430 find_target_beneath.
5431 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5432
b0ed115f
TT
54332014-07-18 Tom Tromey <tromey@redhat.com>
5434
5435 PR gdb/17130:
5436 * utils.c (quit): Use target_supports_terminal_ours.
5437 * target.h (target_supports_terminal_ours): Declare.
5438 * target.c (target_supports_delete_record): Don't check
5439 to_delete_record against NULL.
5440 (target_supports_terminal_ours): New function.
5441
e75fdfca
TT
54422014-07-18 Tom Tromey <tromey@redhat.com>
5443
5444 PR gdb/17130:
5445 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5446 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5447 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5448 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5449 * windows-nat.c (windows_xfer_partial): Always delegate.
5450 * record-btrace.c (record_btrace_xfer_partial): Simplify
5451 delegation.
5452 (record_btrace_fetch_registers, record_btrace_store_registers)
5453 (record_btrace_prepare_to_store, record_btrace_resume)
5454 (record_btrace_wait, record_btrace_find_new_threads)
5455 (record_btrace_thread_alive): Likewise.
5456 * procfs.c (procfs_xfer_partial): Always delegate.
5457 * corelow.c (core_xfer_partial): Always delegate.
5458 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5459
83814951
TT
54602014-07-18 Tom Tromey <tromey@redhat.com>
5461
5462 * exec.c (exec_make_note_section): Move earlier.
5463
b8b8facf
DE
54642014-07-17 Doug Evans <dje@google.com>
5465
74b49205 5466 PR gdb/17170
b8b8facf
DE
5467 * maint.c (count_symtabs_and_blocks): Handle NULL
5468 current_program_space.
5469 (report_command_stats): Check global enabled flag in addition to
5470 recorded enabled flag.
5471 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5472
69ff6be5
PA
54732014-07-16 Pedro Alves <palves@redhat.com>
5474
5475 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5476
252db1b5
TT
54772014-07-16 Tom Tromey <tromey@redhat.com>
5478
5479 * target.h (struct target_ops) <to_delete_record>: Reformat
5480 comment.
5481
a432721e
TT
54822014-07-16 Tom Tromey <tromey@redhat.com>
5483
5484 * target-delegates.c: Rebuild.
5485
487d9753
PL
54862014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5487
5488 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5489 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5490 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5491 (avr_pointer_to_address): Likewise.
5492 (avr_address_class_type_flags): New function.
5493 (avr_address_class_type_flags_to_name): Likewise.
5494 (avr_address_class_name_to_type_flags): Likewise.
5495 (avr_gdbarch_init): Set address_class_type_flags,
5496 address_class_type_flags_to_name and
5497 address_class_name_to_type_flags.
5498
57745c90
PA
54992014-07-15 Pedro Alves <palves@redhat.com>
5500
5501 * linux-nat.c (kill_callback): Save errno and work with saved
5502 copy.
5503
2d40be18
SM
55042014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5507
572f6555
EBM
55082014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5509
5510 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5511 breakpoint support correctly.
5512
cc1c52ad
PA
55132014-07-14 Pedro Alves <palves@redhat.com>
5514
5515 * utils.c (prompt_for_continue): Call target_terminal_ours.
5516
1e973570
PA
55172014-07-14 Pedro Alves <palves@redhat.com>
5518
5519 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5520 catch_errors. Don't re-enable stdin or notify observers where,
5521 and rethrow error.
5522 (fetch_inferior_event_wrapper): Delete.
5523
93d6eb10
PA
55242014-07-14 Pedro Alves <palves@redhat.com>
5525
5526 PR gdb/17072
5527 * top.c: Include "inf-loop.h".
5528 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5529 field.
5530 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5531 was async before.
5532 (gdb_readline_wrapper): Store whether the target is async, and
5533 make it sync.
5534
0017922d
PA
55352014-07-14 Pedro Alves <palves@redhat.com>
5536
5537 PR gdb/17072
5538 * top.c (gdb_readline_wrapper_line): Tweak comment.
5539 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5540 the input handler callback.
5541
94696ad3
PA
55422014-07-14 Pedro Alves <palves@redhat.com>
5543
5544 PR gdb/17072
5545 * main.c: Include event-top.h.
5546 (handle_command_errors): New function.
5547 (catch_command_errors, catch_command_errors_const): Use it.
5548
9d1e69a2
PA
55492014-07-14 Pedro Alves <palves@redhat.com>
5550
5551 * exceptions.c (catch_command_errors, catch_command_errors_const):
5552 Moved to main.c.
5553 * exceptions.h (catch_command_errors_ftype)
5554 (catch_command_errors_const_ftype): Moved to main.c.
5555 (catch_command_errors, catch_command_errors_const): Delete
5556 declarations.
5557 * main.c (catch_command_errors_ftype)
5558 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5559 (catch_command_errors, catch_command_errors_const)): Moved here
5560 from exceptions.c and make static.
5561
feefc97b
PA
55622014-07-14 Pedro Alves <palves@redhat.com>
5563
5564 * exceptions.c (print_any_exception): Delete.
5565 (catch_exceptions_with_msg): Use exception_print instead of
5566 print_any_exception.
5567 (catch_errors): Use exception_fprintf instead of
5568 print_any_exception.
5569 (catch_command_errors, catch_command_errors_const): Use
5570 exception_print instead of print_any_exception.
5571
c933f875
PA
55722014-07-14 Pedro Alves <palves@redhat.com>
5573
5574 * infcall.c (run_inferior_call): Set 'sync_execution' while
5575 running the inferior call.
5576
feb6f816
PA
55772014-07-14 Pedro Alves <palves@redhat.com>
5578
5579 * value.c (value_contents_equal): Delete function.
5580 * value.h (value_contents_equal): Delete declaration.
5581
d98b7a16
TT
55822014-07-14 Tom Tromey <tromey@redhat.com>
5583
5584 PR exp/17106:
5585 * gdbtypes.c (is_dynamic_type_internal): New function, from
5586 is_dynamic_type.
5587 (is_dynamic_type): Rewrite.
5588 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5589 (resolve_dynamic_struct): Likewise.
5590 (resolve_dynamic_type_internal): New function, from
5591 resolve_dynamic_type.
5592 (resolve_dynamic_type): Rewrite.
5593
548740d6
TT
55942014-07-14 Tom Tromey <tromey@redhat.com>
5595
5596 * target.c (target_require_runnable): Also check record_stratum.
5597 Update comment.
5598
808f7ab1
YQ
55992014-07-11 Yao Qi <yao@codesourcery.com>
5600
5601 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5602 thumb_instruction_restores_sp return true.
5603
540314bd
YQ
56042014-07-11 Yao Qi <yao@codesourcery.com>
5605
5606 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5607 (thumb_in_function_epilogue_p): Call
5608 thumb_instruction_restores_sp.
5609
1db01f22
YQ
56102014-07-11 Yao Qi <yao@codesourcery.com>
5611
5612 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5613 'add sp, #imm'.
5614 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5615
3116063b
GB
56162014-07-11 Gary Benson <gbenson@redhat.com>
5617
5618 * amd64-linux-nat.c (gdbcore.h): Remove include.
5619 (regset.h): Likewise.
5620 (nat/linux-btrace.h): Likewise.
5621 (btrace.h): Likewise.
5622 (gdb_assert.h): Likewise.
5623 (string.h): Likewise.
5624 (sys/uio.h): Likewise.
5625 (sys/debugreg.h): Likewise.
5626 (sys/syscall.h): Likewise.
5627 (sys/procfs.h): Likewise.
5628 (sys/user.h): Likewise.
5629 (asm/ptrace.h): Likewise.
5630 (i386-nat.h): Likewise.
5631 * i386-linux-nat.c (i386-nat.h): Likewise.
5632 (regset.h): Likewise.
5633 (target.h): Likewise.
5634 (linux-nat.h): Likewise.
5635 (nat/linux-btrace.h): Likewise.
5636 (btrace.h): Likewise.
5637 (gdb_assert.h): Likewise.
5638 (string.h): Likewise.
5639 (sys/uio.h): Likewise.
5640 (sys/user.h): Likewise.
5641 (sys/procfs.h): Likewise.
5642 (sys/reg.h): Likewise.
5643 (sys/debugreg.h): Likewise.
5644 (ORIG_EAX): Remove definition.
5645
040baaf6
GB
56462014-07-11 Gary Benson <gbenson@redhat.com>
5647
5648 * i386-linux-nat.h: New file.
5649 * x86-linux-nat.h: Likewise.
5650 * x86-linux-nat.c: Likewise.
5651 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5652 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5653 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5654 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5655 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5656 (PTRACE_SETREGSET): Likewise.
5657 (arch_lwp_info): Now in x86-linux-nat.c.
5658 (have_ptrace_getregset): Now in x86-linux-nat.h.
5659 (x86_linux_dr_get): Now in x86-linux-nat.c.
5660 (x86_linux_dr_set): Likewise.
5661 (x86_linux_dr_get_addr): Likewise.
5662 (x86_linux_dr_get_control): Likewise.
5663 (x86_linux_dr_get_status): Likewise.
5664 (update_debug_registers_callback): Likewise.
5665 (x86_linux_dr_set_control): Likewise.
5666 (x86_linux_dr_set_addr): Likewise.
5667 (x86_linux_prepare_to_resume): Likewise.
5668 (x86_linux_new_thread): Likewise.
5669 (x86_linux_new_fork): Likewise.
5670 (x86_linux_get_thread_area): Likewise.
5671 (super_post_startup_inferior): Likewise.
5672 (x86_linux_child_post_startup_inferior): Likewise.
5673 (AMD64_LINUX_USER64_CS): Likewise.
5674 (AMD64_LINUX_X32_DS): Likewise.
5675 (x86_linux_read_description): Likewise.
5676 (x86_linux_enable_btrace): Likewise.
5677 (x86_linux_disable_btrace): Likewise.
5678 (x86_linux_teardown_btrace): Likewise.
5679 (x86_linux_read_btrace): Likewise.
5680 (x86_linux_create_target): Likewise.
5681 (x86_linux_add_target): Likewise.
5682 * i386-linux-nat.c (x86-linux-nat.h): New include.
5683 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5684 (PTRACE_SETREGSET): Likewise.
5685 (arch_lwp_info): Now in x86-linux-nat.c.
5686 (have_ptrace_getregset): Now in x86-linux-nat.h.
5687 (x86_linux_dr_get): Now in x86-linux-nat.c.
5688 (x86_linux_dr_set): Likewise.
5689 (x86_linux_dr_get_addr): Likewise.
5690 (x86_linux_dr_get_control): Likewise.
5691 (x86_linux_dr_get_status): Likewise.
5692 (update_debug_registers_callback): Likewise.
5693 (x86_linux_dr_set_control): Likewise.
5694 (x86_linux_dr_set_addr): Likewise.
5695 (x86_linux_prepare_to_resume): Likewise.
5696 (x86_linux_new_thread): Likewise.
5697 (x86_linux_new_fork): Likewise.
5698 (x86_linux_get_thread_area): Likewise.
5699 (super_post_startup_inferior): Likewise.
5700 (x86_linux_child_post_startup_inferior): Likewise.
5701 (AMD64_LINUX_USER64_CS): Likewise.
5702 (AMD64_LINUX_X32_DS): Likewise.
5703 (x86_linux_read_description): Likewise.
5704 (x86_linux_enable_btrace): Likewise.
5705 (x86_linux_disable_btrace): Likewise.
5706 (x86_linux_teardown_btrace): Likewise.
5707 (x86_linux_read_btrace): Likewise.
5708 (x86_linux_create_target): Likewise.
5709 (x86_linux_add_target): Likewise.
5710
1aa7e42c
GB
57112014-07-11 Gary Benson <gbenson@redhat.com>
5712
5713 * amd64-linux-nat.c: Comment and whitespace changes.
5714 * i386-linux-nat.c: Comment and whitespace changes.
5715
c1e246a0
GB
57162014-07-11 Gary Benson <gbenson@redhat.com>
5717
5718 * amd64-linux-nat.c (x86_linux_create_target): New function.
5719 (x86_linux_add_target): Likewise.
5720 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5721 * i386-linux-nat.c (x86_linux_create_target): New function.
5722 (x86_linux_add_target): Likewise.
5723 (_initialize_i386_linux_nat): Delegate to the above new functions.
5724
8c420b8d
GB
57252014-07-11 Gary Benson <gbenson@redhat.com>
5726
5727 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5728 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5729 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5730 (ps_get_thread_area): Delegate to the above.
5731
cb1da100
GB
57322014-07-11 Gary Benson <gbenson@redhat.com>
5733
5734 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5735 x86_linux_read_description. All uses updated. amd64-specific
5736 code conditionalized. Conditionalized i386-specific code added.
5737 Redundant cast removed.
5738 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5739 x86_linux_read_description. All uses updated. i386-specific
5740 code conditionalized. Conditionalized amd64-specific code added.
5741 One sizeof replaced with the actual type it is describing.
5742
2acf3cd0
GB
57432014-07-11 Gary Benson <gbenson@redhat.com>
5744
5745 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5746 x86_linux_dr_get. All uses updated.
5747 (amd64_linux_dr_set): Renamed to
5748 x86_linux_dr_set. All uses updated.
5749 (amd64_linux_dr_get_addr): Renamed to
5750 x86_linux_dr_get_addr. All uses updated.
5751 (amd64_linux_dr_get_control): Renamed to
5752 x86_linux_dr_get_control. All uses updated.
5753 (amd64_linux_dr_get_status): Renamed to
5754 x86_linux_dr_get_status. All uses updated.
5755 (amd64_linux_dr_set_control): Renamed to
5756 x86_linux_dr_set_control. All uses updated.
5757 (amd64_linux_dr_set_addr): Renamed to
5758 x86_linux_dr_set_addr. All uses updated.
5759 (amd64_linux_prepare_to_resume): Renamed to
5760 x86_linux_prepare_to_resume. All uses updated.
5761 (amd64_linux_new_thread): Renamed to
5762 x86_linux_new_thread. All uses updated.
5763 (amd64_linux_new_fork): Renamed to
5764 x86_linux_new_fork. All uses updated.
5765 (amd64_linux_child_post_startup_inferior): Renamed to
5766 x86_linux_child_post_startup_inferior. All uses updated.
5767 (amd64_linux_enable_btrace): Renamed to
5768 x86_linux_enable_btrace. All uses updated.
5769 (amd64_linux_disable_btrace): Renamed to
5770 x86_linux_disable_btrace. All uses updated.
5771 (amd64_linux_teardown_btrace): Renamed to
5772 x86_linux_teardown_btrace. All uses updated.
5773 (amd64_linux_read_btrace): Renamed to
5774 x86_linux_read_btrace. All uses updated.
5775 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5776 x86_linux_dr_get. All uses updated.
5777 (i386_linux_dr_set): Renamed to
5778 x86_linux_dr_set. All uses updated.
5779 (i386_linux_dr_get_addr): Renamed to
5780 x86_linux_dr_get_addr. All uses updated.
5781 (i386_linux_dr_get_control): Renamed to
5782 x86_linux_dr_get_control. All uses updated.
5783 (i386_linux_dr_get_status): Renamed to
5784 x86_linux_dr_get_status. All uses updated.
5785 (i386_linux_dr_set_control): Renamed to
5786 x86_linux_dr_set_control. All uses updated.
5787 (i386_linux_dr_set_addr): Renamed to
5788 x86_linux_dr_set_addr. All uses updated.
5789 (i386_linux_prepare_to_resume): Renamed to
5790 x86_linux_prepare_to_resume. All uses updated.
5791 (i386_linux_new_thread): Renamed to
5792 x86_linux_new_thread. All uses updated.
5793 (i386_linux_new_fork): Renamed to
5794 x86_linux_new_fork. All uses updated.
5795 (i386_linux_child_post_startup_inferior): Renamed to
5796 x86_linux_child_post_startup_inferior. All uses updated.
5797 (i386_linux_enable_btrace): Renamed to
5798 x86_linux_enable_btrace. All uses updated.
5799 (i386_linux_disable_btrace): Renamed to
5800 x86_linux_disable_btrace. All uses updated.
5801 (i386_linux_teardown_btrace): Renamed to
5802 x86_linux_teardown_btrace. All uses updated.
5803 (i386_linux_read_btrace): Renamed to
5804 x86_linux_read_btrace. All uses updated.
5805
b9c1d481
AS
58062014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5807
5808 * remote.c (extended_remote_post_attach): New function.
5809 (init_extended_remote_ops): Install it as to_post_attach method.
5810
7180e04a
PA
58112014-07-09 Pedro Alves <palves@redhat.com>
5812
5813 * infcmd.c (attach_command_post_wait): Don't call
5814 target_terminal_inferior here.
5815 (attach_command): Call it here instead.
5816
9a9a7608
AB
58172014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5820 field.
5821 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5822 from varobj.c, with additional checks.
5823 (c_varobj_ops): Fill in is_path_expr_parent field.
5824 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5825 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5826 field.
5827 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5828 ops method.
5829 (varobj_default_is_path_expr_parent): New function.
5830 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5831 (varobj_default_is_path_expr_parent): Declare new function.
5832
1f267ae3
MM
58332014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5834
5835 * infcmd.c (finish_backward): Turn internal error into normal error.
5836
b2ee242b
PA
58372014-07-07 Pedro Alves <palves@redhat.com>
5838
8a869bca 5839 PR gdb/17096
b2ee242b
PA
5840 * remote.c (async_handle_remote_sigint)
5841 (async_handle_remote_sigint_twice): Call
5842 gdb_call_async_signal_handler instead of
5843 mark_async_signal_handler.
5844
38e229b2
TT
58452014-07-07 Tom Tromey <tromey@redhat.com>
5846
5847 * target-delegates.c: Rebuild.
5848 * target.c (target_info_record): Remove.
5849 * record.c (info_record_command): Unconditionally call
5850 to_info_record.
5851 * target.h (struct target_ops) <to_info_record>: Use
5852 TARGET_DEFAULT_IGNORE.
5853 (target_info_record): Remove.
5854
f0f9ff95
TT
58552014-07-07 Tom Tromey <tromey@redhat.com>
5856
5857 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5858 TARGET_DEFAULT_NORETURN.
5859 * target.c (generic_tls_error): New function.
5860 (target_translate_tls_address): Don't search target stack.
5861 * target-delegates.c: Rebuild.
5862 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5863 stack.
5864 * linux-thread-db.c (thread_db_get_thread_local_address):
5865 Unconditionally call beneath target.
5866
4a5be5ee
MK
58672014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5868
5869 * cli/cli-logging.c (pop_output_files): Assign targerr to
5870 gdb_stdtargerr.
5871
92c3b204
AB
58722014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * MAINTAINERS (Write After Approval): Update my email address.
5875
9b11e3a7
GB
58762014-07-02 Gary Benson <gbenson@redhat.com>
5877
5878 * proc-service.c (ps_xfer_memory): Update comment.
5879 (ps_pstop): Remove unused function.
5880 (ps_pcontinue): Likewise.
5881 (ps_lstop): Likewise.
5882 (ps_lcontinue): Likewise.
5883 (ps_lgetxregsize): Likewise.
5884 (ps_lgetxregs): Likewise.
5885 (ps_lsetxregs): Likewise.
5886 (ps_plog): Likewise.
5887 (ps_ptread): Likewise.
5888 (ps_ptwrite): Likewise.
5889
cf363f18
MW
58902014-07-01 Mark Wielaard <mjw@redhat.com>
5891
5892 * dwarf2read.c (add_array_cv_type): New function.
5893 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5894 (read_tag_volatile_type): Likewise.
5895
82ae6c8d
TT
58962014-07-01 Tom Tromey <tromey@redhat.com>
5897
5898 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5899 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5900 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5901 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5902 * command.h (cmd_cfunc_ftype): Move earlier.
5903 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5904 (add_com, add_info): Use cmd_cfunc_ftype.
5905
96142726
TT
59062014-06-30 Tom Tromey <tromey@redhat.com>
5907
5908 * symtab.c (operator_chars): Make parameters and return type
5909 const.
5910 (file_matches): Make "files" const.
5911 (struct search_symbols_data) <files>: Now const.
5912 (search_symbols): Make "regexp" and "files" parameters const.
5913 Update.
5914 (symtab_symbol_info): Remove cast.
5915 (rbreak_command): Update.
5916 * symtab.h (search_symbols): Update.
5917
b67a2c6f
YQ
59182014-06-27 Yao Qi <yao@codesourcery.com>
5919
5920 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5921 Change parameter type to 'struct thread_info *'. Caller
5922 updated.
5923 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5924 Update declaration.
5925 * dummy-frame.c (struct dummy_frame_id): New.
5926 (dummy_frame_id_eq): New function.
5927 (struct dummy_frame) <id>: Change its type to 'struct
5928 dummy_frame_id'.
5929 (dummy_frame_push): Add parameter ptid and save it in
5930 dummy_frame_id.
5931 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5932 inferior_ptid.
5933 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5934 to inferior_ptid.
5935 (lookup_dummy_frame): Change parameter type to 'struct
5936 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5937 instead of frame_id_eq.
5938 (dummy_frame_pop): Add parameter ptid. Callers updated.
5939 Update comments. Compose dummy_frame_id and pass it to
5940 lookup_dummy_frame.
5941 (dummy_frame_discard): Add parameter ptid.
5942 (dummy_frame_sniffer): Compose dummy_frame_id and call
5943 dummy_frame_id_eq instead of frame_id_eq.
5944 (fprint_dummy_frames): Print ptid.
5945 * dummy-frame.h: Remove comments.
5946 (dummy_frame_push): Add ptid in declaration.
5947 (dummy_frame_pop, dummy_frame_discard): Likewise.
5948
5b10184c
TT
59492014-06-26 Tom Tromey <tromey@redhat.com>
5950
5951 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5952 * command.h (error_no_arg): Update.
5953
06900326
TT
59542014-06-26 Tom Tromey <tromey@redhat.com>
5955
5956 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5957 (do_show_command): Make "arg" const.
5958 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5959
c2bcbb1d
TT
59602014-06-26 Tom Tromey <tromey@redhat.com>
5961
5962 * record-full.c (record_full_get_bookmark): Make "args" const.
5963 (record_full_goto_bookmark): Make "raw_bookmark" const.
5964 * record.c (record_goto): New function.
5965 (cmd_record_goto): Use it. Now static.
5966 * record.h (record_goto): Declare.
5967 (cmd_record_goto): Remove declaration.
5968 * target-delegates.c: Rebuild.
5969 * target.h (struct target_ops) <to_get_bookmark,
5970 to_goto_bookmark>: Make parameter const.
5971
9cbe5fff
TT
59722014-06-26 Tom Tromey <tromey@redhat.com>
5973
5974 * defs.h (generic_load): Update.
5975 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5976 * monitor.c (monitor_load): Make "args" const.
5977 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5978 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5979 const.
5980 (mips_load): Make "file" const.
5981 * remote-sim.c (gdbsim_load): Make "args" const.
5982 * remote.c (remote_load): Make "name" const.
5983 * symfile.c (generic_load): Make "args" const.
5984 * target-delegates.c: Rebuild.
5985 * target.c (target_load): Make "arg" const.
5986 (debug_to_load): Make "args" const.
5987 * target.h (struct target_ops) <to_load>: Make parameter const.
5988 (target_load): Update.
5989
34a68019
TT
59902014-06-26 Tom Tromey <tromey@redhat.com>
5991
5992 PR symtab/16902:
5993 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5994 (dwarf2_physname, read_partial_die)
5995 (guess_partial_die_structure_name, fixup_partial_die)
5996 (guess_full_die_structure_name, anonymous_struct_prefix)
5997 (dwarf2_name): Use per-BFD obstack.
5998
efc889c1
YQ
59992014-06-26 Yao Qi <yao@codesourcery.com>
6000
6001 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6002 dummyframe and this_id into inner block below.
6003
4395285e
YQ
60042014-06-26 Yao Qi <yao@codesourcery.com>
6005
6006 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6007 with "signal_pass[0]" in the initialization of signal_pass.
6008
aef92902
MM
60092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6010
6011 * record-btrace.c (record_btrace_generating_corefile)
6012 (record_btrace_prepare_to_generate_core)
6013 (record_btrace_done_generating_core): New.
6014 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6015 (record_btrace_store_registers, record_btrace_prepare_to_store):
6016 Forward request when generating a core file.
6017 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6018 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6019 to_done_generating_core.
6020
5fff78c4
MM
60212014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6022
6023 * target.h (target_ops) <to_prepare_to_generate_core>
6024 <to_done_generating_core>: New.
6025 (target_prepare_to_generate_core, target_done_generating_core): New.
6026 * target.c (target_prepare_to_generate_core)
6027 (target_done_generating_core): New.
6028 * target-delegates.c: Regenerate.
6029 * gcore.c: (write_gcore_file): Rename to ...
6030 (write_gcore_file_1): ...this.
6031 (write_gcore_file): Call target_prepare_to_generate_core
6032 and target_done_generating_core.
6033
1d1f1ccb
MM
60342014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6035
6036 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6037 * gcore.c (write_gcore_file): Free memory returned from
6038 make_corefile_notes.
6039 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6040 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6041
3343ef86
YQ
60422014-06-24 Yao Qi <yao@codesourcery.com>
6043
6044 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6045 (arm_linux_init_abi): Set skip_trampoline_code with
6046 gdbarch_skip_trampoline_code instead of
6047 find_solib_trampoline_target.
6048
18d18ac8
YQ
60492014-06-24 Yao Qi <yao@codesourcery.com>
6050
6051 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6052 arm_skip_bx_reg returns non-zero.
6053
80d8d390
YQ
60542014-06-24 Yao Qi <yao@codesourcery.com>
6055
6056 * arm-tdep.c (arm_skip_bx_reg): New function.
6057 (arm_skip_stub): Call arm_skip_bx_reg.
6058
6a18a01c
DB
60592014-06-23 Don Breazeal <donb@codesourcery.com>
6060
6061 * MAINTAINERS: Add myself as write-after-approval maintainer.
6062
8e9db26e
PA
60632014-06-23 Pedro Alves <palves@redhat.com>
6064
6065 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6066 DR_CONTROL before setting DR0..DR3.
6067 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6068 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6069 bits of DR_CONTROL related to the debug register slot being
6070 disabled. If all slots are vacant, clear local slowdown as well,
6071 and assert DR_CONTROL is 0.
6072
70afc5b7
SC
60732014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6074
6075 * python/lib/gdb/command/xmethods.py
6076 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6077 current progspace only if the string "progspace" matches LOCUS_RE.
6078
840ed64d
JK
60792014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6080
6081 Fix --with-system-readline with readline-6.3 patch 5.
6082 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6083 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6084 types.
6085
26f2dc30
TT
60862014-06-20 Tom Tromey <tromey@redhat.com>
6087
6088 * dwarf2read.c (dw2_get_real_path): Use correct type in
6089 OBSTACK_CALLOC.
6090 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6091
125f8a3d
GB
60922014-06-20 Gary Benson <gbenson@redhat.com>
6093
6094 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6095 * common/glibc_thread_db.h: Likewise.
6096 * common/i386-cpuid.h: Likewise.
6097 * common/i386-gcc-cpuid.h: Likewise.
6098 * common/linux-btrace.h: Likewise.
6099 * common/linux-osdata.h: Likewise.
6100 * common/linux-procfs.h: Likewise.
6101 * common/linux-ptrace.h: Likewise.
6102 * common/mips-linux-watch.h: Likewise.
6103 * common/linux-btrace.c: Moved to nat.
6104 * common/linux-osdata.c: Likewise.
6105 * common/linux-procfs.c: Likewise.
6106 * common/linux-ptrace.c: Likewise.
6107 * common/mips-linux-watch.c: Likewise.
6108 * nat/gdb_thread_db.h: Moved from common.
6109 * nat/glibc_thread_db.h: Likewise.
6110 * nat/i386-cpuid.h: Likewise.
6111 * nat/i386-gcc-cpuid.h: Likewise.
6112 * nat/linux-btrace.c: Likewise.
6113 * nat/linux-btrace.h: Likewise.
6114 * nat/linux-osdata.c: Likewise.
6115 * nat/linux-osdata.h: Likewise.
6116 * nat/linux-procfs.c: Likewise.
6117 * nat/linux-procfs.h: Likewise.
6118 * nat/linux-ptrace.c: Likewise.
6119 * nat/linux-ptrace.h: Likewise.
6120 * nat/mips-linux-watch.c: Likewise.
6121 * nat/mips-linux-watch.h: Likewise.
6122 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6123 (object file files): Reordered.
6124 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6125 of glibc_thread_db.h.
6126
42995dbd
GB
61272014-06-20 Gary Benson <gbenson@redhat.com>
6128
6129 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6130 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6131 (i386_dr_low): Likewise.
6132 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6133 (i386_dr_low_set_addr): Likewise.
6134 (i386_dr_low_get_addr): Likewise.
6135 (i386_dr_low_can_set_control): Likewise.
6136 (i386_dr_low_set_control): Likewise.
6137 (i386_dr_low_get_control): Likewise.
6138 (i386_dr_low_get_status): Likewise.
6139 (i386_get_debug_register_length): Likewise.
6140 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6141 (i386_dr_low): Likewise.
6142 * nat/i386-dregs.c (i386-low.h): Remove include.
6143 (i386-nat.h): Likewise.
6144 (nat/i386-dregs.h): New include.
6145 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6146 (i386_dr_low_set_addr): Likewise.
6147 (i386_dr_low_get_addr): Likewise.
6148 (i386_dr_low_can_set_control): Likewise.
6149 (i386_dr_low_set_control): Likewise.
6150 (i386_dr_low_get_control): Likewise.
6151 (i386_dr_low_get_status): Likewise.
6152 (i386_get_debug_register_length): Likewise.
6153 (debug_hw_points): Likewise.
6154
3ed9baed
IB
61552014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6156
6157 * Makefile.in (SFILES): Add d-exp.y.
6158 (YYFILES): Add d-exp.c.
6159 (YYOBJ): Add d-exp.o.
6160 (local-maintainer-clean): Delete d-exp.c.
6161 * d-exp.y: New file.
6162 * d-lang.h (d_parse): New declaration.
6163 (d_error): New declaration.
6164 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6165 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6166 PREC_ORDER operators.
6167 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6168
78c164b0
YQ
61692014-06-19 Yao Qi <yao@codesourcery.com>
6170
6171 * gdbthread.h (any_running): Remove the declaration.
6172 * thread.c (any_running): Remove.
6173
f6e29b6e
YQ
61742014-06-19 Yao Qi <yao@codesourcery.com>
6175
6176 * gdbthread.h (struct thread_info) <state>: Change its type to
6177 'enum thread_state'. Update comments.
6178
034f788c
PA
61792014-06-19 Pedro Alves <palves@redhat.com>
6180
6181 * gdbthread.h (ALL_THREADS): Delete.
6182 (ALL_NON_EXITED_THREADS): New macro.
6183 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6184 instead of ALL_THREADS.
6185 * infrun.c (find_thread_needs_step_over)
6186 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6187 instead of ALL_THREADS.
6188 * record-btrace.c (record_btrace_open)
6189 (record_btrace_stop_recording, record_btrace_close)
6190 (record_btrace_is_replaying, record_btrace_resume)
6191 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6192 * remote.c (append_pending_thread_resumptions): Likewise.
6193 * thread.c (thread_apply_all_command): Likewise.
6194
46e33252
GB
61952014-06-19 Gary Benson <gbenson@redhat.com>
6196
6197 * i386-nat.c (i386_stopped_by_watchpoint):
6198 Use i386_dr_stopped_by_watchpoint.
6199 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6200 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6201
3a8ee006
GB
62022014-06-19 Gary Benson <gbenson@redhat.com>
6203
6204 * nat/i386-dregs.c: New file.
6205 * Makefile.in (i386-dregs.o): New rule.
6206 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6207 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6208 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6209 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6210 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6211 * config/i386/go32.mh (NATDEPFILES): Likewise.
6212 * config/i386/linux.mh (NATDEPFILES): Likewise.
6213 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6214 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6215 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6216 * i386-nat.h (debug_hw_points): New declaration.
6217 * i386-nat.c (breakpoint.h): Remove include.
6218 (command.h): Likewise.
6219 (target.h): Likewise.
6220 (gdb_assert.h): Likewise.
6221 (debug_hw_points): Made nonstatic.
6222 (debug_printf): Now in i386-dregs.c.
6223 (TARGET_HAS_DR_LEN_8): Likewise.
6224 (DR_CONTROL_SHIFT): Likewise.
6225 (DR_CONTROL_SIZE): Likewise.
6226 (DR_RW_EXECUTE): Likewise.
6227 (DR_RW_WRITE): Likewise.
6228 (DR_RW_READ): Likewise.
6229 (DR_RW_IORW): Likewise.
6230 (DR_LEN_1): Likewise.
6231 (DR_LEN_2): Likewise.
6232 (DR_LEN_4): Likewise.
6233 (DR_LEN_8): Likewise.
6234 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6235 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6236 (DR_ENABLE_SIZE): Likewise.
6237 (DR_LOCAL_SLOWDOWN): Likewise.
6238 (DR_GLOBAL_SLOWDOWN): Likewise.
6239 (DR_CONTROL_RESERVED): Likewise.
6240 (I386_DR_CONTROL_MASK): Likewise.
6241 (I386_DR_VACANT): Likewise.
6242 (I386_DR_LOCAL_ENABLE): Likewise.
6243 (I386_DR_GLOBAL_ENABLE): Likewise.
6244 (I386_DR_DISABLE): Likewise.
6245 (I386_DR_SET_RW_LEN): Likewise.
6246 (I386_DR_GET_RW_LEN): Likewise.
6247 (I386_DR_WATCH_HIT): Likewise.
6248 (i386_wp_op_t): Likewise.
6249 (i386_show_dr): Likewise.
6250 (i386_length_and_rw_bits): Likewise.
6251 (i386_insert_aligned_watchpoint): Likewise.
6252 (i386_remove_aligned_watchpoint): Likewise.
6253 (i386_handle_nonaligned_watchpoint): Likewise.
6254 (i386_update_inferior_debug_regs): Likewise.
6255 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6256 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6257 (i386_region_ok_for_watchpoint):
6258 Use i386_dr_region_ok_for_watchpoint.
6259 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6260
322a8e06
GB
62612014-06-19 Gary Benson <gbenson@redhat.com>
6262
6263 * i386-nat.c (i386_insert_hw_breakpoint): Use
6264 i386_insert_watchpoint.
6265 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6266
8f26655c
GB
62672014-06-19 Gary Benson <gbenson@redhat.com>
6268
6269 * i386-nat.c (i386_dr_show): Renamed to
6270 i386_show_dr and made static. All uses updated.
6271 (i386_dr_length_and_rw_bits): Renamed to
6272 i386_length_and_rw_bits and made static.
6273 All uses updated.
6274 (i386_dr_insert_aligned_watchpoint): Renamed to
6275 i386_insert_aligned_watchpoint and made static.
6276 All uses updated.
6277 (i386_dr_remove_aligned_watchpoint): Renamed to
6278 i386_remove_aligned_watchpoint and made static.
6279 All uses updated.
6280 (i386_dr_update_inferior_debug_regs): Renamed to
6281 i386_update_inferior_debug_regs and made static.
6282 All uses updated.
6283 * nat/i386-dregs.h (i386_dr_show): Removed.
6284 (i386_dr_length_and_rw_bits): Likewise.
6285 (i386_dr_insert_aligned_watchpoint): Likewise.
6286 (i386_dr_remove_aligned_watchpoint): Likewise.
6287 (i386_dr_update_inferior_debug_regs): Likewise.
6288
992c7d70
GB
62892014-06-19 Gary Benson <gbenson@redhat.com>
6290
6291 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6292 * configure: Regenerate.
6293 * config.in: Likewise.
6294 * main.c (signal.h): New include.
6295 (setup_alternate_signal_stack): New function.
6296 (captured_main): Call the above.
6297 * cp-support.c (signal.h): New include.
6298 (catch_demangler_crashes): New flag.
6299 (SIGJMP_BUF): New define.
6300 (SIGSETJMP): Likewise.
6301 (SIGLONGJMP): Likewise.
6302 (gdb_demangle_jmp_buf): New static global.
6303 (gdb_demangle_attempt_core_dump): Likewise.
6304 (gdb_demangle_signal_handler): New function.
6305 (gdb_demangle): If catch_demangler_crashes is set, install the
6306 above signal handler before calling bfd_demangle, and restore
6307 the original signal handler afterwards. Display the offending
6308 symbol and call demangler_warning the first time a segmentation
6309 fault is caught.
6310 (_initialize_cp_support): New maint set/show command.
6311
eae7090b
GB
63122014-06-19 Gary Benson <gbenson@redhat.com>
6313
6314 * utils.h (resource_limit_kind): New enum.
6315 (can_dump_core): New declaration.
6316 (warn_cant_dump_core): Likewise.
6317 (dump_core): Likewise.
6318 * utils.c (dump_core): Made nonstatic. Added new
6319 parameter "limit_kind".
6320 (can_dump_core): Made nonstatic. Moved printing code to...
6321 (warn_cant_dump_core): New function.
6322 (can_dump_core_warn): Likewise.
6323 (internal_vproblem): Replace calls to can_dump_core with
6324 calls to can_dump_core_warn. Supply new argument to each.
6325
57fcfb1b
GB
63262014-06-19 Gary Benson <gbenson@redhat.com>
6327
6328 * utils.h (demangler_vwarning): New declaration.
6329 (demangler_warning): Likewise.
6330 * utils.c (struct internal_problem)
6331 <user_settable_should_quit>: New field.
6332 <user_settable_should_dump_core>: Likewise
6333 (internal_error_problem): Add values for above new fields.
6334 (internal_warning_problem): Likewise.
6335 (demangler_warning_problem): New static global.
6336 (demangler_vwarning): New function.
6337 (demangler_warning): Likewise.
6338 (add_internal_problem_command): Selectively add commands.
6339 (_initialize_utils): New internal problem command.
6340 * maint.c (maintenance_demangler_warning): New function.
6341 (_initialize_maint_cmds): New command.
6342
17a40b44
TT
63432014-06-18 Tom Tromey <tromey@redhat.com>
6344
6345 * f-valprint.c (info_common_command_for_block): Update.
6346 * symtab.h (struct general_symbol_info) <common_block>: Now
6347 const.
6348
346d1dfe
TT
63492014-06-18 Tom Tromey <tromey@redhat.com>
6350
6351 * symtab.h (struct symtab) <blockvector>: Now const.
6352 * ada-lang.c (ada_add_global_exceptions): Update.
6353 * buildsym.c (augment_type_symtab): Update.
6354 * dwarf2read.c (dw2_lookup_symbol): Update.
6355 * jit.c (finalize_symtab): Update.
6356 * jv-lang.c (add_class_symtab_symbol): Update.
6357 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6358 Update.
6359 * objfiles.c (objfile_relocate1): Update.
6360 * psymtab.c (lookup_symbol_aux_psymtabs)
6361 (maintenance_check_psymtabs): Update.
6362 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6363 Update.
6364 * spu-tdep.c (spu_catch_start): Update.
6365 * symmisc.c (dump_symtab_1): Update.
6366 * symtab.c (lookup_global_symbol_from_objfile)
6367 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6368 (basic_lookup_transparent_type_quick)
6369 (basic_lookup_transparent_type, find_pc_sect_symtab)
6370 (find_pc_sect_line, search_symbols): Update.
6371 * block.c (find_block_in_blockvector): Make "bl" const.
6372 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6373 const.
6374 (blockvector_contains_pc): Make "bv" const.
6375 (block_for_pc_sect): Update.
6376 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6377 (blockvector_contains_pc): Update.
6378 * breakpoint.c (resolve_sal_pc): Update.
6379 * inline-frame.c (block_starting_point_at): Update.
6380
1834676b
TT
63812014-06-18 Tom Tromey <tromey@redhat.com>
6382
6383 * completer.c (complete_line): Make "line_buffer" const.
6384 * completer.h (complete_line): Update.
6385
ac1a991b
TT
63862014-06-18 Tom Tromey <tromey@redhat.com>
6387
6388 * symtab.c (add_macro_name): Remove unneeded cast.
6389
5bc98e52
TT
63902014-06-18 Tom Tromey <tromey@redhat.com>
6391
6392 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6393 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6394
8236def8
TT
63952014-06-18 Tom Tromey <tromey@redhat.com>
6396
6397 * probe.c (info_probes_for_ops): Make "arg" const.
6398 * probe.h (info_probes_for_ops): Update.
6399
3977b71f
TT
64002014-06-18 Tom Tromey <tromey@redhat.com>
6401
6402 * varobj.c (varobj_create): Update.
6403 * valops.c (value_of_this): Update.
6404 * tracepoint.c (add_local_symbols, scope_info): Update.
6405 * symtab.h (struct general_symbol_info) <block>: Now const.
6406 * symtab.c (skip_prologue_sal)
6407 (default_make_symbol_completion_list_break_on)
6408 (skip_prologue_using_sal): Update.
6409 * stack.h (iterate_over_block_locals)
6410 (iterate_over_block_local_vars): Update.
6411 * stack.c (print_frame_args): Update.
6412 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6413 parameter const.
6414 (get_selected_block): Make return type const.
6415 * python/py-frame.c (frapy_block): Update.
6416 * python/py-block.c (gdbpy_block_for_pc): Update.
6417 * p-exp.y (%union) <bval>: Now const.
6418 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6419 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6420 * m2-exp.y (%union) <bval>: Now const.
6421 * linespec.c (get_current_search_block): Make return type const.
6422 (create_sals_line_offset, find_label_symbols): Update.
6423 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6424 Update.
6425 (block_starting_point_at): Make "block" const.
6426 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6427 (check_exception_resume): Update.
6428 * guile/scm-frame.c (gdbscm_frame_block): Update.
6429 * guile/scm-block.c (gdbscm_lookup_block): Update.
6430 * frame.h (get_frame_block): Update.
6431 (get_selected_block): Make return type const.
6432 * frame.c (frame_id_inner): Update.
6433 * f-valprint.c (info_common_command_for_block)
6434 (info_common_command): Update.
6435 * dwarf2loc.c (dwarf2_find_location_expression)
6436 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6437 (locexpr_describe_location_piece): Update.
6438 * c-exp.y (%union) <bval>: Now const.
6439 * breakpoint.c (resolve_sal_pc): Update.
6440 * blockframe.c (get_frame_block):Make return type const.
6441 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6442 (block_innermost_frame): Update.
6443 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6444 (block_for_pc, block_for_pc_sect): Update.
6445 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6446 'pblock' const.
6447 (block_for_pc_sect, block_for_pc): Make return type const.
6448 * ax-gdb.c (gen_expr): Update.
6449 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6450 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6451 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6452 (ada_read_var_value): Update.
6453 * ada-exp.y (struct name_info) <block>: Now const.
6454 (%union): Likewise.
6455 (block_lookup): Constify.
6456
b9228891
GB
64572014-06-18 Gary Benson <gbenson@redhat.com>
6458
6459 * nat/i386-dregs.h: New file.
6460 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6461 * i386-nat.h (i386-dregs.h): New include.
6462 (DR_FIRSTADDR): Now in i386-dregs.h.
6463 (DR_LASTADDR): Likewise.
6464 (DR_NADDR): Likewise.
6465 (DR_STATUS): Likewise.
6466 (DR_CONTROL): Likewise.
6467 (i386_debug_reg_state): Likewise.
6468 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6469
a1aa2221
LM
64702014-06-18 Don Breazeal <donb@codesourcery.com>
6471
6472 * breakpoint.c (set_longjmp_breakpoint): Call
6473 momentary_breakpoint_from_master with additional argument.
6474 (set_longjmp_breakpoint_for_call_dummy): Call
6475 momentary_breakpoint_from_master with additional argument.
6476 (set_std_terminate_breakpoint): Call
6477 momentary_breakpoint_from_master with additional argument.
6478 (momentary_breakpoint_from_master): Add argument to function
6479 definition and use it to initialize structure member flag.
74228e77 6480 (clone_momentary_breakpoint): Call
a1aa2221
LM
6481 momentary_breakpoint_from_master with additional argument.
6482 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6483 member flags set in momentary_breakpoint_from_master.
6484
4be83cc2
GB
64852014-06-18 Gary Benson <gbenson@redhat.com>
6486
6487 * i386-nat.c (i386_show_dr): Renamed to
6488 i386_dr_show and made nonstatic. All uses updated.
6489 (i386_length_and_rw_bits): Renamed to
6490 i386_dr_length_and_rw_bits and made nonstatic.
6491 All uses updated.
6492 (i386_insert_aligned_watchpoint): Renamed to
6493 i386_dr_insert_aligned_watchpoint and made nonstatic.
6494 All uses updated.
6495 (i386_remove_aligned_watchpoint): Renamed to
6496 i386_dr_remove_aligned_watchpoint and made nonstatic.
6497 All uses updated.
6498 (i386_update_inferior_debug_regs): Renamed to
6499 i386_dr_update_inferior_debug_regs and made nonstatic.
6500 All uses updated.
6501
131aa0d4
GB
65022014-06-18 Gary Benson <gbenson@redhat.com>
6503
6504 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6505 (i386_dr_low_can_set_control): Likewise.
6506 (i386_dr_low_set_addr): Likewise.
6507 (i386_dr_low_set_control): Likewise.
6508 (i386_dr_low_get_addr): Likewise.
6509 (i386_dr_low_get_status): Likewise.
6510 (i386_dr_low_get_control): Likewise.
6511 (i386_insert_aligned_watchpoint): Use new macros.
6512 (i386_update_inferior_debug_regs): Likewise.
6513 (i386_stopped_data_address): Likewise.
6514
d9305f7f
GB
65152014-06-18 Gary Benson <gbenson@redhat.com>
6516
6517 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6518 New parameter. All uses updated.
6519
ea008da4
GB
65202014-06-18 Gary Benson <gbenson@redhat.com>
6521
6522 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6523 All uses updated.
6524
1b6d4134
GB
65252014-06-18 Gary Benson <gbenson@redhat.com>
6526
6527 * i386-nat.c (debug_printf): New macro.
6528 (i386_get_debug_register_length): Likewise.
6529 (TARGET_HAS_DR_LEN_8): Use above macro.
6530 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6531 and printf_unfiltered. Use phex to format values.
6532
9b4550ef
GB
65332014-06-18 Gary Benson <gbenson@redhat.com>
6534
6535 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6536 Make const.
6537
6e62758f
GB
65382014-06-18 Gary Benson <gbenson@redhat.com>
6539
6540 * i386-nat.c: Comment changes.
6541
51c79e94
GB
65422014-06-18 Gary Benson <gbenson@redhat.com>
6543
6544 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6545
3e11889a
GB
65462014-06-18 Gary Benson <gbenson@redhat.com>
6547
6548 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6549 (i386_insert_aligned_watchpoint): Likewise.
6550 (i386_remove_aligned_watchpoint): Likewise.
6551 (i386_handle_nonaligned_watchpoint): Likewise.
6552
fc6e2f03
GB
65532014-06-18 Gary Benson <gbenson@redhat.com>
6554
6555 * i386-nat.c: Whitespace changes.
6556
2afe7d50
SB
65572014-06-17 Samuel Bronson <naesten@gmail.com>
6558
6559 * MAINTAINERS: Update Roland McGrath's email address.
6560 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6561 Red Hat a while ago, and giving me a current address.
2afe7d50 6562
3bca49ee
TT
65632014-06-17 Tom Tromey <tromey@redhat.com>
6564
6565 * utils.h (savestring): Remove declaration.
6566
6e366df1
TT
65672014-06-17 Tom Tromey <tromey@redhat.com>
6568
6569 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6570
6be47f0c
KS
65712014-06-16 Keith Seitz <keiths@redhat.com>
6572
6573 PR mi/15863
6574 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6575 to update the varobj if inferior_ptid is null_ptid.
6576
7bc112c1
TT
65772014-06-16 Tom Tromey <tromey@redhat.com>
6578
6579 * target.h (struct target_ops) <to_info_proc>: Make parameter
6580 const.
6581 (target_info_proc): Update.
6582 * target.c (target_info_proc): Make "args" const.
6583 * procfs.c (procfs_info_proc): Update.
6584 * linux-tdep.c (linux_info_proc): Update.
6585 (linux_core_info_proc_mappings): Make "args" const.
6586 (linux_core_info_proc): Update.
6587 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6588 * gdbarch.c: Rebuild.
6589 * gdbarch.h: Rebuild.
6590 * corelow.c (core_info_proc): Update.
6591
fee354ee
TT
65922014-06-16 Tom Tromey <tromey@redhat.com>
6593
6594 * target.h (struct target_ops) <to_disconnect>: Make parameter
6595 const.
6596 (target_disconnect): Update.
6597 * target.c (target_disconnect): Make "args" const.
6598 * target-delegates.c: Rebuild.
6599 * remote.c (remote_disconnect): Update.
6600 * record.h (record_disconnect): Update.
6601 * record.c (record_disconnect): Update.
6602 * inf-child.c (inf_child_disconnect): Update.
6603
a30bf1f1
TT
66042014-06-16 Tom Tromey <tromey@redhat.com>
6605
6606 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6607 * target.c (debug_to_rcmd, default_rcmd): Update.
6608 * target-delegates.c: Rebuild.
6609 * remote.c (remote_rcmd): Update.
6610 * monitor.c (monitor_rcmd): Update.
6611
d03de421
PA
66122014-06-16 Pedro Alves <palves@redhat.com>
6613
6614 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6615 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6616 have OBJF_SHARED set.
6617 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6618 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6619 instead of OBJF_USERLOADED.
6620 * objfiles.h (OBJF_SHARED): Update comment.
6621 (userloaded_objfile_contains_address_p): Rename to ...
6622 (shared_objfile_contains_address_p): ... this, and update
6623 comments.
6624 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6625 new objfile.
6626 (remove_symbol_file_command): Skip objfiles that don't have
6627 OBJF_SHARED set.
6628
99f4262f
TT
66292014-06-16 Tom Tromey <tromey@redhat.com>
6630
6631 * minsyms.h (prim_record_minimal_symbol)
6632 (prim_record_minimal_symbol_and_info): Update comments.
6633
97d66cc6
EZ
66342014-06-14 Eli Zaretskii <eliz@gnu.org>
6635
6636 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6637 or --without-guile, according to how GDB was built.
6638
635c7e8a
TT
66392014-06-13 Tom Tromey <tromey@redhat.com>
6640
6641 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6642 to help_list.
6643 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6644 to help_list.
6645 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6646 help_list.
6647 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6648 help_list.Pass all_commands, not -1, to help_list.
6649 * cli/cli-dump.c (dump_command, append_command)
6650 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6651 (binary_dump_command, binary_append_command): Pass all_commands,
6652 not -1, to help_list.
6653 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6654 -1, to help_list.
6655 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6656 -1, to help_list.
6657 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6658 help_list.
6659 * top.c (set_history): Pass all_commands, not -1, to help_list.
6660 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6661 all_commands, not -1, to help_list.
6662 * symfile.c (overlay_command): Pass all_commands, not -1, to
6663 help_list.
6664 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6665 help_list.
6666 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6667 help_list.
6668 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6669 -1, to help_list.
6670 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6671 not -1, to help_list.
6672 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6673 not -1, to help_list.
6674 * maint.c (maintenance_command, maintenance_info_command)
6675 (maintenance_print_command, maintenance_set_cmd): Pass
6676 all_commands, not -1, to help_list.
6677 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6678 help_list.
6679 * language.c (set_check): Pass all_commands, not -1, to help_list.
6680 * infcmd.c (unset_command): Pass all_commands, not -1, to
6681 help_list.
6682 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6683 help_list.
6684 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6685 help_list.
6686 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6687 help_list.
6688 * breakpoint.c (save_command): Pass all_commands, not -1, to
6689 help_list.
6690 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6691 all_commands, not -1, to help_list.
6692
b94ade42
PL
66932014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6694
6695 * regcache.c (struct register_to_invalidate): New structure.
6696 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6697 functions.
6698 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6699
31f628ae
YQ
67002014-06-12 Yao Qi <yao@codesourcery.com>
6701
6702 * varobj.c (varobj_get_num_children): Call
6703 varobj_is_dynamic_p.
6704 (varobj_list_children): Likewise.
6705 (varobj_update): Likewise. Update comments.
6706
cde5ef40
YQ
67072014-06-12 Yao Qi <yao@codesourcery.com>
6708
6709 * varobj.c (varobj_pretty_printed_p): Rename to ...
6710 (varobj_is_dynamic_p): ... this. New function.
6711 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6712 (varobj_is_dynamic_p): Declare.
6713 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6714 (mi_print_value_p, varobj_update_one): Likewise.
6715
576ea091
YQ
67162014-06-12 Pedro Alves <pedro@codesourcery.com>
6717 Yao Qi <yao@codesourcery.com>
6718
6719 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6720 (varobj_get_iterator): Wrap up code for pretty-printer by
6721 "#if HAVE_PYTHON" and "#endif".
6722 (update_dynamic_varobj_children): Likewise.
6723
827f100c
YQ
67242014-06-12 Pedro Alves <pedro@codesourcery.com>
6725 Yao Qi <yao@codesourcery.com>
6726
6727 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6728 gdb_python_initialized is false. Move some code from varobj.c.
6729 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6730 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6731 (struct varobj_item): Moved to varobj-iter.h".
6732 (varobj_clear_saved_item): New function.
6733 (update_dynamic_varobj_children): Move python-related code to
6734 py-varobj.c.
6735 (free_variable): Call varobj_clear_saved_item and
6736 varobj_iter_delete.
6737
e5250216
YQ
67382014-06-12 Pedro Alves <pedro@codesourcery.com>
6739 Yao Qi <yao@codesourcery.com>
6740
6741 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6742 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6743 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6744 (py-varobj.o): New rule.
6745 * python/py-varobj.c: New file.
6746 * python/python-internal.h (py_varobj_get_iterator): Declare.
6747 * varobj-iter.h: New file.
6748 * varobj.c: Include "varobj-iter.h"
6749 (struct varobj) <child_iter>: Change its type from "PyObject *"
6750 to "struct varobj_iter *".
6751 <saved_item>: Likewise.
6752 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6753 [HAVE_PYTHON] (varobj_get_iterator): New function.
6754 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6755 python-specific code to python/py-varobj.c.
6756 (install_visualizer): Call varobj_iter_delete instead of
6757 Py_XDECREF.
6758 * varobj.h (varobj_ensure_python_env): Declare.
6759
5a2e0d6e
YQ
67602014-06-12 Yao Qi <yao@codesourcery.com>
6761
6762 * varobj.c (struct varobj_item): New structure.
6763 (create_child_with_value): Update declaration.
6764 (varobj_add_child): Replace arguments 'name' and 'value' with
6765 'item'. All callers updated.
6766 (install_dynamic_child): Likewise.
6767 (update_dynamic_varobj_children): Likewise.
6768 (varobj_add_child): Likewise.
6769 (create_child_with_value): Likewise.
6770
919b9a93
JB
67712014-06-11 Joel Brobecker <brobecker@adacore.com>
6772
6773 * NEWS: Create a new section for the next release branch.
6774 Rename the section of the current branch, now that it has
6775 been cut.
6776
71a55bdf
JB
67772014-06-11 Joel Brobecker <brobecker@adacore.com>
6778
6779 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6780 * version.in: Bump version to 7.8.50.DATE-cvs.
6781
364fe1f7
PA
67822014-06-11 Pedro Alves <palves@redhat.com>
6783
6784 PR remote/17028
6785 * ser-mingw.c (net_windows_socket_check_pending): New function.
6786 (net_windows_select_thread): Ignore spurious wakeups. Use
6787 net_windows_socket_check_pending.
6788 (net_windows_wait_handle): Check for pending events with
6789 ioctlsocket, through net_windows_socket_check_pending, instead of
6790 checking the socket's event.
6791
5a6c7709
SC
67922014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6793
6794 * python/python-internal.h (gdb_PyObject_GetAttrString)
6795 (gdb_PyObject_HasAttrString): New inline function definitions.
6796 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6797 char * of the second argument to PyObject_GetAttrString.
74228e77 6798
0e58ee40
JB
67992014-06-10 Joel Brobecker <brobecker@adacore.com>
6800
6801 * serial.c (serial_write): Fix index of character to be printed
6802 in call to serial_logchar when serial debug traces are enabled.
6803
d190df30
JB
68042014-06-10 Joel Brobecker <brobecker@adacore.com>
6805
6806 * gdbtypes (resolve_dynamic_range): Add function description.
6807
b4b01d36
PA
68082014-06-09 Pedro Alves <palves@redhat.com>
6809
6810 * linux-nat.c (linux_child_follow_fork): Initialize status with
6811 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6812 inner block. Only pass the signal to PTRACE_DETACH if in pass
6813 state.
6814
3657956b
GB
68152014-06-09 Gary Benson <gbenson@redhat.com>
6816
6817 * common/signals.c (gdb_signal_from_host): Reorder to separate
6818 the always-available ANSI-standard signals from the signals that
6819 require checking.
6820 (do_gdb_signal_to_host): Likewise.
6821 * proc-events.c (signal_table): Likewise.
6822
c077881a
HZ
68232014-06-08 Hui Zhu <hui@codesourcery.com>
6824
6825 * common/linux-ptrace.c (linux_disable_event_reporting): New
6826 function.
6827 * common/linux-ptrace.h (linux_disable_event_reporting): New
6828 declaration.
6829 * linux-nat.c (linux_child_follow_fork): Do a single step before
6830 detach.
6831
4186eb54
KS
68322014-06-07 Keith Seitz <keiths@redhat.com>
6833
6834 Revert:
6835 PR c++/16253
6836 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6837 from symbol_matches_domain in symtab.c. All local callers
6838 of symbol_matches_domain updated.
6839 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6840 search STRUCT_DOMAIN.
6841 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6842 independently. standard_lookup will do that automatically.
6843 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6844 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6845 (cp_lookup_symbol_in_namespace): Likewise.
6846 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6847 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6848 may return a STRUCT_DOMAIN match.
6849 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6850 * cp-support.c: Include language.h.
6851 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6852 VAR_DOMAIN.
6853 * psymtab.c (match_partial_symbol): Compare the requested
6854 domain with the symbol's domain directly.
6855 (lookup_partial_symbol): Likewise.
6856 * symtab.c (lookup_symbol_in_language): Explain when/why
6857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6858 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6859 appropriate languages.
6860 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6861 and moved to ada-lang.c
6862 (lookup_block_symbol): Explain that this function only returns
6863 symbol matching the requested DOMAIN.
6864 Compare the requested domain with the symbol's domain directly.
6865 (iterate_over_symbols): Compare the requested domain with the
6866 symbol's domain directly.
6867 * symtab.h (symbol_matches_domain): Remove.
6868
25326a28 68692014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6870
6871 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6872 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6873 (gdbscm_guile_version_is_at_least): Declare.
6874 (gdbscm_scm_string_to_int): Declare.
6875 * guile/guile.c (gdbscm_guile_major_version): New global.
6876 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6877 (guile_datadir): New static global.
6878 (gdbscm_guile_data_directory): New function.
6879 (initialize_scheme_side): Update.
6880 (misc_guile_functions): Add guile-data-directory.
6881 (initialize_gdb_module): Fetch guile version number.
6882 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6883 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6884 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6885 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6886 comments.
6887 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6888 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6889 * guile/scm-value.c (gdbscm_value_to_string): Only call
6890 scm_port_conversion_strategy if Guile version >= 2.0.6.
6891
0a770bb2 68922014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6893
6894 * main.c (print_gdb_help): Add -q and --silent.
6895
73ba372c
GB
68962014-06-06 Gary Benson <gbenson@redhat.com>
6897
6898 * common/signals.c: Remove preprocessor conditionals for
6899 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6900 SIGSEGV and SIGTERM.
6901 * proc-events.c: Likewise.
6902
c33b2f12
MM
69032014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6904
6905 * symfile.c (symfile_free_objfile): Remove restriction to
6906 OBJF_USERLOADED.
6907 * symfile-mem.c (symbol_file_add_from_memory): Call
6908 add_target_sections_of_objfile.
6909
fb934770
LC
69102014-06-05 Ludovic Courtès <ludo@gnu.org>
6911
6912 * guile/scm-value.c (gdbscm_history_append_x): Use
6913 'vlscm_get_value_smob_arg_unsafe' instead of
6914 'vlscm_scm_to_value'.
6915
6ef284bd
SM
69162014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6917
6918 PR mi/15806
6919 * utils.c (printchar): Don't escape at all if quoter is NUL.
6920 Update function documentation to clarify effect of parameter
6921 QUOTER.
6922 * remote.c (escape_buffer): Pass '\\' as the quoter to
6923 fputstrn_unfiltered.
6924 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6925 generate the output.
6926 (mi_solib_unloaded): Same.
6927
270c9937
JB
69282014-06-05 Joel Brobecker <brobecker@adacore.com>
6929
6930 * development.sh: Delete.
6931 * Makefile.in (config.status): Adjust dependency on development.sh.
6932 * configure.ac: Adjust development.sh source call.
6933 * configure: Regenerate.
6934
16f691fb
DE
69352014-06-04 Doug Evans <xdje42@gmail.com>
6936
6937 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6938 is_scheme_bkpt, spec.
6939 (bpscm_make_breakpoint_smob): Initialize new members.
6940 (gdbscm_create_breakpoint_x): Split into two ...
6941 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6942 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6943 (scheme_function breakpoint_functions): Update.
6944 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6945 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6946 register-breakpoint!.
6947
ef7cab6b
JB
69482014-06-04 Joel Brobecker <brobecker@adacorer.com>
6949
6950 PR server/17023
6951 * mem-break.c (z_type_supported): Return zero if
6952 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6953
012370f6
TT
69542014-06-04 Tom Tromey <tromey@redhat.com>
6955
6956 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6957 value_from_contents_and_address_unresolved.
6958 (ada_template_to_fixed_record_type_1): Likewise.
6959 (ada_which_variant_applies): Likewise.
6960 * value.h (value_from_contents_and_address_unresolved): Declare.
6961 * value.c (value_from_contents_and_address_unresolved): New
6962 function.
6963 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6964 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6965 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6966
92e2a17f
TT
69672014-06-04 Tom Tromey <tromey@redhat.com>
6968
6969 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6970
c0939df1
TT
69712014-06-04 Tom Tromey <tromey@redhat.com>
6972
6973 * procfs.c (procfs_attach): Make "args" const.
6974 * windows-nat.c (windows_attach): Make "args" const.
6975 * nto-procfs.c (procfs_attach): Make "args" const.
6976 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6977 * go32-nat.c (go32_attach): Make "args" const.
6978 * gnu-nat.c (gnu_attach): Make "args" const.
6979 * darwin-nat.c (darwin_attach): Make "args" const.
6980 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6981 * linux-nat.c (linux_nat_attach): Make "args" const.
6982 * remote.c (extended_remote_attach_1, extended_remote_attach):
6983 Make "args" const.
6984 * target.h (struct target_ops) <to_attach>: Make "args" const.
6985 (find_default_attach): Likewise.
6986 * utils.c (parse_pid_to_attach): Make "args" const.
6987 * utils.h (parse_pid_to_attach): Update.
6988
8eaff7cd
TT
69892014-06-04 Tom Tromey <tromey@redhat.com>
6990
6991 * target-delegates.c: Rebuild.
6992 * target.c (default_thread_address_space): New function.
6993 (target_thread_address_space): Simplify.
6994 * target.h (struct target_ops) <to_thread_address_space>: Add
6995 TARGET_DEFAULT_FUNC.
6996
1913f160
DE
69972014-06-04 Doug Evans <xdje42@gmail.com>
6998
6999 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7000
70ad5bff
MM
70012014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7002
7003 * record-btrace.c: Include event-loop.h and inf-loop.h.
7004 (record_btrace_resume_exec_dir)
7005 (record_btrace_async_inferior_event_handler)
7006 (record_btrace_handle_async_inferior_event): New.
7007 (record_btrace_open): Create async event handler.
7008 (record_btrace_close): Delete async event handler.
7009 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7010 Mark async event handler.
7011 (record_btrace_execution_direction): New.
7012 (init_record_btrace_ops): Initialize to_execution_direction.
7013
b6210538
DE
70142014-06-03 Doug Evans <xdje42@gmail.com>
7015
7016 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7017 (gdbscm_make_parameter): Ditto.
7018
a5b1fd27
DE
70192014-06-03 Doug Evans <dje@google.com>
7020
7021 * exec.c (exec_close_1): Call clear_section_table instead of
7022 resize_section_table.
7023 (clear_section_table): New function.
7024 (resize_section_table): Make static. Rename arg num_added to
7025 adjustment.
7026 * exec.h (clear_section_table): Declare.
7027 (resize_section_table): Delete.
7028 * progspace.c (release_program_space): Call clear_section_table
7029 instead of resize_section_table.
7030
0c6e92a5
SC
70312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7032
7033 * NEWS (Python Scripting): Add entry about the new xmethods
7034 feature.
7035
883964a7
SC
70362014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7037
7038 * python/py-xmethods.c: New file.
7039 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7040 (objfpy_dealloc): XDECREF on the new xmethods field.
7041 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7042 field.
7043 (objfpy_get_xmethods): New function.
7044 (objfile_getset): New entry 'xmethods'.
7045 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7046 (pspy_dealloc): XDECREF on the new xmethods field.
7047 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7048 field.
7049 (pspy_get_xmethods): New function.
7050 (pspace_getset): New entry 'xmethods'.
7051 * python/python-internal.h: Add declarations for new functions.
7052 * python/python.c (_initialize_python): Invoke
7053 gdbpy_initialize_xmethods.
7054 * python/lib/gdb/__init__.py (xmethods): New
7055 attribute.
7056 * python/lib/gdb/xmethod.py: New file.
7057 * python/lib/gdb/command/xmethods.py: New file.
7058
58992dc5
SC
70592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7060
7061 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7062 best match method returned by find_overload_match is an xmethod.
7063 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7064 the best matching operator returned by find_overload_match is an
7065 xmethod.
7066 * valops.c: #include "extension.h".
7067 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7068 Return void. The list of matching source methods is returned in
7069 "fn_list" and a vector of matching debug method workers is
7070 returned in "xm_worker_vec". Update all callers.
7071 (value_find_oload_method_list): Likewise.
7072 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7073 non-NULL, then the index of the best matching method in this
7074 vector is returned. Update all callers.
7075 (find_overload_match): Include xmethods while performing overload
7076 resolution.
7077
e81e7f5e
SC
70782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7079
7080 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7081 * extension-priv.h (struct extension_language_ops): Add the
7082 xmethod interface.
7083 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7084 get_matching_xmethod_workers, get_xmethod_argtypes,
7085 invoke_xmethod, free_xmethod_worker,
7086 free_xmethod_worker_vec): New functions.
7087 * extension.h: #include "common/vec.h".
7088 New function declarations.
7089 (struct xmethod_worker): New struct.
7090 (VEC (xmethod_worker_ptr)): New vector type.
7091 (xmethod_worker_ptr): New typedef.
7092 (xmethod_worker_vec): Likewise.
7093 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7094 builtin_type.
7095 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7096 (struct builtin_type): New field "xmethod".
7097 * valarith.c (value_ptradd): Assert that the value argument is not
7098 lval_xcallable.
7099 * valops.c (value_must_coerce_to_target): Return 0 for
7100 lval_xcallable values.
7101 * value.c (struct value): New field XM_WORKER in the field
7102 LOCATION.
7103 (value_address, value_raw_address): Return 0 for lval_xcallable
7104 values.
7105 (set_value_address): Assert that the value is not an
7106 lval_xcallable.
7107 (value_free): Free the associated xmethod worker when freeing
7108 lval_xcallable values.
7109 (set_value_component_location): Assert that the WHOLE value is not
7110 lval_xcallable.
7111 (value_of_xmethod, call_xmethod): New functions.
7112 * value.h: Declare "struct xmethod_worker".
7113 Declare new functions value_of_xmethod, call_xmethod.
7114
ef370185
JB
71152014-06-03 Joel Brobecker <brobecker@adacore.com>
7116 Pedro Alves <palves@redhat.com>
7117
7118 PR breakpoints/17000
7119 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7120 New function, extracted from software_breakpoint_inserted_here_p.
7121 (software_breakpoint_inserted_here_p): Replace factored out code
7122 by call to find_non_raw_software_breakpoint_inserted_here.
7123 (bp_target_info_copy_insertion_state): New function.
7124 (bkpt_insert_location): Handle the case of a single-step
7125 breakpoint already inserted at the same address.
7126 (bkpt_remove_location): Handle the case of a single-step
7127 breakpoint still inserted at the same address.
7128 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7129 breakpoint already inserted at the same address.
7130 (deprecated_remove_raw_breakpoint): Handle the case of a
7131 non-raw breakpoint still inserted at the same address.
7132 (find_single_step_breakpoint): New function, extracted from
7133 single_step_breakpoint_inserted_here_p.
7134 (find_single_step_breakpoint): New function,
7135 factored out from single_step_breakpoint_inserted_here_p.
7136 (single_step_breakpoint_inserted_here_p): Reimplement.
7137
1e2ccb61
BM
71382014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7139
7140 Pushed by Joel Brobecker <brobecker@adacore.com>
7141 * source.c (show_substitute_path_command): Fix display of matching
7142 substitution rules.
7143
d3448d85
GB
71442014-06-03 Gary Benson <gbenson@redhat.com>
7145
7146 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7147
06eb1586
DE
71482014-06-02 Doug Evans <xdje42@gmail.com>
7149
7150 Add parameter support for Guile.
7151 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7152 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7153 (scm-param.o): New rule.
7154 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7155 (gdbscm_misc_error): Declare.
7156 (gdbscm_canonicalize_command_name): Declare.
7157 (gdbscm_scm_to_host_string): Declare.
7158 (gdbscm_scm_from_host_string): Declare.
7159 (gdbscm_initialize_parameters): Declare.
7160 * guile/guile.c (initialize_gdb_module): Call
7161 gdbscm_initialize_parameters.
7162 * guile/lib/gdb.scm: Export parameter symbols.
7163 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7164 cmdscm_canonicalize_name and made public. All callers updated.
7165 * guile/scm-exception.c (gdbscm_misc_error): New function.
7166 * guile/scm-param.c: New file.
7167 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7168 (gdbscm_scm_to_host_string): New function.
7169 (gdbscm_scm_from_host_string): New function.
7170 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7171
e698b8c4
DE
71722014-06-02 Doug Evans <xdje42@gmail.com>
7173
7174 Add command support for Guile.
7175 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7176 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7177 (scm-cmd.o): New rule.
7178 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7179 (gdbscm_user_error_p): Declare.
7180 (gdbscm_parse_command_name): Declare.
7181 (gdbscm_valid_command_class_p): Declare.
7182 (gdbscm_initialize_commands): Declare.
7183 * guile/guile.c (initialize_gdb_module): Call
7184 gdbscm_initialize_commands.
7185 * guile/lib/gdb.scm: Export command symbols.
7186 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7187 (throw-user-error): New function.
7188 * guile/scm-cmd.c: New file.
7189 * guile/scm-exception.c (user_error_symbol): New static global.
7190 (gdbscm_user_error_p): New function.
7191 (gdbscm_initialize_exceptions): Set user_error_symbol.
7192 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7193
fb1f94b0
PM
71942014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7195
7196 * top.c (command_loop): Handle comments here...
7197 (command_line_input): ... not here.
7198
ded03782
DE
71992014-06-02 Doug Evans <xdje42@gmail.com>
7200
7201 Add progspace support for Guile.
7202 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7203 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7204 (scm-progspace.o): New rule.
7205 * guile/guile-internal.h (pspace_smob): New typedef.
7206 (psscm_pspace_smob_pretty_printers): Declare.
7207 (psscm_pspace_smob_from_pspace): Declare.
7208 (psscm_scm_from_pspace): Declare.
7209 * guile/guile.c (initialize_gdb_module): Call
7210 gdbscm_initialize_pspaces.
7211 * guile/lib/gdb.scm: Export progspace symbols.
7212 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7213 support.
7214 (append-pretty-printer!): Ditto.
7215 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7216 Implement.
7217 * guile/scm-progspace.c: New file.
7218
397998fc
AM
72192014-06-03 Alan Modra <amodra@gmail.com>
7220
7221 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7222 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7223
6aa5f3a6
DE
72242014-06-02 Doug Evans <dje@google.com>
7225
7226 Add support for skeletonless type units.
7227 * dwarf2read.c (struct dwarf2_per_objfile): New member
7228 n_allocated_type_units.
7229 (struct dwarf2_per_objfile) <tu_stats>: New member
7230 nr_all_type_units_reallocs.
7231 (create_signatured_type_table_from_index): Initialize
7232 n_allocated_type_units
7233 (create_all_type_units): Ditto.
7234 (add_type_unit): Move up in file. New arg slot.
7235 All callers updated. Increase space for all_type_units more
7236 efficiently.
7237 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7238 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7239 (lookup_dwp_signatured_type): Ditto.
7240 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7241 All callers updated.
7242 (build_type_psymtabs_1): Leave type_unit_groups as
7243 NULL if no TUs present.
7244 (print_tu_stats): New function.
7245 (process_skeletonless_type_unit): New function.
7246 (process_dwo_file_for_skeletonless_type_units): New
7247 function.
7248 (process_skeletonless_type_units): New function.
7249 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7250 Call print tu_stats if debugging enabled.
7251
41fac0cf
PA
72522014-06-02 Pedro Alves <palves@redhat.com>
7253
7254 * breakpoint.c (build_target_command_list): Don't build a command
7255 list if we have any duplicate location that isn't a dprintf.
7256
cd1608cc
PA
72572014-06-02 Pedro Alves <palves@redhat.com>
7258
7259 * breakpoint.c (dprintf_breakpoint_hit): New function.
7260 (initialize_breakpoint_ops): Install it as dprintf's
7261 breakpoint_hit method.
7262
486ef3b9
JB
72632014-06-02 Joel Brobecker <brobecker@adacore.com>
7264
7265 * source.c (substitute_path_rule_matches): Simplify using
7266 filename_ncmp instead of FILENAME_CMP.
7267
230cd560
JB
72682014-06-02 Joel Brobecker <brobecker@adacore.com>
7269
7270 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7271
16954d5d
LC
72722014-06-01 Ludovic Courtès <ludo@gnu.org>
7273
7274 * configure.ac: When Guile is available, check for the
7275 availability of 'scm_new_smob'.
7276 * configure, config.h.in: Regenerate.
7277 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7278 function.
7279
53e8a631
AB
72802014-05-30 Andrew Burgess <aburgess@broadcom.com>
7281
7282 * frame.c (struct frame_info): Add stop_string field.
7283 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7284 (get_prev_frame_always): Old content moved into
7285 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7286 TRY_CATCH, handle MEMORY_ERROR exceptions.
7287 (frame_stop_reason_string): New function definition.
7288 * frame.h (unwind_stop_reason_to_string): Extend comment to
7289 mention frame_stop_reason_string.
7290 (frame_stop_reason_string): New function declaration.
7291 * stack.c (frame_info): Switch to frame_stop_reason_string.
7292 (backtrace_command_1): Switch to frame_stop_reason_string.
7293 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7294 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7295 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7296
70e38b8e
AB
72972014-05-30 Andrew Burgess <aburgess@broadcom.com>
7298
7299 * frame.c (frame_stop_reason_string): Rename to ...
7300 (unwind_stop_reason_to_string): this.
7301 * frame.h (frame_stop_reason_string): Rename to ...
7302 (unwind_stop_reason_to_string): this.
7303 * stack.c (frame_info): Update call to frame_stop_reason_string.
7304 (backtrace_command_1): Likewise.
7305 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7306 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7307
938f0e2f
AB
73082014-05-30 Andrew Burgess <aburgess@broadcom.com>
7309
7310 * frame.c (remove_prev_frame): New function.
7311 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7312 remove_prev_frame.
7313
a09dd441
PA
73142014-05-29 Pedro Alves <palves@redhat.com>
7315
7316 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7317 and make it const. When a single-step decays to a continue,
7318 clear 'step', not 'hw_step'. Pass whether the caller wanted
7319 to step to user_visible_resume_ptid, not what we ask the
7320 target to do.
7321
bdc36728
PA
73222014-05-29 Pedro Alves <palves@redhat.com>
7323
7324 * infrun.c (process_event_stop_test, handle_step_into_function)
7325 (handle_step_into_function_backward): Adjust.
7326 Don't set the even thread's stop_step and call stop_waiting before
7327 calling end_stepping_range. Instead do that ...
7328 (end_stepping_range): ... here. Take an ecs pointer parameter.
7329
22bcd14b
PA
73302014-05-29 Pedro Alves <palves@redhat.com>
7331
7332 * infrun.c (stop_stepping): Rename to ...
7333 (stop_waiting): ... this.
7334 (proceed): Update comment.
7335 (process_event_stop_test, handle_inferior_event)
7336 (handle_signal_stop, handle_step_into_function)
7337 (handle_step_into_function_backward): Update.
7338
4ae57c05
PA
73392014-05-29 Pedro Alves <palves@redhat.com>
7340
7341 * infcall.c (run_inferior_call): Don't check whether the current
7342 thread is running after the proceed call.
7343
329ea579
PA
73442014-05-29 Pedro Alves <palves@redhat.com>
7345 Tom Tromey <tromey@redhat.com>
7346
7347 * NEWS: Mention "maint set target-async", "set mi-async", and that
7348 background execution commands are now always available.
7349 * target.h (target_async_permitted): Update comment.
7350 * target.c (target_async_permitted, target_async_permitted_1):
7351 Default to 1.
7352 (set_target_async_command): Rename to ...
7353 (maint_set_target_async_command): ... this.
7354 (show_target_async_command): Rename to ...
7355 (maint_show_target_async_command): ... this.
7356 (_initialize_target): Adjust.
7357 * infcmd.c (prepare_execution_command): Make extern.
7358 * inferior.h (prepare_execution_command): Declare.
7359 * infrun.c (set_observer_mode): Leave target async alone.
7360 * mi/mi-interp.c (mi_interpreter_init): Install
7361 mi_on_sync_execution_done as sync_execution_done observer.
7362 (mi_on_sync_execution_done): New function.
7363 (mi_execute_command_input_handler): Don't print the prompt if we
7364 just started a synchronous command with an async target.
7365 (mi_on_resume): Check sync_execution before printing prompt.
7366 * mi/mi-main.h (mi_async_p): Declare.
7367 * mi/mi-main.c: Include gdbcmd.h.
7368 (mi_async_p): New function.
7369 (mi_async, mi_async_1): New globals.
7370 (set_mi_async_command, show_mi_async_command, mi_async): New
7371 functions.
7372 (exec_continue): Call prepare_execution_command.
7373 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7374 (mi_execute_async_cli_command): Use mi_async_p.
7375 (_initialize_mi_main): Install "set mi-async". Make
7376 "target-async" a deprecated alias.
7377
92bcb5f9
PA
73782014-05-29 Pedro Alves <palves@redhat.com>
7379
7380 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7381 (_initialize_cli_interp): Adjust.
7382 * event-loop.c: Include "observer.h".
7383 (start_event_loop): Notify 'command_error' observers instead of
7384 calling display_gdb_prompt. Remove FIXME comment.
7385 * event-top.c (display_gdb_prompt): Remove call into the
7386 interpreters.
7387 * inf-loop.c: Include "observer.h".
7388 (inferior_event_handler): Notify 'command_error' observers instead
7389 of calling display_gdb_prompt.
7390 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7391 observers instead of calling display_gdb_prompt.
7392 * interps.c (interp_set): Don't call display_gdb_prompt.
7393 (current_interp_display_prompt_p): Delete.
7394 * interps.h (interp_prompt_p): Delete declaration.
7395 (interp_prompt_p_ftype): Delete.
7396 (struct interp_procs) <prompt_proc_p>: Delete field.
7397 (current_interp_display_prompt_p): Delete declaration.
7398 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7399 (_initialize_mi_interp): Adjust.
7400 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7401 'command_error' observers.
7402 (tui_on_sync_execution_done, tui_on_command_error): New
7403 functions.
7404 (tui_display_prompt_p): Delete.
7405 (_initialize_tui_interp): Adjust.
7406
fd664c91
PA
74072014-05-29 Pedro Alves <palves@redhat.com>
7408
7409 PR gdb/13860
7410 * cli/cli-interp.c: Include infrun.h and observer.h.
7411 (cli_uiout, cli_interp): New globals.
7412 (cli_on_signal_received, cli_on_end_stepping_range)
7413 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7414 functions.
7415 (cli_interpreter_init): Install them as 'end_stepping_range',
7416 'signal_received' 'signal_exited', 'exited' and 'no_history'
7417 observers.
7418 (_initialize_cli_interp): Remove cli_interp local.
7419 * infrun.c (handle_inferior_event): Call the several stop reason
7420 observers instead of printing the stop reason directly.
7421 (end_stepping_range): New function.
7422 (print_end_stepping_range_reason, print_signal_exited_reason)
7423 (print_exited_reason, print_signal_received_reason)
7424 (print_no_history_reason): Make static, and add an uiout
7425 parameter. Print to that instead of to CURRENT_UIOUT.
7426 * infrun.h (print_end_stepping_range_reason)
7427 (print_signal_exited_reason, print_exited_reason)
7428 (print_signal_received_reason print_no_history_reason): New
7429 declarations.
7430 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7431 'mi_uiout'.
7432 <cli_uiout>: New field.
7433 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7434 uiout for CLI output. Install 'signal_received',
7435 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7436 observers.
7437 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7438 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7439 (mi_on_no_history): New functions.
7440 (ui_out_free_cleanup): Delete function.
7441 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7442 instead use the one already stored in the MI interpreter data.
7443 (mi_ui_out): Adjust.
7444 * tui/tui-interp.c: Include infrun.h and observer.h.
7445 (tui_interp): New global.
7446 (tui_on_signal_received, tui_on_end_stepping_range)
7447 (tui_on_signal_exited, tui_on_exited)
7448 (tui_on_no_history): New functions.
7449 (tui_init): Install them as 'end_stepping_range',
7450 'signal_received' 'signal_exited', 'exited' and 'no_history'
7451 observers.
7452 (_initialize_tui_interp): Delete tui_interp local.
7453
8817a6f2
PA
74542014-05-29 Pedro Alves <palves@redhat.com>
7455
7456 PR gdb/15713
7457 * linux-nat.c (linux_nat_resume_callback): Rename the second
7458 parameter to 'except'. Skip LP if it points to EXCEPT.
7459 (linux_nat_resume): Don't mark the event lwp as not stopped
7460 before resuming sibling lwps. Instead ask
7461 linux_nat_resume_callback to skip the event lwp. Mark it as not
7462 stopped after actually resuming it.
7463 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7464 resuming it.
7465 (wait_lwp): Mark the lwp as stopped here.
7466 (stop_wait_callback): Mark the lwp as not stopped right after
7467 resuming it. Don't mark lwps as stopped here.
7468 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7469 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7470
251bde03
PA
74712014-05-29 Pedro Alves <palves@redhat.com>
7472
7473 PR PR15693
7474 * infrun.c (resume): Determine how much to resume depending on
7475 whether the caller wanted a step, not whether we can hardware step
7476 the target. Mark all threads that we intend to run as running,
7477 unless we're calling an inferior function.
7478 (normal_stop): If the thread is running an infcall, don't finish
7479 thread state.
7480 * target.c (target_resume): Don't mark threads as running here.
7481
7f3c0343
JB
74822014-05-28 Joel Brobecker <brobecker@adacore.com>
7483
7484 * serial.c (_initialize_serial): Remove support for
7485 the "set remotebaud" and "show remotebaud" commands.
7486 * NEWS: Add entry documenting the removal of that command.
7487
ee34b3f9
YQ
74882014-05-28 Yao Qi <yao@codesourcery.com>
7489
7490 * charset.c: Fix typo in comments.
7491
add6c04d
GB
74922014-05-27 Gary Benson <gbenson@redhat.com>
7493
7494 * utils.c (internal_vproblem): Prompt for a bug report.
7495
92c48fc5
AW
74962014-05-26 Andy Wingo <wingo@igalia.com>
7497
7498 * guile/scm-arch.c (arscm_mark_arch_smob):
7499 * guile/scm-block.c (bkscm_mark_block_smob)
7500 (bkscm_mark_block_syms_progress_smob):
7501 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7502 * guile/scm-exception.c (exscm_mark_exception_smob):
7503 * guile/scm-frame.c (frscm_mark_frame_smob):
7504 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7505 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7506 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7507 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7508 (ppscm_mark_pretty_printer_worker_smob):
7509 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7510 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7511 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7512 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7513 mark functions.
7514 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7515 function.
7516
b2715b27
AW
75172014-05-26 Andy Wingo <wingo@igalia.com>
7518 Doug Evans <xdje42@gmail.com>
7519
7520 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7521 empty_base_class. All uses updated.
7522 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7523 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7524 Adapt all callers.
7525 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7526 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7527 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7528 (gdbscm_gsmob_has_property_p, add_property_name)
7529 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7530 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7531 (gdb-object-has-property?, gdb-object-properties): Remove.
7532 (gdb-object-kind): Renamed from gsmob-kind.
7533
214ab2da
AW
75342014-05-26 Andy Wingo <wingo@igalia.com>
7535
7536 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7537 * configure: Regenerate.
7538
589fdceb
MM
75392014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7540
7541 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7542
67b5c0c1
MM
75432014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7544
7545 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7546 (replay_memory_access_read_only, replay_memory_access_read_write)
7547 (replay_memory_access_types, replay_memory_access)
7548 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7549 (cmd_set_record_btrace, cmd_show_record_btrace)
7550 (cmd_show_replay_memory_access): New.
7551 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7552 (record_btrace_remove_breakpoint): Replace
7553 record_btrace_allow_memory_access with replay_memory_access.
7554 (_initialize_record_btrace): Add commands.
7555 * NEWS: Announce it.
7556
036cd381
RR
75572014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7558
7559 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7560
c77c1e42
RR
75612014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7562
7563 * MAINTAINERS (Write After Approval): Move self back from
7564 paper trail.
7565
45741a9c
PA
75662014-05-22 Pedro Alves <palves@redhat.com>
7567
7568 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7569 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7570 (disable_randomization, enum exec_direction_kind)
7571 (execution_direction, stop_registers, start_remote)
7572 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7573 (wait_for_inferior, normal_stop, get_last_target_status)
7574 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7575 (insert_step_resume_breakpoint_at_sal)
7576 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7577 (set_step_info, print_stop_event, signal_stop_state)
7578 (signal_print_state, signal_pass_state, signal_stop_update)
7579 (signal_print_update, signal_pass_update)
7580 (update_signals_program_target, clear_exit_convenience_vars)
7581 (displaced_step_dump_bytes, update_observer_mode)
7582 (signal_catch_update, gdb_signal_from_command): Move
7583 declarations ...
7584 * infrun.h: ... to this new file.
7585 * amd64-tdep.c: Include infrun.h.
7586 * annotate.c: Include infrun.h.
7587 * arch-utils.c: Include infrun.h.
7588 * arm-linux-tdep.c: Include infrun.h.
7589 * arm-tdep.c: Include infrun.h.
7590 * break-catch-sig.c: Include infrun.h.
7591 * breakpoint.c: Include infrun.h.
7592 * common/agent.c: Include infrun.h instead of inferior.h.
7593 * corelow.c: Include infrun.h.
7594 * event-top.c: Include infrun.h.
7595 * go32-nat.c: Include infrun.h.
7596 * i386-tdep.c: Include infrun.h.
7597 * inf-loop.c: Include infrun.h.
7598 * infcall.c: Include infrun.h.
7599 * infcmd.c: Include infrun.h.
7600 * infrun.c: Include infrun.h.
7601 * linux-fork.c: Include infrun.h.
7602 * linux-nat.c: Include infrun.h.
7603 * linux-thread-db.c: Include infrun.h.
7604 * monitor.c: Include infrun.h.
7605 * nto-tdep.c: Include infrun.h.
7606 * procfs.c: Include infrun.h.
7607 * record-btrace.c: Include infrun.h.
7608 * record-full.c: Include infrun.h.
7609 * remote-m32r-sdi.c: Include infrun.h.
7610 * remote-mips.c: Include infrun.h.
7611 * remote-notif.c: Include infrun.h.
7612 * remote-sim.c: Include infrun.h.
7613 * remote.c: Include infrun.h.
7614 * reverse.c: Include infrun.h.
7615 * rs6000-tdep.c: Include infrun.h.
7616 * s390-linux-tdep.c: Include infrun.h.
7617 * solib-irix.c: Include infrun.h.
7618 * solib-osf.c: Include infrun.h.
7619 * solib-svr4.c: Include infrun.h.
7620 * target.c: Include infrun.h.
7621 * top.c: Include infrun.h.
7622 * windows-nat.c: Include infrun.h.
7623 * mi/mi-interp.c: Include infrun.h.
7624 * mi/mi-main.c: Include infrun.h.
7625 * python/py-threadevent.c: Include infrun.h.
7626
98eb56a4
PA
76272014-05-22 Pedro Alves <palves@redhat.com>
7628
7629 * infrun.c (handle_inferior_event): Store the exit code for
7630 --return-child-result here, instead of ...
7631 (print_exited_reason): ... here.
7632
17b2616c
PA
76332014-05-21 Pedro Alves <palves@redhat.com>
7634
7635 PR gdb/13860
7636 * gdbthread.h (struct thread_control_state): New field
7637 `command_interp'.
7638 * infrun.c (follow_fork): Copy the new thread control field to the
7639 child fork thread.
7640 (clear_proceed_status_thread): Clear the new thread control field.
7641 (proceed): Set the new thread control field.
7642 * interps.h (command_interp): Declare.
7643 * interps.c (command_interpreter): New global.
7644 (command_interp): New function.
7645 (interp_exec): Set `command_interpreter' while here.
7646 * cli-out.c (cli_uiout_dtor): New function.
7647 (cli_ui_out_impl): Install it.
7648 * mi/mi-interp.c: Include cli-out.h.
7649 (mi_cmd_interpreter_exec): Add comment.
7650 (restore_current_uiout_cleanup): New function.
7651 (ui_out_free_cleanup): New function.
7652 (mi_on_normal_stop): If finishing an execution command started by
7653 a CLI command, or any kind of breakpoint-like event triggered,
7654 print the stop event to the output (CLI) stream.
7655 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7656
5166082f
PA
76572014-05-21 Pedro Alves <palves@redhat.com>
7658
7659 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7660 current source line having changed.
7661 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7662 * infrun.c (normal_stop): Adjust call to
7663 set_current_sal_from_frame.
7664 * source.c (clear_lines_listed_range): New function.
7665 (set_current_source_symtab_and_line, identify_source_line): Clear
7666 the lines listed range.
7667 (line_info): Handle the first "info line" after the current source
7668 line having changed.
7669 * stack.c (print_stack_frame): Remove center handling.
7670 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7671 center sal.line.
7672
c1ee2fb3
PA
76732014-05-21 Pedro Alves <palves@redhat.com>
7674
7675 * inf-child.c (inf_child_mourn_inferior): New function.
7676 * inf-child.h (inf_child_mourn_inferior): New declaration.
7677 * darwin-nat.c (darwin_mourn_inferior): Use
7678 inf_child_mourn_inferior.
7679 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7680 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7681 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7682 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7683 * windows-nat.c (windows_mourn_inferior): Likewise.
7684
5c6d4fb2
DE
76852014-05-21 Doug Evans <xdje42@gmail.com>
7686
250748cb 7687 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7688
4a2722c5
DE
76892014-05-21 Doug Evans <xdje42@gmail.com>
7690
17292b30 7691 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7692 (gdbscm_out_of_range_error): Ditto.
7693 (gdbscm_memory_error): Ditto.
250748cb
DE
7694 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7695 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7696 (gdbscm_out_of_range_error): Update.
7697 (gdbscm_memory_error): Update.
7698 (gdbscm_scm_to_target_string_unsafe): Delete.
7699
6a3cb8e8
PA
77002014-05-21 Pedro Alves <palves@redhat.com>
7701
7702 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7703 globals.
7704 (inf_child_open_target): New function.
7705 (inf_child_open): Use inf_child_open_target to push the target
7706 instead of erroring out.
7707 (inf_child_disconnect, inf_child_close)
7708 (inf_child_maybe_unpush_target): New functions.
7709 (inf_child_target): Install inf_child_disconnect and
7710 inf_child_close. Store a pointer to the returned object.
7711 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7712 declarations.
7713 * target.c (auto_connect_native_target): New global.
7714 (show_default_run_target): New function.
7715 (find_default_run_target): Return NULL if automatically connecting
7716 to the native target is disabled.
7717 (_initialize_target): Install set/show auto-connect-native-target.
7718 * NEWS: Mention "set auto-connect-native-target", and "target
7719 native".
7720 * linux-nat.c (super_close): New global.
7721 (linux_nat_close): Call super_close.
7722 (linux_nat_add_target): Store a pointer to the base class's
7723 to_close method.
7724 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7725 inf_child_maybe_unpush.
7726 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7727 already pushed.
7728 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7729 the inferior. Use inf_child_maybe_unpush_target.
7730 (inf_ttrace_attach): Don't push the target if it is already
7731 pushed.
7732 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7733 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7734 after mourning the inferior. Use inf_child_maybe_unpush_target.
7735 (darwin_attach_pid): Don't push the target if it is already
7736 pushed.
7737 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7738 mourning the inferior. Use inf_child_maybe_unpush_target.
7739 (gnu_detach): Use inf_child_maybe_unpush_target.
7740 * go32-nat.c (go32_create_inferior): Don't push the target if it
7741 is already pushed.
7742 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7743 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7744 (procfs_open): Rename to ...
7745 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7746 comments. Can target_preopen before changing node. Call
7747 inf_child_open_target to push the target explicitly.
7748 (procfs_attach): Don't push the target if it is already pushed.
7749 (procfs_detach): Use inf_child_maybe_unpush_target.
7750 (procfs_create_inferior): Don't push the target if it is already
7751 pushed.
7752 (nto_native_ops): New global.
7753 (procfs_open): Reimplement.
7754 (procfs_native_open): New function.
7755 (init_procfs_targets): Install procfs_native_open as to_open of
7756 "target native". Store a pointer to the "native" target in
7757 nto_native_ops.
7758 * procfs.c (procfs_attach): Don't push the target if it is already
7759 pushed.
7760 (procfs_detach): Use inf_child_maybe_unpush_target.
7761 (procfs_mourn_inferior): Only unpush the target after mourning the
7762 inferior. Use inf_child_maybe_unpush_target.
7763 (procfs_init_inferior): Don't push the target if it is already
7764 pushed.
7765 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7766 if it is already pushed.
7767
930ee1b1
PA
77682014-05-21 Pedro Alves <palves@redhat.com>
7769
7770 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7771 and "procfs" targets are now called "native" instead.
7772
1f5d1b13
PA
77732014-05-21 Pedro Alves <palves@redhat.com>
7774
7775 * go32-nat.c (go32_open): Delete.
7776 (go32_target): Don't override the to_open method.
7777
132f8e03
PA
77782014-05-21 Pedro Alves <palves@redhat.com>
7779
7780 * nto-procfs.c (procfs_can_run): New function.
7781 (nto_procfs_ops): New global.
7782 (init_procfs_targets): New, based on procfs_target. Install
7783 "target native" in addition to "target procfs".
7784 (_initialize_procfs): Call init_procfs_targets instead of adding
7785 the target here.
7786
03c136c3
PA
77872014-05-21 Pedro Alves <palves@redhat.com>
7788
7789 * windows-nat.c (windows_target): Don't override to_shortname,
7790 to_longname or to_doc.
7791
a635d0f3
PA
77922014-05-21 Pedro Alves <palves@redhat.com>
7793
7794 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7795 to_doc.
7796
4f9b5133
PA
77972014-05-21 Pedro Alves <palves@redhat.com>
7798
7799 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7800 to_shortname, to_longname or to_doc.
7801
bc85afde
PA
78022014-05-21 Pedro Alves <palves@redhat.com>
7803
7804 * go32-nat.c (go32_target): Don't override to_shortname,
7805 to_longname or to_doc.
7806
4ebfc96e
PA
78072014-05-21 Pedro Alves <palves@redhat.com>
7808
7809 * inf-child.c (inf_child_open): Remove mention of "child".
7810 (inf_child_target): Rename target to "native" instead of "child".
7811
2648dfed
AA
78122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7813
7814 * Makefile.in (SFILES): Delete "regset.c".
7815 (COMMON_OBS): Delete "regset.o".
7816 * regset.c: Remove.
7817 * regset.h (regset_alloc): Delete prototype.
7818
b13feb94
AA
78192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7820
7821 * sparc-linux-tdep.c (sparc32_linux_gregset)
7822 (sparc32_linux_fpregset): New static regset structures.
7823 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7824 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7825 'fpregset' fields.
7826 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7827 (sparc64_linux_fpregset): New static regset structures.
7828 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7829 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7830 New static regset structures.
7831 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7832 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7833 New static regset structures.
7834 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7835 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7836 New static regset structures.
7837 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7838 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7839 New static regset structures.
7840 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7841
b4fd25c9
AA
78422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7843
7844 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7845 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7846 register maps ("regmaps") from "*regset" to "*regmap". Do this
7847 for all regmap types and variables.
7848 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7849 (sparc32_linux_supply_core_gregset)
7850 (sparc32_linux_collect_core_gregset)
7851 (sparc32_linux_supply_core_fpregset)
7852 (sparc32_linux_collect_core_fpregset): Likewise.
7853 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7854 (sparc_gregmap, sparc_fpregmap): ... these.
7855 (sparc_supply_gregset, sparc_collect_gregset)
7856 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7857 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7858 (_initialize_sparc_nat): Rename regmaps.
7859 * sparc-nat.h (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-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7864 Rename macros to...
7865 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7866 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7867 Likewise.
7868 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7869 Rename to...
7870 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7871 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7872 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7873 regmaps.
7874 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7875 (sparc32_bsd_fpregset): Rename to...
7876 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7877 (sparc32_bsd_fpregmap): ... these.
7878 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7879 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7880 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7881 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7882 (struct sparc_gregmap, struct sparc_fpregmap)
7883 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7884 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7885 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7886 (sparc32_supply_regset, sparc32_collect_gregset)
7887 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7888 prototypes.
7889 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7890 (sparc64_linux_ptrace_gregmap): ... this.
7891 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7892 (_initialize_sparc64_linux_nat): Rename regmaps.
7893 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7894 (sparc64_linux_core_gregmap): ... this.
7895 (sparc64_linux_supply_core_gregset)
7896 (sparc64_linux_collect_core_gregset)
7897 (sparc64_linux_supply_core_fpregset)
7898 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7899 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7900 (sparc64_sol2_fpregset): Rename to...
7901 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7902 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7903 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7904 regmaps.
7905 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7906 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7907 (sparc64_bsd_fpregset): Rename to...
7908 (struct sparc_gregmap, sparc64_sol2_gregmap)
7909 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7910 (sparc64_bsd_fpregmap): ... these.
7911 (sparc64_supply_gregset, sparc64_collect_gregset)
7912 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7913 prototypes.
7914 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7915 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7916 (sparc64fbsd_gregmap): ... this.
7917 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7918 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7919 Rename regmaps.
7920 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7921 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7922 (sparc64nbsd_collect_fpregset): Likewise.
7923 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7924 (sparc64nbsd_gregmap): ... this.
7925 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7926 regmaps.
7927 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7928 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7929 (sparc64obsd_gregmap): ... this.
7930 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7931 regmaps.
7932 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7933 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7934 (sparc32nbsd_gregmap): ... this.
7935 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7936 regmaps.
7937
8fea3224
AA
79382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7939
7940 * score-tdep.c (score7_linux_gregset): New static regset
7941 structure.
7942 (score7_linux_regset_from_core_section): Remove dynamic regset
7943 allocation.
7944 (score_gdbarch_init): Drop allocation of tdep structure.
7945 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7946
24534243
AA
79472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7948
7949 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7950 regset structures.
7951 (am33_regset_from_core_section): Remove dynamic regset
7952 allocations.
7953
b7195f27
AA
79542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7955
7956 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7957 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7958 structures.
7959 (mips_linux_regset_from_core_section): Remove dynamic regset
7960 allocations.
7961 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7962 'gregset64', 'fpregset', and 'fpregset64'.
7963 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7964 deleted tdep fields.
7965
ecc37a5a
AA
79662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7967
7968 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7969 regset structures.
7970 (amd64_regset_from_core_section): Remove dynamic regset
7971 allocations.
7972 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7973 structure.
7974 (amd64obsd_regset_from_core_section): Remove dynamic regset
7975 allocation.
7976 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7977 Likewise.
7978 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7979 x86-common regset supply function.
7980 * i386-tdep.c (i386_collect_gregset): Make static.
7981 (i386_gregset): New global regset structure.
7982 (i386_fpregset, i386_xstateregset): New static regset structures.
7983 (i386_regset_from_core_section): Remove dynamic regset
7984 allocations.
7985 (i386_gdbarch_init): Remove initialization of tdep fields
7986 'gregset', 'fpregset', and 'xstateregset'.
7987 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7988 'fpregset', and 'xstateregset'.
7989 (i386_collect_gregset): Remove prototype.
7990 (i386_gregset): New declaration.
7991 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7992 structure.
7993 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7994 allocation.
7995
b7611c43
AA
79962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7997
7998 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7999 (arm_linux_vfpregset): New static regset structures.
8000 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8001 regset structures.
8002 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8003 and 'vfpregset' fields.
8004
a069a2bd
AA
80052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8006
8007 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8008 (aarch64_linux_fpregset): New static regset structures.
8009 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8010 of regset structures.
8011 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8012 'fpregset' fields.
8013
09424cff
AA
80142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8015
8016 * regset.h (struct regset): Remove gdbarch field.
8017 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8018 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8019 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8020 Likewise.
8021 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8022 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8023 (ppc32_linux_vsxregset): Likewise.
8024 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8025 via the regcache instead of the regset.
8026 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8027 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8028 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8029 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8030 Likewise.
8031
3ca7dae4
AA
80322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8033
8034 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8035 Constify structures.
8036 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8037 (alphanbsd_aout_gregset): Likewise.
8038 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8039 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8040 Likewise.
8041 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8042 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8043 Likewise.
8044 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8045 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8046 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8047 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8048 * m88k-tdep.c (m88k_gregset): Likewise.
8049 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8050 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8051 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8052 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8053 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8054 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8055 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8056 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8057 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8058 Likewise.
8059 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8060 * sh-tdep.h (sh_corefile_gregset): Likewise.
8061 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8062 * vax-tdep.c (vax_gregset): Likewise.
8063
5876f503
JK
80642014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8065
8066 Fix TLS access for -static -pthread.
8067 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8068 (try_thread_db_load_1): Initialize it.
8069 (thread_db_get_thread_local_address): Call it if LM is zero.
8070 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8071 * target.h (struct target_ops) (to_get_thread_local_address): Add
8072 load_module_addr comment.
8073
0256a6ac
PA
80742014-05-21 Pedro Alves <palves@redhat.com>
8075
8076 * dcache.c (dcache_read_memory_partial): If reading the cache line
8077 fails, fallback to reading just the memory the caller wanted.
8078
227533ac
DE
80792014-05-20 Doug Evans <dje@google.com>
8080
8081 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8082 instead of get_current_arch.
8083
936d2992
PA
80842014-05-20 Pedro Alves <palves@redhat.com>
8085
8086 * NEWS: Mention that compare-sections now works with all targets.
8087
8088 * remote.c (PACKET_qCRC): New enum value.
8089 (remote_verify_memory): Don't send qCRC if the target has no
8090 execution. Use packet_support/packet_ok. If the target doesn't
8091 support the qCRC packet, fallback to a deep memory copy.
8092 (compare_sections_command): Say "target image" instead of "remote
8093 executable".
8094 (_initialize_remote): Add PACKET_qCRC to the list of config
8095 packets that have no associated command. Extend comment.
8096 * target.c (simple_verify_memory, default_verify_memory): New
8097 function.
8098 * target.h (struct target_ops) <to_verify_memory>: Default to
8099 default_verify_memory.
8100 (simple_verify_memory): New declaration.
8101 * target-delegates.c: Regenerate.
8102
e59fa00f
MM
81032014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8104
8105 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8106
f2205de0
HZ
81072014-05-20 Hui Zhu <hui@codesourcery.com>
8108 Yao Qi <yao@codesourcery.com>
8109
8110 PR backtrace/16558
8111 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8112 and change address of sp and pc.
8113
c4e54771
TT
81142014-05-19 Tom Tromey <tromey@redhat.com>
8115
8116 * gdbtypes.c (rank_function): Use XNEWVEC.
8117 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8118
73051182
DE
81192014-05-19 Doug Evans <dje@google.com>
8120
8121 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8122 build_type_unit_groups and moved closer to only caller. Remove
8123 arguments. All references updated. Remove outdated .gdb_index
8124 comment.
8125 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8126 build_type_psymtabs_1.
8127
8832e7e3
DE
81282014-05-19 Doug Evans <dje@google.com>
8129
8130 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8131 n_type_unit_groups, all_type_unit_groups. All uses removed.
8132 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8133 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8134 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8135 (add_type_unit_group_to_table): Delete.
8136
cd8ae15e
DE
81372014-05-19 Doug Evans <dje@google.com>
8138
8139 * eval.c (evaluate_subexp_standard): Add some comments.
8140
08f4850b
DE
81412014-05-17 Doug Evans <xdje42@gmail.com>
8142
8143 * progspace.c (remove_program_space): Delete, unused.
8144 * progspace.h (remove_program_space): Ditto.
8145
bed8455c
DE
81462014-05-17 Doug Evans <xdje42@gmail.com>
8147
8148 * inferior.c (prune_inferiors): Fix comment.
8149 (remove_inferior_command): Call prune_program_spaces.
8150
8d551b02
DE
81512014-05-16 Doug Evans <dje@google.com>
8152
8153 New command line option -D.
8154 * NEWS: Mention it.
8155 * main.c (set_gdb_data_directory): New function.
8156 (captured_main): Recognize -D. Flag error for --data-directory "".
8157 Call set_gdb_data_directory.
8158 (print_gdb_help): Print --data-directory, -D.
8159 * main.h (set_gdb_data_directory): Declare.
8160 * top.c (staged_gdb_datadir): New static global.
8161 (set_gdb_datadir): Call set_gdb_data_directory
8162 (show_gdb_datadir): New function.
8163 (init_main): Update init of data-directory parameter.
8164
18848e28
GF
81652014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8166
8167 Import the "dirfd" gnulib module.
8168 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8169 * gnulib/aclocal.m4: Update.
8170 * gnulib/config.in: Update.
8171 * gnulib/configure: Update.
8172 * gnulib/import/Makefile.am: Update.
8173 * gnulib/import/Makefile.in: Update.
8174 * gnulib/import/dirfd.c: New.
8175 * gnulib/import/m4/dirfd.m4: New.
8176 * gnulib/import/m4/gnulib-cache.m4: Update.
8177 * gnulib/import/m4/gnulib-comp.m4: Update.
8178
95c64f92
YQ
81792014-05-16 Pierre Muller <muller@sourceware.org>
8180 Yao Qi <yao@codesourcery.com>
8181
8182 * valprint.c (print_wchar): Move the code on checking whether
8183 W is a printable wide char to the default branch of switch
8184 statement below. Call wchar_printable instead of gdb_iswprint.
8185
cac395ea
TM
81862014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8187
19679eca 8188 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8189 ldr.w and ldrd instructions.
8190
83655187
DE
81912014-05-15 Doug Evans <dje@google.com>
8192
8193 * dwarf2read.c (read_structure_type): Delete outdated comments.
8194
dd756689
TT
81952014-05-14 Tom Tromey <tromey@redhat.com>
8196
8197 * macrocmd.c (print_macro_definition): Reindent.
8198
75ddda77
DE
81992014-05-13 Doug Evans <xdje42@gmail.com>
8200
8201 * python/py-cmd.c (cmdpy_completer): Add comment.
8202 (completers): Make const.
8203
b0f16a3e
SM
82042014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8205
8206 * infrun.c (resume): Remove should_resume (unused). Move up
8207 declaration of resume_ptid.
8208
033c3379
TT
82092014-05-13 Tom Tromey <tromey@redhat.com>
8210
8211 * language.h (unop_type_check): Remove.
8212 (binop_type_check): Don't declare.
8213
9b44a3a5
AA
82142014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8215
8216 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8217 call to regcache_raw_collect.
8218
303a33fa
SM
82192014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8220
8221 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8222 mi_console->quote as the quoting character.
8223
196100a0
SM
82242014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8225
8226 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8227
f989a1c8
TT
82282014-04-29 Tom Tromey <tromey@redhat.com>
8229
8230 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8231 "show debug varobj".
8232
9404b58f
KM
82332014-05-07 Kyle McMartin <kyle@redhat.com>
8234
8235 Pushed by Joel Brobecker <brobecker@adacore.com>.
8236 * aarch64-tdep.c (aarch64_software_single_step): New function.
8237 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8238 with aarch64_software_single_step.
8239
5e49ba57
JB
82402014-05-05 Joel Brobecker <brobecker@adacore.com>
8241
8242 GDB 7.7.1 released.
8243
c888a17d
KS
82442014-05-05 Keith Seitz <keiths@redhat.com>
8245
8246 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8247 variable or history value is successfully parsed.
8248
290a839c
YQ
82492014-05-05 Yao Qi <yao@codesourcery.com>
8250 Pedro Alves <palves@redhat.com>
8251
8252 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8253 address of blocks that intersects the requested range. Trim
8254 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8255 sections.
8256 * ctf.c (ctf_xfer_partial): Likewise.
8257
91256dc2
YQ
82582014-05-05 Yao Qi <yao@codesourcery.com>
8259
8260 * printcmd.c (display_command): Remove the check to
8261 target_has_execution.
8262
07284463
MK
82632014-05-03 Mark Kettenis <kettenis@gnu.org>
8264
8265 * ppcobsd-nat.c: Include "obsd-nat.h".
8266 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8267 add_target.
8268 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8269
30a1e6cc
SDJ
82702014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8271
8272 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8273 and 16-bit signed and unsigned arguments. Update comment.
8274 (stap_parse_probe_arguments): Extend code to handle such
8275 arguments. Use warning instead of complaint to notify about
8276 unrecognized bitness.
8277
f33da99a
SDJ
82782014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8279
8280 PR breakpoints/16889
8281 * stap-probe.c (stap_parse_probe_arguments): Simplify
8282 check for non-prefixed probes (i.e., probes whose
8283 arguments do not start with "N@"). Always set the
8284 argument type to a sane value.
8285
95cf3b38
DT
82862014-05-01 David Taylor <dtaylor@emc.com>
8287
8288 * remote.c (compare_sections_command): Add -r option to compare
8289 all loadable read-only sections.
8290
1cfdf534
SC
82912014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8292
8293 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8294 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8295 Update all callers.
8296 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8297 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8298 Remove unused CORE_ADDR argument. Update all callers.
8299
ca4f7f8b
PA
83002014-04-29 Pedro Alves <palves@redhat.com>
8301
8302 * remote.c (struct packet_config) <detect>: Extend comment.
8303 (add_packet_config_cmd): Don't set the config's detect or support
8304 fields here.
8305 (init_all_packet_configs): Also initialize the config's 'detect'
8306 field.
8307 (reset_all_packet_configs_support): New function.
8308 (remote_open_1): Call reset_all_packet_configs_support instead of
8309 init_all_packet_configs.
8310 (_initialize_remote): Initialize all packet configs. Assert that
8311 all packets have an associated command, except a few known
8312 outliers.
8313
11c1ba78
JB
83142014-04-28 Joel Brobecker <brobecker@adacore.com>
8315
8316 * dwarf2read.c (read_subrange_type): Handle dynamic
8317 DW_AT_lower_bound attributes.
8318
8739bc53
JB
83192014-04-28 Joel Brobecker <brobecker@adacore.com>
8320
8321 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8322 dynamic bounds before computing its upper bound.
8323 (ada_discrete_type_low_bound): Same as above with the lower bound.
8324
6f8a3220
JB
83252014-04-28 Joel Brobecker <brobecker@adacore.com>
8326
8327 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8328 range types. Adjust the array handling implementation to
8329 take advantage of this change.
8330 (resolve_dynamic_range): New function, mostly extracted from
8331 resolve_dynamic_bounds.
8332 (resolve_dynamic_array): New function, mostly extracted from
8333 resolve_dynamic_bounds.
8334 (resolve_dynamic_bounds): Delete.
8335 (resolve_dynamic_type): Reimplement. Add handling of
8336 TYPE_CODE_RANGE types.
8337
4d072ce4
JB
83382014-04-28 Joel Brobecker <brobecker@adacore.com>
8339
8340 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8341 handling of parallel ___XA types.
8342
52865325
JB
83432014-04-28 Joel Brobecker <brobecker@adacore.com>
8344
8345 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8346 unnecessary second call to static_unwrap_type.
8347
433e77fa
HZ
83482014-04-27 Hui Zhu <hui@codesourcery.com>
8349
8350 * stack.c (print_frame_info): Call do_gdb_disassembly with
8351 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8352
b51a69ee
DE
83532014-04-26 Doug Evans <xdje42@gmail.com>
8354
8355 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8356
7ae1a6a6
PA
83572014-04-25 Pedro Alves <palves@redhat.com>
8358
8359 PR server/16255
8360 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8361 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8362 and newline from built string.
8363 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8364 (linux_ptrace_attach_fail_reason): ... this.
8365 * linux-nat.c (linux_nat_attach): Adjust to use
8366 linux_ptrace_attach_fail_reason.
8367
4082afcc
PA
83682014-04-25 Pedro Alves <palves@redhat.com>
8369
8370 * remote.c (struct remote_state): Remove multi_process_aware,
8371 non_stop_aware, cond_tracepoints, cond_breakpoints,
8372 breakpoint_commands, fast_tracepoints, static_tracepoints,
8373 install_in_trace, disconnected_tracing,
8374 enable_disable_tracepoints, string_tracing, and
8375 augmented_libraries_svr4_read fields.
8376 (remote_multi_process_p): Move further below in the file.
8377 (struct packet_config): Add comments.
8378 (update_packet_config): Delete function.
8379 (show_packet_config_cmd): Use packet_config_support.
8380 (add_packet_config_cmd): Use NULL as set callback.
8381 (packet_ok): "set remote foo-packet"-style commands no longer
8382 change config->supported -- adjust.
8383 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8384 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8385 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8386 (PACKET_QNonStop, PACKET_multiprocess_feature)
8387 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8388 (PACKET_DisconnectedTracing_feature)
8389 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8390 (set_remote_protocol_packet_cmd): Delete function.
8391 (packet_config_support, packet_support): New functions.
8392 (set_remote_protocol_Z_packet_cmd): Don't call
8393 update_packet_config.
8394 (remote_query_attached, remote_pass_signals)
8395 (remote_program_signals, remote_threads_info)
8396 (remote_threads_extra_info, remote_start_remote): Use
8397 packet_support.
8398 (remote_start_remote): Use packet_config_support and
8399 packet_support.
8400 (init_all_packet_configs): Set all packets to unknown support,
8401 instead of calling update_packet_config.
8402 (remote_check_symbols): Use packet_support.
8403 (remote_supported_packet): Unconditionally set the packet config's
8404 support status.
8405 (remote_multi_process_feature, remote_non_stop_feature)
8406 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8407 (remote_breakpoint_commands_feature)
8408 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8409 (remote_install_in_trace_feature)
8410 (remote_disconnected_tracing_feature)
8411 (remote_enable_disable_tracepoint_feature)
8412 (remote_string_tracing_feature)
8413 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8414 (remote_protocol_features): Adjust to use remote_supported_packet
8415 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8416 "ConditionalTracepoints", "ConditionalBreakpoints",
8417 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8418 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8419 "EnableDisableTracepoints", and "tracenz".
8420 (remote_query_supported): Use packet_support.
8421 (remote_open_1): Adjust.
8422 (extended_remote_attach_1): Use packet_support. Switch on the
8423 result of packet_ok instead of checking whether the packet ended
8424 up disabled.
8425 (remote_vcont_resume): Use packet_support.
8426 (remote_resume, remote_stop_ns, fetch_register_using_p)
8427 (remote_prepare_to_store, store_register_using_P)
8428 (check_binary_download, remote_write_bytes): Use packet_support.
8429 (remote_vkill): Use packet_support. Switch on the result of
8430 packet_ok instead of checking whether the packet ended up
8431 disabled.
8432 (extended_remote_supports_disable_randomization): Use
8433 packet_support.
8434 (extended_remote_run): Switch on the result of packet_ok instead
8435 of checking whether the packet ended up disabled.
8436 (remote_insert_breakpoint, remote_remove_breakpoint)
8437 (remote_insert_watchpoint, remote_remove_watchpoint)
8438 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8439 packet_support.
8440 (remote_search_memory): Use packet_config_support.
8441 (remote_get_thread_local_address, remote_get_tib_address)
8442 (remote_hostio_send_command, remote_can_execute_reverse): Use
8443 packet_support.
8444 (remote_supports_cond_tracepoints)
8445 (remote_supports_cond_breakpoints)
8446 (remote_supports_fast_tracepoints)
8447 (remote_supports_static_tracepoints)
8448 (remote_supports_install_in_trace)
8449 (remote_supports_enable_disable_tracepoint)
8450 (remote_supports_string_tracing)
8451 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8452 the packet config says the feature is enabled or disabled.
8453 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8454 (remote_get_trace_status): Use packet_support.
8455 (remote_set_disconnected_tracing): Adjust to check whether the
8456 feature is enabled with packet_support.
8457 (remote_set_trace_buffer_size, remote_use_agent)
8458 (remote_can_use_agent, remote_supports_btrace): Use
8459 packet_support.
8460 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8461 Use packet_config_support.
8462 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8463 the packet config says the feature is enabled or disabled.
8464 (set_range_stepping): Use packet_support.
8465
bdb52a22
TT
84662014-04-25 Tom Tromey <tromey@redhat.com>
8467
8468 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8469 argument.
8470
e9475ead
SA
84712014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8472
8473 * NEWS: Mention support for C99 variable length arrays.
8474
82eacd52
JB
84752014-04-24 Joel Brobecker <brobecker@adacore.com>
8476
8477 * ada-lang.c (standard_exc): Expand introductory comment.
8478
01f9f808
MS
84792014-04-24 Michael Sturm <michael.sturm@mintel.com>
8480 Walfred Tedeschi <walfred.tedeschi@intel.com>
8481
8482 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8483 AVX512 registers.
8484 (amd64_linux_read_description): Add code to handle AVX512 xstate
8485 mask and return respective tdesc.
8486 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8487 and features/i386/x32-avx512-linux.c.
8488 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8489 (amd64_linux_core_read_description): Add code to handle AVX512
8490 xstate mask and return respective tdesc.
8491 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8492 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8493 calculation.
8494 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8495 (tdesc_amd64_avx512_linux): New prototype.
8496 (tdesc_x32_avx512_linux): Likewise.
8497 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8498 features/i386/x32-avx512.c.
8499 (amd64_ymm_avx512_names): New register names for pseudo
8500 registers YMM16-31.
8501 (amd64_ymmh_avx512_names): New register names for raw registers
8502 YMMH16-31.
8503 (amd64_k_names): New register names for K registers.
8504 (amd64_zmmh_names): New register names for ZMM raw registers.
8505 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8506 (amd64_xmm_avx512_names): New register names for XMM16-31
8507 registers.
8508 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8509 registers.
8510 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8511 if feature is present.
8512 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8513 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8514 (AMD64_NUM_REGS): Adjust to new number of registers.
8515 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8516 registers supplied via XSTATE by AVX512 registers.
8517 (i386_linux_read_description): Add case for AVX512.
8518 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8519 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8520 (i386_linux_core_read_description): Add case for AVX512.
8521 (i386_linux_init_abi): Install supported register note section
8522 for AVX512.
8523 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8524 AVX512.
8525 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8526 registers to be number of zmm7h + 1.
8527 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8528 * i386-tdep.c: Include features/i386/i386-avx512.c.
8529 (i386_zmm_names): Add ZMM pseudo register names array.
8530 (i386_zmmh_names): Add ZMM raw register names array.
8531 (i386_k_names): Add K raw register names array.
8532 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8533 registers. AVX512 has 16 more ZMM registers than there are YMM
8534 registers.
8535 (i386_zmmh_regnum_p): Add function to look up register number of
8536 ZMM raw registers.
8537 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8538 (i386_k_regnum_p): Likewise for K raw registers.
8539 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8540 registers added by AVX512.
8541 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8542 registers added by AVX512.
8543 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8544 added by AVX512.
8545 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8546 (i386_pseudo_register_name): Add ZMM pseudo registers.
8547 (i386_zmm_type): Construct and return vector registers type for ZMM
8548 registers.
8549 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8550 ZMM0-31 pseudo registers and K registers.
8551 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8552 and YMM16-31 registers from register cache.
8553 (i386_pseudo_register_write): Add code to write K, ZMM and
8554 YMM16-31 registers.
8555 (i386_register_reggroup_p): Add code to include/exclude AVX512
8556 registers in/from respective register groups.
8557 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8558 registers if feature is present in xcr0.
8559 (i386_gdbarch_init): Add code to initialize AVX512 feature
8560 variables in tdep structure, wire in pseudo registers and call
8561 initialize_tdesc_i386_avx512.
8562 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8563 variables.
8564 (i386_regnum): Add AVX512 registers.
8565 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8566 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8567 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8568 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8569 512 bits wide.
8570 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8571 (i386_ymm_avx512_regnum_p): Likewise.
8572 (i386_k_regnum_p): Likewise.
8573 (i386_zmm_regnum_p): Likewise.
8574 (i386_zmmh_regnum_p): Likewise.
8575 * i387-tdep.c : Update year in copyright notice.
8576 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8577 XSAVE buffer.
8578 (XSAVE_YMM_AVX512_ADDR): New macro.
8579 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8580 XSAVE buffer.
8581 (XSAVE_XMM_AVX512_ADDR): New macro.
8582 (xsave_avx512_k_offset): New table for K register offsets in
8583 XSAVE buffer.
8584 (XSAVE_AVX512_K_ADDR): New macro.
8585 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8586 in XSAVE buffer.
8587 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8588 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8589 buffer.
8590 (i387_collect_xsave): Add code to collect AVX512 registers from
8591 XSAVE buffer.
8592 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8593 of XMM16-31 registers.
8594 (I387_NUM_K_REGS): New define for number of K registers.
8595 (I387_K0_REGNUM): New define for K0 register number.
8596 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8597 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8598 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8599 registers.
8600 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8601 (I387_XMM16_REGNUM): New define for XMM16 register number.
8602 (I387_YMM0_REGNUM): New define for YMM0 register number.
8603 (I387_KEND_REGNUM): New define for last K register number.
8604 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8605 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8606 number.
8607 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8608 number.
8609 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8610 size.
8611 * features/Makefile: Add AVX512 related files.
8612 * features/i386/32bit-avx512.xml: New file.
8613 * features/i386/64bit-avx512.xml: Likewise.
8614 * features/i386/amd64-avx512-linux.c: Likewise.
8615 * features/i386/amd64-avx512-linux.xml: Likewise.
8616 * features/i386/amd64-avx512.c: Likewise.
8617 * features/i386/amd64-avx512.xml: Likewise.
8618 * features/i386/i386-avx512-linux.c: Likewise.
8619 * features/i386/i386-avx512-linux.xml: Likewise.
8620 * features/i386/i386-avx512.c: Likewise.
8621 * features/i386/i386-avx512.xml: Likewise.
8622 * features/i386/x32-avx512-linux.c: Likewise.
8623 * features/i386/x32-avx512-linux.xml: Likewise.
8624 * features/i386/x32-avx512.c: Likewise.
8625 * features/i386/x32-avx512.xml: Likewise.
8626 * regformats/i386/amd64-avx512-linux.dat: New file.
8627 * regformats/i386/amd64-avx512.dat: Likewise.
8628 * regformats/i386/i386-avx512-linux.dat: Likewise.
8629 * regformats/i386/i386-avx512.dat: Likewise.
8630 * regformats/i386/x32-avx512-linux.dat: Likewise.
8631 * regformats/i386/x32-avx512.dat: Likewise.
8632 * NEWS: Add note about new support for AVX512.
8633
8634
08351840
PA
86352014-04-23 Pedro Alves <palves@redhat.com>
8636
8637 * breakpoint.c (insert_bp_location): Tolerate errors if the
8638 breakpoint is set in a user-loaded objfile.
8639 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8640 location is marked shlib_disabled. If the breakpoint is set in a
8641 user-loaded objfile is a GDB-side memory breakpoint, validate it
8642 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8643 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8644 flag.
8645 * mem-break.c (memory_validate_breakpoint): New function.
8646 * objfiles.c (userloaded_objfile_contains_address_p): New
8647 function.
8648 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8649 * target.h (memory_validate_breakpoint): New declaration.
8650
076855f9
PA
86512014-04-23 Pedro Alves <palves@redhat.com>
8652
8653 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8654 the breakpoint is set in a shared library, only suppress
8655 errors for software breakpoints, not hardware breakpoints.
8656
483805cf
PA
86572014-04-22 Pedro Alves <palves@redhat.com>
8658
8659 * infrun.c (schedlock_applies): New function, factored out from
8660 find_thread_needs_step_over.
8661 (find_thread_needs_step_over): Use it.
8662 (switch_back_to_stepped_thread): Always clear trap_expected if the
8663 step over is finished. Return early if scheduler locking applies.
8664 Look for the stepping thread and a potential step-over thread with
8665 a single loop.
8666 (currently_stepping_or_nexting_callback): Delete.
8667
a75fef0e
NC
86682014-04-22 Nick Clifton <nickc@redhat.com>
8669
8670 * NEWS: Mention that ARM sim now supports tracing.
8671
48b6e87e
YQ
86722014-04-22 Yao Qi <yao@codesourcery.com>
8673
8674 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8675 to ...
8676 * tracefile.c (tracefile_fetch_registers): ... it. New
8677 function.
8678 * tracefile.h (tracefile_fetch_registers): Declare.
8679 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8680 tracefile_fetch_registers.
8681
17617f2d
EZ
86822014-04-19 Eli Zaretskii <eliz@gnu.org>
8683
8684 PR gdb/14018
8685 * windows-nat.c (thread_rec): Don't display a warning when
8686 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8687 fails for any reason, set th->suspended to -1, so that we don't
8688 try to resume such a thread. Also, don't return NULL in these
8689 cases, to avoid completely ruin the session due to "PC register is
8690 not available" error.
8691 (do_windows_fetch_inferior_registers): Check errors in
8692 GetThreadContext call.
8693 (windows_continue): Accept an additional argument KILLED; if not
8694 zero, ignore errors in the SetThreadContext call, since the
8695 inferior was killed and is shutting down.
8696 (windows_resume, get_windows_debug_event)
8697 (windows_create_inferior, windows_mourn_inferior)
8698 (windows_kill_inferior): All callers of windows_continue changed
8699 to adjust to its new calling sequence.
8700
5723a6fd
YQ
87012014-04-19 Yao Qi <yao@codesourcery.com>
8702
8703 * ctf.c (ctf_open): Call post_create_inferior.
8704
614d5099
YQ
87052014-04-19 Yao Qi <yao@codesourcery.com>
8706
8707 * ctf.c (handle_id): New static variable.
8708 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8709 value. Get the declaration of event "register" and get length
8710 of field "contents".
8711
dac3e710
YQ
87122014-04-19 Yao Qi <yao@codesourcery.com>
8713
8714 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8715
2bca57ba
SC
87162014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8717
8718 * valops.c (oload_method_static): Remove unnecessary argument
8719 METHOD. Update all callers.
8720
51d48146
PA
87212014-04-18 Pedro alves <palves@redhat.com>
8722 Tom Tromey <tromey@redhat.com>
8723
8724 PR backtrace/15558
8725 * frame.c (get_prev_frame_1): Rename to ...
8726 (get_prev_frame_always): ... this, and make extern. Adjust.
8727 (skip_artificial_frames): Use get_prev_frame_always.
8728 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8729 (get_frame_unwind_stop_reason): Adjust to rename.
8730 * frame.h (get_prev_frame_always): Declare.
8731 * inline-frame.c: Include frame.h.
8732 (inline_frame_this_id): Use get_prev_frame_always.
8733
1bdad2e0
TG
87342014-04-18 Tristan Gingold <gingold@adacore.com>
8735
8736 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8737 code by using bfd_mach_o_get_base_address.
8738
7ce16bd4
UW
87392014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8740
8741 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8742 (spu_ax_pseudo_register_collect): New function.
8743 (spu_ax_pseudo_register_push_stack): Likewise.
8744 (spu_dwarf_reg_to_regnum): Likewise.
8745 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8746
2ed3c037
UW
87472014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8748
8749 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8750 Replace FRAME argument with FRAME_ID.
8751 * gdbarch.c, gdbarch.h: Regenerate.
8752 * findvar.c (default_value_from_register): Add GDBARCH argument;
8753 replace FRAME by FRAME_ID. No longer call get_frame_id.
8754 (value_from_register): Update call to gdbarch_value_from_register.
8755 * value.h (default_value_from_register): Update prototype.
8756 * s390-linux-tdep.c (s390_value_from_register): Update interface
8757 and call to default_value_from_register.
8758 * spu-tdep.c (spu_value_from_register): Likewise.
8759
8760 * findvar.c (address_from_register): Remove TYPE argument.
8761 Do not call value_from_register; use gdbarch_value_from_register
8762 with null_frame_id instead.
8763 * value.h (address_from_register): Update prototype.
8764 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8765 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8766 address_from_register interface change.
8767
71e50e83
YQ
87682014-04-17 Yao Qi <yao@codesourcery.com>
8769
8770 * gdbtypes.h: Update comments to link to types and macros'
8771 definitions.
8772
7a23c549
SC
87732014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8774
8775 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8776
22869d73
KS
87772014-04-16 Keith Seitz <keiths@redhat.com>
8778
8779 PR gdb/15827
8780 * dwarf2read.c (skip_one_die): Check that all relative-offset
8781 sibling DIEs fall within range of the current reader's buffer.
8782 (read_partial_die): Likewise.
8783
c4f87ca6
KS
87842014-04-16 Keith Seitz <keiths@redhat.com>
8785
8786 PR c++/16597
8787 * cp-namespace.c (lookup_symbol_file): If the type name of
8788 `this' is NULL, return immediately.
8789
b50c8614
KS
87902014-04-14 Keith Seitz <keiths@redhat.com>
8791
8792 PR c++/16253
8793 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8794 from symbol_matches_domain in symtab.c. All local callers
8795 of symbol_matches_domain updated.
8796 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8797 search STRUCT_DOMAIN.
8798 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8799 independently. standard_lookup will do that automatically.
8800 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8801 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8802 (cp_lookup_symbol_in_namespace): Likewise.
8803 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8804 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8805 may return a STRUCT_DOMAIN match.
8806 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8807 * cp-support.c: Include language.h.
8808 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8809 VAR_DOMAIN.
8810 * psymtab.c (match_partial_symbol): Compare the requested
8811 domain with the symbol's domain directly.
8812 (lookup_partial_symbol): Likewise.
8813 * symtab.c (lookup_symbol_in_language): Explain when/why
8814 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8815 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8816 appropriate languages.
8817 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8818 and moved to ada-lang.c
8819 (lookup_block_symbol): Explain that this function only returns
8820 symbol matching the requested DOMAIN.
8821 Compare the requested domain with the symbol's domain directly.
8822 (iterate_over_symbols): Compare the requested domain with the
8823 symbol's domain directly.
8824 * symtab.h (symbol_matches_domain): Remove.
8825
3d567982
TT
88262014-04-14 Tom Tromey <tromey@redhat.com>
8827
8828 PR c++/15246:
8829 * c-exp.y (type_aggregate_p): New function.
8830 (qualified_name, classify_inner_name): Use it.
8831 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8832 and TYPE_TARGET_TYPE of an enum type.
8833 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8834 an enum type.
8835 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8836 handle TYPE_DECLARED_CLASS.
8837 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8838 types.
8839 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8840 * valops.c (enum_constant_from_type): New function.
8841 (value_aggregate_elt): Use it.
8842 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8843 TYPE_CODE_ENUM.
8844
c848d642
TT
88452014-04-14 Tom Tromey <tromey@redhat.com>
8846
8847 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8848 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8849 const.
8850 * value.h (value_aggregate_elt): Update.
8851
0626fc76
TT
88522014-04-14 Tom Tromey <tromey@redhat.com>
8853
8854 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8855
5ecaaa66
SA
88562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8857
8858 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8859 (evaluate_subexp_standard): Pass noside argument.
8860 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8861 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8862 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8863 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8864 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8865
1612e0c0
SA
88662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8867
8868 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8869 points to a constant blob.
8870
c451ebe5
SA
88712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8872
8873 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8874 property and store it as the high bound and flag the range accordingly.
8875 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8876 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8877 * gdbtypes.h (enum range_flags): New enum.
8878 (struct range_bounds): Add flags member.
8879
1d42e4c4
SA
88802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8881
8882 * c-typeprint.c (c_type_print_varspec_suffix): Added
8883 check for not yet resolved high bound. If unresolved, print
8884 "variable length" string to the console instead of random
8885 length.
8886
9f1f738a
SA
88872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8888
8889 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8890 value.
8891 (ada_template_to_fixed_record_type_1): Likewise.
8892 (ada_to_fixed_type_1): Likewise.
8893 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8894 (cp_print_value): Likewise.
8895 * d-valprint.c (dynamic_array_type): Likewise.
8896 * findvar.c (address_of_variable): Likewise.
8897 * jv-valprint.c (java_value_print): Likewise.
8898 * valops.c (value_ind): Likewise.
8899 * value.c (coerce_ref): Likewise.
8900
3c8452d4
SA
89012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8902
8903 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8904 value and retrieve the dynamic type size.
8905
4ad88275
SA
89062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8907
8908 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8909 passed to sizeof is dynamic evaluate the argument to compute the length.
8910
80180f79
SA
89112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8912 Joel Brobecker <brobecker@adacore.com>
8913
8914 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8915 (dwarf2_evaluate_property): New function.
8916 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8917 * dwarf2read.c (attr_to_dynamic_prop): New function.
8918 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8919 attribute.
8920 * gdbtypes.c: Include dwarf2loc.h.
8921 (is_dynamic_type): New function.
8922 (resolve_dynamic_type): New function.
8923 (resolve_dynamic_bounds): New function.
8924 (get_type_length): New function.
8925 (check_typedef): Use get_type_length to compute type length.
8926 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8927 (TYPE_LOW_BOUND_KIND): New macro.
8928 (is_dynamic_type): New function prototype.
8929 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8930 to resolve dynamic properties of the type. Update comment.
8931 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8932
a1556843
RH
89332014-04-14 Richard Henderson <rth@redhat.com>
8934
8935 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8936
0be03e84
DE
89372014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8938 Doug Evans <xdje42@gmail.com>
8939
8940 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8941 dereference TYPE_CODE_REF values.
8942
6b662e19
JB
89432014-04-11 Joel Brobecker <brobecker@adacore.com>
8944
8945 Revert the following changes due to regressions:
8946
8947 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8948 (dwarf2_evaluate_property): New function.
8949 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8950 * dwarf2read.c (attr_to_dynamic_prop): New function.
8951 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8952 attribute.
8953 * gdbtypes.c: Include dwarf2loc.h.
8954 (is_dynamic_type): New function.
8955 (resolve_dynamic_type): New function.
8956 (resolve_dynamic_bounds): New function.
8957 (get_type_length): New function.
8958 (check_typedef): Use get_type_length to compute type length.
8959 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8960 (TYPE_LOW_BOUND_KIND): New macro.
8961 (is_dynamic_type): New function prototype.
8962 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8963 to resolve dynamic properties of the type. Update comment.
8964 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8965
8966 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8967 passed to sizeof is dynamic evaluate the argument to compute the length.
8968
8969 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8970 value and retrieve the dynamic type size.
8971
8972 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8973 (ada_template_to_fixed_record_type_1): Likewise.
8974 (ada_to_fixed_type_1): Likewise.
8975 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8976 (cp_print_value): Likewise.
8977 * d-valprint.c (dynamic_array_type): Likewise.
8978 * eval.c (evaluate_subexp_with_coercion): Likewise.
8979 * findvar.c (address_of_variable): Likewise.
8980 * jv-valprint.c (java_value_print): Likewise.
8981 * valops.c (value_ind): Likewise.
8982 * value.c (coerce_ref): Likewise.
8983
8984 * c-typeprint.c (c_type_print_varspec_suffix): Added
8985 check for not yet resolved high bound. If unresolved, print
8986 "variable length" string to the console instead of random
8987 length.
8988
8989 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8990 property and store it as the high bound and flag the range accordingly.
8991 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8992 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8993 * gdbtypes.h (enum range_flags): New enum.
8994 (struct range_bounds): Add flags member.
8995
8996 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8997 points to a constant blob.
8998
8999 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9000 (evaluate_subexp_standard): Pass noside argument.
9001 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9002 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9003 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9004 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9005 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9006
245a5f0b
KS
90072014-04-11 Keith Seitz <keiths@redhat.com>
9008
9009 PR c++/16675
9010 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9011 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9012 reference types.
9013
3bce8237
SA
90142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9015
9016 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9017 (evaluate_subexp_standard): Pass noside argument.
9018 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9019 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9020 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9021 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9022 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9023
92b09522
SA
90242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9025
9026 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9027 points to a constant blob.
9028
e1969afb
SA
90292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9030
9031 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9032 property and store it as the high bound and flag the range accordingly.
9033 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9034 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9035 * gdbtypes.h (enum range_flags): New enum.
9036 (struct range_bounds): Add flags member.
9037
b86138fb
SA
90382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9039
9040 * c-typeprint.c (c_type_print_varspec_suffix): Added
9041 check for not yet resolved high bound. If unresolved, print
9042 "variable length" string to the console instead of random
9043 length.
9044
bcd629a4
SA
90452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9046
9047 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9048 (ada_template_to_fixed_record_type_1): Likewise.
9049 (ada_to_fixed_type_1): Likewise.
9050 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9051 (cp_print_value): Likewise.
9052 * d-valprint.c (dynamic_array_type): Likewise.
9053 * eval.c (evaluate_subexp_with_coercion): Likewise.
9054 * findvar.c (address_of_variable): Likewise.
9055 * jv-valprint.c (java_value_print): Likewise.
9056 * valops.c (value_ind): Likewise.
9057 * value.c (coerce_ref): Likewise.
9058
04b19544
SA
90592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9060
9061 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9062 value and retrieve the dynamic type size.
9063
26cb189f
SA
90642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9065
9066 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9067 passed to sizeof is dynamic evaluate the argument to compute the length.
9068
37c1ab67
SA
90692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9070
9071 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9072 (dwarf2_evaluate_property): New function.
9073 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9074 * dwarf2read.c (attr_to_dynamic_prop): New function.
9075 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9076 attribute.
9077 * gdbtypes.c: Include dwarf2loc.h.
9078 (is_dynamic_type): New function.
9079 (resolve_dynamic_type): New function.
9080 (resolve_dynamic_bounds): New function.
9081 (get_type_length): New function.
9082 (check_typedef): Use get_type_length to compute type length.
9083 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9084 (TYPE_LOW_BOUND_KIND): New macro.
9085 (is_dynamic_type): New function prototype.
9086 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9087 to resolve dynamic properties of the type. Update comment.
9088 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9089
729efb13
SA
90902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9091
9092 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9093 declaring high/low bounds and change uses accordingly. Call
9094 create_range_type instead of create_static_range_type.
9095 * gdbtypes.c (create_range_type): New function.
9096 (create_range_type): Convert bounds into struct bound_prop and pass
9097 them to create_range_type.
9098 * gdbtypes.h (struct bound_prop): New struct.
9099 (create_range_type): New function prototype.
9100 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9101 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9102 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9103 part of the bound.
9104 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9105
0c9c3474
SA
91062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9107
9108 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9109 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9110 * ada-lang.c: All uses of create_range_type updated.
9111 * coffread.c: All uses of create_range_type updated.
9112 * dwarf2read.c: All uses of create_range_type updated.
9113 * f-exp.y: All uses of create_range_type updated.
9114 * m2-valprint.c: All uses of create_range_type updated.
9115 * mdebugread.c: All uses of create_range_type updated.
9116 * stabsread.c: All uses of create_range_type updated.
9117 * valops.c: All uses of create_range_type updated.
9118 * valprint.c: All uses of create_range_type updated.
9119
9d497a19
PA
91202014-04-10 Pedro Alves <palves@redhat.com>
9121
9122 * breakpoint.c (single_step_breakpoints)
9123 (single_step_gdbarch): Move up in the file.
9124 (one_breakpoint_xfer_memory): New function, factored out from ...
9125 (breakpoint_xfer_memory): ... here. Also process single-step
9126 breakpoints.
9127
15a9128a
TG
91282014-04-09 Tristan Gingold <gingold@adacore.com>
9129
9130 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9131 comments.
9132 (darwin_decode_exception_message): Free port only after use.
9133
9c97a070
PL
91342014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9135
9136 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9137 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9138 when setting the size of call_length.
9139
7af389b8
SC
91402014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9141
9142 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9143 dereference TYPE_CODE_REF values.
9144
86ad98c3
JB
91452014-04-07 Joel Brobecker <brobecker@adacore.com>
9146
9147 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9148 end of warning message.
9149
b0aeadb3
DE
91502014-04-03 Doug Evans <dje@google.com>
9151
9152 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9153 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9154
5979d6b6
AM
91552014-04-02 Alan Modra <amodra@gmail.com>
9156
9157 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9158 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9159 (struct symbol_file_add_from_memory_args): Add size field.
9160 (find_vdso_size): New function.
9161 (add_vsyscall_page): Attempt to find vdso size.
9162
0d60c288
DE
91632014-04-01 Doug Evans <dje@google.com>
9164
9165 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9166
a41f2563
TG
91672014-04-01 Tristan Gingold <gingold@adacore.com>
9168
9169 * darwin-nat.c (darwin_encode_reply): Add prototype.
9170 (darwin_decode_exception_message): Reply to unknown inferiors.
9171 (darwin_decode_message): Handle message by id. Ignore message
9172 to unknown inferior.
9173 (darwin_wait): Discard unknown messages, add debug trace.
9174
11a865c8
DE
91752014-03-31 Doug Evans <dje@google.com>
9176
9177 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9178 comp_dir_string.
9179
770e7fc7
DE
91802014-03-31 Doug Evans <dje@google.com>
9181
9182 New option "set print symbol-loading".
9183 * NEWS: Mention it.
9184 * solib.c (solib_read_symbols): Only print symbol loading messages
9185 if requested.
9186 (solib_add): If symbol loading is in "brief" mode, notify user
9187 symbols are being loaded.
9188 (reload_shared_libraries_1): Ditto.
9189 * symfile.c (print_symbol_loading_off): New static global.
9190 (print_symbol_loading_brief): New static global.
9191 (print_symbol_loading_full): New static global.
9192 (print_symbol_loading_enums): New static global.
9193 (print_symbol_loading): New static global.
9194 (print_symbol_loading_p): New function.
9195 (symbol_file_add_with_addrs): Only print symbol loading messages
9196 if requested.
9197 (_initialize_symfile): Register "print symbol-loading" set/show
9198 command.
9199 * symfile.h (print_symbol_loading_p): Declare.
9200
c32c64b7
DE
92012014-03-30 Doug Evans <xdje42@gmail.com>
9202
9203 * infrun.c (set_last_target_status): New function.
9204 (handle_inferior_event): Call it.
9205
7c0bc051
DE
92062014-03-30 Doug Evans <xdje42@gmail.com>
9207
9208 * inferior.h (enum stop_kind): Improve comment.
9209
8776cfe9
JB
92102014-03-28 Joel Brobecker <brobecker@adacore.com>
9211
9212 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9213 a reference, strip the reference layer before calling
9214 the lang_ops value_has_mutated callback.
9215
410a0ff2
SDJ
92162014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9217
9218 Remove some globals from our parser.
9219 * language.c (unk_lang_parser): Add "struct parser_state"
9220 argument.
9221 * language.h (struct language_defn) <la_parser>: Likewise.
9222 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9223 (initialize_expout): Add "struct parser_state" argument.
9224 Rewrite function to use the parser state.
9225 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9226 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9227 write_exp_elt_longcst, write_exp_elt_dblcst,
9228 write_exp_elt_decfloatcst, write_exp_elt_type,
9229 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9230 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9231 write_dollar_variable): Likewise.
9232 (parse_exp_in_context_1): Use parser state.
9233 (insert_type_address_space): Add "struct parser_state" argument.
9234 Use parser state.
9235 (increase_expout_size): New function.
9236 * parser-defs.h: Forward declare "struct language_defn" and
9237 "struct parser_state".
9238 (expout, expout_size, expout_ptr): Remove extern declarations.
9239 (parse_gdbarch, parse_language): Rewrite macro declarations to
9240 accept the parser state.
9241 (struct parser_state): New struct.
9242 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9243 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9244 write_exp_elt_decfloatcst, write_exp_elt_type,
9245 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9246 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9247 write_exp_msymbol, write_dollar_variable,
9248 mark_struct_expression, insert_type_address_space): Add "struct
9249 parser_state" argument.
9250 (increase_expout_size): New function.
9251 * utils.c (do_clear_parser_state): New function.
9252 (make_cleanup_clear_parser_state): Likewise.
9253 * utils.h (make_cleanup_clear_parser_state): New function
9254 prototype.
9255 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9256 Update calls to write_exp* in order to pass the parser state.
9257 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9258 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9259 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9260 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9261 * stap-probe.c (stap_parse_register_operand): Likewise.
9262 (stap_parse_single_operand): Likewise.
9263 (stap_parse_argument_1): Likewise.
9264 (stap_parse_argument): Use parser state.
9265 * stap-probe.h: Include "parser-defs.h".
9266 (struct stap_parse_info) <pstate>: New field.
9267 * c-exp.y (parse_type): Rewrite to use parser state.
9268 (yyparse): Redefine to c_parse_internal.
9269 (pstate): New global variable.
9270 (parse_number): Add "struct parser_state" argument.
9271 (write_destructor_name): Likewise.
9272 (type_exp): Update calls to write_exp* and similars in order to
9273 use parser state.
9274 (exp1, exp, variable, qualified_name, space_identifier,
9275 typename, typebase): Likewise.
9276 (write_destructor_name, parse_number, lex_one_token,
9277 classify_name, classify_inner_name, c_parse): Add "struct
9278 parser_state" argument. Update function to use parser state.
9279 * c-lang.h: Forward declare "struct parser_state".
9280 (c_parse): Add "struct parser_state" argument.
9281 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9282 (yyparse): Redefine macro to ada_parse_internal.
9283 (pstate): New variable.
9284 (write_int, write_object_renaming, write_var_or_type,
9285 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9286 type_int, type_long, type_long_long, type_float, type_double,
9287 type_long_double, type_char, type_boolean, type_system_address):
9288 Add "struct parser_state" argument.
9289 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9290 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9291 var_or_type, aggregate, aggregate_component_list,
9292 positional_list, others, component_group,
9293 component_associations): Update calls to write_exp* and similar
9294 functions in order to use parser state.
9295 (ada_parse, write_var_from_sym, write_int,
9296 write_exp_op_with_string, write_object_renaming,
9297 find_primitive_type, write_selectors, write_ambiguous_var,
9298 write_var_or_type, write_name_assoc, type_int, type_long,
9299 type_long_long, type_float, type_double, type_long_double,
9300 type_char, type_boolean, type_system_address): Add "struct
9301 parser_state" argument. Adjust function to use parser state.
9302 * ada-lang.c (parse): Likewise.
9303 * ada-lang.h: Forward declare "struct parser_state".
9304 (ada_parse): Add "struct parser_state" argument.
9305 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9306 calls to both functions.
9307 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9308 parser state.
9309 (yyparse): Redefine macro to f_parse_internal.
9310 (pstate): New variable.
9311 (parse_number): Add "struct parser_state" argument.
9312 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9313 and similars in order to use parser state.
9314 (parse_number): Adjust code to use parser state.
9315 (yylex): Likewise.
9316 (f_parse): New function.
9317 * f-lang.h: Forward declare "struct parser_state".
9318 (f_parse): Add "struct parser_state" argument.
9319 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9320 parser state.
9321 (yyparse): Redefine macro for java_parse_internal.
9322 (pstate): New variable.
9323 (push_expression_name, push_expression_name, insert_exp): Add
9324 "struct parser_state" argument.
9325 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9326 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9327 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9328 PostIncrementExpression, PostDecrementExpression,
9329 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9330 UnaryExpressionNotPlusMinus, CastExpression,
9331 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9332 RelationalExpression, EqualityExpression, AndExpression,
9333 ExclusiveOrExpression, InclusiveOrExpression,
9334 ConditionalAndExpression, ConditionalOrExpression,
9335 ConditionalExpression, Assignment, LeftHandSide): Update
9336 calls to write_exp* and similars in order to use parser state.
9337 (parse_number): Ajust code to use parser state.
9338 (yylex): Likewise.
9339 (java_parse): New function.
9340 (push_variable): Add "struct parser_state" argument. Adjust
9341 code to user parser state.
9342 (push_fieldnames, push_qualified_expression_name,
9343 push_expression_name, insert_exp): Likewise.
9344 * jv-lang.h: Forward declare "struct parser_state".
9345 (java_parse): Add "struct parser_state" argument.
9346 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9347 parser state.
9348 (yyparse): Redefine macro to m2_parse_internal.
9349 (pstate): New variable.
9350 (type_exp, exp, fblock, variable, type): Update calls to
9351 write_exp* and similars to use parser state.
9352 (yylex): Likewise.
9353 (m2_parse): New function.
9354 * m2-lang.h: Forward declare "struct parser_state".
9355 (m2_parse): Add "struct parser_state" argument.
9356 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9357 * objc-lang.h: Forward declare "struct parser_state".
9358 (end_msglist): Add "struct parser_state" argument.
9359 * p-exp.y (parse_type): Rewrite macro to use parser state.
9360 (yyparse): Redefine macro to pascal_parse_internal.
9361 (pstate): New variable.
9362 (parse_number): Add "struct parser_state" argument.
9363 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9364 write_exp* and similars in order to use parser state.
9365 (parse_number, yylex): Adjust code to use parser state.
9366 (pascal_parse): New function.
9367 * p-lang.h: Forward declare "struct parser_state".
9368 (pascal_parse): Add "struct parser_state" argument.
9369 * go-exp.y (parse_type): Rewrite macro to use parser state.
9370 (yyparse): Redefine macro to go_parse_internal.
9371 (pstate): New variable.
9372 (parse_number): Add "struct parser_state" argument.
9373 (type_exp, exp1, exp, variable, type): Update calls to
9374 write_exp* and similars in order to use parser state.
9375 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9376 to use parser state.
9377 (go_parse): Likewise.
9378 * go-lang.h: Forward declare "struct parser_state".
9379 (go_parse): Add "struct parser_state" argument.
9380
342587c4
DE
93812014-03-27 Doug Evans <dje@google.com>
9382
9383 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9384
33e80786
DE
93852014-03-27 Doug Evans <dje@google.com>
9386
9387 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9388 Remove argument abbrev_section. All callers updated.
9389
1dbab08b
DE
93902014-03-27 Doug Evans <dje@google.com>
9391
9392 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9393 addr_base, ranges_base.
9394
318d3177
KS
93952014-03-26 Keith Seitz <keiths@redhat.com>
9396
9397 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9398 types, not VAR_DOMAIN.
9399
1e54db15
SL
94002014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9401
9402 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9403 "ra" registers.
9404 * features/nios2-linux.c: Regenerated.
9405 * features/nios2.c: Regenerated.
9406
d3839ede
PA
94072014-03-25 Pedro Alves <palves@redhat.com>
9408
9409 * cli/cli-script.c (script_from_file): Force the interpreter to
9410 sync mode.
9411
7588d2ec
PL
94122014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9413
9414 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9415 small stack allocation.
9416
a6290449
TG
94172014-03-24 Tristan Gingold <gingold@adacore.com>
9418
9419 * darwin-nat.c (exc_server): Remove unused prototype.
9420 (darwin_dump_message): Correctly display data on x86_64.
9421 (darwin_encode_reply): Fix style.
9422 Add comments and fix indentation.
9423
31ae9d24 94242014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9425
9426 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9427
6339bfc4
DE
94282014-03-22 Doug Evans <xdje42@gmail.com>
9429
9430 * infcmd.c: Whitespace fixes.
9431 (interrupt_command): Merge two function comments into one.
9432
0a07590b
DE
94332014-03-22 Doug Evans <xdje42@gmail.com>
9434
9435 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9436 All uses updated.
9437
b55fbac4
YQ
94382014-03-22 Yao Qi <yao@codesourcery.com>
9439
9440 * remote.c (target_read_live_memory): Remove.
9441 (memory_xfer_live_readonly_partial): Rename it to
9442 remote_xfer_live_readonly_partial. Remove argument 'object'.
9443 All callers updated. Call remote_read_bytes_1
9444 instead of target_read_live_memory.
9445 * tracepoint.c (set_traceframe_number): Remove.
9446 (make_cleanup_restore_traceframe_number): Likewise .
9447 * tracepoint.h (set_traceframe_number): Remove declaration.
9448 (make_cleanup_restore_traceframe_number): Likewise.
9449
9217e74e
YQ
94502014-03-22 Yao Qi <yao@codesourcery.com>
9451
9452 * remote.c (remote_read_bytes): Move code on reading from the
9453 remote stub to ...
9454 (remote_read_bytes_1): ... here. New function.
9455
8acf9577
YQ
94562014-03-22 Yao Qi <yao@codesourcery.com>
9457
9458 * ctf.c (ctf_xfer_partial): Check the return value of
9459 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9460 return TARGET_XFER_UNAVAILABLE.
9461 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9462 * target.c (target_read_live_memory): Move it to remote.c.
9463 (memory_xfer_live_readonly_partial): Likewise.
9464 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9465 * remote.c (target_read_live_memory): Moved from target.c.
9466 (memory_xfer_live_readonly_partial): Likewise.
9467 (remote_read_bytes): Factored out from
9468 memory_xfer_partial_1.
9469
feef67ab
DE
94702014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9471
9472 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9473 NULL pointer.
9474
b65dc60b
PA
94752014-03-21 Pedro Alves <palves@redhat.com>
9476
9477 * infrun.c (normal_stop): Extend comment.
9478
b4ab256d
HZ
94792014-03-21 Hui Zhu <hui@codesourcery.com>
9480 Pedro Alves <palves@redhat.com>
9481
9482 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9483 static buffer.
9484 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9485 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9486 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9487
deba7593
MR
94882014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9489
9490 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9491 `z' formatted output modifier.
9492
1bff71c3
SDJ
94932014-03-20 Tom Tromey <tromey@redhat.com>
9494 Sergio Durigan Junior <sergiodj@redhat.com>
9495
9496 * probe.c (parse_probes): Turn assert into an ordinary error.
9497 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9498 exceptions when parsing probes. Rearrange the code for clarity.
9499
90e28950
TT
95002014-03-20 Tom Tromey <tromey@redhat.com>
9501
9502 PR gdb/14135
9503 * top.c (execute_command): Only dispatch events if the command
9504 started the target.
9505
beb460e8
PA
95062014-03-20 Tom Tromey <tromey@redhat.com>
9507
9508 PR cli/15718
9509 * infcall.c: Include event-top.h.
9510 (run_inferior_call): Call async_disable_stdin if needed.
9511
99619bea
PA
95122014-03-20 Pedro Alves <palves@redhat.com>
9513
9514 * infrun.c (prepare_to_proceed): Delete.
9515 (thread_still_needs_step_over): New function.
9516 (find_thread_needs_step_over): New function.
9517 (proceed): If the current thread needs a step-over, set its
9518 steping_over_breakpoint flag. Adjust to use
9519 find_thread_needs_step_over instead of prepare_to_proceed.
9520 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9521 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9522 breakpoint.
9523 (switch_back_to_stepped_thread): Step over breakpoints of all
9524 threads not the stepping thread, before switching back to the
9525 stepping thread.
9526
2adfaa28
PA
95272014-03-20 Pedro Alves <palves@redhat.com>
9528
9529 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9530 extern.
9531 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9532 * infrun.c (saved_singlestep_ptid)
9533 (stepping_past_singlestep_breakpoint): Delete.
9534 (resume): Remove stepping_past_singlestep_breakpoint handling.
9535 (proceed): Store the prev_pc of the stepping thread too.
9536 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9537 singlestep_pc.
9538 (enum infwait_states): Delete infwait_thread_hop_state.
9539 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9540 field.
9541 (handle_inferior_event): Adjust.
9542 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9543 handling and the thread-hop code. Before removing single-step
9544 breakpoints, check whether the thread hit a single-step breakpoint
9545 of another thread. If it did, the trap is not a random signal.
9546 (switch_back_to_stepped_thread): If the event thread hit a
9547 single-step breakpoint, unblock it before switching to the
9548 stepping thread. Handle the case of the stepped thread having
9549 advanced already.
9550 (keep_going): Handle the case of the current thread moving past a
9551 single-step breakpoint.
9552
31e77af2
PA
95532014-03-20 Pedro Alves <palves@redhat.com>
9554
9555 PR breakpoints/7143
9556 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9557 are being stepped over.
9558 (breakpoint_address_match): Make extern.
9559 * breakpoint.h (breakpoint_address_match): New declaration.
9560 * inferior.h (stepping_past_instruction_at): New declaration.
9561 * infrun.c (struct step_over_info): New type.
9562 (step_over_info): New global.
9563 (set_step_over_info, clear_step_over_info)
9564 (stepping_past_instruction_at): New functions.
9565 (handle_inferior_event): Clear the step-over info when
9566 trap_expected is cleared.
9567 (resume): Remove now stale comment.
9568 (clear_proceed_status): Clear step-over info.
9569 (proceed): Adjust step-over handling to set or clear the step-over
9570 info instead of removing all breakpoints.
9571 (handle_signal_stop): When setting up a thread-hop, don't remove
9572 breakpoints here.
9573 (stop_stepping): Clear step-over info.
9574 (keep_going): Adjust step-over handling to set or clear step-over
9575 info and then always inserting breakpoints, instead of removing
9576 all breakpoints when stepping over one.
9577
b9f437de
PA
95782014-03-20 Pedro Alves <palves@redhat.com>
9579
9580 * infrun.c (previous_inferior_ptid): Adjust comment.
9581 (deferred_step_ptid): Delete.
9582 (infrun_thread_ptid_changed, prepare_to_proceed)
9583 (init_wait_for_inferior): Adjust.
9584 (handle_signal_stop): Delete deferred_step_ptid handling.
9585
06c868a8
JK
95862014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9587
9588 PR gdb/15358
9589 * defs.h (sync_quit_force_run): New declaration.
9590 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9591 * event-top.c (async_sigterm_handler): New declaration.
9592 (async_sigterm_token): New variable.
9593 (async_init_signals): Create also async_sigterm_token.
9594 (async_sigterm_handler): New function.
9595 (sync_quit_force_run): New variable.
9596 (handle_sigterm): Replace quit_force call by other calls.
9597 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9598
dea80df0
MR
95992014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9600
9601 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9602 offset into SPE pseudo registers.
9603
0c7e1a46
PA
96042014-03-18 Pedro Alves <palves@redhat.com>
9605
9606 PR gdb/13860
9607 * inferior.h (print_stop_event): Declare.
9608 * infrun.c (print_stop_event): New, factored out from ...
9609 (normal_stop): ... this.
9610 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9611 of bpstat_print/print_stack_frame.
9612
9c1fcd01
TT
96132014-03-17 Tom Tromey <tromey@redhat.com>
9614
9615 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9616
11aa919a
PMR
96172014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9618
9619 * ada-lang.c (decode_constrained_packed_array): Perform a
9620 minimal coercion for reference with coerce_ref instead of
9621 ada_coerce_ref.
9622
d4ccb5e0
TG
96232014-03-17 Tristan Gingold <gingold@adacore.com>
9624
9625 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9626 (darwin_solib_create_inferior_hook): Emit a warning if version
9627 is unhandled.
9628
49840f2a
UW
96292014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9630
9631 * python/py-value.c (get_field_flag): Cast flag_name argument to
9632 PyObject_GetAttrString to support Python 2.4.
9633
ed4123e5
JK
96342014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9637 (Global Maintainers): Remove Jan Kratochvil.
9638
d6b64346
PA
96392014-03-14 Pedro Alves <palves@redhat.com>
9640
9641 * inferior.h (terminal_ours_for_output): Rename to ...
9642 (child_terminal_ours_for_output): ... this.
9643 (terminal_save_ours): Rename to ...
9644 (child_terminal_save_ours): ... this.
9645 (terminal_ours): Rename to ...
9646 (child_terminal_ours): ... this.
9647 (terminal_inferior): Rename to ...
9648 (child_terminal_inferior): ... this.
9649 (terminal_init_inferior): Rename to ...
9650 (child_terminal_init_inferior): ... this.
9651 (terminal_init_inferior_with_pgrp): Rename to ...
9652 (child_terminal_init_inferior_with_pgrp): ... this.
9653 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9654 (child_terminal_init_with_pgrp): ... this.
9655 (terminal_save_ours): Rename to ...
9656 (child_terminal_save_ours): ... this.
9657 (terminal_init_inferior): Rename to ...
9658 (child_terminal_init): ... this. Adjust.
9659 (terminal_inferior): Rename to ...
9660 (child_terminal_inferior): ... this.
9661 (terminal_ours_for_output): Rename to ...
9662 (child_terminal_ours_for_output): ... this. Adjust.
9663 (terminal_ours): Rename to ...
9664 (child_terminal_ours): ... this.
9665 (terminal_ours_1): Rename to ...
9666 (child_terminal_ours_1): ... this. Adjust.
9667 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9668 * windows-nat.c (do_initial_windows_stuff): Adjust.
9669 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9670 (gnu_terminal_init): ... this. Adjust.
9671 (gnu_target): Adjust.
9672 * inf-child.c (inf_child_target): Adjust.
9673
5a1e8c7a
DE
96742014-03-13 Doug Evans <xdje42@gmail.com>
9675
9676 PR guile/16612
9677 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9678 new eq?-hashtab.
9679
350e1a76
DE
96802014-03-13 Doug Evans <xdje42@gmail.com>
9681
9682 * value.c (record_latest_value): Call release_value_or_incref
9683 instead of release_value.
9684
a69900ae
PA
96852014-03-13 Pedro Alves <palves@redhat.com>
9686
9687 * procfs.c (procfs_target): Don't override to_shortname,
9688 to_longname or to_doc.
9689
5db9f0bd
PA
96902014-03-13 Pedro Alves <palves@redhat.com>
9691
9692 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9693 Unix in user visible strings.
9694
5e3a2c38
SS
96952014-03-12 Stan Shebs <stan@codesourcery.com>
9696
9697 * gdbtypes.h: Annotate comments for Doxygen, add a page
9698 block comment with some general info.
9699
8bc2fe48
PA
97002014-03-12 Pedro Alves <palves@redhat.com>
9701
9702 * infcmd.c (prepare_execution_command): New function, factored out
9703 from several execution commands.
9704 (run_command_1, continue_command, step_1, jump_command)
9705 (signal_command, until_command, advance_command, finish_command)
9706 (attach_command): Use prepare_execution_command.
9707
638c5f49
OJ
97082014-03-12 Omair Javaid <omair.javaid@linaro.org>
9709
9710 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9711 (MAX_BPTS): Define.
9712 (MAX_WPTS): Define.
9713 (struct arm_linux_thread_points): Removed.
9714 (struct arm_linux_process_info): New.
9715 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9716 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9717 (arm_linux_find_breakpoints_by_tid): Removed.
9718 (struct arch_lwp_info): New.
9719 (arm_linux_find_process_pid): New functions.
9720 (arm_linux_add_process): New functions.
9721 (arm_linux_process_info_get): New functions.
9722 (arm_linux_forget_process): New function.
9723 (arm_linux_get_debug_reg_state): New function.
9724 (struct update_registers_data): New.
9725 (update_registers_callback): New function.
9726 (arm_linux_insert_hw_breakpoint1): Updated.
9727 (arm_linux_remove_hw_breakpoint1): Updated.
9728 (arm_linux_insert_hw_breakpoint): Updated.
9729 (arm_linux_remove_hw_breakpoint): Updated.
9730 (arm_linux_insert_watchpoint): Updated.
9731 (arm_linux_remove_watchpoint): Updated.
9732 (arm_linux_new_thread): Updated.
9733 (arm_linux_prepare_to_resume): New function.
9734 (arm_linux_new_fork): New function.
9735 (_initialize_arm_linux_nat): Updated.
9736
6d03af93
PA
97372014-03-12 Pedro Alves <palves@redhat.com>
9738
9739 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9740
b3ccfe11
TT
97412014-03-12 Tom Tromey <tromey@redhat.com>
9742
9743 * inf-child.c (return_zero): New function.
9744 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9745 * aix-thread.c (aix_thread_inferior_created): New function.
9746 (aix_thread_attach): Remove.
9747 (init_aix_thread_ops): Don't set to_attach.
9748 (_initialize_aix_thread): Register inferior_created observer.
9749 * corelow.c (init_core_ops): Don't set to_attach or
9750 to_create_inferior.
9751 * exec.c (init_exec_ops): Don't set to_attach or
9752 to_create_inferior.
9753 * infcmd.c (run_command_1): Use find_run_target. Make direct
9754 target calls.
9755 (attach_command): Use find_attach_target. Make direct target
9756 calls.
9757 * record-btrace.c (init_record_btrace_ops): Don't set
9758 to_create_inferior.
9759 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9760 Remove.
9761 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9762 set to_create_inferior.
9763 * target.c (complete_target_initialization): Add assertion.
9764 (target_create_inferior): Remove.
9765 (find_default_attach, find_default_create_inferior): Remove.
9766 (find_attach_target, find_run_target): New functions.
9767 (find_default_is_async_p, find_default_can_async_p)
9768 (target_supports_non_stop, target_attach): Remove.
9769 (init_dummy_target): Don't set to_create_inferior or
9770 to_supports_non_stop.
9771 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9772 TARGET_DEFAULT_FUNC.
9773 <to_create_inferior>: Add comment.
9774 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9775 TARGET_DEFAULT_RETURN.
9776 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9777 (find_attach_target, find_run_target): Declare.
9778 (target_create_inferior): Remove.
9779 (target_has_execution_1): Update comment.
9780 (target_supports_non_stop): Remove.
9781 * target-delegates.c: Rebuild.
9782
91f83b02
PA
97832014-03-12 Pedro Alves <palves@redhat.com>
9784
9785 * inf-child.h: Update comment to not mention Unix.
9786
f1aea813
PA
97872014-03-12 Pedro Alves <palves@redhat.com>
9788
9789 * inf-child.c: Update top comment to not mention Unix. Add
9790 generic comment describing how this target is meant to be used.
9791 (inf_child_post_attach, inf_child_post_startup_inferior)
9792 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9793 Unix in comment.
9794
ee8e9165
PA
97952014-03-12 Pedro Alves <palves@redhat.com>
9796
9797 * nto-procfs.c: Include inf-child.h.
9798 (procfs_ops): Delete global.
9799 (procfs_can_run): Delete method.
9800 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9801 target pointer instead of referencing procfs_ops.
9802 (procfs_prepare_to_store): Delete.
9803 (init_procfs_ops): Delete function.
9804 (procfs_target): New function, based on init_procfs_ops, but
9805 inherit inf_child_target.
9806 (_initialize_procfs): Use procfs_target.
9807
51a9c8c5
PA
98082014-03-12 Pedro Alves <palves@redhat.com>
9809
9810 * windows-nat.c: Include inf-child.h.
9811 (windows_ops): Delete global.
9812 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9813 methods.
9814 (init_windows_ops): Delete function.
9815 (windows_target): New function, based on init_windows_ops, but
9816 inherit inf_child_target.
9817 (_initialize_windows_nat): Use windows_target. Install x86
9818 specific target methods here.
9819
c1966e26
DE
98202014-03-10 Doug Evans <xdje42@gmail.com>
9821
9822 * guile/guile.c (call_initialize_gdb_module): New function.
9823 (initialize_guile): Replace call to scm_init_guile with call to
9824 scm_with_guile.
9825
023db19c
JB
98262014-03-10 Joel Brobecker <brobecker@adacore.com>
9827
9828 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9829 in call to TYPE_CODE macro.
9830
5ec18f2b
JG
98312014-03-10 Jerome Guitton <guitton@adacore.com>
9832
8668be63
JB
9833 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9834 Resolve tagged types to full view.
5ec18f2b 9835
7d03f2eb
HZ
98362014-03-10 Hui Zhu <hui@codesourcery.com>
9837
9838 * target.h (target_insert_breakpoint): Remove "hardware" from its
9839 comments.
9840
c5164cbc
DE
98412014-03-07 Doug Evans <dje@google.com>
9842
9843 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9844
c4a3fee2
DE
98452014-03-07 Doug Evans <dje@google.com>
9846
9847 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9848 Remove unused local comp_dir_attr. Assert exactly one of
9849 stub_comp_unit_die, stub_comp_dir is non-NULL.
9850
3156469c
JB
98512014-03-07 Joel Brobecker <brobecker@adacore.com>
9852
9853 * target.h (complete_target_initialization, add_target):
9854 Add comment.
9855
c1a7b7c6
PA
98562014-03-07 Pedro Alves <palves@redhat.com>
9857
9858 * go32-nat.c: Include inf-child.h.
9859 (go32_ops): Delete global.
9860 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9861 Delete methods.
9862 (go32_create_inferior): Push the passed in target pointer instead
9863 of referencing go32_ops.
9864 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9865 (go32_target): New function, based on init_go32_ops, but inherit
9866 inf_child_target.
9867 (_initialize_go32_nat): Use go32_target. Move parts of
9868 init_go32_ops here.
9869
d3c1a85f
JB
98702014-03-06 Joel Brobecker <brobecker@adacore.com>
9871
9872 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9873 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9874 SYMBOL_VALUE_ADDRESS.
9875 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9876
5fa1d40e
YQ
98772014-03-06 Yao Qi <yao@codesourcery.com>
9878
9879 * breakpoint.c (get_tracepoint_by_number): Remove argument
9880 optional_p. All callers updated. Adjust comments. Update
9881 output message.
9882 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9883
0c13193f
YQ
98842014-03-06 Yao Qi <yao@codesourcery.com>
9885
9886 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9887 early if get_number returns zero. Use 'p' instead of 'args'.
9888
2217da06
YQ
98892014-03-06 Yao Qi <yao@codesourcery.com>
9890
9891 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9892 message.
9893
cc3da688
YQ
98942014-03-06 Yao Qi <yao@codesourcery.com>
9895
9896 PR breakpoints/16508
9897 * tracepoint.c (check_trace_running): New function.
9898 (trace_find_command): Move code to check_trace_running and
9899 call check_trace_running.
9900 (trace_find_pc_command): Likewise.
9901 (trace_find_tracepoint_command): Likewise.
9902 (trace_find_line_command): Likewise.
9903 (trace_find_range_command): Likewise.
9904 * tracepoint.h (check_trace_running): Likewise.
9905 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9906
6a5f844b
YQ
99072014-03-06 Yao Qi <yao@codesourcery.com>
9908
9909 * target.h (struct target_ops) <to_traceframe_info>: Use
9910 TARGET_DEFAULT_NORETURN (tcomplain ()).
9911 * target-delegates.c: Regenerated.
9912
0f26cec1
PA
99132014-03-05 Pedro Alves <palves@redhat.com>
9914
9915 PR gdb/16575
9916 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9917 void. Update comment.
9918 (dcache_xfer_memory): Delete.
9919 (dcache_read_memory_partial): New, based on the read bits of
9920 dcache_xfer_memory.
9921 (dcache_update): Add status parameter. Use ULONGEST for len, and
9922 adjust. Discard cache lines if the reason for the update was
9923 error.
9924 * dcache.h (dcache_xfer_memory): Delete declaration.
9925 (dcache_read_memory_partial): New declaration.
9926 (dcache_update): Update prototype.
9927 * target.c (raw_memory_xfer_partial): Update the dcache here.
9928 (memory_xfer_partial_1): Don't handle dcache writes here.
9929
b2b255bd
MF
99302014-03-05 Mike Frysinger <vapier@gentoo.org>
9931
9932 * remote-sim.c (gdbsim_load): Add const to prog.
9933
5d9cf8a4
TT
99342014-03-03 Tom Tromey <tromey@redhat.com>
9935
9936 * elfread.c (probe_key): Change to bfd_data.
9937 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9938 now per-BFD, not per-objfile.
9939 * stap-probe.c (stap_probe_destroy): Update comment.
9940 (handle_stap_probe): Allocate on the per-BFD obstack.
9941
729662a5
TT
99422014-03-03 Tom Tromey <tromey@redhat.com>
9943
9944 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9945 * breakpoint.c (create_longjmp_master_breakpoint): Use
9946 get_probe_address.
9947 (add_location_to_breakpoint, bkpt_probe_insert_location)
9948 (bkpt_probe_remove_location): Update.
9949 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9950 * elfread.c (elf_symfile_relocate_probe): Remove.
9951 (elf_probe_fns): Update.
9952 (insert_exception_resume_breakpoint): Change type of "probe"
9953 parameter to bound_probe.
9954 (check_exception_resume): Update.
9955 * objfiles.c (objfile_relocate1): Don't relocate probes.
9956 * probe.c (bound_probe_s): New typedef.
9957 (parse_probes): Use get_probe_address. Set sal's objfile.
9958 (find_probe_by_pc): Return a bound_probe.
9959 (collect_probes): Return a VEC(bound_probe_s).
9960 (compare_probes): Update.
9961 (gen_ui_out_table_header_info): Change type of "probes"
9962 parameter. Update.
9963 (info_probes_for_ops): Update.
9964 (get_probe_address): New function.
9965 (probe_safe_evaluate_at_pc): Update.
9966 * probe.h (struct probe_ops) <get_probe_address>: New field.
9967 <set_semaphore, clear_semaphore>: Add objfile parameter.
9968 (struct probe) <objfile>: Remove field.
9969 <arch>: New field.
9970 <address>: Update comment.
9971 (struct bound_probe): New.
9972 (find_probe_by_pc): Return a bound_probe.
9973 (get_probe_address): Declare.
9974 * solib-svr4.c (struct probe_and_action) <address>: New field.
9975 (hash_probe_and_action, equal_probe_and_action): Update.
9976 (register_solib_event_probe): Add address parameter.
9977 (solib_event_probe_at): Update.
9978 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9979 get_probe_address.
9980 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9981 (stap_get_probe_address): New function.
9982 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9983 (compile_probe_arg): Update.
9984 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9985 address.
9986 (handle_stap_probe): Don't relocate the probe.
9987 (stap_relocate): Remove.
9988 (stap_gen_info_probes_table_values): Update.
9989 (stap_probe_ops): Remove stap_relocate.
9990 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9991 (debug_sym_probe_fns): Update.
9992 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9993 * symtab.c (init_sal): Use memset.
9994 * symtab.h (struct symtab_and_line) <objfile>: New field.
9995 * tracepoint.c (start_tracing, stop_tracing): Update.
9996
ff887920
TT
99972014-03-03 Tom Tromey <tromey@redhat.com>
9998
9999 * probe.h (parse_probes, find_probe_by_pc)
10000 (find_probes_in_objfile): Fix comments.
10001
f0407826
DE
100022014-03-02 Doug Evans <xdje42@gmail.com>
10003
10004 * infrun.c (handle_signal_stop): Replace test for
10005 TARGET_WAITKIND_STOPPED with an assert.
10006
35e6a711
DE
100072014-03-02 Doug Evans <xdje42@gmail.com>
10008
10009 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10010
667f9d0b
DE
100112014-03-02 Doug Evans <xdje42@gmail.com>
10012
10013 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10014
dc92ace0
MK
100152014-03-01 Mark Kettenis <kettenis@gnu.org>
10016
10017 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10018
a900370f
MK
100192014-03-01 Mark Kettenis <kettenis@gnu.org>
10020
10021 * i386obsd-nat.c: Include "obsd-nat.h".
10022 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10023 add_target.
10024 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10025
b72a7981
MK
100262014-03-01 Mark Kettenis <kettenis@gnu.org>
10027
10028 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10029
96c70aba
MK
100302014-03-01 Mark Kettenis <kettenis@gnu.org>
10031
10032 * mips64obsd-nat.c: Include "obsd-nath".
10033 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10034 add_target
10035 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10036
874a80af
MK
100372014-03-01 Mark Kettenis <kettenis@gnu.org>
10038
8fd408f1
MK
10039 * amd64obsd-nat.c: Include "obsd-nat,h.
10040 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10041 add_target.
874a80af
MK
10042 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10043
9cf95373
SC
100442014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10045
10046 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10047 (find_overload_match): Update call to find_oload_champ.
10048 (find_oload_champ_namespace_loop): Likewise
10049
863e4da4
MK
100502014-02-28 Mark Kettenis <kettenis@gnu.org>
10051
025cac40
MK
10052 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10053
1ed586ce
MK
10054 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10055 * config/sparc/obsd64.mh: New file.
10056 * sparc64obsd-nat.c: New file.
10057
863e4da4
MK
10058 * obsd-nat.h: New file.
10059 * obsd-nat.c: New file.
10060 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10061 (ALLDEPFILES): Add obsd-nat.c.
10062
89de4da4
TT
100632014-02-28 Tom Tromey <tromey@redhat.com>
10064
10065 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10066 * cli-out.h (cli_ui_out_impl): Now const.
10067 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10068 * ui-out.c (struct ui_out) <impl>: Now const.
10069 (default_ui_out_impl): Now const.
10070 (ui_out_new): Make 'impl' parameter const.
10071 * ui-out.h (ui_out_new): Update.
10072
c725e7b6
MK
100732014-02-27 Mark Kettenis <kettenis@gnu.org>
10074
10075 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10076
670b46b3
MK
100772014-02-27 Mark Kettenis <kettenis@gnu.org>
10078
10079 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10080
c91550fc
JK
100812014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10082
10083 Additional PR 8882 fix.
10084 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10085
2fa0369e
PA
100862014-02-27 Pedro Alves <palves@redhat.com>
10087
10088 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10089 isn't set.
10090
d632a097
PA
100912014-02-27 Pedro Alves <palves@redhat.com>
10092
10093 PR 12702
10094 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10095 * nat/linux-waitpid.c: Include string.h.
10096 (status_to_str): Moved here and made extern.
10097 * nat/linux-waitpid.h (status_to_str): New declaration.
10098
2ebd5a35
HZ
100992014-02-27 Hui Zhu <hui@codesourcery.com>
10100
10101 PR 12702
10102 * infrun.c (ptid_match): Move ...
10103 * common/ptid.c (ptid_match): ... here.
10104 * inferior.h (ptid_match): Move ...
10105 * common/ptid.h (ptid_match): ... here.
10106
3cdd631f
MK
101072014-02-27 Mark Kettenis <kettenis@gnu.org>
10108
10109 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10110 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10111 gdb_target_obs.
10112
bee30a64
MK
101132014-02-27 Mark Kettenis <kettenis@gnu.org>
10114
10115 * obsd-tdep.c (obsd_auxv_parse): New function.
10116 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10117
10118 * gdbarch.sh (auxv_parse): New.
10119 * gdbarch.h: Regenerated.
10120 * gdbarch.c: Regenerated.
10121 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10122
7a5a839f
LC
101232014-02-26 Ludovic Courtès <ludo@gnu.org>
10124
10125 * guile/scm-value.c (gdbscm_history_append_x): New function.
10126 (value_functions): Add it.
10127
31aa7e4e
JB
101282014-02-27 Joel Brobecker <brobecker@adacore.com>
10129
10130 * dwarf2read.c (attr_value_as_address): New function.
10131 (dwarf2_find_base_address, read_call_site_scope): Use
10132 attr_value_as_address in place of DW_ADDR.
10133 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10134 the low and high addresses. Slight rework of the handling
10135 of the high pc being a constant form, and limit it to
10136 DWARF verson 4 or higher.
10137 (dwarf2_record_block_ranges): Likewise.
10138 (read_partial_die): Likewise.
10139 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10140
9b333ba3
TT
101412014-02-26 Tom Tromey <tromey@redhat.com>
10142
10143 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10144
5f6cac40
TT
101452014-02-26 Tom Tromey <tromey@redhat.com>
10146
10147 * elfread.c (elf_read_minimal_symbols): Return early if
10148 minimal symbols have already been read. Add "ei" parameter.
10149 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10150 * minsyms.c (prim_record_minimal_symbol_full): Update.
10151 * objfiles.h (struct objstats) <n_minsyms>: Move...
10152 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10153 * symmisc.c (print_objfile_statistics): Update.
10154
2750ef27
TT
101552014-02-26 Tom Tromey <tromey@redhat.com>
10156
10157 * elfread.c (elf_read_minimal_symbols): New function, from
10158 elf_symfile_read.
10159 (elf_symfile_read): Call it.
10160
34643a32
TT
101612014-02-26 Tom Tromey <tromey@redhat.com>
10162
10163 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10164 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10165 (lookup_minimal_symbol_solib_trampoline)
10166 (lookup_minimal_symbol_by_pc_section_1)
10167 (lookup_minimal_symbol_and_objfile): Update.
10168 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10169 Don't allocate a minimal symbol if minsyms have already been read.
10170 (build_minimal_symbol_hash_tables): Update.
10171 (install_minimal_symbols): Do nothing if minsyms already read.
10172 Use the per-BFD obstack.
10173 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10174 * objfiles.c (allocate_objfile): Call
10175 terminate_minimal_symbol_table later.
10176 (have_minimal_symbols): Update.
10177 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10178 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10179 Move from struct objfile.
10180 <minsyms_read>: New field.
10181 (struct objfile) <msymbols, minimal_symbol_count,
10182 msymbol_hash, msymbol_demangled_hash>: Move.
10183 (ALL_OBJFILE_MSYMBOLS): Update.
10184 * symfile.c (read_symbols): Set minsyms_read.
10185 (reread_symbols): Update.
10186 * symmisc.c (dump_objfile, dump_msymbols): Update.
10187
2273f0ac
TT
101882014-02-26 Tom Tromey <tromey@redhat.com>
10189
10190 * minsyms.c (msymbols_sort): Remove.
10191 * minsyms.h (msymbols_sort): Remove.
10192 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10193 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10194 * elfread.c (elf_symtab_read): Don't add section offsets.
10195 * xcoffread.c (record_minimal_symbol): Don't add section offset
10196 to minimal symbol address.
10197 * somread.c (text_offset, data_offset): Remove.
10198 (som_symtab_read): Don't add section offsets to minimal symbol
10199 addresses.
10200 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10201 Don't add section offsets to minimal symbols.
10202 * coffread.c (coff_symtab_read): Don't add section offsets
10203 to minimal symbol addresses.
10204 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10205 to minimal symbol addresses.
10206 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10207 section offset to minimal symbol addresses.
10208 * mdebugread.c (parse_partial_symbols): Don't add section
10209 offset to minimal symbol addresses.
10210 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10211 offset to minimal symbol addresses.
10212
77e371c0
TT
102132014-02-26 Tom Tromey <tromey@redhat.com>
10214
10215 * ada-lang.c (ada_main_name): Update.
10216 (ada_add_standard_exceptions): Update.
10217 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10218 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10219 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10220 * auxv.c (ld_so_xfer_auxv): Update.
10221 * avr-tdep.c (avr_scan_prologue): Update.
10222 * ax-gdb.c (gen_var_ref): Update.
10223 * blockframe.c (get_pc_function_start)
10224 (find_pc_partial_function_gnu_ifunc): Update.
10225 * breakpoint.c (create_overlay_event_breakpoint)
10226 (create_longjmp_master_breakpoint)
10227 (create_std_terminate_master_breakpoint)
10228 (create_exception_master_breakpoint): Update.
10229 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10230 * c-valprint.c (c_val_print): Update.
10231 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10232 * common/agent.c (agent_look_up_symbols): Update.
10233 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10234 * dwarf2loc.c (call_site_to_target_addr): Update.
10235 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10236 * elfread.c (elf_gnu_ifunc_record_cache)
10237 (elf_gnu_ifunc_resolve_by_got): Update.
10238 * findvar.c (default_read_var_value): Update.
10239 * frame.c (inside_main_func): Update.
10240 * frv-tdep.c (frv_frame_this_id): Update.
10241 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10242 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10243 Update.
10244 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10245 (hppa_hpux_find_dummy_bpaddr): Update.
10246 * hppa-tdep.c (hppa_symbol_address): Update.
10247 * infcmd.c (until_next_command): Update.
10248 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10249 Update.
10250 * linespec.c (minsym_found, add_minsym): Update.
10251 * linux-nat.c (get_signo): Update.
10252 * linux-thread-db.c (inferior_has_bug): Update.
10253 * m32c-tdep.c (m32c_return_value)
10254 (m32c_m16c_address_to_pointer): Update.
10255 * m32r-tdep.c (m32r_frame_this_id): Update.
10256 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10257 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10258 * maint.c (maintenance_translate_address): Update.
10259 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10260 (frob_address): New function.
10261 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10262 frob_address. Rename parameter to "pc_in".
10263 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10264 addresses.
10265 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10266 Update.
10267 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10268 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10269 * objc-lang.c (find_objc_msgsend): Update.
10270 * objfiles.c (objfile_relocate1): Update.
10271 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10272 * p-valprint.c (pascal_val_print): Update.
10273 * parse.c (write_exp_msymbol): Update.
10274 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10275 (ppc_elfv2_skip_entrypoint): Update.
10276 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10277 * printcmd.c (build_address_symbolic, msym_info)
10278 (address_info): Update.
10279 * proc-service.c (ps_pglobal_lookup): Update.
10280 * psymtab.c (find_pc_sect_psymtab_closer)
10281 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10282 Change msymbol parameter to bound_minimal_symbol.
10283 * ravenscar-thread.c (get_running_thread_id): Update.
10284 * remote.c (remote_check_symbols): Update.
10285 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10286 address.
10287 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10288 * solib-dsbt.c (lm_base): Update.
10289 * solib-frv.c (lm_base, main_got): Update.
10290 * solib-irix.c (locate_base): Update.
10291 * solib-som.c (som_solib_create_inferior_hook)
10292 (link_map_start): Update.
10293 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10294 * solib-svr4.c (elf_locate_base, enable_break): Update.
10295 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10296 (flush_ea_cache): Update.
10297 * stabsread.c (define_symbol, scan_file_globals): Update.
10298 * stack.c (find_frame_funname): Update.
10299 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10300 (debug_qf_find_pc_sect_symtab): Update.
10301 * symfile.c (simple_read_overlay_table)
10302 (simple_overlay_update): Update.
10303 * symfile.h (struct quick_symbol_functions)
10304 <find_pc_sect_symtab>: Change type of msymbol to
10305 bound_minimal_symbol.
10306 * symmisc.c (dump_msymbols): Update.
10307 * symtab.c (find_pc_sect_symtab_via_partial)
10308 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10309 (search_symbols, print_msymbol_info): Update.
10310 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10311 (MSYMBOL_VALUE_ADDRESS): Redefine.
10312 (BMSYMBOL_VALUE_ADDRESS): New macro.
10313 * tracepoint.c (scope_info): Update.
10314 * tui/tui-disasm.c (tui_find_disassembly_address)
10315 (tui_get_begin_asm_address): Update.
10316 * valops.c (find_function_in_inferior): Update.
10317 * value.c (value_static_field, value_fn_field): Update.
10318
3b7344d5
TT
103192014-02-26 Tom Tromey <tromey@redhat.com>
10320
10321 * ada-lang.c (ada_update_initial_language): Update.
10322 (ada_main_name, ada_has_this_exception_support): Update.
10323 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10324 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10325 * arm-tdep.c (arm_skip_stub): Update.
10326 * auxv.c (ld_so_xfer_auxv): Update.
10327 * avr-tdep.c (avr_scan_prologue): Update.
10328 * ax-gdb.c (gen_var_ref): Update.
10329 * breakpoint.c (struct breakpoint_objfile_data)
10330 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10331 type to bound_minimal_symbol.
10332 (create_overlay_event_breakpoint)
10333 (create_longjmp_master_breakpoint)
10334 (create_std_terminate_master_breakpoint)
10335 (create_exception_master_breakpoint): Update.
10336 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10337 * c-exp.y (classify_name): Update.
10338 * coffread.c (coff_symfile_read): Update.
10339 * common/agent.c (agent_look_up_symbols): Update.
10340 * d-lang.c (d_main_name): Update.
10341 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10342 * dec-thread.c (enable_dec_thread): Update.
10343 * dwarf2loc.c (call_site_to_target_addr): Update.
10344 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10345 * eval.c (evaluate_subexp_standard): Update.
10346 * findvar.c (struct minsym_lookup_data) <result>: Change type
10347 to bound_minimal_symbol.
10348 <objfile>: Remove.
10349 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10350 * frame.c (inside_main_func): Update.
10351 * frv-tdep.c (frv_frame_this_id): Update.
10352 * gcore.c (call_target_sbrk): Update.
10353 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10354 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10355 Update.
10356 * go-lang.c (go_main_name): Update.
10357 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10358 (hppa_hpux_find_import_stub_for_addr): Update.
10359 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10360 Update. Change return type.
10361 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10362 type.
10363 * jit.c (jit_breakpoint_re_set_internal): Update.
10364 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10365 Update.
10366 * linux-nat.c (get_signo): Update.
10367 * linux-thread-db.c (inferior_has_bug): Update
10368 * m32c-tdep.c (m32c_return_value)
10369 (m32c_m16c_address_to_pointer): Update.
10370 * m32r-tdep.c (m32r_frame_this_id): Update.
10371 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10372 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10373 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10374 lookup_minimal_symbol. Change return type.
10375 (lookup_minimal_symbol): Remove.
10376 (lookup_bound_minimal_symbol): Update.
10377 (lookup_minimal_symbol_text): Change return type.
10378 (lookup_minimal_symbol_solib_trampoline): Change return type.
10379 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10380 (lookup_minimal_symbol_solib_trampoline): Change return type.
10381 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10382 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10383 (value_nsstring, find_imps): Update.
10384 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10385 * p-lang.c (pascal_main_name): Update.
10386 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10387 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10388 * proc-service.c (ps_pglobal_lookup): Update.
10389 * ravenscar-thread.c (get_running_thread_msymbol): Change
10390 return type.
10391 (has_ravenscar_runtime, get_running_thread_id): Update.
10392 * remote.c (remote_check_symbols): Update.
10393 * sol-thread.c (ps_pglobal_lookup): Update.
10394 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10395 * solib-dsbt.c (lm_base): Update.
10396 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10397 Update.
10398 * solib-irix.c (locate_base): Update.
10399 * solib-som.c (som_solib_create_inferior_hook)
10400 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10401 Update.
10402 * solib-spu.c (spu_enable_break): Update.
10403 * solib-svr4.c (elf_locate_base, enable_break): Update.
10404 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10405 (flush_ea_cache): Update.
10406 * stabsread.c (define_symbol): Update.
10407 * symfile.c (simple_read_overlay_table): Update.
10408 * symtab.c (find_pc_sect_line): Update.
10409 * tracepoint.c (scope_info): Update.
10410 * tui-disasm.c (tui_get_begin_asm_address): Update.
10411 * value.c (value_static_field): Update.
10412
40c1a007
TT
104132014-02-26 Tom Tromey <tromey@redhat.com>
10414
10415 * minsyms.c (prim_record_minimal_symbol_full): Use
10416 SET_MSYMBOL_VALUE_ADDRESS.
10417 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10418 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10419 SET_MSYMBOL_VALUE_ADDRESS.
10420 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10421 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10422
efd66ac6
TT
104232014-02-26 Tom Tromey <tromey@redhat.com>
10424
10425 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10426 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10427 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10428 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10429 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10430 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10431 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10432 * ada-lang.c (ada_main_name): Update.
10433 (ada_lookup_simple_minsym): Update.
10434 (ada_make_symbol_completion_list): Update.
10435 (ada_add_standard_exceptions): Update.
10436 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10437 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10438 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10439 * arm-tdep.c (skip_prologue_function): Update.
10440 (arm_skip_stack_protector, arm_skip_stub): Update.
10441 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10442 (arm_wince_skip_main_prologue): Update.
10443 * auxv.c (ld_so_xfer_auxv): Update.
10444 * avr-tdep.c (avr_scan_prologue): Update.
10445 * ax-gdb.c (gen_var_ref): Update.
10446 * block.c (call_site_for_pc): Update.
10447 * blockframe.c (get_pc_function_start): Update.
10448 (find_pc_partial_function_gnu_ifunc): Update.
10449 * breakpoint.c (create_overlay_event_breakpoint): Update.
10450 (create_longjmp_master_breakpoint): Update.
10451 (create_std_terminate_master_breakpoint): Update.
10452 (create_exception_master_breakpoint): Update.
10453 (resolve_sal_pc): Update.
10454 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10455 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10456 Update.
10457 * c-valprint.c (c_val_print): Update.
10458 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10459 * coffread.c (coff_symfile_read): Update.
10460 * common/agent.c (agent_look_up_symbols): Update.
10461 * dbxread.c (find_stab_function_addr): Update.
10462 (end_psymtab): Update.
10463 * dwarf2loc.c (call_site_to_target_addr): Update.
10464 (func_verify_no_selftailcall): Update.
10465 (tailcall_dump): Update.
10466 (call_site_find_chain_1): Update.
10467 (dwarf_expr_reg_to_entry_parameter): Update.
10468 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10469 (elf_gnu_ifunc_resolve_by_got): Update.
10470 * f-valprint.c (info_common_command): Update.
10471 * findvar.c (read_var_value): Update.
10472 * frame.c (get_prev_frame_1): Update.
10473 (inside_main_func): Update.
10474 * frv-tdep.c (frv_skip_main_prologue): Update.
10475 (frv_frame_this_id): Update.
10476 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10477 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10478 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10479 (gnuv3_skip_trampoline): Update.
10480 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10481 (hppa64_hpux_in_solib_call_trampoline): Update.
10482 (hppa_hpux_skip_trampoline_code): Update.
10483 (hppa64_hpux_search_dummy_call_sequence): Update.
10484 (hppa_hpux_find_import_stub_for_addr): Update.
10485 (hppa_hpux_find_dummy_bpaddr): Update.
10486 * hppa-tdep.c (hppa_symbol_address)
10487 (hppa_lookup_stub_minimal_symbol): Update.
10488 * i386-tdep.c (i386_skip_main_prologue): Update.
10489 (i386_pe_skip_trampoline_code): Update.
10490 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10491 * infcall.c (get_function_name): Update.
10492 * infcmd.c (until_next_command): Update.
10493 * jit.c (jit_breakpoint_re_set_internal): Update.
10494 (jit_inferior_init): Update.
10495 * linespec.c (minsym_found): Update.
10496 (add_minsym): Update.
10497 * linux-fork.c (info_checkpoints_command): Update.
10498 * linux-nat.c (get_signo): Update.
10499 * linux-thread-db.c (inferior_has_bug): Update.
10500 * m32c-tdep.c (m32c_return_value): Update.
10501 (m32c_m16c_address_to_pointer): Update.
10502 (m32c_m16c_pointer_to_address): Update.
10503 * m32r-tdep.c (m32r_frame_this_id): Update.
10504 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10505 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10506 * maint.c (maintenance_translate_address): Update.
10507 * minsyms.c (add_minsym_to_hash_table): Update.
10508 (add_minsym_to_demangled_hash_table): Update.
10509 (msymbol_objfile): Update.
10510 (lookup_minimal_symbol): Update.
10511 (iterate_over_minimal_symbols): Update.
10512 (lookup_minimal_symbol_text): Update.
10513 (lookup_minimal_symbol_by_pc_name): Update.
10514 (lookup_minimal_symbol_solib_trampoline): Update.
10515 (lookup_minimal_symbol_by_pc_section_1): Update.
10516 (lookup_minimal_symbol_and_objfile): Update.
10517 (prim_record_minimal_symbol_full): Update.
10518 (compare_minimal_symbols): Update.
10519 (compact_minimal_symbols): Update.
10520 (build_minimal_symbol_hash_tables): Update.
10521 (install_minimal_symbols): Update.
10522 (terminate_minimal_symbol_table): Update.
10523 (find_solib_trampoline_target): Update.
10524 (minimal_symbol_upper_bound): Update.
10525 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10526 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10527 (mips_skip_pic_trampoline_code): Update.
10528 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10529 * objc-lang.c (selectors_info): Update.
10530 (classes_info): Update.
10531 (find_methods): Update.
10532 (find_imps): Update.
10533 (find_objc_msgsend): Update.
10534 * objfiles.c (objfile_relocate1): Update.
10535 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10536 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10537 * p-valprint.c (pascal_val_print): Update.
10538 * parse.c (write_exp_msymbol): Update.
10539 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10540 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10541 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10542 * printcmd.c (build_address_symbolic): Update.
10543 (sym_info): Update.
10544 (address_info): Update.
10545 * proc-service.c (ps_pglobal_lookup): Update.
10546 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10547 (find_pc_sect_psymtab): Update.
10548 * python/py-framefilter.c (py_print_frame): Update.
10549 * ravenscar-thread.c (get_running_thread_id): Update.
10550 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10551 Update.
10552 * remote.c (remote_check_symbols): Update.
10553 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10554 (rs6000_skip_trampoline_code): Update.
10555 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10556 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10557 * solib-dsbt.c (lm_base): Update.
10558 * solib-frv.c (lm_base): Update.
10559 (main_got): Update.
10560 * solib-irix.c (locate_base): Update.
10561 * solib-som.c (som_solib_create_inferior_hook): Update.
10562 (som_solib_desire_dynamic_linker_symbols): Update.
10563 (link_map_start): Update.
10564 * solib-spu.c (spu_enable_break): Update.
10565 (ocl_enable_break): Update.
10566 * solib-svr4.c (elf_locate_base): Update.
10567 (enable_break): Update.
10568 * spu-tdep.c (spu_get_overlay_table): Update.
10569 (spu_catch_start): Update.
10570 (flush_ea_cache): Update.
10571 * stabsread.c (define_symbol): Update.
10572 (scan_file_globals): Update.
10573 * stack.c (find_frame_funname): Update.
10574 (frame_info): Update.
10575 * symfile.c (simple_read_overlay_table): Update.
10576 (simple_overlay_update): Update.
10577 * symmisc.c (dump_msymbols): Update.
10578 * symtab.c (fixup_section): Update.
10579 (find_pc_sect_line): Update.
10580 (skip_prologue_sal): Update.
10581 (search_symbols): Update.
10582 (print_msymbol_info): Update.
10583 (rbreak_command): Update.
10584 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10585 (completion_list_objc_symbol): Update.
10586 (default_make_symbol_completion_list_break_on): Update.
10587 * tracepoint.c (scope_info): Update.
10588 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10589 (tui_get_begin_asm_address): Update.
10590 * valops.c (find_function_in_inferior): Update.
10591 * value.c (value_static_field): Update.
10592 (value_fn_field): Update.
10593
50e65b17
TT
105942014-02-26 Tom Tromey <tromey@redhat.com>
10595
10596 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10597 bound minimal symbols. Move code that knows about minsym
10598 table layout...
10599 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10600 function.
10601 * minsyms.h (minimal_symbol_upper_bound): Declare.
10602 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10603 minimal_symbol_upper_bound.
10604
1b588015
JB
106052014-02-27 Joel Brobecker <brobecker@adacore.com>
10606
10607 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10608 Use the type's name if its basic type does not have a tag.
10609
dbb9c2b1
JB
106102014-02-27 Joel Brobecker <brobecker@adacore.com>
10611
10612 * dwarf2read.c (read_subrange_type): Add comment.
10613
55426c9d
JB
106142014-02-27 Joel Brobecker <brobecker@adacore.com>
10615
10616 * dwarf2read.c (update_enumeration_type_from_children): New
10617 function, mostly extracted from process_structure_scope.
10618 (read_enumeration_type): Call update_enumeration_type_from_children.
10619 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10620 and flag_flag_enum fields.
10621
f2fce0ca
PA
106222014-02-26 Pedro Alves <palves@redhat.com>
10623
10624 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10625 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10626 to_xfer_partial method.
10627
7a44e40e
PA
106282014-02-26 Pedro Alves <palves@redhat.com>
10629
10630 * target.c (complete_target_initialization): Don't install
10631 default_xfer_partial as to_xfer_partial hook.
10632 (nomemory): Delete.
10633 (update_current_target): Don't INHERIT nor de_fault
10634 deprecated_xfer_memory. Delete de_fault macro.
10635 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10636 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10637 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10638 field.
10639
bd265cd0
PA
106402014-02-26 Pedro Alves <palves@redhat.com>
10641
10642 * go32-nat.c (my_write_child): New function.
10643 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10644 (go32_xfer_partial): New function.
10645 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10646 Instead install a to_xfer_partial hook.
10647
9d46c4e5
PA
106482014-02-26 Pedro Alves <palves@redhat.com>
10649
10650 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10651 to_xfer_partial helper. Rewrite.
10652 (procfs_xfer_partial): New function.
10653 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10654 Install a to_xfer_partial hook.
10655
a1583b1f
PA
106562014-02-26 Pedro Alves <palves@redhat.com>
10657
10658 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10659 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10660 (m32r_xfer_partial): New function.
10661 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10662 Install a to_xfer_partial hook.
10663
6df1b29f
PA
106642014-02-26 Pedro Alves <palves@redhat.com>
10665
10666 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10667 helper.
10668 (mips_xfer_partial): New function.
10669 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10670 hook. Install a to_xfer_partial hook.
10671
dc53a7ad
JB
106722014-02-26 Joel Brobecker <brobecker@adacore.com>
10673
10674 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10675 * gdbtypes.c (create_array_type_with_stride): New function,
10676 renaming create_array_type, but with an added parameter
10677 called "bit_stride".
10678 (create_array_type): Re-implement using
10679 create_array_type_with_stride.
10680 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10681 and DW_AT_bit_stride attributes.
10682
12ab52e9
PA
106832014-02-26 Pedro Alves <palves@redhat.com>
10684
10685 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10686 task-specific breakpoints.
10687
d16461ae
PA
106882014-02-25 Pedro Alves <palves@redhat.com>
10689
10690 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10691 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10692
a8b16220
SS
106932014-02-25 Stan Shebs <stan@codesourcery.com>
10694
10695 * defs.h: Annotate comments for Doxygen.
10696
b9e795ee
TT
106972014-02-25 Tom Tromey <tromey@redhat.com>
10698
10699 * target.h (target_ignore): Don't declare.
10700 * target.c (target_ignore): Remove.
10701
849c862e
JK
107022014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10703
10704 PR gdb/16626
10705 * auto-load.c (auto_load_objfile_script_1): Change filename to
10706 debugfile.
10707
475109d8
JB
107082014-02-25 Joel Brobecker <brobecker@adacore.com>
10709
10710 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10711 documentation. Adjust prototype to match the target_ops
10712 to_xfer_partial method. Adjust implementation accordingly.
10713
e186c3bd
HZ
107142014-02-25 Hui Zhu <hui@codesourcery.com>
10715
10716 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10717 to_traceframe_info.
10718
6d451942
KB
107192014-02-25 Kevin Buettner <kevinb@redhat.com>
10720
041ab8b4 10721 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10722 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10723 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10724 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10725 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10726 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10727 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10728 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10729 New constants.
10730 (rl78_register_type): Use a data pointer type for SP and
10731 new pseudo registers mentioned above. Use a 16 bit integer
10732 type for all other register pairs.
10733 (rl78_register_name, rl78_g10_register_name): Update for
10734 new pseudo registers.
10735 (rl78_pseudo_register_read): Likewise.
10736 (rl78_pseudo_register_write): Likewise.
10737 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10738 to the newly added pseudo registers.
10739
eddf0bae
DE
107402014-02-24 Doug Evans <dje@google.com>
10741
10742 * value.c (record_latest_value): Fix comment.
10743 * printcmd.c (print_command_1): Remove code to handle -1 return from
10744 record_latest_value.
10745
e96027e0
PA
107462014-02-24 Pedro Alves <palves@redhat.com>
10747
10748 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10749 deprecated_xfer_memory hook.
10750 (procfs_xfer_partial): Call procfs_xfer_memory instead
10751 of the deprecated_xfer_memory target hook.
10752 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10753 helper.
10754
0837c976
YZ
107552014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10756
10757 * windows-nat.c (windows_xfer_shared_libraries): Return
10758 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10759 requested object is TARGET_OBJECT_LIBRARIES.
10760
bc113b4e
YQ
107612014-02-24 Yao Qi <yao@codesourcery.com>
10762
10763 * target.h (enum target_xfer_status)
10764 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10765 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10766 explicitly. New.
10767 * corefile.c (memory_error_message): User updated.
10768 * exec.c (section_table_read_available_memory): Likewise.
10769 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10770 * target.c (target_xfer_status_to_string): Likewise.
10771 (raw_memory_xfer_partial): Likewise.
10772 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10773 * valops.c (read_value_memory): Likewise.
10774 * exec.h: Update comments.
10775
01cb8804
YQ
107762014-02-24 Yao Qi <yao@codesourcery.com>
10777
10778 * target.c (target_xfer_status_to_string): Rename argument err
10779 to status.
10780 * target.h (target_xfer_status_to_string): Update declaration.
10781 Replace target_xfer_error_to_string with
10782 target_xfer_status_to_string in comment.
10783
93063aa6
YQ
107842014-02-24 Yao Qi <yao@codesourcery.com>
10785
10786 * mips-linux-nat.c (super_close): Update its type.
10787 (mips_linux_close): Pass 'self' to super_close.
10788
5c328c05
YQ
107892014-02-24 Yao Qi <yao@codesourcery.com>
10790
10791 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10792 * corefile.c (read_memory): Adjusted.
10793 * target.c (target_write_with_progress): Adjusted.
10794
f73023dd
YQ
107952014-02-23 Yao Qi <yao@codesourcery.com>
10796
10797 Revert two patches:
10798
10799 2013-10-25 Yao Qi <yao@codesourcery.com>
10800
10801 * remote.c (remote_traceframe_info): Return early if
10802 traceframe is not selected.
10803
10804 2013-07-19 Yao Qi <yao@codesourcery.com>
10805
10806 * target.c (update_current_target): Change the default action
10807 of 'to_traceframe_info' from tcomplain to return_zero.
10808 * target.h (struct target_ops) <to_traceframe_info>: Add more
10809 comments.
10810
5a2eb0ef
YQ
108112014-02-23 Yao Qi <yao@codesourcery.com>
10812
10813 * valops.c (read_value_memory): Rewrite it. Call
10814 target_xfer_partial in a loop.
10815 * exec.h (section_table_available_memory): Remove declaration.
10816 Move comments to ...
10817 * exec.c (section_table_available_memory): ... here. Make it
10818 static.
10819
1ee79381
YQ
108202014-02-23 Yao Qi <yao@codesourcery.com>
10821
10822 * exec.c (section_table_read_available_memory): New function.
10823 * exec.h (section_table_read_available_memory): Declare.
10824 * ctf.c (ctf_xfer_partial): Call
10825 section_table_read_available_memory.
10826 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10827
1ca49d37
YQ
108282014-02-23 Yao Qi <yao@codesourcery.com>
10829
10830 * ctf.c (ctf_xfer_partial): Move code to ...
10831 * exec.c (exec_read_partial_read_only): ... it. New function.
10832 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10833 * tracefile.c: Include "exec.h".
10834 * exec.h (exec_read_partial_read_only): Declare.
10835
a283690e
YQ
108362014-02-23 Yao Qi <yao@codesourcery.com>
10837
10838 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10839 (tfile_has_memory): Remove.
10840 (init_tfile_ops): Don't set fields to_has_all_memory and
10841 to_has_memory of tfile_ops.
10842 * tracefile.c (tracefile_has_all_memory): New function.
10843 (tracefile_has_memory): New function.
10844 (init_tracefile_ops): Initialize fields to_has_all_memory and
10845 to_has_memory of 'ops'.
10846
12e03cd0
YQ
108472014-02-23 Yao Qi <yao@codesourcery.com>
10848
10849 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10850 (ctf_thread_alive, ctf_get_trace_status): Remove.
10851 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10852 init_tracefile_ops.
10853 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10854 (tfile_has_stack, tfile_has_registers): Remove.
10855 (tfile_thread_alive): Remove.
10856 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10857 init_tracefile_ops.
10858 * tracefile.c (tracefile_has_stack): New function.
10859 (tracefile_has_registers): New function.
10860 (tracefile_thread_alive): New function.
10861 (tracefile_get_trace_status): New function.
10862 (init_tracefile_ops): New function.
10863 * tracefile.h (init_tracefile_ops): Declare.
10864
11395323
YQ
108652014-02-23 Yao Qi <yao@codesourcery.com>
10866
10867 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10868 (O_LARGEFILE): Likewise.
10869 (tfile_ops): Likewise.
10870 (TRACE_HEADER_SIZE): Likewise.
10871 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10872 (cur_data_size): Likewise.
10873 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10874 (tfile_close, tfile_files_info): Likewise.
10875 (tfile_get_trace_status): Likewise.
10876 (tfile_get_tracepoint_status): Likewise.
10877 (tfile_get_traceframe_address): Likewise.
10878 (tfile_trace_find, match_blocktype): Likewise.
10879 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10880 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10881 (tfile_get_trace_state_variable_value): Likewise.
10882 (tfile_has_all_memory, tfile_has_memory): Likewise.
10883 (tfile_has_stack, tfile_has_registers): Likewise.
10884 (tfile_thread_alive, build_traceframe_info): Likewise.
10885 (tfile_traceframe_info, init_tfile_ops): Likewise.
10886 (_initialize_tracepoint): Don't call init_tfile_ops
10887 and add_target_with_completer.
10888 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10889 exec.h, completer.h and filenames.h.
10890 (_initialize_tracefile_tfile): New function.
10891
7951c4eb
YQ
108922014-02-23 Yao Qi <yao@codesourcery.com>
10893
10894 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10895 tracefile-tfile.o.
10896 (HFILES_NO_SRCDIR): Add tracefile.h.
10897 * ctf.c: Include "tracefile.h".
10898 * tracefile.h: New file.
10899 * tracefile.c: New file
10900 * tracefile-tfile.c: New file.
10901 * tracepoint.c: Include "tracefile.h".
10902 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10903 (stop_reason_names): Add const.
10904 (trace_file_writer_xfree): Move it to tracefile.c.
10905 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10906 (trace_save_ctf): Likewise.
10907 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10908 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10909 (tfile_write_header, tfile_write_regblock_type): Likewise.
10910 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10911 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10912 (tfile_write_raw_data, tfile_end): Likewise.
10913 (tfile_trace_file_writer_new): Likewise.
10914 (free_uploaded_tp): Make it extern.
10915 (free_uploaded_tsv): Make it extern.
10916 (_initialize_tracepoint): Move code to register command 'tsave'
10917 to tracefile.c.
10918 * tracepoint.h (stop_reason_names): Declare.
10919 (struct trace_frame_write_ops): Move it to tracefile.h.
10920 (struct trace_file_write_ops): Likewise.
10921 (struct trace_file_writer): Likewise.
10922 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10923
184cd072
JK
109242014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10925
10926 PR gdb/16594
10927 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10928 process name.
10929 (get_cores_used_by_process): New parameter num_cores, use it.
10930 (linux_xfer_osdata_processes): Pass num_cores to it.
10931 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10932 process name.
10933
c63528fc
AK
109342014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10935
10936 * target.c (memory_xfer_partial): Fix length arg in call to
10937 breakpoint_xfer_memory.
10938
d7b30f67
SDJ
109392014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10940
10941 PR tdep/16397
10942 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10943 number comes after the + or - signs. Adjust length of register
10944 name to be extracted.
10945
8838afaf
TT
109462014-02-20 Tom Tromey <tromey@redhat.com>
10947
10948 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10949 (ada_varobj_ops): Mark "extern".
10950
05227d14
TT
109512014-02-20 Tom Tromey <tromey@redhat.com>
10952
10953 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10954
1254eefc
DE
109552014-02-20 Doug Evans <xdje42@gmail.com>
10956
10957 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10958 All callers updated.
10959 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10960 All callers updated.
10961 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10962 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10963
adde2bff
DE
109642014-02-20 lin zuojian <manjian2006@gmail.com>
10965 Joel Brobecker <brobecker@adacore.com>
10966 Doug Evans <xdje42@gmail.com>
10967
10968 PR symtab/16581
10969 * dwarf2read.c (struct die_info): New member in_process.
10970 (reset_die_in_process): New function.
10971 (process_die): Set it at the start, reset when returning.
10972 (inherit_abstract_dies): Only call process_die if origin_child_die
10973 not already being processed.
10974
3be75f87
JB
109752014-02-20 Joel Brobecker <brobecker@adacore.com>
10976
10977 * windows-nat.c (handle_unload_dll): Add function documentation.
10978 (do_initial_windows_stuff): Add comment explaining why we wait
10979 until after inferior initialization has finished before
10980 processing all DLLs.
10981
47f7ffdb
JB
109822014-02-20 Joel Brobecker <brobecker@adacore.com>
10983
10984 * windows-nat.c (get_module_name): Delete.
10985 (windows_get_exec_module_filename): New function, mostly
10986 inspired from get_module_name.
10987 (windows_pid_to_exec_file): Replace call to get_module_name
10988 by call to windows_get_exec_module_filename.
10989
1cd9feab
JB
109902014-02-20 Joel Brobecker <brobecker@adacore.com>
10991
10992 * windows-nat.c (handle_load_dll): Rewrite this function's
10993 introductory comment. Remove code using get_module_name
10994 to get the DLL's name.
10995
ea39ad35
JB
109962014-02-20 Joel Brobecker <brobecker@adacore.com>
10997
10998 * windows-nat.c (get_windows_debug_event): Ignore
10999 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11000 if windows_initialization_done == 0.
11001 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11002 Adjust implementation to always load all DLLs.
11003 (do_initial_windows_stuff): Replace call to
11004 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11005
95060284
JB
110062014-02-20 Joel Brobecker <brobecker@adacore.com>
11007
11008 * windows-nat.c (_initialize_windows_nat): Deprecate the
11009 "dll-symbols" command. Turn the "add-shared-symbol-files"
11010 and "assf" aliases into commands, and deprecate them as well.
11011 * NEWS: Add entry explaining that "dll-symbols" and its two
11012 aliases are now deprecated.
11013
8d4fdb12
JB
110142014-02-20 Joel Brobecker <brobecker@adacore.com>
11015
11016 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11017 new-line in debug string. Remove trailing spaces.
11018
1b281443
SS
110192014-02-19 Stan Shebs <stan@codesourcery.com>
11020
11021 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11022
f7bd0f78
SC
110232014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11024
11025 * NEWS: Add entry for the new feature
11026 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11027 and class values.
11028
399ebc3d
SS
110292014-02-19 Stan Shebs <stan@codesourcery.com>
11030
11031 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11032
c658158d
PA
110332014-02-19 Pedro Alves <palves@redhat.com>
11034
11035 * common/ptid.h (struct ptid): Mention that process_stratum
11036 targets should prefer ptid.lwp.
11037
ba348170
PA
110382014-02-19 Pedro Alves <palves@redhat.com>
11039
11040 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11041 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11042 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11043 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11044 store remote thread ids rather than ptid.tid.
11045 (_initialize_remote): Adjust.
11046
ac01945b
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.c (target_get_unwinder): Rewrite.
11050 (target_get_tailcall_unwinder): Rewrite.
11051 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11052 (record_btrace_to_get_tailcall_unwinder): New function.
11053 (init_record_btrace_ops): Update.
11054 * target.h (struct target_ops) <to_get_unwinder,
11055 to_get_tailcall_unwinder>: Now function pointers. Use
11056 TARGET_DEFAULT_RETURN.
11057
8476dc92
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11061 argument.
11062 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11063
c0eca49f
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11067 directly.
11068 * target-delegates.c: Rebuild.
11069 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11070 TARGET_DEFAULT_FUNC.
11071 * target.c (default_target_decr_pc_after_break): Rename from
11072 forward_target_decr_pc_after_break. Simplify.
11073 (target_decr_pc_after_break): Rely on delegation.
11074
596b6b39
TT
110752014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.c (update_current_target): Do not INHERIT to_doc or
11078 to_magic. Do not de_fault to_open or to_close.
11079
b427c1bc
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * gcore.h (objfile_find_memory_regions): Declare.
11083 * gcore.c (objfile_find_memory_regions): No longer static. Add
11084 "self" argument.
11085 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11086 * exec.c: Include gcore.h.
11087 (exec_set_find_memory_regions): Remove.
11088 (exec_find_memory_regions): Remove.
11089 (exec_do_find_memory_regions): Remove.
11090 (init_exec_ops): Update.
11091 * defs.h (exec_set_find_memory_regions): Remove.
11092
9b144037
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.h (struct target_ops) <to_extra_thread_info,
11097 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11098 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11099 not 0, in TARGET_DEFAULT_RETURN.
11100
555bbdeb
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target.c (complete_target_initialization): Remove casts. Use
11104 return_zero_has_execution.
11105 (return_zero): Add "ignore" argument.
11106 (return_zero_has_execution): New function.
11107 (init_dummy_target): Remove casts. Use
11108 return_zero_has_execution.
11109
be4ddd36
TT
111102014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target.c (update_current_target): Update comments. Do not
11113 INHERIT to_stratum.
11114
2117c711
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11118 needed.
11119 * corelow.c (core_read_description): Delegate when needed.
11120 * remote.c (remote_read_description): Delegate when needed.
11121 * target-delegates.c: Rebuild.
11122 * target.c (target_read_description): Rewrite.
11123 * target.h (struct target_ops) <to_read_description>: Update
11124 comment. Use TARGET_DEFAULT_RETURN.
11125
e88ef65c
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_can_run.
11131 (find_default_run_target): Check against delegate_can_run.
11132 * target.h (struct target_ops) <to_can_run>: Use
11133 TARGET_DEFAULT_RETURN.
11134
86a0854a
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target-delegates.c: Rebuild.
11138 * target.c (target_disconnect): Unconditionally delegate.
11139 * target.h (struct target_ops) <to_disconnect>: Use
11140 TARGET_DEFAULT_NORETURN.
11141
ee97f592
TT
111422014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * record.c (record_stop): Unconditionally delegate.
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_stop_recording): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_stop_recording>: Use
11148 TARGET_DEFAULT_IGNORE.
11149
6dc7fcf4
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_enable_btrace): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_enable_btrace>: Use
11155 TARGET_DEFAULT_NORETURN.
11156
eb5b20d4
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_read_btrace): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_read_btrace>: Use
11162 TARGET_DEFAULT_NORETURN.
11163
9ace480d
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_teardown_btrace): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_teardown_btrace>: Use
11169 TARGET_DEFAULT_NORETURN.
11170
8dc292d3
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_disable_btrace): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_disable_btrace>: Use
11176 TARGET_DEFAULT_NORETURN.
11177
58a5184e
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target-delegates.c: Rebuild.
11181 * target.c (default_search_memory): New function.
11182 (simple_search_memory): Update comment.
11183 (target_search_memory): Unconditionally delegate.
11184 * target.h (struct target_ops) <to_search_memory>: Use
11185 TARGET_DEFAULT_FUNC.
11186
8de71aab
TT
111872014-02-19 Tom Tromey <tromey@redhat.com>
11188
11189 * auxv.c (default_auxv_parse): No longer static.
11190 (target_auxv_parse): Unconditionally delegate.
11191 * auxv.h (default_auxv_parse): Declare.
11192 * target-delegates.c: Rebuild.
11193 * target.c: Include auxv.h.
11194 * target.h (struct target_ops) <to_auxv_parse>: Use
11195 TARGET_DEFAULT_FUNC.
11196
6b2c5a57
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (target_memory_map): Unconditionally delegate.
11201 * target.h (struct target_ops) <to_memory_map>: Use
11202 TARGET_DEFAULT_RETURN.
11203
cbffc065
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (target_thread_alive): Unconditionally delegate.
11208 * target.h (struct target_ops) <to_thread_alive>: Use
11209 TARGET_DEFAULT_RETURN.
11210
f09e2107
TT
112112014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target-delegates.c: Rebuild.
11214 * target.c (target_save_record): Unconditionally delegate.
11215 * target.h (struct target_ops) <to_save_record>: Use
11216 TARGET_DEFAULT_NORETURN.
11217
07366925
TT
112182014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * target-delegates.c: Rebuild.
11221 * target.c (target_delete_record): Unconditionally delegate.
11222 * target.h (struct target_ops) <to_delete_record>: Use
11223 TARGET_DEFAULT_NORETURN.
11224
dd2e9d25
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (target_record_is_replaying): Unconditionally
11229 delegate.
11230 * target.h (struct target_ops) <to_record_is_replaying>: Use
11231 TARGET_DEFAULT_RETURN.
11232
671e76cc
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target-delegates.c: Rebuild.
11236 * target.c (target_goto_record_begin): Unconditionally delegate.
11237 * target.h (struct target_ops) <to_goto_record_begin>: Use
11238 TARGET_DEFAULT_NORETURN.
11239
e9179bb3
TT
112402014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target-delegates.c: Rebuild.
11243 * target.c (target_goto_record_end): Unconditionally delegate.
11244 * target.h (struct target_ops) <to_goto_record_end>: Use
11245 TARGET_DEFAULT_NORETURN.
11246
05969c84
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target-delegates.c: Rebuild.
11250 * target.c (target_goto_record): Unconditionally delegate.
11251 * target.h (struct target_ops) <to_goto_record>: Use
11252 TARGET_DEFAULT_NORETURN.
11253
3679abfa
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target-delegates.c: Rebuild.
11257 * target.c (target_insn_history): Unconditionally delegate.
11258 * target.h (struct target_ops) <to_insn_history>: Use
11259 TARGET_DEFAULT_NORETURN.
11260
8444ab58
TT
112612014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target-delegates.c: Rebuild.
11264 * target.c (target_insn_history_from): Unconditionally delegate.
11265 * target.h (struct target_ops) <to_insn_history_from>: Use
11266 TARGET_DEFAULT_NORETURN.
11267
c29302cc
TT
112682014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target-delegates.c: Rebuild.
11271 * target.c (target_insn_history_range): Unconditionally delegate.
11272 * target.h (struct target_ops) <to_insn_history_range>: Use
11273 TARGET_DEFAULT_NORETURN.
11274
170049d4
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target-delegates.c: Rebuild.
11278 * target.c (target_call_history): Unconditionally delegate.
11279 * target.h (struct target_ops) <to_call_history>: Use
11280 TARGET_DEFAULT_NORETURN.
11281
16fc27d6
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target-delegates.c: Rebuild.
11285 * target.c (target_call_history_from): Unconditionally delegate.
11286 * target.h (struct target_ops) <to_call_history_from>: Use
11287 TARGET_DEFAULT_NORETURN.
11288
115d9817
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target-delegates.c: Rebuild.
11292 * target.c (target_call_history_range): Unconditionally delegate.
11293 * target.h (struct target_ops) <to_call_history_range>: Use
11294 TARGET_DEFAULT_NORETURN.
11295
eb276a6b
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_verify_memory): Unconditionally delegate.
11300 * target.h (struct target_ops) <to_verify_memory>: Use
11301 TARGET_DEFAULT_NORETURN.
11302
9e538d0d
TT
113032014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target-delegates.c: Rebuild.
11306 * target.c (target_core_of_thread): Unconditionally delegate.
11307 * target.h (struct target_ops) <to_core_of_thread>: Use
11308 TARGET_DEFAULT_RETURN.
11309
f6fb2925
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (target_flash_done): Unconditionally delegate.
11314 * target.h (struct target_ops) <to_flash_done>: Use
11315 TARGET_DEFAULT_NORETURN.
11316
e8a6c6ac
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target-delegates.c: Rebuild.
11320 * target.c (target_flash_erase): Unconditionally delegate.
11321 * target.h (struct target_ops) <to_flash_erase>: Use
11322 TARGET_DEFAULT_NORETURN.
11323
7e35c012
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target-delegates.c: Rebuild.
11327 * target.c (target_get_section_table): Unconditionally delegate.
11328 * target.h (struct target_ops) <to_get_section_table>: Use
11329 TARGET_DEFAULT_RETURN.
11330
770234d3
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target-delegates.c: Rebuild.
11334 * target.c (target_pid_to_str): Unconditionally delegate.
11335 (init_dummy_target): Don't initialize to_pid_to_str.
11336 (default_pid_to_str): Rename from dummy_pid_to_str.
11337 * target.h (struct target_ops) <to_pid_to_str>: Use
11338 TARGET_DEFAULT_FUNC.
11339
09b0dc2b
TT
113402014-02-19 Tom Tromey <tromey@redhat.com>
11341
11342 * target-delegates.c: Rebuild.
11343 * target.c (target_find_new_threads): Unconditionally delegate.
11344 * target.h (struct target_ops) <to_find_new_threads>: Use
11345 TARGET_DEFAULT_RETURN.
11346
7d4f8efa
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target-delegates.c: Rebuild.
11350 * target.c (target_program_signals): Unconditionally delegate.
11351 * target.h (struct target_ops) <to_program_signals>: Use
11352 TARGET_DEFAULT_IGNORE.
11353
035cad7f
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target-delegates.c: Rebuild.
11357 * target.c (target_pass_signals): Unconditionally delegate.
11358 * target.h (struct target_ops) <to_pass_signals>: Use
11359 TARGET_DEFAULT_IGNORE.
11360
8d657035
TT
113612014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target-delegates.c: Rebuild.
11364 * target.c (default_mourn_inferior): New function.
11365 (target_mourn_inferior): Unconditionally delegate.
11366 * target.h (struct target_ops) <to_mourn_inferior>: Use
11367 TARGET_DEFAULT_FUNC.
11368
098dba18
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (default_follow_fork): New function.
11373 (target_follow_fork): Unconditionally delegate.
11374 * target.h (struct target_ops) <to_follow_fork>: Use
11375 TARGET_DEFAULT_FUNC.
11376
423a4807
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (target_kill): Unconditionally delegate.
11381 * target.h (struct target_ops) <to_kill>: Use
11382 TARGET_DEFAULT_NORETURN.
11383
6c7e5e5c
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (target_masked_watch_num_registers): Unconditionally
11388 delegate.
11389 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11390 Use TARGET_DEFAULT_RETURN.
11391
8b1c364c
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (target_remove_mask_watchpoint): Unconditionally
11396 delegate.
11397 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11398 TARGET_DEFAULT_RETURN.
11399
cd4ae029
TT
114002014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (target_insert_mask_watchpoint): Unconditionally
11404 delegate.
11405 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11406 TARGET_DEFAULT_RETURN.
11407
a134316b
TT
114082014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (target_ranged_break_num_registers): Unconditionally
11412 delegate.
11413 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11414 Use TARGET_DEFAULT_RETURN.
11415
ad5989bd
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (target_fetch_registers): Unconditionally delegate.
11420 * target.h (struct target_ops) <to_fetch_registers>: Use
11421 TARGET_DEFAULT_NORETURN.
11422
46ee7e8d
TT
114232014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_stop.
11428 * target.h (struct target_ops) <to_stop>: Use
11429 TARGET_DEFAULT_IGNORE.
11430
843f59ed
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11435 to_can_run_breakpoint_commands.
11436 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11437 Use TARGET_DEFAULT_RETURN.
11438
ccfde2a0
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_supports_evaluation_of_breakpoint_conditions.
11444 * target.h (struct target_ops)
11445 <to_supports_evaluation_of_breakpoint_conditions>: Use
11446 TARGET_DEFAULT_RETURN.
11447
0de91722
TT
114482014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_augmented_libraries_svr4_read.
11453 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11454 Use TARGET_DEFAULT_RETURN.
11455
9a7d8b48
TT
114562014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_can_use_agent.
11461 * target.h (struct target_ops) <to_can_use_agent>: Use
11462 TARGET_DEFAULT_RETURN.
11463
d9db5b21
TT
114642014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_use_agent.
11469 * target.h (struct target_ops) <to_use_agent>: Use
11470 TARGET_DEFAULT_NORETURN.
11471
92155eeb
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_traceframe_info.
11477 (return_null): Remove.
11478 * target.h (struct target_ops) <to_traceframe_info>: Use
11479 TARGET_DEFAULT_RETURN.
11480
d6522a22
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11485 to_static_tracepoint_markers_by_strid.
11486 * target.h (struct target_ops)
11487 <to_static_tracepoint_markers_by_strid>: Use
11488 TARGET_DEFAULT_NORETURN.
11489
4c3e4425
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_static_tracepoint_marker_at.
11495 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11496 Use TARGET_DEFAULT_RETURN.
11497
dcd6917f
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_set_permissions.
11503 * target.h (struct target_ops) <to_set_permissions>: Use
11504 TARGET_DEFAULT_IGNORE.
11505
22bcceee
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_get_tib_address.
11511 * target.h (struct target_ops) <to_get_tib_address>: Use
11512 TARGET_DEFAULT_NORETURN.
11513
8586ccaa
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_set_trace_notes.
11519 * target.h (struct target_ops) <to_set_trace_notes>: Use
11520 TARGET_DEFAULT_RETURN.
11521
91df8d1d
TT
115222014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't initialize
11526 to_set_trace_buffer_size.
11527 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11528 TARGET_DEFAULT_IGNORE.
11529
8d526939
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_set_circular_trace_buffer.
11535 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11536 TARGET_DEFAULT_IGNORE.
11537
0bcfeddf
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_set_disconnected_tracing.
11543 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11544 TARGET_DEFAULT_IGNORE.
11545
9249843f
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_get_min_fast_tracepoint_insn_len.
11551 (return_minus_one): Remove.
11552 * target.h (struct target_ops)
11553 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11554
ace92e7d
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_get_raw_trace_data.
11560 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11561 TARGET_DEFAULT_NORETURN.
11562
08120467
TT
115632014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_upload_trace_state_variables.
11568 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11569 Use TARGET_DEFAULT_RETURN.
11570
1e949b00
TT
115712014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_upload_tracepoints.
11576 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11577 TARGET_DEFAULT_RETURN.
11578
a2e6c147
TT
115792014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_save_trace_data.
11584 * target.h (struct target_ops) <to_save_trace_data>: Use
11585 TARGET_DEFAULT_NORETURN.
11586
959bcd0b
TT
115872014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_get_trace_state_variable_value.
11592 * target.h (struct target_ops)
11593 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11594
afc94e66
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_trace_find.
11600 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11601
e51c07ea
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_trace_stop.
11607 * target.h (struct target_ops) <to_trace_stop>: Use
11608 TARGET_DEFAULT_NORETURN.
11609
6fea14cd
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_get_tracepoint_status.
11615 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11616 TARGET_DEFAULT_NORETURN.
11617
4072d4ff
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_get_trace_status.
11623 * target.h (struct target_ops) <to_get_trace_status>: Use
11624 TARGET_DEFAULT_RETURN.
11625
25da2e80
TT
116262014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_trace_start.
11631 * target.h (struct target_ops) <to_trace_start>: Use
11632 TARGET_DEFAULT_NORETURN.
11633
86dd181d
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_trace_set_readonly_regions.
11639 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11640 Use TARGET_DEFAULT_NORETURN.
11641
05c41993
TT
116422014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_disable_tracepoint.
11647 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11648 TARGET_DEFAULT_NORETURN.
11649
151f70f1
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_enable_tracepoint.
11655 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11656 TARGET_DEFAULT_NORETURN.
11657
94eb98b9
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_download_trace_state_variable.
11663 * target.h (struct target_ops) <to_download_trace_state_variable>:
11664 Use TARGET_DEFAULT_NORETURN.
11665
719acc4a
TT
116662014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target-delegates.c: Rebuild.
11669 * target.c (update_current_target): Don't inherit or default
11670 to_can_download_tracepoint.
11671 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11672 TARGET_DEFAULT_RETURN.
11673
9a980a22
TT
116742014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target-delegates.c: Rebuild.
11677 * target.c (update_current_target): Don't inherit or default
11678 to_download_tracepoint.
11679 * target.h (struct target_ops) <to_download_tracepoint>: Use
11680 TARGET_DEFAULT_NORETURN.
11681
5536135b
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_trace_init.
11687 * target.h (struct target_ops) <to_trace_init>: Use
11688 TARGET_DEFAULT_RETURN.
11689
9409d39e
TT
116902014-02-19 Tom Tromey <tromey@redhat.com>
11691
11692 * target-delegates.c: Rebuild.
11693 * target.c (update_current_target): Don't inherit or default
11694 to_supports_string_tracing.
11695 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11696 TARGET_DEFAULT_RETURN.
11697
aab1b22d
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_supports_enable_disable_tracepoint.
11703 * target.h (struct target_ops)
11704 <to_supports_enable_disable_tracepoint>: Use
11705 TARGET_DEFAULT_RETURN.
11706
a7304748
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target-delegates.c: Rebuild.
11710 * target.c (update_current_target): Don't inherit or default
11711 to_supports_multi_process.
11712 * target.h (struct target_ops) <to_supports_multi_process>: Use
11713 TARGET_DEFAULT_RETURN.
11714
4229b31d
TT
117152014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (update_current_target): Don't inherit or default
11719 to_get_ada_task_ptid.
11720 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11721 TARGET_DEFAULT_FUNC.
11722
43eba180
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_thread_architecture.
11728 * target.h (struct target_ops) <to_thread_architecture>: Use
11729 TARGET_DEFAULT_FUNC.
11730
fe31bf5b
TT
117312014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target-delegates.c: Rebuild.
11734 * target.c (update_current_target): Don't inherit or default
11735 to_execution_direction.
11736 * target.h (struct target_ops) <to_execution_direction>: Use
11737 TARGET_DEFAULT_FUNC.
11738
53e1cfc7
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target-delegates.c: Rebuild.
11742 * target.c (update_current_target): Don't inherit or default
11743 to_can_execute_reverse.
11744 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11745 TARGET_DEFAULT_RETURN.
11746 (target_can_execute_reverse): Unconditionally delegate.
11747
9bb9d61d
TT
117482014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * target-delegates.c: Rebuild.
11751 * target.c (update_current_target): Don't inherit or default
11752 to_goto_bookmark.
11753 (dummy_goto_bookmark): Remove.
11754 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11755 * target.h (struct target_ops) <to_goto_bookmark>: Use
11756 TARGET_DEFAULT_NORETURN.
11757
3dbafbbb
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_get_bookmark.
11763 (dummy_get_bookmark): Remove.
11764 (init_dummy_target): Don't inherit or default to_get_bookmark.
11765 * target.h (struct target_ops) <to_get_bookmark>: Use
11766 TARGET_DEFAULT_NORETURN
11767
16f796b1
TT
117682014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11772 to_make_corefile_notes.
11773 (init_dummy_target): Don't initialize to_make_corefile_notes.
11774 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11775 TARGET_DEFAULT_FUNC.
11776
0b5a2719
TT
117772014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target-delegates.c: Rebuild.
11780 * target.c (update_current_target): Don't inherit or default
11781 to_find_memory_regions.
11782 (init_dummy_target): Don't initialize to_find_memory_regions.
11783 * target.h (struct target_ops) <to_find_memory_regions>: Use
11784 TARGET_DEFAULT_FUNC.
11785
d9cb0195
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_log_command.
11791 * target.h (struct target_ops) <to_log_command>: Use
11792 TARGET_DEFAULT_IGNORE.
11793 (target_log_command): Unconditionally delegate.
11794
830ca330
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (update_current_target): Don't inherit or default
11799 to_pid_to_exec_file.
11800 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11801 TARGET_DEFAULT_RETURN.
11802
825828fc
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (update_current_target): Don't inherit or default
11807 to_thread_name.
11808 (target_thread_name): Unconditionally delegate.
11809 * target.h (struct target_ops) <to_thread_name>: Use
11810 TARGET_DEFAULT_RETURN.
11811
4a7e6dda
TT
118122014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_extra_thread_info.
11817 * target.h (struct target_ops) <to_extra_thread_info>: Use
11818 TARGET_DEFAULT_RETURN.
11819
0db88c1d
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target-delegates.c: Rebuild.
11823 * target.c (update_current_target): Don't inherit or default
11824 to_has_exited.
11825 * target.h (struct target_ops) <to_has_exited>: Use
11826 TARGET_DEFAULT_RETURN..
11827
6a9fa051
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_set_syscall_catchpoint.
11833 (return_one): Remove.
11834 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11835 TARGET_DEFAULT_RETURN.
11836
62f64d7a
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11841 to_insert_exec_catchpoint.
11842 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11843 TARGET_DEFAULT_RETURN.
11844
cda0f38c
TT
118452014-01-08 Tom Tromey <tromey@redhat.com>
11846
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_insert_exec_catchpoint.
11850 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11851 TARGET_DEFAULT_RETURN.
11852
95c3375e
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_remove_vfork_catchpoint.
11858 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11859 TARGET_DEFAULT_RETURN.
11860
7e18a8dc
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_insert_vfork_catchpoint.
11866 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11867 TARGET_DEFAULT_RETURN.
11868
e1a21fb7
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_remove_fork_catchpoint.
11874 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11875 TARGET_DEFAULT_RETURN.
11876
5958ebeb
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_insert_fork_catchpoint.
11882 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11883 TARGET_DEFAULT_RETURN.
11884
340ba4bf
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_post_startup_inferior.
11890 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11891 TARGET_DEFAULT_IGNORE.
11892
7634da87
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_load.
11898 * target.h (struct target_ops) <to_load>: Use
11899 TARGET_DEFAULT_NORETURN.
11900
e19e919f
TT
119012014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target-delegates.c: Rebuild.
11904 * target.c (update_current_target): Don't inherit or default
11905 to_terminal_info.
11906 * target.h (struct target_ops) <to_terminal_info>: Use
11907 TARGET_DEFAULT_FUNC.
11908
c6ea8f79
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target-delegates.c: Rebuild.
11912 * target.c (update_current_target): Don't inherit or default
11913 to_terminal_save_ours.
11914 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11915 TARGET_DEFAULT_IGNORE.
11916
e4a733f1
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target-delegates.c: Rebuild.
11920 * target.c (update_current_target): Don't inherit or default
11921 to_terminal_ours.
11922 * target.h (struct target_ops) <to_terminal_ours>: Use
11923 TARGET_DEFAULT_IGNORE.
11924
74fcbef9
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target-delegates.c: Rebuild.
11928 * target.c (update_current_target): Don't inherit or default
11929 to_terminal_ours_for_output.
11930 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11931 TARGET_DEFAULT_IGNORE.
11932
ddeaacc9
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_terminal_inferior.
11938 * target.h (struct target_ops) <to_terminal_inferior>: Use
11939 TARGET_DEFAULT_IGNORE.
11940
0343661d
TT
119412014-02-19 Tom Tromey <tromey@redhat.com>
11942
11943 * target-delegates.c: Rebuild.
11944 * target.c (update_current_target): Don't inherit or default
11945 to_terminal_init.
11946 * target.h (struct target_ops) <to_terminal_init>: Use
11947 TARGET_DEFAULT_IGNORE.
11948
77cdffe9
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target-delegates.c: Rebuild.
11952 * target.c (update_current_target): Don't inherit or default
11953 to_can_accel_watchpoint_condition.
11954 * target.h (struct target_ops)
11955 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11956
d03655e4
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target-delegates.c: Rebuild.
11960 * target.c (update_current_target): Don't inherit or default
11961 to_region_ok_for_hw_watchpoint.
11962 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11963 Use TARGET_DEFAULT_FUNC.
11964
65f160a9
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_watchpoint_addr_within_range.
11970 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11971 Use TARGET_DEFAULT_FUNC.
11972
61dd109f
TT
119732014-02-19 Tom Tromey <tromey@redhat.com>
11974
11975 * target-delegates.c: Rebuild.
11976 * target.c (update_current_target): Don't inherit or default
11977 to_remove_watchpoint.
11978 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11979 TARGET_DEFAULT_NORETURN.
11980
016facd4
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target-delegates.c: Rebuild.
11984 * target.c (update_current_target): Don't inherit or default
11985 to_insert_watchpoint.
11986 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11987 TARGET_DEFAULT_RETURN.
11988
418dabac
TT
119892014-02-19 Tom Tromey <tromey@redhat.com>
11990
11991 * target-delegates.c: Rebuild.
11992 * target.c (update_current_target): Don't inherit or default
11993 to_remove_hw_breakpoint.
11994 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11995 TARGET_DEFAULT_RETURN.
11996
61b371f9
TT
119972014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * target-delegates.c: Rebuild.
12000 * target.c (update_current_target): Don't inherit or default
12001 to_insert_hw_breakpoint.
12002 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12003 TARGET_DEFAULT_RETURN.
12004
52b51d06
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_can_use_hw_breakpoint.
12010 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12011 TARGET_DEFAULT_RETURN.
12012
f86e59b2
TT
120132014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target-delegates.c: Rebuild.
12016 * target.c (update_current_target): Don't inherit or default
12017 to_files_info.
12018 * target.h (struct target_ops) <to_files_info>: Use
12019 TARGET_DEFAULT_IGNORE.
12020
6c628163
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target-delegates.c: Rebuild.
12024 * target.c (update_current_target): Don't inherit or default
12025 to_store.
12026 * target.h (struct target_ops) <to_store>: Use
12027 TARGET_DEFAULT_NORETURN.
12028
bebd3233
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12033 to_post_attach.
12034 * target.h (struct target_ops) <to_post_attach>: Use
12035 TARGET_DEFAULT_IGNORE.
12036
a53f3625
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12041 to_rcmd.
12042 (default_rcmd): New function.
12043 (do_monitor_command): Unconditionally delegate.
12044 * target.h (struct target_ops) <to_rmcd>: Use
12045 TARGET_DEFAULT_FUNC.
12046
e9a29200
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target-delegates.c: Rebuild.
12050 * target.c (init_dummy_target): Don't initialize to_attach.
12051 (target_attach): Unconditionally delegate.
12052 * target.h (struct target_ops) <to_attach>: Use
12053 TARGET_DEFAULT_FUNC.
12054
09da0d0a
TT
120552014-02-19 Tom Tromey <tromey@redhat.com>
12056
12057 * target-delegates.c: Rebuild.
12058 * target.c (target_detach): Unconditionally delegate.
12059 (init_dummy_target): Don't initialize to_detach.
12060 * target.h (struct target_ops) <to_detach>: Use
12061 TARGET_DEFAULT_IGNORE.
12062
5436ff03
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12066 Add argument.
12067 (target_augmented_libraries_svr4_read): Add argument.
12068 * target.c (update_current_target): Update.
12069 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12070 argument.
12071
f0d960ea
TT
120722014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (struct target_ops) <to_call_history_range>: Add
12075 argument.
12076 * target.c (target_call_history_range): Add argument.
12077 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12078 argument.
12079 (record_btrace_call_history_from): Update.
12080
ec0aea04
TT
120812014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target.h (struct target_ops) <to_call_history_from>: Add
12084 argument.
12085 * target.c (target_call_history_from): Add argument.
12086 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12087 argument.
12088
5df2fcba
TT
120892014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target.h (struct target_ops) <to_call_history>: Add argument.
12092 * target.c (target_call_history): Add argument.
12093 * record-btrace.c (record_btrace_call_history): Add 'self'
12094 argument.
12095
4e99c6b7
TT
120962014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target.h (struct target_ops) <to_insn_history_range>: Add
12099 argument.
12100 * target.c (target_insn_history_range): Add argument.
12101 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12102 argument.
12103 (record_btrace_insn_history_from): Update.
12104
9abc3ff3
TT
121052014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * target.h (struct target_ops) <to_insn_history_from>: Add
12108 argument.
12109 * target.c (target_insn_history_from): Add argument.
12110 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12111 argument.
12112
7a6c5609
TT
121132014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target.h (struct target_ops) <to_insn_history>: Add argument.
12116 * target.c (target_insn_history): Add argument.
12117 * record-btrace.c (record_btrace_insn_history): Add 'self'
12118 argument.
12119
606183ac
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_goto_record>: Add argument.
12123 * target.c (target_goto_record): Add argument.
12124 * record-full.c (record_full_goto): Add 'self' argument.
12125 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12126
307a1b91
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12130 * target.c (target_goto_record_end): Add argument.
12131 * record-full.c (record_full_goto_end): Add 'self' argument.
12132 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12133
08475817
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_goto_record_begin>: Add
12137 argument.
12138 * target.c (target_goto_record_begin): Add argument.
12139 * record-full.c (record_full_goto_begin): Add 'self' argument.
12140 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12141 argument.
12142
1c63c994
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target.h (struct target_ops) <to_record_is_replaying>: Add
12146 argument.
12147 * target.c (target_record_is_replaying): Add argument.
12148 * record-full.c (record_full_is_replaying): Add 'self' argument.
12149 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12150 argument.
12151 (record_btrace_xfer_partial, record_btrace_store_registers)
12152 (record_btrace_prepare_to_store, record_btrace_resume)
12153 (record_btrace_wait, record_btrace_decr_pc_after_break)
12154 (record_btrace_find_new_threads, record_btrace_thread_alive):
12155 Update.
12156
d1b55219
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target.h (struct target_ops) <to_delete_record>: Add argument.
12160 * target.c (target_delete_record): Add argument.
12161 * record-full.c (record_full_delete): Add 'self' argument.
12162
1390f529
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target.h (struct target_ops) <to_save_record>: Add argument.
12166 * target.c (target_save_record): Add argument.
12167 * record-full.c (record_full_save): Add 'self' argument.
12168 (record_full_save): Add 'self' argument.
12169
630d6a4a
TT
121702014-02-19 Tom Tromey <tromey@redhat.com>
12171
12172 * target.h (struct target_ops) <to_info_record>: Add argument.
12173 * target.c (target_info_record): Add argument.
12174 * record.c (info_record_command): Add argument.
12175 * record-full.c (record_full_info): Add 'self' argument.
12176 * record-btrace.c (record_btrace_info): Add 'self' argument.
12177
c6cd7c02
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12181 * target.c (target_stop_recording): Add argument.
12182 * record.c (record_stop): Add argument.
12183 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12184 argument.
12185
39c49f83
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12189 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12190 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12191 argument.
12192 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12193 (_initialize_amd64_linux_nat): Use it.
12194 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12195 (_initialize_i386_linux_nat): Use it.
12196
1777056d
TT
121972014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12200 * target.c (target_teardown_btrace): Add argument.
12201 * remote.c (remote_teardown_btrace): Add 'self' argument.
12202 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12203 argument.
12204 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12205 argument.
12206
25e95349
TT
122072014-02-19 Tom Tromey <tromey@redhat.com>
12208
12209 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12210 * target.c (target_disable_btrace): Add argument.
12211 * remote.c (remote_disable_btrace): Add 'self' argument.
12212 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12213 argument.
12214 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12215 argument.
12216
e3c49f88
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12220 * target.c (target_enable_btrace): Add argument.
12221 * remote.c (remote_enable_btrace): Add 'self' argument.
12222 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12223 argument.
12224 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12225 argument.
12226
fe38f897
TT
122272014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12230 (target_can_use_agent): Add argument.
12231 * target.c (update_current_target): Update.
12232 * remote.c (remote_can_use_agent): Add 'self' argument.
12233 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12234
2c152180
TT
122352014-02-19 Tom Tromey <tromey@redhat.com>
12236
12237 * target.h (struct target_ops) <to_use_agent>: Add argument.
12238 (target_use_agent): Add argument.
12239 * target.c (update_current_target): Update.
12240 * remote.c (remote_use_agent): Add 'self' argument.
12241 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12242
a893e81f
TT
122432014-02-19 Tom Tromey <tromey@redhat.com>
12244
12245 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12246 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12247 (target_traceframe_info): Add argument.
12248 * target.c (update_current_target): Update.
12249 * remote.c (remote_traceframe_info): Add 'self' argument.
12250 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12251
c686c57f
TT
122522014-02-19 Tom Tromey <tromey@redhat.com>
12253
12254 * target.h (target_static_tracepoint_markers_by_strid): Add
12255 argument.
12256 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12257 'self' argument.
12258 * target.c (update_current_target): Update.
12259 * remote.c (struct target_ops)
12260 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12261 * linux-nat.c (struct target_ops)
12262 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12263
61fc905d
TT
122642014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12267 Add argument.
12268 (target_static_tracepoint_marker_at): Add argument.
12269 * target.c (update_current_target): Update.
12270 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12271 argument.
12272
c378d69d
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12276 (target_set_permissions): Add argument.
12277 * target.c (update_current_target): Update.
12278 * remote.c (remote_set_permissions): Add 'self' argument.
12279 (remote_start_remote): Update.
12280
bd7ae0f5
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12284 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12285 (target_get_tib_address): Add argument.
12286 * target.c (update_current_target): Update.
12287 * remote.c (remote_get_tib_address): Add 'self' argument.
12288
d9e68a2c
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12292 (target_set_trace_notes): Add argument.
12293 * target.c (update_current_target): Update.
12294 * remote.c (remote_set_trace_notes): Add 'self' argument.
12295
4da384be
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12299 argument.
12300 (target_set_trace_buffer_size): Add argument.
12301 * target.c (update_current_target): Update.
12302 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12303
736d5b1f
TT
123042014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12307 argument.
12308 (target_set_circular_trace_buffer): Add argument.
12309 * target.c (update_current_target): Update.
12310 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12311 argument.
12312
37b25738
TT
123132014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12316 argument.
12317 (target_set_disconnected_tracing): Add argument.
12318 * target.c (update_current_target): Update.
12319 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12320
0e67620a
TT
123212014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * target.h (struct target_ops)
12324 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12325 (target_get_min_fast_tracepoint_insn_len): Add argument.
12326 * target.c (update_current_target): Update.
12327 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12328 argument.
12329
88ee6f45
TT
123302014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12333 argument.
12334 (target_get_raw_trace_data): Add argument.
12335 * target.c (update_current_target): Update.
12336 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12337
181e3713
TT
123382014-02-19 Tom Tromey <tromey@redhat.com>
12339
12340 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12341 Add argument.
12342 (target_upload_trace_state_variables): Add argument.
12343 * target.c (update_current_target): Update.
12344 * remote.c (remote_upload_trace_state_variables): Add 'self'
12345 argument.
12346 (remote_start_remote): Update.
12347
ab6617cc
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12351 argument.
12352 (target_upload_tracepoints): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12355 (remote_start_remote): Update.
12356
dc3decaf
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12360 (target_save_trace_data): Add argument.
12361 * target.c (update_current_target): Update.
12362 * remote.c (remote_save_trace_data): Add 'self' argument.
12363
4011015b
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12367 argument.
12368 * target.h (struct target_ops)
12369 <to_get_trace_state_variable_value>: Add argument.
12370 (target_get_trace_state_variable_value): Add argument.
12371 * target.c (update_current_target): Update.
12372 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12373 argument.
12374 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12375
bd4c6793
TT
123762014-02-19 Tom Tromey <tromey@redhat.com>
12377
12378 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12379 * target.h (struct target_ops) <to_trace_find>: Add argument.
12380 (target_trace_find): Add argument.
12381 * target.c (update_current_target): Update.
12382 * remote.c (remote_trace_find): Add 'self' argument.
12383 * ctf.c (ctf_trace_find): Add 'self' argument.
12384
74499f1b
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12388 (target_trace_stop): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_trace_stop): Add 'self' argument.
12391
db90e85c
TT
123922014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12395 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12396 argument.
12397 (target_get_tracepoint_status): Add argument.
12398 * target.c (update_current_target): Update.
12399 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12400
8bd200f1
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12404 * target.h (struct target_ops) <to_get_trace_status>: Add
12405 argument.
12406 (target_get_trace_status): Add argument.
12407 * target.c (update_current_target): Update.
12408 * remote.c (remote_get_trace_status): Add 'self' argument.
12409 (remote_start_remote, remote_can_download_tracepoint): Update.
12410 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12411
e2d1aae3
TT
124122014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target.h (struct target_ops) <to_trace_start>: Add argument.
12415 (target_trace_start): Add argument.
12416 * target.c (update_current_target): Update.
12417 * remote.c (remote_trace_start): Add 'self' argument.
12418
583f9a86
TT
124192014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12422 Add argument.
12423 (target_trace_set_readonly_regions): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12426 argument.
12427
780b049c
TT
124282014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12431 argument.
12432 (target_disable_tracepoint): Add argument.
12433 * target.c (update_current_target): Update.
12434 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12435
46670d57
TT
124362014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12439 argument.
12440 (target_enable_tracepoint): Add argument.
12441 * target.c (update_current_target): Update.
12442 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12443
559d2b81
TT
124442014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target.h (struct target_ops) <to_download_trace_state_variable>:
12447 Add argument.
12448 (target_download_trace_state_variable): Add argument.
12449 * target.c (update_current_target): Update.
12450 * remote.c (remote_download_trace_state_variable): Add 'self'
12451 argument.
12452
a52a8357
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12456 argument.
12457 (target_can_download_tracepoint): Add argument.
12458 * target.c (update_current_target): Update.
12459 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12460
548f7808
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target.h (struct target_ops) <to_download_tracepoint>: Add
12464 argument.
12465 (target_download_tracepoint): Add argument.
12466 * target.c (update_current_target): Update.
12467 * remote.c (remote_download_tracepoint): Add 'self' argument.
12468
ecae04e1
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_trace_init>: Add argument.
12472 (target_trace_init): Add argument.
12473 * target.c (update_current_target): Update.
12474 * remote.c (remote_trace_init): Add 'self' argument.
12475
fab5aa7c
TT
124762014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12479 * target.c (target_fileio_readlink): Add argument.
12480 * remote.c (remote_hostio_readlink): Add 'self' argument.
12481 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12482
dbbca37d
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12486 * target.c (target_fileio_unlink): Add argument.
12487 * remote.c (remote_hostio_unlink): Add 'self' argument.
12488 (remote_file_delete): Update.
12489 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12490
df39ea25
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12494 * target.c (target_fileio_close): Add argument.
12495 * remote.c (remote_hostio_close): Add 'self' argument.
12496 (remote_hostio_close_cleanup): Update.
12497 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12498 Update.
12499 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12500
a3be983c
TT
125012014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12504 * target.c (target_fileio_pread): Add argument.
12505 * remote.c (remote_hostio_pread): Add 'self' argument.
12506 (remote_bfd_iovec_pread, remote_file_get): Update.
12507 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12508
0d866f62
TT
125092014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12512 * target.c (target_fileio_pwrite): Add argument.
12513 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12514 (remote_file_put): Update.
12515 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12516
cd897586
TT
125172014-02-19 Tom Tromey <tromey@redhat.com>
12518
12519 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12520 * target.c (target_fileio_open): Add argument.
12521 * remote.c (remote_hostio_open): Add 'self' argument.
12522 (remote_bfd_iovec_open): Add 'self' argument.
12523 (remote_file_put): Add 'self' argument.
12524 (remote_file_get): Add 'self' argument.
12525 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12526
78eff0ec
TT
125272014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12530 Add argument.
12531 (target_can_run_breakpoint_commands): Add argument.
12532 * target.c (update_current_target): Update.
12533 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12534 argument.
12535 (remote_insert_breakpoint): Add 'self' argument.
12536 (remote_insert_hw_breakpoint): Add 'self' argument.
12537 (remote_can_run_breakpoint_commands): Add 'self' argument.
12538
efcc2da7
TT
125392014-02-19 Tom Tromey <tromey@redhat.com>
12540
12541 * target.h (struct target_ops)
12542 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12543 (target_supports_evaluation_of_breakpoint_conditions): Add
12544 argument.
12545 * target.c (update_current_target): Update.
12546 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12547 argument.
12548 (remote_insert_breakpoint): Add 'self' argument.
12549 (remote_insert_hw_breakpoint): Add 'self' argument.
12550 (remote_supports_cond_breakpoints): Add 'self' argument.
12551
6de37a3a
TT
125522014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12555 argument.
12556 (target_supports_string_tracing): Add argument.
12557 * target.c (update_current_target): Update.
12558 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12559
2bfc0540
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops)
12563 <to_supports_disable_randomization>: Add argument.
12564 * target.c (find_default_supports_disable_randomization): Add
12565 argument.
12566 (target_supports_disable_randomization): Add argument.
12567 (find_default_supports_disable_randomization): Add 'self'
12568 argument.
12569 * remote.c (extended_remote_supports_disable_randomization): Add
12570 'self' argument.
12571 (remote_supports_disable_randomization): Add 'self' argument.
12572 (extended_remote_create_inferior): Update.
12573 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12574 'self' argument.
12575
7d178d6a
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (struct target_ops)
12579 <to_supports_enable_disable_tracepoint>: Add argument.
12580 (target_supports_enable_disable_tracepoint): Add argument.
12581 * target.c (update_current_target): Update.
12582 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12583 argument.
12584
86ce2668
TT
125852014-02-19 Tom Tromey <tromey@redhat.com>
12586
12587 * target.h (struct target_ops) <to_supports_multi_process>: Add
12588 argument.
12589 (target_supports_multi_process): Add argument.
12590 * target.c (update_current_target): Update.
12591 * remote.c (remote_supports_multi_process): Add 'self' argument.
12592 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12593 argument.
12594 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12595 argument.
12596
4c612759
TT
125972014-02-19 Tom Tromey <tromey@redhat.com>
12598
12599 * target.h (struct target_ops) <to_execution_direction>: Add
12600 argument.
12601 (target_execution_direction): Add argument.
12602 * target.c (default_execution_direction): Add 'self' argument.
12603 * record-full.c (record_full_execution_direction): Add 'self'
12604 argument.
12605
19db3e69
TT
126062014-02-19 Tom Tromey <tromey@redhat.com>
12607
12608 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12609 argument.
12610 (target_can_execute_reverse): Add argument.
12611 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12612 * record-full.c (record_full_can_execute_reverse): Add 'self'
12613 argument.
12614 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12615 argument.
12616
1e6b91a4
TT
126172014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12620 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12621 argument.
12622 (target_get_ada_task_ptid): Add argument.
12623 * target.c (update_current_target): Update.
12624 (default_get_ada_task_ptid): Add 'self' argument.
12625 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12626 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12627 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12628 argument.
12629 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12630 argument.
12631 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12632 argument.
12633 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12634 argument.
12635 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12636 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12637 argument.
12638
3c80fb48
TT
126392014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12642 (target_goto_bookmark): Add argument.
12643 * target.c (dummy_goto_bookmark): Add 'self' argument.
12644 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12645
dd0e2830
TT
126462014-02-19 Tom Tromey <tromey@redhat.com>
12647
12648 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12649 (target_get_bookmark): Add argument.
12650 * target.c (dummy_get_bookmark): Add 'self' argument.
12651 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12652
fc6691b2
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12656 argument.
12657 (target_make_corefile_notes): Add argument.
12658 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12659 * procfs.c (procfs_make_note_section): Add 'self' argument.
12660 (procfs_make_note_section): Add 'self' argument.
12661 (procfs_make_note_section): Add 'self' argument.
12662 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12663 argument.
12664 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12665 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12666 * exec.c (exec_make_note_section): Add 'self' argument.
12667 (exec_make_note_section): Add 'self' argument.
12668
2e73927c
TT
126692014-02-19 Tom Tromey <tromey@redhat.com>
12670
12671 * target.h (struct target_ops) <to_find_memory_regions>: Add
12672 argument.
12673 (target_find_memory_regions): Add argument.
12674 * target.c (dummy_find_memory_regions): Add 'self' argument.
12675 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12676 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12677 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12678 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12679 * exec. (exec_do_find_memory_regions): New global.
12680 (exec_set_find_memory_regions): Rewrite.
12681 (exec_find_memory_regions): New function.
12682 (init_exec_ops): Use exec_find_memory_regions.
12683
2a9a2795
TT
126842014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target.h (struct target_ops) <to_supports_non_stop>: Add
12687 argument.
12688 * target.c (find_default_supports_non_stop): Add argument.
12689 (target_supports_non_stop): Add argument.
12690 (find_default_supports_non_stop): Add 'self' argument.
12691 * remote.c (remote_supports_non_stop): Add 'self' argument.
12692 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12693
4ab76ea3
TT
126942014-02-19 Tom Tromey <tromey@redhat.com>
12695
12696 * target.h (struct target_ops) <to_log_command>: Add argument.
12697 (target_log_command): Add argument.
12698 * serial.h (serial_log_command): Add 'self' argument.
12699 * serial.c (serial_log_command): Add 'self' argument.
12700
8dd27370
TT
127012014-02-19 Tom Tromey <tromey@redhat.com>
12702
12703 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12704 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12705 argument.
12706 (target_pid_to_exec_file): Add argument.
12707 * target.c (debug_to_pid_to_exec_file): Add argument.
12708 (update_current_target): Update.
12709 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12710 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12711 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12712 (linux_handle_extended_wait): Update.
12713 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12714 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12715 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12716 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12717
1aac633b
TT
127182014-02-19 Tom Tromey <tromey@redhat.com>
12719
12720 * target.h (struct target_ops) <to_rcmd>: Add argument.
12721 (target_rcmd): Add argument.
12722 * target.c (debug_to_rcmd): Add argument.
12723 (update_current_target, do_monitor_command): Update.
12724 * remote.c (remote_rcmd): Add 'self' argument.
12725 * monitor.c (monitor_rcmd): Add 'self' argument.
12726
1eab8a48
TT
127272014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * windows-nat.c (windows_stop): Add 'self' argument.
12730 * target.h (struct target_ops) <to_stop>: Add argument.
12731 * target.c (target_stop): Add argument.
12732 (debug_to_stop): Add argument.
12733 (update_current_target): Update.
12734 * remote.c (remote_stop): Add 'self' argument.
12735 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12736 (gdbsim_cntrl_c): Update.
12737 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12738 * procfs.c (procfs_stop): Add 'self' argument.
12739 * nto-procfs.c (procfs_stop): Add 'self' argument.
12740 * monitor.c (monitor_stop): Add 'self' argument.
12741 (monitor_open): Update.
12742 * linux-nat.c (linux_nat_stop): Add argument.
12743 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12744 * gnu-nat.c (gnu_stop): Add 'self' argument.
12745 * darwin-nat.c (darwin_stop): Add 'self' argument.
12746
503a628d
TT
127472014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_thread_name>: Add argument.
12750 * target.c (target_thread_name): Add argument.
12751 (update_current_target): Update.
12752 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12753
c15906d8
TT
127542014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * target.h (struct target_ops) <to_extra_thread_info>: Add
12757 argument.
12758 (target_extra_thread_info): Add argument.
12759 * target.c (update_current_target): Update.
12760 * remote.c (remote_threads_extra_info): Add 'self' argument.
12761 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12762 argument.
12763 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12764 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12765 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12766 argument.
12767 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12768 argument.
12769 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12770 argument.
12771 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12772 argument.
12773
daf5e9b6
TT
127742014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * target.h (struct target_ops) <to_program_signals>: Add argument.
12777 * target.c (target_program_signals): Add argument.
12778 * remote.c (remote_program_signals): Add 'self' argument.
12779
94bedb42
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12783 * target.c (target_pass_signals): Add argument.
12784 * remote.c (remote_pass_signals): Add 'self' argument.
12785 (remote_start_remote): Update.
12786 * procfs.c (procfs_pass_signals): Add 'self' argument.
12787 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12788 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12789 (linux_nat_create_inferior, linux_nat_attach): Update.
12790
da82bd6b
TT
127912014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * windows-nat.c (windows_can_run): Add 'self' argument.
12794 * target.h (struct target_ops) <to_can_run>: Add argument.
12795 (target_can_run): Add argument.
12796 * target.c (debug_to_can_run): Add argument.
12797 (update_current_target): Update.
12798 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12799 * inf-child.c (inf_child_can_run): Add 'self' argument.
12800 * go32-nat.c (go32_can_run): Add 'self' argument.
12801
d796e1d6
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * target.h (struct target_ops) <to_has_exited>: Add argument.
12805 (target_has_exited): Add argument.
12806 * target.c (debug_to_has_exited): Add argument.
12807 (update_current_target): Update.
12808
ff214e67
TT
128092014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12812 argument.
12813 (target_set_syscall_catchpoint): Add argument.
12814 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12815 argument.
12816 * target.c (update_current_target): Update.
12817
758e29d2
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12821 argument.
12822 (target_remove_exec_catchpoint): Add argument.
12823 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12824 (update_current_target): Update.
12825 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12826 argument.
12827
ba025e51
TT
128282014-02-19 Tom Tromey <tromey@redhat.com>
12829
12830 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12831 argument.
12832 (target_insert_exec_catchpoint): Add argument.
12833 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12834 (update_current_target): Update.
12835 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12836 argument.
12837
e98cf0cd
TT
128382014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12841 argument.
12842 (target_remove_vfork_catchpoint): Add argument.
12843 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12844 (update_current_target): Update.
12845 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12846 argument.
12847
3ecc7da0
TT
128482014-02-19 Tom Tromey <tromey@redhat.com>
12849
12850 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12851 argument.
12852 (target_insert_vfork_catchpoint): Add argument.
12853 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12854 (update_current_target): Update.
12855 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12856 argument.
12857
973fc227
TT
128582014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12861 argument.
12862 (target_remove_fork_catchpoint): Add argument.
12863 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12864 (update_current_target): Update.
12865 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12866 argument.
12867
a863b201
TT
128682014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12871 argument.
12872 (target_insert_fork_catchpoint): Add argument.
12873 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12874 (update_current_target): Update.
12875 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12876 argument.
12877
2e97a79e
TT
128782014-02-19 Tom Tromey <tromey@redhat.com>
12879
12880 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12881 argument.
12882 (target_post_startup_inferior): Add argument.
12883 * target.c (debug_to_post_startup_inferior): Add argument.
12884 (update_current_target): Update.
12885 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12886 argument.
12887 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12888 argument.
12889 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12890 argument.
12891 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12892 argument.
12893 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12894 'self' argument.
12895 (super_post_startup_inferior): Likewise.
12896 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12897 'self' argument.
12898 (super_post_startup_inferior): Likewise.
12899 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12900 Add 'self' argument.
12901 (super_post_startup_inferior): Likewise.
12902
71a9f134
TT
129032014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * target.h (struct target_ops) <to_load>: Add argument.
12906 * target.c (target_load): Add argument.
12907 (debug_to_load): Add argument.
12908 (update_current_target): Update.
12909 * remote.c (remote_load): Add 'self' argument.
12910 * remote-sim.c (gdbsim_load): Add 'self' argument.
12911 * remote-mips.c (mips_load): Add 'self' argument.
12912 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12913 * monitor.c (monitor_load): Add 'self' argument.
12914 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12915
0a4f40a2
TT
129162014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12919 (target_terminal_info): Add argument.
12920 * target.c (debug_to_terminal_info): Add argument.
12921 (default_terminal_info): Likewise.
12922 * inflow.c (child_terminal_info): Add 'self' argument.
12923 * inferior.h (child_terminal_info): Add 'self' argument.
12924 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12925
ae3bd431
TT
129262014-02-19 Tom Tromey <tromey@redhat.com>
12927
12928 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12929 argument.
12930 (target_terminal_save_ours): Add argument.
12931 * target.c (debug_to_terminal_save_ours): Add argument.
12932 (update_current_target): Update.
12933 * inflow.c (terminal_save_ours): Add 'self' argument.
12934 * inferior.h (terminal_save_ours): Add 'self' argument.
12935
e3594fd1
TT
129362014-02-19 Tom Tromey <tromey@redhat.com>
12937
12938 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12939 (target_terminal_ours): Add argument.
12940 * target.c (debug_to_terminal_ours): Add argument.
12941 (update_current_target): Update.
12942 * remote.c (remote_terminal_ours): Add 'self' argument.
12943 (remote_close): Update.
12944 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12945 * inflow.c (terminal_ours): Add 'self' argument.
12946 * inferior.h (terminal_ours): Add 'self' argument.
12947 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12948
2e1e1a19
TT
129492014-02-19 Pedro Alves <palves@redhat.com>
12950 Tom Tromey <tromey@redhat.com>
12951
12952 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12953 argument.
12954 (target_terminal_ours_for_output): Add argument.
12955 * target.c (debug_to_terminal_ours_for_output): Add argument.
12956 (update_current_target): Update.
12957 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12958 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12959 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12960
d2f640d4
TT
129612014-02-19 Tom Tromey <tromey@redhat.com>
12962
12963 * target.h (struct target_ops) <to_terminal_inferior>: Add
12964 argument.
12965 * target.c (target_terminal_inferior): Add argument.
12966 (update_current_target): Update.
12967 * remote.c (remote_terminal_inferior): Add 'self' argument.
12968 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12969 * inflow.c (terminal_inferior): Add 'self' argument.
12970 * inferior.h (terminal_inferior): Add 'self' argument.
12971 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12972 (go32_terminal_inferior): Add 'self' argument.
12973
c42bf286
TT
129742014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12977 (target_terminal_init): Add argument.
12978 * target.c (debug_to_terminal_init): Add argument.
12979 (update_current_target): Update.
12980 * inflow.c (terminal_init_inferior): Add 'self' argument.
12981 * inferior.h (terminal_init_inferior): Add 'self' argument.
12982 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12983 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12984
c3a5ff89
TT
129852014-02-19 Tom Tromey <tromey@redhat.com>
12986
12987 * target.h (struct target_ops)
12988 <to_can_accel_watchpoint_condition>: Add argument.
12989 (target_can_accel_watchpoint_condition): Add argument.
12990 * target.c (debug_to_can_accel_watchpoint_condition): Add
12991 argument.
12992 (update_current_target): Update.
12993 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12994 'self' argument.
12995
31568a15
TT
129962014-02-19 Tom Tromey <tromey@redhat.com>
12997
12998 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12999 Add argument.
13000 (target_region_ok_for_hw_watchpoint): Add argument.
13001 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13002 (default_region_ok_for_hw_watchpoint): Add argument.
13003 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13004 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13005 argument.
13006 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13007 argument.
13008 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13009 argument.
13010 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13011 'self' argument.
13012 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13013 'self' argument.
13014 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13015 'self' argument.
13016 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13017 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13018 'self' argument.
13019 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13020 Add 'self' argument.
13021
7bb99c53
TT
130222014-02-19 Tom Tromey <tromey@redhat.com>
13023
13024 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13025 argument.
13026 (target_insert_watchpoint): Add argument.
13027 * target.c (debug_to_insert_watchpoint): Add argument.
13028 (update_current_target): Update.
13029 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13030 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13031 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13032 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13033 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13034 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13035 argument.
13036 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13037 (procfs_insert_hw_watchpoint): Add 'self' argument.
13038 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13039 argument.
13040 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13041 argument.
13042 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13043 argument.
13044 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13045 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13046 argument.
13047 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13048 'self' argument.
13049
11b5219a
TT
130502014-02-19 Tom Tromey <tromey@redhat.com>
13051
13052 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13053 argument.
13054 (target_remove_watchpoint): Add argument.
13055 * target.c (debug_to_remove_watchpoint): Add argument.
13056 (update_current_target): Update.
13057 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13058 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13059 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13060 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13061 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13062 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13063 argument.
13064 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13065 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13066 argument.
13067 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13068 argument.
13069 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13070 argument.
13071 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13072 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13073 argument.
13074 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13075 'self' argument.
13076
a64dc96c
TT
130772014-02-19 Tom Tromey <tromey@redhat.com>
13078
13079 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13080 argument.
13081 (target_remove_hw_breakpoint): Add argument.
13082 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13083 (update_current_target): Update.
13084 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13085 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13086 argument.
13087 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13088 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13089 argument.
13090 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13091 'self' argument.
13092
23a26771
TT
130932014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13096 argument.
13097 (target_insert_hw_breakpoint): Add argument.
13098 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13099 (update_current_target): Update.
13100 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13101 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13102 argument.
13103 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13104 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13105 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13106 argument.
13107 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13108 'self' argument.
13109
5461485a
TT
131102014-02-19 Tom Tromey <tromey@redhat.com>
13111
13112 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13113 argument.
13114 (target_can_use_hardware_watchpoint): Add argument.
13115 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13116 (update_current_target): Update.
13117 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13118 argument.
13119 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13120 argument.
13121 * remote.c (remote_check_watch_resources): Add 'self' argument.
13122 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13123 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13124 argument.
13125 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13126 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13127 argument.
13128 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13129 argument.
13130 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13131 argument.
13132 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13133 argument.
13134 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13135 argument.
13136 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13137 argument.
13138 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13139 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13140 argument.
13141 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13142 'self' argument.
13143
f045800c
TT
131442014-02-19 Tom Tromey <tromey@redhat.com>
13145
13146 * target.h (struct target_ops) <to_post_attach>: Add argument.
13147 (target_post_attach): Add argument.
13148 * target.c (debug_to_post_attach): Add argument.
13149 (update_current_target): Update.
13150 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13151 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13152 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13153 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13154 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13155
de90e03d
TT
131562014-02-19 Tom Tromey <tromey@redhat.com>
13157
13158 * windows-nat.c (windows_close): Add 'self' argument.
13159 * tracepoint.c (tfile_close): Add 'self' argument.
13160 * target.h (struct target_ops) <to_close>: Add argument.
13161 * target.c (target_close): Add argument.
13162 (update_current_target): Update.
13163 * remote.c (remote_close): Add 'self' argument.
13164 * remote-sim.c (gdbsim_close): Add 'self' argument.
13165 * remote-mips.c (mips_close): Add 'self' argument.
13166 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13167 * record-full.c (record_full_close): Add 'self' argument.
13168 * record-btrace.c (record_btrace_close): Add 'self' argument.
13169 * monitor.h (monitor_close): Add 'self' argument.
13170 * monitor.c (monitor_close): Add 'self' argument.
13171 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13172 * linux-nat.c (linux_nat_close): Add argument.
13173 * go32-nat.c (go32_close): Add 'self' argument.
13174 * exec.c (exec_close_1): Add 'self' argument.
13175 * ctf.c (ctf_close): Add 'self' argument.
13176 * corelow.c (core_close): Add 'self' argument.
13177 (core_close_cleanup): Update.
13178 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13179 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13180
9dd130a0
TT
131812014-02-19 Tom Tromey <tromey@redhat.com>
13182
13183 * remote.c (remote_load): New function.
13184 (init_remote_ops): Use it.
13185
46917d26
TT
131862014-02-19 Tom Tromey <tromey@redhat.com>
13187
13188 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13189 argument.
13190 * common/linux-btrace.h (linux_supports_btrace): Update.
13191 * remote.c (remote_supports_btrace): Add "self" argument.
13192 * target-delegates.c: Rebuild.
13193 * target.c (target_supports_btrace): Remove.
13194 * target.h (struct target_ops) <to_supports_btrace>: Add
13195 target_ops argument.
13196 (target_supports_btrace): New define.
13197
6b84065d
TT
131982014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * record-full.c (record_full_beneath_to_resume_ops)
13201 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13202 (record_full_beneath_to_wait)
13203 (record_full_beneath_to_store_registers_ops)
13204 (record_full_beneath_to_store_registers)
13205 (record_full_beneath_to_xfer_partial_ops)
13206 (record_full_beneath_to_xfer_partial)
13207 (record_full_beneath_to_insert_breakpoint_ops)
13208 (record_full_beneath_to_insert_breakpoint)
13209 (record_full_beneath_to_remove_breakpoint_ops)
13210 (record_full_beneath_to_remove_breakpoint)
13211 (record_full_beneath_to_stopped_by_watchpoint)
13212 (record_full_beneath_to_stopped_data_address)
13213 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13214 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13215 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13216 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13217 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13218 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13219 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13220 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13221 (record_full_resume, record_full_wait_1)
13222 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13223 (record_full_store_registers, record_full_xfer_partial)
13224 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13225 (record_full_async, record_full_core_xfer_partial): Use target
13226 delegation.
13227 * target-delegates.c: Rebuild.
13228 * target.c (current_xfer_partial): Remove.
13229 (update_current_target): Do not INHERIT or de_fault
13230 to_insert_breakpoint, to_remove_breakpoint,
13231 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13232 to_is_async_p, to_async. Do not set to_xfer_partial field.
13233 (default_xfer_partial): Simplify.
13234 (current_xfer_partial): Remove.
13235 (target_wait, target_resume): Simplify.
13236 (find_default_can_async_p, find_default_is_async_p): Update.
13237 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13238 to_xfer_partial, to_stopped_by_watchpoint,
13239 to_stopped_data_address.
13240 (target_store_registers): Simplify.
13241 (forward_target_remove_breakpoint)
13242 (forward_target_insert_breakpoint): Remove.
13243 (target_remove_breakpoint, target_insert_breakpoint)
13244 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13245 * target.h (struct target_ops) <to_resume, to_wait,
13246 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13247 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13248 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13249 markup.
13250 (forward_target_remove_breakpoint)
13251 (forward_target_insert_breakpoint): Remove.
13252 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13253 directly.
13254 (record_btrace_insert_breakpoint): Delegate directly.
13255
1101cb7b
TT
132562014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 PR build/7701:
13259 * target-delegates.c: New file.
13260 * target.c: Include target-delegates.c.
13261 (init_dummy_target): Call install_dummy_methods.
13262 (complete_target_initialization): Call install_delegators.
13263 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13264 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13265 * make-target-delegates: New file.
13266
8b06beed
TT
132672014-02-19 Tom Tromey <tromey@redhat.com>
13268
13269 * record.c (find_record_target): Use find_target_at.
13270 * target.c (find_target_at): New function.
13271 * target.h (find_target_at): Declare.
13272
6a109b6b
TT
132732014-02-19 Tom Tromey <tromey@redhat.com>
13274
13275 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13276 Add 'ops' argument.
13277 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13278 'ops' argument.
13279 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13280 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13281 'ops' argument.
13282 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13283 argument.
13284 * linux-nat.c (save_sigtrap): Update.
13285 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13286 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13287 (linux_nat_close): Update.
13288 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13289 argument.
13290 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13291 argument.
13292 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13293 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13294 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13295 (tmp_to_async): Add 'ops' argument.
13296 (record_full_stopped_by_watchpoint, record_full_async)
13297 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13298 argument.
13299 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13300 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13301 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13302 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13303 (remote_is_async_p, remote_async): Add 'ops' argument.
13304 (remote_stopped_data_address): Update.
13305 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13306 * target.c (update_current_target)
13307 (find_default_can_async_p, find_default_is_async_p): Update.
13308 (init_dummy_target): Update.
13309 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13310 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13311 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13312 (target_can_async_p, target_is_async_p, target_async)
13313 (target_stopped_by_watchpoint): Update.
13314
e095146b
YQ
133152014-02-19 Yao Qi <yao@codesourcery.com>
13316
13317 PR gdb/16220
13318 * gdbarch.sh: Remove startup_gdbarch.
13319 * gdbarch.c: Regenerated.
13320 * gdbarch.h: Likewise.
13321
bc3c6b36
KB
133222014-02-17 Kevin Buettner <kevinb@redhat.com>
13323
13324 * rl78-tdep.c (rl78_g10_register_name): New function.
13325 (rl78_return_value): Add g10 support.
13326 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13327 g10.
13328
98dc0167 133292014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13330
13331 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13332 (SUBDIR_GUILE_SRCS): Ditto.
13333 (scm-gsmob.o): Ditto.
13334
842c05cd
YQ
133352014-02-17 Yao Qi <yao@codesourcery.com>
13336
13337 * gnu-nat.c (ILL_RPC): Declare defined function.
13338
25c0bd04
YQ
133392014-02-17 Yao Qi <yao@codesourcery.com>
13340
13341 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13342 mach_msg_type_number_t.
13343 (gnu_write_inferior): Likewise.
13344
a9a758e3
YQ
133452014-02-17 Yao Qi <yao@codesourcery.com>
13346
13347 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13348 in format string.
13349 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13350 (inf_validate_procs, inf_signal): Likewise.
13351 (S_exception_raise_request): Likewise.
13352 (do_mach_notify_dead_name): Likewise.
13353 (steal_exc_port): Likewise.
13354 (gnu_read_inferior): Change 'copy_count''s type to
13355 mach_msg_type_number_t.
13356 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13357 format string.
13358
bae8023e
TS
133592014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13360
c82f56d9
TS
13361 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13362 flag. Adjust all users; in particular...
13363 (gnu_wait): ..., don't decrement its value in here...
13364 (gnu_create_inferior): ..., and instead set the flag in here,
13365 around the startup_inferior call, and call that one with
13366 START_INFERIOR_TRAPS_EXPECTED.
13367
3398af6a
TS
13368 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13369 (ILL_RPC): ... new macro.
13370 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13371 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13372 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13373 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13374 functions with ILL_RPC macro.
13375 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13376 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13377 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13378 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13379 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13380 (S_proc_getlogin_reply, S_proc_getsid_reply)
13381 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13382 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13383 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13384 (S_proc_getnports_reply, S_proc_is_important_reply)
13385 (S_proc_get_code_reply): New stub functions, generated with
13386 ILL_RPC macro.
13387
d47642c9
TS
13388 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13389 collected the type check structures.
13390
bae8023e
TS
13391 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13392
8a55ffb0
DE
133932014-02-14 Doug Evans <dje@google.com>
13394
13395 * target.c (target_write_partial): Fix result type.
13396
c2853f3d
JM
133972014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13398
13399 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13400 the proper offsets to access fpregset_t.
13401
ac61d2db
SA
134022014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13403
13404 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13405 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13406 * h8300-tdep.c (setmachinelist): Remove global.
13407 * hppa-tdep.c (hppa_sigtramp): Remove global.
13408 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13409 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13410 * ravenscar-thread.c (update_target_observer): Remove global.
13411 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13412
9d2d0b8b
TT
134132014-02-12 Tom Tromey <tromey@redhat.com>
13414
13415 * common/rsp-low.c: Update comments.
13416 * common/rsp-low.h: Update comments.
13417
a7191e8b
TT
134182014-02-12 Tom Tromey <tromey@redhat.com>
13419
13420 * common/rsp-low.c (convert_ascii_to_int): Remove.
13421 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13422
ff0e980e
TT
134232014-02-12 Tom Tromey <tromey@redhat.com>
13424
13425 * common/rsp-low.h (unhexify): Don't declare.
13426 * common/rsp-low.c (unhexify): Remove.
13427
e9371aff
TT
134282014-02-12 Tom Tromey <tromey@redhat.com>
13429
13430 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13431 * common/rsp-low.c (convert_int_to_ascii): Remove.
13432
971dc0b8
TT
134332014-02-12 Tom Tromey <tromey@redhat.com>
13434
13435 * common/rsp-low.h (hexify): Don't declare.
13436 * common/rsp-low.c (hexify): Remove.
13437
0a822afb
TT
134382014-02-12 Tom Tromey <tromey@redhat.com>
13439
13440 * common/rsp-low.c (hexify): Never take strlen of argument.
13441
9f1b45b0
TT
134422014-02-12 Tom Tromey <tromey@redhat.com>
13443
13444 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13445 * remote.c (extended_remote_run, remote_rcmd)
13446 (remote_download_trace_state_variable, remote_save_trace_data)
13447 (remote_set_trace_notes): Update.
13448 * tracepoint.c (encode_source_string, tfile_write_status)
13449 (tfile_write_uploaded_tsv): Update.
13450
9c3d6531
TT
134512014-02-12 Tom Tromey <tromey@redhat.com>
13452
13453 * tracepoint.c: Include rsp-low.h.
13454 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13455 * remote.c: Include rsp-low.h.
13456 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13457 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13458 (remote_unescape_input): Move to common/rsp-low.c.
13459 * common/rsp-low.h: New file.
13460 * common/rsp-low.c: New file.
13461 * Makefile.in (SFILES): Add common/rsp-low.c.
13462 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13463 (COMMON_OBS): Add rsp-low.o.
13464 (rsp-low.o): New target.
13465
01fd3ea5
TT
134662014-02-12 Tom Tromey <tromey@redhat.com>
13467
13468 * utils.h: Include print-utils.h.
13469 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13470 (int_string, core_addr_to_string, core_addr_to_string_nz)
13471 (hex_string, hex_string_custom): Don't declare.
13472 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13473 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13474 (hex_string_custom, int_string, core_addr_to_string)
13475 (core_addr_to_string_nz, host_address_to_string): Move to
13476 common/print-utils.c.
13477 * common/print-utils.h: New file.
13478 * common/print-utils.c: New file
13479 * Makefile.in (SFILES): Add common/print-utils.c.
13480 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13481 (COMMON_OBS): Add print-utils.o.
13482 (print-utils.o): New target.
13483
9fb50108
TT
134842014-02-12 Tom Tromey <tromey@redhat.com>
13485
13486 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13487
0548b5db
MK
134882014-02-12 Mark Kettenis <kettenis@gnu.org>
13489
13490 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13491
493443a4
MK
134922014-02-12 Mark Kettenis <kettenis@gnu.org>
13493
13494 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13495 if a PT_IO ptrace request returns sucessfully but indicates that 0
13496 bytes were transferred.
13497
706d0883
PA
134982014-02-12 Pedro Alves <palves@redhat.com>
13499 Kevin Buettner <kevinb@redhat.com>
13500
13501 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13502 TYPE_INSTANCE_FLAG_CODE_SPACE.
13503
5caa2f0b
PA
135042014-02-12 Pedro Alves <palves@redhat.com>
13505
13506 * h8300-tdep.c (pseudo_from_raw_register)
13507 (raw_from_pseudo_register): New functions.
13508 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13509 them.
13510
76fd5f74
PA
135112014-02-12 Pedro Alves <palves@redhat.com>
13512
13513 * h8300-tdep.c (h8300_register_sim_regno): New function.
13514 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13515 gdbarch_register_sim_regno hook.
13516
8f008406
SA
135172014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13518
13519 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13520
195abc10
SA
135212014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13522
13523 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13524
93ffa5b9
MK
135252014-02-12 Mark Kettenis <kettenis@gnu.org>
13526
13527 * obsd-tdep.h (obsd_init_abi): New prototype.
13528 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13529 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13530 (obsd_init_abi): New functions.
13531 * i386obsd-tdep.c: Include "obsd-tdep.h".
13532 (i386obsd_init_abi): Call obsd_init_abi.
13533 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13534 (amd64obsd_init_abi): Call obsd_init_abi.
13535 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13536 obsd-tdep.c to gdb_target_obs.
13537
49caec94
JM
135382014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13539
13540 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13541 double float arguments to 16-byte in the argument slots.
13542
e1402065
DE
135432014-02-11 Doug Evans <xdje42@gmail.com>
13544
13545 * configure.ac: Don't crash if pkg-config is not found and guile
13546 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13547 in guile checks.
13548 * configure: Regenerate.
13549
edcc890f
YQ
135502014-02-11 Yao Qi <yao@codesourcery.com>
13551
13552 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13553 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13554 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13555 * gnu-nat.c (gnu_xfer_memory): Likewise.
13556 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13557 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13558 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13559 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13560
9b409511
YQ
135612014-02-11 Yao Qi <yao@codesourcery.com>
13562
13563 * target.h (enum target_xfer_error): Rename to ...
13564 (enum target_xfer_status): ... it. New. All users updated.
13565 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13566 New.
13567 (TARGET_XFER_STATUS_ERROR_P): New macro.
13568 (target_xfer_error_to_string): Remove declaration.
13569 (target_xfer_status_to_string): Declare.
13570 (target_xfer_partial_ftype): Adjust it.
13571 (struct target_ops) <to_xfer_partial>: Return
13572 target_xfer_status. Add argument xfered_len. Update
13573 comments.
13574 * target.c (target_xfer_error_to_string): Rename to ...
13575 (target_xfer_status_to_string): ... it. New. All callers
13576 updated.
13577 (target_read_live_memory): Likewise. Call target_xfer_partial
13578 instead of target_read.
13579 (memory_xfer_live_readonly_partial): Return
13580 target_xfer_status. Add argument xfered_len.
13581 (raw_memory_xfer_partial): Likewise.
13582 (memory_xfer_partial_1): Likewise.
13583 (memory_xfer_partial): Likewise.
13584 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13585 properly. Update debug message.
13586 (default_xfer_partial, current_xfer_partial): Likewise.
13587 (target_write_partial): Likewise.
13588 (target_read_partial): Likewise. All callers updated.
13589 (read_whatever_is_readable): Likewise.
13590 (target_write_with_progress): Likewise.
13591 (target_read_alloc_1): Likewise.
13592
13593 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13594 * auxv.c (procfs_xfer_auxv): Likewise.
13595 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13596 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13597 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13598 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13599 * corefile.c (read_memory): Adjust.
13600 * corelow.c (core_xfer_partial): Likewise.
13601 * ctf.c (ctf_xfer_partial): Likewise.
13602 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13603 updated.
13604 (darwin_xfer_partial): Likewise.
13605 * exec.c (section_table_xfer_memory_partial): Likewise. All
13606 callers updated.
13607 (exec_xfer_partial): Likewise.
13608 * exec.h (section_table_xfer_memory_partial): Update
13609 declaration.
13610 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13611 negative.
13612 (gnu_xfer_partial): Likewise.
13613 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13614 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13615 (ia64_hpux_xfer_solib_got): Likewise.
13616 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13617 type of 'partial_len' to ULONGEST.
13618 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13619 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13620 (linux_nat_xfer_partial): Likewise.
13621 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13622 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13623 * monitor.c (monitor_xfer_memory): Likewise.
13624 (monitor_xfer_partial): Likewise.
13625 * procfs.c (procfs_xfer_partial): Likewise.
13626 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13627 * record-full.c (record_full_xfer_partial): Likewise.
13628 (record_full_core_xfer_partial): Likewise.
13629 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13630 (gdbsim_xfer_partial): Likewise.
13631 * remote.c (remote_write_bytes_aux): Likewise. All callers
13632 updated.
13633 (remote_write_bytes, remote_read_bytes): Likewise. All
13634 callers updated.
13635 (remote_flash_erase): Likewise. All callers updated.
13636 (remote_write_qxfer): Likewise. All callers updated.
13637 (remote_read_qxfer): Likewise. All callers updated.
13638 (remote_xfer_partial): Likewise.
13639 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13640 (rs6000_xfer_shared_libraries): Likewise.
13641 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13642 (sol_thread_xfer_partial): Likewise.
13643 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13644 (sparc_xfer_partial): Likewise.
13645 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13646 updated.
13647 (spu_xfer_partial): Likewise.
13648 * spu-multiarch.c (spu_xfer_partial): Likewise.
13649 * tracepoint.c (tfile_xfer_partial): Likewise.
13650 * windows-nat.c (windows_xfer_memory): Likewise.
13651 (windows_xfer_shared_libraries): Likewise.
13652 (windows_xfer_partial): Likewise.
13653 * valprint.c: Replace 'target_xfer_error' with
13654 'target_xfer_status' in comments.
13655
a8e63083
JB
136562014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13657
13658 Checked in by Joel Brobecker <brobecker@adacore.com>.
13659 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13660
e86b67d3
JB
136612014-02-11 Joel Brobecker <brobecker@adacore.com>
13662
13663 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13664 function parameters.
13665
4b7d1f7f
WN
136662014-02-10 Will Newton <will.newton@linaro.org>
13667
13668 * elfread.c (elf_rel_plt_read): Look for a .got section if
13669 looking up .got.plt fails.
13670 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13671 on address passed to elf_gnu_ifunc_record_cache.
13672 (elf_gnu_ifunc_resolve_addr): Likewise.
13673 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13674
961842b2
JM
136752014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13676
13677 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13678 (X_RETTURN): New macro.
13679 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13680
13681 * sparc64-tdep.c (sparc64_init_abi): Hook
13682 sparc_in_function_epilogue_p.
13683
3f03e7b1
GB
136842014-02-10 Gary Benson <gbenson@redhat.com>
13685
13686 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13687 Rename name_matcher to symbol_matcher.
13688
96f861ef
GB
136892014-02-10 Gary Benson <gbenson@redhat.com>
13690
13691 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13692 Use expand_symtabs_file_matcher_ftype and
13693 expand_symtabs_symbol_matcher_ftype.
13694
ee01b665
JB
136952014-02-10 Joel Brobecker <brobecker@adacore.com>
13696
13697 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13698 (struct ada_symbol_cache): New.
13699 (ada_free_symbol_cache): Forward declare.
13700 (struct ada_pspace_data): New.
13701 (ada_pspace_data_handle): New static global.
13702 (get_ada_pspace_data, ada_pspace_data_cleanup)
13703 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13704 (cache_space, cache): Delete, now folded inside struct
13705 ada_pspace_data.
13706 (ada_get_symbol_cache): New function.
13707 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13708 implementation.
13709 (_initialize_ada_language): Remove initialization of cache_space.
13710 Move call to observer_attach_inferior_exit up, grouping it
13711 with the other observer registrations inside this function.
13712 Rename command to be more general. Add call to
13713 register_program_space_data_with_cleanup.
13714
143adbbf
JB
137152014-02-10 Joel Brobecker <brobecker@adacore.com>
13716
13717 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13718 ada_new_objfile_observer.
13719 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13720 (_initialize_tasks): Update uses of ada_new_objfile_observer
13721 and ada_tasks_normal_stop_observer.
13722
aa4fb036
JB
137232014-02-10 Joel Brobecker <brobecker@adacore.com>
13724
13725 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13726 returned by the 'Length attribute to integer.
13727
9dee8cc6
JB
137282014-02-10 Joel Brobecker <brobecker@adacore.com>
13729
13730 * ada-lang.c (_initialize_ada_language): Initialize
13731 cache_space obstack.
13732
3d9434b5
JB
137332014-02-10 Joel Brobecker <brobecker@adacore.com>
13734
13735 * ada-lang.c (HASH_SIZE): New macro.
13736 (struct cache_entry): New type.
13737 (cache_space, cache): New static globals.
13738 (ada_clear_symbol_cache, find_entry): New functions.
13739 (lookup_cached_symbol, cache_symbol): Implement.
13740 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13741 (_initialize_ada_language): Attach ada_new_objfile_observer
13742 and ada_free_objfile_observer.
13743
f0c5f9b2
JB
137442014-02-10 Joel Brobecker <brobecker@adacore.com>
13745
13746 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13747 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13748 struct block * parameter.
13749 (ada_lookup_symbol_list_worker): Constify local variable "block".
13750 Remove cast which is no longer necessary.
13751
ed3ef339
DE
137522014-02-10 Doug Evans <xdje42@gmail.com>
13753
13754 Add Guile as an extension language.
13755 * NEWS: Mention Guile scripting.
13756 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13757 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13758 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13759 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13760 (CLIBS): Add GUILE_LIBS.
13761 (install-guile): New rule.
13762 (guile.o): New rule.
13763 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13764 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13765 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13766 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13767 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13768 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13769 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13770 * configure.ac: New option --with-guile.
13771 * configure: Regenerate.
13772 * config.in: Regenerate.
13773 * auto-load.c: Remove #include "python/python.h". Add #include
13774 "gdb/section-scripts.h".
13775 (source_section_scripts): Handle Guile scripts.
13776 (_initialize_auto_load): Add name of Guile objfile script to
13777 scripts-directory help text.
13778 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13779 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13780 (struct breakpoint): New member scm_bp_object.
13781 * defs.h (enum command_control_type): New value guile_control.
13782 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13783 "extension.h".
13784 (show_user): Update comment.
13785 (_initialize_cli_cmds): Update help text for "show user". Update help
13786 text for max-user-call-depth.
13787 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13788 "extension.h".
13789 (multi_line_command_p): Add guile_control.
13790 (print_command_lines): Handle guile_control.
13791 (execute_control_command, recurse_read_control_structure): Ditto.
13792 (process_next_line): Recognize "guile" commands.
13793 * disasm.c (gdb_disassemble_info): Make non-static.
13794 * disasm.h: #include "dis-asm.h".
13795 (struct gdbarch): Add forward decl.
13796 (gdb_disassemble_info): Declare.
13797 * extension.c: #include "guile/guile.h".
13798 (extension_languages): Add guile.
13799 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13800 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13801 * gdbtypes.c (get_unsigned_type_max): New function.
13802 (get_signed_type_minmax): New function.
13803 * gdbtypes.h (get_unsigned_type_max): Declare.
13804 (get_signed_type_minmax): Declare.
13805 * guile/README: New file.
13806 * guile/guile-internal.h: New file.
13807 * guile/guile.c: New file.
13808 * guile/guile.h: New file.
13809 * guile/scm-arch.c: New file.
13810 * guile/scm-auto-load.c: New file.
13811 * guile/scm-block.c: New file.
13812 * guile/scm-breakpoint.c: New file.
13813 * guile/scm-disasm.c: New file.
13814 * guile/scm-exception.c: New file.
13815 * guile/scm-frame.c: New file.
13816 * guile/scm-gsmob.c: New file.
13817 * guile/scm-iterator.c: New file.
13818 * guile/scm-lazy-string.c: New file.
13819 * guile/scm-math.c: New file.
13820 * guile/scm-objfile.c: New file.
13821 * guile/scm-ports.c: New file.
13822 * guile/scm-pretty-print.c: New file.
13823 * guile/scm-safe-call.c: New file.
13824 * guile/scm-string.c: New file.
13825 * guile/scm-symbol.c: New file.
13826 * guile/scm-symtab.c: New file.
13827 * guile/scm-type.c: New file.
13828 * guile/scm-utils.c: New file.
13829 * guile/scm-value.c: New file.
13830 * guile/lib/gdb.scm: New file.
13831 * guile/lib/gdb/boot.scm: New file.
13832 * guile/lib/gdb/experimental.scm: New file.
13833 * guile/lib/gdb/init.scm: New file.
13834 * guile/lib/gdb/iterator.scm: New file.
13835 * guile/lib/gdb/printing.scm: New file.
13836 * guile/lib/gdb/types.scm: New file.
13837 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13838 (VPATH): Add $(GUILE_SRCDIR).
13839 (GUILE_DIR): New variable.
13840 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13841 (all): Add stamp-guile dependency.
13842 (stamp-guile): New rule.
13843 (clean-guile, install-guile, uninstall-guile): New rules.
13844 (install-only): Add install-guile dependency.
13845 (uninstall): Add uninstall-guile dependency.
13846 (clean): Add clean-guile dependency.
13847
ac020ec5
DE
138482014-02-09 Doug Evans <xdje42@gmail.com>
13849
13850 Revert this patch (which I approved, mea culpa).
13851
13852 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13853
13854 * Makefile.in (all-lib): Remove.
13855 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13856
2a081c59
JK
138572014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13858
13859 Fix Python stack corruption.
13860 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13861 gdb_py_longest.
13862
0a6bd22d
MK
138632014-02-08 Mark Kettenis <kettenis@gnu.org>
13864
13865 * Makefile.in (all-lib): Remove.
13866 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13867
1a860409
DE
138682014-02-07 Doug Evans <dje@google.com>
13869
13870 * extension-priv.h (extension_language_script_ops): Add comment.
13871 (extension_language_ops): Add comment.
caf5a491 13872 (active_ext_lang_state): Fix typo in comment.
1a860409 13873
d137e6dc
PA
138742014-02-07 Pedro Alves <palves@redhat.com>
13875
0dcb32c3 13876 PR breakpoints/16292
d137e6dc
PA
13877 * infrun.c (handle_signal_stop) <signal arrives while stepping
13878 over a breakpoint>: Switch back to the stepping thread.
13879
ce6d0892
YQ
138802014-02-07 Yao Qi <yao@codesourcery.com>
13881
13882 * target.c (target_xfer_partial): Return zero if LEN is zero.
13883
2ed4b548
YQ
138842014-02-07 Yao Qi <yao@codesourcery.com>
13885
13886 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13887 (ld_so_xfer_auxv): Likewise.
13888 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13889 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13890 * corelow.c (core_xfer_partial): Likewise.
13891 * ctf.c (ctf_xfer_partial): Likewise.
13892 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13893 (darwin_xfer_partial): Likewise.
13894 * exec.c (exec_xfer_partial): Likewise.
13895 * gnu-nat.c (gnu_xfer_partial): Likewise.
13896 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13897 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13898 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13899 * linux-nat.c (linux_xfer_siginfo): Likewise.
13900 (linux_proc_xfer_spu): Likewise.
13901 * procfs.c (procfs_xfer_partial): Likewise.
13902 * record-full.c (record_full_xfer_partial): Likewise.
13903 (record_full_core_xfer_partial): Likewise.
13904 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13905 * remote.c (remote_write_qxfer): Likewise.
13906 (remote_write_qxfer, remote_read_qxfer): Likewise.
13907 (remote_xfer_partial): Likewise.
13908 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13909 (rs6000_xfer_shared_libraries): Likewise.
13910 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13911 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13912 (spu_xfer_partial): Likewise.
13913 * target.c (memory_xfer_partial_1): Likewise.
13914 * tracepoint.c (tfile_xfer_partial): Likewise.
13915 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13916 (windows_xfer_partial): Likewise.
13917
c09f20e4
YQ
139182014-02-07 Yao Qi <yao@codesourcery.com>
13919
13920 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13921 comments.
13922 (core_xfer_shared_libraries_aix): Likewise.
13923 * gdbarch.c, gdbarch.h: Regenerated.
13924 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13925 ULONGEST. Change 'len_avail' type to ULONGEST.
13926 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13927 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13928 declaration.
13929 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13930
8635b3bf
YQ
139312014-02-07 Yao Qi <yao@codesourcery.com>
13932
13933 * corefile.c (memory_error): Get 'exception' from ERR and pass
13934 'exception' to throw_error.
13935
6dddc817
DE
139362014-02-06 Doug Evans <xdje42@gmail.com>
13937
13938 * configure.ac (libpython checking): Remove all but python.o from
13939 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13940 * configure: Regenerate.
13941
13942 * Makefile.in (SFILES): Add extension.c.
13943 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13944 (COMMON_OBS): Add extension.o.
13945 * extension.h: New file.
13946 * extension-priv.h: New file.
13947 * extension.c: New file.
13948
13949 * python/python-internal.h: #include "extension.h".
13950 (gdbpy_auto_load_enabled): Declare.
13951 (gdbpy_apply_val_pretty_printer): Declare.
13952 (gdbpy_apply_frame_filter): Declare.
13953 (gdbpy_preserve_values): Declare.
13954 (gdbpy_breakpoint_cond_says_stop): Declare.
13955 (gdbpy_breakpoint_has_cond): Declare.
13956 (void source_python_script_for_objfile): Delete.
13957 * python/python.c: #include "extension-priv.h".
13958 Delete inclusion of "observer.h".
13959 (extension_language_python): Moved here and renamed from
13960 script_language_python in py-auto-load.c.
13961 Redefined to be of type extension_language_defn.
13962 (python_extension_script_ops): New global.
13963 (python_extension_ops): New global.
13964 (struct python_env): New member previous_active.
13965 (restore_python_env): Call restore_active_ext_lang.
13966 (ensure_python_env): Call set_active_ext_lang.
13967 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13968 New arg extlang.
13969 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13970 New arg extlang.
13971 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13972 New arg extlang.
13973 (gdbpy_eval_from_control_command): Renamed from
13974 eval_python_from_control_command, made static. New arg extlang.
13975 (gdbpy_source_script) Renamed from source_python_script, made static.
13976 New arg extlang.
13977 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13978 result to int. New arg extlang.
13979 (gdbpy_source_objfile_script): Renamed from
13980 source_python_script_for_objfile, made static. New arg extlang.
13981 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13982 static. New args extlang, extlang_printers. Change result type to
13983 "void".
13984 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13985 static. New arg extlang. Rename arg printers to extlang_printers
13986 and change type to ext_lang_type_printers *.
13987 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13988 static. Replace argument arg with extlang, extlang_printers.
13989 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13990 (!HAVE_PYTHON, source_python_script): Delete.
13991 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13992 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13993 (!HAVE_PYTHON, start_type_printers): Delete.
13994 (!HAVE_PYTHON, apply_type_printers): Delete.
13995 (!HAVE_PYTHON, free_type_printers): Delete.
13996 (_initialize_python): Delete call to observer_attach_before_prompt.
13997 (finalize_python): Set/restore active extension language.
13998 (gdbpy_finish_initialization) Renamed from
13999 finish_python_initialization, made static. New arg extlang.
14000 (gdbpy_initialized): New function.
14001 * python/python.h: #include "extension.h". Delete #include
14002 "value.h", "mi/mi-cmds.h".
14003 (extension_language_python): Declare.
14004 (GDBPY_AUTO_FILE_NAME): Delete.
14005 (enum py_bt_status): Moved to extension.h and renamed to
14006 ext_lang_bt_status.
14007 (enum frame_filter_flags): Moved to extension.h.
14008 (enum py_frame_args): Moved to extension.h and renamed to
14009 ext_lang_frame_args.
14010 (finish_python_initialization): Delete.
14011 (eval_python_from_control_command): Delete.
14012 (source_python_script): Delete.
14013 (apply_val_pretty_printer): Delete.
14014 (apply_frame_filter): Delete.
14015 (preserve_python_values): Delete.
14016 (gdbpy_script_language_defn): Delete.
14017 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14018 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14019
14020 * auto-load.c: #include "extension.h".
14021 (GDB_AUTO_FILE_NAME): Delete.
14022 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14023 (script_language_gdb): Delete, moved to extension.c and renamed to
14024 extension_language_gdb.
14025 (source_gdb_script_for_objfile): Delete.
14026 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14027 (loaded_script): Change type of language member to
14028 struct extension_language_defn *.
14029 (init_loaded_scripts_info): Initialize
14030 unsupported_script_warning_printed.
14031 (maybe_add_script): Make static. Change type of language arg to
14032 struct extension_language_defn *.
14033 (clear_section_scripts): Reset unsupported_script_warning_printed.
14034 (auto_load_objfile_script_1): Rewrite to use extension language API.
14035 (auto_load_objfile_script): Make public. Remove support-compiled-in
14036 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14037 (source_section_scripts): Rewrite to use extension language API.
14038 (load_auto_scripts_for_objfile): Rewrite to use
14039 auto_load_scripts_for_objfile.
14040 (collect_matching_scripts_data): Change type of language member to
14041 struct extension_language_defn *.
14042 (auto_load_info_scripts): Change type of language arg to
14043 struct extension_language_defn *.
14044 (unsupported_script_warning_print): New function.
14045 (script_not_found_warning_print): Make static.
14046 (_initialize_auto_load): Rewrite construction of scripts-directory
14047 help.
14048 * auto-load.h (struct objfile): Add forward decl.
14049 (struct script_language): Delete.
14050 (struct auto_load_pspace_info): Add forward decl.
14051 (struct extension_language_defn): Add forward decl.
14052 (maybe_add_script): Delete.
14053 (auto_load_objfile_script): Declare.
14054 (script_not_found_warning_print): Delete.
14055 (auto_load_info_scripts): Update prototype.
14056 (auto_load_gdb_scripts_enabled): Declare.
14057 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14058 auto_load_python_scripts_enabled and made public.
14059 (script_language_python): Delete, moved to python.c.
14060 (gdbpy_script_language_defn): Delete.
14061 (info_auto_load_python_scripts): Update to use
14062 extension_language_python.
14063
14064 * breakpoint.c (condition_command): Replace call to
14065 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14066 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14067 with call to breakpoint_ext_lang_cond_says_stop.
14068 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14069 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14070 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14071 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14072 New arg slang.
14073 (local_setattro): Print name of extension language with existing
14074 stop condition.
14075
14076 * valprint.c (val_print, value_print): Update to call
14077 apply_ext_lang_val_pretty_printer.
14078 * cp-valprint.c (cp_print_value): Update call to
14079 apply_ext_lang_val_pretty_printer.
14080 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14081 (gdbpy_apply_val_pretty_printer): Renamed from
14082 apply_val_pretty_printer. New arg extlang.
14083 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14084
14085 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14086 extension language API.
14087 * cli/cli-script.c (execute_control_command): Update to call
14088 eval_ext_lang_from_control_command.
14089
14090 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14091 enum ext_lang_bt_status values. Update call to
14092 apply_ext_lang_frame_filter.
14093 (mi_cmd_stack_list_locals): Ditto.
14094 (mi_cmd_stack_list_args): Ditto.
14095 (mi_cmd_stack_list_variables): Ditto.
14096 * mi/mi-main.c: Delete #include "python/python-internal.h".
14097 Add #include "extension.h".
14098 (mi_cmd_list_features): Replace reference to python internal variable
14099 gdb_python_initialized with call to ext_lang_initialized_p.
14100
14101 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14102 Update to use enum ext_lang_frame_args. Update to call
14103 apply_ext_lang_frame_filter.
14104 * python/py-framefilter.c (extract_sym): Update to use enum
14105 ext_lang_bt_status.
14106 (extract_value, py_print_type, py_print_value): Ditto.
14107 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14108 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14109 (py_print_frame): Ditto.
14110 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14111 New arg extlang. Update to use enum ext_lang_bt_status.
14112
14113 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14114 finish_python_initialization. Replace with call to
14115 finish_ext_lang_initialization.
14116
14117 * typeprint.c (do_free_global_table): Update to call
14118 free_ext_lang_type_printers.
14119 (create_global_typedef_table): Update to call
14120 start_ext_lang_type_printers.
14121 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14122 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14123 (type_print_options): Change type of global_printers from "void *"
14124 to "struct ext_lang_type_printers *".
14125
14126 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14127 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14128 (gdbpy_preserve_values): Renamed from preserve_python_values.
14129 New arg extlang.
14130 (!HAVE_PYTHON, preserve_python_values): Delete.
14131
14132 * utils.c (quit_flag): Delete, moved to extension.c.
14133 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14134 extension.c.
14135
14136 * eval.c: Delete #include "python/python.h".
14137 * main.c: Delete #include "python/python.h".
14138
14139 * defs.h: Update comment.
14140
6af79985
JB
141412014-02-06 Joel Brobecker <brobecker@adacore.com>
14142
14143 GDB 7.7 released.
14144
12c5175d
MK
141452014-02-05 Mark Kettenis <kettenis@gnu.org>
14146
14147 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14148 defined.
14149
8dc5b319
YQ
141502014-02-05 Yao Qi <yao@codesourcery.com>
14151
14152 * remote.c (remote_pass_signals): Remove local 'buf' and use
14153 rs->buf.
14154 (remote_program_signals): Likewise.
14155
de7b2893
YQ
141562014-02-05 Yao Qi <yao@codesourcery.com>
14157
14158 * ctf.c: Include "inferior.h" and "gdbthread.h".
14159 (CTF_PID): A new macro.
14160 (ctf_open): Call inferior_appeared and add_thread_silent.
14161 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14162 (ctf_thread_alive): New function.
14163 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14164
66d032ac
YQ
141652014-02-05 Yao Qi <yao@codesourcery.com>
14166
14167 Revert this patch:
14168
14169 2013-05-24 Yao Qi <yao@codesourcery.com>
14170
14171 * tracepoint.c (TFILE_PID): Remove.
14172 (tfile_open): Don't add thread and inferior.
14173 (tfile_close): Don't set 'inferior_ptid'. Don't call
14174 exit_inferior_silent.
14175 (tfile_thread_alive): Remove.
14176 (init_tfile_ops): Don't set field 'to_thread_alive' of
14177 tfile_ops.
14178
f4ccffad
CE
141792014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14180
14181 * remote.c (remote_start_remote): Call remote_check_symbols even
14182 if only symbol-file (not file) has been given.
14183
591a12a1
UW
141842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14185
14186 * gdbarch.sh (skip_entrypoint): New callback.
14187 * gdbarch.c, gdbarch.h: Regenerate.
14188 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14189 * infrun.c (fill_in_stop_func): Likewise.
14190 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14191 (ppc_elfv2_elf_make_msymbol_special): New function.
14192 (ppc_elfv2_skip_entrypoint): Likewise.
14193 (ppc_linux_init_abi): Install them for ELFv2.
14194
cc0e89c5
UW
141952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14196
14197 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14198 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14199 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14200 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14201 structures returned in GPRs.
14202
52f548e4
UW
142032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14204
14205 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14206 offset to the stack parameter list for the ELFv2 ABI.
14207
d4094b6a
UW
142082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14209
14210 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14211 set_gdbarch_convert_from_func_ptr_addr and
14212 set_gdbarch_elf_make_msymbol_special for ELFv1.
14213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14214 function descriptors on ELFv1.
14215 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14216 set up r12 at function entry.
14217
cd453cd0
UW
142182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14219
14220 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14221 (struct gdbarch_tdep): New member elf_abi.
14222
14223 * rs6000-tdep.c: Include "elf/ppc64.h".
14224 (rs6000_gdbarch_init): Detect ELF ABI version.
14225
0ff3e01f
UW
142262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14227
14228 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14229 within a register pair holding a DFP 128-bit value on little-endian.
14230 (ppc64_sysv_abi_return_value_base): Likewise.
14231 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14232 (dfp_pseudo_register_write): Likewise.
14233
5b757e5d
UW
142342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14235
14236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14237 offset on little-endian when passing _Decimal32.
14238 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14239
084ee545
UW
142402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14241
14242 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14243 of the overlapped FP register within the VSX register on little-
14244 endian platforms.
14245 (efpr_pseudo_register_write): Likewise.
14246
d63167af
UW
142472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14248
14249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14250 offset on little-endian when passing small structures.
14251
e765b44c
UW
142522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14253
14254 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14255 (struct ppc64_sysv_argpos): New data structure.
14256 (ppc64_sysv_abi_push_float): Remove.
14257 (ppc64_sysv_abi_push_val): New function.
14258 (ppc64_sysv_abi_push_integer): Likewise.
14259 (ppc64_sysv_abi_push_freg): Likewise.
14260 (ppc64_sysv_abi_push_vreg): Likewise.
14261 (ppc64_sysv_abi_push_param): Likewise.
14262 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14263 (ppc64_sysv_abi_return_value_base): New function.
14264 (ppc64_sysv_abi_return_value): Refactor to use it.
14265
36c24d95
UW
142662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14267
14268 * NEWS: Document new target powerpc64le-*-linux*.
14269
26fd9228
MK
142702014-02-04 Mark Kettenis <kettenis@gnu.org>
14271
14272 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14273 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14274 core dumps.
14275 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14276 register set used in ELF core dumps. Add floating-point register set.
14277
c5bb7362
KB
142782014-02-03 Kevin Buettner <kevinb@redhat.com>
14279
74228e77 14280 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14281 dwarf2_to_gdb[] table using symbolic constants. Adjust
14282 penultimate entry from number representing the PC register
14283 to symbolic constant representing the MDR register. Add
14284 constant for the PC register to the end of the table.
14285
af09351e
MK
142862014-02-03 Mark Kettenis <kettenis@gnu.org>
14287
14288 * bsd-kvm.c: Include <sys/param.h>
14289
8507e05d
MK
142902014-02-03 Mark Kettenis <kettenis@gnu.org>
14291
14292 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14293
ae56bfb8
JB
142942014-01-31 Joel Brobecker <brobecker@adacore.com>
14295
14296 * ada-lang.h (clear_ada_sym_cache): Delete.
14297
718ee4dc
UW
142982014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14299
14300 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14301
401e27fd
JM
143022014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14303
14304 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14305 the sigreturn register save area only if the syscall is
14306 sigreturn.
14307
a7c88acd
JB
143082014-01-29 Joel Brobecker <brobecker@adacore.com>
14309
14310 * valops.c (value_slice): Minor reformatting.
14311
fa0079ea
UW
143122014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14313
14314 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14315
c6044dd1
JB
143162014-01-28 Joel Brobecker <brobecker@adacore.com>
14317
14318 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14319 New static globals.
14320 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14321 (ada_ignore_descriptive_types_p): New static global.
14322 (find_parallel_type_by_descriptive_type): Return immediately
14323 if ada_ignore_descriptive_types_p is set.
14324 (_initialize_ada_language): Register new commands "maintenance
14325 set ada", "maintenance show ada", "maintenance set ada
14326 ignore-descriptive-types" and "maintenance show ada
14327 ignore-descriptive-types".
14328 * NEWS: Add entry for new "maint ada set/show
14329 ignore-descriptive-types" commands.
14330
568e808b
MM
143312014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14332
14333 * record-btrace.c (record_btrace_close): Call btrace_teardown
14334 for all threads.
14335
467d141b
JB
143362014-01-27 Joel Brobecker <brobecker@adacore.com>
14337
14338 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14339 "ui-out.h".
14340
fb151210
JB
143412014-01-27 Joel Brobecker <brobecker@adacore.com>
14342
14343 * ada-typeprint (type_is_full_subrange_of_target_type):
14344 New function.
14345 (print_range): Add parameter bounds_prefered_p. If not set,
14346 try printing range types using the name of their base type.
14347 (print_range_type): Add parameter bounds_prefered_p.
14348 Use it in call to print_range.
14349 (print_array_type, ada_print_type): Update calls to print_range
14350 and print_range_type.
14351
aba02109
JB
143522014-01-27 Joel Brobecker <brobecker@adacore.com>
14353
14354 * ada-typeprint.c (print_array_type, print_choices, print_range)
14355 (print_range_bound, print_dynamic_range_bound, print_range_type):
14356 Remove declaration.
14357
e62e21fd
JB
143582014-01-27 Joel Brobecker <brobecker@adacore.com>
14359
14360 * ada-typeprint.c (print_range): Add missing empty line
14361 after local declaration.
14362
859cf5d1
JB
143632014-01-27 Joel Brobecker <brobecker@adacore.com>
14364
14365 * ada-valprint.c (print_optional_low_bound): Get index_type's
14366 target type for as long as it is a TYPE_CODE_RANGE.
14367
25790f6f
JB
143682014-01-27 Joel Brobecker <brobecker@adacore.com>
14369
14370 * procfs.c (procfs_make_note_section): Remove assertion and
14371 associated comment.
14372
6b6aa828
YQ
143732014-01-24 Yao Qi <yao@codesourcery.com>
14374
14375 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14376 * corelow.c (get_core_siginfo): Likewise.
14377
5d6df423
YQ
143782014-01-24 Yao Qi <yao@codesourcery.com>
14379
14380 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14381 ULONGEST. Don't check 'len' is negative.
14382 (remote_write_bytes): Change type of 'len' to ULONGEST.
14383
83b645b8
TT
143842014-01-23 Tom Tromey <tromey@redhat.com>
14385
14386 PR python/16485:
14387 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14388 Handle exception from frame.block.
14389 (FrameVars.fetch_frame_locals): Likewise.
14390
0740f8d8
TT
143912014-01-23 Tom Tromey <tromey@redhat.com>
14392
14393 PR python/16487:
14394 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14395 on a NULL pointer. Move "goto error" to correct place.
14396
21909fa1
TT
143972014-01-23 Tom Tromey <tromey@redhat.com>
14398
14399 PR python/16491:
14400 * python/py-framefilter.c (apply_frame_filter): Call
14401 ensure_python_env after computing gdbarch.
14402
17fde6d0
YQ
144032014-01-23 Yao Qi <yao@codesourcery.com>
14404
14405 * target.c (raw_memory_xfer_partial): Change argument type
14406 from void * to gdb_byte *.
14407 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14408
87ce2a04
DE
144092014-01-22 Doug Evans <dje@google.com>
14410
14411 New gdbserver option --debug-format=timestamp.
14412 * NEWS: Mention it.
14413
237b092b
AA
144142014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14415
14416 * syscalls/s390x-linux.xml: New file.
14417 * syscalls/s390-linux.xml: New file.
14418 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14419 (XML_SYSCALL_FILENAME_S390X): Likewise.
14420 (op_svc): New enum value for SVC opcode.
14421 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14422 (s390_linux_get_syscall_number): New function.
14423 (s390_gdbarch_init): Register '*get_syscall_number' and the
14424 syscall xml file name.
14425 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14426 "s390-linux.xml" and "s390x-linux.xml".
14427 * NEWS: Announce new feature.
14428
54bff650
BS
144292014-01-22 Baruch Siach <baruch@tkos.co.il>
14430
14431 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14432
14e361d7
PA
144332014-01-22 Pedro Alves <palves@redhat.com>
14434
14435 * xtensa-config.c: Include defs.h.
14436
46bbb3ed
JB
144372014-01-22 Joel Brobecker <brobecker@adacore.com>
14438
14439 * common/common-utils.h: Add "ARI:" comment beside __func__
14440 reference.
14441
3a80edfc
JB
144422014-01-22 Joel Brobecker <brobecker@adacore.com>
14443
14444 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14445 documentation a bit.
14446
4869db5e
RM
144472014-01-21 Roland McGrath <mcgrathr@google.com>
14448
14449 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14450 * configure: Regenerate.
14451 * aclocal.m4: Regenerate.
14452 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14453 New substituted variables.
14454 (install-strip): New target.
14455 (INSTALL_SCRIPT): New substituted variable.
14456 (FLAGS_TO_PASS): Add it.
14457 (install-only): Use $(INSTALL_SCRIPT) rather than
14458 $(INSTALL_PROGRAM) for gcore.
14459
9ea4267d
TT
144602014-01-20 Tom Tromey <tromey@redhat.com>
14461
14462 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14463 together.
14464
1f2bdf09
TT
144652014-01-20 Tom Tromey <tromey@redhat.com>
14466
14467 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14468 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14469 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14470 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14471 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14472 (struct cmd_list_element) <flags>: Remove.
14473 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14474 doc_allocated>: New fields.
14475 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14476 bitfields.
14477 * maint.c (maintenance_do_deprecate): Update.
14478 * top.c (execute_command): Update.
14479
e671835b
BS
144802014-01-20 Baruch Siach <baruch@tkos.co.il>
14481
14482 * xtensa-linux-nat.c: Include asm/ptrace.h.
14483
50367cd2
IB
144842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14485
14486 * Makefile.in (SFILES): Add d-support.c.
14487 (COMMON_OBS): Add d-support.o.
14488 * d-lang.h (d_parse_symbol): Add comment, now defined in
14489 d-support.c.
14490 * d-lang.c (parse_call_convention)
14491 (parse_attributes, parse_function_types)
14492 (parse_function_args, parse_type, parse_identifier)
14493 (call_convention_p, d_parse_symbol): Move functions to ...
14494 * d-support.c: ... New file.
14495
ec9f644a
IB
144962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14497
14498 * d-lang.h (d_parse_symbol): Add declaration.
14499 * d-lang.c (extract_identifiers)
14500 (extract_type_info): Remove functions.
14501 (parse_call_convention, parse_attributes)
14502 (parse_function_types, parse_function_args)
14503 (parse_type, parse_identifier, call_convention_p)
14504 (d_parse_symbol): New functions.
14505 (d_demangle): Use d_parse_symbol to demangle D symbols.
14506
94b1b47e
IB
145072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14508
14509 * d-lang.h (struct builtin_d_type): New data type.
14510 (builtin_d_type): Add declaration.
14511 * d-lang.c (d_language_arch_info, build_d_types)
14512 (builtin_d_type): New functions.
14513 (enum d_primitive_types): New data type.
14514 (d_language_defn): Change c_language_arch_info to
14515 d_language_arch_info.
14516 (d_type_data): New static variable.
14517 (_initialize_d_language): Initialize d_type_data.
14518
63778547
IB
145192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14520
14521 * d-lang.h (d_main_name): Add declaration.
14522 * d-lang.c (d_main_name): New function.
14523 * symtab.c (find_main_name): Add call to d_main_name.
14524
3271ba66
IB
145252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14526
14527 * d-lang.c (d_language_defn): Change macro_expansion_c to
14528 macro_expansion_no.
14529
d36b3012
IB
145302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14531
14532 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14533
c90a6fb7
SDJ
145342014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14535
14536 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14537 gdb_exception" declaration.
14538 * remote.c (getpkt_or_notif_sane): Likewise.
14539
749234e5
DE
145402014-01-17 Doug Evans <dje@google.com>
14541
14542 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14543 function, contents of dirnames_to_char_ptr_vec_append moved here.
14544 (delim_string_to_char_ptr_vec): New function.
14545 (dirnames_to_char_ptr_vec_append): Rewrite.
14546 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14547
df049a58
DE
145482014-01-17 Doug Evans <dje@google.com>
14549
14550 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14551 and moved here ...
14552 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14553 #include "common-utils.h".
14554 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14555 * common/vec.h (VEC_ASSERT_PASS): Update.
14556 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14557 (MACH_CHECK_ERROR): Update.
14558
69f97648
SM
145592014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14560
14561 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14562 comments.
14563 * gdbarch.h: Regenerate.
14564
98b1cfdc
TT
145652014-01-16 Tom Tromey <tromey@redhat.com>
14566
14567 * value.c (struct value) <regnum>: Move earlier.
14568
77a19445
TT
145692014-01-16 Tom Tromey <tromey@redhat.com>
14570
14571 * remote.c (extended_remote_create_inferior): Rename from
14572 extended_remote_create_inferior_1. Add "ops" argument. Remove
14573 old implementation.
14574
62261490
PA
145752014-01-16 Pedro Alves <palves@redhat.com>
14576
14577 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14578 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14579 the backchain.
14580
4d65956b
DE
145812014-01-16 Doug Evans <dje@google.com>
14582
14583 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14584
52834460
MM
145852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14586
14587 * btrace.h (btrace_thread_flag): New.
14588 (struct btrace_thread_info) <flags>: New.
14589 * record-btrace.c (record_btrace_resume_thread)
14590 (record_btrace_find_thread_to_move, btrace_step_no_history)
14591 (btrace_step_stopped, record_btrace_start_replaying)
14592 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14593 (record_btrace_find_resume_thread): New.
14594 (record_btrace_resume, record_btrace_wait): Extend.
14595 (record_btrace_can_execute_reverse): New.
14596 (record_btrace_open): Fail in non-stop mode.
14597 (record_btrace_set_replay): Split into this, ...
14598 (record_btrace_stop_replaying): ... this, ...
14599 (record_btrace_clear_histories): ... and this.
14600 (init_record_btrace_ops): Init to_can_execute_reverse.
14601 * NEWS: Announce it.
14602
118e6252
MM
146032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14604
14605 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14606 (forward_target_decr_pc_after_break)
14607 (target_decr_pc_after_break): New.
14608 * target.c (forward_target_decr_pc_after_break)
14609 (target_decr_pc_after_break): New.
14610 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14611 instead of gdbarch_decr_pc_after_break.
14612 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14613 instead of gdbarch_decr_pc_after_break.
14614 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14615 instead of gdbarch_decr_pc_after_break.
14616 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14617 instead of gdbarch_decr_pc_after_break.
14618 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14619 instead of gdbarch_decr_pc_after_break.
14620 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14621 instead of gdbarch_decr_pc_after_break.
14622
6e07b1d2
MM
146232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14624
14625 * btrace.c: Include regcache.h.
14626 (btrace_add_pc): New.
14627 (btrace_enable): Call btrace_add_pc.
14628 (btrace_is_empty): New.
14629 * btrace.h (btrace_is_empty): New.
14630 * record-btrace.c (require_btrace, record_btrace_info): Call
14631 btrace_is_empty.
14632
969c39fb
MM
146332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14634
14635 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14636 Support delta reads.
14637 (linux_disable_btrace): Change return type.
14638 * common/linux-btrace.h (linux_read_btrace): Change parameters
14639 and return type to allow error reporting. Update users.
14640 (linux_disable_btrace): Change return type. Update users.
14641 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14642 New.
14643 (btrace_error): New.
14644 (btrace_block) <begin>: Comment on BEGIN == 0.
14645 * btrace.c (btrace_compute_ftrace): Start from the end of
14646 the current trace.
14647 (btrace_stitch_trace, btrace_clear_history): New.
14648 (btrace_fetch): Read delta trace, return if replaying.
14649 (btrace_clear): Move clear history code to btrace_clear_history.
14650 (parse_xml_btrace): Throw an error if parsing failed.
14651 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14652 and return type to allow error reporting.
14653 (target_read_btrace): Change parameters and return type to allow
14654 error reporting.
14655 * target.c (target_read_btrace): Update.
14656 * remote.c (remote_read_btrace): Support delta reads. Pass
14657 errors on.
14658 * NEWS: Announce it.
14659
0b722aec
MM
146602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14661
14662 * record.h (record_btrace_frame_unwind)
14663 (record_btrace_tailcall_frame_unwind): New declarations.
14664 * dwarf2-frame: Include record.h
14665 (dwarf2_frame_cfa): Throw an error for btrace frames.
14666 * record-btrace.c: Include hashtab.h.
14667 (btrace_get_bfun_name): New.
14668 (btrace_call_history): Call btrace_get_bfun_name.
14669 (struct btrace_frame_cache): New.
14670 (bfcache): New.
14671 (bfcache_hash, bfcache_eq, bfcache_new): New.
14672 (btrace_get_frame_function): New.
14673 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14674 (record_btrace_frame_this_id): Compute own id.
14675 (record_btrace_frame_prev_register): Provide PC, throw_error
14676 for all other registers.
14677 (record_btrace_frame_sniffer): Detect btrace frames.
14678 (record_btrace_tailcall_frame_sniffer): New.
14679 (record_btrace_frame_dealloc_cache): New.
14680 (record_btrace_frame_unwind): Add new functions.
14681 (record_btrace_tailcall_frame_unwind): New.
14682 (_initialize_record_btrace): Allocate cache.
14683 * btrace.c (btrace_clear): Call reinit_frame_cache.
14684 * NEWS: Announce it.
14685
066ce621
MM
146862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14687
14688 * record-btrace.c (record_btrace_set_replay)
14689 (record_btrace_goto_begin, record_btrace_goto_end)
14690 (record_btrace_goto): New.
14691 (init_record_btrace_ops): Initialize them.
14692 * NEWS: Announce it.
14693
e2887aa3
MM
146942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14695
14696 * record-btrace.c (record_btrace_find_new_threads)
14697 (record_btrace_thread_alive): New.
14698 (init_record_btrace_ops): Initialize to_find_new_threads and
14699 to_thread_alive.
14700
b2f4cfde
MM
147012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14702
14703 * record-btrace.c (record_btrace_resume): New.
14704 (record_btrace_wait): New.
14705 (init_record_btrace_ops): Initialize to_wait and to_resume.
14706
633785ff
MM
147072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14708
14709 * record-btrace.c (record_btrace_xfer_partial)
14710 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14711 (record_btrace_allow_memory_access): New.
14712 (init_record_btrace_ops): Initialize new methods.
14713 * target.c (raw_memory_xfer_partial): Bail out if target reports
14714 that this memory is not available.
14715
3db08215
MM
147162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14717
14718 * target.h (target_ops) <to_insert_breakpoint>
14719 <to_remove_breakpoint>: Add target_ops parameter.
14720 (forward_target_insert_breakpoint): New.
14721 (forward_target_remove_breakpoint): New.
14722 (memory_remove_breakpoint, memory_insert_breakpoint):
14723 Add target_ops parameter.
14724 * target.c (target_insert_breakpoint): Split into this and ...
14725 (forward_target_insert_breakpoint): ... this.
14726 (target_remove_breakpoint): Split into this and ...
14727 (forward_target_remove_breakpoint): ... this.
14728 (debug_to_insert_breakpoint): Add target_ops parameter.
14729 Call forward_target_insert_breakpoint.
14730 (debug_to_remove_breakpoint): Add target_ops parameter.
14731 Call forward_target_remove_breakpoint.
14732 (update_current_target): Do not inherit or default to_insert_breakpoint
14733 and to_remove_breakpoint.
14734 * corelow.c (ignore): Add target_ops parameter.
14735 * exec.c (ignore): Add target_ops parameter.
14736 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14737 Add target_ops parameter.
14738 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14739 Add target_ops parameter.
14740 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14741 Add target_ops parameter.
14742 * record-full.c (record_full_beneath_to_insert_breakpoint)
14743 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14744 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14745 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14746 (record_full_core_remove_breakpoint): Add target_ops parameter.
14747 Update users.
14748 (record_full_beneath_to_insert_breakpoint_ops)
14749 (record_full_beneath_to_remove_breakpoint_ops)
14750 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14751 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14752 tmp_to_remove_breakpoint_ops,
14753 record_full_beneath_to_insert_breakpoint_ops, and
14754 record_full_beneath_to_remove_breakpoint_ops.
14755 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14756 (m32r_remove_breakpoint): Add target_ops parameter.
14757 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14758 Add target_ops parameter.
14759 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14760 Add target_ops parameter.
14761
cecac1ab
MM
147622014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14763 Markus Metzger <markus.t.metzger@intel.com>
14764
14765 * record-btrace.c: Include frame-unwind.h.
14766 (record_btrace_frame_unwind_stop_reason)
14767 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14768 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14769 New.
14770 (init_record_btrace_ops): Install it.
14771
824344ca
MM
147722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14773
14774 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14775 get_prev_frame_1.
14776
32261e52
MM
147772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14778
14779 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14780 earlier.
14781
ea001bdc
MM
147822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14783
14784 * frame-unwind.c: Include target.h.
14785 (frame_unwind_try_unwinder): New function with code from ...
14786 (frame_unwind_find_by_frame): ... here. New variable
14787 unwinder_from_target, call also target_get_unwinder)
14788 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14789 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14790 * target.h (struct target_ops): New fields to_get_unwinder and
14791 to_get_tailcall_unwinder.
14792 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14793
1f3ef581
MM
147942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14795
14796 * record-btrace.c (record_btrace_fetch_registers)
14797 (record_btrace_store_registers)
14798 (record_btrace_to_prepare_to_store): New.
14799 (init_record_btrace_ops): Add the above.
14800
f32dbf8c
MM
148012014-01-16 Tom Tromey <tromey@redhat.com>
14802
14803 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14804 * target.h (struct target_ops) <to_prepare_to_store>: Add
14805 argument.
14806 (target_prepare_to_store): Add argument.
14807 * target.c (debug_to_prepare_to_store): Add argument.
14808 (update_current_target): Update.
14809 * remote.c (remote_prepare_to_store): Add 'self' argument.
14810 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14811 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14812 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14813 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14814 argument.
14815 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14816 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14817 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14818 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14819 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14820
07bbe694
MM
148212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14822
14823 * btrace.h (replay) <replay>: New.
14824 (btrace_is_replaying): New.
14825 * btrace.c (btrace_clear): Free replay iterator.
14826 (btrace_is_replaying): New.
14827 * record-btrace.c (record_btrace_is_replaying): New.
14828 (record_btrace_info): Print insn number if replaying.
14829 (record_btrace_insn_history): Start at replay position.
14830 (record_btrace_call_history): Start at replay position.
14831 (init_record_btrace_ops): Init to_record_is_replaying.
14832
0688d04e
MM
148332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14834
14835 * record-btrace.c (record_btrace_insn_history_range): Include
14836 end.
14837 (record_btrace_insn_history_from): Adjust range.
14838 (record_btrace_call_history_range): Include
14839 end.
14840 (record_btrace_call_history_from): Adjust range.
14841 * NEWS: Announce changes.
14842
8710b709
MM
148432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14844
14845 * record.h (enum record_print_flag)
14846 <record_print_indent_calls>: New.
14847 * record.c (get_call_history_modifiers): Recognize /c modifier.
14848 (_initialize_record): Document /c modifier.
14849 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14850 Reorder fields. Optionally indent the function name. Update
14851 all users.
14852 * NEWS: Announce changes.
14853
d0fa7535
MM
148542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14855
14856 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14857
5de9129b
MM
148582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14859
14860 * btrace.c (ftrace_new_function): Start counting at one.
14861 * record-btrace.c (record_btrace_info): Adjust number of calls
14862 and insns.
14863 * NEWS: Announce it.
14864
7acbe133
MM
148652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14866
14867 * record-btrace.c (btrace_call_history_insn_range): Print
14868 insn range as [begin, end].
14869
23a7fe75
MM
148702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14871
14872 * btrace.h (struct btrace_func_link): New.
14873 (enum btrace_function_flag): New.
14874 (struct btrace_inst): Rename to ...
14875 (struct btrace_insn): ...this. Update all users.
14876 (struct btrace_func) <ibegin, iend>: Remove.
14877 (struct btrace_func_link): New.
14878 (struct btrace_func): Rename to ...
14879 (struct btrace_function): ...this. Update all users.
14880 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14881 (number, level, flags>: New.
14882 (struct btrace_insn_iterator): Rename to ...
14883 (struct btrace_insn_history): ...this.
14884 Update all users.
14885 (struct btrace_insn_iterator, btrace_call_iterator): New.
14886 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14887 (struct btrace_target_info) <begin, end, level>
14888 <insn_history, call_history>: New.
14889 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14890 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14891 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14892 (btrace_call_number, btrace_call_begin, btrace_call_end)
14893 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14894 (btrace_find_function_by_number, btrace_set_insn_history)
14895 (btrace_set_call_history): New.
14896 * btrace.c (btrace_init_insn_iterator)
14897 (btrace_init_func_iterator, compute_itrace): Remove.
14898 (ftrace_print_function_name, ftrace_print_filename)
14899 (ftrace_skip_file): Change
14900 parameter to const.
14901 (ftrace_init_func): Remove.
14902 (ftrace_debug): Use new btrace_function fields.
14903 (ftrace_function_switched): Also consider gaining and
14904 losing symbol information).
14905 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14906 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14907 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14908 New.
14909 (ftrace_new_function): Move. Remove debug print.
14910 (ftrace_update_lines, ftrace_update_insns): New.
14911 (ftrace_update_function): Check for call, ret, and jump.
14912 (compute_ftrace): Renamed to ...
14913 (btrace_compute_ftrace): ...this. Rewritten to compute call
14914 stack.
14915 (btrace_fetch, btrace_clear): Updated.
14916 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14917 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14918 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14919 (btrace_call_number, btrace_call_begin, btrace_call_end)
14920 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14921 (btrace_find_function_by_number, btrace_set_insn_history)
14922 (btrace_set_call_history): New.
14923 * record-btrace.c (require_btrace): Use new btrace thread
14924 info fields.
14925 (record_btrace_info, btrace_insn_history)
14926 (record_btrace_insn_history, record_btrace_insn_history_range):
14927 Use new btrace thread info fields and new iterator.
14928 (btrace_func_history_src_line): Rename to ...
14929 (btrace_call_history_src_line): ...this. Use new btrace
14930 thread info fields.
14931 (btrace_func_history): Rename to ...
14932 (btrace_call_history): ...this. Use new btrace thread info
14933 fields and new iterator.
14934 (record_btrace_call_history, record_btrace_call_history_range):
14935 Use new btrace thread info fields and new iterator.
14936
8372a7cb
MM
149372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14938
14939 * frame.h (frame_id_build_unavailable_stack_special): New.
14940 * frame.c (frame_id_build_unavailable_stack_special): New.
14941
c2170eef
MM
149422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14943
14944 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14945 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14946 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14947 to gdbarch.
14948 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14949 (i386_insn_is_jump, i386_jmp_p): New.
14950 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14951 insn_is_jump to gdbarch.
14952 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14953 * gdbarch.h: Regenerated.
14954 * gdbarch.c: Regenerated.
14955 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14956 (default_insn_is_jump): New.
14957 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14958 (default_insn_is_jump): New.
14959
864089d2
MM
149602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14961
14962 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14963 Change to ...
14964 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14965 (btrace_read_type) <btrace_read_new>: Change to ...
14966 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14967
ed9edfb5
MM
149682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14969
14970 * common/linux-btrace.c (linux_read_btrace): Free trace from
14971 previous iteration.
14972
fbcbc3fd
DE
149732014-01-15 Doug Evans <dje@google.com>
14974
14975 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14976 uint32_t.
14977
3d548a53
TT
149782014-01-15 Tom Tromey <tromey@redhat.com>
14979
14980 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14981 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14982 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14983 (set_objfile_main_name): New function.
14984 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14985 language_of_main>: New fields.
14986 (set_objfile_main_name): Declare.
14987 * symtab.c (find_main_name): Loop over objfiles to find the main
14988 name and language.
14989 (set_main_name): Now static.
14990 (get_main_info): Add comment.
14991 * symtab.h (set_main_name): Don't declare.
14992
32ac0d11
TT
149932014-01-15 Tom Tromey <tromey@redhat.com>
14994
14995 * symtab.c (main_progspace_key): New global.
14996 (struct main_info): New.
14997 (name_of_main, language_of_main): Remove.
14998 (get_main_info, main_info_cleanup): New function.
14999 (set_main_name, main_name, main_language): Use get_main_info.
15000 (_initialize_symtab): Initialize main_progspace_key.
15001
9e6c82ad
TT
150022014-01-15 Tom Tromey <tromey@redhat.com>
15003
15004 * dbxread.c (process_one_symbol): Update.
15005 * dwarf2read.c (read_partial_die): Update.
15006 * symfile.c (set_initial_language): Call main_language.
15007 * symtab.c (language_of_main): Now static.
15008 (set_main_name): Add 'lang' parameter.
15009 (find_main_name): Update.
15010 (main_language): New function.
15011 (symtab_observer_executable_changed): Update.
15012 * symtab.h (set_main_name): Update.
15013 (language_of_main): Remove.
15014 (main_language): Declare.
15015
6ef55de7
TT
150162014-01-15 Tom Tromey <tromey@redhat.com>
15017
15018 * symfile.c (init_entry_point_info): Use new "initialized" field.
15019 Update.
15020 * objfiles.h (struct entry_point) <initialized>: New field.
15021 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15022 (struct objfile) <ei>: ...here. Remove.
15023 * objfiles.c (entry_point_address_query): Update.
15024
53eddfa6
TT
150252014-01-15 Tom Tromey <tromey@redhat.com>
15026
15027 * objfiles.c (entry_point_address_query): Relocate entry point
15028 address.
15029 (objfile_relocate1): Do not relocate entry point address.
15030 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15031 <the_bfd_section_index>: New field.
15032 * symfile.c (init_entry_point_info): Find the entry point's
15033 section.
15034
d56e56aa
TT
150352014-01-15 Tom Tromey <tromey@redhat.com>
15036
15037 * solib-frv.c (enable_break): Use entry_point_address_query.
15038
33a97bbe
OJ
150392014-01-15 Omair Javaid <omair.javaid@linaro.org>
15040
15041 * NEWS: Add note on improved process record-replay on
15042 arm*-linux* targets.
15043
c6ec2b30
OJ
150442014-01-15 Omair Javaid <omair.javaid@linaro.org>
15045
15046 * arm-tdep.c (enum arm_record_result): New enum.
15047 (arm_record_unsupported_insn): New function.
15048 (arm_record_coproc_data_proc): Removed.
15049 (thumb2_record_ld_st_multiple): New function.
15050 (thumb2_record_ld_st_dual_ex_tbb): New function.
15051 (thumb2_record_data_proc_sreg_mimm): New function.
15052 (thumb2_record_ps_dest_generic): New function.
15053 (thumb2_record_branch_misc_cntrl): New function.
15054 (thumb2_record_str_single_data): New function.
15055 (thumb2_record_ld_mem_hints): New function.
15056 (thumb2_record_ld_word): New function.
15057 (thumb2_record_lmul_lmla_div): New function.
15058 (thumb2_record_decode_insn_handler): New function.
15059 (decode_insn): Add thumb32 instruction handlers.
15060
97dfe206
OJ
150612014-01-15 Omair Javaid <omair.javaid@linaro.org>
15062
15063 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15064 (struct arm_linux_record_tdep): Declare.
15065 (arm_canonicalize_syscall): New function.
15066 (arm_all_but_pc_registers_record): New function.
15067 (arm_linux_syscall_record): New function.
15068 (arm_linux_init_abi): Add syscall recording constructs.
15069 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15070 decoding. (arm_record_coproc_data_proc): Update arm syscall
15071 decoding.
15072 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15073 <arm_syscall_record>: New field.
15074 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15075 gdb_target_obs.
15076
9904a494
OJ
150772014-01-15 Omair Javaid <omair.javaid@linaro.org>
15078
15079 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15080 register for push instruction recording.
15081
f969241e
OJ
150822014-01-15 Omair Javaid <omair.javaid@linaro.org>
15083
15084 * arm-tdep.c (thumb_record_misc): Update to correct logical
15085 error while recording ldm, ldmia and pop instructions.
15086
bfbbec00
OJ
150872014-01-15 Omair Javaid <omair.javaid@linaro.org>
15088
15089 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15090
e40adcc9
PA
150912014-01-15 Pedro Alves <palves@redhat.com>
15092
15093 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15094 (go32_resume, go32_fetch_registers, store_register)
15095 (go32_store_registers, go32_prepare_to_store)
15096 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15097 (go32_create_inferior, go32_can_run, go32_terminal_init)
15098 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15099 declarations.
15100
b0a16e66
TT
151012014-01-15 Tom Tromey <tromey@redhat.com>
15102
15103 * target.h (async_callback_ftype): New typedef.
15104 (struct target_ops) <to_async>: Use it.
15105
bf7105a4
JB
151062014-01-15 Joel Brobecker <brobecker@adacore.com>
15107
15108 * python/py-value.c (get_field_type): Remove unnecessary curly
15109 braces for single-statement if block.
15110
a8f35c2e
JB
151112014-01-15 Joel Brobecker <brobecker@adacore.com>
15112
15113 * python/py-type.c (convert_field): Add missing empty line
15114 after declarations.
15115
bb4142cf
DE
151162014-01-14 Doug Evans <dje@google.com>
15117
15118 * symfile.h (expand_symtabs_matching): Renamed from
15119 expand_partial_symbol_names. Update prototype.
15120 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15121 * symfile.c (expand_symtabs_matching): Renamed from
15122 expand_partial_symbol_names. New args file_matcher, kind.
15123 Rename arg fun to symbol_matcher.
15124 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15125 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15126 ada_expand_partial_symbol_name.
15127 (ada_make_symbol_completion_list): Update to call
15128 expand_symtabs_matching.
15129 (ada_add_global_exceptions): Call expand_symtabs_matching.
15130 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15131 call map_symbol_filenames.
15132 * symtab.c (sources_info): Update to call map_symbol_filenames.
15133 (search_symbols): Call expand_symtabs_matching.
15134 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15135 (default_make_symbol_completion_list_break_on): Update to call
15136 expand_symtabs_matching.
15137 (make_source_files_completion_list): Update to call
15138 map_symbol_filenames.
15139
206f2a57
DE
151402014-01-14 Doug Evans <dje@google.com>
15141
15142 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15143 (expand_symtabs_symbol_matcher_ftype): New typedef.
15144 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15145 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15146 * symfile.c (expand_partial_symbol_names): Update to use
15147 expand_symtabs_symbol_matcher_ftype.
15148 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15149 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15150 Arg name_matcher renamed to symbol_matcher.
15151 * psymtab.c (recursively_search_psymtabs): Update to use
15152 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15153 sym_matcher.
15154 (expand_symtabs_matching_via_partial): Update to use
15155 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15156 Arg name_matcher renamed to symbol_matcher.
15157
540c2971
DE
151582014-01-14 Doug Evans <dje@google.com>
15159
15160 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15161 (map_partial_symbol_filenames): Ditto.
15162 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15163 (map_partial_symbol_filenames): Ditto.
15164 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15165 (map_partial_symbol_filenames): Ditto.
15166 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15167 (map_partial_symbol_filenames): Ditto.
15168 * symtab.c: Delete #include "psymtab.h".
15169
8213266a
PA
151702014-01-14 Pedro Alves <palves@redhat.com>
15171 Tom Tromey <tromey@redhat.com>
15172
15173 * infrun.c (use_displaced_stepping): Use find_record_target
15174 instead of RECORD_IS_USED.
15175 (adjust_pc_after_break): Use record_full_is_used instead of
15176 RECORD_IS_USED.
15177 * record-btrace.c (record_btrace_open): Call record_preopen
15178 instead of checking RECORD_IS_USED.
15179 * record-full.c (record_full_shortname)
15180 (record_full_core_shortname): New globals.
15181 (record_full_is_used): New function.
15182 (find_full_open): Call record_preopen instead of checking
15183 RECORD_IS_USED.
15184 (init_record_full_ops): Set the target's shortname to
15185 record_full_shortname.
15186 (init_record_full_core_ops): Set the target's shortname to
15187 record_full_core_shortname.
15188 * record-full.h (record_full_is_used): Declare.
15189 * record.c (find_record_target): Make extern.
15190 (record_preopen): New function.
15191 * record.h (RECORD_IS_USED): Delete macro.
15192 (find_record_target, record_preopen): Declare functions.
15193
7ec1862d
YQ
151942014-01-14 Yao Qi <yao@codesourcery.com>
15195
15196 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15197 'len''s type to ULONGEST.
15198 (core_xfer_shared_libraries_aix): Likewise.
15199 * gdbarch.c, gdbarch.h: Regenerated.
15200 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15201 Change type of 'len' to ULONGEST.
15202 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15203 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15204
dea80a27
YQ
152052014-01-14 Yao Qi <yao@codesourcery.com>
15206
15207 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15208 type of 'len' to ULONGEST.
15209 (linux_xfer_osdata_processgroups): Likewise.
15210 (linux_xfer_osdata_threads): Likewise.
15211 (linux_xfer_osdata_fds): Likewise.
15212 (linux_xfer_osdata_isockets): Likewise.
15213 (linux_xfer_osdata_shm): Likewise.
15214 (linux_xfer_osdata_sem): Likewise.
15215 (linux_xfer_osdata_msg): Likewise.
15216 (linux_common_xfer_osdata): Likewise.
15217 (struct osdata_type) <getter>: Likewise.
15218 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15219 the declaration.
15220
b55e14c7
YQ
152212014-01-14 Yao Qi <yao@codesourcery.com>
15222
15223 * target.h (target_xfer_partial_ftype): Update.
15224 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15225 ULONGEST.
15226 * aix-thread.c (aix_thread_xfer_partial): Change type of
15227 argument 'len' to ULONGEST.
15228 * auxv.c (procfs_xfer_auxv): Likewise.
15229 (ld_so_xfer_auxv): Likewise.
15230 (memory_xfer_auxv): Likewise.
15231 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15232 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15233 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15234 * corelow.c (core_xfer_partial): Likewise.
15235 * ctf.c (ctf_xfer_partial): Likewise.
15236 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15237 '%u'.
15238 (darwin_read_dyld_info): Likewise.
15239 (darwin_xfer_partial): Likewise.
15240 * exec.c (section_table_xfer_memory_partial): Likewise.
15241 (exec_xfer_partial): Likewise.
15242 * exec.h (section_table_xfer_memory_partial): Update
15243 declaration.
15244 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15245 instead of plongest.
15246 (gnu_xfer_partial): Likewise.
15247 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15248 (ia64_hpux_xfer_solib_got): Likewise.
15249 (ia64_hpux_xfer_partial): Likewise.
15250 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15251 * inf-ptrace.c (inf_ptrace_xfer_partial):
15252 * inf-ttrace.c (inf_ttrace_xfer_partial):
15253 * linux-nat.c (linux_xfer_siginfo): Likewise.
15254 (linux_nat_xfer_partial): Likewise.
15255 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15256 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15257 * monitor.c (monitor_xfer_memory): Likewise.
15258 (monitor_xfer_partial): Likewise.
15259 * procfs.c (procfs_xfer_partial): Likewise.
15260 * record-full.c (record_full_xfer_partial): Likewise.
15261 (record_full_core_xfer_partial): Likewise.
15262 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15263 instead of plongest.
15264 (gdbsim_xfer_partial): Likewise.
15265 * remote.c (remote_xfer_partial): Likewise.
15266 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15267 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15268 declaration.
15269 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15270 (rs6000_xfer_shared_libraries): Likewise.
15271 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15272 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15273 (sparc_xfer_partial): Likewise.
15274 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15275 (spu_xfer_partial): Likewise.
15276 * spu-multiarch.c (spu_xfer_partial): Likewise.
15277 * target.c (target_read_live_memory): Likewise.
15278 (memory_xfer_live_readonly_partial): Likewise.
15279 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15280 (target_xfer_partial, default_xfer_partial): Likewise.
15281 (current_xfer_partial): Likewise.
15282 * tracepoint.c (tfile_xfer_partial): Likewise.
15283 * windows-nat.c (windows_xfer_memory): Likewise. Call
15284 pulongest instead of plongest.
15285 (windows_xfer_partial): Likewise.
15286 (windows_xfer_shared_libraries): Likewise.
15287
05804640
YQ
152882014-01-14 Yao Qi <yao@codesourcery.com>
15289
15290 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15291 target_xfer_partial_ftype.
15292
b5b08fb4
SC
152932014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15294
15295 PR python/15464
15296 PR python/16113
15297 * valops.c (value_struct_elt_bitpos): New function
15298 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15299 object to 'None' if the field name is an empty string ("").
15300 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15301 attribute to look for a field when 'name' is 'None'.
15302 (get_field_type): New function
15303
13aaf454
DE
153042014-01-13 Doug Evans <dje@google.com>
15305
15306 PR symtab/16426
15307 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15308 (try_open_dwop_file): Ditto.
15309 * gdb_bfd.c: #include "vec.h".
15310 (bfdp): New typedef.
15311 (struct gdb_bfd_data): New member included_bfds.
15312 (gdb_bfd_unref): Unref all included bfds.
15313 (gdb_bfd_record_inclusion): New function.
15314 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15315
c2cec97c
TT
153162014-01-13 Tom Tromey <tromey@redhat.com>
15317
15318 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15319
78e5999d
TT
153202014-01-13 Tom Tromey <tromey@redhat.com>
15321
15322 * defs.h (use_windows): Remove.
15323 * gdb.c (main): Update.
15324 * main.c (captured_main, gdb_main): Update.
15325 * main.h (struct captured_main_args) <use_windows>: Remove.
15326 * top.c (use_windows): Remove.
15327
f2052bbe
TT
153282014-01-13 Tom Tromey <tromey@redhat.com>
15329
15330 * defs.h (deprecated_flush_hook): Remove.
15331
fde4f8ed
JK
153322014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15333
15334 PR threads/16216
15335 * linux-thread-db.c (try_thread_db_load): Add parameter
15336 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15337 (try_thread_db_load_from_pdir_1): Move it there from here.
15338 (try_thread_db_load_from_sdir): Update caller.
15339 (try_thread_db_load_from_dir): Move it there from here.
15340
bdf61915
PP
153412014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15342
15343 * regformats/regdat.sh: Always rewrite the register file.
15344
f71e1a8d
PA
153452014-01-13 Pedro Alves <palves@redhat.com>
15346
15347 * Makefile.in (CHECK_HEADERS): New variable.
15348 (check-headers:): New rule.
15349
42c85435
TT
153502014-01-13 Tom Tromey <tromey@redhat.com>
15351
15352 * cli/cli-setshow.c (do_set_command): Update.
15353 * defs.h (deprecated_set_hook): Remove.
15354 * top.c (deprecated_set_hook): Remove.
15355
f8de5129
PA
153562014-01-13 Pedro Alves <palves@redhat.com>
15357
15358 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15359 the tracepoint if the PC is a pseudo-register.
15360
fc270c35
TT
153612014-01-13 Tom Tromey <tromey@redhat.com>
15362
15363 * defs.h (XCALLOC): Remove.
15364 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15365 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15366 * dwarf2loc.c (allocate_piece_closure): Likewise.
15367 * elfread.c (elf_symfile_segments): Likewise.
15368 (elf_symfile_segments): Likewise.
15369 * gdbtypes.c (copy_type_recursive): Likewise.
15370 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15371 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15372 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15373 XCALLOC.
15374 * mt-tdep.c (mt_gdbarch_init): Likewise.
15375 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15376 XCALLOC.
15377 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15378 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15379 * registry.c (registry_alloc_data): Likewise.
15380 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15381 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15382 * serial.c (serial_fdopen_ops): Likewise.
15383 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15384 XCALLOC.
15385 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15386 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15387 not XCALLOC.
15388
70ba0933
TT
153892014-01-13 Tom Tromey <tromey@redhat.com>
15390
15391 * defs.h (XMALLOC): Remove.
15392 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15393 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15394 * cli-out.c (struct ui_out *): Likewise.
15395 * cli/cli-dump.c (add_dump_command): Likewise.
15396 (add_dump_command): Likewise.
15397 * complaints.c (get_complaints): Likewise.
15398 (find_complaint): Likewise.
15399 * dwarf2-frame.c (execute_cfa_program): Likewise.
15400 * dwarf2read.c (abbrev_table_read_table): Likewise.
15401 * gdbarch.sh: Likewise.
15402 * gdbarch.c: Rebuild.
15403 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15404 * interps.c (interp_new): Likewise.
15405 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15406 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15407 * mi/mi-console.c (mi_console_file_new): Likewise.
15408 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15409 * mi/mi-out.c (mi_out_new): Likewise.
15410 * mi/mi-parse.c (mi_parse): Likewise.
15411 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15412 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15413 * observer.c (xalloc_observer_list_node): Likewise.
15414 * regcache.c (regcache_xmalloc_1): Likewise.
15415 * reggroups.c (reggroup_new): Likewise.
15416 (_initialize_reggroup): Likewise.
15417 * registry.c (register_data_with_cleanup): Likewise.
15418 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15419 * ser-base.c (serial_ttystate): Likewise.
15420 * ser-mingw.c (make_pipe_state): Likewise.
15421 * ser-pipe.c (pipe_open): Likewise.
15422 * serial.c (serial_open): Likewise.
15423 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15424 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15425 (tui_alloc_win_info): Likewise.
15426 (tui_add_content_elements): Likewise.
15427 * tui/tui-file.c (tui_file_new): Likewise.
15428 * tui/tui-out.c (tui_out_new): Likewise.
15429 * ui-file.c (mem_file_new): Likewise.
15430 * ui-out.c (push_level): Likewise.
15431 (make_cleanup_ui_out_end): Likewise.
15432 (append_header_to_list): Likewise.
15433 (ui_out_new): Likewise.
15434 * user-regs.c (user_reg_add_builtin): Likewise.
15435
41bf6aca
TT
154362014-01-13 Tom Tromey <tromey@redhat.com>
15437
15438 * defs.h (XZALLOC): Remove.
15439 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15440 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15441 (get_ada_tasks_inferior_data): Likewise.
15442 * auto-load.c (get_auto_load_pspace_data): Likewise.
15443 * auxv.c (get_auxv_inferior_data): Likewise.
15444 * bfd-target.c (target_bfd_reopen): Likewise.
15445 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15446 (deprecated_insert_raw_breakpoint): Likewise.
15447 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15448 * corelow.c (core_open): Likewise.
15449 * darwin-nat.c (darwin_check_new_threads): Likewise.
15450 (darwin_attach_pid): Likewise.
15451 * dummy-frame.c (dummy_frame_push): Likewise.
15452 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15453 * dwarf2loc.c (allocate_piece_closure): Likewise.
15454 * elfread.c (elf_symfile_segments): Likewise.
15455 * eval.c (ptrmath_type_p): Likewise.
15456 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15457 * gdbtypes.c (alloc_type_arch): Likewise.
15458 (alloc_type_instance): Likewise.
15459 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15460 * inf-child.c (inf_child_can_use_agent): Likewise.
15461 * inflow.c (get_inflow_inferior_data): Likewise.
15462 * infrun.c (save_infcall_suspend_state): Likewise.
15463 * jit.c (jit_reader_load): Likewise.
15464 (get_jit_objfile_data): Likewise.
15465 (get_jit_program_space_data): Likewise.
15466 (jit_object_open_impl): Likewise.
15467 (jit_symtab_open_impl): Likewise.
15468 (jit_block_open_impl): Likewise.
15469 (jit_frame_sniffer): Likewise.
15470 * linux-fork.c (add_fork): Likewise.
15471 * maint.c (make_command_stats_cleanup): Likewise.
15472 * objfiles.c (get_objfile_pspace_data): Likewise.
15473 * opencl-lang.c (struct lval_closure): Likewise.
15474 * osdata.c (osdata_start_osdata): Likewise.
15475 * progspace.c (new_address_space): Likewise.
15476 (add_program_space): Likewise.
15477 * remote-sim.c (get_sim_inferior_data): Likewise.
15478 * sh-tdep.c (sh_gdbarch_init): Likewise.
15479 * skip.c (Ignore): Likewise.
15480 (skip_delete_command): Likewise.
15481 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15482 (library_list_start_library): Likewise.
15483 (solib_aix_current_sos): Likewise.
15484 * solib-darwin.c (get_darwin_info): Likewise.
15485 (darwin_current_sos): Likewise.
15486 * solib-dsbt.c (get_dsbt_info): Likewise.
15487 * solib-ia64-hpux.c (new_so_list): Likewise.
15488 (ia64_hpux_get_solib_linkage_addr): Likewise.
15489 * solib-spu.c (append_ocl_sos): Likewise.
15490 (spu_current_sos): Likewise.
15491 * solib-svr4.c (get_svr4_info): Likewise.
15492 (svr4_keep_data_in_core): Likewise.
15493 (library_list_start_library): Likewise.
15494 (svr4_default_sos): Likewise.
15495 (svr4_read_so_list): Likewise.
15496 * solib-target.c (library_list_start_library): Likewise.
15497 (solib_target_current_sos): Likewise.
15498 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15499 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15500 * symfile.c (default_symfile_segments): Likewise.
15501 * target-descriptions.c (tdesc_data_init): Likewise.
15502 (tdesc_create_reg): Likewise.
15503 (struct tdesc_type *): Likewise.
15504 (tdesc_create_vector): Likewise.
15505 (tdesc_set_struct_size): Likewise.
15506 (struct tdesc_type *): Likewise.
15507 (tdesc_free_feature): Likewise.
15508 (tdesc_create_feature): Likewise.
15509 * windows-nat.c (windows_add_thread): Likewise.
15510 (windows_make_so): Likewise.
15511 * xml-support.c (gdb_xml_body_text): Likewise.
15512 (gdb_xml_create_parser_and_cleanup): Likewise.
15513 (xml_process_xincludes): Likewise.
15514 * xml-syscall.c (allocate_syscalls_info): Likewise.
15515 (syscall_create_syscall_desc): Likewise.
15516
5acfdbae
SDJ
155172014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15518
15519 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15520 function, with code from i386_stap_parse_special_token.
15521 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15522 (i386_stap_parse_special_token): Move code to the two functions
15523 above; simplify it.
15524
0000e5cc
PA
155252014-01-09 Pedro Alves <palves@redhat.com>
15526 Hui Zhu <hui@codesourcery.com>
15527
15528 PR gdb/16101
15529 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15530 bp_err_string. Don't mark the location shlib_disabled if the
15531 error thrown wasn't a generic or memory error. Catch errors
15532 thrown while inserting breakpoints in overlayed code. Output
15533 error message of software breakpoints.
15534 * remote.c (remote_insert_breakpoint): If this breakpoint has
15535 target-side commands but this stub doesn't support Z0 packets,
15536 throw NOT_SUPPORTED_ERROR error.
15537 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15538 * target.h (target_insert_breakpoint): Extend comment.
15539 (target_insert_hw_breakpoint): Add comment.
15540
b7ea362b
PA
155412014-01-08 Pedro Alves <palves@redhat.com>
15542
15543 * remote.c (remote_add_thread): Add threads silently if starting
15544 up.
15545 (remote_notice_new_inferior): If in all-stop, and starting up,
15546 don't call notice_new_inferior.
15547 (get_current_thread): New function, factored out from ...
15548 (add_current_inferior_and_thread): ... this. Adjust.
15549 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15550 found any thread, then select the remote's current thread as GDB's
15551 current thread too.
15552
b7bba001
JB
155532014-01-08 Joel Brobecker <brobecker@adacore.com>
15554
15555 * NEWS: Create a new section for the next release branch.
15556 Rename the section of the current branch, now that it has
15557 been cut.
15558
16dfbded
JB
155592014-01-08 Joel Brobecker <brobecker@adacore.com>
15560
15561 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15562 * version.in: Bump version to 7.7.50.DATE-cvs.
15563
22c90ac1
YQ
155642014-01-08 Yao Qi <yao@codesourcery.com>
15565
15566 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15567 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15568 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15569
d64ad97c
YQ
155702014-01-08 Yao Qi <yao@codesourcery.com>
15571
15572 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15573 return value of bfd_get_filename to symbol_file_add_from_bfd.
15574
f93ba80c
PM
155752014-01-08 Pierre Muller <muller@sourceware.org>
15576
15577 Fix PR16201.
15578 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15579 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15580 to prim_record_mininal_symbol_and_info.
15581 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15582 in call to prim_record_minimal_symbol_and_info.
15583 (read_pe_exported_syms): Set index field of section_data.
15584
a4d9ba85
AP
155852014-01-07 Andrew Pinski <apinski@cavium.com>
15586
15587 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15588 * features/aarch64.c: Regenerate.
15589
1b67eb02
AS
155902014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15591
15592 * target.c (return_null): Define.
15593 (update_current_target): Use it instead of return_zero for
15594 functions that return a pointer.
15595
5e3f4fab
EBM
155962014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15597
15598 * source.c (add_path): Fix check for duplicated paths in the previously
15599 included paths.
15600
e2616788
HK
156012014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15602
15603 * ada-lang.c: Remove duplicated include statements.
15604 * alphabsd-nat.c: Ditto.
15605 * amd64-darwin-tdep.c: Ditto.
15606 * amd64fbsd-nat.c: Ditto.
15607 * auto-load.c: Ditto.
15608 * ax-gdb.c: Ditto.
15609 * breakpoint.c: Ditto.
15610 * dbxread.c: Ditto.
15611 * fork-child.c: Ditto.
15612 * gdb_usleep.c: Ditto.
15613 * i386-darwin-tdep.c: Ditto.
15614 * i386fbsd-nat.c: Ditto.
15615 * infcmd.c: Ditto.
15616 * inferior.c: Ditto.
15617 * jv-lang.c: Ditto.
15618 * linux-nat.c: Ditto.
15619 * linux-tdep.c: Ditto.
15620 * m68kbsd-nat.c: Ditto.
15621 * m68klinux-nat.c: Ditto.
15622 * microblaze-tdep.c: Ditto.
15623 * mips-linux-tdep.c: Ditto.
15624 * mn10300-tdep.c: Ditto.
15625 * nto-tdep.c: Ditto.
15626 * opencl-lang.c: Ditto.
15627 * osdata.c: Ditto.
15628 * printcmd.c: Ditto.
15629 * regcache.c: Ditto.
15630 * remote-m32r-sdi.c: Ditto.
15631 * remote.c: Ditto.
15632 * symfile.c: Ditto.
15633 * symtab.c: Ditto.
15634 * tilegx-linux-nat.c: Ditto.
15635 * tilegx-tdep.c: Ditto.
15636 * tracepoint.c: Ditto.
15637 * valops.c: Ditto.
15638 * vaxbsd-nat.c: Ditto.
15639 * windows-nat.c: Ditto.
15640 * xtensa-tdep.c: Ditto.
15641
bd1f7788
YQ
156422014-01-07 Yao Qi <yao@codesourcery.com>
15643
15644 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15645
79301218
JB
156462014-01-07 Yao Qi <yao@codesourcery.com>
15647 Joel Brobecker <brobecker@adacore.com>
15648
15649 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15650 (pdc_write_regs): Likewise.
15651 (fetch_regs_kernel_thread): Likewise.
15652 (store_regs_kernel_thread): Likewise.
15653
156542014-01-07 Joel Brobecker <brobecker@adacore.com>
15655
15656 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15657 tagged type objects to their actual type.
15658
8e355c5d
JB
156592014-01-07 Joel Brobecker <brobecker@adacore.com>
15660
15661 * ada-valprint.c (print_field_values): Add "language" parameter.
15662 Update calls to print_field_values and print_variant_part.
15663 Pass new parameter "language" in call to val_print instead
15664 of "current_language". Replace call to ada_val_print by call
15665 to val_print.
15666 (print_variant_part): Add "language" parameter.
15667 (ada_val_print_struct_union): Update call to print_field_values.
15668
4fbf5aa5
JB
156692014-01-07 Joel Brobecker <brobecker@adacore.com>
15670
15671 * ada-valprint.c (ui_memcpy): Delete.
15672 (ada_print_floating): Update documentation. Add empty line
15673 between between function documentation and implementation.
15674 Delete variable "buffer". Use ui_file_xstrdup in place of
15675 ui_file_put. Minor adjustments following this change.
15676
71855601
JB
156772014-01-07 Joel Brobecker <brobecker@adacore.com>
15678
15679 * ada-valprint.c (ada_val_print_string): New function,
15680 extracted from ada_val_print_array.
15681 (ada_val_print_array): Replace extracted code by call
15682 to ada_val_print_string followed by a return. Move
15683 "else" branch to the function's top block.
15684
4eb27a30
JB
156852014-01-07 Joel Brobecker <brobecker@adacore.com>
15686
15687 * ada-valprint.c (ada_val_print_array): Move implementation
15688 down. Rename parameter "offset" and "val" into "offset_aligned"
15689 and "original_value" respectively. Add parameter "offset".
15690
34b27950
JB
156912014-01-07 Joel Brobecker <brobecker@adacore.com>
15692
15693 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15694 re-organizing the code. Change the "???" message printed
15695 when target type is a TYPE_CODE_UNDEF into
15696 "<ref to undefined type>".
15697
079e4591
JB
156982014-01-07 Joel Brobecker <brobecker@adacore.com>
15699
15700 * ada-valprint.c (print_record): Delete, implementation inlined...
15701 (ada_val_print_struct_union): ... here. Remove call to
15702 ada_check_typedef in inlined implementation.
15703
8004dfd1
JB
157042014-01-07 Joel Brobecker <brobecker@adacore.com>
15705
15706 * ada-valprint.c (ada_val_print_gnat_array): New function,
15707 extracted from ada_val_print_1;
15708 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15709 (ada_val_print_flt, ada_val_print_struct_union)
15710 (ada_val_print_ref): Likewise.
15711 (ada_val_print_1): Delete variables i and elttype.
15712 Replace extracted-out code by call to corresponding
15713 new functions.
15714
760a2db0
JB
157152014-01-07 Joel Brobecker <brobecker@adacore.com>
15716
15717 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15718
3a92c861
JB
157192014-01-07 Joel Brobecker <brobecker@adacore.com>
15720
15721 * ada-valprint.c (ada_val_print_1): Replace calls to
15722 ada_val_print_1 by calls to val_print.
15723
cd1630f9
JB
157242014-01-07 Joel Brobecker <brobecker@adacore.com>
15725
15726 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15727 Update calls to self accordingly. Replace calls to c_val_print
15728 by calls to val_print.
15729
bdf779a0
JB
157302014-01-07 Joel Brobecker <brobecker@adacore.com>
15731
15732 * ada-valprint.c (print_record): Delete declaration.
15733 (adjust_type_signedness, ada_val_print_1): Likewise.
15734 (ada_val_print): Move function implementation down.
15735 (print_variant_part, print_field_values, print_record):
15736 Move function implementation up.
15737
c0d48811
JB
157382014-01-07 Joel Brobecker <brobecker@adacore.com>
15739
15740 * python/py-type.c (typy_get_name): New function.
15741 (type_object_getset): Add entry for attribute "name".
15742 * NEWS: Add entry mentioning this new attribute.
15743
c26e9cbb
YQ
157442014-01-07 Yao Qi <yao@codesourcery.com>
15745
15746 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15747 statement.
15748
0cc6f43d
YQ
157492014-01-07 Yao Qi <yao@codesourcery.com>
15750
15751 * gnu-nat.c (info_port_rights): Add qualifier const to
15752 argument args.
15753
eec03155
YQ
157542014-01-07 Yao Qi <yao@codesourcery.com>
15755
15756 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15757
f04a82ef
YQ
157582014-01-07 Yao Qi <yao@codesourcery.com>
15759
15760 * gnu-nat.c (make_inf) Update declaration.
15761 (make_inf): Make it static.
15762 (inf_set_traced): Likewise.
15763 (inf_port_to_thread, inf_task_died_status): Likewise.
15764
d57dda0a
YQ
157652014-01-07 Yao Qi <yao@codesourcery.com>
15766
15767 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15768
3aa8c969
YQ
157692014-01-07 Yao Qi <yao@codesourcery.com>
15770
15771 * gnu-nat.c (_initialize_gnu_nat): Declare.
15772
94123b4f
YQ
157732014-01-07 Yao Qi <yao@codesourcery.com>
15774
15775 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15776 'enum bfd_endian'.
15777 (struct gdbarch_info) <byte_order>: Change type to
15778 'enum bfd_endian'.
15779 <byte_order_for_code>: Likewise.
15780 * gdbarch.c, gdbarch.h: Regenerated.
15781
dc81d70a
TT
157822014-01-06 Sasha Smundak <asmundak@google.com>
15783
15784 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15785
cc2f3c35
TT
157862014-01-06 Tom Tromey <tromey@redhat.com>
15787
15788 * doublest.c (convert_doublest_to_floatformat): Use const, not
15789 CONST.
15790 * somread.c (som_symtab_read): Likewise.
15791
adcf2eed
HZ
157922014-01-07 Hui Zhu <hui@codesourcery.com>
15793
15794 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15795 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15796 (gdb_bfd_fopen): Ditto.
15797 (gdb_bfd_openr): Ditto.
15798 (gdb_bfd_openw): Ditto.
15799 (gdb_bfd_openr_iovec): Ditto.
15800 (gdb_bfd_fdopenr): Ditto.
15801 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15802 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15803 with xstrdup.
15804 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15805 with xstrdup.
15806 * symfile-mem.c (symbol_file_add_from_memory): Removed
15807 gdb_bfd_stash_filename.
15808
50722198
DE
158092014-01-03 Doug Evans <dje@google.com>
15810
15811 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15812 output.
15813
2fa4b862
JB
158142014-01-01 Joel Brobecker <brobecker@adacore.com>
15815
15816 Update year range in copyright notice of all files.
15817
28498c42
JB
158182014-01-01 Joel Brobecker <brobecker@adacore.com>
15819
15820 * top.c (print_gdb_version): Set copyright year to 2014.
15821
7b6e1046
JB
158222014-01-01 Joel Brobecker <brobecker@adacore.com>
15823
15824 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15825
df96af55 15826For older changes see ChangeLog-2013.
c906108c
SS
15827\f
15828Local Variables:
15829mode: change-log
15830left-margin: 8
15831fill-column: 74
15832version-control: never
57da7796 15833coding: utf-8
c906108c 15834End:
This page took 2.395631 seconds and 4 git commands to generate.