MIPS: Correct heuristic prologue termination conditions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab50adb6
MR
12014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips16_instruction_is_compact_branch): New
4 function.
5 (micromips_instruction_is_compact_branch): Likewise.
6 (mips16_scan_prologue): Terminate scanning upon seeing a branch
7 or a compact jump, reaching a jump delay slot, or seeing a
8 second non-prologue instruction.
9 (micromips_scan_prologue): Also terminate scanning upon seeing a
10 compact branch or jump, or reaching a branch or jump delay slot.
11 (mips32_scan_prologue): Terminate scanning upon reaching a branch
12 or jump delay slot, or seeing a second non-prologue instruction.
13 (mips32_instruction_has_delay_slot): Retain instruction
14 examination code only, update arguments accordingly and move
15 instruction fetch pieces to...
16 (mips32_insn_at_pc_has_delay_slot): ... this new function.
17 (micromips_instruction_has_delay_slot): Likewise and to...
18 (micromips_insn_at_pc_has_delay_slot): ... this new function.
19 (mips16_instruction_has_delay_slot): Likewise and to...
20 (mips16_insn_at_pc_has_delay_slot): ... this new function.
21 (mips_single_step_through_delay): Update accordingly.
22 (mips_adjust_breakpoint_address): Likewise.
23
ae790652
MR
242014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
25
26 * mips-tdep.c (micromips_instruction_has_delay_slot): When
27 !mustbe32 also return 1 for 32-bit instructions.
28 (mips16_instruction_has_delay_slot): Likewise. Add an
29 explanatory comment.
30
9b807e7b
MR
312014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
32
33 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
34 symbols special.
35
0d5ed153
MR
362014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
37
38 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
39 update comments.
40 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
41 for the breakpoint's address. Don't preinitialize `placed_size'.
42 (insert_bp_location): Set `reqstd_address' rather than
43 `placed_address'.
44 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
45 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
46 address.
47 (bkpt_remove_location): Likewise.
48 (deprecated_insert_raw_breakpoint): Likewise.
49 (deprecated_remove_raw_breakpoint): Likewise.
50 (find_single_step_breakpoint): Likewise.
51 * mem-break.c (default_memory_insert_breakpoint): Use
52 `reqstd_address' for the breakpoint's address. Don't set
53 `placed_address' or `placed_size' if breakpoint contents couldn't
54 have been determined.
55 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
56 the breakpoint's address.
57 (remote_insert_hw_breakpoint): Likewise. Don't set
58 `placed_address' or `placed_size' if breakpoint couldn't have been
59 set.
60 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
61 `reqstd_address' for the breakpoint's address.
62 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
63 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
64 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
65 * microblaze-linux-tdep.c
66 (microblaze_linux_memory_remove_breakpoint): Likewise.
67 * monitor.c (monitor_insert_breakpoint): Likewise.
68 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
69 (procfs_insert_hw_breakpoint): Likewise.
70 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
71 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
72 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
73 * remote-mips.c (mips_insert_breakpoint): Likewise.
74 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
75
3e871532
LM
762014-10-03 Luis Machado <lgustavo@codesourcery.com>
77
78 * valops.c (value_assign): Check for bit field assignments
79 before calling architecture-specific register value
80 conversion functions.
81
ec48dc8b
PM
822014-10-03 Pierre Muller <muller@sourceware.org>
83
84 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
85
b57bacec
PA
862014-10-02 Pedro Alves <palves@redhat.com>
87
88 * breakpoint.c (breakpoints_should_be_inserted_now): Use
89 threads_are_executing.
90 * breakpoint.h (breakpoints_should_be_inserted_now): Add
91 describing comment.
92 * gdbthread.h (threads_are_executing): Declare.
93 (handle_signal_stop) <random signals>: Don't print about the
94 signal here if stopping.
95 (end_stepping_range): Don't notify observers here.
96 (normal_stop): Update the thread list. If stopped by a random
97 signal or a stepping range ended, notify observers.
98 * thread.c (threads_executing): New global.
99 (init_thread_list): Clear 'threads_executing'.
100 (set_executing): Set or clear 'threads_executing'.
101 (threads_are_executing): New function.
102 (update_threads_executing): New function.
103 (update_thread_list): Use it.
104
13fd3ff3
PA
1052014-10-02 Pedro Alves <palves@redhat.com>
106
107 PR breakpoints/17431
108 * breakpoint.c (update_breakpoints_after_exec): Don't create
109 overlay, longjmp, std terminate nor exception breakpoints here.
110
32990ada
PA
1112014-10-02 Pedro Alves <palves@redhat.com>
112
113 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
114 Adjust comments.
115 * inferior.c (find_inferior_for_program_space): Give preference to
116 the current inferior.
117 * inferior.h (find_inferior_for_program_space): Update comment.
118 * progspace.c (switch_to_program_space_and_thread): Prefer the
119 current inferior if it's bound to the program space requested. If
120 the inferior found doesn't have a PID yet, don't bother looking up
121 a thread.
122 * progspace.h (switch_to_program_space_and_thread): Adjust
123 comment.
124 * thread.c (any_thread_of_process, any_live_thread_of_process):
125 Give preference to the current thread.
126
0fec99e8
PA
1272014-10-01 Pedro Alves <palves@redhat.com>
128
129 * breakpoint.c (insert_bp_location): Error out if inserting a
130 software breakpoint at a read-only address.
131 * target.c (memory_xfer_check_region): New function, factored out
132 from ...
133 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
134 ULONGEST.
135 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
136 against the memory region attributes.
137
2ddf4301
SM
1382014-10-01 Simon Marchi <simon.marchi@ericsson.com>
139
140 * NEWS: Announce new exit-code field in -list-thread-groups
141 output.
142 * inferior.c (exit_inferior_1): Don't clear exit code.
143 (inferior_appeared): Clear exit code.
144 * mi/mi-main.c (print_one_inferior): Add printing of the exit
145 code.
146
5fdeec1d
PA
1472014-10-01 Pedro Alves <palves@redhat.com>
148
149 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
150 GENERATED" along with emacs/vi read-only markers.
151 * regformats/aarch64.dat: Regenerate.
152 * regformats/arm-with-iwmmxt.dat: Regenerate.
153 * regformats/arm-with-neon.dat: Regenerate.
154 * regformats/arm-with-vfpv2.dat: Regenerate.
155 * regformats/arm-with-vfpv3.dat: Regenerate.
156 * regformats/i386/amd64-avx-linux.dat: Regenerate.
157 * regformats/i386/amd64-avx.dat: Regenerate.
158 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
159 * regformats/i386/amd64-avx512.dat: Regenerate.
160 * regformats/i386/amd64-linux.dat: Regenerate.
161 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
162 * regformats/i386/amd64-mpx.dat: Regenerate.
163 * regformats/i386/amd64.dat: Regenerate.
164 * regformats/i386/i386-avx-linux.dat: Regenerate.
165 * regformats/i386/i386-avx.dat: Regenerate.
166 * regformats/i386/i386-avx512-linux.dat: Regenerate.
167 * regformats/i386/i386-avx512.dat: Regenerate.
168 * regformats/i386/i386-linux.dat: Regenerate.
169 * regformats/i386/i386-mmx-linux.dat: Regenerate.
170 * regformats/i386/i386-mmx.dat: Regenerate.
171 * regformats/i386/i386-mpx-linux.dat: Regenerate.
172 * regformats/i386/i386-mpx.dat: Regenerate.
173 * regformats/i386/i386.dat: Regenerate.
174 * regformats/i386/x32-avx-linux.dat: Regenerate.
175 * regformats/i386/x32-avx.dat: Regenerate.
176 * regformats/i386/x32-avx512-linux.dat: Regenerate.
177 * regformats/i386/x32-avx512.dat: Regenerate.
178 * regformats/i386/x32-linux.dat: Regenerate.
179 * regformats/i386/x32.dat: Regenerate.
180 * regformats/microblaze-with-stack-protect.dat: Regenerate.
181 * regformats/mips-dsp-linux.dat: Regenerate.
182 * regformats/mips-linux.dat: Regenerate.
183 * regformats/mips64-dsp-linux.dat: Regenerate.
184 * regformats/mips64-linux.dat: Regenerate.
185 * regformats/nios2-linux.dat: Regenerate.
186 * regformats/rs6000/powerpc-32.dat: Regenerate.
187 * regformats/rs6000/powerpc-32l.dat: Regenerate.
188 * regformats/rs6000/powerpc-64l.dat: Regenerate.
189 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
190 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
191 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
192 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
193 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
194 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
195 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
196 * regformats/s390-linux32.dat: Regenerate.
197 * regformats/s390-linux32v1.dat: Regenerate.
198 * regformats/s390-linux32v2.dat: Regenerate.
199 * regformats/s390-linux64.dat: Regenerate.
200 * regformats/s390-linux64v1.dat: Regenerate.
201 * regformats/s390-linux64v2.dat: Regenerate.
202 * regformats/s390-te-linux64.dat: Regenerate.
203 * regformats/s390x-linux64.dat: Regenerate.
204 * regformats/s390x-linux64v1.dat: Regenerate.
205 * regformats/s390x-linux64v2.dat: Regenerate.
206 * regformats/s390x-te-linux64.dat: Regenerate.
207 * regformats/tic6x-c62x-linux.dat: Regenerate.
208 * regformats/tic6x-c62x.dat: Regenerate.
209 * regformats/tic6x-c64x-linux.dat: Regenerate.
210 * regformats/tic6x-c64x.dat: Regenerate.
211 * regformats/tic6x-c64xp-linux.dat: Regenerate.
212 * regformats/tic6x-c64xp.dat: Regenerate.
213
db74e4ba
PA
2142014-10-01 Pedro Alves <palves@redhat.com>
215
216 * features/Makefile: Update comments.
217 (XMLTOC): List all xml files we build C files from.
218 (clean-cfiles): New rule.
219
d63f2f84
PA
2202014-10-01 Pedro Alves <palves@redhat.com>
221
222 * features/i386/amd64-avx512-linux.c: Regenerate.
223 * features/i386/amd64-avx512.c: Regenerate.
224 * features/i386/x32-avx512-linux.c: Regenerate.
225 * features/i386/x32-avx512.c: Regenerate.
226
20ad026d
PA
2272014-10-01 Pedro Alves <palves@redhat.com>
228
229 * features/Makefile (WHICH): Remove arm-with-m,
230 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
231
acc9fe45
PA
2322014-10-01 Pedro Alves <palves@redhat.com>
233
234 * features/Makefile (clean): New rule.
235
e001e535
PA
2362014-10-01 Pedro Alves <palves@redhat.com>
237
238 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
239 (zmm14h): Add missing end quotes.
240
bdc14417
PA
2412014-10-01 Pedro Alves <palves@redhat.com>
242
243 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
244 * features/aarch64.c: Regenerate.
245
d83ad864
DB
2462014-09-30 Don Breazeal <donb@codesourcery.com>
247
248 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
249 code so as to work with follow_fork_inferior.
250 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
251 (inf_ttrace_create_inferior): Remove reference to
252 inf_ttrace_vfork_ppid.
253 (inf_ttrace_attach): Ditto.
254 (inf_ttrace_detach): Ditto.
255 (inf_ttrace_kill): Use current_inferior instead of
256 inf_ttrace_vfork_ppid.
257 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
258 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
259 inferior away from the parent.
260 * infrun.c (follow_fork): Call follow_fork_inferior instead of
261 target_follow_fork.
262 (follow_fork_inferior): New function.
263 (follow_inferior_reset_breakpoints): Make function static.
264 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
265 * linux-nat.c (linux_child_follow_fork): Move target-independent
266 code to infrun.c:follow_fork_inferior.
267
29082443
AA
2682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
269
270 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
271 * gdbarch.c: Regenerate.
272 * gdbarch.h: Likewise.
273 * corelow.c (sniff_core_bfd): Drop presence check for deleted
274 gdbarch method 'regset_from_core_section'.
275 (get_core_register_section): Remove handling for the case that
276 regset == NULL and regset_from_core_section is defined.
277 (get_core_registers): Drop check for deleted method.
278 * procfs.c (procfs_do_thread_registers): Adjust comment.
279
f968fe80
AA
2802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
281
282 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
283 (linux_nat_make_corefile_notes): Remove.
284 (linux_target_install_ops): Do not set target method
285 'make_corefile_notes'.
286 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
287 Remove field.
288 (linux_corefile_thread_callback): Instead of args->collect, call
289 linux_collect_thread_registers.
290 (linux_make_corefile_notes): Remove 'collect' parameter. Return
291 NULL unless there is a regset iterator.
292 (linux_make_corefile_notes_1): Remove.
293 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
294 by linux_make_corefile_notes.
295 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
296
174ad59a
AA
2972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
298
299 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
300 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
301 Remove.
302 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
303
97094034
AA
3042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
305
306 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
307 (xtensa_iterate_over_regset_sections): New.
308 (xtensa_gdbarch_init): Adjust gdbarch initialization.
309
f73d3ce7
AA
3102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
311
312 * vax-tdep.c (vax_regset_from_core_section): Remove.
313 (vax_iterate_over_regset_sections): New.
314 (vax_gdbarch_init): Adjust gdbarch initialization.
315
cb24567a
AA
3162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
317
318 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
319 (tilegx_regset_from_core_section): Remove.
320 (tilegx_iterate_over_regset_sections): New.
321 (tilegx_linux_init_abi): Adjust gdbarch initialization.
322
e5139de8
AA
3232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
324
325 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
326 (sparc_iterate_over_regset_sections): New.
327 (sparc32_gdbarch_init): Adjust gdbarch initialization.
328 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
329 targets.
330 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
331 (sparc64fbsd_init_abi): Call fbsd_init_abi.
332 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
333 target method 'make_corefile_notes'.
334
c6d41a6f
AA
3352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
336
337 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
338 'sizeof_gregset' and 'sizeof_fpregset'.
339 * sh-tdep.c (sh_regset_from_core_section): Remove.
340 (sh_iterate_over_regset_sections): New.
341 (sh_gdbarch_init): Adjust gdbarch initialization.
342 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
343 sizeof_fpregset.
344 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
345 'sizeof_gregset'.
346
9845a0b5
AA
3472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
348
349 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
350 (score7_linux_iterate_over_regset_sections): New.
351 (score_gdbarch_init): Adjust gdbarch initialization.
352
23ea9aeb
AA
3532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
354
355 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
356 FreeBSD targets.
357 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
358 method 'make_corefile_notes'.
359 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
360 (ppcfbsd_regset_from_core_section): Remove.
361 (ppcfbsd_iterate_over_regset_sections): New.
362 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
363 initialization.
364 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
365 (ppcnbsd_iterate_over_regset_sections): New.
366 (ppcnbsd_init_abi): Adjust.
367 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
368 (ppcobsd_iterate_over_regset_sections): New.
369 (ppcobsd_init_abi): Adjust.
370 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
371 (rs6000_aix_iterate_over_regset_sections): New.
372 (rs6000_aix_init_osabi): Adjust.
373
c5b8d704
AA
3742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
375
376 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
377 (nios2_regset_from_core_section): Remove.
378 (nios2_iterate_over_regset_sections): New.
379 (nios2_linux_init_abi): Adjust gdbarch initialization.
380
3636e608
AA
3812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
382
383 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
384 (am33_iterate_over_regset_sections): New.
385 (am33_linux_init_osabi): Adjust gdbarch initialization.
386
d4036235
AA
3872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
388
389 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
390 (mips_linux_iterate_over_regset_sections): New.
391 (mips_linux_init_abi): Adjust gdbarch initialization.
392 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
393 (mips64obsd_iterate_over_regset_sections): New.
394 (mips64obsd_init_abi): Adjust.
395 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
396 (mipsnbsd_iterate_over_regset_sections): New.
397 (mipsnbsd_init_abi): Adjust.
398
b61ddd6e
AA
3992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
400
401 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
402 (m88k_iterate_over_regset_sections): New.
403 (m88k_gdbarch_init): Adjust gdbarch initialization.
404
55a2906a
AA
4052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
406
407 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
408 (ia64_linux_iterate_over_regset_sections): New.
409 (ia64_linux_init_abi): Adjust gdbarch initialization.
410
022c98ab
AA
4112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
412
413 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
414 (m68kbsd_iterate_over_regset_sections): New.
415 (m68kbsd_init_abi): Adjust gdbarch initialization.
416 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
417 (m68k_linux_iterate_over_regset_sections): New.
418 (m68k_linux_init_abi): Adjust gdbarch initialization.
419
5fac247f
AA
4202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
421
422 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
423 (m32r_linux_regset_from_core_section): Remove.
424 (m32r_linux_iterate_over_regset_sections): New.
425 (m32r_linux_init_abi): Adjust gdbarch initialization.
426
490496c3
AA
4272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
428
429 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
430 (amd64obsd_iterate_over_regset_sections): New.
431 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
432 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
433 Remove.
434 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
435 regset_from_core_section initialization.
436 * i386-tdep.c (i386_regset_from_core_section): Remove.
437 (i386_iterate_over_regset_sections): New.
438 (i386_gdbarch_init): Adjust gdbarch initialization.
439 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
440 (i386_iterate_over_regset_sections): New prototype.
441 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
442 Remove.
443 (i386obsd_aout_iterate_over_regset_sections): New.
444 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
445 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
446 targets.
447 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
448 (amd64fbsd_init_abi): Call fbsd_init_abi.
449 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
450 (i386fbsd4_init_abi): Call fbsd_init_abi.
451 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
452 target method 'make_corefile_notes'.
453 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
454
50c5eb53
AA
4552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
456
457 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
458 (hppa_hpux_iterate_over_regset_sections): New.
459 (hppa_hpux_init_abi): Adjust gdbarch initialization.
460 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
461 (hppa_linux_iterate_over_regset_sections): New.
462 (hppa_linux_init_abi): Adjust.
463 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
464 (hppanbsd_iterate_over_regset_sections): New.
465 (hppanbsd_init_abi): Adjust.
466 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
467 (hppaobsd_iterate_over_regset_sections): New.
468 (hppaobsd_init_abi): Adjust.
469
66afae4f
AA
4702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
471
472 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
473 (frv_linux_iterate_over_regset_sections): New.
474 (frv_linux_init_abi): Adjust gdbarch initialization.
475
ed09174e
AA
4762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
477
478 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
479 (armbsd_iterate_over_regset_sections): New prototype.
480 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
481 (armbsd_iterate_over_regset_sections): New.
482 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
483 initialization.
484
dff2166e
AA
4852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
486
487 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
488 (alpha_linux_iterate_over_regset_sections): New.
489 (alpha_linux_init_abi): Adjust gdbarch initialization.
490 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
491 prototype.
492 (alphanbsd_iterate_over_regset_sections): New prototype.
493
4108500a
AA
4942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
495
496 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
497 Remove.
498 (aarch64_linux_iterate_over_regset_sections): New.
499 (aarch64_linux_init_abi): Adjust gdbarch initialization.
500
a904c024
AA
5012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
502
503 * fbsd-tdep.c: New file.
504 * fbsd-tdep.h: New file.
505 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
506 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
507 (ALLDEPFILES): Add fbsd-tdep.c.
508
8f0435f7
AA
5092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
510
511 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
512 parameter.
513 * gdbarch.h: Regenerate.
514 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
515 iterator.
516 (get_core_register_section): Add parameter 'regset' and use it, if
517 set. Add parameter 'min_size' and verify the bfd section size
518 against it.
519 (get_core_registers_cb): Add parameter 'regset' and pass it to
520 get_core_register section. For the "standard" register sections
521 ".reg" and ".reg2", set an appropriate default for human_name.
522 (get_core_registers): Don't abort when the gdbarch has an iterator
523 but no regset_from_core_section. Add NULL/0 for parameters
524 'regset'/'min_size' in calls to get_core_register_section.
525 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
526 'regset' and use it instead of calling the
527 regset_from_core_section gdbarch method.
528 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
529 * i386-tdep.c (i386_supply_xstateregset)
530 (i386_collect_xstateregset, i386_xstateregset): Moved to
531 i386-linux-tdep.c.
532 (i386_regset_from_core_section): Drop handling for .reg-xfp and
533 .reg-xstate.
534 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
535 core file support only if the regset iterator hasn't been set.
536 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
537 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
538 Moved from i386-tdep.c and renamed to *_linux*.
539 (i386_linux_iterate_over_regset_sections): Add regset parameter to
540 each callback invocation. Allow any .reg-xstate size when reading
541 from a core file.
542 * amd64-tdep.c (amd64_supply_xstateregset)
543 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
544 amd64-linux-tdep.c.
545 (amd64_regset_from_core_section): Remove.
546 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
547 install an amd64-specific regset_from_core_section gdbarch method.
548 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
549 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
550 Moved from amd64-tdep.c and renamed to *_linux*.
551 (amd64_linux_iterate_over_regset_sections): Add regset parameter
552 to each callback invocation. Allow any .reg-xstate size when
553 reading from a core file.
554 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
555 (arm_linux_iterate_over_regset_sections): Add regset parameter to
556 each callback invocation.
557 (arm_linux_init_abi): No longer set the regset_from_core_section
558 gdbarch method.
559 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
560 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
561 each callback invocation.
562 (ppc_linux_init_abi): No longer set the regset_from_core_section
563 gdbarch method.
564 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
565 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
566 (s390_regset_from_core_section): Remove.
567 (s390_iterate_over_regset_sections): Add regset parameter to each
568 callback invocation.
569 (s390_gdbarch_init): No longer set the regset_from_core_section
570 gdbarch method. Drop initialization of deleted tdep fields.
571
5aa82d05
AA
5722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
573
574 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
575 (amd64_linux_iterate_over_regset_sections): New.
576 (amd64_linux_init_abi_common): Don't install the regset section
577 list, but the new iterator in gdbarch.
578 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
579 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
580 (arm_linux_iterate_over_regset_sections): ...here. New function.
581 (arm_linux_init_abi): Set iterator instead of section list.
582 * corelow.c (get_core_registers_cb): New function, logic moved
583 from...
584 (get_core_registers): ...loop body here. Use new iterator method
585 instead of walking through the regset section list.
586 * gdbarch.sh: Remove 'core_regset_sections'. New method
587 'iterate_over_regset_sections'. New typedef
588 'iterate_over_regset_sections_cb'.
589 * gdbarch.c: Regenerate.
590 * gdbarch.h: Likewise.
591 * i386-linux-tdep.c (i386_linux_regset_sections)
592 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
593 Remove.
594 (i386_linux_iterate_over_regset_sections): New.
595 (i386_linux_init_abi): Don't choose a regset section list, but
596 install new iterator in gdbarch.
597 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
598 (linux_collect_regset_section_cb): New function, logic moved
599 from...
600 (linux_collect_thread_registers): ...loop body here. Use iterator
601 method instead of walking through list.
602 (linux_make_corefile_notes_1): Check for presence of iterator
603 method instead of regset section list.
604 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
605 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
606 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
607 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
608 (ppc_linux_iterate_over_regset_sections): ...here. New function.
609 (ppc_linux_init_abi): Don't choose from above regset section
610 lists, but install new iterator in gdbarch.
611 * regset.h (struct core_regset_section): Remove.
612 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
613 have_linux_v1, have_linux_v2, and have_tdb.
614 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
615 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
616 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
617 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
618 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
619 (s390_iterate_over_regset_sections): ...here. New function. Use
620 new tdep fields.
621 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
622 regset section lists, but install new iterator.
623
2eca4a8d
JK
6242014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
625
626 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
627
a73c2b56
SM
6282014-09-26 Simon Marchi <simon.marchi@ericsson.com>
629
630 * progspace.c (print_program_space): Don't prune program spaces
631 before printing them.
632
03d46957
PA
6332014-09-25 Pedro Alves <palves@redhat.com>
634
635 * infrun.c (user_visible_resume_ptid): Don't check
636 singlestep_breakpoints_inserted_p.
637
e558d7c1
PA
6382014-09-25 Pedro Alves <palves@redhat.com>
639
640 * breakpoint.c (should_be_inserted): Add debug output.
641
7f89fd65
PA
6422014-09-25 Pedro Alves <palves@redhat.com>
643
644 * infrun.c (stepping_past_instruction_at)
645 (clear_exit_convenience_vars): Point at infrun.h instead of
646 inferior.h.
647 (handle_signal_stop): Fix typo.
648
b7576e5c
YQ
6492014-09-24 Yao Qi <yao@codesourcery.com>
650
651 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
652 bitmask.
653
9a6cf368
GB
6542014-09-22 Gary Benson <gbenson@redhat.com>
655
656 * target.c (target_stop): Updated comment.
657
03f4463b
GB
6582014-09-22 Gary Benson <gbenson@redhat.com>
659
660 * target/target.h (target_stop_ptid): Renamed as...
661 (target_stop_and_wait): New function. Updated comment.
662 All uses updated.
663 (target_continue_ptid): Renamed as...
664 (target_continue_no_signal): New function. Updated comment.
665 All uses updated.
666
a25a5a45
PA
6672014-09-22 Pedro Alves <palves@redhat.com>
668
669 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
670 and "auto" merged.
671 * breakpoint.c (enum ugll_insert_mode): New enum.
672 (always_inserted_mode): Now a plain boolean.
673 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
674 (breakpoints_always_inserted_mode): Delete.
675 (breakpoints_should_be_inserted_now): New function.
676 (insert_breakpoints): Pass UGLL_INSERT to
677 update_global_location_list instead of calling
678 insert_breakpoint_locations manually.
679 (create_solib_event_breakpoint_1): New, factored out from ...
680 (create_solib_event_breakpoint): ... this.
681 (create_and_insert_solib_event_breakpoint): Use
682 create_solib_event_breakpoint_1 instead of calling
683 insert_breakpoint_locations manually.
684 (update_global_location_list): Change parameter type from boolean
685 to enum ugll_insert_mode. All callers adjusted. Adjust to use
686 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
687 (update_global_location_list_nothrow): Change parameter type from
688 boolean to enum ugll_insert_mode.
689 (_initialize_breakpoint): "breakpoint always-inserted" option is
690 now a boolean command. Update help text.
691 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
692 (breakpoints_should_be_inserted_now): New declaration.
693 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
694 Remove breakpoints_always_inserted_mode check.
695 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
696 * remote.c (remote_start_remote): Likewise.
697
04086b45
PA
6982014-09-22 Pedro Alves <palves@redhat.com>
699
700 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
701 (insert_breakpoints): Don't call insert_breakpoint_locations here.
702 Instead, pass UGLL_INSERT to update_global_location_list.
703 (update_global_location_list): Change parameter type from boolean
704 to enum ugll_insert_mode. All callers adjusted. Adjust to use
705 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
706 (create_solib_event_breakpoint_1): New, factored out from ...
707 (create_solib_event_breakpoint): ... this.
708 (create_and_insert_solib_event_breakpoint): Use
709 create_solib_event_breakpoint_1 instead of calling
710 insert_breakpoint_locations manually.
711 (update_global_location_list): Handle UGLL_INSERT.
712
44702360
PA
7132014-09-22 Pedro Alves <palves@redhat.com>
714
715 * breakpoint.c (enum ugll_insert_mode): New enum.
716 (update_global_location_list)
717 (update_global_location_list_nothrow): Change parameter type from
718 boolean to enum ugll_insert_mode. All callers adjusted.
719
93c6145a
JB
7202014-09-19 Joel Brobecker <brobecker@adacore.com>
721
722 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
723 SystemTap support in GDB.
724
89a5711c
DB
7252014-09-19 Don Breazeal <donb@codesourcery.com>
726
727 * linux-nat.c (linux_handle_extended_wait): Call
728 linux_ptrace_get_extended_event.
729 (wait_lwp): Call linux_is_extended_waitstatus.
730 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
731 and linux_is_extended_waitstatus.
732 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
733 linux_ptrace_get_extended_event.
734 (linux_ptrace_get_extended_event): New function.
735 (linux_is_extended_waitstatus): New function.
736 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
737 (linux_is_extended_waitstatus): New declarations.
738
c3b7b696
YQ
7392014-09-19 Yao Qi <yao@codesourcery.com>
740
741 * dwarf2read.c (dwarf_decode_lines): Update declaration.
742 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
743 comments. Callers update.
744 (dwarf_decode_lines): Likewise.
745 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
746 comments. Skip the line table if 'lowpc' is greater than
747 'address'. Don't check
748 dwarf2_per_objfile->has_section_at_zero.
749
2b4fd423
DE
7502014-09-18 Doug Evans <dje@google.com>
751
752 * NEWS: Mention new "producer" attribute of gdb.Symtab.
753 * python/py-symtab.c (stpy_get_producer): New function.
754 (symtab_object_getset): Add "producer" attribute.
755
5e43d467
UW
7562014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
757
758 PR gdb/17384
759 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
760 (do_captured_read_memory_integer): Remove.
761 (safe_read_memory_integer): Use target_read_memory directly instead
762 of catching errors in do_captured_read_memory_integer.
763
04e79979
MR
7642014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
765
766 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
767 not gdb/doc.
768
76aeec5b
SDJ
7692014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
770
771 * objc-lang.c (find_implementation_from_class): Remove dead code.
772
2f693f9d
SDJ
7732014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
774
775 PR cli/7233
776 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
777 "fprintf_unfiltered (gdb_stdlog...)".
778
bb9d5f81
PP
7792014-09-16 Patrick Palka <patrick@parcs.ath.cx>
780
781 PR breakpoints/12526
782 * breakpoint.h (struct watchpoint): New fields val_bitpos and
783 val_bitsize.
784 * breakpoint.c (watch_command_1): Use these fields to retain
785 bitfield information.
786 (extract_bitfield_from_watchpoint_value): New function.
787 (watchpoint_check): Use it.
788 (update_watchpoint): Use it. Optimize the address and length of a
789 HW watchpoint pointing to a bitfield.
790 * value.h (unpack_value_bitfield): New prototype.
791 * value.c (unpack_value_bitfield): Make extern.
792
05db5edd
ST
7932014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
794
795 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
796 x86-dregs.o.
797 * gnu-nat.c (inf_threads): New function.
798 * gnu-nat.h (inf_threads_ftype): New typedef.
799 (inf_threads): New declaration.
800 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
801 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
802 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
803 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
804 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
805 (i386_gnu_dr_get_control): New functions.
806 (reg_addr): New structure.
807 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
808 i386 debugging register hooks.
809 * NEWS: Mention this.
810
5a578da5
OJ
8112014-08-13 Omair Javaid <omair.javaid@linaro.org>
812
813 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
814 vector data transfer instructions.
815 (arm_record_coproc_data_proc): Updated.
816
f20f80dd
OJ
8172014-08-13 Omair Javaid <omair.javaid@linaro.org>
818
819 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
820 arm_record_exreg_ld_st_insn.
821 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
822 load/store insns.
823
851f26ae
OJ
8242014-08-13 Omair Javaid <omair.javaid@linaro.org>
825
826 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
827 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
828 processing instructions.
829
1e1b6563
OJ
8302014-08-13 Omair Javaid <omair.javaid@linaro.org>
831
832 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
833 for advance SIMD struct ld/st insn.
834 (thumb2_record_decode_insn_handler): Replace stub handler with
835 thumb2_record_asimd_struct_ld_st.
836
60cc5e93
OJ
8372014-08-13 Omair Javaid <omair.javaid@linaro.org>
838
839 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
840 for asimd, vfp and coprocessor insns.
841 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
842 and coprocessor insns.
843 (thumb2_record_coproc_insn): New function.
844 (thumb2_record_decode_insn_handler): Update coprocessor insns record
845 handlers.
846 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
847 opcode 110 insns.
848
81219e53
DE
8492014-09-13 Doug Evans <xdje42@gmail.com>
850
851 * NEWS: Mention new "queue-signal" command.
852 * infcmd.c (queue_signal_command): New function.
853 (_initialize_infcmd): Add new queue-signal command.
854
d36bf488
DE
8552014-09-13 Doug Evans <xdje42@gmail.com>
856
857 * linux-nat.c (wait_lwp): Add debugging printf.
858 (linux_nat_wait_1): Ditto.
859
f37f681c
PA
8602014-09-12 Pedro Alves <palves@redhat.com>
861
862 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
863 (create_and_insert_solib_event_breakpoint): New functions.
864 * breakpoint.h (create_and_insert_solib_event_breakpoint)
865 (remove_solib_event_breakpoints_at_next_stop): New declarations.
866 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
867 (remove_dbx_link_breakpoint): Delete function.
868 (insert_dbx_link_bpt_in_file): Use
869 create_and_insert_solib_event_breakpoint instead of
870 deprecated_insert_raw_breakpoint.
871 (procfs_wait): Don't check whether we hit __dbx_link here.
872 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
873 here.
874 * solib-irix.c (base_breakpoint): Delete global.
875 (disable_break): Delete function.
876 (enable_break): Use create_solib_event_breakpoint
877 instead of deprecated_insert_raw_breakpoint.
878 (irix_solib_handle_event): New function.
879 (irix_solib_create_inferior_hook): Don't run the target or disable
880 the mapping-complete breakpoint here.
881 (_initialize_irix_solib): Install irix_solib_handle_event as
882 so_ops->handle_event hook.
883
9d9bf2df
EBM
8842014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
885 Ulrich Weigand  <uweigand@de.ibm.com>
886
887 PR tdep/17379
888 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
889 instead of read_memory_unsigned_integer.
890
b006a80e
GB
8912014-09-12 Gary Benson <gbenson@redhat.com>
892
893 * nat/linux-waitpid.c: Include common-defs.h.
894 [GDBSERVER]: Add FIXME comment.
895 [!GDBSERVER]: Don't include defs.h or signal.h.
896 (linux_debug) [!GDBSERVER]: Remove empty block.
897
296b1496
GB
8982014-09-12 Gary Benson <gbenson@redhat.com>
899
900 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
901 Don't include defs.h or server.h.
902
53f81362
GB
9032014-09-12 Gary Benson <gbenson@redhat.com>
904
905 * nat/linux-btrace.c: Include common-defs.h.
906 Don't include defs.h, server.h or gdbthread.h.
907 * nat/linux-btrace.h (struct target_ops): New forward declaration.
908
727605ca
GB
9092014-09-12 Gary Benson <gbenson@redhat.com>
910
911 * common/agent.c: Include common-defs.h.
912 Don't include defs.h or server.h.
913 * common/buffer.c: Likewise.
914 * common/common-debug.c: Likewise.
915 * common/common-utils.c: Likewise.
916 * common/errors.c: Likewise.
917 * common/filestuff.c: Likewise.
918 * common/format.c: Likewise.
919 * common/gdb_vecs.c: Likewise.
920 * common/print-utils.c: Likewise.
921 * common/ptid.c: Likewise.
922 * common/rsp-low.c: Likewise.
923 * common/signals.c: Likewise.
924 * common/vec.c: Likewise.
925 * common/xml-utils.c: Likewise.
926 * nat/linux-osdata.c: Likewise.
927 * nat/linux-procfs.c: Likewise.
928 * nat/linux-ptrace.c: Likewise.
929 * nat/mips-linux-watch.c: Likewise.
930 * target/waitstatus.c: Likewise.
931
361c8ade
GB
9322014-09-12 Tom Tromey <tromey@redhat.com>
933 Gary Benson <gbenson@redhat.com>
934
935 * common/common-regcache.h: New file.
936 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
937 * regcache.h: Include common-regcache.h.
938 (regcache_read_pc): Don't declare.
939 * regcache.c (get_thread_regcache_for_ptid): New function.
940 * nat/linux-btrace.c: Don't include regcache.h.
941 Include common-regcache.h.
942 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
943
a01cbb49
TS
9442014-09-11 Thomas Schwinge <thomas@codesourcery.com>
945
946 * regcache.h (struct regset): Declare.
947
98880d46
PA
9482014-09-11 Pedro Alves <palves@redhat.com>
949
950 PR gdb/17347
951 * main.c: Include "infrun.h".
952 (catch_command_errors, catch_command_errors_const): Wait for the
953 foreground command to complete.
954 * top.c (maybe_wait_sync_command_done): New function, factored out
955 from ...
956 (maybe_wait_sync_command_done): ... here.
957 * top.h (maybe_wait_sync_command_done): New declaration.
958
bd9269f7
GB
9592014-09-11 Tom Tromey <tromey@redhat.com>
960 Gary Benson <gbenson@redhat.com>
961
962 * common/symbol.h: New file.
963 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
964 * minsyms.c (find_minimal_symbol_address): New function.
965 * common/agent.c: Include common/symbol.h.
966 [!GDBSERVER]: Don't include objfiles.h.
967 (agent_look_up_symbols): Use find_minimal_symbol_address.
968
f8c1d06b
GB
9692014-09-11 Gary Benson <gbenson@redhat.com>
970
971 * target/target.h (target_stop_ptid, target_continue_ptid):
972 Declare.
973 * target.c (target_stop_ptid, target_continue_ptid): New
974 functions.
975 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
976 (agent_run_command): Always use target_stop_ptid and
977 target_continue_ptid.
978
721ec300
GB
9792014-09-11 Tom Tromey <tromey@redhat.com>
980 Gary Benson <gbenson@redhat.com>
981
982 * target/target.h: New file.
983 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
984 * target.h: Include target/target.h.
985 (target_read_memory, target_write_memory): Don't declare.
986 * target.c (target_read_uint32): New function.
987 * common/agent.c: Include target/target.h.
988 [!GDBSERVER]: Don't include target.h.
989 (helper_thread_id): Type changed to uint32_t.
990 (agent_get_helper_thread_id): Use target_read_uint32.
991 (agent_run_command): Always use target_read_memory and
992 target_write_memory.
993 (agent_capability): Type changed to uint32_t.
994 (agent_capability_check): Use target_read_uint32.
995
c5e92cca
GB
9962014-09-11 Gary Benson <gbenson@redhat.com>
997
998 * common/common-debug.h (show_debug_regs): Declare.
999 * common/common-debug.c (show_debug_regs): Define.
1000 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1001 all uses with show_debug_regs. Replace all uses that considered
1002 debug_hw_points as a multi-value integer with straight boolean
1003 uses.
1004 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1005 with show_debug_regs.
1006 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1007 all uses with show_debug_regs.
1008 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1009 uses with show_debug_regs.
1010
eeef931a
UW
10112014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1012
1013 * findvar.c (address_from_register): Handle targets requiring
1014 a special conversion routine even for plain pointer types.
1015
8efa9855
UW
10162014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1017
1018 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1019 (store_register): Do not call exec_one_dummy_insn.
1020
eb479039
JB
10212014-09-10 Joel Brobecker <brobecker@adacore.com>
1022
1023 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1024 dereference it first. Use value_enclosing_type instead of
1025 value_type.
1026 (ada_array_length): Likewise.
1027
deede10c
JB
10282014-09-10 Joel Brobecker <brobecker@adacore.com>
1029
1030 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1031 Adjust function implementation and documentation accordingly.
1032 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1033 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1034 Update call to ada_value_ptr_subscript.
1035
7828a5f5
JB
10362014-09-10 Joel Brobecker <brobecker@adacore.com>
1037
1038 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1039 instead of VAL's type.
1040
35782f14
JB
10412014-09-10 Joel Brobecker <brobecker@adacore.com>
1042
1043 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1044
d342a0da
DE
10452014-09-09 Doug Evans <xdje42@gmail.com>
1046
1047 PR guile/17367
1048 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1049 last parameter to pkg-config, not first.
1050 * configure.ac: Pass --with-guile provided pkg-config path to
1051 GDB_GUILE_PROGRAM_NAMES.
1052 * configure: Regenerate.
1053
b4a3d263
GKB
10542014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1055
1056 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1057 Bertazi".
1058
6e466374
MR
10592014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1060
1061 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1062 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1063 the list of sections determining GDB_OSABI_IRIX.
1064
a1ada89a
JH
10652014-09-09 James Hogan <james.hogan@imgtec.com>
1066
1067 * MAINTAINERS (Write After Approval): Add "James Hogan".
1068
86db008d
JH
10692014-09-09 James Hogan <james.hogan@imgtec.com>
1070
1071 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1072
72fde3df
JB
10732014-09-09 Joel Brobecker <brobecker@adacore.com>
1074
1075 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1076
92d8d229
DE
10772014-09-08 Doug Evans <xdje42@gmail.com>
1078
1079 PR 17247
1080 * guile.c: #include <signal.h>.
1081 (_initialize_guile): Block SIGCHLD while initializing Guile.
1082
1083 Replaces the following, which is reverted.
1084
1085 2014-07-26 Doug Evans <xdje42@gmail.com>
1086
1087 PR 17185
1088 * configure.ac: Add check for header gc/gc.h.
1089 Add check for function setenv.
1090 * configure: Regenerate.
1091 * config.in: Regenerate.
1092 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1093
d81412aa
DE
10942014-09-08 Doug Evans <xdje42@gmail.com>
1095
1096 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1097 with named constant. Fix style of pointer comparison.
1098 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1099
a9f116cb
GKB
11002014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1101
1102 PR gdb/17035
1103 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1104 decide whether we display the command on "show user".
1105 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1106 printing command name.
1107 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1108 * cli/cli-decode.c (cli_user_command_p): Create helper function
1109 to verify whether cmd_list_element is a user-defined command.
1110
c75bd3a2
JK
11112014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 PR python/17355
1114 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1115 Fix goto out of TRY_CATCH.
1116
faa42425 11172014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1118 Tom Tromey <tromey@redhat.com>
faa42425
DE
1119
1120 PR 15276
1121 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1122 $_any_caller_matches.
1123 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1124 * python/lib/gdb/function/caller_is.py: New file.
1125
0d41ba00
DE
11262014-09-06 Doug Evans <xdje42@gmail.com>
1127
1128 * infcmd.c (program_info): Fix typo.
1129
474ca4f6
SDJ
11302014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1131
1132 PR gdb/17235
1133 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1134 'number'. New variable 'has_digit'. Rewrite code to deal with
1135 subexpressions on SDT probes.
1136
ebf13736
PA
11372014-09-04 Pedro Alves <palves@redhat.com>
1138
1139 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1140 the input is only one character long.
1141
eb0b0463
SDJ
11422014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1143
1144 PR fortran/17237
1145 * f-valprint.c (f_val_print): Specify the correct print option to
1146 use when printing integer values.
1147
5ee44bfa
GB
11482014-09-04 Gary Benson <gbenson@redhat.com>
1149
1150 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1151 Remove code to cope with LWPs wrapped as PIDs.
1152 Add assertions to ensure no wrapped LWPs are passed.
1153
4875ffdb
PA
11542014-09-04 Pedro Alves <palves@redhat.com>
1155
1156 * value.c (value_ranges_copy_adjusted): New function, factored out
1157 from ...
1158 (value_contents_copy_raw): ... here.
1159 (unpack_value_bits_as_long_1): Rename back to ...
1160 (unpack_bits_as_long): ... this. Remove 'original_value' and
1161 'result' parameters. Change return type to LONGEST.
1162 (unpack_value_bits_as_long): Delete.
1163 (unpack_value_field_as_long_1): Delete.
1164 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1165 (unpack_value_bitfield): New function.
1166 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1167 (value_fetch_lazy): Use unpack_value_bitfield.
1168 * value.h (unpack_value_bits_as_long): Delete declaration.
1169
5f3b99cf
SS
11702014-09-03 Sasha Smundak <asmundak@google.com>
1171
1172 * python/py-frame.c (frapy_read_register): New function.
1173
ac740bc7
JH
11742014-09-03 James Hogan <james.hogan@imgtec.com>
1175
1176 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1177 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1178
7d793aa9
SDJ
11792014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1180
1181 PR python/16699
1182 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1183 function.
1184 (add_cmd): Set "completer_handle_brkchars" to NULL.
1185 * cli/cli-decode.h (struct cmd_list_element)
1186 <completer_handle_brkchars>: New field.
1187 * command.h (completer_ftype_void): New typedef.
1188 (set_cmd_completer_handle_brkchars): New prototype.
1189 * completer.c (set_gdb_completion_word_break_characters): New
1190 function.
1191 (complete_line_internal): Call "completer_handle_brkchars"
1192 callback from command.
1193 * completer.h: Include "command.h".
1194 (set_gdb_completion_word_break_characters): New prototype.
1195 * python/py-cmd.c (cmdpy_completer_helper): New function.
1196 (cmdpy_completer_handle_brkchars): New function.
1197 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1198 (cmdpy_init): Set completer_handle_brkchars to
1199 cmdpy_completer_handle_brkchars.
1200
97ea6506
GB
12012014-09-03 Gary Benson <gbenson@redhat.com>
1202
1203 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1204 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1205 Loop conditions changed to equivalent form.
1206 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1207 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1208 ALL_DEBUG_ADDRESS_REGISTERS.
1209
d1437815
JB
12102014-09-03 Joel Brobecker <brobecker@adacore.com>
1211
1212 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1213 description fix.
1214
9b94fcf1
DE
12152014-09-02 Doug Evans <dje@google.com>
1216
1217 * typeprint.c (find_global_typedef): Fix comment.
1218
df7e5265
GB
12192014-09-02 Gary Benson <gbenson@redhat.com>
1220
1221 * i386-nat.h: Renamed as...
1222 * x86-nat.h: New file. All type, function and variable name
1223 prefixes changed from "i386_" to "x86_". All references updated.
1224 * i386-nat.c: Renamed as...
1225 * x86-nat.c: New file. All type, function and variable name
1226 prefixes changed from "i386_" to "x86_". All references updated.
1227 * common/i386-xstate.h: Renamed as...
1228 * common/x86-xstate.h: New file. All type, function and variable
1229 name prefixes changed from "i386_" to "x86_". All references
1230 updated.
1231 * nat/i386-cpuid.h: Renamed as...
1232 * nat/x86-cpuid.h: New file. All type, function and variable name
1233 prefixes changed from "i386_" to "x86_". All references updated.
1234 * nat/i386-gcc-cpuid.h: Renamed as...
1235 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1236 name prefixes changed from "i386_" to "x86_". All references
1237 updated.
1238 * nat/i386-dregs.h: Renamed as...
1239 * nat/x86-dregs.h: New file. All type, function and variable name
1240 prefixes changed from "i386_" to "x86_". All references updated.
1241 * nat/i386-dregs.c: Renamed as...
1242 * nat/x86-dregs.c: New file. All type, function and variable name
1243 prefixes changed from "i386_" to "x86_". All references updated.
1244
1c3569d4
MR
12452014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1246
1247 * varobj.c (_initialize_varobj): Move to the end of file.
1248
ff55e1b5
GB
12492014-08-29 Gary Benson <gbenson@redhat.com>
1250
1251 * common/common-exceptions.h: New file.
1252 * common/common-exceptions.c: Likewise.
1253 * Makefile.in (SFILES): Add common/common-exceptions.c.
1254 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1255 (COMMON_OBS): Add common-exceptions.o.
1256 (common-exceptions.o): New rule.
1257 * exceptions.h (common-exceptions.h): Include.
1258 (gdb_setjmp.h): Do not include.
1259 (return_reason): Moved to common-exceptions.h.
1260 (enum return_reason): Likewise.
1261 (RETURN_MASK): Likewise.
1262 (typedef return_mask): Likewise.
1263 (enum errors): Likewise.
1264 (struct gdb_exception): Likewise.
1265 (exceptions_state_mc_init): Likewise.
1266 (exceptions_state_mc_action_iter): Likewise.
1267 (exceptions_state_mc_action_iter_1): Likewise.
1268 (TRY_CATCH): Likewise.
1269 (throw_exception): Likewise.
1270 (throw_verror): Likewise.
1271 (throw_vquit): Likewise.
1272 (throw_error): Likewise.
1273 (throw_quit): Likewise.
1274 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1275 (enum catcher_action): Likewise.
1276 (struct catcher): Likewise.
1277 (current_catcher): Likewise.
1278 (catcher_list_size): Likewise.
1279 (exceptions_state_mc_init): Likewise.
1280 (catcher_pop): Likewise.
1281 (exceptions_state_mc): Likewise.
1282 (exceptions_state_mc_action_iter): Likewise.
1283 (exceptions_state_mc_action_iter_1): Likewise.
1284 (throw_exception): Likewise.
1285 (exception_messages): Likewise.
1286 (exception_messages_size): Likewise.
1287 (throw_it): Likewise.
1288 (throw_verror): Likewise.
1289 (throw_vquit): Likewise.
1290 (throw_error): Likewise.
1291 (throw_quit): Likewise.
1292 (prepare_to_throw_exception): New function.
1293
e9bcb658
GB
12942014-08-29 Gary Benson <gbenson@redhat.com>
1295
1296 * common/gdb_setjmp.h: New file.
1297 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1298 * configure.ac: Move sigsetjmp check...
1299 * common/common.m4: ...here.
1300 * configure: Regenerate.
1301 * cp-support.c (SIGJMP_BUF): Delete.
1302 (SIGSETJMP): Likewise.
1303 (SIGLONGJMP): Likewise.
1304 * exceptions.h (gdb_setjmp.h): Include.
1305 (setjmp.h): Do not include.
1306 (EXCEPTIONS_SIGJMP_BUF): Delete.
1307 (EXCEPTIONS_SIGSETJMP): Likewise.
1308 (EXCEPTIONS_SIGLONGJMP): Likewise.
1309 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1310 from gdb_setjmp.h.
1311 * exceptions.c: Likewise.
1312
e3180625
GB
13132014-08-29 Gary Benson <gbenson@redhat.com>
1314
1315 * cleanups.h: Moved to...
1316 * common/cleanups.h: New file.
1317 * cleanups.c: Moved to...
1318 * common/cleanups.c: New file. Include common-defs.h and
1319 cleanups.h. Do not include defs.h.
1320 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1321 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1322 (cleanups.o): New rule.
1323
e3d6ba5d
GB
13242014-08-29 Gary Benson <gbenson@redhat.com>
1325
1326 * common/errors.h (internal_warning): New declaration.
1327 (internal_vwarning): Likewise.
1328 * common/errors.c (internal_warning): New function.
1329 * utils.h (internal_warning): Don't declare.
1330 (internal_vwarning): Likewise.
1331 * utils.c (internal_warning): Removed.
1332
075c7033
GB
13332014-08-29 Gary Benson <gbenson@redhat.com>
1334
1335 * main.c (captured_main): Use warning during startup.
1336 Prefix startup warning messages with command name.
1337
91b35fd0
GB
13382014-08-29 Gary Benson <gbenson@redhat.com>
1339
1340 * main.c (captured_main): Handle usage errors with error.
1341
b1ec390e
GB
13422014-08-29 Gary Benson <gbenson@redhat.com>
1343
1344 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1345 exit pair with a call to error. Wrap the message with _().
1346
fd0ef3dd
GB
13472014-08-29 Gary Benson <gbenson@redhat.com>
1348
1349 * main.c (captured_main): Replace a fprintf/exit
1350 pair with a call to error. Wrap the message with _().
1351
e0e6bcab
GB
13522014-08-29 Gary Benson <gbenson@redhat.com>
1353
1354 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1355 pairs with calls to error. Wrap the message with _().
1356
0d2f5c07
GB
13572014-08-29 Gary Benson <gbenson@redhat.com>
1358
1359 * utils.c (vwarning): Protect calls to target_terminal_ours
1360 and wrap_here.
1361
5df43998
GB
13622014-08-29 Gary Benson <gbenson@redhat.com>
1363
1364 * exceptions.c (print_flush): Protect calls to
1365 target_terminal_ours and wrap_here.
1366
2437fd32
GB
13672014-08-29 Gary Benson <gbenson@redhat.com>
1368
1369 * utils.h (filtered_printing_initialized): New declaration.
1370 * utils.c (abort_with_message): New function.
1371 (internal_vproblem): Use abort_with_message for first level
1372 recursive internal problems, and if gdb_stderr is not set up.
1373 Protect calls to target_terminal_ours, begin_line and query.
1374
f1f58506
DE
13752014-08-28 Doug Evans <dje@google.com>
1376
1377 * symtab.c (in_prologue): Move definition to better spot.
1378 (skip_prologue_using_sal): Ditto.
1379
aab2f208
DE
13802014-08-28 Doug Evans <dje@google.com>
1381
1382 * symtab.c (find_function_start_sal): Move definition to better spot.
1383
6b65d1b6
YQ
13842014-08-28 Yao Qi <yao@codesourcery.com>
1385
1386 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1387 found_stack_adjust in forward scan. Remove condition check
1388 on found_stack_adjust which is always true. Indent the code.
1389
a1b34d15
YQ
13902014-08-28 Yao Qi <yao@codesourcery.com>
1391
1392 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1393 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1394 (dwarf_decode_lines): Remove argument
1395 want_line_info. Remove condition check on want_line_info.
1396 Callers update.
1397
d5962de5
DE
13982014-08-27 Doug Evans <dje@google.com>
1399
1400 * dwarf2read.c (dwarf_record_line): Fix typo.
1401
9b139002
SDJ
14022014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1403
1404 * target.h (struct target_ops::to_terminal_save_ours): Remove
1405 declaration.
1406 (target_terminal_save_ours): Remove macro.
1407 * target-delegates.c: Regenerate.
1408 * inf-child.c (inf_child_target): Don't set the nonexistent
1409 field to_terminal_save_ours.
1410 * inferior.h (child_terminal_save_ours): Remove declaration.
1411 * terminal.h (gdb_save_tty_state): New declaration.
1412 * inflow.c (child_terminal_save_ours): Rename to ...
1413 (gdb_save_tty_state): ... this.
1414 * tui/tui.c: Include terminal.h.
1415 (tui_enable): Use gdb_save_tty_state instead of
1416 target_terminal_save_ours.
1417 (tui_disable): Likewise.
1418
9debeba0
DE
14192014-08-25 Doug Evans <dje@google.com>
1420
1421 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1422 Pass NULL instead of 0 for context pointer.
1423
428fc5fc
YQ
14242014-08-25 Yao Qi <yao@codesourcery.com>
1425
1426 * dwarf2read.c: Fix grammatical error.
1427
cdc07690
YQ
14282014-08-24 Yao Qi <yao@codesourcery.com>
1429
1430 * dwarf2read.c (scan_partial_symbols): Update comments.
1431 Rename argument 'need_pc' with 'set_addrmap'.
1432 (add_partial_namespace): Rename argument 'need_pc' with
1433 'set_addrmap'.
1434 (add_partial_module): Likewise.
1435 (add_partial_subprogram): Likewise. Update comments.
1436 (dwarf2_name): Fix typo.
1437
a05a36a5
DE
14382014-08-22 Doug Evans <dje@google.com>
1439
1440 PR 17276
1441 * dwarf2read.c (dwarf_record_line_p): New function.
1442 (dwarf_decode_lines_1): Ignore subsequent line number entries
1443 for the same line if any entry had a non-zero discriminator.
1444
252a6764
DE
14452014-08-22 Doug Evans <dje@google.com>
1446
1447 * buildsym.h (record_line_ftype): New typedef.
1448 (record_line): Use it.
1449 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1450 (dwarf_decode_lines_1): Call them.
1451
510db052
YQ
14522014-08-22 Yao Qi <yao@codesourcery.com>
1453
1454 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1455 (ctf_end): Remove code.
1456
22fd09ae
JK
14572014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1460 (linux_make_corefile_notes): call update_thread_list, protected against
1461 exceptions.
1462
656e8868
PA
14632014-08-21 Pedro Alves <palves@redhat.com>
1464
1465 * infcmd.c (attach_command): Remove comment.
1466
de589d04
WN
14672014-08-21 Bin Cheng <bin.cheng@arm.com>
1468
1469 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1470 unsigned LONGEST to ULONGEST.
1471
2a31c623
PA
14722014-08-20 Pedro Alves <palves@redhat.com>
1473
1474 * Makefile.in (check-read1): New rule.
1475
d36430db
JB
14762014-08-20 Joel Brobecker <brobecker@adacore.com>
1477
1478 * value.c (value_from_contents_and_address): Strip resolved_type's
1479 typedef layers before checking its TYPE_DATA_LOCATION.
1480
000339af
PA
14812014-08-20 Pedro Alves <palves@redhat.com>
1482
1483 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1484
5f52445b
YQ
14852014-08-20 Yao Qi <yao@codesourcery.com>
1486
1487 * amd64-tdep.c (amd64_classify): Add a blank line after the
1488 example. Move "*/" to a new line.
1489 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1490 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1491 * dwarf2read.c (psymtab_include_file_name): Likewise.
1492
9a0dc9e3
PA
14932014-08-19 Andrew Burgess <aburgess@broadcom.com>
1494 Pedro Alves <palves@redhat.com>
1495
1496 PR symtab/14604
1497 PR symtab/14605
1498 * ada-lang.c (coerce_unspec_val_to_type): Use
1499 value_contents_copy_raw.
1500 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1501 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1502 * cp-valprint.c (cp_print_value_fields): Let the common printing
1503 code handle optimized out values.
1504 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1505 * d-valprint.c (dynamic_array_type): Use
1506 value_bits_any_optimized_out.
1507 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1508 check_any_valid fields.
1509 (check_pieced_value_bits): Delete and inline ...
1510 (check_pieced_synthetic_pointer): ... here.
1511 (check_pieced_value_validity): Delete.
1512 (check_pieced_value_invalid): Delete.
1513 (pieced_value_funcs): Remove check_validity and check_any_valid
1514 fields.
1515 (read_pieced_value): Use mark_value_bits_optimized_out.
1516 (write_pieced_value): Switch to use
1517 mark_value_bytes_optimized_out.
1518 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1519 of assuming the whole value is optimized out.
1520 * findvar.c (read_frame_register_value): Remove special handling
1521 of optimized out registers.
1522 (value_from_register): Use mark_value_bytes_optimized_out.
1523 * frame-unwind.c (frame_unwind_got_optimized): Use
1524 mark_value_bytes_optimized_out.
1525 * jv-valprint.c (java_value_print): Adjust.
1526 (java_print_value_fields): Let the common printing code handle
1527 optimized out values.
1528 * mips-tdep.c (mips_print_register): Remove special handling of
1529 optimized out registers.
1530 * opencl-lang.c (lval_func_check_validity): Delete.
1531 (lval_func_check_any_valid): Delete.
1532 (opencl_value_funcs): Remove check_validity and check_any_valid
1533 fields.
1534 * p-valprint.c (pascal_object_print_value_fields): Let the common
1535 printing code handle optimized out values.
1536 * stack.c (read_frame_arg): Remove special handling of optimized
1537 out values. Fetch both VAL and ENTRYVAL before comparing
1538 contents. Adjust to value_available_contents_eq rename.
1539 * valprint.c (valprint_check_validity)
1540 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1541 (val_print_array_elements): Adjust.
1542 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1543 (value_bits_any_optimized_out): New function.
1544 (value_entirely_covered_by_range_vector): New function, factored
1545 out from value_entirely_unavailable.
1546 (value_entirely_unavailable): Reimplement.
1547 (value_entirely_optimized_out): New function.
1548 (insert_into_bit_range_vector): New function, factored out from
1549 mark_value_bits_unavailable.
1550 (mark_value_bits_unavailable): Reimplement.
1551 (struct ranges_and_idx): New struct.
1552 (find_first_range_overlap_and_match): New function, factored out
1553 from value_available_contents_bits_eq.
1554 (value_available_contents_bits_eq): Rename to ...
1555 (value_contents_bits_eq): ... this. Check both unavailable
1556 contents and optimized out contents.
1557 (value_available_contents_eq): Rename to ...
1558 (value_contents_eq): ... this.
1559 (allocate_value_lazy): Remove reference to the old optimized_out
1560 boolean.
1561 (allocate_optimized_out_value): Use
1562 mark_value_bytes_optimized_out.
1563 (require_not_optimized_out): Adjust to check whether the
1564 optimized_out vec is empty.
1565 (ranges_copy_adjusted): New function, factored out from
1566 value_contents_copy_raw.
1567 (value_contents_copy_raw): Also copy the optimized out ranges.
1568 Assert the destination ranges aren't optimized out.
1569 (value_contents_copy): Update comment, remove call to
1570 require_not_optimized_out.
1571 (value_contents_equal): Adjust to check whether the optimized_out
1572 vec is empty.
1573 (set_value_optimized_out, value_optimized_out_const): Delete.
1574 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1575 New functions.
1576 (value_entirely_optimized_out, value_bits_valid): Delete.
1577 (value_copy): Take a VEC copy of the 'optimized_out' field.
1578 (value_primitive_field): Remove special handling of optimized out.
1579 (value_fetch_lazy): Assert that lazy values have no unavailable
1580 regions. Use value_bits_any_optimized_out. Remove some special
1581 handling for optimized out values.
1582 * value.h: Add intro comment about <optimized out> and
1583 <unavailable>.
1584 (struct lval_funcs): Remove check_validity and check_any_valid
1585 fields.
1586 (set_value_optimized_out, value_optimized_out_const): Remove.
1587 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1588 New declarations.
1589 (value_bits_any_optimized_out): New declaration.
1590 (value_bits_valid): Delete declaration.
1591 (value_available_contents_eq): Rename to ...
1592 (value_contents_eq): ... this, and extend comments.
1593
6694c411
JK
15942014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1595
1596 Fix -fsanitize=address on unreadable inferior strings.
1597 * valprint.c (val_print_string): Fix access before BUFFER.
1598
89a1c21a
SM
15992014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1600
1601 * target.c (target_struct_size): Remove.
1602 (target_struct_allocsize): Remove.
1603 (DEFAULT_ALLOCSIZE): Remove.
1604 (target_ops_p): New typedef.
1605 (DEF_VEC_P (target_ops_p)): New vector type.
1606 (target_structs): Change type to VEC (target_ops_p).
1607 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1608 (find_default_run_target): Rewrite for loop following changes to
1609 target_structs.
1610
cb417230
JB
16112014-08-19 Joel Brobecker <brobecker@adacore.com>
1612
1613 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1614 Adjust code accordingly. Adjust function description comment.
1615
817e0957
YQ
16162014-08-19 Yao Qi <yao@codesourcery.com>
1617
1618 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1619 types.
1620
2974be62
AM
16212014-08-19 Alan Modra <amodra@gmail.com>
1622
1623 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1624 * config.in: Regenerate.
1625 * configure: Regenerate.
1626
34abf635
GB
16272014-08-19 Tom Tromey <tromey@redhat.com>
1628 Gary Benson <gbenson@redhat.com>
1629
1630 * common/common-debug.h: New file.
1631 * common/common-debug.c: Likewise.
1632 * debug.c: Likewise.
1633 * Makefile.in (SFILES): Add common/common-debug.c.
1634 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1635 (COMMON_OBS): Add common-debug.o and debug.o.
1636 (common-debug.o): New rule.
1637 * common/common-defs.h: Include common-debug.h.
1638 * common/agent.c (debug_agent_printf): New function.
1639 (DEBUG_AGENT): Redefine.
1640 * nat/i386-dregs.c (debug_printf): Undefine.
1641
f6e94d78
GB
16422014-08-19 Gary Benson <gbenson@redhat.com>
1643
1644 * common/common-defs.h: Include print-utils.h.
1645 * utils.h: Do not include print-utils.h.
1646
9239eeab
GB
16472014-08-19 Tom Tromey <tromey@redhat.com>
1648 Gary Benson <gbenson@redhat.com>
1649
1650 * common/common-types.h: New file.
1651 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1652 * common/common-defs.h: Include common-types.h.
1653 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1654 (ULONGEST): Remove.
1655
ef87c8bb
GB
16562014-08-19 Tom Tromey <tromey@redhat.com>
1657 Gary Benson <gbenson@redhat.com>
1658
1659 * common/errors.h: New file.
1660 * common/errors.c: Likewise.
1661 * Makefile.in (SFILES): Add common/errors.c.
1662 (HFILES_NO_SRCDIR): Add common/errors.h.
1663 (COMMON_OBS): Add errors.o.
1664 (errors.o): New rule.
1665 * common/common-defs.h: Include errors.h.
1666 * utils.h (perror_with_name, error, verror, warning, vwarning):
1667 Don't declare.
1668 * common/common-utils.h: (malloc_failure, internal_error):
1669 Likewise.
1670
196a707b
GB
16712014-08-19 Gary Benson <gbenson@redhat.com>
1672
1673 * utils.c (internal_vproblem): Always print the message.
1674
ded4fc8f
DE
16752014-08-18 Doug Evans <dje@google.com>
1676
1677 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1678
950c97d8
JB
16792014-08-18 Joel Brobecker <brobecker@adacore.com>
1680
1681 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1682 Return 0 if TYPE is dynamic.
1683 (print_range): Add handling of dynamic ranges.
1684
3cdcd0ce
JB
16852014-08-18 Keven Boell <keven.boell@intel.com>
1686 Joel Brobecker <brobecker@adacore.com>
1687
1688 * gdbtypes.h (struct main_type): Add field "data_location".
1689 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1690 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1691 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1692 a dynamic data location.
1693 (resolve_dynamic_type): Add DW_AT_data_location handling.
1694 (copy_recursive, copy_type): Copy the data_location information
1695 when present.
1696 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1697 * value.c (value_from_contents_and_address): Add
1698 DW_AT_data_location handling.
1699
08412b07
JB
17002014-08-18 Keven Boell <keven.boell@intel.com>
1701 Joel Brobecker <brobecker@adacore.com>
1702
1703 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1704 field "get_object_address".
1705 * dwarf2expr.c (execute_stack_op): Add handling for
1706 DW_OP_push_object_address.
1707 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1708 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1709 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1710 (dwarf_expr_get_obj_addr): New function.
1711 (dwarf_expr_ctx_funcs): Add get_object_address field.
1712 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1713 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1714 (dwarf2_evaluate_property): Add parameter "address". Use it.
1715 (needs_get_obj_addr): New function.
1716 (needs_frame_ctx_funcs): Add get_object_address field.
1717 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1718 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1719 (resolve_dynamic_array): Likewise.
1720
84754697
JB
17212014-08-18 Joel Brobecker <brobecker@adacore.com>
1722
1723 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1724 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1725 fixed value for records and unions for which some GNAT encodings
1726 are present.
1727
da5c522f
JB
17282014-08-18 Joel Brobecker <brobecker@adacore.com>
1729
1730 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1731 rewrite to avoid "else if" and "else" constructs. Should be
1732 a no-op in practice.
1733
0d72a7c3
JB
17342014-08-18 Joel Brobecker <brobecker@adacore.com>
1735
1736 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1737 of lexical block.
1738
e66d4446
SC
17392014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1740
1741 PR c++/17132
1742 * eval.c: Update all calls to find_overload_match.
1743 * valarith.c: Likewise.
1744 (value_user_defined_cpp_op, value_user_defined_op): New
1745 argument NOSIDE. Update all callers.
1746 * valops.c (find_overload_match): New argument NOSIDE.
1747 * value.h (find_overload_match): Update signature.
1748
940df408
SC
17492014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1750
1751 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1752 'items' methods instead of 'iteritems' method on dictionaries.
1753
699ca60a
DE
17542014-08-15 Doug Evans <dje@google.com>
1755
1756 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1757 closer to use.
1758
37780ee5
DE
17592014-08-15 Doug Evans <dje@google.com>
1760
1761 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1762
0ad93d4f
DE
17632014-08-15 Doug Evans <dje@google.com>
1764
1765 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1766
20d8c372
DE
17672014-08-15 Doug Evans <dje@google.com>
1768
1769 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1770 unused.
1771
cb039ba4
EZ
17722014-08-15 Eli Zaretskii <eliz@gnu.org>
1773
1774 * dcache.h: Include target.h, to avoid compile time warnings.
1775
eb7a547a
JB
17762014-08-15 Joel Brobecker <brobecker@adacore.com>
1777
1778 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1779 frame_info" partial declaration.
1780 * gdbarch.h: Regenerate.
1781
783cecc8
YQ
17822014-08-15 Yao Qi <yao@codesourcery.com>
1783
1784 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1785 Add parameter 'decode_for_pst_p'. Callers update.
1786
65c749e7
YQ
17872014-08-13 Yao Qi <yao@codesourcery.com>
1788
1789 PR build/17104
1790 * configure.ac: Use local variable 'pos'.
1791 * configure: Regenerated.
1792
d769e349
DE
17932014-08-11 Doug Evans <dje@google.com>
1794
1795 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1796 message, it is redundant with "Reading symbols from ..." message.
1797
24f1235e
DE
17982014-08-10 Doug Evans <xdje42@gmail.com>
1799
1800 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1801
dcd2e6ef
YQ
18022014-08-09 Yao Qi <yao@codesourcery.com>
1803
1804 PR remote/9053
1805 * remote.c (remote_xfer_partial): Remove dead code.
1806
070bdf0b
AA
18072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1808
1809 * ia64-linux-tdep.c: Include "regset.h".
1810 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1811 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1812 (ia64_linux_supply_fpregset): New function.
1813 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1814 (ia64_linux_regset_from_core_section): New function.
1815 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1816 method.
1817
08f9f542
AA
18182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1819
1820 * m68klinux-tdep.c: Include "regset.h".
1821 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1822 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1823 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1824 (m68k_linux_regset_from_core_section): New function.
1825 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1826 method.
1827
8f1cee41
AA
18282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1829
1830 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1831 function. Move logic to...
1832 (tilegx_linux_regmap): ... this new register map.
1833 (tilegx_linux_regset): Refer to register map, replace supply
1834 method by regcache_supply_regset, and add collect method.
1835 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1836 TILEGX_FIRST_EASY_REGNUM.
1837
c5741217
AA
18382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1839
1840 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1841 that calls regcache_supply_regset and handles the EPC register
1842 separately. Move main logic to...
1843 (score7_linux_gregmap): ... this new register map.
1844 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1845 (score7_linux_gregset): Refer to register map. Add collect method.
1846 (score7_linux_regset_from_core_section): Replace
1847 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1848 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1849 (struct regset): Delete unused forward declaraction.
1850 (struct pt_regs): Delete structure definition.
1851 (elf_gregset_t): Delete typedef.
1852
81580573
AA
18532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1854
1855 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1856 (nios2_core_regset): Add collect method.
1857
ba199d7d
AA
18582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1859
1860 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1861 platform-independent and don't write to read-only input buffer.
1862 (m32r_linux_collect_gregset): New function.
1863 (m32r_linux_gregset): Add collect method.
1864
0006a9da
AA
18652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1866
1867 * hppa-linux-tdep.c (greg_map): Rename to...
1868 (hppa_linux_gregmap): ... this. Also convert to
1869 regcache_map_entry format.
1870 (hppa_linux_supply_regset): Delete function.
1871 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1872 (hppa_linux_fpregmap): ... this new register map.
1873 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1874 register map, replace supply method by regcache_supply_regset, and
1875 add collect method regcache_collect_regset.
1876
901e1b23
AA
18772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1878
1879 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1880 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1881 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1882 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1883 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1884 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1885 (frv_linux_supply_gregset): Replace main logic by call to
1886 regcache_supply_regset, but keep clearing gr32-gr63.
1887 (frv_linux_supply_fpregset): Delete function.
1888 (frv_linux_gregset): Refer to appropriate register map and add
1889 regcache_collect_regset as the collect method.
1890 (frv_linux_fpregset): Likewise. Also exchange the supply method
1891 by regcache_supply_regset.
1892
1d6e7555
AA
18932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1894
1895 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1896 by call to alpha_supply_int_regs.
1897 (alpha_linux_collect_gregset): New function.
1898 (alpha_linux_supply_fpregset): Replace logic by call to
1899 alpha_supply_fp_regs.
1900 (alpha_linux_collect_fpregset): New function.
1901 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1902
d4d793bf
AA
19032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1904
1905 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1906 by call to regcache_collect_regset.
1907 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1908 instead of aarch64_linux_supply_gregset/_fpregset.
1909 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1910 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1911 header file instead.
1912 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1913 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1914 functions. Move logic to ...
1915 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1916 register maps.
1917 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1918 refer to new register maps, replace *_regset_from_core by
1919 regcache_supply_regset, and also use regcache_collect_regset.
1920 * aarch64-linux-tdep.h: Include "regset.h".
1921 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1922 Delete prototypes.
1923 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1924 macros, moved from C source file.
1925 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1926 variable declarations.
1927
99b7da5d
AA
19282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1929
1930 * s390-linux-nat.c: Include "regset.h".
1931 (regmap_gregset): Delete macro.
1932 (s390_64_regmap_gregset): New register map for
1933 regcache_supply/_collect_regset.
1934 (s390_64_gregset): New regset.
1935 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1936 (regmap_fpregset): Delete macro.
1937 (s390_native_supply, s390_native_collect): Delete functions.
1938 (supply_gregset, fill_gregset): Replace s390-specific regmap
1939 handling by a call to regcache_supply/_collect_regset.
1940 (supply_fpregset, fill_fpregset): Call regcache_supply/
1941 _collect_regset instead of s390_native_supply/_collect.
1942 (fetch_regset, store_regset): Likewise. Also change the last
1943 parameter to a regset instead of a regmap.
1944 (s390_linux_fetch_inferior_registers)
1945 (390_linux_store_inferior_registers): Adjust last parameter in
1946 calls to fetch_regset and store_regset.
1947 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1948 (s390_gregmap): ... this. Also make static const and convert to
1949 regcache_map_entry format.
1950 (s390x_regmap_gregset): Delete.
1951 (s390_regmap_fpregset): Rename to...
1952 (s390_fpregmap): ... this. Make static const and convert to
1953 regcache_map_entry format.
1954 (s390_regmap_upper, s390_regmap_last_break)
1955 (s390x_regmap_last_break, s390_regmap_system_call)
1956 (s390_regmap_tdb): Likewise.
1957 (s390_supply_regset, s390_collect_regset): Remove functions.
1958 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1959 s390_supply_regset.
1960 (s390_gregset, s390_fpregset, s390_upper_regset)
1961 (s390_last_break_regset, s390x_last_break_regset)
1962 (s390_system_call_regset, s390_tdb_regset): Make global and
1963 replace s390_supply/_collect_regset by regcache_supply/
1964 _collect_regset.
1965 (s390x_gregset): Delete.
1966 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1967 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1968 (s390_regmap_fpregset, s390_regmap_last_break)
1969 (s390x_regmap_last_break, s390_regmap_system_call)
1970 (s390_regmap_tdb): Delete global variable declarations.
1971 (s390_gregset, s390_fpregset, s390_last_break_regset)
1972 (s390x_last_break_regset, s390_system_call_regset)
1973 (s390_tdb_regset): New global variable declarations.
1974
0b309272
AA
19752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1976
1977 * regcache.c: Include "regset.h".
1978 (regcache_transfer_regset): New local function.
1979 (regcache_supply_regset, regcache_collect_regset): New functions.
1980 * regcache.h (struct regcache_map_entry): New structure.
1981 (REGCACHE_MAP_SKIP): New enum value.
1982 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1983
7fefa8d7
AA
19842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985
1986 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1987 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1988 (ppc_linux_collect_gregset ): Likewise.
1989 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1990 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1991 (ppc_collect_vrregset): Likewise.
1992 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1993 Likewise.
1994
96c4f946
YQ
19952014-08-07 Yao Qi <yao@codesourcery.com>
1996
1997 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1998 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1999 * remote.c (remote_read_bytes): Likewise.
2000
fffbe6a8
YQ
20012014-08-07 Yao Qi <yao@codesourcery.com>
2002
2003 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2004
5ee8a82c
YQ
20052014-08-07 Yao Qi <yao@codesourcery.com>
2006
2007 PR remote/17230
2008 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2009 TARGET_XFER_OK instead of 0.
2010
bb974a24
GB
20112014-08-07 Gary Benson <gbenson@redhat.com>
2012
2013 * common/common-defs.h: Include errno.h.
2014 * defs.h: Do not include errno.h.
2015 * ada-typeprint.c: Likewise.
2016 * c-typeprint.c: Likewise.
2017 * core-regset.c: Likewise.
2018 * corefile.c: Likewise.
2019 * corelow.c: Likewise.
2020 * event-loop.c: Likewise.
2021 * f-typeprint.c: Likewise.
2022 * gnu-nat.c: Likewise.
2023 * go32-nat.c: Likewise.
2024 * i386gnu-nat.c: Likewise.
2025 * m2-typeprint.c: Likewise.
2026 * nat/linux-btrace.c: Likewise.
2027 * p-typeprint.c: Likewise.
2028 * procfs.c: Likewise.
2029 * remote-sim.c: Likewise.
2030 * rs6000-nat.c: Likewise.
2031 * target.c: Likewise.
2032 * typeprint.c: Likewise.
2033 * ui-file.c: Likewise.
2034 * valops.c: Likewise.
2035 * valprint.c: Likewise.
2036
6d3d12eb
GB
20372014-08-07 Gary Benson <gbenson@redhat.com>
2038
2039 * common/common-defs.h: Include string.h.
2040 * aarch64-tdep.c: Do not include string.h.
2041 * ada-exp.y: Likewise.
2042 * ada-lang.c: Likewise.
2043 * ada-lex.l: Likewise.
2044 * ada-typeprint.c: Likewise.
2045 * ada-valprint.c: Likewise.
2046 * aix-thread.c: Likewise.
2047 * alpha-linux-tdep.c: Likewise.
2048 * alpha-mdebug-tdep.c: Likewise.
2049 * alpha-nat.c: Likewise.
2050 * alpha-osf1-tdep.c: Likewise.
2051 * alpha-tdep.c: Likewise.
2052 * alphanbsd-tdep.c: Likewise.
2053 * amd64-dicos-tdep.c: Likewise.
2054 * amd64-linux-tdep.c: Likewise.
2055 * amd64-nat.c: Likewise.
2056 * amd64-sol2-tdep.c: Likewise.
2057 * amd64fbsd-tdep.c: Likewise.
2058 * amd64obsd-tdep.c: Likewise.
2059 * arch-utils.c: Likewise.
2060 * arm-linux-nat.c: Likewise.
2061 * arm-linux-tdep.c: Likewise.
2062 * arm-tdep.c: Likewise.
2063 * arm-wince-tdep.c: Likewise.
2064 * armbsd-tdep.c: Likewise.
2065 * armnbsd-nat.c: Likewise.
2066 * armnbsd-tdep.c: Likewise.
2067 * armobsd-tdep.c: Likewise.
2068 * avr-tdep.c: Likewise.
2069 * ax-gdb.c: Likewise.
2070 * ax-general.c: Likewise.
2071 * bcache.c: Likewise.
2072 * bfin-tdep.c: Likewise.
2073 * breakpoint.c: Likewise.
2074 * build-id.c: Likewise.
2075 * buildsym.c: Likewise.
2076 * c-exp.y: Likewise.
2077 * c-lang.c: Likewise.
2078 * c-typeprint.c: Likewise.
2079 * c-valprint.c: Likewise.
2080 * charset.c: Likewise.
2081 * cli-out.c: Likewise.
2082 * cli/cli-cmds.c: Likewise.
2083 * cli/cli-decode.c: Likewise.
2084 * cli/cli-dump.c: Likewise.
2085 * cli/cli-interp.c: Likewise.
2086 * cli/cli-logging.c: Likewise.
2087 * cli/cli-script.c: Likewise.
2088 * cli/cli-setshow.c: Likewise.
2089 * cli/cli-utils.c: Likewise.
2090 * coffread.c: Likewise.
2091 * common/agent.c: Likewise.
2092 * common/buffer.c: Likewise.
2093 * common/buffer.h: Likewise.
2094 * common/common-utils.c: Likewise.
2095 * common/filestuff.c: Likewise.
2096 * common/filestuff.c: Likewise.
2097 * common/format.c: Likewise.
2098 * common/print-utils.c: Likewise.
2099 * common/rsp-low.c: Likewise.
2100 * common/signals.c: Likewise.
2101 * common/vec.h: Likewise.
2102 * common/xml-utils.c: Likewise.
2103 * core-regset.c: Likewise.
2104 * corefile.c: Likewise.
2105 * corelow.c: Likewise.
2106 * cp-abi.c: Likewise.
2107 * cp-name-parser.y: Likewise.
2108 * cp-support.c: Likewise.
2109 * cp-valprint.c: Likewise.
2110 * cris-tdep.c: Likewise.
2111 * d-exp.y: Likewise.
2112 * darwin-nat.c: Likewise.
2113 * dbxread.c: Likewise.
2114 * dcache.c: Likewise.
2115 * demangle.c: Likewise.
2116 * dicos-tdep.c: Likewise.
2117 * disasm.c: Likewise.
2118 * doublest.c: Likewise.
2119 * dsrec.c: Likewise.
2120 * dummy-frame.c: Likewise.
2121 * dwarf2-frame.c: Likewise.
2122 * dwarf2loc.c: Likewise.
2123 * dwarf2read.c: Likewise.
2124 * elfread.c: Likewise.
2125 * environ.c: Likewise.
2126 * eval.c: Likewise.
2127 * event-loop.c: Likewise.
2128 * exceptions.c: Likewise.
2129 * exec.c: Likewise.
2130 * expprint.c: Likewise.
2131 * f-exp.y: Likewise.
2132 * f-lang.c: Likewise.
2133 * f-typeprint.c: Likewise.
2134 * f-valprint.c: Likewise.
2135 * fbsd-nat.c: Likewise.
2136 * findcmd.c: Likewise.
2137 * findvar.c: Likewise.
2138 * fork-child.c: Likewise.
2139 * frame.c: Likewise.
2140 * frv-linux-tdep.c: Likewise.
2141 * frv-tdep.c: Likewise.
2142 * gdb.c: Likewise.
2143 * gdb_bfd.c: Likewise.
2144 * gdbarch.c: Likewise.
2145 * gdbarch.sh: Likewise.
2146 * gdbtypes.c: Likewise.
2147 * gnu-nat.c: Likewise.
2148 * gnu-v2-abi.c: Likewise.
2149 * gnu-v3-abi.c: Likewise.
2150 * go-exp.y: Likewise.
2151 * go-lang.c: Likewise.
2152 * go32-nat.c: Likewise.
2153 * guile/guile.c: Likewise.
2154 * guile/scm-auto-load.c: Likewise.
2155 * hppa-hpux-tdep.c: Likewise.
2156 * hppa-linux-nat.c: Likewise.
2157 * hppanbsd-tdep.c: Likewise.
2158 * hppaobsd-tdep.c: Likewise.
2159 * i386-cygwin-tdep.c: Likewise.
2160 * i386-dicos-tdep.c: Likewise.
2161 * i386-linux-tdep.c: Likewise.
2162 * i386-nto-tdep.c: Likewise.
2163 * i386-sol2-tdep.c: Likewise.
2164 * i386-tdep.c: Likewise.
2165 * i386bsd-tdep.c: Likewise.
2166 * i386gnu-nat.c: Likewise.
2167 * i386nbsd-tdep.c: Likewise.
2168 * i386obsd-tdep.c: Likewise.
2169 * i387-tdep.c: Likewise.
2170 * ia64-libunwind-tdep.c: Likewise.
2171 * ia64-linux-nat.c: Likewise.
2172 * inf-child.c: Likewise.
2173 * inf-ptrace.c: Likewise.
2174 * inf-ttrace.c: Likewise.
2175 * infcall.c: Likewise.
2176 * infcmd.c: Likewise.
2177 * inflow.c: Likewise.
2178 * infrun.c: Likewise.
2179 * interps.c: Likewise.
2180 * iq2000-tdep.c: Likewise.
2181 * irix5-nat.c: Likewise.
2182 * jv-exp.y: Likewise.
2183 * jv-lang.c: Likewise.
2184 * jv-typeprint.c: Likewise.
2185 * jv-valprint.c: Likewise.
2186 * language.c: Likewise.
2187 * linux-fork.c: Likewise.
2188 * linux-nat.c: Likewise.
2189 * lm32-tdep.c: Likewise.
2190 * m2-exp.y: Likewise.
2191 * m2-typeprint.c: Likewise.
2192 * m32c-tdep.c: Likewise.
2193 * m32r-linux-nat.c: Likewise.
2194 * m32r-linux-tdep.c: Likewise.
2195 * m32r-rom.c: Likewise.
2196 * m32r-tdep.c: Likewise.
2197 * m68hc11-tdep.c: Likewise.
2198 * m68k-tdep.c: Likewise.
2199 * m68kbsd-tdep.c: Likewise.
2200 * m68klinux-nat.c: Likewise.
2201 * m68klinux-tdep.c: Likewise.
2202 * m88k-tdep.c: Likewise.
2203 * machoread.c: Likewise.
2204 * macrocmd.c: Likewise.
2205 * main.c: Likewise.
2206 * mdebugread.c: Likewise.
2207 * mem-break.c: Likewise.
2208 * memattr.c: Likewise.
2209 * memory-map.c: Likewise.
2210 * mep-tdep.c: Likewise.
2211 * mi/mi-cmd-break.c: Likewise.
2212 * mi/mi-cmd-disas.c: Likewise.
2213 * mi/mi-cmd-env.c: Likewise.
2214 * mi/mi-cmd-stack.c: Likewise.
2215 * mi/mi-cmd-var.c: Likewise.
2216 * mi/mi-cmds.c: Likewise.
2217 * mi/mi-console.c: Likewise.
2218 * mi/mi-getopt.c: Likewise.
2219 * mi/mi-interp.c: Likewise.
2220 * mi/mi-main.c: Likewise.
2221 * mi/mi-parse.c: Likewise.
2222 * microblaze-rom.c: Likewise.
2223 * microblaze-tdep.c: Likewise.
2224 * mingw-hdep.c: Likewise.
2225 * minidebug.c: Likewise.
2226 * minsyms.c: Likewise.
2227 * mips-irix-tdep.c: Likewise.
2228 * mips-linux-tdep.c: Likewise.
2229 * mips-tdep.c: Likewise.
2230 * mips64obsd-tdep.c: Likewise.
2231 * mipsnbsd-tdep.c: Likewise.
2232 * mipsread.c: Likewise.
2233 * mn10300-linux-tdep.c: Likewise.
2234 * mn10300-tdep.c: Likewise.
2235 * monitor.c: Likewise.
2236 * moxie-tdep.c: Likewise.
2237 * mt-tdep.c: Likewise.
2238 * nat/linux-btrace.c: Likewise.
2239 * nat/linux-osdata.c: Likewise.
2240 * nat/linux-procfs.c: Likewise.
2241 * nat/linux-ptrace.c: Likewise.
2242 * nat/linux-waitpid.c: Likewise.
2243 * nbsd-tdep.c: Likewise.
2244 * nios2-linux-tdep.c: Likewise.
2245 * nto-procfs.c: Likewise.
2246 * nto-tdep.c: Likewise.
2247 * objc-lang.c: Likewise.
2248 * objfiles.c: Likewise.
2249 * opencl-lang.c: Likewise.
2250 * osabi.c: Likewise.
2251 * osdata.c: Likewise.
2252 * p-exp.y: Likewise.
2253 * p-lang.c: Likewise.
2254 * p-typeprint.c: Likewise.
2255 * parse.c: Likewise.
2256 * posix-hdep.c: Likewise.
2257 * ppc-linux-nat.c: Likewise.
2258 * ppc-sysv-tdep.c: Likewise.
2259 * ppcfbsd-tdep.c: Likewise.
2260 * ppcnbsd-tdep.c: Likewise.
2261 * ppcobsd-tdep.c: Likewise.
2262 * printcmd.c: Likewise.
2263 * procfs.c: Likewise.
2264 * prologue-value.c: Likewise.
2265 * python/py-auto-load.c: Likewise.
2266 * python/py-gdb-readline.c: Likewise.
2267 * ravenscar-thread.c: Likewise.
2268 * regcache.c: Likewise.
2269 * registry.c: Likewise.
2270 * remote-fileio.c: Likewise.
2271 * remote-m32r-sdi.c: Likewise.
2272 * remote-mips.c: Likewise.
2273 * remote-notif.c: Likewise.
2274 * remote-sim.c: Likewise.
2275 * remote.c: Likewise.
2276 * reverse.c: Likewise.
2277 * rs6000-aix-tdep.c: Likewise.
2278 * ser-base.c: Likewise.
2279 * ser-go32.c: Likewise.
2280 * ser-mingw.c: Likewise.
2281 * ser-pipe.c: Likewise.
2282 * ser-tcp.c: Likewise.
2283 * ser-unix.c: Likewise.
2284 * serial.c: Likewise.
2285 * sh-tdep.c: Likewise.
2286 * sh64-tdep.c: Likewise.
2287 * shnbsd-tdep.c: Likewise.
2288 * skip.c: Likewise.
2289 * sol-thread.c: Likewise.
2290 * solib-dsbt.c: Likewise.
2291 * solib-frv.c: Likewise.
2292 * solib-osf.c: Likewise.
2293 * solib-som.c: Likewise.
2294 * solib-spu.c: Likewise.
2295 * solib-target.c: Likewise.
2296 * solib.c: Likewise.
2297 * somread.c: Likewise.
2298 * source.c: Likewise.
2299 * sparc-nat.c: Likewise.
2300 * sparc-sol2-tdep.c: Likewise.
2301 * sparc-tdep.c: Likewise.
2302 * sparc64-tdep.c: Likewise.
2303 * sparc64fbsd-tdep.c: Likewise.
2304 * sparc64nbsd-tdep.c: Likewise.
2305 * sparcnbsd-tdep.c: Likewise.
2306 * spu-linux-nat.c: Likewise.
2307 * spu-multiarch.c: Likewise.
2308 * spu-tdep.c: Likewise.
2309 * stabsread.c: Likewise.
2310 * stack.c: Likewise.
2311 * std-regs.c: Likewise.
2312 * symfile.c: Likewise.
2313 * symmisc.c: Likewise.
2314 * symtab.c: Likewise.
2315 * target.c: Likewise.
2316 * thread.c: Likewise.
2317 * tilegx-linux-nat.c: Likewise.
2318 * tilegx-tdep.c: Likewise.
2319 * top.c: Likewise.
2320 * tracepoint.c: Likewise.
2321 * tui/tui-command.c: Likewise.
2322 * tui/tui-data.c: Likewise.
2323 * tui/tui-disasm.c: Likewise.
2324 * tui/tui-file.c: Likewise.
2325 * tui/tui-layout.c: Likewise.
2326 * tui/tui-out.c: Likewise.
2327 * tui/tui-regs.c: Likewise.
2328 * tui/tui-source.c: Likewise.
2329 * tui/tui-stack.c: Likewise.
2330 * tui/tui-win.c: Likewise.
2331 * tui/tui-windata.c: Likewise.
2332 * tui/tui-winsource.c: Likewise.
2333 * typeprint.c: Likewise.
2334 * ui-file.c: Likewise.
2335 * ui-out.c: Likewise.
2336 * user-regs.c: Likewise.
2337 * utils.c: Likewise.
2338 * v850-tdep.c: Likewise.
2339 * valarith.c: Likewise.
2340 * valops.c: Likewise.
2341 * valprint.c: Likewise.
2342 * value.c: Likewise.
2343 * varobj.c: Likewise.
2344 * vax-tdep.c: Likewise.
2345 * vaxnbsd-tdep.c: Likewise.
2346 * vaxobsd-tdep.c: Likewise.
2347 * windows-nat.c: Likewise.
2348 * xcoffread.c: Likewise.
2349 * xml-support.c: Likewise.
2350 * xstormy16-tdep.c: Likewise.
2351 * xtensa-linux-nat.c: Likewise.
2352
dccbb609
GB
23532014-08-07 Gary Benson <gbenson@redhat.com>
2354
2355 * common/common-defs.h: Include gdb_assert.h.
2356 * aarch64-tdep.c: Do not include gdb_assert.h.
2357 * addrmap.c: Likewise.
2358 * aix-thread.c: Likewise.
2359 * alpha-linux-tdep.c: Likewise.
2360 * alpha-mdebug-tdep.c: Likewise.
2361 * alphanbsd-tdep.c: Likewise.
2362 * amd64-nat.c: Likewise.
2363 * amd64-tdep.c: Likewise.
2364 * amd64bsd-nat.c: Likewise.
2365 * amd64fbsd-nat.c: Likewise.
2366 * amd64fbsd-tdep.c: Likewise.
2367 * amd64nbsd-nat.c: Likewise.
2368 * amd64nbsd-tdep.c: Likewise.
2369 * amd64obsd-nat.c: Likewise.
2370 * amd64obsd-tdep.c: Likewise.
2371 * arch-utils.c: Likewise.
2372 * arm-tdep.c: Likewise.
2373 * armbsd-tdep.c: Likewise.
2374 * auxv.c: Likewise.
2375 * bcache.c: Likewise.
2376 * bfin-tdep.c: Likewise.
2377 * blockframe.c: Likewise.
2378 * breakpoint.c: Likewise.
2379 * bsd-kvm.c: Likewise.
2380 * bsd-uthread.c: Likewise.
2381 * buildsym.c: Likewise.
2382 * c-exp.y: Likewise.
2383 * c-lang.c: Likewise.
2384 * charset.c: Likewise.
2385 * cleanups.c: Likewise.
2386 * cli-out.c: Likewise.
2387 * cli/cli-decode.c: Likewise.
2388 * cli/cli-dump.c: Likewise.
2389 * cli/cli-logging.c: Likewise.
2390 * cli/cli-script.c: Likewise.
2391 * cli/cli-utils.c: Likewise.
2392 * coffread.c: Likewise.
2393 * common/common-utils.c: Likewise.
2394 * common/queue.h: Likewise.
2395 * common/signals.c: Likewise.
2396 * common/vec.h: Likewise.
2397 * complaints.c: Likewise.
2398 * completer.c: Likewise.
2399 * corelow.c: Likewise.
2400 * cp-abi.c: Likewise.
2401 * cp-name-parser.y: Likewise.
2402 * cp-namespace.c: Likewise.
2403 * cp-support.c: Likewise.
2404 * cris-tdep.c: Likewise.
2405 * dbxread.c: Likewise.
2406 * dictionary.c: Likewise.
2407 * doublest.c: Likewise.
2408 * dsrec.c: Likewise.
2409 * dummy-frame.c: Likewise.
2410 * dwarf2-frame-tailcall.c: Likewise.
2411 * dwarf2-frame.c: Likewise.
2412 * dwarf2expr.c: Likewise.
2413 * dwarf2loc.c: Likewise.
2414 * dwarf2read.c: Likewise.
2415 * eval.c: Likewise.
2416 * event-loop.c: Likewise.
2417 * exceptions.c: Likewise.
2418 * expprint.c: Likewise.
2419 * f-valprint.c: Likewise.
2420 * fbsd-nat.c: Likewise.
2421 * findvar.c: Likewise.
2422 * frame-unwind.c: Likewise.
2423 * frame.c: Likewise.
2424 * frv-tdep.c: Likewise.
2425 * gcore.c: Likewise.
2426 * gdb-dlfcn.c: Likewise.
2427 * gdb_bfd.c: Likewise.
2428 * gdbarch.c: Likewise.
2429 * gdbarch.sh: Likewise.
2430 * gdbtypes.c: Likewise.
2431 * gnu-nat.c: Likewise.
2432 * gnu-v3-abi.c: Likewise.
2433 * go-lang.c: Likewise.
2434 * guile/scm-exception.c: Likewise.
2435 * guile/scm-gsmob.c: Likewise.
2436 * guile/scm-lazy-string.c: Likewise.
2437 * guile/scm-math.c: Likewise.
2438 * guile/scm-pretty-print.c: Likewise.
2439 * guile/scm-safe-call.c: Likewise.
2440 * guile/scm-utils.c: Likewise.
2441 * guile/scm-value.c: Likewise.
2442 * h8300-tdep.c: Likewise.
2443 * hppa-hpux-nat.c: Likewise.
2444 * hppa-tdep.c: Likewise.
2445 * hppanbsd-tdep.c: Likewise.
2446 * hppaobsd-tdep.c: Likewise.
2447 * i386-darwin-nat.c: Likewise.
2448 * i386-darwin-tdep.c: Likewise.
2449 * i386-nto-tdep.c: Likewise.
2450 * i386-tdep.c: Likewise.
2451 * i386bsd-nat.c: Likewise.
2452 * i386fbsd-tdep.c: Likewise.
2453 * i386gnu-nat.c: Likewise.
2454 * i386nbsd-tdep.c: Likewise.
2455 * i386obsd-tdep.c: Likewise.
2456 * i387-tdep.c: Likewise.
2457 * ia64-libunwind-tdep.c: Likewise.
2458 * ia64-tdep.c: Likewise.
2459 * inf-ptrace.c: Likewise.
2460 * inf-ttrace.c: Likewise.
2461 * infcall.c: Likewise.
2462 * infcmd.c: Likewise.
2463 * infrun.c: Likewise.
2464 * inline-frame.c: Likewise.
2465 * interps.c: Likewise.
2466 * jv-lang.c: Likewise.
2467 * jv-typeprint.c: Likewise.
2468 * linux-fork.c: Likewise.
2469 * linux-nat.c: Likewise.
2470 * linux-thread-db.c: Likewise.
2471 * m32c-tdep.c: Likewise.
2472 * m32r-linux-nat.c: Likewise.
2473 * m32r-tdep.c: Likewise.
2474 * m68k-tdep.c: Likewise.
2475 * m68kbsd-nat.c: Likewise.
2476 * m68kbsd-tdep.c: Likewise.
2477 * m88k-tdep.c: Likewise.
2478 * machoread.c: Likewise.
2479 * macroexp.c: Likewise.
2480 * macrotab.c: Likewise.
2481 * maint.c: Likewise.
2482 * mdebugread.c: Likewise.
2483 * memory-map.c: Likewise.
2484 * mep-tdep.c: Likewise.
2485 * mi/mi-common.c: Likewise.
2486 * microblaze-tdep.c: Likewise.
2487 * mingw-hdep.c: Likewise.
2488 * mips-linux-nat.c: Likewise.
2489 * mips-linux-tdep.c: Likewise.
2490 * mips-tdep.c: Likewise.
2491 * mips64obsd-tdep.c: Likewise.
2492 * mipsnbsd-tdep.c: Likewise.
2493 * mn10300-linux-tdep.c: Likewise.
2494 * mn10300-tdep.c: Likewise.
2495 * moxie-tdep.c: Likewise.
2496 * mt-tdep.c: Likewise.
2497 * nat/linux-btrace.c: Likewise.
2498 * nat/linux-osdata.c: Likewise.
2499 * nat/linux-ptrace.c: Likewise.
2500 * nat/mips-linux-watch.c: Likewise.
2501 * nios2-linux-tdep.c: Likewise.
2502 * nios2-tdep.c: Likewise.
2503 * objc-lang.c: Likewise.
2504 * objfiles.c: Likewise.
2505 * obsd-nat.c: Likewise.
2506 * opencl-lang.c: Likewise.
2507 * osabi.c: Likewise.
2508 * parse.c: Likewise.
2509 * ppc-linux-nat.c: Likewise.
2510 * ppc-sysv-tdep.c: Likewise.
2511 * ppcfbsd-nat.c: Likewise.
2512 * ppcfbsd-tdep.c: Likewise.
2513 * ppcnbsd-nat.c: Likewise.
2514 * ppcnbsd-tdep.c: Likewise.
2515 * ppcobsd-nat.c: Likewise.
2516 * ppcobsd-tdep.c: Likewise.
2517 * printcmd.c: Likewise.
2518 * procfs.c: Likewise.
2519 * prologue-value.c: Likewise.
2520 * psymtab.c: Likewise.
2521 * python/py-lazy-string.c: Likewise.
2522 * python/py-value.c: Likewise.
2523 * regcache.c: Likewise.
2524 * reggroups.c: Likewise.
2525 * registry.c: Likewise.
2526 * remote-sim.c: Likewise.
2527 * remote.c: Likewise.
2528 * rs6000-aix-tdep.c: Likewise.
2529 * rs6000-tdep.c: Likewise.
2530 * s390-linux-tdep.c: Likewise.
2531 * score-tdep.c: Likewise.
2532 * ser-base.c: Likewise.
2533 * ser-mingw.c: Likewise.
2534 * sh-tdep.c: Likewise.
2535 * sh64-tdep.c: Likewise.
2536 * solib-darwin.c: Likewise.
2537 * solib-spu.c: Likewise.
2538 * solib-svr4.c: Likewise.
2539 * source.c: Likewise.
2540 * sparc-nat.c: Likewise.
2541 * sparc-sol2-tdep.c: Likewise.
2542 * sparc-tdep.c: Likewise.
2543 * sparc64-sol2-tdep.c: Likewise.
2544 * sparc64-tdep.c: Likewise.
2545 * sparc64fbsd-tdep.c: Likewise.
2546 * sparc64nbsd-tdep.c: Likewise.
2547 * sparc64obsd-tdep.c: Likewise.
2548 * sparcnbsd-tdep.c: Likewise.
2549 * sparcobsd-tdep.c: Likewise.
2550 * spu-multiarch.c: Likewise.
2551 * spu-tdep.c: Likewise.
2552 * stabsread.c: Likewise.
2553 * stack.c: Likewise.
2554 * symfile.c: Likewise.
2555 * symtab.c: Likewise.
2556 * target-descriptions.c: Likewise.
2557 * target-memory.c: Likewise.
2558 * target.c: Likewise.
2559 * tic6x-linux-tdep.c: Likewise.
2560 * tic6x-tdep.c: Likewise.
2561 * tilegx-linux-nat.c: Likewise.
2562 * tilegx-tdep.c: Likewise.
2563 * top.c: Likewise.
2564 * tramp-frame.c: Likewise.
2565 * tui/tui-out.c: Likewise.
2566 * tui/tui-winsource.c: Likewise.
2567 * ui-out.c: Likewise.
2568 * user-regs.c: Likewise.
2569 * utils.c: Likewise.
2570 * v850-tdep.c: Likewise.
2571 * valops.c: Likewise.
2572 * value.c: Likewise.
2573 * varobj.c: Likewise.
2574 * vax-nat.c: Likewise.
2575 * xml-syscall.c: Likewise.
2576 * xml-tdesc.c: Likewise.
2577 * xstormy16-tdep.c: Likewise.
2578 * xtensa-linux-nat.c: Likewise.
2579 * xtensa-tdep.c: Likewise.
2580
e76df0d0
GB
25812014-08-07 Gary Benson <gbenson@redhat.com>
2582
2583 * common/common-defs.h: Include common-utils.h.
2584 * defs.h: Do not include common-utils.h.
2585 * common/gdb_assert.h: Likewise.
2586 * darwin-nat.h: Likewise.
2587 * nat/linux-btrace.c: Likewise.
2588 * target/waitstatus.h: Likewise.
2589
4cb9c816
GB
25902014-08-07 Gary Benson <gbenson@redhat.com>
2591
2592 * common/common-defs.h: Include ptid.h.
2593 * defs.h: Do not include ptid.h.
2594 * inferior.h: Likewise.
2595 * infrun.h: Likewise.
2596 * nat/linux-btrace.h: Likewise.
2597 * nat/linux-osdata.h: Likewise.
2598 * target/waitstatus.h: Likewise.
2599
3995eeee
GB
26002014-08-07 Gary Benson <gbenson@redhat.com>
2601
2602 * common/common-defs.h: Include gdb_locale.h.
2603 * defs.h: Do not include gdb_locale.h.
2604
cb9f1a9b
GB
26052014-08-07 Gary Benson <gbenson@redhat.com>
2606
2607 * common/common-defs.h: Include gdb/signals.h.
2608 * defs.h: Do not include gdb/signals.h.
2609
a5fceff8
GB
26102014-08-07 Gary Benson <gbenson@redhat.com>
2611
2612 * common/common-defs.h: Include pathmax.h.
2613 * defs.h: Do not include pathmax.h.
2614
b9391142
GB
26152014-08-07 Gary Benson <gbenson@redhat.com>
2616
2617 * common/common-defs.h: Include libiberty.h.
2618 * defs.h: Do not include libiberty.h.
2619 * common/queue.h: Likewise.
2620 * cp-name-parser.y: Likewise.
2621 * mi/mi-cmd-catch.c: Likewise.
2622 * python/python.c: Likewise.
2623
0e443c87
GB
26242014-08-07 Gary Benson <gbenson@redhat.com>
2625
2626 * common/common-defs.h: Include ansidecl.h.
2627 * defs.h: Do not include ansidecl.h.
2628 * common/buffer.h: Likewise.
2629 * common/common-utils.h: Likewise.
2630
8ebb3f56
GB
26312014-08-07 Gary Benson <gbenson@redhat.com>
2632
2633 * common/common-defs.h: Include stddef.h.
2634 * defs.h: Do not include stddef.h.
2635 * common/common-utils.h: Likewise.
2636 * amd64fbsd-nat.c: Likewise.
2637 * bcache.c: Likewise.
2638 * charset.c: Likewise.
2639 * common/buffer.h: Likewise.
2640 * common/vec.h: Likewise.
2641 * i386bsd-nat.c: Likewise.
2642 * nat/linux-btrace.h: Likewise.
2643 * ppcfbsd-nat.c: Likewise.
2644 * ppcnbsd-tdep.h: Likewise.
2645 * ppcobsd-nat.c: Likewise.
2646 * ppcobsd-tdep.h: Likewise.
2647 * python/py-gdb-readline.c: Likewise.
2648
8980bdf6
GB
26492014-08-07 Gary Benson <gbenson@redhat.com>
2650
2651 * common/common-defs.h: Include stdarg.h.
2652 * defs.h: Do not include stdarg.h.
2653 * ada-lang.c: Likewise.
2654 * common/common-utils.h: Likewise.
2655 * guile/scm-string.c: Likewise.
2656 * guile/scm-utils.c: Likewise.
2657 * m32c-tdep.c: Likewise.
2658
d7096f71
GB
26592014-08-07 Gary Benson <gbenson@redhat.com>
2660
2661 * common/common-defs.h: Include stdlib.h.
2662 * defs.h: Do not include stdlib.h.
2663 * addrmap.c: Likewise.
2664 * bcache.c: Likewise.
2665 * common/buffer.c: Likewise.
2666 * common/common-utils.c: Likewise.
2667 * cp-name-parser.y: Likewise.
2668 * go32-nat.c: Likewise.
2669 * mn10300-linux-tdep.c: Likewise.
2670 * nat/linux-osdata.c: Likewise.
2671 * tui/tui.c: Likewise.
2672 * windows-nat.c: Likewise.
2673
d02f550d
GB
26742014-08-07 Gary Benson <gbenson@redhat.com>
2675
2676 * common/common-defs.h: Include stdio.h.
2677 * defs.h: Do not include stdio.h.
2678 * ada-lang.c: Likewise.
2679 * common/buffer.c: Likewise.
2680 * common/common-utils.c: Likewise.
2681 * cp-name-parser.y: Likewise.
2682 * gnu-nat.c: Likewise.
2683 * go32-nat.c: Likewise.
2684 * i386gnu-nat.c: Likewise.
2685 * proc-api.c: Likewise.
2686 * proc-events.c: Likewise.
2687 * proc-flags.c: Likewise.
2688 * proc-why.c: Likewise.
2689 * python/python-internal.h: Likewise.
2690 * target-memory.c: Likewise.
2691 * tui/tui-io.c: Likewise.
2692 * tui/tui.c: Likewise.
2693
b6d7a4bf
SM
26942014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2695
2696 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2697 (scan_dyntag_auxv): Same.
2698
af19829b
YQ
26992014-08-06 Yao Qi <yao@codesourcery.com>
2700
2701 * amd64-linux-nat.c: Remove duplicated include
2702 "x86-linux-nat.h".
2703 * i386-linux-nat.c: Likewise.
2704
8e07a239
YQ
27052014-08-06 Yao Qi <yao@codesourcery.com>
2706
2707 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2708 operand" with "Special opcode" in comments.
2709
7bfe8241
GB
27102014-08-05 Gary Benson <gbenson@redhat.com>
2711
2712 * interps.c (initialize_interps): Remove prototype.
2713 (interpreter_initialized): Remove static global.
2714 (interp_add): Do not call initialize_interps.
2715 (initialize_interps): Remove function.
2716
d6c95504
GB
27172014-08-05 Gary Benson <gbenson@redhat.com>
2718
2719 * utils.c (vwarning): Remove spurious va_end.
2720
241fd515
AM
27212014-08-05 Alan Modra <amodra@gmail.com>
2722
2723 * charset.c (convert_between_encodings): Cast result of obstack_base.
2724 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2725 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2726 (read_unwind_info): Use size_t for some locals.
2727 * jit.c (finalize_symtab): Likewise.
2728 * utils.c (hashtab_obstack_allocate): Likewise.
2729 * symmisc.c (print_objfile_statistics): Update format strings.
2730
dc304a94
JK
27312014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2732
2733 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2734 (Changes in GDB 7.8): ... here.
2735
3cecbbbe
TT
27362014-08-04 Tom Tromey <tromey@redhat.com>
2737
2738 * target.c (set_targetdebug): New function.
2739 (initialize_targets): Pass set_targetdebug when creating "set
2740 debug target".
2741
6908c509
JB
27422014-08-01 Joel Brobecker <brobecker@adacore.com>
2743
2744 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2745 if detecting a variable-sized field that is not the last field.
2746 Fix struct type length computation.
2747
53e8f97d
JB
27482014-08-01 Joel Brobecker <brobecker@adacore.com>
2749
2750 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2751 Add debug trace.
2752
e068c55d
JB
27532014-08-01 Joel Brobecker <brobecker@adacore.com>
2754
2755 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2756 Remove "+ 8" offset in computation of CHAIN_VMA.
2757
4d4ca2a1
DE
27582014-07-31 Doug Evans <dje@google.com>
2759
2760 * inflow.c (child_terminal_inferior): Add comment.
2761 (child_terminal_ours_for_output): Add comment.
2762 (child_terminal_ours): Add comment.
2763 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2764 (linux_nat_terminal_ours): Add comment.
2765
462f517e
GB
27662014-07-31 Gary Benson <gbenson@redhat.com>
2767
2768 * common/btrace-common.h: Do not include defs.h or server.h.
2769 * nat/mips-linux-watch.h: Likewise.
2770 * gdb-dlfcn.h: Do not include defs.h.
2771 * tracefile.h: Likewise.
2772
74228e77
RM
27732014-07-30 Roland McGrath <mcgrathr@google.com>
2774
2775 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2776
014f9477
TT
27772014-07-30 Tom Tromey <tromey@redhat.com>
2778
2779 * bsd-kvm.c (bsd_kvm_open): Constify.
2780 * corelow.c (core_open): Constify.
2781 * ctf.c (ctf_open): Constify.
2782 * dbug-rom.c (dbug_open): Constify.
2783 * exec.c (exec_open): Constify.
2784 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2785 * microblaze-rom.c (picobug_open): Constify.
2786 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2787 Constify.
2788 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2789 * record-btrace.c (record_btrace_open): Constify.
2790 * record-full.c (record_full_core_open_1, record_full_open_1)
2791 (record_full_open): Constify.
2792 * remote-m32r-sdi.c (m32r_open): Constify.
2793 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2794 (rockhopper_open, lsi_open): Constify.
2795 * remote-sim.c (gdbsim_open): Constify.
2796 * remote.c (remote_open, extended_remote_open, remote_open_1):
2797 Constify.
2798 * target.h (struct target_ops) <to_open>: Make "arg" const.
2799 * tracefile-tfile.c (tfile_open): Constify.
2800
e799154c
TT
28012014-07-30 Tom Tromey <tromey@redhat.com>
2802
2803 * breakpoint.c (map_breakpoint_numbers): Update.
2804 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2805 (get_number_const): New function.
2806 (get_number): Rewrite using get_number_const.
2807 (init_number_or_range): Make "string" const.
2808 (number_is_in_list): Make "list" const.
2809 * cli/cli-utils.h (get_number_const): Declare.
2810 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2811 (init_number_or_range, number_is_in_list): Update.
2812 * printcmd.c (map_display_numbers): Update.
2813 * value.c (value_from_history_ref): Constify.
2814 * value.h (value_from_history_ref): Update.
2815
5f08566b
TT
28162014-07-30 Tom Tromey <tromey@redhat.com>
2817
2818 * corefile.c (hook_type, call_extra_exec_file_hooks)
2819 (specify_exec_file_hook): Constify.
2820 * exec.c (exec_file_attach): Make "filename" const.
2821 * gdbcore.h (deprecated_exec_file_display_hook)
2822 (specify_exec_file_hook, exec_file_attach): Constify.
2823 * main.c (captured_main): Use catch_command_errors_const.
2824
8981c758
TT
28252014-07-30 Tom Tromey <tromey@redhat.com>
2826
2827 * target.c (open_target): New function.
2828 (add_target_with_completer, add_deprecated_target_alias): Use
2829 set_cmd_sfunc, set_cmd_context.
2830 (debug_to_open): Remove.
2831 (setup_target_debug): Update.
2832
a1c7835a
YQ
28332014-07-30 Yao Qi <yao@codesourcery.com>
2834
2835 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2836 comments.
2837 * parse.c (exp_iterate): Update comments.
2838
976411d6
GB
28392014-07-30 Gary Benson <gbenson@redhat.com>
2840
2841 * common/common-defs.h: New file.
2842 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2843 * defs.h: Include common-defs.h.
2844 Do not include config.h or build-gnulib/config.h.
2845
5d4848a4
GB
28462014-07-30 Gary Benson <gbenson@redhat.com>
2847
2848 * common/common-utils.h: Do not include config.h.
2849 * nat/linux-btrace.h: Likewise.
2850
d41f6d8e
GB
28512014-07-30 Gary Benson <gbenson@redhat.com>
2852
2853 * btrace.c: Include defs.h.
2854 * common/ptid.c: Include defs.h or server.h as appropriate.
2855 * nat/mips-linux-watch.c: Likewise.
2856
84202f9c
TT
28572014-07-29 Tom Tromey <tromey@redhat.com>
2858
2859 * target.c (target_is_pushed): Simplify.
2860
2530441c
JB
28612014-07-29 Joel Brobecker <brobecker@adacore.com>
2862
2863 GDB 7.8 released.
2864
7e09a223
YQ
28652014-07-29 Yao Qi <yao@codesourcery.com>
2866
2867 PR gdb/17206
2868 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2869
7ebdbe92
DE
28702014-07-28 Doug Evans <xdje42@gmail.com>
2871
2872 PR guile/17203
2873 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2874 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2875 parameters.
2876
f347ffc9
WN
28772014-07-28 Will Newton <will.newton@linaro.org>
2878
2879 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2880 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2881 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2882 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2883 (THUMB2_EABI_SYSCALL): Likewise.
2884 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2885 struct tramp_frame.
2886 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2887 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2888
37c5f1f7
DE
28892014-07-27 Doug Evans <xdje42@gmail.com>
2890
2891 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2892
0c3abbc7
DE
28932014-07-27 Doug Evans <xdje42@gmail.com>
2894
2895 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2896
e76c5d17
DE
28972014-07-26 Ludovic Courtès <ludo@gnu.org>
2898 Doug Evans <xdje42@gmail.com>
2899
2900 PR guile/17146
2901 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2902 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2903 * configure.ac: Try to use guild to compile an scm file, if it fails
2904 then disable guile support.
2905 * configure: Regenerate.
2906 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2907 GUILE_FILE_LIST.
2908 (GUILE_COMPILED_FILES): New variable.
2909 (GUILE_FILES) Update.
2910 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2911 (stamp-guile): Compile scm files.
2912 * guile/guile.c (boot_guile_support): New function.
2913 (standard_throw_args_p): New function.
2914 (print_standard_throw_error, print_throw_error): New functions.
2915 (handle_boot_error): New function.
2916 (initialize_scheme_side): Rewrite to call boot_guile_support.
2917 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2918 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2919
186fcde0
DE
29202014-07-26 Ludovic Courtès <ludo@gnu.org>
2921 Doug Evans <xdje42@gmail.com>
2922
2923 PR guile/17146
2924 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2925 * guile/lib/gdb/support.scm: New file.
2926 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2927 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2928 All uses updated.
2929 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2930 All uses updated.
2931 (%assert-type): Ditto, and renamed to assert-type.
2932 (%exception-print-style): Delete.
2933
4df42755
DE
29342014-07-26 Doug Evans <xdje42@gmail.com>
2935
2936 PR build/17105
2937 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2938 * configure: Regenerate.
2939 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2940 PYTHON_FILES.
2941 (PYTHON_FILES): New variable.
2942 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2943 (GUILE_FILES): New variable.
2944 (stamp-python, install-python, uninstall-python): Handle empty
2945 file list.
2946 (stamp-guile, install-guile, uninstall-guile): Ditto.
2947
ee7333ae
DE
29482014-07-26 Doug Evans <xdje42@gmail.com>
2949
2950 PR guile/17177
2951 * guile/lib/gdb.scm (pretty-printers): Export.
2952 (set-pretty-printers!): Export.
2953 * guile/lib/gdb/printing.scm (gdb module): Update.
2954 (prepend-pretty-printer!, append-pretty-printer!): Update.
2955 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2956 (pretty_printer_list_var): Delete.
2957 (pretty_printer_list): New static global.
2958 (gdbscm_pretty_printers): New function.
2959 (gdbscm_set_pretty_printers_x): New function.
2960 (ppscm_find_pretty_printer_from_gdb): Update.
2961 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2962 (gdbscm_initialize_pretty_printers): Update.
2963
74edf516
DE
29642014-07-26 Doug Evans <xdje42@gmail.com>
2965
2966 PR 17185
2967 * configure.ac: Add check for header gc/gc.h.
2968 Add check for function setenv.
2969 * configure: Regenerate.
2970 * config.in: Regenerate.
2971 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2972
d54398a7
MR
29732014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2974
2975 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2976 variation in gdbarch matching.
2977
ab16fce8
TT
29782014-07-25 Tom Tromey <tromey@redhat.com>
2979
2980 * exec.c (using_exec_ops): Remove.
2981 (exec_close_1): Update. Remove extraneous block, reindent.
2982 (add_target_sections): Use target_is_pushed.
2983
88056fbb
PA
29842014-07-25 Pedro Alves <palves@redhat.com>
2985
2986 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2987 * monitor.c (monitor_create_inferior): Likewise.
2988 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2989 * remote-sim.c (gdbsim_create_inferior): Likewise.
2990 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2991 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2992 * windows-nat.c (do_initial_windows_stuff): Likewise.
2993
70509625
PA
29942014-07-25 Pedro Alves <palves@redhat.com>
2995
2996 * NEWS: Mention signal passing and "signal" command changes.
2997 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2998 comment.
2999 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3000 call.
3001 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3002 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3003 (jump_command): Adjust clear_proceed_status call.
3004 (signal_command): Warn if other thread that are resumed have
3005 signals that will be delivered. Adjust clear_proceed_status call.
3006 (until_next_command, finish_command)
3007 (proceed_after_attach_callback, attach_command_post_wait)
3008 (attach_command): Adjust clear_proceed_status call.
3009 * infrun.c (proceed_after_vfork_done): Likewise.
3010 (proceed_after_attach_callback): Adjust comment.
3011 (clear_proceed_status_thread): Clear stop_signal if not in pass
3012 state.
3013 (clear_proceed_status_callback): Delete.
3014 (clear_proceed_status): New 'step' parameter. Only clear the
3015 proceed status of threads the command being prepared is about to
3016 resume.
3017 (proceed): If passed in an explicit signal, override stop_signal
3018 with it. Don't pass the last stop signal to the thread we're
3019 resuming.
3020 (init_wait_for_inferior): Adjust clear_proceed_status call.
3021 (switch_back_to_stepped_thread): Clear the signal if it should not
3022 be passed.
3023 * infrun.h (clear_proceed_status): New 'step' parameter.
3024 (user_visible_resume_ptid): Add comment.
3025 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3026 signal is in pass state.
3027 * remote.c (append_pending_thread_resumptions): Likewise.
3028 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3029
d8be2939
TT
30302014-07-25 Tom Tromey <tromey@redhat.com>
3031
3032 * target.h (target_stopped_data_address)
3033 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3034 parentheses.
3035
7d0d9d2b
PL
30362014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3037
3038 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3039 comments.
3040 (avr_pointer_to_address): Likewise.
3041
e9e7f724
TT
30422014-07-24 Tom Tromey <tromey@redhat.com>
3043
3044 * monitor.c (compile_pattern): Update.
3045 * target.h (struct target_ops) <to_shortname, to_longname,
3046 to_doc>: Now const.
3047
1947513d
TT
30482014-07-24 Tom Tromey <tromey@redhat.com>
3049
3050 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3051 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3052 (add_info_alias, add_com): Make "doc" const.
3053 (print_doc_line): Make "str" const.
3054 (delete_cmd): Update.
3055 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3056 (print_doc_line): Update.
3057 * cli/cli-script.c (document_command): Update.
3058 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3059 (add_com, add_info, add_info_alias): Update.
3060 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3061 * python/py-cmd.c (cmdpy_destroyer): Update.
3062
64e61d29
TT
30632014-07-24 Tom Tromey <tromey@redhat.com>
3064
3065 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3066 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3067 (help_cmd_list): Constify.
3068 (lookup_cmd): Update.
3069 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3070 const.
3071 (help_cmd_list, apropos_cmd): Update.
3072 * cli/cli-script.c (show_user): Update.
3073 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3074 * cli/cli-setshow.h (cmd_show_list): Update.
3075 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3076 (cmd_show_list): Update.
3077 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3078 * python/py-cmd.c (cmdpy_destroyer): Update.
3079
429e55ea
TT
30802014-07-24 Tom Tromey <tromey@redhat.com>
3081
3082 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3083 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3084 const.
3085 * command.h (deprecate_cmd): Update.
3086 * maint.c (maintenance_do_deprecate): Add casts.
3087
64669f3b
TT
30882014-07-24 Tom Tromey <tromey@redhat.com>
3089
3090 * cli/cli-decode.c (help_cmd): Make parameter "const".
3091 * cli/cli-decode.h (help_cmd): Update.
3092
d3d3328b
TT
30932014-07-24 Tom Tromey <tromey@redhat.com>
3094
3095 * stack.c (up_silently_base, down_silently_base): Make argument
3096 const.
3097
414842dc
TT
30982014-07-24 Tom Tromey <tromey@redhat.com>
3099
3100 * solib.c (solib_add): Make "pattern" const.
3101 * solib.h (solib_add): Update.
3102
baa336ce
TT
31032014-07-24 Tom Tromey <tromey@redhat.com>
3104
3105 * remote.c (remote_serial_open, print_packet, putpkt)
3106 (putpkt_binary): Constify.
3107 * remote.h (putpkt): Update.
3108
5a19e2d0
TT
31092014-07-24 Tom Tromey <tromey@redhat.com>
3110
3111 * monitor.c (monitor_open): Make "args" const.
3112 * monitor.h (monitor_open): Update.
3113
fc4baa5e
TT
31142014-07-24 Tom Tromey <tromey@redhat.com>
3115
3116 * maint.c (match_bfd_flags): Make "string" const.
3117 (print_bfd_section_info): Remove casts.
3118 (print_objfile_section_info): Make "string" const.
3119
0d5f0dbe
TT
31202014-07-24 Tom Tromey <tromey@redhat.com>
3121
3122 * inf-child.c (inf_child_open_target): Make "arg" const.
3123 * inf-child.h (inf_child_open_target): Update.
3124
41c77899
TT
31252014-07-24 Tom Tromey <tromey@redhat.com>
3126
3127 * environ.c (unset_in_environ): Make "var" const.
3128 * environ.h (unset_in_environ): Update.
3129
93db0d79
TT
31302014-07-24 Tom Tromey <tromey@redhat.com>
3131
3132 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3133 Make "cmd" const.
3134 (scan_filename_with_cleanup): Likewise.
3135 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3136 Make arguments const.
3137 (restore_command): Update.
3138
36d6eb95
PA
31392014-07-24 Pedro Alves <palves@redhat.com>
3140
3141 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3142
8009206a
TT
31432014-07-24 Tom Tromey <tromey@redhat.com>
3144 Gary Benson <gbenson@redhat.com>
3145
3146 * nat/linux-ptrace.c (additional_flags): New global.
3147 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3148 additional_flags; don't check GDBSERVER.
3149 (linux_ptrace_set_additional_flags): New function.
3150 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3151 Declare.
3152 * linux-nat.c (_initialize_linux_nat): Call
3153 linux_ptrace_set_additional_flags.
3154
a7068b60
TT
31552014-07-24 Tom Tromey <tromey@redhat.com>
3156
3157 * make-target-delegates (munge_type, write_debugmethod): New
3158 functions.
3159 (debug_names): New global.
3160 ($TARGET_DEBUG_PRINTER): New global.
3161 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3162 name.
3163 Write debug methods. Generate init_debug_target.
3164 * target-debug.h: New file.
3165 * target-delegates.c: Rebuild.
3166 * target.c: Include target-debug.h.
3167 (debug_target): Hoist definition.
3168 (target_kill, target_get_section_table, target_memory_map)
3169 (target_flash_erase, target_flash_done, target_detach)
3170 (target_disconnect, target_wait, target_resume)
3171 (target_pass_signals, target_program_signals, target_follow_fork)
3172 (target_mourn_inferior, target_search_memory)
3173 (target_thread_address_space, target_close)
3174 (target_find_new_threads, target_core_of_thread)
3175 (target_verify_memory, target_insert_mask_watchpoint)
3176 (target_remove_mask_watchpoint): Remove targetdebug code.
3177 (debug_to_post_attach, debug_to_prepare_to_store)
3178 (debug_to_files_info, debug_to_insert_breakpoint)
3179 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3180 (debug_to_region_ok_for_hw_watchpoint)
3181 (debug_to_can_accel_watchpoint_condition)
3182 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3183 (debug_to_watchpoint_addr_within_range)
3184 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3185 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3186 (debug_to_terminal_init, debug_to_terminal_inferior)
3187 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3188 (debug_to_terminal_save_ours, debug_to_terminal_info)
3189 (debug_to_load, debug_to_post_startup_inferior)
3190 (debug_to_insert_fork_catchpoint)
3191 (debug_to_remove_fork_catchpoint)
3192 (debug_to_insert_vfork_catchpoint)
3193 (debug_to_remove_vfork_catchpoint)
3194 (debug_to_insert_exec_catchpoint)
3195 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3196 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3197 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3198 (setup_target_debug): Call init_debug_target.
3199 * target.h (TARGET_DEBUG_PRINTER): New macro.
3200 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3201 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3202
2c51604d
GB
32032014-07-24 Gary Benson <gbenson@redhat.com>
3204
3205 * exceptions.h (throw_vfatal): Renamed to...
3206 (throw_vquit): New declaration.
3207 (throw_quit): Likewise.
3208 * exceptions.c (throw_vfatal): Renamed to...
3209 (throw_vquit): New function.
3210 (throw_quit): Likewise.
3211 (throw_error): Call throw_verror rather than throw_it.
3212 * utils.h (vfatal): Removed.
3213 (fatal): Likewise.
3214 * utils.c (vfatal): Removed.
3215 (fatal): Likewise.
3216 (internal_verror): Replaced call to fatal with call to throw_quit.
3217 (quit): Replaced calls to fatal with calls to throw_quit.
3218
34211963
ME
32192014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3220
3221 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3222 target_read_code.
3223
a52b4d3e
ME
32242014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3225
3226 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3227 less than zero in conditional expression.
3228
a8bdc56b
TT
32292014-07-23 Tom Tromey <tromey@redhat.com>
3230
3231 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3232 ($INTRO_PART): Don't match whitespace.
3233 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3234 argument matching.
3235 ($METHOD): Add $METHOD_TRAILER.
3236 (trim): Rewrite.
3237 (scan_target_h): New sub.
3238 Change main loop not to collect state.
3239 * target-delegates.c: Rebuild.
3240
91b52240
GB
32412014-07-23 Gary Benson <gbenson@redhat.com>
3242
3243 * cp-support.c (gdb_demangle): Fix build on systems without
3244 sigaltstack.
3245
45326f6f
JK
32462014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3247
3248 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3249 for reference entry value target data value.
3250
e214cf6c
JK
32512014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3252
3253 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3254 value_available_contents_eq.
3255
bddbbedd
PA
32562014-07-22 Pedro Alves <palves@redhat.com>
3257
3258 * value.c (allocate_optimized_out_value): Don't mark value as
3259 non-lazy.
3260
45c71484
JW
32612014-07-22 Jiong Wang <jiong.wang@arm.com>
3262
3263 * MAINTAINERS (Write After Approval): Update my email address.
3264
9597b22a
DE
32652014-07-20 Doug Evans <dje@google.com>
3266
3267 PR server/17147
3268 * remote.c (putpkt_binary): Add text to error message.
3269
91101fe5
YQ
32702014-07-20 Yao Qi <yao@codesourcery.com>
3271
3272 * eval.c: Remove "Chill" from comments.
3273 * gdbtypes.h: Likewise.
3274 * symtab.h: Likewise.
3275
c9402c95
YQ
32762014-07-20 Yao Qi <yao@codesourcery.com>
3277
3278 * std-operator.def: Update comments to TERNOP_SLICE.
3279
ae8fddda
YQ
32802014-07-20 Yao Qi <yao@codesourcery.com>
3281
3282 * std-operator.def: Remove BINOP_RANGE.
3283 * breakpoint.c (watchpoint_exp_is_const): Update.
3284 * expprint.c (dump_subexp_body_standard): Likewise.
3285 * eval.c (init_array_element): Remove dead code.
3286 (evaluate_subexp_standard): Likewise.
3287
9c816640
YQ
32882014-07-20 Yao Qi <yao@codesourcery.com>
3289
3290 * std-operator.def: Remove BINOP_IN.
3291 * breakpoint.c (watchpoint_exp_is_const): Update.
3292 * eval.c (evaluate_subexp_standard): Likewise.
3293 * expprint.c (dump_subexp_body_standard): Likewise.
3294
164224e9
ME
32952014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3296
3297 * microblaze-tdep.c (microblaze_register_names): Add
3298 the rshr and rslr register names.
3299 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3300 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3301 Use of tdesc_numbered_register. Use of
3302 microblaze_register_g_packet_guesses. Use of
3303 tdesc_use_registers. Use of set_gdbarch_register_type.
3304 (microblaze_register_g_packet_guesses): New.
3305 * microblaze-tdep.h (microblaze_reg_num): Add
3306 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3307 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3308 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3309 * features/microblaze-core.xml: New file.
3310 * features/microblaze-stack-protect.xml: New file.
3311 * features/microblaze-with-stack-protect.c: New file.
3312 * features/microblaze-with-stack-protect.xml: New file.
3313 * features/microblaze.xml: New file.
3314 * features/microblaze.c: New file.
3315 * features/Makefile (microblaze-with-stack-protect): Add
3316 microblaze-with-stack-protect microblaze and microblaze-expedite.
3317 * regformats/microblaze-with-stack-protect.dat: New file.
3318 * regformats/microblaze.dat: New file.
3319 * doc/gdb.texinfo (MicroBlaze Features): Added.
3320
e8b2341c
TT
33212014-07-18 Tom Tromey <tromey@redhat.com>
3322
3323 * exec.c (exec_ops): Now static.
3324 * exec.h (exec_ops): Don't declare.
3325
44e89118
TT
33262014-07-18 Tom Tromey <tromey@redhat.com>
3327
3328 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3329 to find_target_beneath.
3330 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3331 find_target_beneath.
3332 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3333
b0ed115f
TT
33342014-07-18 Tom Tromey <tromey@redhat.com>
3335
3336 PR gdb/17130:
3337 * utils.c (quit): Use target_supports_terminal_ours.
3338 * target.h (target_supports_terminal_ours): Declare.
3339 * target.c (target_supports_delete_record): Don't check
3340 to_delete_record against NULL.
3341 (target_supports_terminal_ours): New function.
3342
e75fdfca
TT
33432014-07-18 Tom Tromey <tromey@redhat.com>
3344
3345 PR gdb/17130:
3346 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3347 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3348 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3349 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3350 * windows-nat.c (windows_xfer_partial): Always delegate.
3351 * record-btrace.c (record_btrace_xfer_partial): Simplify
3352 delegation.
3353 (record_btrace_fetch_registers, record_btrace_store_registers)
3354 (record_btrace_prepare_to_store, record_btrace_resume)
3355 (record_btrace_wait, record_btrace_find_new_threads)
3356 (record_btrace_thread_alive): Likewise.
3357 * procfs.c (procfs_xfer_partial): Always delegate.
3358 * corelow.c (core_xfer_partial): Always delegate.
3359 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3360
83814951
TT
33612014-07-18 Tom Tromey <tromey@redhat.com>
3362
3363 * exec.c (exec_make_note_section): Move earlier.
3364
b8b8facf
DE
33652014-07-17 Doug Evans <dje@google.com>
3366
74b49205 3367 PR gdb/17170
b8b8facf
DE
3368 * maint.c (count_symtabs_and_blocks): Handle NULL
3369 current_program_space.
3370 (report_command_stats): Check global enabled flag in addition to
3371 recorded enabled flag.
3372 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3373
69ff6be5
PA
33742014-07-16 Pedro Alves <palves@redhat.com>
3375
3376 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3377
252db1b5
TT
33782014-07-16 Tom Tromey <tromey@redhat.com>
3379
3380 * target.h (struct target_ops) <to_delete_record>: Reformat
3381 comment.
3382
a432721e
TT
33832014-07-16 Tom Tromey <tromey@redhat.com>
3384
3385 * target-delegates.c: Rebuild.
3386
487d9753
PL
33872014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3388
3389 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3390 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3391 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3392 (avr_pointer_to_address): Likewise.
3393 (avr_address_class_type_flags): New function.
3394 (avr_address_class_type_flags_to_name): Likewise.
3395 (avr_address_class_name_to_type_flags): Likewise.
3396 (avr_gdbarch_init): Set address_class_type_flags,
3397 address_class_type_flags_to_name and
3398 address_class_name_to_type_flags.
3399
57745c90
PA
34002014-07-15 Pedro Alves <palves@redhat.com>
3401
3402 * linux-nat.c (kill_callback): Save errno and work with saved
3403 copy.
3404
2d40be18
SM
34052014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3406
3407 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3408
572f6555
EBM
34092014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3410
3411 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3412 breakpoint support correctly.
3413
cc1c52ad
PA
34142014-07-14 Pedro Alves <palves@redhat.com>
3415
3416 * utils.c (prompt_for_continue): Call target_terminal_ours.
3417
1e973570
PA
34182014-07-14 Pedro Alves <palves@redhat.com>
3419
3420 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3421 catch_errors. Don't re-enable stdin or notify observers where,
3422 and rethrow error.
3423 (fetch_inferior_event_wrapper): Delete.
3424
93d6eb10
PA
34252014-07-14 Pedro Alves <palves@redhat.com>
3426
3427 PR gdb/17072
3428 * top.c: Include "inf-loop.h".
3429 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3430 field.
3431 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3432 was async before.
3433 (gdb_readline_wrapper): Store whether the target is async, and
3434 make it sync.
3435
0017922d
PA
34362014-07-14 Pedro Alves <palves@redhat.com>
3437
3438 PR gdb/17072
3439 * top.c (gdb_readline_wrapper_line): Tweak comment.
3440 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3441 the input handler callback.
3442
94696ad3
PA
34432014-07-14 Pedro Alves <palves@redhat.com>
3444
3445 PR gdb/17072
3446 * main.c: Include event-top.h.
3447 (handle_command_errors): New function.
3448 (catch_command_errors, catch_command_errors_const): Use it.
3449
9d1e69a2
PA
34502014-07-14 Pedro Alves <palves@redhat.com>
3451
3452 * exceptions.c (catch_command_errors, catch_command_errors_const):
3453 Moved to main.c.
3454 * exceptions.h (catch_command_errors_ftype)
3455 (catch_command_errors_const_ftype): Moved to main.c.
3456 (catch_command_errors, catch_command_errors_const): Delete
3457 declarations.
3458 * main.c (catch_command_errors_ftype)
3459 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3460 (catch_command_errors, catch_command_errors_const)): Moved here
3461 from exceptions.c and make static.
3462
feefc97b
PA
34632014-07-14 Pedro Alves <palves@redhat.com>
3464
3465 * exceptions.c (print_any_exception): Delete.
3466 (catch_exceptions_with_msg): Use exception_print instead of
3467 print_any_exception.
3468 (catch_errors): Use exception_fprintf instead of
3469 print_any_exception.
3470 (catch_command_errors, catch_command_errors_const): Use
3471 exception_print instead of print_any_exception.
3472
c933f875
PA
34732014-07-14 Pedro Alves <palves@redhat.com>
3474
3475 * infcall.c (run_inferior_call): Set 'sync_execution' while
3476 running the inferior call.
3477
feb6f816
PA
34782014-07-14 Pedro Alves <palves@redhat.com>
3479
3480 * value.c (value_contents_equal): Delete function.
3481 * value.h (value_contents_equal): Delete declaration.
3482
d98b7a16
TT
34832014-07-14 Tom Tromey <tromey@redhat.com>
3484
3485 PR exp/17106:
3486 * gdbtypes.c (is_dynamic_type_internal): New function, from
3487 is_dynamic_type.
3488 (is_dynamic_type): Rewrite.
3489 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3490 (resolve_dynamic_struct): Likewise.
3491 (resolve_dynamic_type_internal): New function, from
3492 resolve_dynamic_type.
3493 (resolve_dynamic_type): Rewrite.
3494
548740d6
TT
34952014-07-14 Tom Tromey <tromey@redhat.com>
3496
3497 * target.c (target_require_runnable): Also check record_stratum.
3498 Update comment.
3499
808f7ab1
YQ
35002014-07-11 Yao Qi <yao@codesourcery.com>
3501
3502 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3503 thumb_instruction_restores_sp return true.
3504
540314bd
YQ
35052014-07-11 Yao Qi <yao@codesourcery.com>
3506
3507 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3508 (thumb_in_function_epilogue_p): Call
3509 thumb_instruction_restores_sp.
3510
1db01f22
YQ
35112014-07-11 Yao Qi <yao@codesourcery.com>
3512
3513 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3514 'add sp, #imm'.
3515 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3516
3116063b
GB
35172014-07-11 Gary Benson <gbenson@redhat.com>
3518
3519 * amd64-linux-nat.c (gdbcore.h): Remove include.
3520 (regset.h): Likewise.
3521 (nat/linux-btrace.h): Likewise.
3522 (btrace.h): Likewise.
3523 (gdb_assert.h): Likewise.
3524 (string.h): Likewise.
3525 (sys/uio.h): Likewise.
3526 (sys/debugreg.h): Likewise.
3527 (sys/syscall.h): Likewise.
3528 (sys/procfs.h): Likewise.
3529 (sys/user.h): Likewise.
3530 (asm/ptrace.h): Likewise.
3531 (i386-nat.h): Likewise.
3532 * i386-linux-nat.c (i386-nat.h): Likewise.
3533 (regset.h): Likewise.
3534 (target.h): Likewise.
3535 (linux-nat.h): Likewise.
3536 (nat/linux-btrace.h): Likewise.
3537 (btrace.h): Likewise.
3538 (gdb_assert.h): Likewise.
3539 (string.h): Likewise.
3540 (sys/uio.h): Likewise.
3541 (sys/user.h): Likewise.
3542 (sys/procfs.h): Likewise.
3543 (sys/reg.h): Likewise.
3544 (sys/debugreg.h): Likewise.
3545 (ORIG_EAX): Remove definition.
3546
040baaf6
GB
35472014-07-11 Gary Benson <gbenson@redhat.com>
3548
3549 * i386-linux-nat.h: New file.
3550 * x86-linux-nat.h: Likewise.
3551 * x86-linux-nat.c: Likewise.
3552 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3553 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3554 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3555 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3556 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3557 (PTRACE_SETREGSET): Likewise.
3558 (arch_lwp_info): Now in x86-linux-nat.c.
3559 (have_ptrace_getregset): Now in x86-linux-nat.h.
3560 (x86_linux_dr_get): Now in x86-linux-nat.c.
3561 (x86_linux_dr_set): Likewise.
3562 (x86_linux_dr_get_addr): Likewise.
3563 (x86_linux_dr_get_control): Likewise.
3564 (x86_linux_dr_get_status): Likewise.
3565 (update_debug_registers_callback): Likewise.
3566 (x86_linux_dr_set_control): Likewise.
3567 (x86_linux_dr_set_addr): Likewise.
3568 (x86_linux_prepare_to_resume): Likewise.
3569 (x86_linux_new_thread): Likewise.
3570 (x86_linux_new_fork): Likewise.
3571 (x86_linux_get_thread_area): Likewise.
3572 (super_post_startup_inferior): Likewise.
3573 (x86_linux_child_post_startup_inferior): Likewise.
3574 (AMD64_LINUX_USER64_CS): Likewise.
3575 (AMD64_LINUX_X32_DS): Likewise.
3576 (x86_linux_read_description): Likewise.
3577 (x86_linux_enable_btrace): Likewise.
3578 (x86_linux_disable_btrace): Likewise.
3579 (x86_linux_teardown_btrace): Likewise.
3580 (x86_linux_read_btrace): Likewise.
3581 (x86_linux_create_target): Likewise.
3582 (x86_linux_add_target): Likewise.
3583 * i386-linux-nat.c (x86-linux-nat.h): New include.
3584 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3585 (PTRACE_SETREGSET): Likewise.
3586 (arch_lwp_info): Now in x86-linux-nat.c.
3587 (have_ptrace_getregset): Now in x86-linux-nat.h.
3588 (x86_linux_dr_get): Now in x86-linux-nat.c.
3589 (x86_linux_dr_set): Likewise.
3590 (x86_linux_dr_get_addr): Likewise.
3591 (x86_linux_dr_get_control): Likewise.
3592 (x86_linux_dr_get_status): Likewise.
3593 (update_debug_registers_callback): Likewise.
3594 (x86_linux_dr_set_control): Likewise.
3595 (x86_linux_dr_set_addr): Likewise.
3596 (x86_linux_prepare_to_resume): Likewise.
3597 (x86_linux_new_thread): Likewise.
3598 (x86_linux_new_fork): Likewise.
3599 (x86_linux_get_thread_area): Likewise.
3600 (super_post_startup_inferior): Likewise.
3601 (x86_linux_child_post_startup_inferior): Likewise.
3602 (AMD64_LINUX_USER64_CS): Likewise.
3603 (AMD64_LINUX_X32_DS): Likewise.
3604 (x86_linux_read_description): Likewise.
3605 (x86_linux_enable_btrace): Likewise.
3606 (x86_linux_disable_btrace): Likewise.
3607 (x86_linux_teardown_btrace): Likewise.
3608 (x86_linux_read_btrace): Likewise.
3609 (x86_linux_create_target): Likewise.
3610 (x86_linux_add_target): Likewise.
3611
1aa7e42c
GB
36122014-07-11 Gary Benson <gbenson@redhat.com>
3613
3614 * amd64-linux-nat.c: Comment and whitespace changes.
3615 * i386-linux-nat.c: Comment and whitespace changes.
3616
c1e246a0
GB
36172014-07-11 Gary Benson <gbenson@redhat.com>
3618
3619 * amd64-linux-nat.c (x86_linux_create_target): New function.
3620 (x86_linux_add_target): Likewise.
3621 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3622 * i386-linux-nat.c (x86_linux_create_target): New function.
3623 (x86_linux_add_target): Likewise.
3624 (_initialize_i386_linux_nat): Delegate to the above new functions.
3625
8c420b8d
GB
36262014-07-11 Gary Benson <gbenson@redhat.com>
3627
3628 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3629 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3630 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3631 (ps_get_thread_area): Delegate to the above.
3632
cb1da100
GB
36332014-07-11 Gary Benson <gbenson@redhat.com>
3634
3635 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3636 x86_linux_read_description. All uses updated. amd64-specific
3637 code conditionalized. Conditionalized i386-specific code added.
3638 Redundant cast removed.
3639 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3640 x86_linux_read_description. All uses updated. i386-specific
3641 code conditionalized. Conditionalized amd64-specific code added.
3642 One sizeof replaced with the actual type it is describing.
3643
2acf3cd0
GB
36442014-07-11 Gary Benson <gbenson@redhat.com>
3645
3646 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3647 x86_linux_dr_get. All uses updated.
3648 (amd64_linux_dr_set): Renamed to
3649 x86_linux_dr_set. All uses updated.
3650 (amd64_linux_dr_get_addr): Renamed to
3651 x86_linux_dr_get_addr. All uses updated.
3652 (amd64_linux_dr_get_control): Renamed to
3653 x86_linux_dr_get_control. All uses updated.
3654 (amd64_linux_dr_get_status): Renamed to
3655 x86_linux_dr_get_status. All uses updated.
3656 (amd64_linux_dr_set_control): Renamed to
3657 x86_linux_dr_set_control. All uses updated.
3658 (amd64_linux_dr_set_addr): Renamed to
3659 x86_linux_dr_set_addr. All uses updated.
3660 (amd64_linux_prepare_to_resume): Renamed to
3661 x86_linux_prepare_to_resume. All uses updated.
3662 (amd64_linux_new_thread): Renamed to
3663 x86_linux_new_thread. All uses updated.
3664 (amd64_linux_new_fork): Renamed to
3665 x86_linux_new_fork. All uses updated.
3666 (amd64_linux_child_post_startup_inferior): Renamed to
3667 x86_linux_child_post_startup_inferior. All uses updated.
3668 (amd64_linux_enable_btrace): Renamed to
3669 x86_linux_enable_btrace. All uses updated.
3670 (amd64_linux_disable_btrace): Renamed to
3671 x86_linux_disable_btrace. All uses updated.
3672 (amd64_linux_teardown_btrace): Renamed to
3673 x86_linux_teardown_btrace. All uses updated.
3674 (amd64_linux_read_btrace): Renamed to
3675 x86_linux_read_btrace. All uses updated.
3676 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3677 x86_linux_dr_get. All uses updated.
3678 (i386_linux_dr_set): Renamed to
3679 x86_linux_dr_set. All uses updated.
3680 (i386_linux_dr_get_addr): Renamed to
3681 x86_linux_dr_get_addr. All uses updated.
3682 (i386_linux_dr_get_control): Renamed to
3683 x86_linux_dr_get_control. All uses updated.
3684 (i386_linux_dr_get_status): Renamed to
3685 x86_linux_dr_get_status. All uses updated.
3686 (i386_linux_dr_set_control): Renamed to
3687 x86_linux_dr_set_control. All uses updated.
3688 (i386_linux_dr_set_addr): Renamed to
3689 x86_linux_dr_set_addr. All uses updated.
3690 (i386_linux_prepare_to_resume): Renamed to
3691 x86_linux_prepare_to_resume. All uses updated.
3692 (i386_linux_new_thread): Renamed to
3693 x86_linux_new_thread. All uses updated.
3694 (i386_linux_new_fork): Renamed to
3695 x86_linux_new_fork. All uses updated.
3696 (i386_linux_child_post_startup_inferior): Renamed to
3697 x86_linux_child_post_startup_inferior. All uses updated.
3698 (i386_linux_enable_btrace): Renamed to
3699 x86_linux_enable_btrace. All uses updated.
3700 (i386_linux_disable_btrace): Renamed to
3701 x86_linux_disable_btrace. All uses updated.
3702 (i386_linux_teardown_btrace): Renamed to
3703 x86_linux_teardown_btrace. All uses updated.
3704 (i386_linux_read_btrace): Renamed to
3705 x86_linux_read_btrace. All uses updated.
3706
b9c1d481
AS
37072014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3708
3709 * remote.c (extended_remote_post_attach): New function.
3710 (init_extended_remote_ops): Install it as to_post_attach method.
3711
7180e04a
PA
37122014-07-09 Pedro Alves <palves@redhat.com>
3713
3714 * infcmd.c (attach_command_post_wait): Don't call
3715 target_terminal_inferior here.
3716 (attach_command): Call it here instead.
3717
9a9a7608
AB
37182014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3721 field.
3722 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3723 from varobj.c, with additional checks.
3724 (c_varobj_ops): Fill in is_path_expr_parent field.
3725 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3726 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3727 field.
3728 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3729 ops method.
3730 (varobj_default_is_path_expr_parent): New function.
3731 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3732 (varobj_default_is_path_expr_parent): Declare new function.
3733
1f267ae3
MM
37342014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3735
3736 * infcmd.c (finish_backward): Turn internal error into normal error.
3737
b2ee242b
PA
37382014-07-07 Pedro Alves <palves@redhat.com>
3739
8a869bca 3740 PR gdb/17096
b2ee242b
PA
3741 * remote.c (async_handle_remote_sigint)
3742 (async_handle_remote_sigint_twice): Call
3743 gdb_call_async_signal_handler instead of
3744 mark_async_signal_handler.
3745
38e229b2
TT
37462014-07-07 Tom Tromey <tromey@redhat.com>
3747
3748 * target-delegates.c: Rebuild.
3749 * target.c (target_info_record): Remove.
3750 * record.c (info_record_command): Unconditionally call
3751 to_info_record.
3752 * target.h (struct target_ops) <to_info_record>: Use
3753 TARGET_DEFAULT_IGNORE.
3754 (target_info_record): Remove.
3755
f0f9ff95
TT
37562014-07-07 Tom Tromey <tromey@redhat.com>
3757
3758 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3759 TARGET_DEFAULT_NORETURN.
3760 * target.c (generic_tls_error): New function.
3761 (target_translate_tls_address): Don't search target stack.
3762 * target-delegates.c: Rebuild.
3763 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3764 stack.
3765 * linux-thread-db.c (thread_db_get_thread_local_address):
3766 Unconditionally call beneath target.
3767
4a5be5ee
MK
37682014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3769
3770 * cli/cli-logging.c (pop_output_files): Assign targerr to
3771 gdb_stdtargerr.
3772
92c3b204
AB
37732014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * MAINTAINERS (Write After Approval): Update my email address.
3776
9b11e3a7
GB
37772014-07-02 Gary Benson <gbenson@redhat.com>
3778
3779 * proc-service.c (ps_xfer_memory): Update comment.
3780 (ps_pstop): Remove unused function.
3781 (ps_pcontinue): Likewise.
3782 (ps_lstop): Likewise.
3783 (ps_lcontinue): Likewise.
3784 (ps_lgetxregsize): Likewise.
3785 (ps_lgetxregs): Likewise.
3786 (ps_lsetxregs): Likewise.
3787 (ps_plog): Likewise.
3788 (ps_ptread): Likewise.
3789 (ps_ptwrite): Likewise.
3790
cf363f18
MW
37912014-07-01 Mark Wielaard <mjw@redhat.com>
3792
3793 * dwarf2read.c (add_array_cv_type): New function.
3794 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3795 (read_tag_volatile_type): Likewise.
3796
82ae6c8d
TT
37972014-07-01 Tom Tromey <tromey@redhat.com>
3798
3799 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3800 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3801 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3802 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3803 * command.h (cmd_cfunc_ftype): Move earlier.
3804 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3805 (add_com, add_info): Use cmd_cfunc_ftype.
3806
96142726
TT
38072014-06-30 Tom Tromey <tromey@redhat.com>
3808
3809 * symtab.c (operator_chars): Make parameters and return type
3810 const.
3811 (file_matches): Make "files" const.
3812 (struct search_symbols_data) <files>: Now const.
3813 (search_symbols): Make "regexp" and "files" parameters const.
3814 Update.
3815 (symtab_symbol_info): Remove cast.
3816 (rbreak_command): Update.
3817 * symtab.h (search_symbols): Update.
3818
b67a2c6f
YQ
38192014-06-27 Yao Qi <yao@codesourcery.com>
3820
3821 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3822 Change parameter type to 'struct thread_info *'. Caller
3823 updated.
3824 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3825 Update declaration.
3826 * dummy-frame.c (struct dummy_frame_id): New.
3827 (dummy_frame_id_eq): New function.
3828 (struct dummy_frame) <id>: Change its type to 'struct
3829 dummy_frame_id'.
3830 (dummy_frame_push): Add parameter ptid and save it in
3831 dummy_frame_id.
3832 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3833 inferior_ptid.
3834 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3835 to inferior_ptid.
3836 (lookup_dummy_frame): Change parameter type to 'struct
3837 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3838 instead of frame_id_eq.
3839 (dummy_frame_pop): Add parameter ptid. Callers updated.
3840 Update comments. Compose dummy_frame_id and pass it to
3841 lookup_dummy_frame.
3842 (dummy_frame_discard): Add parameter ptid.
3843 (dummy_frame_sniffer): Compose dummy_frame_id and call
3844 dummy_frame_id_eq instead of frame_id_eq.
3845 (fprint_dummy_frames): Print ptid.
3846 * dummy-frame.h: Remove comments.
3847 (dummy_frame_push): Add ptid in declaration.
3848 (dummy_frame_pop, dummy_frame_discard): Likewise.
3849
5b10184c
TT
38502014-06-26 Tom Tromey <tromey@redhat.com>
3851
3852 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3853 * command.h (error_no_arg): Update.
3854
06900326
TT
38552014-06-26 Tom Tromey <tromey@redhat.com>
3856
3857 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3858 (do_show_command): Make "arg" const.
3859 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3860
c2bcbb1d
TT
38612014-06-26 Tom Tromey <tromey@redhat.com>
3862
3863 * record-full.c (record_full_get_bookmark): Make "args" const.
3864 (record_full_goto_bookmark): Make "raw_bookmark" const.
3865 * record.c (record_goto): New function.
3866 (cmd_record_goto): Use it. Now static.
3867 * record.h (record_goto): Declare.
3868 (cmd_record_goto): Remove declaration.
3869 * target-delegates.c: Rebuild.
3870 * target.h (struct target_ops) <to_get_bookmark,
3871 to_goto_bookmark>: Make parameter const.
3872
9cbe5fff
TT
38732014-06-26 Tom Tromey <tromey@redhat.com>
3874
3875 * defs.h (generic_load): Update.
3876 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3877 * monitor.c (monitor_load): Make "args" const.
3878 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3879 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3880 const.
3881 (mips_load): Make "file" const.
3882 * remote-sim.c (gdbsim_load): Make "args" const.
3883 * remote.c (remote_load): Make "name" const.
3884 * symfile.c (generic_load): Make "args" const.
3885 * target-delegates.c: Rebuild.
3886 * target.c (target_load): Make "arg" const.
3887 (debug_to_load): Make "args" const.
3888 * target.h (struct target_ops) <to_load>: Make parameter const.
3889 (target_load): Update.
3890
34a68019
TT
38912014-06-26 Tom Tromey <tromey@redhat.com>
3892
3893 PR symtab/16902:
3894 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3895 (dwarf2_physname, read_partial_die)
3896 (guess_partial_die_structure_name, fixup_partial_die)
3897 (guess_full_die_structure_name, anonymous_struct_prefix)
3898 (dwarf2_name): Use per-BFD obstack.
3899
efc889c1
YQ
39002014-06-26 Yao Qi <yao@codesourcery.com>
3901
3902 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3903 dummyframe and this_id into inner block below.
3904
4395285e
YQ
39052014-06-26 Yao Qi <yao@codesourcery.com>
3906
3907 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3908 with "signal_pass[0]" in the initialization of signal_pass.
3909
aef92902
MM
39102014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3911
3912 * record-btrace.c (record_btrace_generating_corefile)
3913 (record_btrace_prepare_to_generate_core)
3914 (record_btrace_done_generating_core): New.
3915 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3916 (record_btrace_store_registers, record_btrace_prepare_to_store):
3917 Forward request when generating a core file.
3918 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3919 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3920 to_done_generating_core.
3921
5fff78c4
MM
39222014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3923
3924 * target.h (target_ops) <to_prepare_to_generate_core>
3925 <to_done_generating_core>: New.
3926 (target_prepare_to_generate_core, target_done_generating_core): New.
3927 * target.c (target_prepare_to_generate_core)
3928 (target_done_generating_core): New.
3929 * target-delegates.c: Regenerate.
3930 * gcore.c: (write_gcore_file): Rename to ...
3931 (write_gcore_file_1): ...this.
3932 (write_gcore_file): Call target_prepare_to_generate_core
3933 and target_done_generating_core.
3934
1d1f1ccb
MM
39352014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3936
3937 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3938 * gcore.c (write_gcore_file): Free memory returned from
3939 make_corefile_notes.
3940 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3941 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3942
3343ef86
YQ
39432014-06-24 Yao Qi <yao@codesourcery.com>
3944
3945 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3946 (arm_linux_init_abi): Set skip_trampoline_code with
3947 gdbarch_skip_trampoline_code instead of
3948 find_solib_trampoline_target.
3949
18d18ac8
YQ
39502014-06-24 Yao Qi <yao@codesourcery.com>
3951
3952 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3953 arm_skip_bx_reg returns non-zero.
3954
80d8d390
YQ
39552014-06-24 Yao Qi <yao@codesourcery.com>
3956
3957 * arm-tdep.c (arm_skip_bx_reg): New function.
3958 (arm_skip_stub): Call arm_skip_bx_reg.
3959
6a18a01c
DB
39602014-06-23 Don Breazeal <donb@codesourcery.com>
3961
3962 * MAINTAINERS: Add myself as write-after-approval maintainer.
3963
8e9db26e
PA
39642014-06-23 Pedro Alves <palves@redhat.com>
3965
3966 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3967 DR_CONTROL before setting DR0..DR3.
3968 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3969 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3970 bits of DR_CONTROL related to the debug register slot being
3971 disabled. If all slots are vacant, clear local slowdown as well,
3972 and assert DR_CONTROL is 0.
3973
70afc5b7
SC
39742014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3975
3976 * python/lib/gdb/command/xmethods.py
3977 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3978 current progspace only if the string "progspace" matches LOCUS_RE.
3979
840ed64d
JK
39802014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3981
3982 Fix --with-system-readline with readline-6.3 patch 5.
3983 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3984 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3985 types.
3986
26f2dc30
TT
39872014-06-20 Tom Tromey <tromey@redhat.com>
3988
3989 * dwarf2read.c (dw2_get_real_path): Use correct type in
3990 OBSTACK_CALLOC.
3991 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3992
125f8a3d
GB
39932014-06-20 Gary Benson <gbenson@redhat.com>
3994
3995 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3996 * common/glibc_thread_db.h: Likewise.
3997 * common/i386-cpuid.h: Likewise.
3998 * common/i386-gcc-cpuid.h: Likewise.
3999 * common/linux-btrace.h: Likewise.
4000 * common/linux-osdata.h: Likewise.
4001 * common/linux-procfs.h: Likewise.
4002 * common/linux-ptrace.h: Likewise.
4003 * common/mips-linux-watch.h: Likewise.
4004 * common/linux-btrace.c: Moved to nat.
4005 * common/linux-osdata.c: Likewise.
4006 * common/linux-procfs.c: Likewise.
4007 * common/linux-ptrace.c: Likewise.
4008 * common/mips-linux-watch.c: Likewise.
4009 * nat/gdb_thread_db.h: Moved from common.
4010 * nat/glibc_thread_db.h: Likewise.
4011 * nat/i386-cpuid.h: Likewise.
4012 * nat/i386-gcc-cpuid.h: Likewise.
4013 * nat/linux-btrace.c: Likewise.
4014 * nat/linux-btrace.h: Likewise.
4015 * nat/linux-osdata.c: Likewise.
4016 * nat/linux-osdata.h: Likewise.
4017 * nat/linux-procfs.c: Likewise.
4018 * nat/linux-procfs.h: Likewise.
4019 * nat/linux-ptrace.c: Likewise.
4020 * nat/linux-ptrace.h: Likewise.
4021 * nat/mips-linux-watch.c: Likewise.
4022 * nat/mips-linux-watch.h: Likewise.
4023 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4024 (object file files): Reordered.
4025 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4026 of glibc_thread_db.h.
4027
42995dbd
GB
40282014-06-20 Gary Benson <gbenson@redhat.com>
4029
4030 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4031 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4032 (i386_dr_low): Likewise.
4033 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4034 (i386_dr_low_set_addr): Likewise.
4035 (i386_dr_low_get_addr): Likewise.
4036 (i386_dr_low_can_set_control): Likewise.
4037 (i386_dr_low_set_control): Likewise.
4038 (i386_dr_low_get_control): Likewise.
4039 (i386_dr_low_get_status): Likewise.
4040 (i386_get_debug_register_length): Likewise.
4041 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4042 (i386_dr_low): Likewise.
4043 * nat/i386-dregs.c (i386-low.h): Remove include.
4044 (i386-nat.h): Likewise.
4045 (nat/i386-dregs.h): New include.
4046 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4047 (i386_dr_low_set_addr): Likewise.
4048 (i386_dr_low_get_addr): Likewise.
4049 (i386_dr_low_can_set_control): Likewise.
4050 (i386_dr_low_set_control): Likewise.
4051 (i386_dr_low_get_control): Likewise.
4052 (i386_dr_low_get_status): Likewise.
4053 (i386_get_debug_register_length): Likewise.
4054 (debug_hw_points): Likewise.
4055
3ed9baed
IB
40562014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4057
4058 * Makefile.in (SFILES): Add d-exp.y.
4059 (YYFILES): Add d-exp.c.
4060 (YYOBJ): Add d-exp.o.
4061 (local-maintainer-clean): Delete d-exp.c.
4062 * d-exp.y: New file.
4063 * d-lang.h (d_parse): New declaration.
4064 (d_error): New declaration.
4065 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4066 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4067 PREC_ORDER operators.
4068 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4069
78c164b0
YQ
40702014-06-19 Yao Qi <yao@codesourcery.com>
4071
4072 * gdbthread.h (any_running): Remove the declaration.
4073 * thread.c (any_running): Remove.
4074
f6e29b6e
YQ
40752014-06-19 Yao Qi <yao@codesourcery.com>
4076
4077 * gdbthread.h (struct thread_info) <state>: Change its type to
4078 'enum thread_state'. Update comments.
4079
034f788c
PA
40802014-06-19 Pedro Alves <palves@redhat.com>
4081
4082 * gdbthread.h (ALL_THREADS): Delete.
4083 (ALL_NON_EXITED_THREADS): New macro.
4084 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4085 instead of ALL_THREADS.
4086 * infrun.c (find_thread_needs_step_over)
4087 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4088 instead of ALL_THREADS.
4089 * record-btrace.c (record_btrace_open)
4090 (record_btrace_stop_recording, record_btrace_close)
4091 (record_btrace_is_replaying, record_btrace_resume)
4092 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4093 * remote.c (append_pending_thread_resumptions): Likewise.
4094 * thread.c (thread_apply_all_command): Likewise.
4095
46e33252
GB
40962014-06-19 Gary Benson <gbenson@redhat.com>
4097
4098 * i386-nat.c (i386_stopped_by_watchpoint):
4099 Use i386_dr_stopped_by_watchpoint.
4100 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4101 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4102
3a8ee006
GB
41032014-06-19 Gary Benson <gbenson@redhat.com>
4104
4105 * nat/i386-dregs.c: New file.
4106 * Makefile.in (i386-dregs.o): New rule.
4107 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4108 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4109 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4110 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4111 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4112 * config/i386/go32.mh (NATDEPFILES): Likewise.
4113 * config/i386/linux.mh (NATDEPFILES): Likewise.
4114 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4115 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4116 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4117 * i386-nat.h (debug_hw_points): New declaration.
4118 * i386-nat.c (breakpoint.h): Remove include.
4119 (command.h): Likewise.
4120 (target.h): Likewise.
4121 (gdb_assert.h): Likewise.
4122 (debug_hw_points): Made nonstatic.
4123 (debug_printf): Now in i386-dregs.c.
4124 (TARGET_HAS_DR_LEN_8): Likewise.
4125 (DR_CONTROL_SHIFT): Likewise.
4126 (DR_CONTROL_SIZE): Likewise.
4127 (DR_RW_EXECUTE): Likewise.
4128 (DR_RW_WRITE): Likewise.
4129 (DR_RW_READ): Likewise.
4130 (DR_RW_IORW): Likewise.
4131 (DR_LEN_1): Likewise.
4132 (DR_LEN_2): Likewise.
4133 (DR_LEN_4): Likewise.
4134 (DR_LEN_8): Likewise.
4135 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4136 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4137 (DR_ENABLE_SIZE): Likewise.
4138 (DR_LOCAL_SLOWDOWN): Likewise.
4139 (DR_GLOBAL_SLOWDOWN): Likewise.
4140 (DR_CONTROL_RESERVED): Likewise.
4141 (I386_DR_CONTROL_MASK): Likewise.
4142 (I386_DR_VACANT): Likewise.
4143 (I386_DR_LOCAL_ENABLE): Likewise.
4144 (I386_DR_GLOBAL_ENABLE): Likewise.
4145 (I386_DR_DISABLE): Likewise.
4146 (I386_DR_SET_RW_LEN): Likewise.
4147 (I386_DR_GET_RW_LEN): Likewise.
4148 (I386_DR_WATCH_HIT): Likewise.
4149 (i386_wp_op_t): Likewise.
4150 (i386_show_dr): Likewise.
4151 (i386_length_and_rw_bits): Likewise.
4152 (i386_insert_aligned_watchpoint): Likewise.
4153 (i386_remove_aligned_watchpoint): Likewise.
4154 (i386_handle_nonaligned_watchpoint): Likewise.
4155 (i386_update_inferior_debug_regs): Likewise.
4156 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4157 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4158 (i386_region_ok_for_watchpoint):
4159 Use i386_dr_region_ok_for_watchpoint.
4160 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4161
322a8e06
GB
41622014-06-19 Gary Benson <gbenson@redhat.com>
4163
4164 * i386-nat.c (i386_insert_hw_breakpoint): Use
4165 i386_insert_watchpoint.
4166 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4167
8f26655c
GB
41682014-06-19 Gary Benson <gbenson@redhat.com>
4169
4170 * i386-nat.c (i386_dr_show): Renamed to
4171 i386_show_dr and made static. All uses updated.
4172 (i386_dr_length_and_rw_bits): Renamed to
4173 i386_length_and_rw_bits and made static.
4174 All uses updated.
4175 (i386_dr_insert_aligned_watchpoint): Renamed to
4176 i386_insert_aligned_watchpoint and made static.
4177 All uses updated.
4178 (i386_dr_remove_aligned_watchpoint): Renamed to
4179 i386_remove_aligned_watchpoint and made static.
4180 All uses updated.
4181 (i386_dr_update_inferior_debug_regs): Renamed to
4182 i386_update_inferior_debug_regs and made static.
4183 All uses updated.
4184 * nat/i386-dregs.h (i386_dr_show): Removed.
4185 (i386_dr_length_and_rw_bits): Likewise.
4186 (i386_dr_insert_aligned_watchpoint): Likewise.
4187 (i386_dr_remove_aligned_watchpoint): Likewise.
4188 (i386_dr_update_inferior_debug_regs): Likewise.
4189
992c7d70
GB
41902014-06-19 Gary Benson <gbenson@redhat.com>
4191
4192 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4193 * configure: Regenerate.
4194 * config.in: Likewise.
4195 * main.c (signal.h): New include.
4196 (setup_alternate_signal_stack): New function.
4197 (captured_main): Call the above.
4198 * cp-support.c (signal.h): New include.
4199 (catch_demangler_crashes): New flag.
4200 (SIGJMP_BUF): New define.
4201 (SIGSETJMP): Likewise.
4202 (SIGLONGJMP): Likewise.
4203 (gdb_demangle_jmp_buf): New static global.
4204 (gdb_demangle_attempt_core_dump): Likewise.
4205 (gdb_demangle_signal_handler): New function.
4206 (gdb_demangle): If catch_demangler_crashes is set, install the
4207 above signal handler before calling bfd_demangle, and restore
4208 the original signal handler afterwards. Display the offending
4209 symbol and call demangler_warning the first time a segmentation
4210 fault is caught.
4211 (_initialize_cp_support): New maint set/show command.
4212
eae7090b
GB
42132014-06-19 Gary Benson <gbenson@redhat.com>
4214
4215 * utils.h (resource_limit_kind): New enum.
4216 (can_dump_core): New declaration.
4217 (warn_cant_dump_core): Likewise.
4218 (dump_core): Likewise.
4219 * utils.c (dump_core): Made nonstatic. Added new
4220 parameter "limit_kind".
4221 (can_dump_core): Made nonstatic. Moved printing code to...
4222 (warn_cant_dump_core): New function.
4223 (can_dump_core_warn): Likewise.
4224 (internal_vproblem): Replace calls to can_dump_core with
4225 calls to can_dump_core_warn. Supply new argument to each.
4226
57fcfb1b
GB
42272014-06-19 Gary Benson <gbenson@redhat.com>
4228
4229 * utils.h (demangler_vwarning): New declaration.
4230 (demangler_warning): Likewise.
4231 * utils.c (struct internal_problem)
4232 <user_settable_should_quit>: New field.
4233 <user_settable_should_dump_core>: Likewise
4234 (internal_error_problem): Add values for above new fields.
4235 (internal_warning_problem): Likewise.
4236 (demangler_warning_problem): New static global.
4237 (demangler_vwarning): New function.
4238 (demangler_warning): Likewise.
4239 (add_internal_problem_command): Selectively add commands.
4240 (_initialize_utils): New internal problem command.
4241 * maint.c (maintenance_demangler_warning): New function.
4242 (_initialize_maint_cmds): New command.
4243
17a40b44
TT
42442014-06-18 Tom Tromey <tromey@redhat.com>
4245
4246 * f-valprint.c (info_common_command_for_block): Update.
4247 * symtab.h (struct general_symbol_info) <common_block>: Now
4248 const.
4249
346d1dfe
TT
42502014-06-18 Tom Tromey <tromey@redhat.com>
4251
4252 * symtab.h (struct symtab) <blockvector>: Now const.
4253 * ada-lang.c (ada_add_global_exceptions): Update.
4254 * buildsym.c (augment_type_symtab): Update.
4255 * dwarf2read.c (dw2_lookup_symbol): Update.
4256 * jit.c (finalize_symtab): Update.
4257 * jv-lang.c (add_class_symtab_symbol): Update.
4258 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4259 Update.
4260 * objfiles.c (objfile_relocate1): Update.
4261 * psymtab.c (lookup_symbol_aux_psymtabs)
4262 (maintenance_check_psymtabs): Update.
4263 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4264 Update.
4265 * spu-tdep.c (spu_catch_start): Update.
4266 * symmisc.c (dump_symtab_1): Update.
4267 * symtab.c (lookup_global_symbol_from_objfile)
4268 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4269 (basic_lookup_transparent_type_quick)
4270 (basic_lookup_transparent_type, find_pc_sect_symtab)
4271 (find_pc_sect_line, search_symbols): Update.
4272 * block.c (find_block_in_blockvector): Make "bl" const.
4273 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4274 const.
4275 (blockvector_contains_pc): Make "bv" const.
4276 (block_for_pc_sect): Update.
4277 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4278 (blockvector_contains_pc): Update.
4279 * breakpoint.c (resolve_sal_pc): Update.
4280 * inline-frame.c (block_starting_point_at): Update.
4281
1834676b
TT
42822014-06-18 Tom Tromey <tromey@redhat.com>
4283
4284 * completer.c (complete_line): Make "line_buffer" const.
4285 * completer.h (complete_line): Update.
4286
ac1a991b
TT
42872014-06-18 Tom Tromey <tromey@redhat.com>
4288
4289 * symtab.c (add_macro_name): Remove unneeded cast.
4290
5bc98e52
TT
42912014-06-18 Tom Tromey <tromey@redhat.com>
4292
4293 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4294 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4295
8236def8
TT
42962014-06-18 Tom Tromey <tromey@redhat.com>
4297
4298 * probe.c (info_probes_for_ops): Make "arg" const.
4299 * probe.h (info_probes_for_ops): Update.
4300
3977b71f
TT
43012014-06-18 Tom Tromey <tromey@redhat.com>
4302
4303 * varobj.c (varobj_create): Update.
4304 * valops.c (value_of_this): Update.
4305 * tracepoint.c (add_local_symbols, scope_info): Update.
4306 * symtab.h (struct general_symbol_info) <block>: Now const.
4307 * symtab.c (skip_prologue_sal)
4308 (default_make_symbol_completion_list_break_on)
4309 (skip_prologue_using_sal): Update.
4310 * stack.h (iterate_over_block_locals)
4311 (iterate_over_block_local_vars): Update.
4312 * stack.c (print_frame_args): Update.
4313 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4314 parameter const.
4315 (get_selected_block): Make return type const.
4316 * python/py-frame.c (frapy_block): Update.
4317 * python/py-block.c (gdbpy_block_for_pc): Update.
4318 * p-exp.y (%union) <bval>: Now const.
4319 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4320 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4321 * m2-exp.y (%union) <bval>: Now const.
4322 * linespec.c (get_current_search_block): Make return type const.
4323 (create_sals_line_offset, find_label_symbols): Update.
4324 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4325 Update.
4326 (block_starting_point_at): Make "block" const.
4327 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4328 (check_exception_resume): Update.
4329 * guile/scm-frame.c (gdbscm_frame_block): Update.
4330 * guile/scm-block.c (gdbscm_lookup_block): Update.
4331 * frame.h (get_frame_block): Update.
4332 (get_selected_block): Make return type const.
4333 * frame.c (frame_id_inner): Update.
4334 * f-valprint.c (info_common_command_for_block)
4335 (info_common_command): Update.
4336 * dwarf2loc.c (dwarf2_find_location_expression)
4337 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4338 (locexpr_describe_location_piece): Update.
4339 * c-exp.y (%union) <bval>: Now const.
4340 * breakpoint.c (resolve_sal_pc): Update.
4341 * blockframe.c (get_frame_block):Make return type const.
4342 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4343 (block_innermost_frame): Update.
4344 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4345 (block_for_pc, block_for_pc_sect): Update.
4346 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4347 'pblock' const.
4348 (block_for_pc_sect, block_for_pc): Make return type const.
4349 * ax-gdb.c (gen_expr): Update.
4350 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4351 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4352 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4353 (ada_read_var_value): Update.
4354 * ada-exp.y (struct name_info) <block>: Now const.
4355 (%union): Likewise.
4356 (block_lookup): Constify.
4357
b9228891
GB
43582014-06-18 Gary Benson <gbenson@redhat.com>
4359
4360 * nat/i386-dregs.h: New file.
4361 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4362 * i386-nat.h (i386-dregs.h): New include.
4363 (DR_FIRSTADDR): Now in i386-dregs.h.
4364 (DR_LASTADDR): Likewise.
4365 (DR_NADDR): Likewise.
4366 (DR_STATUS): Likewise.
4367 (DR_CONTROL): Likewise.
4368 (i386_debug_reg_state): Likewise.
4369 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4370
a1aa2221
LM
43712014-06-18 Don Breazeal <donb@codesourcery.com>
4372
4373 * breakpoint.c (set_longjmp_breakpoint): Call
4374 momentary_breakpoint_from_master with additional argument.
4375 (set_longjmp_breakpoint_for_call_dummy): Call
4376 momentary_breakpoint_from_master with additional argument.
4377 (set_std_terminate_breakpoint): Call
4378 momentary_breakpoint_from_master with additional argument.
4379 (momentary_breakpoint_from_master): Add argument to function
4380 definition and use it to initialize structure member flag.
74228e77 4381 (clone_momentary_breakpoint): Call
a1aa2221
LM
4382 momentary_breakpoint_from_master with additional argument.
4383 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4384 member flags set in momentary_breakpoint_from_master.
4385
4be83cc2
GB
43862014-06-18 Gary Benson <gbenson@redhat.com>
4387
4388 * i386-nat.c (i386_show_dr): Renamed to
4389 i386_dr_show and made nonstatic. All uses updated.
4390 (i386_length_and_rw_bits): Renamed to
4391 i386_dr_length_and_rw_bits and made nonstatic.
4392 All uses updated.
4393 (i386_insert_aligned_watchpoint): Renamed to
4394 i386_dr_insert_aligned_watchpoint and made nonstatic.
4395 All uses updated.
4396 (i386_remove_aligned_watchpoint): Renamed to
4397 i386_dr_remove_aligned_watchpoint and made nonstatic.
4398 All uses updated.
4399 (i386_update_inferior_debug_regs): Renamed to
4400 i386_dr_update_inferior_debug_regs and made nonstatic.
4401 All uses updated.
4402
131aa0d4
GB
44032014-06-18 Gary Benson <gbenson@redhat.com>
4404
4405 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4406 (i386_dr_low_can_set_control): Likewise.
4407 (i386_dr_low_set_addr): Likewise.
4408 (i386_dr_low_set_control): Likewise.
4409 (i386_dr_low_get_addr): Likewise.
4410 (i386_dr_low_get_status): Likewise.
4411 (i386_dr_low_get_control): Likewise.
4412 (i386_insert_aligned_watchpoint): Use new macros.
4413 (i386_update_inferior_debug_regs): Likewise.
4414 (i386_stopped_data_address): Likewise.
4415
d9305f7f
GB
44162014-06-18 Gary Benson <gbenson@redhat.com>
4417
4418 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4419 New parameter. All uses updated.
4420
ea008da4
GB
44212014-06-18 Gary Benson <gbenson@redhat.com>
4422
4423 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4424 All uses updated.
4425
1b6d4134
GB
44262014-06-18 Gary Benson <gbenson@redhat.com>
4427
4428 * i386-nat.c (debug_printf): New macro.
4429 (i386_get_debug_register_length): Likewise.
4430 (TARGET_HAS_DR_LEN_8): Use above macro.
4431 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4432 and printf_unfiltered. Use phex to format values.
4433
9b4550ef
GB
44342014-06-18 Gary Benson <gbenson@redhat.com>
4435
4436 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4437 Make const.
4438
6e62758f
GB
44392014-06-18 Gary Benson <gbenson@redhat.com>
4440
4441 * i386-nat.c: Comment changes.
4442
51c79e94
GB
44432014-06-18 Gary Benson <gbenson@redhat.com>
4444
4445 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4446
3e11889a
GB
44472014-06-18 Gary Benson <gbenson@redhat.com>
4448
4449 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4450 (i386_insert_aligned_watchpoint): Likewise.
4451 (i386_remove_aligned_watchpoint): Likewise.
4452 (i386_handle_nonaligned_watchpoint): Likewise.
4453
fc6e2f03
GB
44542014-06-18 Gary Benson <gbenson@redhat.com>
4455
4456 * i386-nat.c: Whitespace changes.
4457
2afe7d50
SB
44582014-06-17 Samuel Bronson <naesten@gmail.com>
4459
4460 * MAINTAINERS: Update Roland McGrath's email address.
4461 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4462 Red Hat a while ago, and giving me a current address.
2afe7d50 4463
3bca49ee
TT
44642014-06-17 Tom Tromey <tromey@redhat.com>
4465
4466 * utils.h (savestring): Remove declaration.
4467
6e366df1
TT
44682014-06-17 Tom Tromey <tromey@redhat.com>
4469
4470 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4471
6be47f0c
KS
44722014-06-16 Keith Seitz <keiths@redhat.com>
4473
4474 PR mi/15863
4475 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4476 to update the varobj if inferior_ptid is null_ptid.
4477
7bc112c1
TT
44782014-06-16 Tom Tromey <tromey@redhat.com>
4479
4480 * target.h (struct target_ops) <to_info_proc>: Make parameter
4481 const.
4482 (target_info_proc): Update.
4483 * target.c (target_info_proc): Make "args" const.
4484 * procfs.c (procfs_info_proc): Update.
4485 * linux-tdep.c (linux_info_proc): Update.
4486 (linux_core_info_proc_mappings): Make "args" const.
4487 (linux_core_info_proc): Update.
4488 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4489 * gdbarch.c: Rebuild.
4490 * gdbarch.h: Rebuild.
4491 * corelow.c (core_info_proc): Update.
4492
fee354ee
TT
44932014-06-16 Tom Tromey <tromey@redhat.com>
4494
4495 * target.h (struct target_ops) <to_disconnect>: Make parameter
4496 const.
4497 (target_disconnect): Update.
4498 * target.c (target_disconnect): Make "args" const.
4499 * target-delegates.c: Rebuild.
4500 * remote.c (remote_disconnect): Update.
4501 * record.h (record_disconnect): Update.
4502 * record.c (record_disconnect): Update.
4503 * inf-child.c (inf_child_disconnect): Update.
4504
a30bf1f1
TT
45052014-06-16 Tom Tromey <tromey@redhat.com>
4506
4507 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4508 * target.c (debug_to_rcmd, default_rcmd): Update.
4509 * target-delegates.c: Rebuild.
4510 * remote.c (remote_rcmd): Update.
4511 * monitor.c (monitor_rcmd): Update.
4512
d03de421
PA
45132014-06-16 Pedro Alves <palves@redhat.com>
4514
4515 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4516 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4517 have OBJF_SHARED set.
4518 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4519 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4520 instead of OBJF_USERLOADED.
4521 * objfiles.h (OBJF_SHARED): Update comment.
4522 (userloaded_objfile_contains_address_p): Rename to ...
4523 (shared_objfile_contains_address_p): ... this, and update
4524 comments.
4525 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4526 new objfile.
4527 (remove_symbol_file_command): Skip objfiles that don't have
4528 OBJF_SHARED set.
4529
99f4262f
TT
45302014-06-16 Tom Tromey <tromey@redhat.com>
4531
4532 * minsyms.h (prim_record_minimal_symbol)
4533 (prim_record_minimal_symbol_and_info): Update comments.
4534
97d66cc6
EZ
45352014-06-14 Eli Zaretskii <eliz@gnu.org>
4536
4537 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4538 or --without-guile, according to how GDB was built.
4539
635c7e8a
TT
45402014-06-13 Tom Tromey <tromey@redhat.com>
4541
4542 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4543 to help_list.
4544 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4545 to help_list.
4546 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4547 help_list.
4548 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4549 help_list.Pass all_commands, not -1, to help_list.
4550 * cli/cli-dump.c (dump_command, append_command)
4551 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4552 (binary_dump_command, binary_append_command): Pass all_commands,
4553 not -1, to help_list.
4554 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4555 -1, to help_list.
4556 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4557 -1, to help_list.
4558 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4559 help_list.
4560 * top.c (set_history): Pass all_commands, not -1, to help_list.
4561 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4562 all_commands, not -1, to help_list.
4563 * symfile.c (overlay_command): Pass all_commands, not -1, to
4564 help_list.
4565 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4566 help_list.
4567 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4568 help_list.
4569 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4570 -1, to help_list.
4571 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4572 not -1, to help_list.
4573 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4574 not -1, to help_list.
4575 * maint.c (maintenance_command, maintenance_info_command)
4576 (maintenance_print_command, maintenance_set_cmd): Pass
4577 all_commands, not -1, to help_list.
4578 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4579 help_list.
4580 * language.c (set_check): Pass all_commands, not -1, to help_list.
4581 * infcmd.c (unset_command): Pass all_commands, not -1, to
4582 help_list.
4583 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4584 help_list.
4585 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4586 help_list.
4587 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4588 help_list.
4589 * breakpoint.c (save_command): Pass all_commands, not -1, to
4590 help_list.
4591 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4592 all_commands, not -1, to help_list.
4593
b94ade42
PL
45942014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4595
4596 * regcache.c (struct register_to_invalidate): New structure.
4597 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4598 functions.
4599 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4600
31f628ae
YQ
46012014-06-12 Yao Qi <yao@codesourcery.com>
4602
4603 * varobj.c (varobj_get_num_children): Call
4604 varobj_is_dynamic_p.
4605 (varobj_list_children): Likewise.
4606 (varobj_update): Likewise. Update comments.
4607
cde5ef40
YQ
46082014-06-12 Yao Qi <yao@codesourcery.com>
4609
4610 * varobj.c (varobj_pretty_printed_p): Rename to ...
4611 (varobj_is_dynamic_p): ... this. New function.
4612 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4613 (varobj_is_dynamic_p): Declare.
4614 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4615 (mi_print_value_p, varobj_update_one): Likewise.
4616
576ea091
YQ
46172014-06-12 Pedro Alves <pedro@codesourcery.com>
4618 Yao Qi <yao@codesourcery.com>
4619
4620 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4621 (varobj_get_iterator): Wrap up code for pretty-printer by
4622 "#if HAVE_PYTHON" and "#endif".
4623 (update_dynamic_varobj_children): Likewise.
4624
827f100c
YQ
46252014-06-12 Pedro Alves <pedro@codesourcery.com>
4626 Yao Qi <yao@codesourcery.com>
4627
4628 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4629 gdb_python_initialized is false. Move some code from varobj.c.
4630 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4631 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4632 (struct varobj_item): Moved to varobj-iter.h".
4633 (varobj_clear_saved_item): New function.
4634 (update_dynamic_varobj_children): Move python-related code to
4635 py-varobj.c.
4636 (free_variable): Call varobj_clear_saved_item and
4637 varobj_iter_delete.
4638
e5250216
YQ
46392014-06-12 Pedro Alves <pedro@codesourcery.com>
4640 Yao Qi <yao@codesourcery.com>
4641
4642 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4643 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4644 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4645 (py-varobj.o): New rule.
4646 * python/py-varobj.c: New file.
4647 * python/python-internal.h (py_varobj_get_iterator): Declare.
4648 * varobj-iter.h: New file.
4649 * varobj.c: Include "varobj-iter.h"
4650 (struct varobj) <child_iter>: Change its type from "PyObject *"
4651 to "struct varobj_iter *".
4652 <saved_item>: Likewise.
4653 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4654 [HAVE_PYTHON] (varobj_get_iterator): New function.
4655 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4656 python-specific code to python/py-varobj.c.
4657 (install_visualizer): Call varobj_iter_delete instead of
4658 Py_XDECREF.
4659 * varobj.h (varobj_ensure_python_env): Declare.
4660
5a2e0d6e
YQ
46612014-06-12 Yao Qi <yao@codesourcery.com>
4662
4663 * varobj.c (struct varobj_item): New structure.
4664 (create_child_with_value): Update declaration.
4665 (varobj_add_child): Replace arguments 'name' and 'value' with
4666 'item'. All callers updated.
4667 (install_dynamic_child): Likewise.
4668 (update_dynamic_varobj_children): Likewise.
4669 (varobj_add_child): Likewise.
4670 (create_child_with_value): Likewise.
4671
919b9a93
JB
46722014-06-11 Joel Brobecker <brobecker@adacore.com>
4673
4674 * NEWS: Create a new section for the next release branch.
4675 Rename the section of the current branch, now that it has
4676 been cut.
4677
71a55bdf
JB
46782014-06-11 Joel Brobecker <brobecker@adacore.com>
4679
4680 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4681 * version.in: Bump version to 7.8.50.DATE-cvs.
4682
364fe1f7
PA
46832014-06-11 Pedro Alves <palves@redhat.com>
4684
4685 PR remote/17028
4686 * ser-mingw.c (net_windows_socket_check_pending): New function.
4687 (net_windows_select_thread): Ignore spurious wakeups. Use
4688 net_windows_socket_check_pending.
4689 (net_windows_wait_handle): Check for pending events with
4690 ioctlsocket, through net_windows_socket_check_pending, instead of
4691 checking the socket's event.
4692
5a6c7709
SC
46932014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4694
4695 * python/python-internal.h (gdb_PyObject_GetAttrString)
4696 (gdb_PyObject_HasAttrString): New inline function definitions.
4697 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4698 char * of the second argument to PyObject_GetAttrString.
74228e77 4699
0e58ee40
JB
47002014-06-10 Joel Brobecker <brobecker@adacore.com>
4701
4702 * serial.c (serial_write): Fix index of character to be printed
4703 in call to serial_logchar when serial debug traces are enabled.
4704
d190df30
JB
47052014-06-10 Joel Brobecker <brobecker@adacore.com>
4706
4707 * gdbtypes (resolve_dynamic_range): Add function description.
4708
b4b01d36
PA
47092014-06-09 Pedro Alves <palves@redhat.com>
4710
4711 * linux-nat.c (linux_child_follow_fork): Initialize status with
4712 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4713 inner block. Only pass the signal to PTRACE_DETACH if in pass
4714 state.
4715
3657956b
GB
47162014-06-09 Gary Benson <gbenson@redhat.com>
4717
4718 * common/signals.c (gdb_signal_from_host): Reorder to separate
4719 the always-available ANSI-standard signals from the signals that
4720 require checking.
4721 (do_gdb_signal_to_host): Likewise.
4722 * proc-events.c (signal_table): Likewise.
4723
c077881a
HZ
47242014-06-08 Hui Zhu <hui@codesourcery.com>
4725
4726 * common/linux-ptrace.c (linux_disable_event_reporting): New
4727 function.
4728 * common/linux-ptrace.h (linux_disable_event_reporting): New
4729 declaration.
4730 * linux-nat.c (linux_child_follow_fork): Do a single step before
4731 detach.
4732
4186eb54
KS
47332014-06-07 Keith Seitz <keiths@redhat.com>
4734
4735 Revert:
4736 PR c++/16253
4737 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4738 from symbol_matches_domain in symtab.c. All local callers
4739 of symbol_matches_domain updated.
4740 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4741 search STRUCT_DOMAIN.
4742 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4743 independently. standard_lookup will do that automatically.
4744 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4745 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4746 (cp_lookup_symbol_in_namespace): Likewise.
4747 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4748 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4749 may return a STRUCT_DOMAIN match.
4750 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4751 * cp-support.c: Include language.h.
4752 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4753 VAR_DOMAIN.
4754 * psymtab.c (match_partial_symbol): Compare the requested
4755 domain with the symbol's domain directly.
4756 (lookup_partial_symbol): Likewise.
4757 * symtab.c (lookup_symbol_in_language): Explain when/why
4758 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4759 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4760 appropriate languages.
4761 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4762 and moved to ada-lang.c
4763 (lookup_block_symbol): Explain that this function only returns
4764 symbol matching the requested DOMAIN.
4765 Compare the requested domain with the symbol's domain directly.
4766 (iterate_over_symbols): Compare the requested domain with the
4767 symbol's domain directly.
4768 * symtab.h (symbol_matches_domain): Remove.
4769
25326a28 47702014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4771
4772 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4773 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4774 (gdbscm_guile_version_is_at_least): Declare.
4775 (gdbscm_scm_string_to_int): Declare.
4776 * guile/guile.c (gdbscm_guile_major_version): New global.
4777 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4778 (guile_datadir): New static global.
4779 (gdbscm_guile_data_directory): New function.
4780 (initialize_scheme_side): Update.
4781 (misc_guile_functions): Add guile-data-directory.
4782 (initialize_gdb_module): Fetch guile version number.
4783 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4784 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4785 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4786 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4787 comments.
4788 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4789 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4790 * guile/scm-value.c (gdbscm_value_to_string): Only call
4791 scm_port_conversion_strategy if Guile version >= 2.0.6.
4792
0a770bb2 47932014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4794
4795 * main.c (print_gdb_help): Add -q and --silent.
4796
73ba372c
GB
47972014-06-06 Gary Benson <gbenson@redhat.com>
4798
4799 * common/signals.c: Remove preprocessor conditionals for
4800 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4801 SIGSEGV and SIGTERM.
4802 * proc-events.c: Likewise.
4803
c33b2f12
MM
48042014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4805
4806 * symfile.c (symfile_free_objfile): Remove restriction to
4807 OBJF_USERLOADED.
4808 * symfile-mem.c (symbol_file_add_from_memory): Call
4809 add_target_sections_of_objfile.
4810
fb934770
LC
48112014-06-05 Ludovic Courtès <ludo@gnu.org>
4812
4813 * guile/scm-value.c (gdbscm_history_append_x): Use
4814 'vlscm_get_value_smob_arg_unsafe' instead of
4815 'vlscm_scm_to_value'.
4816
6ef284bd
SM
48172014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 PR mi/15806
4820 * utils.c (printchar): Don't escape at all if quoter is NUL.
4821 Update function documentation to clarify effect of parameter
4822 QUOTER.
4823 * remote.c (escape_buffer): Pass '\\' as the quoter to
4824 fputstrn_unfiltered.
4825 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4826 generate the output.
4827 (mi_solib_unloaded): Same.
4828
270c9937
JB
48292014-06-05 Joel Brobecker <brobecker@adacore.com>
4830
4831 * development.sh: Delete.
4832 * Makefile.in (config.status): Adjust dependency on development.sh.
4833 * configure.ac: Adjust development.sh source call.
4834 * configure: Regenerate.
4835
16f691fb
DE
48362014-06-04 Doug Evans <xdje42@gmail.com>
4837
4838 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4839 is_scheme_bkpt, spec.
4840 (bpscm_make_breakpoint_smob): Initialize new members.
4841 (gdbscm_create_breakpoint_x): Split into two ...
4842 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4843 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4844 (scheme_function breakpoint_functions): Update.
4845 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4846 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4847 register-breakpoint!.
4848
ef7cab6b
JB
48492014-06-04 Joel Brobecker <brobecker@adacorer.com>
4850
4851 PR server/17023
4852 * mem-break.c (z_type_supported): Return zero if
4853 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4854
012370f6
TT
48552014-06-04 Tom Tromey <tromey@redhat.com>
4856
4857 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4858 value_from_contents_and_address_unresolved.
4859 (ada_template_to_fixed_record_type_1): Likewise.
4860 (ada_which_variant_applies): Likewise.
4861 * value.h (value_from_contents_and_address_unresolved): Declare.
4862 * value.c (value_from_contents_and_address_unresolved): New
4863 function.
4864 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4865 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4866 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4867
92e2a17f
TT
48682014-06-04 Tom Tromey <tromey@redhat.com>
4869
4870 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4871
c0939df1
TT
48722014-06-04 Tom Tromey <tromey@redhat.com>
4873
4874 * procfs.c (procfs_attach): Make "args" const.
4875 * windows-nat.c (windows_attach): Make "args" const.
4876 * nto-procfs.c (procfs_attach): Make "args" const.
4877 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4878 * go32-nat.c (go32_attach): Make "args" const.
4879 * gnu-nat.c (gnu_attach): Make "args" const.
4880 * darwin-nat.c (darwin_attach): Make "args" const.
4881 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4882 * linux-nat.c (linux_nat_attach): Make "args" const.
4883 * remote.c (extended_remote_attach_1, extended_remote_attach):
4884 Make "args" const.
4885 * target.h (struct target_ops) <to_attach>: Make "args" const.
4886 (find_default_attach): Likewise.
4887 * utils.c (parse_pid_to_attach): Make "args" const.
4888 * utils.h (parse_pid_to_attach): Update.
4889
8eaff7cd
TT
48902014-06-04 Tom Tromey <tromey@redhat.com>
4891
4892 * target-delegates.c: Rebuild.
4893 * target.c (default_thread_address_space): New function.
4894 (target_thread_address_space): Simplify.
4895 * target.h (struct target_ops) <to_thread_address_space>: Add
4896 TARGET_DEFAULT_FUNC.
4897
1913f160
DE
48982014-06-04 Doug Evans <xdje42@gmail.com>
4899
4900 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4901
70ad5bff
MM
49022014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4903
4904 * record-btrace.c: Include event-loop.h and inf-loop.h.
4905 (record_btrace_resume_exec_dir)
4906 (record_btrace_async_inferior_event_handler)
4907 (record_btrace_handle_async_inferior_event): New.
4908 (record_btrace_open): Create async event handler.
4909 (record_btrace_close): Delete async event handler.
4910 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4911 Mark async event handler.
4912 (record_btrace_execution_direction): New.
4913 (init_record_btrace_ops): Initialize to_execution_direction.
4914
b6210538
DE
49152014-06-03 Doug Evans <xdje42@gmail.com>
4916
4917 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4918 (gdbscm_make_parameter): Ditto.
4919
a5b1fd27
DE
49202014-06-03 Doug Evans <dje@google.com>
4921
4922 * exec.c (exec_close_1): Call clear_section_table instead of
4923 resize_section_table.
4924 (clear_section_table): New function.
4925 (resize_section_table): Make static. Rename arg num_added to
4926 adjustment.
4927 * exec.h (clear_section_table): Declare.
4928 (resize_section_table): Delete.
4929 * progspace.c (release_program_space): Call clear_section_table
4930 instead of resize_section_table.
4931
0c6e92a5
SC
49322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4933
4934 * NEWS (Python Scripting): Add entry about the new xmethods
4935 feature.
4936
883964a7
SC
49372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4938
4939 * python/py-xmethods.c: New file.
4940 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4941 (objfpy_dealloc): XDECREF on the new xmethods field.
4942 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4943 field.
4944 (objfpy_get_xmethods): New function.
4945 (objfile_getset): New entry 'xmethods'.
4946 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4947 (pspy_dealloc): XDECREF on the new xmethods field.
4948 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4949 field.
4950 (pspy_get_xmethods): New function.
4951 (pspace_getset): New entry 'xmethods'.
4952 * python/python-internal.h: Add declarations for new functions.
4953 * python/python.c (_initialize_python): Invoke
4954 gdbpy_initialize_xmethods.
4955 * python/lib/gdb/__init__.py (xmethods): New
4956 attribute.
4957 * python/lib/gdb/xmethod.py: New file.
4958 * python/lib/gdb/command/xmethods.py: New file.
4959
58992dc5
SC
49602014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4961
4962 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4963 best match method returned by find_overload_match is an xmethod.
4964 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4965 the best matching operator returned by find_overload_match is an
4966 xmethod.
4967 * valops.c: #include "extension.h".
4968 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4969 Return void. The list of matching source methods is returned in
4970 "fn_list" and a vector of matching debug method workers is
4971 returned in "xm_worker_vec". Update all callers.
4972 (value_find_oload_method_list): Likewise.
4973 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4974 non-NULL, then the index of the best matching method in this
4975 vector is returned. Update all callers.
4976 (find_overload_match): Include xmethods while performing overload
4977 resolution.
4978
e81e7f5e
SC
49792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4980
4981 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4982 * extension-priv.h (struct extension_language_ops): Add the
4983 xmethod interface.
4984 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4985 get_matching_xmethod_workers, get_xmethod_argtypes,
4986 invoke_xmethod, free_xmethod_worker,
4987 free_xmethod_worker_vec): New functions.
4988 * extension.h: #include "common/vec.h".
4989 New function declarations.
4990 (struct xmethod_worker): New struct.
4991 (VEC (xmethod_worker_ptr)): New vector type.
4992 (xmethod_worker_ptr): New typedef.
4993 (xmethod_worker_vec): Likewise.
4994 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4995 builtin_type.
4996 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4997 (struct builtin_type): New field "xmethod".
4998 * valarith.c (value_ptradd): Assert that the value argument is not
4999 lval_xcallable.
5000 * valops.c (value_must_coerce_to_target): Return 0 for
5001 lval_xcallable values.
5002 * value.c (struct value): New field XM_WORKER in the field
5003 LOCATION.
5004 (value_address, value_raw_address): Return 0 for lval_xcallable
5005 values.
5006 (set_value_address): Assert that the value is not an
5007 lval_xcallable.
5008 (value_free): Free the associated xmethod worker when freeing
5009 lval_xcallable values.
5010 (set_value_component_location): Assert that the WHOLE value is not
5011 lval_xcallable.
5012 (value_of_xmethod, call_xmethod): New functions.
5013 * value.h: Declare "struct xmethod_worker".
5014 Declare new functions value_of_xmethod, call_xmethod.
5015
ef370185
JB
50162014-06-03 Joel Brobecker <brobecker@adacore.com>
5017 Pedro Alves <palves@redhat.com>
5018
5019 PR breakpoints/17000
5020 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5021 New function, extracted from software_breakpoint_inserted_here_p.
5022 (software_breakpoint_inserted_here_p): Replace factored out code
5023 by call to find_non_raw_software_breakpoint_inserted_here.
5024 (bp_target_info_copy_insertion_state): New function.
5025 (bkpt_insert_location): Handle the case of a single-step
5026 breakpoint already inserted at the same address.
5027 (bkpt_remove_location): Handle the case of a single-step
5028 breakpoint still inserted at the same address.
5029 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5030 breakpoint already inserted at the same address.
5031 (deprecated_remove_raw_breakpoint): Handle the case of a
5032 non-raw breakpoint still inserted at the same address.
5033 (find_single_step_breakpoint): New function, extracted from
5034 single_step_breakpoint_inserted_here_p.
5035 (find_single_step_breakpoint): New function,
5036 factored out from single_step_breakpoint_inserted_here_p.
5037 (single_step_breakpoint_inserted_here_p): Reimplement.
5038
1e2ccb61
BM
50392014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5040
5041 Pushed by Joel Brobecker <brobecker@adacore.com>
5042 * source.c (show_substitute_path_command): Fix display of matching
5043 substitution rules.
5044
d3448d85
GB
50452014-06-03 Gary Benson <gbenson@redhat.com>
5046
5047 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5048
06eb1586
DE
50492014-06-02 Doug Evans <xdje42@gmail.com>
5050
5051 Add parameter support for Guile.
5052 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5053 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5054 (scm-param.o): New rule.
5055 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5056 (gdbscm_misc_error): Declare.
5057 (gdbscm_canonicalize_command_name): Declare.
5058 (gdbscm_scm_to_host_string): Declare.
5059 (gdbscm_scm_from_host_string): Declare.
5060 (gdbscm_initialize_parameters): Declare.
5061 * guile/guile.c (initialize_gdb_module): Call
5062 gdbscm_initialize_parameters.
5063 * guile/lib/gdb.scm: Export parameter symbols.
5064 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5065 cmdscm_canonicalize_name and made public. All callers updated.
5066 * guile/scm-exception.c (gdbscm_misc_error): New function.
5067 * guile/scm-param.c: New file.
5068 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5069 (gdbscm_scm_to_host_string): New function.
5070 (gdbscm_scm_from_host_string): New function.
5071 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5072
e698b8c4
DE
50732014-06-02 Doug Evans <xdje42@gmail.com>
5074
5075 Add command support for Guile.
5076 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5077 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5078 (scm-cmd.o): New rule.
5079 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5080 (gdbscm_user_error_p): Declare.
5081 (gdbscm_parse_command_name): Declare.
5082 (gdbscm_valid_command_class_p): Declare.
5083 (gdbscm_initialize_commands): Declare.
5084 * guile/guile.c (initialize_gdb_module): Call
5085 gdbscm_initialize_commands.
5086 * guile/lib/gdb.scm: Export command symbols.
5087 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5088 (throw-user-error): New function.
5089 * guile/scm-cmd.c: New file.
5090 * guile/scm-exception.c (user_error_symbol): New static global.
5091 (gdbscm_user_error_p): New function.
5092 (gdbscm_initialize_exceptions): Set user_error_symbol.
5093 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5094
fb1f94b0
PM
50952014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5096
5097 * top.c (command_loop): Handle comments here...
5098 (command_line_input): ... not here.
5099
ded03782
DE
51002014-06-02 Doug Evans <xdje42@gmail.com>
5101
5102 Add progspace support for Guile.
5103 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5104 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5105 (scm-progspace.o): New rule.
5106 * guile/guile-internal.h (pspace_smob): New typedef.
5107 (psscm_pspace_smob_pretty_printers): Declare.
5108 (psscm_pspace_smob_from_pspace): Declare.
5109 (psscm_scm_from_pspace): Declare.
5110 * guile/guile.c (initialize_gdb_module): Call
5111 gdbscm_initialize_pspaces.
5112 * guile/lib/gdb.scm: Export progspace symbols.
5113 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5114 support.
5115 (append-pretty-printer!): Ditto.
5116 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5117 Implement.
5118 * guile/scm-progspace.c: New file.
5119
397998fc
AM
51202014-06-03 Alan Modra <amodra@gmail.com>
5121
5122 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5123 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5124
6aa5f3a6
DE
51252014-06-02 Doug Evans <dje@google.com>
5126
5127 Add support for skeletonless type units.
5128 * dwarf2read.c (struct dwarf2_per_objfile): New member
5129 n_allocated_type_units.
5130 (struct dwarf2_per_objfile) <tu_stats>: New member
5131 nr_all_type_units_reallocs.
5132 (create_signatured_type_table_from_index): Initialize
5133 n_allocated_type_units
5134 (create_all_type_units): Ditto.
5135 (add_type_unit): Move up in file. New arg slot.
5136 All callers updated. Increase space for all_type_units more
5137 efficiently.
5138 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5139 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5140 (lookup_dwp_signatured_type): Ditto.
5141 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5142 All callers updated.
5143 (build_type_psymtabs_1): Leave type_unit_groups as
5144 NULL if no TUs present.
5145 (print_tu_stats): New function.
5146 (process_skeletonless_type_unit): New function.
5147 (process_dwo_file_for_skeletonless_type_units): New
5148 function.
5149 (process_skeletonless_type_units): New function.
5150 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5151 Call print tu_stats if debugging enabled.
5152
41fac0cf
PA
51532014-06-02 Pedro Alves <palves@redhat.com>
5154
5155 * breakpoint.c (build_target_command_list): Don't build a command
5156 list if we have any duplicate location that isn't a dprintf.
5157
cd1608cc
PA
51582014-06-02 Pedro Alves <palves@redhat.com>
5159
5160 * breakpoint.c (dprintf_breakpoint_hit): New function.
5161 (initialize_breakpoint_ops): Install it as dprintf's
5162 breakpoint_hit method.
5163
486ef3b9
JB
51642014-06-02 Joel Brobecker <brobecker@adacore.com>
5165
5166 * source.c (substitute_path_rule_matches): Simplify using
5167 filename_ncmp instead of FILENAME_CMP.
5168
230cd560
JB
51692014-06-02 Joel Brobecker <brobecker@adacore.com>
5170
5171 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5172
16954d5d
LC
51732014-06-01 Ludovic Courtès <ludo@gnu.org>
5174
5175 * configure.ac: When Guile is available, check for the
5176 availability of 'scm_new_smob'.
5177 * configure, config.h.in: Regenerate.
5178 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5179 function.
5180
53e8a631
AB
51812014-05-30 Andrew Burgess <aburgess@broadcom.com>
5182
5183 * frame.c (struct frame_info): Add stop_string field.
5184 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5185 (get_prev_frame_always): Old content moved into
5186 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5187 TRY_CATCH, handle MEMORY_ERROR exceptions.
5188 (frame_stop_reason_string): New function definition.
5189 * frame.h (unwind_stop_reason_to_string): Extend comment to
5190 mention frame_stop_reason_string.
5191 (frame_stop_reason_string): New function declaration.
5192 * stack.c (frame_info): Switch to frame_stop_reason_string.
5193 (backtrace_command_1): Switch to frame_stop_reason_string.
5194 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5195 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5196 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5197
70e38b8e
AB
51982014-05-30 Andrew Burgess <aburgess@broadcom.com>
5199
5200 * frame.c (frame_stop_reason_string): Rename to ...
5201 (unwind_stop_reason_to_string): this.
5202 * frame.h (frame_stop_reason_string): Rename to ...
5203 (unwind_stop_reason_to_string): this.
5204 * stack.c (frame_info): Update call to frame_stop_reason_string.
5205 (backtrace_command_1): Likewise.
5206 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5207 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5208
938f0e2f
AB
52092014-05-30 Andrew Burgess <aburgess@broadcom.com>
5210
5211 * frame.c (remove_prev_frame): New function.
5212 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5213 remove_prev_frame.
5214
a09dd441
PA
52152014-05-29 Pedro Alves <palves@redhat.com>
5216
5217 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5218 and make it const. When a single-step decays to a continue,
5219 clear 'step', not 'hw_step'. Pass whether the caller wanted
5220 to step to user_visible_resume_ptid, not what we ask the
5221 target to do.
5222
bdc36728
PA
52232014-05-29 Pedro Alves <palves@redhat.com>
5224
5225 * infrun.c (process_event_stop_test, handle_step_into_function)
5226 (handle_step_into_function_backward): Adjust.
5227 Don't set the even thread's stop_step and call stop_waiting before
5228 calling end_stepping_range. Instead do that ...
5229 (end_stepping_range): ... here. Take an ecs pointer parameter.
5230
22bcd14b
PA
52312014-05-29 Pedro Alves <palves@redhat.com>
5232
5233 * infrun.c (stop_stepping): Rename to ...
5234 (stop_waiting): ... this.
5235 (proceed): Update comment.
5236 (process_event_stop_test, handle_inferior_event)
5237 (handle_signal_stop, handle_step_into_function)
5238 (handle_step_into_function_backward): Update.
5239
4ae57c05
PA
52402014-05-29 Pedro Alves <palves@redhat.com>
5241
5242 * infcall.c (run_inferior_call): Don't check whether the current
5243 thread is running after the proceed call.
5244
329ea579
PA
52452014-05-29 Pedro Alves <palves@redhat.com>
5246 Tom Tromey <tromey@redhat.com>
5247
5248 * NEWS: Mention "maint set target-async", "set mi-async", and that
5249 background execution commands are now always available.
5250 * target.h (target_async_permitted): Update comment.
5251 * target.c (target_async_permitted, target_async_permitted_1):
5252 Default to 1.
5253 (set_target_async_command): Rename to ...
5254 (maint_set_target_async_command): ... this.
5255 (show_target_async_command): Rename to ...
5256 (maint_show_target_async_command): ... this.
5257 (_initialize_target): Adjust.
5258 * infcmd.c (prepare_execution_command): Make extern.
5259 * inferior.h (prepare_execution_command): Declare.
5260 * infrun.c (set_observer_mode): Leave target async alone.
5261 * mi/mi-interp.c (mi_interpreter_init): Install
5262 mi_on_sync_execution_done as sync_execution_done observer.
5263 (mi_on_sync_execution_done): New function.
5264 (mi_execute_command_input_handler): Don't print the prompt if we
5265 just started a synchronous command with an async target.
5266 (mi_on_resume): Check sync_execution before printing prompt.
5267 * mi/mi-main.h (mi_async_p): Declare.
5268 * mi/mi-main.c: Include gdbcmd.h.
5269 (mi_async_p): New function.
5270 (mi_async, mi_async_1): New globals.
5271 (set_mi_async_command, show_mi_async_command, mi_async): New
5272 functions.
5273 (exec_continue): Call prepare_execution_command.
5274 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5275 (mi_execute_async_cli_command): Use mi_async_p.
5276 (_initialize_mi_main): Install "set mi-async". Make
5277 "target-async" a deprecated alias.
5278
92bcb5f9
PA
52792014-05-29 Pedro Alves <palves@redhat.com>
5280
5281 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5282 (_initialize_cli_interp): Adjust.
5283 * event-loop.c: Include "observer.h".
5284 (start_event_loop): Notify 'command_error' observers instead of
5285 calling display_gdb_prompt. Remove FIXME comment.
5286 * event-top.c (display_gdb_prompt): Remove call into the
5287 interpreters.
5288 * inf-loop.c: Include "observer.h".
5289 (inferior_event_handler): Notify 'command_error' observers instead
5290 of calling display_gdb_prompt.
5291 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5292 observers instead of calling display_gdb_prompt.
5293 * interps.c (interp_set): Don't call display_gdb_prompt.
5294 (current_interp_display_prompt_p): Delete.
5295 * interps.h (interp_prompt_p): Delete declaration.
5296 (interp_prompt_p_ftype): Delete.
5297 (struct interp_procs) <prompt_proc_p>: Delete field.
5298 (current_interp_display_prompt_p): Delete declaration.
5299 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5300 (_initialize_mi_interp): Adjust.
5301 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5302 'command_error' observers.
5303 (tui_on_sync_execution_done, tui_on_command_error): New
5304 functions.
5305 (tui_display_prompt_p): Delete.
5306 (_initialize_tui_interp): Adjust.
5307
fd664c91
PA
53082014-05-29 Pedro Alves <palves@redhat.com>
5309
5310 PR gdb/13860
5311 * cli/cli-interp.c: Include infrun.h and observer.h.
5312 (cli_uiout, cli_interp): New globals.
5313 (cli_on_signal_received, cli_on_end_stepping_range)
5314 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5315 functions.
5316 (cli_interpreter_init): Install them as 'end_stepping_range',
5317 'signal_received' 'signal_exited', 'exited' and 'no_history'
5318 observers.
5319 (_initialize_cli_interp): Remove cli_interp local.
5320 * infrun.c (handle_inferior_event): Call the several stop reason
5321 observers instead of printing the stop reason directly.
5322 (end_stepping_range): New function.
5323 (print_end_stepping_range_reason, print_signal_exited_reason)
5324 (print_exited_reason, print_signal_received_reason)
5325 (print_no_history_reason): Make static, and add an uiout
5326 parameter. Print to that instead of to CURRENT_UIOUT.
5327 * infrun.h (print_end_stepping_range_reason)
5328 (print_signal_exited_reason, print_exited_reason)
5329 (print_signal_received_reason print_no_history_reason): New
5330 declarations.
5331 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5332 'mi_uiout'.
5333 <cli_uiout>: New field.
5334 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5335 uiout for CLI output. Install 'signal_received',
5336 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5337 observers.
5338 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5339 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5340 (mi_on_no_history): New functions.
5341 (ui_out_free_cleanup): Delete function.
5342 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5343 instead use the one already stored in the MI interpreter data.
5344 (mi_ui_out): Adjust.
5345 * tui/tui-interp.c: Include infrun.h and observer.h.
5346 (tui_interp): New global.
5347 (tui_on_signal_received, tui_on_end_stepping_range)
5348 (tui_on_signal_exited, tui_on_exited)
5349 (tui_on_no_history): New functions.
5350 (tui_init): Install them as 'end_stepping_range',
5351 'signal_received' 'signal_exited', 'exited' and 'no_history'
5352 observers.
5353 (_initialize_tui_interp): Delete tui_interp local.
5354
8817a6f2
PA
53552014-05-29 Pedro Alves <palves@redhat.com>
5356
5357 PR gdb/15713
5358 * linux-nat.c (linux_nat_resume_callback): Rename the second
5359 parameter to 'except'. Skip LP if it points to EXCEPT.
5360 (linux_nat_resume): Don't mark the event lwp as not stopped
5361 before resuming sibling lwps. Instead ask
5362 linux_nat_resume_callback to skip the event lwp. Mark it as not
5363 stopped after actually resuming it.
5364 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5365 resuming it.
5366 (wait_lwp): Mark the lwp as stopped here.
5367 (stop_wait_callback): Mark the lwp as not stopped right after
5368 resuming it. Don't mark lwps as stopped here.
5369 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5370 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5371
251bde03
PA
53722014-05-29 Pedro Alves <palves@redhat.com>
5373
5374 PR PR15693
5375 * infrun.c (resume): Determine how much to resume depending on
5376 whether the caller wanted a step, not whether we can hardware step
5377 the target. Mark all threads that we intend to run as running,
5378 unless we're calling an inferior function.
5379 (normal_stop): If the thread is running an infcall, don't finish
5380 thread state.
5381 * target.c (target_resume): Don't mark threads as running here.
5382
7f3c0343
JB
53832014-05-28 Joel Brobecker <brobecker@adacore.com>
5384
5385 * serial.c (_initialize_serial): Remove support for
5386 the "set remotebaud" and "show remotebaud" commands.
5387 * NEWS: Add entry documenting the removal of that command.
5388
ee34b3f9
YQ
53892014-05-28 Yao Qi <yao@codesourcery.com>
5390
5391 * charset.c: Fix typo in comments.
5392
add6c04d
GB
53932014-05-27 Gary Benson <gbenson@redhat.com>
5394
5395 * utils.c (internal_vproblem): Prompt for a bug report.
5396
92c48fc5
AW
53972014-05-26 Andy Wingo <wingo@igalia.com>
5398
5399 * guile/scm-arch.c (arscm_mark_arch_smob):
5400 * guile/scm-block.c (bkscm_mark_block_smob)
5401 (bkscm_mark_block_syms_progress_smob):
5402 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5403 * guile/scm-exception.c (exscm_mark_exception_smob):
5404 * guile/scm-frame.c (frscm_mark_frame_smob):
5405 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5406 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5407 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5408 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5409 (ppscm_mark_pretty_printer_worker_smob):
5410 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5411 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5412 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5413 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5414 mark functions.
5415 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5416 function.
5417
b2715b27
AW
54182014-05-26 Andy Wingo <wingo@igalia.com>
5419 Doug Evans <xdje42@gmail.com>
5420
5421 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5422 empty_base_class. All uses updated.
5423 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5424 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5425 Adapt all callers.
5426 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5427 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5428 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5429 (gdbscm_gsmob_has_property_p, add_property_name)
5430 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5431 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5432 (gdb-object-has-property?, gdb-object-properties): Remove.
5433 (gdb-object-kind): Renamed from gsmob-kind.
5434
214ab2da
AW
54352014-05-26 Andy Wingo <wingo@igalia.com>
5436
5437 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5438 * configure: Regenerate.
5439
589fdceb
MM
54402014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5441
5442 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5443
67b5c0c1
MM
54442014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5445
5446 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5447 (replay_memory_access_read_only, replay_memory_access_read_write)
5448 (replay_memory_access_types, replay_memory_access)
5449 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5450 (cmd_set_record_btrace, cmd_show_record_btrace)
5451 (cmd_show_replay_memory_access): New.
5452 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5453 (record_btrace_remove_breakpoint): Replace
5454 record_btrace_allow_memory_access with replay_memory_access.
5455 (_initialize_record_btrace): Add commands.
5456 * NEWS: Announce it.
5457
036cd381
RR
54582014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5459
5460 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5461
c77c1e42
RR
54622014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5463
5464 * MAINTAINERS (Write After Approval): Move self back from
5465 paper trail.
5466
45741a9c
PA
54672014-05-22 Pedro Alves <palves@redhat.com>
5468
5469 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5470 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5471 (disable_randomization, enum exec_direction_kind)
5472 (execution_direction, stop_registers, start_remote)
5473 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5474 (wait_for_inferior, normal_stop, get_last_target_status)
5475 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5476 (insert_step_resume_breakpoint_at_sal)
5477 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5478 (set_step_info, print_stop_event, signal_stop_state)
5479 (signal_print_state, signal_pass_state, signal_stop_update)
5480 (signal_print_update, signal_pass_update)
5481 (update_signals_program_target, clear_exit_convenience_vars)
5482 (displaced_step_dump_bytes, update_observer_mode)
5483 (signal_catch_update, gdb_signal_from_command): Move
5484 declarations ...
5485 * infrun.h: ... to this new file.
5486 * amd64-tdep.c: Include infrun.h.
5487 * annotate.c: Include infrun.h.
5488 * arch-utils.c: Include infrun.h.
5489 * arm-linux-tdep.c: Include infrun.h.
5490 * arm-tdep.c: Include infrun.h.
5491 * break-catch-sig.c: Include infrun.h.
5492 * breakpoint.c: Include infrun.h.
5493 * common/agent.c: Include infrun.h instead of inferior.h.
5494 * corelow.c: Include infrun.h.
5495 * event-top.c: Include infrun.h.
5496 * go32-nat.c: Include infrun.h.
5497 * i386-tdep.c: Include infrun.h.
5498 * inf-loop.c: Include infrun.h.
5499 * infcall.c: Include infrun.h.
5500 * infcmd.c: Include infrun.h.
5501 * infrun.c: Include infrun.h.
5502 * linux-fork.c: Include infrun.h.
5503 * linux-nat.c: Include infrun.h.
5504 * linux-thread-db.c: Include infrun.h.
5505 * monitor.c: Include infrun.h.
5506 * nto-tdep.c: Include infrun.h.
5507 * procfs.c: Include infrun.h.
5508 * record-btrace.c: Include infrun.h.
5509 * record-full.c: Include infrun.h.
5510 * remote-m32r-sdi.c: Include infrun.h.
5511 * remote-mips.c: Include infrun.h.
5512 * remote-notif.c: Include infrun.h.
5513 * remote-sim.c: Include infrun.h.
5514 * remote.c: Include infrun.h.
5515 * reverse.c: Include infrun.h.
5516 * rs6000-tdep.c: Include infrun.h.
5517 * s390-linux-tdep.c: Include infrun.h.
5518 * solib-irix.c: Include infrun.h.
5519 * solib-osf.c: Include infrun.h.
5520 * solib-svr4.c: Include infrun.h.
5521 * target.c: Include infrun.h.
5522 * top.c: Include infrun.h.
5523 * windows-nat.c: Include infrun.h.
5524 * mi/mi-interp.c: Include infrun.h.
5525 * mi/mi-main.c: Include infrun.h.
5526 * python/py-threadevent.c: Include infrun.h.
5527
98eb56a4
PA
55282014-05-22 Pedro Alves <palves@redhat.com>
5529
5530 * infrun.c (handle_inferior_event): Store the exit code for
5531 --return-child-result here, instead of ...
5532 (print_exited_reason): ... here.
5533
17b2616c
PA
55342014-05-21 Pedro Alves <palves@redhat.com>
5535
5536 PR gdb/13860
5537 * gdbthread.h (struct thread_control_state): New field
5538 `command_interp'.
5539 * infrun.c (follow_fork): Copy the new thread control field to the
5540 child fork thread.
5541 (clear_proceed_status_thread): Clear the new thread control field.
5542 (proceed): Set the new thread control field.
5543 * interps.h (command_interp): Declare.
5544 * interps.c (command_interpreter): New global.
5545 (command_interp): New function.
5546 (interp_exec): Set `command_interpreter' while here.
5547 * cli-out.c (cli_uiout_dtor): New function.
5548 (cli_ui_out_impl): Install it.
5549 * mi/mi-interp.c: Include cli-out.h.
5550 (mi_cmd_interpreter_exec): Add comment.
5551 (restore_current_uiout_cleanup): New function.
5552 (ui_out_free_cleanup): New function.
5553 (mi_on_normal_stop): If finishing an execution command started by
5554 a CLI command, or any kind of breakpoint-like event triggered,
5555 print the stop event to the output (CLI) stream.
5556 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5557
5166082f
PA
55582014-05-21 Pedro Alves <palves@redhat.com>
5559
5560 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5561 current source line having changed.
5562 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5563 * infrun.c (normal_stop): Adjust call to
5564 set_current_sal_from_frame.
5565 * source.c (clear_lines_listed_range): New function.
5566 (set_current_source_symtab_and_line, identify_source_line): Clear
5567 the lines listed range.
5568 (line_info): Handle the first "info line" after the current source
5569 line having changed.
5570 * stack.c (print_stack_frame): Remove center handling.
5571 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5572 center sal.line.
5573
c1ee2fb3
PA
55742014-05-21 Pedro Alves <palves@redhat.com>
5575
5576 * inf-child.c (inf_child_mourn_inferior): New function.
5577 * inf-child.h (inf_child_mourn_inferior): New declaration.
5578 * darwin-nat.c (darwin_mourn_inferior): Use
5579 inf_child_mourn_inferior.
5580 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5581 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5582 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5583 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5584 * windows-nat.c (windows_mourn_inferior): Likewise.
5585
5c6d4fb2
DE
55862014-05-21 Doug Evans <xdje42@gmail.com>
5587
250748cb 5588 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5589
4a2722c5
DE
55902014-05-21 Doug Evans <xdje42@gmail.com>
5591
17292b30 5592 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5593 (gdbscm_out_of_range_error): Ditto.
5594 (gdbscm_memory_error): Ditto.
250748cb
DE
5595 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5596 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5597 (gdbscm_out_of_range_error): Update.
5598 (gdbscm_memory_error): Update.
5599 (gdbscm_scm_to_target_string_unsafe): Delete.
5600
6a3cb8e8
PA
56012014-05-21 Pedro Alves <palves@redhat.com>
5602
5603 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5604 globals.
5605 (inf_child_open_target): New function.
5606 (inf_child_open): Use inf_child_open_target to push the target
5607 instead of erroring out.
5608 (inf_child_disconnect, inf_child_close)
5609 (inf_child_maybe_unpush_target): New functions.
5610 (inf_child_target): Install inf_child_disconnect and
5611 inf_child_close. Store a pointer to the returned object.
5612 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5613 declarations.
5614 * target.c (auto_connect_native_target): New global.
5615 (show_default_run_target): New function.
5616 (find_default_run_target): Return NULL if automatically connecting
5617 to the native target is disabled.
5618 (_initialize_target): Install set/show auto-connect-native-target.
5619 * NEWS: Mention "set auto-connect-native-target", and "target
5620 native".
5621 * linux-nat.c (super_close): New global.
5622 (linux_nat_close): Call super_close.
5623 (linux_nat_add_target): Store a pointer to the base class's
5624 to_close method.
5625 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5626 inf_child_maybe_unpush.
5627 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5628 already pushed.
5629 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5630 the inferior. Use inf_child_maybe_unpush_target.
5631 (inf_ttrace_attach): Don't push the target if it is already
5632 pushed.
5633 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5634 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5635 after mourning the inferior. Use inf_child_maybe_unpush_target.
5636 (darwin_attach_pid): Don't push the target if it is already
5637 pushed.
5638 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5639 mourning the inferior. Use inf_child_maybe_unpush_target.
5640 (gnu_detach): Use inf_child_maybe_unpush_target.
5641 * go32-nat.c (go32_create_inferior): Don't push the target if it
5642 is already pushed.
5643 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5644 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5645 (procfs_open): Rename to ...
5646 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5647 comments. Can target_preopen before changing node. Call
5648 inf_child_open_target to push the target explicitly.
5649 (procfs_attach): Don't push the target if it is already pushed.
5650 (procfs_detach): Use inf_child_maybe_unpush_target.
5651 (procfs_create_inferior): Don't push the target if it is already
5652 pushed.
5653 (nto_native_ops): New global.
5654 (procfs_open): Reimplement.
5655 (procfs_native_open): New function.
5656 (init_procfs_targets): Install procfs_native_open as to_open of
5657 "target native". Store a pointer to the "native" target in
5658 nto_native_ops.
5659 * procfs.c (procfs_attach): Don't push the target if it is already
5660 pushed.
5661 (procfs_detach): Use inf_child_maybe_unpush_target.
5662 (procfs_mourn_inferior): Only unpush the target after mourning the
5663 inferior. Use inf_child_maybe_unpush_target.
5664 (procfs_init_inferior): Don't push the target if it is already
5665 pushed.
5666 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5667 if it is already pushed.
5668
930ee1b1
PA
56692014-05-21 Pedro Alves <palves@redhat.com>
5670
5671 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5672 and "procfs" targets are now called "native" instead.
5673
1f5d1b13
PA
56742014-05-21 Pedro Alves <palves@redhat.com>
5675
5676 * go32-nat.c (go32_open): Delete.
5677 (go32_target): Don't override the to_open method.
5678
132f8e03
PA
56792014-05-21 Pedro Alves <palves@redhat.com>
5680
5681 * nto-procfs.c (procfs_can_run): New function.
5682 (nto_procfs_ops): New global.
5683 (init_procfs_targets): New, based on procfs_target. Install
5684 "target native" in addition to "target procfs".
5685 (_initialize_procfs): Call init_procfs_targets instead of adding
5686 the target here.
5687
03c136c3
PA
56882014-05-21 Pedro Alves <palves@redhat.com>
5689
5690 * windows-nat.c (windows_target): Don't override to_shortname,
5691 to_longname or to_doc.
5692
a635d0f3
PA
56932014-05-21 Pedro Alves <palves@redhat.com>
5694
5695 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5696 to_doc.
5697
4f9b5133
PA
56982014-05-21 Pedro Alves <palves@redhat.com>
5699
5700 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5701 to_shortname, to_longname or to_doc.
5702
bc85afde
PA
57032014-05-21 Pedro Alves <palves@redhat.com>
5704
5705 * go32-nat.c (go32_target): Don't override to_shortname,
5706 to_longname or to_doc.
5707
4ebfc96e
PA
57082014-05-21 Pedro Alves <palves@redhat.com>
5709
5710 * inf-child.c (inf_child_open): Remove mention of "child".
5711 (inf_child_target): Rename target to "native" instead of "child".
5712
2648dfed
AA
57132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5714
5715 * Makefile.in (SFILES): Delete "regset.c".
5716 (COMMON_OBS): Delete "regset.o".
5717 * regset.c: Remove.
5718 * regset.h (regset_alloc): Delete prototype.
5719
b13feb94
AA
57202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5721
5722 * sparc-linux-tdep.c (sparc32_linux_gregset)
5723 (sparc32_linux_fpregset): New static regset structures.
5724 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5725 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5726 'fpregset' fields.
5727 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5728 (sparc64_linux_fpregset): New static regset structures.
5729 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5730 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5731 New static regset structures.
5732 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5733 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5734 New static regset structures.
5735 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5736 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5737 New static regset structures.
5738 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5739 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5740 New static regset structures.
5741 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5742
b4fd25c9
AA
57432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5744
5745 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5746 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5747 register maps ("regmaps") from "*regset" to "*regmap". Do this
5748 for all regmap types and variables.
5749 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5750 (sparc32_linux_supply_core_gregset)
5751 (sparc32_linux_collect_core_gregset)
5752 (sparc32_linux_supply_core_fpregset)
5753 (sparc32_linux_collect_core_fpregset): Likewise.
5754 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5755 (sparc_gregmap, sparc_fpregmap): ... these.
5756 (sparc_supply_gregset, sparc_collect_gregset)
5757 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5758 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5759 (_initialize_sparc_nat): Rename regmaps.
5760 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5761 (sparc_gregmap, sparc_fpregmap): ... these.
5762 (sparc_supply_gregset, sparc_collect_gregset)
5763 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5764 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5765 Rename macros to...
5766 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5767 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5768 Likewise.
5769 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5770 Rename to...
5771 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5772 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5773 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5774 regmaps.
5775 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5776 (sparc32_bsd_fpregset): Rename to...
5777 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5778 (sparc32_bsd_fpregmap): ... these.
5779 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5780 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5781 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5782 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5783 (struct sparc_gregmap, struct sparc_fpregmap)
5784 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5785 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5786 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5787 (sparc32_supply_regset, sparc32_collect_gregset)
5788 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5789 prototypes.
5790 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5791 (sparc64_linux_ptrace_gregmap): ... this.
5792 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5793 (_initialize_sparc64_linux_nat): Rename regmaps.
5794 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5795 (sparc64_linux_core_gregmap): ... this.
5796 (sparc64_linux_supply_core_gregset)
5797 (sparc64_linux_collect_core_gregset)
5798 (sparc64_linux_supply_core_fpregset)
5799 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5800 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5801 (sparc64_sol2_fpregset): Rename to...
5802 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5803 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5804 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5805 regmaps.
5806 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5807 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5808 (sparc64_bsd_fpregset): Rename to...
5809 (struct sparc_gregmap, sparc64_sol2_gregmap)
5810 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5811 (sparc64_bsd_fpregmap): ... these.
5812 (sparc64_supply_gregset, sparc64_collect_gregset)
5813 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5814 prototypes.
5815 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5816 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5817 (sparc64fbsd_gregmap): ... this.
5818 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5819 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5820 Rename regmaps.
5821 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5822 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5823 (sparc64nbsd_collect_fpregset): Likewise.
5824 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5825 (sparc64nbsd_gregmap): ... this.
5826 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5827 regmaps.
5828 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5829 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5830 (sparc64obsd_gregmap): ... this.
5831 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5832 regmaps.
5833 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5834 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5835 (sparc32nbsd_gregmap): ... this.
5836 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5837 regmaps.
5838
8fea3224
AA
58392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5840
5841 * score-tdep.c (score7_linux_gregset): New static regset
5842 structure.
5843 (score7_linux_regset_from_core_section): Remove dynamic regset
5844 allocation.
5845 (score_gdbarch_init): Drop allocation of tdep structure.
5846 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5847
24534243
AA
58482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5849
5850 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5851 regset structures.
5852 (am33_regset_from_core_section): Remove dynamic regset
5853 allocations.
5854
b7195f27
AA
58552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5856
5857 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5858 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5859 structures.
5860 (mips_linux_regset_from_core_section): Remove dynamic regset
5861 allocations.
5862 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5863 'gregset64', 'fpregset', and 'fpregset64'.
5864 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5865 deleted tdep fields.
5866
ecc37a5a
AA
58672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5868
5869 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5870 regset structures.
5871 (amd64_regset_from_core_section): Remove dynamic regset
5872 allocations.
5873 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5874 structure.
5875 (amd64obsd_regset_from_core_section): Remove dynamic regset
5876 allocation.
5877 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5878 Likewise.
5879 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5880 x86-common regset supply function.
5881 * i386-tdep.c (i386_collect_gregset): Make static.
5882 (i386_gregset): New global regset structure.
5883 (i386_fpregset, i386_xstateregset): New static regset structures.
5884 (i386_regset_from_core_section): Remove dynamic regset
5885 allocations.
5886 (i386_gdbarch_init): Remove initialization of tdep fields
5887 'gregset', 'fpregset', and 'xstateregset'.
5888 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5889 'fpregset', and 'xstateregset'.
5890 (i386_collect_gregset): Remove prototype.
5891 (i386_gregset): New declaration.
5892 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5893 structure.
5894 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5895 allocation.
5896
b7611c43
AA
58972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5898
5899 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5900 (arm_linux_vfpregset): New static regset structures.
5901 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5902 regset structures.
5903 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5904 and 'vfpregset' fields.
5905
a069a2bd
AA
59062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5907
5908 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5909 (aarch64_linux_fpregset): New static regset structures.
5910 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5911 of regset structures.
5912 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5913 'fpregset' fields.
5914
09424cff
AA
59152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5916
5917 * regset.h (struct regset): Remove gdbarch field.
5918 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5919 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5920 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5921 Likewise.
5922 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5923 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5924 (ppc32_linux_vsxregset): Likewise.
5925 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5926 via the regcache instead of the regset.
5927 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5928 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5929 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5930 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5931 Likewise.
5932
3ca7dae4
AA
59332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5934
5935 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5936 Constify structures.
5937 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5938 (alphanbsd_aout_gregset): Likewise.
5939 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5940 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5941 Likewise.
5942 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5943 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5944 Likewise.
5945 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5946 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5947 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5948 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5949 * m88k-tdep.c (m88k_gregset): Likewise.
5950 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5951 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5952 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5953 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5954 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5955 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5956 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5957 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5958 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5959 Likewise.
5960 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5961 * sh-tdep.h (sh_corefile_gregset): Likewise.
5962 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5963 * vax-tdep.c (vax_gregset): Likewise.
5964
5876f503
JK
59652014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5966
5967 Fix TLS access for -static -pthread.
5968 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5969 (try_thread_db_load_1): Initialize it.
5970 (thread_db_get_thread_local_address): Call it if LM is zero.
5971 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5972 * target.h (struct target_ops) (to_get_thread_local_address): Add
5973 load_module_addr comment.
5974
0256a6ac
PA
59752014-05-21 Pedro Alves <palves@redhat.com>
5976
5977 * dcache.c (dcache_read_memory_partial): If reading the cache line
5978 fails, fallback to reading just the memory the caller wanted.
5979
227533ac
DE
59802014-05-20 Doug Evans <dje@google.com>
5981
5982 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5983 instead of get_current_arch.
5984
936d2992
PA
59852014-05-20 Pedro Alves <palves@redhat.com>
5986
5987 * NEWS: Mention that compare-sections now works with all targets.
5988
5989 * remote.c (PACKET_qCRC): New enum value.
5990 (remote_verify_memory): Don't send qCRC if the target has no
5991 execution. Use packet_support/packet_ok. If the target doesn't
5992 support the qCRC packet, fallback to a deep memory copy.
5993 (compare_sections_command): Say "target image" instead of "remote
5994 executable".
5995 (_initialize_remote): Add PACKET_qCRC to the list of config
5996 packets that have no associated command. Extend comment.
5997 * target.c (simple_verify_memory, default_verify_memory): New
5998 function.
5999 * target.h (struct target_ops) <to_verify_memory>: Default to
6000 default_verify_memory.
6001 (simple_verify_memory): New declaration.
6002 * target-delegates.c: Regenerate.
6003
e59fa00f
MM
60042014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6005
6006 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6007
f2205de0
HZ
60082014-05-20 Hui Zhu <hui@codesourcery.com>
6009 Yao Qi <yao@codesourcery.com>
6010
6011 PR backtrace/16558
6012 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6013 and change address of sp and pc.
6014
c4e54771
TT
60152014-05-19 Tom Tromey <tromey@redhat.com>
6016
6017 * gdbtypes.c (rank_function): Use XNEWVEC.
6018 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6019
73051182
DE
60202014-05-19 Doug Evans <dje@google.com>
6021
6022 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6023 build_type_unit_groups and moved closer to only caller. Remove
6024 arguments. All references updated. Remove outdated .gdb_index
6025 comment.
6026 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6027 build_type_psymtabs_1.
6028
8832e7e3
DE
60292014-05-19 Doug Evans <dje@google.com>
6030
6031 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6032 n_type_unit_groups, all_type_unit_groups. All uses removed.
6033 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6034 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6035 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6036 (add_type_unit_group_to_table): Delete.
6037
cd8ae15e
DE
60382014-05-19 Doug Evans <dje@google.com>
6039
6040 * eval.c (evaluate_subexp_standard): Add some comments.
6041
08f4850b
DE
60422014-05-17 Doug Evans <xdje42@gmail.com>
6043
6044 * progspace.c (remove_program_space): Delete, unused.
6045 * progspace.h (remove_program_space): Ditto.
6046
bed8455c
DE
60472014-05-17 Doug Evans <xdje42@gmail.com>
6048
6049 * inferior.c (prune_inferiors): Fix comment.
6050 (remove_inferior_command): Call prune_program_spaces.
6051
8d551b02
DE
60522014-05-16 Doug Evans <dje@google.com>
6053
6054 New command line option -D.
6055 * NEWS: Mention it.
6056 * main.c (set_gdb_data_directory): New function.
6057 (captured_main): Recognize -D. Flag error for --data-directory "".
6058 Call set_gdb_data_directory.
6059 (print_gdb_help): Print --data-directory, -D.
6060 * main.h (set_gdb_data_directory): Declare.
6061 * top.c (staged_gdb_datadir): New static global.
6062 (set_gdb_datadir): Call set_gdb_data_directory
6063 (show_gdb_datadir): New function.
6064 (init_main): Update init of data-directory parameter.
6065
18848e28
GF
60662014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6067
6068 Import the "dirfd" gnulib module.
6069 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6070 * gnulib/aclocal.m4: Update.
6071 * gnulib/config.in: Update.
6072 * gnulib/configure: Update.
6073 * gnulib/import/Makefile.am: Update.
6074 * gnulib/import/Makefile.in: Update.
6075 * gnulib/import/dirfd.c: New.
6076 * gnulib/import/m4/dirfd.m4: New.
6077 * gnulib/import/m4/gnulib-cache.m4: Update.
6078 * gnulib/import/m4/gnulib-comp.m4: Update.
6079
95c64f92
YQ
60802014-05-16 Pierre Muller <muller@sourceware.org>
6081 Yao Qi <yao@codesourcery.com>
6082
6083 * valprint.c (print_wchar): Move the code on checking whether
6084 W is a printable wide char to the default branch of switch
6085 statement below. Call wchar_printable instead of gdb_iswprint.
6086
cac395ea
TM
60872014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6088
19679eca 6089 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6090 ldr.w and ldrd instructions.
6091
83655187
DE
60922014-05-15 Doug Evans <dje@google.com>
6093
6094 * dwarf2read.c (read_structure_type): Delete outdated comments.
6095
dd756689
TT
60962014-05-14 Tom Tromey <tromey@redhat.com>
6097
6098 * macrocmd.c (print_macro_definition): Reindent.
6099
75ddda77
DE
61002014-05-13 Doug Evans <xdje42@gmail.com>
6101
6102 * python/py-cmd.c (cmdpy_completer): Add comment.
6103 (completers): Make const.
6104
b0f16a3e
SM
61052014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * infrun.c (resume): Remove should_resume (unused). Move up
6108 declaration of resume_ptid.
6109
033c3379
TT
61102014-05-13 Tom Tromey <tromey@redhat.com>
6111
6112 * language.h (unop_type_check): Remove.
6113 (binop_type_check): Don't declare.
6114
9b44a3a5
AA
61152014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6116
6117 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6118 call to regcache_raw_collect.
6119
303a33fa
SM
61202014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6123 mi_console->quote as the quoting character.
6124
196100a0
SM
61252014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6128
f989a1c8
TT
61292014-04-29 Tom Tromey <tromey@redhat.com>
6130
6131 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6132 "show debug varobj".
6133
9404b58f
KM
61342014-05-07 Kyle McMartin <kyle@redhat.com>
6135
6136 Pushed by Joel Brobecker <brobecker@adacore.com>.
6137 * aarch64-tdep.c (aarch64_software_single_step): New function.
6138 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6139 with aarch64_software_single_step.
6140
5e49ba57
JB
61412014-05-05 Joel Brobecker <brobecker@adacore.com>
6142
6143 GDB 7.7.1 released.
6144
c888a17d
KS
61452014-05-05 Keith Seitz <keiths@redhat.com>
6146
6147 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6148 variable or history value is successfully parsed.
6149
290a839c
YQ
61502014-05-05 Yao Qi <yao@codesourcery.com>
6151 Pedro Alves <palves@redhat.com>
6152
6153 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6154 address of blocks that intersects the requested range. Trim
6155 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6156 sections.
6157 * ctf.c (ctf_xfer_partial): Likewise.
6158
91256dc2
YQ
61592014-05-05 Yao Qi <yao@codesourcery.com>
6160
6161 * printcmd.c (display_command): Remove the check to
6162 target_has_execution.
6163
07284463
MK
61642014-05-03 Mark Kettenis <kettenis@gnu.org>
6165
6166 * ppcobsd-nat.c: Include "obsd-nat.h".
6167 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6168 add_target.
6169 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6170
30a1e6cc
SDJ
61712014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6172
6173 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6174 and 16-bit signed and unsigned arguments. Update comment.
6175 (stap_parse_probe_arguments): Extend code to handle such
6176 arguments. Use warning instead of complaint to notify about
6177 unrecognized bitness.
6178
f33da99a
SDJ
61792014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6180
6181 PR breakpoints/16889
6182 * stap-probe.c (stap_parse_probe_arguments): Simplify
6183 check for non-prefixed probes (i.e., probes whose
6184 arguments do not start with "N@"). Always set the
6185 argument type to a sane value.
6186
95cf3b38
DT
61872014-05-01 David Taylor <dtaylor@emc.com>
6188
6189 * remote.c (compare_sections_command): Add -r option to compare
6190 all loadable read-only sections.
6191
1cfdf534
SC
61922014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6193
6194 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6195 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6196 Update all callers.
6197 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6198 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6199 Remove unused CORE_ADDR argument. Update all callers.
6200
ca4f7f8b
PA
62012014-04-29 Pedro Alves <palves@redhat.com>
6202
6203 * remote.c (struct packet_config) <detect>: Extend comment.
6204 (add_packet_config_cmd): Don't set the config's detect or support
6205 fields here.
6206 (init_all_packet_configs): Also initialize the config's 'detect'
6207 field.
6208 (reset_all_packet_configs_support): New function.
6209 (remote_open_1): Call reset_all_packet_configs_support instead of
6210 init_all_packet_configs.
6211 (_initialize_remote): Initialize all packet configs. Assert that
6212 all packets have an associated command, except a few known
6213 outliers.
6214
11c1ba78
JB
62152014-04-28 Joel Brobecker <brobecker@adacore.com>
6216
6217 * dwarf2read.c (read_subrange_type): Handle dynamic
6218 DW_AT_lower_bound attributes.
6219
8739bc53
JB
62202014-04-28 Joel Brobecker <brobecker@adacore.com>
6221
6222 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6223 dynamic bounds before computing its upper bound.
6224 (ada_discrete_type_low_bound): Same as above with the lower bound.
6225
6f8a3220
JB
62262014-04-28 Joel Brobecker <brobecker@adacore.com>
6227
6228 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6229 range types. Adjust the array handling implementation to
6230 take advantage of this change.
6231 (resolve_dynamic_range): New function, mostly extracted from
6232 resolve_dynamic_bounds.
6233 (resolve_dynamic_array): New function, mostly extracted from
6234 resolve_dynamic_bounds.
6235 (resolve_dynamic_bounds): Delete.
6236 (resolve_dynamic_type): Reimplement. Add handling of
6237 TYPE_CODE_RANGE types.
6238
4d072ce4
JB
62392014-04-28 Joel Brobecker <brobecker@adacore.com>
6240
6241 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6242 handling of parallel ___XA types.
6243
52865325
JB
62442014-04-28 Joel Brobecker <brobecker@adacore.com>
6245
6246 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6247 unnecessary second call to static_unwrap_type.
6248
433e77fa
HZ
62492014-04-27 Hui Zhu <hui@codesourcery.com>
6250
6251 * stack.c (print_frame_info): Call do_gdb_disassembly with
6252 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6253
b51a69ee
DE
62542014-04-26 Doug Evans <xdje42@gmail.com>
6255
6256 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6257
7ae1a6a6
PA
62582014-04-25 Pedro Alves <palves@redhat.com>
6259
6260 PR server/16255
6261 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6262 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6263 and newline from built string.
6264 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6265 (linux_ptrace_attach_fail_reason): ... this.
6266 * linux-nat.c (linux_nat_attach): Adjust to use
6267 linux_ptrace_attach_fail_reason.
6268
4082afcc
PA
62692014-04-25 Pedro Alves <palves@redhat.com>
6270
6271 * remote.c (struct remote_state): Remove multi_process_aware,
6272 non_stop_aware, cond_tracepoints, cond_breakpoints,
6273 breakpoint_commands, fast_tracepoints, static_tracepoints,
6274 install_in_trace, disconnected_tracing,
6275 enable_disable_tracepoints, string_tracing, and
6276 augmented_libraries_svr4_read fields.
6277 (remote_multi_process_p): Move further below in the file.
6278 (struct packet_config): Add comments.
6279 (update_packet_config): Delete function.
6280 (show_packet_config_cmd): Use packet_config_support.
6281 (add_packet_config_cmd): Use NULL as set callback.
6282 (packet_ok): "set remote foo-packet"-style commands no longer
6283 change config->supported -- adjust.
6284 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6285 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6286 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6287 (PACKET_QNonStop, PACKET_multiprocess_feature)
6288 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6289 (PACKET_DisconnectedTracing_feature)
6290 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6291 (set_remote_protocol_packet_cmd): Delete function.
6292 (packet_config_support, packet_support): New functions.
6293 (set_remote_protocol_Z_packet_cmd): Don't call
6294 update_packet_config.
6295 (remote_query_attached, remote_pass_signals)
6296 (remote_program_signals, remote_threads_info)
6297 (remote_threads_extra_info, remote_start_remote): Use
6298 packet_support.
6299 (remote_start_remote): Use packet_config_support and
6300 packet_support.
6301 (init_all_packet_configs): Set all packets to unknown support,
6302 instead of calling update_packet_config.
6303 (remote_check_symbols): Use packet_support.
6304 (remote_supported_packet): Unconditionally set the packet config's
6305 support status.
6306 (remote_multi_process_feature, remote_non_stop_feature)
6307 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6308 (remote_breakpoint_commands_feature)
6309 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6310 (remote_install_in_trace_feature)
6311 (remote_disconnected_tracing_feature)
6312 (remote_enable_disable_tracepoint_feature)
6313 (remote_string_tracing_feature)
6314 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6315 (remote_protocol_features): Adjust to use remote_supported_packet
6316 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6317 "ConditionalTracepoints", "ConditionalBreakpoints",
6318 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6319 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6320 "EnableDisableTracepoints", and "tracenz".
6321 (remote_query_supported): Use packet_support.
6322 (remote_open_1): Adjust.
6323 (extended_remote_attach_1): Use packet_support. Switch on the
6324 result of packet_ok instead of checking whether the packet ended
6325 up disabled.
6326 (remote_vcont_resume): Use packet_support.
6327 (remote_resume, remote_stop_ns, fetch_register_using_p)
6328 (remote_prepare_to_store, store_register_using_P)
6329 (check_binary_download, remote_write_bytes): Use packet_support.
6330 (remote_vkill): Use packet_support. Switch on the result of
6331 packet_ok instead of checking whether the packet ended up
6332 disabled.
6333 (extended_remote_supports_disable_randomization): Use
6334 packet_support.
6335 (extended_remote_run): Switch on the result of packet_ok instead
6336 of checking whether the packet ended up disabled.
6337 (remote_insert_breakpoint, remote_remove_breakpoint)
6338 (remote_insert_watchpoint, remote_remove_watchpoint)
6339 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6340 packet_support.
6341 (remote_search_memory): Use packet_config_support.
6342 (remote_get_thread_local_address, remote_get_tib_address)
6343 (remote_hostio_send_command, remote_can_execute_reverse): Use
6344 packet_support.
6345 (remote_supports_cond_tracepoints)
6346 (remote_supports_cond_breakpoints)
6347 (remote_supports_fast_tracepoints)
6348 (remote_supports_static_tracepoints)
6349 (remote_supports_install_in_trace)
6350 (remote_supports_enable_disable_tracepoint)
6351 (remote_supports_string_tracing)
6352 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6353 the packet config says the feature is enabled or disabled.
6354 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6355 (remote_get_trace_status): Use packet_support.
6356 (remote_set_disconnected_tracing): Adjust to check whether the
6357 feature is enabled with packet_support.
6358 (remote_set_trace_buffer_size, remote_use_agent)
6359 (remote_can_use_agent, remote_supports_btrace): Use
6360 packet_support.
6361 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6362 Use packet_config_support.
6363 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6364 the packet config says the feature is enabled or disabled.
6365 (set_range_stepping): Use packet_support.
6366
bdb52a22
TT
63672014-04-25 Tom Tromey <tromey@redhat.com>
6368
6369 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6370 argument.
6371
e9475ead
SA
63722014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6373
6374 * NEWS: Mention support for C99 variable length arrays.
6375
82eacd52
JB
63762014-04-24 Joel Brobecker <brobecker@adacore.com>
6377
6378 * ada-lang.c (standard_exc): Expand introductory comment.
6379
01f9f808
MS
63802014-04-24 Michael Sturm <michael.sturm@mintel.com>
6381 Walfred Tedeschi <walfred.tedeschi@intel.com>
6382
6383 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6384 AVX512 registers.
6385 (amd64_linux_read_description): Add code to handle AVX512 xstate
6386 mask and return respective tdesc.
6387 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6388 and features/i386/x32-avx512-linux.c.
6389 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6390 (amd64_linux_core_read_description): Add code to handle AVX512
6391 xstate mask and return respective tdesc.
6392 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6393 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6394 calculation.
6395 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6396 (tdesc_amd64_avx512_linux): New prototype.
6397 (tdesc_x32_avx512_linux): Likewise.
6398 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6399 features/i386/x32-avx512.c.
6400 (amd64_ymm_avx512_names): New register names for pseudo
6401 registers YMM16-31.
6402 (amd64_ymmh_avx512_names): New register names for raw registers
6403 YMMH16-31.
6404 (amd64_k_names): New register names for K registers.
6405 (amd64_zmmh_names): New register names for ZMM raw registers.
6406 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6407 (amd64_xmm_avx512_names): New register names for XMM16-31
6408 registers.
6409 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6410 registers.
6411 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6412 if feature is present.
6413 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6414 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6415 (AMD64_NUM_REGS): Adjust to new number of registers.
6416 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6417 registers supplied via XSTATE by AVX512 registers.
6418 (i386_linux_read_description): Add case for AVX512.
6419 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6420 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6421 (i386_linux_core_read_description): Add case for AVX512.
6422 (i386_linux_init_abi): Install supported register note section
6423 for AVX512.
6424 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6425 AVX512.
6426 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6427 registers to be number of zmm7h + 1.
6428 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6429 * i386-tdep.c: Include features/i386/i386-avx512.c.
6430 (i386_zmm_names): Add ZMM pseudo register names array.
6431 (i386_zmmh_names): Add ZMM raw register names array.
6432 (i386_k_names): Add K raw register names array.
6433 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6434 registers. AVX512 has 16 more ZMM registers than there are YMM
6435 registers.
6436 (i386_zmmh_regnum_p): Add function to look up register number of
6437 ZMM raw registers.
6438 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6439 (i386_k_regnum_p): Likewise for K raw registers.
6440 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6441 registers added by AVX512.
6442 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6443 registers added by AVX512.
6444 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6445 added by AVX512.
6446 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6447 (i386_pseudo_register_name): Add ZMM pseudo registers.
6448 (i386_zmm_type): Construct and return vector registers type for ZMM
6449 registers.
6450 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6451 ZMM0-31 pseudo registers and K registers.
6452 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6453 and YMM16-31 registers from register cache.
6454 (i386_pseudo_register_write): Add code to write K, ZMM and
6455 YMM16-31 registers.
6456 (i386_register_reggroup_p): Add code to include/exclude AVX512
6457 registers in/from respective register groups.
6458 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6459 registers if feature is present in xcr0.
6460 (i386_gdbarch_init): Add code to initialize AVX512 feature
6461 variables in tdep structure, wire in pseudo registers and call
6462 initialize_tdesc_i386_avx512.
6463 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6464 variables.
6465 (i386_regnum): Add AVX512 registers.
6466 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6467 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6468 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6469 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6470 512 bits wide.
6471 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6472 (i386_ymm_avx512_regnum_p): Likewise.
6473 (i386_k_regnum_p): Likewise.
6474 (i386_zmm_regnum_p): Likewise.
6475 (i386_zmmh_regnum_p): Likewise.
6476 * i387-tdep.c : Update year in copyright notice.
6477 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6478 XSAVE buffer.
6479 (XSAVE_YMM_AVX512_ADDR): New macro.
6480 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6481 XSAVE buffer.
6482 (XSAVE_XMM_AVX512_ADDR): New macro.
6483 (xsave_avx512_k_offset): New table for K register offsets in
6484 XSAVE buffer.
6485 (XSAVE_AVX512_K_ADDR): New macro.
6486 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6487 in XSAVE buffer.
6488 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6489 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6490 buffer.
6491 (i387_collect_xsave): Add code to collect AVX512 registers from
6492 XSAVE buffer.
6493 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6494 of XMM16-31 registers.
6495 (I387_NUM_K_REGS): New define for number of K registers.
6496 (I387_K0_REGNUM): New define for K0 register number.
6497 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6498 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6499 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6500 registers.
6501 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6502 (I387_XMM16_REGNUM): New define for XMM16 register number.
6503 (I387_YMM0_REGNUM): New define for YMM0 register number.
6504 (I387_KEND_REGNUM): New define for last K register number.
6505 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6506 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6507 number.
6508 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6509 number.
6510 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6511 size.
6512 * features/Makefile: Add AVX512 related files.
6513 * features/i386/32bit-avx512.xml: New file.
6514 * features/i386/64bit-avx512.xml: Likewise.
6515 * features/i386/amd64-avx512-linux.c: Likewise.
6516 * features/i386/amd64-avx512-linux.xml: Likewise.
6517 * features/i386/amd64-avx512.c: Likewise.
6518 * features/i386/amd64-avx512.xml: Likewise.
6519 * features/i386/i386-avx512-linux.c: Likewise.
6520 * features/i386/i386-avx512-linux.xml: Likewise.
6521 * features/i386/i386-avx512.c: Likewise.
6522 * features/i386/i386-avx512.xml: Likewise.
6523 * features/i386/x32-avx512-linux.c: Likewise.
6524 * features/i386/x32-avx512-linux.xml: Likewise.
6525 * features/i386/x32-avx512.c: Likewise.
6526 * features/i386/x32-avx512.xml: Likewise.
6527 * regformats/i386/amd64-avx512-linux.dat: New file.
6528 * regformats/i386/amd64-avx512.dat: Likewise.
6529 * regformats/i386/i386-avx512-linux.dat: Likewise.
6530 * regformats/i386/i386-avx512.dat: Likewise.
6531 * regformats/i386/x32-avx512-linux.dat: Likewise.
6532 * regformats/i386/x32-avx512.dat: Likewise.
6533 * NEWS: Add note about new support for AVX512.
6534
6535
08351840
PA
65362014-04-23 Pedro Alves <palves@redhat.com>
6537
6538 * breakpoint.c (insert_bp_location): Tolerate errors if the
6539 breakpoint is set in a user-loaded objfile.
6540 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6541 location is marked shlib_disabled. If the breakpoint is set in a
6542 user-loaded objfile is a GDB-side memory breakpoint, validate it
6543 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6544 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6545 flag.
6546 * mem-break.c (memory_validate_breakpoint): New function.
6547 * objfiles.c (userloaded_objfile_contains_address_p): New
6548 function.
6549 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6550 * target.h (memory_validate_breakpoint): New declaration.
6551
076855f9
PA
65522014-04-23 Pedro Alves <palves@redhat.com>
6553
6554 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6555 the breakpoint is set in a shared library, only suppress
6556 errors for software breakpoints, not hardware breakpoints.
6557
483805cf
PA
65582014-04-22 Pedro Alves <palves@redhat.com>
6559
6560 * infrun.c (schedlock_applies): New function, factored out from
6561 find_thread_needs_step_over.
6562 (find_thread_needs_step_over): Use it.
6563 (switch_back_to_stepped_thread): Always clear trap_expected if the
6564 step over is finished. Return early if scheduler locking applies.
6565 Look for the stepping thread and a potential step-over thread with
6566 a single loop.
6567 (currently_stepping_or_nexting_callback): Delete.
6568
a75fef0e
NC
65692014-04-22 Nick Clifton <nickc@redhat.com>
6570
6571 * NEWS: Mention that ARM sim now supports tracing.
6572
48b6e87e
YQ
65732014-04-22 Yao Qi <yao@codesourcery.com>
6574
6575 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6576 to ...
6577 * tracefile.c (tracefile_fetch_registers): ... it. New
6578 function.
6579 * tracefile.h (tracefile_fetch_registers): Declare.
6580 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6581 tracefile_fetch_registers.
6582
17617f2d
EZ
65832014-04-19 Eli Zaretskii <eliz@gnu.org>
6584
6585 PR gdb/14018
6586 * windows-nat.c (thread_rec): Don't display a warning when
6587 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6588 fails for any reason, set th->suspended to -1, so that we don't
6589 try to resume such a thread. Also, don't return NULL in these
6590 cases, to avoid completely ruin the session due to "PC register is
6591 not available" error.
6592 (do_windows_fetch_inferior_registers): Check errors in
6593 GetThreadContext call.
6594 (windows_continue): Accept an additional argument KILLED; if not
6595 zero, ignore errors in the SetThreadContext call, since the
6596 inferior was killed and is shutting down.
6597 (windows_resume, get_windows_debug_event)
6598 (windows_create_inferior, windows_mourn_inferior)
6599 (windows_kill_inferior): All callers of windows_continue changed
6600 to adjust to its new calling sequence.
6601
5723a6fd
YQ
66022014-04-19 Yao Qi <yao@codesourcery.com>
6603
6604 * ctf.c (ctf_open): Call post_create_inferior.
6605
614d5099
YQ
66062014-04-19 Yao Qi <yao@codesourcery.com>
6607
6608 * ctf.c (handle_id): New static variable.
6609 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6610 value. Get the declaration of event "register" and get length
6611 of field "contents".
6612
dac3e710
YQ
66132014-04-19 Yao Qi <yao@codesourcery.com>
6614
6615 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6616
2bca57ba
SC
66172014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6618
6619 * valops.c (oload_method_static): Remove unnecessary argument
6620 METHOD. Update all callers.
6621
51d48146
PA
66222014-04-18 Pedro alves <palves@redhat.com>
6623 Tom Tromey <tromey@redhat.com>
6624
6625 PR backtrace/15558
6626 * frame.c (get_prev_frame_1): Rename to ...
6627 (get_prev_frame_always): ... this, and make extern. Adjust.
6628 (skip_artificial_frames): Use get_prev_frame_always.
6629 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6630 (get_frame_unwind_stop_reason): Adjust to rename.
6631 * frame.h (get_prev_frame_always): Declare.
6632 * inline-frame.c: Include frame.h.
6633 (inline_frame_this_id): Use get_prev_frame_always.
6634
1bdad2e0
TG
66352014-04-18 Tristan Gingold <gingold@adacore.com>
6636
6637 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6638 code by using bfd_mach_o_get_base_address.
6639
7ce16bd4
UW
66402014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6641
6642 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6643 (spu_ax_pseudo_register_collect): New function.
6644 (spu_ax_pseudo_register_push_stack): Likewise.
6645 (spu_dwarf_reg_to_regnum): Likewise.
6646 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6647
2ed3c037
UW
66482014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6649
6650 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6651 Replace FRAME argument with FRAME_ID.
6652 * gdbarch.c, gdbarch.h: Regenerate.
6653 * findvar.c (default_value_from_register): Add GDBARCH argument;
6654 replace FRAME by FRAME_ID. No longer call get_frame_id.
6655 (value_from_register): Update call to gdbarch_value_from_register.
6656 * value.h (default_value_from_register): Update prototype.
6657 * s390-linux-tdep.c (s390_value_from_register): Update interface
6658 and call to default_value_from_register.
6659 * spu-tdep.c (spu_value_from_register): Likewise.
6660
6661 * findvar.c (address_from_register): Remove TYPE argument.
6662 Do not call value_from_register; use gdbarch_value_from_register
6663 with null_frame_id instead.
6664 * value.h (address_from_register): Update prototype.
6665 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6666 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6667 address_from_register interface change.
6668
71e50e83
YQ
66692014-04-17 Yao Qi <yao@codesourcery.com>
6670
6671 * gdbtypes.h: Update comments to link to types and macros'
6672 definitions.
6673
7a23c549
SC
66742014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6675
6676 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6677
22869d73
KS
66782014-04-16 Keith Seitz <keiths@redhat.com>
6679
6680 PR gdb/15827
6681 * dwarf2read.c (skip_one_die): Check that all relative-offset
6682 sibling DIEs fall within range of the current reader's buffer.
6683 (read_partial_die): Likewise.
6684
c4f87ca6
KS
66852014-04-16 Keith Seitz <keiths@redhat.com>
6686
6687 PR c++/16597
6688 * cp-namespace.c (lookup_symbol_file): If the type name of
6689 `this' is NULL, return immediately.
6690
b50c8614
KS
66912014-04-14 Keith Seitz <keiths@redhat.com>
6692
6693 PR c++/16253
6694 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6695 from symbol_matches_domain in symtab.c. All local callers
6696 of symbol_matches_domain updated.
6697 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6698 search STRUCT_DOMAIN.
6699 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6700 independently. standard_lookup will do that automatically.
6701 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6702 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6703 (cp_lookup_symbol_in_namespace): Likewise.
6704 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6705 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6706 may return a STRUCT_DOMAIN match.
6707 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6708 * cp-support.c: Include language.h.
6709 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6710 VAR_DOMAIN.
6711 * psymtab.c (match_partial_symbol): Compare the requested
6712 domain with the symbol's domain directly.
6713 (lookup_partial_symbol): Likewise.
6714 * symtab.c (lookup_symbol_in_language): Explain when/why
6715 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6716 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6717 appropriate languages.
6718 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6719 and moved to ada-lang.c
6720 (lookup_block_symbol): Explain that this function only returns
6721 symbol matching the requested DOMAIN.
6722 Compare the requested domain with the symbol's domain directly.
6723 (iterate_over_symbols): Compare the requested domain with the
6724 symbol's domain directly.
6725 * symtab.h (symbol_matches_domain): Remove.
6726
3d567982
TT
67272014-04-14 Tom Tromey <tromey@redhat.com>
6728
6729 PR c++/15246:
6730 * c-exp.y (type_aggregate_p): New function.
6731 (qualified_name, classify_inner_name): Use it.
6732 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6733 and TYPE_TARGET_TYPE of an enum type.
6734 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6735 an enum type.
6736 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6737 handle TYPE_DECLARED_CLASS.
6738 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6739 types.
6740 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6741 * valops.c (enum_constant_from_type): New function.
6742 (value_aggregate_elt): Use it.
6743 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6744 TYPE_CODE_ENUM.
6745
c848d642
TT
67462014-04-14 Tom Tromey <tromey@redhat.com>
6747
6748 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6749 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6750 const.
6751 * value.h (value_aggregate_elt): Update.
6752
0626fc76
TT
67532014-04-14 Tom Tromey <tromey@redhat.com>
6754
6755 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6756
5ecaaa66
SA
67572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6758
6759 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6760 (evaluate_subexp_standard): Pass noside argument.
6761 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6762 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6763 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6764 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6765 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6766
1612e0c0
SA
67672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6768
6769 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6770 points to a constant blob.
6771
c451ebe5
SA
67722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6773
6774 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6775 property and store it as the high bound and flag the range accordingly.
6776 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6777 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6778 * gdbtypes.h (enum range_flags): New enum.
6779 (struct range_bounds): Add flags member.
6780
1d42e4c4
SA
67812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6782
6783 * c-typeprint.c (c_type_print_varspec_suffix): Added
6784 check for not yet resolved high bound. If unresolved, print
6785 "variable length" string to the console instead of random
6786 length.
6787
9f1f738a
SA
67882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6789
6790 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6791 value.
6792 (ada_template_to_fixed_record_type_1): Likewise.
6793 (ada_to_fixed_type_1): Likewise.
6794 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6795 (cp_print_value): Likewise.
6796 * d-valprint.c (dynamic_array_type): Likewise.
6797 * findvar.c (address_of_variable): Likewise.
6798 * jv-valprint.c (java_value_print): Likewise.
6799 * valops.c (value_ind): Likewise.
6800 * value.c (coerce_ref): Likewise.
6801
3c8452d4
SA
68022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6803
6804 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6805 value and retrieve the dynamic type size.
6806
4ad88275
SA
68072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6808
6809 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6810 passed to sizeof is dynamic evaluate the argument to compute the length.
6811
80180f79
SA
68122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6813 Joel Brobecker <brobecker@adacore.com>
6814
6815 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6816 (dwarf2_evaluate_property): New function.
6817 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6818 * dwarf2read.c (attr_to_dynamic_prop): New function.
6819 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6820 attribute.
6821 * gdbtypes.c: Include dwarf2loc.h.
6822 (is_dynamic_type): New function.
6823 (resolve_dynamic_type): New function.
6824 (resolve_dynamic_bounds): New function.
6825 (get_type_length): New function.
6826 (check_typedef): Use get_type_length to compute type length.
6827 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6828 (TYPE_LOW_BOUND_KIND): New macro.
6829 (is_dynamic_type): New function prototype.
6830 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6831 to resolve dynamic properties of the type. Update comment.
6832 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6833
a1556843
RH
68342014-04-14 Richard Henderson <rth@redhat.com>
6835
6836 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6837
0be03e84
DE
68382014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6839 Doug Evans <xdje42@gmail.com>
6840
6841 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6842 dereference TYPE_CODE_REF values.
6843
6b662e19
JB
68442014-04-11 Joel Brobecker <brobecker@adacore.com>
6845
6846 Revert the following changes due to regressions:
6847
6848 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6849 (dwarf2_evaluate_property): New function.
6850 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6851 * dwarf2read.c (attr_to_dynamic_prop): New function.
6852 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6853 attribute.
6854 * gdbtypes.c: Include dwarf2loc.h.
6855 (is_dynamic_type): New function.
6856 (resolve_dynamic_type): New function.
6857 (resolve_dynamic_bounds): New function.
6858 (get_type_length): New function.
6859 (check_typedef): Use get_type_length to compute type length.
6860 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6861 (TYPE_LOW_BOUND_KIND): New macro.
6862 (is_dynamic_type): New function prototype.
6863 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6864 to resolve dynamic properties of the type. Update comment.
6865 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6866
6867 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6868 passed to sizeof is dynamic evaluate the argument to compute the length.
6869
6870 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6871 value and retrieve the dynamic type size.
6872
6873 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6874 (ada_template_to_fixed_record_type_1): Likewise.
6875 (ada_to_fixed_type_1): Likewise.
6876 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6877 (cp_print_value): Likewise.
6878 * d-valprint.c (dynamic_array_type): Likewise.
6879 * eval.c (evaluate_subexp_with_coercion): Likewise.
6880 * findvar.c (address_of_variable): Likewise.
6881 * jv-valprint.c (java_value_print): Likewise.
6882 * valops.c (value_ind): Likewise.
6883 * value.c (coerce_ref): Likewise.
6884
6885 * c-typeprint.c (c_type_print_varspec_suffix): Added
6886 check for not yet resolved high bound. If unresolved, print
6887 "variable length" string to the console instead of random
6888 length.
6889
6890 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6891 property and store it as the high bound and flag the range accordingly.
6892 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6893 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6894 * gdbtypes.h (enum range_flags): New enum.
6895 (struct range_bounds): Add flags member.
6896
6897 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6898 points to a constant blob.
6899
6900 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6901 (evaluate_subexp_standard): Pass noside argument.
6902 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6903 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6904 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6905 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6906 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6907
245a5f0b
KS
69082014-04-11 Keith Seitz <keiths@redhat.com>
6909
6910 PR c++/16675
6911 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6912 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6913 reference types.
6914
3bce8237
SA
69152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6916
6917 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6918 (evaluate_subexp_standard): Pass noside argument.
6919 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6920 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6921 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6922 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6923 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6924
92b09522
SA
69252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6926
6927 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6928 points to a constant blob.
6929
e1969afb
SA
69302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6931
6932 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6933 property and store it as the high bound and flag the range accordingly.
6934 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6935 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6936 * gdbtypes.h (enum range_flags): New enum.
6937 (struct range_bounds): Add flags member.
6938
b86138fb
SA
69392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6940
6941 * c-typeprint.c (c_type_print_varspec_suffix): Added
6942 check for not yet resolved high bound. If unresolved, print
6943 "variable length" string to the console instead of random
6944 length.
6945
bcd629a4
SA
69462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6947
6948 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6949 (ada_template_to_fixed_record_type_1): Likewise.
6950 (ada_to_fixed_type_1): Likewise.
6951 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6952 (cp_print_value): Likewise.
6953 * d-valprint.c (dynamic_array_type): Likewise.
6954 * eval.c (evaluate_subexp_with_coercion): Likewise.
6955 * findvar.c (address_of_variable): Likewise.
6956 * jv-valprint.c (java_value_print): Likewise.
6957 * valops.c (value_ind): Likewise.
6958 * value.c (coerce_ref): Likewise.
6959
04b19544
SA
69602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6961
6962 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6963 value and retrieve the dynamic type size.
6964
26cb189f
SA
69652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6966
6967 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6968 passed to sizeof is dynamic evaluate the argument to compute the length.
6969
37c1ab67
SA
69702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6971
6972 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6973 (dwarf2_evaluate_property): New function.
6974 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6975 * dwarf2read.c (attr_to_dynamic_prop): New function.
6976 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6977 attribute.
6978 * gdbtypes.c: Include dwarf2loc.h.
6979 (is_dynamic_type): New function.
6980 (resolve_dynamic_type): New function.
6981 (resolve_dynamic_bounds): New function.
6982 (get_type_length): New function.
6983 (check_typedef): Use get_type_length to compute type length.
6984 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6985 (TYPE_LOW_BOUND_KIND): New macro.
6986 (is_dynamic_type): New function prototype.
6987 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6988 to resolve dynamic properties of the type. Update comment.
6989 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6990
729efb13
SA
69912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6992
6993 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6994 declaring high/low bounds and change uses accordingly. Call
6995 create_range_type instead of create_static_range_type.
6996 * gdbtypes.c (create_range_type): New function.
6997 (create_range_type): Convert bounds into struct bound_prop and pass
6998 them to create_range_type.
6999 * gdbtypes.h (struct bound_prop): New struct.
7000 (create_range_type): New function prototype.
7001 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7002 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7003 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7004 part of the bound.
7005 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7006
0c9c3474
SA
70072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7008
7009 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7010 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7011 * ada-lang.c: All uses of create_range_type updated.
7012 * coffread.c: All uses of create_range_type updated.
7013 * dwarf2read.c: All uses of create_range_type updated.
7014 * f-exp.y: All uses of create_range_type updated.
7015 * m2-valprint.c: All uses of create_range_type updated.
7016 * mdebugread.c: All uses of create_range_type updated.
7017 * stabsread.c: All uses of create_range_type updated.
7018 * valops.c: All uses of create_range_type updated.
7019 * valprint.c: All uses of create_range_type updated.
7020
9d497a19
PA
70212014-04-10 Pedro Alves <palves@redhat.com>
7022
7023 * breakpoint.c (single_step_breakpoints)
7024 (single_step_gdbarch): Move up in the file.
7025 (one_breakpoint_xfer_memory): New function, factored out from ...
7026 (breakpoint_xfer_memory): ... here. Also process single-step
7027 breakpoints.
7028
15a9128a
TG
70292014-04-09 Tristan Gingold <gingold@adacore.com>
7030
7031 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7032 comments.
7033 (darwin_decode_exception_message): Free port only after use.
7034
9c97a070
PL
70352014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7036
7037 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7038 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7039 when setting the size of call_length.
7040
7af389b8
SC
70412014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7042
7043 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7044 dereference TYPE_CODE_REF values.
7045
86ad98c3
JB
70462014-04-07 Joel Brobecker <brobecker@adacore.com>
7047
7048 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7049 end of warning message.
7050
b0aeadb3
DE
70512014-04-03 Doug Evans <dje@google.com>
7052
7053 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7054 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7055
5979d6b6
AM
70562014-04-02 Alan Modra <amodra@gmail.com>
7057
7058 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7059 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7060 (struct symbol_file_add_from_memory_args): Add size field.
7061 (find_vdso_size): New function.
7062 (add_vsyscall_page): Attempt to find vdso size.
7063
0d60c288
DE
70642014-04-01 Doug Evans <dje@google.com>
7065
7066 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7067
a41f2563
TG
70682014-04-01 Tristan Gingold <gingold@adacore.com>
7069
7070 * darwin-nat.c (darwin_encode_reply): Add prototype.
7071 (darwin_decode_exception_message): Reply to unknown inferiors.
7072 (darwin_decode_message): Handle message by id. Ignore message
7073 to unknown inferior.
7074 (darwin_wait): Discard unknown messages, add debug trace.
7075
11a865c8
DE
70762014-03-31 Doug Evans <dje@google.com>
7077
7078 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7079 comp_dir_string.
7080
770e7fc7
DE
70812014-03-31 Doug Evans <dje@google.com>
7082
7083 New option "set print symbol-loading".
7084 * NEWS: Mention it.
7085 * solib.c (solib_read_symbols): Only print symbol loading messages
7086 if requested.
7087 (solib_add): If symbol loading is in "brief" mode, notify user
7088 symbols are being loaded.
7089 (reload_shared_libraries_1): Ditto.
7090 * symfile.c (print_symbol_loading_off): New static global.
7091 (print_symbol_loading_brief): New static global.
7092 (print_symbol_loading_full): New static global.
7093 (print_symbol_loading_enums): New static global.
7094 (print_symbol_loading): New static global.
7095 (print_symbol_loading_p): New function.
7096 (symbol_file_add_with_addrs): Only print symbol loading messages
7097 if requested.
7098 (_initialize_symfile): Register "print symbol-loading" set/show
7099 command.
7100 * symfile.h (print_symbol_loading_p): Declare.
7101
c32c64b7
DE
71022014-03-30 Doug Evans <xdje42@gmail.com>
7103
7104 * infrun.c (set_last_target_status): New function.
7105 (handle_inferior_event): Call it.
7106
7c0bc051
DE
71072014-03-30 Doug Evans <xdje42@gmail.com>
7108
7109 * inferior.h (enum stop_kind): Improve comment.
7110
8776cfe9
JB
71112014-03-28 Joel Brobecker <brobecker@adacore.com>
7112
7113 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7114 a reference, strip the reference layer before calling
7115 the lang_ops value_has_mutated callback.
7116
410a0ff2
SDJ
71172014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7118
7119 Remove some globals from our parser.
7120 * language.c (unk_lang_parser): Add "struct parser_state"
7121 argument.
7122 * language.h (struct language_defn) <la_parser>: Likewise.
7123 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7124 (initialize_expout): Add "struct parser_state" argument.
7125 Rewrite function to use the parser state.
7126 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7127 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7128 write_exp_elt_longcst, write_exp_elt_dblcst,
7129 write_exp_elt_decfloatcst, write_exp_elt_type,
7130 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7131 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7132 write_dollar_variable): Likewise.
7133 (parse_exp_in_context_1): Use parser state.
7134 (insert_type_address_space): Add "struct parser_state" argument.
7135 Use parser state.
7136 (increase_expout_size): New function.
7137 * parser-defs.h: Forward declare "struct language_defn" and
7138 "struct parser_state".
7139 (expout, expout_size, expout_ptr): Remove extern declarations.
7140 (parse_gdbarch, parse_language): Rewrite macro declarations to
7141 accept the parser state.
7142 (struct parser_state): New struct.
7143 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7144 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7145 write_exp_elt_decfloatcst, write_exp_elt_type,
7146 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7147 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7148 write_exp_msymbol, write_dollar_variable,
7149 mark_struct_expression, insert_type_address_space): Add "struct
7150 parser_state" argument.
7151 (increase_expout_size): New function.
7152 * utils.c (do_clear_parser_state): New function.
7153 (make_cleanup_clear_parser_state): Likewise.
7154 * utils.h (make_cleanup_clear_parser_state): New function
7155 prototype.
7156 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7157 Update calls to write_exp* in order to pass the parser state.
7158 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7159 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7160 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7161 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7162 * stap-probe.c (stap_parse_register_operand): Likewise.
7163 (stap_parse_single_operand): Likewise.
7164 (stap_parse_argument_1): Likewise.
7165 (stap_parse_argument): Use parser state.
7166 * stap-probe.h: Include "parser-defs.h".
7167 (struct stap_parse_info) <pstate>: New field.
7168 * c-exp.y (parse_type): Rewrite to use parser state.
7169 (yyparse): Redefine to c_parse_internal.
7170 (pstate): New global variable.
7171 (parse_number): Add "struct parser_state" argument.
7172 (write_destructor_name): Likewise.
7173 (type_exp): Update calls to write_exp* and similars in order to
7174 use parser state.
7175 (exp1, exp, variable, qualified_name, space_identifier,
7176 typename, typebase): Likewise.
7177 (write_destructor_name, parse_number, lex_one_token,
7178 classify_name, classify_inner_name, c_parse): Add "struct
7179 parser_state" argument. Update function to use parser state.
7180 * c-lang.h: Forward declare "struct parser_state".
7181 (c_parse): Add "struct parser_state" argument.
7182 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7183 (yyparse): Redefine macro to ada_parse_internal.
7184 (pstate): New variable.
7185 (write_int, write_object_renaming, write_var_or_type,
7186 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7187 type_int, type_long, type_long_long, type_float, type_double,
7188 type_long_double, type_char, type_boolean, type_system_address):
7189 Add "struct parser_state" argument.
7190 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7191 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7192 var_or_type, aggregate, aggregate_component_list,
7193 positional_list, others, component_group,
7194 component_associations): Update calls to write_exp* and similar
7195 functions in order to use parser state.
7196 (ada_parse, write_var_from_sym, write_int,
7197 write_exp_op_with_string, write_object_renaming,
7198 find_primitive_type, write_selectors, write_ambiguous_var,
7199 write_var_or_type, write_name_assoc, type_int, type_long,
7200 type_long_long, type_float, type_double, type_long_double,
7201 type_char, type_boolean, type_system_address): Add "struct
7202 parser_state" argument. Adjust function to use parser state.
7203 * ada-lang.c (parse): Likewise.
7204 * ada-lang.h: Forward declare "struct parser_state".
7205 (ada_parse): Add "struct parser_state" argument.
7206 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7207 calls to both functions.
7208 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7209 parser state.
7210 (yyparse): Redefine macro to f_parse_internal.
7211 (pstate): New variable.
7212 (parse_number): Add "struct parser_state" argument.
7213 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7214 and similars in order to use parser state.
7215 (parse_number): Adjust code to use parser state.
7216 (yylex): Likewise.
7217 (f_parse): New function.
7218 * f-lang.h: Forward declare "struct parser_state".
7219 (f_parse): Add "struct parser_state" argument.
7220 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7221 parser state.
7222 (yyparse): Redefine macro for java_parse_internal.
7223 (pstate): New variable.
7224 (push_expression_name, push_expression_name, insert_exp): Add
7225 "struct parser_state" argument.
7226 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7227 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7228 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7229 PostIncrementExpression, PostDecrementExpression,
7230 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7231 UnaryExpressionNotPlusMinus, CastExpression,
7232 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7233 RelationalExpression, EqualityExpression, AndExpression,
7234 ExclusiveOrExpression, InclusiveOrExpression,
7235 ConditionalAndExpression, ConditionalOrExpression,
7236 ConditionalExpression, Assignment, LeftHandSide): Update
7237 calls to write_exp* and similars in order to use parser state.
7238 (parse_number): Ajust code to use parser state.
7239 (yylex): Likewise.
7240 (java_parse): New function.
7241 (push_variable): Add "struct parser_state" argument. Adjust
7242 code to user parser state.
7243 (push_fieldnames, push_qualified_expression_name,
7244 push_expression_name, insert_exp): Likewise.
7245 * jv-lang.h: Forward declare "struct parser_state".
7246 (java_parse): Add "struct parser_state" argument.
7247 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7248 parser state.
7249 (yyparse): Redefine macro to m2_parse_internal.
7250 (pstate): New variable.
7251 (type_exp, exp, fblock, variable, type): Update calls to
7252 write_exp* and similars to use parser state.
7253 (yylex): Likewise.
7254 (m2_parse): New function.
7255 * m2-lang.h: Forward declare "struct parser_state".
7256 (m2_parse): Add "struct parser_state" argument.
7257 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7258 * objc-lang.h: Forward declare "struct parser_state".
7259 (end_msglist): Add "struct parser_state" argument.
7260 * p-exp.y (parse_type): Rewrite macro to use parser state.
7261 (yyparse): Redefine macro to pascal_parse_internal.
7262 (pstate): New variable.
7263 (parse_number): Add "struct parser_state" argument.
7264 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7265 write_exp* and similars in order to use parser state.
7266 (parse_number, yylex): Adjust code to use parser state.
7267 (pascal_parse): New function.
7268 * p-lang.h: Forward declare "struct parser_state".
7269 (pascal_parse): Add "struct parser_state" argument.
7270 * go-exp.y (parse_type): Rewrite macro to use parser state.
7271 (yyparse): Redefine macro to go_parse_internal.
7272 (pstate): New variable.
7273 (parse_number): Add "struct parser_state" argument.
7274 (type_exp, exp1, exp, variable, type): Update calls to
7275 write_exp* and similars in order to use parser state.
7276 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7277 to use parser state.
7278 (go_parse): Likewise.
7279 * go-lang.h: Forward declare "struct parser_state".
7280 (go_parse): Add "struct parser_state" argument.
7281
342587c4
DE
72822014-03-27 Doug Evans <dje@google.com>
7283
7284 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7285
33e80786
DE
72862014-03-27 Doug Evans <dje@google.com>
7287
7288 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7289 Remove argument abbrev_section. All callers updated.
7290
1dbab08b
DE
72912014-03-27 Doug Evans <dje@google.com>
7292
7293 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7294 addr_base, ranges_base.
7295
318d3177
KS
72962014-03-26 Keith Seitz <keiths@redhat.com>
7297
7298 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7299 types, not VAR_DOMAIN.
7300
1e54db15
SL
73012014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7302
7303 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7304 "ra" registers.
7305 * features/nios2-linux.c: Regenerated.
7306 * features/nios2.c: Regenerated.
7307
d3839ede
PA
73082014-03-25 Pedro Alves <palves@redhat.com>
7309
7310 * cli/cli-script.c (script_from_file): Force the interpreter to
7311 sync mode.
7312
7588d2ec
PL
73132014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7314
7315 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7316 small stack allocation.
7317
a6290449
TG
73182014-03-24 Tristan Gingold <gingold@adacore.com>
7319
7320 * darwin-nat.c (exc_server): Remove unused prototype.
7321 (darwin_dump_message): Correctly display data on x86_64.
7322 (darwin_encode_reply): Fix style.
7323 Add comments and fix indentation.
7324
31ae9d24 73252014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7326
7327 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7328
6339bfc4
DE
73292014-03-22 Doug Evans <xdje42@gmail.com>
7330
7331 * infcmd.c: Whitespace fixes.
7332 (interrupt_command): Merge two function comments into one.
7333
0a07590b
DE
73342014-03-22 Doug Evans <xdje42@gmail.com>
7335
7336 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7337 All uses updated.
7338
b55fbac4
YQ
73392014-03-22 Yao Qi <yao@codesourcery.com>
7340
7341 * remote.c (target_read_live_memory): Remove.
7342 (memory_xfer_live_readonly_partial): Rename it to
7343 remote_xfer_live_readonly_partial. Remove argument 'object'.
7344 All callers updated. Call remote_read_bytes_1
7345 instead of target_read_live_memory.
7346 * tracepoint.c (set_traceframe_number): Remove.
7347 (make_cleanup_restore_traceframe_number): Likewise .
7348 * tracepoint.h (set_traceframe_number): Remove declaration.
7349 (make_cleanup_restore_traceframe_number): Likewise.
7350
9217e74e
YQ
73512014-03-22 Yao Qi <yao@codesourcery.com>
7352
7353 * remote.c (remote_read_bytes): Move code on reading from the
7354 remote stub to ...
7355 (remote_read_bytes_1): ... here. New function.
7356
8acf9577
YQ
73572014-03-22 Yao Qi <yao@codesourcery.com>
7358
7359 * ctf.c (ctf_xfer_partial): Check the return value of
7360 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7361 return TARGET_XFER_UNAVAILABLE.
7362 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7363 * target.c (target_read_live_memory): Move it to remote.c.
7364 (memory_xfer_live_readonly_partial): Likewise.
7365 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7366 * remote.c (target_read_live_memory): Moved from target.c.
7367 (memory_xfer_live_readonly_partial): Likewise.
7368 (remote_read_bytes): Factored out from
7369 memory_xfer_partial_1.
7370
feef67ab
DE
73712014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7372
7373 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7374 NULL pointer.
7375
b65dc60b
PA
73762014-03-21 Pedro Alves <palves@redhat.com>
7377
7378 * infrun.c (normal_stop): Extend comment.
7379
b4ab256d
HZ
73802014-03-21 Hui Zhu <hui@codesourcery.com>
7381 Pedro Alves <palves@redhat.com>
7382
7383 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7384 static buffer.
7385 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7386 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7387 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7388
deba7593
MR
73892014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7390
7391 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7392 `z' formatted output modifier.
7393
1bff71c3
SDJ
73942014-03-20 Tom Tromey <tromey@redhat.com>
7395 Sergio Durigan Junior <sergiodj@redhat.com>
7396
7397 * probe.c (parse_probes): Turn assert into an ordinary error.
7398 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7399 exceptions when parsing probes. Rearrange the code for clarity.
7400
90e28950
TT
74012014-03-20 Tom Tromey <tromey@redhat.com>
7402
7403 PR gdb/14135
7404 * top.c (execute_command): Only dispatch events if the command
7405 started the target.
7406
beb460e8
PA
74072014-03-20 Tom Tromey <tromey@redhat.com>
7408
7409 PR cli/15718
7410 * infcall.c: Include event-top.h.
7411 (run_inferior_call): Call async_disable_stdin if needed.
7412
99619bea
PA
74132014-03-20 Pedro Alves <palves@redhat.com>
7414
7415 * infrun.c (prepare_to_proceed): Delete.
7416 (thread_still_needs_step_over): New function.
7417 (find_thread_needs_step_over): New function.
7418 (proceed): If the current thread needs a step-over, set its
7419 steping_over_breakpoint flag. Adjust to use
7420 find_thread_needs_step_over instead of prepare_to_proceed.
7421 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7422 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7423 breakpoint.
7424 (switch_back_to_stepped_thread): Step over breakpoints of all
7425 threads not the stepping thread, before switching back to the
7426 stepping thread.
7427
2adfaa28
PA
74282014-03-20 Pedro Alves <palves@redhat.com>
7429
7430 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7431 extern.
7432 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7433 * infrun.c (saved_singlestep_ptid)
7434 (stepping_past_singlestep_breakpoint): Delete.
7435 (resume): Remove stepping_past_singlestep_breakpoint handling.
7436 (proceed): Store the prev_pc of the stepping thread too.
7437 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7438 singlestep_pc.
7439 (enum infwait_states): Delete infwait_thread_hop_state.
7440 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7441 field.
7442 (handle_inferior_event): Adjust.
7443 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7444 handling and the thread-hop code. Before removing single-step
7445 breakpoints, check whether the thread hit a single-step breakpoint
7446 of another thread. If it did, the trap is not a random signal.
7447 (switch_back_to_stepped_thread): If the event thread hit a
7448 single-step breakpoint, unblock it before switching to the
7449 stepping thread. Handle the case of the stepped thread having
7450 advanced already.
7451 (keep_going): Handle the case of the current thread moving past a
7452 single-step breakpoint.
7453
31e77af2
PA
74542014-03-20 Pedro Alves <palves@redhat.com>
7455
7456 PR breakpoints/7143
7457 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7458 are being stepped over.
7459 (breakpoint_address_match): Make extern.
7460 * breakpoint.h (breakpoint_address_match): New declaration.
7461 * inferior.h (stepping_past_instruction_at): New declaration.
7462 * infrun.c (struct step_over_info): New type.
7463 (step_over_info): New global.
7464 (set_step_over_info, clear_step_over_info)
7465 (stepping_past_instruction_at): New functions.
7466 (handle_inferior_event): Clear the step-over info when
7467 trap_expected is cleared.
7468 (resume): Remove now stale comment.
7469 (clear_proceed_status): Clear step-over info.
7470 (proceed): Adjust step-over handling to set or clear the step-over
7471 info instead of removing all breakpoints.
7472 (handle_signal_stop): When setting up a thread-hop, don't remove
7473 breakpoints here.
7474 (stop_stepping): Clear step-over info.
7475 (keep_going): Adjust step-over handling to set or clear step-over
7476 info and then always inserting breakpoints, instead of removing
7477 all breakpoints when stepping over one.
7478
b9f437de
PA
74792014-03-20 Pedro Alves <palves@redhat.com>
7480
7481 * infrun.c (previous_inferior_ptid): Adjust comment.
7482 (deferred_step_ptid): Delete.
7483 (infrun_thread_ptid_changed, prepare_to_proceed)
7484 (init_wait_for_inferior): Adjust.
7485 (handle_signal_stop): Delete deferred_step_ptid handling.
7486
06c868a8
JK
74872014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 PR gdb/15358
7490 * defs.h (sync_quit_force_run): New declaration.
7491 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7492 * event-top.c (async_sigterm_handler): New declaration.
7493 (async_sigterm_token): New variable.
7494 (async_init_signals): Create also async_sigterm_token.
7495 (async_sigterm_handler): New function.
7496 (sync_quit_force_run): New variable.
7497 (handle_sigterm): Replace quit_force call by other calls.
7498 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7499
dea80df0
MR
75002014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7501
7502 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7503 offset into SPE pseudo registers.
7504
0c7e1a46
PA
75052014-03-18 Pedro Alves <palves@redhat.com>
7506
7507 PR gdb/13860
7508 * inferior.h (print_stop_event): Declare.
7509 * infrun.c (print_stop_event): New, factored out from ...
7510 (normal_stop): ... this.
7511 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7512 of bpstat_print/print_stack_frame.
7513
9c1fcd01
TT
75142014-03-17 Tom Tromey <tromey@redhat.com>
7515
7516 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7517
11aa919a
PMR
75182014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7519
7520 * ada-lang.c (decode_constrained_packed_array): Perform a
7521 minimal coercion for reference with coerce_ref instead of
7522 ada_coerce_ref.
7523
d4ccb5e0
TG
75242014-03-17 Tristan Gingold <gingold@adacore.com>
7525
7526 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7527 (darwin_solib_create_inferior_hook): Emit a warning if version
7528 is unhandled.
7529
49840f2a
UW
75302014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7531
7532 * python/py-value.c (get_field_flag): Cast flag_name argument to
7533 PyObject_GetAttrString to support Python 2.4.
7534
ed4123e5
JK
75352014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7536
7537 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7538 (Global Maintainers): Remove Jan Kratochvil.
7539
d6b64346
PA
75402014-03-14 Pedro Alves <palves@redhat.com>
7541
7542 * inferior.h (terminal_ours_for_output): Rename to ...
7543 (child_terminal_ours_for_output): ... this.
7544 (terminal_save_ours): Rename to ...
7545 (child_terminal_save_ours): ... this.
7546 (terminal_ours): Rename to ...
7547 (child_terminal_ours): ... this.
7548 (terminal_inferior): Rename to ...
7549 (child_terminal_inferior): ... this.
7550 (terminal_init_inferior): Rename to ...
7551 (child_terminal_init_inferior): ... this.
7552 (terminal_init_inferior_with_pgrp): Rename to ...
7553 (child_terminal_init_inferior_with_pgrp): ... this.
7554 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7555 (child_terminal_init_with_pgrp): ... this.
7556 (terminal_save_ours): Rename to ...
7557 (child_terminal_save_ours): ... this.
7558 (terminal_init_inferior): Rename to ...
7559 (child_terminal_init): ... this. Adjust.
7560 (terminal_inferior): Rename to ...
7561 (child_terminal_inferior): ... this.
7562 (terminal_ours_for_output): Rename to ...
7563 (child_terminal_ours_for_output): ... this. Adjust.
7564 (terminal_ours): Rename to ...
7565 (child_terminal_ours): ... this.
7566 (terminal_ours_1): Rename to ...
7567 (child_terminal_ours_1): ... this. Adjust.
7568 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7569 * windows-nat.c (do_initial_windows_stuff): Adjust.
7570 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7571 (gnu_terminal_init): ... this. Adjust.
7572 (gnu_target): Adjust.
7573 * inf-child.c (inf_child_target): Adjust.
7574
5a1e8c7a
DE
75752014-03-13 Doug Evans <xdje42@gmail.com>
7576
7577 PR guile/16612
7578 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7579 new eq?-hashtab.
7580
350e1a76
DE
75812014-03-13 Doug Evans <xdje42@gmail.com>
7582
7583 * value.c (record_latest_value): Call release_value_or_incref
7584 instead of release_value.
7585
a69900ae
PA
75862014-03-13 Pedro Alves <palves@redhat.com>
7587
7588 * procfs.c (procfs_target): Don't override to_shortname,
7589 to_longname or to_doc.
7590
5db9f0bd
PA
75912014-03-13 Pedro Alves <palves@redhat.com>
7592
7593 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7594 Unix in user visible strings.
7595
5e3a2c38
SS
75962014-03-12 Stan Shebs <stan@codesourcery.com>
7597
7598 * gdbtypes.h: Annotate comments for Doxygen, add a page
7599 block comment with some general info.
7600
8bc2fe48
PA
76012014-03-12 Pedro Alves <palves@redhat.com>
7602
7603 * infcmd.c (prepare_execution_command): New function, factored out
7604 from several execution commands.
7605 (run_command_1, continue_command, step_1, jump_command)
7606 (signal_command, until_command, advance_command, finish_command)
7607 (attach_command): Use prepare_execution_command.
7608
638c5f49
OJ
76092014-03-12 Omair Javaid <omair.javaid@linaro.org>
7610
7611 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7612 (MAX_BPTS): Define.
7613 (MAX_WPTS): Define.
7614 (struct arm_linux_thread_points): Removed.
7615 (struct arm_linux_process_info): New.
7616 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7617 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7618 (arm_linux_find_breakpoints_by_tid): Removed.
7619 (struct arch_lwp_info): New.
7620 (arm_linux_find_process_pid): New functions.
7621 (arm_linux_add_process): New functions.
7622 (arm_linux_process_info_get): New functions.
7623 (arm_linux_forget_process): New function.
7624 (arm_linux_get_debug_reg_state): New function.
7625 (struct update_registers_data): New.
7626 (update_registers_callback): New function.
7627 (arm_linux_insert_hw_breakpoint1): Updated.
7628 (arm_linux_remove_hw_breakpoint1): Updated.
7629 (arm_linux_insert_hw_breakpoint): Updated.
7630 (arm_linux_remove_hw_breakpoint): Updated.
7631 (arm_linux_insert_watchpoint): Updated.
7632 (arm_linux_remove_watchpoint): Updated.
7633 (arm_linux_new_thread): Updated.
7634 (arm_linux_prepare_to_resume): New function.
7635 (arm_linux_new_fork): New function.
7636 (_initialize_arm_linux_nat): Updated.
7637
6d03af93
PA
76382014-03-12 Pedro Alves <palves@redhat.com>
7639
7640 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7641
b3ccfe11
TT
76422014-03-12 Tom Tromey <tromey@redhat.com>
7643
7644 * inf-child.c (return_zero): New function.
7645 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7646 * aix-thread.c (aix_thread_inferior_created): New function.
7647 (aix_thread_attach): Remove.
7648 (init_aix_thread_ops): Don't set to_attach.
7649 (_initialize_aix_thread): Register inferior_created observer.
7650 * corelow.c (init_core_ops): Don't set to_attach or
7651 to_create_inferior.
7652 * exec.c (init_exec_ops): Don't set to_attach or
7653 to_create_inferior.
7654 * infcmd.c (run_command_1): Use find_run_target. Make direct
7655 target calls.
7656 (attach_command): Use find_attach_target. Make direct target
7657 calls.
7658 * record-btrace.c (init_record_btrace_ops): Don't set
7659 to_create_inferior.
7660 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7661 Remove.
7662 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7663 set to_create_inferior.
7664 * target.c (complete_target_initialization): Add assertion.
7665 (target_create_inferior): Remove.
7666 (find_default_attach, find_default_create_inferior): Remove.
7667 (find_attach_target, find_run_target): New functions.
7668 (find_default_is_async_p, find_default_can_async_p)
7669 (target_supports_non_stop, target_attach): Remove.
7670 (init_dummy_target): Don't set to_create_inferior or
7671 to_supports_non_stop.
7672 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7673 TARGET_DEFAULT_FUNC.
7674 <to_create_inferior>: Add comment.
7675 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7676 TARGET_DEFAULT_RETURN.
7677 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7678 (find_attach_target, find_run_target): Declare.
7679 (target_create_inferior): Remove.
7680 (target_has_execution_1): Update comment.
7681 (target_supports_non_stop): Remove.
7682 * target-delegates.c: Rebuild.
7683
91f83b02
PA
76842014-03-12 Pedro Alves <palves@redhat.com>
7685
7686 * inf-child.h: Update comment to not mention Unix.
7687
f1aea813
PA
76882014-03-12 Pedro Alves <palves@redhat.com>
7689
7690 * inf-child.c: Update top comment to not mention Unix. Add
7691 generic comment describing how this target is meant to be used.
7692 (inf_child_post_attach, inf_child_post_startup_inferior)
7693 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7694 Unix in comment.
7695
ee8e9165
PA
76962014-03-12 Pedro Alves <palves@redhat.com>
7697
7698 * nto-procfs.c: Include inf-child.h.
7699 (procfs_ops): Delete global.
7700 (procfs_can_run): Delete method.
7701 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7702 target pointer instead of referencing procfs_ops.
7703 (procfs_prepare_to_store): Delete.
7704 (init_procfs_ops): Delete function.
7705 (procfs_target): New function, based on init_procfs_ops, but
7706 inherit inf_child_target.
7707 (_initialize_procfs): Use procfs_target.
7708
51a9c8c5
PA
77092014-03-12 Pedro Alves <palves@redhat.com>
7710
7711 * windows-nat.c: Include inf-child.h.
7712 (windows_ops): Delete global.
7713 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7714 methods.
7715 (init_windows_ops): Delete function.
7716 (windows_target): New function, based on init_windows_ops, but
7717 inherit inf_child_target.
7718 (_initialize_windows_nat): Use windows_target. Install x86
7719 specific target methods here.
7720
c1966e26
DE
77212014-03-10 Doug Evans <xdje42@gmail.com>
7722
7723 * guile/guile.c (call_initialize_gdb_module): New function.
7724 (initialize_guile): Replace call to scm_init_guile with call to
7725 scm_with_guile.
7726
023db19c
JB
77272014-03-10 Joel Brobecker <brobecker@adacore.com>
7728
7729 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7730 in call to TYPE_CODE macro.
7731
5ec18f2b
JG
77322014-03-10 Jerome Guitton <guitton@adacore.com>
7733
8668be63
JB
7734 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7735 Resolve tagged types to full view.
5ec18f2b 7736
7d03f2eb
HZ
77372014-03-10 Hui Zhu <hui@codesourcery.com>
7738
7739 * target.h (target_insert_breakpoint): Remove "hardware" from its
7740 comments.
7741
c5164cbc
DE
77422014-03-07 Doug Evans <dje@google.com>
7743
7744 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7745
c4a3fee2
DE
77462014-03-07 Doug Evans <dje@google.com>
7747
7748 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7749 Remove unused local comp_dir_attr. Assert exactly one of
7750 stub_comp_unit_die, stub_comp_dir is non-NULL.
7751
3156469c
JB
77522014-03-07 Joel Brobecker <brobecker@adacore.com>
7753
7754 * target.h (complete_target_initialization, add_target):
7755 Add comment.
7756
c1a7b7c6
PA
77572014-03-07 Pedro Alves <palves@redhat.com>
7758
7759 * go32-nat.c: Include inf-child.h.
7760 (go32_ops): Delete global.
7761 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7762 Delete methods.
7763 (go32_create_inferior): Push the passed in target pointer instead
7764 of referencing go32_ops.
7765 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7766 (go32_target): New function, based on init_go32_ops, but inherit
7767 inf_child_target.
7768 (_initialize_go32_nat): Use go32_target. Move parts of
7769 init_go32_ops here.
7770
d3c1a85f
JB
77712014-03-06 Joel Brobecker <brobecker@adacore.com>
7772
7773 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7774 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7775 SYMBOL_VALUE_ADDRESS.
7776 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7777
5fa1d40e
YQ
77782014-03-06 Yao Qi <yao@codesourcery.com>
7779
7780 * breakpoint.c (get_tracepoint_by_number): Remove argument
7781 optional_p. All callers updated. Adjust comments. Update
7782 output message.
7783 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7784
0c13193f
YQ
77852014-03-06 Yao Qi <yao@codesourcery.com>
7786
7787 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7788 early if get_number returns zero. Use 'p' instead of 'args'.
7789
2217da06
YQ
77902014-03-06 Yao Qi <yao@codesourcery.com>
7791
7792 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7793 message.
7794
cc3da688
YQ
77952014-03-06 Yao Qi <yao@codesourcery.com>
7796
7797 PR breakpoints/16508
7798 * tracepoint.c (check_trace_running): New function.
7799 (trace_find_command): Move code to check_trace_running and
7800 call check_trace_running.
7801 (trace_find_pc_command): Likewise.
7802 (trace_find_tracepoint_command): Likewise.
7803 (trace_find_line_command): Likewise.
7804 (trace_find_range_command): Likewise.
7805 * tracepoint.h (check_trace_running): Likewise.
7806 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7807
6a5f844b
YQ
78082014-03-06 Yao Qi <yao@codesourcery.com>
7809
7810 * target.h (struct target_ops) <to_traceframe_info>: Use
7811 TARGET_DEFAULT_NORETURN (tcomplain ()).
7812 * target-delegates.c: Regenerated.
7813
0f26cec1
PA
78142014-03-05 Pedro Alves <palves@redhat.com>
7815
7816 PR gdb/16575
7817 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7818 void. Update comment.
7819 (dcache_xfer_memory): Delete.
7820 (dcache_read_memory_partial): New, based on the read bits of
7821 dcache_xfer_memory.
7822 (dcache_update): Add status parameter. Use ULONGEST for len, and
7823 adjust. Discard cache lines if the reason for the update was
7824 error.
7825 * dcache.h (dcache_xfer_memory): Delete declaration.
7826 (dcache_read_memory_partial): New declaration.
7827 (dcache_update): Update prototype.
7828 * target.c (raw_memory_xfer_partial): Update the dcache here.
7829 (memory_xfer_partial_1): Don't handle dcache writes here.
7830
b2b255bd
MF
78312014-03-05 Mike Frysinger <vapier@gentoo.org>
7832
7833 * remote-sim.c (gdbsim_load): Add const to prog.
7834
5d9cf8a4
TT
78352014-03-03 Tom Tromey <tromey@redhat.com>
7836
7837 * elfread.c (probe_key): Change to bfd_data.
7838 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7839 now per-BFD, not per-objfile.
7840 * stap-probe.c (stap_probe_destroy): Update comment.
7841 (handle_stap_probe): Allocate on the per-BFD obstack.
7842
729662a5
TT
78432014-03-03 Tom Tromey <tromey@redhat.com>
7844
7845 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7846 * breakpoint.c (create_longjmp_master_breakpoint): Use
7847 get_probe_address.
7848 (add_location_to_breakpoint, bkpt_probe_insert_location)
7849 (bkpt_probe_remove_location): Update.
7850 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7851 * elfread.c (elf_symfile_relocate_probe): Remove.
7852 (elf_probe_fns): Update.
7853 (insert_exception_resume_breakpoint): Change type of "probe"
7854 parameter to bound_probe.
7855 (check_exception_resume): Update.
7856 * objfiles.c (objfile_relocate1): Don't relocate probes.
7857 * probe.c (bound_probe_s): New typedef.
7858 (parse_probes): Use get_probe_address. Set sal's objfile.
7859 (find_probe_by_pc): Return a bound_probe.
7860 (collect_probes): Return a VEC(bound_probe_s).
7861 (compare_probes): Update.
7862 (gen_ui_out_table_header_info): Change type of "probes"
7863 parameter. Update.
7864 (info_probes_for_ops): Update.
7865 (get_probe_address): New function.
7866 (probe_safe_evaluate_at_pc): Update.
7867 * probe.h (struct probe_ops) <get_probe_address>: New field.
7868 <set_semaphore, clear_semaphore>: Add objfile parameter.
7869 (struct probe) <objfile>: Remove field.
7870 <arch>: New field.
7871 <address>: Update comment.
7872 (struct bound_probe): New.
7873 (find_probe_by_pc): Return a bound_probe.
7874 (get_probe_address): Declare.
7875 * solib-svr4.c (struct probe_and_action) <address>: New field.
7876 (hash_probe_and_action, equal_probe_and_action): Update.
7877 (register_solib_event_probe): Add address parameter.
7878 (solib_event_probe_at): Update.
7879 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7880 get_probe_address.
7881 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7882 (stap_get_probe_address): New function.
7883 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7884 (compile_probe_arg): Update.
7885 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7886 address.
7887 (handle_stap_probe): Don't relocate the probe.
7888 (stap_relocate): Remove.
7889 (stap_gen_info_probes_table_values): Update.
7890 (stap_probe_ops): Remove stap_relocate.
7891 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7892 (debug_sym_probe_fns): Update.
7893 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7894 * symtab.c (init_sal): Use memset.
7895 * symtab.h (struct symtab_and_line) <objfile>: New field.
7896 * tracepoint.c (start_tracing, stop_tracing): Update.
7897
ff887920
TT
78982014-03-03 Tom Tromey <tromey@redhat.com>
7899
7900 * probe.h (parse_probes, find_probe_by_pc)
7901 (find_probes_in_objfile): Fix comments.
7902
f0407826
DE
79032014-03-02 Doug Evans <xdje42@gmail.com>
7904
7905 * infrun.c (handle_signal_stop): Replace test for
7906 TARGET_WAITKIND_STOPPED with an assert.
7907
35e6a711
DE
79082014-03-02 Doug Evans <xdje42@gmail.com>
7909
7910 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7911
667f9d0b
DE
79122014-03-02 Doug Evans <xdje42@gmail.com>
7913
7914 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7915
dc92ace0
MK
79162014-03-01 Mark Kettenis <kettenis@gnu.org>
7917
7918 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7919
a900370f
MK
79202014-03-01 Mark Kettenis <kettenis@gnu.org>
7921
7922 * i386obsd-nat.c: Include "obsd-nat.h".
7923 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7924 add_target.
7925 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7926
b72a7981
MK
79272014-03-01 Mark Kettenis <kettenis@gnu.org>
7928
7929 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7930
96c70aba
MK
79312014-03-01 Mark Kettenis <kettenis@gnu.org>
7932
7933 * mips64obsd-nat.c: Include "obsd-nath".
7934 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7935 add_target
7936 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7937
874a80af
MK
79382014-03-01 Mark Kettenis <kettenis@gnu.org>
7939
8fd408f1
MK
7940 * amd64obsd-nat.c: Include "obsd-nat,h.
7941 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7942 add_target.
874a80af
MK
7943 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7944
9cf95373
SC
79452014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7946
7947 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7948 (find_overload_match): Update call to find_oload_champ.
7949 (find_oload_champ_namespace_loop): Likewise
7950
863e4da4
MK
79512014-02-28 Mark Kettenis <kettenis@gnu.org>
7952
025cac40
MK
7953 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7954
1ed586ce
MK
7955 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7956 * config/sparc/obsd64.mh: New file.
7957 * sparc64obsd-nat.c: New file.
7958
863e4da4
MK
7959 * obsd-nat.h: New file.
7960 * obsd-nat.c: New file.
7961 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7962 (ALLDEPFILES): Add obsd-nat.c.
7963
89de4da4
TT
79642014-02-28 Tom Tromey <tromey@redhat.com>
7965
7966 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7967 * cli-out.h (cli_ui_out_impl): Now const.
7968 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7969 * ui-out.c (struct ui_out) <impl>: Now const.
7970 (default_ui_out_impl): Now const.
7971 (ui_out_new): Make 'impl' parameter const.
7972 * ui-out.h (ui_out_new): Update.
7973
c725e7b6
MK
79742014-02-27 Mark Kettenis <kettenis@gnu.org>
7975
7976 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7977
670b46b3
MK
79782014-02-27 Mark Kettenis <kettenis@gnu.org>
7979
7980 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7981
c91550fc
JK
79822014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 Additional PR 8882 fix.
7985 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7986
2fa0369e
PA
79872014-02-27 Pedro Alves <palves@redhat.com>
7988
7989 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7990 isn't set.
7991
d632a097
PA
79922014-02-27 Pedro Alves <palves@redhat.com>
7993
7994 PR 12702
7995 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7996 * nat/linux-waitpid.c: Include string.h.
7997 (status_to_str): Moved here and made extern.
7998 * nat/linux-waitpid.h (status_to_str): New declaration.
7999
2ebd5a35
HZ
80002014-02-27 Hui Zhu <hui@codesourcery.com>
8001
8002 PR 12702
8003 * infrun.c (ptid_match): Move ...
8004 * common/ptid.c (ptid_match): ... here.
8005 * inferior.h (ptid_match): Move ...
8006 * common/ptid.h (ptid_match): ... here.
8007
3cdd631f
MK
80082014-02-27 Mark Kettenis <kettenis@gnu.org>
8009
8010 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8011 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8012 gdb_target_obs.
8013
bee30a64
MK
80142014-02-27 Mark Kettenis <kettenis@gnu.org>
8015
8016 * obsd-tdep.c (obsd_auxv_parse): New function.
8017 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8018
8019 * gdbarch.sh (auxv_parse): New.
8020 * gdbarch.h: Regenerated.
8021 * gdbarch.c: Regenerated.
8022 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8023
7a5a839f
LC
80242014-02-26 Ludovic Courtès <ludo@gnu.org>
8025
8026 * guile/scm-value.c (gdbscm_history_append_x): New function.
8027 (value_functions): Add it.
8028
31aa7e4e
JB
80292014-02-27 Joel Brobecker <brobecker@adacore.com>
8030
8031 * dwarf2read.c (attr_value_as_address): New function.
8032 (dwarf2_find_base_address, read_call_site_scope): Use
8033 attr_value_as_address in place of DW_ADDR.
8034 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8035 the low and high addresses. Slight rework of the handling
8036 of the high pc being a constant form, and limit it to
8037 DWARF verson 4 or higher.
8038 (dwarf2_record_block_ranges): Likewise.
8039 (read_partial_die): Likewise.
8040 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8041
9b333ba3
TT
80422014-02-26 Tom Tromey <tromey@redhat.com>
8043
8044 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8045
5f6cac40
TT
80462014-02-26 Tom Tromey <tromey@redhat.com>
8047
8048 * elfread.c (elf_read_minimal_symbols): Return early if
8049 minimal symbols have already been read. Add "ei" parameter.
8050 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8051 * minsyms.c (prim_record_minimal_symbol_full): Update.
8052 * objfiles.h (struct objstats) <n_minsyms>: Move...
8053 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8054 * symmisc.c (print_objfile_statistics): Update.
8055
2750ef27
TT
80562014-02-26 Tom Tromey <tromey@redhat.com>
8057
8058 * elfread.c (elf_read_minimal_symbols): New function, from
8059 elf_symfile_read.
8060 (elf_symfile_read): Call it.
8061
34643a32
TT
80622014-02-26 Tom Tromey <tromey@redhat.com>
8063
8064 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8065 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8066 (lookup_minimal_symbol_solib_trampoline)
8067 (lookup_minimal_symbol_by_pc_section_1)
8068 (lookup_minimal_symbol_and_objfile): Update.
8069 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8070 Don't allocate a minimal symbol if minsyms have already been read.
8071 (build_minimal_symbol_hash_tables): Update.
8072 (install_minimal_symbols): Do nothing if minsyms already read.
8073 Use the per-BFD obstack.
8074 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8075 * objfiles.c (allocate_objfile): Call
8076 terminate_minimal_symbol_table later.
8077 (have_minimal_symbols): Update.
8078 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8079 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8080 Move from struct objfile.
8081 <minsyms_read>: New field.
8082 (struct objfile) <msymbols, minimal_symbol_count,
8083 msymbol_hash, msymbol_demangled_hash>: Move.
8084 (ALL_OBJFILE_MSYMBOLS): Update.
8085 * symfile.c (read_symbols): Set minsyms_read.
8086 (reread_symbols): Update.
8087 * symmisc.c (dump_objfile, dump_msymbols): Update.
8088
2273f0ac
TT
80892014-02-26 Tom Tromey <tromey@redhat.com>
8090
8091 * minsyms.c (msymbols_sort): Remove.
8092 * minsyms.h (msymbols_sort): Remove.
8093 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8094 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8095 * elfread.c (elf_symtab_read): Don't add section offsets.
8096 * xcoffread.c (record_minimal_symbol): Don't add section offset
8097 to minimal symbol address.
8098 * somread.c (text_offset, data_offset): Remove.
8099 (som_symtab_read): Don't add section offsets to minimal symbol
8100 addresses.
8101 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8102 Don't add section offsets to minimal symbols.
8103 * coffread.c (coff_symtab_read): Don't add section offsets
8104 to minimal symbol addresses.
8105 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8106 to minimal symbol addresses.
8107 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8108 section offset to minimal symbol addresses.
8109 * mdebugread.c (parse_partial_symbols): Don't add section
8110 offset to minimal symbol addresses.
8111 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8112 offset to minimal symbol addresses.
8113
77e371c0
TT
81142014-02-26 Tom Tromey <tromey@redhat.com>
8115
8116 * ada-lang.c (ada_main_name): Update.
8117 (ada_add_standard_exceptions): Update.
8118 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8119 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8120 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8121 * auxv.c (ld_so_xfer_auxv): Update.
8122 * avr-tdep.c (avr_scan_prologue): Update.
8123 * ax-gdb.c (gen_var_ref): Update.
8124 * blockframe.c (get_pc_function_start)
8125 (find_pc_partial_function_gnu_ifunc): Update.
8126 * breakpoint.c (create_overlay_event_breakpoint)
8127 (create_longjmp_master_breakpoint)
8128 (create_std_terminate_master_breakpoint)
8129 (create_exception_master_breakpoint): Update.
8130 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8131 * c-valprint.c (c_val_print): Update.
8132 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8133 * common/agent.c (agent_look_up_symbols): Update.
8134 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8135 * dwarf2loc.c (call_site_to_target_addr): Update.
8136 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8137 * elfread.c (elf_gnu_ifunc_record_cache)
8138 (elf_gnu_ifunc_resolve_by_got): Update.
8139 * findvar.c (default_read_var_value): Update.
8140 * frame.c (inside_main_func): Update.
8141 * frv-tdep.c (frv_frame_this_id): Update.
8142 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8143 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8144 Update.
8145 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8146 (hppa_hpux_find_dummy_bpaddr): Update.
8147 * hppa-tdep.c (hppa_symbol_address): Update.
8148 * infcmd.c (until_next_command): Update.
8149 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8150 Update.
8151 * linespec.c (minsym_found, add_minsym): Update.
8152 * linux-nat.c (get_signo): Update.
8153 * linux-thread-db.c (inferior_has_bug): Update.
8154 * m32c-tdep.c (m32c_return_value)
8155 (m32c_m16c_address_to_pointer): Update.
8156 * m32r-tdep.c (m32r_frame_this_id): Update.
8157 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8158 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8159 * maint.c (maintenance_translate_address): Update.
8160 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8161 (frob_address): New function.
8162 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8163 frob_address. Rename parameter to "pc_in".
8164 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8165 addresses.
8166 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8167 Update.
8168 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8169 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8170 * objc-lang.c (find_objc_msgsend): Update.
8171 * objfiles.c (objfile_relocate1): Update.
8172 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8173 * p-valprint.c (pascal_val_print): Update.
8174 * parse.c (write_exp_msymbol): Update.
8175 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8176 (ppc_elfv2_skip_entrypoint): Update.
8177 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8178 * printcmd.c (build_address_symbolic, msym_info)
8179 (address_info): Update.
8180 * proc-service.c (ps_pglobal_lookup): Update.
8181 * psymtab.c (find_pc_sect_psymtab_closer)
8182 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8183 Change msymbol parameter to bound_minimal_symbol.
8184 * ravenscar-thread.c (get_running_thread_id): Update.
8185 * remote.c (remote_check_symbols): Update.
8186 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8187 address.
8188 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8189 * solib-dsbt.c (lm_base): Update.
8190 * solib-frv.c (lm_base, main_got): Update.
8191 * solib-irix.c (locate_base): Update.
8192 * solib-som.c (som_solib_create_inferior_hook)
8193 (link_map_start): Update.
8194 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8195 * solib-svr4.c (elf_locate_base, enable_break): Update.
8196 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8197 (flush_ea_cache): Update.
8198 * stabsread.c (define_symbol, scan_file_globals): Update.
8199 * stack.c (find_frame_funname): Update.
8200 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8201 (debug_qf_find_pc_sect_symtab): Update.
8202 * symfile.c (simple_read_overlay_table)
8203 (simple_overlay_update): Update.
8204 * symfile.h (struct quick_symbol_functions)
8205 <find_pc_sect_symtab>: Change type of msymbol to
8206 bound_minimal_symbol.
8207 * symmisc.c (dump_msymbols): Update.
8208 * symtab.c (find_pc_sect_symtab_via_partial)
8209 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8210 (search_symbols, print_msymbol_info): Update.
8211 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8212 (MSYMBOL_VALUE_ADDRESS): Redefine.
8213 (BMSYMBOL_VALUE_ADDRESS): New macro.
8214 * tracepoint.c (scope_info): Update.
8215 * tui/tui-disasm.c (tui_find_disassembly_address)
8216 (tui_get_begin_asm_address): Update.
8217 * valops.c (find_function_in_inferior): Update.
8218 * value.c (value_static_field, value_fn_field): Update.
8219
3b7344d5
TT
82202014-02-26 Tom Tromey <tromey@redhat.com>
8221
8222 * ada-lang.c (ada_update_initial_language): Update.
8223 (ada_main_name, ada_has_this_exception_support): Update.
8224 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8225 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8226 * arm-tdep.c (arm_skip_stub): Update.
8227 * auxv.c (ld_so_xfer_auxv): Update.
8228 * avr-tdep.c (avr_scan_prologue): Update.
8229 * ax-gdb.c (gen_var_ref): Update.
8230 * breakpoint.c (struct breakpoint_objfile_data)
8231 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8232 type to bound_minimal_symbol.
8233 (create_overlay_event_breakpoint)
8234 (create_longjmp_master_breakpoint)
8235 (create_std_terminate_master_breakpoint)
8236 (create_exception_master_breakpoint): Update.
8237 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8238 * c-exp.y (classify_name): Update.
8239 * coffread.c (coff_symfile_read): Update.
8240 * common/agent.c (agent_look_up_symbols): Update.
8241 * d-lang.c (d_main_name): Update.
8242 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8243 * dec-thread.c (enable_dec_thread): Update.
8244 * dwarf2loc.c (call_site_to_target_addr): Update.
8245 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8246 * eval.c (evaluate_subexp_standard): Update.
8247 * findvar.c (struct minsym_lookup_data) <result>: Change type
8248 to bound_minimal_symbol.
8249 <objfile>: Remove.
8250 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8251 * frame.c (inside_main_func): Update.
8252 * frv-tdep.c (frv_frame_this_id): Update.
8253 * gcore.c (call_target_sbrk): Update.
8254 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8255 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8256 Update.
8257 * go-lang.c (go_main_name): Update.
8258 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8259 (hppa_hpux_find_import_stub_for_addr): Update.
8260 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8261 Update. Change return type.
8262 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8263 type.
8264 * jit.c (jit_breakpoint_re_set_internal): Update.
8265 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8266 Update.
8267 * linux-nat.c (get_signo): Update.
8268 * linux-thread-db.c (inferior_has_bug): Update
8269 * m32c-tdep.c (m32c_return_value)
8270 (m32c_m16c_address_to_pointer): Update.
8271 * m32r-tdep.c (m32r_frame_this_id): Update.
8272 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8273 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8274 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8275 lookup_minimal_symbol. Change return type.
8276 (lookup_minimal_symbol): Remove.
8277 (lookup_bound_minimal_symbol): Update.
8278 (lookup_minimal_symbol_text): Change return type.
8279 (lookup_minimal_symbol_solib_trampoline): Change return type.
8280 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8281 (lookup_minimal_symbol_solib_trampoline): Change return type.
8282 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8283 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8284 (value_nsstring, find_imps): Update.
8285 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8286 * p-lang.c (pascal_main_name): Update.
8287 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8288 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8289 * proc-service.c (ps_pglobal_lookup): Update.
8290 * ravenscar-thread.c (get_running_thread_msymbol): Change
8291 return type.
8292 (has_ravenscar_runtime, get_running_thread_id): Update.
8293 * remote.c (remote_check_symbols): Update.
8294 * sol-thread.c (ps_pglobal_lookup): Update.
8295 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8296 * solib-dsbt.c (lm_base): Update.
8297 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8298 Update.
8299 * solib-irix.c (locate_base): Update.
8300 * solib-som.c (som_solib_create_inferior_hook)
8301 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8302 Update.
8303 * solib-spu.c (spu_enable_break): Update.
8304 * solib-svr4.c (elf_locate_base, enable_break): Update.
8305 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8306 (flush_ea_cache): Update.
8307 * stabsread.c (define_symbol): Update.
8308 * symfile.c (simple_read_overlay_table): Update.
8309 * symtab.c (find_pc_sect_line): Update.
8310 * tracepoint.c (scope_info): Update.
8311 * tui-disasm.c (tui_get_begin_asm_address): Update.
8312 * value.c (value_static_field): Update.
8313
40c1a007
TT
83142014-02-26 Tom Tromey <tromey@redhat.com>
8315
8316 * minsyms.c (prim_record_minimal_symbol_full): Use
8317 SET_MSYMBOL_VALUE_ADDRESS.
8318 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8319 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8320 SET_MSYMBOL_VALUE_ADDRESS.
8321 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8322 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8323
efd66ac6
TT
83242014-02-26 Tom Tromey <tromey@redhat.com>
8325
8326 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8327 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8328 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8329 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8330 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8331 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8332 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8333 * ada-lang.c (ada_main_name): Update.
8334 (ada_lookup_simple_minsym): Update.
8335 (ada_make_symbol_completion_list): Update.
8336 (ada_add_standard_exceptions): Update.
8337 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8338 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8339 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8340 * arm-tdep.c (skip_prologue_function): Update.
8341 (arm_skip_stack_protector, arm_skip_stub): Update.
8342 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8343 (arm_wince_skip_main_prologue): Update.
8344 * auxv.c (ld_so_xfer_auxv): Update.
8345 * avr-tdep.c (avr_scan_prologue): Update.
8346 * ax-gdb.c (gen_var_ref): Update.
8347 * block.c (call_site_for_pc): Update.
8348 * blockframe.c (get_pc_function_start): Update.
8349 (find_pc_partial_function_gnu_ifunc): Update.
8350 * breakpoint.c (create_overlay_event_breakpoint): Update.
8351 (create_longjmp_master_breakpoint): Update.
8352 (create_std_terminate_master_breakpoint): Update.
8353 (create_exception_master_breakpoint): Update.
8354 (resolve_sal_pc): Update.
8355 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8356 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8357 Update.
8358 * c-valprint.c (c_val_print): Update.
8359 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8360 * coffread.c (coff_symfile_read): Update.
8361 * common/agent.c (agent_look_up_symbols): Update.
8362 * dbxread.c (find_stab_function_addr): Update.
8363 (end_psymtab): Update.
8364 * dwarf2loc.c (call_site_to_target_addr): Update.
8365 (func_verify_no_selftailcall): Update.
8366 (tailcall_dump): Update.
8367 (call_site_find_chain_1): Update.
8368 (dwarf_expr_reg_to_entry_parameter): Update.
8369 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8370 (elf_gnu_ifunc_resolve_by_got): Update.
8371 * f-valprint.c (info_common_command): Update.
8372 * findvar.c (read_var_value): Update.
8373 * frame.c (get_prev_frame_1): Update.
8374 (inside_main_func): Update.
8375 * frv-tdep.c (frv_skip_main_prologue): Update.
8376 (frv_frame_this_id): Update.
8377 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8378 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8379 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8380 (gnuv3_skip_trampoline): Update.
8381 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8382 (hppa64_hpux_in_solib_call_trampoline): Update.
8383 (hppa_hpux_skip_trampoline_code): Update.
8384 (hppa64_hpux_search_dummy_call_sequence): Update.
8385 (hppa_hpux_find_import_stub_for_addr): Update.
8386 (hppa_hpux_find_dummy_bpaddr): Update.
8387 * hppa-tdep.c (hppa_symbol_address)
8388 (hppa_lookup_stub_minimal_symbol): Update.
8389 * i386-tdep.c (i386_skip_main_prologue): Update.
8390 (i386_pe_skip_trampoline_code): Update.
8391 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8392 * infcall.c (get_function_name): Update.
8393 * infcmd.c (until_next_command): Update.
8394 * jit.c (jit_breakpoint_re_set_internal): Update.
8395 (jit_inferior_init): Update.
8396 * linespec.c (minsym_found): Update.
8397 (add_minsym): Update.
8398 * linux-fork.c (info_checkpoints_command): Update.
8399 * linux-nat.c (get_signo): Update.
8400 * linux-thread-db.c (inferior_has_bug): Update.
8401 * m32c-tdep.c (m32c_return_value): Update.
8402 (m32c_m16c_address_to_pointer): Update.
8403 (m32c_m16c_pointer_to_address): Update.
8404 * m32r-tdep.c (m32r_frame_this_id): Update.
8405 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8406 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8407 * maint.c (maintenance_translate_address): Update.
8408 * minsyms.c (add_minsym_to_hash_table): Update.
8409 (add_minsym_to_demangled_hash_table): Update.
8410 (msymbol_objfile): Update.
8411 (lookup_minimal_symbol): Update.
8412 (iterate_over_minimal_symbols): Update.
8413 (lookup_minimal_symbol_text): Update.
8414 (lookup_minimal_symbol_by_pc_name): Update.
8415 (lookup_minimal_symbol_solib_trampoline): Update.
8416 (lookup_minimal_symbol_by_pc_section_1): Update.
8417 (lookup_minimal_symbol_and_objfile): Update.
8418 (prim_record_minimal_symbol_full): Update.
8419 (compare_minimal_symbols): Update.
8420 (compact_minimal_symbols): Update.
8421 (build_minimal_symbol_hash_tables): Update.
8422 (install_minimal_symbols): Update.
8423 (terminate_minimal_symbol_table): Update.
8424 (find_solib_trampoline_target): Update.
8425 (minimal_symbol_upper_bound): Update.
8426 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8427 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8428 (mips_skip_pic_trampoline_code): Update.
8429 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8430 * objc-lang.c (selectors_info): Update.
8431 (classes_info): Update.
8432 (find_methods): Update.
8433 (find_imps): Update.
8434 (find_objc_msgsend): Update.
8435 * objfiles.c (objfile_relocate1): Update.
8436 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8437 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8438 * p-valprint.c (pascal_val_print): Update.
8439 * parse.c (write_exp_msymbol): Update.
8440 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8441 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8442 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8443 * printcmd.c (build_address_symbolic): Update.
8444 (sym_info): Update.
8445 (address_info): Update.
8446 * proc-service.c (ps_pglobal_lookup): Update.
8447 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8448 (find_pc_sect_psymtab): Update.
8449 * python/py-framefilter.c (py_print_frame): Update.
8450 * ravenscar-thread.c (get_running_thread_id): Update.
8451 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8452 Update.
8453 * remote.c (remote_check_symbols): Update.
8454 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8455 (rs6000_skip_trampoline_code): Update.
8456 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8457 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8458 * solib-dsbt.c (lm_base): Update.
8459 * solib-frv.c (lm_base): Update.
8460 (main_got): Update.
8461 * solib-irix.c (locate_base): Update.
8462 * solib-som.c (som_solib_create_inferior_hook): Update.
8463 (som_solib_desire_dynamic_linker_symbols): Update.
8464 (link_map_start): Update.
8465 * solib-spu.c (spu_enable_break): Update.
8466 (ocl_enable_break): Update.
8467 * solib-svr4.c (elf_locate_base): Update.
8468 (enable_break): Update.
8469 * spu-tdep.c (spu_get_overlay_table): Update.
8470 (spu_catch_start): Update.
8471 (flush_ea_cache): Update.
8472 * stabsread.c (define_symbol): Update.
8473 (scan_file_globals): Update.
8474 * stack.c (find_frame_funname): Update.
8475 (frame_info): Update.
8476 * symfile.c (simple_read_overlay_table): Update.
8477 (simple_overlay_update): Update.
8478 * symmisc.c (dump_msymbols): Update.
8479 * symtab.c (fixup_section): Update.
8480 (find_pc_sect_line): Update.
8481 (skip_prologue_sal): Update.
8482 (search_symbols): Update.
8483 (print_msymbol_info): Update.
8484 (rbreak_command): Update.
8485 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8486 (completion_list_objc_symbol): Update.
8487 (default_make_symbol_completion_list_break_on): Update.
8488 * tracepoint.c (scope_info): Update.
8489 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8490 (tui_get_begin_asm_address): Update.
8491 * valops.c (find_function_in_inferior): Update.
8492 * value.c (value_static_field): Update.
8493 (value_fn_field): Update.
8494
50e65b17
TT
84952014-02-26 Tom Tromey <tromey@redhat.com>
8496
8497 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8498 bound minimal symbols. Move code that knows about minsym
8499 table layout...
8500 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8501 function.
8502 * minsyms.h (minimal_symbol_upper_bound): Declare.
8503 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8504 minimal_symbol_upper_bound.
8505
1b588015
JB
85062014-02-27 Joel Brobecker <brobecker@adacore.com>
8507
8508 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8509 Use the type's name if its basic type does not have a tag.
8510
dbb9c2b1
JB
85112014-02-27 Joel Brobecker <brobecker@adacore.com>
8512
8513 * dwarf2read.c (read_subrange_type): Add comment.
8514
55426c9d
JB
85152014-02-27 Joel Brobecker <brobecker@adacore.com>
8516
8517 * dwarf2read.c (update_enumeration_type_from_children): New
8518 function, mostly extracted from process_structure_scope.
8519 (read_enumeration_type): Call update_enumeration_type_from_children.
8520 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8521 and flag_flag_enum fields.
8522
f2fce0ca
PA
85232014-02-26 Pedro Alves <palves@redhat.com>
8524
8525 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8526 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8527 to_xfer_partial method.
8528
7a44e40e
PA
85292014-02-26 Pedro Alves <palves@redhat.com>
8530
8531 * target.c (complete_target_initialization): Don't install
8532 default_xfer_partial as to_xfer_partial hook.
8533 (nomemory): Delete.
8534 (update_current_target): Don't INHERIT nor de_fault
8535 deprecated_xfer_memory. Delete de_fault macro.
8536 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8537 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8538 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8539 field.
8540
bd265cd0
PA
85412014-02-26 Pedro Alves <palves@redhat.com>
8542
8543 * go32-nat.c (my_write_child): New function.
8544 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8545 (go32_xfer_partial): New function.
8546 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8547 Instead install a to_xfer_partial hook.
8548
9d46c4e5
PA
85492014-02-26 Pedro Alves <palves@redhat.com>
8550
8551 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8552 to_xfer_partial helper. Rewrite.
8553 (procfs_xfer_partial): New function.
8554 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8555 Install a to_xfer_partial hook.
8556
a1583b1f
PA
85572014-02-26 Pedro Alves <palves@redhat.com>
8558
8559 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8560 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8561 (m32r_xfer_partial): New function.
8562 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8563 Install a to_xfer_partial hook.
8564
6df1b29f
PA
85652014-02-26 Pedro Alves <palves@redhat.com>
8566
8567 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8568 helper.
8569 (mips_xfer_partial): New function.
8570 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8571 hook. Install a to_xfer_partial hook.
8572
dc53a7ad
JB
85732014-02-26 Joel Brobecker <brobecker@adacore.com>
8574
8575 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8576 * gdbtypes.c (create_array_type_with_stride): New function,
8577 renaming create_array_type, but with an added parameter
8578 called "bit_stride".
8579 (create_array_type): Re-implement using
8580 create_array_type_with_stride.
8581 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8582 and DW_AT_bit_stride attributes.
8583
12ab52e9
PA
85842014-02-26 Pedro Alves <palves@redhat.com>
8585
8586 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8587 task-specific breakpoints.
8588
d16461ae
PA
85892014-02-25 Pedro Alves <palves@redhat.com>
8590
8591 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8592 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8593
a8b16220
SS
85942014-02-25 Stan Shebs <stan@codesourcery.com>
8595
8596 * defs.h: Annotate comments for Doxygen.
8597
b9e795ee
TT
85982014-02-25 Tom Tromey <tromey@redhat.com>
8599
8600 * target.h (target_ignore): Don't declare.
8601 * target.c (target_ignore): Remove.
8602
849c862e
JK
86032014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8604
8605 PR gdb/16626
8606 * auto-load.c (auto_load_objfile_script_1): Change filename to
8607 debugfile.
8608
475109d8
JB
86092014-02-25 Joel Brobecker <brobecker@adacore.com>
8610
8611 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8612 documentation. Adjust prototype to match the target_ops
8613 to_xfer_partial method. Adjust implementation accordingly.
8614
e186c3bd
HZ
86152014-02-25 Hui Zhu <hui@codesourcery.com>
8616
8617 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8618 to_traceframe_info.
8619
6d451942
KB
86202014-02-25 Kevin Buettner <kevinb@redhat.com>
8621
041ab8b4 8622 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8623 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8624 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8625 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8626 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8627 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8628 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8629 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8630 New constants.
8631 (rl78_register_type): Use a data pointer type for SP and
8632 new pseudo registers mentioned above. Use a 16 bit integer
8633 type for all other register pairs.
8634 (rl78_register_name, rl78_g10_register_name): Update for
8635 new pseudo registers.
8636 (rl78_pseudo_register_read): Likewise.
8637 (rl78_pseudo_register_write): Likewise.
8638 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8639 to the newly added pseudo registers.
8640
eddf0bae
DE
86412014-02-24 Doug Evans <dje@google.com>
8642
8643 * value.c (record_latest_value): Fix comment.
8644 * printcmd.c (print_command_1): Remove code to handle -1 return from
8645 record_latest_value.
8646
e96027e0
PA
86472014-02-24 Pedro Alves <palves@redhat.com>
8648
8649 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8650 deprecated_xfer_memory hook.
8651 (procfs_xfer_partial): Call procfs_xfer_memory instead
8652 of the deprecated_xfer_memory target hook.
8653 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8654 helper.
8655
0837c976
YZ
86562014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8657
8658 * windows-nat.c (windows_xfer_shared_libraries): Return
8659 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8660 requested object is TARGET_OBJECT_LIBRARIES.
8661
bc113b4e
YQ
86622014-02-24 Yao Qi <yao@codesourcery.com>
8663
8664 * target.h (enum target_xfer_status)
8665 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8666 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8667 explicitly. New.
8668 * corefile.c (memory_error_message): User updated.
8669 * exec.c (section_table_read_available_memory): Likewise.
8670 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8671 * target.c (target_xfer_status_to_string): Likewise.
8672 (raw_memory_xfer_partial): Likewise.
8673 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8674 * valops.c (read_value_memory): Likewise.
8675 * exec.h: Update comments.
8676
01cb8804
YQ
86772014-02-24 Yao Qi <yao@codesourcery.com>
8678
8679 * target.c (target_xfer_status_to_string): Rename argument err
8680 to status.
8681 * target.h (target_xfer_status_to_string): Update declaration.
8682 Replace target_xfer_error_to_string with
8683 target_xfer_status_to_string in comment.
8684
93063aa6
YQ
86852014-02-24 Yao Qi <yao@codesourcery.com>
8686
8687 * mips-linux-nat.c (super_close): Update its type.
8688 (mips_linux_close): Pass 'self' to super_close.
8689
5c328c05
YQ
86902014-02-24 Yao Qi <yao@codesourcery.com>
8691
8692 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8693 * corefile.c (read_memory): Adjusted.
8694 * target.c (target_write_with_progress): Adjusted.
8695
f73023dd
YQ
86962014-02-23 Yao Qi <yao@codesourcery.com>
8697
8698 Revert two patches:
8699
8700 2013-10-25 Yao Qi <yao@codesourcery.com>
8701
8702 * remote.c (remote_traceframe_info): Return early if
8703 traceframe is not selected.
8704
8705 2013-07-19 Yao Qi <yao@codesourcery.com>
8706
8707 * target.c (update_current_target): Change the default action
8708 of 'to_traceframe_info' from tcomplain to return_zero.
8709 * target.h (struct target_ops) <to_traceframe_info>: Add more
8710 comments.
8711
5a2eb0ef
YQ
87122014-02-23 Yao Qi <yao@codesourcery.com>
8713
8714 * valops.c (read_value_memory): Rewrite it. Call
8715 target_xfer_partial in a loop.
8716 * exec.h (section_table_available_memory): Remove declaration.
8717 Move comments to ...
8718 * exec.c (section_table_available_memory): ... here. Make it
8719 static.
8720
1ee79381
YQ
87212014-02-23 Yao Qi <yao@codesourcery.com>
8722
8723 * exec.c (section_table_read_available_memory): New function.
8724 * exec.h (section_table_read_available_memory): Declare.
8725 * ctf.c (ctf_xfer_partial): Call
8726 section_table_read_available_memory.
8727 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8728
1ca49d37
YQ
87292014-02-23 Yao Qi <yao@codesourcery.com>
8730
8731 * ctf.c (ctf_xfer_partial): Move code to ...
8732 * exec.c (exec_read_partial_read_only): ... it. New function.
8733 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8734 * tracefile.c: Include "exec.h".
8735 * exec.h (exec_read_partial_read_only): Declare.
8736
a283690e
YQ
87372014-02-23 Yao Qi <yao@codesourcery.com>
8738
8739 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8740 (tfile_has_memory): Remove.
8741 (init_tfile_ops): Don't set fields to_has_all_memory and
8742 to_has_memory of tfile_ops.
8743 * tracefile.c (tracefile_has_all_memory): New function.
8744 (tracefile_has_memory): New function.
8745 (init_tracefile_ops): Initialize fields to_has_all_memory and
8746 to_has_memory of 'ops'.
8747
12e03cd0
YQ
87482014-02-23 Yao Qi <yao@codesourcery.com>
8749
8750 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8751 (ctf_thread_alive, ctf_get_trace_status): Remove.
8752 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8753 init_tracefile_ops.
8754 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8755 (tfile_has_stack, tfile_has_registers): Remove.
8756 (tfile_thread_alive): Remove.
8757 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8758 init_tracefile_ops.
8759 * tracefile.c (tracefile_has_stack): New function.
8760 (tracefile_has_registers): New function.
8761 (tracefile_thread_alive): New function.
8762 (tracefile_get_trace_status): New function.
8763 (init_tracefile_ops): New function.
8764 * tracefile.h (init_tracefile_ops): Declare.
8765
11395323
YQ
87662014-02-23 Yao Qi <yao@codesourcery.com>
8767
8768 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8769 (O_LARGEFILE): Likewise.
8770 (tfile_ops): Likewise.
8771 (TRACE_HEADER_SIZE): Likewise.
8772 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8773 (cur_data_size): Likewise.
8774 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8775 (tfile_close, tfile_files_info): Likewise.
8776 (tfile_get_trace_status): Likewise.
8777 (tfile_get_tracepoint_status): Likewise.
8778 (tfile_get_traceframe_address): Likewise.
8779 (tfile_trace_find, match_blocktype): Likewise.
8780 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8781 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8782 (tfile_get_trace_state_variable_value): Likewise.
8783 (tfile_has_all_memory, tfile_has_memory): Likewise.
8784 (tfile_has_stack, tfile_has_registers): Likewise.
8785 (tfile_thread_alive, build_traceframe_info): Likewise.
8786 (tfile_traceframe_info, init_tfile_ops): Likewise.
8787 (_initialize_tracepoint): Don't call init_tfile_ops
8788 and add_target_with_completer.
8789 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8790 exec.h, completer.h and filenames.h.
8791 (_initialize_tracefile_tfile): New function.
8792
7951c4eb
YQ
87932014-02-23 Yao Qi <yao@codesourcery.com>
8794
8795 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8796 tracefile-tfile.o.
8797 (HFILES_NO_SRCDIR): Add tracefile.h.
8798 * ctf.c: Include "tracefile.h".
8799 * tracefile.h: New file.
8800 * tracefile.c: New file
8801 * tracefile-tfile.c: New file.
8802 * tracepoint.c: Include "tracefile.h".
8803 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8804 (stop_reason_names): Add const.
8805 (trace_file_writer_xfree): Move it to tracefile.c.
8806 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8807 (trace_save_ctf): Likewise.
8808 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8809 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8810 (tfile_write_header, tfile_write_regblock_type): Likewise.
8811 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8812 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8813 (tfile_write_raw_data, tfile_end): Likewise.
8814 (tfile_trace_file_writer_new): Likewise.
8815 (free_uploaded_tp): Make it extern.
8816 (free_uploaded_tsv): Make it extern.
8817 (_initialize_tracepoint): Move code to register command 'tsave'
8818 to tracefile.c.
8819 * tracepoint.h (stop_reason_names): Declare.
8820 (struct trace_frame_write_ops): Move it to tracefile.h.
8821 (struct trace_file_write_ops): Likewise.
8822 (struct trace_file_writer): Likewise.
8823 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8824
184cd072
JK
88252014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8826
8827 PR gdb/16594
8828 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8829 process name.
8830 (get_cores_used_by_process): New parameter num_cores, use it.
8831 (linux_xfer_osdata_processes): Pass num_cores to it.
8832 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8833 process name.
8834
c63528fc
AK
88352014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8836
8837 * target.c (memory_xfer_partial): Fix length arg in call to
8838 breakpoint_xfer_memory.
8839
d7b30f67
SDJ
88402014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8841
8842 PR tdep/16397
8843 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8844 number comes after the + or - signs. Adjust length of register
8845 name to be extracted.
8846
8838afaf
TT
88472014-02-20 Tom Tromey <tromey@redhat.com>
8848
8849 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8850 (ada_varobj_ops): Mark "extern".
8851
05227d14
TT
88522014-02-20 Tom Tromey <tromey@redhat.com>
8853
8854 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8855
1254eefc
DE
88562014-02-20 Doug Evans <xdje42@gmail.com>
8857
8858 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8859 All callers updated.
8860 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8861 All callers updated.
8862 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8863 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8864
adde2bff
DE
88652014-02-20 lin zuojian <manjian2006@gmail.com>
8866 Joel Brobecker <brobecker@adacore.com>
8867 Doug Evans <xdje42@gmail.com>
8868
8869 PR symtab/16581
8870 * dwarf2read.c (struct die_info): New member in_process.
8871 (reset_die_in_process): New function.
8872 (process_die): Set it at the start, reset when returning.
8873 (inherit_abstract_dies): Only call process_die if origin_child_die
8874 not already being processed.
8875
3be75f87
JB
88762014-02-20 Joel Brobecker <brobecker@adacore.com>
8877
8878 * windows-nat.c (handle_unload_dll): Add function documentation.
8879 (do_initial_windows_stuff): Add comment explaining why we wait
8880 until after inferior initialization has finished before
8881 processing all DLLs.
8882
47f7ffdb
JB
88832014-02-20 Joel Brobecker <brobecker@adacore.com>
8884
8885 * windows-nat.c (get_module_name): Delete.
8886 (windows_get_exec_module_filename): New function, mostly
8887 inspired from get_module_name.
8888 (windows_pid_to_exec_file): Replace call to get_module_name
8889 by call to windows_get_exec_module_filename.
8890
1cd9feab
JB
88912014-02-20 Joel Brobecker <brobecker@adacore.com>
8892
8893 * windows-nat.c (handle_load_dll): Rewrite this function's
8894 introductory comment. Remove code using get_module_name
8895 to get the DLL's name.
8896
ea39ad35
JB
88972014-02-20 Joel Brobecker <brobecker@adacore.com>
8898
8899 * windows-nat.c (get_windows_debug_event): Ignore
8900 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8901 if windows_initialization_done == 0.
8902 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8903 Adjust implementation to always load all DLLs.
8904 (do_initial_windows_stuff): Replace call to
8905 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8906
95060284
JB
89072014-02-20 Joel Brobecker <brobecker@adacore.com>
8908
8909 * windows-nat.c (_initialize_windows_nat): Deprecate the
8910 "dll-symbols" command. Turn the "add-shared-symbol-files"
8911 and "assf" aliases into commands, and deprecate them as well.
8912 * NEWS: Add entry explaining that "dll-symbols" and its two
8913 aliases are now deprecated.
8914
8d4fdb12
JB
89152014-02-20 Joel Brobecker <brobecker@adacore.com>
8916
8917 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8918 new-line in debug string. Remove trailing spaces.
8919
1b281443
SS
89202014-02-19 Stan Shebs <stan@codesourcery.com>
8921
8922 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8923
f7bd0f78
SC
89242014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8925
8926 * NEWS: Add entry for the new feature
8927 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8928 and class values.
8929
399ebc3d
SS
89302014-02-19 Stan Shebs <stan@codesourcery.com>
8931
8932 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8933
c658158d
PA
89342014-02-19 Pedro Alves <palves@redhat.com>
8935
8936 * common/ptid.h (struct ptid): Mention that process_stratum
8937 targets should prefer ptid.lwp.
8938
ba348170
PA
89392014-02-19 Pedro Alves <palves@redhat.com>
8940
8941 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8942 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8943 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8944 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8945 store remote thread ids rather than ptid.tid.
8946 (_initialize_remote): Adjust.
8947
ac01945b
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.c (target_get_unwinder): Rewrite.
8951 (target_get_tailcall_unwinder): Rewrite.
8952 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8953 (record_btrace_to_get_tailcall_unwinder): New function.
8954 (init_record_btrace_ops): Update.
8955 * target.h (struct target_ops) <to_get_unwinder,
8956 to_get_tailcall_unwinder>: Now function pointers. Use
8957 TARGET_DEFAULT_RETURN.
8958
8476dc92
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8962 argument.
8963 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8964
c0eca49f
TT
89652014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8968 directly.
8969 * target-delegates.c: Rebuild.
8970 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8971 TARGET_DEFAULT_FUNC.
8972 * target.c (default_target_decr_pc_after_break): Rename from
8973 forward_target_decr_pc_after_break. Simplify.
8974 (target_decr_pc_after_break): Rely on delegation.
8975
596b6b39
TT
89762014-02-19 Tom Tromey <tromey@redhat.com>
8977
8978 * target.c (update_current_target): Do not INHERIT to_doc or
8979 to_magic. Do not de_fault to_open or to_close.
8980
b427c1bc
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * gcore.h (objfile_find_memory_regions): Declare.
8984 * gcore.c (objfile_find_memory_regions): No longer static. Add
8985 "self" argument.
8986 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8987 * exec.c: Include gcore.h.
8988 (exec_set_find_memory_regions): Remove.
8989 (exec_find_memory_regions): Remove.
8990 (exec_do_find_memory_regions): Remove.
8991 (init_exec_ops): Update.
8992 * defs.h (exec_set_find_memory_regions): Remove.
8993
9b144037
TT
89942014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.h (struct target_ops) <to_extra_thread_info,
8998 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8999 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9000 not 0, in TARGET_DEFAULT_RETURN.
9001
555bbdeb
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target.c (complete_target_initialization): Remove casts. Use
9005 return_zero_has_execution.
9006 (return_zero): Add "ignore" argument.
9007 (return_zero_has_execution): New function.
9008 (init_dummy_target): Remove casts. Use
9009 return_zero_has_execution.
9010
be4ddd36
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.c (update_current_target): Update comments. Do not
9014 INHERIT to_stratum.
9015
2117c711
TT
90162014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9019 needed.
9020 * corelow.c (core_read_description): Delegate when needed.
9021 * remote.c (remote_read_description): Delegate when needed.
9022 * target-delegates.c: Rebuild.
9023 * target.c (target_read_description): Rewrite.
9024 * target.h (struct target_ops) <to_read_description>: Update
9025 comment. Use TARGET_DEFAULT_RETURN.
9026
e88ef65c
TT
90272014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_can_run.
9032 (find_default_run_target): Check against delegate_can_run.
9033 * target.h (struct target_ops) <to_can_run>: Use
9034 TARGET_DEFAULT_RETURN.
9035
86a0854a
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (target_disconnect): Unconditionally delegate.
9040 * target.h (struct target_ops) <to_disconnect>: Use
9041 TARGET_DEFAULT_NORETURN.
9042
ee97f592
TT
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * record.c (record_stop): Unconditionally delegate.
9046 * target-delegates.c: Rebuild.
9047 * target.c (target_stop_recording): Unconditionally delegate.
9048 * target.h (struct target_ops) <to_stop_recording>: Use
9049 TARGET_DEFAULT_IGNORE.
9050
6dc7fcf4
TT
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (target_enable_btrace): Unconditionally delegate.
9055 * target.h (struct target_ops) <to_enable_btrace>: Use
9056 TARGET_DEFAULT_NORETURN.
9057
eb5b20d4
TT
90582014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target-delegates.c: Rebuild.
9061 * target.c (target_read_btrace): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_read_btrace>: Use
9063 TARGET_DEFAULT_NORETURN.
9064
9ace480d
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (target_teardown_btrace): Unconditionally delegate.
9069 * target.h (struct target_ops) <to_teardown_btrace>: Use
9070 TARGET_DEFAULT_NORETURN.
9071
8dc292d3
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (target_disable_btrace): Unconditionally delegate.
9076 * target.h (struct target_ops) <to_disable_btrace>: Use
9077 TARGET_DEFAULT_NORETURN.
9078
58a5184e
TT
90792014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target-delegates.c: Rebuild.
9082 * target.c (default_search_memory): New function.
9083 (simple_search_memory): Update comment.
9084 (target_search_memory): Unconditionally delegate.
9085 * target.h (struct target_ops) <to_search_memory>: Use
9086 TARGET_DEFAULT_FUNC.
9087
8de71aab
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * auxv.c (default_auxv_parse): No longer static.
9091 (target_auxv_parse): Unconditionally delegate.
9092 * auxv.h (default_auxv_parse): Declare.
9093 * target-delegates.c: Rebuild.
9094 * target.c: Include auxv.h.
9095 * target.h (struct target_ops) <to_auxv_parse>: Use
9096 TARGET_DEFAULT_FUNC.
9097
6b2c5a57
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (target_memory_map): Unconditionally delegate.
9102 * target.h (struct target_ops) <to_memory_map>: Use
9103 TARGET_DEFAULT_RETURN.
9104
cbffc065
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target-delegates.c: Rebuild.
9108 * target.c (target_thread_alive): Unconditionally delegate.
9109 * target.h (struct target_ops) <to_thread_alive>: Use
9110 TARGET_DEFAULT_RETURN.
9111
f09e2107
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target-delegates.c: Rebuild.
9115 * target.c (target_save_record): Unconditionally delegate.
9116 * target.h (struct target_ops) <to_save_record>: Use
9117 TARGET_DEFAULT_NORETURN.
9118
07366925
TT
91192014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target-delegates.c: Rebuild.
9122 * target.c (target_delete_record): Unconditionally delegate.
9123 * target.h (struct target_ops) <to_delete_record>: Use
9124 TARGET_DEFAULT_NORETURN.
9125
dd2e9d25
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target-delegates.c: Rebuild.
9129 * target.c (target_record_is_replaying): Unconditionally
9130 delegate.
9131 * target.h (struct target_ops) <to_record_is_replaying>: Use
9132 TARGET_DEFAULT_RETURN.
9133
671e76cc
TT
91342014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target-delegates.c: Rebuild.
9137 * target.c (target_goto_record_begin): Unconditionally delegate.
9138 * target.h (struct target_ops) <to_goto_record_begin>: Use
9139 TARGET_DEFAULT_NORETURN.
9140
e9179bb3
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (target_goto_record_end): Unconditionally delegate.
9145 * target.h (struct target_ops) <to_goto_record_end>: Use
9146 TARGET_DEFAULT_NORETURN.
9147
05969c84
TT
91482014-02-19 Tom Tromey <tromey@redhat.com>
9149
9150 * target-delegates.c: Rebuild.
9151 * target.c (target_goto_record): Unconditionally delegate.
9152 * target.h (struct target_ops) <to_goto_record>: Use
9153 TARGET_DEFAULT_NORETURN.
9154
3679abfa
TT
91552014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target-delegates.c: Rebuild.
9158 * target.c (target_insn_history): Unconditionally delegate.
9159 * target.h (struct target_ops) <to_insn_history>: Use
9160 TARGET_DEFAULT_NORETURN.
9161
8444ab58
TT
91622014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target-delegates.c: Rebuild.
9165 * target.c (target_insn_history_from): Unconditionally delegate.
9166 * target.h (struct target_ops) <to_insn_history_from>: Use
9167 TARGET_DEFAULT_NORETURN.
9168
c29302cc
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target-delegates.c: Rebuild.
9172 * target.c (target_insn_history_range): Unconditionally delegate.
9173 * target.h (struct target_ops) <to_insn_history_range>: Use
9174 TARGET_DEFAULT_NORETURN.
9175
170049d4
TT
91762014-02-19 Tom Tromey <tromey@redhat.com>
9177
9178 * target-delegates.c: Rebuild.
9179 * target.c (target_call_history): Unconditionally delegate.
9180 * target.h (struct target_ops) <to_call_history>: Use
9181 TARGET_DEFAULT_NORETURN.
9182
16fc27d6
TT
91832014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target-delegates.c: Rebuild.
9186 * target.c (target_call_history_from): Unconditionally delegate.
9187 * target.h (struct target_ops) <to_call_history_from>: Use
9188 TARGET_DEFAULT_NORETURN.
9189
115d9817
TT
91902014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target-delegates.c: Rebuild.
9193 * target.c (target_call_history_range): Unconditionally delegate.
9194 * target.h (struct target_ops) <to_call_history_range>: Use
9195 TARGET_DEFAULT_NORETURN.
9196
eb276a6b
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (target_verify_memory): Unconditionally delegate.
9201 * target.h (struct target_ops) <to_verify_memory>: Use
9202 TARGET_DEFAULT_NORETURN.
9203
9e538d0d
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target-delegates.c: Rebuild.
9207 * target.c (target_core_of_thread): Unconditionally delegate.
9208 * target.h (struct target_ops) <to_core_of_thread>: Use
9209 TARGET_DEFAULT_RETURN.
9210
f6fb2925
TT
92112014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target-delegates.c: Rebuild.
9214 * target.c (target_flash_done): Unconditionally delegate.
9215 * target.h (struct target_ops) <to_flash_done>: Use
9216 TARGET_DEFAULT_NORETURN.
9217
e8a6c6ac
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target-delegates.c: Rebuild.
9221 * target.c (target_flash_erase): Unconditionally delegate.
9222 * target.h (struct target_ops) <to_flash_erase>: Use
9223 TARGET_DEFAULT_NORETURN.
9224
7e35c012
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target-delegates.c: Rebuild.
9228 * target.c (target_get_section_table): Unconditionally delegate.
9229 * target.h (struct target_ops) <to_get_section_table>: Use
9230 TARGET_DEFAULT_RETURN.
9231
770234d3
TT
92322014-02-19 Tom Tromey <tromey@redhat.com>
9233
9234 * target-delegates.c: Rebuild.
9235 * target.c (target_pid_to_str): Unconditionally delegate.
9236 (init_dummy_target): Don't initialize to_pid_to_str.
9237 (default_pid_to_str): Rename from dummy_pid_to_str.
9238 * target.h (struct target_ops) <to_pid_to_str>: Use
9239 TARGET_DEFAULT_FUNC.
9240
09b0dc2b
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target-delegates.c: Rebuild.
9244 * target.c (target_find_new_threads): Unconditionally delegate.
9245 * target.h (struct target_ops) <to_find_new_threads>: Use
9246 TARGET_DEFAULT_RETURN.
9247
7d4f8efa
TT
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target-delegates.c: Rebuild.
9251 * target.c (target_program_signals): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_program_signals>: Use
9253 TARGET_DEFAULT_IGNORE.
9254
035cad7f
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_pass_signals): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_pass_signals>: Use
9260 TARGET_DEFAULT_IGNORE.
9261
8d657035
TT
92622014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (default_mourn_inferior): New function.
9266 (target_mourn_inferior): Unconditionally delegate.
9267 * target.h (struct target_ops) <to_mourn_inferior>: Use
9268 TARGET_DEFAULT_FUNC.
9269
098dba18
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (default_follow_fork): New function.
9274 (target_follow_fork): Unconditionally delegate.
9275 * target.h (struct target_ops) <to_follow_fork>: Use
9276 TARGET_DEFAULT_FUNC.
9277
423a4807
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (target_kill): Unconditionally delegate.
9282 * target.h (struct target_ops) <to_kill>: Use
9283 TARGET_DEFAULT_NORETURN.
9284
6c7e5e5c
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (target_masked_watch_num_registers): Unconditionally
9289 delegate.
9290 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9291 Use TARGET_DEFAULT_RETURN.
9292
8b1c364c
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target-delegates.c: Rebuild.
9296 * target.c (target_remove_mask_watchpoint): Unconditionally
9297 delegate.
9298 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9299 TARGET_DEFAULT_RETURN.
9300
cd4ae029
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (target_insert_mask_watchpoint): Unconditionally
9305 delegate.
9306 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9307 TARGET_DEFAULT_RETURN.
9308
a134316b
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (target_ranged_break_num_registers): Unconditionally
9313 delegate.
9314 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9315 Use TARGET_DEFAULT_RETURN.
9316
ad5989bd
TT
93172014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (target_fetch_registers): Unconditionally delegate.
9321 * target.h (struct target_ops) <to_fetch_registers>: Use
9322 TARGET_DEFAULT_NORETURN.
9323
46ee7e8d
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target-delegates.c: Rebuild.
9327 * target.c (update_current_target): Don't inherit or default
9328 to_stop.
9329 * target.h (struct target_ops) <to_stop>: Use
9330 TARGET_DEFAULT_IGNORE.
9331
843f59ed
TT
93322014-02-19 Tom Tromey <tromey@redhat.com>
9333
9334 * target-delegates.c: Rebuild.
9335 * target.c (update_current_target): Don't inherit or default
9336 to_can_run_breakpoint_commands.
9337 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9338 Use TARGET_DEFAULT_RETURN.
9339
ccfde2a0
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target-delegates.c: Rebuild.
9343 * target.c (update_current_target): Don't inherit or default
9344 to_supports_evaluation_of_breakpoint_conditions.
9345 * target.h (struct target_ops)
9346 <to_supports_evaluation_of_breakpoint_conditions>: Use
9347 TARGET_DEFAULT_RETURN.
9348
0de91722
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9353 to_augmented_libraries_svr4_read.
9354 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9355 Use TARGET_DEFAULT_RETURN.
9356
9a7d8b48
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.c (update_current_target): Don't inherit or default
9361 to_can_use_agent.
9362 * target.h (struct target_ops) <to_can_use_agent>: Use
9363 TARGET_DEFAULT_RETURN.
9364
d9db5b21
TT
93652014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_use_agent.
9370 * target.h (struct target_ops) <to_use_agent>: Use
9371 TARGET_DEFAULT_NORETURN.
9372
92155eeb
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target-delegates.c: Rebuild.
9376 * target.c (update_current_target): Don't inherit or default
9377 to_traceframe_info.
9378 (return_null): Remove.
9379 * target.h (struct target_ops) <to_traceframe_info>: Use
9380 TARGET_DEFAULT_RETURN.
9381
d6522a22
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_static_tracepoint_markers_by_strid.
9387 * target.h (struct target_ops)
9388 <to_static_tracepoint_markers_by_strid>: Use
9389 TARGET_DEFAULT_NORETURN.
9390
4c3e4425
TT
93912014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target-delegates.c: Rebuild.
9394 * target.c (update_current_target): Don't inherit or default
9395 to_static_tracepoint_marker_at.
9396 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9397 Use TARGET_DEFAULT_RETURN.
9398
dcd6917f
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_set_permissions.
9404 * target.h (struct target_ops) <to_set_permissions>: Use
9405 TARGET_DEFAULT_IGNORE.
9406
22bcceee
TT
94072014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target-delegates.c: Rebuild.
9410 * target.c (update_current_target): Don't inherit or default
9411 to_get_tib_address.
9412 * target.h (struct target_ops) <to_get_tib_address>: Use
9413 TARGET_DEFAULT_NORETURN.
9414
8586ccaa
TT
94152014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target-delegates.c: Rebuild.
9418 * target.c (update_current_target): Don't inherit or default
9419 to_set_trace_notes.
9420 * target.h (struct target_ops) <to_set_trace_notes>: Use
9421 TARGET_DEFAULT_RETURN.
9422
91df8d1d
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't initialize
9427 to_set_trace_buffer_size.
9428 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9429 TARGET_DEFAULT_IGNORE.
9430
8d526939
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (update_current_target): Don't inherit or default
9435 to_set_circular_trace_buffer.
9436 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9437 TARGET_DEFAULT_IGNORE.
9438
0bcfeddf
TT
94392014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target-delegates.c: Rebuild.
9442 * target.c (update_current_target): Don't inherit or default
9443 to_set_disconnected_tracing.
9444 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9445 TARGET_DEFAULT_IGNORE.
9446
9249843f
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (update_current_target): Don't inherit or default
9451 to_get_min_fast_tracepoint_insn_len.
9452 (return_minus_one): Remove.
9453 * target.h (struct target_ops)
9454 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9455
ace92e7d
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9460 to_get_raw_trace_data.
9461 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9462 TARGET_DEFAULT_NORETURN.
9463
08120467
TT
94642014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (update_current_target): Don't inherit or default
9468 to_upload_trace_state_variables.
9469 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9470 Use TARGET_DEFAULT_RETURN.
9471
1e949b00
TT
94722014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target-delegates.c: Rebuild.
9475 * target.c (update_current_target): Don't inherit or default
9476 to_upload_tracepoints.
9477 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9478 TARGET_DEFAULT_RETURN.
9479
a2e6c147
TT
94802014-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_save_trace_data.
9485 * target.h (struct target_ops) <to_save_trace_data>: Use
9486 TARGET_DEFAULT_NORETURN.
9487
959bcd0b
TT
94882014-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_trace_state_variable_value.
9493 * target.h (struct target_ops)
9494 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9495
afc94e66
TT
94962014-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_trace_find.
9501 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9502
e51c07ea
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_trace_stop.
9508 * target.h (struct target_ops) <to_trace_stop>: Use
9509 TARGET_DEFAULT_NORETURN.
9510
6fea14cd
TT
95112014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target-delegates.c: Rebuild.
9514 * target.c (update_current_target): Don't inherit or default
9515 to_get_tracepoint_status.
9516 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9517 TARGET_DEFAULT_NORETURN.
9518
4072d4ff
TT
95192014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target-delegates.c: Rebuild.
9522 * target.c (update_current_target): Don't inherit or default
9523 to_get_trace_status.
9524 * target.h (struct target_ops) <to_get_trace_status>: Use
9525 TARGET_DEFAULT_RETURN.
9526
25da2e80
TT
95272014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target-delegates.c: Rebuild.
9530 * target.c (update_current_target): Don't inherit or default
9531 to_trace_start.
9532 * target.h (struct target_ops) <to_trace_start>: Use
9533 TARGET_DEFAULT_NORETURN.
9534
86dd181d
TT
95352014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target-delegates.c: Rebuild.
9538 * target.c (update_current_target): Don't inherit or default
9539 to_trace_set_readonly_regions.
9540 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9541 Use TARGET_DEFAULT_NORETURN.
9542
05c41993
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9547 to_disable_tracepoint.
9548 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9549 TARGET_DEFAULT_NORETURN.
9550
151f70f1
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target-delegates.c: Rebuild.
9554 * target.c (update_current_target): Don't inherit or default
9555 to_enable_tracepoint.
9556 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9557 TARGET_DEFAULT_NORETURN.
9558
94eb98b9
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't inherit or default
9563 to_download_trace_state_variable.
9564 * target.h (struct target_ops) <to_download_trace_state_variable>:
9565 Use TARGET_DEFAULT_NORETURN.
9566
719acc4a
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9571 to_can_download_tracepoint.
9572 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9573 TARGET_DEFAULT_RETURN.
9574
9a980a22
TT
95752014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target-delegates.c: Rebuild.
9578 * target.c (update_current_target): Don't inherit or default
9579 to_download_tracepoint.
9580 * target.h (struct target_ops) <to_download_tracepoint>: Use
9581 TARGET_DEFAULT_NORETURN.
9582
5536135b
TT
95832014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_trace_init.
9588 * target.h (struct target_ops) <to_trace_init>: Use
9589 TARGET_DEFAULT_RETURN.
9590
9409d39e
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target-delegates.c: Rebuild.
9594 * target.c (update_current_target): Don't inherit or default
9595 to_supports_string_tracing.
9596 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9597 TARGET_DEFAULT_RETURN.
9598
aab1b22d
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target-delegates.c: Rebuild.
9602 * target.c (update_current_target): Don't inherit or default
9603 to_supports_enable_disable_tracepoint.
9604 * target.h (struct target_ops)
9605 <to_supports_enable_disable_tracepoint>: Use
9606 TARGET_DEFAULT_RETURN.
9607
a7304748
TT
96082014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_supports_multi_process.
9613 * target.h (struct target_ops) <to_supports_multi_process>: Use
9614 TARGET_DEFAULT_RETURN.
9615
4229b31d
TT
96162014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9620 to_get_ada_task_ptid.
9621 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9622 TARGET_DEFAULT_FUNC.
9623
43eba180
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9628 to_thread_architecture.
9629 * target.h (struct target_ops) <to_thread_architecture>: Use
9630 TARGET_DEFAULT_FUNC.
9631
fe31bf5b
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9636 to_execution_direction.
9637 * target.h (struct target_ops) <to_execution_direction>: Use
9638 TARGET_DEFAULT_FUNC.
9639
53e1cfc7
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target-delegates.c: Rebuild.
9643 * target.c (update_current_target): Don't inherit or default
9644 to_can_execute_reverse.
9645 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9646 TARGET_DEFAULT_RETURN.
9647 (target_can_execute_reverse): Unconditionally delegate.
9648
9bb9d61d
TT
96492014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target-delegates.c: Rebuild.
9652 * target.c (update_current_target): Don't inherit or default
9653 to_goto_bookmark.
9654 (dummy_goto_bookmark): Remove.
9655 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9656 * target.h (struct target_ops) <to_goto_bookmark>: Use
9657 TARGET_DEFAULT_NORETURN.
9658
3dbafbbb
TT
96592014-02-19 Tom Tromey <tromey@redhat.com>
9660
9661 * target-delegates.c: Rebuild.
9662 * target.c (update_current_target): Don't inherit or default
9663 to_get_bookmark.
9664 (dummy_get_bookmark): Remove.
9665 (init_dummy_target): Don't inherit or default to_get_bookmark.
9666 * target.h (struct target_ops) <to_get_bookmark>: Use
9667 TARGET_DEFAULT_NORETURN
9668
16f796b1
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target-delegates.c: Rebuild.
9672 * target.c (update_current_target): Don't inherit or default
9673 to_make_corefile_notes.
9674 (init_dummy_target): Don't initialize to_make_corefile_notes.
9675 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9676 TARGET_DEFAULT_FUNC.
9677
0b5a2719
TT
96782014-02-19 Tom Tromey <tromey@redhat.com>
9679
9680 * target-delegates.c: Rebuild.
9681 * target.c (update_current_target): Don't inherit or default
9682 to_find_memory_regions.
9683 (init_dummy_target): Don't initialize to_find_memory_regions.
9684 * target.h (struct target_ops) <to_find_memory_regions>: Use
9685 TARGET_DEFAULT_FUNC.
9686
d9cb0195
TT
96872014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target-delegates.c: Rebuild.
9690 * target.c (update_current_target): Don't inherit or default
9691 to_log_command.
9692 * target.h (struct target_ops) <to_log_command>: Use
9693 TARGET_DEFAULT_IGNORE.
9694 (target_log_command): Unconditionally delegate.
9695
830ca330
TT
96962014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target-delegates.c: Rebuild.
9699 * target.c (update_current_target): Don't inherit or default
9700 to_pid_to_exec_file.
9701 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9702 TARGET_DEFAULT_RETURN.
9703
825828fc
TT
97042014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target-delegates.c: Rebuild.
9707 * target.c (update_current_target): Don't inherit or default
9708 to_thread_name.
9709 (target_thread_name): Unconditionally delegate.
9710 * target.h (struct target_ops) <to_thread_name>: Use
9711 TARGET_DEFAULT_RETURN.
9712
4a7e6dda
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target-delegates.c: Rebuild.
9716 * target.c (update_current_target): Don't inherit or default
9717 to_extra_thread_info.
9718 * target.h (struct target_ops) <to_extra_thread_info>: Use
9719 TARGET_DEFAULT_RETURN.
9720
0db88c1d
TT
97212014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_has_exited.
9726 * target.h (struct target_ops) <to_has_exited>: Use
9727 TARGET_DEFAULT_RETURN..
9728
6a9fa051
TT
97292014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_set_syscall_catchpoint.
9734 (return_one): Remove.
9735 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9736 TARGET_DEFAULT_RETURN.
9737
62f64d7a
TT
97382014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target-delegates.c: Rebuild.
9741 * target.c (update_current_target): Don't inherit or default
9742 to_insert_exec_catchpoint.
9743 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9744 TARGET_DEFAULT_RETURN.
9745
cda0f38c
TT
97462014-01-08 Tom Tromey <tromey@redhat.com>
9747
9748 * target-delegates.c: Rebuild.
9749 * target.c (update_current_target): Don't inherit or default
9750 to_insert_exec_catchpoint.
9751 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9752 TARGET_DEFAULT_RETURN.
9753
95c3375e
TT
97542014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target-delegates.c: Rebuild.
9757 * target.c (update_current_target): Don't inherit or default
9758 to_remove_vfork_catchpoint.
9759 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9760 TARGET_DEFAULT_RETURN.
9761
7e18a8dc
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9766 to_insert_vfork_catchpoint.
9767 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9768 TARGET_DEFAULT_RETURN.
9769
e1a21fb7
TT
97702014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_remove_fork_catchpoint.
9775 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9776 TARGET_DEFAULT_RETURN.
9777
5958ebeb
TT
97782014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_insert_fork_catchpoint.
9783 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9784 TARGET_DEFAULT_RETURN.
9785
340ba4bf
TT
97862014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9790 to_post_startup_inferior.
9791 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9792 TARGET_DEFAULT_IGNORE.
9793
7634da87
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_load.
9799 * target.h (struct target_ops) <to_load>: Use
9800 TARGET_DEFAULT_NORETURN.
9801
e19e919f
TT
98022014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_terminal_info.
9807 * target.h (struct target_ops) <to_terminal_info>: Use
9808 TARGET_DEFAULT_FUNC.
9809
c6ea8f79
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_terminal_save_ours.
9815 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9816 TARGET_DEFAULT_IGNORE.
9817
e4a733f1
TT
98182014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_terminal_ours.
9823 * target.h (struct target_ops) <to_terminal_ours>: Use
9824 TARGET_DEFAULT_IGNORE.
9825
74fcbef9
TT
98262014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target-delegates.c: Rebuild.
9829 * target.c (update_current_target): Don't inherit or default
9830 to_terminal_ours_for_output.
9831 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9832 TARGET_DEFAULT_IGNORE.
9833
ddeaacc9
TT
98342014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target-delegates.c: Rebuild.
9837 * target.c (update_current_target): Don't inherit or default
9838 to_terminal_inferior.
9839 * target.h (struct target_ops) <to_terminal_inferior>: Use
9840 TARGET_DEFAULT_IGNORE.
9841
0343661d
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (update_current_target): Don't inherit or default
9846 to_terminal_init.
9847 * target.h (struct target_ops) <to_terminal_init>: Use
9848 TARGET_DEFAULT_IGNORE.
9849
77cdffe9
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target-delegates.c: Rebuild.
9853 * target.c (update_current_target): Don't inherit or default
9854 to_can_accel_watchpoint_condition.
9855 * target.h (struct target_ops)
9856 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9857
d03655e4
TT
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9862 to_region_ok_for_hw_watchpoint.
9863 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9864 Use TARGET_DEFAULT_FUNC.
9865
65f160a9
TT
98662014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target-delegates.c: Rebuild.
9869 * target.c (update_current_target): Don't inherit or default
9870 to_watchpoint_addr_within_range.
9871 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9872 Use TARGET_DEFAULT_FUNC.
9873
61dd109f
TT
98742014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target-delegates.c: Rebuild.
9877 * target.c (update_current_target): Don't inherit or default
9878 to_remove_watchpoint.
9879 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9880 TARGET_DEFAULT_NORETURN.
9881
016facd4
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_insert_watchpoint.
9887 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9888 TARGET_DEFAULT_RETURN.
9889
418dabac
TT
98902014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target-delegates.c: Rebuild.
9893 * target.c (update_current_target): Don't inherit or default
9894 to_remove_hw_breakpoint.
9895 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9896 TARGET_DEFAULT_RETURN.
9897
61b371f9
TT
98982014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target-delegates.c: Rebuild.
9901 * target.c (update_current_target): Don't inherit or default
9902 to_insert_hw_breakpoint.
9903 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9904 TARGET_DEFAULT_RETURN.
9905
52b51d06
TT
99062014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target-delegates.c: Rebuild.
9909 * target.c (update_current_target): Don't inherit or default
9910 to_can_use_hw_breakpoint.
9911 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9912 TARGET_DEFAULT_RETURN.
9913
f86e59b2
TT
99142014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * target-delegates.c: Rebuild.
9917 * target.c (update_current_target): Don't inherit or default
9918 to_files_info.
9919 * target.h (struct target_ops) <to_files_info>: Use
9920 TARGET_DEFAULT_IGNORE.
9921
6c628163
TT
99222014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9926 to_store.
9927 * target.h (struct target_ops) <to_store>: Use
9928 TARGET_DEFAULT_NORETURN.
9929
bebd3233
TT
99302014-02-19 Tom Tromey <tromey@redhat.com>
9931
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9934 to_post_attach.
9935 * target.h (struct target_ops) <to_post_attach>: Use
9936 TARGET_DEFAULT_IGNORE.
9937
a53f3625
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target-delegates.c: Rebuild.
9941 * target.c (update_current_target): Don't inherit or default
9942 to_rcmd.
9943 (default_rcmd): New function.
9944 (do_monitor_command): Unconditionally delegate.
9945 * target.h (struct target_ops) <to_rmcd>: Use
9946 TARGET_DEFAULT_FUNC.
9947
e9a29200
TT
99482014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (init_dummy_target): Don't initialize to_attach.
9952 (target_attach): Unconditionally delegate.
9953 * target.h (struct target_ops) <to_attach>: Use
9954 TARGET_DEFAULT_FUNC.
9955
09da0d0a
TT
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target-delegates.c: Rebuild.
9959 * target.c (target_detach): Unconditionally delegate.
9960 (init_dummy_target): Don't initialize to_detach.
9961 * target.h (struct target_ops) <to_detach>: Use
9962 TARGET_DEFAULT_IGNORE.
9963
5436ff03
TT
99642014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9967 Add argument.
9968 (target_augmented_libraries_svr4_read): Add argument.
9969 * target.c (update_current_target): Update.
9970 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9971 argument.
9972
f0d960ea
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_call_history_range>: Add
9976 argument.
9977 * target.c (target_call_history_range): Add argument.
9978 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9979 argument.
9980 (record_btrace_call_history_from): Update.
9981
ec0aea04
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target.h (struct target_ops) <to_call_history_from>: Add
9985 argument.
9986 * target.c (target_call_history_from): Add argument.
9987 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9988 argument.
9989
5df2fcba
TT
99902014-02-19 Tom Tromey <tromey@redhat.com>
9991
9992 * target.h (struct target_ops) <to_call_history>: Add argument.
9993 * target.c (target_call_history): Add argument.
9994 * record-btrace.c (record_btrace_call_history): Add 'self'
9995 argument.
9996
4e99c6b7
TT
99972014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target.h (struct target_ops) <to_insn_history_range>: Add
10000 argument.
10001 * target.c (target_insn_history_range): Add argument.
10002 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10003 argument.
10004 (record_btrace_insn_history_from): Update.
10005
9abc3ff3
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target.h (struct target_ops) <to_insn_history_from>: Add
10009 argument.
10010 * target.c (target_insn_history_from): Add argument.
10011 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10012 argument.
10013
7a6c5609
TT
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_insn_history>: Add argument.
10017 * target.c (target_insn_history): Add argument.
10018 * record-btrace.c (record_btrace_insn_history): Add 'self'
10019 argument.
10020
606183ac
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target.h (struct target_ops) <to_goto_record>: Add argument.
10024 * target.c (target_goto_record): Add argument.
10025 * record-full.c (record_full_goto): Add 'self' argument.
10026 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10027
307a1b91
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10031 * target.c (target_goto_record_end): Add argument.
10032 * record-full.c (record_full_goto_end): Add 'self' argument.
10033 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10034
08475817
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target.h (struct target_ops) <to_goto_record_begin>: Add
10038 argument.
10039 * target.c (target_goto_record_begin): Add argument.
10040 * record-full.c (record_full_goto_begin): Add 'self' argument.
10041 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10042 argument.
10043
1c63c994
TT
100442014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target.h (struct target_ops) <to_record_is_replaying>: Add
10047 argument.
10048 * target.c (target_record_is_replaying): Add argument.
10049 * record-full.c (record_full_is_replaying): Add 'self' argument.
10050 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10051 argument.
10052 (record_btrace_xfer_partial, record_btrace_store_registers)
10053 (record_btrace_prepare_to_store, record_btrace_resume)
10054 (record_btrace_wait, record_btrace_decr_pc_after_break)
10055 (record_btrace_find_new_threads, record_btrace_thread_alive):
10056 Update.
10057
d1b55219
TT
100582014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target.h (struct target_ops) <to_delete_record>: Add argument.
10061 * target.c (target_delete_record): Add argument.
10062 * record-full.c (record_full_delete): Add 'self' argument.
10063
1390f529
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_save_record>: Add argument.
10067 * target.c (target_save_record): Add argument.
10068 * record-full.c (record_full_save): Add 'self' argument.
10069 (record_full_save): Add 'self' argument.
10070
630d6a4a
TT
100712014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target.h (struct target_ops) <to_info_record>: Add argument.
10074 * target.c (target_info_record): Add argument.
10075 * record.c (info_record_command): Add argument.
10076 * record-full.c (record_full_info): Add 'self' argument.
10077 * record-btrace.c (record_btrace_info): Add 'self' argument.
10078
c6cd7c02
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10082 * target.c (target_stop_recording): Add argument.
10083 * record.c (record_stop): Add argument.
10084 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10085 argument.
10086
39c49f83
TT
100872014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10090 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10091 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10092 argument.
10093 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10094 (_initialize_amd64_linux_nat): Use it.
10095 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10096 (_initialize_i386_linux_nat): Use it.
10097
1777056d
TT
100982014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10101 * target.c (target_teardown_btrace): Add argument.
10102 * remote.c (remote_teardown_btrace): Add 'self' argument.
10103 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10104 argument.
10105 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10106 argument.
10107
25e95349
TT
101082014-02-19 Tom Tromey <tromey@redhat.com>
10109
10110 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10111 * target.c (target_disable_btrace): Add argument.
10112 * remote.c (remote_disable_btrace): Add 'self' argument.
10113 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10114 argument.
10115 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10116 argument.
10117
e3c49f88
TT
101182014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10121 * target.c (target_enable_btrace): Add argument.
10122 * remote.c (remote_enable_btrace): Add 'self' argument.
10123 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10124 argument.
10125 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10126 argument.
10127
fe38f897
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10131 (target_can_use_agent): Add argument.
10132 * target.c (update_current_target): Update.
10133 * remote.c (remote_can_use_agent): Add 'self' argument.
10134 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10135
2c152180
TT
101362014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.h (struct target_ops) <to_use_agent>: Add argument.
10139 (target_use_agent): Add argument.
10140 * target.c (update_current_target): Update.
10141 * remote.c (remote_use_agent): Add 'self' argument.
10142 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10143
a893e81f
TT
101442014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10147 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10148 (target_traceframe_info): Add argument.
10149 * target.c (update_current_target): Update.
10150 * remote.c (remote_traceframe_info): Add 'self' argument.
10151 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10152
c686c57f
TT
101532014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * target.h (target_static_tracepoint_markers_by_strid): Add
10156 argument.
10157 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10158 'self' argument.
10159 * target.c (update_current_target): Update.
10160 * remote.c (struct target_ops)
10161 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10162 * linux-nat.c (struct target_ops)
10163 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10164
61fc905d
TT
101652014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10168 Add argument.
10169 (target_static_tracepoint_marker_at): Add argument.
10170 * target.c (update_current_target): Update.
10171 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10172 argument.
10173
c378d69d
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10177 (target_set_permissions): Add argument.
10178 * target.c (update_current_target): Update.
10179 * remote.c (remote_set_permissions): Add 'self' argument.
10180 (remote_start_remote): Update.
10181
bd7ae0f5
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10185 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10186 (target_get_tib_address): Add argument.
10187 * target.c (update_current_target): Update.
10188 * remote.c (remote_get_tib_address): Add 'self' argument.
10189
d9e68a2c
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10193 (target_set_trace_notes): Add argument.
10194 * target.c (update_current_target): Update.
10195 * remote.c (remote_set_trace_notes): Add 'self' argument.
10196
4da384be
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10200 argument.
10201 (target_set_trace_buffer_size): Add argument.
10202 * target.c (update_current_target): Update.
10203 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10204
736d5b1f
TT
102052014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10208 argument.
10209 (target_set_circular_trace_buffer): Add argument.
10210 * target.c (update_current_target): Update.
10211 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10212 argument.
10213
37b25738
TT
102142014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10217 argument.
10218 (target_set_disconnected_tracing): Add argument.
10219 * target.c (update_current_target): Update.
10220 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10221
0e67620a
TT
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops)
10225 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10226 (target_get_min_fast_tracepoint_insn_len): Add argument.
10227 * target.c (update_current_target): Update.
10228 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10229 argument.
10230
88ee6f45
TT
102312014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10234 argument.
10235 (target_get_raw_trace_data): Add argument.
10236 * target.c (update_current_target): Update.
10237 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10238
181e3713
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10242 Add argument.
10243 (target_upload_trace_state_variables): Add argument.
10244 * target.c (update_current_target): Update.
10245 * remote.c (remote_upload_trace_state_variables): Add 'self'
10246 argument.
10247 (remote_start_remote): Update.
10248
ab6617cc
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10252 argument.
10253 (target_upload_tracepoints): Add argument.
10254 * target.c (update_current_target): Update.
10255 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10256 (remote_start_remote): Update.
10257
dc3decaf
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10261 (target_save_trace_data): Add argument.
10262 * target.c (update_current_target): Update.
10263 * remote.c (remote_save_trace_data): Add 'self' argument.
10264
4011015b
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10268 argument.
10269 * target.h (struct target_ops)
10270 <to_get_trace_state_variable_value>: Add argument.
10271 (target_get_trace_state_variable_value): Add argument.
10272 * target.c (update_current_target): Update.
10273 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10274 argument.
10275 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10276
bd4c6793
TT
102772014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10280 * target.h (struct target_ops) <to_trace_find>: Add argument.
10281 (target_trace_find): Add argument.
10282 * target.c (update_current_target): Update.
10283 * remote.c (remote_trace_find): Add 'self' argument.
10284 * ctf.c (ctf_trace_find): Add 'self' argument.
10285
74499f1b
TT
102862014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10289 (target_trace_stop): Add argument.
10290 * target.c (update_current_target): Update.
10291 * remote.c (remote_trace_stop): Add 'self' argument.
10292
db90e85c
TT
102932014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10296 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10297 argument.
10298 (target_get_tracepoint_status): Add argument.
10299 * target.c (update_current_target): Update.
10300 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10301
8bd200f1
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10305 * target.h (struct target_ops) <to_get_trace_status>: Add
10306 argument.
10307 (target_get_trace_status): Add argument.
10308 * target.c (update_current_target): Update.
10309 * remote.c (remote_get_trace_status): Add 'self' argument.
10310 (remote_start_remote, remote_can_download_tracepoint): Update.
10311 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10312
e2d1aae3
TT
103132014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target.h (struct target_ops) <to_trace_start>: Add argument.
10316 (target_trace_start): Add argument.
10317 * target.c (update_current_target): Update.
10318 * remote.c (remote_trace_start): Add 'self' argument.
10319
583f9a86
TT
103202014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10323 Add argument.
10324 (target_trace_set_readonly_regions): Add argument.
10325 * target.c (update_current_target): Update.
10326 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10327 argument.
10328
780b049c
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10332 argument.
10333 (target_disable_tracepoint): Add argument.
10334 * target.c (update_current_target): Update.
10335 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10336
46670d57
TT
103372014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10340 argument.
10341 (target_enable_tracepoint): Add argument.
10342 * target.c (update_current_target): Update.
10343 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10344
559d2b81
TT
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target.h (struct target_ops) <to_download_trace_state_variable>:
10348 Add argument.
10349 (target_download_trace_state_variable): Add argument.
10350 * target.c (update_current_target): Update.
10351 * remote.c (remote_download_trace_state_variable): Add 'self'
10352 argument.
10353
a52a8357
TT
103542014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10357 argument.
10358 (target_can_download_tracepoint): Add argument.
10359 * target.c (update_current_target): Update.
10360 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10361
548f7808
TT
103622014-02-19 Tom Tromey <tromey@redhat.com>
10363
10364 * target.h (struct target_ops) <to_download_tracepoint>: Add
10365 argument.
10366 (target_download_tracepoint): Add argument.
10367 * target.c (update_current_target): Update.
10368 * remote.c (remote_download_tracepoint): Add 'self' argument.
10369
ecae04e1
TT
103702014-02-19 Tom Tromey <tromey@redhat.com>
10371
10372 * target.h (struct target_ops) <to_trace_init>: Add argument.
10373 (target_trace_init): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_trace_init): Add 'self' argument.
10376
fab5aa7c
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10380 * target.c (target_fileio_readlink): Add argument.
10381 * remote.c (remote_hostio_readlink): Add 'self' argument.
10382 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10383
dbbca37d
TT
103842014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10387 * target.c (target_fileio_unlink): Add argument.
10388 * remote.c (remote_hostio_unlink): Add 'self' argument.
10389 (remote_file_delete): Update.
10390 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10391
df39ea25
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10395 * target.c (target_fileio_close): Add argument.
10396 * remote.c (remote_hostio_close): Add 'self' argument.
10397 (remote_hostio_close_cleanup): Update.
10398 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10399 Update.
10400 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10401
a3be983c
TT
104022014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10405 * target.c (target_fileio_pread): Add argument.
10406 * remote.c (remote_hostio_pread): Add 'self' argument.
10407 (remote_bfd_iovec_pread, remote_file_get): Update.
10408 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10409
0d866f62
TT
104102014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10413 * target.c (target_fileio_pwrite): Add argument.
10414 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10415 (remote_file_put): Update.
10416 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10417
cd897586
TT
104182014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10421 * target.c (target_fileio_open): Add argument.
10422 * remote.c (remote_hostio_open): Add 'self' argument.
10423 (remote_bfd_iovec_open): Add 'self' argument.
10424 (remote_file_put): Add 'self' argument.
10425 (remote_file_get): Add 'self' argument.
10426 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10427
78eff0ec
TT
104282014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10431 Add argument.
10432 (target_can_run_breakpoint_commands): Add argument.
10433 * target.c (update_current_target): Update.
10434 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10435 argument.
10436 (remote_insert_breakpoint): Add 'self' argument.
10437 (remote_insert_hw_breakpoint): Add 'self' argument.
10438 (remote_can_run_breakpoint_commands): Add 'self' argument.
10439
efcc2da7
TT
104402014-02-19 Tom Tromey <tromey@redhat.com>
10441
10442 * target.h (struct target_ops)
10443 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10444 (target_supports_evaluation_of_breakpoint_conditions): Add
10445 argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10448 argument.
10449 (remote_insert_breakpoint): Add 'self' argument.
10450 (remote_insert_hw_breakpoint): Add 'self' argument.
10451 (remote_supports_cond_breakpoints): Add 'self' argument.
10452
6de37a3a
TT
104532014-02-19 Tom Tromey <tromey@redhat.com>
10454
10455 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10456 argument.
10457 (target_supports_string_tracing): Add argument.
10458 * target.c (update_current_target): Update.
10459 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10460
2bfc0540
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target.h (struct target_ops)
10464 <to_supports_disable_randomization>: Add argument.
10465 * target.c (find_default_supports_disable_randomization): Add
10466 argument.
10467 (target_supports_disable_randomization): Add argument.
10468 (find_default_supports_disable_randomization): Add 'self'
10469 argument.
10470 * remote.c (extended_remote_supports_disable_randomization): Add
10471 'self' argument.
10472 (remote_supports_disable_randomization): Add 'self' argument.
10473 (extended_remote_create_inferior): Update.
10474 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10475 'self' argument.
10476
7d178d6a
TT
104772014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target.h (struct target_ops)
10480 <to_supports_enable_disable_tracepoint>: Add argument.
10481 (target_supports_enable_disable_tracepoint): Add argument.
10482 * target.c (update_current_target): Update.
10483 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10484 argument.
10485
86ce2668
TT
104862014-02-19 Tom Tromey <tromey@redhat.com>
10487
10488 * target.h (struct target_ops) <to_supports_multi_process>: Add
10489 argument.
10490 (target_supports_multi_process): Add argument.
10491 * target.c (update_current_target): Update.
10492 * remote.c (remote_supports_multi_process): Add 'self' argument.
10493 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10494 argument.
10495 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10496 argument.
10497
4c612759
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops) <to_execution_direction>: Add
10501 argument.
10502 (target_execution_direction): Add argument.
10503 * target.c (default_execution_direction): Add 'self' argument.
10504 * record-full.c (record_full_execution_direction): Add 'self'
10505 argument.
10506
19db3e69
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10510 argument.
10511 (target_can_execute_reverse): Add argument.
10512 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10513 * record-full.c (record_full_can_execute_reverse): Add 'self'
10514 argument.
10515 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10516 argument.
10517
1e6b91a4
TT
105182014-02-19 Tom Tromey <tromey@redhat.com>
10519
10520 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10521 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10522 argument.
10523 (target_get_ada_task_ptid): Add argument.
10524 * target.c (update_current_target): Update.
10525 (default_get_ada_task_ptid): Add 'self' argument.
10526 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10527 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10528 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10529 argument.
10530 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10531 argument.
10532 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10533 argument.
10534 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10535 argument.
10536 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10537 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10538 argument.
10539
3c80fb48
TT
105402014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10543 (target_goto_bookmark): Add argument.
10544 * target.c (dummy_goto_bookmark): Add 'self' argument.
10545 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10546
dd0e2830
TT
105472014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10550 (target_get_bookmark): Add argument.
10551 * target.c (dummy_get_bookmark): Add 'self' argument.
10552 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10553
fc6691b2
TT
105542014-02-19 Tom Tromey <tromey@redhat.com>
10555
10556 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10557 argument.
10558 (target_make_corefile_notes): Add argument.
10559 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10560 * procfs.c (procfs_make_note_section): Add 'self' argument.
10561 (procfs_make_note_section): Add 'self' argument.
10562 (procfs_make_note_section): Add 'self' argument.
10563 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10564 argument.
10565 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10566 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10567 * exec.c (exec_make_note_section): Add 'self' argument.
10568 (exec_make_note_section): Add 'self' argument.
10569
2e73927c
TT
105702014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target.h (struct target_ops) <to_find_memory_regions>: Add
10573 argument.
10574 (target_find_memory_regions): Add argument.
10575 * target.c (dummy_find_memory_regions): Add 'self' argument.
10576 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10577 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10578 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10579 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10580 * exec. (exec_do_find_memory_regions): New global.
10581 (exec_set_find_memory_regions): Rewrite.
10582 (exec_find_memory_regions): New function.
10583 (init_exec_ops): Use exec_find_memory_regions.
10584
2a9a2795
TT
105852014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target.h (struct target_ops) <to_supports_non_stop>: Add
10588 argument.
10589 * target.c (find_default_supports_non_stop): Add argument.
10590 (target_supports_non_stop): Add argument.
10591 (find_default_supports_non_stop): Add 'self' argument.
10592 * remote.c (remote_supports_non_stop): Add 'self' argument.
10593 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10594
4ab76ea3
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target.h (struct target_ops) <to_log_command>: Add argument.
10598 (target_log_command): Add argument.
10599 * serial.h (serial_log_command): Add 'self' argument.
10600 * serial.c (serial_log_command): Add 'self' argument.
10601
8dd27370
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10605 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10606 argument.
10607 (target_pid_to_exec_file): Add argument.
10608 * target.c (debug_to_pid_to_exec_file): Add argument.
10609 (update_current_target): Update.
10610 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10611 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10612 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10613 (linux_handle_extended_wait): Update.
10614 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10615 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10616 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10617 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10618
1aac633b
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target.h (struct target_ops) <to_rcmd>: Add argument.
10622 (target_rcmd): Add argument.
10623 * target.c (debug_to_rcmd): Add argument.
10624 (update_current_target, do_monitor_command): Update.
10625 * remote.c (remote_rcmd): Add 'self' argument.
10626 * monitor.c (monitor_rcmd): Add 'self' argument.
10627
1eab8a48
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * windows-nat.c (windows_stop): Add 'self' argument.
10631 * target.h (struct target_ops) <to_stop>: Add argument.
10632 * target.c (target_stop): Add argument.
10633 (debug_to_stop): Add argument.
10634 (update_current_target): Update.
10635 * remote.c (remote_stop): Add 'self' argument.
10636 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10637 (gdbsim_cntrl_c): Update.
10638 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10639 * procfs.c (procfs_stop): Add 'self' argument.
10640 * nto-procfs.c (procfs_stop): Add 'self' argument.
10641 * monitor.c (monitor_stop): Add 'self' argument.
10642 (monitor_open): Update.
10643 * linux-nat.c (linux_nat_stop): Add argument.
10644 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10645 * gnu-nat.c (gnu_stop): Add 'self' argument.
10646 * darwin-nat.c (darwin_stop): Add 'self' argument.
10647
503a628d
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target.h (struct target_ops) <to_thread_name>: Add argument.
10651 * target.c (target_thread_name): Add argument.
10652 (update_current_target): Update.
10653 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10654
c15906d8
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops) <to_extra_thread_info>: Add
10658 argument.
10659 (target_extra_thread_info): Add argument.
10660 * target.c (update_current_target): Update.
10661 * remote.c (remote_threads_extra_info): Add 'self' argument.
10662 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10663 argument.
10664 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10665 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10666 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10667 argument.
10668 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10669 argument.
10670 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10671 argument.
10672 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10673 argument.
10674
daf5e9b6
TT
106752014-02-19 Tom Tromey <tromey@redhat.com>
10676
10677 * target.h (struct target_ops) <to_program_signals>: Add argument.
10678 * target.c (target_program_signals): Add argument.
10679 * remote.c (remote_program_signals): Add 'self' argument.
10680
94bedb42
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10684 * target.c (target_pass_signals): Add argument.
10685 * remote.c (remote_pass_signals): Add 'self' argument.
10686 (remote_start_remote): Update.
10687 * procfs.c (procfs_pass_signals): Add 'self' argument.
10688 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10689 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10690 (linux_nat_create_inferior, linux_nat_attach): Update.
10691
da82bd6b
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * windows-nat.c (windows_can_run): Add 'self' argument.
10695 * target.h (struct target_ops) <to_can_run>: Add argument.
10696 (target_can_run): Add argument.
10697 * target.c (debug_to_can_run): Add argument.
10698 (update_current_target): Update.
10699 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10700 * inf-child.c (inf_child_can_run): Add 'self' argument.
10701 * go32-nat.c (go32_can_run): Add 'self' argument.
10702
d796e1d6
TT
107032014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target.h (struct target_ops) <to_has_exited>: Add argument.
10706 (target_has_exited): Add argument.
10707 * target.c (debug_to_has_exited): Add argument.
10708 (update_current_target): Update.
10709
ff214e67
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10713 argument.
10714 (target_set_syscall_catchpoint): Add argument.
10715 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10716 argument.
10717 * target.c (update_current_target): Update.
10718
758e29d2
TT
107192014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10722 argument.
10723 (target_remove_exec_catchpoint): Add argument.
10724 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10725 (update_current_target): Update.
10726 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10727 argument.
10728
ba025e51
TT
107292014-02-19 Tom Tromey <tromey@redhat.com>
10730
10731 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10732 argument.
10733 (target_insert_exec_catchpoint): Add argument.
10734 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10735 (update_current_target): Update.
10736 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10737 argument.
10738
e98cf0cd
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10742 argument.
10743 (target_remove_vfork_catchpoint): Add argument.
10744 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10745 (update_current_target): Update.
10746 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10747 argument.
10748
3ecc7da0
TT
107492014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10752 argument.
10753 (target_insert_vfork_catchpoint): Add argument.
10754 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10755 (update_current_target): Update.
10756 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10757 argument.
10758
973fc227
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10762 argument.
10763 (target_remove_fork_catchpoint): Add argument.
10764 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10765 (update_current_target): Update.
10766 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10767 argument.
10768
a863b201
TT
107692014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10772 argument.
10773 (target_insert_fork_catchpoint): Add argument.
10774 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10775 (update_current_target): Update.
10776 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10777 argument.
10778
2e97a79e
TT
107792014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10782 argument.
10783 (target_post_startup_inferior): Add argument.
10784 * target.c (debug_to_post_startup_inferior): Add argument.
10785 (update_current_target): Update.
10786 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10787 argument.
10788 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10789 argument.
10790 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10791 argument.
10792 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10793 argument.
10794 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10795 'self' argument.
10796 (super_post_startup_inferior): Likewise.
10797 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10798 'self' argument.
10799 (super_post_startup_inferior): Likewise.
10800 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10801 Add 'self' argument.
10802 (super_post_startup_inferior): Likewise.
10803
71a9f134
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target.h (struct target_ops) <to_load>: Add argument.
10807 * target.c (target_load): Add argument.
10808 (debug_to_load): Add argument.
10809 (update_current_target): Update.
10810 * remote.c (remote_load): Add 'self' argument.
10811 * remote-sim.c (gdbsim_load): Add 'self' argument.
10812 * remote-mips.c (mips_load): Add 'self' argument.
10813 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10814 * monitor.c (monitor_load): Add 'self' argument.
10815 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10816
0a4f40a2
TT
108172014-02-19 Tom Tromey <tromey@redhat.com>
10818
10819 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10820 (target_terminal_info): Add argument.
10821 * target.c (debug_to_terminal_info): Add argument.
10822 (default_terminal_info): Likewise.
10823 * inflow.c (child_terminal_info): Add 'self' argument.
10824 * inferior.h (child_terminal_info): Add 'self' argument.
10825 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10826
ae3bd431
TT
108272014-02-19 Tom Tromey <tromey@redhat.com>
10828
10829 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10830 argument.
10831 (target_terminal_save_ours): Add argument.
10832 * target.c (debug_to_terminal_save_ours): Add argument.
10833 (update_current_target): Update.
10834 * inflow.c (terminal_save_ours): Add 'self' argument.
10835 * inferior.h (terminal_save_ours): Add 'self' argument.
10836
e3594fd1
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10840 (target_terminal_ours): Add argument.
10841 * target.c (debug_to_terminal_ours): Add argument.
10842 (update_current_target): Update.
10843 * remote.c (remote_terminal_ours): Add 'self' argument.
10844 (remote_close): Update.
10845 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10846 * inflow.c (terminal_ours): Add 'self' argument.
10847 * inferior.h (terminal_ours): Add 'self' argument.
10848 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10849
2e1e1a19
TT
108502014-02-19 Pedro Alves <palves@redhat.com>
10851 Tom Tromey <tromey@redhat.com>
10852
10853 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10854 argument.
10855 (target_terminal_ours_for_output): Add argument.
10856 * target.c (debug_to_terminal_ours_for_output): Add argument.
10857 (update_current_target): Update.
10858 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10859 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10860 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10861
d2f640d4
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target.h (struct target_ops) <to_terminal_inferior>: Add
10865 argument.
10866 * target.c (target_terminal_inferior): Add argument.
10867 (update_current_target): Update.
10868 * remote.c (remote_terminal_inferior): Add 'self' argument.
10869 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10870 * inflow.c (terminal_inferior): Add 'self' argument.
10871 * inferior.h (terminal_inferior): Add 'self' argument.
10872 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10873 (go32_terminal_inferior): Add 'self' argument.
10874
c42bf286
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10878 (target_terminal_init): Add argument.
10879 * target.c (debug_to_terminal_init): Add argument.
10880 (update_current_target): Update.
10881 * inflow.c (terminal_init_inferior): Add 'self' argument.
10882 * inferior.h (terminal_init_inferior): Add 'self' argument.
10883 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10884 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10885
c3a5ff89
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target.h (struct target_ops)
10889 <to_can_accel_watchpoint_condition>: Add argument.
10890 (target_can_accel_watchpoint_condition): Add argument.
10891 * target.c (debug_to_can_accel_watchpoint_condition): Add
10892 argument.
10893 (update_current_target): Update.
10894 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10895 'self' argument.
10896
31568a15
TT
108972014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10900 Add argument.
10901 (target_region_ok_for_hw_watchpoint): Add argument.
10902 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10903 (default_region_ok_for_hw_watchpoint): Add argument.
10904 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10905 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10906 argument.
10907 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10908 argument.
10909 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10910 argument.
10911 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10912 'self' argument.
10913 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10914 'self' argument.
10915 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10916 'self' argument.
10917 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10918 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10919 'self' argument.
10920 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10921 Add 'self' argument.
10922
7bb99c53
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10926 argument.
10927 (target_insert_watchpoint): Add argument.
10928 * target.c (debug_to_insert_watchpoint): Add argument.
10929 (update_current_target): Update.
10930 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10931 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10932 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10933 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10934 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10935 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10936 argument.
10937 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10938 (procfs_insert_hw_watchpoint): Add 'self' argument.
10939 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10940 argument.
10941 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10942 argument.
10943 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10944 argument.
10945 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10946 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10947 argument.
10948 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10949 'self' argument.
10950
11b5219a
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10954 argument.
10955 (target_remove_watchpoint): Add argument.
10956 * target.c (debug_to_remove_watchpoint): Add argument.
10957 (update_current_target): Update.
10958 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10959 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10960 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10961 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10962 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10963 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10964 argument.
10965 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10966 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10967 argument.
10968 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10969 argument.
10970 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10971 argument.
10972 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10973 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10974 argument.
10975 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10976 'self' argument.
10977
a64dc96c
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10981 argument.
10982 (target_remove_hw_breakpoint): Add argument.
10983 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10984 (update_current_target): Update.
10985 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10986 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10987 argument.
10988 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10989 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10990 argument.
10991 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10992 'self' argument.
10993
23a26771
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10997 argument.
10998 (target_insert_hw_breakpoint): Add argument.
10999 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11000 (update_current_target): Update.
11001 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11002 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11003 argument.
11004 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11005 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11006 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11007 argument.
11008 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11009 'self' argument.
11010
5461485a
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11014 argument.
11015 (target_can_use_hardware_watchpoint): Add argument.
11016 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11017 (update_current_target): Update.
11018 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11019 argument.
11020 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11021 argument.
11022 * remote.c (remote_check_watch_resources): Add 'self' argument.
11023 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11024 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11025 argument.
11026 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11027 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11028 argument.
11029 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11030 argument.
11031 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11032 argument.
11033 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11034 argument.
11035 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11036 argument.
11037 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11038 argument.
11039 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11040 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11041 argument.
11042 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11043 'self' argument.
11044
f045800c
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (struct target_ops) <to_post_attach>: Add argument.
11048 (target_post_attach): Add argument.
11049 * target.c (debug_to_post_attach): Add argument.
11050 (update_current_target): Update.
11051 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11052 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11053 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11054 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11055 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11056
de90e03d
TT
110572014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * windows-nat.c (windows_close): Add 'self' argument.
11060 * tracepoint.c (tfile_close): Add 'self' argument.
11061 * target.h (struct target_ops) <to_close>: Add argument.
11062 * target.c (target_close): Add argument.
11063 (update_current_target): Update.
11064 * remote.c (remote_close): Add 'self' argument.
11065 * remote-sim.c (gdbsim_close): Add 'self' argument.
11066 * remote-mips.c (mips_close): Add 'self' argument.
11067 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11068 * record-full.c (record_full_close): Add 'self' argument.
11069 * record-btrace.c (record_btrace_close): Add 'self' argument.
11070 * monitor.h (monitor_close): Add 'self' argument.
11071 * monitor.c (monitor_close): Add 'self' argument.
11072 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11073 * linux-nat.c (linux_nat_close): Add argument.
11074 * go32-nat.c (go32_close): Add 'self' argument.
11075 * exec.c (exec_close_1): Add 'self' argument.
11076 * ctf.c (ctf_close): Add 'self' argument.
11077 * corelow.c (core_close): Add 'self' argument.
11078 (core_close_cleanup): Update.
11079 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11080 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11081
9dd130a0
TT
110822014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * remote.c (remote_load): New function.
11085 (init_remote_ops): Use it.
11086
46917d26
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11090 argument.
11091 * common/linux-btrace.h (linux_supports_btrace): Update.
11092 * remote.c (remote_supports_btrace): Add "self" argument.
11093 * target-delegates.c: Rebuild.
11094 * target.c (target_supports_btrace): Remove.
11095 * target.h (struct target_ops) <to_supports_btrace>: Add
11096 target_ops argument.
11097 (target_supports_btrace): New define.
11098
6b84065d
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * record-full.c (record_full_beneath_to_resume_ops)
11102 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11103 (record_full_beneath_to_wait)
11104 (record_full_beneath_to_store_registers_ops)
11105 (record_full_beneath_to_store_registers)
11106 (record_full_beneath_to_xfer_partial_ops)
11107 (record_full_beneath_to_xfer_partial)
11108 (record_full_beneath_to_insert_breakpoint_ops)
11109 (record_full_beneath_to_insert_breakpoint)
11110 (record_full_beneath_to_remove_breakpoint_ops)
11111 (record_full_beneath_to_remove_breakpoint)
11112 (record_full_beneath_to_stopped_by_watchpoint)
11113 (record_full_beneath_to_stopped_data_address)
11114 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11115 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11116 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11117 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11118 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11119 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11120 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11121 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11122 (record_full_resume, record_full_wait_1)
11123 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11124 (record_full_store_registers, record_full_xfer_partial)
11125 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11126 (record_full_async, record_full_core_xfer_partial): Use target
11127 delegation.
11128 * target-delegates.c: Rebuild.
11129 * target.c (current_xfer_partial): Remove.
11130 (update_current_target): Do not INHERIT or de_fault
11131 to_insert_breakpoint, to_remove_breakpoint,
11132 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11133 to_is_async_p, to_async. Do not set to_xfer_partial field.
11134 (default_xfer_partial): Simplify.
11135 (current_xfer_partial): Remove.
11136 (target_wait, target_resume): Simplify.
11137 (find_default_can_async_p, find_default_is_async_p): Update.
11138 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11139 to_xfer_partial, to_stopped_by_watchpoint,
11140 to_stopped_data_address.
11141 (target_store_registers): Simplify.
11142 (forward_target_remove_breakpoint)
11143 (forward_target_insert_breakpoint): Remove.
11144 (target_remove_breakpoint, target_insert_breakpoint)
11145 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11146 * target.h (struct target_ops) <to_resume, to_wait,
11147 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11148 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11149 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11150 markup.
11151 (forward_target_remove_breakpoint)
11152 (forward_target_insert_breakpoint): Remove.
11153 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11154 directly.
11155 (record_btrace_insert_breakpoint): Delegate directly.
11156
1101cb7b
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 PR build/7701:
11160 * target-delegates.c: New file.
11161 * target.c: Include target-delegates.c.
11162 (init_dummy_target): Call install_dummy_methods.
11163 (complete_target_initialization): Call install_delegators.
11164 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11165 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11166 * make-target-delegates: New file.
11167
8b06beed
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * record.c (find_record_target): Use find_target_at.
11171 * target.c (find_target_at): New function.
11172 * target.h (find_target_at): Declare.
11173
6a109b6b
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11177 Add 'ops' argument.
11178 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11179 'ops' argument.
11180 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11181 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11182 'ops' argument.
11183 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11184 argument.
11185 * linux-nat.c (save_sigtrap): Update.
11186 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11187 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11188 (linux_nat_close): Update.
11189 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11190 argument.
11191 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11192 argument.
11193 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11194 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11195 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11196 (tmp_to_async): Add 'ops' argument.
11197 (record_full_stopped_by_watchpoint, record_full_async)
11198 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11199 argument.
11200 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11201 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11202 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11203 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11204 (remote_is_async_p, remote_async): Add 'ops' argument.
11205 (remote_stopped_data_address): Update.
11206 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11207 * target.c (update_current_target)
11208 (find_default_can_async_p, find_default_is_async_p): Update.
11209 (init_dummy_target): Update.
11210 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11211 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11212 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11213 (target_can_async_p, target_is_async_p, target_async)
11214 (target_stopped_by_watchpoint): Update.
11215
e095146b
YQ
112162014-02-19 Yao Qi <yao@codesourcery.com>
11217
11218 PR gdb/16220
11219 * gdbarch.sh: Remove startup_gdbarch.
11220 * gdbarch.c: Regenerated.
11221 * gdbarch.h: Likewise.
11222
bc3c6b36
KB
112232014-02-17 Kevin Buettner <kevinb@redhat.com>
11224
11225 * rl78-tdep.c (rl78_g10_register_name): New function.
11226 (rl78_return_value): Add g10 support.
11227 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11228 g10.
11229
98dc0167 112302014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11231
11232 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11233 (SUBDIR_GUILE_SRCS): Ditto.
11234 (scm-gsmob.o): Ditto.
11235
842c05cd
YQ
112362014-02-17 Yao Qi <yao@codesourcery.com>
11237
11238 * gnu-nat.c (ILL_RPC): Declare defined function.
11239
25c0bd04
YQ
112402014-02-17 Yao Qi <yao@codesourcery.com>
11241
11242 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11243 mach_msg_type_number_t.
11244 (gnu_write_inferior): Likewise.
11245
a9a758e3
YQ
112462014-02-17 Yao Qi <yao@codesourcery.com>
11247
11248 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11249 in format string.
11250 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11251 (inf_validate_procs, inf_signal): Likewise.
11252 (S_exception_raise_request): Likewise.
11253 (do_mach_notify_dead_name): Likewise.
11254 (steal_exc_port): Likewise.
11255 (gnu_read_inferior): Change 'copy_count''s type to
11256 mach_msg_type_number_t.
11257 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11258 format string.
11259
bae8023e
TS
112602014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11261
c82f56d9
TS
11262 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11263 flag. Adjust all users; in particular...
11264 (gnu_wait): ..., don't decrement its value in here...
11265 (gnu_create_inferior): ..., and instead set the flag in here,
11266 around the startup_inferior call, and call that one with
11267 START_INFERIOR_TRAPS_EXPECTED.
11268
3398af6a
TS
11269 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11270 (ILL_RPC): ... new macro.
11271 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11272 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11273 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11274 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11275 functions with ILL_RPC macro.
11276 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11277 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11278 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11279 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11280 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11281 (S_proc_getlogin_reply, S_proc_getsid_reply)
11282 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11283 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11284 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11285 (S_proc_getnports_reply, S_proc_is_important_reply)
11286 (S_proc_get_code_reply): New stub functions, generated with
11287 ILL_RPC macro.
11288
d47642c9
TS
11289 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11290 collected the type check structures.
11291
bae8023e
TS
11292 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11293
8a55ffb0
DE
112942014-02-14 Doug Evans <dje@google.com>
11295
11296 * target.c (target_write_partial): Fix result type.
11297
c2853f3d
JM
112982014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11299
11300 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11301 the proper offsets to access fpregset_t.
11302
ac61d2db
SA
113032014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11304
11305 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11306 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11307 * h8300-tdep.c (setmachinelist): Remove global.
11308 * hppa-tdep.c (hppa_sigtramp): Remove global.
11309 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11310 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11311 * ravenscar-thread.c (update_target_observer): Remove global.
11312 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11313
9d2d0b8b
TT
113142014-02-12 Tom Tromey <tromey@redhat.com>
11315
11316 * common/rsp-low.c: Update comments.
11317 * common/rsp-low.h: Update comments.
11318
a7191e8b
TT
113192014-02-12 Tom Tromey <tromey@redhat.com>
11320
11321 * common/rsp-low.c (convert_ascii_to_int): Remove.
11322 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11323
ff0e980e
TT
113242014-02-12 Tom Tromey <tromey@redhat.com>
11325
11326 * common/rsp-low.h (unhexify): Don't declare.
11327 * common/rsp-low.c (unhexify): Remove.
11328
e9371aff
TT
113292014-02-12 Tom Tromey <tromey@redhat.com>
11330
11331 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11332 * common/rsp-low.c (convert_int_to_ascii): Remove.
11333
971dc0b8
TT
113342014-02-12 Tom Tromey <tromey@redhat.com>
11335
11336 * common/rsp-low.h (hexify): Don't declare.
11337 * common/rsp-low.c (hexify): Remove.
11338
0a822afb
TT
113392014-02-12 Tom Tromey <tromey@redhat.com>
11340
11341 * common/rsp-low.c (hexify): Never take strlen of argument.
11342
9f1b45b0
TT
113432014-02-12 Tom Tromey <tromey@redhat.com>
11344
11345 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11346 * remote.c (extended_remote_run, remote_rcmd)
11347 (remote_download_trace_state_variable, remote_save_trace_data)
11348 (remote_set_trace_notes): Update.
11349 * tracepoint.c (encode_source_string, tfile_write_status)
11350 (tfile_write_uploaded_tsv): Update.
11351
9c3d6531
TT
113522014-02-12 Tom Tromey <tromey@redhat.com>
11353
11354 * tracepoint.c: Include rsp-low.h.
11355 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11356 * remote.c: Include rsp-low.h.
11357 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11358 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11359 (remote_unescape_input): Move to common/rsp-low.c.
11360 * common/rsp-low.h: New file.
11361 * common/rsp-low.c: New file.
11362 * Makefile.in (SFILES): Add common/rsp-low.c.
11363 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11364 (COMMON_OBS): Add rsp-low.o.
11365 (rsp-low.o): New target.
11366
01fd3ea5
TT
113672014-02-12 Tom Tromey <tromey@redhat.com>
11368
11369 * utils.h: Include print-utils.h.
11370 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11371 (int_string, core_addr_to_string, core_addr_to_string_nz)
11372 (hex_string, hex_string_custom): Don't declare.
11373 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11374 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11375 (hex_string_custom, int_string, core_addr_to_string)
11376 (core_addr_to_string_nz, host_address_to_string): Move to
11377 common/print-utils.c.
11378 * common/print-utils.h: New file.
11379 * common/print-utils.c: New file
11380 * Makefile.in (SFILES): Add common/print-utils.c.
11381 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11382 (COMMON_OBS): Add print-utils.o.
11383 (print-utils.o): New target.
11384
9fb50108
TT
113852014-02-12 Tom Tromey <tromey@redhat.com>
11386
11387 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11388
0548b5db
MK
113892014-02-12 Mark Kettenis <kettenis@gnu.org>
11390
11391 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11392
493443a4
MK
113932014-02-12 Mark Kettenis <kettenis@gnu.org>
11394
11395 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11396 if a PT_IO ptrace request returns sucessfully but indicates that 0
11397 bytes were transferred.
11398
706d0883
PA
113992014-02-12 Pedro Alves <palves@redhat.com>
11400 Kevin Buettner <kevinb@redhat.com>
11401
11402 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11403 TYPE_INSTANCE_FLAG_CODE_SPACE.
11404
5caa2f0b
PA
114052014-02-12 Pedro Alves <palves@redhat.com>
11406
11407 * h8300-tdep.c (pseudo_from_raw_register)
11408 (raw_from_pseudo_register): New functions.
11409 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11410 them.
11411
76fd5f74
PA
114122014-02-12 Pedro Alves <palves@redhat.com>
11413
11414 * h8300-tdep.c (h8300_register_sim_regno): New function.
11415 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11416 gdbarch_register_sim_regno hook.
11417
8f008406
SA
114182014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11419
11420 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11421
195abc10
SA
114222014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11423
11424 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11425
93ffa5b9
MK
114262014-02-12 Mark Kettenis <kettenis@gnu.org>
11427
11428 * obsd-tdep.h (obsd_init_abi): New prototype.
11429 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11430 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11431 (obsd_init_abi): New functions.
11432 * i386obsd-tdep.c: Include "obsd-tdep.h".
11433 (i386obsd_init_abi): Call obsd_init_abi.
11434 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11435 (amd64obsd_init_abi): Call obsd_init_abi.
11436 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11437 obsd-tdep.c to gdb_target_obs.
11438
49caec94
JM
114392014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11440
11441 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11442 double float arguments to 16-byte in the argument slots.
11443
e1402065
DE
114442014-02-11 Doug Evans <xdje42@gmail.com>
11445
11446 * configure.ac: Don't crash if pkg-config is not found and guile
11447 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11448 in guile checks.
11449 * configure: Regenerate.
11450
edcc890f
YQ
114512014-02-11 Yao Qi <yao@codesourcery.com>
11452
11453 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11454 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11455 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11456 * gnu-nat.c (gnu_xfer_memory): Likewise.
11457 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11458 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11459 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11461
9b409511
YQ
114622014-02-11 Yao Qi <yao@codesourcery.com>
11463
11464 * target.h (enum target_xfer_error): Rename to ...
11465 (enum target_xfer_status): ... it. New. All users updated.
11466 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11467 New.
11468 (TARGET_XFER_STATUS_ERROR_P): New macro.
11469 (target_xfer_error_to_string): Remove declaration.
11470 (target_xfer_status_to_string): Declare.
11471 (target_xfer_partial_ftype): Adjust it.
11472 (struct target_ops) <to_xfer_partial>: Return
11473 target_xfer_status. Add argument xfered_len. Update
11474 comments.
11475 * target.c (target_xfer_error_to_string): Rename to ...
11476 (target_xfer_status_to_string): ... it. New. All callers
11477 updated.
11478 (target_read_live_memory): Likewise. Call target_xfer_partial
11479 instead of target_read.
11480 (memory_xfer_live_readonly_partial): Return
11481 target_xfer_status. Add argument xfered_len.
11482 (raw_memory_xfer_partial): Likewise.
11483 (memory_xfer_partial_1): Likewise.
11484 (memory_xfer_partial): Likewise.
11485 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11486 properly. Update debug message.
11487 (default_xfer_partial, current_xfer_partial): Likewise.
11488 (target_write_partial): Likewise.
11489 (target_read_partial): Likewise. All callers updated.
11490 (read_whatever_is_readable): Likewise.
11491 (target_write_with_progress): Likewise.
11492 (target_read_alloc_1): Likewise.
11493
11494 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11495 * auxv.c (procfs_xfer_auxv): Likewise.
11496 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11497 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11498 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11499 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11500 * corefile.c (read_memory): Adjust.
11501 * corelow.c (core_xfer_partial): Likewise.
11502 * ctf.c (ctf_xfer_partial): Likewise.
11503 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11504 updated.
11505 (darwin_xfer_partial): Likewise.
11506 * exec.c (section_table_xfer_memory_partial): Likewise. All
11507 callers updated.
11508 (exec_xfer_partial): Likewise.
11509 * exec.h (section_table_xfer_memory_partial): Update
11510 declaration.
11511 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11512 negative.
11513 (gnu_xfer_partial): Likewise.
11514 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11515 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11516 (ia64_hpux_xfer_solib_got): Likewise.
11517 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11518 type of 'partial_len' to ULONGEST.
11519 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11520 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11521 (linux_nat_xfer_partial): Likewise.
11522 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11523 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11524 * monitor.c (monitor_xfer_memory): Likewise.
11525 (monitor_xfer_partial): Likewise.
11526 * procfs.c (procfs_xfer_partial): Likewise.
11527 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11528 * record-full.c (record_full_xfer_partial): Likewise.
11529 (record_full_core_xfer_partial): Likewise.
11530 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11531 (gdbsim_xfer_partial): Likewise.
11532 * remote.c (remote_write_bytes_aux): Likewise. All callers
11533 updated.
11534 (remote_write_bytes, remote_read_bytes): Likewise. All
11535 callers updated.
11536 (remote_flash_erase): Likewise. All callers updated.
11537 (remote_write_qxfer): Likewise. All callers updated.
11538 (remote_read_qxfer): Likewise. All callers updated.
11539 (remote_xfer_partial): Likewise.
11540 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11541 (rs6000_xfer_shared_libraries): Likewise.
11542 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11543 (sol_thread_xfer_partial): Likewise.
11544 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11545 (sparc_xfer_partial): Likewise.
11546 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11547 updated.
11548 (spu_xfer_partial): Likewise.
11549 * spu-multiarch.c (spu_xfer_partial): Likewise.
11550 * tracepoint.c (tfile_xfer_partial): Likewise.
11551 * windows-nat.c (windows_xfer_memory): Likewise.
11552 (windows_xfer_shared_libraries): Likewise.
11553 (windows_xfer_partial): Likewise.
11554 * valprint.c: Replace 'target_xfer_error' with
11555 'target_xfer_status' in comments.
11556
a8e63083
JB
115572014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11558
11559 Checked in by Joel Brobecker <brobecker@adacore.com>.
11560 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11561
e86b67d3
JB
115622014-02-11 Joel Brobecker <brobecker@adacore.com>
11563
11564 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11565 function parameters.
11566
4b7d1f7f
WN
115672014-02-10 Will Newton <will.newton@linaro.org>
11568
11569 * elfread.c (elf_rel_plt_read): Look for a .got section if
11570 looking up .got.plt fails.
11571 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11572 on address passed to elf_gnu_ifunc_record_cache.
11573 (elf_gnu_ifunc_resolve_addr): Likewise.
11574 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11575
961842b2
JM
115762014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11577
11578 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11579 (X_RETTURN): New macro.
11580 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11581
11582 * sparc64-tdep.c (sparc64_init_abi): Hook
11583 sparc_in_function_epilogue_p.
11584
3f03e7b1
GB
115852014-02-10 Gary Benson <gbenson@redhat.com>
11586
11587 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11588 Rename name_matcher to symbol_matcher.
11589
96f861ef
GB
115902014-02-10 Gary Benson <gbenson@redhat.com>
11591
11592 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11593 Use expand_symtabs_file_matcher_ftype and
11594 expand_symtabs_symbol_matcher_ftype.
11595
ee01b665
JB
115962014-02-10 Joel Brobecker <brobecker@adacore.com>
11597
11598 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11599 (struct ada_symbol_cache): New.
11600 (ada_free_symbol_cache): Forward declare.
11601 (struct ada_pspace_data): New.
11602 (ada_pspace_data_handle): New static global.
11603 (get_ada_pspace_data, ada_pspace_data_cleanup)
11604 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11605 (cache_space, cache): Delete, now folded inside struct
11606 ada_pspace_data.
11607 (ada_get_symbol_cache): New function.
11608 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11609 implementation.
11610 (_initialize_ada_language): Remove initialization of cache_space.
11611 Move call to observer_attach_inferior_exit up, grouping it
11612 with the other observer registrations inside this function.
11613 Rename command to be more general. Add call to
11614 register_program_space_data_with_cleanup.
11615
143adbbf
JB
116162014-02-10 Joel Brobecker <brobecker@adacore.com>
11617
11618 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11619 ada_new_objfile_observer.
11620 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11621 (_initialize_tasks): Update uses of ada_new_objfile_observer
11622 and ada_tasks_normal_stop_observer.
11623
aa4fb036
JB
116242014-02-10 Joel Brobecker <brobecker@adacore.com>
11625
11626 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11627 returned by the 'Length attribute to integer.
11628
9dee8cc6
JB
116292014-02-10 Joel Brobecker <brobecker@adacore.com>
11630
11631 * ada-lang.c (_initialize_ada_language): Initialize
11632 cache_space obstack.
11633
3d9434b5
JB
116342014-02-10 Joel Brobecker <brobecker@adacore.com>
11635
11636 * ada-lang.c (HASH_SIZE): New macro.
11637 (struct cache_entry): New type.
11638 (cache_space, cache): New static globals.
11639 (ada_clear_symbol_cache, find_entry): New functions.
11640 (lookup_cached_symbol, cache_symbol): Implement.
11641 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11642 (_initialize_ada_language): Attach ada_new_objfile_observer
11643 and ada_free_objfile_observer.
11644
f0c5f9b2
JB
116452014-02-10 Joel Brobecker <brobecker@adacore.com>
11646
11647 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11648 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11649 struct block * parameter.
11650 (ada_lookup_symbol_list_worker): Constify local variable "block".
11651 Remove cast which is no longer necessary.
11652
ed3ef339
DE
116532014-02-10 Doug Evans <xdje42@gmail.com>
11654
11655 Add Guile as an extension language.
11656 * NEWS: Mention Guile scripting.
11657 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11658 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11659 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11660 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11661 (CLIBS): Add GUILE_LIBS.
11662 (install-guile): New rule.
11663 (guile.o): New rule.
11664 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11665 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11666 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11667 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11668 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11669 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11670 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11671 * configure.ac: New option --with-guile.
11672 * configure: Regenerate.
11673 * config.in: Regenerate.
11674 * auto-load.c: Remove #include "python/python.h". Add #include
11675 "gdb/section-scripts.h".
11676 (source_section_scripts): Handle Guile scripts.
11677 (_initialize_auto_load): Add name of Guile objfile script to
11678 scripts-directory help text.
11679 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11680 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11681 (struct breakpoint): New member scm_bp_object.
11682 * defs.h (enum command_control_type): New value guile_control.
11683 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11684 "extension.h".
11685 (show_user): Update comment.
11686 (_initialize_cli_cmds): Update help text for "show user". Update help
11687 text for max-user-call-depth.
11688 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11689 "extension.h".
11690 (multi_line_command_p): Add guile_control.
11691 (print_command_lines): Handle guile_control.
11692 (execute_control_command, recurse_read_control_structure): Ditto.
11693 (process_next_line): Recognize "guile" commands.
11694 * disasm.c (gdb_disassemble_info): Make non-static.
11695 * disasm.h: #include "dis-asm.h".
11696 (struct gdbarch): Add forward decl.
11697 (gdb_disassemble_info): Declare.
11698 * extension.c: #include "guile/guile.h".
11699 (extension_languages): Add guile.
11700 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11701 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11702 * gdbtypes.c (get_unsigned_type_max): New function.
11703 (get_signed_type_minmax): New function.
11704 * gdbtypes.h (get_unsigned_type_max): Declare.
11705 (get_signed_type_minmax): Declare.
11706 * guile/README: New file.
11707 * guile/guile-internal.h: New file.
11708 * guile/guile.c: New file.
11709 * guile/guile.h: New file.
11710 * guile/scm-arch.c: New file.
11711 * guile/scm-auto-load.c: New file.
11712 * guile/scm-block.c: New file.
11713 * guile/scm-breakpoint.c: New file.
11714 * guile/scm-disasm.c: New file.
11715 * guile/scm-exception.c: New file.
11716 * guile/scm-frame.c: New file.
11717 * guile/scm-gsmob.c: New file.
11718 * guile/scm-iterator.c: New file.
11719 * guile/scm-lazy-string.c: New file.
11720 * guile/scm-math.c: New file.
11721 * guile/scm-objfile.c: New file.
11722 * guile/scm-ports.c: New file.
11723 * guile/scm-pretty-print.c: New file.
11724 * guile/scm-safe-call.c: New file.
11725 * guile/scm-string.c: New file.
11726 * guile/scm-symbol.c: New file.
11727 * guile/scm-symtab.c: New file.
11728 * guile/scm-type.c: New file.
11729 * guile/scm-utils.c: New file.
11730 * guile/scm-value.c: New file.
11731 * guile/lib/gdb.scm: New file.
11732 * guile/lib/gdb/boot.scm: New file.
11733 * guile/lib/gdb/experimental.scm: New file.
11734 * guile/lib/gdb/init.scm: New file.
11735 * guile/lib/gdb/iterator.scm: New file.
11736 * guile/lib/gdb/printing.scm: New file.
11737 * guile/lib/gdb/types.scm: New file.
11738 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11739 (VPATH): Add $(GUILE_SRCDIR).
11740 (GUILE_DIR): New variable.
11741 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11742 (all): Add stamp-guile dependency.
11743 (stamp-guile): New rule.
11744 (clean-guile, install-guile, uninstall-guile): New rules.
11745 (install-only): Add install-guile dependency.
11746 (uninstall): Add uninstall-guile dependency.
11747 (clean): Add clean-guile dependency.
11748
ac020ec5
DE
117492014-02-09 Doug Evans <xdje42@gmail.com>
11750
11751 Revert this patch (which I approved, mea culpa).
11752
11753 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11754
11755 * Makefile.in (all-lib): Remove.
11756 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11757
2a081c59
JK
117582014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11759
11760 Fix Python stack corruption.
11761 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11762 gdb_py_longest.
11763
0a6bd22d
MK
117642014-02-08 Mark Kettenis <kettenis@gnu.org>
11765
11766 * Makefile.in (all-lib): Remove.
11767 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11768
1a860409
DE
117692014-02-07 Doug Evans <dje@google.com>
11770
11771 * extension-priv.h (extension_language_script_ops): Add comment.
11772 (extension_language_ops): Add comment.
caf5a491 11773 (active_ext_lang_state): Fix typo in comment.
1a860409 11774
d137e6dc
PA
117752014-02-07 Pedro Alves <palves@redhat.com>
11776
0dcb32c3 11777 PR breakpoints/16292
d137e6dc
PA
11778 * infrun.c (handle_signal_stop) <signal arrives while stepping
11779 over a breakpoint>: Switch back to the stepping thread.
11780
ce6d0892
YQ
117812014-02-07 Yao Qi <yao@codesourcery.com>
11782
11783 * target.c (target_xfer_partial): Return zero if LEN is zero.
11784
2ed4b548
YQ
117852014-02-07 Yao Qi <yao@codesourcery.com>
11786
11787 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11788 (ld_so_xfer_auxv): Likewise.
11789 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11790 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11791 * corelow.c (core_xfer_partial): Likewise.
11792 * ctf.c (ctf_xfer_partial): Likewise.
11793 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11794 (darwin_xfer_partial): Likewise.
11795 * exec.c (exec_xfer_partial): Likewise.
11796 * gnu-nat.c (gnu_xfer_partial): Likewise.
11797 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11798 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11799 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11800 * linux-nat.c (linux_xfer_siginfo): Likewise.
11801 (linux_proc_xfer_spu): Likewise.
11802 * procfs.c (procfs_xfer_partial): Likewise.
11803 * record-full.c (record_full_xfer_partial): Likewise.
11804 (record_full_core_xfer_partial): Likewise.
11805 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11806 * remote.c (remote_write_qxfer): Likewise.
11807 (remote_write_qxfer, remote_read_qxfer): Likewise.
11808 (remote_xfer_partial): Likewise.
11809 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11810 (rs6000_xfer_shared_libraries): Likewise.
11811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11812 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11813 (spu_xfer_partial): Likewise.
11814 * target.c (memory_xfer_partial_1): Likewise.
11815 * tracepoint.c (tfile_xfer_partial): Likewise.
11816 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11817 (windows_xfer_partial): Likewise.
11818
c09f20e4
YQ
118192014-02-07 Yao Qi <yao@codesourcery.com>
11820
11821 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11822 comments.
11823 (core_xfer_shared_libraries_aix): Likewise.
11824 * gdbarch.c, gdbarch.h: Regenerated.
11825 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11826 ULONGEST. Change 'len_avail' type to ULONGEST.
11827 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11828 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11829 declaration.
11830 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11831
8635b3bf
YQ
118322014-02-07 Yao Qi <yao@codesourcery.com>
11833
11834 * corefile.c (memory_error): Get 'exception' from ERR and pass
11835 'exception' to throw_error.
11836
6dddc817
DE
118372014-02-06 Doug Evans <xdje42@gmail.com>
11838
11839 * configure.ac (libpython checking): Remove all but python.o from
11840 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11841 * configure: Regenerate.
11842
11843 * Makefile.in (SFILES): Add extension.c.
11844 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11845 (COMMON_OBS): Add extension.o.
11846 * extension.h: New file.
11847 * extension-priv.h: New file.
11848 * extension.c: New file.
11849
11850 * python/python-internal.h: #include "extension.h".
11851 (gdbpy_auto_load_enabled): Declare.
11852 (gdbpy_apply_val_pretty_printer): Declare.
11853 (gdbpy_apply_frame_filter): Declare.
11854 (gdbpy_preserve_values): Declare.
11855 (gdbpy_breakpoint_cond_says_stop): Declare.
11856 (gdbpy_breakpoint_has_cond): Declare.
11857 (void source_python_script_for_objfile): Delete.
11858 * python/python.c: #include "extension-priv.h".
11859 Delete inclusion of "observer.h".
11860 (extension_language_python): Moved here and renamed from
11861 script_language_python in py-auto-load.c.
11862 Redefined to be of type extension_language_defn.
11863 (python_extension_script_ops): New global.
11864 (python_extension_ops): New global.
11865 (struct python_env): New member previous_active.
11866 (restore_python_env): Call restore_active_ext_lang.
11867 (ensure_python_env): Call set_active_ext_lang.
11868 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11869 New arg extlang.
11870 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11871 New arg extlang.
11872 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11873 New arg extlang.
11874 (gdbpy_eval_from_control_command): Renamed from
11875 eval_python_from_control_command, made static. New arg extlang.
11876 (gdbpy_source_script) Renamed from source_python_script, made static.
11877 New arg extlang.
11878 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11879 result to int. New arg extlang.
11880 (gdbpy_source_objfile_script): Renamed from
11881 source_python_script_for_objfile, made static. New arg extlang.
11882 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11883 static. New args extlang, extlang_printers. Change result type to
11884 "void".
11885 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11886 static. New arg extlang. Rename arg printers to extlang_printers
11887 and change type to ext_lang_type_printers *.
11888 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11889 static. Replace argument arg with extlang, extlang_printers.
11890 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11891 (!HAVE_PYTHON, source_python_script): Delete.
11892 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11893 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11894 (!HAVE_PYTHON, start_type_printers): Delete.
11895 (!HAVE_PYTHON, apply_type_printers): Delete.
11896 (!HAVE_PYTHON, free_type_printers): Delete.
11897 (_initialize_python): Delete call to observer_attach_before_prompt.
11898 (finalize_python): Set/restore active extension language.
11899 (gdbpy_finish_initialization) Renamed from
11900 finish_python_initialization, made static. New arg extlang.
11901 (gdbpy_initialized): New function.
11902 * python/python.h: #include "extension.h". Delete #include
11903 "value.h", "mi/mi-cmds.h".
11904 (extension_language_python): Declare.
11905 (GDBPY_AUTO_FILE_NAME): Delete.
11906 (enum py_bt_status): Moved to extension.h and renamed to
11907 ext_lang_bt_status.
11908 (enum frame_filter_flags): Moved to extension.h.
11909 (enum py_frame_args): Moved to extension.h and renamed to
11910 ext_lang_frame_args.
11911 (finish_python_initialization): Delete.
11912 (eval_python_from_control_command): Delete.
11913 (source_python_script): Delete.
11914 (apply_val_pretty_printer): Delete.
11915 (apply_frame_filter): Delete.
11916 (preserve_python_values): Delete.
11917 (gdbpy_script_language_defn): Delete.
11918 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11919 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11920
11921 * auto-load.c: #include "extension.h".
11922 (GDB_AUTO_FILE_NAME): Delete.
11923 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11924 (script_language_gdb): Delete, moved to extension.c and renamed to
11925 extension_language_gdb.
11926 (source_gdb_script_for_objfile): Delete.
11927 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11928 (loaded_script): Change type of language member to
11929 struct extension_language_defn *.
11930 (init_loaded_scripts_info): Initialize
11931 unsupported_script_warning_printed.
11932 (maybe_add_script): Make static. Change type of language arg to
11933 struct extension_language_defn *.
11934 (clear_section_scripts): Reset unsupported_script_warning_printed.
11935 (auto_load_objfile_script_1): Rewrite to use extension language API.
11936 (auto_load_objfile_script): Make public. Remove support-compiled-in
11937 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11938 (source_section_scripts): Rewrite to use extension language API.
11939 (load_auto_scripts_for_objfile): Rewrite to use
11940 auto_load_scripts_for_objfile.
11941 (collect_matching_scripts_data): Change type of language member to
11942 struct extension_language_defn *.
11943 (auto_load_info_scripts): Change type of language arg to
11944 struct extension_language_defn *.
11945 (unsupported_script_warning_print): New function.
11946 (script_not_found_warning_print): Make static.
11947 (_initialize_auto_load): Rewrite construction of scripts-directory
11948 help.
11949 * auto-load.h (struct objfile): Add forward decl.
11950 (struct script_language): Delete.
11951 (struct auto_load_pspace_info): Add forward decl.
11952 (struct extension_language_defn): Add forward decl.
11953 (maybe_add_script): Delete.
11954 (auto_load_objfile_script): Declare.
11955 (script_not_found_warning_print): Delete.
11956 (auto_load_info_scripts): Update prototype.
11957 (auto_load_gdb_scripts_enabled): Declare.
11958 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11959 auto_load_python_scripts_enabled and made public.
11960 (script_language_python): Delete, moved to python.c.
11961 (gdbpy_script_language_defn): Delete.
11962 (info_auto_load_python_scripts): Update to use
11963 extension_language_python.
11964
11965 * breakpoint.c (condition_command): Replace call to
11966 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11967 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11968 with call to breakpoint_ext_lang_cond_says_stop.
11969 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11970 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11971 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11972 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11973 New arg slang.
11974 (local_setattro): Print name of extension language with existing
11975 stop condition.
11976
11977 * valprint.c (val_print, value_print): Update to call
11978 apply_ext_lang_val_pretty_printer.
11979 * cp-valprint.c (cp_print_value): Update call to
11980 apply_ext_lang_val_pretty_printer.
11981 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11982 (gdbpy_apply_val_pretty_printer): Renamed from
11983 apply_val_pretty_printer. New arg extlang.
11984 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11985
11986 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11987 extension language API.
11988 * cli/cli-script.c (execute_control_command): Update to call
11989 eval_ext_lang_from_control_command.
11990
11991 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11992 enum ext_lang_bt_status values. Update call to
11993 apply_ext_lang_frame_filter.
11994 (mi_cmd_stack_list_locals): Ditto.
11995 (mi_cmd_stack_list_args): Ditto.
11996 (mi_cmd_stack_list_variables): Ditto.
11997 * mi/mi-main.c: Delete #include "python/python-internal.h".
11998 Add #include "extension.h".
11999 (mi_cmd_list_features): Replace reference to python internal variable
12000 gdb_python_initialized with call to ext_lang_initialized_p.
12001
12002 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12003 Update to use enum ext_lang_frame_args. Update to call
12004 apply_ext_lang_frame_filter.
12005 * python/py-framefilter.c (extract_sym): Update to use enum
12006 ext_lang_bt_status.
12007 (extract_value, py_print_type, py_print_value): Ditto.
12008 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12009 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12010 (py_print_frame): Ditto.
12011 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12012 New arg extlang. Update to use enum ext_lang_bt_status.
12013
12014 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12015 finish_python_initialization. Replace with call to
12016 finish_ext_lang_initialization.
12017
12018 * typeprint.c (do_free_global_table): Update to call
12019 free_ext_lang_type_printers.
12020 (create_global_typedef_table): Update to call
12021 start_ext_lang_type_printers.
12022 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12023 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12024 (type_print_options): Change type of global_printers from "void *"
12025 to "struct ext_lang_type_printers *".
12026
12027 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12028 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12029 (gdbpy_preserve_values): Renamed from preserve_python_values.
12030 New arg extlang.
12031 (!HAVE_PYTHON, preserve_python_values): Delete.
12032
12033 * utils.c (quit_flag): Delete, moved to extension.c.
12034 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12035 extension.c.
12036
12037 * eval.c: Delete #include "python/python.h".
12038 * main.c: Delete #include "python/python.h".
12039
12040 * defs.h: Update comment.
12041
6af79985
JB
120422014-02-06 Joel Brobecker <brobecker@adacore.com>
12043
12044 GDB 7.7 released.
12045
12c5175d
MK
120462014-02-05 Mark Kettenis <kettenis@gnu.org>
12047
12048 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12049 defined.
12050
8dc5b319
YQ
120512014-02-05 Yao Qi <yao@codesourcery.com>
12052
12053 * remote.c (remote_pass_signals): Remove local 'buf' and use
12054 rs->buf.
12055 (remote_program_signals): Likewise.
12056
de7b2893
YQ
120572014-02-05 Yao Qi <yao@codesourcery.com>
12058
12059 * ctf.c: Include "inferior.h" and "gdbthread.h".
12060 (CTF_PID): A new macro.
12061 (ctf_open): Call inferior_appeared and add_thread_silent.
12062 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12063 (ctf_thread_alive): New function.
12064 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12065
66d032ac
YQ
120662014-02-05 Yao Qi <yao@codesourcery.com>
12067
12068 Revert this patch:
12069
12070 2013-05-24 Yao Qi <yao@codesourcery.com>
12071
12072 * tracepoint.c (TFILE_PID): Remove.
12073 (tfile_open): Don't add thread and inferior.
12074 (tfile_close): Don't set 'inferior_ptid'. Don't call
12075 exit_inferior_silent.
12076 (tfile_thread_alive): Remove.
12077 (init_tfile_ops): Don't set field 'to_thread_alive' of
12078 tfile_ops.
12079
f4ccffad
CE
120802014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12081
12082 * remote.c (remote_start_remote): Call remote_check_symbols even
12083 if only symbol-file (not file) has been given.
12084
591a12a1
UW
120852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12086
12087 * gdbarch.sh (skip_entrypoint): New callback.
12088 * gdbarch.c, gdbarch.h: Regenerate.
12089 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12090 * infrun.c (fill_in_stop_func): Likewise.
12091 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12092 (ppc_elfv2_elf_make_msymbol_special): New function.
12093 (ppc_elfv2_skip_entrypoint): Likewise.
12094 (ppc_linux_init_abi): Install them for ELFv2.
12095
cc0e89c5
UW
120962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12097
12098 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12099 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12100 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12101 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12102 structures returned in GPRs.
12103
52f548e4
UW
121042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12105
12106 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12107 offset to the stack parameter list for the ELFv2 ABI.
12108
d4094b6a
UW
121092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12110
12111 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12112 set_gdbarch_convert_from_func_ptr_addr and
12113 set_gdbarch_elf_make_msymbol_special for ELFv1.
12114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12115 function descriptors on ELFv1.
12116 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12117 set up r12 at function entry.
12118
cd453cd0
UW
121192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12120
12121 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12122 (struct gdbarch_tdep): New member elf_abi.
12123
12124 * rs6000-tdep.c: Include "elf/ppc64.h".
12125 (rs6000_gdbarch_init): Detect ELF ABI version.
12126
0ff3e01f
UW
121272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12128
12129 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12130 within a register pair holding a DFP 128-bit value on little-endian.
12131 (ppc64_sysv_abi_return_value_base): Likewise.
12132 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12133 (dfp_pseudo_register_write): Likewise.
12134
5b757e5d
UW
121352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12136
12137 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12138 offset on little-endian when passing _Decimal32.
12139 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12140
084ee545
UW
121412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12142
12143 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12144 of the overlapped FP register within the VSX register on little-
12145 endian platforms.
12146 (efpr_pseudo_register_write): Likewise.
12147
d63167af
UW
121482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12149
12150 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12151 offset on little-endian when passing small structures.
12152
e765b44c
UW
121532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12154
12155 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12156 (struct ppc64_sysv_argpos): New data structure.
12157 (ppc64_sysv_abi_push_float): Remove.
12158 (ppc64_sysv_abi_push_val): New function.
12159 (ppc64_sysv_abi_push_integer): Likewise.
12160 (ppc64_sysv_abi_push_freg): Likewise.
12161 (ppc64_sysv_abi_push_vreg): Likewise.
12162 (ppc64_sysv_abi_push_param): Likewise.
12163 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12164 (ppc64_sysv_abi_return_value_base): New function.
12165 (ppc64_sysv_abi_return_value): Refactor to use it.
12166
36c24d95
UW
121672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12168
12169 * NEWS: Document new target powerpc64le-*-linux*.
12170
26fd9228
MK
121712014-02-04 Mark Kettenis <kettenis@gnu.org>
12172
12173 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12174 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12175 core dumps.
12176 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12177 register set used in ELF core dumps. Add floating-point register set.
12178
c5bb7362
KB
121792014-02-03 Kevin Buettner <kevinb@redhat.com>
12180
74228e77 12181 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12182 dwarf2_to_gdb[] table using symbolic constants. Adjust
12183 penultimate entry from number representing the PC register
12184 to symbolic constant representing the MDR register. Add
12185 constant for the PC register to the end of the table.
12186
af09351e
MK
121872014-02-03 Mark Kettenis <kettenis@gnu.org>
12188
12189 * bsd-kvm.c: Include <sys/param.h>
12190
8507e05d
MK
121912014-02-03 Mark Kettenis <kettenis@gnu.org>
12192
12193 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12194
ae56bfb8
JB
121952014-01-31 Joel Brobecker <brobecker@adacore.com>
12196
12197 * ada-lang.h (clear_ada_sym_cache): Delete.
12198
718ee4dc
UW
121992014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12200
12201 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12202
401e27fd
JM
122032014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12204
12205 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12206 the sigreturn register save area only if the syscall is
12207 sigreturn.
12208
a7c88acd
JB
122092014-01-29 Joel Brobecker <brobecker@adacore.com>
12210
12211 * valops.c (value_slice): Minor reformatting.
12212
fa0079ea
UW
122132014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12214
12215 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12216
c6044dd1
JB
122172014-01-28 Joel Brobecker <brobecker@adacore.com>
12218
12219 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12220 New static globals.
12221 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12222 (ada_ignore_descriptive_types_p): New static global.
12223 (find_parallel_type_by_descriptive_type): Return immediately
12224 if ada_ignore_descriptive_types_p is set.
12225 (_initialize_ada_language): Register new commands "maintenance
12226 set ada", "maintenance show ada", "maintenance set ada
12227 ignore-descriptive-types" and "maintenance show ada
12228 ignore-descriptive-types".
12229 * NEWS: Add entry for new "maint ada set/show
12230 ignore-descriptive-types" commands.
12231
568e808b
MM
122322014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12233
12234 * record-btrace.c (record_btrace_close): Call btrace_teardown
12235 for all threads.
12236
467d141b
JB
122372014-01-27 Joel Brobecker <brobecker@adacore.com>
12238
12239 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12240 "ui-out.h".
12241
fb151210
JB
122422014-01-27 Joel Brobecker <brobecker@adacore.com>
12243
12244 * ada-typeprint (type_is_full_subrange_of_target_type):
12245 New function.
12246 (print_range): Add parameter bounds_prefered_p. If not set,
12247 try printing range types using the name of their base type.
12248 (print_range_type): Add parameter bounds_prefered_p.
12249 Use it in call to print_range.
12250 (print_array_type, ada_print_type): Update calls to print_range
12251 and print_range_type.
12252
aba02109
JB
122532014-01-27 Joel Brobecker <brobecker@adacore.com>
12254
12255 * ada-typeprint.c (print_array_type, print_choices, print_range)
12256 (print_range_bound, print_dynamic_range_bound, print_range_type):
12257 Remove declaration.
12258
e62e21fd
JB
122592014-01-27 Joel Brobecker <brobecker@adacore.com>
12260
12261 * ada-typeprint.c (print_range): Add missing empty line
12262 after local declaration.
12263
859cf5d1
JB
122642014-01-27 Joel Brobecker <brobecker@adacore.com>
12265
12266 * ada-valprint.c (print_optional_low_bound): Get index_type's
12267 target type for as long as it is a TYPE_CODE_RANGE.
12268
25790f6f
JB
122692014-01-27 Joel Brobecker <brobecker@adacore.com>
12270
12271 * procfs.c (procfs_make_note_section): Remove assertion and
12272 associated comment.
12273
6b6aa828
YQ
122742014-01-24 Yao Qi <yao@codesourcery.com>
12275
12276 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12277 * corelow.c (get_core_siginfo): Likewise.
12278
5d6df423
YQ
122792014-01-24 Yao Qi <yao@codesourcery.com>
12280
12281 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12282 ULONGEST. Don't check 'len' is negative.
12283 (remote_write_bytes): Change type of 'len' to ULONGEST.
12284
83b645b8
TT
122852014-01-23 Tom Tromey <tromey@redhat.com>
12286
12287 PR python/16485:
12288 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12289 Handle exception from frame.block.
12290 (FrameVars.fetch_frame_locals): Likewise.
12291
0740f8d8
TT
122922014-01-23 Tom Tromey <tromey@redhat.com>
12293
12294 PR python/16487:
12295 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12296 on a NULL pointer. Move "goto error" to correct place.
12297
21909fa1
TT
122982014-01-23 Tom Tromey <tromey@redhat.com>
12299
12300 PR python/16491:
12301 * python/py-framefilter.c (apply_frame_filter): Call
12302 ensure_python_env after computing gdbarch.
12303
17fde6d0
YQ
123042014-01-23 Yao Qi <yao@codesourcery.com>
12305
12306 * target.c (raw_memory_xfer_partial): Change argument type
12307 from void * to gdb_byte *.
12308 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12309
87ce2a04
DE
123102014-01-22 Doug Evans <dje@google.com>
12311
12312 New gdbserver option --debug-format=timestamp.
12313 * NEWS: Mention it.
12314
237b092b
AA
123152014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12316
12317 * syscalls/s390x-linux.xml: New file.
12318 * syscalls/s390-linux.xml: New file.
12319 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12320 (XML_SYSCALL_FILENAME_S390X): Likewise.
12321 (op_svc): New enum value for SVC opcode.
12322 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12323 (s390_linux_get_syscall_number): New function.
12324 (s390_gdbarch_init): Register '*get_syscall_number' and the
12325 syscall xml file name.
12326 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12327 "s390-linux.xml" and "s390x-linux.xml".
12328 * NEWS: Announce new feature.
12329
54bff650
BS
123302014-01-22 Baruch Siach <baruch@tkos.co.il>
12331
12332 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12333
14e361d7
PA
123342014-01-22 Pedro Alves <palves@redhat.com>
12335
12336 * xtensa-config.c: Include defs.h.
12337
46bbb3ed
JB
123382014-01-22 Joel Brobecker <brobecker@adacore.com>
12339
12340 * common/common-utils.h: Add "ARI:" comment beside __func__
12341 reference.
12342
3a80edfc
JB
123432014-01-22 Joel Brobecker <brobecker@adacore.com>
12344
12345 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12346 documentation a bit.
12347
4869db5e
RM
123482014-01-21 Roland McGrath <mcgrathr@google.com>
12349
12350 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12351 * configure: Regenerate.
12352 * aclocal.m4: Regenerate.
12353 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12354 New substituted variables.
12355 (install-strip): New target.
12356 (INSTALL_SCRIPT): New substituted variable.
12357 (FLAGS_TO_PASS): Add it.
12358 (install-only): Use $(INSTALL_SCRIPT) rather than
12359 $(INSTALL_PROGRAM) for gcore.
12360
9ea4267d
TT
123612014-01-20 Tom Tromey <tromey@redhat.com>
12362
12363 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12364 together.
12365
1f2bdf09
TT
123662014-01-20 Tom Tromey <tromey@redhat.com>
12367
12368 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12369 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12370 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12371 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12372 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12373 (struct cmd_list_element) <flags>: Remove.
12374 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12375 doc_allocated>: New fields.
12376 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12377 bitfields.
12378 * maint.c (maintenance_do_deprecate): Update.
12379 * top.c (execute_command): Update.
12380
e671835b
BS
123812014-01-20 Baruch Siach <baruch@tkos.co.il>
12382
12383 * xtensa-linux-nat.c: Include asm/ptrace.h.
12384
50367cd2
IB
123852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12386
12387 * Makefile.in (SFILES): Add d-support.c.
12388 (COMMON_OBS): Add d-support.o.
12389 * d-lang.h (d_parse_symbol): Add comment, now defined in
12390 d-support.c.
12391 * d-lang.c (parse_call_convention)
12392 (parse_attributes, parse_function_types)
12393 (parse_function_args, parse_type, parse_identifier)
12394 (call_convention_p, d_parse_symbol): Move functions to ...
12395 * d-support.c: ... New file.
12396
ec9f644a
IB
123972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12398
12399 * d-lang.h (d_parse_symbol): Add declaration.
12400 * d-lang.c (extract_identifiers)
12401 (extract_type_info): Remove functions.
12402 (parse_call_convention, parse_attributes)
12403 (parse_function_types, parse_function_args)
12404 (parse_type, parse_identifier, call_convention_p)
12405 (d_parse_symbol): New functions.
12406 (d_demangle): Use d_parse_symbol to demangle D symbols.
12407
94b1b47e
IB
124082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12409
12410 * d-lang.h (struct builtin_d_type): New data type.
12411 (builtin_d_type): Add declaration.
12412 * d-lang.c (d_language_arch_info, build_d_types)
12413 (builtin_d_type): New functions.
12414 (enum d_primitive_types): New data type.
12415 (d_language_defn): Change c_language_arch_info to
12416 d_language_arch_info.
12417 (d_type_data): New static variable.
12418 (_initialize_d_language): Initialize d_type_data.
12419
63778547
IB
124202014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12421
12422 * d-lang.h (d_main_name): Add declaration.
12423 * d-lang.c (d_main_name): New function.
12424 * symtab.c (find_main_name): Add call to d_main_name.
12425
3271ba66
IB
124262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12427
12428 * d-lang.c (d_language_defn): Change macro_expansion_c to
12429 macro_expansion_no.
12430
d36b3012
IB
124312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12432
12433 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12434
c90a6fb7
SDJ
124352014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12436
12437 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12438 gdb_exception" declaration.
12439 * remote.c (getpkt_or_notif_sane): Likewise.
12440
749234e5
DE
124412014-01-17 Doug Evans <dje@google.com>
12442
12443 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12444 function, contents of dirnames_to_char_ptr_vec_append moved here.
12445 (delim_string_to_char_ptr_vec): New function.
12446 (dirnames_to_char_ptr_vec_append): Rewrite.
12447 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12448
df049a58
DE
124492014-01-17 Doug Evans <dje@google.com>
12450
12451 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12452 and moved here ...
12453 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12454 #include "common-utils.h".
12455 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12456 * common/vec.h (VEC_ASSERT_PASS): Update.
12457 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12458 (MACH_CHECK_ERROR): Update.
12459
69f97648
SM
124602014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12461
12462 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12463 comments.
12464 * gdbarch.h: Regenerate.
12465
98b1cfdc
TT
124662014-01-16 Tom Tromey <tromey@redhat.com>
12467
12468 * value.c (struct value) <regnum>: Move earlier.
12469
77a19445
TT
124702014-01-16 Tom Tromey <tromey@redhat.com>
12471
12472 * remote.c (extended_remote_create_inferior): Rename from
12473 extended_remote_create_inferior_1. Add "ops" argument. Remove
12474 old implementation.
12475
62261490
PA
124762014-01-16 Pedro Alves <palves@redhat.com>
12477
12478 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12479 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12480 the backchain.
12481
4d65956b
DE
124822014-01-16 Doug Evans <dje@google.com>
12483
12484 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12485
52834460
MM
124862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12487
12488 * btrace.h (btrace_thread_flag): New.
12489 (struct btrace_thread_info) <flags>: New.
12490 * record-btrace.c (record_btrace_resume_thread)
12491 (record_btrace_find_thread_to_move, btrace_step_no_history)
12492 (btrace_step_stopped, record_btrace_start_replaying)
12493 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12494 (record_btrace_find_resume_thread): New.
12495 (record_btrace_resume, record_btrace_wait): Extend.
12496 (record_btrace_can_execute_reverse): New.
12497 (record_btrace_open): Fail in non-stop mode.
12498 (record_btrace_set_replay): Split into this, ...
12499 (record_btrace_stop_replaying): ... this, ...
12500 (record_btrace_clear_histories): ... and this.
12501 (init_record_btrace_ops): Init to_can_execute_reverse.
12502 * NEWS: Announce it.
12503
118e6252
MM
125042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12505
12506 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12507 (forward_target_decr_pc_after_break)
12508 (target_decr_pc_after_break): New.
12509 * target.c (forward_target_decr_pc_after_break)
12510 (target_decr_pc_after_break): New.
12511 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12512 instead of gdbarch_decr_pc_after_break.
12513 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12514 instead of gdbarch_decr_pc_after_break.
12515 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12516 instead of gdbarch_decr_pc_after_break.
12517 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12518 instead of gdbarch_decr_pc_after_break.
12519 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12520 instead of gdbarch_decr_pc_after_break.
12521 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12522 instead of gdbarch_decr_pc_after_break.
12523
6e07b1d2
MM
125242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12525
12526 * btrace.c: Include regcache.h.
12527 (btrace_add_pc): New.
12528 (btrace_enable): Call btrace_add_pc.
12529 (btrace_is_empty): New.
12530 * btrace.h (btrace_is_empty): New.
12531 * record-btrace.c (require_btrace, record_btrace_info): Call
12532 btrace_is_empty.
12533
969c39fb
MM
125342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12535
12536 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12537 Support delta reads.
12538 (linux_disable_btrace): Change return type.
12539 * common/linux-btrace.h (linux_read_btrace): Change parameters
12540 and return type to allow error reporting. Update users.
12541 (linux_disable_btrace): Change return type. Update users.
12542 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12543 New.
12544 (btrace_error): New.
12545 (btrace_block) <begin>: Comment on BEGIN == 0.
12546 * btrace.c (btrace_compute_ftrace): Start from the end of
12547 the current trace.
12548 (btrace_stitch_trace, btrace_clear_history): New.
12549 (btrace_fetch): Read delta trace, return if replaying.
12550 (btrace_clear): Move clear history code to btrace_clear_history.
12551 (parse_xml_btrace): Throw an error if parsing failed.
12552 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12553 and return type to allow error reporting.
12554 (target_read_btrace): Change parameters and return type to allow
12555 error reporting.
12556 * target.c (target_read_btrace): Update.
12557 * remote.c (remote_read_btrace): Support delta reads. Pass
12558 errors on.
12559 * NEWS: Announce it.
12560
0b722aec
MM
125612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12562
12563 * record.h (record_btrace_frame_unwind)
12564 (record_btrace_tailcall_frame_unwind): New declarations.
12565 * dwarf2-frame: Include record.h
12566 (dwarf2_frame_cfa): Throw an error for btrace frames.
12567 * record-btrace.c: Include hashtab.h.
12568 (btrace_get_bfun_name): New.
12569 (btrace_call_history): Call btrace_get_bfun_name.
12570 (struct btrace_frame_cache): New.
12571 (bfcache): New.
12572 (bfcache_hash, bfcache_eq, bfcache_new): New.
12573 (btrace_get_frame_function): New.
12574 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12575 (record_btrace_frame_this_id): Compute own id.
12576 (record_btrace_frame_prev_register): Provide PC, throw_error
12577 for all other registers.
12578 (record_btrace_frame_sniffer): Detect btrace frames.
12579 (record_btrace_tailcall_frame_sniffer): New.
12580 (record_btrace_frame_dealloc_cache): New.
12581 (record_btrace_frame_unwind): Add new functions.
12582 (record_btrace_tailcall_frame_unwind): New.
12583 (_initialize_record_btrace): Allocate cache.
12584 * btrace.c (btrace_clear): Call reinit_frame_cache.
12585 * NEWS: Announce it.
12586
066ce621
MM
125872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12588
12589 * record-btrace.c (record_btrace_set_replay)
12590 (record_btrace_goto_begin, record_btrace_goto_end)
12591 (record_btrace_goto): New.
12592 (init_record_btrace_ops): Initialize them.
12593 * NEWS: Announce it.
12594
e2887aa3
MM
125952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12596
12597 * record-btrace.c (record_btrace_find_new_threads)
12598 (record_btrace_thread_alive): New.
12599 (init_record_btrace_ops): Initialize to_find_new_threads and
12600 to_thread_alive.
12601
b2f4cfde
MM
126022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12603
12604 * record-btrace.c (record_btrace_resume): New.
12605 (record_btrace_wait): New.
12606 (init_record_btrace_ops): Initialize to_wait and to_resume.
12607
633785ff
MM
126082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12609
12610 * record-btrace.c (record_btrace_xfer_partial)
12611 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12612 (record_btrace_allow_memory_access): New.
12613 (init_record_btrace_ops): Initialize new methods.
12614 * target.c (raw_memory_xfer_partial): Bail out if target reports
12615 that this memory is not available.
12616
3db08215
MM
126172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12618
12619 * target.h (target_ops) <to_insert_breakpoint>
12620 <to_remove_breakpoint>: Add target_ops parameter.
12621 (forward_target_insert_breakpoint): New.
12622 (forward_target_remove_breakpoint): New.
12623 (memory_remove_breakpoint, memory_insert_breakpoint):
12624 Add target_ops parameter.
12625 * target.c (target_insert_breakpoint): Split into this and ...
12626 (forward_target_insert_breakpoint): ... this.
12627 (target_remove_breakpoint): Split into this and ...
12628 (forward_target_remove_breakpoint): ... this.
12629 (debug_to_insert_breakpoint): Add target_ops parameter.
12630 Call forward_target_insert_breakpoint.
12631 (debug_to_remove_breakpoint): Add target_ops parameter.
12632 Call forward_target_remove_breakpoint.
12633 (update_current_target): Do not inherit or default to_insert_breakpoint
12634 and to_remove_breakpoint.
12635 * corelow.c (ignore): Add target_ops parameter.
12636 * exec.c (ignore): Add target_ops parameter.
12637 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12638 Add target_ops parameter.
12639 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12640 Add target_ops parameter.
12641 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12642 Add target_ops parameter.
12643 * record-full.c (record_full_beneath_to_insert_breakpoint)
12644 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12645 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12646 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12647 (record_full_core_remove_breakpoint): Add target_ops parameter.
12648 Update users.
12649 (record_full_beneath_to_insert_breakpoint_ops)
12650 (record_full_beneath_to_remove_breakpoint_ops)
12651 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12652 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12653 tmp_to_remove_breakpoint_ops,
12654 record_full_beneath_to_insert_breakpoint_ops, and
12655 record_full_beneath_to_remove_breakpoint_ops.
12656 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12657 (m32r_remove_breakpoint): Add target_ops parameter.
12658 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12659 Add target_ops parameter.
12660 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12661 Add target_ops parameter.
12662
cecac1ab
MM
126632014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12664 Markus Metzger <markus.t.metzger@intel.com>
12665
12666 * record-btrace.c: Include frame-unwind.h.
12667 (record_btrace_frame_unwind_stop_reason)
12668 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12669 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12670 New.
12671 (init_record_btrace_ops): Install it.
12672
824344ca
MM
126732014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12674
12675 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12676 get_prev_frame_1.
12677
32261e52
MM
126782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12679
12680 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12681 earlier.
12682
ea001bdc
MM
126832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12684
12685 * frame-unwind.c: Include target.h.
12686 (frame_unwind_try_unwinder): New function with code from ...
12687 (frame_unwind_find_by_frame): ... here. New variable
12688 unwinder_from_target, call also target_get_unwinder)
12689 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12690 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12691 * target.h (struct target_ops): New fields to_get_unwinder and
12692 to_get_tailcall_unwinder.
12693 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12694
1f3ef581
MM
126952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12696
12697 * record-btrace.c (record_btrace_fetch_registers)
12698 (record_btrace_store_registers)
12699 (record_btrace_to_prepare_to_store): New.
12700 (init_record_btrace_ops): Add the above.
12701
f32dbf8c
MM
127022014-01-16 Tom Tromey <tromey@redhat.com>
12703
12704 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12705 * target.h (struct target_ops) <to_prepare_to_store>: Add
12706 argument.
12707 (target_prepare_to_store): Add argument.
12708 * target.c (debug_to_prepare_to_store): Add argument.
12709 (update_current_target): Update.
12710 * remote.c (remote_prepare_to_store): Add 'self' argument.
12711 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12712 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12713 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12714 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12715 argument.
12716 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12717 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12718 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12719 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12720 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12721
07bbe694
MM
127222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12723
12724 * btrace.h (replay) <replay>: New.
12725 (btrace_is_replaying): New.
12726 * btrace.c (btrace_clear): Free replay iterator.
12727 (btrace_is_replaying): New.
12728 * record-btrace.c (record_btrace_is_replaying): New.
12729 (record_btrace_info): Print insn number if replaying.
12730 (record_btrace_insn_history): Start at replay position.
12731 (record_btrace_call_history): Start at replay position.
12732 (init_record_btrace_ops): Init to_record_is_replaying.
12733
0688d04e
MM
127342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12735
12736 * record-btrace.c (record_btrace_insn_history_range): Include
12737 end.
12738 (record_btrace_insn_history_from): Adjust range.
12739 (record_btrace_call_history_range): Include
12740 end.
12741 (record_btrace_call_history_from): Adjust range.
12742 * NEWS: Announce changes.
12743
8710b709
MM
127442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12745
12746 * record.h (enum record_print_flag)
12747 <record_print_indent_calls>: New.
12748 * record.c (get_call_history_modifiers): Recognize /c modifier.
12749 (_initialize_record): Document /c modifier.
12750 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12751 Reorder fields. Optionally indent the function name. Update
12752 all users.
12753 * NEWS: Announce changes.
12754
d0fa7535
MM
127552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12756
12757 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12758
5de9129b
MM
127592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12760
12761 * btrace.c (ftrace_new_function): Start counting at one.
12762 * record-btrace.c (record_btrace_info): Adjust number of calls
12763 and insns.
12764 * NEWS: Announce it.
12765
7acbe133
MM
127662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12767
12768 * record-btrace.c (btrace_call_history_insn_range): Print
12769 insn range as [begin, end].
12770
23a7fe75
MM
127712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12772
12773 * btrace.h (struct btrace_func_link): New.
12774 (enum btrace_function_flag): New.
12775 (struct btrace_inst): Rename to ...
12776 (struct btrace_insn): ...this. Update all users.
12777 (struct btrace_func) <ibegin, iend>: Remove.
12778 (struct btrace_func_link): New.
12779 (struct btrace_func): Rename to ...
12780 (struct btrace_function): ...this. Update all users.
12781 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12782 (number, level, flags>: New.
12783 (struct btrace_insn_iterator): Rename to ...
12784 (struct btrace_insn_history): ...this.
12785 Update all users.
12786 (struct btrace_insn_iterator, btrace_call_iterator): New.
12787 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12788 (struct btrace_target_info) <begin, end, level>
12789 <insn_history, call_history>: New.
12790 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12791 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12792 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12793 (btrace_call_number, btrace_call_begin, btrace_call_end)
12794 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12795 (btrace_find_function_by_number, btrace_set_insn_history)
12796 (btrace_set_call_history): New.
12797 * btrace.c (btrace_init_insn_iterator)
12798 (btrace_init_func_iterator, compute_itrace): Remove.
12799 (ftrace_print_function_name, ftrace_print_filename)
12800 (ftrace_skip_file): Change
12801 parameter to const.
12802 (ftrace_init_func): Remove.
12803 (ftrace_debug): Use new btrace_function fields.
12804 (ftrace_function_switched): Also consider gaining and
12805 losing symbol information).
12806 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12807 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12808 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12809 New.
12810 (ftrace_new_function): Move. Remove debug print.
12811 (ftrace_update_lines, ftrace_update_insns): New.
12812 (ftrace_update_function): Check for call, ret, and jump.
12813 (compute_ftrace): Renamed to ...
12814 (btrace_compute_ftrace): ...this. Rewritten to compute call
12815 stack.
12816 (btrace_fetch, btrace_clear): Updated.
12817 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12818 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12819 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12820 (btrace_call_number, btrace_call_begin, btrace_call_end)
12821 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12822 (btrace_find_function_by_number, btrace_set_insn_history)
12823 (btrace_set_call_history): New.
12824 * record-btrace.c (require_btrace): Use new btrace thread
12825 info fields.
12826 (record_btrace_info, btrace_insn_history)
12827 (record_btrace_insn_history, record_btrace_insn_history_range):
12828 Use new btrace thread info fields and new iterator.
12829 (btrace_func_history_src_line): Rename to ...
12830 (btrace_call_history_src_line): ...this. Use new btrace
12831 thread info fields.
12832 (btrace_func_history): Rename to ...
12833 (btrace_call_history): ...this. Use new btrace thread info
12834 fields and new iterator.
12835 (record_btrace_call_history, record_btrace_call_history_range):
12836 Use new btrace thread info fields and new iterator.
12837
8372a7cb
MM
128382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12839
12840 * frame.h (frame_id_build_unavailable_stack_special): New.
12841 * frame.c (frame_id_build_unavailable_stack_special): New.
12842
c2170eef
MM
128432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12844
12845 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12846 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12847 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12848 to gdbarch.
12849 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12850 (i386_insn_is_jump, i386_jmp_p): New.
12851 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12852 insn_is_jump to gdbarch.
12853 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12854 * gdbarch.h: Regenerated.
12855 * gdbarch.c: Regenerated.
12856 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12857 (default_insn_is_jump): New.
12858 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12859 (default_insn_is_jump): New.
12860
864089d2
MM
128612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12862
12863 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12864 Change to ...
12865 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12866 (btrace_read_type) <btrace_read_new>: Change to ...
12867 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12868
ed9edfb5
MM
128692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12870
12871 * common/linux-btrace.c (linux_read_btrace): Free trace from
12872 previous iteration.
12873
fbcbc3fd
DE
128742014-01-15 Doug Evans <dje@google.com>
12875
12876 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12877 uint32_t.
12878
3d548a53
TT
128792014-01-15 Tom Tromey <tromey@redhat.com>
12880
12881 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12882 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12883 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12884 (set_objfile_main_name): New function.
12885 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12886 language_of_main>: New fields.
12887 (set_objfile_main_name): Declare.
12888 * symtab.c (find_main_name): Loop over objfiles to find the main
12889 name and language.
12890 (set_main_name): Now static.
12891 (get_main_info): Add comment.
12892 * symtab.h (set_main_name): Don't declare.
12893
32ac0d11
TT
128942014-01-15 Tom Tromey <tromey@redhat.com>
12895
12896 * symtab.c (main_progspace_key): New global.
12897 (struct main_info): New.
12898 (name_of_main, language_of_main): Remove.
12899 (get_main_info, main_info_cleanup): New function.
12900 (set_main_name, main_name, main_language): Use get_main_info.
12901 (_initialize_symtab): Initialize main_progspace_key.
12902
9e6c82ad
TT
129032014-01-15 Tom Tromey <tromey@redhat.com>
12904
12905 * dbxread.c (process_one_symbol): Update.
12906 * dwarf2read.c (read_partial_die): Update.
12907 * symfile.c (set_initial_language): Call main_language.
12908 * symtab.c (language_of_main): Now static.
12909 (set_main_name): Add 'lang' parameter.
12910 (find_main_name): Update.
12911 (main_language): New function.
12912 (symtab_observer_executable_changed): Update.
12913 * symtab.h (set_main_name): Update.
12914 (language_of_main): Remove.
12915 (main_language): Declare.
12916
6ef55de7
TT
129172014-01-15 Tom Tromey <tromey@redhat.com>
12918
12919 * symfile.c (init_entry_point_info): Use new "initialized" field.
12920 Update.
12921 * objfiles.h (struct entry_point) <initialized>: New field.
12922 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12923 (struct objfile) <ei>: ...here. Remove.
12924 * objfiles.c (entry_point_address_query): Update.
12925
53eddfa6
TT
129262014-01-15 Tom Tromey <tromey@redhat.com>
12927
12928 * objfiles.c (entry_point_address_query): Relocate entry point
12929 address.
12930 (objfile_relocate1): Do not relocate entry point address.
12931 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12932 <the_bfd_section_index>: New field.
12933 * symfile.c (init_entry_point_info): Find the entry point's
12934 section.
12935
d56e56aa
TT
129362014-01-15 Tom Tromey <tromey@redhat.com>
12937
12938 * solib-frv.c (enable_break): Use entry_point_address_query.
12939
33a97bbe
OJ
129402014-01-15 Omair Javaid <omair.javaid@linaro.org>
12941
12942 * NEWS: Add note on improved process record-replay on
12943 arm*-linux* targets.
12944
c6ec2b30
OJ
129452014-01-15 Omair Javaid <omair.javaid@linaro.org>
12946
12947 * arm-tdep.c (enum arm_record_result): New enum.
12948 (arm_record_unsupported_insn): New function.
12949 (arm_record_coproc_data_proc): Removed.
12950 (thumb2_record_ld_st_multiple): New function.
12951 (thumb2_record_ld_st_dual_ex_tbb): New function.
12952 (thumb2_record_data_proc_sreg_mimm): New function.
12953 (thumb2_record_ps_dest_generic): New function.
12954 (thumb2_record_branch_misc_cntrl): New function.
12955 (thumb2_record_str_single_data): New function.
12956 (thumb2_record_ld_mem_hints): New function.
12957 (thumb2_record_ld_word): New function.
12958 (thumb2_record_lmul_lmla_div): New function.
12959 (thumb2_record_decode_insn_handler): New function.
12960 (decode_insn): Add thumb32 instruction handlers.
12961
97dfe206
OJ
129622014-01-15 Omair Javaid <omair.javaid@linaro.org>
12963
12964 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12965 (struct arm_linux_record_tdep): Declare.
12966 (arm_canonicalize_syscall): New function.
12967 (arm_all_but_pc_registers_record): New function.
12968 (arm_linux_syscall_record): New function.
12969 (arm_linux_init_abi): Add syscall recording constructs.
12970 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12971 decoding. (arm_record_coproc_data_proc): Update arm syscall
12972 decoding.
12973 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12974 <arm_syscall_record>: New field.
12975 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12976 gdb_target_obs.
12977
9904a494
OJ
129782014-01-15 Omair Javaid <omair.javaid@linaro.org>
12979
12980 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12981 register for push instruction recording.
12982
f969241e
OJ
129832014-01-15 Omair Javaid <omair.javaid@linaro.org>
12984
12985 * arm-tdep.c (thumb_record_misc): Update to correct logical
12986 error while recording ldm, ldmia and pop instructions.
12987
bfbbec00
OJ
129882014-01-15 Omair Javaid <omair.javaid@linaro.org>
12989
12990 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12991
e40adcc9
PA
129922014-01-15 Pedro Alves <palves@redhat.com>
12993
12994 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12995 (go32_resume, go32_fetch_registers, store_register)
12996 (go32_store_registers, go32_prepare_to_store)
12997 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12998 (go32_create_inferior, go32_can_run, go32_terminal_init)
12999 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13000 declarations.
13001
b0a16e66
TT
130022014-01-15 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (async_callback_ftype): New typedef.
13005 (struct target_ops) <to_async>: Use it.
13006
bf7105a4
JB
130072014-01-15 Joel Brobecker <brobecker@adacore.com>
13008
13009 * python/py-value.c (get_field_type): Remove unnecessary curly
13010 braces for single-statement if block.
13011
a8f35c2e
JB
130122014-01-15 Joel Brobecker <brobecker@adacore.com>
13013
13014 * python/py-type.c (convert_field): Add missing empty line
13015 after declarations.
13016
bb4142cf
DE
130172014-01-14 Doug Evans <dje@google.com>
13018
13019 * symfile.h (expand_symtabs_matching): Renamed from
13020 expand_partial_symbol_names. Update prototype.
13021 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13022 * symfile.c (expand_symtabs_matching): Renamed from
13023 expand_partial_symbol_names. New args file_matcher, kind.
13024 Rename arg fun to symbol_matcher.
13025 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13026 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13027 ada_expand_partial_symbol_name.
13028 (ada_make_symbol_completion_list): Update to call
13029 expand_symtabs_matching.
13030 (ada_add_global_exceptions): Call expand_symtabs_matching.
13031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13032 call map_symbol_filenames.
13033 * symtab.c (sources_info): Update to call map_symbol_filenames.
13034 (search_symbols): Call expand_symtabs_matching.
13035 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13036 (default_make_symbol_completion_list_break_on): Update to call
13037 expand_symtabs_matching.
13038 (make_source_files_completion_list): Update to call
13039 map_symbol_filenames.
13040
206f2a57
DE
130412014-01-14 Doug Evans <dje@google.com>
13042
13043 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13044 (expand_symtabs_symbol_matcher_ftype): New typedef.
13045 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13046 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13047 * symfile.c (expand_partial_symbol_names): Update to use
13048 expand_symtabs_symbol_matcher_ftype.
13049 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13050 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13051 Arg name_matcher renamed to symbol_matcher.
13052 * psymtab.c (recursively_search_psymtabs): Update to use
13053 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13054 sym_matcher.
13055 (expand_symtabs_matching_via_partial): Update to use
13056 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13057 Arg name_matcher renamed to symbol_matcher.
13058
540c2971
DE
130592014-01-14 Doug Evans <dje@google.com>
13060
13061 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13062 (map_partial_symbol_filenames): Ditto.
13063 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13064 (map_partial_symbol_filenames): Ditto.
13065 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13066 (map_partial_symbol_filenames): Ditto.
13067 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13068 (map_partial_symbol_filenames): Ditto.
13069 * symtab.c: Delete #include "psymtab.h".
13070
8213266a
PA
130712014-01-14 Pedro Alves <palves@redhat.com>
13072 Tom Tromey <tromey@redhat.com>
13073
13074 * infrun.c (use_displaced_stepping): Use find_record_target
13075 instead of RECORD_IS_USED.
13076 (adjust_pc_after_break): Use record_full_is_used instead of
13077 RECORD_IS_USED.
13078 * record-btrace.c (record_btrace_open): Call record_preopen
13079 instead of checking RECORD_IS_USED.
13080 * record-full.c (record_full_shortname)
13081 (record_full_core_shortname): New globals.
13082 (record_full_is_used): New function.
13083 (find_full_open): Call record_preopen instead of checking
13084 RECORD_IS_USED.
13085 (init_record_full_ops): Set the target's shortname to
13086 record_full_shortname.
13087 (init_record_full_core_ops): Set the target's shortname to
13088 record_full_core_shortname.
13089 * record-full.h (record_full_is_used): Declare.
13090 * record.c (find_record_target): Make extern.
13091 (record_preopen): New function.
13092 * record.h (RECORD_IS_USED): Delete macro.
13093 (find_record_target, record_preopen): Declare functions.
13094
7ec1862d
YQ
130952014-01-14 Yao Qi <yao@codesourcery.com>
13096
13097 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13098 'len''s type to ULONGEST.
13099 (core_xfer_shared_libraries_aix): Likewise.
13100 * gdbarch.c, gdbarch.h: Regenerated.
13101 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13102 Change type of 'len' to ULONGEST.
13103 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13104 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13105
dea80a27
YQ
131062014-01-14 Yao Qi <yao@codesourcery.com>
13107
13108 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13109 type of 'len' to ULONGEST.
13110 (linux_xfer_osdata_processgroups): Likewise.
13111 (linux_xfer_osdata_threads): Likewise.
13112 (linux_xfer_osdata_fds): Likewise.
13113 (linux_xfer_osdata_isockets): Likewise.
13114 (linux_xfer_osdata_shm): Likewise.
13115 (linux_xfer_osdata_sem): Likewise.
13116 (linux_xfer_osdata_msg): Likewise.
13117 (linux_common_xfer_osdata): Likewise.
13118 (struct osdata_type) <getter>: Likewise.
13119 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13120 the declaration.
13121
b55e14c7
YQ
131222014-01-14 Yao Qi <yao@codesourcery.com>
13123
13124 * target.h (target_xfer_partial_ftype): Update.
13125 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13126 ULONGEST.
13127 * aix-thread.c (aix_thread_xfer_partial): Change type of
13128 argument 'len' to ULONGEST.
13129 * auxv.c (procfs_xfer_auxv): Likewise.
13130 (ld_so_xfer_auxv): Likewise.
13131 (memory_xfer_auxv): Likewise.
13132 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13133 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13134 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13135 * corelow.c (core_xfer_partial): Likewise.
13136 * ctf.c (ctf_xfer_partial): Likewise.
13137 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13138 '%u'.
13139 (darwin_read_dyld_info): Likewise.
13140 (darwin_xfer_partial): Likewise.
13141 * exec.c (section_table_xfer_memory_partial): Likewise.
13142 (exec_xfer_partial): Likewise.
13143 * exec.h (section_table_xfer_memory_partial): Update
13144 declaration.
13145 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13146 instead of plongest.
13147 (gnu_xfer_partial): Likewise.
13148 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13149 (ia64_hpux_xfer_solib_got): Likewise.
13150 (ia64_hpux_xfer_partial): Likewise.
13151 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13152 * inf-ptrace.c (inf_ptrace_xfer_partial):
13153 * inf-ttrace.c (inf_ttrace_xfer_partial):
13154 * linux-nat.c (linux_xfer_siginfo): Likewise.
13155 (linux_nat_xfer_partial): Likewise.
13156 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13157 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13158 * monitor.c (monitor_xfer_memory): Likewise.
13159 (monitor_xfer_partial): Likewise.
13160 * procfs.c (procfs_xfer_partial): Likewise.
13161 * record-full.c (record_full_xfer_partial): Likewise.
13162 (record_full_core_xfer_partial): Likewise.
13163 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13164 instead of plongest.
13165 (gdbsim_xfer_partial): Likewise.
13166 * remote.c (remote_xfer_partial): Likewise.
13167 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13168 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13169 declaration.
13170 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13171 (rs6000_xfer_shared_libraries): Likewise.
13172 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13173 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13174 (sparc_xfer_partial): Likewise.
13175 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13176 (spu_xfer_partial): Likewise.
13177 * spu-multiarch.c (spu_xfer_partial): Likewise.
13178 * target.c (target_read_live_memory): Likewise.
13179 (memory_xfer_live_readonly_partial): Likewise.
13180 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13181 (target_xfer_partial, default_xfer_partial): Likewise.
13182 (current_xfer_partial): Likewise.
13183 * tracepoint.c (tfile_xfer_partial): Likewise.
13184 * windows-nat.c (windows_xfer_memory): Likewise. Call
13185 pulongest instead of plongest.
13186 (windows_xfer_partial): Likewise.
13187 (windows_xfer_shared_libraries): Likewise.
13188
05804640
YQ
131892014-01-14 Yao Qi <yao@codesourcery.com>
13190
13191 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13192 target_xfer_partial_ftype.
13193
b5b08fb4
SC
131942014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13195
13196 PR python/15464
13197 PR python/16113
13198 * valops.c (value_struct_elt_bitpos): New function
13199 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13200 object to 'None' if the field name is an empty string ("").
13201 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13202 attribute to look for a field when 'name' is 'None'.
13203 (get_field_type): New function
13204
13aaf454
DE
132052014-01-13 Doug Evans <dje@google.com>
13206
13207 PR symtab/16426
13208 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13209 (try_open_dwop_file): Ditto.
13210 * gdb_bfd.c: #include "vec.h".
13211 (bfdp): New typedef.
13212 (struct gdb_bfd_data): New member included_bfds.
13213 (gdb_bfd_unref): Unref all included bfds.
13214 (gdb_bfd_record_inclusion): New function.
13215 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13216
c2cec97c
TT
132172014-01-13 Tom Tromey <tromey@redhat.com>
13218
13219 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13220
78e5999d
TT
132212014-01-13 Tom Tromey <tromey@redhat.com>
13222
13223 * defs.h (use_windows): Remove.
13224 * gdb.c (main): Update.
13225 * main.c (captured_main, gdb_main): Update.
13226 * main.h (struct captured_main_args) <use_windows>: Remove.
13227 * top.c (use_windows): Remove.
13228
f2052bbe
TT
132292014-01-13 Tom Tromey <tromey@redhat.com>
13230
13231 * defs.h (deprecated_flush_hook): Remove.
13232
fde4f8ed
JK
132332014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13234
13235 PR threads/16216
13236 * linux-thread-db.c (try_thread_db_load): Add parameter
13237 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13238 (try_thread_db_load_from_pdir_1): Move it there from here.
13239 (try_thread_db_load_from_sdir): Update caller.
13240 (try_thread_db_load_from_dir): Move it there from here.
13241
bdf61915
PP
132422014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13243
13244 * regformats/regdat.sh: Always rewrite the register file.
13245
f71e1a8d
PA
132462014-01-13 Pedro Alves <palves@redhat.com>
13247
13248 * Makefile.in (CHECK_HEADERS): New variable.
13249 (check-headers:): New rule.
13250
42c85435
TT
132512014-01-13 Tom Tromey <tromey@redhat.com>
13252
13253 * cli/cli-setshow.c (do_set_command): Update.
13254 * defs.h (deprecated_set_hook): Remove.
13255 * top.c (deprecated_set_hook): Remove.
13256
f8de5129
PA
132572014-01-13 Pedro Alves <palves@redhat.com>
13258
13259 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13260 the tracepoint if the PC is a pseudo-register.
13261
fc270c35
TT
132622014-01-13 Tom Tromey <tromey@redhat.com>
13263
13264 * defs.h (XCALLOC): Remove.
13265 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13266 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13267 * dwarf2loc.c (allocate_piece_closure): Likewise.
13268 * elfread.c (elf_symfile_segments): Likewise.
13269 (elf_symfile_segments): Likewise.
13270 * gdbtypes.c (copy_type_recursive): Likewise.
13271 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13272 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13273 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13274 XCALLOC.
13275 * mt-tdep.c (mt_gdbarch_init): Likewise.
13276 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13277 XCALLOC.
13278 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13279 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13280 * registry.c (registry_alloc_data): Likewise.
13281 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13282 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13283 * serial.c (serial_fdopen_ops): Likewise.
13284 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13285 XCALLOC.
13286 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13287 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13288 not XCALLOC.
13289
70ba0933
TT
132902014-01-13 Tom Tromey <tromey@redhat.com>
13291
13292 * defs.h (XMALLOC): Remove.
13293 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13294 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13295 * cli-out.c (struct ui_out *): Likewise.
13296 * cli/cli-dump.c (add_dump_command): Likewise.
13297 (add_dump_command): Likewise.
13298 * complaints.c (get_complaints): Likewise.
13299 (find_complaint): Likewise.
13300 * dwarf2-frame.c (execute_cfa_program): Likewise.
13301 * dwarf2read.c (abbrev_table_read_table): Likewise.
13302 * gdbarch.sh: Likewise.
13303 * gdbarch.c: Rebuild.
13304 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13305 * interps.c (interp_new): Likewise.
13306 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13307 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13308 * mi/mi-console.c (mi_console_file_new): Likewise.
13309 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13310 * mi/mi-out.c (mi_out_new): Likewise.
13311 * mi/mi-parse.c (mi_parse): Likewise.
13312 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13313 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13314 * observer.c (xalloc_observer_list_node): Likewise.
13315 * regcache.c (regcache_xmalloc_1): Likewise.
13316 * reggroups.c (reggroup_new): Likewise.
13317 (_initialize_reggroup): Likewise.
13318 * registry.c (register_data_with_cleanup): Likewise.
13319 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13320 * ser-base.c (serial_ttystate): Likewise.
13321 * ser-mingw.c (make_pipe_state): Likewise.
13322 * ser-pipe.c (pipe_open): Likewise.
13323 * serial.c (serial_open): Likewise.
13324 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13325 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13326 (tui_alloc_win_info): Likewise.
13327 (tui_add_content_elements): Likewise.
13328 * tui/tui-file.c (tui_file_new): Likewise.
13329 * tui/tui-out.c (tui_out_new): Likewise.
13330 * ui-file.c (mem_file_new): Likewise.
13331 * ui-out.c (push_level): Likewise.
13332 (make_cleanup_ui_out_end): Likewise.
13333 (append_header_to_list): Likewise.
13334 (ui_out_new): Likewise.
13335 * user-regs.c (user_reg_add_builtin): Likewise.
13336
41bf6aca
TT
133372014-01-13 Tom Tromey <tromey@redhat.com>
13338
13339 * defs.h (XZALLOC): Remove.
13340 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13341 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13342 (get_ada_tasks_inferior_data): Likewise.
13343 * auto-load.c (get_auto_load_pspace_data): Likewise.
13344 * auxv.c (get_auxv_inferior_data): Likewise.
13345 * bfd-target.c (target_bfd_reopen): Likewise.
13346 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13347 (deprecated_insert_raw_breakpoint): Likewise.
13348 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13349 * corelow.c (core_open): Likewise.
13350 * darwin-nat.c (darwin_check_new_threads): Likewise.
13351 (darwin_attach_pid): Likewise.
13352 * dummy-frame.c (dummy_frame_push): Likewise.
13353 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13354 * dwarf2loc.c (allocate_piece_closure): Likewise.
13355 * elfread.c (elf_symfile_segments): Likewise.
13356 * eval.c (ptrmath_type_p): Likewise.
13357 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13358 * gdbtypes.c (alloc_type_arch): Likewise.
13359 (alloc_type_instance): Likewise.
13360 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13361 * inf-child.c (inf_child_can_use_agent): Likewise.
13362 * inflow.c (get_inflow_inferior_data): Likewise.
13363 * infrun.c (save_infcall_suspend_state): Likewise.
13364 * jit.c (jit_reader_load): Likewise.
13365 (get_jit_objfile_data): Likewise.
13366 (get_jit_program_space_data): Likewise.
13367 (jit_object_open_impl): Likewise.
13368 (jit_symtab_open_impl): Likewise.
13369 (jit_block_open_impl): Likewise.
13370 (jit_frame_sniffer): Likewise.
13371 * linux-fork.c (add_fork): Likewise.
13372 * maint.c (make_command_stats_cleanup): Likewise.
13373 * objfiles.c (get_objfile_pspace_data): Likewise.
13374 * opencl-lang.c (struct lval_closure): Likewise.
13375 * osdata.c (osdata_start_osdata): Likewise.
13376 * progspace.c (new_address_space): Likewise.
13377 (add_program_space): Likewise.
13378 * remote-sim.c (get_sim_inferior_data): Likewise.
13379 * sh-tdep.c (sh_gdbarch_init): Likewise.
13380 * skip.c (Ignore): Likewise.
13381 (skip_delete_command): Likewise.
13382 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13383 (library_list_start_library): Likewise.
13384 (solib_aix_current_sos): Likewise.
13385 * solib-darwin.c (get_darwin_info): Likewise.
13386 (darwin_current_sos): Likewise.
13387 * solib-dsbt.c (get_dsbt_info): Likewise.
13388 * solib-ia64-hpux.c (new_so_list): Likewise.
13389 (ia64_hpux_get_solib_linkage_addr): Likewise.
13390 * solib-spu.c (append_ocl_sos): Likewise.
13391 (spu_current_sos): Likewise.
13392 * solib-svr4.c (get_svr4_info): Likewise.
13393 (svr4_keep_data_in_core): Likewise.
13394 (library_list_start_library): Likewise.
13395 (svr4_default_sos): Likewise.
13396 (svr4_read_so_list): Likewise.
13397 * solib-target.c (library_list_start_library): Likewise.
13398 (solib_target_current_sos): Likewise.
13399 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13400 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13401 * symfile.c (default_symfile_segments): Likewise.
13402 * target-descriptions.c (tdesc_data_init): Likewise.
13403 (tdesc_create_reg): Likewise.
13404 (struct tdesc_type *): Likewise.
13405 (tdesc_create_vector): Likewise.
13406 (tdesc_set_struct_size): Likewise.
13407 (struct tdesc_type *): Likewise.
13408 (tdesc_free_feature): Likewise.
13409 (tdesc_create_feature): Likewise.
13410 * windows-nat.c (windows_add_thread): Likewise.
13411 (windows_make_so): Likewise.
13412 * xml-support.c (gdb_xml_body_text): Likewise.
13413 (gdb_xml_create_parser_and_cleanup): Likewise.
13414 (xml_process_xincludes): Likewise.
13415 * xml-syscall.c (allocate_syscalls_info): Likewise.
13416 (syscall_create_syscall_desc): Likewise.
13417
5acfdbae
SDJ
134182014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13419
13420 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13421 function, with code from i386_stap_parse_special_token.
13422 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13423 (i386_stap_parse_special_token): Move code to the two functions
13424 above; simplify it.
13425
0000e5cc
PA
134262014-01-09 Pedro Alves <palves@redhat.com>
13427 Hui Zhu <hui@codesourcery.com>
13428
13429 PR gdb/16101
13430 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13431 bp_err_string. Don't mark the location shlib_disabled if the
13432 error thrown wasn't a generic or memory error. Catch errors
13433 thrown while inserting breakpoints in overlayed code. Output
13434 error message of software breakpoints.
13435 * remote.c (remote_insert_breakpoint): If this breakpoint has
13436 target-side commands but this stub doesn't support Z0 packets,
13437 throw NOT_SUPPORTED_ERROR error.
13438 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13439 * target.h (target_insert_breakpoint): Extend comment.
13440 (target_insert_hw_breakpoint): Add comment.
13441
b7ea362b
PA
134422014-01-08 Pedro Alves <palves@redhat.com>
13443
13444 * remote.c (remote_add_thread): Add threads silently if starting
13445 up.
13446 (remote_notice_new_inferior): If in all-stop, and starting up,
13447 don't call notice_new_inferior.
13448 (get_current_thread): New function, factored out from ...
13449 (add_current_inferior_and_thread): ... this. Adjust.
13450 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13451 found any thread, then select the remote's current thread as GDB's
13452 current thread too.
13453
b7bba001
JB
134542014-01-08 Joel Brobecker <brobecker@adacore.com>
13455
13456 * NEWS: Create a new section for the next release branch.
13457 Rename the section of the current branch, now that it has
13458 been cut.
13459
16dfbded
JB
134602014-01-08 Joel Brobecker <brobecker@adacore.com>
13461
13462 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13463 * version.in: Bump version to 7.7.50.DATE-cvs.
13464
22c90ac1
YQ
134652014-01-08 Yao Qi <yao@codesourcery.com>
13466
13467 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13468 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13469 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13470
d64ad97c
YQ
134712014-01-08 Yao Qi <yao@codesourcery.com>
13472
13473 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13474 return value of bfd_get_filename to symbol_file_add_from_bfd.
13475
f93ba80c
PM
134762014-01-08 Pierre Muller <muller@sourceware.org>
13477
13478 Fix PR16201.
13479 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13480 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13481 to prim_record_mininal_symbol_and_info.
13482 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13483 in call to prim_record_minimal_symbol_and_info.
13484 (read_pe_exported_syms): Set index field of section_data.
13485
a4d9ba85
AP
134862014-01-07 Andrew Pinski <apinski@cavium.com>
13487
13488 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13489 * features/aarch64.c: Regenerate.
13490
1b67eb02
AS
134912014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13492
13493 * target.c (return_null): Define.
13494 (update_current_target): Use it instead of return_zero for
13495 functions that return a pointer.
13496
5e3f4fab
EBM
134972014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13498
13499 * source.c (add_path): Fix check for duplicated paths in the previously
13500 included paths.
13501
e2616788
HK
135022014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13503
13504 * ada-lang.c: Remove duplicated include statements.
13505 * alphabsd-nat.c: Ditto.
13506 * amd64-darwin-tdep.c: Ditto.
13507 * amd64fbsd-nat.c: Ditto.
13508 * auto-load.c: Ditto.
13509 * ax-gdb.c: Ditto.
13510 * breakpoint.c: Ditto.
13511 * dbxread.c: Ditto.
13512 * fork-child.c: Ditto.
13513 * gdb_usleep.c: Ditto.
13514 * i386-darwin-tdep.c: Ditto.
13515 * i386fbsd-nat.c: Ditto.
13516 * infcmd.c: Ditto.
13517 * inferior.c: Ditto.
13518 * jv-lang.c: Ditto.
13519 * linux-nat.c: Ditto.
13520 * linux-tdep.c: Ditto.
13521 * m68kbsd-nat.c: Ditto.
13522 * m68klinux-nat.c: Ditto.
13523 * microblaze-tdep.c: Ditto.
13524 * mips-linux-tdep.c: Ditto.
13525 * mn10300-tdep.c: Ditto.
13526 * nto-tdep.c: Ditto.
13527 * opencl-lang.c: Ditto.
13528 * osdata.c: Ditto.
13529 * printcmd.c: Ditto.
13530 * regcache.c: Ditto.
13531 * remote-m32r-sdi.c: Ditto.
13532 * remote.c: Ditto.
13533 * symfile.c: Ditto.
13534 * symtab.c: Ditto.
13535 * tilegx-linux-nat.c: Ditto.
13536 * tilegx-tdep.c: Ditto.
13537 * tracepoint.c: Ditto.
13538 * valops.c: Ditto.
13539 * vaxbsd-nat.c: Ditto.
13540 * windows-nat.c: Ditto.
13541 * xtensa-tdep.c: Ditto.
13542
bd1f7788
YQ
135432014-01-07 Yao Qi <yao@codesourcery.com>
13544
13545 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13546
79301218
JB
135472014-01-07 Yao Qi <yao@codesourcery.com>
13548 Joel Brobecker <brobecker@adacore.com>
13549
13550 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13551 (pdc_write_regs): Likewise.
13552 (fetch_regs_kernel_thread): Likewise.
13553 (store_regs_kernel_thread): Likewise.
13554
135552014-01-07 Joel Brobecker <brobecker@adacore.com>
13556
13557 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13558 tagged type objects to their actual type.
13559
8e355c5d
JB
135602014-01-07 Joel Brobecker <brobecker@adacore.com>
13561
13562 * ada-valprint.c (print_field_values): Add "language" parameter.
13563 Update calls to print_field_values and print_variant_part.
13564 Pass new parameter "language" in call to val_print instead
13565 of "current_language". Replace call to ada_val_print by call
13566 to val_print.
13567 (print_variant_part): Add "language" parameter.
13568 (ada_val_print_struct_union): Update call to print_field_values.
13569
4fbf5aa5
JB
135702014-01-07 Joel Brobecker <brobecker@adacore.com>
13571
13572 * ada-valprint.c (ui_memcpy): Delete.
13573 (ada_print_floating): Update documentation. Add empty line
13574 between between function documentation and implementation.
13575 Delete variable "buffer". Use ui_file_xstrdup in place of
13576 ui_file_put. Minor adjustments following this change.
13577
71855601
JB
135782014-01-07 Joel Brobecker <brobecker@adacore.com>
13579
13580 * ada-valprint.c (ada_val_print_string): New function,
13581 extracted from ada_val_print_array.
13582 (ada_val_print_array): Replace extracted code by call
13583 to ada_val_print_string followed by a return. Move
13584 "else" branch to the function's top block.
13585
4eb27a30
JB
135862014-01-07 Joel Brobecker <brobecker@adacore.com>
13587
13588 * ada-valprint.c (ada_val_print_array): Move implementation
13589 down. Rename parameter "offset" and "val" into "offset_aligned"
13590 and "original_value" respectively. Add parameter "offset".
13591
34b27950
JB
135922014-01-07 Joel Brobecker <brobecker@adacore.com>
13593
13594 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13595 re-organizing the code. Change the "???" message printed
13596 when target type is a TYPE_CODE_UNDEF into
13597 "<ref to undefined type>".
13598
079e4591
JB
135992014-01-07 Joel Brobecker <brobecker@adacore.com>
13600
13601 * ada-valprint.c (print_record): Delete, implementation inlined...
13602 (ada_val_print_struct_union): ... here. Remove call to
13603 ada_check_typedef in inlined implementation.
13604
8004dfd1
JB
136052014-01-07 Joel Brobecker <brobecker@adacore.com>
13606
13607 * ada-valprint.c (ada_val_print_gnat_array): New function,
13608 extracted from ada_val_print_1;
13609 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13610 (ada_val_print_flt, ada_val_print_struct_union)
13611 (ada_val_print_ref): Likewise.
13612 (ada_val_print_1): Delete variables i and elttype.
13613 Replace extracted-out code by call to corresponding
13614 new functions.
13615
760a2db0
JB
136162014-01-07 Joel Brobecker <brobecker@adacore.com>
13617
13618 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13619
3a92c861
JB
136202014-01-07 Joel Brobecker <brobecker@adacore.com>
13621
13622 * ada-valprint.c (ada_val_print_1): Replace calls to
13623 ada_val_print_1 by calls to val_print.
13624
cd1630f9
JB
136252014-01-07 Joel Brobecker <brobecker@adacore.com>
13626
13627 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13628 Update calls to self accordingly. Replace calls to c_val_print
13629 by calls to val_print.
13630
bdf779a0
JB
136312014-01-07 Joel Brobecker <brobecker@adacore.com>
13632
13633 * ada-valprint.c (print_record): Delete declaration.
13634 (adjust_type_signedness, ada_val_print_1): Likewise.
13635 (ada_val_print): Move function implementation down.
13636 (print_variant_part, print_field_values, print_record):
13637 Move function implementation up.
13638
c0d48811
JB
136392014-01-07 Joel Brobecker <brobecker@adacore.com>
13640
13641 * python/py-type.c (typy_get_name): New function.
13642 (type_object_getset): Add entry for attribute "name".
13643 * NEWS: Add entry mentioning this new attribute.
13644
c26e9cbb
YQ
136452014-01-07 Yao Qi <yao@codesourcery.com>
13646
13647 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13648 statement.
13649
0cc6f43d
YQ
136502014-01-07 Yao Qi <yao@codesourcery.com>
13651
13652 * gnu-nat.c (info_port_rights): Add qualifier const to
13653 argument args.
13654
eec03155
YQ
136552014-01-07 Yao Qi <yao@codesourcery.com>
13656
13657 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13658
f04a82ef
YQ
136592014-01-07 Yao Qi <yao@codesourcery.com>
13660
13661 * gnu-nat.c (make_inf) Update declaration.
13662 (make_inf): Make it static.
13663 (inf_set_traced): Likewise.
13664 (inf_port_to_thread, inf_task_died_status): Likewise.
13665
d57dda0a
YQ
136662014-01-07 Yao Qi <yao@codesourcery.com>
13667
13668 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13669
3aa8c969
YQ
136702014-01-07 Yao Qi <yao@codesourcery.com>
13671
13672 * gnu-nat.c (_initialize_gnu_nat): Declare.
13673
94123b4f
YQ
136742014-01-07 Yao Qi <yao@codesourcery.com>
13675
13676 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13677 'enum bfd_endian'.
13678 (struct gdbarch_info) <byte_order>: Change type to
13679 'enum bfd_endian'.
13680 <byte_order_for_code>: Likewise.
13681 * gdbarch.c, gdbarch.h: Regenerated.
13682
dc81d70a
TT
136832014-01-06 Sasha Smundak <asmundak@google.com>
13684
13685 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13686
cc2f3c35
TT
136872014-01-06 Tom Tromey <tromey@redhat.com>
13688
13689 * doublest.c (convert_doublest_to_floatformat): Use const, not
13690 CONST.
13691 * somread.c (som_symtab_read): Likewise.
13692
adcf2eed
HZ
136932014-01-07 Hui Zhu <hui@codesourcery.com>
13694
13695 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13696 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13697 (gdb_bfd_fopen): Ditto.
13698 (gdb_bfd_openr): Ditto.
13699 (gdb_bfd_openw): Ditto.
13700 (gdb_bfd_openr_iovec): Ditto.
13701 (gdb_bfd_fdopenr): Ditto.
13702 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13703 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13704 with xstrdup.
13705 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13706 with xstrdup.
13707 * symfile-mem.c (symbol_file_add_from_memory): Removed
13708 gdb_bfd_stash_filename.
13709
50722198
DE
137102014-01-03 Doug Evans <dje@google.com>
13711
13712 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13713 output.
13714
2fa4b862
JB
137152014-01-01 Joel Brobecker <brobecker@adacore.com>
13716
13717 Update year range in copyright notice of all files.
13718
28498c42
JB
137192014-01-01 Joel Brobecker <brobecker@adacore.com>
13720
13721 * top.c (print_gdb_version): Set copyright year to 2014.
13722
7b6e1046
JB
137232014-01-01 Joel Brobecker <brobecker@adacore.com>
13724
13725 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13726
df96af55 13727For older changes see ChangeLog-2013.
c906108c
SS
13728\f
13729Local Variables:
13730mode: change-log
13731left-margin: 8
13732fill-column: 74
13733version-control: never
57da7796 13734coding: utf-8
c906108c 13735End:
This page took 2.1914 seconds and 4 git commands to generate.