ee1f93413abedb9eb4a74a85c7938508babb4430
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (micromips_instruction_has_delay_slot): When
4 !mustbe32 also return 1 for 32-bit instructions.
5 (mips16_instruction_has_delay_slot): Likewise. Add an
6 explanatory comment.
7
8 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
9
10 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
11 symbols special.
12
13 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
14
15 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
16 update comments.
17 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
18 for the breakpoint's address. Don't preinitialize `placed_size'.
19 (insert_bp_location): Set `reqstd_address' rather than
20 `placed_address'.
21 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
22 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
23 address.
24 (bkpt_remove_location): Likewise.
25 (deprecated_insert_raw_breakpoint): Likewise.
26 (deprecated_remove_raw_breakpoint): Likewise.
27 (find_single_step_breakpoint): Likewise.
28 * mem-break.c (default_memory_insert_breakpoint): Use
29 `reqstd_address' for the breakpoint's address. Don't set
30 `placed_address' or `placed_size' if breakpoint contents couldn't
31 have been determined.
32 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
33 the breakpoint's address.
34 (remote_insert_hw_breakpoint): Likewise. Don't set
35 `placed_address' or `placed_size' if breakpoint couldn't have been
36 set.
37 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
38 `reqstd_address' for the breakpoint's address.
39 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
40 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
41 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
42 * microblaze-linux-tdep.c
43 (microblaze_linux_memory_remove_breakpoint): Likewise.
44 * monitor.c (monitor_insert_breakpoint): Likewise.
45 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
46 (procfs_insert_hw_breakpoint): Likewise.
47 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
48 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
49 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
50 * remote-mips.c (mips_insert_breakpoint): Likewise.
51 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
52
53 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
54
55 * valops.c (value_assign): Check for bit field assignments
56 before calling architecture-specific register value
57 conversion functions.
58
59 2014-10-03 Pierre Muller <muller@sourceware.org>
60
61 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
62
63 2014-10-02 Pedro Alves <palves@redhat.com>
64
65 * breakpoint.c (breakpoints_should_be_inserted_now): Use
66 threads_are_executing.
67 * breakpoint.h (breakpoints_should_be_inserted_now): Add
68 describing comment.
69 * gdbthread.h (threads_are_executing): Declare.
70 (handle_signal_stop) <random signals>: Don't print about the
71 signal here if stopping.
72 (end_stepping_range): Don't notify observers here.
73 (normal_stop): Update the thread list. If stopped by a random
74 signal or a stepping range ended, notify observers.
75 * thread.c (threads_executing): New global.
76 (init_thread_list): Clear 'threads_executing'.
77 (set_executing): Set or clear 'threads_executing'.
78 (threads_are_executing): New function.
79 (update_threads_executing): New function.
80 (update_thread_list): Use it.
81
82 2014-10-02 Pedro Alves <palves@redhat.com>
83
84 PR breakpoints/17431
85 * breakpoint.c (update_breakpoints_after_exec): Don't create
86 overlay, longjmp, std terminate nor exception breakpoints here.
87
88 2014-10-02 Pedro Alves <palves@redhat.com>
89
90 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
91 Adjust comments.
92 * inferior.c (find_inferior_for_program_space): Give preference to
93 the current inferior.
94 * inferior.h (find_inferior_for_program_space): Update comment.
95 * progspace.c (switch_to_program_space_and_thread): Prefer the
96 current inferior if it's bound to the program space requested. If
97 the inferior found doesn't have a PID yet, don't bother looking up
98 a thread.
99 * progspace.h (switch_to_program_space_and_thread): Adjust
100 comment.
101 * thread.c (any_thread_of_process, any_live_thread_of_process):
102 Give preference to the current thread.
103
104 2014-10-01 Pedro Alves <palves@redhat.com>
105
106 * breakpoint.c (insert_bp_location): Error out if inserting a
107 software breakpoint at a read-only address.
108 * target.c (memory_xfer_check_region): New function, factored out
109 from ...
110 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
111 ULONGEST.
112 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
113 against the memory region attributes.
114
115 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
116
117 * NEWS: Announce new exit-code field in -list-thread-groups
118 output.
119 * inferior.c (exit_inferior_1): Don't clear exit code.
120 (inferior_appeared): Clear exit code.
121 * mi/mi-main.c (print_one_inferior): Add printing of the exit
122 code.
123
124 2014-10-01 Pedro Alves <palves@redhat.com>
125
126 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
127 GENERATED" along with emacs/vi read-only markers.
128 * regformats/aarch64.dat: Regenerate.
129 * regformats/arm-with-iwmmxt.dat: Regenerate.
130 * regformats/arm-with-neon.dat: Regenerate.
131 * regformats/arm-with-vfpv2.dat: Regenerate.
132 * regformats/arm-with-vfpv3.dat: Regenerate.
133 * regformats/i386/amd64-avx-linux.dat: Regenerate.
134 * regformats/i386/amd64-avx.dat: Regenerate.
135 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
136 * regformats/i386/amd64-avx512.dat: Regenerate.
137 * regformats/i386/amd64-linux.dat: Regenerate.
138 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
139 * regformats/i386/amd64-mpx.dat: Regenerate.
140 * regformats/i386/amd64.dat: Regenerate.
141 * regformats/i386/i386-avx-linux.dat: Regenerate.
142 * regformats/i386/i386-avx.dat: Regenerate.
143 * regformats/i386/i386-avx512-linux.dat: Regenerate.
144 * regformats/i386/i386-avx512.dat: Regenerate.
145 * regformats/i386/i386-linux.dat: Regenerate.
146 * regformats/i386/i386-mmx-linux.dat: Regenerate.
147 * regformats/i386/i386-mmx.dat: Regenerate.
148 * regformats/i386/i386-mpx-linux.dat: Regenerate.
149 * regformats/i386/i386-mpx.dat: Regenerate.
150 * regformats/i386/i386.dat: Regenerate.
151 * regformats/i386/x32-avx-linux.dat: Regenerate.
152 * regformats/i386/x32-avx.dat: Regenerate.
153 * regformats/i386/x32-avx512-linux.dat: Regenerate.
154 * regformats/i386/x32-avx512.dat: Regenerate.
155 * regformats/i386/x32-linux.dat: Regenerate.
156 * regformats/i386/x32.dat: Regenerate.
157 * regformats/microblaze-with-stack-protect.dat: Regenerate.
158 * regformats/mips-dsp-linux.dat: Regenerate.
159 * regformats/mips-linux.dat: Regenerate.
160 * regformats/mips64-dsp-linux.dat: Regenerate.
161 * regformats/mips64-linux.dat: Regenerate.
162 * regformats/nios2-linux.dat: Regenerate.
163 * regformats/rs6000/powerpc-32.dat: Regenerate.
164 * regformats/rs6000/powerpc-32l.dat: Regenerate.
165 * regformats/rs6000/powerpc-64l.dat: Regenerate.
166 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
167 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
168 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
169 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
170 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
171 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
172 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
173 * regformats/s390-linux32.dat: Regenerate.
174 * regformats/s390-linux32v1.dat: Regenerate.
175 * regformats/s390-linux32v2.dat: Regenerate.
176 * regformats/s390-linux64.dat: Regenerate.
177 * regformats/s390-linux64v1.dat: Regenerate.
178 * regformats/s390-linux64v2.dat: Regenerate.
179 * regformats/s390-te-linux64.dat: Regenerate.
180 * regformats/s390x-linux64.dat: Regenerate.
181 * regformats/s390x-linux64v1.dat: Regenerate.
182 * regformats/s390x-linux64v2.dat: Regenerate.
183 * regformats/s390x-te-linux64.dat: Regenerate.
184 * regformats/tic6x-c62x-linux.dat: Regenerate.
185 * regformats/tic6x-c62x.dat: Regenerate.
186 * regformats/tic6x-c64x-linux.dat: Regenerate.
187 * regformats/tic6x-c64x.dat: Regenerate.
188 * regformats/tic6x-c64xp-linux.dat: Regenerate.
189 * regformats/tic6x-c64xp.dat: Regenerate.
190
191 2014-10-01 Pedro Alves <palves@redhat.com>
192
193 * features/Makefile: Update comments.
194 (XMLTOC): List all xml files we build C files from.
195 (clean-cfiles): New rule.
196
197 2014-10-01 Pedro Alves <palves@redhat.com>
198
199 * features/i386/amd64-avx512-linux.c: Regenerate.
200 * features/i386/amd64-avx512.c: Regenerate.
201 * features/i386/x32-avx512-linux.c: Regenerate.
202 * features/i386/x32-avx512.c: Regenerate.
203
204 2014-10-01 Pedro Alves <palves@redhat.com>
205
206 * features/Makefile (WHICH): Remove arm-with-m,
207 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
208
209 2014-10-01 Pedro Alves <palves@redhat.com>
210
211 * features/Makefile (clean): New rule.
212
213 2014-10-01 Pedro Alves <palves@redhat.com>
214
215 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
216 (zmm14h): Add missing end quotes.
217
218 2014-10-01 Pedro Alves <palves@redhat.com>
219
220 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
221 * features/aarch64.c: Regenerate.
222
223 2014-09-30 Don Breazeal <donb@codesourcery.com>
224
225 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
226 code so as to work with follow_fork_inferior.
227 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
228 (inf_ttrace_create_inferior): Remove reference to
229 inf_ttrace_vfork_ppid.
230 (inf_ttrace_attach): Ditto.
231 (inf_ttrace_detach): Ditto.
232 (inf_ttrace_kill): Use current_inferior instead of
233 inf_ttrace_vfork_ppid.
234 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
235 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
236 inferior away from the parent.
237 * infrun.c (follow_fork): Call follow_fork_inferior instead of
238 target_follow_fork.
239 (follow_fork_inferior): New function.
240 (follow_inferior_reset_breakpoints): Make function static.
241 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
242 * linux-nat.c (linux_child_follow_fork): Move target-independent
243 code to infrun.c:follow_fork_inferior.
244
245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
246
247 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
248 * gdbarch.c: Regenerate.
249 * gdbarch.h: Likewise.
250 * corelow.c (sniff_core_bfd): Drop presence check for deleted
251 gdbarch method 'regset_from_core_section'.
252 (get_core_register_section): Remove handling for the case that
253 regset == NULL and regset_from_core_section is defined.
254 (get_core_registers): Drop check for deleted method.
255 * procfs.c (procfs_do_thread_registers): Adjust comment.
256
257 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
258
259 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
260 (linux_nat_make_corefile_notes): Remove.
261 (linux_target_install_ops): Do not set target method
262 'make_corefile_notes'.
263 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
264 Remove field.
265 (linux_corefile_thread_callback): Instead of args->collect, call
266 linux_collect_thread_registers.
267 (linux_make_corefile_notes): Remove 'collect' parameter. Return
268 NULL unless there is a regset iterator.
269 (linux_make_corefile_notes_1): Remove.
270 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
271 by linux_make_corefile_notes.
272 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
273
274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
275
276 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
277 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
278 Remove.
279 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
280
281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
282
283 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
284 (xtensa_iterate_over_regset_sections): New.
285 (xtensa_gdbarch_init): Adjust gdbarch initialization.
286
287 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
288
289 * vax-tdep.c (vax_regset_from_core_section): Remove.
290 (vax_iterate_over_regset_sections): New.
291 (vax_gdbarch_init): Adjust gdbarch initialization.
292
293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
294
295 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
296 (tilegx_regset_from_core_section): Remove.
297 (tilegx_iterate_over_regset_sections): New.
298 (tilegx_linux_init_abi): Adjust gdbarch initialization.
299
300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
301
302 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
303 (sparc_iterate_over_regset_sections): New.
304 (sparc32_gdbarch_init): Adjust gdbarch initialization.
305 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
306 targets.
307 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
308 (sparc64fbsd_init_abi): Call fbsd_init_abi.
309 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
310 target method 'make_corefile_notes'.
311
312 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
313
314 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
315 'sizeof_gregset' and 'sizeof_fpregset'.
316 * sh-tdep.c (sh_regset_from_core_section): Remove.
317 (sh_iterate_over_regset_sections): New.
318 (sh_gdbarch_init): Adjust gdbarch initialization.
319 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
320 sizeof_fpregset.
321 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
322 'sizeof_gregset'.
323
324 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
325
326 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
327 (score7_linux_iterate_over_regset_sections): New.
328 (score_gdbarch_init): Adjust gdbarch initialization.
329
330 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
331
332 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
333 FreeBSD targets.
334 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
335 method 'make_corefile_notes'.
336 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
337 (ppcfbsd_regset_from_core_section): Remove.
338 (ppcfbsd_iterate_over_regset_sections): New.
339 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
340 initialization.
341 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
342 (ppcnbsd_iterate_over_regset_sections): New.
343 (ppcnbsd_init_abi): Adjust.
344 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
345 (ppcobsd_iterate_over_regset_sections): New.
346 (ppcobsd_init_abi): Adjust.
347 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
348 (rs6000_aix_iterate_over_regset_sections): New.
349 (rs6000_aix_init_osabi): Adjust.
350
351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
352
353 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
354 (nios2_regset_from_core_section): Remove.
355 (nios2_iterate_over_regset_sections): New.
356 (nios2_linux_init_abi): Adjust gdbarch initialization.
357
358 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
359
360 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
361 (am33_iterate_over_regset_sections): New.
362 (am33_linux_init_osabi): Adjust gdbarch initialization.
363
364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
365
366 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
367 (mips_linux_iterate_over_regset_sections): New.
368 (mips_linux_init_abi): Adjust gdbarch initialization.
369 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
370 (mips64obsd_iterate_over_regset_sections): New.
371 (mips64obsd_init_abi): Adjust.
372 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
373 (mipsnbsd_iterate_over_regset_sections): New.
374 (mipsnbsd_init_abi): Adjust.
375
376 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
377
378 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
379 (m88k_iterate_over_regset_sections): New.
380 (m88k_gdbarch_init): Adjust gdbarch initialization.
381
382 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
383
384 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
385 (ia64_linux_iterate_over_regset_sections): New.
386 (ia64_linux_init_abi): Adjust gdbarch initialization.
387
388 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
389
390 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
391 (m68kbsd_iterate_over_regset_sections): New.
392 (m68kbsd_init_abi): Adjust gdbarch initialization.
393 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
394 (m68k_linux_iterate_over_regset_sections): New.
395 (m68k_linux_init_abi): Adjust gdbarch initialization.
396
397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
398
399 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
400 (m32r_linux_regset_from_core_section): Remove.
401 (m32r_linux_iterate_over_regset_sections): New.
402 (m32r_linux_init_abi): Adjust gdbarch initialization.
403
404 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
405
406 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
407 (amd64obsd_iterate_over_regset_sections): New.
408 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
409 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
410 Remove.
411 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
412 regset_from_core_section initialization.
413 * i386-tdep.c (i386_regset_from_core_section): Remove.
414 (i386_iterate_over_regset_sections): New.
415 (i386_gdbarch_init): Adjust gdbarch initialization.
416 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
417 (i386_iterate_over_regset_sections): New prototype.
418 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
419 Remove.
420 (i386obsd_aout_iterate_over_regset_sections): New.
421 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
422 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
423 targets.
424 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
425 (amd64fbsd_init_abi): Call fbsd_init_abi.
426 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
427 (i386fbsd4_init_abi): Call fbsd_init_abi.
428 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
429 target method 'make_corefile_notes'.
430 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
431
432 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
433
434 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
435 (hppa_hpux_iterate_over_regset_sections): New.
436 (hppa_hpux_init_abi): Adjust gdbarch initialization.
437 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
438 (hppa_linux_iterate_over_regset_sections): New.
439 (hppa_linux_init_abi): Adjust.
440 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
441 (hppanbsd_iterate_over_regset_sections): New.
442 (hppanbsd_init_abi): Adjust.
443 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
444 (hppaobsd_iterate_over_regset_sections): New.
445 (hppaobsd_init_abi): Adjust.
446
447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
448
449 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
450 (frv_linux_iterate_over_regset_sections): New.
451 (frv_linux_init_abi): Adjust gdbarch initialization.
452
453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
454
455 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
456 (armbsd_iterate_over_regset_sections): New prototype.
457 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
458 (armbsd_iterate_over_regset_sections): New.
459 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
460 initialization.
461
462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
463
464 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
465 (alpha_linux_iterate_over_regset_sections): New.
466 (alpha_linux_init_abi): Adjust gdbarch initialization.
467 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
468 prototype.
469 (alphanbsd_iterate_over_regset_sections): New prototype.
470
471 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
472
473 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
474 Remove.
475 (aarch64_linux_iterate_over_regset_sections): New.
476 (aarch64_linux_init_abi): Adjust gdbarch initialization.
477
478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
479
480 * fbsd-tdep.c: New file.
481 * fbsd-tdep.h: New file.
482 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
483 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
484 (ALLDEPFILES): Add fbsd-tdep.c.
485
486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
487
488 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
489 parameter.
490 * gdbarch.h: Regenerate.
491 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
492 iterator.
493 (get_core_register_section): Add parameter 'regset' and use it, if
494 set. Add parameter 'min_size' and verify the bfd section size
495 against it.
496 (get_core_registers_cb): Add parameter 'regset' and pass it to
497 get_core_register section. For the "standard" register sections
498 ".reg" and ".reg2", set an appropriate default for human_name.
499 (get_core_registers): Don't abort when the gdbarch has an iterator
500 but no regset_from_core_section. Add NULL/0 for parameters
501 'regset'/'min_size' in calls to get_core_register_section.
502 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
503 'regset' and use it instead of calling the
504 regset_from_core_section gdbarch method.
505 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
506 * i386-tdep.c (i386_supply_xstateregset)
507 (i386_collect_xstateregset, i386_xstateregset): Moved to
508 i386-linux-tdep.c.
509 (i386_regset_from_core_section): Drop handling for .reg-xfp and
510 .reg-xstate.
511 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
512 core file support only if the regset iterator hasn't been set.
513 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
514 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
515 Moved from i386-tdep.c and renamed to *_linux*.
516 (i386_linux_iterate_over_regset_sections): Add regset parameter to
517 each callback invocation. Allow any .reg-xstate size when reading
518 from a core file.
519 * amd64-tdep.c (amd64_supply_xstateregset)
520 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
521 amd64-linux-tdep.c.
522 (amd64_regset_from_core_section): Remove.
523 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
524 install an amd64-specific regset_from_core_section gdbarch method.
525 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
526 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
527 Moved from amd64-tdep.c and renamed to *_linux*.
528 (amd64_linux_iterate_over_regset_sections): Add regset parameter
529 to each callback invocation. Allow any .reg-xstate size when
530 reading from a core file.
531 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
532 (arm_linux_iterate_over_regset_sections): Add regset parameter to
533 each callback invocation.
534 (arm_linux_init_abi): No longer set the regset_from_core_section
535 gdbarch method.
536 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
537 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
538 each callback invocation.
539 (ppc_linux_init_abi): No longer set the regset_from_core_section
540 gdbarch method.
541 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
542 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
543 (s390_regset_from_core_section): Remove.
544 (s390_iterate_over_regset_sections): Add regset parameter to each
545 callback invocation.
546 (s390_gdbarch_init): No longer set the regset_from_core_section
547 gdbarch method. Drop initialization of deleted tdep fields.
548
549 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
550
551 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
552 (amd64_linux_iterate_over_regset_sections): New.
553 (amd64_linux_init_abi_common): Don't install the regset section
554 list, but the new iterator in gdbarch.
555 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
556 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
557 (arm_linux_iterate_over_regset_sections): ...here. New function.
558 (arm_linux_init_abi): Set iterator instead of section list.
559 * corelow.c (get_core_registers_cb): New function, logic moved
560 from...
561 (get_core_registers): ...loop body here. Use new iterator method
562 instead of walking through the regset section list.
563 * gdbarch.sh: Remove 'core_regset_sections'. New method
564 'iterate_over_regset_sections'. New typedef
565 'iterate_over_regset_sections_cb'.
566 * gdbarch.c: Regenerate.
567 * gdbarch.h: Likewise.
568 * i386-linux-tdep.c (i386_linux_regset_sections)
569 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
570 Remove.
571 (i386_linux_iterate_over_regset_sections): New.
572 (i386_linux_init_abi): Don't choose a regset section list, but
573 install new iterator in gdbarch.
574 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
575 (linux_collect_regset_section_cb): New function, logic moved
576 from...
577 (linux_collect_thread_registers): ...loop body here. Use iterator
578 method instead of walking through list.
579 (linux_make_corefile_notes_1): Check for presence of iterator
580 method instead of regset section list.
581 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
582 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
583 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
584 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
585 (ppc_linux_iterate_over_regset_sections): ...here. New function.
586 (ppc_linux_init_abi): Don't choose from above regset section
587 lists, but install new iterator in gdbarch.
588 * regset.h (struct core_regset_section): Remove.
589 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
590 have_linux_v1, have_linux_v2, and have_tdb.
591 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
592 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
593 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
594 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
595 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
596 (s390_iterate_over_regset_sections): ...here. New function. Use
597 new tdep fields.
598 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
599 regset section lists, but install new iterator.
600
601 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
602
603 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
604
605 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
606
607 * progspace.c (print_program_space): Don't prune program spaces
608 before printing them.
609
610 2014-09-25 Pedro Alves <palves@redhat.com>
611
612 * infrun.c (user_visible_resume_ptid): Don't check
613 singlestep_breakpoints_inserted_p.
614
615 2014-09-25 Pedro Alves <palves@redhat.com>
616
617 * breakpoint.c (should_be_inserted): Add debug output.
618
619 2014-09-25 Pedro Alves <palves@redhat.com>
620
621 * infrun.c (stepping_past_instruction_at)
622 (clear_exit_convenience_vars): Point at infrun.h instead of
623 inferior.h.
624 (handle_signal_stop): Fix typo.
625
626 2014-09-24 Yao Qi <yao@codesourcery.com>
627
628 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
629 bitmask.
630
631 2014-09-22 Gary Benson <gbenson@redhat.com>
632
633 * target.c (target_stop): Updated comment.
634
635 2014-09-22 Gary Benson <gbenson@redhat.com>
636
637 * target/target.h (target_stop_ptid): Renamed as...
638 (target_stop_and_wait): New function. Updated comment.
639 All uses updated.
640 (target_continue_ptid): Renamed as...
641 (target_continue_no_signal): New function. Updated comment.
642 All uses updated.
643
644 2014-09-22 Pedro Alves <palves@redhat.com>
645
646 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
647 and "auto" merged.
648 * breakpoint.c (enum ugll_insert_mode): New enum.
649 (always_inserted_mode): Now a plain boolean.
650 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
651 (breakpoints_always_inserted_mode): Delete.
652 (breakpoints_should_be_inserted_now): New function.
653 (insert_breakpoints): Pass UGLL_INSERT to
654 update_global_location_list instead of calling
655 insert_breakpoint_locations manually.
656 (create_solib_event_breakpoint_1): New, factored out from ...
657 (create_solib_event_breakpoint): ... this.
658 (create_and_insert_solib_event_breakpoint): Use
659 create_solib_event_breakpoint_1 instead of calling
660 insert_breakpoint_locations manually.
661 (update_global_location_list): Change parameter type from boolean
662 to enum ugll_insert_mode. All callers adjusted. Adjust to use
663 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
664 (update_global_location_list_nothrow): Change parameter type from
665 boolean to enum ugll_insert_mode.
666 (_initialize_breakpoint): "breakpoint always-inserted" option is
667 now a boolean command. Update help text.
668 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
669 (breakpoints_should_be_inserted_now): New declaration.
670 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
671 Remove breakpoints_always_inserted_mode check.
672 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
673 * remote.c (remote_start_remote): Likewise.
674
675 2014-09-22 Pedro Alves <palves@redhat.com>
676
677 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
678 (insert_breakpoints): Don't call insert_breakpoint_locations here.
679 Instead, pass UGLL_INSERT to update_global_location_list.
680 (update_global_location_list): Change parameter type from boolean
681 to enum ugll_insert_mode. All callers adjusted. Adjust to use
682 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
683 (create_solib_event_breakpoint_1): New, factored out from ...
684 (create_solib_event_breakpoint): ... this.
685 (create_and_insert_solib_event_breakpoint): Use
686 create_solib_event_breakpoint_1 instead of calling
687 insert_breakpoint_locations manually.
688 (update_global_location_list): Handle UGLL_INSERT.
689
690 2014-09-22 Pedro Alves <palves@redhat.com>
691
692 * breakpoint.c (enum ugll_insert_mode): New enum.
693 (update_global_location_list)
694 (update_global_location_list_nothrow): Change parameter type from
695 boolean to enum ugll_insert_mode. All callers adjusted.
696
697 2014-09-19 Joel Brobecker <brobecker@adacore.com>
698
699 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
700 SystemTap support in GDB.
701
702 2014-09-19 Don Breazeal <donb@codesourcery.com>
703
704 * linux-nat.c (linux_handle_extended_wait): Call
705 linux_ptrace_get_extended_event.
706 (wait_lwp): Call linux_is_extended_waitstatus.
707 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
708 and linux_is_extended_waitstatus.
709 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
710 linux_ptrace_get_extended_event.
711 (linux_ptrace_get_extended_event): New function.
712 (linux_is_extended_waitstatus): New function.
713 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
714 (linux_is_extended_waitstatus): New declarations.
715
716 2014-09-19 Yao Qi <yao@codesourcery.com>
717
718 * dwarf2read.c (dwarf_decode_lines): Update declaration.
719 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
720 comments. Callers update.
721 (dwarf_decode_lines): Likewise.
722 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
723 comments. Skip the line table if 'lowpc' is greater than
724 'address'. Don't check
725 dwarf2_per_objfile->has_section_at_zero.
726
727 2014-09-18 Doug Evans <dje@google.com>
728
729 * NEWS: Mention new "producer" attribute of gdb.Symtab.
730 * python/py-symtab.c (stpy_get_producer): New function.
731 (symtab_object_getset): Add "producer" attribute.
732
733 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
734
735 PR gdb/17384
736 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
737 (do_captured_read_memory_integer): Remove.
738 (safe_read_memory_integer): Use target_read_memory directly instead
739 of catching errors in do_captured_read_memory_integer.
740
741 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
742
743 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
744 not gdb/doc.
745
746 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
747
748 * objc-lang.c (find_implementation_from_class): Remove dead code.
749
750 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
751
752 PR cli/7233
753 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
754 "fprintf_unfiltered (gdb_stdlog...)".
755
756 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
757
758 PR breakpoints/12526
759 * breakpoint.h (struct watchpoint): New fields val_bitpos and
760 val_bitsize.
761 * breakpoint.c (watch_command_1): Use these fields to retain
762 bitfield information.
763 (extract_bitfield_from_watchpoint_value): New function.
764 (watchpoint_check): Use it.
765 (update_watchpoint): Use it. Optimize the address and length of a
766 HW watchpoint pointing to a bitfield.
767 * value.h (unpack_value_bitfield): New prototype.
768 * value.c (unpack_value_bitfield): Make extern.
769
770 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
771
772 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
773 x86-dregs.o.
774 * gnu-nat.c (inf_threads): New function.
775 * gnu-nat.h (inf_threads_ftype): New typedef.
776 (inf_threads): New declaration.
777 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
778 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
779 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
780 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
781 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
782 (i386_gnu_dr_get_control): New functions.
783 (reg_addr): New structure.
784 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
785 i386 debugging register hooks.
786 * NEWS: Mention this.
787
788 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
789
790 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
791 vector data transfer instructions.
792 (arm_record_coproc_data_proc): Updated.
793
794 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
795
796 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
797 arm_record_exreg_ld_st_insn.
798 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
799 load/store insns.
800
801 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
802
803 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
804 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
805 processing instructions.
806
807 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
808
809 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
810 for advance SIMD struct ld/st insn.
811 (thumb2_record_decode_insn_handler): Replace stub handler with
812 thumb2_record_asimd_struct_ld_st.
813
814 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
815
816 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
817 for asimd, vfp and coprocessor insns.
818 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
819 and coprocessor insns.
820 (thumb2_record_coproc_insn): New function.
821 (thumb2_record_decode_insn_handler): Update coprocessor insns record
822 handlers.
823 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
824 opcode 110 insns.
825
826 2014-09-13 Doug Evans <xdje42@gmail.com>
827
828 * NEWS: Mention new "queue-signal" command.
829 * infcmd.c (queue_signal_command): New function.
830 (_initialize_infcmd): Add new queue-signal command.
831
832 2014-09-13 Doug Evans <xdje42@gmail.com>
833
834 * linux-nat.c (wait_lwp): Add debugging printf.
835 (linux_nat_wait_1): Ditto.
836
837 2014-09-12 Pedro Alves <palves@redhat.com>
838
839 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
840 (create_and_insert_solib_event_breakpoint): New functions.
841 * breakpoint.h (create_and_insert_solib_event_breakpoint)
842 (remove_solib_event_breakpoints_at_next_stop): New declarations.
843 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
844 (remove_dbx_link_breakpoint): Delete function.
845 (insert_dbx_link_bpt_in_file): Use
846 create_and_insert_solib_event_breakpoint instead of
847 deprecated_insert_raw_breakpoint.
848 (procfs_wait): Don't check whether we hit __dbx_link here.
849 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
850 here.
851 * solib-irix.c (base_breakpoint): Delete global.
852 (disable_break): Delete function.
853 (enable_break): Use create_solib_event_breakpoint
854 instead of deprecated_insert_raw_breakpoint.
855 (irix_solib_handle_event): New function.
856 (irix_solib_create_inferior_hook): Don't run the target or disable
857 the mapping-complete breakpoint here.
858 (_initialize_irix_solib): Install irix_solib_handle_event as
859 so_ops->handle_event hook.
860
861 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
862 Ulrich Weigand  <uweigand@de.ibm.com>
863
864 PR tdep/17379
865 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
866 instead of read_memory_unsigned_integer.
867
868 2014-09-12 Gary Benson <gbenson@redhat.com>
869
870 * nat/linux-waitpid.c: Include common-defs.h.
871 [GDBSERVER]: Add FIXME comment.
872 [!GDBSERVER]: Don't include defs.h or signal.h.
873 (linux_debug) [!GDBSERVER]: Remove empty block.
874
875 2014-09-12 Gary Benson <gbenson@redhat.com>
876
877 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
878 Don't include defs.h or server.h.
879
880 2014-09-12 Gary Benson <gbenson@redhat.com>
881
882 * nat/linux-btrace.c: Include common-defs.h.
883 Don't include defs.h, server.h or gdbthread.h.
884 * nat/linux-btrace.h (struct target_ops): New forward declaration.
885
886 2014-09-12 Gary Benson <gbenson@redhat.com>
887
888 * common/agent.c: Include common-defs.h.
889 Don't include defs.h or server.h.
890 * common/buffer.c: Likewise.
891 * common/common-debug.c: Likewise.
892 * common/common-utils.c: Likewise.
893 * common/errors.c: Likewise.
894 * common/filestuff.c: Likewise.
895 * common/format.c: Likewise.
896 * common/gdb_vecs.c: Likewise.
897 * common/print-utils.c: Likewise.
898 * common/ptid.c: Likewise.
899 * common/rsp-low.c: Likewise.
900 * common/signals.c: Likewise.
901 * common/vec.c: Likewise.
902 * common/xml-utils.c: Likewise.
903 * nat/linux-osdata.c: Likewise.
904 * nat/linux-procfs.c: Likewise.
905 * nat/linux-ptrace.c: Likewise.
906 * nat/mips-linux-watch.c: Likewise.
907 * target/waitstatus.c: Likewise.
908
909 2014-09-12 Tom Tromey <tromey@redhat.com>
910 Gary Benson <gbenson@redhat.com>
911
912 * common/common-regcache.h: New file.
913 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
914 * regcache.h: Include common-regcache.h.
915 (regcache_read_pc): Don't declare.
916 * regcache.c (get_thread_regcache_for_ptid): New function.
917 * nat/linux-btrace.c: Don't include regcache.h.
918 Include common-regcache.h.
919 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
920
921 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
922
923 * regcache.h (struct regset): Declare.
924
925 2014-09-11 Pedro Alves <palves@redhat.com>
926
927 PR gdb/17347
928 * main.c: Include "infrun.h".
929 (catch_command_errors, catch_command_errors_const): Wait for the
930 foreground command to complete.
931 * top.c (maybe_wait_sync_command_done): New function, factored out
932 from ...
933 (maybe_wait_sync_command_done): ... here.
934 * top.h (maybe_wait_sync_command_done): New declaration.
935
936 2014-09-11 Tom Tromey <tromey@redhat.com>
937 Gary Benson <gbenson@redhat.com>
938
939 * common/symbol.h: New file.
940 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
941 * minsyms.c (find_minimal_symbol_address): New function.
942 * common/agent.c: Include common/symbol.h.
943 [!GDBSERVER]: Don't include objfiles.h.
944 (agent_look_up_symbols): Use find_minimal_symbol_address.
945
946 2014-09-11 Gary Benson <gbenson@redhat.com>
947
948 * target/target.h (target_stop_ptid, target_continue_ptid):
949 Declare.
950 * target.c (target_stop_ptid, target_continue_ptid): New
951 functions.
952 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
953 (agent_run_command): Always use target_stop_ptid and
954 target_continue_ptid.
955
956 2014-09-11 Tom Tromey <tromey@redhat.com>
957 Gary Benson <gbenson@redhat.com>
958
959 * target/target.h: New file.
960 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
961 * target.h: Include target/target.h.
962 (target_read_memory, target_write_memory): Don't declare.
963 * target.c (target_read_uint32): New function.
964 * common/agent.c: Include target/target.h.
965 [!GDBSERVER]: Don't include target.h.
966 (helper_thread_id): Type changed to uint32_t.
967 (agent_get_helper_thread_id): Use target_read_uint32.
968 (agent_run_command): Always use target_read_memory and
969 target_write_memory.
970 (agent_capability): Type changed to uint32_t.
971 (agent_capability_check): Use target_read_uint32.
972
973 2014-09-11 Gary Benson <gbenson@redhat.com>
974
975 * common/common-debug.h (show_debug_regs): Declare.
976 * common/common-debug.c (show_debug_regs): Define.
977 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
978 all uses with show_debug_regs. Replace all uses that considered
979 debug_hw_points as a multi-value integer with straight boolean
980 uses.
981 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
982 with show_debug_regs.
983 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
984 all uses with show_debug_regs.
985 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
986 uses with show_debug_regs.
987
988 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
989
990 * findvar.c (address_from_register): Handle targets requiring
991 a special conversion routine even for plain pointer types.
992
993 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
994
995 * rs6000-nat.c (exec_one_dummy_insn): Remove.
996 (store_register): Do not call exec_one_dummy_insn.
997
998 2014-09-10 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1001 dereference it first. Use value_enclosing_type instead of
1002 value_type.
1003 (ada_array_length): Likewise.
1004
1005 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1006
1007 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1008 Adjust function implementation and documentation accordingly.
1009 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1010 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1011 Update call to ada_value_ptr_subscript.
1012
1013 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1014
1015 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1016 instead of VAL's type.
1017
1018 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1019
1020 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1021
1022 2014-09-09 Doug Evans <xdje42@gmail.com>
1023
1024 PR guile/17367
1025 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1026 last parameter to pkg-config, not first.
1027 * configure.ac: Pass --with-guile provided pkg-config path to
1028 GDB_GUILE_PROGRAM_NAMES.
1029 * configure: Regenerate.
1030
1031 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1032
1033 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1034 Bertazi".
1035
1036 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1037
1038 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1039 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1040 the list of sections determining GDB_OSABI_IRIX.
1041
1042 2014-09-09 James Hogan <james.hogan@imgtec.com>
1043
1044 * MAINTAINERS (Write After Approval): Add "James Hogan".
1045
1046 2014-09-09 James Hogan <james.hogan@imgtec.com>
1047
1048 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1049
1050 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1051
1052 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1053
1054 2014-09-08 Doug Evans <xdje42@gmail.com>
1055
1056 PR 17247
1057 * guile.c: #include <signal.h>.
1058 (_initialize_guile): Block SIGCHLD while initializing Guile.
1059
1060 Replaces the following, which is reverted.
1061
1062 2014-07-26 Doug Evans <xdje42@gmail.com>
1063
1064 PR 17185
1065 * configure.ac: Add check for header gc/gc.h.
1066 Add check for function setenv.
1067 * configure: Regenerate.
1068 * config.in: Regenerate.
1069 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1070
1071 2014-09-08 Doug Evans <xdje42@gmail.com>
1072
1073 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1074 with named constant. Fix style of pointer comparison.
1075 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1076
1077 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1078
1079 PR gdb/17035
1080 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1081 decide whether we display the command on "show user".
1082 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1083 printing command name.
1084 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1085 * cli/cli-decode.c (cli_user_command_p): Create helper function
1086 to verify whether cmd_list_element is a user-defined command.
1087
1088 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1089
1090 PR python/17355
1091 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1092 Fix goto out of TRY_CATCH.
1093
1094 2014-09-06 Doug Evans <xdje42@gmail.com>
1095 Tom Tromey <tromey@redhat.com>
1096
1097 PR 15276
1098 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1099 $_any_caller_matches.
1100 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1101 * python/lib/gdb/function/caller_is.py: New file.
1102
1103 2014-09-06 Doug Evans <xdje42@gmail.com>
1104
1105 * infcmd.c (program_info): Fix typo.
1106
1107 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1108
1109 PR gdb/17235
1110 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1111 'number'. New variable 'has_digit'. Rewrite code to deal with
1112 subexpressions on SDT probes.
1113
1114 2014-09-04 Pedro Alves <palves@redhat.com>
1115
1116 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1117 the input is only one character long.
1118
1119 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1120
1121 PR fortran/17237
1122 * f-valprint.c (f_val_print): Specify the correct print option to
1123 use when printing integer values.
1124
1125 2014-09-04 Gary Benson <gbenson@redhat.com>
1126
1127 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1128 Remove code to cope with LWPs wrapped as PIDs.
1129 Add assertions to ensure no wrapped LWPs are passed.
1130
1131 2014-09-04 Pedro Alves <palves@redhat.com>
1132
1133 * value.c (value_ranges_copy_adjusted): New function, factored out
1134 from ...
1135 (value_contents_copy_raw): ... here.
1136 (unpack_value_bits_as_long_1): Rename back to ...
1137 (unpack_bits_as_long): ... this. Remove 'original_value' and
1138 'result' parameters. Change return type to LONGEST.
1139 (unpack_value_bits_as_long): Delete.
1140 (unpack_value_field_as_long_1): Delete.
1141 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1142 (unpack_value_bitfield): New function.
1143 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1144 (value_fetch_lazy): Use unpack_value_bitfield.
1145 * value.h (unpack_value_bits_as_long): Delete declaration.
1146
1147 2014-09-03 Sasha Smundak <asmundak@google.com>
1148
1149 * python/py-frame.c (frapy_read_register): New function.
1150
1151 2014-09-03 James Hogan <james.hogan@imgtec.com>
1152
1153 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1154 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1155
1156 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1157
1158 PR python/16699
1159 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1160 function.
1161 (add_cmd): Set "completer_handle_brkchars" to NULL.
1162 * cli/cli-decode.h (struct cmd_list_element)
1163 <completer_handle_brkchars>: New field.
1164 * command.h (completer_ftype_void): New typedef.
1165 (set_cmd_completer_handle_brkchars): New prototype.
1166 * completer.c (set_gdb_completion_word_break_characters): New
1167 function.
1168 (complete_line_internal): Call "completer_handle_brkchars"
1169 callback from command.
1170 * completer.h: Include "command.h".
1171 (set_gdb_completion_word_break_characters): New prototype.
1172 * python/py-cmd.c (cmdpy_completer_helper): New function.
1173 (cmdpy_completer_handle_brkchars): New function.
1174 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1175 (cmdpy_init): Set completer_handle_brkchars to
1176 cmdpy_completer_handle_brkchars.
1177
1178 2014-09-03 Gary Benson <gbenson@redhat.com>
1179
1180 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1181 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1182 Loop conditions changed to equivalent form.
1183 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1184 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1185 ALL_DEBUG_ADDRESS_REGISTERS.
1186
1187 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1188
1189 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1190 description fix.
1191
1192 2014-09-02 Doug Evans <dje@google.com>
1193
1194 * typeprint.c (find_global_typedef): Fix comment.
1195
1196 2014-09-02 Gary Benson <gbenson@redhat.com>
1197
1198 * i386-nat.h: Renamed as...
1199 * x86-nat.h: New file. All type, function and variable name
1200 prefixes changed from "i386_" to "x86_". All references updated.
1201 * i386-nat.c: Renamed as...
1202 * x86-nat.c: New file. All type, function and variable name
1203 prefixes changed from "i386_" to "x86_". All references updated.
1204 * common/i386-xstate.h: Renamed as...
1205 * common/x86-xstate.h: New file. All type, function and variable
1206 name prefixes changed from "i386_" to "x86_". All references
1207 updated.
1208 * nat/i386-cpuid.h: Renamed as...
1209 * nat/x86-cpuid.h: New file. All type, function and variable name
1210 prefixes changed from "i386_" to "x86_". All references updated.
1211 * nat/i386-gcc-cpuid.h: Renamed as...
1212 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1213 name prefixes changed from "i386_" to "x86_". All references
1214 updated.
1215 * nat/i386-dregs.h: Renamed as...
1216 * nat/x86-dregs.h: New file. All type, function and variable name
1217 prefixes changed from "i386_" to "x86_". All references updated.
1218 * nat/i386-dregs.c: Renamed as...
1219 * nat/x86-dregs.c: New file. All type, function and variable name
1220 prefixes changed from "i386_" to "x86_". All references updated.
1221
1222 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1223
1224 * varobj.c (_initialize_varobj): Move to the end of file.
1225
1226 2014-08-29 Gary Benson <gbenson@redhat.com>
1227
1228 * common/common-exceptions.h: New file.
1229 * common/common-exceptions.c: Likewise.
1230 * Makefile.in (SFILES): Add common/common-exceptions.c.
1231 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1232 (COMMON_OBS): Add common-exceptions.o.
1233 (common-exceptions.o): New rule.
1234 * exceptions.h (common-exceptions.h): Include.
1235 (gdb_setjmp.h): Do not include.
1236 (return_reason): Moved to common-exceptions.h.
1237 (enum return_reason): Likewise.
1238 (RETURN_MASK): Likewise.
1239 (typedef return_mask): Likewise.
1240 (enum errors): Likewise.
1241 (struct gdb_exception): Likewise.
1242 (exceptions_state_mc_init): Likewise.
1243 (exceptions_state_mc_action_iter): Likewise.
1244 (exceptions_state_mc_action_iter_1): Likewise.
1245 (TRY_CATCH): Likewise.
1246 (throw_exception): Likewise.
1247 (throw_verror): Likewise.
1248 (throw_vquit): Likewise.
1249 (throw_error): Likewise.
1250 (throw_quit): Likewise.
1251 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1252 (enum catcher_action): Likewise.
1253 (struct catcher): Likewise.
1254 (current_catcher): Likewise.
1255 (catcher_list_size): Likewise.
1256 (exceptions_state_mc_init): Likewise.
1257 (catcher_pop): Likewise.
1258 (exceptions_state_mc): Likewise.
1259 (exceptions_state_mc_action_iter): Likewise.
1260 (exceptions_state_mc_action_iter_1): Likewise.
1261 (throw_exception): Likewise.
1262 (exception_messages): Likewise.
1263 (exception_messages_size): Likewise.
1264 (throw_it): Likewise.
1265 (throw_verror): Likewise.
1266 (throw_vquit): Likewise.
1267 (throw_error): Likewise.
1268 (throw_quit): Likewise.
1269 (prepare_to_throw_exception): New function.
1270
1271 2014-08-29 Gary Benson <gbenson@redhat.com>
1272
1273 * common/gdb_setjmp.h: New file.
1274 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1275 * configure.ac: Move sigsetjmp check...
1276 * common/common.m4: ...here.
1277 * configure: Regenerate.
1278 * cp-support.c (SIGJMP_BUF): Delete.
1279 (SIGSETJMP): Likewise.
1280 (SIGLONGJMP): Likewise.
1281 * exceptions.h (gdb_setjmp.h): Include.
1282 (setjmp.h): Do not include.
1283 (EXCEPTIONS_SIGJMP_BUF): Delete.
1284 (EXCEPTIONS_SIGSETJMP): Likewise.
1285 (EXCEPTIONS_SIGLONGJMP): Likewise.
1286 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1287 from gdb_setjmp.h.
1288 * exceptions.c: Likewise.
1289
1290 2014-08-29 Gary Benson <gbenson@redhat.com>
1291
1292 * cleanups.h: Moved to...
1293 * common/cleanups.h: New file.
1294 * cleanups.c: Moved to...
1295 * common/cleanups.c: New file. Include common-defs.h and
1296 cleanups.h. Do not include defs.h.
1297 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1298 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1299 (cleanups.o): New rule.
1300
1301 2014-08-29 Gary Benson <gbenson@redhat.com>
1302
1303 * common/errors.h (internal_warning): New declaration.
1304 (internal_vwarning): Likewise.
1305 * common/errors.c (internal_warning): New function.
1306 * utils.h (internal_warning): Don't declare.
1307 (internal_vwarning): Likewise.
1308 * utils.c (internal_warning): Removed.
1309
1310 2014-08-29 Gary Benson <gbenson@redhat.com>
1311
1312 * main.c (captured_main): Use warning during startup.
1313 Prefix startup warning messages with command name.
1314
1315 2014-08-29 Gary Benson <gbenson@redhat.com>
1316
1317 * main.c (captured_main): Handle usage errors with error.
1318
1319 2014-08-29 Gary Benson <gbenson@redhat.com>
1320
1321 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1322 exit pair with a call to error. Wrap the message with _().
1323
1324 2014-08-29 Gary Benson <gbenson@redhat.com>
1325
1326 * main.c (captured_main): Replace a fprintf/exit
1327 pair with a call to error. Wrap the message with _().
1328
1329 2014-08-29 Gary Benson <gbenson@redhat.com>
1330
1331 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1332 pairs with calls to error. Wrap the message with _().
1333
1334 2014-08-29 Gary Benson <gbenson@redhat.com>
1335
1336 * utils.c (vwarning): Protect calls to target_terminal_ours
1337 and wrap_here.
1338
1339 2014-08-29 Gary Benson <gbenson@redhat.com>
1340
1341 * exceptions.c (print_flush): Protect calls to
1342 target_terminal_ours and wrap_here.
1343
1344 2014-08-29 Gary Benson <gbenson@redhat.com>
1345
1346 * utils.h (filtered_printing_initialized): New declaration.
1347 * utils.c (abort_with_message): New function.
1348 (internal_vproblem): Use abort_with_message for first level
1349 recursive internal problems, and if gdb_stderr is not set up.
1350 Protect calls to target_terminal_ours, begin_line and query.
1351
1352 2014-08-28 Doug Evans <dje@google.com>
1353
1354 * symtab.c (in_prologue): Move definition to better spot.
1355 (skip_prologue_using_sal): Ditto.
1356
1357 2014-08-28 Doug Evans <dje@google.com>
1358
1359 * symtab.c (find_function_start_sal): Move definition to better spot.
1360
1361 2014-08-28 Yao Qi <yao@codesourcery.com>
1362
1363 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1364 found_stack_adjust in forward scan. Remove condition check
1365 on found_stack_adjust which is always true. Indent the code.
1366
1367 2014-08-28 Yao Qi <yao@codesourcery.com>
1368
1369 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1370 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1371 (dwarf_decode_lines): Remove argument
1372 want_line_info. Remove condition check on want_line_info.
1373 Callers update.
1374
1375 2014-08-27 Doug Evans <dje@google.com>
1376
1377 * dwarf2read.c (dwarf_record_line): Fix typo.
1378
1379 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1380
1381 * target.h (struct target_ops::to_terminal_save_ours): Remove
1382 declaration.
1383 (target_terminal_save_ours): Remove macro.
1384 * target-delegates.c: Regenerate.
1385 * inf-child.c (inf_child_target): Don't set the nonexistent
1386 field to_terminal_save_ours.
1387 * inferior.h (child_terminal_save_ours): Remove declaration.
1388 * terminal.h (gdb_save_tty_state): New declaration.
1389 * inflow.c (child_terminal_save_ours): Rename to ...
1390 (gdb_save_tty_state): ... this.
1391 * tui/tui.c: Include terminal.h.
1392 (tui_enable): Use gdb_save_tty_state instead of
1393 target_terminal_save_ours.
1394 (tui_disable): Likewise.
1395
1396 2014-08-25 Doug Evans <dje@google.com>
1397
1398 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1399 Pass NULL instead of 0 for context pointer.
1400
1401 2014-08-25 Yao Qi <yao@codesourcery.com>
1402
1403 * dwarf2read.c: Fix grammatical error.
1404
1405 2014-08-24 Yao Qi <yao@codesourcery.com>
1406
1407 * dwarf2read.c (scan_partial_symbols): Update comments.
1408 Rename argument 'need_pc' with 'set_addrmap'.
1409 (add_partial_namespace): Rename argument 'need_pc' with
1410 'set_addrmap'.
1411 (add_partial_module): Likewise.
1412 (add_partial_subprogram): Likewise. Update comments.
1413 (dwarf2_name): Fix typo.
1414
1415 2014-08-22 Doug Evans <dje@google.com>
1416
1417 PR 17276
1418 * dwarf2read.c (dwarf_record_line_p): New function.
1419 (dwarf_decode_lines_1): Ignore subsequent line number entries
1420 for the same line if any entry had a non-zero discriminator.
1421
1422 2014-08-22 Doug Evans <dje@google.com>
1423
1424 * buildsym.h (record_line_ftype): New typedef.
1425 (record_line): Use it.
1426 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1427 (dwarf_decode_lines_1): Call them.
1428
1429 2014-08-22 Yao Qi <yao@codesourcery.com>
1430
1431 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1432 (ctf_end): Remove code.
1433
1434 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1435
1436 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1437 (linux_make_corefile_notes): call update_thread_list, protected against
1438 exceptions.
1439
1440 2014-08-21 Pedro Alves <palves@redhat.com>
1441
1442 * infcmd.c (attach_command): Remove comment.
1443
1444 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1445
1446 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1447 unsigned LONGEST to ULONGEST.
1448
1449 2014-08-20 Pedro Alves <palves@redhat.com>
1450
1451 * Makefile.in (check-read1): New rule.
1452
1453 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1454
1455 * value.c (value_from_contents_and_address): Strip resolved_type's
1456 typedef layers before checking its TYPE_DATA_LOCATION.
1457
1458 2014-08-20 Pedro Alves <palves@redhat.com>
1459
1460 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1461
1462 2014-08-20 Yao Qi <yao@codesourcery.com>
1463
1464 * amd64-tdep.c (amd64_classify): Add a blank line after the
1465 example. Move "*/" to a new line.
1466 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1467 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1468 * dwarf2read.c (psymtab_include_file_name): Likewise.
1469
1470 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1471 Pedro Alves <palves@redhat.com>
1472
1473 PR symtab/14604
1474 PR symtab/14605
1475 * ada-lang.c (coerce_unspec_val_to_type): Use
1476 value_contents_copy_raw.
1477 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1478 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1479 * cp-valprint.c (cp_print_value_fields): Let the common printing
1480 code handle optimized out values.
1481 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1482 * d-valprint.c (dynamic_array_type): Use
1483 value_bits_any_optimized_out.
1484 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1485 check_any_valid fields.
1486 (check_pieced_value_bits): Delete and inline ...
1487 (check_pieced_synthetic_pointer): ... here.
1488 (check_pieced_value_validity): Delete.
1489 (check_pieced_value_invalid): Delete.
1490 (pieced_value_funcs): Remove check_validity and check_any_valid
1491 fields.
1492 (read_pieced_value): Use mark_value_bits_optimized_out.
1493 (write_pieced_value): Switch to use
1494 mark_value_bytes_optimized_out.
1495 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1496 of assuming the whole value is optimized out.
1497 * findvar.c (read_frame_register_value): Remove special handling
1498 of optimized out registers.
1499 (value_from_register): Use mark_value_bytes_optimized_out.
1500 * frame-unwind.c (frame_unwind_got_optimized): Use
1501 mark_value_bytes_optimized_out.
1502 * jv-valprint.c (java_value_print): Adjust.
1503 (java_print_value_fields): Let the common printing code handle
1504 optimized out values.
1505 * mips-tdep.c (mips_print_register): Remove special handling of
1506 optimized out registers.
1507 * opencl-lang.c (lval_func_check_validity): Delete.
1508 (lval_func_check_any_valid): Delete.
1509 (opencl_value_funcs): Remove check_validity and check_any_valid
1510 fields.
1511 * p-valprint.c (pascal_object_print_value_fields): Let the common
1512 printing code handle optimized out values.
1513 * stack.c (read_frame_arg): Remove special handling of optimized
1514 out values. Fetch both VAL and ENTRYVAL before comparing
1515 contents. Adjust to value_available_contents_eq rename.
1516 * valprint.c (valprint_check_validity)
1517 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1518 (val_print_array_elements): Adjust.
1519 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1520 (value_bits_any_optimized_out): New function.
1521 (value_entirely_covered_by_range_vector): New function, factored
1522 out from value_entirely_unavailable.
1523 (value_entirely_unavailable): Reimplement.
1524 (value_entirely_optimized_out): New function.
1525 (insert_into_bit_range_vector): New function, factored out from
1526 mark_value_bits_unavailable.
1527 (mark_value_bits_unavailable): Reimplement.
1528 (struct ranges_and_idx): New struct.
1529 (find_first_range_overlap_and_match): New function, factored out
1530 from value_available_contents_bits_eq.
1531 (value_available_contents_bits_eq): Rename to ...
1532 (value_contents_bits_eq): ... this. Check both unavailable
1533 contents and optimized out contents.
1534 (value_available_contents_eq): Rename to ...
1535 (value_contents_eq): ... this.
1536 (allocate_value_lazy): Remove reference to the old optimized_out
1537 boolean.
1538 (allocate_optimized_out_value): Use
1539 mark_value_bytes_optimized_out.
1540 (require_not_optimized_out): Adjust to check whether the
1541 optimized_out vec is empty.
1542 (ranges_copy_adjusted): New function, factored out from
1543 value_contents_copy_raw.
1544 (value_contents_copy_raw): Also copy the optimized out ranges.
1545 Assert the destination ranges aren't optimized out.
1546 (value_contents_copy): Update comment, remove call to
1547 require_not_optimized_out.
1548 (value_contents_equal): Adjust to check whether the optimized_out
1549 vec is empty.
1550 (set_value_optimized_out, value_optimized_out_const): Delete.
1551 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1552 New functions.
1553 (value_entirely_optimized_out, value_bits_valid): Delete.
1554 (value_copy): Take a VEC copy of the 'optimized_out' field.
1555 (value_primitive_field): Remove special handling of optimized out.
1556 (value_fetch_lazy): Assert that lazy values have no unavailable
1557 regions. Use value_bits_any_optimized_out. Remove some special
1558 handling for optimized out values.
1559 * value.h: Add intro comment about <optimized out> and
1560 <unavailable>.
1561 (struct lval_funcs): Remove check_validity and check_any_valid
1562 fields.
1563 (set_value_optimized_out, value_optimized_out_const): Remove.
1564 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1565 New declarations.
1566 (value_bits_any_optimized_out): New declaration.
1567 (value_bits_valid): Delete declaration.
1568 (value_available_contents_eq): Rename to ...
1569 (value_contents_eq): ... this, and extend comments.
1570
1571 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1572
1573 Fix -fsanitize=address on unreadable inferior strings.
1574 * valprint.c (val_print_string): Fix access before BUFFER.
1575
1576 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1577
1578 * target.c (target_struct_size): Remove.
1579 (target_struct_allocsize): Remove.
1580 (DEFAULT_ALLOCSIZE): Remove.
1581 (target_ops_p): New typedef.
1582 (DEF_VEC_P (target_ops_p)): New vector type.
1583 (target_structs): Change type to VEC (target_ops_p).
1584 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1585 (find_default_run_target): Rewrite for loop following changes to
1586 target_structs.
1587
1588 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1589
1590 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1591 Adjust code accordingly. Adjust function description comment.
1592
1593 2014-08-19 Yao Qi <yao@codesourcery.com>
1594
1595 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1596 types.
1597
1598 2014-08-19 Alan Modra <amodra@gmail.com>
1599
1600 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1601 * config.in: Regenerate.
1602 * configure: Regenerate.
1603
1604 2014-08-19 Tom Tromey <tromey@redhat.com>
1605 Gary Benson <gbenson@redhat.com>
1606
1607 * common/common-debug.h: New file.
1608 * common/common-debug.c: Likewise.
1609 * debug.c: Likewise.
1610 * Makefile.in (SFILES): Add common/common-debug.c.
1611 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1612 (COMMON_OBS): Add common-debug.o and debug.o.
1613 (common-debug.o): New rule.
1614 * common/common-defs.h: Include common-debug.h.
1615 * common/agent.c (debug_agent_printf): New function.
1616 (DEBUG_AGENT): Redefine.
1617 * nat/i386-dregs.c (debug_printf): Undefine.
1618
1619 2014-08-19 Gary Benson <gbenson@redhat.com>
1620
1621 * common/common-defs.h: Include print-utils.h.
1622 * utils.h: Do not include print-utils.h.
1623
1624 2014-08-19 Tom Tromey <tromey@redhat.com>
1625 Gary Benson <gbenson@redhat.com>
1626
1627 * common/common-types.h: New file.
1628 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1629 * common/common-defs.h: Include common-types.h.
1630 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1631 (ULONGEST): Remove.
1632
1633 2014-08-19 Tom Tromey <tromey@redhat.com>
1634 Gary Benson <gbenson@redhat.com>
1635
1636 * common/errors.h: New file.
1637 * common/errors.c: Likewise.
1638 * Makefile.in (SFILES): Add common/errors.c.
1639 (HFILES_NO_SRCDIR): Add common/errors.h.
1640 (COMMON_OBS): Add errors.o.
1641 (errors.o): New rule.
1642 * common/common-defs.h: Include errors.h.
1643 * utils.h (perror_with_name, error, verror, warning, vwarning):
1644 Don't declare.
1645 * common/common-utils.h: (malloc_failure, internal_error):
1646 Likewise.
1647
1648 2014-08-19 Gary Benson <gbenson@redhat.com>
1649
1650 * utils.c (internal_vproblem): Always print the message.
1651
1652 2014-08-18 Doug Evans <dje@google.com>
1653
1654 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1655
1656 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1657
1658 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1659 Return 0 if TYPE is dynamic.
1660 (print_range): Add handling of dynamic ranges.
1661
1662 2014-08-18 Keven Boell <keven.boell@intel.com>
1663 Joel Brobecker <brobecker@adacore.com>
1664
1665 * gdbtypes.h (struct main_type): Add field "data_location".
1666 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1667 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1668 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1669 a dynamic data location.
1670 (resolve_dynamic_type): Add DW_AT_data_location handling.
1671 (copy_recursive, copy_type): Copy the data_location information
1672 when present.
1673 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1674 * value.c (value_from_contents_and_address): Add
1675 DW_AT_data_location handling.
1676
1677 2014-08-18 Keven Boell <keven.boell@intel.com>
1678 Joel Brobecker <brobecker@adacore.com>
1679
1680 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1681 field "get_object_address".
1682 * dwarf2expr.c (execute_stack_op): Add handling for
1683 DW_OP_push_object_address.
1684 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1685 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1686 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1687 (dwarf_expr_get_obj_addr): New function.
1688 (dwarf_expr_ctx_funcs): Add get_object_address field.
1689 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1690 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1691 (dwarf2_evaluate_property): Add parameter "address". Use it.
1692 (needs_get_obj_addr): New function.
1693 (needs_frame_ctx_funcs): Add get_object_address field.
1694 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1695 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1696 (resolve_dynamic_array): Likewise.
1697
1698 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1699
1700 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1701 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1702 fixed value for records and unions for which some GNAT encodings
1703 are present.
1704
1705 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1706
1707 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1708 rewrite to avoid "else if" and "else" constructs. Should be
1709 a no-op in practice.
1710
1711 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1712
1713 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1714 of lexical block.
1715
1716 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1717
1718 PR c++/17132
1719 * eval.c: Update all calls to find_overload_match.
1720 * valarith.c: Likewise.
1721 (value_user_defined_cpp_op, value_user_defined_op): New
1722 argument NOSIDE. Update all callers.
1723 * valops.c (find_overload_match): New argument NOSIDE.
1724 * value.h (find_overload_match): Update signature.
1725
1726 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1727
1728 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1729 'items' methods instead of 'iteritems' method on dictionaries.
1730
1731 2014-08-15 Doug Evans <dje@google.com>
1732
1733 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1734 closer to use.
1735
1736 2014-08-15 Doug Evans <dje@google.com>
1737
1738 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1739
1740 2014-08-15 Doug Evans <dje@google.com>
1741
1742 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1743
1744 2014-08-15 Doug Evans <dje@google.com>
1745
1746 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1747 unused.
1748
1749 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1750
1751 * dcache.h: Include target.h, to avoid compile time warnings.
1752
1753 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1754
1755 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1756 frame_info" partial declaration.
1757 * gdbarch.h: Regenerate.
1758
1759 2014-08-15 Yao Qi <yao@codesourcery.com>
1760
1761 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1762 Add parameter 'decode_for_pst_p'. Callers update.
1763
1764 2014-08-13 Yao Qi <yao@codesourcery.com>
1765
1766 PR build/17104
1767 * configure.ac: Use local variable 'pos'.
1768 * configure: Regenerated.
1769
1770 2014-08-11 Doug Evans <dje@google.com>
1771
1772 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1773 message, it is redundant with "Reading symbols from ..." message.
1774
1775 2014-08-10 Doug Evans <xdje42@gmail.com>
1776
1777 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1778
1779 2014-08-09 Yao Qi <yao@codesourcery.com>
1780
1781 PR remote/9053
1782 * remote.c (remote_xfer_partial): Remove dead code.
1783
1784 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1785
1786 * ia64-linux-tdep.c: Include "regset.h".
1787 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1788 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1789 (ia64_linux_supply_fpregset): New function.
1790 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1791 (ia64_linux_regset_from_core_section): New function.
1792 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1793 method.
1794
1795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1796
1797 * m68klinux-tdep.c: Include "regset.h".
1798 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1799 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1800 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1801 (m68k_linux_regset_from_core_section): New function.
1802 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1803 method.
1804
1805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1806
1807 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1808 function. Move logic to...
1809 (tilegx_linux_regmap): ... this new register map.
1810 (tilegx_linux_regset): Refer to register map, replace supply
1811 method by regcache_supply_regset, and add collect method.
1812 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1813 TILEGX_FIRST_EASY_REGNUM.
1814
1815 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1816
1817 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1818 that calls regcache_supply_regset and handles the EPC register
1819 separately. Move main logic to...
1820 (score7_linux_gregmap): ... this new register map.
1821 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1822 (score7_linux_gregset): Refer to register map. Add collect method.
1823 (score7_linux_regset_from_core_section): Replace
1824 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1825 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1826 (struct regset): Delete unused forward declaraction.
1827 (struct pt_regs): Delete structure definition.
1828 (elf_gregset_t): Delete typedef.
1829
1830 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1831
1832 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1833 (nios2_core_regset): Add collect method.
1834
1835 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1836
1837 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1838 platform-independent and don't write to read-only input buffer.
1839 (m32r_linux_collect_gregset): New function.
1840 (m32r_linux_gregset): Add collect method.
1841
1842 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1843
1844 * hppa-linux-tdep.c (greg_map): Rename to...
1845 (hppa_linux_gregmap): ... this. Also convert to
1846 regcache_map_entry format.
1847 (hppa_linux_supply_regset): Delete function.
1848 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1849 (hppa_linux_fpregmap): ... this new register map.
1850 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1851 register map, replace supply method by regcache_supply_regset, and
1852 add collect method regcache_collect_regset.
1853
1854 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855
1856 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1857 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1858 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1859 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1860 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1861 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1862 (frv_linux_supply_gregset): Replace main logic by call to
1863 regcache_supply_regset, but keep clearing gr32-gr63.
1864 (frv_linux_supply_fpregset): Delete function.
1865 (frv_linux_gregset): Refer to appropriate register map and add
1866 regcache_collect_regset as the collect method.
1867 (frv_linux_fpregset): Likewise. Also exchange the supply method
1868 by regcache_supply_regset.
1869
1870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1871
1872 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1873 by call to alpha_supply_int_regs.
1874 (alpha_linux_collect_gregset): New function.
1875 (alpha_linux_supply_fpregset): Replace logic by call to
1876 alpha_supply_fp_regs.
1877 (alpha_linux_collect_fpregset): New function.
1878 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1879
1880 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1881
1882 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1883 by call to regcache_collect_regset.
1884 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1885 instead of aarch64_linux_supply_gregset/_fpregset.
1886 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1887 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1888 header file instead.
1889 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1890 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1891 functions. Move logic to ...
1892 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1893 register maps.
1894 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1895 refer to new register maps, replace *_regset_from_core by
1896 regcache_supply_regset, and also use regcache_collect_regset.
1897 * aarch64-linux-tdep.h: Include "regset.h".
1898 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1899 Delete prototypes.
1900 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1901 macros, moved from C source file.
1902 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1903 variable declarations.
1904
1905 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1906
1907 * s390-linux-nat.c: Include "regset.h".
1908 (regmap_gregset): Delete macro.
1909 (s390_64_regmap_gregset): New register map for
1910 regcache_supply/_collect_regset.
1911 (s390_64_gregset): New regset.
1912 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1913 (regmap_fpregset): Delete macro.
1914 (s390_native_supply, s390_native_collect): Delete functions.
1915 (supply_gregset, fill_gregset): Replace s390-specific regmap
1916 handling by a call to regcache_supply/_collect_regset.
1917 (supply_fpregset, fill_fpregset): Call regcache_supply/
1918 _collect_regset instead of s390_native_supply/_collect.
1919 (fetch_regset, store_regset): Likewise. Also change the last
1920 parameter to a regset instead of a regmap.
1921 (s390_linux_fetch_inferior_registers)
1922 (390_linux_store_inferior_registers): Adjust last parameter in
1923 calls to fetch_regset and store_regset.
1924 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1925 (s390_gregmap): ... this. Also make static const and convert to
1926 regcache_map_entry format.
1927 (s390x_regmap_gregset): Delete.
1928 (s390_regmap_fpregset): Rename to...
1929 (s390_fpregmap): ... this. Make static const and convert to
1930 regcache_map_entry format.
1931 (s390_regmap_upper, s390_regmap_last_break)
1932 (s390x_regmap_last_break, s390_regmap_system_call)
1933 (s390_regmap_tdb): Likewise.
1934 (s390_supply_regset, s390_collect_regset): Remove functions.
1935 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1936 s390_supply_regset.
1937 (s390_gregset, s390_fpregset, s390_upper_regset)
1938 (s390_last_break_regset, s390x_last_break_regset)
1939 (s390_system_call_regset, s390_tdb_regset): Make global and
1940 replace s390_supply/_collect_regset by regcache_supply/
1941 _collect_regset.
1942 (s390x_gregset): Delete.
1943 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1944 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1945 (s390_regmap_fpregset, s390_regmap_last_break)
1946 (s390x_regmap_last_break, s390_regmap_system_call)
1947 (s390_regmap_tdb): Delete global variable declarations.
1948 (s390_gregset, s390_fpregset, s390_last_break_regset)
1949 (s390x_last_break_regset, s390_system_call_regset)
1950 (s390_tdb_regset): New global variable declarations.
1951
1952 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1953
1954 * regcache.c: Include "regset.h".
1955 (regcache_transfer_regset): New local function.
1956 (regcache_supply_regset, regcache_collect_regset): New functions.
1957 * regcache.h (struct regcache_map_entry): New structure.
1958 (REGCACHE_MAP_SKIP): New enum value.
1959 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1960
1961 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1962
1963 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1964 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1965 (ppc_linux_collect_gregset ): Likewise.
1966 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1967 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1968 (ppc_collect_vrregset): Likewise.
1969 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1970 Likewise.
1971
1972 2014-08-07 Yao Qi <yao@codesourcery.com>
1973
1974 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1975 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1976 * remote.c (remote_read_bytes): Likewise.
1977
1978 2014-08-07 Yao Qi <yao@codesourcery.com>
1979
1980 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1981
1982 2014-08-07 Yao Qi <yao@codesourcery.com>
1983
1984 PR remote/17230
1985 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1986 TARGET_XFER_OK instead of 0.
1987
1988 2014-08-07 Gary Benson <gbenson@redhat.com>
1989
1990 * common/common-defs.h: Include errno.h.
1991 * defs.h: Do not include errno.h.
1992 * ada-typeprint.c: Likewise.
1993 * c-typeprint.c: Likewise.
1994 * core-regset.c: Likewise.
1995 * corefile.c: Likewise.
1996 * corelow.c: Likewise.
1997 * event-loop.c: Likewise.
1998 * f-typeprint.c: Likewise.
1999 * gnu-nat.c: Likewise.
2000 * go32-nat.c: Likewise.
2001 * i386gnu-nat.c: Likewise.
2002 * m2-typeprint.c: Likewise.
2003 * nat/linux-btrace.c: Likewise.
2004 * p-typeprint.c: Likewise.
2005 * procfs.c: Likewise.
2006 * remote-sim.c: Likewise.
2007 * rs6000-nat.c: Likewise.
2008 * target.c: Likewise.
2009 * typeprint.c: Likewise.
2010 * ui-file.c: Likewise.
2011 * valops.c: Likewise.
2012 * valprint.c: Likewise.
2013
2014 2014-08-07 Gary Benson <gbenson@redhat.com>
2015
2016 * common/common-defs.h: Include string.h.
2017 * aarch64-tdep.c: Do not include string.h.
2018 * ada-exp.y: Likewise.
2019 * ada-lang.c: Likewise.
2020 * ada-lex.l: Likewise.
2021 * ada-typeprint.c: Likewise.
2022 * ada-valprint.c: Likewise.
2023 * aix-thread.c: Likewise.
2024 * alpha-linux-tdep.c: Likewise.
2025 * alpha-mdebug-tdep.c: Likewise.
2026 * alpha-nat.c: Likewise.
2027 * alpha-osf1-tdep.c: Likewise.
2028 * alpha-tdep.c: Likewise.
2029 * alphanbsd-tdep.c: Likewise.
2030 * amd64-dicos-tdep.c: Likewise.
2031 * amd64-linux-tdep.c: Likewise.
2032 * amd64-nat.c: Likewise.
2033 * amd64-sol2-tdep.c: Likewise.
2034 * amd64fbsd-tdep.c: Likewise.
2035 * amd64obsd-tdep.c: Likewise.
2036 * arch-utils.c: Likewise.
2037 * arm-linux-nat.c: Likewise.
2038 * arm-linux-tdep.c: Likewise.
2039 * arm-tdep.c: Likewise.
2040 * arm-wince-tdep.c: Likewise.
2041 * armbsd-tdep.c: Likewise.
2042 * armnbsd-nat.c: Likewise.
2043 * armnbsd-tdep.c: Likewise.
2044 * armobsd-tdep.c: Likewise.
2045 * avr-tdep.c: Likewise.
2046 * ax-gdb.c: Likewise.
2047 * ax-general.c: Likewise.
2048 * bcache.c: Likewise.
2049 * bfin-tdep.c: Likewise.
2050 * breakpoint.c: Likewise.
2051 * build-id.c: Likewise.
2052 * buildsym.c: Likewise.
2053 * c-exp.y: Likewise.
2054 * c-lang.c: Likewise.
2055 * c-typeprint.c: Likewise.
2056 * c-valprint.c: Likewise.
2057 * charset.c: Likewise.
2058 * cli-out.c: Likewise.
2059 * cli/cli-cmds.c: Likewise.
2060 * cli/cli-decode.c: Likewise.
2061 * cli/cli-dump.c: Likewise.
2062 * cli/cli-interp.c: Likewise.
2063 * cli/cli-logging.c: Likewise.
2064 * cli/cli-script.c: Likewise.
2065 * cli/cli-setshow.c: Likewise.
2066 * cli/cli-utils.c: Likewise.
2067 * coffread.c: Likewise.
2068 * common/agent.c: Likewise.
2069 * common/buffer.c: Likewise.
2070 * common/buffer.h: Likewise.
2071 * common/common-utils.c: Likewise.
2072 * common/filestuff.c: Likewise.
2073 * common/filestuff.c: Likewise.
2074 * common/format.c: Likewise.
2075 * common/print-utils.c: Likewise.
2076 * common/rsp-low.c: Likewise.
2077 * common/signals.c: Likewise.
2078 * common/vec.h: Likewise.
2079 * common/xml-utils.c: Likewise.
2080 * core-regset.c: Likewise.
2081 * corefile.c: Likewise.
2082 * corelow.c: Likewise.
2083 * cp-abi.c: Likewise.
2084 * cp-name-parser.y: Likewise.
2085 * cp-support.c: Likewise.
2086 * cp-valprint.c: Likewise.
2087 * cris-tdep.c: Likewise.
2088 * d-exp.y: Likewise.
2089 * darwin-nat.c: Likewise.
2090 * dbxread.c: Likewise.
2091 * dcache.c: Likewise.
2092 * demangle.c: Likewise.
2093 * dicos-tdep.c: Likewise.
2094 * disasm.c: Likewise.
2095 * doublest.c: Likewise.
2096 * dsrec.c: Likewise.
2097 * dummy-frame.c: Likewise.
2098 * dwarf2-frame.c: Likewise.
2099 * dwarf2loc.c: Likewise.
2100 * dwarf2read.c: Likewise.
2101 * elfread.c: Likewise.
2102 * environ.c: Likewise.
2103 * eval.c: Likewise.
2104 * event-loop.c: Likewise.
2105 * exceptions.c: Likewise.
2106 * exec.c: Likewise.
2107 * expprint.c: Likewise.
2108 * f-exp.y: Likewise.
2109 * f-lang.c: Likewise.
2110 * f-typeprint.c: Likewise.
2111 * f-valprint.c: Likewise.
2112 * fbsd-nat.c: Likewise.
2113 * findcmd.c: Likewise.
2114 * findvar.c: Likewise.
2115 * fork-child.c: Likewise.
2116 * frame.c: Likewise.
2117 * frv-linux-tdep.c: Likewise.
2118 * frv-tdep.c: Likewise.
2119 * gdb.c: Likewise.
2120 * gdb_bfd.c: Likewise.
2121 * gdbarch.c: Likewise.
2122 * gdbarch.sh: Likewise.
2123 * gdbtypes.c: Likewise.
2124 * gnu-nat.c: Likewise.
2125 * gnu-v2-abi.c: Likewise.
2126 * gnu-v3-abi.c: Likewise.
2127 * go-exp.y: Likewise.
2128 * go-lang.c: Likewise.
2129 * go32-nat.c: Likewise.
2130 * guile/guile.c: Likewise.
2131 * guile/scm-auto-load.c: Likewise.
2132 * hppa-hpux-tdep.c: Likewise.
2133 * hppa-linux-nat.c: Likewise.
2134 * hppanbsd-tdep.c: Likewise.
2135 * hppaobsd-tdep.c: Likewise.
2136 * i386-cygwin-tdep.c: Likewise.
2137 * i386-dicos-tdep.c: Likewise.
2138 * i386-linux-tdep.c: Likewise.
2139 * i386-nto-tdep.c: Likewise.
2140 * i386-sol2-tdep.c: Likewise.
2141 * i386-tdep.c: Likewise.
2142 * i386bsd-tdep.c: Likewise.
2143 * i386gnu-nat.c: Likewise.
2144 * i386nbsd-tdep.c: Likewise.
2145 * i386obsd-tdep.c: Likewise.
2146 * i387-tdep.c: Likewise.
2147 * ia64-libunwind-tdep.c: Likewise.
2148 * ia64-linux-nat.c: Likewise.
2149 * inf-child.c: Likewise.
2150 * inf-ptrace.c: Likewise.
2151 * inf-ttrace.c: Likewise.
2152 * infcall.c: Likewise.
2153 * infcmd.c: Likewise.
2154 * inflow.c: Likewise.
2155 * infrun.c: Likewise.
2156 * interps.c: Likewise.
2157 * iq2000-tdep.c: Likewise.
2158 * irix5-nat.c: Likewise.
2159 * jv-exp.y: Likewise.
2160 * jv-lang.c: Likewise.
2161 * jv-typeprint.c: Likewise.
2162 * jv-valprint.c: Likewise.
2163 * language.c: Likewise.
2164 * linux-fork.c: Likewise.
2165 * linux-nat.c: Likewise.
2166 * lm32-tdep.c: Likewise.
2167 * m2-exp.y: Likewise.
2168 * m2-typeprint.c: Likewise.
2169 * m32c-tdep.c: Likewise.
2170 * m32r-linux-nat.c: Likewise.
2171 * m32r-linux-tdep.c: Likewise.
2172 * m32r-rom.c: Likewise.
2173 * m32r-tdep.c: Likewise.
2174 * m68hc11-tdep.c: Likewise.
2175 * m68k-tdep.c: Likewise.
2176 * m68kbsd-tdep.c: Likewise.
2177 * m68klinux-nat.c: Likewise.
2178 * m68klinux-tdep.c: Likewise.
2179 * m88k-tdep.c: Likewise.
2180 * machoread.c: Likewise.
2181 * macrocmd.c: Likewise.
2182 * main.c: Likewise.
2183 * mdebugread.c: Likewise.
2184 * mem-break.c: Likewise.
2185 * memattr.c: Likewise.
2186 * memory-map.c: Likewise.
2187 * mep-tdep.c: Likewise.
2188 * mi/mi-cmd-break.c: Likewise.
2189 * mi/mi-cmd-disas.c: Likewise.
2190 * mi/mi-cmd-env.c: Likewise.
2191 * mi/mi-cmd-stack.c: Likewise.
2192 * mi/mi-cmd-var.c: Likewise.
2193 * mi/mi-cmds.c: Likewise.
2194 * mi/mi-console.c: Likewise.
2195 * mi/mi-getopt.c: Likewise.
2196 * mi/mi-interp.c: Likewise.
2197 * mi/mi-main.c: Likewise.
2198 * mi/mi-parse.c: Likewise.
2199 * microblaze-rom.c: Likewise.
2200 * microblaze-tdep.c: Likewise.
2201 * mingw-hdep.c: Likewise.
2202 * minidebug.c: Likewise.
2203 * minsyms.c: Likewise.
2204 * mips-irix-tdep.c: Likewise.
2205 * mips-linux-tdep.c: Likewise.
2206 * mips-tdep.c: Likewise.
2207 * mips64obsd-tdep.c: Likewise.
2208 * mipsnbsd-tdep.c: Likewise.
2209 * mipsread.c: Likewise.
2210 * mn10300-linux-tdep.c: Likewise.
2211 * mn10300-tdep.c: Likewise.
2212 * monitor.c: Likewise.
2213 * moxie-tdep.c: Likewise.
2214 * mt-tdep.c: Likewise.
2215 * nat/linux-btrace.c: Likewise.
2216 * nat/linux-osdata.c: Likewise.
2217 * nat/linux-procfs.c: Likewise.
2218 * nat/linux-ptrace.c: Likewise.
2219 * nat/linux-waitpid.c: Likewise.
2220 * nbsd-tdep.c: Likewise.
2221 * nios2-linux-tdep.c: Likewise.
2222 * nto-procfs.c: Likewise.
2223 * nto-tdep.c: Likewise.
2224 * objc-lang.c: Likewise.
2225 * objfiles.c: Likewise.
2226 * opencl-lang.c: Likewise.
2227 * osabi.c: Likewise.
2228 * osdata.c: Likewise.
2229 * p-exp.y: Likewise.
2230 * p-lang.c: Likewise.
2231 * p-typeprint.c: Likewise.
2232 * parse.c: Likewise.
2233 * posix-hdep.c: Likewise.
2234 * ppc-linux-nat.c: Likewise.
2235 * ppc-sysv-tdep.c: Likewise.
2236 * ppcfbsd-tdep.c: Likewise.
2237 * ppcnbsd-tdep.c: Likewise.
2238 * ppcobsd-tdep.c: Likewise.
2239 * printcmd.c: Likewise.
2240 * procfs.c: Likewise.
2241 * prologue-value.c: Likewise.
2242 * python/py-auto-load.c: Likewise.
2243 * python/py-gdb-readline.c: Likewise.
2244 * ravenscar-thread.c: Likewise.
2245 * regcache.c: Likewise.
2246 * registry.c: Likewise.
2247 * remote-fileio.c: Likewise.
2248 * remote-m32r-sdi.c: Likewise.
2249 * remote-mips.c: Likewise.
2250 * remote-notif.c: Likewise.
2251 * remote-sim.c: Likewise.
2252 * remote.c: Likewise.
2253 * reverse.c: Likewise.
2254 * rs6000-aix-tdep.c: Likewise.
2255 * ser-base.c: Likewise.
2256 * ser-go32.c: Likewise.
2257 * ser-mingw.c: Likewise.
2258 * ser-pipe.c: Likewise.
2259 * ser-tcp.c: Likewise.
2260 * ser-unix.c: Likewise.
2261 * serial.c: Likewise.
2262 * sh-tdep.c: Likewise.
2263 * sh64-tdep.c: Likewise.
2264 * shnbsd-tdep.c: Likewise.
2265 * skip.c: Likewise.
2266 * sol-thread.c: Likewise.
2267 * solib-dsbt.c: Likewise.
2268 * solib-frv.c: Likewise.
2269 * solib-osf.c: Likewise.
2270 * solib-som.c: Likewise.
2271 * solib-spu.c: Likewise.
2272 * solib-target.c: Likewise.
2273 * solib.c: Likewise.
2274 * somread.c: Likewise.
2275 * source.c: Likewise.
2276 * sparc-nat.c: Likewise.
2277 * sparc-sol2-tdep.c: Likewise.
2278 * sparc-tdep.c: Likewise.
2279 * sparc64-tdep.c: Likewise.
2280 * sparc64fbsd-tdep.c: Likewise.
2281 * sparc64nbsd-tdep.c: Likewise.
2282 * sparcnbsd-tdep.c: Likewise.
2283 * spu-linux-nat.c: Likewise.
2284 * spu-multiarch.c: Likewise.
2285 * spu-tdep.c: Likewise.
2286 * stabsread.c: Likewise.
2287 * stack.c: Likewise.
2288 * std-regs.c: Likewise.
2289 * symfile.c: Likewise.
2290 * symmisc.c: Likewise.
2291 * symtab.c: Likewise.
2292 * target.c: Likewise.
2293 * thread.c: Likewise.
2294 * tilegx-linux-nat.c: Likewise.
2295 * tilegx-tdep.c: Likewise.
2296 * top.c: Likewise.
2297 * tracepoint.c: Likewise.
2298 * tui/tui-command.c: Likewise.
2299 * tui/tui-data.c: Likewise.
2300 * tui/tui-disasm.c: Likewise.
2301 * tui/tui-file.c: Likewise.
2302 * tui/tui-layout.c: Likewise.
2303 * tui/tui-out.c: Likewise.
2304 * tui/tui-regs.c: Likewise.
2305 * tui/tui-source.c: Likewise.
2306 * tui/tui-stack.c: Likewise.
2307 * tui/tui-win.c: Likewise.
2308 * tui/tui-windata.c: Likewise.
2309 * tui/tui-winsource.c: Likewise.
2310 * typeprint.c: Likewise.
2311 * ui-file.c: Likewise.
2312 * ui-out.c: Likewise.
2313 * user-regs.c: Likewise.
2314 * utils.c: Likewise.
2315 * v850-tdep.c: Likewise.
2316 * valarith.c: Likewise.
2317 * valops.c: Likewise.
2318 * valprint.c: Likewise.
2319 * value.c: Likewise.
2320 * varobj.c: Likewise.
2321 * vax-tdep.c: Likewise.
2322 * vaxnbsd-tdep.c: Likewise.
2323 * vaxobsd-tdep.c: Likewise.
2324 * windows-nat.c: Likewise.
2325 * xcoffread.c: Likewise.
2326 * xml-support.c: Likewise.
2327 * xstormy16-tdep.c: Likewise.
2328 * xtensa-linux-nat.c: Likewise.
2329
2330 2014-08-07 Gary Benson <gbenson@redhat.com>
2331
2332 * common/common-defs.h: Include gdb_assert.h.
2333 * aarch64-tdep.c: Do not include gdb_assert.h.
2334 * addrmap.c: Likewise.
2335 * aix-thread.c: Likewise.
2336 * alpha-linux-tdep.c: Likewise.
2337 * alpha-mdebug-tdep.c: Likewise.
2338 * alphanbsd-tdep.c: Likewise.
2339 * amd64-nat.c: Likewise.
2340 * amd64-tdep.c: Likewise.
2341 * amd64bsd-nat.c: Likewise.
2342 * amd64fbsd-nat.c: Likewise.
2343 * amd64fbsd-tdep.c: Likewise.
2344 * amd64nbsd-nat.c: Likewise.
2345 * amd64nbsd-tdep.c: Likewise.
2346 * amd64obsd-nat.c: Likewise.
2347 * amd64obsd-tdep.c: Likewise.
2348 * arch-utils.c: Likewise.
2349 * arm-tdep.c: Likewise.
2350 * armbsd-tdep.c: Likewise.
2351 * auxv.c: Likewise.
2352 * bcache.c: Likewise.
2353 * bfin-tdep.c: Likewise.
2354 * blockframe.c: Likewise.
2355 * breakpoint.c: Likewise.
2356 * bsd-kvm.c: Likewise.
2357 * bsd-uthread.c: Likewise.
2358 * buildsym.c: Likewise.
2359 * c-exp.y: Likewise.
2360 * c-lang.c: Likewise.
2361 * charset.c: Likewise.
2362 * cleanups.c: Likewise.
2363 * cli-out.c: Likewise.
2364 * cli/cli-decode.c: Likewise.
2365 * cli/cli-dump.c: Likewise.
2366 * cli/cli-logging.c: Likewise.
2367 * cli/cli-script.c: Likewise.
2368 * cli/cli-utils.c: Likewise.
2369 * coffread.c: Likewise.
2370 * common/common-utils.c: Likewise.
2371 * common/queue.h: Likewise.
2372 * common/signals.c: Likewise.
2373 * common/vec.h: Likewise.
2374 * complaints.c: Likewise.
2375 * completer.c: Likewise.
2376 * corelow.c: Likewise.
2377 * cp-abi.c: Likewise.
2378 * cp-name-parser.y: Likewise.
2379 * cp-namespace.c: Likewise.
2380 * cp-support.c: Likewise.
2381 * cris-tdep.c: Likewise.
2382 * dbxread.c: Likewise.
2383 * dictionary.c: Likewise.
2384 * doublest.c: Likewise.
2385 * dsrec.c: Likewise.
2386 * dummy-frame.c: Likewise.
2387 * dwarf2-frame-tailcall.c: Likewise.
2388 * dwarf2-frame.c: Likewise.
2389 * dwarf2expr.c: Likewise.
2390 * dwarf2loc.c: Likewise.
2391 * dwarf2read.c: Likewise.
2392 * eval.c: Likewise.
2393 * event-loop.c: Likewise.
2394 * exceptions.c: Likewise.
2395 * expprint.c: Likewise.
2396 * f-valprint.c: Likewise.
2397 * fbsd-nat.c: Likewise.
2398 * findvar.c: Likewise.
2399 * frame-unwind.c: Likewise.
2400 * frame.c: Likewise.
2401 * frv-tdep.c: Likewise.
2402 * gcore.c: Likewise.
2403 * gdb-dlfcn.c: Likewise.
2404 * gdb_bfd.c: Likewise.
2405 * gdbarch.c: Likewise.
2406 * gdbarch.sh: Likewise.
2407 * gdbtypes.c: Likewise.
2408 * gnu-nat.c: Likewise.
2409 * gnu-v3-abi.c: Likewise.
2410 * go-lang.c: Likewise.
2411 * guile/scm-exception.c: Likewise.
2412 * guile/scm-gsmob.c: Likewise.
2413 * guile/scm-lazy-string.c: Likewise.
2414 * guile/scm-math.c: Likewise.
2415 * guile/scm-pretty-print.c: Likewise.
2416 * guile/scm-safe-call.c: Likewise.
2417 * guile/scm-utils.c: Likewise.
2418 * guile/scm-value.c: Likewise.
2419 * h8300-tdep.c: Likewise.
2420 * hppa-hpux-nat.c: Likewise.
2421 * hppa-tdep.c: Likewise.
2422 * hppanbsd-tdep.c: Likewise.
2423 * hppaobsd-tdep.c: Likewise.
2424 * i386-darwin-nat.c: Likewise.
2425 * i386-darwin-tdep.c: Likewise.
2426 * i386-nto-tdep.c: Likewise.
2427 * i386-tdep.c: Likewise.
2428 * i386bsd-nat.c: Likewise.
2429 * i386fbsd-tdep.c: Likewise.
2430 * i386gnu-nat.c: Likewise.
2431 * i386nbsd-tdep.c: Likewise.
2432 * i386obsd-tdep.c: Likewise.
2433 * i387-tdep.c: Likewise.
2434 * ia64-libunwind-tdep.c: Likewise.
2435 * ia64-tdep.c: Likewise.
2436 * inf-ptrace.c: Likewise.
2437 * inf-ttrace.c: Likewise.
2438 * infcall.c: Likewise.
2439 * infcmd.c: Likewise.
2440 * infrun.c: Likewise.
2441 * inline-frame.c: Likewise.
2442 * interps.c: Likewise.
2443 * jv-lang.c: Likewise.
2444 * jv-typeprint.c: Likewise.
2445 * linux-fork.c: Likewise.
2446 * linux-nat.c: Likewise.
2447 * linux-thread-db.c: Likewise.
2448 * m32c-tdep.c: Likewise.
2449 * m32r-linux-nat.c: Likewise.
2450 * m32r-tdep.c: Likewise.
2451 * m68k-tdep.c: Likewise.
2452 * m68kbsd-nat.c: Likewise.
2453 * m68kbsd-tdep.c: Likewise.
2454 * m88k-tdep.c: Likewise.
2455 * machoread.c: Likewise.
2456 * macroexp.c: Likewise.
2457 * macrotab.c: Likewise.
2458 * maint.c: Likewise.
2459 * mdebugread.c: Likewise.
2460 * memory-map.c: Likewise.
2461 * mep-tdep.c: Likewise.
2462 * mi/mi-common.c: Likewise.
2463 * microblaze-tdep.c: Likewise.
2464 * mingw-hdep.c: Likewise.
2465 * mips-linux-nat.c: Likewise.
2466 * mips-linux-tdep.c: Likewise.
2467 * mips-tdep.c: Likewise.
2468 * mips64obsd-tdep.c: Likewise.
2469 * mipsnbsd-tdep.c: Likewise.
2470 * mn10300-linux-tdep.c: Likewise.
2471 * mn10300-tdep.c: Likewise.
2472 * moxie-tdep.c: Likewise.
2473 * mt-tdep.c: Likewise.
2474 * nat/linux-btrace.c: Likewise.
2475 * nat/linux-osdata.c: Likewise.
2476 * nat/linux-ptrace.c: Likewise.
2477 * nat/mips-linux-watch.c: Likewise.
2478 * nios2-linux-tdep.c: Likewise.
2479 * nios2-tdep.c: Likewise.
2480 * objc-lang.c: Likewise.
2481 * objfiles.c: Likewise.
2482 * obsd-nat.c: Likewise.
2483 * opencl-lang.c: Likewise.
2484 * osabi.c: Likewise.
2485 * parse.c: Likewise.
2486 * ppc-linux-nat.c: Likewise.
2487 * ppc-sysv-tdep.c: Likewise.
2488 * ppcfbsd-nat.c: Likewise.
2489 * ppcfbsd-tdep.c: Likewise.
2490 * ppcnbsd-nat.c: Likewise.
2491 * ppcnbsd-tdep.c: Likewise.
2492 * ppcobsd-nat.c: Likewise.
2493 * ppcobsd-tdep.c: Likewise.
2494 * printcmd.c: Likewise.
2495 * procfs.c: Likewise.
2496 * prologue-value.c: Likewise.
2497 * psymtab.c: Likewise.
2498 * python/py-lazy-string.c: Likewise.
2499 * python/py-value.c: Likewise.
2500 * regcache.c: Likewise.
2501 * reggroups.c: Likewise.
2502 * registry.c: Likewise.
2503 * remote-sim.c: Likewise.
2504 * remote.c: Likewise.
2505 * rs6000-aix-tdep.c: Likewise.
2506 * rs6000-tdep.c: Likewise.
2507 * s390-linux-tdep.c: Likewise.
2508 * score-tdep.c: Likewise.
2509 * ser-base.c: Likewise.
2510 * ser-mingw.c: Likewise.
2511 * sh-tdep.c: Likewise.
2512 * sh64-tdep.c: Likewise.
2513 * solib-darwin.c: Likewise.
2514 * solib-spu.c: Likewise.
2515 * solib-svr4.c: Likewise.
2516 * source.c: Likewise.
2517 * sparc-nat.c: Likewise.
2518 * sparc-sol2-tdep.c: Likewise.
2519 * sparc-tdep.c: Likewise.
2520 * sparc64-sol2-tdep.c: Likewise.
2521 * sparc64-tdep.c: Likewise.
2522 * sparc64fbsd-tdep.c: Likewise.
2523 * sparc64nbsd-tdep.c: Likewise.
2524 * sparc64obsd-tdep.c: Likewise.
2525 * sparcnbsd-tdep.c: Likewise.
2526 * sparcobsd-tdep.c: Likewise.
2527 * spu-multiarch.c: Likewise.
2528 * spu-tdep.c: Likewise.
2529 * stabsread.c: Likewise.
2530 * stack.c: Likewise.
2531 * symfile.c: Likewise.
2532 * symtab.c: Likewise.
2533 * target-descriptions.c: Likewise.
2534 * target-memory.c: Likewise.
2535 * target.c: Likewise.
2536 * tic6x-linux-tdep.c: Likewise.
2537 * tic6x-tdep.c: Likewise.
2538 * tilegx-linux-nat.c: Likewise.
2539 * tilegx-tdep.c: Likewise.
2540 * top.c: Likewise.
2541 * tramp-frame.c: Likewise.
2542 * tui/tui-out.c: Likewise.
2543 * tui/tui-winsource.c: Likewise.
2544 * ui-out.c: Likewise.
2545 * user-regs.c: Likewise.
2546 * utils.c: Likewise.
2547 * v850-tdep.c: Likewise.
2548 * valops.c: Likewise.
2549 * value.c: Likewise.
2550 * varobj.c: Likewise.
2551 * vax-nat.c: Likewise.
2552 * xml-syscall.c: Likewise.
2553 * xml-tdesc.c: Likewise.
2554 * xstormy16-tdep.c: Likewise.
2555 * xtensa-linux-nat.c: Likewise.
2556 * xtensa-tdep.c: Likewise.
2557
2558 2014-08-07 Gary Benson <gbenson@redhat.com>
2559
2560 * common/common-defs.h: Include common-utils.h.
2561 * defs.h: Do not include common-utils.h.
2562 * common/gdb_assert.h: Likewise.
2563 * darwin-nat.h: Likewise.
2564 * nat/linux-btrace.c: Likewise.
2565 * target/waitstatus.h: Likewise.
2566
2567 2014-08-07 Gary Benson <gbenson@redhat.com>
2568
2569 * common/common-defs.h: Include ptid.h.
2570 * defs.h: Do not include ptid.h.
2571 * inferior.h: Likewise.
2572 * infrun.h: Likewise.
2573 * nat/linux-btrace.h: Likewise.
2574 * nat/linux-osdata.h: Likewise.
2575 * target/waitstatus.h: Likewise.
2576
2577 2014-08-07 Gary Benson <gbenson@redhat.com>
2578
2579 * common/common-defs.h: Include gdb_locale.h.
2580 * defs.h: Do not include gdb_locale.h.
2581
2582 2014-08-07 Gary Benson <gbenson@redhat.com>
2583
2584 * common/common-defs.h: Include gdb/signals.h.
2585 * defs.h: Do not include gdb/signals.h.
2586
2587 2014-08-07 Gary Benson <gbenson@redhat.com>
2588
2589 * common/common-defs.h: Include pathmax.h.
2590 * defs.h: Do not include pathmax.h.
2591
2592 2014-08-07 Gary Benson <gbenson@redhat.com>
2593
2594 * common/common-defs.h: Include libiberty.h.
2595 * defs.h: Do not include libiberty.h.
2596 * common/queue.h: Likewise.
2597 * cp-name-parser.y: Likewise.
2598 * mi/mi-cmd-catch.c: Likewise.
2599 * python/python.c: Likewise.
2600
2601 2014-08-07 Gary Benson <gbenson@redhat.com>
2602
2603 * common/common-defs.h: Include ansidecl.h.
2604 * defs.h: Do not include ansidecl.h.
2605 * common/buffer.h: Likewise.
2606 * common/common-utils.h: Likewise.
2607
2608 2014-08-07 Gary Benson <gbenson@redhat.com>
2609
2610 * common/common-defs.h: Include stddef.h.
2611 * defs.h: Do not include stddef.h.
2612 * common/common-utils.h: Likewise.
2613 * amd64fbsd-nat.c: Likewise.
2614 * bcache.c: Likewise.
2615 * charset.c: Likewise.
2616 * common/buffer.h: Likewise.
2617 * common/vec.h: Likewise.
2618 * i386bsd-nat.c: Likewise.
2619 * nat/linux-btrace.h: Likewise.
2620 * ppcfbsd-nat.c: Likewise.
2621 * ppcnbsd-tdep.h: Likewise.
2622 * ppcobsd-nat.c: Likewise.
2623 * ppcobsd-tdep.h: Likewise.
2624 * python/py-gdb-readline.c: Likewise.
2625
2626 2014-08-07 Gary Benson <gbenson@redhat.com>
2627
2628 * common/common-defs.h: Include stdarg.h.
2629 * defs.h: Do not include stdarg.h.
2630 * ada-lang.c: Likewise.
2631 * common/common-utils.h: Likewise.
2632 * guile/scm-string.c: Likewise.
2633 * guile/scm-utils.c: Likewise.
2634 * m32c-tdep.c: Likewise.
2635
2636 2014-08-07 Gary Benson <gbenson@redhat.com>
2637
2638 * common/common-defs.h: Include stdlib.h.
2639 * defs.h: Do not include stdlib.h.
2640 * addrmap.c: Likewise.
2641 * bcache.c: Likewise.
2642 * common/buffer.c: Likewise.
2643 * common/common-utils.c: Likewise.
2644 * cp-name-parser.y: Likewise.
2645 * go32-nat.c: Likewise.
2646 * mn10300-linux-tdep.c: Likewise.
2647 * nat/linux-osdata.c: Likewise.
2648 * tui/tui.c: Likewise.
2649 * windows-nat.c: Likewise.
2650
2651 2014-08-07 Gary Benson <gbenson@redhat.com>
2652
2653 * common/common-defs.h: Include stdio.h.
2654 * defs.h: Do not include stdio.h.
2655 * ada-lang.c: Likewise.
2656 * common/buffer.c: Likewise.
2657 * common/common-utils.c: Likewise.
2658 * cp-name-parser.y: Likewise.
2659 * gnu-nat.c: Likewise.
2660 * go32-nat.c: Likewise.
2661 * i386gnu-nat.c: Likewise.
2662 * proc-api.c: Likewise.
2663 * proc-events.c: Likewise.
2664 * proc-flags.c: Likewise.
2665 * proc-why.c: Likewise.
2666 * python/python-internal.h: Likewise.
2667 * target-memory.c: Likewise.
2668 * tui/tui-io.c: Likewise.
2669 * tui/tui.c: Likewise.
2670
2671 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2672
2673 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2674 (scan_dyntag_auxv): Same.
2675
2676 2014-08-06 Yao Qi <yao@codesourcery.com>
2677
2678 * amd64-linux-nat.c: Remove duplicated include
2679 "x86-linux-nat.h".
2680 * i386-linux-nat.c: Likewise.
2681
2682 2014-08-06 Yao Qi <yao@codesourcery.com>
2683
2684 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2685 operand" with "Special opcode" in comments.
2686
2687 2014-08-05 Gary Benson <gbenson@redhat.com>
2688
2689 * interps.c (initialize_interps): Remove prototype.
2690 (interpreter_initialized): Remove static global.
2691 (interp_add): Do not call initialize_interps.
2692 (initialize_interps): Remove function.
2693
2694 2014-08-05 Gary Benson <gbenson@redhat.com>
2695
2696 * utils.c (vwarning): Remove spurious va_end.
2697
2698 2014-08-05 Alan Modra <amodra@gmail.com>
2699
2700 * charset.c (convert_between_encodings): Cast result of obstack_base.
2701 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2702 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2703 (read_unwind_info): Use size_t for some locals.
2704 * jit.c (finalize_symtab): Likewise.
2705 * utils.c (hashtab_obstack_allocate): Likewise.
2706 * symmisc.c (print_objfile_statistics): Update format strings.
2707
2708 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
2710 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2711 (Changes in GDB 7.8): ... here.
2712
2713 2014-08-04 Tom Tromey <tromey@redhat.com>
2714
2715 * target.c (set_targetdebug): New function.
2716 (initialize_targets): Pass set_targetdebug when creating "set
2717 debug target".
2718
2719 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2720
2721 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2722 if detecting a variable-sized field that is not the last field.
2723 Fix struct type length computation.
2724
2725 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2726
2727 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2728 Add debug trace.
2729
2730 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2731
2732 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2733 Remove "+ 8" offset in computation of CHAIN_VMA.
2734
2735 2014-07-31 Doug Evans <dje@google.com>
2736
2737 * inflow.c (child_terminal_inferior): Add comment.
2738 (child_terminal_ours_for_output): Add comment.
2739 (child_terminal_ours): Add comment.
2740 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2741 (linux_nat_terminal_ours): Add comment.
2742
2743 2014-07-31 Gary Benson <gbenson@redhat.com>
2744
2745 * common/btrace-common.h: Do not include defs.h or server.h.
2746 * nat/mips-linux-watch.h: Likewise.
2747 * gdb-dlfcn.h: Do not include defs.h.
2748 * tracefile.h: Likewise.
2749
2750 2014-07-30 Roland McGrath <mcgrathr@google.com>
2751
2752 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2753
2754 2014-07-30 Tom Tromey <tromey@redhat.com>
2755
2756 * bsd-kvm.c (bsd_kvm_open): Constify.
2757 * corelow.c (core_open): Constify.
2758 * ctf.c (ctf_open): Constify.
2759 * dbug-rom.c (dbug_open): Constify.
2760 * exec.c (exec_open): Constify.
2761 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2762 * microblaze-rom.c (picobug_open): Constify.
2763 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2764 Constify.
2765 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2766 * record-btrace.c (record_btrace_open): Constify.
2767 * record-full.c (record_full_core_open_1, record_full_open_1)
2768 (record_full_open): Constify.
2769 * remote-m32r-sdi.c (m32r_open): Constify.
2770 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2771 (rockhopper_open, lsi_open): Constify.
2772 * remote-sim.c (gdbsim_open): Constify.
2773 * remote.c (remote_open, extended_remote_open, remote_open_1):
2774 Constify.
2775 * target.h (struct target_ops) <to_open>: Make "arg" const.
2776 * tracefile-tfile.c (tfile_open): Constify.
2777
2778 2014-07-30 Tom Tromey <tromey@redhat.com>
2779
2780 * breakpoint.c (map_breakpoint_numbers): Update.
2781 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2782 (get_number_const): New function.
2783 (get_number): Rewrite using get_number_const.
2784 (init_number_or_range): Make "string" const.
2785 (number_is_in_list): Make "list" const.
2786 * cli/cli-utils.h (get_number_const): Declare.
2787 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2788 (init_number_or_range, number_is_in_list): Update.
2789 * printcmd.c (map_display_numbers): Update.
2790 * value.c (value_from_history_ref): Constify.
2791 * value.h (value_from_history_ref): Update.
2792
2793 2014-07-30 Tom Tromey <tromey@redhat.com>
2794
2795 * corefile.c (hook_type, call_extra_exec_file_hooks)
2796 (specify_exec_file_hook): Constify.
2797 * exec.c (exec_file_attach): Make "filename" const.
2798 * gdbcore.h (deprecated_exec_file_display_hook)
2799 (specify_exec_file_hook, exec_file_attach): Constify.
2800 * main.c (captured_main): Use catch_command_errors_const.
2801
2802 2014-07-30 Tom Tromey <tromey@redhat.com>
2803
2804 * target.c (open_target): New function.
2805 (add_target_with_completer, add_deprecated_target_alias): Use
2806 set_cmd_sfunc, set_cmd_context.
2807 (debug_to_open): Remove.
2808 (setup_target_debug): Update.
2809
2810 2014-07-30 Yao Qi <yao@codesourcery.com>
2811
2812 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2813 comments.
2814 * parse.c (exp_iterate): Update comments.
2815
2816 2014-07-30 Gary Benson <gbenson@redhat.com>
2817
2818 * common/common-defs.h: New file.
2819 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2820 * defs.h: Include common-defs.h.
2821 Do not include config.h or build-gnulib/config.h.
2822
2823 2014-07-30 Gary Benson <gbenson@redhat.com>
2824
2825 * common/common-utils.h: Do not include config.h.
2826 * nat/linux-btrace.h: Likewise.
2827
2828 2014-07-30 Gary Benson <gbenson@redhat.com>
2829
2830 * btrace.c: Include defs.h.
2831 * common/ptid.c: Include defs.h or server.h as appropriate.
2832 * nat/mips-linux-watch.c: Likewise.
2833
2834 2014-07-29 Tom Tromey <tromey@redhat.com>
2835
2836 * target.c (target_is_pushed): Simplify.
2837
2838 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2839
2840 GDB 7.8 released.
2841
2842 2014-07-29 Yao Qi <yao@codesourcery.com>
2843
2844 PR gdb/17206
2845 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2846
2847 2014-07-28 Doug Evans <xdje42@gmail.com>
2848
2849 PR guile/17203
2850 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2851 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2852 parameters.
2853
2854 2014-07-28 Will Newton <will.newton@linaro.org>
2855
2856 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2857 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2858 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2859 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2860 (THUMB2_EABI_SYSCALL): Likewise.
2861 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2862 struct tramp_frame.
2863 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2864 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2865
2866 2014-07-27 Doug Evans <xdje42@gmail.com>
2867
2868 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2869
2870 2014-07-27 Doug Evans <xdje42@gmail.com>
2871
2872 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2873
2874 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2875 Doug Evans <xdje42@gmail.com>
2876
2877 PR guile/17146
2878 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2879 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2880 * configure.ac: Try to use guild to compile an scm file, if it fails
2881 then disable guile support.
2882 * configure: Regenerate.
2883 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2884 GUILE_FILE_LIST.
2885 (GUILE_COMPILED_FILES): New variable.
2886 (GUILE_FILES) Update.
2887 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2888 (stamp-guile): Compile scm files.
2889 * guile/guile.c (boot_guile_support): New function.
2890 (standard_throw_args_p): New function.
2891 (print_standard_throw_error, print_throw_error): New functions.
2892 (handle_boot_error): New function.
2893 (initialize_scheme_side): Rewrite to call boot_guile_support.
2894 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2895 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2896
2897 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2898 Doug Evans <xdje42@gmail.com>
2899
2900 PR guile/17146
2901 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2902 * guile/lib/gdb/support.scm: New file.
2903 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2904 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2905 All uses updated.
2906 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2907 All uses updated.
2908 (%assert-type): Ditto, and renamed to assert-type.
2909 (%exception-print-style): Delete.
2910
2911 2014-07-26 Doug Evans <xdje42@gmail.com>
2912
2913 PR build/17105
2914 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2915 * configure: Regenerate.
2916 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2917 PYTHON_FILES.
2918 (PYTHON_FILES): New variable.
2919 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2920 (GUILE_FILES): New variable.
2921 (stamp-python, install-python, uninstall-python): Handle empty
2922 file list.
2923 (stamp-guile, install-guile, uninstall-guile): Ditto.
2924
2925 2014-07-26 Doug Evans <xdje42@gmail.com>
2926
2927 PR guile/17177
2928 * guile/lib/gdb.scm (pretty-printers): Export.
2929 (set-pretty-printers!): Export.
2930 * guile/lib/gdb/printing.scm (gdb module): Update.
2931 (prepend-pretty-printer!, append-pretty-printer!): Update.
2932 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2933 (pretty_printer_list_var): Delete.
2934 (pretty_printer_list): New static global.
2935 (gdbscm_pretty_printers): New function.
2936 (gdbscm_set_pretty_printers_x): New function.
2937 (ppscm_find_pretty_printer_from_gdb): Update.
2938 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2939 (gdbscm_initialize_pretty_printers): Update.
2940
2941 2014-07-26 Doug Evans <xdje42@gmail.com>
2942
2943 PR 17185
2944 * configure.ac: Add check for header gc/gc.h.
2945 Add check for function setenv.
2946 * configure: Regenerate.
2947 * config.in: Regenerate.
2948 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2949
2950 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2951
2952 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2953 variation in gdbarch matching.
2954
2955 2014-07-25 Tom Tromey <tromey@redhat.com>
2956
2957 * exec.c (using_exec_ops): Remove.
2958 (exec_close_1): Update. Remove extraneous block, reindent.
2959 (add_target_sections): Use target_is_pushed.
2960
2961 2014-07-25 Pedro Alves <palves@redhat.com>
2962
2963 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2964 * monitor.c (monitor_create_inferior): Likewise.
2965 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2966 * remote-sim.c (gdbsim_create_inferior): Likewise.
2967 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2968 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2969 * windows-nat.c (do_initial_windows_stuff): Likewise.
2970
2971 2014-07-25 Pedro Alves <palves@redhat.com>
2972
2973 * NEWS: Mention signal passing and "signal" command changes.
2974 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2975 comment.
2976 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2977 call.
2978 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2979 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2980 (jump_command): Adjust clear_proceed_status call.
2981 (signal_command): Warn if other thread that are resumed have
2982 signals that will be delivered. Adjust clear_proceed_status call.
2983 (until_next_command, finish_command)
2984 (proceed_after_attach_callback, attach_command_post_wait)
2985 (attach_command): Adjust clear_proceed_status call.
2986 * infrun.c (proceed_after_vfork_done): Likewise.
2987 (proceed_after_attach_callback): Adjust comment.
2988 (clear_proceed_status_thread): Clear stop_signal if not in pass
2989 state.
2990 (clear_proceed_status_callback): Delete.
2991 (clear_proceed_status): New 'step' parameter. Only clear the
2992 proceed status of threads the command being prepared is about to
2993 resume.
2994 (proceed): If passed in an explicit signal, override stop_signal
2995 with it. Don't pass the last stop signal to the thread we're
2996 resuming.
2997 (init_wait_for_inferior): Adjust clear_proceed_status call.
2998 (switch_back_to_stepped_thread): Clear the signal if it should not
2999 be passed.
3000 * infrun.h (clear_proceed_status): New 'step' parameter.
3001 (user_visible_resume_ptid): Add comment.
3002 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3003 signal is in pass state.
3004 * remote.c (append_pending_thread_resumptions): Likewise.
3005 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3006
3007 2014-07-25 Tom Tromey <tromey@redhat.com>
3008
3009 * target.h (target_stopped_data_address)
3010 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3011 parentheses.
3012
3013 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3014
3015 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3016 comments.
3017 (avr_pointer_to_address): Likewise.
3018
3019 2014-07-24 Tom Tromey <tromey@redhat.com>
3020
3021 * monitor.c (compile_pattern): Update.
3022 * target.h (struct target_ops) <to_shortname, to_longname,
3023 to_doc>: Now const.
3024
3025 2014-07-24 Tom Tromey <tromey@redhat.com>
3026
3027 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3028 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3029 (add_info_alias, add_com): Make "doc" const.
3030 (print_doc_line): Make "str" const.
3031 (delete_cmd): Update.
3032 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3033 (print_doc_line): Update.
3034 * cli/cli-script.c (document_command): Update.
3035 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3036 (add_com, add_info, add_info_alias): Update.
3037 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3038 * python/py-cmd.c (cmdpy_destroyer): Update.
3039
3040 2014-07-24 Tom Tromey <tromey@redhat.com>
3041
3042 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3043 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3044 (help_cmd_list): Constify.
3045 (lookup_cmd): Update.
3046 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3047 const.
3048 (help_cmd_list, apropos_cmd): Update.
3049 * cli/cli-script.c (show_user): Update.
3050 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3051 * cli/cli-setshow.h (cmd_show_list): Update.
3052 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3053 (cmd_show_list): Update.
3054 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3055 * python/py-cmd.c (cmdpy_destroyer): Update.
3056
3057 2014-07-24 Tom Tromey <tromey@redhat.com>
3058
3059 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3060 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3061 const.
3062 * command.h (deprecate_cmd): Update.
3063 * maint.c (maintenance_do_deprecate): Add casts.
3064
3065 2014-07-24 Tom Tromey <tromey@redhat.com>
3066
3067 * cli/cli-decode.c (help_cmd): Make parameter "const".
3068 * cli/cli-decode.h (help_cmd): Update.
3069
3070 2014-07-24 Tom Tromey <tromey@redhat.com>
3071
3072 * stack.c (up_silently_base, down_silently_base): Make argument
3073 const.
3074
3075 2014-07-24 Tom Tromey <tromey@redhat.com>
3076
3077 * solib.c (solib_add): Make "pattern" const.
3078 * solib.h (solib_add): Update.
3079
3080 2014-07-24 Tom Tromey <tromey@redhat.com>
3081
3082 * remote.c (remote_serial_open, print_packet, putpkt)
3083 (putpkt_binary): Constify.
3084 * remote.h (putpkt): Update.
3085
3086 2014-07-24 Tom Tromey <tromey@redhat.com>
3087
3088 * monitor.c (monitor_open): Make "args" const.
3089 * monitor.h (monitor_open): Update.
3090
3091 2014-07-24 Tom Tromey <tromey@redhat.com>
3092
3093 * maint.c (match_bfd_flags): Make "string" const.
3094 (print_bfd_section_info): Remove casts.
3095 (print_objfile_section_info): Make "string" const.
3096
3097 2014-07-24 Tom Tromey <tromey@redhat.com>
3098
3099 * inf-child.c (inf_child_open_target): Make "arg" const.
3100 * inf-child.h (inf_child_open_target): Update.
3101
3102 2014-07-24 Tom Tromey <tromey@redhat.com>
3103
3104 * environ.c (unset_in_environ): Make "var" const.
3105 * environ.h (unset_in_environ): Update.
3106
3107 2014-07-24 Tom Tromey <tromey@redhat.com>
3108
3109 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3110 Make "cmd" const.
3111 (scan_filename_with_cleanup): Likewise.
3112 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3113 Make arguments const.
3114 (restore_command): Update.
3115
3116 2014-07-24 Pedro Alves <palves@redhat.com>
3117
3118 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3119
3120 2014-07-24 Tom Tromey <tromey@redhat.com>
3121 Gary Benson <gbenson@redhat.com>
3122
3123 * nat/linux-ptrace.c (additional_flags): New global.
3124 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3125 additional_flags; don't check GDBSERVER.
3126 (linux_ptrace_set_additional_flags): New function.
3127 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3128 Declare.
3129 * linux-nat.c (_initialize_linux_nat): Call
3130 linux_ptrace_set_additional_flags.
3131
3132 2014-07-24 Tom Tromey <tromey@redhat.com>
3133
3134 * make-target-delegates (munge_type, write_debugmethod): New
3135 functions.
3136 (debug_names): New global.
3137 ($TARGET_DEBUG_PRINTER): New global.
3138 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3139 name.
3140 Write debug methods. Generate init_debug_target.
3141 * target-debug.h: New file.
3142 * target-delegates.c: Rebuild.
3143 * target.c: Include target-debug.h.
3144 (debug_target): Hoist definition.
3145 (target_kill, target_get_section_table, target_memory_map)
3146 (target_flash_erase, target_flash_done, target_detach)
3147 (target_disconnect, target_wait, target_resume)
3148 (target_pass_signals, target_program_signals, target_follow_fork)
3149 (target_mourn_inferior, target_search_memory)
3150 (target_thread_address_space, target_close)
3151 (target_find_new_threads, target_core_of_thread)
3152 (target_verify_memory, target_insert_mask_watchpoint)
3153 (target_remove_mask_watchpoint): Remove targetdebug code.
3154 (debug_to_post_attach, debug_to_prepare_to_store)
3155 (debug_to_files_info, debug_to_insert_breakpoint)
3156 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3157 (debug_to_region_ok_for_hw_watchpoint)
3158 (debug_to_can_accel_watchpoint_condition)
3159 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3160 (debug_to_watchpoint_addr_within_range)
3161 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3162 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3163 (debug_to_terminal_init, debug_to_terminal_inferior)
3164 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3165 (debug_to_terminal_save_ours, debug_to_terminal_info)
3166 (debug_to_load, debug_to_post_startup_inferior)
3167 (debug_to_insert_fork_catchpoint)
3168 (debug_to_remove_fork_catchpoint)
3169 (debug_to_insert_vfork_catchpoint)
3170 (debug_to_remove_vfork_catchpoint)
3171 (debug_to_insert_exec_catchpoint)
3172 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3173 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3174 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3175 (setup_target_debug): Call init_debug_target.
3176 * target.h (TARGET_DEBUG_PRINTER): New macro.
3177 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3178 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3179
3180 2014-07-24 Gary Benson <gbenson@redhat.com>
3181
3182 * exceptions.h (throw_vfatal): Renamed to...
3183 (throw_vquit): New declaration.
3184 (throw_quit): Likewise.
3185 * exceptions.c (throw_vfatal): Renamed to...
3186 (throw_vquit): New function.
3187 (throw_quit): Likewise.
3188 (throw_error): Call throw_verror rather than throw_it.
3189 * utils.h (vfatal): Removed.
3190 (fatal): Likewise.
3191 * utils.c (vfatal): Removed.
3192 (fatal): Likewise.
3193 (internal_verror): Replaced call to fatal with call to throw_quit.
3194 (quit): Replaced calls to fatal with calls to throw_quit.
3195
3196 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3197
3198 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3199 target_read_code.
3200
3201 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3202
3203 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3204 less than zero in conditional expression.
3205
3206 2014-07-23 Tom Tromey <tromey@redhat.com>
3207
3208 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3209 ($INTRO_PART): Don't match whitespace.
3210 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3211 argument matching.
3212 ($METHOD): Add $METHOD_TRAILER.
3213 (trim): Rewrite.
3214 (scan_target_h): New sub.
3215 Change main loop not to collect state.
3216 * target-delegates.c: Rebuild.
3217
3218 2014-07-23 Gary Benson <gbenson@redhat.com>
3219
3220 * cp-support.c (gdb_demangle): Fix build on systems without
3221 sigaltstack.
3222
3223 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3226 for reference entry value target data value.
3227
3228 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3229
3230 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3231 value_available_contents_eq.
3232
3233 2014-07-22 Pedro Alves <palves@redhat.com>
3234
3235 * value.c (allocate_optimized_out_value): Don't mark value as
3236 non-lazy.
3237
3238 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3239
3240 * MAINTAINERS (Write After Approval): Update my email address.
3241
3242 2014-07-20 Doug Evans <dje@google.com>
3243
3244 PR server/17147
3245 * remote.c (putpkt_binary): Add text to error message.
3246
3247 2014-07-20 Yao Qi <yao@codesourcery.com>
3248
3249 * eval.c: Remove "Chill" from comments.
3250 * gdbtypes.h: Likewise.
3251 * symtab.h: Likewise.
3252
3253 2014-07-20 Yao Qi <yao@codesourcery.com>
3254
3255 * std-operator.def: Update comments to TERNOP_SLICE.
3256
3257 2014-07-20 Yao Qi <yao@codesourcery.com>
3258
3259 * std-operator.def: Remove BINOP_RANGE.
3260 * breakpoint.c (watchpoint_exp_is_const): Update.
3261 * expprint.c (dump_subexp_body_standard): Likewise.
3262 * eval.c (init_array_element): Remove dead code.
3263 (evaluate_subexp_standard): Likewise.
3264
3265 2014-07-20 Yao Qi <yao@codesourcery.com>
3266
3267 * std-operator.def: Remove BINOP_IN.
3268 * breakpoint.c (watchpoint_exp_is_const): Update.
3269 * eval.c (evaluate_subexp_standard): Likewise.
3270 * expprint.c (dump_subexp_body_standard): Likewise.
3271
3272 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3273
3274 * microblaze-tdep.c (microblaze_register_names): Add
3275 the rshr and rslr register names.
3276 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3277 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3278 Use of tdesc_numbered_register. Use of
3279 microblaze_register_g_packet_guesses. Use of
3280 tdesc_use_registers. Use of set_gdbarch_register_type.
3281 (microblaze_register_g_packet_guesses): New.
3282 * microblaze-tdep.h (microblaze_reg_num): Add
3283 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3284 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3285 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3286 * features/microblaze-core.xml: New file.
3287 * features/microblaze-stack-protect.xml: New file.
3288 * features/microblaze-with-stack-protect.c: New file.
3289 * features/microblaze-with-stack-protect.xml: New file.
3290 * features/microblaze.xml: New file.
3291 * features/microblaze.c: New file.
3292 * features/Makefile (microblaze-with-stack-protect): Add
3293 microblaze-with-stack-protect microblaze and microblaze-expedite.
3294 * regformats/microblaze-with-stack-protect.dat: New file.
3295 * regformats/microblaze.dat: New file.
3296 * doc/gdb.texinfo (MicroBlaze Features): Added.
3297
3298 2014-07-18 Tom Tromey <tromey@redhat.com>
3299
3300 * exec.c (exec_ops): Now static.
3301 * exec.h (exec_ops): Don't declare.
3302
3303 2014-07-18 Tom Tromey <tromey@redhat.com>
3304
3305 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3306 to find_target_beneath.
3307 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3308 find_target_beneath.
3309 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3310
3311 2014-07-18 Tom Tromey <tromey@redhat.com>
3312
3313 PR gdb/17130:
3314 * utils.c (quit): Use target_supports_terminal_ours.
3315 * target.h (target_supports_terminal_ours): Declare.
3316 * target.c (target_supports_delete_record): Don't check
3317 to_delete_record against NULL.
3318 (target_supports_terminal_ours): New function.
3319
3320 2014-07-18 Tom Tromey <tromey@redhat.com>
3321
3322 PR gdb/17130:
3323 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3324 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3325 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3326 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3327 * windows-nat.c (windows_xfer_partial): Always delegate.
3328 * record-btrace.c (record_btrace_xfer_partial): Simplify
3329 delegation.
3330 (record_btrace_fetch_registers, record_btrace_store_registers)
3331 (record_btrace_prepare_to_store, record_btrace_resume)
3332 (record_btrace_wait, record_btrace_find_new_threads)
3333 (record_btrace_thread_alive): Likewise.
3334 * procfs.c (procfs_xfer_partial): Always delegate.
3335 * corelow.c (core_xfer_partial): Always delegate.
3336 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3337
3338 2014-07-18 Tom Tromey <tromey@redhat.com>
3339
3340 * exec.c (exec_make_note_section): Move earlier.
3341
3342 2014-07-17 Doug Evans <dje@google.com>
3343
3344 PR gdb/17170
3345 * maint.c (count_symtabs_and_blocks): Handle NULL
3346 current_program_space.
3347 (report_command_stats): Check global enabled flag in addition to
3348 recorded enabled flag.
3349 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3350
3351 2014-07-16 Pedro Alves <palves@redhat.com>
3352
3353 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3354
3355 2014-07-16 Tom Tromey <tromey@redhat.com>
3356
3357 * target.h (struct target_ops) <to_delete_record>: Reformat
3358 comment.
3359
3360 2014-07-16 Tom Tromey <tromey@redhat.com>
3361
3362 * target-delegates.c: Rebuild.
3363
3364 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3365
3366 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3367 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3368 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3369 (avr_pointer_to_address): Likewise.
3370 (avr_address_class_type_flags): New function.
3371 (avr_address_class_type_flags_to_name): Likewise.
3372 (avr_address_class_name_to_type_flags): Likewise.
3373 (avr_gdbarch_init): Set address_class_type_flags,
3374 address_class_type_flags_to_name and
3375 address_class_name_to_type_flags.
3376
3377 2014-07-15 Pedro Alves <palves@redhat.com>
3378
3379 * linux-nat.c (kill_callback): Save errno and work with saved
3380 copy.
3381
3382 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3383
3384 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3385
3386 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3387
3388 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3389 breakpoint support correctly.
3390
3391 2014-07-14 Pedro Alves <palves@redhat.com>
3392
3393 * utils.c (prompt_for_continue): Call target_terminal_ours.
3394
3395 2014-07-14 Pedro Alves <palves@redhat.com>
3396
3397 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3398 catch_errors. Don't re-enable stdin or notify observers where,
3399 and rethrow error.
3400 (fetch_inferior_event_wrapper): Delete.
3401
3402 2014-07-14 Pedro Alves <palves@redhat.com>
3403
3404 PR gdb/17072
3405 * top.c: Include "inf-loop.h".
3406 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3407 field.
3408 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3409 was async before.
3410 (gdb_readline_wrapper): Store whether the target is async, and
3411 make it sync.
3412
3413 2014-07-14 Pedro Alves <palves@redhat.com>
3414
3415 PR gdb/17072
3416 * top.c (gdb_readline_wrapper_line): Tweak comment.
3417 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3418 the input handler callback.
3419
3420 2014-07-14 Pedro Alves <palves@redhat.com>
3421
3422 PR gdb/17072
3423 * main.c: Include event-top.h.
3424 (handle_command_errors): New function.
3425 (catch_command_errors, catch_command_errors_const): Use it.
3426
3427 2014-07-14 Pedro Alves <palves@redhat.com>
3428
3429 * exceptions.c (catch_command_errors, catch_command_errors_const):
3430 Moved to main.c.
3431 * exceptions.h (catch_command_errors_ftype)
3432 (catch_command_errors_const_ftype): Moved to main.c.
3433 (catch_command_errors, catch_command_errors_const): Delete
3434 declarations.
3435 * main.c (catch_command_errors_ftype)
3436 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3437 (catch_command_errors, catch_command_errors_const)): Moved here
3438 from exceptions.c and make static.
3439
3440 2014-07-14 Pedro Alves <palves@redhat.com>
3441
3442 * exceptions.c (print_any_exception): Delete.
3443 (catch_exceptions_with_msg): Use exception_print instead of
3444 print_any_exception.
3445 (catch_errors): Use exception_fprintf instead of
3446 print_any_exception.
3447 (catch_command_errors, catch_command_errors_const): Use
3448 exception_print instead of print_any_exception.
3449
3450 2014-07-14 Pedro Alves <palves@redhat.com>
3451
3452 * infcall.c (run_inferior_call): Set 'sync_execution' while
3453 running the inferior call.
3454
3455 2014-07-14 Pedro Alves <palves@redhat.com>
3456
3457 * value.c (value_contents_equal): Delete function.
3458 * value.h (value_contents_equal): Delete declaration.
3459
3460 2014-07-14 Tom Tromey <tromey@redhat.com>
3461
3462 PR exp/17106:
3463 * gdbtypes.c (is_dynamic_type_internal): New function, from
3464 is_dynamic_type.
3465 (is_dynamic_type): Rewrite.
3466 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3467 (resolve_dynamic_struct): Likewise.
3468 (resolve_dynamic_type_internal): New function, from
3469 resolve_dynamic_type.
3470 (resolve_dynamic_type): Rewrite.
3471
3472 2014-07-14 Tom Tromey <tromey@redhat.com>
3473
3474 * target.c (target_require_runnable): Also check record_stratum.
3475 Update comment.
3476
3477 2014-07-11 Yao Qi <yao@codesourcery.com>
3478
3479 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3480 thumb_instruction_restores_sp return true.
3481
3482 2014-07-11 Yao Qi <yao@codesourcery.com>
3483
3484 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3485 (thumb_in_function_epilogue_p): Call
3486 thumb_instruction_restores_sp.
3487
3488 2014-07-11 Yao Qi <yao@codesourcery.com>
3489
3490 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3491 'add sp, #imm'.
3492 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3493
3494 2014-07-11 Gary Benson <gbenson@redhat.com>
3495
3496 * amd64-linux-nat.c (gdbcore.h): Remove include.
3497 (regset.h): Likewise.
3498 (nat/linux-btrace.h): Likewise.
3499 (btrace.h): Likewise.
3500 (gdb_assert.h): Likewise.
3501 (string.h): Likewise.
3502 (sys/uio.h): Likewise.
3503 (sys/debugreg.h): Likewise.
3504 (sys/syscall.h): Likewise.
3505 (sys/procfs.h): Likewise.
3506 (sys/user.h): Likewise.
3507 (asm/ptrace.h): Likewise.
3508 (i386-nat.h): Likewise.
3509 * i386-linux-nat.c (i386-nat.h): Likewise.
3510 (regset.h): Likewise.
3511 (target.h): Likewise.
3512 (linux-nat.h): Likewise.
3513 (nat/linux-btrace.h): Likewise.
3514 (btrace.h): Likewise.
3515 (gdb_assert.h): Likewise.
3516 (string.h): Likewise.
3517 (sys/uio.h): Likewise.
3518 (sys/user.h): Likewise.
3519 (sys/procfs.h): Likewise.
3520 (sys/reg.h): Likewise.
3521 (sys/debugreg.h): Likewise.
3522 (ORIG_EAX): Remove definition.
3523
3524 2014-07-11 Gary Benson <gbenson@redhat.com>
3525
3526 * i386-linux-nat.h: New file.
3527 * x86-linux-nat.h: Likewise.
3528 * x86-linux-nat.c: Likewise.
3529 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3530 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3531 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3532 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3533 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3534 (PTRACE_SETREGSET): Likewise.
3535 (arch_lwp_info): Now in x86-linux-nat.c.
3536 (have_ptrace_getregset): Now in x86-linux-nat.h.
3537 (x86_linux_dr_get): Now in x86-linux-nat.c.
3538 (x86_linux_dr_set): Likewise.
3539 (x86_linux_dr_get_addr): Likewise.
3540 (x86_linux_dr_get_control): Likewise.
3541 (x86_linux_dr_get_status): Likewise.
3542 (update_debug_registers_callback): Likewise.
3543 (x86_linux_dr_set_control): Likewise.
3544 (x86_linux_dr_set_addr): Likewise.
3545 (x86_linux_prepare_to_resume): Likewise.
3546 (x86_linux_new_thread): Likewise.
3547 (x86_linux_new_fork): Likewise.
3548 (x86_linux_get_thread_area): Likewise.
3549 (super_post_startup_inferior): Likewise.
3550 (x86_linux_child_post_startup_inferior): Likewise.
3551 (AMD64_LINUX_USER64_CS): Likewise.
3552 (AMD64_LINUX_X32_DS): Likewise.
3553 (x86_linux_read_description): Likewise.
3554 (x86_linux_enable_btrace): Likewise.
3555 (x86_linux_disable_btrace): Likewise.
3556 (x86_linux_teardown_btrace): Likewise.
3557 (x86_linux_read_btrace): Likewise.
3558 (x86_linux_create_target): Likewise.
3559 (x86_linux_add_target): Likewise.
3560 * i386-linux-nat.c (x86-linux-nat.h): New include.
3561 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3562 (PTRACE_SETREGSET): Likewise.
3563 (arch_lwp_info): Now in x86-linux-nat.c.
3564 (have_ptrace_getregset): Now in x86-linux-nat.h.
3565 (x86_linux_dr_get): Now in x86-linux-nat.c.
3566 (x86_linux_dr_set): Likewise.
3567 (x86_linux_dr_get_addr): Likewise.
3568 (x86_linux_dr_get_control): Likewise.
3569 (x86_linux_dr_get_status): Likewise.
3570 (update_debug_registers_callback): Likewise.
3571 (x86_linux_dr_set_control): Likewise.
3572 (x86_linux_dr_set_addr): Likewise.
3573 (x86_linux_prepare_to_resume): Likewise.
3574 (x86_linux_new_thread): Likewise.
3575 (x86_linux_new_fork): Likewise.
3576 (x86_linux_get_thread_area): Likewise.
3577 (super_post_startup_inferior): Likewise.
3578 (x86_linux_child_post_startup_inferior): Likewise.
3579 (AMD64_LINUX_USER64_CS): Likewise.
3580 (AMD64_LINUX_X32_DS): Likewise.
3581 (x86_linux_read_description): Likewise.
3582 (x86_linux_enable_btrace): Likewise.
3583 (x86_linux_disable_btrace): Likewise.
3584 (x86_linux_teardown_btrace): Likewise.
3585 (x86_linux_read_btrace): Likewise.
3586 (x86_linux_create_target): Likewise.
3587 (x86_linux_add_target): Likewise.
3588
3589 2014-07-11 Gary Benson <gbenson@redhat.com>
3590
3591 * amd64-linux-nat.c: Comment and whitespace changes.
3592 * i386-linux-nat.c: Comment and whitespace changes.
3593
3594 2014-07-11 Gary Benson <gbenson@redhat.com>
3595
3596 * amd64-linux-nat.c (x86_linux_create_target): New function.
3597 (x86_linux_add_target): Likewise.
3598 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3599 * i386-linux-nat.c (x86_linux_create_target): New function.
3600 (x86_linux_add_target): Likewise.
3601 (_initialize_i386_linux_nat): Delegate to the above new functions.
3602
3603 2014-07-11 Gary Benson <gbenson@redhat.com>
3604
3605 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3606 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3607 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3608 (ps_get_thread_area): Delegate to the above.
3609
3610 2014-07-11 Gary Benson <gbenson@redhat.com>
3611
3612 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3613 x86_linux_read_description. All uses updated. amd64-specific
3614 code conditionalized. Conditionalized i386-specific code added.
3615 Redundant cast removed.
3616 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3617 x86_linux_read_description. All uses updated. i386-specific
3618 code conditionalized. Conditionalized amd64-specific code added.
3619 One sizeof replaced with the actual type it is describing.
3620
3621 2014-07-11 Gary Benson <gbenson@redhat.com>
3622
3623 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3624 x86_linux_dr_get. All uses updated.
3625 (amd64_linux_dr_set): Renamed to
3626 x86_linux_dr_set. All uses updated.
3627 (amd64_linux_dr_get_addr): Renamed to
3628 x86_linux_dr_get_addr. All uses updated.
3629 (amd64_linux_dr_get_control): Renamed to
3630 x86_linux_dr_get_control. All uses updated.
3631 (amd64_linux_dr_get_status): Renamed to
3632 x86_linux_dr_get_status. All uses updated.
3633 (amd64_linux_dr_set_control): Renamed to
3634 x86_linux_dr_set_control. All uses updated.
3635 (amd64_linux_dr_set_addr): Renamed to
3636 x86_linux_dr_set_addr. All uses updated.
3637 (amd64_linux_prepare_to_resume): Renamed to
3638 x86_linux_prepare_to_resume. All uses updated.
3639 (amd64_linux_new_thread): Renamed to
3640 x86_linux_new_thread. All uses updated.
3641 (amd64_linux_new_fork): Renamed to
3642 x86_linux_new_fork. All uses updated.
3643 (amd64_linux_child_post_startup_inferior): Renamed to
3644 x86_linux_child_post_startup_inferior. All uses updated.
3645 (amd64_linux_enable_btrace): Renamed to
3646 x86_linux_enable_btrace. All uses updated.
3647 (amd64_linux_disable_btrace): Renamed to
3648 x86_linux_disable_btrace. All uses updated.
3649 (amd64_linux_teardown_btrace): Renamed to
3650 x86_linux_teardown_btrace. All uses updated.
3651 (amd64_linux_read_btrace): Renamed to
3652 x86_linux_read_btrace. All uses updated.
3653 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3654 x86_linux_dr_get. All uses updated.
3655 (i386_linux_dr_set): Renamed to
3656 x86_linux_dr_set. All uses updated.
3657 (i386_linux_dr_get_addr): Renamed to
3658 x86_linux_dr_get_addr. All uses updated.
3659 (i386_linux_dr_get_control): Renamed to
3660 x86_linux_dr_get_control. All uses updated.
3661 (i386_linux_dr_get_status): Renamed to
3662 x86_linux_dr_get_status. All uses updated.
3663 (i386_linux_dr_set_control): Renamed to
3664 x86_linux_dr_set_control. All uses updated.
3665 (i386_linux_dr_set_addr): Renamed to
3666 x86_linux_dr_set_addr. All uses updated.
3667 (i386_linux_prepare_to_resume): Renamed to
3668 x86_linux_prepare_to_resume. All uses updated.
3669 (i386_linux_new_thread): Renamed to
3670 x86_linux_new_thread. All uses updated.
3671 (i386_linux_new_fork): Renamed to
3672 x86_linux_new_fork. All uses updated.
3673 (i386_linux_child_post_startup_inferior): Renamed to
3674 x86_linux_child_post_startup_inferior. All uses updated.
3675 (i386_linux_enable_btrace): Renamed to
3676 x86_linux_enable_btrace. All uses updated.
3677 (i386_linux_disable_btrace): Renamed to
3678 x86_linux_disable_btrace. All uses updated.
3679 (i386_linux_teardown_btrace): Renamed to
3680 x86_linux_teardown_btrace. All uses updated.
3681 (i386_linux_read_btrace): Renamed to
3682 x86_linux_read_btrace. All uses updated.
3683
3684 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3685
3686 * remote.c (extended_remote_post_attach): New function.
3687 (init_extended_remote_ops): Install it as to_post_attach method.
3688
3689 2014-07-09 Pedro Alves <palves@redhat.com>
3690
3691 * infcmd.c (attach_command_post_wait): Don't call
3692 target_terminal_inferior here.
3693 (attach_command): Call it here instead.
3694
3695 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3698 field.
3699 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3700 from varobj.c, with additional checks.
3701 (c_varobj_ops): Fill in is_path_expr_parent field.
3702 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3703 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3704 field.
3705 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3706 ops method.
3707 (varobj_default_is_path_expr_parent): New function.
3708 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3709 (varobj_default_is_path_expr_parent): Declare new function.
3710
3711 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3712
3713 * infcmd.c (finish_backward): Turn internal error into normal error.
3714
3715 2014-07-07 Pedro Alves <palves@redhat.com>
3716
3717 PR gdb/17096
3718 * remote.c (async_handle_remote_sigint)
3719 (async_handle_remote_sigint_twice): Call
3720 gdb_call_async_signal_handler instead of
3721 mark_async_signal_handler.
3722
3723 2014-07-07 Tom Tromey <tromey@redhat.com>
3724
3725 * target-delegates.c: Rebuild.
3726 * target.c (target_info_record): Remove.
3727 * record.c (info_record_command): Unconditionally call
3728 to_info_record.
3729 * target.h (struct target_ops) <to_info_record>: Use
3730 TARGET_DEFAULT_IGNORE.
3731 (target_info_record): Remove.
3732
3733 2014-07-07 Tom Tromey <tromey@redhat.com>
3734
3735 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3736 TARGET_DEFAULT_NORETURN.
3737 * target.c (generic_tls_error): New function.
3738 (target_translate_tls_address): Don't search target stack.
3739 * target-delegates.c: Rebuild.
3740 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3741 stack.
3742 * linux-thread-db.c (thread_db_get_thread_local_address):
3743 Unconditionally call beneath target.
3744
3745 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3746
3747 * cli/cli-logging.c (pop_output_files): Assign targerr to
3748 gdb_stdtargerr.
3749
3750 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * MAINTAINERS (Write After Approval): Update my email address.
3753
3754 2014-07-02 Gary Benson <gbenson@redhat.com>
3755
3756 * proc-service.c (ps_xfer_memory): Update comment.
3757 (ps_pstop): Remove unused function.
3758 (ps_pcontinue): Likewise.
3759 (ps_lstop): Likewise.
3760 (ps_lcontinue): Likewise.
3761 (ps_lgetxregsize): Likewise.
3762 (ps_lgetxregs): Likewise.
3763 (ps_lsetxregs): Likewise.
3764 (ps_plog): Likewise.
3765 (ps_ptread): Likewise.
3766 (ps_ptwrite): Likewise.
3767
3768 2014-07-01 Mark Wielaard <mjw@redhat.com>
3769
3770 * dwarf2read.c (add_array_cv_type): New function.
3771 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3772 (read_tag_volatile_type): Likewise.
3773
3774 2014-07-01 Tom Tromey <tromey@redhat.com>
3775
3776 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3777 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3778 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3779 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3780 * command.h (cmd_cfunc_ftype): Move earlier.
3781 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3782 (add_com, add_info): Use cmd_cfunc_ftype.
3783
3784 2014-06-30 Tom Tromey <tromey@redhat.com>
3785
3786 * symtab.c (operator_chars): Make parameters and return type
3787 const.
3788 (file_matches): Make "files" const.
3789 (struct search_symbols_data) <files>: Now const.
3790 (search_symbols): Make "regexp" and "files" parameters const.
3791 Update.
3792 (symtab_symbol_info): Remove cast.
3793 (rbreak_command): Update.
3794 * symtab.h (search_symbols): Update.
3795
3796 2014-06-27 Yao Qi <yao@codesourcery.com>
3797
3798 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3799 Change parameter type to 'struct thread_info *'. Caller
3800 updated.
3801 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3802 Update declaration.
3803 * dummy-frame.c (struct dummy_frame_id): New.
3804 (dummy_frame_id_eq): New function.
3805 (struct dummy_frame) <id>: Change its type to 'struct
3806 dummy_frame_id'.
3807 (dummy_frame_push): Add parameter ptid and save it in
3808 dummy_frame_id.
3809 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3810 inferior_ptid.
3811 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3812 to inferior_ptid.
3813 (lookup_dummy_frame): Change parameter type to 'struct
3814 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3815 instead of frame_id_eq.
3816 (dummy_frame_pop): Add parameter ptid. Callers updated.
3817 Update comments. Compose dummy_frame_id and pass it to
3818 lookup_dummy_frame.
3819 (dummy_frame_discard): Add parameter ptid.
3820 (dummy_frame_sniffer): Compose dummy_frame_id and call
3821 dummy_frame_id_eq instead of frame_id_eq.
3822 (fprint_dummy_frames): Print ptid.
3823 * dummy-frame.h: Remove comments.
3824 (dummy_frame_push): Add ptid in declaration.
3825 (dummy_frame_pop, dummy_frame_discard): Likewise.
3826
3827 2014-06-26 Tom Tromey <tromey@redhat.com>
3828
3829 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3830 * command.h (error_no_arg): Update.
3831
3832 2014-06-26 Tom Tromey <tromey@redhat.com>
3833
3834 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3835 (do_show_command): Make "arg" const.
3836 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3837
3838 2014-06-26 Tom Tromey <tromey@redhat.com>
3839
3840 * record-full.c (record_full_get_bookmark): Make "args" const.
3841 (record_full_goto_bookmark): Make "raw_bookmark" const.
3842 * record.c (record_goto): New function.
3843 (cmd_record_goto): Use it. Now static.
3844 * record.h (record_goto): Declare.
3845 (cmd_record_goto): Remove declaration.
3846 * target-delegates.c: Rebuild.
3847 * target.h (struct target_ops) <to_get_bookmark,
3848 to_goto_bookmark>: Make parameter const.
3849
3850 2014-06-26 Tom Tromey <tromey@redhat.com>
3851
3852 * defs.h (generic_load): Update.
3853 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3854 * monitor.c (monitor_load): Make "args" const.
3855 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3856 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3857 const.
3858 (mips_load): Make "file" const.
3859 * remote-sim.c (gdbsim_load): Make "args" const.
3860 * remote.c (remote_load): Make "name" const.
3861 * symfile.c (generic_load): Make "args" const.
3862 * target-delegates.c: Rebuild.
3863 * target.c (target_load): Make "arg" const.
3864 (debug_to_load): Make "args" const.
3865 * target.h (struct target_ops) <to_load>: Make parameter const.
3866 (target_load): Update.
3867
3868 2014-06-26 Tom Tromey <tromey@redhat.com>
3869
3870 PR symtab/16902:
3871 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3872 (dwarf2_physname, read_partial_die)
3873 (guess_partial_die_structure_name, fixup_partial_die)
3874 (guess_full_die_structure_name, anonymous_struct_prefix)
3875 (dwarf2_name): Use per-BFD obstack.
3876
3877 2014-06-26 Yao Qi <yao@codesourcery.com>
3878
3879 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3880 dummyframe and this_id into inner block below.
3881
3882 2014-06-26 Yao Qi <yao@codesourcery.com>
3883
3884 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3885 with "signal_pass[0]" in the initialization of signal_pass.
3886
3887 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3888
3889 * record-btrace.c (record_btrace_generating_corefile)
3890 (record_btrace_prepare_to_generate_core)
3891 (record_btrace_done_generating_core): New.
3892 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3893 (record_btrace_store_registers, record_btrace_prepare_to_store):
3894 Forward request when generating a core file.
3895 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3896 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3897 to_done_generating_core.
3898
3899 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3900
3901 * target.h (target_ops) <to_prepare_to_generate_core>
3902 <to_done_generating_core>: New.
3903 (target_prepare_to_generate_core, target_done_generating_core): New.
3904 * target.c (target_prepare_to_generate_core)
3905 (target_done_generating_core): New.
3906 * target-delegates.c: Regenerate.
3907 * gcore.c: (write_gcore_file): Rename to ...
3908 (write_gcore_file_1): ...this.
3909 (write_gcore_file): Call target_prepare_to_generate_core
3910 and target_done_generating_core.
3911
3912 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3913
3914 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3915 * gcore.c (write_gcore_file): Free memory returned from
3916 make_corefile_notes.
3917 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3918 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3919
3920 2014-06-24 Yao Qi <yao@codesourcery.com>
3921
3922 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3923 (arm_linux_init_abi): Set skip_trampoline_code with
3924 gdbarch_skip_trampoline_code instead of
3925 find_solib_trampoline_target.
3926
3927 2014-06-24 Yao Qi <yao@codesourcery.com>
3928
3929 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3930 arm_skip_bx_reg returns non-zero.
3931
3932 2014-06-24 Yao Qi <yao@codesourcery.com>
3933
3934 * arm-tdep.c (arm_skip_bx_reg): New function.
3935 (arm_skip_stub): Call arm_skip_bx_reg.
3936
3937 2014-06-23 Don Breazeal <donb@codesourcery.com>
3938
3939 * MAINTAINERS: Add myself as write-after-approval maintainer.
3940
3941 2014-06-23 Pedro Alves <palves@redhat.com>
3942
3943 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3944 DR_CONTROL before setting DR0..DR3.
3945 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3946 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3947 bits of DR_CONTROL related to the debug register slot being
3948 disabled. If all slots are vacant, clear local slowdown as well,
3949 and assert DR_CONTROL is 0.
3950
3951 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3952
3953 * python/lib/gdb/command/xmethods.py
3954 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3955 current progspace only if the string "progspace" matches LOCUS_RE.
3956
3957 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 Fix --with-system-readline with readline-6.3 patch 5.
3960 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3961 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3962 types.
3963
3964 2014-06-20 Tom Tromey <tromey@redhat.com>
3965
3966 * dwarf2read.c (dw2_get_real_path): Use correct type in
3967 OBSTACK_CALLOC.
3968 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3969
3970 2014-06-20 Gary Benson <gbenson@redhat.com>
3971
3972 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3973 * common/glibc_thread_db.h: Likewise.
3974 * common/i386-cpuid.h: Likewise.
3975 * common/i386-gcc-cpuid.h: Likewise.
3976 * common/linux-btrace.h: Likewise.
3977 * common/linux-osdata.h: Likewise.
3978 * common/linux-procfs.h: Likewise.
3979 * common/linux-ptrace.h: Likewise.
3980 * common/mips-linux-watch.h: Likewise.
3981 * common/linux-btrace.c: Moved to nat.
3982 * common/linux-osdata.c: Likewise.
3983 * common/linux-procfs.c: Likewise.
3984 * common/linux-ptrace.c: Likewise.
3985 * common/mips-linux-watch.c: Likewise.
3986 * nat/gdb_thread_db.h: Moved from common.
3987 * nat/glibc_thread_db.h: Likewise.
3988 * nat/i386-cpuid.h: Likewise.
3989 * nat/i386-gcc-cpuid.h: Likewise.
3990 * nat/linux-btrace.c: Likewise.
3991 * nat/linux-btrace.h: Likewise.
3992 * nat/linux-osdata.c: Likewise.
3993 * nat/linux-osdata.h: Likewise.
3994 * nat/linux-procfs.c: Likewise.
3995 * nat/linux-procfs.h: Likewise.
3996 * nat/linux-ptrace.c: Likewise.
3997 * nat/linux-ptrace.h: Likewise.
3998 * nat/mips-linux-watch.c: Likewise.
3999 * nat/mips-linux-watch.h: Likewise.
4000 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4001 (object file files): Reordered.
4002 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4003 of glibc_thread_db.h.
4004
4005 2014-06-20 Gary Benson <gbenson@redhat.com>
4006
4007 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4008 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4009 (i386_dr_low): Likewise.
4010 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4011 (i386_dr_low_set_addr): Likewise.
4012 (i386_dr_low_get_addr): Likewise.
4013 (i386_dr_low_can_set_control): Likewise.
4014 (i386_dr_low_set_control): Likewise.
4015 (i386_dr_low_get_control): Likewise.
4016 (i386_dr_low_get_status): Likewise.
4017 (i386_get_debug_register_length): Likewise.
4018 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4019 (i386_dr_low): Likewise.
4020 * nat/i386-dregs.c (i386-low.h): Remove include.
4021 (i386-nat.h): Likewise.
4022 (nat/i386-dregs.h): New include.
4023 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4024 (i386_dr_low_set_addr): Likewise.
4025 (i386_dr_low_get_addr): Likewise.
4026 (i386_dr_low_can_set_control): Likewise.
4027 (i386_dr_low_set_control): Likewise.
4028 (i386_dr_low_get_control): Likewise.
4029 (i386_dr_low_get_status): Likewise.
4030 (i386_get_debug_register_length): Likewise.
4031 (debug_hw_points): Likewise.
4032
4033 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4034
4035 * Makefile.in (SFILES): Add d-exp.y.
4036 (YYFILES): Add d-exp.c.
4037 (YYOBJ): Add d-exp.o.
4038 (local-maintainer-clean): Delete d-exp.c.
4039 * d-exp.y: New file.
4040 * d-lang.h (d_parse): New declaration.
4041 (d_error): New declaration.
4042 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4043 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4044 PREC_ORDER operators.
4045 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4046
4047 2014-06-19 Yao Qi <yao@codesourcery.com>
4048
4049 * gdbthread.h (any_running): Remove the declaration.
4050 * thread.c (any_running): Remove.
4051
4052 2014-06-19 Yao Qi <yao@codesourcery.com>
4053
4054 * gdbthread.h (struct thread_info) <state>: Change its type to
4055 'enum thread_state'. Update comments.
4056
4057 2014-06-19 Pedro Alves <palves@redhat.com>
4058
4059 * gdbthread.h (ALL_THREADS): Delete.
4060 (ALL_NON_EXITED_THREADS): New macro.
4061 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4062 instead of ALL_THREADS.
4063 * infrun.c (find_thread_needs_step_over)
4064 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4065 instead of ALL_THREADS.
4066 * record-btrace.c (record_btrace_open)
4067 (record_btrace_stop_recording, record_btrace_close)
4068 (record_btrace_is_replaying, record_btrace_resume)
4069 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4070 * remote.c (append_pending_thread_resumptions): Likewise.
4071 * thread.c (thread_apply_all_command): Likewise.
4072
4073 2014-06-19 Gary Benson <gbenson@redhat.com>
4074
4075 * i386-nat.c (i386_stopped_by_watchpoint):
4076 Use i386_dr_stopped_by_watchpoint.
4077 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4078 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4079
4080 2014-06-19 Gary Benson <gbenson@redhat.com>
4081
4082 * nat/i386-dregs.c: New file.
4083 * Makefile.in (i386-dregs.o): New rule.
4084 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4085 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4086 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4087 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4088 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4089 * config/i386/go32.mh (NATDEPFILES): Likewise.
4090 * config/i386/linux.mh (NATDEPFILES): Likewise.
4091 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4092 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4093 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4094 * i386-nat.h (debug_hw_points): New declaration.
4095 * i386-nat.c (breakpoint.h): Remove include.
4096 (command.h): Likewise.
4097 (target.h): Likewise.
4098 (gdb_assert.h): Likewise.
4099 (debug_hw_points): Made nonstatic.
4100 (debug_printf): Now in i386-dregs.c.
4101 (TARGET_HAS_DR_LEN_8): Likewise.
4102 (DR_CONTROL_SHIFT): Likewise.
4103 (DR_CONTROL_SIZE): Likewise.
4104 (DR_RW_EXECUTE): Likewise.
4105 (DR_RW_WRITE): Likewise.
4106 (DR_RW_READ): Likewise.
4107 (DR_RW_IORW): Likewise.
4108 (DR_LEN_1): Likewise.
4109 (DR_LEN_2): Likewise.
4110 (DR_LEN_4): Likewise.
4111 (DR_LEN_8): Likewise.
4112 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4113 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4114 (DR_ENABLE_SIZE): Likewise.
4115 (DR_LOCAL_SLOWDOWN): Likewise.
4116 (DR_GLOBAL_SLOWDOWN): Likewise.
4117 (DR_CONTROL_RESERVED): Likewise.
4118 (I386_DR_CONTROL_MASK): Likewise.
4119 (I386_DR_VACANT): Likewise.
4120 (I386_DR_LOCAL_ENABLE): Likewise.
4121 (I386_DR_GLOBAL_ENABLE): Likewise.
4122 (I386_DR_DISABLE): Likewise.
4123 (I386_DR_SET_RW_LEN): Likewise.
4124 (I386_DR_GET_RW_LEN): Likewise.
4125 (I386_DR_WATCH_HIT): Likewise.
4126 (i386_wp_op_t): Likewise.
4127 (i386_show_dr): Likewise.
4128 (i386_length_and_rw_bits): Likewise.
4129 (i386_insert_aligned_watchpoint): Likewise.
4130 (i386_remove_aligned_watchpoint): Likewise.
4131 (i386_handle_nonaligned_watchpoint): Likewise.
4132 (i386_update_inferior_debug_regs): Likewise.
4133 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4134 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4135 (i386_region_ok_for_watchpoint):
4136 Use i386_dr_region_ok_for_watchpoint.
4137 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4138
4139 2014-06-19 Gary Benson <gbenson@redhat.com>
4140
4141 * i386-nat.c (i386_insert_hw_breakpoint): Use
4142 i386_insert_watchpoint.
4143 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4144
4145 2014-06-19 Gary Benson <gbenson@redhat.com>
4146
4147 * i386-nat.c (i386_dr_show): Renamed to
4148 i386_show_dr and made static. All uses updated.
4149 (i386_dr_length_and_rw_bits): Renamed to
4150 i386_length_and_rw_bits and made static.
4151 All uses updated.
4152 (i386_dr_insert_aligned_watchpoint): Renamed to
4153 i386_insert_aligned_watchpoint and made static.
4154 All uses updated.
4155 (i386_dr_remove_aligned_watchpoint): Renamed to
4156 i386_remove_aligned_watchpoint and made static.
4157 All uses updated.
4158 (i386_dr_update_inferior_debug_regs): Renamed to
4159 i386_update_inferior_debug_regs and made static.
4160 All uses updated.
4161 * nat/i386-dregs.h (i386_dr_show): Removed.
4162 (i386_dr_length_and_rw_bits): Likewise.
4163 (i386_dr_insert_aligned_watchpoint): Likewise.
4164 (i386_dr_remove_aligned_watchpoint): Likewise.
4165 (i386_dr_update_inferior_debug_regs): Likewise.
4166
4167 2014-06-19 Gary Benson <gbenson@redhat.com>
4168
4169 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4170 * configure: Regenerate.
4171 * config.in: Likewise.
4172 * main.c (signal.h): New include.
4173 (setup_alternate_signal_stack): New function.
4174 (captured_main): Call the above.
4175 * cp-support.c (signal.h): New include.
4176 (catch_demangler_crashes): New flag.
4177 (SIGJMP_BUF): New define.
4178 (SIGSETJMP): Likewise.
4179 (SIGLONGJMP): Likewise.
4180 (gdb_demangle_jmp_buf): New static global.
4181 (gdb_demangle_attempt_core_dump): Likewise.
4182 (gdb_demangle_signal_handler): New function.
4183 (gdb_demangle): If catch_demangler_crashes is set, install the
4184 above signal handler before calling bfd_demangle, and restore
4185 the original signal handler afterwards. Display the offending
4186 symbol and call demangler_warning the first time a segmentation
4187 fault is caught.
4188 (_initialize_cp_support): New maint set/show command.
4189
4190 2014-06-19 Gary Benson <gbenson@redhat.com>
4191
4192 * utils.h (resource_limit_kind): New enum.
4193 (can_dump_core): New declaration.
4194 (warn_cant_dump_core): Likewise.
4195 (dump_core): Likewise.
4196 * utils.c (dump_core): Made nonstatic. Added new
4197 parameter "limit_kind".
4198 (can_dump_core): Made nonstatic. Moved printing code to...
4199 (warn_cant_dump_core): New function.
4200 (can_dump_core_warn): Likewise.
4201 (internal_vproblem): Replace calls to can_dump_core with
4202 calls to can_dump_core_warn. Supply new argument to each.
4203
4204 2014-06-19 Gary Benson <gbenson@redhat.com>
4205
4206 * utils.h (demangler_vwarning): New declaration.
4207 (demangler_warning): Likewise.
4208 * utils.c (struct internal_problem)
4209 <user_settable_should_quit>: New field.
4210 <user_settable_should_dump_core>: Likewise
4211 (internal_error_problem): Add values for above new fields.
4212 (internal_warning_problem): Likewise.
4213 (demangler_warning_problem): New static global.
4214 (demangler_vwarning): New function.
4215 (demangler_warning): Likewise.
4216 (add_internal_problem_command): Selectively add commands.
4217 (_initialize_utils): New internal problem command.
4218 * maint.c (maintenance_demangler_warning): New function.
4219 (_initialize_maint_cmds): New command.
4220
4221 2014-06-18 Tom Tromey <tromey@redhat.com>
4222
4223 * f-valprint.c (info_common_command_for_block): Update.
4224 * symtab.h (struct general_symbol_info) <common_block>: Now
4225 const.
4226
4227 2014-06-18 Tom Tromey <tromey@redhat.com>
4228
4229 * symtab.h (struct symtab) <blockvector>: Now const.
4230 * ada-lang.c (ada_add_global_exceptions): Update.
4231 * buildsym.c (augment_type_symtab): Update.
4232 * dwarf2read.c (dw2_lookup_symbol): Update.
4233 * jit.c (finalize_symtab): Update.
4234 * jv-lang.c (add_class_symtab_symbol): Update.
4235 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4236 Update.
4237 * objfiles.c (objfile_relocate1): Update.
4238 * psymtab.c (lookup_symbol_aux_psymtabs)
4239 (maintenance_check_psymtabs): Update.
4240 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4241 Update.
4242 * spu-tdep.c (spu_catch_start): Update.
4243 * symmisc.c (dump_symtab_1): Update.
4244 * symtab.c (lookup_global_symbol_from_objfile)
4245 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4246 (basic_lookup_transparent_type_quick)
4247 (basic_lookup_transparent_type, find_pc_sect_symtab)
4248 (find_pc_sect_line, search_symbols): Update.
4249 * block.c (find_block_in_blockvector): Make "bl" const.
4250 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4251 const.
4252 (blockvector_contains_pc): Make "bv" const.
4253 (block_for_pc_sect): Update.
4254 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4255 (blockvector_contains_pc): Update.
4256 * breakpoint.c (resolve_sal_pc): Update.
4257 * inline-frame.c (block_starting_point_at): Update.
4258
4259 2014-06-18 Tom Tromey <tromey@redhat.com>
4260
4261 * completer.c (complete_line): Make "line_buffer" const.
4262 * completer.h (complete_line): Update.
4263
4264 2014-06-18 Tom Tromey <tromey@redhat.com>
4265
4266 * symtab.c (add_macro_name): Remove unneeded cast.
4267
4268 2014-06-18 Tom Tromey <tromey@redhat.com>
4269
4270 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4271 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4272
4273 2014-06-18 Tom Tromey <tromey@redhat.com>
4274
4275 * probe.c (info_probes_for_ops): Make "arg" const.
4276 * probe.h (info_probes_for_ops): Update.
4277
4278 2014-06-18 Tom Tromey <tromey@redhat.com>
4279
4280 * varobj.c (varobj_create): Update.
4281 * valops.c (value_of_this): Update.
4282 * tracepoint.c (add_local_symbols, scope_info): Update.
4283 * symtab.h (struct general_symbol_info) <block>: Now const.
4284 * symtab.c (skip_prologue_sal)
4285 (default_make_symbol_completion_list_break_on)
4286 (skip_prologue_using_sal): Update.
4287 * stack.h (iterate_over_block_locals)
4288 (iterate_over_block_local_vars): Update.
4289 * stack.c (print_frame_args): Update.
4290 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4291 parameter const.
4292 (get_selected_block): Make return type const.
4293 * python/py-frame.c (frapy_block): Update.
4294 * python/py-block.c (gdbpy_block_for_pc): Update.
4295 * p-exp.y (%union) <bval>: Now const.
4296 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4297 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4298 * m2-exp.y (%union) <bval>: Now const.
4299 * linespec.c (get_current_search_block): Make return type const.
4300 (create_sals_line_offset, find_label_symbols): Update.
4301 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4302 Update.
4303 (block_starting_point_at): Make "block" const.
4304 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4305 (check_exception_resume): Update.
4306 * guile/scm-frame.c (gdbscm_frame_block): Update.
4307 * guile/scm-block.c (gdbscm_lookup_block): Update.
4308 * frame.h (get_frame_block): Update.
4309 (get_selected_block): Make return type const.
4310 * frame.c (frame_id_inner): Update.
4311 * f-valprint.c (info_common_command_for_block)
4312 (info_common_command): Update.
4313 * dwarf2loc.c (dwarf2_find_location_expression)
4314 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4315 (locexpr_describe_location_piece): Update.
4316 * c-exp.y (%union) <bval>: Now const.
4317 * breakpoint.c (resolve_sal_pc): Update.
4318 * blockframe.c (get_frame_block):Make return type const.
4319 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4320 (block_innermost_frame): Update.
4321 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4322 (block_for_pc, block_for_pc_sect): Update.
4323 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4324 'pblock' const.
4325 (block_for_pc_sect, block_for_pc): Make return type const.
4326 * ax-gdb.c (gen_expr): Update.
4327 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4328 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4329 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4330 (ada_read_var_value): Update.
4331 * ada-exp.y (struct name_info) <block>: Now const.
4332 (%union): Likewise.
4333 (block_lookup): Constify.
4334
4335 2014-06-18 Gary Benson <gbenson@redhat.com>
4336
4337 * nat/i386-dregs.h: New file.
4338 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4339 * i386-nat.h (i386-dregs.h): New include.
4340 (DR_FIRSTADDR): Now in i386-dregs.h.
4341 (DR_LASTADDR): Likewise.
4342 (DR_NADDR): Likewise.
4343 (DR_STATUS): Likewise.
4344 (DR_CONTROL): Likewise.
4345 (i386_debug_reg_state): Likewise.
4346 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4347
4348 2014-06-18 Don Breazeal <donb@codesourcery.com>
4349
4350 * breakpoint.c (set_longjmp_breakpoint): Call
4351 momentary_breakpoint_from_master with additional argument.
4352 (set_longjmp_breakpoint_for_call_dummy): Call
4353 momentary_breakpoint_from_master with additional argument.
4354 (set_std_terminate_breakpoint): Call
4355 momentary_breakpoint_from_master with additional argument.
4356 (momentary_breakpoint_from_master): Add argument to function
4357 definition and use it to initialize structure member flag.
4358 (clone_momentary_breakpoint): Call
4359 momentary_breakpoint_from_master with additional argument.
4360 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4361 member flags set in momentary_breakpoint_from_master.
4362
4363 2014-06-18 Gary Benson <gbenson@redhat.com>
4364
4365 * i386-nat.c (i386_show_dr): Renamed to
4366 i386_dr_show and made nonstatic. All uses updated.
4367 (i386_length_and_rw_bits): Renamed to
4368 i386_dr_length_and_rw_bits and made nonstatic.
4369 All uses updated.
4370 (i386_insert_aligned_watchpoint): Renamed to
4371 i386_dr_insert_aligned_watchpoint and made nonstatic.
4372 All uses updated.
4373 (i386_remove_aligned_watchpoint): Renamed to
4374 i386_dr_remove_aligned_watchpoint and made nonstatic.
4375 All uses updated.
4376 (i386_update_inferior_debug_regs): Renamed to
4377 i386_dr_update_inferior_debug_regs and made nonstatic.
4378 All uses updated.
4379
4380 2014-06-18 Gary Benson <gbenson@redhat.com>
4381
4382 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4383 (i386_dr_low_can_set_control): Likewise.
4384 (i386_dr_low_set_addr): Likewise.
4385 (i386_dr_low_set_control): Likewise.
4386 (i386_dr_low_get_addr): Likewise.
4387 (i386_dr_low_get_status): Likewise.
4388 (i386_dr_low_get_control): Likewise.
4389 (i386_insert_aligned_watchpoint): Use new macros.
4390 (i386_update_inferior_debug_regs): Likewise.
4391 (i386_stopped_data_address): Likewise.
4392
4393 2014-06-18 Gary Benson <gbenson@redhat.com>
4394
4395 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4396 New parameter. All uses updated.
4397
4398 2014-06-18 Gary Benson <gbenson@redhat.com>
4399
4400 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4401 All uses updated.
4402
4403 2014-06-18 Gary Benson <gbenson@redhat.com>
4404
4405 * i386-nat.c (debug_printf): New macro.
4406 (i386_get_debug_register_length): Likewise.
4407 (TARGET_HAS_DR_LEN_8): Use above macro.
4408 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4409 and printf_unfiltered. Use phex to format values.
4410
4411 2014-06-18 Gary Benson <gbenson@redhat.com>
4412
4413 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4414 Make const.
4415
4416 2014-06-18 Gary Benson <gbenson@redhat.com>
4417
4418 * i386-nat.c: Comment changes.
4419
4420 2014-06-18 Gary Benson <gbenson@redhat.com>
4421
4422 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4423
4424 2014-06-18 Gary Benson <gbenson@redhat.com>
4425
4426 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4427 (i386_insert_aligned_watchpoint): Likewise.
4428 (i386_remove_aligned_watchpoint): Likewise.
4429 (i386_handle_nonaligned_watchpoint): Likewise.
4430
4431 2014-06-18 Gary Benson <gbenson@redhat.com>
4432
4433 * i386-nat.c: Whitespace changes.
4434
4435 2014-06-17 Samuel Bronson <naesten@gmail.com>
4436
4437 * MAINTAINERS: Update Roland McGrath's email address.
4438 Thanks to Sergio Durigan Junior for pointing out that he left
4439 Red Hat a while ago, and giving me a current address.
4440
4441 2014-06-17 Tom Tromey <tromey@redhat.com>
4442
4443 * utils.h (savestring): Remove declaration.
4444
4445 2014-06-17 Tom Tromey <tromey@redhat.com>
4446
4447 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4448
4449 2014-06-16 Keith Seitz <keiths@redhat.com>
4450
4451 PR mi/15863
4452 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4453 to update the varobj if inferior_ptid is null_ptid.
4454
4455 2014-06-16 Tom Tromey <tromey@redhat.com>
4456
4457 * target.h (struct target_ops) <to_info_proc>: Make parameter
4458 const.
4459 (target_info_proc): Update.
4460 * target.c (target_info_proc): Make "args" const.
4461 * procfs.c (procfs_info_proc): Update.
4462 * linux-tdep.c (linux_info_proc): Update.
4463 (linux_core_info_proc_mappings): Make "args" const.
4464 (linux_core_info_proc): Update.
4465 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4466 * gdbarch.c: Rebuild.
4467 * gdbarch.h: Rebuild.
4468 * corelow.c (core_info_proc): Update.
4469
4470 2014-06-16 Tom Tromey <tromey@redhat.com>
4471
4472 * target.h (struct target_ops) <to_disconnect>: Make parameter
4473 const.
4474 (target_disconnect): Update.
4475 * target.c (target_disconnect): Make "args" const.
4476 * target-delegates.c: Rebuild.
4477 * remote.c (remote_disconnect): Update.
4478 * record.h (record_disconnect): Update.
4479 * record.c (record_disconnect): Update.
4480 * inf-child.c (inf_child_disconnect): Update.
4481
4482 2014-06-16 Tom Tromey <tromey@redhat.com>
4483
4484 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4485 * target.c (debug_to_rcmd, default_rcmd): Update.
4486 * target-delegates.c: Rebuild.
4487 * remote.c (remote_rcmd): Update.
4488 * monitor.c (monitor_rcmd): Update.
4489
4490 2014-06-16 Pedro Alves <palves@redhat.com>
4491
4492 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4493 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4494 have OBJF_SHARED set.
4495 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4496 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4497 instead of OBJF_USERLOADED.
4498 * objfiles.h (OBJF_SHARED): Update comment.
4499 (userloaded_objfile_contains_address_p): Rename to ...
4500 (shared_objfile_contains_address_p): ... this, and update
4501 comments.
4502 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4503 new objfile.
4504 (remove_symbol_file_command): Skip objfiles that don't have
4505 OBJF_SHARED set.
4506
4507 2014-06-16 Tom Tromey <tromey@redhat.com>
4508
4509 * minsyms.h (prim_record_minimal_symbol)
4510 (prim_record_minimal_symbol_and_info): Update comments.
4511
4512 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4513
4514 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4515 or --without-guile, according to how GDB was built.
4516
4517 2014-06-13 Tom Tromey <tromey@redhat.com>
4518
4519 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4520 to help_list.
4521 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4522 to help_list.
4523 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4524 help_list.
4525 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4526 help_list.Pass all_commands, not -1, to help_list.
4527 * cli/cli-dump.c (dump_command, append_command)
4528 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4529 (binary_dump_command, binary_append_command): Pass all_commands,
4530 not -1, to help_list.
4531 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4532 -1, to help_list.
4533 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4534 -1, to help_list.
4535 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4536 help_list.
4537 * top.c (set_history): Pass all_commands, not -1, to help_list.
4538 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4539 all_commands, not -1, to help_list.
4540 * symfile.c (overlay_command): Pass all_commands, not -1, to
4541 help_list.
4542 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4543 help_list.
4544 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4545 help_list.
4546 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4547 -1, to help_list.
4548 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4549 not -1, to help_list.
4550 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4551 not -1, to help_list.
4552 * maint.c (maintenance_command, maintenance_info_command)
4553 (maintenance_print_command, maintenance_set_cmd): Pass
4554 all_commands, not -1, to help_list.
4555 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4556 help_list.
4557 * language.c (set_check): Pass all_commands, not -1, to help_list.
4558 * infcmd.c (unset_command): Pass all_commands, not -1, to
4559 help_list.
4560 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4561 help_list.
4562 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4563 help_list.
4564 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4565 help_list.
4566 * breakpoint.c (save_command): Pass all_commands, not -1, to
4567 help_list.
4568 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4569 all_commands, not -1, to help_list.
4570
4571 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4572
4573 * regcache.c (struct register_to_invalidate): New structure.
4574 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4575 functions.
4576 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4577
4578 2014-06-12 Yao Qi <yao@codesourcery.com>
4579
4580 * varobj.c (varobj_get_num_children): Call
4581 varobj_is_dynamic_p.
4582 (varobj_list_children): Likewise.
4583 (varobj_update): Likewise. Update comments.
4584
4585 2014-06-12 Yao Qi <yao@codesourcery.com>
4586
4587 * varobj.c (varobj_pretty_printed_p): Rename to ...
4588 (varobj_is_dynamic_p): ... this. New function.
4589 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4590 (varobj_is_dynamic_p): Declare.
4591 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4592 (mi_print_value_p, varobj_update_one): Likewise.
4593
4594 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4595 Yao Qi <yao@codesourcery.com>
4596
4597 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4598 (varobj_get_iterator): Wrap up code for pretty-printer by
4599 "#if HAVE_PYTHON" and "#endif".
4600 (update_dynamic_varobj_children): Likewise.
4601
4602 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4603 Yao Qi <yao@codesourcery.com>
4604
4605 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4606 gdb_python_initialized is false. Move some code from varobj.c.
4607 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4608 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4609 (struct varobj_item): Moved to varobj-iter.h".
4610 (varobj_clear_saved_item): New function.
4611 (update_dynamic_varobj_children): Move python-related code to
4612 py-varobj.c.
4613 (free_variable): Call varobj_clear_saved_item and
4614 varobj_iter_delete.
4615
4616 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4617 Yao Qi <yao@codesourcery.com>
4618
4619 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4620 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4621 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4622 (py-varobj.o): New rule.
4623 * python/py-varobj.c: New file.
4624 * python/python-internal.h (py_varobj_get_iterator): Declare.
4625 * varobj-iter.h: New file.
4626 * varobj.c: Include "varobj-iter.h"
4627 (struct varobj) <child_iter>: Change its type from "PyObject *"
4628 to "struct varobj_iter *".
4629 <saved_item>: Likewise.
4630 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4631 [HAVE_PYTHON] (varobj_get_iterator): New function.
4632 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4633 python-specific code to python/py-varobj.c.
4634 (install_visualizer): Call varobj_iter_delete instead of
4635 Py_XDECREF.
4636 * varobj.h (varobj_ensure_python_env): Declare.
4637
4638 2014-06-12 Yao Qi <yao@codesourcery.com>
4639
4640 * varobj.c (struct varobj_item): New structure.
4641 (create_child_with_value): Update declaration.
4642 (varobj_add_child): Replace arguments 'name' and 'value' with
4643 'item'. All callers updated.
4644 (install_dynamic_child): Likewise.
4645 (update_dynamic_varobj_children): Likewise.
4646 (varobj_add_child): Likewise.
4647 (create_child_with_value): Likewise.
4648
4649 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4650
4651 * NEWS: Create a new section for the next release branch.
4652 Rename the section of the current branch, now that it has
4653 been cut.
4654
4655 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4656
4657 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4658 * version.in: Bump version to 7.8.50.DATE-cvs.
4659
4660 2014-06-11 Pedro Alves <palves@redhat.com>
4661
4662 PR remote/17028
4663 * ser-mingw.c (net_windows_socket_check_pending): New function.
4664 (net_windows_select_thread): Ignore spurious wakeups. Use
4665 net_windows_socket_check_pending.
4666 (net_windows_wait_handle): Check for pending events with
4667 ioctlsocket, through net_windows_socket_check_pending, instead of
4668 checking the socket's event.
4669
4670 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4671
4672 * python/python-internal.h (gdb_PyObject_GetAttrString)
4673 (gdb_PyObject_HasAttrString): New inline function definitions.
4674 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4675 char * of the second argument to PyObject_GetAttrString.
4676
4677 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4678
4679 * serial.c (serial_write): Fix index of character to be printed
4680 in call to serial_logchar when serial debug traces are enabled.
4681
4682 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4683
4684 * gdbtypes (resolve_dynamic_range): Add function description.
4685
4686 2014-06-09 Pedro Alves <palves@redhat.com>
4687
4688 * linux-nat.c (linux_child_follow_fork): Initialize status with
4689 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4690 inner block. Only pass the signal to PTRACE_DETACH if in pass
4691 state.
4692
4693 2014-06-09 Gary Benson <gbenson@redhat.com>
4694
4695 * common/signals.c (gdb_signal_from_host): Reorder to separate
4696 the always-available ANSI-standard signals from the signals that
4697 require checking.
4698 (do_gdb_signal_to_host): Likewise.
4699 * proc-events.c (signal_table): Likewise.
4700
4701 2014-06-08 Hui Zhu <hui@codesourcery.com>
4702
4703 * common/linux-ptrace.c (linux_disable_event_reporting): New
4704 function.
4705 * common/linux-ptrace.h (linux_disable_event_reporting): New
4706 declaration.
4707 * linux-nat.c (linux_child_follow_fork): Do a single step before
4708 detach.
4709
4710 2014-06-07 Keith Seitz <keiths@redhat.com>
4711
4712 Revert:
4713 PR c++/16253
4714 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4715 from symbol_matches_domain in symtab.c. All local callers
4716 of symbol_matches_domain updated.
4717 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4718 search STRUCT_DOMAIN.
4719 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4720 independently. standard_lookup will do that automatically.
4721 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4722 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4723 (cp_lookup_symbol_in_namespace): Likewise.
4724 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4725 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4726 may return a STRUCT_DOMAIN match.
4727 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4728 * cp-support.c: Include language.h.
4729 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4730 VAR_DOMAIN.
4731 * psymtab.c (match_partial_symbol): Compare the requested
4732 domain with the symbol's domain directly.
4733 (lookup_partial_symbol): Likewise.
4734 * symtab.c (lookup_symbol_in_language): Explain when/why
4735 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4736 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4737 appropriate languages.
4738 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4739 and moved to ada-lang.c
4740 (lookup_block_symbol): Explain that this function only returns
4741 symbol matching the requested DOMAIN.
4742 Compare the requested domain with the symbol's domain directly.
4743 (iterate_over_symbols): Compare the requested domain with the
4744 symbol's domain directly.
4745 * symtab.h (symbol_matches_domain): Remove.
4746
4747 2014-06-06 Doug Evans <xdje42@gmail.com>
4748
4749 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4750 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4751 (gdbscm_guile_version_is_at_least): Declare.
4752 (gdbscm_scm_string_to_int): Declare.
4753 * guile/guile.c (gdbscm_guile_major_version): New global.
4754 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4755 (guile_datadir): New static global.
4756 (gdbscm_guile_data_directory): New function.
4757 (initialize_scheme_side): Update.
4758 (misc_guile_functions): Add guile-data-directory.
4759 (initialize_gdb_module): Fetch guile version number.
4760 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4761 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4762 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4763 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4764 comments.
4765 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4766 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4767 * guile/scm-value.c (gdbscm_value_to_string): Only call
4768 scm_port_conversion_strategy if Guile version >= 2.0.6.
4769
4770 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4771
4772 * main.c (print_gdb_help): Add -q and --silent.
4773
4774 2014-06-06 Gary Benson <gbenson@redhat.com>
4775
4776 * common/signals.c: Remove preprocessor conditionals for
4777 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4778 SIGSEGV and SIGTERM.
4779 * proc-events.c: Likewise.
4780
4781 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4782
4783 * symfile.c (symfile_free_objfile): Remove restriction to
4784 OBJF_USERLOADED.
4785 * symfile-mem.c (symbol_file_add_from_memory): Call
4786 add_target_sections_of_objfile.
4787
4788 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4789
4790 * guile/scm-value.c (gdbscm_history_append_x): Use
4791 'vlscm_get_value_smob_arg_unsafe' instead of
4792 'vlscm_scm_to_value'.
4793
4794 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4795
4796 PR mi/15806
4797 * utils.c (printchar): Don't escape at all if quoter is NUL.
4798 Update function documentation to clarify effect of parameter
4799 QUOTER.
4800 * remote.c (escape_buffer): Pass '\\' as the quoter to
4801 fputstrn_unfiltered.
4802 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4803 generate the output.
4804 (mi_solib_unloaded): Same.
4805
4806 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4807
4808 * development.sh: Delete.
4809 * Makefile.in (config.status): Adjust dependency on development.sh.
4810 * configure.ac: Adjust development.sh source call.
4811 * configure: Regenerate.
4812
4813 2014-06-04 Doug Evans <xdje42@gmail.com>
4814
4815 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4816 is_scheme_bkpt, spec.
4817 (bpscm_make_breakpoint_smob): Initialize new members.
4818 (gdbscm_create_breakpoint_x): Split into two ...
4819 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4820 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4821 (scheme_function breakpoint_functions): Update.
4822 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4823 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4824 register-breakpoint!.
4825
4826 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4827
4828 PR server/17023
4829 * mem-break.c (z_type_supported): Return zero if
4830 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4831
4832 2014-06-04 Tom Tromey <tromey@redhat.com>
4833
4834 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4835 value_from_contents_and_address_unresolved.
4836 (ada_template_to_fixed_record_type_1): Likewise.
4837 (ada_which_variant_applies): Likewise.
4838 * value.h (value_from_contents_and_address_unresolved): Declare.
4839 * value.c (value_from_contents_and_address_unresolved): New
4840 function.
4841 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4842 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4843 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4844
4845 2014-06-04 Tom Tromey <tromey@redhat.com>
4846
4847 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4848
4849 2014-06-04 Tom Tromey <tromey@redhat.com>
4850
4851 * procfs.c (procfs_attach): Make "args" const.
4852 * windows-nat.c (windows_attach): Make "args" const.
4853 * nto-procfs.c (procfs_attach): Make "args" const.
4854 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4855 * go32-nat.c (go32_attach): Make "args" const.
4856 * gnu-nat.c (gnu_attach): Make "args" const.
4857 * darwin-nat.c (darwin_attach): Make "args" const.
4858 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4859 * linux-nat.c (linux_nat_attach): Make "args" const.
4860 * remote.c (extended_remote_attach_1, extended_remote_attach):
4861 Make "args" const.
4862 * target.h (struct target_ops) <to_attach>: Make "args" const.
4863 (find_default_attach): Likewise.
4864 * utils.c (parse_pid_to_attach): Make "args" const.
4865 * utils.h (parse_pid_to_attach): Update.
4866
4867 2014-06-04 Tom Tromey <tromey@redhat.com>
4868
4869 * target-delegates.c: Rebuild.
4870 * target.c (default_thread_address_space): New function.
4871 (target_thread_address_space): Simplify.
4872 * target.h (struct target_ops) <to_thread_address_space>: Add
4873 TARGET_DEFAULT_FUNC.
4874
4875 2014-06-04 Doug Evans <xdje42@gmail.com>
4876
4877 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4878
4879 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4880
4881 * record-btrace.c: Include event-loop.h and inf-loop.h.
4882 (record_btrace_resume_exec_dir)
4883 (record_btrace_async_inferior_event_handler)
4884 (record_btrace_handle_async_inferior_event): New.
4885 (record_btrace_open): Create async event handler.
4886 (record_btrace_close): Delete async event handler.
4887 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4888 Mark async event handler.
4889 (record_btrace_execution_direction): New.
4890 (init_record_btrace_ops): Initialize to_execution_direction.
4891
4892 2014-06-03 Doug Evans <xdje42@gmail.com>
4893
4894 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4895 (gdbscm_make_parameter): Ditto.
4896
4897 2014-06-03 Doug Evans <dje@google.com>
4898
4899 * exec.c (exec_close_1): Call clear_section_table instead of
4900 resize_section_table.
4901 (clear_section_table): New function.
4902 (resize_section_table): Make static. Rename arg num_added to
4903 adjustment.
4904 * exec.h (clear_section_table): Declare.
4905 (resize_section_table): Delete.
4906 * progspace.c (release_program_space): Call clear_section_table
4907 instead of resize_section_table.
4908
4909 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4910
4911 * NEWS (Python Scripting): Add entry about the new xmethods
4912 feature.
4913
4914 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4915
4916 * python/py-xmethods.c: New file.
4917 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4918 (objfpy_dealloc): XDECREF on the new xmethods field.
4919 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4920 field.
4921 (objfpy_get_xmethods): New function.
4922 (objfile_getset): New entry 'xmethods'.
4923 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4924 (pspy_dealloc): XDECREF on the new xmethods field.
4925 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4926 field.
4927 (pspy_get_xmethods): New function.
4928 (pspace_getset): New entry 'xmethods'.
4929 * python/python-internal.h: Add declarations for new functions.
4930 * python/python.c (_initialize_python): Invoke
4931 gdbpy_initialize_xmethods.
4932 * python/lib/gdb/__init__.py (xmethods): New
4933 attribute.
4934 * python/lib/gdb/xmethod.py: New file.
4935 * python/lib/gdb/command/xmethods.py: New file.
4936
4937 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4938
4939 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4940 best match method returned by find_overload_match is an xmethod.
4941 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4942 the best matching operator returned by find_overload_match is an
4943 xmethod.
4944 * valops.c: #include "extension.h".
4945 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4946 Return void. The list of matching source methods is returned in
4947 "fn_list" and a vector of matching debug method workers is
4948 returned in "xm_worker_vec". Update all callers.
4949 (value_find_oload_method_list): Likewise.
4950 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4951 non-NULL, then the index of the best matching method in this
4952 vector is returned. Update all callers.
4953 (find_overload_match): Include xmethods while performing overload
4954 resolution.
4955
4956 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4957
4958 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4959 * extension-priv.h (struct extension_language_ops): Add the
4960 xmethod interface.
4961 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4962 get_matching_xmethod_workers, get_xmethod_argtypes,
4963 invoke_xmethod, free_xmethod_worker,
4964 free_xmethod_worker_vec): New functions.
4965 * extension.h: #include "common/vec.h".
4966 New function declarations.
4967 (struct xmethod_worker): New struct.
4968 (VEC (xmethod_worker_ptr)): New vector type.
4969 (xmethod_worker_ptr): New typedef.
4970 (xmethod_worker_vec): Likewise.
4971 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4972 builtin_type.
4973 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4974 (struct builtin_type): New field "xmethod".
4975 * valarith.c (value_ptradd): Assert that the value argument is not
4976 lval_xcallable.
4977 * valops.c (value_must_coerce_to_target): Return 0 for
4978 lval_xcallable values.
4979 * value.c (struct value): New field XM_WORKER in the field
4980 LOCATION.
4981 (value_address, value_raw_address): Return 0 for lval_xcallable
4982 values.
4983 (set_value_address): Assert that the value is not an
4984 lval_xcallable.
4985 (value_free): Free the associated xmethod worker when freeing
4986 lval_xcallable values.
4987 (set_value_component_location): Assert that the WHOLE value is not
4988 lval_xcallable.
4989 (value_of_xmethod, call_xmethod): New functions.
4990 * value.h: Declare "struct xmethod_worker".
4991 Declare new functions value_of_xmethod, call_xmethod.
4992
4993 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4994 Pedro Alves <palves@redhat.com>
4995
4996 PR breakpoints/17000
4997 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4998 New function, extracted from software_breakpoint_inserted_here_p.
4999 (software_breakpoint_inserted_here_p): Replace factored out code
5000 by call to find_non_raw_software_breakpoint_inserted_here.
5001 (bp_target_info_copy_insertion_state): New function.
5002 (bkpt_insert_location): Handle the case of a single-step
5003 breakpoint already inserted at the same address.
5004 (bkpt_remove_location): Handle the case of a single-step
5005 breakpoint still inserted at the same address.
5006 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5007 breakpoint already inserted at the same address.
5008 (deprecated_remove_raw_breakpoint): Handle the case of a
5009 non-raw breakpoint still inserted at the same address.
5010 (find_single_step_breakpoint): New function, extracted from
5011 single_step_breakpoint_inserted_here_p.
5012 (find_single_step_breakpoint): New function,
5013 factored out from single_step_breakpoint_inserted_here_p.
5014 (single_step_breakpoint_inserted_here_p): Reimplement.
5015
5016 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5017
5018 Pushed by Joel Brobecker <brobecker@adacore.com>
5019 * source.c (show_substitute_path_command): Fix display of matching
5020 substitution rules.
5021
5022 2014-06-03 Gary Benson <gbenson@redhat.com>
5023
5024 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5025
5026 2014-06-02 Doug Evans <xdje42@gmail.com>
5027
5028 Add parameter support for Guile.
5029 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5030 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5031 (scm-param.o): New rule.
5032 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5033 (gdbscm_misc_error): Declare.
5034 (gdbscm_canonicalize_command_name): Declare.
5035 (gdbscm_scm_to_host_string): Declare.
5036 (gdbscm_scm_from_host_string): Declare.
5037 (gdbscm_initialize_parameters): Declare.
5038 * guile/guile.c (initialize_gdb_module): Call
5039 gdbscm_initialize_parameters.
5040 * guile/lib/gdb.scm: Export parameter symbols.
5041 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5042 cmdscm_canonicalize_name and made public. All callers updated.
5043 * guile/scm-exception.c (gdbscm_misc_error): New function.
5044 * guile/scm-param.c: New file.
5045 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5046 (gdbscm_scm_to_host_string): New function.
5047 (gdbscm_scm_from_host_string): New function.
5048 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5049
5050 2014-06-02 Doug Evans <xdje42@gmail.com>
5051
5052 Add command support for Guile.
5053 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5054 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5055 (scm-cmd.o): New rule.
5056 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5057 (gdbscm_user_error_p): Declare.
5058 (gdbscm_parse_command_name): Declare.
5059 (gdbscm_valid_command_class_p): Declare.
5060 (gdbscm_initialize_commands): Declare.
5061 * guile/guile.c (initialize_gdb_module): Call
5062 gdbscm_initialize_commands.
5063 * guile/lib/gdb.scm: Export command symbols.
5064 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5065 (throw-user-error): New function.
5066 * guile/scm-cmd.c: New file.
5067 * guile/scm-exception.c (user_error_symbol): New static global.
5068 (gdbscm_user_error_p): New function.
5069 (gdbscm_initialize_exceptions): Set user_error_symbol.
5070 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5071
5072 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5073
5074 * top.c (command_loop): Handle comments here...
5075 (command_line_input): ... not here.
5076
5077 2014-06-02 Doug Evans <xdje42@gmail.com>
5078
5079 Add progspace support for Guile.
5080 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5081 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5082 (scm-progspace.o): New rule.
5083 * guile/guile-internal.h (pspace_smob): New typedef.
5084 (psscm_pspace_smob_pretty_printers): Declare.
5085 (psscm_pspace_smob_from_pspace): Declare.
5086 (psscm_scm_from_pspace): Declare.
5087 * guile/guile.c (initialize_gdb_module): Call
5088 gdbscm_initialize_pspaces.
5089 * guile/lib/gdb.scm: Export progspace symbols.
5090 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5091 support.
5092 (append-pretty-printer!): Ditto.
5093 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5094 Implement.
5095 * guile/scm-progspace.c: New file.
5096
5097 2014-06-03 Alan Modra <amodra@gmail.com>
5098
5099 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5100 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5101
5102 2014-06-02 Doug Evans <dje@google.com>
5103
5104 Add support for skeletonless type units.
5105 * dwarf2read.c (struct dwarf2_per_objfile): New member
5106 n_allocated_type_units.
5107 (struct dwarf2_per_objfile) <tu_stats>: New member
5108 nr_all_type_units_reallocs.
5109 (create_signatured_type_table_from_index): Initialize
5110 n_allocated_type_units
5111 (create_all_type_units): Ditto.
5112 (add_type_unit): Move up in file. New arg slot.
5113 All callers updated. Increase space for all_type_units more
5114 efficiently.
5115 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5116 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5117 (lookup_dwp_signatured_type): Ditto.
5118 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5119 All callers updated.
5120 (build_type_psymtabs_1): Leave type_unit_groups as
5121 NULL if no TUs present.
5122 (print_tu_stats): New function.
5123 (process_skeletonless_type_unit): New function.
5124 (process_dwo_file_for_skeletonless_type_units): New
5125 function.
5126 (process_skeletonless_type_units): New function.
5127 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5128 Call print tu_stats if debugging enabled.
5129
5130 2014-06-02 Pedro Alves <palves@redhat.com>
5131
5132 * breakpoint.c (build_target_command_list): Don't build a command
5133 list if we have any duplicate location that isn't a dprintf.
5134
5135 2014-06-02 Pedro Alves <palves@redhat.com>
5136
5137 * breakpoint.c (dprintf_breakpoint_hit): New function.
5138 (initialize_breakpoint_ops): Install it as dprintf's
5139 breakpoint_hit method.
5140
5141 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5142
5143 * source.c (substitute_path_rule_matches): Simplify using
5144 filename_ncmp instead of FILENAME_CMP.
5145
5146 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5147
5148 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5149
5150 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5151
5152 * configure.ac: When Guile is available, check for the
5153 availability of 'scm_new_smob'.
5154 * configure, config.h.in: Regenerate.
5155 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5156 function.
5157
5158 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5159
5160 * frame.c (struct frame_info): Add stop_string field.
5161 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5162 (get_prev_frame_always): Old content moved into
5163 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5164 TRY_CATCH, handle MEMORY_ERROR exceptions.
5165 (frame_stop_reason_string): New function definition.
5166 * frame.h (unwind_stop_reason_to_string): Extend comment to
5167 mention frame_stop_reason_string.
5168 (frame_stop_reason_string): New function declaration.
5169 * stack.c (frame_info): Switch to frame_stop_reason_string.
5170 (backtrace_command_1): Switch to frame_stop_reason_string.
5171 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5172 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5173 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5174
5175 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5176
5177 * frame.c (frame_stop_reason_string): Rename to ...
5178 (unwind_stop_reason_to_string): this.
5179 * frame.h (frame_stop_reason_string): Rename to ...
5180 (unwind_stop_reason_to_string): this.
5181 * stack.c (frame_info): Update call to frame_stop_reason_string.
5182 (backtrace_command_1): Likewise.
5183 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5184 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5185
5186 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5187
5188 * frame.c (remove_prev_frame): New function.
5189 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5190 remove_prev_frame.
5191
5192 2014-05-29 Pedro Alves <palves@redhat.com>
5193
5194 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5195 and make it const. When a single-step decays to a continue,
5196 clear 'step', not 'hw_step'. Pass whether the caller wanted
5197 to step to user_visible_resume_ptid, not what we ask the
5198 target to do.
5199
5200 2014-05-29 Pedro Alves <palves@redhat.com>
5201
5202 * infrun.c (process_event_stop_test, handle_step_into_function)
5203 (handle_step_into_function_backward): Adjust.
5204 Don't set the even thread's stop_step and call stop_waiting before
5205 calling end_stepping_range. Instead do that ...
5206 (end_stepping_range): ... here. Take an ecs pointer parameter.
5207
5208 2014-05-29 Pedro Alves <palves@redhat.com>
5209
5210 * infrun.c (stop_stepping): Rename to ...
5211 (stop_waiting): ... this.
5212 (proceed): Update comment.
5213 (process_event_stop_test, handle_inferior_event)
5214 (handle_signal_stop, handle_step_into_function)
5215 (handle_step_into_function_backward): Update.
5216
5217 2014-05-29 Pedro Alves <palves@redhat.com>
5218
5219 * infcall.c (run_inferior_call): Don't check whether the current
5220 thread is running after the proceed call.
5221
5222 2014-05-29 Pedro Alves <palves@redhat.com>
5223 Tom Tromey <tromey@redhat.com>
5224
5225 * NEWS: Mention "maint set target-async", "set mi-async", and that
5226 background execution commands are now always available.
5227 * target.h (target_async_permitted): Update comment.
5228 * target.c (target_async_permitted, target_async_permitted_1):
5229 Default to 1.
5230 (set_target_async_command): Rename to ...
5231 (maint_set_target_async_command): ... this.
5232 (show_target_async_command): Rename to ...
5233 (maint_show_target_async_command): ... this.
5234 (_initialize_target): Adjust.
5235 * infcmd.c (prepare_execution_command): Make extern.
5236 * inferior.h (prepare_execution_command): Declare.
5237 * infrun.c (set_observer_mode): Leave target async alone.
5238 * mi/mi-interp.c (mi_interpreter_init): Install
5239 mi_on_sync_execution_done as sync_execution_done observer.
5240 (mi_on_sync_execution_done): New function.
5241 (mi_execute_command_input_handler): Don't print the prompt if we
5242 just started a synchronous command with an async target.
5243 (mi_on_resume): Check sync_execution before printing prompt.
5244 * mi/mi-main.h (mi_async_p): Declare.
5245 * mi/mi-main.c: Include gdbcmd.h.
5246 (mi_async_p): New function.
5247 (mi_async, mi_async_1): New globals.
5248 (set_mi_async_command, show_mi_async_command, mi_async): New
5249 functions.
5250 (exec_continue): Call prepare_execution_command.
5251 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5252 (mi_execute_async_cli_command): Use mi_async_p.
5253 (_initialize_mi_main): Install "set mi-async". Make
5254 "target-async" a deprecated alias.
5255
5256 2014-05-29 Pedro Alves <palves@redhat.com>
5257
5258 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5259 (_initialize_cli_interp): Adjust.
5260 * event-loop.c: Include "observer.h".
5261 (start_event_loop): Notify 'command_error' observers instead of
5262 calling display_gdb_prompt. Remove FIXME comment.
5263 * event-top.c (display_gdb_prompt): Remove call into the
5264 interpreters.
5265 * inf-loop.c: Include "observer.h".
5266 (inferior_event_handler): Notify 'command_error' observers instead
5267 of calling display_gdb_prompt.
5268 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5269 observers instead of calling display_gdb_prompt.
5270 * interps.c (interp_set): Don't call display_gdb_prompt.
5271 (current_interp_display_prompt_p): Delete.
5272 * interps.h (interp_prompt_p): Delete declaration.
5273 (interp_prompt_p_ftype): Delete.
5274 (struct interp_procs) <prompt_proc_p>: Delete field.
5275 (current_interp_display_prompt_p): Delete declaration.
5276 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5277 (_initialize_mi_interp): Adjust.
5278 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5279 'command_error' observers.
5280 (tui_on_sync_execution_done, tui_on_command_error): New
5281 functions.
5282 (tui_display_prompt_p): Delete.
5283 (_initialize_tui_interp): Adjust.
5284
5285 2014-05-29 Pedro Alves <palves@redhat.com>
5286
5287 PR gdb/13860
5288 * cli/cli-interp.c: Include infrun.h and observer.h.
5289 (cli_uiout, cli_interp): New globals.
5290 (cli_on_signal_received, cli_on_end_stepping_range)
5291 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5292 functions.
5293 (cli_interpreter_init): Install them as 'end_stepping_range',
5294 'signal_received' 'signal_exited', 'exited' and 'no_history'
5295 observers.
5296 (_initialize_cli_interp): Remove cli_interp local.
5297 * infrun.c (handle_inferior_event): Call the several stop reason
5298 observers instead of printing the stop reason directly.
5299 (end_stepping_range): New function.
5300 (print_end_stepping_range_reason, print_signal_exited_reason)
5301 (print_exited_reason, print_signal_received_reason)
5302 (print_no_history_reason): Make static, and add an uiout
5303 parameter. Print to that instead of to CURRENT_UIOUT.
5304 * infrun.h (print_end_stepping_range_reason)
5305 (print_signal_exited_reason, print_exited_reason)
5306 (print_signal_received_reason print_no_history_reason): New
5307 declarations.
5308 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5309 'mi_uiout'.
5310 <cli_uiout>: New field.
5311 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5312 uiout for CLI output. Install 'signal_received',
5313 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5314 observers.
5315 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5316 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5317 (mi_on_no_history): New functions.
5318 (ui_out_free_cleanup): Delete function.
5319 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5320 instead use the one already stored in the MI interpreter data.
5321 (mi_ui_out): Adjust.
5322 * tui/tui-interp.c: Include infrun.h and observer.h.
5323 (tui_interp): New global.
5324 (tui_on_signal_received, tui_on_end_stepping_range)
5325 (tui_on_signal_exited, tui_on_exited)
5326 (tui_on_no_history): New functions.
5327 (tui_init): Install them as 'end_stepping_range',
5328 'signal_received' 'signal_exited', 'exited' and 'no_history'
5329 observers.
5330 (_initialize_tui_interp): Delete tui_interp local.
5331
5332 2014-05-29 Pedro Alves <palves@redhat.com>
5333
5334 PR gdb/15713
5335 * linux-nat.c (linux_nat_resume_callback): Rename the second
5336 parameter to 'except'. Skip LP if it points to EXCEPT.
5337 (linux_nat_resume): Don't mark the event lwp as not stopped
5338 before resuming sibling lwps. Instead ask
5339 linux_nat_resume_callback to skip the event lwp. Mark it as not
5340 stopped after actually resuming it.
5341 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5342 resuming it.
5343 (wait_lwp): Mark the lwp as stopped here.
5344 (stop_wait_callback): Mark the lwp as not stopped right after
5345 resuming it. Don't mark lwps as stopped here.
5346 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5347 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5348
5349 2014-05-29 Pedro Alves <palves@redhat.com>
5350
5351 PR PR15693
5352 * infrun.c (resume): Determine how much to resume depending on
5353 whether the caller wanted a step, not whether we can hardware step
5354 the target. Mark all threads that we intend to run as running,
5355 unless we're calling an inferior function.
5356 (normal_stop): If the thread is running an infcall, don't finish
5357 thread state.
5358 * target.c (target_resume): Don't mark threads as running here.
5359
5360 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5361
5362 * serial.c (_initialize_serial): Remove support for
5363 the "set remotebaud" and "show remotebaud" commands.
5364 * NEWS: Add entry documenting the removal of that command.
5365
5366 2014-05-28 Yao Qi <yao@codesourcery.com>
5367
5368 * charset.c: Fix typo in comments.
5369
5370 2014-05-27 Gary Benson <gbenson@redhat.com>
5371
5372 * utils.c (internal_vproblem): Prompt for a bug report.
5373
5374 2014-05-26 Andy Wingo <wingo@igalia.com>
5375
5376 * guile/scm-arch.c (arscm_mark_arch_smob):
5377 * guile/scm-block.c (bkscm_mark_block_smob)
5378 (bkscm_mark_block_syms_progress_smob):
5379 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5380 * guile/scm-exception.c (exscm_mark_exception_smob):
5381 * guile/scm-frame.c (frscm_mark_frame_smob):
5382 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5383 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5384 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5385 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5386 (ppscm_mark_pretty_printer_worker_smob):
5387 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5388 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5389 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5390 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5391 mark functions.
5392 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5393 function.
5394
5395 2014-05-26 Andy Wingo <wingo@igalia.com>
5396 Doug Evans <xdje42@gmail.com>
5397
5398 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5399 empty_base_class. All uses updated.
5400 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5401 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5402 Adapt all callers.
5403 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5404 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5405 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5406 (gdbscm_gsmob_has_property_p, add_property_name)
5407 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5408 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5409 (gdb-object-has-property?, gdb-object-properties): Remove.
5410 (gdb-object-kind): Renamed from gsmob-kind.
5411
5412 2014-05-26 Andy Wingo <wingo@igalia.com>
5413
5414 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5415 * configure: Regenerate.
5416
5417 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5418
5419 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5420
5421 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5422
5423 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5424 (replay_memory_access_read_only, replay_memory_access_read_write)
5425 (replay_memory_access_types, replay_memory_access)
5426 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5427 (cmd_set_record_btrace, cmd_show_record_btrace)
5428 (cmd_show_replay_memory_access): New.
5429 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5430 (record_btrace_remove_breakpoint): Replace
5431 record_btrace_allow_memory_access with replay_memory_access.
5432 (_initialize_record_btrace): Add commands.
5433 * NEWS: Announce it.
5434
5435 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5436
5437 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5438
5439 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5440
5441 * MAINTAINERS (Write After Approval): Move self back from
5442 paper trail.
5443
5444 2014-05-22 Pedro Alves <palves@redhat.com>
5445
5446 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5447 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5448 (disable_randomization, enum exec_direction_kind)
5449 (execution_direction, stop_registers, start_remote)
5450 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5451 (wait_for_inferior, normal_stop, get_last_target_status)
5452 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5453 (insert_step_resume_breakpoint_at_sal)
5454 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5455 (set_step_info, print_stop_event, signal_stop_state)
5456 (signal_print_state, signal_pass_state, signal_stop_update)
5457 (signal_print_update, signal_pass_update)
5458 (update_signals_program_target, clear_exit_convenience_vars)
5459 (displaced_step_dump_bytes, update_observer_mode)
5460 (signal_catch_update, gdb_signal_from_command): Move
5461 declarations ...
5462 * infrun.h: ... to this new file.
5463 * amd64-tdep.c: Include infrun.h.
5464 * annotate.c: Include infrun.h.
5465 * arch-utils.c: Include infrun.h.
5466 * arm-linux-tdep.c: Include infrun.h.
5467 * arm-tdep.c: Include infrun.h.
5468 * break-catch-sig.c: Include infrun.h.
5469 * breakpoint.c: Include infrun.h.
5470 * common/agent.c: Include infrun.h instead of inferior.h.
5471 * corelow.c: Include infrun.h.
5472 * event-top.c: Include infrun.h.
5473 * go32-nat.c: Include infrun.h.
5474 * i386-tdep.c: Include infrun.h.
5475 * inf-loop.c: Include infrun.h.
5476 * infcall.c: Include infrun.h.
5477 * infcmd.c: Include infrun.h.
5478 * infrun.c: Include infrun.h.
5479 * linux-fork.c: Include infrun.h.
5480 * linux-nat.c: Include infrun.h.
5481 * linux-thread-db.c: Include infrun.h.
5482 * monitor.c: Include infrun.h.
5483 * nto-tdep.c: Include infrun.h.
5484 * procfs.c: Include infrun.h.
5485 * record-btrace.c: Include infrun.h.
5486 * record-full.c: Include infrun.h.
5487 * remote-m32r-sdi.c: Include infrun.h.
5488 * remote-mips.c: Include infrun.h.
5489 * remote-notif.c: Include infrun.h.
5490 * remote-sim.c: Include infrun.h.
5491 * remote.c: Include infrun.h.
5492 * reverse.c: Include infrun.h.
5493 * rs6000-tdep.c: Include infrun.h.
5494 * s390-linux-tdep.c: Include infrun.h.
5495 * solib-irix.c: Include infrun.h.
5496 * solib-osf.c: Include infrun.h.
5497 * solib-svr4.c: Include infrun.h.
5498 * target.c: Include infrun.h.
5499 * top.c: Include infrun.h.
5500 * windows-nat.c: Include infrun.h.
5501 * mi/mi-interp.c: Include infrun.h.
5502 * mi/mi-main.c: Include infrun.h.
5503 * python/py-threadevent.c: Include infrun.h.
5504
5505 2014-05-22 Pedro Alves <palves@redhat.com>
5506
5507 * infrun.c (handle_inferior_event): Store the exit code for
5508 --return-child-result here, instead of ...
5509 (print_exited_reason): ... here.
5510
5511 2014-05-21 Pedro Alves <palves@redhat.com>
5512
5513 PR gdb/13860
5514 * gdbthread.h (struct thread_control_state): New field
5515 `command_interp'.
5516 * infrun.c (follow_fork): Copy the new thread control field to the
5517 child fork thread.
5518 (clear_proceed_status_thread): Clear the new thread control field.
5519 (proceed): Set the new thread control field.
5520 * interps.h (command_interp): Declare.
5521 * interps.c (command_interpreter): New global.
5522 (command_interp): New function.
5523 (interp_exec): Set `command_interpreter' while here.
5524 * cli-out.c (cli_uiout_dtor): New function.
5525 (cli_ui_out_impl): Install it.
5526 * mi/mi-interp.c: Include cli-out.h.
5527 (mi_cmd_interpreter_exec): Add comment.
5528 (restore_current_uiout_cleanup): New function.
5529 (ui_out_free_cleanup): New function.
5530 (mi_on_normal_stop): If finishing an execution command started by
5531 a CLI command, or any kind of breakpoint-like event triggered,
5532 print the stop event to the output (CLI) stream.
5533 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5534
5535 2014-05-21 Pedro Alves <palves@redhat.com>
5536
5537 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5538 current source line having changed.
5539 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5540 * infrun.c (normal_stop): Adjust call to
5541 set_current_sal_from_frame.
5542 * source.c (clear_lines_listed_range): New function.
5543 (set_current_source_symtab_and_line, identify_source_line): Clear
5544 the lines listed range.
5545 (line_info): Handle the first "info line" after the current source
5546 line having changed.
5547 * stack.c (print_stack_frame): Remove center handling.
5548 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5549 center sal.line.
5550
5551 2014-05-21 Pedro Alves <palves@redhat.com>
5552
5553 * inf-child.c (inf_child_mourn_inferior): New function.
5554 * inf-child.h (inf_child_mourn_inferior): New declaration.
5555 * darwin-nat.c (darwin_mourn_inferior): Use
5556 inf_child_mourn_inferior.
5557 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5558 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5559 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5560 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5561 * windows-nat.c (windows_mourn_inferior): Likewise.
5562
5563 2014-05-21 Doug Evans <xdje42@gmail.com>
5564
5565 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5566
5567 2014-05-21 Doug Evans <xdje42@gmail.com>
5568
5569 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5570 (gdbscm_out_of_range_error): Ditto.
5571 (gdbscm_memory_error): Ditto.
5572 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5573 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5574 (gdbscm_out_of_range_error): Update.
5575 (gdbscm_memory_error): Update.
5576 (gdbscm_scm_to_target_string_unsafe): Delete.
5577
5578 2014-05-21 Pedro Alves <palves@redhat.com>
5579
5580 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5581 globals.
5582 (inf_child_open_target): New function.
5583 (inf_child_open): Use inf_child_open_target to push the target
5584 instead of erroring out.
5585 (inf_child_disconnect, inf_child_close)
5586 (inf_child_maybe_unpush_target): New functions.
5587 (inf_child_target): Install inf_child_disconnect and
5588 inf_child_close. Store a pointer to the returned object.
5589 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5590 declarations.
5591 * target.c (auto_connect_native_target): New global.
5592 (show_default_run_target): New function.
5593 (find_default_run_target): Return NULL if automatically connecting
5594 to the native target is disabled.
5595 (_initialize_target): Install set/show auto-connect-native-target.
5596 * NEWS: Mention "set auto-connect-native-target", and "target
5597 native".
5598 * linux-nat.c (super_close): New global.
5599 (linux_nat_close): Call super_close.
5600 (linux_nat_add_target): Store a pointer to the base class's
5601 to_close method.
5602 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5603 inf_child_maybe_unpush.
5604 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5605 already pushed.
5606 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5607 the inferior. Use inf_child_maybe_unpush_target.
5608 (inf_ttrace_attach): Don't push the target if it is already
5609 pushed.
5610 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5611 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5612 after mourning the inferior. Use inf_child_maybe_unpush_target.
5613 (darwin_attach_pid): Don't push the target if it is already
5614 pushed.
5615 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5616 mourning the inferior. Use inf_child_maybe_unpush_target.
5617 (gnu_detach): Use inf_child_maybe_unpush_target.
5618 * go32-nat.c (go32_create_inferior): Don't push the target if it
5619 is already pushed.
5620 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5621 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5622 (procfs_open): Rename to ...
5623 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5624 comments. Can target_preopen before changing node. Call
5625 inf_child_open_target to push the target explicitly.
5626 (procfs_attach): Don't push the target if it is already pushed.
5627 (procfs_detach): Use inf_child_maybe_unpush_target.
5628 (procfs_create_inferior): Don't push the target if it is already
5629 pushed.
5630 (nto_native_ops): New global.
5631 (procfs_open): Reimplement.
5632 (procfs_native_open): New function.
5633 (init_procfs_targets): Install procfs_native_open as to_open of
5634 "target native". Store a pointer to the "native" target in
5635 nto_native_ops.
5636 * procfs.c (procfs_attach): Don't push the target if it is already
5637 pushed.
5638 (procfs_detach): Use inf_child_maybe_unpush_target.
5639 (procfs_mourn_inferior): Only unpush the target after mourning the
5640 inferior. Use inf_child_maybe_unpush_target.
5641 (procfs_init_inferior): Don't push the target if it is already
5642 pushed.
5643 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5644 if it is already pushed.
5645
5646 2014-05-21 Pedro Alves <palves@redhat.com>
5647
5648 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5649 and "procfs" targets are now called "native" instead.
5650
5651 2014-05-21 Pedro Alves <palves@redhat.com>
5652
5653 * go32-nat.c (go32_open): Delete.
5654 (go32_target): Don't override the to_open method.
5655
5656 2014-05-21 Pedro Alves <palves@redhat.com>
5657
5658 * nto-procfs.c (procfs_can_run): New function.
5659 (nto_procfs_ops): New global.
5660 (init_procfs_targets): New, based on procfs_target. Install
5661 "target native" in addition to "target procfs".
5662 (_initialize_procfs): Call init_procfs_targets instead of adding
5663 the target here.
5664
5665 2014-05-21 Pedro Alves <palves@redhat.com>
5666
5667 * windows-nat.c (windows_target): Don't override to_shortname,
5668 to_longname or to_doc.
5669
5670 2014-05-21 Pedro Alves <palves@redhat.com>
5671
5672 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5673 to_doc.
5674
5675 2014-05-21 Pedro Alves <palves@redhat.com>
5676
5677 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5678 to_shortname, to_longname or to_doc.
5679
5680 2014-05-21 Pedro Alves <palves@redhat.com>
5681
5682 * go32-nat.c (go32_target): Don't override to_shortname,
5683 to_longname or to_doc.
5684
5685 2014-05-21 Pedro Alves <palves@redhat.com>
5686
5687 * inf-child.c (inf_child_open): Remove mention of "child".
5688 (inf_child_target): Rename target to "native" instead of "child".
5689
5690 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5691
5692 * Makefile.in (SFILES): Delete "regset.c".
5693 (COMMON_OBS): Delete "regset.o".
5694 * regset.c: Remove.
5695 * regset.h (regset_alloc): Delete prototype.
5696
5697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5698
5699 * sparc-linux-tdep.c (sparc32_linux_gregset)
5700 (sparc32_linux_fpregset): New static regset structures.
5701 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5702 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5703 'fpregset' fields.
5704 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5705 (sparc64_linux_fpregset): New static regset structures.
5706 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5707 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5708 New static regset structures.
5709 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5710 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5711 New static regset structures.
5712 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5713 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5714 New static regset structures.
5715 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5716 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5717 New static regset structures.
5718 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5719
5720 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5721
5722 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5723 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5724 register maps ("regmaps") from "*regset" to "*regmap". Do this
5725 for all regmap types and variables.
5726 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5727 (sparc32_linux_supply_core_gregset)
5728 (sparc32_linux_collect_core_gregset)
5729 (sparc32_linux_supply_core_fpregset)
5730 (sparc32_linux_collect_core_fpregset): Likewise.
5731 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5732 (sparc_gregmap, sparc_fpregmap): ... these.
5733 (sparc_supply_gregset, sparc_collect_gregset)
5734 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5735 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5736 (_initialize_sparc_nat): Rename regmaps.
5737 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5738 (sparc_gregmap, sparc_fpregmap): ... these.
5739 (sparc_supply_gregset, sparc_collect_gregset)
5740 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5741 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5742 Rename macros to...
5743 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5744 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5745 Likewise.
5746 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5747 Rename to...
5748 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5749 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5750 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5751 regmaps.
5752 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5753 (sparc32_bsd_fpregset): Rename to...
5754 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5755 (sparc32_bsd_fpregmap): ... these.
5756 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5757 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5758 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5759 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5760 (struct sparc_gregmap, struct sparc_fpregmap)
5761 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5762 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5763 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5764 (sparc32_supply_regset, sparc32_collect_gregset)
5765 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5766 prototypes.
5767 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5768 (sparc64_linux_ptrace_gregmap): ... this.
5769 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5770 (_initialize_sparc64_linux_nat): Rename regmaps.
5771 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5772 (sparc64_linux_core_gregmap): ... this.
5773 (sparc64_linux_supply_core_gregset)
5774 (sparc64_linux_collect_core_gregset)
5775 (sparc64_linux_supply_core_fpregset)
5776 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5777 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5778 (sparc64_sol2_fpregset): Rename to...
5779 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5780 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5781 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5782 regmaps.
5783 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5784 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5785 (sparc64_bsd_fpregset): Rename to...
5786 (struct sparc_gregmap, sparc64_sol2_gregmap)
5787 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5788 (sparc64_bsd_fpregmap): ... these.
5789 (sparc64_supply_gregset, sparc64_collect_gregset)
5790 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5791 prototypes.
5792 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5793 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5794 (sparc64fbsd_gregmap): ... this.
5795 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5796 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5797 Rename regmaps.
5798 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5799 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5800 (sparc64nbsd_collect_fpregset): Likewise.
5801 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5802 (sparc64nbsd_gregmap): ... this.
5803 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5804 regmaps.
5805 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5806 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5807 (sparc64obsd_gregmap): ... this.
5808 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5809 regmaps.
5810 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5811 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5812 (sparc32nbsd_gregmap): ... this.
5813 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5814 regmaps.
5815
5816 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5817
5818 * score-tdep.c (score7_linux_gregset): New static regset
5819 structure.
5820 (score7_linux_regset_from_core_section): Remove dynamic regset
5821 allocation.
5822 (score_gdbarch_init): Drop allocation of tdep structure.
5823 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5824
5825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5826
5827 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5828 regset structures.
5829 (am33_regset_from_core_section): Remove dynamic regset
5830 allocations.
5831
5832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5833
5834 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5835 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5836 structures.
5837 (mips_linux_regset_from_core_section): Remove dynamic regset
5838 allocations.
5839 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5840 'gregset64', 'fpregset', and 'fpregset64'.
5841 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5842 deleted tdep fields.
5843
5844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5845
5846 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5847 regset structures.
5848 (amd64_regset_from_core_section): Remove dynamic regset
5849 allocations.
5850 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5851 structure.
5852 (amd64obsd_regset_from_core_section): Remove dynamic regset
5853 allocation.
5854 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5855 Likewise.
5856 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5857 x86-common regset supply function.
5858 * i386-tdep.c (i386_collect_gregset): Make static.
5859 (i386_gregset): New global regset structure.
5860 (i386_fpregset, i386_xstateregset): New static regset structures.
5861 (i386_regset_from_core_section): Remove dynamic regset
5862 allocations.
5863 (i386_gdbarch_init): Remove initialization of tdep fields
5864 'gregset', 'fpregset', and 'xstateregset'.
5865 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5866 'fpregset', and 'xstateregset'.
5867 (i386_collect_gregset): Remove prototype.
5868 (i386_gregset): New declaration.
5869 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5870 structure.
5871 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5872 allocation.
5873
5874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5875
5876 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5877 (arm_linux_vfpregset): New static regset structures.
5878 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5879 regset structures.
5880 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5881 and 'vfpregset' fields.
5882
5883 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5884
5885 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5886 (aarch64_linux_fpregset): New static regset structures.
5887 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5888 of regset structures.
5889 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5890 'fpregset' fields.
5891
5892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5893
5894 * regset.h (struct regset): Remove gdbarch field.
5895 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5896 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5897 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5898 Likewise.
5899 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5900 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5901 (ppc32_linux_vsxregset): Likewise.
5902 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5903 via the regcache instead of the regset.
5904 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5905 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5906 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5907 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5908 Likewise.
5909
5910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5911
5912 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5913 Constify structures.
5914 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5915 (alphanbsd_aout_gregset): Likewise.
5916 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5917 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5918 Likewise.
5919 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5920 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5921 Likewise.
5922 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5923 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5924 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5925 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5926 * m88k-tdep.c (m88k_gregset): Likewise.
5927 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5928 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5929 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5930 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5931 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5932 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5933 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5934 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5935 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5936 Likewise.
5937 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5938 * sh-tdep.h (sh_corefile_gregset): Likewise.
5939 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5940 * vax-tdep.c (vax_gregset): Likewise.
5941
5942 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5943
5944 Fix TLS access for -static -pthread.
5945 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5946 (try_thread_db_load_1): Initialize it.
5947 (thread_db_get_thread_local_address): Call it if LM is zero.
5948 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5949 * target.h (struct target_ops) (to_get_thread_local_address): Add
5950 load_module_addr comment.
5951
5952 2014-05-21 Pedro Alves <palves@redhat.com>
5953
5954 * dcache.c (dcache_read_memory_partial): If reading the cache line
5955 fails, fallback to reading just the memory the caller wanted.
5956
5957 2014-05-20 Doug Evans <dje@google.com>
5958
5959 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5960 instead of get_current_arch.
5961
5962 2014-05-20 Pedro Alves <palves@redhat.com>
5963
5964 * NEWS: Mention that compare-sections now works with all targets.
5965
5966 * remote.c (PACKET_qCRC): New enum value.
5967 (remote_verify_memory): Don't send qCRC if the target has no
5968 execution. Use packet_support/packet_ok. If the target doesn't
5969 support the qCRC packet, fallback to a deep memory copy.
5970 (compare_sections_command): Say "target image" instead of "remote
5971 executable".
5972 (_initialize_remote): Add PACKET_qCRC to the list of config
5973 packets that have no associated command. Extend comment.
5974 * target.c (simple_verify_memory, default_verify_memory): New
5975 function.
5976 * target.h (struct target_ops) <to_verify_memory>: Default to
5977 default_verify_memory.
5978 (simple_verify_memory): New declaration.
5979 * target-delegates.c: Regenerate.
5980
5981 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5982
5983 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5984
5985 2014-05-20 Hui Zhu <hui@codesourcery.com>
5986 Yao Qi <yao@codesourcery.com>
5987
5988 PR backtrace/16558
5989 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5990 and change address of sp and pc.
5991
5992 2014-05-19 Tom Tromey <tromey@redhat.com>
5993
5994 * gdbtypes.c (rank_function): Use XNEWVEC.
5995 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5996
5997 2014-05-19 Doug Evans <dje@google.com>
5998
5999 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6000 build_type_unit_groups and moved closer to only caller. Remove
6001 arguments. All references updated. Remove outdated .gdb_index
6002 comment.
6003 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6004 build_type_psymtabs_1.
6005
6006 2014-05-19 Doug Evans <dje@google.com>
6007
6008 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6009 n_type_unit_groups, all_type_unit_groups. All uses removed.
6010 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6011 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6012 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6013 (add_type_unit_group_to_table): Delete.
6014
6015 2014-05-19 Doug Evans <dje@google.com>
6016
6017 * eval.c (evaluate_subexp_standard): Add some comments.
6018
6019 2014-05-17 Doug Evans <xdje42@gmail.com>
6020
6021 * progspace.c (remove_program_space): Delete, unused.
6022 * progspace.h (remove_program_space): Ditto.
6023
6024 2014-05-17 Doug Evans <xdje42@gmail.com>
6025
6026 * inferior.c (prune_inferiors): Fix comment.
6027 (remove_inferior_command): Call prune_program_spaces.
6028
6029 2014-05-16 Doug Evans <dje@google.com>
6030
6031 New command line option -D.
6032 * NEWS: Mention it.
6033 * main.c (set_gdb_data_directory): New function.
6034 (captured_main): Recognize -D. Flag error for --data-directory "".
6035 Call set_gdb_data_directory.
6036 (print_gdb_help): Print --data-directory, -D.
6037 * main.h (set_gdb_data_directory): Declare.
6038 * top.c (staged_gdb_datadir): New static global.
6039 (set_gdb_datadir): Call set_gdb_data_directory
6040 (show_gdb_datadir): New function.
6041 (init_main): Update init of data-directory parameter.
6042
6043 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6044
6045 Import the "dirfd" gnulib module.
6046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6047 * gnulib/aclocal.m4: Update.
6048 * gnulib/config.in: Update.
6049 * gnulib/configure: Update.
6050 * gnulib/import/Makefile.am: Update.
6051 * gnulib/import/Makefile.in: Update.
6052 * gnulib/import/dirfd.c: New.
6053 * gnulib/import/m4/dirfd.m4: New.
6054 * gnulib/import/m4/gnulib-cache.m4: Update.
6055 * gnulib/import/m4/gnulib-comp.m4: Update.
6056
6057 2014-05-16 Pierre Muller <muller@sourceware.org>
6058 Yao Qi <yao@codesourcery.com>
6059
6060 * valprint.c (print_wchar): Move the code on checking whether
6061 W is a printable wide char to the default branch of switch
6062 statement below. Call wchar_printable instead of gdb_iswprint.
6063
6064 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6065
6066 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6067 ldr.w and ldrd instructions.
6068
6069 2014-05-15 Doug Evans <dje@google.com>
6070
6071 * dwarf2read.c (read_structure_type): Delete outdated comments.
6072
6073 2014-05-14 Tom Tromey <tromey@redhat.com>
6074
6075 * macrocmd.c (print_macro_definition): Reindent.
6076
6077 2014-05-13 Doug Evans <xdje42@gmail.com>
6078
6079 * python/py-cmd.c (cmdpy_completer): Add comment.
6080 (completers): Make const.
6081
6082 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6083
6084 * infrun.c (resume): Remove should_resume (unused). Move up
6085 declaration of resume_ptid.
6086
6087 2014-05-13 Tom Tromey <tromey@redhat.com>
6088
6089 * language.h (unop_type_check): Remove.
6090 (binop_type_check): Don't declare.
6091
6092 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6093
6094 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6095 call to regcache_raw_collect.
6096
6097 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6098
6099 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6100 mi_console->quote as the quoting character.
6101
6102 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6105
6106 2014-04-29 Tom Tromey <tromey@redhat.com>
6107
6108 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6109 "show debug varobj".
6110
6111 2014-05-07 Kyle McMartin <kyle@redhat.com>
6112
6113 Pushed by Joel Brobecker <brobecker@adacore.com>.
6114 * aarch64-tdep.c (aarch64_software_single_step): New function.
6115 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6116 with aarch64_software_single_step.
6117
6118 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6119
6120 GDB 7.7.1 released.
6121
6122 2014-05-05 Keith Seitz <keiths@redhat.com>
6123
6124 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6125 variable or history value is successfully parsed.
6126
6127 2014-05-05 Yao Qi <yao@codesourcery.com>
6128 Pedro Alves <palves@redhat.com>
6129
6130 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6131 address of blocks that intersects the requested range. Trim
6132 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6133 sections.
6134 * ctf.c (ctf_xfer_partial): Likewise.
6135
6136 2014-05-05 Yao Qi <yao@codesourcery.com>
6137
6138 * printcmd.c (display_command): Remove the check to
6139 target_has_execution.
6140
6141 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6142
6143 * ppcobsd-nat.c: Include "obsd-nat.h".
6144 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6145 add_target.
6146 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6147
6148 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6149
6150 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6151 and 16-bit signed and unsigned arguments. Update comment.
6152 (stap_parse_probe_arguments): Extend code to handle such
6153 arguments. Use warning instead of complaint to notify about
6154 unrecognized bitness.
6155
6156 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6157
6158 PR breakpoints/16889
6159 * stap-probe.c (stap_parse_probe_arguments): Simplify
6160 check for non-prefixed probes (i.e., probes whose
6161 arguments do not start with "N@"). Always set the
6162 argument type to a sane value.
6163
6164 2014-05-01 David Taylor <dtaylor@emc.com>
6165
6166 * remote.c (compare_sections_command): Add -r option to compare
6167 all loadable read-only sections.
6168
6169 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6170
6171 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6172 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6173 Update all callers.
6174 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6175 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6176 Remove unused CORE_ADDR argument. Update all callers.
6177
6178 2014-04-29 Pedro Alves <palves@redhat.com>
6179
6180 * remote.c (struct packet_config) <detect>: Extend comment.
6181 (add_packet_config_cmd): Don't set the config's detect or support
6182 fields here.
6183 (init_all_packet_configs): Also initialize the config's 'detect'
6184 field.
6185 (reset_all_packet_configs_support): New function.
6186 (remote_open_1): Call reset_all_packet_configs_support instead of
6187 init_all_packet_configs.
6188 (_initialize_remote): Initialize all packet configs. Assert that
6189 all packets have an associated command, except a few known
6190 outliers.
6191
6192 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6193
6194 * dwarf2read.c (read_subrange_type): Handle dynamic
6195 DW_AT_lower_bound attributes.
6196
6197 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6198
6199 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6200 dynamic bounds before computing its upper bound.
6201 (ada_discrete_type_low_bound): Same as above with the lower bound.
6202
6203 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6204
6205 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6206 range types. Adjust the array handling implementation to
6207 take advantage of this change.
6208 (resolve_dynamic_range): New function, mostly extracted from
6209 resolve_dynamic_bounds.
6210 (resolve_dynamic_array): New function, mostly extracted from
6211 resolve_dynamic_bounds.
6212 (resolve_dynamic_bounds): Delete.
6213 (resolve_dynamic_type): Reimplement. Add handling of
6214 TYPE_CODE_RANGE types.
6215
6216 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6217
6218 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6219 handling of parallel ___XA types.
6220
6221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6222
6223 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6224 unnecessary second call to static_unwrap_type.
6225
6226 2014-04-27 Hui Zhu <hui@codesourcery.com>
6227
6228 * stack.c (print_frame_info): Call do_gdb_disassembly with
6229 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6230
6231 2014-04-26 Doug Evans <xdje42@gmail.com>
6232
6233 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6234
6235 2014-04-25 Pedro Alves <palves@redhat.com>
6236
6237 PR server/16255
6238 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6239 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6240 and newline from built string.
6241 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6242 (linux_ptrace_attach_fail_reason): ... this.
6243 * linux-nat.c (linux_nat_attach): Adjust to use
6244 linux_ptrace_attach_fail_reason.
6245
6246 2014-04-25 Pedro Alves <palves@redhat.com>
6247
6248 * remote.c (struct remote_state): Remove multi_process_aware,
6249 non_stop_aware, cond_tracepoints, cond_breakpoints,
6250 breakpoint_commands, fast_tracepoints, static_tracepoints,
6251 install_in_trace, disconnected_tracing,
6252 enable_disable_tracepoints, string_tracing, and
6253 augmented_libraries_svr4_read fields.
6254 (remote_multi_process_p): Move further below in the file.
6255 (struct packet_config): Add comments.
6256 (update_packet_config): Delete function.
6257 (show_packet_config_cmd): Use packet_config_support.
6258 (add_packet_config_cmd): Use NULL as set callback.
6259 (packet_ok): "set remote foo-packet"-style commands no longer
6260 change config->supported -- adjust.
6261 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6262 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6263 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6264 (PACKET_QNonStop, PACKET_multiprocess_feature)
6265 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6266 (PACKET_DisconnectedTracing_feature)
6267 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6268 (set_remote_protocol_packet_cmd): Delete function.
6269 (packet_config_support, packet_support): New functions.
6270 (set_remote_protocol_Z_packet_cmd): Don't call
6271 update_packet_config.
6272 (remote_query_attached, remote_pass_signals)
6273 (remote_program_signals, remote_threads_info)
6274 (remote_threads_extra_info, remote_start_remote): Use
6275 packet_support.
6276 (remote_start_remote): Use packet_config_support and
6277 packet_support.
6278 (init_all_packet_configs): Set all packets to unknown support,
6279 instead of calling update_packet_config.
6280 (remote_check_symbols): Use packet_support.
6281 (remote_supported_packet): Unconditionally set the packet config's
6282 support status.
6283 (remote_multi_process_feature, remote_non_stop_feature)
6284 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6285 (remote_breakpoint_commands_feature)
6286 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6287 (remote_install_in_trace_feature)
6288 (remote_disconnected_tracing_feature)
6289 (remote_enable_disable_tracepoint_feature)
6290 (remote_string_tracing_feature)
6291 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6292 (remote_protocol_features): Adjust to use remote_supported_packet
6293 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6294 "ConditionalTracepoints", "ConditionalBreakpoints",
6295 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6296 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6297 "EnableDisableTracepoints", and "tracenz".
6298 (remote_query_supported): Use packet_support.
6299 (remote_open_1): Adjust.
6300 (extended_remote_attach_1): Use packet_support. Switch on the
6301 result of packet_ok instead of checking whether the packet ended
6302 up disabled.
6303 (remote_vcont_resume): Use packet_support.
6304 (remote_resume, remote_stop_ns, fetch_register_using_p)
6305 (remote_prepare_to_store, store_register_using_P)
6306 (check_binary_download, remote_write_bytes): Use packet_support.
6307 (remote_vkill): Use packet_support. Switch on the result of
6308 packet_ok instead of checking whether the packet ended up
6309 disabled.
6310 (extended_remote_supports_disable_randomization): Use
6311 packet_support.
6312 (extended_remote_run): Switch on the result of packet_ok instead
6313 of checking whether the packet ended up disabled.
6314 (remote_insert_breakpoint, remote_remove_breakpoint)
6315 (remote_insert_watchpoint, remote_remove_watchpoint)
6316 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6317 packet_support.
6318 (remote_search_memory): Use packet_config_support.
6319 (remote_get_thread_local_address, remote_get_tib_address)
6320 (remote_hostio_send_command, remote_can_execute_reverse): Use
6321 packet_support.
6322 (remote_supports_cond_tracepoints)
6323 (remote_supports_cond_breakpoints)
6324 (remote_supports_fast_tracepoints)
6325 (remote_supports_static_tracepoints)
6326 (remote_supports_install_in_trace)
6327 (remote_supports_enable_disable_tracepoint)
6328 (remote_supports_string_tracing)
6329 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6330 the packet config says the feature is enabled or disabled.
6331 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6332 (remote_get_trace_status): Use packet_support.
6333 (remote_set_disconnected_tracing): Adjust to check whether the
6334 feature is enabled with packet_support.
6335 (remote_set_trace_buffer_size, remote_use_agent)
6336 (remote_can_use_agent, remote_supports_btrace): Use
6337 packet_support.
6338 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6339 Use packet_config_support.
6340 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6341 the packet config says the feature is enabled or disabled.
6342 (set_range_stepping): Use packet_support.
6343
6344 2014-04-25 Tom Tromey <tromey@redhat.com>
6345
6346 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6347 argument.
6348
6349 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6350
6351 * NEWS: Mention support for C99 variable length arrays.
6352
6353 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6354
6355 * ada-lang.c (standard_exc): Expand introductory comment.
6356
6357 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6358 Walfred Tedeschi <walfred.tedeschi@intel.com>
6359
6360 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6361 AVX512 registers.
6362 (amd64_linux_read_description): Add code to handle AVX512 xstate
6363 mask and return respective tdesc.
6364 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6365 and features/i386/x32-avx512-linux.c.
6366 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6367 (amd64_linux_core_read_description): Add code to handle AVX512
6368 xstate mask and return respective tdesc.
6369 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6370 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6371 calculation.
6372 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6373 (tdesc_amd64_avx512_linux): New prototype.
6374 (tdesc_x32_avx512_linux): Likewise.
6375 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6376 features/i386/x32-avx512.c.
6377 (amd64_ymm_avx512_names): New register names for pseudo
6378 registers YMM16-31.
6379 (amd64_ymmh_avx512_names): New register names for raw registers
6380 YMMH16-31.
6381 (amd64_k_names): New register names for K registers.
6382 (amd64_zmmh_names): New register names for ZMM raw registers.
6383 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6384 (amd64_xmm_avx512_names): New register names for XMM16-31
6385 registers.
6386 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6387 registers.
6388 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6389 if feature is present.
6390 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6391 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6392 (AMD64_NUM_REGS): Adjust to new number of registers.
6393 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6394 registers supplied via XSTATE by AVX512 registers.
6395 (i386_linux_read_description): Add case for AVX512.
6396 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6397 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6398 (i386_linux_core_read_description): Add case for AVX512.
6399 (i386_linux_init_abi): Install supported register note section
6400 for AVX512.
6401 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6402 AVX512.
6403 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6404 registers to be number of zmm7h + 1.
6405 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6406 * i386-tdep.c: Include features/i386/i386-avx512.c.
6407 (i386_zmm_names): Add ZMM pseudo register names array.
6408 (i386_zmmh_names): Add ZMM raw register names array.
6409 (i386_k_names): Add K raw register names array.
6410 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6411 registers. AVX512 has 16 more ZMM registers than there are YMM
6412 registers.
6413 (i386_zmmh_regnum_p): Add function to look up register number of
6414 ZMM raw registers.
6415 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6416 (i386_k_regnum_p): Likewise for K raw registers.
6417 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6418 registers added by AVX512.
6419 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6420 registers added by AVX512.
6421 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6422 added by AVX512.
6423 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6424 (i386_pseudo_register_name): Add ZMM pseudo registers.
6425 (i386_zmm_type): Construct and return vector registers type for ZMM
6426 registers.
6427 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6428 ZMM0-31 pseudo registers and K registers.
6429 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6430 and YMM16-31 registers from register cache.
6431 (i386_pseudo_register_write): Add code to write K, ZMM and
6432 YMM16-31 registers.
6433 (i386_register_reggroup_p): Add code to include/exclude AVX512
6434 registers in/from respective register groups.
6435 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6436 registers if feature is present in xcr0.
6437 (i386_gdbarch_init): Add code to initialize AVX512 feature
6438 variables in tdep structure, wire in pseudo registers and call
6439 initialize_tdesc_i386_avx512.
6440 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6441 variables.
6442 (i386_regnum): Add AVX512 registers.
6443 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6444 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6445 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6446 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6447 512 bits wide.
6448 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6449 (i386_ymm_avx512_regnum_p): Likewise.
6450 (i386_k_regnum_p): Likewise.
6451 (i386_zmm_regnum_p): Likewise.
6452 (i386_zmmh_regnum_p): Likewise.
6453 * i387-tdep.c : Update year in copyright notice.
6454 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6455 XSAVE buffer.
6456 (XSAVE_YMM_AVX512_ADDR): New macro.
6457 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6458 XSAVE buffer.
6459 (XSAVE_XMM_AVX512_ADDR): New macro.
6460 (xsave_avx512_k_offset): New table for K register offsets in
6461 XSAVE buffer.
6462 (XSAVE_AVX512_K_ADDR): New macro.
6463 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6464 in XSAVE buffer.
6465 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6466 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6467 buffer.
6468 (i387_collect_xsave): Add code to collect AVX512 registers from
6469 XSAVE buffer.
6470 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6471 of XMM16-31 registers.
6472 (I387_NUM_K_REGS): New define for number of K registers.
6473 (I387_K0_REGNUM): New define for K0 register number.
6474 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6475 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6476 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6477 registers.
6478 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6479 (I387_XMM16_REGNUM): New define for XMM16 register number.
6480 (I387_YMM0_REGNUM): New define for YMM0 register number.
6481 (I387_KEND_REGNUM): New define for last K register number.
6482 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6483 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6484 number.
6485 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6486 number.
6487 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6488 size.
6489 * features/Makefile: Add AVX512 related files.
6490 * features/i386/32bit-avx512.xml: New file.
6491 * features/i386/64bit-avx512.xml: Likewise.
6492 * features/i386/amd64-avx512-linux.c: Likewise.
6493 * features/i386/amd64-avx512-linux.xml: Likewise.
6494 * features/i386/amd64-avx512.c: Likewise.
6495 * features/i386/amd64-avx512.xml: Likewise.
6496 * features/i386/i386-avx512-linux.c: Likewise.
6497 * features/i386/i386-avx512-linux.xml: Likewise.
6498 * features/i386/i386-avx512.c: Likewise.
6499 * features/i386/i386-avx512.xml: Likewise.
6500 * features/i386/x32-avx512-linux.c: Likewise.
6501 * features/i386/x32-avx512-linux.xml: Likewise.
6502 * features/i386/x32-avx512.c: Likewise.
6503 * features/i386/x32-avx512.xml: Likewise.
6504 * regformats/i386/amd64-avx512-linux.dat: New file.
6505 * regformats/i386/amd64-avx512.dat: Likewise.
6506 * regformats/i386/i386-avx512-linux.dat: Likewise.
6507 * regformats/i386/i386-avx512.dat: Likewise.
6508 * regformats/i386/x32-avx512-linux.dat: Likewise.
6509 * regformats/i386/x32-avx512.dat: Likewise.
6510 * NEWS: Add note about new support for AVX512.
6511
6512
6513 2014-04-23 Pedro Alves <palves@redhat.com>
6514
6515 * breakpoint.c (insert_bp_location): Tolerate errors if the
6516 breakpoint is set in a user-loaded objfile.
6517 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6518 location is marked shlib_disabled. If the breakpoint is set in a
6519 user-loaded objfile is a GDB-side memory breakpoint, validate it
6520 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6521 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6522 flag.
6523 * mem-break.c (memory_validate_breakpoint): New function.
6524 * objfiles.c (userloaded_objfile_contains_address_p): New
6525 function.
6526 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6527 * target.h (memory_validate_breakpoint): New declaration.
6528
6529 2014-04-23 Pedro Alves <palves@redhat.com>
6530
6531 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6532 the breakpoint is set in a shared library, only suppress
6533 errors for software breakpoints, not hardware breakpoints.
6534
6535 2014-04-22 Pedro Alves <palves@redhat.com>
6536
6537 * infrun.c (schedlock_applies): New function, factored out from
6538 find_thread_needs_step_over.
6539 (find_thread_needs_step_over): Use it.
6540 (switch_back_to_stepped_thread): Always clear trap_expected if the
6541 step over is finished. Return early if scheduler locking applies.
6542 Look for the stepping thread and a potential step-over thread with
6543 a single loop.
6544 (currently_stepping_or_nexting_callback): Delete.
6545
6546 2014-04-22 Nick Clifton <nickc@redhat.com>
6547
6548 * NEWS: Mention that ARM sim now supports tracing.
6549
6550 2014-04-22 Yao Qi <yao@codesourcery.com>
6551
6552 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6553 to ...
6554 * tracefile.c (tracefile_fetch_registers): ... it. New
6555 function.
6556 * tracefile.h (tracefile_fetch_registers): Declare.
6557 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6558 tracefile_fetch_registers.
6559
6560 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6561
6562 PR gdb/14018
6563 * windows-nat.c (thread_rec): Don't display a warning when
6564 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6565 fails for any reason, set th->suspended to -1, so that we don't
6566 try to resume such a thread. Also, don't return NULL in these
6567 cases, to avoid completely ruin the session due to "PC register is
6568 not available" error.
6569 (do_windows_fetch_inferior_registers): Check errors in
6570 GetThreadContext call.
6571 (windows_continue): Accept an additional argument KILLED; if not
6572 zero, ignore errors in the SetThreadContext call, since the
6573 inferior was killed and is shutting down.
6574 (windows_resume, get_windows_debug_event)
6575 (windows_create_inferior, windows_mourn_inferior)
6576 (windows_kill_inferior): All callers of windows_continue changed
6577 to adjust to its new calling sequence.
6578
6579 2014-04-19 Yao Qi <yao@codesourcery.com>
6580
6581 * ctf.c (ctf_open): Call post_create_inferior.
6582
6583 2014-04-19 Yao Qi <yao@codesourcery.com>
6584
6585 * ctf.c (handle_id): New static variable.
6586 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6587 value. Get the declaration of event "register" and get length
6588 of field "contents".
6589
6590 2014-04-19 Yao Qi <yao@codesourcery.com>
6591
6592 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6593
6594 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6595
6596 * valops.c (oload_method_static): Remove unnecessary argument
6597 METHOD. Update all callers.
6598
6599 2014-04-18 Pedro alves <palves@redhat.com>
6600 Tom Tromey <tromey@redhat.com>
6601
6602 PR backtrace/15558
6603 * frame.c (get_prev_frame_1): Rename to ...
6604 (get_prev_frame_always): ... this, and make extern. Adjust.
6605 (skip_artificial_frames): Use get_prev_frame_always.
6606 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6607 (get_frame_unwind_stop_reason): Adjust to rename.
6608 * frame.h (get_prev_frame_always): Declare.
6609 * inline-frame.c: Include frame.h.
6610 (inline_frame_this_id): Use get_prev_frame_always.
6611
6612 2014-04-18 Tristan Gingold <gingold@adacore.com>
6613
6614 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6615 code by using bfd_mach_o_get_base_address.
6616
6617 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6618
6619 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6620 (spu_ax_pseudo_register_collect): New function.
6621 (spu_ax_pseudo_register_push_stack): Likewise.
6622 (spu_dwarf_reg_to_regnum): Likewise.
6623 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6624
6625 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6626
6627 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6628 Replace FRAME argument with FRAME_ID.
6629 * gdbarch.c, gdbarch.h: Regenerate.
6630 * findvar.c (default_value_from_register): Add GDBARCH argument;
6631 replace FRAME by FRAME_ID. No longer call get_frame_id.
6632 (value_from_register): Update call to gdbarch_value_from_register.
6633 * value.h (default_value_from_register): Update prototype.
6634 * s390-linux-tdep.c (s390_value_from_register): Update interface
6635 and call to default_value_from_register.
6636 * spu-tdep.c (spu_value_from_register): Likewise.
6637
6638 * findvar.c (address_from_register): Remove TYPE argument.
6639 Do not call value_from_register; use gdbarch_value_from_register
6640 with null_frame_id instead.
6641 * value.h (address_from_register): Update prototype.
6642 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6643 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6644 address_from_register interface change.
6645
6646 2014-04-17 Yao Qi <yao@codesourcery.com>
6647
6648 * gdbtypes.h: Update comments to link to types and macros'
6649 definitions.
6650
6651 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6652
6653 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6654
6655 2014-04-16 Keith Seitz <keiths@redhat.com>
6656
6657 PR gdb/15827
6658 * dwarf2read.c (skip_one_die): Check that all relative-offset
6659 sibling DIEs fall within range of the current reader's buffer.
6660 (read_partial_die): Likewise.
6661
6662 2014-04-16 Keith Seitz <keiths@redhat.com>
6663
6664 PR c++/16597
6665 * cp-namespace.c (lookup_symbol_file): If the type name of
6666 `this' is NULL, return immediately.
6667
6668 2014-04-14 Keith Seitz <keiths@redhat.com>
6669
6670 PR c++/16253
6671 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6672 from symbol_matches_domain in symtab.c. All local callers
6673 of symbol_matches_domain updated.
6674 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6675 search STRUCT_DOMAIN.
6676 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6677 independently. standard_lookup will do that automatically.
6678 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6679 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6680 (cp_lookup_symbol_in_namespace): Likewise.
6681 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6682 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6683 may return a STRUCT_DOMAIN match.
6684 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6685 * cp-support.c: Include language.h.
6686 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6687 VAR_DOMAIN.
6688 * psymtab.c (match_partial_symbol): Compare the requested
6689 domain with the symbol's domain directly.
6690 (lookup_partial_symbol): Likewise.
6691 * symtab.c (lookup_symbol_in_language): Explain when/why
6692 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6693 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6694 appropriate languages.
6695 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6696 and moved to ada-lang.c
6697 (lookup_block_symbol): Explain that this function only returns
6698 symbol matching the requested DOMAIN.
6699 Compare the requested domain with the symbol's domain directly.
6700 (iterate_over_symbols): Compare the requested domain with the
6701 symbol's domain directly.
6702 * symtab.h (symbol_matches_domain): Remove.
6703
6704 2014-04-14 Tom Tromey <tromey@redhat.com>
6705
6706 PR c++/15246:
6707 * c-exp.y (type_aggregate_p): New function.
6708 (qualified_name, classify_inner_name): Use it.
6709 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6710 and TYPE_TARGET_TYPE of an enum type.
6711 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6712 an enum type.
6713 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6714 handle TYPE_DECLARED_CLASS.
6715 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6716 types.
6717 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6718 * valops.c (enum_constant_from_type): New function.
6719 (value_aggregate_elt): Use it.
6720 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6721 TYPE_CODE_ENUM.
6722
6723 2014-04-14 Tom Tromey <tromey@redhat.com>
6724
6725 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6726 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6727 const.
6728 * value.h (value_aggregate_elt): Update.
6729
6730 2014-04-14 Tom Tromey <tromey@redhat.com>
6731
6732 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6733
6734 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6735
6736 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6737 (evaluate_subexp_standard): Pass noside argument.
6738 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6739 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6740 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6741 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6742 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6743
6744 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6745
6746 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6747 points to a constant blob.
6748
6749 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6750
6751 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6752 property and store it as the high bound and flag the range accordingly.
6753 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6754 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6755 * gdbtypes.h (enum range_flags): New enum.
6756 (struct range_bounds): Add flags member.
6757
6758 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6759
6760 * c-typeprint.c (c_type_print_varspec_suffix): Added
6761 check for not yet resolved high bound. If unresolved, print
6762 "variable length" string to the console instead of random
6763 length.
6764
6765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6766
6767 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6768 value.
6769 (ada_template_to_fixed_record_type_1): Likewise.
6770 (ada_to_fixed_type_1): Likewise.
6771 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6772 (cp_print_value): Likewise.
6773 * d-valprint.c (dynamic_array_type): Likewise.
6774 * findvar.c (address_of_variable): Likewise.
6775 * jv-valprint.c (java_value_print): Likewise.
6776 * valops.c (value_ind): Likewise.
6777 * value.c (coerce_ref): Likewise.
6778
6779 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6780
6781 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6782 value and retrieve the dynamic type size.
6783
6784 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6785
6786 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6787 passed to sizeof is dynamic evaluate the argument to compute the length.
6788
6789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6790 Joel Brobecker <brobecker@adacore.com>
6791
6792 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6793 (dwarf2_evaluate_property): New function.
6794 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6795 * dwarf2read.c (attr_to_dynamic_prop): New function.
6796 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6797 attribute.
6798 * gdbtypes.c: Include dwarf2loc.h.
6799 (is_dynamic_type): New function.
6800 (resolve_dynamic_type): New function.
6801 (resolve_dynamic_bounds): New function.
6802 (get_type_length): New function.
6803 (check_typedef): Use get_type_length to compute type length.
6804 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6805 (TYPE_LOW_BOUND_KIND): New macro.
6806 (is_dynamic_type): New function prototype.
6807 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6808 to resolve dynamic properties of the type. Update comment.
6809 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6810
6811 2014-04-14 Richard Henderson <rth@redhat.com>
6812
6813 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6814
6815 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6816 Doug Evans <xdje42@gmail.com>
6817
6818 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6819 dereference TYPE_CODE_REF values.
6820
6821 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6822
6823 Revert the following changes due to regressions:
6824
6825 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6826 (dwarf2_evaluate_property): New function.
6827 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6828 * dwarf2read.c (attr_to_dynamic_prop): New function.
6829 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6830 attribute.
6831 * gdbtypes.c: Include dwarf2loc.h.
6832 (is_dynamic_type): New function.
6833 (resolve_dynamic_type): New function.
6834 (resolve_dynamic_bounds): New function.
6835 (get_type_length): New function.
6836 (check_typedef): Use get_type_length to compute type length.
6837 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6838 (TYPE_LOW_BOUND_KIND): New macro.
6839 (is_dynamic_type): New function prototype.
6840 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6841 to resolve dynamic properties of the type. Update comment.
6842 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6843
6844 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6845 passed to sizeof is dynamic evaluate the argument to compute the length.
6846
6847 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6848 value and retrieve the dynamic type size.
6849
6850 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6851 (ada_template_to_fixed_record_type_1): Likewise.
6852 (ada_to_fixed_type_1): Likewise.
6853 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6854 (cp_print_value): Likewise.
6855 * d-valprint.c (dynamic_array_type): Likewise.
6856 * eval.c (evaluate_subexp_with_coercion): Likewise.
6857 * findvar.c (address_of_variable): Likewise.
6858 * jv-valprint.c (java_value_print): Likewise.
6859 * valops.c (value_ind): Likewise.
6860 * value.c (coerce_ref): Likewise.
6861
6862 * c-typeprint.c (c_type_print_varspec_suffix): Added
6863 check for not yet resolved high bound. If unresolved, print
6864 "variable length" string to the console instead of random
6865 length.
6866
6867 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6868 property and store it as the high bound and flag the range accordingly.
6869 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6870 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6871 * gdbtypes.h (enum range_flags): New enum.
6872 (struct range_bounds): Add flags member.
6873
6874 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6875 points to a constant blob.
6876
6877 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6878 (evaluate_subexp_standard): Pass noside argument.
6879 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6880 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6881 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6882 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6883 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6884
6885 2014-04-11 Keith Seitz <keiths@redhat.com>
6886
6887 PR c++/16675
6888 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6889 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6890 reference types.
6891
6892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6893
6894 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6895 (evaluate_subexp_standard): Pass noside argument.
6896 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6897 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6898 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6899 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6900 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6901
6902 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6903
6904 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6905 points to a constant blob.
6906
6907 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6908
6909 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6910 property and store it as the high bound and flag the range accordingly.
6911 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6912 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6913 * gdbtypes.h (enum range_flags): New enum.
6914 (struct range_bounds): Add flags member.
6915
6916 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6917
6918 * c-typeprint.c (c_type_print_varspec_suffix): Added
6919 check for not yet resolved high bound. If unresolved, print
6920 "variable length" string to the console instead of random
6921 length.
6922
6923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6924
6925 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6926 (ada_template_to_fixed_record_type_1): Likewise.
6927 (ada_to_fixed_type_1): Likewise.
6928 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6929 (cp_print_value): Likewise.
6930 * d-valprint.c (dynamic_array_type): Likewise.
6931 * eval.c (evaluate_subexp_with_coercion): Likewise.
6932 * findvar.c (address_of_variable): Likewise.
6933 * jv-valprint.c (java_value_print): Likewise.
6934 * valops.c (value_ind): Likewise.
6935 * value.c (coerce_ref): Likewise.
6936
6937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6938
6939 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6940 value and retrieve the dynamic type size.
6941
6942 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6943
6944 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6945 passed to sizeof is dynamic evaluate the argument to compute the length.
6946
6947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6948
6949 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6950 (dwarf2_evaluate_property): New function.
6951 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6952 * dwarf2read.c (attr_to_dynamic_prop): New function.
6953 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6954 attribute.
6955 * gdbtypes.c: Include dwarf2loc.h.
6956 (is_dynamic_type): New function.
6957 (resolve_dynamic_type): New function.
6958 (resolve_dynamic_bounds): New function.
6959 (get_type_length): New function.
6960 (check_typedef): Use get_type_length to compute type length.
6961 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6962 (TYPE_LOW_BOUND_KIND): New macro.
6963 (is_dynamic_type): New function prototype.
6964 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6965 to resolve dynamic properties of the type. Update comment.
6966 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6967
6968 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6969
6970 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6971 declaring high/low bounds and change uses accordingly. Call
6972 create_range_type instead of create_static_range_type.
6973 * gdbtypes.c (create_range_type): New function.
6974 (create_range_type): Convert bounds into struct bound_prop and pass
6975 them to create_range_type.
6976 * gdbtypes.h (struct bound_prop): New struct.
6977 (create_range_type): New function prototype.
6978 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6979 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6980 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6981 part of the bound.
6982 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6983
6984 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6985
6986 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6987 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6988 * ada-lang.c: All uses of create_range_type updated.
6989 * coffread.c: All uses of create_range_type updated.
6990 * dwarf2read.c: All uses of create_range_type updated.
6991 * f-exp.y: All uses of create_range_type updated.
6992 * m2-valprint.c: All uses of create_range_type updated.
6993 * mdebugread.c: All uses of create_range_type updated.
6994 * stabsread.c: All uses of create_range_type updated.
6995 * valops.c: All uses of create_range_type updated.
6996 * valprint.c: All uses of create_range_type updated.
6997
6998 2014-04-10 Pedro Alves <palves@redhat.com>
6999
7000 * breakpoint.c (single_step_breakpoints)
7001 (single_step_gdbarch): Move up in the file.
7002 (one_breakpoint_xfer_memory): New function, factored out from ...
7003 (breakpoint_xfer_memory): ... here. Also process single-step
7004 breakpoints.
7005
7006 2014-04-09 Tristan Gingold <gingold@adacore.com>
7007
7008 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7009 comments.
7010 (darwin_decode_exception_message): Free port only after use.
7011
7012 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7013
7014 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7015 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7016 when setting the size of call_length.
7017
7018 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7019
7020 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7021 dereference TYPE_CODE_REF values.
7022
7023 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7024
7025 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7026 end of warning message.
7027
7028 2014-04-03 Doug Evans <dje@google.com>
7029
7030 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7031 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7032
7033 2014-04-02 Alan Modra <amodra@gmail.com>
7034
7035 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7036 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7037 (struct symbol_file_add_from_memory_args): Add size field.
7038 (find_vdso_size): New function.
7039 (add_vsyscall_page): Attempt to find vdso size.
7040
7041 2014-04-01 Doug Evans <dje@google.com>
7042
7043 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7044
7045 2014-04-01 Tristan Gingold <gingold@adacore.com>
7046
7047 * darwin-nat.c (darwin_encode_reply): Add prototype.
7048 (darwin_decode_exception_message): Reply to unknown inferiors.
7049 (darwin_decode_message): Handle message by id. Ignore message
7050 to unknown inferior.
7051 (darwin_wait): Discard unknown messages, add debug trace.
7052
7053 2014-03-31 Doug Evans <dje@google.com>
7054
7055 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7056 comp_dir_string.
7057
7058 2014-03-31 Doug Evans <dje@google.com>
7059
7060 New option "set print symbol-loading".
7061 * NEWS: Mention it.
7062 * solib.c (solib_read_symbols): Only print symbol loading messages
7063 if requested.
7064 (solib_add): If symbol loading is in "brief" mode, notify user
7065 symbols are being loaded.
7066 (reload_shared_libraries_1): Ditto.
7067 * symfile.c (print_symbol_loading_off): New static global.
7068 (print_symbol_loading_brief): New static global.
7069 (print_symbol_loading_full): New static global.
7070 (print_symbol_loading_enums): New static global.
7071 (print_symbol_loading): New static global.
7072 (print_symbol_loading_p): New function.
7073 (symbol_file_add_with_addrs): Only print symbol loading messages
7074 if requested.
7075 (_initialize_symfile): Register "print symbol-loading" set/show
7076 command.
7077 * symfile.h (print_symbol_loading_p): Declare.
7078
7079 2014-03-30 Doug Evans <xdje42@gmail.com>
7080
7081 * infrun.c (set_last_target_status): New function.
7082 (handle_inferior_event): Call it.
7083
7084 2014-03-30 Doug Evans <xdje42@gmail.com>
7085
7086 * inferior.h (enum stop_kind): Improve comment.
7087
7088 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7089
7090 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7091 a reference, strip the reference layer before calling
7092 the lang_ops value_has_mutated callback.
7093
7094 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7095
7096 Remove some globals from our parser.
7097 * language.c (unk_lang_parser): Add "struct parser_state"
7098 argument.
7099 * language.h (struct language_defn) <la_parser>: Likewise.
7100 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7101 (initialize_expout): Add "struct parser_state" argument.
7102 Rewrite function to use the parser state.
7103 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7104 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7105 write_exp_elt_longcst, write_exp_elt_dblcst,
7106 write_exp_elt_decfloatcst, write_exp_elt_type,
7107 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7108 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7109 write_dollar_variable): Likewise.
7110 (parse_exp_in_context_1): Use parser state.
7111 (insert_type_address_space): Add "struct parser_state" argument.
7112 Use parser state.
7113 (increase_expout_size): New function.
7114 * parser-defs.h: Forward declare "struct language_defn" and
7115 "struct parser_state".
7116 (expout, expout_size, expout_ptr): Remove extern declarations.
7117 (parse_gdbarch, parse_language): Rewrite macro declarations to
7118 accept the parser state.
7119 (struct parser_state): New struct.
7120 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7121 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7122 write_exp_elt_decfloatcst, write_exp_elt_type,
7123 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7124 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7125 write_exp_msymbol, write_dollar_variable,
7126 mark_struct_expression, insert_type_address_space): Add "struct
7127 parser_state" argument.
7128 (increase_expout_size): New function.
7129 * utils.c (do_clear_parser_state): New function.
7130 (make_cleanup_clear_parser_state): Likewise.
7131 * utils.h (make_cleanup_clear_parser_state): New function
7132 prototype.
7133 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7134 Update calls to write_exp* in order to pass the parser state.
7135 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7136 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7137 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7138 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7139 * stap-probe.c (stap_parse_register_operand): Likewise.
7140 (stap_parse_single_operand): Likewise.
7141 (stap_parse_argument_1): Likewise.
7142 (stap_parse_argument): Use parser state.
7143 * stap-probe.h: Include "parser-defs.h".
7144 (struct stap_parse_info) <pstate>: New field.
7145 * c-exp.y (parse_type): Rewrite to use parser state.
7146 (yyparse): Redefine to c_parse_internal.
7147 (pstate): New global variable.
7148 (parse_number): Add "struct parser_state" argument.
7149 (write_destructor_name): Likewise.
7150 (type_exp): Update calls to write_exp* and similars in order to
7151 use parser state.
7152 (exp1, exp, variable, qualified_name, space_identifier,
7153 typename, typebase): Likewise.
7154 (write_destructor_name, parse_number, lex_one_token,
7155 classify_name, classify_inner_name, c_parse): Add "struct
7156 parser_state" argument. Update function to use parser state.
7157 * c-lang.h: Forward declare "struct parser_state".
7158 (c_parse): Add "struct parser_state" argument.
7159 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7160 (yyparse): Redefine macro to ada_parse_internal.
7161 (pstate): New variable.
7162 (write_int, write_object_renaming, write_var_or_type,
7163 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7164 type_int, type_long, type_long_long, type_float, type_double,
7165 type_long_double, type_char, type_boolean, type_system_address):
7166 Add "struct parser_state" argument.
7167 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7168 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7169 var_or_type, aggregate, aggregate_component_list,
7170 positional_list, others, component_group,
7171 component_associations): Update calls to write_exp* and similar
7172 functions in order to use parser state.
7173 (ada_parse, write_var_from_sym, write_int,
7174 write_exp_op_with_string, write_object_renaming,
7175 find_primitive_type, write_selectors, write_ambiguous_var,
7176 write_var_or_type, write_name_assoc, type_int, type_long,
7177 type_long_long, type_float, type_double, type_long_double,
7178 type_char, type_boolean, type_system_address): Add "struct
7179 parser_state" argument. Adjust function to use parser state.
7180 * ada-lang.c (parse): Likewise.
7181 * ada-lang.h: Forward declare "struct parser_state".
7182 (ada_parse): Add "struct parser_state" argument.
7183 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7184 calls to both functions.
7185 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7186 parser state.
7187 (yyparse): Redefine macro to f_parse_internal.
7188 (pstate): New variable.
7189 (parse_number): Add "struct parser_state" argument.
7190 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7191 and similars in order to use parser state.
7192 (parse_number): Adjust code to use parser state.
7193 (yylex): Likewise.
7194 (f_parse): New function.
7195 * f-lang.h: Forward declare "struct parser_state".
7196 (f_parse): Add "struct parser_state" argument.
7197 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7198 parser state.
7199 (yyparse): Redefine macro for java_parse_internal.
7200 (pstate): New variable.
7201 (push_expression_name, push_expression_name, insert_exp): Add
7202 "struct parser_state" argument.
7203 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7204 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7205 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7206 PostIncrementExpression, PostDecrementExpression,
7207 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7208 UnaryExpressionNotPlusMinus, CastExpression,
7209 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7210 RelationalExpression, EqualityExpression, AndExpression,
7211 ExclusiveOrExpression, InclusiveOrExpression,
7212 ConditionalAndExpression, ConditionalOrExpression,
7213 ConditionalExpression, Assignment, LeftHandSide): Update
7214 calls to write_exp* and similars in order to use parser state.
7215 (parse_number): Ajust code to use parser state.
7216 (yylex): Likewise.
7217 (java_parse): New function.
7218 (push_variable): Add "struct parser_state" argument. Adjust
7219 code to user parser state.
7220 (push_fieldnames, push_qualified_expression_name,
7221 push_expression_name, insert_exp): Likewise.
7222 * jv-lang.h: Forward declare "struct parser_state".
7223 (java_parse): Add "struct parser_state" argument.
7224 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7225 parser state.
7226 (yyparse): Redefine macro to m2_parse_internal.
7227 (pstate): New variable.
7228 (type_exp, exp, fblock, variable, type): Update calls to
7229 write_exp* and similars to use parser state.
7230 (yylex): Likewise.
7231 (m2_parse): New function.
7232 * m2-lang.h: Forward declare "struct parser_state".
7233 (m2_parse): Add "struct parser_state" argument.
7234 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7235 * objc-lang.h: Forward declare "struct parser_state".
7236 (end_msglist): Add "struct parser_state" argument.
7237 * p-exp.y (parse_type): Rewrite macro to use parser state.
7238 (yyparse): Redefine macro to pascal_parse_internal.
7239 (pstate): New variable.
7240 (parse_number): Add "struct parser_state" argument.
7241 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7242 write_exp* and similars in order to use parser state.
7243 (parse_number, yylex): Adjust code to use parser state.
7244 (pascal_parse): New function.
7245 * p-lang.h: Forward declare "struct parser_state".
7246 (pascal_parse): Add "struct parser_state" argument.
7247 * go-exp.y (parse_type): Rewrite macro to use parser state.
7248 (yyparse): Redefine macro to go_parse_internal.
7249 (pstate): New variable.
7250 (parse_number): Add "struct parser_state" argument.
7251 (type_exp, exp1, exp, variable, type): Update calls to
7252 write_exp* and similars in order to use parser state.
7253 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7254 to use parser state.
7255 (go_parse): Likewise.
7256 * go-lang.h: Forward declare "struct parser_state".
7257 (go_parse): Add "struct parser_state" argument.
7258
7259 2014-03-27 Doug Evans <dje@google.com>
7260
7261 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7262
7263 2014-03-27 Doug Evans <dje@google.com>
7264
7265 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7266 Remove argument abbrev_section. All callers updated.
7267
7268 2014-03-27 Doug Evans <dje@google.com>
7269
7270 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7271 addr_base, ranges_base.
7272
7273 2014-03-26 Keith Seitz <keiths@redhat.com>
7274
7275 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7276 types, not VAR_DOMAIN.
7277
7278 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7279
7280 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7281 "ra" registers.
7282 * features/nios2-linux.c: Regenerated.
7283 * features/nios2.c: Regenerated.
7284
7285 2014-03-25 Pedro Alves <palves@redhat.com>
7286
7287 * cli/cli-script.c (script_from_file): Force the interpreter to
7288 sync mode.
7289
7290 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7291
7292 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7293 small stack allocation.
7294
7295 2014-03-24 Tristan Gingold <gingold@adacore.com>
7296
7297 * darwin-nat.c (exc_server): Remove unused prototype.
7298 (darwin_dump_message): Correctly display data on x86_64.
7299 (darwin_encode_reply): Fix style.
7300 Add comments and fix indentation.
7301
7302 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7303
7304 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7305
7306 2014-03-22 Doug Evans <xdje42@gmail.com>
7307
7308 * infcmd.c: Whitespace fixes.
7309 (interrupt_command): Merge two function comments into one.
7310
7311 2014-03-22 Doug Evans <xdje42@gmail.com>
7312
7313 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7314 All uses updated.
7315
7316 2014-03-22 Yao Qi <yao@codesourcery.com>
7317
7318 * remote.c (target_read_live_memory): Remove.
7319 (memory_xfer_live_readonly_partial): Rename it to
7320 remote_xfer_live_readonly_partial. Remove argument 'object'.
7321 All callers updated. Call remote_read_bytes_1
7322 instead of target_read_live_memory.
7323 * tracepoint.c (set_traceframe_number): Remove.
7324 (make_cleanup_restore_traceframe_number): Likewise .
7325 * tracepoint.h (set_traceframe_number): Remove declaration.
7326 (make_cleanup_restore_traceframe_number): Likewise.
7327
7328 2014-03-22 Yao Qi <yao@codesourcery.com>
7329
7330 * remote.c (remote_read_bytes): Move code on reading from the
7331 remote stub to ...
7332 (remote_read_bytes_1): ... here. New function.
7333
7334 2014-03-22 Yao Qi <yao@codesourcery.com>
7335
7336 * ctf.c (ctf_xfer_partial): Check the return value of
7337 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7338 return TARGET_XFER_UNAVAILABLE.
7339 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7340 * target.c (target_read_live_memory): Move it to remote.c.
7341 (memory_xfer_live_readonly_partial): Likewise.
7342 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7343 * remote.c (target_read_live_memory): Moved from target.c.
7344 (memory_xfer_live_readonly_partial): Likewise.
7345 (remote_read_bytes): Factored out from
7346 memory_xfer_partial_1.
7347
7348 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7349
7350 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7351 NULL pointer.
7352
7353 2014-03-21 Pedro Alves <palves@redhat.com>
7354
7355 * infrun.c (normal_stop): Extend comment.
7356
7357 2014-03-21 Hui Zhu <hui@codesourcery.com>
7358 Pedro Alves <palves@redhat.com>
7359
7360 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7361 static buffer.
7362 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7363 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7364 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7365
7366 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7367
7368 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7369 `z' formatted output modifier.
7370
7371 2014-03-20 Tom Tromey <tromey@redhat.com>
7372 Sergio Durigan Junior <sergiodj@redhat.com>
7373
7374 * probe.c (parse_probes): Turn assert into an ordinary error.
7375 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7376 exceptions when parsing probes. Rearrange the code for clarity.
7377
7378 2014-03-20 Tom Tromey <tromey@redhat.com>
7379
7380 PR gdb/14135
7381 * top.c (execute_command): Only dispatch events if the command
7382 started the target.
7383
7384 2014-03-20 Tom Tromey <tromey@redhat.com>
7385
7386 PR cli/15718
7387 * infcall.c: Include event-top.h.
7388 (run_inferior_call): Call async_disable_stdin if needed.
7389
7390 2014-03-20 Pedro Alves <palves@redhat.com>
7391
7392 * infrun.c (prepare_to_proceed): Delete.
7393 (thread_still_needs_step_over): New function.
7394 (find_thread_needs_step_over): New function.
7395 (proceed): If the current thread needs a step-over, set its
7396 steping_over_breakpoint flag. Adjust to use
7397 find_thread_needs_step_over instead of prepare_to_proceed.
7398 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7399 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7400 breakpoint.
7401 (switch_back_to_stepped_thread): Step over breakpoints of all
7402 threads not the stepping thread, before switching back to the
7403 stepping thread.
7404
7405 2014-03-20 Pedro Alves <palves@redhat.com>
7406
7407 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7408 extern.
7409 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7410 * infrun.c (saved_singlestep_ptid)
7411 (stepping_past_singlestep_breakpoint): Delete.
7412 (resume): Remove stepping_past_singlestep_breakpoint handling.
7413 (proceed): Store the prev_pc of the stepping thread too.
7414 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7415 singlestep_pc.
7416 (enum infwait_states): Delete infwait_thread_hop_state.
7417 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7418 field.
7419 (handle_inferior_event): Adjust.
7420 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7421 handling and the thread-hop code. Before removing single-step
7422 breakpoints, check whether the thread hit a single-step breakpoint
7423 of another thread. If it did, the trap is not a random signal.
7424 (switch_back_to_stepped_thread): If the event thread hit a
7425 single-step breakpoint, unblock it before switching to the
7426 stepping thread. Handle the case of the stepped thread having
7427 advanced already.
7428 (keep_going): Handle the case of the current thread moving past a
7429 single-step breakpoint.
7430
7431 2014-03-20 Pedro Alves <palves@redhat.com>
7432
7433 PR breakpoints/7143
7434 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7435 are being stepped over.
7436 (breakpoint_address_match): Make extern.
7437 * breakpoint.h (breakpoint_address_match): New declaration.
7438 * inferior.h (stepping_past_instruction_at): New declaration.
7439 * infrun.c (struct step_over_info): New type.
7440 (step_over_info): New global.
7441 (set_step_over_info, clear_step_over_info)
7442 (stepping_past_instruction_at): New functions.
7443 (handle_inferior_event): Clear the step-over info when
7444 trap_expected is cleared.
7445 (resume): Remove now stale comment.
7446 (clear_proceed_status): Clear step-over info.
7447 (proceed): Adjust step-over handling to set or clear the step-over
7448 info instead of removing all breakpoints.
7449 (handle_signal_stop): When setting up a thread-hop, don't remove
7450 breakpoints here.
7451 (stop_stepping): Clear step-over info.
7452 (keep_going): Adjust step-over handling to set or clear step-over
7453 info and then always inserting breakpoints, instead of removing
7454 all breakpoints when stepping over one.
7455
7456 2014-03-20 Pedro Alves <palves@redhat.com>
7457
7458 * infrun.c (previous_inferior_ptid): Adjust comment.
7459 (deferred_step_ptid): Delete.
7460 (infrun_thread_ptid_changed, prepare_to_proceed)
7461 (init_wait_for_inferior): Adjust.
7462 (handle_signal_stop): Delete deferred_step_ptid handling.
7463
7464 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 PR gdb/15358
7467 * defs.h (sync_quit_force_run): New declaration.
7468 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7469 * event-top.c (async_sigterm_handler): New declaration.
7470 (async_sigterm_token): New variable.
7471 (async_init_signals): Create also async_sigterm_token.
7472 (async_sigterm_handler): New function.
7473 (sync_quit_force_run): New variable.
7474 (handle_sigterm): Replace quit_force call by other calls.
7475 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7476
7477 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7478
7479 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7480 offset into SPE pseudo registers.
7481
7482 2014-03-18 Pedro Alves <palves@redhat.com>
7483
7484 PR gdb/13860
7485 * inferior.h (print_stop_event): Declare.
7486 * infrun.c (print_stop_event): New, factored out from ...
7487 (normal_stop): ... this.
7488 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7489 of bpstat_print/print_stack_frame.
7490
7491 2014-03-17 Tom Tromey <tromey@redhat.com>
7492
7493 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7494
7495 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7496
7497 * ada-lang.c (decode_constrained_packed_array): Perform a
7498 minimal coercion for reference with coerce_ref instead of
7499 ada_coerce_ref.
7500
7501 2014-03-17 Tristan Gingold <gingold@adacore.com>
7502
7503 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7504 (darwin_solib_create_inferior_hook): Emit a warning if version
7505 is unhandled.
7506
7507 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7508
7509 * python/py-value.c (get_field_flag): Cast flag_name argument to
7510 PyObject_GetAttrString to support Python 2.4.
7511
7512 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7513
7514 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7515 (Global Maintainers): Remove Jan Kratochvil.
7516
7517 2014-03-14 Pedro Alves <palves@redhat.com>
7518
7519 * inferior.h (terminal_ours_for_output): Rename to ...
7520 (child_terminal_ours_for_output): ... this.
7521 (terminal_save_ours): Rename to ...
7522 (child_terminal_save_ours): ... this.
7523 (terminal_ours): Rename to ...
7524 (child_terminal_ours): ... this.
7525 (terminal_inferior): Rename to ...
7526 (child_terminal_inferior): ... this.
7527 (terminal_init_inferior): Rename to ...
7528 (child_terminal_init_inferior): ... this.
7529 (terminal_init_inferior_with_pgrp): Rename to ...
7530 (child_terminal_init_inferior_with_pgrp): ... this.
7531 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7532 (child_terminal_init_with_pgrp): ... this.
7533 (terminal_save_ours): Rename to ...
7534 (child_terminal_save_ours): ... this.
7535 (terminal_init_inferior): Rename to ...
7536 (child_terminal_init): ... this. Adjust.
7537 (terminal_inferior): Rename to ...
7538 (child_terminal_inferior): ... this.
7539 (terminal_ours_for_output): Rename to ...
7540 (child_terminal_ours_for_output): ... this. Adjust.
7541 (terminal_ours): Rename to ...
7542 (child_terminal_ours): ... this.
7543 (terminal_ours_1): Rename to ...
7544 (child_terminal_ours_1): ... this. Adjust.
7545 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7546 * windows-nat.c (do_initial_windows_stuff): Adjust.
7547 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7548 (gnu_terminal_init): ... this. Adjust.
7549 (gnu_target): Adjust.
7550 * inf-child.c (inf_child_target): Adjust.
7551
7552 2014-03-13 Doug Evans <xdje42@gmail.com>
7553
7554 PR guile/16612
7555 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7556 new eq?-hashtab.
7557
7558 2014-03-13 Doug Evans <xdje42@gmail.com>
7559
7560 * value.c (record_latest_value): Call release_value_or_incref
7561 instead of release_value.
7562
7563 2014-03-13 Pedro Alves <palves@redhat.com>
7564
7565 * procfs.c (procfs_target): Don't override to_shortname,
7566 to_longname or to_doc.
7567
7568 2014-03-13 Pedro Alves <palves@redhat.com>
7569
7570 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7571 Unix in user visible strings.
7572
7573 2014-03-12 Stan Shebs <stan@codesourcery.com>
7574
7575 * gdbtypes.h: Annotate comments for Doxygen, add a page
7576 block comment with some general info.
7577
7578 2014-03-12 Pedro Alves <palves@redhat.com>
7579
7580 * infcmd.c (prepare_execution_command): New function, factored out
7581 from several execution commands.
7582 (run_command_1, continue_command, step_1, jump_command)
7583 (signal_command, until_command, advance_command, finish_command)
7584 (attach_command): Use prepare_execution_command.
7585
7586 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7587
7588 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7589 (MAX_BPTS): Define.
7590 (MAX_WPTS): Define.
7591 (struct arm_linux_thread_points): Removed.
7592 (struct arm_linux_process_info): New.
7593 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7594 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7595 (arm_linux_find_breakpoints_by_tid): Removed.
7596 (struct arch_lwp_info): New.
7597 (arm_linux_find_process_pid): New functions.
7598 (arm_linux_add_process): New functions.
7599 (arm_linux_process_info_get): New functions.
7600 (arm_linux_forget_process): New function.
7601 (arm_linux_get_debug_reg_state): New function.
7602 (struct update_registers_data): New.
7603 (update_registers_callback): New function.
7604 (arm_linux_insert_hw_breakpoint1): Updated.
7605 (arm_linux_remove_hw_breakpoint1): Updated.
7606 (arm_linux_insert_hw_breakpoint): Updated.
7607 (arm_linux_remove_hw_breakpoint): Updated.
7608 (arm_linux_insert_watchpoint): Updated.
7609 (arm_linux_remove_watchpoint): Updated.
7610 (arm_linux_new_thread): Updated.
7611 (arm_linux_prepare_to_resume): New function.
7612 (arm_linux_new_fork): New function.
7613 (_initialize_arm_linux_nat): Updated.
7614
7615 2014-03-12 Pedro Alves <palves@redhat.com>
7616
7617 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7618
7619 2014-03-12 Tom Tromey <tromey@redhat.com>
7620
7621 * inf-child.c (return_zero): New function.
7622 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7623 * aix-thread.c (aix_thread_inferior_created): New function.
7624 (aix_thread_attach): Remove.
7625 (init_aix_thread_ops): Don't set to_attach.
7626 (_initialize_aix_thread): Register inferior_created observer.
7627 * corelow.c (init_core_ops): Don't set to_attach or
7628 to_create_inferior.
7629 * exec.c (init_exec_ops): Don't set to_attach or
7630 to_create_inferior.
7631 * infcmd.c (run_command_1): Use find_run_target. Make direct
7632 target calls.
7633 (attach_command): Use find_attach_target. Make direct target
7634 calls.
7635 * record-btrace.c (init_record_btrace_ops): Don't set
7636 to_create_inferior.
7637 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7638 Remove.
7639 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7640 set to_create_inferior.
7641 * target.c (complete_target_initialization): Add assertion.
7642 (target_create_inferior): Remove.
7643 (find_default_attach, find_default_create_inferior): Remove.
7644 (find_attach_target, find_run_target): New functions.
7645 (find_default_is_async_p, find_default_can_async_p)
7646 (target_supports_non_stop, target_attach): Remove.
7647 (init_dummy_target): Don't set to_create_inferior or
7648 to_supports_non_stop.
7649 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7650 TARGET_DEFAULT_FUNC.
7651 <to_create_inferior>: Add comment.
7652 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7653 TARGET_DEFAULT_RETURN.
7654 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7655 (find_attach_target, find_run_target): Declare.
7656 (target_create_inferior): Remove.
7657 (target_has_execution_1): Update comment.
7658 (target_supports_non_stop): Remove.
7659 * target-delegates.c: Rebuild.
7660
7661 2014-03-12 Pedro Alves <palves@redhat.com>
7662
7663 * inf-child.h: Update comment to not mention Unix.
7664
7665 2014-03-12 Pedro Alves <palves@redhat.com>
7666
7667 * inf-child.c: Update top comment to not mention Unix. Add
7668 generic comment describing how this target is meant to be used.
7669 (inf_child_post_attach, inf_child_post_startup_inferior)
7670 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7671 Unix in comment.
7672
7673 2014-03-12 Pedro Alves <palves@redhat.com>
7674
7675 * nto-procfs.c: Include inf-child.h.
7676 (procfs_ops): Delete global.
7677 (procfs_can_run): Delete method.
7678 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7679 target pointer instead of referencing procfs_ops.
7680 (procfs_prepare_to_store): Delete.
7681 (init_procfs_ops): Delete function.
7682 (procfs_target): New function, based on init_procfs_ops, but
7683 inherit inf_child_target.
7684 (_initialize_procfs): Use procfs_target.
7685
7686 2014-03-12 Pedro Alves <palves@redhat.com>
7687
7688 * windows-nat.c: Include inf-child.h.
7689 (windows_ops): Delete global.
7690 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7691 methods.
7692 (init_windows_ops): Delete function.
7693 (windows_target): New function, based on init_windows_ops, but
7694 inherit inf_child_target.
7695 (_initialize_windows_nat): Use windows_target. Install x86
7696 specific target methods here.
7697
7698 2014-03-10 Doug Evans <xdje42@gmail.com>
7699
7700 * guile/guile.c (call_initialize_gdb_module): New function.
7701 (initialize_guile): Replace call to scm_init_guile with call to
7702 scm_with_guile.
7703
7704 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7705
7706 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7707 in call to TYPE_CODE macro.
7708
7709 2014-03-10 Jerome Guitton <guitton@adacore.com>
7710
7711 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7712 Resolve tagged types to full view.
7713
7714 2014-03-10 Hui Zhu <hui@codesourcery.com>
7715
7716 * target.h (target_insert_breakpoint): Remove "hardware" from its
7717 comments.
7718
7719 2014-03-07 Doug Evans <dje@google.com>
7720
7721 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7722
7723 2014-03-07 Doug Evans <dje@google.com>
7724
7725 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7726 Remove unused local comp_dir_attr. Assert exactly one of
7727 stub_comp_unit_die, stub_comp_dir is non-NULL.
7728
7729 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7730
7731 * target.h (complete_target_initialization, add_target):
7732 Add comment.
7733
7734 2014-03-07 Pedro Alves <palves@redhat.com>
7735
7736 * go32-nat.c: Include inf-child.h.
7737 (go32_ops): Delete global.
7738 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7739 Delete methods.
7740 (go32_create_inferior): Push the passed in target pointer instead
7741 of referencing go32_ops.
7742 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7743 (go32_target): New function, based on init_go32_ops, but inherit
7744 inf_child_target.
7745 (_initialize_go32_nat): Use go32_target. Move parts of
7746 init_go32_ops here.
7747
7748 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7749
7750 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7751 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7752 SYMBOL_VALUE_ADDRESS.
7753 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7754
7755 2014-03-06 Yao Qi <yao@codesourcery.com>
7756
7757 * breakpoint.c (get_tracepoint_by_number): Remove argument
7758 optional_p. All callers updated. Adjust comments. Update
7759 output message.
7760 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7761
7762 2014-03-06 Yao Qi <yao@codesourcery.com>
7763
7764 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7765 early if get_number returns zero. Use 'p' instead of 'args'.
7766
7767 2014-03-06 Yao Qi <yao@codesourcery.com>
7768
7769 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7770 message.
7771
7772 2014-03-06 Yao Qi <yao@codesourcery.com>
7773
7774 PR breakpoints/16508
7775 * tracepoint.c (check_trace_running): New function.
7776 (trace_find_command): Move code to check_trace_running and
7777 call check_trace_running.
7778 (trace_find_pc_command): Likewise.
7779 (trace_find_tracepoint_command): Likewise.
7780 (trace_find_line_command): Likewise.
7781 (trace_find_range_command): Likewise.
7782 * tracepoint.h (check_trace_running): Likewise.
7783 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7784
7785 2014-03-06 Yao Qi <yao@codesourcery.com>
7786
7787 * target.h (struct target_ops) <to_traceframe_info>: Use
7788 TARGET_DEFAULT_NORETURN (tcomplain ()).
7789 * target-delegates.c: Regenerated.
7790
7791 2014-03-05 Pedro Alves <palves@redhat.com>
7792
7793 PR gdb/16575
7794 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7795 void. Update comment.
7796 (dcache_xfer_memory): Delete.
7797 (dcache_read_memory_partial): New, based on the read bits of
7798 dcache_xfer_memory.
7799 (dcache_update): Add status parameter. Use ULONGEST for len, and
7800 adjust. Discard cache lines if the reason for the update was
7801 error.
7802 * dcache.h (dcache_xfer_memory): Delete declaration.
7803 (dcache_read_memory_partial): New declaration.
7804 (dcache_update): Update prototype.
7805 * target.c (raw_memory_xfer_partial): Update the dcache here.
7806 (memory_xfer_partial_1): Don't handle dcache writes here.
7807
7808 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7809
7810 * remote-sim.c (gdbsim_load): Add const to prog.
7811
7812 2014-03-03 Tom Tromey <tromey@redhat.com>
7813
7814 * elfread.c (probe_key): Change to bfd_data.
7815 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7816 now per-BFD, not per-objfile.
7817 * stap-probe.c (stap_probe_destroy): Update comment.
7818 (handle_stap_probe): Allocate on the per-BFD obstack.
7819
7820 2014-03-03 Tom Tromey <tromey@redhat.com>
7821
7822 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7823 * breakpoint.c (create_longjmp_master_breakpoint): Use
7824 get_probe_address.
7825 (add_location_to_breakpoint, bkpt_probe_insert_location)
7826 (bkpt_probe_remove_location): Update.
7827 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7828 * elfread.c (elf_symfile_relocate_probe): Remove.
7829 (elf_probe_fns): Update.
7830 (insert_exception_resume_breakpoint): Change type of "probe"
7831 parameter to bound_probe.
7832 (check_exception_resume): Update.
7833 * objfiles.c (objfile_relocate1): Don't relocate probes.
7834 * probe.c (bound_probe_s): New typedef.
7835 (parse_probes): Use get_probe_address. Set sal's objfile.
7836 (find_probe_by_pc): Return a bound_probe.
7837 (collect_probes): Return a VEC(bound_probe_s).
7838 (compare_probes): Update.
7839 (gen_ui_out_table_header_info): Change type of "probes"
7840 parameter. Update.
7841 (info_probes_for_ops): Update.
7842 (get_probe_address): New function.
7843 (probe_safe_evaluate_at_pc): Update.
7844 * probe.h (struct probe_ops) <get_probe_address>: New field.
7845 <set_semaphore, clear_semaphore>: Add objfile parameter.
7846 (struct probe) <objfile>: Remove field.
7847 <arch>: New field.
7848 <address>: Update comment.
7849 (struct bound_probe): New.
7850 (find_probe_by_pc): Return a bound_probe.
7851 (get_probe_address): Declare.
7852 * solib-svr4.c (struct probe_and_action) <address>: New field.
7853 (hash_probe_and_action, equal_probe_and_action): Update.
7854 (register_solib_event_probe): Add address parameter.
7855 (solib_event_probe_at): Update.
7856 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7857 get_probe_address.
7858 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7859 (stap_get_probe_address): New function.
7860 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7861 (compile_probe_arg): Update.
7862 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7863 address.
7864 (handle_stap_probe): Don't relocate the probe.
7865 (stap_relocate): Remove.
7866 (stap_gen_info_probes_table_values): Update.
7867 (stap_probe_ops): Remove stap_relocate.
7868 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7869 (debug_sym_probe_fns): Update.
7870 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7871 * symtab.c (init_sal): Use memset.
7872 * symtab.h (struct symtab_and_line) <objfile>: New field.
7873 * tracepoint.c (start_tracing, stop_tracing): Update.
7874
7875 2014-03-03 Tom Tromey <tromey@redhat.com>
7876
7877 * probe.h (parse_probes, find_probe_by_pc)
7878 (find_probes_in_objfile): Fix comments.
7879
7880 2014-03-02 Doug Evans <xdje42@gmail.com>
7881
7882 * infrun.c (handle_signal_stop): Replace test for
7883 TARGET_WAITKIND_STOPPED with an assert.
7884
7885 2014-03-02 Doug Evans <xdje42@gmail.com>
7886
7887 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7888
7889 2014-03-02 Doug Evans <xdje42@gmail.com>
7890
7891 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7892
7893 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7894
7895 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7896
7897 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7898
7899 * i386obsd-nat.c: Include "obsd-nat.h".
7900 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7901 add_target.
7902 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7903
7904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7905
7906 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7907
7908 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7909
7910 * mips64obsd-nat.c: Include "obsd-nath".
7911 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7912 add_target
7913 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7914
7915 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7916
7917 * amd64obsd-nat.c: Include "obsd-nat,h.
7918 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7919 add_target.
7920 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7921
7922 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7923
7924 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7925 (find_overload_match): Update call to find_oload_champ.
7926 (find_oload_champ_namespace_loop): Likewise
7927
7928 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7929
7930 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7931
7932 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7933 * config/sparc/obsd64.mh: New file.
7934 * sparc64obsd-nat.c: New file.
7935
7936 * obsd-nat.h: New file.
7937 * obsd-nat.c: New file.
7938 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7939 (ALLDEPFILES): Add obsd-nat.c.
7940
7941 2014-02-28 Tom Tromey <tromey@redhat.com>
7942
7943 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7944 * cli-out.h (cli_ui_out_impl): Now const.
7945 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7946 * ui-out.c (struct ui_out) <impl>: Now const.
7947 (default_ui_out_impl): Now const.
7948 (ui_out_new): Make 'impl' parameter const.
7949 * ui-out.h (ui_out_new): Update.
7950
7951 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7952
7953 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7954
7955 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7956
7957 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7958
7959 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7960
7961 Additional PR 8882 fix.
7962 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7963
7964 2014-02-27 Pedro Alves <palves@redhat.com>
7965
7966 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7967 isn't set.
7968
7969 2014-02-27 Pedro Alves <palves@redhat.com>
7970
7971 PR 12702
7972 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7973 * nat/linux-waitpid.c: Include string.h.
7974 (status_to_str): Moved here and made extern.
7975 * nat/linux-waitpid.h (status_to_str): New declaration.
7976
7977 2014-02-27 Hui Zhu <hui@codesourcery.com>
7978
7979 PR 12702
7980 * infrun.c (ptid_match): Move ...
7981 * common/ptid.c (ptid_match): ... here.
7982 * inferior.h (ptid_match): Move ...
7983 * common/ptid.h (ptid_match): ... here.
7984
7985 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7986
7987 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7988 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7989 gdb_target_obs.
7990
7991 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7992
7993 * obsd-tdep.c (obsd_auxv_parse): New function.
7994 (obsd_init_abi): Set auxv_parse.
7995
7996 * gdbarch.sh (auxv_parse): New.
7997 * gdbarch.h: Regenerated.
7998 * gdbarch.c: Regenerated.
7999 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8000
8001 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8002
8003 * guile/scm-value.c (gdbscm_history_append_x): New function.
8004 (value_functions): Add it.
8005
8006 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8007
8008 * dwarf2read.c (attr_value_as_address): New function.
8009 (dwarf2_find_base_address, read_call_site_scope): Use
8010 attr_value_as_address in place of DW_ADDR.
8011 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8012 the low and high addresses. Slight rework of the handling
8013 of the high pc being a constant form, and limit it to
8014 DWARF verson 4 or higher.
8015 (dwarf2_record_block_ranges): Likewise.
8016 (read_partial_die): Likewise.
8017 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8018
8019 2014-02-26 Tom Tromey <tromey@redhat.com>
8020
8021 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8022
8023 2014-02-26 Tom Tromey <tromey@redhat.com>
8024
8025 * elfread.c (elf_read_minimal_symbols): Return early if
8026 minimal symbols have already been read. Add "ei" parameter.
8027 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8028 * minsyms.c (prim_record_minimal_symbol_full): Update.
8029 * objfiles.h (struct objstats) <n_minsyms>: Move...
8030 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8031 * symmisc.c (print_objfile_statistics): Update.
8032
8033 2014-02-26 Tom Tromey <tromey@redhat.com>
8034
8035 * elfread.c (elf_read_minimal_symbols): New function, from
8036 elf_symfile_read.
8037 (elf_symfile_read): Call it.
8038
8039 2014-02-26 Tom Tromey <tromey@redhat.com>
8040
8041 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8042 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8043 (lookup_minimal_symbol_solib_trampoline)
8044 (lookup_minimal_symbol_by_pc_section_1)
8045 (lookup_minimal_symbol_and_objfile): Update.
8046 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8047 Don't allocate a minimal symbol if minsyms have already been read.
8048 (build_minimal_symbol_hash_tables): Update.
8049 (install_minimal_symbols): Do nothing if minsyms already read.
8050 Use the per-BFD obstack.
8051 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8052 * objfiles.c (allocate_objfile): Call
8053 terminate_minimal_symbol_table later.
8054 (have_minimal_symbols): Update.
8055 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8056 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8057 Move from struct objfile.
8058 <minsyms_read>: New field.
8059 (struct objfile) <msymbols, minimal_symbol_count,
8060 msymbol_hash, msymbol_demangled_hash>: Move.
8061 (ALL_OBJFILE_MSYMBOLS): Update.
8062 * symfile.c (read_symbols): Set minsyms_read.
8063 (reread_symbols): Update.
8064 * symmisc.c (dump_objfile, dump_msymbols): Update.
8065
8066 2014-02-26 Tom Tromey <tromey@redhat.com>
8067
8068 * minsyms.c (msymbols_sort): Remove.
8069 * minsyms.h (msymbols_sort): Remove.
8070 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8072 * elfread.c (elf_symtab_read): Don't add section offsets.
8073 * xcoffread.c (record_minimal_symbol): Don't add section offset
8074 to minimal symbol address.
8075 * somread.c (text_offset, data_offset): Remove.
8076 (som_symtab_read): Don't add section offsets to minimal symbol
8077 addresses.
8078 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8079 Don't add section offsets to minimal symbols.
8080 * coffread.c (coff_symtab_read): Don't add section offsets
8081 to minimal symbol addresses.
8082 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8083 to minimal symbol addresses.
8084 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8085 section offset to minimal symbol addresses.
8086 * mdebugread.c (parse_partial_symbols): Don't add section
8087 offset to minimal symbol addresses.
8088 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8089 offset to minimal symbol addresses.
8090
8091 2014-02-26 Tom Tromey <tromey@redhat.com>
8092
8093 * ada-lang.c (ada_main_name): Update.
8094 (ada_add_standard_exceptions): Update.
8095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8096 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8097 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8098 * auxv.c (ld_so_xfer_auxv): Update.
8099 * avr-tdep.c (avr_scan_prologue): Update.
8100 * ax-gdb.c (gen_var_ref): Update.
8101 * blockframe.c (get_pc_function_start)
8102 (find_pc_partial_function_gnu_ifunc): Update.
8103 * breakpoint.c (create_overlay_event_breakpoint)
8104 (create_longjmp_master_breakpoint)
8105 (create_std_terminate_master_breakpoint)
8106 (create_exception_master_breakpoint): Update.
8107 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8108 * c-valprint.c (c_val_print): Update.
8109 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8110 * common/agent.c (agent_look_up_symbols): Update.
8111 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8112 * dwarf2loc.c (call_site_to_target_addr): Update.
8113 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8114 * elfread.c (elf_gnu_ifunc_record_cache)
8115 (elf_gnu_ifunc_resolve_by_got): Update.
8116 * findvar.c (default_read_var_value): Update.
8117 * frame.c (inside_main_func): Update.
8118 * frv-tdep.c (frv_frame_this_id): Update.
8119 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8120 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8121 Update.
8122 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8123 (hppa_hpux_find_dummy_bpaddr): Update.
8124 * hppa-tdep.c (hppa_symbol_address): Update.
8125 * infcmd.c (until_next_command): Update.
8126 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8127 Update.
8128 * linespec.c (minsym_found, add_minsym): Update.
8129 * linux-nat.c (get_signo): Update.
8130 * linux-thread-db.c (inferior_has_bug): Update.
8131 * m32c-tdep.c (m32c_return_value)
8132 (m32c_m16c_address_to_pointer): Update.
8133 * m32r-tdep.c (m32r_frame_this_id): Update.
8134 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8135 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8136 * maint.c (maintenance_translate_address): Update.
8137 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8138 (frob_address): New function.
8139 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8140 frob_address. Rename parameter to "pc_in".
8141 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8142 addresses.
8143 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8144 Update.
8145 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8146 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8147 * objc-lang.c (find_objc_msgsend): Update.
8148 * objfiles.c (objfile_relocate1): Update.
8149 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8150 * p-valprint.c (pascal_val_print): Update.
8151 * parse.c (write_exp_msymbol): Update.
8152 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8153 (ppc_elfv2_skip_entrypoint): Update.
8154 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8155 * printcmd.c (build_address_symbolic, msym_info)
8156 (address_info): Update.
8157 * proc-service.c (ps_pglobal_lookup): Update.
8158 * psymtab.c (find_pc_sect_psymtab_closer)
8159 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8160 Change msymbol parameter to bound_minimal_symbol.
8161 * ravenscar-thread.c (get_running_thread_id): Update.
8162 * remote.c (remote_check_symbols): Update.
8163 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8164 address.
8165 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8166 * solib-dsbt.c (lm_base): Update.
8167 * solib-frv.c (lm_base, main_got): Update.
8168 * solib-irix.c (locate_base): Update.
8169 * solib-som.c (som_solib_create_inferior_hook)
8170 (link_map_start): Update.
8171 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8172 * solib-svr4.c (elf_locate_base, enable_break): Update.
8173 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8174 (flush_ea_cache): Update.
8175 * stabsread.c (define_symbol, scan_file_globals): Update.
8176 * stack.c (find_frame_funname): Update.
8177 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8178 (debug_qf_find_pc_sect_symtab): Update.
8179 * symfile.c (simple_read_overlay_table)
8180 (simple_overlay_update): Update.
8181 * symfile.h (struct quick_symbol_functions)
8182 <find_pc_sect_symtab>: Change type of msymbol to
8183 bound_minimal_symbol.
8184 * symmisc.c (dump_msymbols): Update.
8185 * symtab.c (find_pc_sect_symtab_via_partial)
8186 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8187 (search_symbols, print_msymbol_info): Update.
8188 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8189 (MSYMBOL_VALUE_ADDRESS): Redefine.
8190 (BMSYMBOL_VALUE_ADDRESS): New macro.
8191 * tracepoint.c (scope_info): Update.
8192 * tui/tui-disasm.c (tui_find_disassembly_address)
8193 (tui_get_begin_asm_address): Update.
8194 * valops.c (find_function_in_inferior): Update.
8195 * value.c (value_static_field, value_fn_field): Update.
8196
8197 2014-02-26 Tom Tromey <tromey@redhat.com>
8198
8199 * ada-lang.c (ada_update_initial_language): Update.
8200 (ada_main_name, ada_has_this_exception_support): Update.
8201 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8202 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8203 * arm-tdep.c (arm_skip_stub): Update.
8204 * auxv.c (ld_so_xfer_auxv): Update.
8205 * avr-tdep.c (avr_scan_prologue): Update.
8206 * ax-gdb.c (gen_var_ref): Update.
8207 * breakpoint.c (struct breakpoint_objfile_data)
8208 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8209 type to bound_minimal_symbol.
8210 (create_overlay_event_breakpoint)
8211 (create_longjmp_master_breakpoint)
8212 (create_std_terminate_master_breakpoint)
8213 (create_exception_master_breakpoint): Update.
8214 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8215 * c-exp.y (classify_name): Update.
8216 * coffread.c (coff_symfile_read): Update.
8217 * common/agent.c (agent_look_up_symbols): Update.
8218 * d-lang.c (d_main_name): Update.
8219 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8220 * dec-thread.c (enable_dec_thread): Update.
8221 * dwarf2loc.c (call_site_to_target_addr): Update.
8222 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8223 * eval.c (evaluate_subexp_standard): Update.
8224 * findvar.c (struct minsym_lookup_data) <result>: Change type
8225 to bound_minimal_symbol.
8226 <objfile>: Remove.
8227 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8228 * frame.c (inside_main_func): Update.
8229 * frv-tdep.c (frv_frame_this_id): Update.
8230 * gcore.c (call_target_sbrk): Update.
8231 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8232 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8233 Update.
8234 * go-lang.c (go_main_name): Update.
8235 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8236 (hppa_hpux_find_import_stub_for_addr): Update.
8237 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8238 Update. Change return type.
8239 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8240 type.
8241 * jit.c (jit_breakpoint_re_set_internal): Update.
8242 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8243 Update.
8244 * linux-nat.c (get_signo): Update.
8245 * linux-thread-db.c (inferior_has_bug): Update
8246 * m32c-tdep.c (m32c_return_value)
8247 (m32c_m16c_address_to_pointer): Update.
8248 * m32r-tdep.c (m32r_frame_this_id): Update.
8249 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8250 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8251 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8252 lookup_minimal_symbol. Change return type.
8253 (lookup_minimal_symbol): Remove.
8254 (lookup_bound_minimal_symbol): Update.
8255 (lookup_minimal_symbol_text): Change return type.
8256 (lookup_minimal_symbol_solib_trampoline): Change return type.
8257 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8258 (lookup_minimal_symbol_solib_trampoline): Change return type.
8259 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8260 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8261 (value_nsstring, find_imps): Update.
8262 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8263 * p-lang.c (pascal_main_name): Update.
8264 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8265 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8266 * proc-service.c (ps_pglobal_lookup): Update.
8267 * ravenscar-thread.c (get_running_thread_msymbol): Change
8268 return type.
8269 (has_ravenscar_runtime, get_running_thread_id): Update.
8270 * remote.c (remote_check_symbols): Update.
8271 * sol-thread.c (ps_pglobal_lookup): Update.
8272 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8273 * solib-dsbt.c (lm_base): Update.
8274 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8275 Update.
8276 * solib-irix.c (locate_base): Update.
8277 * solib-som.c (som_solib_create_inferior_hook)
8278 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8279 Update.
8280 * solib-spu.c (spu_enable_break): Update.
8281 * solib-svr4.c (elf_locate_base, enable_break): Update.
8282 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8283 (flush_ea_cache): Update.
8284 * stabsread.c (define_symbol): Update.
8285 * symfile.c (simple_read_overlay_table): Update.
8286 * symtab.c (find_pc_sect_line): Update.
8287 * tracepoint.c (scope_info): Update.
8288 * tui-disasm.c (tui_get_begin_asm_address): Update.
8289 * value.c (value_static_field): Update.
8290
8291 2014-02-26 Tom Tromey <tromey@redhat.com>
8292
8293 * minsyms.c (prim_record_minimal_symbol_full): Use
8294 SET_MSYMBOL_VALUE_ADDRESS.
8295 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8296 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8297 SET_MSYMBOL_VALUE_ADDRESS.
8298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8299 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8300
8301 2014-02-26 Tom Tromey <tromey@redhat.com>
8302
8303 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8304 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8305 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8306 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8307 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8308 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8309 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8310 * ada-lang.c (ada_main_name): Update.
8311 (ada_lookup_simple_minsym): Update.
8312 (ada_make_symbol_completion_list): Update.
8313 (ada_add_standard_exceptions): Update.
8314 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8315 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8316 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8317 * arm-tdep.c (skip_prologue_function): Update.
8318 (arm_skip_stack_protector, arm_skip_stub): Update.
8319 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8320 (arm_wince_skip_main_prologue): Update.
8321 * auxv.c (ld_so_xfer_auxv): Update.
8322 * avr-tdep.c (avr_scan_prologue): Update.
8323 * ax-gdb.c (gen_var_ref): Update.
8324 * block.c (call_site_for_pc): Update.
8325 * blockframe.c (get_pc_function_start): Update.
8326 (find_pc_partial_function_gnu_ifunc): Update.
8327 * breakpoint.c (create_overlay_event_breakpoint): Update.
8328 (create_longjmp_master_breakpoint): Update.
8329 (create_std_terminate_master_breakpoint): Update.
8330 (create_exception_master_breakpoint): Update.
8331 (resolve_sal_pc): Update.
8332 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8333 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8334 Update.
8335 * c-valprint.c (c_val_print): Update.
8336 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8337 * coffread.c (coff_symfile_read): Update.
8338 * common/agent.c (agent_look_up_symbols): Update.
8339 * dbxread.c (find_stab_function_addr): Update.
8340 (end_psymtab): Update.
8341 * dwarf2loc.c (call_site_to_target_addr): Update.
8342 (func_verify_no_selftailcall): Update.
8343 (tailcall_dump): Update.
8344 (call_site_find_chain_1): Update.
8345 (dwarf_expr_reg_to_entry_parameter): Update.
8346 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8347 (elf_gnu_ifunc_resolve_by_got): Update.
8348 * f-valprint.c (info_common_command): Update.
8349 * findvar.c (read_var_value): Update.
8350 * frame.c (get_prev_frame_1): Update.
8351 (inside_main_func): Update.
8352 * frv-tdep.c (frv_skip_main_prologue): Update.
8353 (frv_frame_this_id): Update.
8354 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8356 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8357 (gnuv3_skip_trampoline): Update.
8358 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8359 (hppa64_hpux_in_solib_call_trampoline): Update.
8360 (hppa_hpux_skip_trampoline_code): Update.
8361 (hppa64_hpux_search_dummy_call_sequence): Update.
8362 (hppa_hpux_find_import_stub_for_addr): Update.
8363 (hppa_hpux_find_dummy_bpaddr): Update.
8364 * hppa-tdep.c (hppa_symbol_address)
8365 (hppa_lookup_stub_minimal_symbol): Update.
8366 * i386-tdep.c (i386_skip_main_prologue): Update.
8367 (i386_pe_skip_trampoline_code): Update.
8368 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8369 * infcall.c (get_function_name): Update.
8370 * infcmd.c (until_next_command): Update.
8371 * jit.c (jit_breakpoint_re_set_internal): Update.
8372 (jit_inferior_init): Update.
8373 * linespec.c (minsym_found): Update.
8374 (add_minsym): Update.
8375 * linux-fork.c (info_checkpoints_command): Update.
8376 * linux-nat.c (get_signo): Update.
8377 * linux-thread-db.c (inferior_has_bug): Update.
8378 * m32c-tdep.c (m32c_return_value): Update.
8379 (m32c_m16c_address_to_pointer): Update.
8380 (m32c_m16c_pointer_to_address): Update.
8381 * m32r-tdep.c (m32r_frame_this_id): Update.
8382 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8383 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8384 * maint.c (maintenance_translate_address): Update.
8385 * minsyms.c (add_minsym_to_hash_table): Update.
8386 (add_minsym_to_demangled_hash_table): Update.
8387 (msymbol_objfile): Update.
8388 (lookup_minimal_symbol): Update.
8389 (iterate_over_minimal_symbols): Update.
8390 (lookup_minimal_symbol_text): Update.
8391 (lookup_minimal_symbol_by_pc_name): Update.
8392 (lookup_minimal_symbol_solib_trampoline): Update.
8393 (lookup_minimal_symbol_by_pc_section_1): Update.
8394 (lookup_minimal_symbol_and_objfile): Update.
8395 (prim_record_minimal_symbol_full): Update.
8396 (compare_minimal_symbols): Update.
8397 (compact_minimal_symbols): Update.
8398 (build_minimal_symbol_hash_tables): Update.
8399 (install_minimal_symbols): Update.
8400 (terminate_minimal_symbol_table): Update.
8401 (find_solib_trampoline_target): Update.
8402 (minimal_symbol_upper_bound): Update.
8403 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8404 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8405 (mips_skip_pic_trampoline_code): Update.
8406 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8407 * objc-lang.c (selectors_info): Update.
8408 (classes_info): Update.
8409 (find_methods): Update.
8410 (find_imps): Update.
8411 (find_objc_msgsend): Update.
8412 * objfiles.c (objfile_relocate1): Update.
8413 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8414 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8415 * p-valprint.c (pascal_val_print): Update.
8416 * parse.c (write_exp_msymbol): Update.
8417 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8418 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8419 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8420 * printcmd.c (build_address_symbolic): Update.
8421 (sym_info): Update.
8422 (address_info): Update.
8423 * proc-service.c (ps_pglobal_lookup): Update.
8424 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8425 (find_pc_sect_psymtab): Update.
8426 * python/py-framefilter.c (py_print_frame): Update.
8427 * ravenscar-thread.c (get_running_thread_id): Update.
8428 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8429 Update.
8430 * remote.c (remote_check_symbols): Update.
8431 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8432 (rs6000_skip_trampoline_code): Update.
8433 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8434 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8435 * solib-dsbt.c (lm_base): Update.
8436 * solib-frv.c (lm_base): Update.
8437 (main_got): Update.
8438 * solib-irix.c (locate_base): Update.
8439 * solib-som.c (som_solib_create_inferior_hook): Update.
8440 (som_solib_desire_dynamic_linker_symbols): Update.
8441 (link_map_start): Update.
8442 * solib-spu.c (spu_enable_break): Update.
8443 (ocl_enable_break): Update.
8444 * solib-svr4.c (elf_locate_base): Update.
8445 (enable_break): Update.
8446 * spu-tdep.c (spu_get_overlay_table): Update.
8447 (spu_catch_start): Update.
8448 (flush_ea_cache): Update.
8449 * stabsread.c (define_symbol): Update.
8450 (scan_file_globals): Update.
8451 * stack.c (find_frame_funname): Update.
8452 (frame_info): Update.
8453 * symfile.c (simple_read_overlay_table): Update.
8454 (simple_overlay_update): Update.
8455 * symmisc.c (dump_msymbols): Update.
8456 * symtab.c (fixup_section): Update.
8457 (find_pc_sect_line): Update.
8458 (skip_prologue_sal): Update.
8459 (search_symbols): Update.
8460 (print_msymbol_info): Update.
8461 (rbreak_command): Update.
8462 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8463 (completion_list_objc_symbol): Update.
8464 (default_make_symbol_completion_list_break_on): Update.
8465 * tracepoint.c (scope_info): Update.
8466 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8467 (tui_get_begin_asm_address): Update.
8468 * valops.c (find_function_in_inferior): Update.
8469 * value.c (value_static_field): Update.
8470 (value_fn_field): Update.
8471
8472 2014-02-26 Tom Tromey <tromey@redhat.com>
8473
8474 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8475 bound minimal symbols. Move code that knows about minsym
8476 table layout...
8477 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8478 function.
8479 * minsyms.h (minimal_symbol_upper_bound): Declare.
8480 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8481 minimal_symbol_upper_bound.
8482
8483 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8484
8485 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8486 Use the type's name if its basic type does not have a tag.
8487
8488 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8489
8490 * dwarf2read.c (read_subrange_type): Add comment.
8491
8492 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8493
8494 * dwarf2read.c (update_enumeration_type_from_children): New
8495 function, mostly extracted from process_structure_scope.
8496 (read_enumeration_type): Call update_enumeration_type_from_children.
8497 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8498 and flag_flag_enum fields.
8499
8500 2014-02-26 Pedro Alves <palves@redhat.com>
8501
8502 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8503 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8504 to_xfer_partial method.
8505
8506 2014-02-26 Pedro Alves <palves@redhat.com>
8507
8508 * target.c (complete_target_initialization): Don't install
8509 default_xfer_partial as to_xfer_partial hook.
8510 (nomemory): Delete.
8511 (update_current_target): Don't INHERIT nor de_fault
8512 deprecated_xfer_memory. Delete de_fault macro.
8513 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8514 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8515 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8516 field.
8517
8518 2014-02-26 Pedro Alves <palves@redhat.com>
8519
8520 * go32-nat.c (my_write_child): New function.
8521 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8522 (go32_xfer_partial): New function.
8523 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8524 Instead install a to_xfer_partial hook.
8525
8526 2014-02-26 Pedro Alves <palves@redhat.com>
8527
8528 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8529 to_xfer_partial helper. Rewrite.
8530 (procfs_xfer_partial): New function.
8531 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8532 Install a to_xfer_partial hook.
8533
8534 2014-02-26 Pedro Alves <palves@redhat.com>
8535
8536 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8537 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8538 (m32r_xfer_partial): New function.
8539 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8540 Install a to_xfer_partial hook.
8541
8542 2014-02-26 Pedro Alves <palves@redhat.com>
8543
8544 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8545 helper.
8546 (mips_xfer_partial): New function.
8547 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8548 hook. Install a to_xfer_partial hook.
8549
8550 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8551
8552 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8553 * gdbtypes.c (create_array_type_with_stride): New function,
8554 renaming create_array_type, but with an added parameter
8555 called "bit_stride".
8556 (create_array_type): Re-implement using
8557 create_array_type_with_stride.
8558 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8559 and DW_AT_bit_stride attributes.
8560
8561 2014-02-26 Pedro Alves <palves@redhat.com>
8562
8563 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8564 task-specific breakpoints.
8565
8566 2014-02-25 Pedro Alves <palves@redhat.com>
8567
8568 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8569 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8570
8571 2014-02-25 Stan Shebs <stan@codesourcery.com>
8572
8573 * defs.h: Annotate comments for Doxygen.
8574
8575 2014-02-25 Tom Tromey <tromey@redhat.com>
8576
8577 * target.h (target_ignore): Don't declare.
8578 * target.c (target_ignore): Remove.
8579
8580 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8581
8582 PR gdb/16626
8583 * auto-load.c (auto_load_objfile_script_1): Change filename to
8584 debugfile.
8585
8586 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8587
8588 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8589 documentation. Adjust prototype to match the target_ops
8590 to_xfer_partial method. Adjust implementation accordingly.
8591
8592 2014-02-25 Hui Zhu <hui@codesourcery.com>
8593
8594 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8595 to_traceframe_info.
8596
8597 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8598
8599 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8600 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8601 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8602 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8603 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8604 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8605 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8606 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8607 New constants.
8608 (rl78_register_type): Use a data pointer type for SP and
8609 new pseudo registers mentioned above. Use a 16 bit integer
8610 type for all other register pairs.
8611 (rl78_register_name, rl78_g10_register_name): Update for
8612 new pseudo registers.
8613 (rl78_pseudo_register_read): Likewise.
8614 (rl78_pseudo_register_write): Likewise.
8615 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8616 to the newly added pseudo registers.
8617
8618 2014-02-24 Doug Evans <dje@google.com>
8619
8620 * value.c (record_latest_value): Fix comment.
8621 * printcmd.c (print_command_1): Remove code to handle -1 return from
8622 record_latest_value.
8623
8624 2014-02-24 Pedro Alves <palves@redhat.com>
8625
8626 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8627 deprecated_xfer_memory hook.
8628 (procfs_xfer_partial): Call procfs_xfer_memory instead
8629 of the deprecated_xfer_memory target hook.
8630 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8631 helper.
8632
8633 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8634
8635 * windows-nat.c (windows_xfer_shared_libraries): Return
8636 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8637 requested object is TARGET_OBJECT_LIBRARIES.
8638
8639 2014-02-24 Yao Qi <yao@codesourcery.com>
8640
8641 * target.h (enum target_xfer_status)
8642 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8643 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8644 explicitly. New.
8645 * corefile.c (memory_error_message): User updated.
8646 * exec.c (section_table_read_available_memory): Likewise.
8647 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8648 * target.c (target_xfer_status_to_string): Likewise.
8649 (raw_memory_xfer_partial): Likewise.
8650 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8651 * valops.c (read_value_memory): Likewise.
8652 * exec.h: Update comments.
8653
8654 2014-02-24 Yao Qi <yao@codesourcery.com>
8655
8656 * target.c (target_xfer_status_to_string): Rename argument err
8657 to status.
8658 * target.h (target_xfer_status_to_string): Update declaration.
8659 Replace target_xfer_error_to_string with
8660 target_xfer_status_to_string in comment.
8661
8662 2014-02-24 Yao Qi <yao@codesourcery.com>
8663
8664 * mips-linux-nat.c (super_close): Update its type.
8665 (mips_linux_close): Pass 'self' to super_close.
8666
8667 2014-02-24 Yao Qi <yao@codesourcery.com>
8668
8669 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8670 * corefile.c (read_memory): Adjusted.
8671 * target.c (target_write_with_progress): Adjusted.
8672
8673 2014-02-23 Yao Qi <yao@codesourcery.com>
8674
8675 Revert two patches:
8676
8677 2013-10-25 Yao Qi <yao@codesourcery.com>
8678
8679 * remote.c (remote_traceframe_info): Return early if
8680 traceframe is not selected.
8681
8682 2013-07-19 Yao Qi <yao@codesourcery.com>
8683
8684 * target.c (update_current_target): Change the default action
8685 of 'to_traceframe_info' from tcomplain to return_zero.
8686 * target.h (struct target_ops) <to_traceframe_info>: Add more
8687 comments.
8688
8689 2014-02-23 Yao Qi <yao@codesourcery.com>
8690
8691 * valops.c (read_value_memory): Rewrite it. Call
8692 target_xfer_partial in a loop.
8693 * exec.h (section_table_available_memory): Remove declaration.
8694 Move comments to ...
8695 * exec.c (section_table_available_memory): ... here. Make it
8696 static.
8697
8698 2014-02-23 Yao Qi <yao@codesourcery.com>
8699
8700 * exec.c (section_table_read_available_memory): New function.
8701 * exec.h (section_table_read_available_memory): Declare.
8702 * ctf.c (ctf_xfer_partial): Call
8703 section_table_read_available_memory.
8704 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8705
8706 2014-02-23 Yao Qi <yao@codesourcery.com>
8707
8708 * ctf.c (ctf_xfer_partial): Move code to ...
8709 * exec.c (exec_read_partial_read_only): ... it. New function.
8710 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8711 * tracefile.c: Include "exec.h".
8712 * exec.h (exec_read_partial_read_only): Declare.
8713
8714 2014-02-23 Yao Qi <yao@codesourcery.com>
8715
8716 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8717 (tfile_has_memory): Remove.
8718 (init_tfile_ops): Don't set fields to_has_all_memory and
8719 to_has_memory of tfile_ops.
8720 * tracefile.c (tracefile_has_all_memory): New function.
8721 (tracefile_has_memory): New function.
8722 (init_tracefile_ops): Initialize fields to_has_all_memory and
8723 to_has_memory of 'ops'.
8724
8725 2014-02-23 Yao Qi <yao@codesourcery.com>
8726
8727 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8728 (ctf_thread_alive, ctf_get_trace_status): Remove.
8729 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8730 init_tracefile_ops.
8731 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8732 (tfile_has_stack, tfile_has_registers): Remove.
8733 (tfile_thread_alive): Remove.
8734 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8735 init_tracefile_ops.
8736 * tracefile.c (tracefile_has_stack): New function.
8737 (tracefile_has_registers): New function.
8738 (tracefile_thread_alive): New function.
8739 (tracefile_get_trace_status): New function.
8740 (init_tracefile_ops): New function.
8741 * tracefile.h (init_tracefile_ops): Declare.
8742
8743 2014-02-23 Yao Qi <yao@codesourcery.com>
8744
8745 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8746 (O_LARGEFILE): Likewise.
8747 (tfile_ops): Likewise.
8748 (TRACE_HEADER_SIZE): Likewise.
8749 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8750 (cur_data_size): Likewise.
8751 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8752 (tfile_close, tfile_files_info): Likewise.
8753 (tfile_get_trace_status): Likewise.
8754 (tfile_get_tracepoint_status): Likewise.
8755 (tfile_get_traceframe_address): Likewise.
8756 (tfile_trace_find, match_blocktype): Likewise.
8757 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8758 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8759 (tfile_get_trace_state_variable_value): Likewise.
8760 (tfile_has_all_memory, tfile_has_memory): Likewise.
8761 (tfile_has_stack, tfile_has_registers): Likewise.
8762 (tfile_thread_alive, build_traceframe_info): Likewise.
8763 (tfile_traceframe_info, init_tfile_ops): Likewise.
8764 (_initialize_tracepoint): Don't call init_tfile_ops
8765 and add_target_with_completer.
8766 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8767 exec.h, completer.h and filenames.h.
8768 (_initialize_tracefile_tfile): New function.
8769
8770 2014-02-23 Yao Qi <yao@codesourcery.com>
8771
8772 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8773 tracefile-tfile.o.
8774 (HFILES_NO_SRCDIR): Add tracefile.h.
8775 * ctf.c: Include "tracefile.h".
8776 * tracefile.h: New file.
8777 * tracefile.c: New file
8778 * tracefile-tfile.c: New file.
8779 * tracepoint.c: Include "tracefile.h".
8780 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8781 (stop_reason_names): Add const.
8782 (trace_file_writer_xfree): Move it to tracefile.c.
8783 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8784 (trace_save_ctf): Likewise.
8785 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8786 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8787 (tfile_write_header, tfile_write_regblock_type): Likewise.
8788 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8789 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8790 (tfile_write_raw_data, tfile_end): Likewise.
8791 (tfile_trace_file_writer_new): Likewise.
8792 (free_uploaded_tp): Make it extern.
8793 (free_uploaded_tsv): Make it extern.
8794 (_initialize_tracepoint): Move code to register command 'tsave'
8795 to tracefile.c.
8796 * tracepoint.h (stop_reason_names): Declare.
8797 (struct trace_frame_write_ops): Move it to tracefile.h.
8798 (struct trace_file_write_ops): Likewise.
8799 (struct trace_file_writer): Likewise.
8800 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8801
8802 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8803
8804 PR gdb/16594
8805 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8806 process name.
8807 (get_cores_used_by_process): New parameter num_cores, use it.
8808 (linux_xfer_osdata_processes): Pass num_cores to it.
8809 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8810 process name.
8811
8812 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8813
8814 * target.c (memory_xfer_partial): Fix length arg in call to
8815 breakpoint_xfer_memory.
8816
8817 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8818
8819 PR tdep/16397
8820 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8821 number comes after the + or - signs. Adjust length of register
8822 name to be extracted.
8823
8824 2014-02-20 Tom Tromey <tromey@redhat.com>
8825
8826 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8827 (ada_varobj_ops): Mark "extern".
8828
8829 2014-02-20 Tom Tromey <tromey@redhat.com>
8830
8831 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8832
8833 2014-02-20 Doug Evans <xdje42@gmail.com>
8834
8835 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8836 All callers updated.
8837 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8838 All callers updated.
8839 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8840 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8841
8842 2014-02-20 lin zuojian <manjian2006@gmail.com>
8843 Joel Brobecker <brobecker@adacore.com>
8844 Doug Evans <xdje42@gmail.com>
8845
8846 PR symtab/16581
8847 * dwarf2read.c (struct die_info): New member in_process.
8848 (reset_die_in_process): New function.
8849 (process_die): Set it at the start, reset when returning.
8850 (inherit_abstract_dies): Only call process_die if origin_child_die
8851 not already being processed.
8852
8853 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8854
8855 * windows-nat.c (handle_unload_dll): Add function documentation.
8856 (do_initial_windows_stuff): Add comment explaining why we wait
8857 until after inferior initialization has finished before
8858 processing all DLLs.
8859
8860 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8861
8862 * windows-nat.c (get_module_name): Delete.
8863 (windows_get_exec_module_filename): New function, mostly
8864 inspired from get_module_name.
8865 (windows_pid_to_exec_file): Replace call to get_module_name
8866 by call to windows_get_exec_module_filename.
8867
8868 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8869
8870 * windows-nat.c (handle_load_dll): Rewrite this function's
8871 introductory comment. Remove code using get_module_name
8872 to get the DLL's name.
8873
8874 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8875
8876 * windows-nat.c (get_windows_debug_event): Ignore
8877 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8878 if windows_initialization_done == 0.
8879 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8880 Adjust implementation to always load all DLLs.
8881 (do_initial_windows_stuff): Replace call to
8882 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8883
8884 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8885
8886 * windows-nat.c (_initialize_windows_nat): Deprecate the
8887 "dll-symbols" command. Turn the "add-shared-symbol-files"
8888 and "assf" aliases into commands, and deprecate them as well.
8889 * NEWS: Add entry explaining that "dll-symbols" and its two
8890 aliases are now deprecated.
8891
8892 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8893
8894 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8895 new-line in debug string. Remove trailing spaces.
8896
8897 2014-02-19 Stan Shebs <stan@codesourcery.com>
8898
8899 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8900
8901 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8902
8903 * NEWS: Add entry for the new feature
8904 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8905 and class values.
8906
8907 2014-02-19 Stan Shebs <stan@codesourcery.com>
8908
8909 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8910
8911 2014-02-19 Pedro Alves <palves@redhat.com>
8912
8913 * common/ptid.h (struct ptid): Mention that process_stratum
8914 targets should prefer ptid.lwp.
8915
8916 2014-02-19 Pedro Alves <palves@redhat.com>
8917
8918 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8919 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8920 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8921 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8922 store remote thread ids rather than ptid.tid.
8923 (_initialize_remote): Adjust.
8924
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8926
8927 * target.c (target_get_unwinder): Rewrite.
8928 (target_get_tailcall_unwinder): Rewrite.
8929 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8930 (record_btrace_to_get_tailcall_unwinder): New function.
8931 (init_record_btrace_ops): Update.
8932 * target.h (struct target_ops) <to_get_unwinder,
8933 to_get_tailcall_unwinder>: Now function pointers. Use
8934 TARGET_DEFAULT_RETURN.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8939 argument.
8940 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8941
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8945 directly.
8946 * target-delegates.c: Rebuild.
8947 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8948 TARGET_DEFAULT_FUNC.
8949 * target.c (default_target_decr_pc_after_break): Rename from
8950 forward_target_decr_pc_after_break. Simplify.
8951 (target_decr_pc_after_break): Rely on delegation.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target.c (update_current_target): Do not INHERIT to_doc or
8956 to_magic. Do not de_fault to_open or to_close.
8957
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8959
8960 * gcore.h (objfile_find_memory_regions): Declare.
8961 * gcore.c (objfile_find_memory_regions): No longer static. Add
8962 "self" argument.
8963 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8964 * exec.c: Include gcore.h.
8965 (exec_set_find_memory_regions): Remove.
8966 (exec_find_memory_regions): Remove.
8967 (exec_do_find_memory_regions): Remove.
8968 (init_exec_ops): Update.
8969 * defs.h (exec_set_find_memory_regions): Remove.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.h (struct target_ops) <to_extra_thread_info,
8975 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8976 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8977 not 0, in TARGET_DEFAULT_RETURN.
8978
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target.c (complete_target_initialization): Remove casts. Use
8982 return_zero_has_execution.
8983 (return_zero): Add "ignore" argument.
8984 (return_zero_has_execution): New function.
8985 (init_dummy_target): Remove casts. Use
8986 return_zero_has_execution.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.c (update_current_target): Update comments. Do not
8991 INHERIT to_stratum.
8992
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8996 needed.
8997 * corelow.c (core_read_description): Delegate when needed.
8998 * remote.c (remote_read_description): Delegate when needed.
8999 * target-delegates.c: Rebuild.
9000 * target.c (target_read_description): Rewrite.
9001 * target.h (struct target_ops) <to_read_description>: Update
9002 comment. Use TARGET_DEFAULT_RETURN.
9003
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_can_run.
9009 (find_default_run_target): Check against delegate_can_run.
9010 * target.h (struct target_ops) <to_can_run>: Use
9011 TARGET_DEFAULT_RETURN.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (target_disconnect): Unconditionally delegate.
9017 * target.h (struct target_ops) <to_disconnect>: Use
9018 TARGET_DEFAULT_NORETURN.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * record.c (record_stop): Unconditionally delegate.
9023 * target-delegates.c: Rebuild.
9024 * target.c (target_stop_recording): Unconditionally delegate.
9025 * target.h (struct target_ops) <to_stop_recording>: Use
9026 TARGET_DEFAULT_IGNORE.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (target_enable_btrace): Unconditionally delegate.
9032 * target.h (struct target_ops) <to_enable_btrace>: Use
9033 TARGET_DEFAULT_NORETURN.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (target_read_btrace): Unconditionally delegate.
9039 * target.h (struct target_ops) <to_read_btrace>: Use
9040 TARGET_DEFAULT_NORETURN.
9041
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target-delegates.c: Rebuild.
9045 * target.c (target_teardown_btrace): Unconditionally delegate.
9046 * target.h (struct target_ops) <to_teardown_btrace>: Use
9047 TARGET_DEFAULT_NORETURN.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target-delegates.c: Rebuild.
9052 * target.c (target_disable_btrace): Unconditionally delegate.
9053 * target.h (struct target_ops) <to_disable_btrace>: Use
9054 TARGET_DEFAULT_NORETURN.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target-delegates.c: Rebuild.
9059 * target.c (default_search_memory): New function.
9060 (simple_search_memory): Update comment.
9061 (target_search_memory): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_search_memory>: Use
9063 TARGET_DEFAULT_FUNC.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * auxv.c (default_auxv_parse): No longer static.
9068 (target_auxv_parse): Unconditionally delegate.
9069 * auxv.h (default_auxv_parse): Declare.
9070 * target-delegates.c: Rebuild.
9071 * target.c: Include auxv.h.
9072 * target.h (struct target_ops) <to_auxv_parse>: Use
9073 TARGET_DEFAULT_FUNC.
9074
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target-delegates.c: Rebuild.
9078 * target.c (target_memory_map): Unconditionally delegate.
9079 * target.h (struct target_ops) <to_memory_map>: Use
9080 TARGET_DEFAULT_RETURN.
9081
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target-delegates.c: Rebuild.
9085 * target.c (target_thread_alive): Unconditionally delegate.
9086 * target.h (struct target_ops) <to_thread_alive>: Use
9087 TARGET_DEFAULT_RETURN.
9088
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target-delegates.c: Rebuild.
9092 * target.c (target_save_record): Unconditionally delegate.
9093 * target.h (struct target_ops) <to_save_record>: Use
9094 TARGET_DEFAULT_NORETURN.
9095
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target-delegates.c: Rebuild.
9099 * target.c (target_delete_record): Unconditionally delegate.
9100 * target.h (struct target_ops) <to_delete_record>: Use
9101 TARGET_DEFAULT_NORETURN.
9102
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target-delegates.c: Rebuild.
9106 * target.c (target_record_is_replaying): Unconditionally
9107 delegate.
9108 * target.h (struct target_ops) <to_record_is_replaying>: Use
9109 TARGET_DEFAULT_RETURN.
9110
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9112
9113 * target-delegates.c: Rebuild.
9114 * target.c (target_goto_record_begin): Unconditionally delegate.
9115 * target.h (struct target_ops) <to_goto_record_begin>: Use
9116 TARGET_DEFAULT_NORETURN.
9117
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target-delegates.c: Rebuild.
9121 * target.c (target_goto_record_end): Unconditionally delegate.
9122 * target.h (struct target_ops) <to_goto_record_end>: Use
9123 TARGET_DEFAULT_NORETURN.
9124
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (target_goto_record): Unconditionally delegate.
9129 * target.h (struct target_ops) <to_goto_record>: Use
9130 TARGET_DEFAULT_NORETURN.
9131
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target-delegates.c: Rebuild.
9135 * target.c (target_insn_history): Unconditionally delegate.
9136 * target.h (struct target_ops) <to_insn_history>: Use
9137 TARGET_DEFAULT_NORETURN.
9138
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target-delegates.c: Rebuild.
9142 * target.c (target_insn_history_from): Unconditionally delegate.
9143 * target.h (struct target_ops) <to_insn_history_from>: Use
9144 TARGET_DEFAULT_NORETURN.
9145
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9147
9148 * target-delegates.c: Rebuild.
9149 * target.c (target_insn_history_range): Unconditionally delegate.
9150 * target.h (struct target_ops) <to_insn_history_range>: Use
9151 TARGET_DEFAULT_NORETURN.
9152
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target-delegates.c: Rebuild.
9156 * target.c (target_call_history): Unconditionally delegate.
9157 * target.h (struct target_ops) <to_call_history>: Use
9158 TARGET_DEFAULT_NORETURN.
9159
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * target-delegates.c: Rebuild.
9163 * target.c (target_call_history_from): Unconditionally delegate.
9164 * target.h (struct target_ops) <to_call_history_from>: Use
9165 TARGET_DEFAULT_NORETURN.
9166
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target-delegates.c: Rebuild.
9170 * target.c (target_call_history_range): Unconditionally delegate.
9171 * target.h (struct target_ops) <to_call_history_range>: Use
9172 TARGET_DEFAULT_NORETURN.
9173
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target-delegates.c: Rebuild.
9177 * target.c (target_verify_memory): Unconditionally delegate.
9178 * target.h (struct target_ops) <to_verify_memory>: Use
9179 TARGET_DEFAULT_NORETURN.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (target_core_of_thread): Unconditionally delegate.
9185 * target.h (struct target_ops) <to_core_of_thread>: Use
9186 TARGET_DEFAULT_RETURN.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target-delegates.c: Rebuild.
9191 * target.c (target_flash_done): Unconditionally delegate.
9192 * target.h (struct target_ops) <to_flash_done>: Use
9193 TARGET_DEFAULT_NORETURN.
9194
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target-delegates.c: Rebuild.
9198 * target.c (target_flash_erase): Unconditionally delegate.
9199 * target.h (struct target_ops) <to_flash_erase>: Use
9200 TARGET_DEFAULT_NORETURN.
9201
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target-delegates.c: Rebuild.
9205 * target.c (target_get_section_table): Unconditionally delegate.
9206 * target.h (struct target_ops) <to_get_section_table>: Use
9207 TARGET_DEFAULT_RETURN.
9208
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target-delegates.c: Rebuild.
9212 * target.c (target_pid_to_str): Unconditionally delegate.
9213 (init_dummy_target): Don't initialize to_pid_to_str.
9214 (default_pid_to_str): Rename from dummy_pid_to_str.
9215 * target.h (struct target_ops) <to_pid_to_str>: Use
9216 TARGET_DEFAULT_FUNC.
9217
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target-delegates.c: Rebuild.
9221 * target.c (target_find_new_threads): Unconditionally delegate.
9222 * target.h (struct target_ops) <to_find_new_threads>: Use
9223 TARGET_DEFAULT_RETURN.
9224
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target-delegates.c: Rebuild.
9228 * target.c (target_program_signals): Unconditionally delegate.
9229 * target.h (struct target_ops) <to_program_signals>: Use
9230 TARGET_DEFAULT_IGNORE.
9231
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9233
9234 * target-delegates.c: Rebuild.
9235 * target.c (target_pass_signals): Unconditionally delegate.
9236 * target.h (struct target_ops) <to_pass_signals>: Use
9237 TARGET_DEFAULT_IGNORE.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target-delegates.c: Rebuild.
9242 * target.c (default_mourn_inferior): New function.
9243 (target_mourn_inferior): Unconditionally delegate.
9244 * target.h (struct target_ops) <to_mourn_inferior>: Use
9245 TARGET_DEFAULT_FUNC.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target-delegates.c: Rebuild.
9250 * target.c (default_follow_fork): New function.
9251 (target_follow_fork): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_follow_fork>: Use
9253 TARGET_DEFAULT_FUNC.
9254
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_kill): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_kill>: Use
9260 TARGET_DEFAULT_NORETURN.
9261
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_masked_watch_num_registers): Unconditionally
9266 delegate.
9267 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9268 Use TARGET_DEFAULT_RETURN.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (target_remove_mask_watchpoint): Unconditionally
9274 delegate.
9275 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9276 TARGET_DEFAULT_RETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (target_insert_mask_watchpoint): Unconditionally
9282 delegate.
9283 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9284 TARGET_DEFAULT_RETURN.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target-delegates.c: Rebuild.
9289 * target.c (target_ranged_break_num_registers): Unconditionally
9290 delegate.
9291 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9292 Use TARGET_DEFAULT_RETURN.
9293
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target-delegates.c: Rebuild.
9297 * target.c (target_fetch_registers): Unconditionally delegate.
9298 * target.h (struct target_ops) <to_fetch_registers>: Use
9299 TARGET_DEFAULT_NORETURN.
9300
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9305 to_stop.
9306 * target.h (struct target_ops) <to_stop>: Use
9307 TARGET_DEFAULT_IGNORE.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_can_run_breakpoint_commands.
9314 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9315 Use TARGET_DEFAULT_RETURN.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_supports_evaluation_of_breakpoint_conditions.
9322 * target.h (struct target_ops)
9323 <to_supports_evaluation_of_breakpoint_conditions>: Use
9324 TARGET_DEFAULT_RETURN.
9325
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_augmented_libraries_svr4_read.
9331 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9332 Use TARGET_DEFAULT_RETURN.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9338 to_can_use_agent.
9339 * target.h (struct target_ops) <to_can_use_agent>: Use
9340 TARGET_DEFAULT_RETURN.
9341
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target-delegates.c: Rebuild.
9345 * target.c (update_current_target): Don't inherit or default
9346 to_use_agent.
9347 * target.h (struct target_ops) <to_use_agent>: Use
9348 TARGET_DEFAULT_NORETURN.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9354 to_traceframe_info.
9355 (return_null): Remove.
9356 * target.h (struct target_ops) <to_traceframe_info>: Use
9357 TARGET_DEFAULT_RETURN.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9363 to_static_tracepoint_markers_by_strid.
9364 * target.h (struct target_ops)
9365 <to_static_tracepoint_markers_by_strid>: Use
9366 TARGET_DEFAULT_NORETURN.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_static_tracepoint_marker_at.
9373 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9374 Use TARGET_DEFAULT_RETURN.
9375
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9380 to_set_permissions.
9381 * target.h (struct target_ops) <to_set_permissions>: Use
9382 TARGET_DEFAULT_IGNORE.
9383
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9388 to_get_tib_address.
9389 * target.h (struct target_ops) <to_get_tib_address>: Use
9390 TARGET_DEFAULT_NORETURN.
9391
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_set_trace_notes.
9397 * target.h (struct target_ops) <to_set_trace_notes>: Use
9398 TARGET_DEFAULT_RETURN.
9399
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't initialize
9404 to_set_trace_buffer_size.
9405 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9406 TARGET_DEFAULT_IGNORE.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9412 to_set_circular_trace_buffer.
9413 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9414 TARGET_DEFAULT_IGNORE.
9415
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9420 to_set_disconnected_tracing.
9421 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9422 TARGET_DEFAULT_IGNORE.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_get_min_fast_tracepoint_insn_len.
9429 (return_minus_one): Remove.
9430 * target.h (struct target_ops)
9431 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9432
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (update_current_target): Don't inherit or default
9437 to_get_raw_trace_data.
9438 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9439 TARGET_DEFAULT_NORETURN.
9440
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target-delegates.c: Rebuild.
9444 * target.c (update_current_target): Don't inherit or default
9445 to_upload_trace_state_variables.
9446 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9447 Use TARGET_DEFAULT_RETURN.
9448
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target-delegates.c: Rebuild.
9452 * target.c (update_current_target): Don't inherit or default
9453 to_upload_tracepoints.
9454 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9455 TARGET_DEFAULT_RETURN.
9456
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target-delegates.c: Rebuild.
9460 * target.c (update_current_target): Don't inherit or default
9461 to_save_trace_data.
9462 * target.h (struct target_ops) <to_save_trace_data>: Use
9463 TARGET_DEFAULT_NORETURN.
9464
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target-delegates.c: Rebuild.
9468 * target.c (update_current_target): Don't inherit or default
9469 to_get_trace_state_variable_value.
9470 * target.h (struct target_ops)
9471 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9472
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.c (update_current_target): Don't inherit or default
9477 to_trace_find.
9478 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9484 to_trace_stop.
9485 * target.h (struct target_ops) <to_trace_stop>: Use
9486 TARGET_DEFAULT_NORETURN.
9487
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_get_tracepoint_status.
9493 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9494 TARGET_DEFAULT_NORETURN.
9495
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_get_trace_status.
9501 * target.h (struct target_ops) <to_get_trace_status>: Use
9502 TARGET_DEFAULT_RETURN.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_trace_start.
9509 * target.h (struct target_ops) <to_trace_start>: Use
9510 TARGET_DEFAULT_NORETURN.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_trace_set_readonly_regions.
9517 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9518 Use TARGET_DEFAULT_NORETURN.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_disable_tracepoint.
9525 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9526 TARGET_DEFAULT_NORETURN.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_enable_tracepoint.
9533 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9534 TARGET_DEFAULT_NORETURN.
9535
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_download_trace_state_variable.
9541 * target.h (struct target_ops) <to_download_trace_state_variable>:
9542 Use TARGET_DEFAULT_NORETURN.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_can_download_tracepoint.
9549 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9550 TARGET_DEFAULT_RETURN.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_download_tracepoint.
9557 * target.h (struct target_ops) <to_download_tracepoint>: Use
9558 TARGET_DEFAULT_NORETURN.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9564 to_trace_init.
9565 * target.h (struct target_ops) <to_trace_init>: Use
9566 TARGET_DEFAULT_RETURN.
9567
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_supports_string_tracing.
9573 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9574 TARGET_DEFAULT_RETURN.
9575
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_supports_enable_disable_tracepoint.
9581 * target.h (struct target_ops)
9582 <to_supports_enable_disable_tracepoint>: Use
9583 TARGET_DEFAULT_RETURN.
9584
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target-delegates.c: Rebuild.
9588 * target.c (update_current_target): Don't inherit or default
9589 to_supports_multi_process.
9590 * target.h (struct target_ops) <to_supports_multi_process>: Use
9591 TARGET_DEFAULT_RETURN.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target-delegates.c: Rebuild.
9596 * target.c (update_current_target): Don't inherit or default
9597 to_get_ada_task_ptid.
9598 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9599 TARGET_DEFAULT_FUNC.
9600
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target-delegates.c: Rebuild.
9604 * target.c (update_current_target): Don't inherit or default
9605 to_thread_architecture.
9606 * target.h (struct target_ops) <to_thread_architecture>: Use
9607 TARGET_DEFAULT_FUNC.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_execution_direction.
9614 * target.h (struct target_ops) <to_execution_direction>: Use
9615 TARGET_DEFAULT_FUNC.
9616
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_can_execute_reverse.
9622 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9623 TARGET_DEFAULT_RETURN.
9624 (target_can_execute_reverse): Unconditionally delegate.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target-delegates.c: Rebuild.
9629 * target.c (update_current_target): Don't inherit or default
9630 to_goto_bookmark.
9631 (dummy_goto_bookmark): Remove.
9632 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9633 * target.h (struct target_ops) <to_goto_bookmark>: Use
9634 TARGET_DEFAULT_NORETURN.
9635
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9640 to_get_bookmark.
9641 (dummy_get_bookmark): Remove.
9642 (init_dummy_target): Don't inherit or default to_get_bookmark.
9643 * target.h (struct target_ops) <to_get_bookmark>: Use
9644 TARGET_DEFAULT_NORETURN
9645
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target-delegates.c: Rebuild.
9649 * target.c (update_current_target): Don't inherit or default
9650 to_make_corefile_notes.
9651 (init_dummy_target): Don't initialize to_make_corefile_notes.
9652 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9653 TARGET_DEFAULT_FUNC.
9654
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9659 to_find_memory_regions.
9660 (init_dummy_target): Don't initialize to_find_memory_regions.
9661 * target.h (struct target_ops) <to_find_memory_regions>: Use
9662 TARGET_DEFAULT_FUNC.
9663
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * target-delegates.c: Rebuild.
9667 * target.c (update_current_target): Don't inherit or default
9668 to_log_command.
9669 * target.h (struct target_ops) <to_log_command>: Use
9670 TARGET_DEFAULT_IGNORE.
9671 (target_log_command): Unconditionally delegate.
9672
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_pid_to_exec_file.
9678 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9679 TARGET_DEFAULT_RETURN.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9685 to_thread_name.
9686 (target_thread_name): Unconditionally delegate.
9687 * target.h (struct target_ops) <to_thread_name>: Use
9688 TARGET_DEFAULT_RETURN.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_extra_thread_info.
9695 * target.h (struct target_ops) <to_extra_thread_info>: Use
9696 TARGET_DEFAULT_RETURN.
9697
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target-delegates.c: Rebuild.
9701 * target.c (update_current_target): Don't inherit or default
9702 to_has_exited.
9703 * target.h (struct target_ops) <to_has_exited>: Use
9704 TARGET_DEFAULT_RETURN..
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target-delegates.c: Rebuild.
9709 * target.c (update_current_target): Don't inherit or default
9710 to_set_syscall_catchpoint.
9711 (return_one): Remove.
9712 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9713 TARGET_DEFAULT_RETURN.
9714
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_insert_exec_catchpoint.
9720 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9721 TARGET_DEFAULT_RETURN.
9722
9723 2014-01-08 Tom Tromey <tromey@redhat.com>
9724
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_insert_exec_catchpoint.
9728 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9729 TARGET_DEFAULT_RETURN.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_remove_vfork_catchpoint.
9736 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9737 TARGET_DEFAULT_RETURN.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_insert_vfork_catchpoint.
9744 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9745 TARGET_DEFAULT_RETURN.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_remove_fork_catchpoint.
9752 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9753 TARGET_DEFAULT_RETURN.
9754
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_insert_fork_catchpoint.
9760 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9761 TARGET_DEFAULT_RETURN.
9762
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_post_startup_inferior.
9768 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9769 TARGET_DEFAULT_IGNORE.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target-delegates.c: Rebuild.
9774 * target.c (update_current_target): Don't inherit or default
9775 to_load.
9776 * target.h (struct target_ops) <to_load>: Use
9777 TARGET_DEFAULT_NORETURN.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9783 to_terminal_info.
9784 * target.h (struct target_ops) <to_terminal_info>: Use
9785 TARGET_DEFAULT_FUNC.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (update_current_target): Don't inherit or default
9791 to_terminal_save_ours.
9792 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9793 TARGET_DEFAULT_IGNORE.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9799 to_terminal_ours.
9800 * target.h (struct target_ops) <to_terminal_ours>: Use
9801 TARGET_DEFAULT_IGNORE.
9802
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_terminal_ours_for_output.
9808 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9809 TARGET_DEFAULT_IGNORE.
9810
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target-delegates.c: Rebuild.
9814 * target.c (update_current_target): Don't inherit or default
9815 to_terminal_inferior.
9816 * target.h (struct target_ops) <to_terminal_inferior>: Use
9817 TARGET_DEFAULT_IGNORE.
9818
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9823 to_terminal_init.
9824 * target.h (struct target_ops) <to_terminal_init>: Use
9825 TARGET_DEFAULT_IGNORE.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_can_accel_watchpoint_condition.
9832 * target.h (struct target_ops)
9833 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9839 to_region_ok_for_hw_watchpoint.
9840 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9841 Use TARGET_DEFAULT_FUNC.
9842
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_watchpoint_addr_within_range.
9848 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9849 Use TARGET_DEFAULT_FUNC.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_remove_watchpoint.
9856 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9857 TARGET_DEFAULT_NORETURN.
9858
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_insert_watchpoint.
9864 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9865 TARGET_DEFAULT_RETURN.
9866
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_remove_hw_breakpoint.
9872 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9873 TARGET_DEFAULT_RETURN.
9874
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_insert_hw_breakpoint.
9880 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9881 TARGET_DEFAULT_RETURN.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_can_use_hw_breakpoint.
9888 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9889 TARGET_DEFAULT_RETURN.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_files_info.
9896 * target.h (struct target_ops) <to_files_info>: Use
9897 TARGET_DEFAULT_IGNORE.
9898
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_store.
9904 * target.h (struct target_ops) <to_store>: Use
9905 TARGET_DEFAULT_NORETURN.
9906
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9911 to_post_attach.
9912 * target.h (struct target_ops) <to_post_attach>: Use
9913 TARGET_DEFAULT_IGNORE.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target-delegates.c: Rebuild.
9918 * target.c (update_current_target): Don't inherit or default
9919 to_rcmd.
9920 (default_rcmd): New function.
9921 (do_monitor_command): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_rmcd>: Use
9923 TARGET_DEFAULT_FUNC.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (init_dummy_target): Don't initialize to_attach.
9929 (target_attach): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_attach>: Use
9931 TARGET_DEFAULT_FUNC.
9932
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_detach): Unconditionally delegate.
9937 (init_dummy_target): Don't initialize to_detach.
9938 * target.h (struct target_ops) <to_detach>: Use
9939 TARGET_DEFAULT_IGNORE.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9944 Add argument.
9945 (target_augmented_libraries_svr4_read): Add argument.
9946 * target.c (update_current_target): Update.
9947 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9948 argument.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target.h (struct target_ops) <to_call_history_range>: Add
9953 argument.
9954 * target.c (target_call_history_range): Add argument.
9955 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9956 argument.
9957 (record_btrace_call_history_from): Update.
9958
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target.h (struct target_ops) <to_call_history_from>: Add
9962 argument.
9963 * target.c (target_call_history_from): Add argument.
9964 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9965 argument.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_call_history>: Add argument.
9970 * target.c (target_call_history): Add argument.
9971 * record-btrace.c (record_btrace_call_history): Add 'self'
9972 argument.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target.h (struct target_ops) <to_insn_history_range>: Add
9977 argument.
9978 * target.c (target_insn_history_range): Add argument.
9979 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9980 argument.
9981 (record_btrace_insn_history_from): Update.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_insn_history_from>: Add
9986 argument.
9987 * target.c (target_insn_history_from): Add argument.
9988 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9989 argument.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_insn_history>: Add argument.
9994 * target.c (target_insn_history): Add argument.
9995 * record-btrace.c (record_btrace_insn_history): Add 'self'
9996 argument.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_goto_record>: Add argument.
10001 * target.c (target_goto_record): Add argument.
10002 * record-full.c (record_full_goto): Add 'self' argument.
10003 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10004
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10008 * target.c (target_goto_record_end): Add argument.
10009 * record-full.c (record_full_goto_end): Add 'self' argument.
10010 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10011
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target.h (struct target_ops) <to_goto_record_begin>: Add
10015 argument.
10016 * target.c (target_goto_record_begin): Add argument.
10017 * record-full.c (record_full_goto_begin): Add 'self' argument.
10018 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10019 argument.
10020
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target.h (struct target_ops) <to_record_is_replaying>: Add
10024 argument.
10025 * target.c (target_record_is_replaying): Add argument.
10026 * record-full.c (record_full_is_replaying): Add 'self' argument.
10027 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10028 argument.
10029 (record_btrace_xfer_partial, record_btrace_store_registers)
10030 (record_btrace_prepare_to_store, record_btrace_resume)
10031 (record_btrace_wait, record_btrace_decr_pc_after_break)
10032 (record_btrace_find_new_threads, record_btrace_thread_alive):
10033 Update.
10034
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target.h (struct target_ops) <to_delete_record>: Add argument.
10038 * target.c (target_delete_record): Add argument.
10039 * record-full.c (record_full_delete): Add 'self' argument.
10040
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target.h (struct target_ops) <to_save_record>: Add argument.
10044 * target.c (target_save_record): Add argument.
10045 * record-full.c (record_full_save): Add 'self' argument.
10046 (record_full_save): Add 'self' argument.
10047
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * target.h (struct target_ops) <to_info_record>: Add argument.
10051 * target.c (target_info_record): Add argument.
10052 * record.c (info_record_command): Add argument.
10053 * record-full.c (record_full_info): Add 'self' argument.
10054 * record-btrace.c (record_btrace_info): Add 'self' argument.
10055
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10059 * target.c (target_stop_recording): Add argument.
10060 * record.c (record_stop): Add argument.
10061 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10062 argument.
10063
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10067 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10068 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10069 argument.
10070 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10071 (_initialize_amd64_linux_nat): Use it.
10072 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10073 (_initialize_i386_linux_nat): Use it.
10074
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10078 * target.c (target_teardown_btrace): Add argument.
10079 * remote.c (remote_teardown_btrace): Add 'self' argument.
10080 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10081 argument.
10082 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10083 argument.
10084
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10088 * target.c (target_disable_btrace): Add argument.
10089 * remote.c (remote_disable_btrace): Add 'self' argument.
10090 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10091 argument.
10092 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10093 argument.
10094
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10098 * target.c (target_enable_btrace): Add argument.
10099 * remote.c (remote_enable_btrace): Add 'self' argument.
10100 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10101 argument.
10102 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10103 argument.
10104
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10108 (target_can_use_agent): Add argument.
10109 * target.c (update_current_target): Update.
10110 * remote.c (remote_can_use_agent): Add 'self' argument.
10111 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10112
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target.h (struct target_ops) <to_use_agent>: Add argument.
10116 (target_use_agent): Add argument.
10117 * target.c (update_current_target): Update.
10118 * remote.c (remote_use_agent): Add 'self' argument.
10119 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10124 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10125 (target_traceframe_info): Add argument.
10126 * target.c (update_current_target): Update.
10127 * remote.c (remote_traceframe_info): Add 'self' argument.
10128 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10129
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target.h (target_static_tracepoint_markers_by_strid): Add
10133 argument.
10134 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10135 'self' argument.
10136 * target.c (update_current_target): Update.
10137 * remote.c (struct target_ops)
10138 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10139 * linux-nat.c (struct target_ops)
10140 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10141
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10145 Add argument.
10146 (target_static_tracepoint_marker_at): Add argument.
10147 * target.c (update_current_target): Update.
10148 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10149 argument.
10150
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10154 (target_set_permissions): Add argument.
10155 * target.c (update_current_target): Update.
10156 * remote.c (remote_set_permissions): Add 'self' argument.
10157 (remote_start_remote): Update.
10158
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10162 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10163 (target_get_tib_address): Add argument.
10164 * target.c (update_current_target): Update.
10165 * remote.c (remote_get_tib_address): Add 'self' argument.
10166
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10170 (target_set_trace_notes): Add argument.
10171 * target.c (update_current_target): Update.
10172 * remote.c (remote_set_trace_notes): Add 'self' argument.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10177 argument.
10178 (target_set_trace_buffer_size): Add argument.
10179 * target.c (update_current_target): Update.
10180 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10185 argument.
10186 (target_set_circular_trace_buffer): Add argument.
10187 * target.c (update_current_target): Update.
10188 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10189 argument.
10190
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10194 argument.
10195 (target_set_disconnected_tracing): Add argument.
10196 * target.c (update_current_target): Update.
10197 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.h (struct target_ops)
10202 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10203 (target_get_min_fast_tracepoint_insn_len): Add argument.
10204 * target.c (update_current_target): Update.
10205 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10206 argument.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10211 argument.
10212 (target_get_raw_trace_data): Add argument.
10213 * target.c (update_current_target): Update.
10214 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10219 Add argument.
10220 (target_upload_trace_state_variables): Add argument.
10221 * target.c (update_current_target): Update.
10222 * remote.c (remote_upload_trace_state_variables): Add 'self'
10223 argument.
10224 (remote_start_remote): Update.
10225
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10227
10228 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10229 argument.
10230 (target_upload_tracepoints): Add argument.
10231 * target.c (update_current_target): Update.
10232 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10233 (remote_start_remote): Update.
10234
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10238 (target_save_trace_data): Add argument.
10239 * target.c (update_current_target): Update.
10240 * remote.c (remote_save_trace_data): Add 'self' argument.
10241
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10243
10244 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10245 argument.
10246 * target.h (struct target_ops)
10247 <to_get_trace_state_variable_value>: Add argument.
10248 (target_get_trace_state_variable_value): Add argument.
10249 * target.c (update_current_target): Update.
10250 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10251 argument.
10252 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10253
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10257 * target.h (struct target_ops) <to_trace_find>: Add argument.
10258 (target_trace_find): Add argument.
10259 * target.c (update_current_target): Update.
10260 * remote.c (remote_trace_find): Add 'self' argument.
10261 * ctf.c (ctf_trace_find): Add 'self' argument.
10262
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10266 (target_trace_stop): Add argument.
10267 * target.c (update_current_target): Update.
10268 * remote.c (remote_trace_stop): Add 'self' argument.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10273 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10274 argument.
10275 (target_get_tracepoint_status): Add argument.
10276 * target.c (update_current_target): Update.
10277 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10278
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10282 * target.h (struct target_ops) <to_get_trace_status>: Add
10283 argument.
10284 (target_get_trace_status): Add argument.
10285 * target.c (update_current_target): Update.
10286 * remote.c (remote_get_trace_status): Add 'self' argument.
10287 (remote_start_remote, remote_can_download_tracepoint): Update.
10288 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10289
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target.h (struct target_ops) <to_trace_start>: Add argument.
10293 (target_trace_start): Add argument.
10294 * target.c (update_current_target): Update.
10295 * remote.c (remote_trace_start): Add 'self' argument.
10296
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10300 Add argument.
10301 (target_trace_set_readonly_regions): Add argument.
10302 * target.c (update_current_target): Update.
10303 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10304 argument.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10309 argument.
10310 (target_disable_tracepoint): Add argument.
10311 * target.c (update_current_target): Update.
10312 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10317 argument.
10318 (target_enable_tracepoint): Add argument.
10319 * target.c (update_current_target): Update.
10320 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target.h (struct target_ops) <to_download_trace_state_variable>:
10325 Add argument.
10326 (target_download_trace_state_variable): Add argument.
10327 * target.c (update_current_target): Update.
10328 * remote.c (remote_download_trace_state_variable): Add 'self'
10329 argument.
10330
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10334 argument.
10335 (target_can_download_tracepoint): Add argument.
10336 * target.c (update_current_target): Update.
10337 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10338
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target.h (struct target_ops) <to_download_tracepoint>: Add
10342 argument.
10343 (target_download_tracepoint): Add argument.
10344 * target.c (update_current_target): Update.
10345 * remote.c (remote_download_tracepoint): Add 'self' argument.
10346
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10348
10349 * target.h (struct target_ops) <to_trace_init>: Add argument.
10350 (target_trace_init): Add argument.
10351 * target.c (update_current_target): Update.
10352 * remote.c (remote_trace_init): Add 'self' argument.
10353
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10357 * target.c (target_fileio_readlink): Add argument.
10358 * remote.c (remote_hostio_readlink): Add 'self' argument.
10359 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10360
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10364 * target.c (target_fileio_unlink): Add argument.
10365 * remote.c (remote_hostio_unlink): Add 'self' argument.
10366 (remote_file_delete): Update.
10367 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10372 * target.c (target_fileio_close): Add argument.
10373 * remote.c (remote_hostio_close): Add 'self' argument.
10374 (remote_hostio_close_cleanup): Update.
10375 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10376 Update.
10377 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10378
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10382 * target.c (target_fileio_pread): Add argument.
10383 * remote.c (remote_hostio_pread): Add 'self' argument.
10384 (remote_bfd_iovec_pread, remote_file_get): Update.
10385 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10386
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10390 * target.c (target_fileio_pwrite): Add argument.
10391 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10392 (remote_file_put): Update.
10393 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10398 * target.c (target_fileio_open): Add argument.
10399 * remote.c (remote_hostio_open): Add 'self' argument.
10400 (remote_bfd_iovec_open): Add 'self' argument.
10401 (remote_file_put): Add 'self' argument.
10402 (remote_file_get): Add 'self' argument.
10403 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10404
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10408 Add argument.
10409 (target_can_run_breakpoint_commands): Add argument.
10410 * target.c (update_current_target): Update.
10411 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10412 argument.
10413 (remote_insert_breakpoint): Add 'self' argument.
10414 (remote_insert_hw_breakpoint): Add 'self' argument.
10415 (remote_can_run_breakpoint_commands): Add 'self' argument.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops)
10420 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10421 (target_supports_evaluation_of_breakpoint_conditions): Add
10422 argument.
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10425 argument.
10426 (remote_insert_breakpoint): Add 'self' argument.
10427 (remote_insert_hw_breakpoint): Add 'self' argument.
10428 (remote_supports_cond_breakpoints): Add 'self' argument.
10429
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10433 argument.
10434 (target_supports_string_tracing): Add argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target.h (struct target_ops)
10441 <to_supports_disable_randomization>: Add argument.
10442 * target.c (find_default_supports_disable_randomization): Add
10443 argument.
10444 (target_supports_disable_randomization): Add argument.
10445 (find_default_supports_disable_randomization): Add 'self'
10446 argument.
10447 * remote.c (extended_remote_supports_disable_randomization): Add
10448 'self' argument.
10449 (remote_supports_disable_randomization): Add 'self' argument.
10450 (extended_remote_create_inferior): Update.
10451 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10452 'self' argument.
10453
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10455
10456 * target.h (struct target_ops)
10457 <to_supports_enable_disable_tracepoint>: Add argument.
10458 (target_supports_enable_disable_tracepoint): Add argument.
10459 * target.c (update_current_target): Update.
10460 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10461 argument.
10462
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target.h (struct target_ops) <to_supports_multi_process>: Add
10466 argument.
10467 (target_supports_multi_process): Add argument.
10468 * target.c (update_current_target): Update.
10469 * remote.c (remote_supports_multi_process): Add 'self' argument.
10470 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10471 argument.
10472 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10473 argument.
10474
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target.h (struct target_ops) <to_execution_direction>: Add
10478 argument.
10479 (target_execution_direction): Add argument.
10480 * target.c (default_execution_direction): Add 'self' argument.
10481 * record-full.c (record_full_execution_direction): Add 'self'
10482 argument.
10483
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10487 argument.
10488 (target_can_execute_reverse): Add argument.
10489 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10490 * record-full.c (record_full_can_execute_reverse): Add 'self'
10491 argument.
10492 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10493 argument.
10494
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10498 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10499 argument.
10500 (target_get_ada_task_ptid): Add argument.
10501 * target.c (update_current_target): Update.
10502 (default_get_ada_task_ptid): Add 'self' argument.
10503 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10504 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10505 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10506 argument.
10507 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10508 argument.
10509 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10510 argument.
10511 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10512 argument.
10513 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10514 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10515 argument.
10516
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10520 (target_goto_bookmark): Add argument.
10521 * target.c (dummy_goto_bookmark): Add 'self' argument.
10522 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10523
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10527 (target_get_bookmark): Add argument.
10528 * target.c (dummy_get_bookmark): Add 'self' argument.
10529 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10530
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10534 argument.
10535 (target_make_corefile_notes): Add argument.
10536 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10537 * procfs.c (procfs_make_note_section): Add 'self' argument.
10538 (procfs_make_note_section): Add 'self' argument.
10539 (procfs_make_note_section): Add 'self' argument.
10540 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10541 argument.
10542 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10543 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10544 * exec.c (exec_make_note_section): Add 'self' argument.
10545 (exec_make_note_section): Add 'self' argument.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_find_memory_regions>: Add
10550 argument.
10551 (target_find_memory_regions): Add argument.
10552 * target.c (dummy_find_memory_regions): Add 'self' argument.
10553 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10554 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10555 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10556 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10557 * exec. (exec_do_find_memory_regions): New global.
10558 (exec_set_find_memory_regions): Rewrite.
10559 (exec_find_memory_regions): New function.
10560 (init_exec_ops): Use exec_find_memory_regions.
10561
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * target.h (struct target_ops) <to_supports_non_stop>: Add
10565 argument.
10566 * target.c (find_default_supports_non_stop): Add argument.
10567 (target_supports_non_stop): Add argument.
10568 (find_default_supports_non_stop): Add 'self' argument.
10569 * remote.c (remote_supports_non_stop): Add 'self' argument.
10570 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10571
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target.h (struct target_ops) <to_log_command>: Add argument.
10575 (target_log_command): Add argument.
10576 * serial.h (serial_log_command): Add 'self' argument.
10577 * serial.c (serial_log_command): Add 'self' argument.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10582 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10583 argument.
10584 (target_pid_to_exec_file): Add argument.
10585 * target.c (debug_to_pid_to_exec_file): Add argument.
10586 (update_current_target): Update.
10587 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10588 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10589 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10590 (linux_handle_extended_wait): Update.
10591 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10592 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10593 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10594 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target.h (struct target_ops) <to_rcmd>: Add argument.
10599 (target_rcmd): Add argument.
10600 * target.c (debug_to_rcmd): Add argument.
10601 (update_current_target, do_monitor_command): Update.
10602 * remote.c (remote_rcmd): Add 'self' argument.
10603 * monitor.c (monitor_rcmd): Add 'self' argument.
10604
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * windows-nat.c (windows_stop): Add 'self' argument.
10608 * target.h (struct target_ops) <to_stop>: Add argument.
10609 * target.c (target_stop): Add argument.
10610 (debug_to_stop): Add argument.
10611 (update_current_target): Update.
10612 * remote.c (remote_stop): Add 'self' argument.
10613 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10614 (gdbsim_cntrl_c): Update.
10615 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10616 * procfs.c (procfs_stop): Add 'self' argument.
10617 * nto-procfs.c (procfs_stop): Add 'self' argument.
10618 * monitor.c (monitor_stop): Add 'self' argument.
10619 (monitor_open): Update.
10620 * linux-nat.c (linux_nat_stop): Add argument.
10621 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10622 * gnu-nat.c (gnu_stop): Add 'self' argument.
10623 * darwin-nat.c (darwin_stop): Add 'self' argument.
10624
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops) <to_thread_name>: Add argument.
10628 * target.c (target_thread_name): Add argument.
10629 (update_current_target): Update.
10630 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10631
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (struct target_ops) <to_extra_thread_info>: Add
10635 argument.
10636 (target_extra_thread_info): Add argument.
10637 * target.c (update_current_target): Update.
10638 * remote.c (remote_threads_extra_info): Add 'self' argument.
10639 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10640 argument.
10641 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10642 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10643 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10644 argument.
10645 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10646 argument.
10647 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10648 argument.
10649 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10650 argument.
10651
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target.h (struct target_ops) <to_program_signals>: Add argument.
10655 * target.c (target_program_signals): Add argument.
10656 * remote.c (remote_program_signals): Add 'self' argument.
10657
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10661 * target.c (target_pass_signals): Add argument.
10662 * remote.c (remote_pass_signals): Add 'self' argument.
10663 (remote_start_remote): Update.
10664 * procfs.c (procfs_pass_signals): Add 'self' argument.
10665 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10666 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10667 (linux_nat_create_inferior, linux_nat_attach): Update.
10668
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * windows-nat.c (windows_can_run): Add 'self' argument.
10672 * target.h (struct target_ops) <to_can_run>: Add argument.
10673 (target_can_run): Add argument.
10674 * target.c (debug_to_can_run): Add argument.
10675 (update_current_target): Update.
10676 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10677 * inf-child.c (inf_child_can_run): Add 'self' argument.
10678 * go32-nat.c (go32_can_run): Add 'self' argument.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target.h (struct target_ops) <to_has_exited>: Add argument.
10683 (target_has_exited): Add argument.
10684 * target.c (debug_to_has_exited): Add argument.
10685 (update_current_target): Update.
10686
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10690 argument.
10691 (target_set_syscall_catchpoint): Add argument.
10692 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10693 argument.
10694 * target.c (update_current_target): Update.
10695
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10699 argument.
10700 (target_remove_exec_catchpoint): Add argument.
10701 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10702 (update_current_target): Update.
10703 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10704 argument.
10705
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10707
10708 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10709 argument.
10710 (target_insert_exec_catchpoint): Add argument.
10711 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10712 (update_current_target): Update.
10713 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10714 argument.
10715
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10719 argument.
10720 (target_remove_vfork_catchpoint): Add argument.
10721 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10722 (update_current_target): Update.
10723 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10724 argument.
10725
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10729 argument.
10730 (target_insert_vfork_catchpoint): Add argument.
10731 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10732 (update_current_target): Update.
10733 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10734 argument.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10739 argument.
10740 (target_remove_fork_catchpoint): Add argument.
10741 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10742 (update_current_target): Update.
10743 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10744 argument.
10745
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10749 argument.
10750 (target_insert_fork_catchpoint): Add argument.
10751 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10752 (update_current_target): Update.
10753 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10754 argument.
10755
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10759 argument.
10760 (target_post_startup_inferior): Add argument.
10761 * target.c (debug_to_post_startup_inferior): Add argument.
10762 (update_current_target): Update.
10763 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10764 argument.
10765 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10766 argument.
10767 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10768 argument.
10769 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10770 argument.
10771 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10772 'self' argument.
10773 (super_post_startup_inferior): Likewise.
10774 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10775 'self' argument.
10776 (super_post_startup_inferior): Likewise.
10777 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10778 Add 'self' argument.
10779 (super_post_startup_inferior): Likewise.
10780
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target.h (struct target_ops) <to_load>: Add argument.
10784 * target.c (target_load): Add argument.
10785 (debug_to_load): Add argument.
10786 (update_current_target): Update.
10787 * remote.c (remote_load): Add 'self' argument.
10788 * remote-sim.c (gdbsim_load): Add 'self' argument.
10789 * remote-mips.c (mips_load): Add 'self' argument.
10790 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10791 * monitor.c (monitor_load): Add 'self' argument.
10792 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10797 (target_terminal_info): Add argument.
10798 * target.c (debug_to_terminal_info): Add argument.
10799 (default_terminal_info): Likewise.
10800 * inflow.c (child_terminal_info): Add 'self' argument.
10801 * inferior.h (child_terminal_info): Add 'self' argument.
10802 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10807 argument.
10808 (target_terminal_save_ours): Add argument.
10809 * target.c (debug_to_terminal_save_ours): Add argument.
10810 (update_current_target): Update.
10811 * inflow.c (terminal_save_ours): Add 'self' argument.
10812 * inferior.h (terminal_save_ours): Add 'self' argument.
10813
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10817 (target_terminal_ours): Add argument.
10818 * target.c (debug_to_terminal_ours): Add argument.
10819 (update_current_target): Update.
10820 * remote.c (remote_terminal_ours): Add 'self' argument.
10821 (remote_close): Update.
10822 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10823 * inflow.c (terminal_ours): Add 'self' argument.
10824 * inferior.h (terminal_ours): Add 'self' argument.
10825 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10826
10827 2014-02-19 Pedro Alves <palves@redhat.com>
10828 Tom Tromey <tromey@redhat.com>
10829
10830 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10831 argument.
10832 (target_terminal_ours_for_output): Add argument.
10833 * target.c (debug_to_terminal_ours_for_output): Add argument.
10834 (update_current_target): Update.
10835 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10836 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10837 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10838
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_terminal_inferior>: Add
10842 argument.
10843 * target.c (target_terminal_inferior): Add argument.
10844 (update_current_target): Update.
10845 * remote.c (remote_terminal_inferior): Add 'self' argument.
10846 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10847 * inflow.c (terminal_inferior): Add 'self' argument.
10848 * inferior.h (terminal_inferior): Add 'self' argument.
10849 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10850 (go32_terminal_inferior): Add 'self' argument.
10851
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10855 (target_terminal_init): Add argument.
10856 * target.c (debug_to_terminal_init): Add argument.
10857 (update_current_target): Update.
10858 * inflow.c (terminal_init_inferior): Add 'self' argument.
10859 * inferior.h (terminal_init_inferior): Add 'self' argument.
10860 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10861 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10862
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target.h (struct target_ops)
10866 <to_can_accel_watchpoint_condition>: Add argument.
10867 (target_can_accel_watchpoint_condition): Add argument.
10868 * target.c (debug_to_can_accel_watchpoint_condition): Add
10869 argument.
10870 (update_current_target): Update.
10871 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10872 'self' argument.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10877 Add argument.
10878 (target_region_ok_for_hw_watchpoint): Add argument.
10879 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10880 (default_region_ok_for_hw_watchpoint): Add argument.
10881 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10882 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10883 argument.
10884 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10885 argument.
10886 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10887 argument.
10888 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10889 'self' argument.
10890 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10891 'self' argument.
10892 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10893 'self' argument.
10894 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10895 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10896 'self' argument.
10897 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10898 Add 'self' argument.
10899
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10903 argument.
10904 (target_insert_watchpoint): Add argument.
10905 * target.c (debug_to_insert_watchpoint): Add argument.
10906 (update_current_target): Update.
10907 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10908 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10909 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10910 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10911 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10912 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10913 argument.
10914 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10915 (procfs_insert_hw_watchpoint): Add 'self' argument.
10916 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10917 argument.
10918 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10919 argument.
10920 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10921 argument.
10922 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10923 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10924 argument.
10925 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10926 'self' argument.
10927
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10931 argument.
10932 (target_remove_watchpoint): Add argument.
10933 * target.c (debug_to_remove_watchpoint): Add argument.
10934 (update_current_target): Update.
10935 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10936 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10937 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10938 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10939 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10940 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10941 argument.
10942 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10943 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10944 argument.
10945 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10946 argument.
10947 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10948 argument.
10949 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10950 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10951 argument.
10952 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10953 'self' argument.
10954
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10958 argument.
10959 (target_remove_hw_breakpoint): Add argument.
10960 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10961 (update_current_target): Update.
10962 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10963 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10964 argument.
10965 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10966 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10967 argument.
10968 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10969 'self' argument.
10970
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10974 argument.
10975 (target_insert_hw_breakpoint): Add argument.
10976 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10977 (update_current_target): Update.
10978 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10979 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10980 argument.
10981 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10982 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10983 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10984 argument.
10985 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10986 'self' argument.
10987
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10991 argument.
10992 (target_can_use_hardware_watchpoint): Add argument.
10993 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10994 (update_current_target): Update.
10995 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10996 argument.
10997 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10998 argument.
10999 * remote.c (remote_check_watch_resources): Add 'self' argument.
11000 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11001 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11002 argument.
11003 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11004 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11005 argument.
11006 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11007 argument.
11008 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11009 argument.
11010 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11011 argument.
11012 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11013 argument.
11014 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11015 argument.
11016 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11017 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11018 argument.
11019 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11020 'self' argument.
11021
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops) <to_post_attach>: Add argument.
11025 (target_post_attach): Add argument.
11026 * target.c (debug_to_post_attach): Add argument.
11027 (update_current_target): Update.
11028 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11029 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11030 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11031 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11032 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11033
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * windows-nat.c (windows_close): Add 'self' argument.
11037 * tracepoint.c (tfile_close): Add 'self' argument.
11038 * target.h (struct target_ops) <to_close>: Add argument.
11039 * target.c (target_close): Add argument.
11040 (update_current_target): Update.
11041 * remote.c (remote_close): Add 'self' argument.
11042 * remote-sim.c (gdbsim_close): Add 'self' argument.
11043 * remote-mips.c (mips_close): Add 'self' argument.
11044 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11045 * record-full.c (record_full_close): Add 'self' argument.
11046 * record-btrace.c (record_btrace_close): Add 'self' argument.
11047 * monitor.h (monitor_close): Add 'self' argument.
11048 * monitor.c (monitor_close): Add 'self' argument.
11049 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11050 * linux-nat.c (linux_nat_close): Add argument.
11051 * go32-nat.c (go32_close): Add 'self' argument.
11052 * exec.c (exec_close_1): Add 'self' argument.
11053 * ctf.c (ctf_close): Add 'self' argument.
11054 * corelow.c (core_close): Add 'self' argument.
11055 (core_close_cleanup): Update.
11056 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11057 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11058
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11060
11061 * remote.c (remote_load): New function.
11062 (init_remote_ops): Use it.
11063
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11067 argument.
11068 * common/linux-btrace.h (linux_supports_btrace): Update.
11069 * remote.c (remote_supports_btrace): Add "self" argument.
11070 * target-delegates.c: Rebuild.
11071 * target.c (target_supports_btrace): Remove.
11072 * target.h (struct target_ops) <to_supports_btrace>: Add
11073 target_ops argument.
11074 (target_supports_btrace): New define.
11075
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * record-full.c (record_full_beneath_to_resume_ops)
11079 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11080 (record_full_beneath_to_wait)
11081 (record_full_beneath_to_store_registers_ops)
11082 (record_full_beneath_to_store_registers)
11083 (record_full_beneath_to_xfer_partial_ops)
11084 (record_full_beneath_to_xfer_partial)
11085 (record_full_beneath_to_insert_breakpoint_ops)
11086 (record_full_beneath_to_insert_breakpoint)
11087 (record_full_beneath_to_remove_breakpoint_ops)
11088 (record_full_beneath_to_remove_breakpoint)
11089 (record_full_beneath_to_stopped_by_watchpoint)
11090 (record_full_beneath_to_stopped_data_address)
11091 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11092 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11093 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11094 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11095 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11096 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11097 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11098 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11099 (record_full_resume, record_full_wait_1)
11100 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11101 (record_full_store_registers, record_full_xfer_partial)
11102 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11103 (record_full_async, record_full_core_xfer_partial): Use target
11104 delegation.
11105 * target-delegates.c: Rebuild.
11106 * target.c (current_xfer_partial): Remove.
11107 (update_current_target): Do not INHERIT or de_fault
11108 to_insert_breakpoint, to_remove_breakpoint,
11109 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11110 to_is_async_p, to_async. Do not set to_xfer_partial field.
11111 (default_xfer_partial): Simplify.
11112 (current_xfer_partial): Remove.
11113 (target_wait, target_resume): Simplify.
11114 (find_default_can_async_p, find_default_is_async_p): Update.
11115 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11116 to_xfer_partial, to_stopped_by_watchpoint,
11117 to_stopped_data_address.
11118 (target_store_registers): Simplify.
11119 (forward_target_remove_breakpoint)
11120 (forward_target_insert_breakpoint): Remove.
11121 (target_remove_breakpoint, target_insert_breakpoint)
11122 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11123 * target.h (struct target_ops) <to_resume, to_wait,
11124 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11125 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11126 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11127 markup.
11128 (forward_target_remove_breakpoint)
11129 (forward_target_insert_breakpoint): Remove.
11130 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11131 directly.
11132 (record_btrace_insert_breakpoint): Delegate directly.
11133
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 PR build/7701:
11137 * target-delegates.c: New file.
11138 * target.c: Include target-delegates.c.
11139 (init_dummy_target): Call install_dummy_methods.
11140 (complete_target_initialization): Call install_delegators.
11141 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11142 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11143 * make-target-delegates: New file.
11144
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * record.c (find_record_target): Use find_target_at.
11148 * target.c (find_target_at): New function.
11149 * target.h (find_target_at): Declare.
11150
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11154 Add 'ops' argument.
11155 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11156 'ops' argument.
11157 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11158 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11159 'ops' argument.
11160 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11161 argument.
11162 * linux-nat.c (save_sigtrap): Update.
11163 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11164 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11165 (linux_nat_close): Update.
11166 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11167 argument.
11168 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11169 argument.
11170 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11171 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11172 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11173 (tmp_to_async): Add 'ops' argument.
11174 (record_full_stopped_by_watchpoint, record_full_async)
11175 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11176 argument.
11177 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11178 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11179 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11180 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11181 (remote_is_async_p, remote_async): Add 'ops' argument.
11182 (remote_stopped_data_address): Update.
11183 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11184 * target.c (update_current_target)
11185 (find_default_can_async_p, find_default_is_async_p): Update.
11186 (init_dummy_target): Update.
11187 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11188 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11189 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11190 (target_can_async_p, target_is_async_p, target_async)
11191 (target_stopped_by_watchpoint): Update.
11192
11193 2014-02-19 Yao Qi <yao@codesourcery.com>
11194
11195 PR gdb/16220
11196 * gdbarch.sh: Remove startup_gdbarch.
11197 * gdbarch.c: Regenerated.
11198 * gdbarch.h: Likewise.
11199
11200 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11201
11202 * rl78-tdep.c (rl78_g10_register_name): New function.
11203 (rl78_return_value): Add g10 support.
11204 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11205 g10.
11206
11207 2014-02-17 Doug Evans <xdje42@gmail.com>
11208
11209 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11210 (SUBDIR_GUILE_SRCS): Ditto.
11211 (scm-gsmob.o): Ditto.
11212
11213 2014-02-17 Yao Qi <yao@codesourcery.com>
11214
11215 * gnu-nat.c (ILL_RPC): Declare defined function.
11216
11217 2014-02-17 Yao Qi <yao@codesourcery.com>
11218
11219 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11220 mach_msg_type_number_t.
11221 (gnu_write_inferior): Likewise.
11222
11223 2014-02-17 Yao Qi <yao@codesourcery.com>
11224
11225 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11226 in format string.
11227 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11228 (inf_validate_procs, inf_signal): Likewise.
11229 (S_exception_raise_request): Likewise.
11230 (do_mach_notify_dead_name): Likewise.
11231 (steal_exc_port): Likewise.
11232 (gnu_read_inferior): Change 'copy_count''s type to
11233 mach_msg_type_number_t.
11234 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11235 format string.
11236
11237 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11238
11239 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11240 flag. Adjust all users; in particular...
11241 (gnu_wait): ..., don't decrement its value in here...
11242 (gnu_create_inferior): ..., and instead set the flag in here,
11243 around the startup_inferior call, and call that one with
11244 START_INFERIOR_TRAPS_EXPECTED.
11245
11246 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11247 (ILL_RPC): ... new macro.
11248 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11249 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11250 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11251 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11252 functions with ILL_RPC macro.
11253 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11254 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11255 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11256 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11257 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11258 (S_proc_getlogin_reply, S_proc_getsid_reply)
11259 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11260 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11261 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11262 (S_proc_getnports_reply, S_proc_is_important_reply)
11263 (S_proc_get_code_reply): New stub functions, generated with
11264 ILL_RPC macro.
11265
11266 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11267 collected the type check structures.
11268
11269 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11270
11271 2014-02-14 Doug Evans <dje@google.com>
11272
11273 * target.c (target_write_partial): Fix result type.
11274
11275 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11276
11277 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11278 the proper offsets to access fpregset_t.
11279
11280 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11281
11282 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11283 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11284 * h8300-tdep.c (setmachinelist): Remove global.
11285 * hppa-tdep.c (hppa_sigtramp): Remove global.
11286 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11287 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11288 * ravenscar-thread.c (update_target_observer): Remove global.
11289 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11290
11291 2014-02-12 Tom Tromey <tromey@redhat.com>
11292
11293 * common/rsp-low.c: Update comments.
11294 * common/rsp-low.h: Update comments.
11295
11296 2014-02-12 Tom Tromey <tromey@redhat.com>
11297
11298 * common/rsp-low.c (convert_ascii_to_int): Remove.
11299 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11300
11301 2014-02-12 Tom Tromey <tromey@redhat.com>
11302
11303 * common/rsp-low.h (unhexify): Don't declare.
11304 * common/rsp-low.c (unhexify): Remove.
11305
11306 2014-02-12 Tom Tromey <tromey@redhat.com>
11307
11308 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11309 * common/rsp-low.c (convert_int_to_ascii): Remove.
11310
11311 2014-02-12 Tom Tromey <tromey@redhat.com>
11312
11313 * common/rsp-low.h (hexify): Don't declare.
11314 * common/rsp-low.c (hexify): Remove.
11315
11316 2014-02-12 Tom Tromey <tromey@redhat.com>
11317
11318 * common/rsp-low.c (hexify): Never take strlen of argument.
11319
11320 2014-02-12 Tom Tromey <tromey@redhat.com>
11321
11322 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11323 * remote.c (extended_remote_run, remote_rcmd)
11324 (remote_download_trace_state_variable, remote_save_trace_data)
11325 (remote_set_trace_notes): Update.
11326 * tracepoint.c (encode_source_string, tfile_write_status)
11327 (tfile_write_uploaded_tsv): Update.
11328
11329 2014-02-12 Tom Tromey <tromey@redhat.com>
11330
11331 * tracepoint.c: Include rsp-low.h.
11332 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11333 * remote.c: Include rsp-low.h.
11334 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11335 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11336 (remote_unescape_input): Move to common/rsp-low.c.
11337 * common/rsp-low.h: New file.
11338 * common/rsp-low.c: New file.
11339 * Makefile.in (SFILES): Add common/rsp-low.c.
11340 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11341 (COMMON_OBS): Add rsp-low.o.
11342 (rsp-low.o): New target.
11343
11344 2014-02-12 Tom Tromey <tromey@redhat.com>
11345
11346 * utils.h: Include print-utils.h.
11347 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11348 (int_string, core_addr_to_string, core_addr_to_string_nz)
11349 (hex_string, hex_string_custom): Don't declare.
11350 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11351 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11352 (hex_string_custom, int_string, core_addr_to_string)
11353 (core_addr_to_string_nz, host_address_to_string): Move to
11354 common/print-utils.c.
11355 * common/print-utils.h: New file.
11356 * common/print-utils.c: New file
11357 * Makefile.in (SFILES): Add common/print-utils.c.
11358 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11359 (COMMON_OBS): Add print-utils.o.
11360 (print-utils.o): New target.
11361
11362 2014-02-12 Tom Tromey <tromey@redhat.com>
11363
11364 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11365
11366 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11367
11368 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11369
11370 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11371
11372 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11373 if a PT_IO ptrace request returns sucessfully but indicates that 0
11374 bytes were transferred.
11375
11376 2014-02-12 Pedro Alves <palves@redhat.com>
11377 Kevin Buettner <kevinb@redhat.com>
11378
11379 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11380 TYPE_INSTANCE_FLAG_CODE_SPACE.
11381
11382 2014-02-12 Pedro Alves <palves@redhat.com>
11383
11384 * h8300-tdep.c (pseudo_from_raw_register)
11385 (raw_from_pseudo_register): New functions.
11386 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11387 them.
11388
11389 2014-02-12 Pedro Alves <palves@redhat.com>
11390
11391 * h8300-tdep.c (h8300_register_sim_regno): New function.
11392 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11393 gdbarch_register_sim_regno hook.
11394
11395 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11396
11397 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11398
11399 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11400
11401 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11402
11403 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11404
11405 * obsd-tdep.h (obsd_init_abi): New prototype.
11406 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11407 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11408 (obsd_init_abi): New functions.
11409 * i386obsd-tdep.c: Include "obsd-tdep.h".
11410 (i386obsd_init_abi): Call obsd_init_abi.
11411 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11412 (amd64obsd_init_abi): Call obsd_init_abi.
11413 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11414 obsd-tdep.c to gdb_target_obs.
11415
11416 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11417
11418 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11419 double float arguments to 16-byte in the argument slots.
11420
11421 2014-02-11 Doug Evans <xdje42@gmail.com>
11422
11423 * configure.ac: Don't crash if pkg-config is not found and guile
11424 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11425 in guile checks.
11426 * configure: Regenerate.
11427
11428 2014-02-11 Yao Qi <yao@codesourcery.com>
11429
11430 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11431 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11432 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11433 * gnu-nat.c (gnu_xfer_memory): Likewise.
11434 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11435 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11436 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11437 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11438
11439 2014-02-11 Yao Qi <yao@codesourcery.com>
11440
11441 * target.h (enum target_xfer_error): Rename to ...
11442 (enum target_xfer_status): ... it. New. All users updated.
11443 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11444 New.
11445 (TARGET_XFER_STATUS_ERROR_P): New macro.
11446 (target_xfer_error_to_string): Remove declaration.
11447 (target_xfer_status_to_string): Declare.
11448 (target_xfer_partial_ftype): Adjust it.
11449 (struct target_ops) <to_xfer_partial>: Return
11450 target_xfer_status. Add argument xfered_len. Update
11451 comments.
11452 * target.c (target_xfer_error_to_string): Rename to ...
11453 (target_xfer_status_to_string): ... it. New. All callers
11454 updated.
11455 (target_read_live_memory): Likewise. Call target_xfer_partial
11456 instead of target_read.
11457 (memory_xfer_live_readonly_partial): Return
11458 target_xfer_status. Add argument xfered_len.
11459 (raw_memory_xfer_partial): Likewise.
11460 (memory_xfer_partial_1): Likewise.
11461 (memory_xfer_partial): Likewise.
11462 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11463 properly. Update debug message.
11464 (default_xfer_partial, current_xfer_partial): Likewise.
11465 (target_write_partial): Likewise.
11466 (target_read_partial): Likewise. All callers updated.
11467 (read_whatever_is_readable): Likewise.
11468 (target_write_with_progress): Likewise.
11469 (target_read_alloc_1): Likewise.
11470
11471 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11472 * auxv.c (procfs_xfer_auxv): Likewise.
11473 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11474 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11475 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11476 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11477 * corefile.c (read_memory): Adjust.
11478 * corelow.c (core_xfer_partial): Likewise.
11479 * ctf.c (ctf_xfer_partial): Likewise.
11480 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11481 updated.
11482 (darwin_xfer_partial): Likewise.
11483 * exec.c (section_table_xfer_memory_partial): Likewise. All
11484 callers updated.
11485 (exec_xfer_partial): Likewise.
11486 * exec.h (section_table_xfer_memory_partial): Update
11487 declaration.
11488 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11489 negative.
11490 (gnu_xfer_partial): Likewise.
11491 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11492 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11493 (ia64_hpux_xfer_solib_got): Likewise.
11494 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11495 type of 'partial_len' to ULONGEST.
11496 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11497 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11498 (linux_nat_xfer_partial): Likewise.
11499 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11500 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11501 * monitor.c (monitor_xfer_memory): Likewise.
11502 (monitor_xfer_partial): Likewise.
11503 * procfs.c (procfs_xfer_partial): Likewise.
11504 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11505 * record-full.c (record_full_xfer_partial): Likewise.
11506 (record_full_core_xfer_partial): Likewise.
11507 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11508 (gdbsim_xfer_partial): Likewise.
11509 * remote.c (remote_write_bytes_aux): Likewise. All callers
11510 updated.
11511 (remote_write_bytes, remote_read_bytes): Likewise. All
11512 callers updated.
11513 (remote_flash_erase): Likewise. All callers updated.
11514 (remote_write_qxfer): Likewise. All callers updated.
11515 (remote_read_qxfer): Likewise. All callers updated.
11516 (remote_xfer_partial): Likewise.
11517 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11518 (rs6000_xfer_shared_libraries): Likewise.
11519 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11520 (sol_thread_xfer_partial): Likewise.
11521 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11522 (sparc_xfer_partial): Likewise.
11523 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11524 updated.
11525 (spu_xfer_partial): Likewise.
11526 * spu-multiarch.c (spu_xfer_partial): Likewise.
11527 * tracepoint.c (tfile_xfer_partial): Likewise.
11528 * windows-nat.c (windows_xfer_memory): Likewise.
11529 (windows_xfer_shared_libraries): Likewise.
11530 (windows_xfer_partial): Likewise.
11531 * valprint.c: Replace 'target_xfer_error' with
11532 'target_xfer_status' in comments.
11533
11534 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11535
11536 Checked in by Joel Brobecker <brobecker@adacore.com>.
11537 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11538
11539 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11540
11541 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11542 function parameters.
11543
11544 2014-02-10 Will Newton <will.newton@linaro.org>
11545
11546 * elfread.c (elf_rel_plt_read): Look for a .got section if
11547 looking up .got.plt fails.
11548 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11549 on address passed to elf_gnu_ifunc_record_cache.
11550 (elf_gnu_ifunc_resolve_addr): Likewise.
11551 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11552
11553 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11554
11555 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11556 (X_RETTURN): New macro.
11557 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11558
11559 * sparc64-tdep.c (sparc64_init_abi): Hook
11560 sparc_in_function_epilogue_p.
11561
11562 2014-02-10 Gary Benson <gbenson@redhat.com>
11563
11564 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11565 Rename name_matcher to symbol_matcher.
11566
11567 2014-02-10 Gary Benson <gbenson@redhat.com>
11568
11569 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11570 Use expand_symtabs_file_matcher_ftype and
11571 expand_symtabs_symbol_matcher_ftype.
11572
11573 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11574
11575 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11576 (struct ada_symbol_cache): New.
11577 (ada_free_symbol_cache): Forward declare.
11578 (struct ada_pspace_data): New.
11579 (ada_pspace_data_handle): New static global.
11580 (get_ada_pspace_data, ada_pspace_data_cleanup)
11581 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11582 (cache_space, cache): Delete, now folded inside struct
11583 ada_pspace_data.
11584 (ada_get_symbol_cache): New function.
11585 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11586 implementation.
11587 (_initialize_ada_language): Remove initialization of cache_space.
11588 Move call to observer_attach_inferior_exit up, grouping it
11589 with the other observer registrations inside this function.
11590 Rename command to be more general. Add call to
11591 register_program_space_data_with_cleanup.
11592
11593 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11594
11595 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11596 ada_new_objfile_observer.
11597 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11598 (_initialize_tasks): Update uses of ada_new_objfile_observer
11599 and ada_tasks_normal_stop_observer.
11600
11601 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11602
11603 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11604 returned by the 'Length attribute to integer.
11605
11606 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11607
11608 * ada-lang.c (_initialize_ada_language): Initialize
11609 cache_space obstack.
11610
11611 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-lang.c (HASH_SIZE): New macro.
11614 (struct cache_entry): New type.
11615 (cache_space, cache): New static globals.
11616 (ada_clear_symbol_cache, find_entry): New functions.
11617 (lookup_cached_symbol, cache_symbol): Implement.
11618 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11619 (_initialize_ada_language): Attach ada_new_objfile_observer
11620 and ada_free_objfile_observer.
11621
11622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11623
11624 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11625 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11626 struct block * parameter.
11627 (ada_lookup_symbol_list_worker): Constify local variable "block".
11628 Remove cast which is no longer necessary.
11629
11630 2014-02-10 Doug Evans <xdje42@gmail.com>
11631
11632 Add Guile as an extension language.
11633 * NEWS: Mention Guile scripting.
11634 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11635 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11636 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11637 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11638 (CLIBS): Add GUILE_LIBS.
11639 (install-guile): New rule.
11640 (guile.o): New rule.
11641 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11642 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11643 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11644 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11645 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11646 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11647 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11648 * configure.ac: New option --with-guile.
11649 * configure: Regenerate.
11650 * config.in: Regenerate.
11651 * auto-load.c: Remove #include "python/python.h". Add #include
11652 "gdb/section-scripts.h".
11653 (source_section_scripts): Handle Guile scripts.
11654 (_initialize_auto_load): Add name of Guile objfile script to
11655 scripts-directory help text.
11656 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11657 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11658 (struct breakpoint): New member scm_bp_object.
11659 * defs.h (enum command_control_type): New value guile_control.
11660 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11661 "extension.h".
11662 (show_user): Update comment.
11663 (_initialize_cli_cmds): Update help text for "show user". Update help
11664 text for max-user-call-depth.
11665 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11666 "extension.h".
11667 (multi_line_command_p): Add guile_control.
11668 (print_command_lines): Handle guile_control.
11669 (execute_control_command, recurse_read_control_structure): Ditto.
11670 (process_next_line): Recognize "guile" commands.
11671 * disasm.c (gdb_disassemble_info): Make non-static.
11672 * disasm.h: #include "dis-asm.h".
11673 (struct gdbarch): Add forward decl.
11674 (gdb_disassemble_info): Declare.
11675 * extension.c: #include "guile/guile.h".
11676 (extension_languages): Add guile.
11677 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11678 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11679 * gdbtypes.c (get_unsigned_type_max): New function.
11680 (get_signed_type_minmax): New function.
11681 * gdbtypes.h (get_unsigned_type_max): Declare.
11682 (get_signed_type_minmax): Declare.
11683 * guile/README: New file.
11684 * guile/guile-internal.h: New file.
11685 * guile/guile.c: New file.
11686 * guile/guile.h: New file.
11687 * guile/scm-arch.c: New file.
11688 * guile/scm-auto-load.c: New file.
11689 * guile/scm-block.c: New file.
11690 * guile/scm-breakpoint.c: New file.
11691 * guile/scm-disasm.c: New file.
11692 * guile/scm-exception.c: New file.
11693 * guile/scm-frame.c: New file.
11694 * guile/scm-gsmob.c: New file.
11695 * guile/scm-iterator.c: New file.
11696 * guile/scm-lazy-string.c: New file.
11697 * guile/scm-math.c: New file.
11698 * guile/scm-objfile.c: New file.
11699 * guile/scm-ports.c: New file.
11700 * guile/scm-pretty-print.c: New file.
11701 * guile/scm-safe-call.c: New file.
11702 * guile/scm-string.c: New file.
11703 * guile/scm-symbol.c: New file.
11704 * guile/scm-symtab.c: New file.
11705 * guile/scm-type.c: New file.
11706 * guile/scm-utils.c: New file.
11707 * guile/scm-value.c: New file.
11708 * guile/lib/gdb.scm: New file.
11709 * guile/lib/gdb/boot.scm: New file.
11710 * guile/lib/gdb/experimental.scm: New file.
11711 * guile/lib/gdb/init.scm: New file.
11712 * guile/lib/gdb/iterator.scm: New file.
11713 * guile/lib/gdb/printing.scm: New file.
11714 * guile/lib/gdb/types.scm: New file.
11715 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11716 (VPATH): Add $(GUILE_SRCDIR).
11717 (GUILE_DIR): New variable.
11718 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11719 (all): Add stamp-guile dependency.
11720 (stamp-guile): New rule.
11721 (clean-guile, install-guile, uninstall-guile): New rules.
11722 (install-only): Add install-guile dependency.
11723 (uninstall): Add uninstall-guile dependency.
11724 (clean): Add clean-guile dependency.
11725
11726 2014-02-09 Doug Evans <xdje42@gmail.com>
11727
11728 Revert this patch (which I approved, mea culpa).
11729
11730 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11731
11732 * Makefile.in (all-lib): Remove.
11733 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11734
11735 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11736
11737 Fix Python stack corruption.
11738 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11739 gdb_py_longest.
11740
11741 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11742
11743 * Makefile.in (all-lib): Remove.
11744 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11745
11746 2014-02-07 Doug Evans <dje@google.com>
11747
11748 * extension-priv.h (extension_language_script_ops): Add comment.
11749 (extension_language_ops): Add comment.
11750 (active_ext_lang_state): Fix typo in comment.
11751
11752 2014-02-07 Pedro Alves <palves@redhat.com>
11753
11754 PR breakpoints/16292
11755 * infrun.c (handle_signal_stop) <signal arrives while stepping
11756 over a breakpoint>: Switch back to the stepping thread.
11757
11758 2014-02-07 Yao Qi <yao@codesourcery.com>
11759
11760 * target.c (target_xfer_partial): Return zero if LEN is zero.
11761
11762 2014-02-07 Yao Qi <yao@codesourcery.com>
11763
11764 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11765 (ld_so_xfer_auxv): Likewise.
11766 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11767 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11768 * corelow.c (core_xfer_partial): Likewise.
11769 * ctf.c (ctf_xfer_partial): Likewise.
11770 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11771 (darwin_xfer_partial): Likewise.
11772 * exec.c (exec_xfer_partial): Likewise.
11773 * gnu-nat.c (gnu_xfer_partial): Likewise.
11774 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11775 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11776 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11777 * linux-nat.c (linux_xfer_siginfo): Likewise.
11778 (linux_proc_xfer_spu): Likewise.
11779 * procfs.c (procfs_xfer_partial): Likewise.
11780 * record-full.c (record_full_xfer_partial): Likewise.
11781 (record_full_core_xfer_partial): Likewise.
11782 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11783 * remote.c (remote_write_qxfer): Likewise.
11784 (remote_write_qxfer, remote_read_qxfer): Likewise.
11785 (remote_xfer_partial): Likewise.
11786 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11787 (rs6000_xfer_shared_libraries): Likewise.
11788 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11789 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11790 (spu_xfer_partial): Likewise.
11791 * target.c (memory_xfer_partial_1): Likewise.
11792 * tracepoint.c (tfile_xfer_partial): Likewise.
11793 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11794 (windows_xfer_partial): Likewise.
11795
11796 2014-02-07 Yao Qi <yao@codesourcery.com>
11797
11798 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11799 comments.
11800 (core_xfer_shared_libraries_aix): Likewise.
11801 * gdbarch.c, gdbarch.h: Regenerated.
11802 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11803 ULONGEST. Change 'len_avail' type to ULONGEST.
11804 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11805 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11806 declaration.
11807 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11808
11809 2014-02-07 Yao Qi <yao@codesourcery.com>
11810
11811 * corefile.c (memory_error): Get 'exception' from ERR and pass
11812 'exception' to throw_error.
11813
11814 2014-02-06 Doug Evans <xdje42@gmail.com>
11815
11816 * configure.ac (libpython checking): Remove all but python.o from
11817 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11818 * configure: Regenerate.
11819
11820 * Makefile.in (SFILES): Add extension.c.
11821 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11822 (COMMON_OBS): Add extension.o.
11823 * extension.h: New file.
11824 * extension-priv.h: New file.
11825 * extension.c: New file.
11826
11827 * python/python-internal.h: #include "extension.h".
11828 (gdbpy_auto_load_enabled): Declare.
11829 (gdbpy_apply_val_pretty_printer): Declare.
11830 (gdbpy_apply_frame_filter): Declare.
11831 (gdbpy_preserve_values): Declare.
11832 (gdbpy_breakpoint_cond_says_stop): Declare.
11833 (gdbpy_breakpoint_has_cond): Declare.
11834 (void source_python_script_for_objfile): Delete.
11835 * python/python.c: #include "extension-priv.h".
11836 Delete inclusion of "observer.h".
11837 (extension_language_python): Moved here and renamed from
11838 script_language_python in py-auto-load.c.
11839 Redefined to be of type extension_language_defn.
11840 (python_extension_script_ops): New global.
11841 (python_extension_ops): New global.
11842 (struct python_env): New member previous_active.
11843 (restore_python_env): Call restore_active_ext_lang.
11844 (ensure_python_env): Call set_active_ext_lang.
11845 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11846 New arg extlang.
11847 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11848 New arg extlang.
11849 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11850 New arg extlang.
11851 (gdbpy_eval_from_control_command): Renamed from
11852 eval_python_from_control_command, made static. New arg extlang.
11853 (gdbpy_source_script) Renamed from source_python_script, made static.
11854 New arg extlang.
11855 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11856 result to int. New arg extlang.
11857 (gdbpy_source_objfile_script): Renamed from
11858 source_python_script_for_objfile, made static. New arg extlang.
11859 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11860 static. New args extlang, extlang_printers. Change result type to
11861 "void".
11862 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11863 static. New arg extlang. Rename arg printers to extlang_printers
11864 and change type to ext_lang_type_printers *.
11865 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11866 static. Replace argument arg with extlang, extlang_printers.
11867 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11868 (!HAVE_PYTHON, source_python_script): Delete.
11869 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11870 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11871 (!HAVE_PYTHON, start_type_printers): Delete.
11872 (!HAVE_PYTHON, apply_type_printers): Delete.
11873 (!HAVE_PYTHON, free_type_printers): Delete.
11874 (_initialize_python): Delete call to observer_attach_before_prompt.
11875 (finalize_python): Set/restore active extension language.
11876 (gdbpy_finish_initialization) Renamed from
11877 finish_python_initialization, made static. New arg extlang.
11878 (gdbpy_initialized): New function.
11879 * python/python.h: #include "extension.h". Delete #include
11880 "value.h", "mi/mi-cmds.h".
11881 (extension_language_python): Declare.
11882 (GDBPY_AUTO_FILE_NAME): Delete.
11883 (enum py_bt_status): Moved to extension.h and renamed to
11884 ext_lang_bt_status.
11885 (enum frame_filter_flags): Moved to extension.h.
11886 (enum py_frame_args): Moved to extension.h and renamed to
11887 ext_lang_frame_args.
11888 (finish_python_initialization): Delete.
11889 (eval_python_from_control_command): Delete.
11890 (source_python_script): Delete.
11891 (apply_val_pretty_printer): Delete.
11892 (apply_frame_filter): Delete.
11893 (preserve_python_values): Delete.
11894 (gdbpy_script_language_defn): Delete.
11895 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11896 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11897
11898 * auto-load.c: #include "extension.h".
11899 (GDB_AUTO_FILE_NAME): Delete.
11900 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11901 (script_language_gdb): Delete, moved to extension.c and renamed to
11902 extension_language_gdb.
11903 (source_gdb_script_for_objfile): Delete.
11904 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11905 (loaded_script): Change type of language member to
11906 struct extension_language_defn *.
11907 (init_loaded_scripts_info): Initialize
11908 unsupported_script_warning_printed.
11909 (maybe_add_script): Make static. Change type of language arg to
11910 struct extension_language_defn *.
11911 (clear_section_scripts): Reset unsupported_script_warning_printed.
11912 (auto_load_objfile_script_1): Rewrite to use extension language API.
11913 (auto_load_objfile_script): Make public. Remove support-compiled-in
11914 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11915 (source_section_scripts): Rewrite to use extension language API.
11916 (load_auto_scripts_for_objfile): Rewrite to use
11917 auto_load_scripts_for_objfile.
11918 (collect_matching_scripts_data): Change type of language member to
11919 struct extension_language_defn *.
11920 (auto_load_info_scripts): Change type of language arg to
11921 struct extension_language_defn *.
11922 (unsupported_script_warning_print): New function.
11923 (script_not_found_warning_print): Make static.
11924 (_initialize_auto_load): Rewrite construction of scripts-directory
11925 help.
11926 * auto-load.h (struct objfile): Add forward decl.
11927 (struct script_language): Delete.
11928 (struct auto_load_pspace_info): Add forward decl.
11929 (struct extension_language_defn): Add forward decl.
11930 (maybe_add_script): Delete.
11931 (auto_load_objfile_script): Declare.
11932 (script_not_found_warning_print): Delete.
11933 (auto_load_info_scripts): Update prototype.
11934 (auto_load_gdb_scripts_enabled): Declare.
11935 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11936 auto_load_python_scripts_enabled and made public.
11937 (script_language_python): Delete, moved to python.c.
11938 (gdbpy_script_language_defn): Delete.
11939 (info_auto_load_python_scripts): Update to use
11940 extension_language_python.
11941
11942 * breakpoint.c (condition_command): Replace call to
11943 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11944 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11945 with call to breakpoint_ext_lang_cond_says_stop.
11946 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11947 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11948 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11949 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11950 New arg slang.
11951 (local_setattro): Print name of extension language with existing
11952 stop condition.
11953
11954 * valprint.c (val_print, value_print): Update to call
11955 apply_ext_lang_val_pretty_printer.
11956 * cp-valprint.c (cp_print_value): Update call to
11957 apply_ext_lang_val_pretty_printer.
11958 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11959 (gdbpy_apply_val_pretty_printer): Renamed from
11960 apply_val_pretty_printer. New arg extlang.
11961 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11962
11963 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11964 extension language API.
11965 * cli/cli-script.c (execute_control_command): Update to call
11966 eval_ext_lang_from_control_command.
11967
11968 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11969 enum ext_lang_bt_status values. Update call to
11970 apply_ext_lang_frame_filter.
11971 (mi_cmd_stack_list_locals): Ditto.
11972 (mi_cmd_stack_list_args): Ditto.
11973 (mi_cmd_stack_list_variables): Ditto.
11974 * mi/mi-main.c: Delete #include "python/python-internal.h".
11975 Add #include "extension.h".
11976 (mi_cmd_list_features): Replace reference to python internal variable
11977 gdb_python_initialized with call to ext_lang_initialized_p.
11978
11979 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11980 Update to use enum ext_lang_frame_args. Update to call
11981 apply_ext_lang_frame_filter.
11982 * python/py-framefilter.c (extract_sym): Update to use enum
11983 ext_lang_bt_status.
11984 (extract_value, py_print_type, py_print_value): Ditto.
11985 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11986 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11987 (py_print_frame): Ditto.
11988 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11989 New arg extlang. Update to use enum ext_lang_bt_status.
11990
11991 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11992 finish_python_initialization. Replace with call to
11993 finish_ext_lang_initialization.
11994
11995 * typeprint.c (do_free_global_table): Update to call
11996 free_ext_lang_type_printers.
11997 (create_global_typedef_table): Update to call
11998 start_ext_lang_type_printers.
11999 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12000 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12001 (type_print_options): Change type of global_printers from "void *"
12002 to "struct ext_lang_type_printers *".
12003
12004 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12005 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12006 (gdbpy_preserve_values): Renamed from preserve_python_values.
12007 New arg extlang.
12008 (!HAVE_PYTHON, preserve_python_values): Delete.
12009
12010 * utils.c (quit_flag): Delete, moved to extension.c.
12011 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12012 extension.c.
12013
12014 * eval.c: Delete #include "python/python.h".
12015 * main.c: Delete #include "python/python.h".
12016
12017 * defs.h: Update comment.
12018
12019 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12020
12021 GDB 7.7 released.
12022
12023 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12024
12025 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12026 defined.
12027
12028 2014-02-05 Yao Qi <yao@codesourcery.com>
12029
12030 * remote.c (remote_pass_signals): Remove local 'buf' and use
12031 rs->buf.
12032 (remote_program_signals): Likewise.
12033
12034 2014-02-05 Yao Qi <yao@codesourcery.com>
12035
12036 * ctf.c: Include "inferior.h" and "gdbthread.h".
12037 (CTF_PID): A new macro.
12038 (ctf_open): Call inferior_appeared and add_thread_silent.
12039 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12040 (ctf_thread_alive): New function.
12041 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12042
12043 2014-02-05 Yao Qi <yao@codesourcery.com>
12044
12045 Revert this patch:
12046
12047 2013-05-24 Yao Qi <yao@codesourcery.com>
12048
12049 * tracepoint.c (TFILE_PID): Remove.
12050 (tfile_open): Don't add thread and inferior.
12051 (tfile_close): Don't set 'inferior_ptid'. Don't call
12052 exit_inferior_silent.
12053 (tfile_thread_alive): Remove.
12054 (init_tfile_ops): Don't set field 'to_thread_alive' of
12055 tfile_ops.
12056
12057 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12058
12059 * remote.c (remote_start_remote): Call remote_check_symbols even
12060 if only symbol-file (not file) has been given.
12061
12062 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12063
12064 * gdbarch.sh (skip_entrypoint): New callback.
12065 * gdbarch.c, gdbarch.h: Regenerate.
12066 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12067 * infrun.c (fill_in_stop_func): Likewise.
12068 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12069 (ppc_elfv2_elf_make_msymbol_special): New function.
12070 (ppc_elfv2_skip_entrypoint): Likewise.
12071 (ppc_linux_init_abi): Install them for ELFv2.
12072
12073 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12074
12075 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12076 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12077 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12078 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12079 structures returned in GPRs.
12080
12081 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12082
12083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12084 offset to the stack parameter list for the ELFv2 ABI.
12085
12086 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12087
12088 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12089 set_gdbarch_convert_from_func_ptr_addr and
12090 set_gdbarch_elf_make_msymbol_special for ELFv1.
12091 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12092 function descriptors on ELFv1.
12093 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12094 set up r12 at function entry.
12095
12096 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12097
12098 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12099 (struct gdbarch_tdep): New member elf_abi.
12100
12101 * rs6000-tdep.c: Include "elf/ppc64.h".
12102 (rs6000_gdbarch_init): Detect ELF ABI version.
12103
12104 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12105
12106 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12107 within a register pair holding a DFP 128-bit value on little-endian.
12108 (ppc64_sysv_abi_return_value_base): Likewise.
12109 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12110 (dfp_pseudo_register_write): Likewise.
12111
12112 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12113
12114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12115 offset on little-endian when passing _Decimal32.
12116 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12117
12118 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12119
12120 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12121 of the overlapped FP register within the VSX register on little-
12122 endian platforms.
12123 (efpr_pseudo_register_write): Likewise.
12124
12125 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12126
12127 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12128 offset on little-endian when passing small structures.
12129
12130 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12131
12132 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12133 (struct ppc64_sysv_argpos): New data structure.
12134 (ppc64_sysv_abi_push_float): Remove.
12135 (ppc64_sysv_abi_push_val): New function.
12136 (ppc64_sysv_abi_push_integer): Likewise.
12137 (ppc64_sysv_abi_push_freg): Likewise.
12138 (ppc64_sysv_abi_push_vreg): Likewise.
12139 (ppc64_sysv_abi_push_param): Likewise.
12140 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12141 (ppc64_sysv_abi_return_value_base): New function.
12142 (ppc64_sysv_abi_return_value): Refactor to use it.
12143
12144 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12145
12146 * NEWS: Document new target powerpc64le-*-linux*.
12147
12148 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12149
12150 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12151 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12152 core dumps.
12153 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12154 register set used in ELF core dumps. Add floating-point register set.
12155
12156 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12157
12158 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12159 dwarf2_to_gdb[] table using symbolic constants. Adjust
12160 penultimate entry from number representing the PC register
12161 to symbolic constant representing the MDR register. Add
12162 constant for the PC register to the end of the table.
12163
12164 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12165
12166 * bsd-kvm.c: Include <sys/param.h>
12167
12168 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12169
12170 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12171
12172 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12173
12174 * ada-lang.h (clear_ada_sym_cache): Delete.
12175
12176 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12177
12178 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12179
12180 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12181
12182 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12183 the sigreturn register save area only if the syscall is
12184 sigreturn.
12185
12186 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12187
12188 * valops.c (value_slice): Minor reformatting.
12189
12190 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12191
12192 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12193
12194 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12195
12196 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12197 New static globals.
12198 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12199 (ada_ignore_descriptive_types_p): New static global.
12200 (find_parallel_type_by_descriptive_type): Return immediately
12201 if ada_ignore_descriptive_types_p is set.
12202 (_initialize_ada_language): Register new commands "maintenance
12203 set ada", "maintenance show ada", "maintenance set ada
12204 ignore-descriptive-types" and "maintenance show ada
12205 ignore-descriptive-types".
12206 * NEWS: Add entry for new "maint ada set/show
12207 ignore-descriptive-types" commands.
12208
12209 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12210
12211 * record-btrace.c (record_btrace_close): Call btrace_teardown
12212 for all threads.
12213
12214 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12215
12216 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12217 "ui-out.h".
12218
12219 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12220
12221 * ada-typeprint (type_is_full_subrange_of_target_type):
12222 New function.
12223 (print_range): Add parameter bounds_prefered_p. If not set,
12224 try printing range types using the name of their base type.
12225 (print_range_type): Add parameter bounds_prefered_p.
12226 Use it in call to print_range.
12227 (print_array_type, ada_print_type): Update calls to print_range
12228 and print_range_type.
12229
12230 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12231
12232 * ada-typeprint.c (print_array_type, print_choices, print_range)
12233 (print_range_bound, print_dynamic_range_bound, print_range_type):
12234 Remove declaration.
12235
12236 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12237
12238 * ada-typeprint.c (print_range): Add missing empty line
12239 after local declaration.
12240
12241 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12242
12243 * ada-valprint.c (print_optional_low_bound): Get index_type's
12244 target type for as long as it is a TYPE_CODE_RANGE.
12245
12246 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12247
12248 * procfs.c (procfs_make_note_section): Remove assertion and
12249 associated comment.
12250
12251 2014-01-24 Yao Qi <yao@codesourcery.com>
12252
12253 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12254 * corelow.c (get_core_siginfo): Likewise.
12255
12256 2014-01-24 Yao Qi <yao@codesourcery.com>
12257
12258 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12259 ULONGEST. Don't check 'len' is negative.
12260 (remote_write_bytes): Change type of 'len' to ULONGEST.
12261
12262 2014-01-23 Tom Tromey <tromey@redhat.com>
12263
12264 PR python/16485:
12265 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12266 Handle exception from frame.block.
12267 (FrameVars.fetch_frame_locals): Likewise.
12268
12269 2014-01-23 Tom Tromey <tromey@redhat.com>
12270
12271 PR python/16487:
12272 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12273 on a NULL pointer. Move "goto error" to correct place.
12274
12275 2014-01-23 Tom Tromey <tromey@redhat.com>
12276
12277 PR python/16491:
12278 * python/py-framefilter.c (apply_frame_filter): Call
12279 ensure_python_env after computing gdbarch.
12280
12281 2014-01-23 Yao Qi <yao@codesourcery.com>
12282
12283 * target.c (raw_memory_xfer_partial): Change argument type
12284 from void * to gdb_byte *.
12285 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12286
12287 2014-01-22 Doug Evans <dje@google.com>
12288
12289 New gdbserver option --debug-format=timestamp.
12290 * NEWS: Mention it.
12291
12292 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12293
12294 * syscalls/s390x-linux.xml: New file.
12295 * syscalls/s390-linux.xml: New file.
12296 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12297 (XML_SYSCALL_FILENAME_S390X): Likewise.
12298 (op_svc): New enum value for SVC opcode.
12299 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12300 (s390_linux_get_syscall_number): New function.
12301 (s390_gdbarch_init): Register '*get_syscall_number' and the
12302 syscall xml file name.
12303 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12304 "s390-linux.xml" and "s390x-linux.xml".
12305 * NEWS: Announce new feature.
12306
12307 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12308
12309 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12310
12311 2014-01-22 Pedro Alves <palves@redhat.com>
12312
12313 * xtensa-config.c: Include defs.h.
12314
12315 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12316
12317 * common/common-utils.h: Add "ARI:" comment beside __func__
12318 reference.
12319
12320 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12321
12322 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12323 documentation a bit.
12324
12325 2014-01-21 Roland McGrath <mcgrathr@google.com>
12326
12327 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12328 * configure: Regenerate.
12329 * aclocal.m4: Regenerate.
12330 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12331 New substituted variables.
12332 (install-strip): New target.
12333 (INSTALL_SCRIPT): New substituted variable.
12334 (FLAGS_TO_PASS): Add it.
12335 (install-only): Use $(INSTALL_SCRIPT) rather than
12336 $(INSTALL_PROGRAM) for gcore.
12337
12338 2014-01-20 Tom Tromey <tromey@redhat.com>
12339
12340 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12341 together.
12342
12343 2014-01-20 Tom Tromey <tromey@redhat.com>
12344
12345 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12346 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12347 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12348 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12349 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12350 (struct cmd_list_element) <flags>: Remove.
12351 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12352 doc_allocated>: New fields.
12353 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12354 bitfields.
12355 * maint.c (maintenance_do_deprecate): Update.
12356 * top.c (execute_command): Update.
12357
12358 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12359
12360 * xtensa-linux-nat.c: Include asm/ptrace.h.
12361
12362 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12363
12364 * Makefile.in (SFILES): Add d-support.c.
12365 (COMMON_OBS): Add d-support.o.
12366 * d-lang.h (d_parse_symbol): Add comment, now defined in
12367 d-support.c.
12368 * d-lang.c (parse_call_convention)
12369 (parse_attributes, parse_function_types)
12370 (parse_function_args, parse_type, parse_identifier)
12371 (call_convention_p, d_parse_symbol): Move functions to ...
12372 * d-support.c: ... New file.
12373
12374 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12375
12376 * d-lang.h (d_parse_symbol): Add declaration.
12377 * d-lang.c (extract_identifiers)
12378 (extract_type_info): Remove functions.
12379 (parse_call_convention, parse_attributes)
12380 (parse_function_types, parse_function_args)
12381 (parse_type, parse_identifier, call_convention_p)
12382 (d_parse_symbol): New functions.
12383 (d_demangle): Use d_parse_symbol to demangle D symbols.
12384
12385 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12386
12387 * d-lang.h (struct builtin_d_type): New data type.
12388 (builtin_d_type): Add declaration.
12389 * d-lang.c (d_language_arch_info, build_d_types)
12390 (builtin_d_type): New functions.
12391 (enum d_primitive_types): New data type.
12392 (d_language_defn): Change c_language_arch_info to
12393 d_language_arch_info.
12394 (d_type_data): New static variable.
12395 (_initialize_d_language): Initialize d_type_data.
12396
12397 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12398
12399 * d-lang.h (d_main_name): Add declaration.
12400 * d-lang.c (d_main_name): New function.
12401 * symtab.c (find_main_name): Add call to d_main_name.
12402
12403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12404
12405 * d-lang.c (d_language_defn): Change macro_expansion_c to
12406 macro_expansion_no.
12407
12408 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12409
12410 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12411
12412 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12413
12414 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12415 gdb_exception" declaration.
12416 * remote.c (getpkt_or_notif_sane): Likewise.
12417
12418 2014-01-17 Doug Evans <dje@google.com>
12419
12420 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12421 function, contents of dirnames_to_char_ptr_vec_append moved here.
12422 (delim_string_to_char_ptr_vec): New function.
12423 (dirnames_to_char_ptr_vec_append): Rewrite.
12424 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12425
12426 2014-01-17 Doug Evans <dje@google.com>
12427
12428 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12429 and moved here ...
12430 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12431 #include "common-utils.h".
12432 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12433 * common/vec.h (VEC_ASSERT_PASS): Update.
12434 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12435 (MACH_CHECK_ERROR): Update.
12436
12437 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12438
12439 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12440 comments.
12441 * gdbarch.h: Regenerate.
12442
12443 2014-01-16 Tom Tromey <tromey@redhat.com>
12444
12445 * value.c (struct value) <regnum>: Move earlier.
12446
12447 2014-01-16 Tom Tromey <tromey@redhat.com>
12448
12449 * remote.c (extended_remote_create_inferior): Rename from
12450 extended_remote_create_inferior_1. Add "ops" argument. Remove
12451 old implementation.
12452
12453 2014-01-16 Pedro Alves <palves@redhat.com>
12454
12455 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12456 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12457 the backchain.
12458
12459 2014-01-16 Doug Evans <dje@google.com>
12460
12461 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12462
12463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12464
12465 * btrace.h (btrace_thread_flag): New.
12466 (struct btrace_thread_info) <flags>: New.
12467 * record-btrace.c (record_btrace_resume_thread)
12468 (record_btrace_find_thread_to_move, btrace_step_no_history)
12469 (btrace_step_stopped, record_btrace_start_replaying)
12470 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12471 (record_btrace_find_resume_thread): New.
12472 (record_btrace_resume, record_btrace_wait): Extend.
12473 (record_btrace_can_execute_reverse): New.
12474 (record_btrace_open): Fail in non-stop mode.
12475 (record_btrace_set_replay): Split into this, ...
12476 (record_btrace_stop_replaying): ... this, ...
12477 (record_btrace_clear_histories): ... and this.
12478 (init_record_btrace_ops): Init to_can_execute_reverse.
12479 * NEWS: Announce it.
12480
12481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12482
12483 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12484 (forward_target_decr_pc_after_break)
12485 (target_decr_pc_after_break): New.
12486 * target.c (forward_target_decr_pc_after_break)
12487 (target_decr_pc_after_break): New.
12488 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12489 instead of gdbarch_decr_pc_after_break.
12490 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12491 instead of gdbarch_decr_pc_after_break.
12492 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12493 instead of gdbarch_decr_pc_after_break.
12494 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12495 instead of gdbarch_decr_pc_after_break.
12496 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12497 instead of gdbarch_decr_pc_after_break.
12498 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12499 instead of gdbarch_decr_pc_after_break.
12500
12501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12502
12503 * btrace.c: Include regcache.h.
12504 (btrace_add_pc): New.
12505 (btrace_enable): Call btrace_add_pc.
12506 (btrace_is_empty): New.
12507 * btrace.h (btrace_is_empty): New.
12508 * record-btrace.c (require_btrace, record_btrace_info): Call
12509 btrace_is_empty.
12510
12511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12512
12513 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12514 Support delta reads.
12515 (linux_disable_btrace): Change return type.
12516 * common/linux-btrace.h (linux_read_btrace): Change parameters
12517 and return type to allow error reporting. Update users.
12518 (linux_disable_btrace): Change return type. Update users.
12519 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12520 New.
12521 (btrace_error): New.
12522 (btrace_block) <begin>: Comment on BEGIN == 0.
12523 * btrace.c (btrace_compute_ftrace): Start from the end of
12524 the current trace.
12525 (btrace_stitch_trace, btrace_clear_history): New.
12526 (btrace_fetch): Read delta trace, return if replaying.
12527 (btrace_clear): Move clear history code to btrace_clear_history.
12528 (parse_xml_btrace): Throw an error if parsing failed.
12529 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12530 and return type to allow error reporting.
12531 (target_read_btrace): Change parameters and return type to allow
12532 error reporting.
12533 * target.c (target_read_btrace): Update.
12534 * remote.c (remote_read_btrace): Support delta reads. Pass
12535 errors on.
12536 * NEWS: Announce it.
12537
12538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12539
12540 * record.h (record_btrace_frame_unwind)
12541 (record_btrace_tailcall_frame_unwind): New declarations.
12542 * dwarf2-frame: Include record.h
12543 (dwarf2_frame_cfa): Throw an error for btrace frames.
12544 * record-btrace.c: Include hashtab.h.
12545 (btrace_get_bfun_name): New.
12546 (btrace_call_history): Call btrace_get_bfun_name.
12547 (struct btrace_frame_cache): New.
12548 (bfcache): New.
12549 (bfcache_hash, bfcache_eq, bfcache_new): New.
12550 (btrace_get_frame_function): New.
12551 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12552 (record_btrace_frame_this_id): Compute own id.
12553 (record_btrace_frame_prev_register): Provide PC, throw_error
12554 for all other registers.
12555 (record_btrace_frame_sniffer): Detect btrace frames.
12556 (record_btrace_tailcall_frame_sniffer): New.
12557 (record_btrace_frame_dealloc_cache): New.
12558 (record_btrace_frame_unwind): Add new functions.
12559 (record_btrace_tailcall_frame_unwind): New.
12560 (_initialize_record_btrace): Allocate cache.
12561 * btrace.c (btrace_clear): Call reinit_frame_cache.
12562 * NEWS: Announce it.
12563
12564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12565
12566 * record-btrace.c (record_btrace_set_replay)
12567 (record_btrace_goto_begin, record_btrace_goto_end)
12568 (record_btrace_goto): New.
12569 (init_record_btrace_ops): Initialize them.
12570 * NEWS: Announce it.
12571
12572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12573
12574 * record-btrace.c (record_btrace_find_new_threads)
12575 (record_btrace_thread_alive): New.
12576 (init_record_btrace_ops): Initialize to_find_new_threads and
12577 to_thread_alive.
12578
12579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12580
12581 * record-btrace.c (record_btrace_resume): New.
12582 (record_btrace_wait): New.
12583 (init_record_btrace_ops): Initialize to_wait and to_resume.
12584
12585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12586
12587 * record-btrace.c (record_btrace_xfer_partial)
12588 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12589 (record_btrace_allow_memory_access): New.
12590 (init_record_btrace_ops): Initialize new methods.
12591 * target.c (raw_memory_xfer_partial): Bail out if target reports
12592 that this memory is not available.
12593
12594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12595
12596 * target.h (target_ops) <to_insert_breakpoint>
12597 <to_remove_breakpoint>: Add target_ops parameter.
12598 (forward_target_insert_breakpoint): New.
12599 (forward_target_remove_breakpoint): New.
12600 (memory_remove_breakpoint, memory_insert_breakpoint):
12601 Add target_ops parameter.
12602 * target.c (target_insert_breakpoint): Split into this and ...
12603 (forward_target_insert_breakpoint): ... this.
12604 (target_remove_breakpoint): Split into this and ...
12605 (forward_target_remove_breakpoint): ... this.
12606 (debug_to_insert_breakpoint): Add target_ops parameter.
12607 Call forward_target_insert_breakpoint.
12608 (debug_to_remove_breakpoint): Add target_ops parameter.
12609 Call forward_target_remove_breakpoint.
12610 (update_current_target): Do not inherit or default to_insert_breakpoint
12611 and to_remove_breakpoint.
12612 * corelow.c (ignore): Add target_ops parameter.
12613 * exec.c (ignore): Add target_ops parameter.
12614 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12615 Add target_ops parameter.
12616 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12617 Add target_ops parameter.
12618 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12619 Add target_ops parameter.
12620 * record-full.c (record_full_beneath_to_insert_breakpoint)
12621 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12622 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12623 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12624 (record_full_core_remove_breakpoint): Add target_ops parameter.
12625 Update users.
12626 (record_full_beneath_to_insert_breakpoint_ops)
12627 (record_full_beneath_to_remove_breakpoint_ops)
12628 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12629 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12630 tmp_to_remove_breakpoint_ops,
12631 record_full_beneath_to_insert_breakpoint_ops, and
12632 record_full_beneath_to_remove_breakpoint_ops.
12633 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12634 (m32r_remove_breakpoint): Add target_ops parameter.
12635 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12636 Add target_ops parameter.
12637 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12638 Add target_ops parameter.
12639
12640 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12641 Markus Metzger <markus.t.metzger@intel.com>
12642
12643 * record-btrace.c: Include frame-unwind.h.
12644 (record_btrace_frame_unwind_stop_reason)
12645 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12646 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12647 New.
12648 (init_record_btrace_ops): Install it.
12649
12650 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12651
12652 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12653 get_prev_frame_1.
12654
12655 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12656
12657 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12658 earlier.
12659
12660 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12661
12662 * frame-unwind.c: Include target.h.
12663 (frame_unwind_try_unwinder): New function with code from ...
12664 (frame_unwind_find_by_frame): ... here. New variable
12665 unwinder_from_target, call also target_get_unwinder)
12666 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12667 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12668 * target.h (struct target_ops): New fields to_get_unwinder and
12669 to_get_tailcall_unwinder.
12670 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12671
12672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12673
12674 * record-btrace.c (record_btrace_fetch_registers)
12675 (record_btrace_store_registers)
12676 (record_btrace_to_prepare_to_store): New.
12677 (init_record_btrace_ops): Add the above.
12678
12679 2014-01-16 Tom Tromey <tromey@redhat.com>
12680
12681 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12682 * target.h (struct target_ops) <to_prepare_to_store>: Add
12683 argument.
12684 (target_prepare_to_store): Add argument.
12685 * target.c (debug_to_prepare_to_store): Add argument.
12686 (update_current_target): Update.
12687 * remote.c (remote_prepare_to_store): Add 'self' argument.
12688 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12689 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12690 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12691 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12692 argument.
12693 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12694 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12695 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12696 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12697 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12698
12699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12700
12701 * btrace.h (replay) <replay>: New.
12702 (btrace_is_replaying): New.
12703 * btrace.c (btrace_clear): Free replay iterator.
12704 (btrace_is_replaying): New.
12705 * record-btrace.c (record_btrace_is_replaying): New.
12706 (record_btrace_info): Print insn number if replaying.
12707 (record_btrace_insn_history): Start at replay position.
12708 (record_btrace_call_history): Start at replay position.
12709 (init_record_btrace_ops): Init to_record_is_replaying.
12710
12711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12712
12713 * record-btrace.c (record_btrace_insn_history_range): Include
12714 end.
12715 (record_btrace_insn_history_from): Adjust range.
12716 (record_btrace_call_history_range): Include
12717 end.
12718 (record_btrace_call_history_from): Adjust range.
12719 * NEWS: Announce changes.
12720
12721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12722
12723 * record.h (enum record_print_flag)
12724 <record_print_indent_calls>: New.
12725 * record.c (get_call_history_modifiers): Recognize /c modifier.
12726 (_initialize_record): Document /c modifier.
12727 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12728 Reorder fields. Optionally indent the function name. Update
12729 all users.
12730 * NEWS: Announce changes.
12731
12732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12733
12734 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12735
12736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12737
12738 * btrace.c (ftrace_new_function): Start counting at one.
12739 * record-btrace.c (record_btrace_info): Adjust number of calls
12740 and insns.
12741 * NEWS: Announce it.
12742
12743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12744
12745 * record-btrace.c (btrace_call_history_insn_range): Print
12746 insn range as [begin, end].
12747
12748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12749
12750 * btrace.h (struct btrace_func_link): New.
12751 (enum btrace_function_flag): New.
12752 (struct btrace_inst): Rename to ...
12753 (struct btrace_insn): ...this. Update all users.
12754 (struct btrace_func) <ibegin, iend>: Remove.
12755 (struct btrace_func_link): New.
12756 (struct btrace_func): Rename to ...
12757 (struct btrace_function): ...this. Update all users.
12758 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12759 (number, level, flags>: New.
12760 (struct btrace_insn_iterator): Rename to ...
12761 (struct btrace_insn_history): ...this.
12762 Update all users.
12763 (struct btrace_insn_iterator, btrace_call_iterator): New.
12764 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12765 (struct btrace_target_info) <begin, end, level>
12766 <insn_history, call_history>: New.
12767 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12768 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12769 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12770 (btrace_call_number, btrace_call_begin, btrace_call_end)
12771 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12772 (btrace_find_function_by_number, btrace_set_insn_history)
12773 (btrace_set_call_history): New.
12774 * btrace.c (btrace_init_insn_iterator)
12775 (btrace_init_func_iterator, compute_itrace): Remove.
12776 (ftrace_print_function_name, ftrace_print_filename)
12777 (ftrace_skip_file): Change
12778 parameter to const.
12779 (ftrace_init_func): Remove.
12780 (ftrace_debug): Use new btrace_function fields.
12781 (ftrace_function_switched): Also consider gaining and
12782 losing symbol information).
12783 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12784 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12785 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12786 New.
12787 (ftrace_new_function): Move. Remove debug print.
12788 (ftrace_update_lines, ftrace_update_insns): New.
12789 (ftrace_update_function): Check for call, ret, and jump.
12790 (compute_ftrace): Renamed to ...
12791 (btrace_compute_ftrace): ...this. Rewritten to compute call
12792 stack.
12793 (btrace_fetch, btrace_clear): Updated.
12794 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12795 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12796 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12797 (btrace_call_number, btrace_call_begin, btrace_call_end)
12798 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12799 (btrace_find_function_by_number, btrace_set_insn_history)
12800 (btrace_set_call_history): New.
12801 * record-btrace.c (require_btrace): Use new btrace thread
12802 info fields.
12803 (record_btrace_info, btrace_insn_history)
12804 (record_btrace_insn_history, record_btrace_insn_history_range):
12805 Use new btrace thread info fields and new iterator.
12806 (btrace_func_history_src_line): Rename to ...
12807 (btrace_call_history_src_line): ...this. Use new btrace
12808 thread info fields.
12809 (btrace_func_history): Rename to ...
12810 (btrace_call_history): ...this. Use new btrace thread info
12811 fields and new iterator.
12812 (record_btrace_call_history, record_btrace_call_history_range):
12813 Use new btrace thread info fields and new iterator.
12814
12815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12816
12817 * frame.h (frame_id_build_unavailable_stack_special): New.
12818 * frame.c (frame_id_build_unavailable_stack_special): New.
12819
12820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12821
12822 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12823 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12824 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12825 to gdbarch.
12826 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12827 (i386_insn_is_jump, i386_jmp_p): New.
12828 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12829 insn_is_jump to gdbarch.
12830 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12831 * gdbarch.h: Regenerated.
12832 * gdbarch.c: Regenerated.
12833 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12834 (default_insn_is_jump): New.
12835 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12836 (default_insn_is_jump): New.
12837
12838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12839
12840 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12841 Change to ...
12842 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12843 (btrace_read_type) <btrace_read_new>: Change to ...
12844 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12845
12846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12847
12848 * common/linux-btrace.c (linux_read_btrace): Free trace from
12849 previous iteration.
12850
12851 2014-01-15 Doug Evans <dje@google.com>
12852
12853 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12854 uint32_t.
12855
12856 2014-01-15 Tom Tromey <tromey@redhat.com>
12857
12858 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12859 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12860 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12861 (set_objfile_main_name): New function.
12862 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12863 language_of_main>: New fields.
12864 (set_objfile_main_name): Declare.
12865 * symtab.c (find_main_name): Loop over objfiles to find the main
12866 name and language.
12867 (set_main_name): Now static.
12868 (get_main_info): Add comment.
12869 * symtab.h (set_main_name): Don't declare.
12870
12871 2014-01-15 Tom Tromey <tromey@redhat.com>
12872
12873 * symtab.c (main_progspace_key): New global.
12874 (struct main_info): New.
12875 (name_of_main, language_of_main): Remove.
12876 (get_main_info, main_info_cleanup): New function.
12877 (set_main_name, main_name, main_language): Use get_main_info.
12878 (_initialize_symtab): Initialize main_progspace_key.
12879
12880 2014-01-15 Tom Tromey <tromey@redhat.com>
12881
12882 * dbxread.c (process_one_symbol): Update.
12883 * dwarf2read.c (read_partial_die): Update.
12884 * symfile.c (set_initial_language): Call main_language.
12885 * symtab.c (language_of_main): Now static.
12886 (set_main_name): Add 'lang' parameter.
12887 (find_main_name): Update.
12888 (main_language): New function.
12889 (symtab_observer_executable_changed): Update.
12890 * symtab.h (set_main_name): Update.
12891 (language_of_main): Remove.
12892 (main_language): Declare.
12893
12894 2014-01-15 Tom Tromey <tromey@redhat.com>
12895
12896 * symfile.c (init_entry_point_info): Use new "initialized" field.
12897 Update.
12898 * objfiles.h (struct entry_point) <initialized>: New field.
12899 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12900 (struct objfile) <ei>: ...here. Remove.
12901 * objfiles.c (entry_point_address_query): Update.
12902
12903 2014-01-15 Tom Tromey <tromey@redhat.com>
12904
12905 * objfiles.c (entry_point_address_query): Relocate entry point
12906 address.
12907 (objfile_relocate1): Do not relocate entry point address.
12908 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12909 <the_bfd_section_index>: New field.
12910 * symfile.c (init_entry_point_info): Find the entry point's
12911 section.
12912
12913 2014-01-15 Tom Tromey <tromey@redhat.com>
12914
12915 * solib-frv.c (enable_break): Use entry_point_address_query.
12916
12917 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12918
12919 * NEWS: Add note on improved process record-replay on
12920 arm*-linux* targets.
12921
12922 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12923
12924 * arm-tdep.c (enum arm_record_result): New enum.
12925 (arm_record_unsupported_insn): New function.
12926 (arm_record_coproc_data_proc): Removed.
12927 (thumb2_record_ld_st_multiple): New function.
12928 (thumb2_record_ld_st_dual_ex_tbb): New function.
12929 (thumb2_record_data_proc_sreg_mimm): New function.
12930 (thumb2_record_ps_dest_generic): New function.
12931 (thumb2_record_branch_misc_cntrl): New function.
12932 (thumb2_record_str_single_data): New function.
12933 (thumb2_record_ld_mem_hints): New function.
12934 (thumb2_record_ld_word): New function.
12935 (thumb2_record_lmul_lmla_div): New function.
12936 (thumb2_record_decode_insn_handler): New function.
12937 (decode_insn): Add thumb32 instruction handlers.
12938
12939 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12940
12941 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12942 (struct arm_linux_record_tdep): Declare.
12943 (arm_canonicalize_syscall): New function.
12944 (arm_all_but_pc_registers_record): New function.
12945 (arm_linux_syscall_record): New function.
12946 (arm_linux_init_abi): Add syscall recording constructs.
12947 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12948 decoding. (arm_record_coproc_data_proc): Update arm syscall
12949 decoding.
12950 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12951 <arm_syscall_record>: New field.
12952 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12953 gdb_target_obs.
12954
12955 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12956
12957 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12958 register for push instruction recording.
12959
12960 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12961
12962 * arm-tdep.c (thumb_record_misc): Update to correct logical
12963 error while recording ldm, ldmia and pop instructions.
12964
12965 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12966
12967 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12968
12969 2014-01-15 Pedro Alves <palves@redhat.com>
12970
12971 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12972 (go32_resume, go32_fetch_registers, store_register)
12973 (go32_store_registers, go32_prepare_to_store)
12974 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12975 (go32_create_inferior, go32_can_run, go32_terminal_init)
12976 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12977 declarations.
12978
12979 2014-01-15 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (async_callback_ftype): New typedef.
12982 (struct target_ops) <to_async>: Use it.
12983
12984 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12985
12986 * python/py-value.c (get_field_type): Remove unnecessary curly
12987 braces for single-statement if block.
12988
12989 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12990
12991 * python/py-type.c (convert_field): Add missing empty line
12992 after declarations.
12993
12994 2014-01-14 Doug Evans <dje@google.com>
12995
12996 * symfile.h (expand_symtabs_matching): Renamed from
12997 expand_partial_symbol_names. Update prototype.
12998 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12999 * symfile.c (expand_symtabs_matching): Renamed from
13000 expand_partial_symbol_names. New args file_matcher, kind.
13001 Rename arg fun to symbol_matcher.
13002 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13003 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13004 ada_expand_partial_symbol_name.
13005 (ada_make_symbol_completion_list): Update to call
13006 expand_symtabs_matching.
13007 (ada_add_global_exceptions): Call expand_symtabs_matching.
13008 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13009 call map_symbol_filenames.
13010 * symtab.c (sources_info): Update to call map_symbol_filenames.
13011 (search_symbols): Call expand_symtabs_matching.
13012 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13013 (default_make_symbol_completion_list_break_on): Update to call
13014 expand_symtabs_matching.
13015 (make_source_files_completion_list): Update to call
13016 map_symbol_filenames.
13017
13018 2014-01-14 Doug Evans <dje@google.com>
13019
13020 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13021 (expand_symtabs_symbol_matcher_ftype): New typedef.
13022 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13024 * symfile.c (expand_partial_symbol_names): Update to use
13025 expand_symtabs_symbol_matcher_ftype.
13026 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13027 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13028 Arg name_matcher renamed to symbol_matcher.
13029 * psymtab.c (recursively_search_psymtabs): Update to use
13030 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13031 sym_matcher.
13032 (expand_symtabs_matching_via_partial): Update to use
13033 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13034 Arg name_matcher renamed to symbol_matcher.
13035
13036 2014-01-14 Doug Evans <dje@google.com>
13037
13038 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13039 (map_partial_symbol_filenames): Ditto.
13040 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13041 (map_partial_symbol_filenames): Ditto.
13042 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13043 (map_partial_symbol_filenames): Ditto.
13044 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13045 (map_partial_symbol_filenames): Ditto.
13046 * symtab.c: Delete #include "psymtab.h".
13047
13048 2014-01-14 Pedro Alves <palves@redhat.com>
13049 Tom Tromey <tromey@redhat.com>
13050
13051 * infrun.c (use_displaced_stepping): Use find_record_target
13052 instead of RECORD_IS_USED.
13053 (adjust_pc_after_break): Use record_full_is_used instead of
13054 RECORD_IS_USED.
13055 * record-btrace.c (record_btrace_open): Call record_preopen
13056 instead of checking RECORD_IS_USED.
13057 * record-full.c (record_full_shortname)
13058 (record_full_core_shortname): New globals.
13059 (record_full_is_used): New function.
13060 (find_full_open): Call record_preopen instead of checking
13061 RECORD_IS_USED.
13062 (init_record_full_ops): Set the target's shortname to
13063 record_full_shortname.
13064 (init_record_full_core_ops): Set the target's shortname to
13065 record_full_core_shortname.
13066 * record-full.h (record_full_is_used): Declare.
13067 * record.c (find_record_target): Make extern.
13068 (record_preopen): New function.
13069 * record.h (RECORD_IS_USED): Delete macro.
13070 (find_record_target, record_preopen): Declare functions.
13071
13072 2014-01-14 Yao Qi <yao@codesourcery.com>
13073
13074 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13075 'len''s type to ULONGEST.
13076 (core_xfer_shared_libraries_aix): Likewise.
13077 * gdbarch.c, gdbarch.h: Regenerated.
13078 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13079 Change type of 'len' to ULONGEST.
13080 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13081 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13082
13083 2014-01-14 Yao Qi <yao@codesourcery.com>
13084
13085 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13086 type of 'len' to ULONGEST.
13087 (linux_xfer_osdata_processgroups): Likewise.
13088 (linux_xfer_osdata_threads): Likewise.
13089 (linux_xfer_osdata_fds): Likewise.
13090 (linux_xfer_osdata_isockets): Likewise.
13091 (linux_xfer_osdata_shm): Likewise.
13092 (linux_xfer_osdata_sem): Likewise.
13093 (linux_xfer_osdata_msg): Likewise.
13094 (linux_common_xfer_osdata): Likewise.
13095 (struct osdata_type) <getter>: Likewise.
13096 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13097 the declaration.
13098
13099 2014-01-14 Yao Qi <yao@codesourcery.com>
13100
13101 * target.h (target_xfer_partial_ftype): Update.
13102 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13103 ULONGEST.
13104 * aix-thread.c (aix_thread_xfer_partial): Change type of
13105 argument 'len' to ULONGEST.
13106 * auxv.c (procfs_xfer_auxv): Likewise.
13107 (ld_so_xfer_auxv): Likewise.
13108 (memory_xfer_auxv): Likewise.
13109 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13110 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13111 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13112 * corelow.c (core_xfer_partial): Likewise.
13113 * ctf.c (ctf_xfer_partial): Likewise.
13114 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13115 '%u'.
13116 (darwin_read_dyld_info): Likewise.
13117 (darwin_xfer_partial): Likewise.
13118 * exec.c (section_table_xfer_memory_partial): Likewise.
13119 (exec_xfer_partial): Likewise.
13120 * exec.h (section_table_xfer_memory_partial): Update
13121 declaration.
13122 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13123 instead of plongest.
13124 (gnu_xfer_partial): Likewise.
13125 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13126 (ia64_hpux_xfer_solib_got): Likewise.
13127 (ia64_hpux_xfer_partial): Likewise.
13128 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13129 * inf-ptrace.c (inf_ptrace_xfer_partial):
13130 * inf-ttrace.c (inf_ttrace_xfer_partial):
13131 * linux-nat.c (linux_xfer_siginfo): Likewise.
13132 (linux_nat_xfer_partial): Likewise.
13133 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13134 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13135 * monitor.c (monitor_xfer_memory): Likewise.
13136 (monitor_xfer_partial): Likewise.
13137 * procfs.c (procfs_xfer_partial): Likewise.
13138 * record-full.c (record_full_xfer_partial): Likewise.
13139 (record_full_core_xfer_partial): Likewise.
13140 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13141 instead of plongest.
13142 (gdbsim_xfer_partial): Likewise.
13143 * remote.c (remote_xfer_partial): Likewise.
13144 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13145 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13146 declaration.
13147 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13148 (rs6000_xfer_shared_libraries): Likewise.
13149 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13150 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13151 (sparc_xfer_partial): Likewise.
13152 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13153 (spu_xfer_partial): Likewise.
13154 * spu-multiarch.c (spu_xfer_partial): Likewise.
13155 * target.c (target_read_live_memory): Likewise.
13156 (memory_xfer_live_readonly_partial): Likewise.
13157 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13158 (target_xfer_partial, default_xfer_partial): Likewise.
13159 (current_xfer_partial): Likewise.
13160 * tracepoint.c (tfile_xfer_partial): Likewise.
13161 * windows-nat.c (windows_xfer_memory): Likewise. Call
13162 pulongest instead of plongest.
13163 (windows_xfer_partial): Likewise.
13164 (windows_xfer_shared_libraries): Likewise.
13165
13166 2014-01-14 Yao Qi <yao@codesourcery.com>
13167
13168 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13169 target_xfer_partial_ftype.
13170
13171 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13172
13173 PR python/15464
13174 PR python/16113
13175 * valops.c (value_struct_elt_bitpos): New function
13176 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13177 object to 'None' if the field name is an empty string ("").
13178 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13179 attribute to look for a field when 'name' is 'None'.
13180 (get_field_type): New function
13181
13182 2014-01-13 Doug Evans <dje@google.com>
13183
13184 PR symtab/16426
13185 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13186 (try_open_dwop_file): Ditto.
13187 * gdb_bfd.c: #include "vec.h".
13188 (bfdp): New typedef.
13189 (struct gdb_bfd_data): New member included_bfds.
13190 (gdb_bfd_unref): Unref all included bfds.
13191 (gdb_bfd_record_inclusion): New function.
13192 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13193
13194 2014-01-13 Tom Tromey <tromey@redhat.com>
13195
13196 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13197
13198 2014-01-13 Tom Tromey <tromey@redhat.com>
13199
13200 * defs.h (use_windows): Remove.
13201 * gdb.c (main): Update.
13202 * main.c (captured_main, gdb_main): Update.
13203 * main.h (struct captured_main_args) <use_windows>: Remove.
13204 * top.c (use_windows): Remove.
13205
13206 2014-01-13 Tom Tromey <tromey@redhat.com>
13207
13208 * defs.h (deprecated_flush_hook): Remove.
13209
13210 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13211
13212 PR threads/16216
13213 * linux-thread-db.c (try_thread_db_load): Add parameter
13214 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13215 (try_thread_db_load_from_pdir_1): Move it there from here.
13216 (try_thread_db_load_from_sdir): Update caller.
13217 (try_thread_db_load_from_dir): Move it there from here.
13218
13219 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13220
13221 * regformats/regdat.sh: Always rewrite the register file.
13222
13223 2014-01-13 Pedro Alves <palves@redhat.com>
13224
13225 * Makefile.in (CHECK_HEADERS): New variable.
13226 (check-headers:): New rule.
13227
13228 2014-01-13 Tom Tromey <tromey@redhat.com>
13229
13230 * cli/cli-setshow.c (do_set_command): Update.
13231 * defs.h (deprecated_set_hook): Remove.
13232 * top.c (deprecated_set_hook): Remove.
13233
13234 2014-01-13 Pedro Alves <palves@redhat.com>
13235
13236 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13237 the tracepoint if the PC is a pseudo-register.
13238
13239 2014-01-13 Tom Tromey <tromey@redhat.com>
13240
13241 * defs.h (XCALLOC): Remove.
13242 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13243 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13244 * dwarf2loc.c (allocate_piece_closure): Likewise.
13245 * elfread.c (elf_symfile_segments): Likewise.
13246 (elf_symfile_segments): Likewise.
13247 * gdbtypes.c (copy_type_recursive): Likewise.
13248 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13249 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13250 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13251 XCALLOC.
13252 * mt-tdep.c (mt_gdbarch_init): Likewise.
13253 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13254 XCALLOC.
13255 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13256 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13257 * registry.c (registry_alloc_data): Likewise.
13258 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13259 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13260 * serial.c (serial_fdopen_ops): Likewise.
13261 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13262 XCALLOC.
13263 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13264 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13265 not XCALLOC.
13266
13267 2014-01-13 Tom Tromey <tromey@redhat.com>
13268
13269 * defs.h (XMALLOC): Remove.
13270 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13271 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13272 * cli-out.c (struct ui_out *): Likewise.
13273 * cli/cli-dump.c (add_dump_command): Likewise.
13274 (add_dump_command): Likewise.
13275 * complaints.c (get_complaints): Likewise.
13276 (find_complaint): Likewise.
13277 * dwarf2-frame.c (execute_cfa_program): Likewise.
13278 * dwarf2read.c (abbrev_table_read_table): Likewise.
13279 * gdbarch.sh: Likewise.
13280 * gdbarch.c: Rebuild.
13281 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13282 * interps.c (interp_new): Likewise.
13283 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13284 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13285 * mi/mi-console.c (mi_console_file_new): Likewise.
13286 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13287 * mi/mi-out.c (mi_out_new): Likewise.
13288 * mi/mi-parse.c (mi_parse): Likewise.
13289 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13290 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13291 * observer.c (xalloc_observer_list_node): Likewise.
13292 * regcache.c (regcache_xmalloc_1): Likewise.
13293 * reggroups.c (reggroup_new): Likewise.
13294 (_initialize_reggroup): Likewise.
13295 * registry.c (register_data_with_cleanup): Likewise.
13296 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13297 * ser-base.c (serial_ttystate): Likewise.
13298 * ser-mingw.c (make_pipe_state): Likewise.
13299 * ser-pipe.c (pipe_open): Likewise.
13300 * serial.c (serial_open): Likewise.
13301 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13302 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13303 (tui_alloc_win_info): Likewise.
13304 (tui_add_content_elements): Likewise.
13305 * tui/tui-file.c (tui_file_new): Likewise.
13306 * tui/tui-out.c (tui_out_new): Likewise.
13307 * ui-file.c (mem_file_new): Likewise.
13308 * ui-out.c (push_level): Likewise.
13309 (make_cleanup_ui_out_end): Likewise.
13310 (append_header_to_list): Likewise.
13311 (ui_out_new): Likewise.
13312 * user-regs.c (user_reg_add_builtin): Likewise.
13313
13314 2014-01-13 Tom Tromey <tromey@redhat.com>
13315
13316 * defs.h (XZALLOC): Remove.
13317 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13318 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13319 (get_ada_tasks_inferior_data): Likewise.
13320 * auto-load.c (get_auto_load_pspace_data): Likewise.
13321 * auxv.c (get_auxv_inferior_data): Likewise.
13322 * bfd-target.c (target_bfd_reopen): Likewise.
13323 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13324 (deprecated_insert_raw_breakpoint): Likewise.
13325 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13326 * corelow.c (core_open): Likewise.
13327 * darwin-nat.c (darwin_check_new_threads): Likewise.
13328 (darwin_attach_pid): Likewise.
13329 * dummy-frame.c (dummy_frame_push): Likewise.
13330 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13331 * dwarf2loc.c (allocate_piece_closure): Likewise.
13332 * elfread.c (elf_symfile_segments): Likewise.
13333 * eval.c (ptrmath_type_p): Likewise.
13334 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13335 * gdbtypes.c (alloc_type_arch): Likewise.
13336 (alloc_type_instance): Likewise.
13337 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13338 * inf-child.c (inf_child_can_use_agent): Likewise.
13339 * inflow.c (get_inflow_inferior_data): Likewise.
13340 * infrun.c (save_infcall_suspend_state): Likewise.
13341 * jit.c (jit_reader_load): Likewise.
13342 (get_jit_objfile_data): Likewise.
13343 (get_jit_program_space_data): Likewise.
13344 (jit_object_open_impl): Likewise.
13345 (jit_symtab_open_impl): Likewise.
13346 (jit_block_open_impl): Likewise.
13347 (jit_frame_sniffer): Likewise.
13348 * linux-fork.c (add_fork): Likewise.
13349 * maint.c (make_command_stats_cleanup): Likewise.
13350 * objfiles.c (get_objfile_pspace_data): Likewise.
13351 * opencl-lang.c (struct lval_closure): Likewise.
13352 * osdata.c (osdata_start_osdata): Likewise.
13353 * progspace.c (new_address_space): Likewise.
13354 (add_program_space): Likewise.
13355 * remote-sim.c (get_sim_inferior_data): Likewise.
13356 * sh-tdep.c (sh_gdbarch_init): Likewise.
13357 * skip.c (Ignore): Likewise.
13358 (skip_delete_command): Likewise.
13359 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13360 (library_list_start_library): Likewise.
13361 (solib_aix_current_sos): Likewise.
13362 * solib-darwin.c (get_darwin_info): Likewise.
13363 (darwin_current_sos): Likewise.
13364 * solib-dsbt.c (get_dsbt_info): Likewise.
13365 * solib-ia64-hpux.c (new_so_list): Likewise.
13366 (ia64_hpux_get_solib_linkage_addr): Likewise.
13367 * solib-spu.c (append_ocl_sos): Likewise.
13368 (spu_current_sos): Likewise.
13369 * solib-svr4.c (get_svr4_info): Likewise.
13370 (svr4_keep_data_in_core): Likewise.
13371 (library_list_start_library): Likewise.
13372 (svr4_default_sos): Likewise.
13373 (svr4_read_so_list): Likewise.
13374 * solib-target.c (library_list_start_library): Likewise.
13375 (solib_target_current_sos): Likewise.
13376 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13377 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13378 * symfile.c (default_symfile_segments): Likewise.
13379 * target-descriptions.c (tdesc_data_init): Likewise.
13380 (tdesc_create_reg): Likewise.
13381 (struct tdesc_type *): Likewise.
13382 (tdesc_create_vector): Likewise.
13383 (tdesc_set_struct_size): Likewise.
13384 (struct tdesc_type *): Likewise.
13385 (tdesc_free_feature): Likewise.
13386 (tdesc_create_feature): Likewise.
13387 * windows-nat.c (windows_add_thread): Likewise.
13388 (windows_make_so): Likewise.
13389 * xml-support.c (gdb_xml_body_text): Likewise.
13390 (gdb_xml_create_parser_and_cleanup): Likewise.
13391 (xml_process_xincludes): Likewise.
13392 * xml-syscall.c (allocate_syscalls_info): Likewise.
13393 (syscall_create_syscall_desc): Likewise.
13394
13395 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13396
13397 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13398 function, with code from i386_stap_parse_special_token.
13399 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13400 (i386_stap_parse_special_token): Move code to the two functions
13401 above; simplify it.
13402
13403 2014-01-09 Pedro Alves <palves@redhat.com>
13404 Hui Zhu <hui@codesourcery.com>
13405
13406 PR gdb/16101
13407 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13408 bp_err_string. Don't mark the location shlib_disabled if the
13409 error thrown wasn't a generic or memory error. Catch errors
13410 thrown while inserting breakpoints in overlayed code. Output
13411 error message of software breakpoints.
13412 * remote.c (remote_insert_breakpoint): If this breakpoint has
13413 target-side commands but this stub doesn't support Z0 packets,
13414 throw NOT_SUPPORTED_ERROR error.
13415 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13416 * target.h (target_insert_breakpoint): Extend comment.
13417 (target_insert_hw_breakpoint): Add comment.
13418
13419 2014-01-08 Pedro Alves <palves@redhat.com>
13420
13421 * remote.c (remote_add_thread): Add threads silently if starting
13422 up.
13423 (remote_notice_new_inferior): If in all-stop, and starting up,
13424 don't call notice_new_inferior.
13425 (get_current_thread): New function, factored out from ...
13426 (add_current_inferior_and_thread): ... this. Adjust.
13427 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13428 found any thread, then select the remote's current thread as GDB's
13429 current thread too.
13430
13431 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13432
13433 * NEWS: Create a new section for the next release branch.
13434 Rename the section of the current branch, now that it has
13435 been cut.
13436
13437 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13438
13439 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13440 * version.in: Bump version to 7.7.50.DATE-cvs.
13441
13442 2014-01-08 Yao Qi <yao@codesourcery.com>
13443
13444 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13445 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13446 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13447
13448 2014-01-08 Yao Qi <yao@codesourcery.com>
13449
13450 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13451 return value of bfd_get_filename to symbol_file_add_from_bfd.
13452
13453 2014-01-08 Pierre Muller <muller@sourceware.org>
13454
13455 Fix PR16201.
13456 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13457 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13458 to prim_record_mininal_symbol_and_info.
13459 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13460 in call to prim_record_minimal_symbol_and_info.
13461 (read_pe_exported_syms): Set index field of section_data.
13462
13463 2014-01-07 Andrew Pinski <apinski@cavium.com>
13464
13465 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13466 * features/aarch64.c: Regenerate.
13467
13468 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13469
13470 * target.c (return_null): Define.
13471 (update_current_target): Use it instead of return_zero for
13472 functions that return a pointer.
13473
13474 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13475
13476 * source.c (add_path): Fix check for duplicated paths in the previously
13477 included paths.
13478
13479 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13480
13481 * ada-lang.c: Remove duplicated include statements.
13482 * alphabsd-nat.c: Ditto.
13483 * amd64-darwin-tdep.c: Ditto.
13484 * amd64fbsd-nat.c: Ditto.
13485 * auto-load.c: Ditto.
13486 * ax-gdb.c: Ditto.
13487 * breakpoint.c: Ditto.
13488 * dbxread.c: Ditto.
13489 * fork-child.c: Ditto.
13490 * gdb_usleep.c: Ditto.
13491 * i386-darwin-tdep.c: Ditto.
13492 * i386fbsd-nat.c: Ditto.
13493 * infcmd.c: Ditto.
13494 * inferior.c: Ditto.
13495 * jv-lang.c: Ditto.
13496 * linux-nat.c: Ditto.
13497 * linux-tdep.c: Ditto.
13498 * m68kbsd-nat.c: Ditto.
13499 * m68klinux-nat.c: Ditto.
13500 * microblaze-tdep.c: Ditto.
13501 * mips-linux-tdep.c: Ditto.
13502 * mn10300-tdep.c: Ditto.
13503 * nto-tdep.c: Ditto.
13504 * opencl-lang.c: Ditto.
13505 * osdata.c: Ditto.
13506 * printcmd.c: Ditto.
13507 * regcache.c: Ditto.
13508 * remote-m32r-sdi.c: Ditto.
13509 * remote.c: Ditto.
13510 * symfile.c: Ditto.
13511 * symtab.c: Ditto.
13512 * tilegx-linux-nat.c: Ditto.
13513 * tilegx-tdep.c: Ditto.
13514 * tracepoint.c: Ditto.
13515 * valops.c: Ditto.
13516 * vaxbsd-nat.c: Ditto.
13517 * windows-nat.c: Ditto.
13518 * xtensa-tdep.c: Ditto.
13519
13520 2014-01-07 Yao Qi <yao@codesourcery.com>
13521
13522 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13523
13524 2014-01-07 Yao Qi <yao@codesourcery.com>
13525 Joel Brobecker <brobecker@adacore.com>
13526
13527 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13528 (pdc_write_regs): Likewise.
13529 (fetch_regs_kernel_thread): Likewise.
13530 (store_regs_kernel_thread): Likewise.
13531
13532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13533
13534 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13535 tagged type objects to their actual type.
13536
13537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13538
13539 * ada-valprint.c (print_field_values): Add "language" parameter.
13540 Update calls to print_field_values and print_variant_part.
13541 Pass new parameter "language" in call to val_print instead
13542 of "current_language". Replace call to ada_val_print by call
13543 to val_print.
13544 (print_variant_part): Add "language" parameter.
13545 (ada_val_print_struct_union): Update call to print_field_values.
13546
13547 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13548
13549 * ada-valprint.c (ui_memcpy): Delete.
13550 (ada_print_floating): Update documentation. Add empty line
13551 between between function documentation and implementation.
13552 Delete variable "buffer". Use ui_file_xstrdup in place of
13553 ui_file_put. Minor adjustments following this change.
13554
13555 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13556
13557 * ada-valprint.c (ada_val_print_string): New function,
13558 extracted from ada_val_print_array.
13559 (ada_val_print_array): Replace extracted code by call
13560 to ada_val_print_string followed by a return. Move
13561 "else" branch to the function's top block.
13562
13563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13564
13565 * ada-valprint.c (ada_val_print_array): Move implementation
13566 down. Rename parameter "offset" and "val" into "offset_aligned"
13567 and "original_value" respectively. Add parameter "offset".
13568
13569 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13570
13571 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13572 re-organizing the code. Change the "???" message printed
13573 when target type is a TYPE_CODE_UNDEF into
13574 "<ref to undefined type>".
13575
13576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13577
13578 * ada-valprint.c (print_record): Delete, implementation inlined...
13579 (ada_val_print_struct_union): ... here. Remove call to
13580 ada_check_typedef in inlined implementation.
13581
13582 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13583
13584 * ada-valprint.c (ada_val_print_gnat_array): New function,
13585 extracted from ada_val_print_1;
13586 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13587 (ada_val_print_flt, ada_val_print_struct_union)
13588 (ada_val_print_ref): Likewise.
13589 (ada_val_print_1): Delete variables i and elttype.
13590 Replace extracted-out code by call to corresponding
13591 new functions.
13592
13593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13594
13595 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13596
13597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13598
13599 * ada-valprint.c (ada_val_print_1): Replace calls to
13600 ada_val_print_1 by calls to val_print.
13601
13602 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13603
13604 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13605 Update calls to self accordingly. Replace calls to c_val_print
13606 by calls to val_print.
13607
13608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13609
13610 * ada-valprint.c (print_record): Delete declaration.
13611 (adjust_type_signedness, ada_val_print_1): Likewise.
13612 (ada_val_print): Move function implementation down.
13613 (print_variant_part, print_field_values, print_record):
13614 Move function implementation up.
13615
13616 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13617
13618 * python/py-type.c (typy_get_name): New function.
13619 (type_object_getset): Add entry for attribute "name".
13620 * NEWS: Add entry mentioning this new attribute.
13621
13622 2014-01-07 Yao Qi <yao@codesourcery.com>
13623
13624 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13625 statement.
13626
13627 2014-01-07 Yao Qi <yao@codesourcery.com>
13628
13629 * gnu-nat.c (info_port_rights): Add qualifier const to
13630 argument args.
13631
13632 2014-01-07 Yao Qi <yao@codesourcery.com>
13633
13634 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13635
13636 2014-01-07 Yao Qi <yao@codesourcery.com>
13637
13638 * gnu-nat.c (make_inf) Update declaration.
13639 (make_inf): Make it static.
13640 (inf_set_traced): Likewise.
13641 (inf_port_to_thread, inf_task_died_status): Likewise.
13642
13643 2014-01-07 Yao Qi <yao@codesourcery.com>
13644
13645 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13646
13647 2014-01-07 Yao Qi <yao@codesourcery.com>
13648
13649 * gnu-nat.c (_initialize_gnu_nat): Declare.
13650
13651 2014-01-07 Yao Qi <yao@codesourcery.com>
13652
13653 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13654 'enum bfd_endian'.
13655 (struct gdbarch_info) <byte_order>: Change type to
13656 'enum bfd_endian'.
13657 <byte_order_for_code>: Likewise.
13658 * gdbarch.c, gdbarch.h: Regenerated.
13659
13660 2014-01-06 Sasha Smundak <asmundak@google.com>
13661
13662 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13663
13664 2014-01-06 Tom Tromey <tromey@redhat.com>
13665
13666 * doublest.c (convert_doublest_to_floatformat): Use const, not
13667 CONST.
13668 * somread.c (som_symtab_read): Likewise.
13669
13670 2014-01-07 Hui Zhu <hui@codesourcery.com>
13671
13672 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13673 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13674 (gdb_bfd_fopen): Ditto.
13675 (gdb_bfd_openr): Ditto.
13676 (gdb_bfd_openw): Ditto.
13677 (gdb_bfd_openr_iovec): Ditto.
13678 (gdb_bfd_fdopenr): Ditto.
13679 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13680 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13681 with xstrdup.
13682 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13683 with xstrdup.
13684 * symfile-mem.c (symbol_file_add_from_memory): Removed
13685 gdb_bfd_stash_filename.
13686
13687 2014-01-03 Doug Evans <dje@google.com>
13688
13689 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13690 output.
13691
13692 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13693
13694 Update year range in copyright notice of all files.
13695
13696 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13697
13698 * top.c (print_gdb_version): Set copyright year to 2014.
13699
13700 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13701
13702 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13703
13704 For older changes see ChangeLog-2013.
13705 \f
13706 Local Variables:
13707 mode: change-log
13708 left-margin: 8
13709 fill-column: 74
13710 version-control: never
13711 coding: utf-8
13712 End:
This page took 0.310667 seconds and 4 git commands to generate.