Include cleanups.h in common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f1947e8
GB
12014-10-08 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include cleanups.h.
4 * common/common-exceptions.c: Do not include cleanups.h.
5 * utils.h: Likewise.
6
c765fdb9
GB
72014-10-08 Gary Benson <gbenson@redhat.com>
8
9 * ada-lang.c: Do not include exceptions.h.
10 * ada-valprint.c: Likewise.
11 * amd64-tdep.c: Likewise.
12 * auto-load.c: Likewise.
13 * block.c: Likewise.
14 * break-catch-throw.c: Likewise.
15 * breakpoint.c: Likewise.
16 * btrace.c: Likewise.
17 * c-lang.c: Likewise.
18 * cli/cli-cmds.c: Likewise.
19 * cli/cli-interp.c: Likewise.
20 * cli/cli-script.c: Likewise.
21 * completer.c: Likewise.
22 * corefile.c: Likewise.
23 * corelow.c: Likewise.
24 * cp-abi.c: Likewise.
25 * cp-support.c: Likewise.
26 * cp-valprint.c: Likewise.
27 * darwin-nat.c: Likewise.
28 * dwarf2-frame-tailcall.c: Likewise.
29 * dwarf2-frame.c: Likewise.
30 * dwarf2loc.c: Likewise.
31 * dwarf2read.c: Likewise.
32 * eval.c: Likewise.
33 * event-loop.c: Likewise.
34 * event-top.c: Likewise.
35 * f-valprint.c: Likewise.
36 * frame-unwind.c: Likewise.
37 * frame.c: Likewise.
38 * gdbtypes.c: Likewise.
39 * gnu-v2-abi.c: Likewise.
40 * gnu-v3-abi.c: Likewise.
41 * guile/scm-auto-load.c: Likewise.
42 * guile/scm-breakpoint.c: Likewise.
43 * guile/scm-cmd.c: Likewise.
44 * guile/scm-frame.c: Likewise.
45 * guile/scm-lazy-string.c: Likewise.
46 * guile/scm-param.c: Likewise.
47 * guile/scm-symbol.c: Likewise.
48 * guile/scm-type.c: Likewise.
49 * hppa-hpux-tdep.c: Likewise.
50 * i386-tdep.c: Likewise.
51 * inf-loop.c: Likewise.
52 * infcall.c: Likewise.
53 * infcmd.c: Likewise.
54 * infrun.c: Likewise.
55 * interps.c: Likewise.
56 * interps.h: Likewise.
57 * jit.c: Likewise.
58 * linespec.c: Likewise.
59 * linux-nat.c: Likewise.
60 * linux-thread-db.c: Likewise.
61 * m32r-rom.c: Likewise.
62 * main.c: Likewise.
63 * memory-map.c: Likewise.
64 * mi/mi-cmd-break.c: Likewise.
65 * mi/mi-cmd-stack.c: Likewise.
66 * mi/mi-interp.c: Likewise.
67 * mi/mi-main.c: Likewise.
68 * monitor.c: Likewise.
69 * nto-procfs.c: Likewise.
70 * objc-lang.c: Likewise.
71 * p-valprint.c: Likewise.
72 * parse.c: Likewise.
73 * ppc-linux-tdep.c: Likewise.
74 * printcmd.c: Likewise.
75 * probe.c: Likewise.
76 * python/py-auto-load.c: Likewise.
77 * python/py-breakpoint.c: Likewise.
78 * python/py-cmd.c: Likewise.
79 * python/py-finishbreakpoint.c: Likewise.
80 * python/py-frame.c: Likewise.
81 * python/py-framefilter.c: Likewise.
82 * python/py-function.c: Likewise.
83 * python/py-gdb-readline.c: Likewise.
84 * python/py-inferior.c: Likewise.
85 * python/py-infthread.c: Likewise.
86 * python/py-lazy-string.c: Likewise.
87 * python/py-linetable.c: Likewise.
88 * python/py-param.c: Likewise.
89 * python/py-prettyprint.c: Likewise.
90 * python/py-symbol.c: Likewise.
91 * python/py-type.c: Likewise.
92 * python/py-value.c: Likewise.
93 * python/python-internal.h: Likewise.
94 * python/python.c: Likewise.
95 * record-btrace.c: Likewise.
96 * record-full.c: Likewise.
97 * regcache.c: Likewise.
98 * remote-fileio.c: Likewise.
99 * remote-mips.c: Likewise.
100 * remote.c: Likewise.
101 * rs6000-aix-tdep.c: Likewise.
102 * rs6000-nat.c: Likewise.
103 * skip.c: Likewise.
104 * solib-darwin.c: Likewise.
105 * solib-dsbt.c: Likewise.
106 * solib-frv.c: Likewise.
107 * solib-ia64-hpux.c: Likewise.
108 * solib-spu.c: Likewise.
109 * solib-svr4.c: Likewise.
110 * solib.c: Likewise.
111 * spu-tdep.c: Likewise.
112 * stack.c: Likewise.
113 * stap-probe.c: Likewise.
114 * symfile-mem.c: Likewise.
115 * symmisc.c: Likewise.
116 * target.c: Likewise.
117 * thread.c: Likewise.
118 * top.c: Likewise.
119 * tracepoint.c: Likewise.
120 * tui/tui-interp.c: Likewise.
121 * typeprint.c: Likewise.
122 * utils.c: Likewise.
123 * valarith.c: Likewise.
124 * valops.c: Likewise.
125 * valprint.c: Likewise.
126 * value.c: Likewise.
127 * varobj.c: Likewise.
128 * windows-nat.c: Likewise.
129 * xml-support.c: Likewise.
130
484933d1
MR
1312014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
132
133 * mips-tdep.c (add_offset_16): Rewrite to implement what the
134 name implies.
135 (extended_mips16_next_pc): Update accordingly.
136
ab50adb6
MR
1372014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
138
139 * mips-tdep.c (mips16_instruction_is_compact_branch): New
140 function.
141 (micromips_instruction_is_compact_branch): Likewise.
142 (mips16_scan_prologue): Terminate scanning upon seeing a branch
143 or a compact jump, reaching a jump delay slot, or seeing a
144 second non-prologue instruction.
145 (micromips_scan_prologue): Also terminate scanning upon seeing a
146 compact branch or jump, or reaching a branch or jump delay slot.
147 (mips32_scan_prologue): Terminate scanning upon reaching a branch
148 or jump delay slot, or seeing a second non-prologue instruction.
149 (mips32_instruction_has_delay_slot): Retain instruction
150 examination code only, update arguments accordingly and move
151 instruction fetch pieces to...
152 (mips32_insn_at_pc_has_delay_slot): ... this new function.
153 (micromips_instruction_has_delay_slot): Likewise and to...
154 (micromips_insn_at_pc_has_delay_slot): ... this new function.
155 (mips16_instruction_has_delay_slot): Likewise and to...
156 (mips16_insn_at_pc_has_delay_slot): ... this new function.
157 (mips_single_step_through_delay): Update accordingly.
158 (mips_adjust_breakpoint_address): Likewise.
159
ae790652
MR
1602014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
161
162 * mips-tdep.c (micromips_instruction_has_delay_slot): When
163 !mustbe32 also return 1 for 32-bit instructions.
164 (mips16_instruction_has_delay_slot): Likewise. Add an
165 explanatory comment.
166
9b807e7b
MR
1672014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
168
169 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
170 symbols special.
171
0d5ed153
MR
1722014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
173
174 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
175 update comments.
176 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
177 for the breakpoint's address. Don't preinitialize `placed_size'.
178 (insert_bp_location): Set `reqstd_address' rather than
179 `placed_address'.
180 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
181 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
182 address.
183 (bkpt_remove_location): Likewise.
184 (deprecated_insert_raw_breakpoint): Likewise.
185 (deprecated_remove_raw_breakpoint): Likewise.
186 (find_single_step_breakpoint): Likewise.
187 * mem-break.c (default_memory_insert_breakpoint): Use
188 `reqstd_address' for the breakpoint's address. Don't set
189 `placed_address' or `placed_size' if breakpoint contents couldn't
190 have been determined.
191 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
192 the breakpoint's address.
193 (remote_insert_hw_breakpoint): Likewise. Don't set
194 `placed_address' or `placed_size' if breakpoint couldn't have been
195 set.
196 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
197 `reqstd_address' for the breakpoint's address.
198 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
199 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
200 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
201 * microblaze-linux-tdep.c
202 (microblaze_linux_memory_remove_breakpoint): Likewise.
203 * monitor.c (monitor_insert_breakpoint): Likewise.
204 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
205 (procfs_insert_hw_breakpoint): Likewise.
206 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
207 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
208 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
209 * remote-mips.c (mips_insert_breakpoint): Likewise.
210 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
211
3e871532
LM
2122014-10-03 Luis Machado <lgustavo@codesourcery.com>
213
214 * valops.c (value_assign): Check for bit field assignments
215 before calling architecture-specific register value
216 conversion functions.
217
ec48dc8b
PM
2182014-10-03 Pierre Muller <muller@sourceware.org>
219
220 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
221
b57bacec
PA
2222014-10-02 Pedro Alves <palves@redhat.com>
223
224 * breakpoint.c (breakpoints_should_be_inserted_now): Use
225 threads_are_executing.
226 * breakpoint.h (breakpoints_should_be_inserted_now): Add
227 describing comment.
228 * gdbthread.h (threads_are_executing): Declare.
229 (handle_signal_stop) <random signals>: Don't print about the
230 signal here if stopping.
231 (end_stepping_range): Don't notify observers here.
232 (normal_stop): Update the thread list. If stopped by a random
233 signal or a stepping range ended, notify observers.
234 * thread.c (threads_executing): New global.
235 (init_thread_list): Clear 'threads_executing'.
236 (set_executing): Set or clear 'threads_executing'.
237 (threads_are_executing): New function.
238 (update_threads_executing): New function.
239 (update_thread_list): Use it.
240
13fd3ff3
PA
2412014-10-02 Pedro Alves <palves@redhat.com>
242
243 PR breakpoints/17431
244 * breakpoint.c (update_breakpoints_after_exec): Don't create
245 overlay, longjmp, std terminate nor exception breakpoints here.
246
32990ada
PA
2472014-10-02 Pedro Alves <palves@redhat.com>
248
249 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
250 Adjust comments.
251 * inferior.c (find_inferior_for_program_space): Give preference to
252 the current inferior.
253 * inferior.h (find_inferior_for_program_space): Update comment.
254 * progspace.c (switch_to_program_space_and_thread): Prefer the
255 current inferior if it's bound to the program space requested. If
256 the inferior found doesn't have a PID yet, don't bother looking up
257 a thread.
258 * progspace.h (switch_to_program_space_and_thread): Adjust
259 comment.
260 * thread.c (any_thread_of_process, any_live_thread_of_process):
261 Give preference to the current thread.
262
0fec99e8
PA
2632014-10-01 Pedro Alves <palves@redhat.com>
264
265 * breakpoint.c (insert_bp_location): Error out if inserting a
266 software breakpoint at a read-only address.
267 * target.c (memory_xfer_check_region): New function, factored out
268 from ...
269 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
270 ULONGEST.
271 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
272 against the memory region attributes.
273
2ddf4301
SM
2742014-10-01 Simon Marchi <simon.marchi@ericsson.com>
275
276 * NEWS: Announce new exit-code field in -list-thread-groups
277 output.
278 * inferior.c (exit_inferior_1): Don't clear exit code.
279 (inferior_appeared): Clear exit code.
280 * mi/mi-main.c (print_one_inferior): Add printing of the exit
281 code.
282
5fdeec1d
PA
2832014-10-01 Pedro Alves <palves@redhat.com>
284
285 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
286 GENERATED" along with emacs/vi read-only markers.
287 * regformats/aarch64.dat: Regenerate.
288 * regformats/arm-with-iwmmxt.dat: Regenerate.
289 * regformats/arm-with-neon.dat: Regenerate.
290 * regformats/arm-with-vfpv2.dat: Regenerate.
291 * regformats/arm-with-vfpv3.dat: Regenerate.
292 * regformats/i386/amd64-avx-linux.dat: Regenerate.
293 * regformats/i386/amd64-avx.dat: Regenerate.
294 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
295 * regformats/i386/amd64-avx512.dat: Regenerate.
296 * regformats/i386/amd64-linux.dat: Regenerate.
297 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
298 * regformats/i386/amd64-mpx.dat: Regenerate.
299 * regformats/i386/amd64.dat: Regenerate.
300 * regformats/i386/i386-avx-linux.dat: Regenerate.
301 * regformats/i386/i386-avx.dat: Regenerate.
302 * regformats/i386/i386-avx512-linux.dat: Regenerate.
303 * regformats/i386/i386-avx512.dat: Regenerate.
304 * regformats/i386/i386-linux.dat: Regenerate.
305 * regformats/i386/i386-mmx-linux.dat: Regenerate.
306 * regformats/i386/i386-mmx.dat: Regenerate.
307 * regformats/i386/i386-mpx-linux.dat: Regenerate.
308 * regformats/i386/i386-mpx.dat: Regenerate.
309 * regformats/i386/i386.dat: Regenerate.
310 * regformats/i386/x32-avx-linux.dat: Regenerate.
311 * regformats/i386/x32-avx.dat: Regenerate.
312 * regformats/i386/x32-avx512-linux.dat: Regenerate.
313 * regformats/i386/x32-avx512.dat: Regenerate.
314 * regformats/i386/x32-linux.dat: Regenerate.
315 * regformats/i386/x32.dat: Regenerate.
316 * regformats/microblaze-with-stack-protect.dat: Regenerate.
317 * regformats/mips-dsp-linux.dat: Regenerate.
318 * regformats/mips-linux.dat: Regenerate.
319 * regformats/mips64-dsp-linux.dat: Regenerate.
320 * regformats/mips64-linux.dat: Regenerate.
321 * regformats/nios2-linux.dat: Regenerate.
322 * regformats/rs6000/powerpc-32.dat: Regenerate.
323 * regformats/rs6000/powerpc-32l.dat: Regenerate.
324 * regformats/rs6000/powerpc-64l.dat: Regenerate.
325 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
326 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
327 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
328 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
329 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
330 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
331 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
332 * regformats/s390-linux32.dat: Regenerate.
333 * regformats/s390-linux32v1.dat: Regenerate.
334 * regformats/s390-linux32v2.dat: Regenerate.
335 * regformats/s390-linux64.dat: Regenerate.
336 * regformats/s390-linux64v1.dat: Regenerate.
337 * regformats/s390-linux64v2.dat: Regenerate.
338 * regformats/s390-te-linux64.dat: Regenerate.
339 * regformats/s390x-linux64.dat: Regenerate.
340 * regformats/s390x-linux64v1.dat: Regenerate.
341 * regformats/s390x-linux64v2.dat: Regenerate.
342 * regformats/s390x-te-linux64.dat: Regenerate.
343 * regformats/tic6x-c62x-linux.dat: Regenerate.
344 * regformats/tic6x-c62x.dat: Regenerate.
345 * regformats/tic6x-c64x-linux.dat: Regenerate.
346 * regformats/tic6x-c64x.dat: Regenerate.
347 * regformats/tic6x-c64xp-linux.dat: Regenerate.
348 * regformats/tic6x-c64xp.dat: Regenerate.
349
db74e4ba
PA
3502014-10-01 Pedro Alves <palves@redhat.com>
351
352 * features/Makefile: Update comments.
353 (XMLTOC): List all xml files we build C files from.
354 (clean-cfiles): New rule.
355
d63f2f84
PA
3562014-10-01 Pedro Alves <palves@redhat.com>
357
358 * features/i386/amd64-avx512-linux.c: Regenerate.
359 * features/i386/amd64-avx512.c: Regenerate.
360 * features/i386/x32-avx512-linux.c: Regenerate.
361 * features/i386/x32-avx512.c: Regenerate.
362
20ad026d
PA
3632014-10-01 Pedro Alves <palves@redhat.com>
364
365 * features/Makefile (WHICH): Remove arm-with-m,
366 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
367
acc9fe45
PA
3682014-10-01 Pedro Alves <palves@redhat.com>
369
370 * features/Makefile (clean): New rule.
371
e001e535
PA
3722014-10-01 Pedro Alves <palves@redhat.com>
373
374 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
375 (zmm14h): Add missing end quotes.
376
bdc14417
PA
3772014-10-01 Pedro Alves <palves@redhat.com>
378
379 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
380 * features/aarch64.c: Regenerate.
381
d83ad864
DB
3822014-09-30 Don Breazeal <donb@codesourcery.com>
383
384 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
385 code so as to work with follow_fork_inferior.
386 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
387 (inf_ttrace_create_inferior): Remove reference to
388 inf_ttrace_vfork_ppid.
389 (inf_ttrace_attach): Ditto.
390 (inf_ttrace_detach): Ditto.
391 (inf_ttrace_kill): Use current_inferior instead of
392 inf_ttrace_vfork_ppid.
393 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
394 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
395 inferior away from the parent.
396 * infrun.c (follow_fork): Call follow_fork_inferior instead of
397 target_follow_fork.
398 (follow_fork_inferior): New function.
399 (follow_inferior_reset_breakpoints): Make function static.
400 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
401 * linux-nat.c (linux_child_follow_fork): Move target-independent
402 code to infrun.c:follow_fork_inferior.
403
29082443
AA
4042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
405
406 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
407 * gdbarch.c: Regenerate.
408 * gdbarch.h: Likewise.
409 * corelow.c (sniff_core_bfd): Drop presence check for deleted
410 gdbarch method 'regset_from_core_section'.
411 (get_core_register_section): Remove handling for the case that
412 regset == NULL and regset_from_core_section is defined.
413 (get_core_registers): Drop check for deleted method.
414 * procfs.c (procfs_do_thread_registers): Adjust comment.
415
f968fe80
AA
4162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
417
418 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
419 (linux_nat_make_corefile_notes): Remove.
420 (linux_target_install_ops): Do not set target method
421 'make_corefile_notes'.
422 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
423 Remove field.
424 (linux_corefile_thread_callback): Instead of args->collect, call
425 linux_collect_thread_registers.
426 (linux_make_corefile_notes): Remove 'collect' parameter. Return
427 NULL unless there is a regset iterator.
428 (linux_make_corefile_notes_1): Remove.
429 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
430 by linux_make_corefile_notes.
431 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
432
174ad59a
AA
4332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
434
435 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
436 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
437 Remove.
438 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
439
97094034
AA
4402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
441
442 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
443 (xtensa_iterate_over_regset_sections): New.
444 (xtensa_gdbarch_init): Adjust gdbarch initialization.
445
f73d3ce7
AA
4462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
447
448 * vax-tdep.c (vax_regset_from_core_section): Remove.
449 (vax_iterate_over_regset_sections): New.
450 (vax_gdbarch_init): Adjust gdbarch initialization.
451
cb24567a
AA
4522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
453
454 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
455 (tilegx_regset_from_core_section): Remove.
456 (tilegx_iterate_over_regset_sections): New.
457 (tilegx_linux_init_abi): Adjust gdbarch initialization.
458
e5139de8
AA
4592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
462 (sparc_iterate_over_regset_sections): New.
463 (sparc32_gdbarch_init): Adjust gdbarch initialization.
464 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
465 targets.
466 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
467 (sparc64fbsd_init_abi): Call fbsd_init_abi.
468 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
469 target method 'make_corefile_notes'.
470
c6d41a6f
AA
4712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
472
473 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
474 'sizeof_gregset' and 'sizeof_fpregset'.
475 * sh-tdep.c (sh_regset_from_core_section): Remove.
476 (sh_iterate_over_regset_sections): New.
477 (sh_gdbarch_init): Adjust gdbarch initialization.
478 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
479 sizeof_fpregset.
480 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
481 'sizeof_gregset'.
482
9845a0b5
AA
4832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
484
485 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
486 (score7_linux_iterate_over_regset_sections): New.
487 (score_gdbarch_init): Adjust gdbarch initialization.
488
23ea9aeb
AA
4892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
490
491 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
492 FreeBSD targets.
493 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
494 method 'make_corefile_notes'.
495 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
496 (ppcfbsd_regset_from_core_section): Remove.
497 (ppcfbsd_iterate_over_regset_sections): New.
498 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
499 initialization.
500 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
501 (ppcnbsd_iterate_over_regset_sections): New.
502 (ppcnbsd_init_abi): Adjust.
503 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
504 (ppcobsd_iterate_over_regset_sections): New.
505 (ppcobsd_init_abi): Adjust.
506 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
507 (rs6000_aix_iterate_over_regset_sections): New.
508 (rs6000_aix_init_osabi): Adjust.
509
c5b8d704
AA
5102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
511
512 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
513 (nios2_regset_from_core_section): Remove.
514 (nios2_iterate_over_regset_sections): New.
515 (nios2_linux_init_abi): Adjust gdbarch initialization.
516
3636e608
AA
5172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
518
519 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
520 (am33_iterate_over_regset_sections): New.
521 (am33_linux_init_osabi): Adjust gdbarch initialization.
522
d4036235
AA
5232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
524
525 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
526 (mips_linux_iterate_over_regset_sections): New.
527 (mips_linux_init_abi): Adjust gdbarch initialization.
528 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
529 (mips64obsd_iterate_over_regset_sections): New.
530 (mips64obsd_init_abi): Adjust.
531 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
532 (mipsnbsd_iterate_over_regset_sections): New.
533 (mipsnbsd_init_abi): Adjust.
534
b61ddd6e
AA
5352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
536
537 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
538 (m88k_iterate_over_regset_sections): New.
539 (m88k_gdbarch_init): Adjust gdbarch initialization.
540
55a2906a
AA
5412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
542
543 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
544 (ia64_linux_iterate_over_regset_sections): New.
545 (ia64_linux_init_abi): Adjust gdbarch initialization.
546
022c98ab
AA
5472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
548
549 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
550 (m68kbsd_iterate_over_regset_sections): New.
551 (m68kbsd_init_abi): Adjust gdbarch initialization.
552 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
553 (m68k_linux_iterate_over_regset_sections): New.
554 (m68k_linux_init_abi): Adjust gdbarch initialization.
555
5fac247f
AA
5562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
557
558 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
559 (m32r_linux_regset_from_core_section): Remove.
560 (m32r_linux_iterate_over_regset_sections): New.
561 (m32r_linux_init_abi): Adjust gdbarch initialization.
562
490496c3
AA
5632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
564
565 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
566 (amd64obsd_iterate_over_regset_sections): New.
567 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
568 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
569 Remove.
570 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
571 regset_from_core_section initialization.
572 * i386-tdep.c (i386_regset_from_core_section): Remove.
573 (i386_iterate_over_regset_sections): New.
574 (i386_gdbarch_init): Adjust gdbarch initialization.
575 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
576 (i386_iterate_over_regset_sections): New prototype.
577 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
578 Remove.
579 (i386obsd_aout_iterate_over_regset_sections): New.
580 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
581 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
582 targets.
583 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
584 (amd64fbsd_init_abi): Call fbsd_init_abi.
585 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
586 (i386fbsd4_init_abi): Call fbsd_init_abi.
587 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
588 target method 'make_corefile_notes'.
589 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
590
50c5eb53
AA
5912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
592
593 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
594 (hppa_hpux_iterate_over_regset_sections): New.
595 (hppa_hpux_init_abi): Adjust gdbarch initialization.
596 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
597 (hppa_linux_iterate_over_regset_sections): New.
598 (hppa_linux_init_abi): Adjust.
599 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
600 (hppanbsd_iterate_over_regset_sections): New.
601 (hppanbsd_init_abi): Adjust.
602 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
603 (hppaobsd_iterate_over_regset_sections): New.
604 (hppaobsd_init_abi): Adjust.
605
66afae4f
AA
6062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607
608 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
609 (frv_linux_iterate_over_regset_sections): New.
610 (frv_linux_init_abi): Adjust gdbarch initialization.
611
ed09174e
AA
6122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
613
614 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
615 (armbsd_iterate_over_regset_sections): New prototype.
616 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
617 (armbsd_iterate_over_regset_sections): New.
618 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
619 initialization.
620
dff2166e
AA
6212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
622
623 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
624 (alpha_linux_iterate_over_regset_sections): New.
625 (alpha_linux_init_abi): Adjust gdbarch initialization.
626 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
627 prototype.
628 (alphanbsd_iterate_over_regset_sections): New prototype.
629
4108500a
AA
6302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
631
632 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
633 Remove.
634 (aarch64_linux_iterate_over_regset_sections): New.
635 (aarch64_linux_init_abi): Adjust gdbarch initialization.
636
a904c024
AA
6372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
638
639 * fbsd-tdep.c: New file.
640 * fbsd-tdep.h: New file.
641 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
642 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
643 (ALLDEPFILES): Add fbsd-tdep.c.
644
8f0435f7
AA
6452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
646
647 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
648 parameter.
649 * gdbarch.h: Regenerate.
650 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
651 iterator.
652 (get_core_register_section): Add parameter 'regset' and use it, if
653 set. Add parameter 'min_size' and verify the bfd section size
654 against it.
655 (get_core_registers_cb): Add parameter 'regset' and pass it to
656 get_core_register section. For the "standard" register sections
657 ".reg" and ".reg2", set an appropriate default for human_name.
658 (get_core_registers): Don't abort when the gdbarch has an iterator
659 but no regset_from_core_section. Add NULL/0 for parameters
660 'regset'/'min_size' in calls to get_core_register_section.
661 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
662 'regset' and use it instead of calling the
663 regset_from_core_section gdbarch method.
664 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
665 * i386-tdep.c (i386_supply_xstateregset)
666 (i386_collect_xstateregset, i386_xstateregset): Moved to
667 i386-linux-tdep.c.
668 (i386_regset_from_core_section): Drop handling for .reg-xfp and
669 .reg-xstate.
670 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
671 core file support only if the regset iterator hasn't been set.
672 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
673 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
674 Moved from i386-tdep.c and renamed to *_linux*.
675 (i386_linux_iterate_over_regset_sections): Add regset parameter to
676 each callback invocation. Allow any .reg-xstate size when reading
677 from a core file.
678 * amd64-tdep.c (amd64_supply_xstateregset)
679 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
680 amd64-linux-tdep.c.
681 (amd64_regset_from_core_section): Remove.
682 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
683 install an amd64-specific regset_from_core_section gdbarch method.
684 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
685 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
686 Moved from amd64-tdep.c and renamed to *_linux*.
687 (amd64_linux_iterate_over_regset_sections): Add regset parameter
688 to each callback invocation. Allow any .reg-xstate size when
689 reading from a core file.
690 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
691 (arm_linux_iterate_over_regset_sections): Add regset parameter to
692 each callback invocation.
693 (arm_linux_init_abi): No longer set the regset_from_core_section
694 gdbarch method.
695 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
696 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
697 each callback invocation.
698 (ppc_linux_init_abi): No longer set the regset_from_core_section
699 gdbarch method.
700 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
701 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
702 (s390_regset_from_core_section): Remove.
703 (s390_iterate_over_regset_sections): Add regset parameter to each
704 callback invocation.
705 (s390_gdbarch_init): No longer set the regset_from_core_section
706 gdbarch method. Drop initialization of deleted tdep fields.
707
5aa82d05
AA
7082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
709
710 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
711 (amd64_linux_iterate_over_regset_sections): New.
712 (amd64_linux_init_abi_common): Don't install the regset section
713 list, but the new iterator in gdbarch.
714 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
715 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
716 (arm_linux_iterate_over_regset_sections): ...here. New function.
717 (arm_linux_init_abi): Set iterator instead of section list.
718 * corelow.c (get_core_registers_cb): New function, logic moved
719 from...
720 (get_core_registers): ...loop body here. Use new iterator method
721 instead of walking through the regset section list.
722 * gdbarch.sh: Remove 'core_regset_sections'. New method
723 'iterate_over_regset_sections'. New typedef
724 'iterate_over_regset_sections_cb'.
725 * gdbarch.c: Regenerate.
726 * gdbarch.h: Likewise.
727 * i386-linux-tdep.c (i386_linux_regset_sections)
728 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
729 Remove.
730 (i386_linux_iterate_over_regset_sections): New.
731 (i386_linux_init_abi): Don't choose a regset section list, but
732 install new iterator in gdbarch.
733 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
734 (linux_collect_regset_section_cb): New function, logic moved
735 from...
736 (linux_collect_thread_registers): ...loop body here. Use iterator
737 method instead of walking through list.
738 (linux_make_corefile_notes_1): Check for presence of iterator
739 method instead of regset section list.
740 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
741 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
742 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
743 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
744 (ppc_linux_iterate_over_regset_sections): ...here. New function.
745 (ppc_linux_init_abi): Don't choose from above regset section
746 lists, but install new iterator in gdbarch.
747 * regset.h (struct core_regset_section): Remove.
748 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
749 have_linux_v1, have_linux_v2, and have_tdb.
750 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
751 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
752 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
753 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
754 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
755 (s390_iterate_over_regset_sections): ...here. New function. Use
756 new tdep fields.
757 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
758 regset section lists, but install new iterator.
759
2eca4a8d
JK
7602014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
763
a73c2b56
SM
7642014-09-26 Simon Marchi <simon.marchi@ericsson.com>
765
766 * progspace.c (print_program_space): Don't prune program spaces
767 before printing them.
768
03d46957
PA
7692014-09-25 Pedro Alves <palves@redhat.com>
770
771 * infrun.c (user_visible_resume_ptid): Don't check
772 singlestep_breakpoints_inserted_p.
773
e558d7c1
PA
7742014-09-25 Pedro Alves <palves@redhat.com>
775
776 * breakpoint.c (should_be_inserted): Add debug output.
777
7f89fd65
PA
7782014-09-25 Pedro Alves <palves@redhat.com>
779
780 * infrun.c (stepping_past_instruction_at)
781 (clear_exit_convenience_vars): Point at infrun.h instead of
782 inferior.h.
783 (handle_signal_stop): Fix typo.
784
b7576e5c
YQ
7852014-09-24 Yao Qi <yao@codesourcery.com>
786
787 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
788 bitmask.
789
9a6cf368
GB
7902014-09-22 Gary Benson <gbenson@redhat.com>
791
792 * target.c (target_stop): Updated comment.
793
03f4463b
GB
7942014-09-22 Gary Benson <gbenson@redhat.com>
795
796 * target/target.h (target_stop_ptid): Renamed as...
797 (target_stop_and_wait): New function. Updated comment.
798 All uses updated.
799 (target_continue_ptid): Renamed as...
800 (target_continue_no_signal): New function. Updated comment.
801 All uses updated.
802
a25a5a45
PA
8032014-09-22 Pedro Alves <palves@redhat.com>
804
805 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
806 and "auto" merged.
807 * breakpoint.c (enum ugll_insert_mode): New enum.
808 (always_inserted_mode): Now a plain boolean.
809 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
810 (breakpoints_always_inserted_mode): Delete.
811 (breakpoints_should_be_inserted_now): New function.
812 (insert_breakpoints): Pass UGLL_INSERT to
813 update_global_location_list instead of calling
814 insert_breakpoint_locations manually.
815 (create_solib_event_breakpoint_1): New, factored out from ...
816 (create_solib_event_breakpoint): ... this.
817 (create_and_insert_solib_event_breakpoint): Use
818 create_solib_event_breakpoint_1 instead of calling
819 insert_breakpoint_locations manually.
820 (update_global_location_list): Change parameter type from boolean
821 to enum ugll_insert_mode. All callers adjusted. Adjust to use
822 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
823 (update_global_location_list_nothrow): Change parameter type from
824 boolean to enum ugll_insert_mode.
825 (_initialize_breakpoint): "breakpoint always-inserted" option is
826 now a boolean command. Update help text.
827 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
828 (breakpoints_should_be_inserted_now): New declaration.
829 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
830 Remove breakpoints_always_inserted_mode check.
831 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
832 * remote.c (remote_start_remote): Likewise.
833
04086b45
PA
8342014-09-22 Pedro Alves <palves@redhat.com>
835
836 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
837 (insert_breakpoints): Don't call insert_breakpoint_locations here.
838 Instead, pass UGLL_INSERT to update_global_location_list.
839 (update_global_location_list): Change parameter type from boolean
840 to enum ugll_insert_mode. All callers adjusted. Adjust to use
841 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
842 (create_solib_event_breakpoint_1): New, factored out from ...
843 (create_solib_event_breakpoint): ... this.
844 (create_and_insert_solib_event_breakpoint): Use
845 create_solib_event_breakpoint_1 instead of calling
846 insert_breakpoint_locations manually.
847 (update_global_location_list): Handle UGLL_INSERT.
848
44702360
PA
8492014-09-22 Pedro Alves <palves@redhat.com>
850
851 * breakpoint.c (enum ugll_insert_mode): New enum.
852 (update_global_location_list)
853 (update_global_location_list_nothrow): Change parameter type from
854 boolean to enum ugll_insert_mode. All callers adjusted.
855
93c6145a
JB
8562014-09-19 Joel Brobecker <brobecker@adacore.com>
857
858 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
859 SystemTap support in GDB.
860
89a5711c
DB
8612014-09-19 Don Breazeal <donb@codesourcery.com>
862
863 * linux-nat.c (linux_handle_extended_wait): Call
864 linux_ptrace_get_extended_event.
865 (wait_lwp): Call linux_is_extended_waitstatus.
866 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
867 and linux_is_extended_waitstatus.
868 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
869 linux_ptrace_get_extended_event.
870 (linux_ptrace_get_extended_event): New function.
871 (linux_is_extended_waitstatus): New function.
872 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
873 (linux_is_extended_waitstatus): New declarations.
874
c3b7b696
YQ
8752014-09-19 Yao Qi <yao@codesourcery.com>
876
877 * dwarf2read.c (dwarf_decode_lines): Update declaration.
878 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
879 comments. Callers update.
880 (dwarf_decode_lines): Likewise.
881 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
882 comments. Skip the line table if 'lowpc' is greater than
883 'address'. Don't check
884 dwarf2_per_objfile->has_section_at_zero.
885
2b4fd423
DE
8862014-09-18 Doug Evans <dje@google.com>
887
888 * NEWS: Mention new "producer" attribute of gdb.Symtab.
889 * python/py-symtab.c (stpy_get_producer): New function.
890 (symtab_object_getset): Add "producer" attribute.
891
5e43d467
UW
8922014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
893
894 PR gdb/17384
895 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
896 (do_captured_read_memory_integer): Remove.
897 (safe_read_memory_integer): Use target_read_memory directly instead
898 of catching errors in do_captured_read_memory_integer.
899
04e79979
MR
9002014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
901
902 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
903 not gdb/doc.
904
76aeec5b
SDJ
9052014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
906
907 * objc-lang.c (find_implementation_from_class): Remove dead code.
908
2f693f9d
SDJ
9092014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
910
911 PR cli/7233
912 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
913 "fprintf_unfiltered (gdb_stdlog...)".
914
bb9d5f81
PP
9152014-09-16 Patrick Palka <patrick@parcs.ath.cx>
916
917 PR breakpoints/12526
918 * breakpoint.h (struct watchpoint): New fields val_bitpos and
919 val_bitsize.
920 * breakpoint.c (watch_command_1): Use these fields to retain
921 bitfield information.
922 (extract_bitfield_from_watchpoint_value): New function.
923 (watchpoint_check): Use it.
924 (update_watchpoint): Use it. Optimize the address and length of a
925 HW watchpoint pointing to a bitfield.
926 * value.h (unpack_value_bitfield): New prototype.
927 * value.c (unpack_value_bitfield): Make extern.
928
05db5edd
ST
9292014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
930
931 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
932 x86-dregs.o.
933 * gnu-nat.c (inf_threads): New function.
934 * gnu-nat.h (inf_threads_ftype): New typedef.
935 (inf_threads): New declaration.
936 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
937 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
938 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
939 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
940 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
941 (i386_gnu_dr_get_control): New functions.
942 (reg_addr): New structure.
943 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
944 i386 debugging register hooks.
945 * NEWS: Mention this.
946
5a578da5
OJ
9472014-08-13 Omair Javaid <omair.javaid@linaro.org>
948
949 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
950 vector data transfer instructions.
951 (arm_record_coproc_data_proc): Updated.
952
f20f80dd
OJ
9532014-08-13 Omair Javaid <omair.javaid@linaro.org>
954
955 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
956 arm_record_exreg_ld_st_insn.
957 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
958 load/store insns.
959
851f26ae
OJ
9602014-08-13 Omair Javaid <omair.javaid@linaro.org>
961
962 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
963 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
964 processing instructions.
965
1e1b6563
OJ
9662014-08-13 Omair Javaid <omair.javaid@linaro.org>
967
968 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
969 for advance SIMD struct ld/st insn.
970 (thumb2_record_decode_insn_handler): Replace stub handler with
971 thumb2_record_asimd_struct_ld_st.
972
60cc5e93
OJ
9732014-08-13 Omair Javaid <omair.javaid@linaro.org>
974
975 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
976 for asimd, vfp and coprocessor insns.
977 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
978 and coprocessor insns.
979 (thumb2_record_coproc_insn): New function.
980 (thumb2_record_decode_insn_handler): Update coprocessor insns record
981 handlers.
982 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
983 opcode 110 insns.
984
81219e53
DE
9852014-09-13 Doug Evans <xdje42@gmail.com>
986
987 * NEWS: Mention new "queue-signal" command.
988 * infcmd.c (queue_signal_command): New function.
989 (_initialize_infcmd): Add new queue-signal command.
990
d36bf488
DE
9912014-09-13 Doug Evans <xdje42@gmail.com>
992
993 * linux-nat.c (wait_lwp): Add debugging printf.
994 (linux_nat_wait_1): Ditto.
995
f37f681c
PA
9962014-09-12 Pedro Alves <palves@redhat.com>
997
998 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
999 (create_and_insert_solib_event_breakpoint): New functions.
1000 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1001 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1002 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1003 (remove_dbx_link_breakpoint): Delete function.
1004 (insert_dbx_link_bpt_in_file): Use
1005 create_and_insert_solib_event_breakpoint instead of
1006 deprecated_insert_raw_breakpoint.
1007 (procfs_wait): Don't check whether we hit __dbx_link here.
1008 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1009 here.
1010 * solib-irix.c (base_breakpoint): Delete global.
1011 (disable_break): Delete function.
1012 (enable_break): Use create_solib_event_breakpoint
1013 instead of deprecated_insert_raw_breakpoint.
1014 (irix_solib_handle_event): New function.
1015 (irix_solib_create_inferior_hook): Don't run the target or disable
1016 the mapping-complete breakpoint here.
1017 (_initialize_irix_solib): Install irix_solib_handle_event as
1018 so_ops->handle_event hook.
1019
9d9bf2df
EBM
10202014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1021 Ulrich Weigand  <uweigand@de.ibm.com>
1022
1023 PR tdep/17379
1024 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1025 instead of read_memory_unsigned_integer.
1026
b006a80e
GB
10272014-09-12 Gary Benson <gbenson@redhat.com>
1028
1029 * nat/linux-waitpid.c: Include common-defs.h.
1030 [GDBSERVER]: Add FIXME comment.
1031 [!GDBSERVER]: Don't include defs.h or signal.h.
1032 (linux_debug) [!GDBSERVER]: Remove empty block.
1033
296b1496
GB
10342014-09-12 Gary Benson <gbenson@redhat.com>
1035
1036 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1037 Don't include defs.h or server.h.
1038
53f81362
GB
10392014-09-12 Gary Benson <gbenson@redhat.com>
1040
1041 * nat/linux-btrace.c: Include common-defs.h.
1042 Don't include defs.h, server.h or gdbthread.h.
1043 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1044
727605ca
GB
10452014-09-12 Gary Benson <gbenson@redhat.com>
1046
1047 * common/agent.c: Include common-defs.h.
1048 Don't include defs.h or server.h.
1049 * common/buffer.c: Likewise.
1050 * common/common-debug.c: Likewise.
1051 * common/common-utils.c: Likewise.
1052 * common/errors.c: Likewise.
1053 * common/filestuff.c: Likewise.
1054 * common/format.c: Likewise.
1055 * common/gdb_vecs.c: Likewise.
1056 * common/print-utils.c: Likewise.
1057 * common/ptid.c: Likewise.
1058 * common/rsp-low.c: Likewise.
1059 * common/signals.c: Likewise.
1060 * common/vec.c: Likewise.
1061 * common/xml-utils.c: Likewise.
1062 * nat/linux-osdata.c: Likewise.
1063 * nat/linux-procfs.c: Likewise.
1064 * nat/linux-ptrace.c: Likewise.
1065 * nat/mips-linux-watch.c: Likewise.
1066 * target/waitstatus.c: Likewise.
1067
361c8ade
GB
10682014-09-12 Tom Tromey <tromey@redhat.com>
1069 Gary Benson <gbenson@redhat.com>
1070
1071 * common/common-regcache.h: New file.
1072 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1073 * regcache.h: Include common-regcache.h.
1074 (regcache_read_pc): Don't declare.
1075 * regcache.c (get_thread_regcache_for_ptid): New function.
1076 * nat/linux-btrace.c: Don't include regcache.h.
1077 Include common-regcache.h.
1078 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1079
a01cbb49
TS
10802014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1081
1082 * regcache.h (struct regset): Declare.
1083
98880d46
PA
10842014-09-11 Pedro Alves <palves@redhat.com>
1085
1086 PR gdb/17347
1087 * main.c: Include "infrun.h".
1088 (catch_command_errors, catch_command_errors_const): Wait for the
1089 foreground command to complete.
1090 * top.c (maybe_wait_sync_command_done): New function, factored out
1091 from ...
1092 (maybe_wait_sync_command_done): ... here.
1093 * top.h (maybe_wait_sync_command_done): New declaration.
1094
bd9269f7
GB
10952014-09-11 Tom Tromey <tromey@redhat.com>
1096 Gary Benson <gbenson@redhat.com>
1097
1098 * common/symbol.h: New file.
1099 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1100 * minsyms.c (find_minimal_symbol_address): New function.
1101 * common/agent.c: Include common/symbol.h.
1102 [!GDBSERVER]: Don't include objfiles.h.
1103 (agent_look_up_symbols): Use find_minimal_symbol_address.
1104
f8c1d06b
GB
11052014-09-11 Gary Benson <gbenson@redhat.com>
1106
1107 * target/target.h (target_stop_ptid, target_continue_ptid):
1108 Declare.
1109 * target.c (target_stop_ptid, target_continue_ptid): New
1110 functions.
1111 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1112 (agent_run_command): Always use target_stop_ptid and
1113 target_continue_ptid.
1114
721ec300
GB
11152014-09-11 Tom Tromey <tromey@redhat.com>
1116 Gary Benson <gbenson@redhat.com>
1117
1118 * target/target.h: New file.
1119 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1120 * target.h: Include target/target.h.
1121 (target_read_memory, target_write_memory): Don't declare.
1122 * target.c (target_read_uint32): New function.
1123 * common/agent.c: Include target/target.h.
1124 [!GDBSERVER]: Don't include target.h.
1125 (helper_thread_id): Type changed to uint32_t.
1126 (agent_get_helper_thread_id): Use target_read_uint32.
1127 (agent_run_command): Always use target_read_memory and
1128 target_write_memory.
1129 (agent_capability): Type changed to uint32_t.
1130 (agent_capability_check): Use target_read_uint32.
1131
c5e92cca
GB
11322014-09-11 Gary Benson <gbenson@redhat.com>
1133
1134 * common/common-debug.h (show_debug_regs): Declare.
1135 * common/common-debug.c (show_debug_regs): Define.
1136 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1137 all uses with show_debug_regs. Replace all uses that considered
1138 debug_hw_points as a multi-value integer with straight boolean
1139 uses.
1140 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1141 with show_debug_regs.
1142 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1143 all uses with show_debug_regs.
1144 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1145 uses with show_debug_regs.
1146
eeef931a
UW
11472014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1148
1149 * findvar.c (address_from_register): Handle targets requiring
1150 a special conversion routine even for plain pointer types.
1151
8efa9855
UW
11522014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1153
1154 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1155 (store_register): Do not call exec_one_dummy_insn.
1156
eb479039
JB
11572014-09-10 Joel Brobecker <brobecker@adacore.com>
1158
1159 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1160 dereference it first. Use value_enclosing_type instead of
1161 value_type.
1162 (ada_array_length): Likewise.
1163
deede10c
JB
11642014-09-10 Joel Brobecker <brobecker@adacore.com>
1165
1166 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1167 Adjust function implementation and documentation accordingly.
1168 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1169 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1170 Update call to ada_value_ptr_subscript.
1171
7828a5f5
JB
11722014-09-10 Joel Brobecker <brobecker@adacore.com>
1173
1174 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1175 instead of VAL's type.
1176
35782f14
JB
11772014-09-10 Joel Brobecker <brobecker@adacore.com>
1178
1179 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1180
d342a0da
DE
11812014-09-09 Doug Evans <xdje42@gmail.com>
1182
1183 PR guile/17367
1184 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1185 last parameter to pkg-config, not first.
1186 * configure.ac: Pass --with-guile provided pkg-config path to
1187 GDB_GUILE_PROGRAM_NAMES.
1188 * configure: Regenerate.
1189
b4a3d263
GKB
11902014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1191
1192 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1193 Bertazi".
1194
6e466374
MR
11952014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1196
1197 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1198 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1199 the list of sections determining GDB_OSABI_IRIX.
1200
a1ada89a
JH
12012014-09-09 James Hogan <james.hogan@imgtec.com>
1202
1203 * MAINTAINERS (Write After Approval): Add "James Hogan".
1204
86db008d
JH
12052014-09-09 James Hogan <james.hogan@imgtec.com>
1206
1207 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1208
72fde3df
JB
12092014-09-09 Joel Brobecker <brobecker@adacore.com>
1210
1211 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1212
92d8d229
DE
12132014-09-08 Doug Evans <xdje42@gmail.com>
1214
1215 PR 17247
1216 * guile.c: #include <signal.h>.
1217 (_initialize_guile): Block SIGCHLD while initializing Guile.
1218
1219 Replaces the following, which is reverted.
1220
1221 2014-07-26 Doug Evans <xdje42@gmail.com>
1222
1223 PR 17185
1224 * configure.ac: Add check for header gc/gc.h.
1225 Add check for function setenv.
1226 * configure: Regenerate.
1227 * config.in: Regenerate.
1228 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1229
d81412aa
DE
12302014-09-08 Doug Evans <xdje42@gmail.com>
1231
1232 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1233 with named constant. Fix style of pointer comparison.
1234 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1235
a9f116cb
GKB
12362014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1237
1238 PR gdb/17035
1239 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1240 decide whether we display the command on "show user".
1241 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1242 printing command name.
1243 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1244 * cli/cli-decode.c (cli_user_command_p): Create helper function
1245 to verify whether cmd_list_element is a user-defined command.
1246
c75bd3a2
JK
12472014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1248
1249 PR python/17355
1250 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1251 Fix goto out of TRY_CATCH.
1252
faa42425 12532014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1254 Tom Tromey <tromey@redhat.com>
faa42425
DE
1255
1256 PR 15276
1257 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1258 $_any_caller_matches.
1259 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1260 * python/lib/gdb/function/caller_is.py: New file.
1261
0d41ba00
DE
12622014-09-06 Doug Evans <xdje42@gmail.com>
1263
1264 * infcmd.c (program_info): Fix typo.
1265
474ca4f6
SDJ
12662014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1267
1268 PR gdb/17235
1269 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1270 'number'. New variable 'has_digit'. Rewrite code to deal with
1271 subexpressions on SDT probes.
1272
ebf13736
PA
12732014-09-04 Pedro Alves <palves@redhat.com>
1274
1275 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1276 the input is only one character long.
1277
eb0b0463
SDJ
12782014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1279
1280 PR fortran/17237
1281 * f-valprint.c (f_val_print): Specify the correct print option to
1282 use when printing integer values.
1283
5ee44bfa
GB
12842014-09-04 Gary Benson <gbenson@redhat.com>
1285
1286 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1287 Remove code to cope with LWPs wrapped as PIDs.
1288 Add assertions to ensure no wrapped LWPs are passed.
1289
4875ffdb
PA
12902014-09-04 Pedro Alves <palves@redhat.com>
1291
1292 * value.c (value_ranges_copy_adjusted): New function, factored out
1293 from ...
1294 (value_contents_copy_raw): ... here.
1295 (unpack_value_bits_as_long_1): Rename back to ...
1296 (unpack_bits_as_long): ... this. Remove 'original_value' and
1297 'result' parameters. Change return type to LONGEST.
1298 (unpack_value_bits_as_long): Delete.
1299 (unpack_value_field_as_long_1): Delete.
1300 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1301 (unpack_value_bitfield): New function.
1302 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1303 (value_fetch_lazy): Use unpack_value_bitfield.
1304 * value.h (unpack_value_bits_as_long): Delete declaration.
1305
5f3b99cf
SS
13062014-09-03 Sasha Smundak <asmundak@google.com>
1307
1308 * python/py-frame.c (frapy_read_register): New function.
1309
ac740bc7
JH
13102014-09-03 James Hogan <james.hogan@imgtec.com>
1311
1312 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1313 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1314
7d793aa9
SDJ
13152014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1316
1317 PR python/16699
1318 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1319 function.
1320 (add_cmd): Set "completer_handle_brkchars" to NULL.
1321 * cli/cli-decode.h (struct cmd_list_element)
1322 <completer_handle_brkchars>: New field.
1323 * command.h (completer_ftype_void): New typedef.
1324 (set_cmd_completer_handle_brkchars): New prototype.
1325 * completer.c (set_gdb_completion_word_break_characters): New
1326 function.
1327 (complete_line_internal): Call "completer_handle_brkchars"
1328 callback from command.
1329 * completer.h: Include "command.h".
1330 (set_gdb_completion_word_break_characters): New prototype.
1331 * python/py-cmd.c (cmdpy_completer_helper): New function.
1332 (cmdpy_completer_handle_brkchars): New function.
1333 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1334 (cmdpy_init): Set completer_handle_brkchars to
1335 cmdpy_completer_handle_brkchars.
1336
97ea6506
GB
13372014-09-03 Gary Benson <gbenson@redhat.com>
1338
1339 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1340 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1341 Loop conditions changed to equivalent form.
1342 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1343 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1344 ALL_DEBUG_ADDRESS_REGISTERS.
1345
d1437815
JB
13462014-09-03 Joel Brobecker <brobecker@adacore.com>
1347
1348 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1349 description fix.
1350
9b94fcf1
DE
13512014-09-02 Doug Evans <dje@google.com>
1352
1353 * typeprint.c (find_global_typedef): Fix comment.
1354
df7e5265
GB
13552014-09-02 Gary Benson <gbenson@redhat.com>
1356
1357 * i386-nat.h: Renamed as...
1358 * x86-nat.h: New file. All type, function and variable name
1359 prefixes changed from "i386_" to "x86_". All references updated.
1360 * i386-nat.c: Renamed as...
1361 * x86-nat.c: New file. All type, function and variable name
1362 prefixes changed from "i386_" to "x86_". All references updated.
1363 * common/i386-xstate.h: Renamed as...
1364 * common/x86-xstate.h: New file. All type, function and variable
1365 name prefixes changed from "i386_" to "x86_". All references
1366 updated.
1367 * nat/i386-cpuid.h: Renamed as...
1368 * nat/x86-cpuid.h: New file. All type, function and variable name
1369 prefixes changed from "i386_" to "x86_". All references updated.
1370 * nat/i386-gcc-cpuid.h: Renamed as...
1371 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1372 name prefixes changed from "i386_" to "x86_". All references
1373 updated.
1374 * nat/i386-dregs.h: Renamed as...
1375 * nat/x86-dregs.h: New file. All type, function and variable name
1376 prefixes changed from "i386_" to "x86_". All references updated.
1377 * nat/i386-dregs.c: Renamed as...
1378 * nat/x86-dregs.c: New file. All type, function and variable name
1379 prefixes changed from "i386_" to "x86_". All references updated.
1380
1c3569d4
MR
13812014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1382
1383 * varobj.c (_initialize_varobj): Move to the end of file.
1384
ff55e1b5
GB
13852014-08-29 Gary Benson <gbenson@redhat.com>
1386
1387 * common/common-exceptions.h: New file.
1388 * common/common-exceptions.c: Likewise.
1389 * Makefile.in (SFILES): Add common/common-exceptions.c.
1390 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1391 (COMMON_OBS): Add common-exceptions.o.
1392 (common-exceptions.o): New rule.
1393 * exceptions.h (common-exceptions.h): Include.
1394 (gdb_setjmp.h): Do not include.
1395 (return_reason): Moved to common-exceptions.h.
1396 (enum return_reason): Likewise.
1397 (RETURN_MASK): Likewise.
1398 (typedef return_mask): Likewise.
1399 (enum errors): Likewise.
1400 (struct gdb_exception): Likewise.
1401 (exceptions_state_mc_init): Likewise.
1402 (exceptions_state_mc_action_iter): Likewise.
1403 (exceptions_state_mc_action_iter_1): Likewise.
1404 (TRY_CATCH): Likewise.
1405 (throw_exception): Likewise.
1406 (throw_verror): Likewise.
1407 (throw_vquit): Likewise.
1408 (throw_error): Likewise.
1409 (throw_quit): Likewise.
1410 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1411 (enum catcher_action): Likewise.
1412 (struct catcher): Likewise.
1413 (current_catcher): Likewise.
1414 (catcher_list_size): Likewise.
1415 (exceptions_state_mc_init): Likewise.
1416 (catcher_pop): Likewise.
1417 (exceptions_state_mc): Likewise.
1418 (exceptions_state_mc_action_iter): Likewise.
1419 (exceptions_state_mc_action_iter_1): Likewise.
1420 (throw_exception): Likewise.
1421 (exception_messages): Likewise.
1422 (exception_messages_size): Likewise.
1423 (throw_it): Likewise.
1424 (throw_verror): Likewise.
1425 (throw_vquit): Likewise.
1426 (throw_error): Likewise.
1427 (throw_quit): Likewise.
1428 (prepare_to_throw_exception): New function.
1429
e9bcb658
GB
14302014-08-29 Gary Benson <gbenson@redhat.com>
1431
1432 * common/gdb_setjmp.h: New file.
1433 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1434 * configure.ac: Move sigsetjmp check...
1435 * common/common.m4: ...here.
1436 * configure: Regenerate.
1437 * cp-support.c (SIGJMP_BUF): Delete.
1438 (SIGSETJMP): Likewise.
1439 (SIGLONGJMP): Likewise.
1440 * exceptions.h (gdb_setjmp.h): Include.
1441 (setjmp.h): Do not include.
1442 (EXCEPTIONS_SIGJMP_BUF): Delete.
1443 (EXCEPTIONS_SIGSETJMP): Likewise.
1444 (EXCEPTIONS_SIGLONGJMP): Likewise.
1445 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1446 from gdb_setjmp.h.
1447 * exceptions.c: Likewise.
1448
e3180625
GB
14492014-08-29 Gary Benson <gbenson@redhat.com>
1450
1451 * cleanups.h: Moved to...
1452 * common/cleanups.h: New file.
1453 * cleanups.c: Moved to...
1454 * common/cleanups.c: New file. Include common-defs.h and
1455 cleanups.h. Do not include defs.h.
1456 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1457 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1458 (cleanups.o): New rule.
1459
e3d6ba5d
GB
14602014-08-29 Gary Benson <gbenson@redhat.com>
1461
1462 * common/errors.h (internal_warning): New declaration.
1463 (internal_vwarning): Likewise.
1464 * common/errors.c (internal_warning): New function.
1465 * utils.h (internal_warning): Don't declare.
1466 (internal_vwarning): Likewise.
1467 * utils.c (internal_warning): Removed.
1468
075c7033
GB
14692014-08-29 Gary Benson <gbenson@redhat.com>
1470
1471 * main.c (captured_main): Use warning during startup.
1472 Prefix startup warning messages with command name.
1473
91b35fd0
GB
14742014-08-29 Gary Benson <gbenson@redhat.com>
1475
1476 * main.c (captured_main): Handle usage errors with error.
1477
b1ec390e
GB
14782014-08-29 Gary Benson <gbenson@redhat.com>
1479
1480 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1481 exit pair with a call to error. Wrap the message with _().
1482
fd0ef3dd
GB
14832014-08-29 Gary Benson <gbenson@redhat.com>
1484
1485 * main.c (captured_main): Replace a fprintf/exit
1486 pair with a call to error. Wrap the message with _().
1487
e0e6bcab
GB
14882014-08-29 Gary Benson <gbenson@redhat.com>
1489
1490 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1491 pairs with calls to error. Wrap the message with _().
1492
0d2f5c07
GB
14932014-08-29 Gary Benson <gbenson@redhat.com>
1494
1495 * utils.c (vwarning): Protect calls to target_terminal_ours
1496 and wrap_here.
1497
5df43998
GB
14982014-08-29 Gary Benson <gbenson@redhat.com>
1499
1500 * exceptions.c (print_flush): Protect calls to
1501 target_terminal_ours and wrap_here.
1502
2437fd32
GB
15032014-08-29 Gary Benson <gbenson@redhat.com>
1504
1505 * utils.h (filtered_printing_initialized): New declaration.
1506 * utils.c (abort_with_message): New function.
1507 (internal_vproblem): Use abort_with_message for first level
1508 recursive internal problems, and if gdb_stderr is not set up.
1509 Protect calls to target_terminal_ours, begin_line and query.
1510
f1f58506
DE
15112014-08-28 Doug Evans <dje@google.com>
1512
1513 * symtab.c (in_prologue): Move definition to better spot.
1514 (skip_prologue_using_sal): Ditto.
1515
aab2f208
DE
15162014-08-28 Doug Evans <dje@google.com>
1517
1518 * symtab.c (find_function_start_sal): Move definition to better spot.
1519
6b65d1b6
YQ
15202014-08-28 Yao Qi <yao@codesourcery.com>
1521
1522 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1523 found_stack_adjust in forward scan. Remove condition check
1524 on found_stack_adjust which is always true. Indent the code.
1525
a1b34d15
YQ
15262014-08-28 Yao Qi <yao@codesourcery.com>
1527
1528 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1529 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1530 (dwarf_decode_lines): Remove argument
1531 want_line_info. Remove condition check on want_line_info.
1532 Callers update.
1533
d5962de5
DE
15342014-08-27 Doug Evans <dje@google.com>
1535
1536 * dwarf2read.c (dwarf_record_line): Fix typo.
1537
9b139002
SDJ
15382014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1539
1540 * target.h (struct target_ops::to_terminal_save_ours): Remove
1541 declaration.
1542 (target_terminal_save_ours): Remove macro.
1543 * target-delegates.c: Regenerate.
1544 * inf-child.c (inf_child_target): Don't set the nonexistent
1545 field to_terminal_save_ours.
1546 * inferior.h (child_terminal_save_ours): Remove declaration.
1547 * terminal.h (gdb_save_tty_state): New declaration.
1548 * inflow.c (child_terminal_save_ours): Rename to ...
1549 (gdb_save_tty_state): ... this.
1550 * tui/tui.c: Include terminal.h.
1551 (tui_enable): Use gdb_save_tty_state instead of
1552 target_terminal_save_ours.
1553 (tui_disable): Likewise.
1554
9debeba0
DE
15552014-08-25 Doug Evans <dje@google.com>
1556
1557 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1558 Pass NULL instead of 0 for context pointer.
1559
428fc5fc
YQ
15602014-08-25 Yao Qi <yao@codesourcery.com>
1561
1562 * dwarf2read.c: Fix grammatical error.
1563
cdc07690
YQ
15642014-08-24 Yao Qi <yao@codesourcery.com>
1565
1566 * dwarf2read.c (scan_partial_symbols): Update comments.
1567 Rename argument 'need_pc' with 'set_addrmap'.
1568 (add_partial_namespace): Rename argument 'need_pc' with
1569 'set_addrmap'.
1570 (add_partial_module): Likewise.
1571 (add_partial_subprogram): Likewise. Update comments.
1572 (dwarf2_name): Fix typo.
1573
a05a36a5
DE
15742014-08-22 Doug Evans <dje@google.com>
1575
1576 PR 17276
1577 * dwarf2read.c (dwarf_record_line_p): New function.
1578 (dwarf_decode_lines_1): Ignore subsequent line number entries
1579 for the same line if any entry had a non-zero discriminator.
1580
252a6764
DE
15812014-08-22 Doug Evans <dje@google.com>
1582
1583 * buildsym.h (record_line_ftype): New typedef.
1584 (record_line): Use it.
1585 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1586 (dwarf_decode_lines_1): Call them.
1587
510db052
YQ
15882014-08-22 Yao Qi <yao@codesourcery.com>
1589
1590 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1591 (ctf_end): Remove code.
1592
22fd09ae
JK
15932014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1594
1595 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1596 (linux_make_corefile_notes): call update_thread_list, protected against
1597 exceptions.
1598
656e8868
PA
15992014-08-21 Pedro Alves <palves@redhat.com>
1600
1601 * infcmd.c (attach_command): Remove comment.
1602
de589d04
WN
16032014-08-21 Bin Cheng <bin.cheng@arm.com>
1604
1605 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1606 unsigned LONGEST to ULONGEST.
1607
2a31c623
PA
16082014-08-20 Pedro Alves <palves@redhat.com>
1609
1610 * Makefile.in (check-read1): New rule.
1611
d36430db
JB
16122014-08-20 Joel Brobecker <brobecker@adacore.com>
1613
1614 * value.c (value_from_contents_and_address): Strip resolved_type's
1615 typedef layers before checking its TYPE_DATA_LOCATION.
1616
000339af
PA
16172014-08-20 Pedro Alves <palves@redhat.com>
1618
1619 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1620
5f52445b
YQ
16212014-08-20 Yao Qi <yao@codesourcery.com>
1622
1623 * amd64-tdep.c (amd64_classify): Add a blank line after the
1624 example. Move "*/" to a new line.
1625 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1626 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1627 * dwarf2read.c (psymtab_include_file_name): Likewise.
1628
9a0dc9e3
PA
16292014-08-19 Andrew Burgess <aburgess@broadcom.com>
1630 Pedro Alves <palves@redhat.com>
1631
1632 PR symtab/14604
1633 PR symtab/14605
1634 * ada-lang.c (coerce_unspec_val_to_type): Use
1635 value_contents_copy_raw.
1636 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1637 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1638 * cp-valprint.c (cp_print_value_fields): Let the common printing
1639 code handle optimized out values.
1640 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1641 * d-valprint.c (dynamic_array_type): Use
1642 value_bits_any_optimized_out.
1643 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1644 check_any_valid fields.
1645 (check_pieced_value_bits): Delete and inline ...
1646 (check_pieced_synthetic_pointer): ... here.
1647 (check_pieced_value_validity): Delete.
1648 (check_pieced_value_invalid): Delete.
1649 (pieced_value_funcs): Remove check_validity and check_any_valid
1650 fields.
1651 (read_pieced_value): Use mark_value_bits_optimized_out.
1652 (write_pieced_value): Switch to use
1653 mark_value_bytes_optimized_out.
1654 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1655 of assuming the whole value is optimized out.
1656 * findvar.c (read_frame_register_value): Remove special handling
1657 of optimized out registers.
1658 (value_from_register): Use mark_value_bytes_optimized_out.
1659 * frame-unwind.c (frame_unwind_got_optimized): Use
1660 mark_value_bytes_optimized_out.
1661 * jv-valprint.c (java_value_print): Adjust.
1662 (java_print_value_fields): Let the common printing code handle
1663 optimized out values.
1664 * mips-tdep.c (mips_print_register): Remove special handling of
1665 optimized out registers.
1666 * opencl-lang.c (lval_func_check_validity): Delete.
1667 (lval_func_check_any_valid): Delete.
1668 (opencl_value_funcs): Remove check_validity and check_any_valid
1669 fields.
1670 * p-valprint.c (pascal_object_print_value_fields): Let the common
1671 printing code handle optimized out values.
1672 * stack.c (read_frame_arg): Remove special handling of optimized
1673 out values. Fetch both VAL and ENTRYVAL before comparing
1674 contents. Adjust to value_available_contents_eq rename.
1675 * valprint.c (valprint_check_validity)
1676 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1677 (val_print_array_elements): Adjust.
1678 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1679 (value_bits_any_optimized_out): New function.
1680 (value_entirely_covered_by_range_vector): New function, factored
1681 out from value_entirely_unavailable.
1682 (value_entirely_unavailable): Reimplement.
1683 (value_entirely_optimized_out): New function.
1684 (insert_into_bit_range_vector): New function, factored out from
1685 mark_value_bits_unavailable.
1686 (mark_value_bits_unavailable): Reimplement.
1687 (struct ranges_and_idx): New struct.
1688 (find_first_range_overlap_and_match): New function, factored out
1689 from value_available_contents_bits_eq.
1690 (value_available_contents_bits_eq): Rename to ...
1691 (value_contents_bits_eq): ... this. Check both unavailable
1692 contents and optimized out contents.
1693 (value_available_contents_eq): Rename to ...
1694 (value_contents_eq): ... this.
1695 (allocate_value_lazy): Remove reference to the old optimized_out
1696 boolean.
1697 (allocate_optimized_out_value): Use
1698 mark_value_bytes_optimized_out.
1699 (require_not_optimized_out): Adjust to check whether the
1700 optimized_out vec is empty.
1701 (ranges_copy_adjusted): New function, factored out from
1702 value_contents_copy_raw.
1703 (value_contents_copy_raw): Also copy the optimized out ranges.
1704 Assert the destination ranges aren't optimized out.
1705 (value_contents_copy): Update comment, remove call to
1706 require_not_optimized_out.
1707 (value_contents_equal): Adjust to check whether the optimized_out
1708 vec is empty.
1709 (set_value_optimized_out, value_optimized_out_const): Delete.
1710 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1711 New functions.
1712 (value_entirely_optimized_out, value_bits_valid): Delete.
1713 (value_copy): Take a VEC copy of the 'optimized_out' field.
1714 (value_primitive_field): Remove special handling of optimized out.
1715 (value_fetch_lazy): Assert that lazy values have no unavailable
1716 regions. Use value_bits_any_optimized_out. Remove some special
1717 handling for optimized out values.
1718 * value.h: Add intro comment about <optimized out> and
1719 <unavailable>.
1720 (struct lval_funcs): Remove check_validity and check_any_valid
1721 fields.
1722 (set_value_optimized_out, value_optimized_out_const): Remove.
1723 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1724 New declarations.
1725 (value_bits_any_optimized_out): New declaration.
1726 (value_bits_valid): Delete declaration.
1727 (value_available_contents_eq): Rename to ...
1728 (value_contents_eq): ... this, and extend comments.
1729
6694c411
JK
17302014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Fix -fsanitize=address on unreadable inferior strings.
1733 * valprint.c (val_print_string): Fix access before BUFFER.
1734
89a1c21a
SM
17352014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1736
1737 * target.c (target_struct_size): Remove.
1738 (target_struct_allocsize): Remove.
1739 (DEFAULT_ALLOCSIZE): Remove.
1740 (target_ops_p): New typedef.
1741 (DEF_VEC_P (target_ops_p)): New vector type.
1742 (target_structs): Change type to VEC (target_ops_p).
1743 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1744 (find_default_run_target): Rewrite for loop following changes to
1745 target_structs.
1746
cb417230
JB
17472014-08-19 Joel Brobecker <brobecker@adacore.com>
1748
1749 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1750 Adjust code accordingly. Adjust function description comment.
1751
817e0957
YQ
17522014-08-19 Yao Qi <yao@codesourcery.com>
1753
1754 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1755 types.
1756
2974be62
AM
17572014-08-19 Alan Modra <amodra@gmail.com>
1758
1759 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1760 * config.in: Regenerate.
1761 * configure: Regenerate.
1762
34abf635
GB
17632014-08-19 Tom Tromey <tromey@redhat.com>
1764 Gary Benson <gbenson@redhat.com>
1765
1766 * common/common-debug.h: New file.
1767 * common/common-debug.c: Likewise.
1768 * debug.c: Likewise.
1769 * Makefile.in (SFILES): Add common/common-debug.c.
1770 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1771 (COMMON_OBS): Add common-debug.o and debug.o.
1772 (common-debug.o): New rule.
1773 * common/common-defs.h: Include common-debug.h.
1774 * common/agent.c (debug_agent_printf): New function.
1775 (DEBUG_AGENT): Redefine.
1776 * nat/i386-dregs.c (debug_printf): Undefine.
1777
f6e94d78
GB
17782014-08-19 Gary Benson <gbenson@redhat.com>
1779
1780 * common/common-defs.h: Include print-utils.h.
1781 * utils.h: Do not include print-utils.h.
1782
9239eeab
GB
17832014-08-19 Tom Tromey <tromey@redhat.com>
1784 Gary Benson <gbenson@redhat.com>
1785
1786 * common/common-types.h: New file.
1787 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1788 * common/common-defs.h: Include common-types.h.
1789 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1790 (ULONGEST): Remove.
1791
ef87c8bb
GB
17922014-08-19 Tom Tromey <tromey@redhat.com>
1793 Gary Benson <gbenson@redhat.com>
1794
1795 * common/errors.h: New file.
1796 * common/errors.c: Likewise.
1797 * Makefile.in (SFILES): Add common/errors.c.
1798 (HFILES_NO_SRCDIR): Add common/errors.h.
1799 (COMMON_OBS): Add errors.o.
1800 (errors.o): New rule.
1801 * common/common-defs.h: Include errors.h.
1802 * utils.h (perror_with_name, error, verror, warning, vwarning):
1803 Don't declare.
1804 * common/common-utils.h: (malloc_failure, internal_error):
1805 Likewise.
1806
196a707b
GB
18072014-08-19 Gary Benson <gbenson@redhat.com>
1808
1809 * utils.c (internal_vproblem): Always print the message.
1810
ded4fc8f
DE
18112014-08-18 Doug Evans <dje@google.com>
1812
1813 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1814
950c97d8
JB
18152014-08-18 Joel Brobecker <brobecker@adacore.com>
1816
1817 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1818 Return 0 if TYPE is dynamic.
1819 (print_range): Add handling of dynamic ranges.
1820
3cdcd0ce
JB
18212014-08-18 Keven Boell <keven.boell@intel.com>
1822 Joel Brobecker <brobecker@adacore.com>
1823
1824 * gdbtypes.h (struct main_type): Add field "data_location".
1825 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1826 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1827 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1828 a dynamic data location.
1829 (resolve_dynamic_type): Add DW_AT_data_location handling.
1830 (copy_recursive, copy_type): Copy the data_location information
1831 when present.
1832 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1833 * value.c (value_from_contents_and_address): Add
1834 DW_AT_data_location handling.
1835
08412b07
JB
18362014-08-18 Keven Boell <keven.boell@intel.com>
1837 Joel Brobecker <brobecker@adacore.com>
1838
1839 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1840 field "get_object_address".
1841 * dwarf2expr.c (execute_stack_op): Add handling for
1842 DW_OP_push_object_address.
1843 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1844 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1845 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1846 (dwarf_expr_get_obj_addr): New function.
1847 (dwarf_expr_ctx_funcs): Add get_object_address field.
1848 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1849 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1850 (dwarf2_evaluate_property): Add parameter "address". Use it.
1851 (needs_get_obj_addr): New function.
1852 (needs_frame_ctx_funcs): Add get_object_address field.
1853 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1854 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1855 (resolve_dynamic_array): Likewise.
1856
84754697
JB
18572014-08-18 Joel Brobecker <brobecker@adacore.com>
1858
1859 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1860 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1861 fixed value for records and unions for which some GNAT encodings
1862 are present.
1863
da5c522f
JB
18642014-08-18 Joel Brobecker <brobecker@adacore.com>
1865
1866 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1867 rewrite to avoid "else if" and "else" constructs. Should be
1868 a no-op in practice.
1869
0d72a7c3
JB
18702014-08-18 Joel Brobecker <brobecker@adacore.com>
1871
1872 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1873 of lexical block.
1874
e66d4446
SC
18752014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1876
1877 PR c++/17132
1878 * eval.c: Update all calls to find_overload_match.
1879 * valarith.c: Likewise.
1880 (value_user_defined_cpp_op, value_user_defined_op): New
1881 argument NOSIDE. Update all callers.
1882 * valops.c (find_overload_match): New argument NOSIDE.
1883 * value.h (find_overload_match): Update signature.
1884
940df408
SC
18852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1886
1887 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1888 'items' methods instead of 'iteritems' method on dictionaries.
1889
699ca60a
DE
18902014-08-15 Doug Evans <dje@google.com>
1891
1892 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1893 closer to use.
1894
37780ee5
DE
18952014-08-15 Doug Evans <dje@google.com>
1896
1897 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1898
0ad93d4f
DE
18992014-08-15 Doug Evans <dje@google.com>
1900
1901 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1902
20d8c372
DE
19032014-08-15 Doug Evans <dje@google.com>
1904
1905 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1906 unused.
1907
cb039ba4
EZ
19082014-08-15 Eli Zaretskii <eliz@gnu.org>
1909
1910 * dcache.h: Include target.h, to avoid compile time warnings.
1911
eb7a547a
JB
19122014-08-15 Joel Brobecker <brobecker@adacore.com>
1913
1914 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1915 frame_info" partial declaration.
1916 * gdbarch.h: Regenerate.
1917
783cecc8
YQ
19182014-08-15 Yao Qi <yao@codesourcery.com>
1919
1920 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1921 Add parameter 'decode_for_pst_p'. Callers update.
1922
65c749e7
YQ
19232014-08-13 Yao Qi <yao@codesourcery.com>
1924
1925 PR build/17104
1926 * configure.ac: Use local variable 'pos'.
1927 * configure: Regenerated.
1928
d769e349
DE
19292014-08-11 Doug Evans <dje@google.com>
1930
1931 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1932 message, it is redundant with "Reading symbols from ..." message.
1933
24f1235e
DE
19342014-08-10 Doug Evans <xdje42@gmail.com>
1935
1936 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1937
dcd2e6ef
YQ
19382014-08-09 Yao Qi <yao@codesourcery.com>
1939
1940 PR remote/9053
1941 * remote.c (remote_xfer_partial): Remove dead code.
1942
070bdf0b
AA
19432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1944
1945 * ia64-linux-tdep.c: Include "regset.h".
1946 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1947 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1948 (ia64_linux_supply_fpregset): New function.
1949 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1950 (ia64_linux_regset_from_core_section): New function.
1951 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1952 method.
1953
08f9f542
AA
19542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1955
1956 * m68klinux-tdep.c: Include "regset.h".
1957 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1958 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1959 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1960 (m68k_linux_regset_from_core_section): New function.
1961 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1962 method.
1963
8f1cee41
AA
19642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1965
1966 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1967 function. Move logic to...
1968 (tilegx_linux_regmap): ... this new register map.
1969 (tilegx_linux_regset): Refer to register map, replace supply
1970 method by regcache_supply_regset, and add collect method.
1971 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1972 TILEGX_FIRST_EASY_REGNUM.
1973
c5741217
AA
19742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1975
1976 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1977 that calls regcache_supply_regset and handles the EPC register
1978 separately. Move main logic to...
1979 (score7_linux_gregmap): ... this new register map.
1980 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1981 (score7_linux_gregset): Refer to register map. Add collect method.
1982 (score7_linux_regset_from_core_section): Replace
1983 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1984 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1985 (struct regset): Delete unused forward declaraction.
1986 (struct pt_regs): Delete structure definition.
1987 (elf_gregset_t): Delete typedef.
1988
81580573
AA
19892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1990
1991 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1992 (nios2_core_regset): Add collect method.
1993
ba199d7d
AA
19942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995
1996 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1997 platform-independent and don't write to read-only input buffer.
1998 (m32r_linux_collect_gregset): New function.
1999 (m32r_linux_gregset): Add collect method.
2000
0006a9da
AA
20012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2002
2003 * hppa-linux-tdep.c (greg_map): Rename to...
2004 (hppa_linux_gregmap): ... this. Also convert to
2005 regcache_map_entry format.
2006 (hppa_linux_supply_regset): Delete function.
2007 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2008 (hppa_linux_fpregmap): ... this new register map.
2009 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2010 register map, replace supply method by regcache_supply_regset, and
2011 add collect method regcache_collect_regset.
2012
901e1b23
AA
20132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014
2015 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2016 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2017 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2018 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2019 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2020 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2021 (frv_linux_supply_gregset): Replace main logic by call to
2022 regcache_supply_regset, but keep clearing gr32-gr63.
2023 (frv_linux_supply_fpregset): Delete function.
2024 (frv_linux_gregset): Refer to appropriate register map and add
2025 regcache_collect_regset as the collect method.
2026 (frv_linux_fpregset): Likewise. Also exchange the supply method
2027 by regcache_supply_regset.
2028
1d6e7555
AA
20292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2030
2031 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2032 by call to alpha_supply_int_regs.
2033 (alpha_linux_collect_gregset): New function.
2034 (alpha_linux_supply_fpregset): Replace logic by call to
2035 alpha_supply_fp_regs.
2036 (alpha_linux_collect_fpregset): New function.
2037 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2038
d4d793bf
AA
20392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2040
2041 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2042 by call to regcache_collect_regset.
2043 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2044 instead of aarch64_linux_supply_gregset/_fpregset.
2045 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2046 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2047 header file instead.
2048 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2049 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2050 functions. Move logic to ...
2051 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2052 register maps.
2053 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2054 refer to new register maps, replace *_regset_from_core by
2055 regcache_supply_regset, and also use regcache_collect_regset.
2056 * aarch64-linux-tdep.h: Include "regset.h".
2057 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2058 Delete prototypes.
2059 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2060 macros, moved from C source file.
2061 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2062 variable declarations.
2063
99b7da5d
AA
20642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2065
2066 * s390-linux-nat.c: Include "regset.h".
2067 (regmap_gregset): Delete macro.
2068 (s390_64_regmap_gregset): New register map for
2069 regcache_supply/_collect_regset.
2070 (s390_64_gregset): New regset.
2071 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2072 (regmap_fpregset): Delete macro.
2073 (s390_native_supply, s390_native_collect): Delete functions.
2074 (supply_gregset, fill_gregset): Replace s390-specific regmap
2075 handling by a call to regcache_supply/_collect_regset.
2076 (supply_fpregset, fill_fpregset): Call regcache_supply/
2077 _collect_regset instead of s390_native_supply/_collect.
2078 (fetch_regset, store_regset): Likewise. Also change the last
2079 parameter to a regset instead of a regmap.
2080 (s390_linux_fetch_inferior_registers)
2081 (390_linux_store_inferior_registers): Adjust last parameter in
2082 calls to fetch_regset and store_regset.
2083 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2084 (s390_gregmap): ... this. Also make static const and convert to
2085 regcache_map_entry format.
2086 (s390x_regmap_gregset): Delete.
2087 (s390_regmap_fpregset): Rename to...
2088 (s390_fpregmap): ... this. Make static const and convert to
2089 regcache_map_entry format.
2090 (s390_regmap_upper, s390_regmap_last_break)
2091 (s390x_regmap_last_break, s390_regmap_system_call)
2092 (s390_regmap_tdb): Likewise.
2093 (s390_supply_regset, s390_collect_regset): Remove functions.
2094 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2095 s390_supply_regset.
2096 (s390_gregset, s390_fpregset, s390_upper_regset)
2097 (s390_last_break_regset, s390x_last_break_regset)
2098 (s390_system_call_regset, s390_tdb_regset): Make global and
2099 replace s390_supply/_collect_regset by regcache_supply/
2100 _collect_regset.
2101 (s390x_gregset): Delete.
2102 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2103 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2104 (s390_regmap_fpregset, s390_regmap_last_break)
2105 (s390x_regmap_last_break, s390_regmap_system_call)
2106 (s390_regmap_tdb): Delete global variable declarations.
2107 (s390_gregset, s390_fpregset, s390_last_break_regset)
2108 (s390x_last_break_regset, s390_system_call_regset)
2109 (s390_tdb_regset): New global variable declarations.
2110
0b309272
AA
21112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2112
2113 * regcache.c: Include "regset.h".
2114 (regcache_transfer_regset): New local function.
2115 (regcache_supply_regset, regcache_collect_regset): New functions.
2116 * regcache.h (struct regcache_map_entry): New structure.
2117 (REGCACHE_MAP_SKIP): New enum value.
2118 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2119
7fefa8d7
AA
21202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2121
2122 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2123 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2124 (ppc_linux_collect_gregset ): Likewise.
2125 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2126 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2127 (ppc_collect_vrregset): Likewise.
2128 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2129 Likewise.
2130
96c4f946
YQ
21312014-08-07 Yao Qi <yao@codesourcery.com>
2132
2133 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2134 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2135 * remote.c (remote_read_bytes): Likewise.
2136
fffbe6a8
YQ
21372014-08-07 Yao Qi <yao@codesourcery.com>
2138
2139 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2140
5ee8a82c
YQ
21412014-08-07 Yao Qi <yao@codesourcery.com>
2142
2143 PR remote/17230
2144 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2145 TARGET_XFER_OK instead of 0.
2146
bb974a24
GB
21472014-08-07 Gary Benson <gbenson@redhat.com>
2148
2149 * common/common-defs.h: Include errno.h.
2150 * defs.h: Do not include errno.h.
2151 * ada-typeprint.c: Likewise.
2152 * c-typeprint.c: Likewise.
2153 * core-regset.c: Likewise.
2154 * corefile.c: Likewise.
2155 * corelow.c: Likewise.
2156 * event-loop.c: Likewise.
2157 * f-typeprint.c: Likewise.
2158 * gnu-nat.c: Likewise.
2159 * go32-nat.c: Likewise.
2160 * i386gnu-nat.c: Likewise.
2161 * m2-typeprint.c: Likewise.
2162 * nat/linux-btrace.c: Likewise.
2163 * p-typeprint.c: Likewise.
2164 * procfs.c: Likewise.
2165 * remote-sim.c: Likewise.
2166 * rs6000-nat.c: Likewise.
2167 * target.c: Likewise.
2168 * typeprint.c: Likewise.
2169 * ui-file.c: Likewise.
2170 * valops.c: Likewise.
2171 * valprint.c: Likewise.
2172
6d3d12eb
GB
21732014-08-07 Gary Benson <gbenson@redhat.com>
2174
2175 * common/common-defs.h: Include string.h.
2176 * aarch64-tdep.c: Do not include string.h.
2177 * ada-exp.y: Likewise.
2178 * ada-lang.c: Likewise.
2179 * ada-lex.l: Likewise.
2180 * ada-typeprint.c: Likewise.
2181 * ada-valprint.c: Likewise.
2182 * aix-thread.c: Likewise.
2183 * alpha-linux-tdep.c: Likewise.
2184 * alpha-mdebug-tdep.c: Likewise.
2185 * alpha-nat.c: Likewise.
2186 * alpha-osf1-tdep.c: Likewise.
2187 * alpha-tdep.c: Likewise.
2188 * alphanbsd-tdep.c: Likewise.
2189 * amd64-dicos-tdep.c: Likewise.
2190 * amd64-linux-tdep.c: Likewise.
2191 * amd64-nat.c: Likewise.
2192 * amd64-sol2-tdep.c: Likewise.
2193 * amd64fbsd-tdep.c: Likewise.
2194 * amd64obsd-tdep.c: Likewise.
2195 * arch-utils.c: Likewise.
2196 * arm-linux-nat.c: Likewise.
2197 * arm-linux-tdep.c: Likewise.
2198 * arm-tdep.c: Likewise.
2199 * arm-wince-tdep.c: Likewise.
2200 * armbsd-tdep.c: Likewise.
2201 * armnbsd-nat.c: Likewise.
2202 * armnbsd-tdep.c: Likewise.
2203 * armobsd-tdep.c: Likewise.
2204 * avr-tdep.c: Likewise.
2205 * ax-gdb.c: Likewise.
2206 * ax-general.c: Likewise.
2207 * bcache.c: Likewise.
2208 * bfin-tdep.c: Likewise.
2209 * breakpoint.c: Likewise.
2210 * build-id.c: Likewise.
2211 * buildsym.c: Likewise.
2212 * c-exp.y: Likewise.
2213 * c-lang.c: Likewise.
2214 * c-typeprint.c: Likewise.
2215 * c-valprint.c: Likewise.
2216 * charset.c: Likewise.
2217 * cli-out.c: Likewise.
2218 * cli/cli-cmds.c: Likewise.
2219 * cli/cli-decode.c: Likewise.
2220 * cli/cli-dump.c: Likewise.
2221 * cli/cli-interp.c: Likewise.
2222 * cli/cli-logging.c: Likewise.
2223 * cli/cli-script.c: Likewise.
2224 * cli/cli-setshow.c: Likewise.
2225 * cli/cli-utils.c: Likewise.
2226 * coffread.c: Likewise.
2227 * common/agent.c: Likewise.
2228 * common/buffer.c: Likewise.
2229 * common/buffer.h: Likewise.
2230 * common/common-utils.c: Likewise.
2231 * common/filestuff.c: Likewise.
2232 * common/filestuff.c: Likewise.
2233 * common/format.c: Likewise.
2234 * common/print-utils.c: Likewise.
2235 * common/rsp-low.c: Likewise.
2236 * common/signals.c: Likewise.
2237 * common/vec.h: Likewise.
2238 * common/xml-utils.c: Likewise.
2239 * core-regset.c: Likewise.
2240 * corefile.c: Likewise.
2241 * corelow.c: Likewise.
2242 * cp-abi.c: Likewise.
2243 * cp-name-parser.y: Likewise.
2244 * cp-support.c: Likewise.
2245 * cp-valprint.c: Likewise.
2246 * cris-tdep.c: Likewise.
2247 * d-exp.y: Likewise.
2248 * darwin-nat.c: Likewise.
2249 * dbxread.c: Likewise.
2250 * dcache.c: Likewise.
2251 * demangle.c: Likewise.
2252 * dicos-tdep.c: Likewise.
2253 * disasm.c: Likewise.
2254 * doublest.c: Likewise.
2255 * dsrec.c: Likewise.
2256 * dummy-frame.c: Likewise.
2257 * dwarf2-frame.c: Likewise.
2258 * dwarf2loc.c: Likewise.
2259 * dwarf2read.c: Likewise.
2260 * elfread.c: Likewise.
2261 * environ.c: Likewise.
2262 * eval.c: Likewise.
2263 * event-loop.c: Likewise.
2264 * exceptions.c: Likewise.
2265 * exec.c: Likewise.
2266 * expprint.c: Likewise.
2267 * f-exp.y: Likewise.
2268 * f-lang.c: Likewise.
2269 * f-typeprint.c: Likewise.
2270 * f-valprint.c: Likewise.
2271 * fbsd-nat.c: Likewise.
2272 * findcmd.c: Likewise.
2273 * findvar.c: Likewise.
2274 * fork-child.c: Likewise.
2275 * frame.c: Likewise.
2276 * frv-linux-tdep.c: Likewise.
2277 * frv-tdep.c: Likewise.
2278 * gdb.c: Likewise.
2279 * gdb_bfd.c: Likewise.
2280 * gdbarch.c: Likewise.
2281 * gdbarch.sh: Likewise.
2282 * gdbtypes.c: Likewise.
2283 * gnu-nat.c: Likewise.
2284 * gnu-v2-abi.c: Likewise.
2285 * gnu-v3-abi.c: Likewise.
2286 * go-exp.y: Likewise.
2287 * go-lang.c: Likewise.
2288 * go32-nat.c: Likewise.
2289 * guile/guile.c: Likewise.
2290 * guile/scm-auto-load.c: Likewise.
2291 * hppa-hpux-tdep.c: Likewise.
2292 * hppa-linux-nat.c: Likewise.
2293 * hppanbsd-tdep.c: Likewise.
2294 * hppaobsd-tdep.c: Likewise.
2295 * i386-cygwin-tdep.c: Likewise.
2296 * i386-dicos-tdep.c: Likewise.
2297 * i386-linux-tdep.c: Likewise.
2298 * i386-nto-tdep.c: Likewise.
2299 * i386-sol2-tdep.c: Likewise.
2300 * i386-tdep.c: Likewise.
2301 * i386bsd-tdep.c: Likewise.
2302 * i386gnu-nat.c: Likewise.
2303 * i386nbsd-tdep.c: Likewise.
2304 * i386obsd-tdep.c: Likewise.
2305 * i387-tdep.c: Likewise.
2306 * ia64-libunwind-tdep.c: Likewise.
2307 * ia64-linux-nat.c: Likewise.
2308 * inf-child.c: Likewise.
2309 * inf-ptrace.c: Likewise.
2310 * inf-ttrace.c: Likewise.
2311 * infcall.c: Likewise.
2312 * infcmd.c: Likewise.
2313 * inflow.c: Likewise.
2314 * infrun.c: Likewise.
2315 * interps.c: Likewise.
2316 * iq2000-tdep.c: Likewise.
2317 * irix5-nat.c: Likewise.
2318 * jv-exp.y: Likewise.
2319 * jv-lang.c: Likewise.
2320 * jv-typeprint.c: Likewise.
2321 * jv-valprint.c: Likewise.
2322 * language.c: Likewise.
2323 * linux-fork.c: Likewise.
2324 * linux-nat.c: Likewise.
2325 * lm32-tdep.c: Likewise.
2326 * m2-exp.y: Likewise.
2327 * m2-typeprint.c: Likewise.
2328 * m32c-tdep.c: Likewise.
2329 * m32r-linux-nat.c: Likewise.
2330 * m32r-linux-tdep.c: Likewise.
2331 * m32r-rom.c: Likewise.
2332 * m32r-tdep.c: Likewise.
2333 * m68hc11-tdep.c: Likewise.
2334 * m68k-tdep.c: Likewise.
2335 * m68kbsd-tdep.c: Likewise.
2336 * m68klinux-nat.c: Likewise.
2337 * m68klinux-tdep.c: Likewise.
2338 * m88k-tdep.c: Likewise.
2339 * machoread.c: Likewise.
2340 * macrocmd.c: Likewise.
2341 * main.c: Likewise.
2342 * mdebugread.c: Likewise.
2343 * mem-break.c: Likewise.
2344 * memattr.c: Likewise.
2345 * memory-map.c: Likewise.
2346 * mep-tdep.c: Likewise.
2347 * mi/mi-cmd-break.c: Likewise.
2348 * mi/mi-cmd-disas.c: Likewise.
2349 * mi/mi-cmd-env.c: Likewise.
2350 * mi/mi-cmd-stack.c: Likewise.
2351 * mi/mi-cmd-var.c: Likewise.
2352 * mi/mi-cmds.c: Likewise.
2353 * mi/mi-console.c: Likewise.
2354 * mi/mi-getopt.c: Likewise.
2355 * mi/mi-interp.c: Likewise.
2356 * mi/mi-main.c: Likewise.
2357 * mi/mi-parse.c: Likewise.
2358 * microblaze-rom.c: Likewise.
2359 * microblaze-tdep.c: Likewise.
2360 * mingw-hdep.c: Likewise.
2361 * minidebug.c: Likewise.
2362 * minsyms.c: Likewise.
2363 * mips-irix-tdep.c: Likewise.
2364 * mips-linux-tdep.c: Likewise.
2365 * mips-tdep.c: Likewise.
2366 * mips64obsd-tdep.c: Likewise.
2367 * mipsnbsd-tdep.c: Likewise.
2368 * mipsread.c: Likewise.
2369 * mn10300-linux-tdep.c: Likewise.
2370 * mn10300-tdep.c: Likewise.
2371 * monitor.c: Likewise.
2372 * moxie-tdep.c: Likewise.
2373 * mt-tdep.c: Likewise.
2374 * nat/linux-btrace.c: Likewise.
2375 * nat/linux-osdata.c: Likewise.
2376 * nat/linux-procfs.c: Likewise.
2377 * nat/linux-ptrace.c: Likewise.
2378 * nat/linux-waitpid.c: Likewise.
2379 * nbsd-tdep.c: Likewise.
2380 * nios2-linux-tdep.c: Likewise.
2381 * nto-procfs.c: Likewise.
2382 * nto-tdep.c: Likewise.
2383 * objc-lang.c: Likewise.
2384 * objfiles.c: Likewise.
2385 * opencl-lang.c: Likewise.
2386 * osabi.c: Likewise.
2387 * osdata.c: Likewise.
2388 * p-exp.y: Likewise.
2389 * p-lang.c: Likewise.
2390 * p-typeprint.c: Likewise.
2391 * parse.c: Likewise.
2392 * posix-hdep.c: Likewise.
2393 * ppc-linux-nat.c: Likewise.
2394 * ppc-sysv-tdep.c: Likewise.
2395 * ppcfbsd-tdep.c: Likewise.
2396 * ppcnbsd-tdep.c: Likewise.
2397 * ppcobsd-tdep.c: Likewise.
2398 * printcmd.c: Likewise.
2399 * procfs.c: Likewise.
2400 * prologue-value.c: Likewise.
2401 * python/py-auto-load.c: Likewise.
2402 * python/py-gdb-readline.c: Likewise.
2403 * ravenscar-thread.c: Likewise.
2404 * regcache.c: Likewise.
2405 * registry.c: Likewise.
2406 * remote-fileio.c: Likewise.
2407 * remote-m32r-sdi.c: Likewise.
2408 * remote-mips.c: Likewise.
2409 * remote-notif.c: Likewise.
2410 * remote-sim.c: Likewise.
2411 * remote.c: Likewise.
2412 * reverse.c: Likewise.
2413 * rs6000-aix-tdep.c: Likewise.
2414 * ser-base.c: Likewise.
2415 * ser-go32.c: Likewise.
2416 * ser-mingw.c: Likewise.
2417 * ser-pipe.c: Likewise.
2418 * ser-tcp.c: Likewise.
2419 * ser-unix.c: Likewise.
2420 * serial.c: Likewise.
2421 * sh-tdep.c: Likewise.
2422 * sh64-tdep.c: Likewise.
2423 * shnbsd-tdep.c: Likewise.
2424 * skip.c: Likewise.
2425 * sol-thread.c: Likewise.
2426 * solib-dsbt.c: Likewise.
2427 * solib-frv.c: Likewise.
2428 * solib-osf.c: Likewise.
2429 * solib-som.c: Likewise.
2430 * solib-spu.c: Likewise.
2431 * solib-target.c: Likewise.
2432 * solib.c: Likewise.
2433 * somread.c: Likewise.
2434 * source.c: Likewise.
2435 * sparc-nat.c: Likewise.
2436 * sparc-sol2-tdep.c: Likewise.
2437 * sparc-tdep.c: Likewise.
2438 * sparc64-tdep.c: Likewise.
2439 * sparc64fbsd-tdep.c: Likewise.
2440 * sparc64nbsd-tdep.c: Likewise.
2441 * sparcnbsd-tdep.c: Likewise.
2442 * spu-linux-nat.c: Likewise.
2443 * spu-multiarch.c: Likewise.
2444 * spu-tdep.c: Likewise.
2445 * stabsread.c: Likewise.
2446 * stack.c: Likewise.
2447 * std-regs.c: Likewise.
2448 * symfile.c: Likewise.
2449 * symmisc.c: Likewise.
2450 * symtab.c: Likewise.
2451 * target.c: Likewise.
2452 * thread.c: Likewise.
2453 * tilegx-linux-nat.c: Likewise.
2454 * tilegx-tdep.c: Likewise.
2455 * top.c: Likewise.
2456 * tracepoint.c: Likewise.
2457 * tui/tui-command.c: Likewise.
2458 * tui/tui-data.c: Likewise.
2459 * tui/tui-disasm.c: Likewise.
2460 * tui/tui-file.c: Likewise.
2461 * tui/tui-layout.c: Likewise.
2462 * tui/tui-out.c: Likewise.
2463 * tui/tui-regs.c: Likewise.
2464 * tui/tui-source.c: Likewise.
2465 * tui/tui-stack.c: Likewise.
2466 * tui/tui-win.c: Likewise.
2467 * tui/tui-windata.c: Likewise.
2468 * tui/tui-winsource.c: Likewise.
2469 * typeprint.c: Likewise.
2470 * ui-file.c: Likewise.
2471 * ui-out.c: Likewise.
2472 * user-regs.c: Likewise.
2473 * utils.c: Likewise.
2474 * v850-tdep.c: Likewise.
2475 * valarith.c: Likewise.
2476 * valops.c: Likewise.
2477 * valprint.c: Likewise.
2478 * value.c: Likewise.
2479 * varobj.c: Likewise.
2480 * vax-tdep.c: Likewise.
2481 * vaxnbsd-tdep.c: Likewise.
2482 * vaxobsd-tdep.c: Likewise.
2483 * windows-nat.c: Likewise.
2484 * xcoffread.c: Likewise.
2485 * xml-support.c: Likewise.
2486 * xstormy16-tdep.c: Likewise.
2487 * xtensa-linux-nat.c: Likewise.
2488
dccbb609
GB
24892014-08-07 Gary Benson <gbenson@redhat.com>
2490
2491 * common/common-defs.h: Include gdb_assert.h.
2492 * aarch64-tdep.c: Do not include gdb_assert.h.
2493 * addrmap.c: Likewise.
2494 * aix-thread.c: Likewise.
2495 * alpha-linux-tdep.c: Likewise.
2496 * alpha-mdebug-tdep.c: Likewise.
2497 * alphanbsd-tdep.c: Likewise.
2498 * amd64-nat.c: Likewise.
2499 * amd64-tdep.c: Likewise.
2500 * amd64bsd-nat.c: Likewise.
2501 * amd64fbsd-nat.c: Likewise.
2502 * amd64fbsd-tdep.c: Likewise.
2503 * amd64nbsd-nat.c: Likewise.
2504 * amd64nbsd-tdep.c: Likewise.
2505 * amd64obsd-nat.c: Likewise.
2506 * amd64obsd-tdep.c: Likewise.
2507 * arch-utils.c: Likewise.
2508 * arm-tdep.c: Likewise.
2509 * armbsd-tdep.c: Likewise.
2510 * auxv.c: Likewise.
2511 * bcache.c: Likewise.
2512 * bfin-tdep.c: Likewise.
2513 * blockframe.c: Likewise.
2514 * breakpoint.c: Likewise.
2515 * bsd-kvm.c: Likewise.
2516 * bsd-uthread.c: Likewise.
2517 * buildsym.c: Likewise.
2518 * c-exp.y: Likewise.
2519 * c-lang.c: Likewise.
2520 * charset.c: Likewise.
2521 * cleanups.c: Likewise.
2522 * cli-out.c: Likewise.
2523 * cli/cli-decode.c: Likewise.
2524 * cli/cli-dump.c: Likewise.
2525 * cli/cli-logging.c: Likewise.
2526 * cli/cli-script.c: Likewise.
2527 * cli/cli-utils.c: Likewise.
2528 * coffread.c: Likewise.
2529 * common/common-utils.c: Likewise.
2530 * common/queue.h: Likewise.
2531 * common/signals.c: Likewise.
2532 * common/vec.h: Likewise.
2533 * complaints.c: Likewise.
2534 * completer.c: Likewise.
2535 * corelow.c: Likewise.
2536 * cp-abi.c: Likewise.
2537 * cp-name-parser.y: Likewise.
2538 * cp-namespace.c: Likewise.
2539 * cp-support.c: Likewise.
2540 * cris-tdep.c: Likewise.
2541 * dbxread.c: Likewise.
2542 * dictionary.c: Likewise.
2543 * doublest.c: Likewise.
2544 * dsrec.c: Likewise.
2545 * dummy-frame.c: Likewise.
2546 * dwarf2-frame-tailcall.c: Likewise.
2547 * dwarf2-frame.c: Likewise.
2548 * dwarf2expr.c: Likewise.
2549 * dwarf2loc.c: Likewise.
2550 * dwarf2read.c: Likewise.
2551 * eval.c: Likewise.
2552 * event-loop.c: Likewise.
2553 * exceptions.c: Likewise.
2554 * expprint.c: Likewise.
2555 * f-valprint.c: Likewise.
2556 * fbsd-nat.c: Likewise.
2557 * findvar.c: Likewise.
2558 * frame-unwind.c: Likewise.
2559 * frame.c: Likewise.
2560 * frv-tdep.c: Likewise.
2561 * gcore.c: Likewise.
2562 * gdb-dlfcn.c: Likewise.
2563 * gdb_bfd.c: Likewise.
2564 * gdbarch.c: Likewise.
2565 * gdbarch.sh: Likewise.
2566 * gdbtypes.c: Likewise.
2567 * gnu-nat.c: Likewise.
2568 * gnu-v3-abi.c: Likewise.
2569 * go-lang.c: Likewise.
2570 * guile/scm-exception.c: Likewise.
2571 * guile/scm-gsmob.c: Likewise.
2572 * guile/scm-lazy-string.c: Likewise.
2573 * guile/scm-math.c: Likewise.
2574 * guile/scm-pretty-print.c: Likewise.
2575 * guile/scm-safe-call.c: Likewise.
2576 * guile/scm-utils.c: Likewise.
2577 * guile/scm-value.c: Likewise.
2578 * h8300-tdep.c: Likewise.
2579 * hppa-hpux-nat.c: Likewise.
2580 * hppa-tdep.c: Likewise.
2581 * hppanbsd-tdep.c: Likewise.
2582 * hppaobsd-tdep.c: Likewise.
2583 * i386-darwin-nat.c: Likewise.
2584 * i386-darwin-tdep.c: Likewise.
2585 * i386-nto-tdep.c: Likewise.
2586 * i386-tdep.c: Likewise.
2587 * i386bsd-nat.c: Likewise.
2588 * i386fbsd-tdep.c: Likewise.
2589 * i386gnu-nat.c: Likewise.
2590 * i386nbsd-tdep.c: Likewise.
2591 * i386obsd-tdep.c: Likewise.
2592 * i387-tdep.c: Likewise.
2593 * ia64-libunwind-tdep.c: Likewise.
2594 * ia64-tdep.c: Likewise.
2595 * inf-ptrace.c: Likewise.
2596 * inf-ttrace.c: Likewise.
2597 * infcall.c: Likewise.
2598 * infcmd.c: Likewise.
2599 * infrun.c: Likewise.
2600 * inline-frame.c: Likewise.
2601 * interps.c: Likewise.
2602 * jv-lang.c: Likewise.
2603 * jv-typeprint.c: Likewise.
2604 * linux-fork.c: Likewise.
2605 * linux-nat.c: Likewise.
2606 * linux-thread-db.c: Likewise.
2607 * m32c-tdep.c: Likewise.
2608 * m32r-linux-nat.c: Likewise.
2609 * m32r-tdep.c: Likewise.
2610 * m68k-tdep.c: Likewise.
2611 * m68kbsd-nat.c: Likewise.
2612 * m68kbsd-tdep.c: Likewise.
2613 * m88k-tdep.c: Likewise.
2614 * machoread.c: Likewise.
2615 * macroexp.c: Likewise.
2616 * macrotab.c: Likewise.
2617 * maint.c: Likewise.
2618 * mdebugread.c: Likewise.
2619 * memory-map.c: Likewise.
2620 * mep-tdep.c: Likewise.
2621 * mi/mi-common.c: Likewise.
2622 * microblaze-tdep.c: Likewise.
2623 * mingw-hdep.c: Likewise.
2624 * mips-linux-nat.c: Likewise.
2625 * mips-linux-tdep.c: Likewise.
2626 * mips-tdep.c: Likewise.
2627 * mips64obsd-tdep.c: Likewise.
2628 * mipsnbsd-tdep.c: Likewise.
2629 * mn10300-linux-tdep.c: Likewise.
2630 * mn10300-tdep.c: Likewise.
2631 * moxie-tdep.c: Likewise.
2632 * mt-tdep.c: Likewise.
2633 * nat/linux-btrace.c: Likewise.
2634 * nat/linux-osdata.c: Likewise.
2635 * nat/linux-ptrace.c: Likewise.
2636 * nat/mips-linux-watch.c: Likewise.
2637 * nios2-linux-tdep.c: Likewise.
2638 * nios2-tdep.c: Likewise.
2639 * objc-lang.c: Likewise.
2640 * objfiles.c: Likewise.
2641 * obsd-nat.c: Likewise.
2642 * opencl-lang.c: Likewise.
2643 * osabi.c: Likewise.
2644 * parse.c: Likewise.
2645 * ppc-linux-nat.c: Likewise.
2646 * ppc-sysv-tdep.c: Likewise.
2647 * ppcfbsd-nat.c: Likewise.
2648 * ppcfbsd-tdep.c: Likewise.
2649 * ppcnbsd-nat.c: Likewise.
2650 * ppcnbsd-tdep.c: Likewise.
2651 * ppcobsd-nat.c: Likewise.
2652 * ppcobsd-tdep.c: Likewise.
2653 * printcmd.c: Likewise.
2654 * procfs.c: Likewise.
2655 * prologue-value.c: Likewise.
2656 * psymtab.c: Likewise.
2657 * python/py-lazy-string.c: Likewise.
2658 * python/py-value.c: Likewise.
2659 * regcache.c: Likewise.
2660 * reggroups.c: Likewise.
2661 * registry.c: Likewise.
2662 * remote-sim.c: Likewise.
2663 * remote.c: Likewise.
2664 * rs6000-aix-tdep.c: Likewise.
2665 * rs6000-tdep.c: Likewise.
2666 * s390-linux-tdep.c: Likewise.
2667 * score-tdep.c: Likewise.
2668 * ser-base.c: Likewise.
2669 * ser-mingw.c: Likewise.
2670 * sh-tdep.c: Likewise.
2671 * sh64-tdep.c: Likewise.
2672 * solib-darwin.c: Likewise.
2673 * solib-spu.c: Likewise.
2674 * solib-svr4.c: Likewise.
2675 * source.c: Likewise.
2676 * sparc-nat.c: Likewise.
2677 * sparc-sol2-tdep.c: Likewise.
2678 * sparc-tdep.c: Likewise.
2679 * sparc64-sol2-tdep.c: Likewise.
2680 * sparc64-tdep.c: Likewise.
2681 * sparc64fbsd-tdep.c: Likewise.
2682 * sparc64nbsd-tdep.c: Likewise.
2683 * sparc64obsd-tdep.c: Likewise.
2684 * sparcnbsd-tdep.c: Likewise.
2685 * sparcobsd-tdep.c: Likewise.
2686 * spu-multiarch.c: Likewise.
2687 * spu-tdep.c: Likewise.
2688 * stabsread.c: Likewise.
2689 * stack.c: Likewise.
2690 * symfile.c: Likewise.
2691 * symtab.c: Likewise.
2692 * target-descriptions.c: Likewise.
2693 * target-memory.c: Likewise.
2694 * target.c: Likewise.
2695 * tic6x-linux-tdep.c: Likewise.
2696 * tic6x-tdep.c: Likewise.
2697 * tilegx-linux-nat.c: Likewise.
2698 * tilegx-tdep.c: Likewise.
2699 * top.c: Likewise.
2700 * tramp-frame.c: Likewise.
2701 * tui/tui-out.c: Likewise.
2702 * tui/tui-winsource.c: Likewise.
2703 * ui-out.c: Likewise.
2704 * user-regs.c: Likewise.
2705 * utils.c: Likewise.
2706 * v850-tdep.c: Likewise.
2707 * valops.c: Likewise.
2708 * value.c: Likewise.
2709 * varobj.c: Likewise.
2710 * vax-nat.c: Likewise.
2711 * xml-syscall.c: Likewise.
2712 * xml-tdesc.c: Likewise.
2713 * xstormy16-tdep.c: Likewise.
2714 * xtensa-linux-nat.c: Likewise.
2715 * xtensa-tdep.c: Likewise.
2716
e76df0d0
GB
27172014-08-07 Gary Benson <gbenson@redhat.com>
2718
2719 * common/common-defs.h: Include common-utils.h.
2720 * defs.h: Do not include common-utils.h.
2721 * common/gdb_assert.h: Likewise.
2722 * darwin-nat.h: Likewise.
2723 * nat/linux-btrace.c: Likewise.
2724 * target/waitstatus.h: Likewise.
2725
4cb9c816
GB
27262014-08-07 Gary Benson <gbenson@redhat.com>
2727
2728 * common/common-defs.h: Include ptid.h.
2729 * defs.h: Do not include ptid.h.
2730 * inferior.h: Likewise.
2731 * infrun.h: Likewise.
2732 * nat/linux-btrace.h: Likewise.
2733 * nat/linux-osdata.h: Likewise.
2734 * target/waitstatus.h: Likewise.
2735
3995eeee
GB
27362014-08-07 Gary Benson <gbenson@redhat.com>
2737
2738 * common/common-defs.h: Include gdb_locale.h.
2739 * defs.h: Do not include gdb_locale.h.
2740
cb9f1a9b
GB
27412014-08-07 Gary Benson <gbenson@redhat.com>
2742
2743 * common/common-defs.h: Include gdb/signals.h.
2744 * defs.h: Do not include gdb/signals.h.
2745
a5fceff8
GB
27462014-08-07 Gary Benson <gbenson@redhat.com>
2747
2748 * common/common-defs.h: Include pathmax.h.
2749 * defs.h: Do not include pathmax.h.
2750
b9391142
GB
27512014-08-07 Gary Benson <gbenson@redhat.com>
2752
2753 * common/common-defs.h: Include libiberty.h.
2754 * defs.h: Do not include libiberty.h.
2755 * common/queue.h: Likewise.
2756 * cp-name-parser.y: Likewise.
2757 * mi/mi-cmd-catch.c: Likewise.
2758 * python/python.c: Likewise.
2759
0e443c87
GB
27602014-08-07 Gary Benson <gbenson@redhat.com>
2761
2762 * common/common-defs.h: Include ansidecl.h.
2763 * defs.h: Do not include ansidecl.h.
2764 * common/buffer.h: Likewise.
2765 * common/common-utils.h: Likewise.
2766
8ebb3f56
GB
27672014-08-07 Gary Benson <gbenson@redhat.com>
2768
2769 * common/common-defs.h: Include stddef.h.
2770 * defs.h: Do not include stddef.h.
2771 * common/common-utils.h: Likewise.
2772 * amd64fbsd-nat.c: Likewise.
2773 * bcache.c: Likewise.
2774 * charset.c: Likewise.
2775 * common/buffer.h: Likewise.
2776 * common/vec.h: Likewise.
2777 * i386bsd-nat.c: Likewise.
2778 * nat/linux-btrace.h: Likewise.
2779 * ppcfbsd-nat.c: Likewise.
2780 * ppcnbsd-tdep.h: Likewise.
2781 * ppcobsd-nat.c: Likewise.
2782 * ppcobsd-tdep.h: Likewise.
2783 * python/py-gdb-readline.c: Likewise.
2784
8980bdf6
GB
27852014-08-07 Gary Benson <gbenson@redhat.com>
2786
2787 * common/common-defs.h: Include stdarg.h.
2788 * defs.h: Do not include stdarg.h.
2789 * ada-lang.c: Likewise.
2790 * common/common-utils.h: Likewise.
2791 * guile/scm-string.c: Likewise.
2792 * guile/scm-utils.c: Likewise.
2793 * m32c-tdep.c: Likewise.
2794
d7096f71
GB
27952014-08-07 Gary Benson <gbenson@redhat.com>
2796
2797 * common/common-defs.h: Include stdlib.h.
2798 * defs.h: Do not include stdlib.h.
2799 * addrmap.c: Likewise.
2800 * bcache.c: Likewise.
2801 * common/buffer.c: Likewise.
2802 * common/common-utils.c: Likewise.
2803 * cp-name-parser.y: Likewise.
2804 * go32-nat.c: Likewise.
2805 * mn10300-linux-tdep.c: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * tui/tui.c: Likewise.
2808 * windows-nat.c: Likewise.
2809
d02f550d
GB
28102014-08-07 Gary Benson <gbenson@redhat.com>
2811
2812 * common/common-defs.h: Include stdio.h.
2813 * defs.h: Do not include stdio.h.
2814 * ada-lang.c: Likewise.
2815 * common/buffer.c: Likewise.
2816 * common/common-utils.c: Likewise.
2817 * cp-name-parser.y: Likewise.
2818 * gnu-nat.c: Likewise.
2819 * go32-nat.c: Likewise.
2820 * i386gnu-nat.c: Likewise.
2821 * proc-api.c: Likewise.
2822 * proc-events.c: Likewise.
2823 * proc-flags.c: Likewise.
2824 * proc-why.c: Likewise.
2825 * python/python-internal.h: Likewise.
2826 * target-memory.c: Likewise.
2827 * tui/tui-io.c: Likewise.
2828 * tui/tui.c: Likewise.
2829
b6d7a4bf
SM
28302014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2831
2832 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2833 (scan_dyntag_auxv): Same.
2834
af19829b
YQ
28352014-08-06 Yao Qi <yao@codesourcery.com>
2836
2837 * amd64-linux-nat.c: Remove duplicated include
2838 "x86-linux-nat.h".
2839 * i386-linux-nat.c: Likewise.
2840
8e07a239
YQ
28412014-08-06 Yao Qi <yao@codesourcery.com>
2842
2843 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2844 operand" with "Special opcode" in comments.
2845
7bfe8241
GB
28462014-08-05 Gary Benson <gbenson@redhat.com>
2847
2848 * interps.c (initialize_interps): Remove prototype.
2849 (interpreter_initialized): Remove static global.
2850 (interp_add): Do not call initialize_interps.
2851 (initialize_interps): Remove function.
2852
d6c95504
GB
28532014-08-05 Gary Benson <gbenson@redhat.com>
2854
2855 * utils.c (vwarning): Remove spurious va_end.
2856
241fd515
AM
28572014-08-05 Alan Modra <amodra@gmail.com>
2858
2859 * charset.c (convert_between_encodings): Cast result of obstack_base.
2860 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2861 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2862 (read_unwind_info): Use size_t for some locals.
2863 * jit.c (finalize_symtab): Likewise.
2864 * utils.c (hashtab_obstack_allocate): Likewise.
2865 * symmisc.c (print_objfile_statistics): Update format strings.
2866
dc304a94
JK
28672014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2868
2869 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2870 (Changes in GDB 7.8): ... here.
2871
3cecbbbe
TT
28722014-08-04 Tom Tromey <tromey@redhat.com>
2873
2874 * target.c (set_targetdebug): New function.
2875 (initialize_targets): Pass set_targetdebug when creating "set
2876 debug target".
2877
6908c509
JB
28782014-08-01 Joel Brobecker <brobecker@adacore.com>
2879
2880 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2881 if detecting a variable-sized field that is not the last field.
2882 Fix struct type length computation.
2883
53e8f97d
JB
28842014-08-01 Joel Brobecker <brobecker@adacore.com>
2885
2886 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2887 Add debug trace.
2888
e068c55d
JB
28892014-08-01 Joel Brobecker <brobecker@adacore.com>
2890
2891 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2892 Remove "+ 8" offset in computation of CHAIN_VMA.
2893
4d4ca2a1
DE
28942014-07-31 Doug Evans <dje@google.com>
2895
2896 * inflow.c (child_terminal_inferior): Add comment.
2897 (child_terminal_ours_for_output): Add comment.
2898 (child_terminal_ours): Add comment.
2899 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2900 (linux_nat_terminal_ours): Add comment.
2901
462f517e
GB
29022014-07-31 Gary Benson <gbenson@redhat.com>
2903
2904 * common/btrace-common.h: Do not include defs.h or server.h.
2905 * nat/mips-linux-watch.h: Likewise.
2906 * gdb-dlfcn.h: Do not include defs.h.
2907 * tracefile.h: Likewise.
2908
74228e77
RM
29092014-07-30 Roland McGrath <mcgrathr@google.com>
2910
2911 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2912
014f9477
TT
29132014-07-30 Tom Tromey <tromey@redhat.com>
2914
2915 * bsd-kvm.c (bsd_kvm_open): Constify.
2916 * corelow.c (core_open): Constify.
2917 * ctf.c (ctf_open): Constify.
2918 * dbug-rom.c (dbug_open): Constify.
2919 * exec.c (exec_open): Constify.
2920 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2921 * microblaze-rom.c (picobug_open): Constify.
2922 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2923 Constify.
2924 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2925 * record-btrace.c (record_btrace_open): Constify.
2926 * record-full.c (record_full_core_open_1, record_full_open_1)
2927 (record_full_open): Constify.
2928 * remote-m32r-sdi.c (m32r_open): Constify.
2929 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2930 (rockhopper_open, lsi_open): Constify.
2931 * remote-sim.c (gdbsim_open): Constify.
2932 * remote.c (remote_open, extended_remote_open, remote_open_1):
2933 Constify.
2934 * target.h (struct target_ops) <to_open>: Make "arg" const.
2935 * tracefile-tfile.c (tfile_open): Constify.
2936
e799154c
TT
29372014-07-30 Tom Tromey <tromey@redhat.com>
2938
2939 * breakpoint.c (map_breakpoint_numbers): Update.
2940 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2941 (get_number_const): New function.
2942 (get_number): Rewrite using get_number_const.
2943 (init_number_or_range): Make "string" const.
2944 (number_is_in_list): Make "list" const.
2945 * cli/cli-utils.h (get_number_const): Declare.
2946 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2947 (init_number_or_range, number_is_in_list): Update.
2948 * printcmd.c (map_display_numbers): Update.
2949 * value.c (value_from_history_ref): Constify.
2950 * value.h (value_from_history_ref): Update.
2951
5f08566b
TT
29522014-07-30 Tom Tromey <tromey@redhat.com>
2953
2954 * corefile.c (hook_type, call_extra_exec_file_hooks)
2955 (specify_exec_file_hook): Constify.
2956 * exec.c (exec_file_attach): Make "filename" const.
2957 * gdbcore.h (deprecated_exec_file_display_hook)
2958 (specify_exec_file_hook, exec_file_attach): Constify.
2959 * main.c (captured_main): Use catch_command_errors_const.
2960
8981c758
TT
29612014-07-30 Tom Tromey <tromey@redhat.com>
2962
2963 * target.c (open_target): New function.
2964 (add_target_with_completer, add_deprecated_target_alias): Use
2965 set_cmd_sfunc, set_cmd_context.
2966 (debug_to_open): Remove.
2967 (setup_target_debug): Update.
2968
a1c7835a
YQ
29692014-07-30 Yao Qi <yao@codesourcery.com>
2970
2971 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2972 comments.
2973 * parse.c (exp_iterate): Update comments.
2974
976411d6
GB
29752014-07-30 Gary Benson <gbenson@redhat.com>
2976
2977 * common/common-defs.h: New file.
2978 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2979 * defs.h: Include common-defs.h.
2980 Do not include config.h or build-gnulib/config.h.
2981
5d4848a4
GB
29822014-07-30 Gary Benson <gbenson@redhat.com>
2983
2984 * common/common-utils.h: Do not include config.h.
2985 * nat/linux-btrace.h: Likewise.
2986
d41f6d8e
GB
29872014-07-30 Gary Benson <gbenson@redhat.com>
2988
2989 * btrace.c: Include defs.h.
2990 * common/ptid.c: Include defs.h or server.h as appropriate.
2991 * nat/mips-linux-watch.c: Likewise.
2992
84202f9c
TT
29932014-07-29 Tom Tromey <tromey@redhat.com>
2994
2995 * target.c (target_is_pushed): Simplify.
2996
2530441c
JB
29972014-07-29 Joel Brobecker <brobecker@adacore.com>
2998
2999 GDB 7.8 released.
3000
7e09a223
YQ
30012014-07-29 Yao Qi <yao@codesourcery.com>
3002
3003 PR gdb/17206
3004 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3005
7ebdbe92
DE
30062014-07-28 Doug Evans <xdje42@gmail.com>
3007
3008 PR guile/17203
3009 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3010 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3011 parameters.
3012
f347ffc9
WN
30132014-07-28 Will Newton <will.newton@linaro.org>
3014
3015 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3016 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3017 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3018 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3019 (THUMB2_EABI_SYSCALL): Likewise.
3020 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3021 struct tramp_frame.
3022 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3023 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3024
37c5f1f7
DE
30252014-07-27 Doug Evans <xdje42@gmail.com>
3026
3027 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3028
0c3abbc7
DE
30292014-07-27 Doug Evans <xdje42@gmail.com>
3030
3031 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3032
e76c5d17
DE
30332014-07-26 Ludovic Courtès <ludo@gnu.org>
3034 Doug Evans <xdje42@gmail.com>
3035
3036 PR guile/17146
3037 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3038 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3039 * configure.ac: Try to use guild to compile an scm file, if it fails
3040 then disable guile support.
3041 * configure: Regenerate.
3042 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3043 GUILE_FILE_LIST.
3044 (GUILE_COMPILED_FILES): New variable.
3045 (GUILE_FILES) Update.
3046 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3047 (stamp-guile): Compile scm files.
3048 * guile/guile.c (boot_guile_support): New function.
3049 (standard_throw_args_p): New function.
3050 (print_standard_throw_error, print_throw_error): New functions.
3051 (handle_boot_error): New function.
3052 (initialize_scheme_side): Rewrite to call boot_guile_support.
3053 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3054 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3055
186fcde0
DE
30562014-07-26 Ludovic Courtès <ludo@gnu.org>
3057 Doug Evans <xdje42@gmail.com>
3058
3059 PR guile/17146
3060 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3061 * guile/lib/gdb/support.scm: New file.
3062 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3063 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3064 All uses updated.
3065 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3066 All uses updated.
3067 (%assert-type): Ditto, and renamed to assert-type.
3068 (%exception-print-style): Delete.
3069
4df42755
DE
30702014-07-26 Doug Evans <xdje42@gmail.com>
3071
3072 PR build/17105
3073 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3074 * configure: Regenerate.
3075 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3076 PYTHON_FILES.
3077 (PYTHON_FILES): New variable.
3078 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3079 (GUILE_FILES): New variable.
3080 (stamp-python, install-python, uninstall-python): Handle empty
3081 file list.
3082 (stamp-guile, install-guile, uninstall-guile): Ditto.
3083
ee7333ae
DE
30842014-07-26 Doug Evans <xdje42@gmail.com>
3085
3086 PR guile/17177
3087 * guile/lib/gdb.scm (pretty-printers): Export.
3088 (set-pretty-printers!): Export.
3089 * guile/lib/gdb/printing.scm (gdb module): Update.
3090 (prepend-pretty-printer!, append-pretty-printer!): Update.
3091 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3092 (pretty_printer_list_var): Delete.
3093 (pretty_printer_list): New static global.
3094 (gdbscm_pretty_printers): New function.
3095 (gdbscm_set_pretty_printers_x): New function.
3096 (ppscm_find_pretty_printer_from_gdb): Update.
3097 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3098 (gdbscm_initialize_pretty_printers): Update.
3099
74edf516
DE
31002014-07-26 Doug Evans <xdje42@gmail.com>
3101
3102 PR 17185
3103 * configure.ac: Add check for header gc/gc.h.
3104 Add check for function setenv.
3105 * configure: Regenerate.
3106 * config.in: Regenerate.
3107 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3108
d54398a7
MR
31092014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3110
3111 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3112 variation in gdbarch matching.
3113
ab16fce8
TT
31142014-07-25 Tom Tromey <tromey@redhat.com>
3115
3116 * exec.c (using_exec_ops): Remove.
3117 (exec_close_1): Update. Remove extraneous block, reindent.
3118 (add_target_sections): Use target_is_pushed.
3119
88056fbb
PA
31202014-07-25 Pedro Alves <palves@redhat.com>
3121
3122 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3123 * monitor.c (monitor_create_inferior): Likewise.
3124 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3125 * remote-sim.c (gdbsim_create_inferior): Likewise.
3126 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3127 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3128 * windows-nat.c (do_initial_windows_stuff): Likewise.
3129
70509625
PA
31302014-07-25 Pedro Alves <palves@redhat.com>
3131
3132 * NEWS: Mention signal passing and "signal" command changes.
3133 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3134 comment.
3135 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3136 call.
3137 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3138 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3139 (jump_command): Adjust clear_proceed_status call.
3140 (signal_command): Warn if other thread that are resumed have
3141 signals that will be delivered. Adjust clear_proceed_status call.
3142 (until_next_command, finish_command)
3143 (proceed_after_attach_callback, attach_command_post_wait)
3144 (attach_command): Adjust clear_proceed_status call.
3145 * infrun.c (proceed_after_vfork_done): Likewise.
3146 (proceed_after_attach_callback): Adjust comment.
3147 (clear_proceed_status_thread): Clear stop_signal if not in pass
3148 state.
3149 (clear_proceed_status_callback): Delete.
3150 (clear_proceed_status): New 'step' parameter. Only clear the
3151 proceed status of threads the command being prepared is about to
3152 resume.
3153 (proceed): If passed in an explicit signal, override stop_signal
3154 with it. Don't pass the last stop signal to the thread we're
3155 resuming.
3156 (init_wait_for_inferior): Adjust clear_proceed_status call.
3157 (switch_back_to_stepped_thread): Clear the signal if it should not
3158 be passed.
3159 * infrun.h (clear_proceed_status): New 'step' parameter.
3160 (user_visible_resume_ptid): Add comment.
3161 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3162 signal is in pass state.
3163 * remote.c (append_pending_thread_resumptions): Likewise.
3164 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3165
d8be2939
TT
31662014-07-25 Tom Tromey <tromey@redhat.com>
3167
3168 * target.h (target_stopped_data_address)
3169 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3170 parentheses.
3171
7d0d9d2b
PL
31722014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3173
3174 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3175 comments.
3176 (avr_pointer_to_address): Likewise.
3177
e9e7f724
TT
31782014-07-24 Tom Tromey <tromey@redhat.com>
3179
3180 * monitor.c (compile_pattern): Update.
3181 * target.h (struct target_ops) <to_shortname, to_longname,
3182 to_doc>: Now const.
3183
1947513d
TT
31842014-07-24 Tom Tromey <tromey@redhat.com>
3185
3186 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3187 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3188 (add_info_alias, add_com): Make "doc" const.
3189 (print_doc_line): Make "str" const.
3190 (delete_cmd): Update.
3191 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3192 (print_doc_line): Update.
3193 * cli/cli-script.c (document_command): Update.
3194 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3195 (add_com, add_info, add_info_alias): Update.
3196 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3197 * python/py-cmd.c (cmdpy_destroyer): Update.
3198
64e61d29
TT
31992014-07-24 Tom Tromey <tromey@redhat.com>
3200
3201 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3202 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3203 (help_cmd_list): Constify.
3204 (lookup_cmd): Update.
3205 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3206 const.
3207 (help_cmd_list, apropos_cmd): Update.
3208 * cli/cli-script.c (show_user): Update.
3209 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3210 * cli/cli-setshow.h (cmd_show_list): Update.
3211 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3212 (cmd_show_list): Update.
3213 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3214 * python/py-cmd.c (cmdpy_destroyer): Update.
3215
429e55ea
TT
32162014-07-24 Tom Tromey <tromey@redhat.com>
3217
3218 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3219 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3220 const.
3221 * command.h (deprecate_cmd): Update.
3222 * maint.c (maintenance_do_deprecate): Add casts.
3223
64669f3b
TT
32242014-07-24 Tom Tromey <tromey@redhat.com>
3225
3226 * cli/cli-decode.c (help_cmd): Make parameter "const".
3227 * cli/cli-decode.h (help_cmd): Update.
3228
d3d3328b
TT
32292014-07-24 Tom Tromey <tromey@redhat.com>
3230
3231 * stack.c (up_silently_base, down_silently_base): Make argument
3232 const.
3233
414842dc
TT
32342014-07-24 Tom Tromey <tromey@redhat.com>
3235
3236 * solib.c (solib_add): Make "pattern" const.
3237 * solib.h (solib_add): Update.
3238
baa336ce
TT
32392014-07-24 Tom Tromey <tromey@redhat.com>
3240
3241 * remote.c (remote_serial_open, print_packet, putpkt)
3242 (putpkt_binary): Constify.
3243 * remote.h (putpkt): Update.
3244
5a19e2d0
TT
32452014-07-24 Tom Tromey <tromey@redhat.com>
3246
3247 * monitor.c (monitor_open): Make "args" const.
3248 * monitor.h (monitor_open): Update.
3249
fc4baa5e
TT
32502014-07-24 Tom Tromey <tromey@redhat.com>
3251
3252 * maint.c (match_bfd_flags): Make "string" const.
3253 (print_bfd_section_info): Remove casts.
3254 (print_objfile_section_info): Make "string" const.
3255
0d5f0dbe
TT
32562014-07-24 Tom Tromey <tromey@redhat.com>
3257
3258 * inf-child.c (inf_child_open_target): Make "arg" const.
3259 * inf-child.h (inf_child_open_target): Update.
3260
41c77899
TT
32612014-07-24 Tom Tromey <tromey@redhat.com>
3262
3263 * environ.c (unset_in_environ): Make "var" const.
3264 * environ.h (unset_in_environ): Update.
3265
93db0d79
TT
32662014-07-24 Tom Tromey <tromey@redhat.com>
3267
3268 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3269 Make "cmd" const.
3270 (scan_filename_with_cleanup): Likewise.
3271 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3272 Make arguments const.
3273 (restore_command): Update.
3274
36d6eb95
PA
32752014-07-24 Pedro Alves <palves@redhat.com>
3276
3277 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3278
8009206a
TT
32792014-07-24 Tom Tromey <tromey@redhat.com>
3280 Gary Benson <gbenson@redhat.com>
3281
3282 * nat/linux-ptrace.c (additional_flags): New global.
3283 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3284 additional_flags; don't check GDBSERVER.
3285 (linux_ptrace_set_additional_flags): New function.
3286 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3287 Declare.
3288 * linux-nat.c (_initialize_linux_nat): Call
3289 linux_ptrace_set_additional_flags.
3290
a7068b60
TT
32912014-07-24 Tom Tromey <tromey@redhat.com>
3292
3293 * make-target-delegates (munge_type, write_debugmethod): New
3294 functions.
3295 (debug_names): New global.
3296 ($TARGET_DEBUG_PRINTER): New global.
3297 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3298 name.
3299 Write debug methods. Generate init_debug_target.
3300 * target-debug.h: New file.
3301 * target-delegates.c: Rebuild.
3302 * target.c: Include target-debug.h.
3303 (debug_target): Hoist definition.
3304 (target_kill, target_get_section_table, target_memory_map)
3305 (target_flash_erase, target_flash_done, target_detach)
3306 (target_disconnect, target_wait, target_resume)
3307 (target_pass_signals, target_program_signals, target_follow_fork)
3308 (target_mourn_inferior, target_search_memory)
3309 (target_thread_address_space, target_close)
3310 (target_find_new_threads, target_core_of_thread)
3311 (target_verify_memory, target_insert_mask_watchpoint)
3312 (target_remove_mask_watchpoint): Remove targetdebug code.
3313 (debug_to_post_attach, debug_to_prepare_to_store)
3314 (debug_to_files_info, debug_to_insert_breakpoint)
3315 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3316 (debug_to_region_ok_for_hw_watchpoint)
3317 (debug_to_can_accel_watchpoint_condition)
3318 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3319 (debug_to_watchpoint_addr_within_range)
3320 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3321 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3322 (debug_to_terminal_init, debug_to_terminal_inferior)
3323 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3324 (debug_to_terminal_save_ours, debug_to_terminal_info)
3325 (debug_to_load, debug_to_post_startup_inferior)
3326 (debug_to_insert_fork_catchpoint)
3327 (debug_to_remove_fork_catchpoint)
3328 (debug_to_insert_vfork_catchpoint)
3329 (debug_to_remove_vfork_catchpoint)
3330 (debug_to_insert_exec_catchpoint)
3331 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3332 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3333 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3334 (setup_target_debug): Call init_debug_target.
3335 * target.h (TARGET_DEBUG_PRINTER): New macro.
3336 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3337 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3338
2c51604d
GB
33392014-07-24 Gary Benson <gbenson@redhat.com>
3340
3341 * exceptions.h (throw_vfatal): Renamed to...
3342 (throw_vquit): New declaration.
3343 (throw_quit): Likewise.
3344 * exceptions.c (throw_vfatal): Renamed to...
3345 (throw_vquit): New function.
3346 (throw_quit): Likewise.
3347 (throw_error): Call throw_verror rather than throw_it.
3348 * utils.h (vfatal): Removed.
3349 (fatal): Likewise.
3350 * utils.c (vfatal): Removed.
3351 (fatal): Likewise.
3352 (internal_verror): Replaced call to fatal with call to throw_quit.
3353 (quit): Replaced calls to fatal with calls to throw_quit.
3354
34211963
ME
33552014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3356
3357 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3358 target_read_code.
3359
a52b4d3e
ME
33602014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3361
3362 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3363 less than zero in conditional expression.
3364
a8bdc56b
TT
33652014-07-23 Tom Tromey <tromey@redhat.com>
3366
3367 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3368 ($INTRO_PART): Don't match whitespace.
3369 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3370 argument matching.
3371 ($METHOD): Add $METHOD_TRAILER.
3372 (trim): Rewrite.
3373 (scan_target_h): New sub.
3374 Change main loop not to collect state.
3375 * target-delegates.c: Rebuild.
3376
91b52240
GB
33772014-07-23 Gary Benson <gbenson@redhat.com>
3378
3379 * cp-support.c (gdb_demangle): Fix build on systems without
3380 sigaltstack.
3381
45326f6f
JK
33822014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3385 for reference entry value target data value.
3386
e214cf6c
JK
33872014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3388
3389 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3390 value_available_contents_eq.
3391
bddbbedd
PA
33922014-07-22 Pedro Alves <palves@redhat.com>
3393
3394 * value.c (allocate_optimized_out_value): Don't mark value as
3395 non-lazy.
3396
45c71484
JW
33972014-07-22 Jiong Wang <jiong.wang@arm.com>
3398
3399 * MAINTAINERS (Write After Approval): Update my email address.
3400
9597b22a
DE
34012014-07-20 Doug Evans <dje@google.com>
3402
3403 PR server/17147
3404 * remote.c (putpkt_binary): Add text to error message.
3405
91101fe5
YQ
34062014-07-20 Yao Qi <yao@codesourcery.com>
3407
3408 * eval.c: Remove "Chill" from comments.
3409 * gdbtypes.h: Likewise.
3410 * symtab.h: Likewise.
3411
c9402c95
YQ
34122014-07-20 Yao Qi <yao@codesourcery.com>
3413
3414 * std-operator.def: Update comments to TERNOP_SLICE.
3415
ae8fddda
YQ
34162014-07-20 Yao Qi <yao@codesourcery.com>
3417
3418 * std-operator.def: Remove BINOP_RANGE.
3419 * breakpoint.c (watchpoint_exp_is_const): Update.
3420 * expprint.c (dump_subexp_body_standard): Likewise.
3421 * eval.c (init_array_element): Remove dead code.
3422 (evaluate_subexp_standard): Likewise.
3423
9c816640
YQ
34242014-07-20 Yao Qi <yao@codesourcery.com>
3425
3426 * std-operator.def: Remove BINOP_IN.
3427 * breakpoint.c (watchpoint_exp_is_const): Update.
3428 * eval.c (evaluate_subexp_standard): Likewise.
3429 * expprint.c (dump_subexp_body_standard): Likewise.
3430
164224e9
ME
34312014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3432
3433 * microblaze-tdep.c (microblaze_register_names): Add
3434 the rshr and rslr register names.
3435 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3436 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3437 Use of tdesc_numbered_register. Use of
3438 microblaze_register_g_packet_guesses. Use of
3439 tdesc_use_registers. Use of set_gdbarch_register_type.
3440 (microblaze_register_g_packet_guesses): New.
3441 * microblaze-tdep.h (microblaze_reg_num): Add
3442 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3443 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3444 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3445 * features/microblaze-core.xml: New file.
3446 * features/microblaze-stack-protect.xml: New file.
3447 * features/microblaze-with-stack-protect.c: New file.
3448 * features/microblaze-with-stack-protect.xml: New file.
3449 * features/microblaze.xml: New file.
3450 * features/microblaze.c: New file.
3451 * features/Makefile (microblaze-with-stack-protect): Add
3452 microblaze-with-stack-protect microblaze and microblaze-expedite.
3453 * regformats/microblaze-with-stack-protect.dat: New file.
3454 * regformats/microblaze.dat: New file.
3455 * doc/gdb.texinfo (MicroBlaze Features): Added.
3456
e8b2341c
TT
34572014-07-18 Tom Tromey <tromey@redhat.com>
3458
3459 * exec.c (exec_ops): Now static.
3460 * exec.h (exec_ops): Don't declare.
3461
44e89118
TT
34622014-07-18 Tom Tromey <tromey@redhat.com>
3463
3464 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3465 to find_target_beneath.
3466 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3467 find_target_beneath.
3468 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3469
b0ed115f
TT
34702014-07-18 Tom Tromey <tromey@redhat.com>
3471
3472 PR gdb/17130:
3473 * utils.c (quit): Use target_supports_terminal_ours.
3474 * target.h (target_supports_terminal_ours): Declare.
3475 * target.c (target_supports_delete_record): Don't check
3476 to_delete_record against NULL.
3477 (target_supports_terminal_ours): New function.
3478
e75fdfca
TT
34792014-07-18 Tom Tromey <tromey@redhat.com>
3480
3481 PR gdb/17130:
3482 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3483 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3484 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3485 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3486 * windows-nat.c (windows_xfer_partial): Always delegate.
3487 * record-btrace.c (record_btrace_xfer_partial): Simplify
3488 delegation.
3489 (record_btrace_fetch_registers, record_btrace_store_registers)
3490 (record_btrace_prepare_to_store, record_btrace_resume)
3491 (record_btrace_wait, record_btrace_find_new_threads)
3492 (record_btrace_thread_alive): Likewise.
3493 * procfs.c (procfs_xfer_partial): Always delegate.
3494 * corelow.c (core_xfer_partial): Always delegate.
3495 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3496
83814951
TT
34972014-07-18 Tom Tromey <tromey@redhat.com>
3498
3499 * exec.c (exec_make_note_section): Move earlier.
3500
b8b8facf
DE
35012014-07-17 Doug Evans <dje@google.com>
3502
74b49205 3503 PR gdb/17170
b8b8facf
DE
3504 * maint.c (count_symtabs_and_blocks): Handle NULL
3505 current_program_space.
3506 (report_command_stats): Check global enabled flag in addition to
3507 recorded enabled flag.
3508 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3509
69ff6be5
PA
35102014-07-16 Pedro Alves <palves@redhat.com>
3511
3512 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3513
252db1b5
TT
35142014-07-16 Tom Tromey <tromey@redhat.com>
3515
3516 * target.h (struct target_ops) <to_delete_record>: Reformat
3517 comment.
3518
a432721e
TT
35192014-07-16 Tom Tromey <tromey@redhat.com>
3520
3521 * target-delegates.c: Rebuild.
3522
487d9753
PL
35232014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3524
3525 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3526 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3527 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3528 (avr_pointer_to_address): Likewise.
3529 (avr_address_class_type_flags): New function.
3530 (avr_address_class_type_flags_to_name): Likewise.
3531 (avr_address_class_name_to_type_flags): Likewise.
3532 (avr_gdbarch_init): Set address_class_type_flags,
3533 address_class_type_flags_to_name and
3534 address_class_name_to_type_flags.
3535
57745c90
PA
35362014-07-15 Pedro Alves <palves@redhat.com>
3537
3538 * linux-nat.c (kill_callback): Save errno and work with saved
3539 copy.
3540
2d40be18
SM
35412014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3542
3543 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3544
572f6555
EBM
35452014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3546
3547 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3548 breakpoint support correctly.
3549
cc1c52ad
PA
35502014-07-14 Pedro Alves <palves@redhat.com>
3551
3552 * utils.c (prompt_for_continue): Call target_terminal_ours.
3553
1e973570
PA
35542014-07-14 Pedro Alves <palves@redhat.com>
3555
3556 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3557 catch_errors. Don't re-enable stdin or notify observers where,
3558 and rethrow error.
3559 (fetch_inferior_event_wrapper): Delete.
3560
93d6eb10
PA
35612014-07-14 Pedro Alves <palves@redhat.com>
3562
3563 PR gdb/17072
3564 * top.c: Include "inf-loop.h".
3565 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3566 field.
3567 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3568 was async before.
3569 (gdb_readline_wrapper): Store whether the target is async, and
3570 make it sync.
3571
0017922d
PA
35722014-07-14 Pedro Alves <palves@redhat.com>
3573
3574 PR gdb/17072
3575 * top.c (gdb_readline_wrapper_line): Tweak comment.
3576 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3577 the input handler callback.
3578
94696ad3
PA
35792014-07-14 Pedro Alves <palves@redhat.com>
3580
3581 PR gdb/17072
3582 * main.c: Include event-top.h.
3583 (handle_command_errors): New function.
3584 (catch_command_errors, catch_command_errors_const): Use it.
3585
9d1e69a2
PA
35862014-07-14 Pedro Alves <palves@redhat.com>
3587
3588 * exceptions.c (catch_command_errors, catch_command_errors_const):
3589 Moved to main.c.
3590 * exceptions.h (catch_command_errors_ftype)
3591 (catch_command_errors_const_ftype): Moved to main.c.
3592 (catch_command_errors, catch_command_errors_const): Delete
3593 declarations.
3594 * main.c (catch_command_errors_ftype)
3595 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3596 (catch_command_errors, catch_command_errors_const)): Moved here
3597 from exceptions.c and make static.
3598
feefc97b
PA
35992014-07-14 Pedro Alves <palves@redhat.com>
3600
3601 * exceptions.c (print_any_exception): Delete.
3602 (catch_exceptions_with_msg): Use exception_print instead of
3603 print_any_exception.
3604 (catch_errors): Use exception_fprintf instead of
3605 print_any_exception.
3606 (catch_command_errors, catch_command_errors_const): Use
3607 exception_print instead of print_any_exception.
3608
c933f875
PA
36092014-07-14 Pedro Alves <palves@redhat.com>
3610
3611 * infcall.c (run_inferior_call): Set 'sync_execution' while
3612 running the inferior call.
3613
feb6f816
PA
36142014-07-14 Pedro Alves <palves@redhat.com>
3615
3616 * value.c (value_contents_equal): Delete function.
3617 * value.h (value_contents_equal): Delete declaration.
3618
d98b7a16
TT
36192014-07-14 Tom Tromey <tromey@redhat.com>
3620
3621 PR exp/17106:
3622 * gdbtypes.c (is_dynamic_type_internal): New function, from
3623 is_dynamic_type.
3624 (is_dynamic_type): Rewrite.
3625 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3626 (resolve_dynamic_struct): Likewise.
3627 (resolve_dynamic_type_internal): New function, from
3628 resolve_dynamic_type.
3629 (resolve_dynamic_type): Rewrite.
3630
548740d6
TT
36312014-07-14 Tom Tromey <tromey@redhat.com>
3632
3633 * target.c (target_require_runnable): Also check record_stratum.
3634 Update comment.
3635
808f7ab1
YQ
36362014-07-11 Yao Qi <yao@codesourcery.com>
3637
3638 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3639 thumb_instruction_restores_sp return true.
3640
540314bd
YQ
36412014-07-11 Yao Qi <yao@codesourcery.com>
3642
3643 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3644 (thumb_in_function_epilogue_p): Call
3645 thumb_instruction_restores_sp.
3646
1db01f22
YQ
36472014-07-11 Yao Qi <yao@codesourcery.com>
3648
3649 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3650 'add sp, #imm'.
3651 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3652
3116063b
GB
36532014-07-11 Gary Benson <gbenson@redhat.com>
3654
3655 * amd64-linux-nat.c (gdbcore.h): Remove include.
3656 (regset.h): Likewise.
3657 (nat/linux-btrace.h): Likewise.
3658 (btrace.h): Likewise.
3659 (gdb_assert.h): Likewise.
3660 (string.h): Likewise.
3661 (sys/uio.h): Likewise.
3662 (sys/debugreg.h): Likewise.
3663 (sys/syscall.h): Likewise.
3664 (sys/procfs.h): Likewise.
3665 (sys/user.h): Likewise.
3666 (asm/ptrace.h): Likewise.
3667 (i386-nat.h): Likewise.
3668 * i386-linux-nat.c (i386-nat.h): Likewise.
3669 (regset.h): Likewise.
3670 (target.h): Likewise.
3671 (linux-nat.h): Likewise.
3672 (nat/linux-btrace.h): Likewise.
3673 (btrace.h): Likewise.
3674 (gdb_assert.h): Likewise.
3675 (string.h): Likewise.
3676 (sys/uio.h): Likewise.
3677 (sys/user.h): Likewise.
3678 (sys/procfs.h): Likewise.
3679 (sys/reg.h): Likewise.
3680 (sys/debugreg.h): Likewise.
3681 (ORIG_EAX): Remove definition.
3682
040baaf6
GB
36832014-07-11 Gary Benson <gbenson@redhat.com>
3684
3685 * i386-linux-nat.h: New file.
3686 * x86-linux-nat.h: Likewise.
3687 * x86-linux-nat.c: Likewise.
3688 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3689 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3690 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3691 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3692 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3693 (PTRACE_SETREGSET): Likewise.
3694 (arch_lwp_info): Now in x86-linux-nat.c.
3695 (have_ptrace_getregset): Now in x86-linux-nat.h.
3696 (x86_linux_dr_get): Now in x86-linux-nat.c.
3697 (x86_linux_dr_set): Likewise.
3698 (x86_linux_dr_get_addr): Likewise.
3699 (x86_linux_dr_get_control): Likewise.
3700 (x86_linux_dr_get_status): Likewise.
3701 (update_debug_registers_callback): Likewise.
3702 (x86_linux_dr_set_control): Likewise.
3703 (x86_linux_dr_set_addr): Likewise.
3704 (x86_linux_prepare_to_resume): Likewise.
3705 (x86_linux_new_thread): Likewise.
3706 (x86_linux_new_fork): Likewise.
3707 (x86_linux_get_thread_area): Likewise.
3708 (super_post_startup_inferior): Likewise.
3709 (x86_linux_child_post_startup_inferior): Likewise.
3710 (AMD64_LINUX_USER64_CS): Likewise.
3711 (AMD64_LINUX_X32_DS): Likewise.
3712 (x86_linux_read_description): Likewise.
3713 (x86_linux_enable_btrace): Likewise.
3714 (x86_linux_disable_btrace): Likewise.
3715 (x86_linux_teardown_btrace): Likewise.
3716 (x86_linux_read_btrace): Likewise.
3717 (x86_linux_create_target): Likewise.
3718 (x86_linux_add_target): Likewise.
3719 * i386-linux-nat.c (x86-linux-nat.h): New include.
3720 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3721 (PTRACE_SETREGSET): Likewise.
3722 (arch_lwp_info): Now in x86-linux-nat.c.
3723 (have_ptrace_getregset): Now in x86-linux-nat.h.
3724 (x86_linux_dr_get): Now in x86-linux-nat.c.
3725 (x86_linux_dr_set): Likewise.
3726 (x86_linux_dr_get_addr): Likewise.
3727 (x86_linux_dr_get_control): Likewise.
3728 (x86_linux_dr_get_status): Likewise.
3729 (update_debug_registers_callback): Likewise.
3730 (x86_linux_dr_set_control): Likewise.
3731 (x86_linux_dr_set_addr): Likewise.
3732 (x86_linux_prepare_to_resume): Likewise.
3733 (x86_linux_new_thread): Likewise.
3734 (x86_linux_new_fork): Likewise.
3735 (x86_linux_get_thread_area): Likewise.
3736 (super_post_startup_inferior): Likewise.
3737 (x86_linux_child_post_startup_inferior): Likewise.
3738 (AMD64_LINUX_USER64_CS): Likewise.
3739 (AMD64_LINUX_X32_DS): Likewise.
3740 (x86_linux_read_description): Likewise.
3741 (x86_linux_enable_btrace): Likewise.
3742 (x86_linux_disable_btrace): Likewise.
3743 (x86_linux_teardown_btrace): Likewise.
3744 (x86_linux_read_btrace): Likewise.
3745 (x86_linux_create_target): Likewise.
3746 (x86_linux_add_target): Likewise.
3747
1aa7e42c
GB
37482014-07-11 Gary Benson <gbenson@redhat.com>
3749
3750 * amd64-linux-nat.c: Comment and whitespace changes.
3751 * i386-linux-nat.c: Comment and whitespace changes.
3752
c1e246a0
GB
37532014-07-11 Gary Benson <gbenson@redhat.com>
3754
3755 * amd64-linux-nat.c (x86_linux_create_target): New function.
3756 (x86_linux_add_target): Likewise.
3757 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3758 * i386-linux-nat.c (x86_linux_create_target): New function.
3759 (x86_linux_add_target): Likewise.
3760 (_initialize_i386_linux_nat): Delegate to the above new functions.
3761
8c420b8d
GB
37622014-07-11 Gary Benson <gbenson@redhat.com>
3763
3764 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3765 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3766 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3767 (ps_get_thread_area): Delegate to the above.
3768
cb1da100
GB
37692014-07-11 Gary Benson <gbenson@redhat.com>
3770
3771 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3772 x86_linux_read_description. All uses updated. amd64-specific
3773 code conditionalized. Conditionalized i386-specific code added.
3774 Redundant cast removed.
3775 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3776 x86_linux_read_description. All uses updated. i386-specific
3777 code conditionalized. Conditionalized amd64-specific code added.
3778 One sizeof replaced with the actual type it is describing.
3779
2acf3cd0
GB
37802014-07-11 Gary Benson <gbenson@redhat.com>
3781
3782 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3783 x86_linux_dr_get. All uses updated.
3784 (amd64_linux_dr_set): Renamed to
3785 x86_linux_dr_set. All uses updated.
3786 (amd64_linux_dr_get_addr): Renamed to
3787 x86_linux_dr_get_addr. All uses updated.
3788 (amd64_linux_dr_get_control): Renamed to
3789 x86_linux_dr_get_control. All uses updated.
3790 (amd64_linux_dr_get_status): Renamed to
3791 x86_linux_dr_get_status. All uses updated.
3792 (amd64_linux_dr_set_control): Renamed to
3793 x86_linux_dr_set_control. All uses updated.
3794 (amd64_linux_dr_set_addr): Renamed to
3795 x86_linux_dr_set_addr. All uses updated.
3796 (amd64_linux_prepare_to_resume): Renamed to
3797 x86_linux_prepare_to_resume. All uses updated.
3798 (amd64_linux_new_thread): Renamed to
3799 x86_linux_new_thread. All uses updated.
3800 (amd64_linux_new_fork): Renamed to
3801 x86_linux_new_fork. All uses updated.
3802 (amd64_linux_child_post_startup_inferior): Renamed to
3803 x86_linux_child_post_startup_inferior. All uses updated.
3804 (amd64_linux_enable_btrace): Renamed to
3805 x86_linux_enable_btrace. All uses updated.
3806 (amd64_linux_disable_btrace): Renamed to
3807 x86_linux_disable_btrace. All uses updated.
3808 (amd64_linux_teardown_btrace): Renamed to
3809 x86_linux_teardown_btrace. All uses updated.
3810 (amd64_linux_read_btrace): Renamed to
3811 x86_linux_read_btrace. All uses updated.
3812 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3813 x86_linux_dr_get. All uses updated.
3814 (i386_linux_dr_set): Renamed to
3815 x86_linux_dr_set. All uses updated.
3816 (i386_linux_dr_get_addr): Renamed to
3817 x86_linux_dr_get_addr. All uses updated.
3818 (i386_linux_dr_get_control): Renamed to
3819 x86_linux_dr_get_control. All uses updated.
3820 (i386_linux_dr_get_status): Renamed to
3821 x86_linux_dr_get_status. All uses updated.
3822 (i386_linux_dr_set_control): Renamed to
3823 x86_linux_dr_set_control. All uses updated.
3824 (i386_linux_dr_set_addr): Renamed to
3825 x86_linux_dr_set_addr. All uses updated.
3826 (i386_linux_prepare_to_resume): Renamed to
3827 x86_linux_prepare_to_resume. All uses updated.
3828 (i386_linux_new_thread): Renamed to
3829 x86_linux_new_thread. All uses updated.
3830 (i386_linux_new_fork): Renamed to
3831 x86_linux_new_fork. All uses updated.
3832 (i386_linux_child_post_startup_inferior): Renamed to
3833 x86_linux_child_post_startup_inferior. All uses updated.
3834 (i386_linux_enable_btrace): Renamed to
3835 x86_linux_enable_btrace. All uses updated.
3836 (i386_linux_disable_btrace): Renamed to
3837 x86_linux_disable_btrace. All uses updated.
3838 (i386_linux_teardown_btrace): Renamed to
3839 x86_linux_teardown_btrace. All uses updated.
3840 (i386_linux_read_btrace): Renamed to
3841 x86_linux_read_btrace. All uses updated.
3842
b9c1d481
AS
38432014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3844
3845 * remote.c (extended_remote_post_attach): New function.
3846 (init_extended_remote_ops): Install it as to_post_attach method.
3847
7180e04a
PA
38482014-07-09 Pedro Alves <palves@redhat.com>
3849
3850 * infcmd.c (attach_command_post_wait): Don't call
3851 target_terminal_inferior here.
3852 (attach_command): Call it here instead.
3853
9a9a7608
AB
38542014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3857 field.
3858 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3859 from varobj.c, with additional checks.
3860 (c_varobj_ops): Fill in is_path_expr_parent field.
3861 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3862 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3863 field.
3864 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3865 ops method.
3866 (varobj_default_is_path_expr_parent): New function.
3867 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3868 (varobj_default_is_path_expr_parent): Declare new function.
3869
1f267ae3
MM
38702014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3871
3872 * infcmd.c (finish_backward): Turn internal error into normal error.
3873
b2ee242b
PA
38742014-07-07 Pedro Alves <palves@redhat.com>
3875
8a869bca 3876 PR gdb/17096
b2ee242b
PA
3877 * remote.c (async_handle_remote_sigint)
3878 (async_handle_remote_sigint_twice): Call
3879 gdb_call_async_signal_handler instead of
3880 mark_async_signal_handler.
3881
38e229b2
TT
38822014-07-07 Tom Tromey <tromey@redhat.com>
3883
3884 * target-delegates.c: Rebuild.
3885 * target.c (target_info_record): Remove.
3886 * record.c (info_record_command): Unconditionally call
3887 to_info_record.
3888 * target.h (struct target_ops) <to_info_record>: Use
3889 TARGET_DEFAULT_IGNORE.
3890 (target_info_record): Remove.
3891
f0f9ff95
TT
38922014-07-07 Tom Tromey <tromey@redhat.com>
3893
3894 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3895 TARGET_DEFAULT_NORETURN.
3896 * target.c (generic_tls_error): New function.
3897 (target_translate_tls_address): Don't search target stack.
3898 * target-delegates.c: Rebuild.
3899 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3900 stack.
3901 * linux-thread-db.c (thread_db_get_thread_local_address):
3902 Unconditionally call beneath target.
3903
4a5be5ee
MK
39042014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3905
3906 * cli/cli-logging.c (pop_output_files): Assign targerr to
3907 gdb_stdtargerr.
3908
92c3b204
AB
39092014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * MAINTAINERS (Write After Approval): Update my email address.
3912
9b11e3a7
GB
39132014-07-02 Gary Benson <gbenson@redhat.com>
3914
3915 * proc-service.c (ps_xfer_memory): Update comment.
3916 (ps_pstop): Remove unused function.
3917 (ps_pcontinue): Likewise.
3918 (ps_lstop): Likewise.
3919 (ps_lcontinue): Likewise.
3920 (ps_lgetxregsize): Likewise.
3921 (ps_lgetxregs): Likewise.
3922 (ps_lsetxregs): Likewise.
3923 (ps_plog): Likewise.
3924 (ps_ptread): Likewise.
3925 (ps_ptwrite): Likewise.
3926
cf363f18
MW
39272014-07-01 Mark Wielaard <mjw@redhat.com>
3928
3929 * dwarf2read.c (add_array_cv_type): New function.
3930 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3931 (read_tag_volatile_type): Likewise.
3932
82ae6c8d
TT
39332014-07-01 Tom Tromey <tromey@redhat.com>
3934
3935 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3936 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3937 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3938 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3939 * command.h (cmd_cfunc_ftype): Move earlier.
3940 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3941 (add_com, add_info): Use cmd_cfunc_ftype.
3942
96142726
TT
39432014-06-30 Tom Tromey <tromey@redhat.com>
3944
3945 * symtab.c (operator_chars): Make parameters and return type
3946 const.
3947 (file_matches): Make "files" const.
3948 (struct search_symbols_data) <files>: Now const.
3949 (search_symbols): Make "regexp" and "files" parameters const.
3950 Update.
3951 (symtab_symbol_info): Remove cast.
3952 (rbreak_command): Update.
3953 * symtab.h (search_symbols): Update.
3954
b67a2c6f
YQ
39552014-06-27 Yao Qi <yao@codesourcery.com>
3956
3957 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3958 Change parameter type to 'struct thread_info *'. Caller
3959 updated.
3960 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3961 Update declaration.
3962 * dummy-frame.c (struct dummy_frame_id): New.
3963 (dummy_frame_id_eq): New function.
3964 (struct dummy_frame) <id>: Change its type to 'struct
3965 dummy_frame_id'.
3966 (dummy_frame_push): Add parameter ptid and save it in
3967 dummy_frame_id.
3968 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3969 inferior_ptid.
3970 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3971 to inferior_ptid.
3972 (lookup_dummy_frame): Change parameter type to 'struct
3973 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3974 instead of frame_id_eq.
3975 (dummy_frame_pop): Add parameter ptid. Callers updated.
3976 Update comments. Compose dummy_frame_id and pass it to
3977 lookup_dummy_frame.
3978 (dummy_frame_discard): Add parameter ptid.
3979 (dummy_frame_sniffer): Compose dummy_frame_id and call
3980 dummy_frame_id_eq instead of frame_id_eq.
3981 (fprint_dummy_frames): Print ptid.
3982 * dummy-frame.h: Remove comments.
3983 (dummy_frame_push): Add ptid in declaration.
3984 (dummy_frame_pop, dummy_frame_discard): Likewise.
3985
5b10184c
TT
39862014-06-26 Tom Tromey <tromey@redhat.com>
3987
3988 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3989 * command.h (error_no_arg): Update.
3990
06900326
TT
39912014-06-26 Tom Tromey <tromey@redhat.com>
3992
3993 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3994 (do_show_command): Make "arg" const.
3995 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3996
c2bcbb1d
TT
39972014-06-26 Tom Tromey <tromey@redhat.com>
3998
3999 * record-full.c (record_full_get_bookmark): Make "args" const.
4000 (record_full_goto_bookmark): Make "raw_bookmark" const.
4001 * record.c (record_goto): New function.
4002 (cmd_record_goto): Use it. Now static.
4003 * record.h (record_goto): Declare.
4004 (cmd_record_goto): Remove declaration.
4005 * target-delegates.c: Rebuild.
4006 * target.h (struct target_ops) <to_get_bookmark,
4007 to_goto_bookmark>: Make parameter const.
4008
9cbe5fff
TT
40092014-06-26 Tom Tromey <tromey@redhat.com>
4010
4011 * defs.h (generic_load): Update.
4012 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4013 * monitor.c (monitor_load): Make "args" const.
4014 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4015 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4016 const.
4017 (mips_load): Make "file" const.
4018 * remote-sim.c (gdbsim_load): Make "args" const.
4019 * remote.c (remote_load): Make "name" const.
4020 * symfile.c (generic_load): Make "args" const.
4021 * target-delegates.c: Rebuild.
4022 * target.c (target_load): Make "arg" const.
4023 (debug_to_load): Make "args" const.
4024 * target.h (struct target_ops) <to_load>: Make parameter const.
4025 (target_load): Update.
4026
34a68019
TT
40272014-06-26 Tom Tromey <tromey@redhat.com>
4028
4029 PR symtab/16902:
4030 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4031 (dwarf2_physname, read_partial_die)
4032 (guess_partial_die_structure_name, fixup_partial_die)
4033 (guess_full_die_structure_name, anonymous_struct_prefix)
4034 (dwarf2_name): Use per-BFD obstack.
4035
efc889c1
YQ
40362014-06-26 Yao Qi <yao@codesourcery.com>
4037
4038 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4039 dummyframe and this_id into inner block below.
4040
4395285e
YQ
40412014-06-26 Yao Qi <yao@codesourcery.com>
4042
4043 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4044 with "signal_pass[0]" in the initialization of signal_pass.
4045
aef92902
MM
40462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4047
4048 * record-btrace.c (record_btrace_generating_corefile)
4049 (record_btrace_prepare_to_generate_core)
4050 (record_btrace_done_generating_core): New.
4051 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4052 (record_btrace_store_registers, record_btrace_prepare_to_store):
4053 Forward request when generating a core file.
4054 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4055 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4056 to_done_generating_core.
4057
5fff78c4
MM
40582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4059
4060 * target.h (target_ops) <to_prepare_to_generate_core>
4061 <to_done_generating_core>: New.
4062 (target_prepare_to_generate_core, target_done_generating_core): New.
4063 * target.c (target_prepare_to_generate_core)
4064 (target_done_generating_core): New.
4065 * target-delegates.c: Regenerate.
4066 * gcore.c: (write_gcore_file): Rename to ...
4067 (write_gcore_file_1): ...this.
4068 (write_gcore_file): Call target_prepare_to_generate_core
4069 and target_done_generating_core.
4070
1d1f1ccb
MM
40712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4072
4073 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4074 * gcore.c (write_gcore_file): Free memory returned from
4075 make_corefile_notes.
4076 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4077 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4078
3343ef86
YQ
40792014-06-24 Yao Qi <yao@codesourcery.com>
4080
4081 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4082 (arm_linux_init_abi): Set skip_trampoline_code with
4083 gdbarch_skip_trampoline_code instead of
4084 find_solib_trampoline_target.
4085
18d18ac8
YQ
40862014-06-24 Yao Qi <yao@codesourcery.com>
4087
4088 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4089 arm_skip_bx_reg returns non-zero.
4090
80d8d390
YQ
40912014-06-24 Yao Qi <yao@codesourcery.com>
4092
4093 * arm-tdep.c (arm_skip_bx_reg): New function.
4094 (arm_skip_stub): Call arm_skip_bx_reg.
4095
6a18a01c
DB
40962014-06-23 Don Breazeal <donb@codesourcery.com>
4097
4098 * MAINTAINERS: Add myself as write-after-approval maintainer.
4099
8e9db26e
PA
41002014-06-23 Pedro Alves <palves@redhat.com>
4101
4102 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4103 DR_CONTROL before setting DR0..DR3.
4104 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4105 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4106 bits of DR_CONTROL related to the debug register slot being
4107 disabled. If all slots are vacant, clear local slowdown as well,
4108 and assert DR_CONTROL is 0.
4109
70afc5b7
SC
41102014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4111
4112 * python/lib/gdb/command/xmethods.py
4113 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4114 current progspace only if the string "progspace" matches LOCUS_RE.
4115
840ed64d
JK
41162014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 Fix --with-system-readline with readline-6.3 patch 5.
4119 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4120 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4121 types.
4122
26f2dc30
TT
41232014-06-20 Tom Tromey <tromey@redhat.com>
4124
4125 * dwarf2read.c (dw2_get_real_path): Use correct type in
4126 OBSTACK_CALLOC.
4127 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4128
125f8a3d
GB
41292014-06-20 Gary Benson <gbenson@redhat.com>
4130
4131 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4132 * common/glibc_thread_db.h: Likewise.
4133 * common/i386-cpuid.h: Likewise.
4134 * common/i386-gcc-cpuid.h: Likewise.
4135 * common/linux-btrace.h: Likewise.
4136 * common/linux-osdata.h: Likewise.
4137 * common/linux-procfs.h: Likewise.
4138 * common/linux-ptrace.h: Likewise.
4139 * common/mips-linux-watch.h: Likewise.
4140 * common/linux-btrace.c: Moved to nat.
4141 * common/linux-osdata.c: Likewise.
4142 * common/linux-procfs.c: Likewise.
4143 * common/linux-ptrace.c: Likewise.
4144 * common/mips-linux-watch.c: Likewise.
4145 * nat/gdb_thread_db.h: Moved from common.
4146 * nat/glibc_thread_db.h: Likewise.
4147 * nat/i386-cpuid.h: Likewise.
4148 * nat/i386-gcc-cpuid.h: Likewise.
4149 * nat/linux-btrace.c: Likewise.
4150 * nat/linux-btrace.h: Likewise.
4151 * nat/linux-osdata.c: Likewise.
4152 * nat/linux-osdata.h: Likewise.
4153 * nat/linux-procfs.c: Likewise.
4154 * nat/linux-procfs.h: Likewise.
4155 * nat/linux-ptrace.c: Likewise.
4156 * nat/linux-ptrace.h: Likewise.
4157 * nat/mips-linux-watch.c: Likewise.
4158 * nat/mips-linux-watch.h: Likewise.
4159 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4160 (object file files): Reordered.
4161 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4162 of glibc_thread_db.h.
4163
42995dbd
GB
41642014-06-20 Gary Benson <gbenson@redhat.com>
4165
4166 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4167 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4168 (i386_dr_low): Likewise.
4169 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4170 (i386_dr_low_set_addr): Likewise.
4171 (i386_dr_low_get_addr): Likewise.
4172 (i386_dr_low_can_set_control): Likewise.
4173 (i386_dr_low_set_control): Likewise.
4174 (i386_dr_low_get_control): Likewise.
4175 (i386_dr_low_get_status): Likewise.
4176 (i386_get_debug_register_length): Likewise.
4177 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4178 (i386_dr_low): Likewise.
4179 * nat/i386-dregs.c (i386-low.h): Remove include.
4180 (i386-nat.h): Likewise.
4181 (nat/i386-dregs.h): New include.
4182 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4183 (i386_dr_low_set_addr): Likewise.
4184 (i386_dr_low_get_addr): Likewise.
4185 (i386_dr_low_can_set_control): Likewise.
4186 (i386_dr_low_set_control): Likewise.
4187 (i386_dr_low_get_control): Likewise.
4188 (i386_dr_low_get_status): Likewise.
4189 (i386_get_debug_register_length): Likewise.
4190 (debug_hw_points): Likewise.
4191
3ed9baed
IB
41922014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4193
4194 * Makefile.in (SFILES): Add d-exp.y.
4195 (YYFILES): Add d-exp.c.
4196 (YYOBJ): Add d-exp.o.
4197 (local-maintainer-clean): Delete d-exp.c.
4198 * d-exp.y: New file.
4199 * d-lang.h (d_parse): New declaration.
4200 (d_error): New declaration.
4201 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4202 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4203 PREC_ORDER operators.
4204 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4205
78c164b0
YQ
42062014-06-19 Yao Qi <yao@codesourcery.com>
4207
4208 * gdbthread.h (any_running): Remove the declaration.
4209 * thread.c (any_running): Remove.
4210
f6e29b6e
YQ
42112014-06-19 Yao Qi <yao@codesourcery.com>
4212
4213 * gdbthread.h (struct thread_info) <state>: Change its type to
4214 'enum thread_state'. Update comments.
4215
034f788c
PA
42162014-06-19 Pedro Alves <palves@redhat.com>
4217
4218 * gdbthread.h (ALL_THREADS): Delete.
4219 (ALL_NON_EXITED_THREADS): New macro.
4220 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4221 instead of ALL_THREADS.
4222 * infrun.c (find_thread_needs_step_over)
4223 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4224 instead of ALL_THREADS.
4225 * record-btrace.c (record_btrace_open)
4226 (record_btrace_stop_recording, record_btrace_close)
4227 (record_btrace_is_replaying, record_btrace_resume)
4228 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4229 * remote.c (append_pending_thread_resumptions): Likewise.
4230 * thread.c (thread_apply_all_command): Likewise.
4231
46e33252
GB
42322014-06-19 Gary Benson <gbenson@redhat.com>
4233
4234 * i386-nat.c (i386_stopped_by_watchpoint):
4235 Use i386_dr_stopped_by_watchpoint.
4236 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4237 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4238
3a8ee006
GB
42392014-06-19 Gary Benson <gbenson@redhat.com>
4240
4241 * nat/i386-dregs.c: New file.
4242 * Makefile.in (i386-dregs.o): New rule.
4243 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4244 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4245 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4246 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4247 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4248 * config/i386/go32.mh (NATDEPFILES): Likewise.
4249 * config/i386/linux.mh (NATDEPFILES): Likewise.
4250 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4251 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4252 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4253 * i386-nat.h (debug_hw_points): New declaration.
4254 * i386-nat.c (breakpoint.h): Remove include.
4255 (command.h): Likewise.
4256 (target.h): Likewise.
4257 (gdb_assert.h): Likewise.
4258 (debug_hw_points): Made nonstatic.
4259 (debug_printf): Now in i386-dregs.c.
4260 (TARGET_HAS_DR_LEN_8): Likewise.
4261 (DR_CONTROL_SHIFT): Likewise.
4262 (DR_CONTROL_SIZE): Likewise.
4263 (DR_RW_EXECUTE): Likewise.
4264 (DR_RW_WRITE): Likewise.
4265 (DR_RW_READ): Likewise.
4266 (DR_RW_IORW): Likewise.
4267 (DR_LEN_1): Likewise.
4268 (DR_LEN_2): Likewise.
4269 (DR_LEN_4): Likewise.
4270 (DR_LEN_8): Likewise.
4271 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4272 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4273 (DR_ENABLE_SIZE): Likewise.
4274 (DR_LOCAL_SLOWDOWN): Likewise.
4275 (DR_GLOBAL_SLOWDOWN): Likewise.
4276 (DR_CONTROL_RESERVED): Likewise.
4277 (I386_DR_CONTROL_MASK): Likewise.
4278 (I386_DR_VACANT): Likewise.
4279 (I386_DR_LOCAL_ENABLE): Likewise.
4280 (I386_DR_GLOBAL_ENABLE): Likewise.
4281 (I386_DR_DISABLE): Likewise.
4282 (I386_DR_SET_RW_LEN): Likewise.
4283 (I386_DR_GET_RW_LEN): Likewise.
4284 (I386_DR_WATCH_HIT): Likewise.
4285 (i386_wp_op_t): Likewise.
4286 (i386_show_dr): Likewise.
4287 (i386_length_and_rw_bits): Likewise.
4288 (i386_insert_aligned_watchpoint): Likewise.
4289 (i386_remove_aligned_watchpoint): Likewise.
4290 (i386_handle_nonaligned_watchpoint): Likewise.
4291 (i386_update_inferior_debug_regs): Likewise.
4292 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4293 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4294 (i386_region_ok_for_watchpoint):
4295 Use i386_dr_region_ok_for_watchpoint.
4296 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4297
322a8e06
GB
42982014-06-19 Gary Benson <gbenson@redhat.com>
4299
4300 * i386-nat.c (i386_insert_hw_breakpoint): Use
4301 i386_insert_watchpoint.
4302 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4303
8f26655c
GB
43042014-06-19 Gary Benson <gbenson@redhat.com>
4305
4306 * i386-nat.c (i386_dr_show): Renamed to
4307 i386_show_dr and made static. All uses updated.
4308 (i386_dr_length_and_rw_bits): Renamed to
4309 i386_length_and_rw_bits and made static.
4310 All uses updated.
4311 (i386_dr_insert_aligned_watchpoint): Renamed to
4312 i386_insert_aligned_watchpoint and made static.
4313 All uses updated.
4314 (i386_dr_remove_aligned_watchpoint): Renamed to
4315 i386_remove_aligned_watchpoint and made static.
4316 All uses updated.
4317 (i386_dr_update_inferior_debug_regs): Renamed to
4318 i386_update_inferior_debug_regs and made static.
4319 All uses updated.
4320 * nat/i386-dregs.h (i386_dr_show): Removed.
4321 (i386_dr_length_and_rw_bits): Likewise.
4322 (i386_dr_insert_aligned_watchpoint): Likewise.
4323 (i386_dr_remove_aligned_watchpoint): Likewise.
4324 (i386_dr_update_inferior_debug_regs): Likewise.
4325
992c7d70
GB
43262014-06-19 Gary Benson <gbenson@redhat.com>
4327
4328 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4329 * configure: Regenerate.
4330 * config.in: Likewise.
4331 * main.c (signal.h): New include.
4332 (setup_alternate_signal_stack): New function.
4333 (captured_main): Call the above.
4334 * cp-support.c (signal.h): New include.
4335 (catch_demangler_crashes): New flag.
4336 (SIGJMP_BUF): New define.
4337 (SIGSETJMP): Likewise.
4338 (SIGLONGJMP): Likewise.
4339 (gdb_demangle_jmp_buf): New static global.
4340 (gdb_demangle_attempt_core_dump): Likewise.
4341 (gdb_demangle_signal_handler): New function.
4342 (gdb_demangle): If catch_demangler_crashes is set, install the
4343 above signal handler before calling bfd_demangle, and restore
4344 the original signal handler afterwards. Display the offending
4345 symbol and call demangler_warning the first time a segmentation
4346 fault is caught.
4347 (_initialize_cp_support): New maint set/show command.
4348
eae7090b
GB
43492014-06-19 Gary Benson <gbenson@redhat.com>
4350
4351 * utils.h (resource_limit_kind): New enum.
4352 (can_dump_core): New declaration.
4353 (warn_cant_dump_core): Likewise.
4354 (dump_core): Likewise.
4355 * utils.c (dump_core): Made nonstatic. Added new
4356 parameter "limit_kind".
4357 (can_dump_core): Made nonstatic. Moved printing code to...
4358 (warn_cant_dump_core): New function.
4359 (can_dump_core_warn): Likewise.
4360 (internal_vproblem): Replace calls to can_dump_core with
4361 calls to can_dump_core_warn. Supply new argument to each.
4362
57fcfb1b
GB
43632014-06-19 Gary Benson <gbenson@redhat.com>
4364
4365 * utils.h (demangler_vwarning): New declaration.
4366 (demangler_warning): Likewise.
4367 * utils.c (struct internal_problem)
4368 <user_settable_should_quit>: New field.
4369 <user_settable_should_dump_core>: Likewise
4370 (internal_error_problem): Add values for above new fields.
4371 (internal_warning_problem): Likewise.
4372 (demangler_warning_problem): New static global.
4373 (demangler_vwarning): New function.
4374 (demangler_warning): Likewise.
4375 (add_internal_problem_command): Selectively add commands.
4376 (_initialize_utils): New internal problem command.
4377 * maint.c (maintenance_demangler_warning): New function.
4378 (_initialize_maint_cmds): New command.
4379
17a40b44
TT
43802014-06-18 Tom Tromey <tromey@redhat.com>
4381
4382 * f-valprint.c (info_common_command_for_block): Update.
4383 * symtab.h (struct general_symbol_info) <common_block>: Now
4384 const.
4385
346d1dfe
TT
43862014-06-18 Tom Tromey <tromey@redhat.com>
4387
4388 * symtab.h (struct symtab) <blockvector>: Now const.
4389 * ada-lang.c (ada_add_global_exceptions): Update.
4390 * buildsym.c (augment_type_symtab): Update.
4391 * dwarf2read.c (dw2_lookup_symbol): Update.
4392 * jit.c (finalize_symtab): Update.
4393 * jv-lang.c (add_class_symtab_symbol): Update.
4394 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4395 Update.
4396 * objfiles.c (objfile_relocate1): Update.
4397 * psymtab.c (lookup_symbol_aux_psymtabs)
4398 (maintenance_check_psymtabs): Update.
4399 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4400 Update.
4401 * spu-tdep.c (spu_catch_start): Update.
4402 * symmisc.c (dump_symtab_1): Update.
4403 * symtab.c (lookup_global_symbol_from_objfile)
4404 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4405 (basic_lookup_transparent_type_quick)
4406 (basic_lookup_transparent_type, find_pc_sect_symtab)
4407 (find_pc_sect_line, search_symbols): Update.
4408 * block.c (find_block_in_blockvector): Make "bl" const.
4409 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4410 const.
4411 (blockvector_contains_pc): Make "bv" const.
4412 (block_for_pc_sect): Update.
4413 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4414 (blockvector_contains_pc): Update.
4415 * breakpoint.c (resolve_sal_pc): Update.
4416 * inline-frame.c (block_starting_point_at): Update.
4417
1834676b
TT
44182014-06-18 Tom Tromey <tromey@redhat.com>
4419
4420 * completer.c (complete_line): Make "line_buffer" const.
4421 * completer.h (complete_line): Update.
4422
ac1a991b
TT
44232014-06-18 Tom Tromey <tromey@redhat.com>
4424
4425 * symtab.c (add_macro_name): Remove unneeded cast.
4426
5bc98e52
TT
44272014-06-18 Tom Tromey <tromey@redhat.com>
4428
4429 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4430 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4431
8236def8
TT
44322014-06-18 Tom Tromey <tromey@redhat.com>
4433
4434 * probe.c (info_probes_for_ops): Make "arg" const.
4435 * probe.h (info_probes_for_ops): Update.
4436
3977b71f
TT
44372014-06-18 Tom Tromey <tromey@redhat.com>
4438
4439 * varobj.c (varobj_create): Update.
4440 * valops.c (value_of_this): Update.
4441 * tracepoint.c (add_local_symbols, scope_info): Update.
4442 * symtab.h (struct general_symbol_info) <block>: Now const.
4443 * symtab.c (skip_prologue_sal)
4444 (default_make_symbol_completion_list_break_on)
4445 (skip_prologue_using_sal): Update.
4446 * stack.h (iterate_over_block_locals)
4447 (iterate_over_block_local_vars): Update.
4448 * stack.c (print_frame_args): Update.
4449 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4450 parameter const.
4451 (get_selected_block): Make return type const.
4452 * python/py-frame.c (frapy_block): Update.
4453 * python/py-block.c (gdbpy_block_for_pc): Update.
4454 * p-exp.y (%union) <bval>: Now const.
4455 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4456 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4457 * m2-exp.y (%union) <bval>: Now const.
4458 * linespec.c (get_current_search_block): Make return type const.
4459 (create_sals_line_offset, find_label_symbols): Update.
4460 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4461 Update.
4462 (block_starting_point_at): Make "block" const.
4463 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4464 (check_exception_resume): Update.
4465 * guile/scm-frame.c (gdbscm_frame_block): Update.
4466 * guile/scm-block.c (gdbscm_lookup_block): Update.
4467 * frame.h (get_frame_block): Update.
4468 (get_selected_block): Make return type const.
4469 * frame.c (frame_id_inner): Update.
4470 * f-valprint.c (info_common_command_for_block)
4471 (info_common_command): Update.
4472 * dwarf2loc.c (dwarf2_find_location_expression)
4473 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4474 (locexpr_describe_location_piece): Update.
4475 * c-exp.y (%union) <bval>: Now const.
4476 * breakpoint.c (resolve_sal_pc): Update.
4477 * blockframe.c (get_frame_block):Make return type const.
4478 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4479 (block_innermost_frame): Update.
4480 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4481 (block_for_pc, block_for_pc_sect): Update.
4482 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4483 'pblock' const.
4484 (block_for_pc_sect, block_for_pc): Make return type const.
4485 * ax-gdb.c (gen_expr): Update.
4486 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4487 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4488 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4489 (ada_read_var_value): Update.
4490 * ada-exp.y (struct name_info) <block>: Now const.
4491 (%union): Likewise.
4492 (block_lookup): Constify.
4493
b9228891
GB
44942014-06-18 Gary Benson <gbenson@redhat.com>
4495
4496 * nat/i386-dregs.h: New file.
4497 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4498 * i386-nat.h (i386-dregs.h): New include.
4499 (DR_FIRSTADDR): Now in i386-dregs.h.
4500 (DR_LASTADDR): Likewise.
4501 (DR_NADDR): Likewise.
4502 (DR_STATUS): Likewise.
4503 (DR_CONTROL): Likewise.
4504 (i386_debug_reg_state): Likewise.
4505 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4506
a1aa2221
LM
45072014-06-18 Don Breazeal <donb@codesourcery.com>
4508
4509 * breakpoint.c (set_longjmp_breakpoint): Call
4510 momentary_breakpoint_from_master with additional argument.
4511 (set_longjmp_breakpoint_for_call_dummy): Call
4512 momentary_breakpoint_from_master with additional argument.
4513 (set_std_terminate_breakpoint): Call
4514 momentary_breakpoint_from_master with additional argument.
4515 (momentary_breakpoint_from_master): Add argument to function
4516 definition and use it to initialize structure member flag.
74228e77 4517 (clone_momentary_breakpoint): Call
a1aa2221
LM
4518 momentary_breakpoint_from_master with additional argument.
4519 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4520 member flags set in momentary_breakpoint_from_master.
4521
4be83cc2
GB
45222014-06-18 Gary Benson <gbenson@redhat.com>
4523
4524 * i386-nat.c (i386_show_dr): Renamed to
4525 i386_dr_show and made nonstatic. All uses updated.
4526 (i386_length_and_rw_bits): Renamed to
4527 i386_dr_length_and_rw_bits and made nonstatic.
4528 All uses updated.
4529 (i386_insert_aligned_watchpoint): Renamed to
4530 i386_dr_insert_aligned_watchpoint and made nonstatic.
4531 All uses updated.
4532 (i386_remove_aligned_watchpoint): Renamed to
4533 i386_dr_remove_aligned_watchpoint and made nonstatic.
4534 All uses updated.
4535 (i386_update_inferior_debug_regs): Renamed to
4536 i386_dr_update_inferior_debug_regs and made nonstatic.
4537 All uses updated.
4538
131aa0d4
GB
45392014-06-18 Gary Benson <gbenson@redhat.com>
4540
4541 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4542 (i386_dr_low_can_set_control): Likewise.
4543 (i386_dr_low_set_addr): Likewise.
4544 (i386_dr_low_set_control): Likewise.
4545 (i386_dr_low_get_addr): Likewise.
4546 (i386_dr_low_get_status): Likewise.
4547 (i386_dr_low_get_control): Likewise.
4548 (i386_insert_aligned_watchpoint): Use new macros.
4549 (i386_update_inferior_debug_regs): Likewise.
4550 (i386_stopped_data_address): Likewise.
4551
d9305f7f
GB
45522014-06-18 Gary Benson <gbenson@redhat.com>
4553
4554 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4555 New parameter. All uses updated.
4556
ea008da4
GB
45572014-06-18 Gary Benson <gbenson@redhat.com>
4558
4559 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4560 All uses updated.
4561
1b6d4134
GB
45622014-06-18 Gary Benson <gbenson@redhat.com>
4563
4564 * i386-nat.c (debug_printf): New macro.
4565 (i386_get_debug_register_length): Likewise.
4566 (TARGET_HAS_DR_LEN_8): Use above macro.
4567 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4568 and printf_unfiltered. Use phex to format values.
4569
9b4550ef
GB
45702014-06-18 Gary Benson <gbenson@redhat.com>
4571
4572 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4573 Make const.
4574
6e62758f
GB
45752014-06-18 Gary Benson <gbenson@redhat.com>
4576
4577 * i386-nat.c: Comment changes.
4578
51c79e94
GB
45792014-06-18 Gary Benson <gbenson@redhat.com>
4580
4581 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4582
3e11889a
GB
45832014-06-18 Gary Benson <gbenson@redhat.com>
4584
4585 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4586 (i386_insert_aligned_watchpoint): Likewise.
4587 (i386_remove_aligned_watchpoint): Likewise.
4588 (i386_handle_nonaligned_watchpoint): Likewise.
4589
fc6e2f03
GB
45902014-06-18 Gary Benson <gbenson@redhat.com>
4591
4592 * i386-nat.c: Whitespace changes.
4593
2afe7d50
SB
45942014-06-17 Samuel Bronson <naesten@gmail.com>
4595
4596 * MAINTAINERS: Update Roland McGrath's email address.
4597 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4598 Red Hat a while ago, and giving me a current address.
2afe7d50 4599
3bca49ee
TT
46002014-06-17 Tom Tromey <tromey@redhat.com>
4601
4602 * utils.h (savestring): Remove declaration.
4603
6e366df1
TT
46042014-06-17 Tom Tromey <tromey@redhat.com>
4605
4606 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4607
6be47f0c
KS
46082014-06-16 Keith Seitz <keiths@redhat.com>
4609
4610 PR mi/15863
4611 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4612 to update the varobj if inferior_ptid is null_ptid.
4613
7bc112c1
TT
46142014-06-16 Tom Tromey <tromey@redhat.com>
4615
4616 * target.h (struct target_ops) <to_info_proc>: Make parameter
4617 const.
4618 (target_info_proc): Update.
4619 * target.c (target_info_proc): Make "args" const.
4620 * procfs.c (procfs_info_proc): Update.
4621 * linux-tdep.c (linux_info_proc): Update.
4622 (linux_core_info_proc_mappings): Make "args" const.
4623 (linux_core_info_proc): Update.
4624 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4625 * gdbarch.c: Rebuild.
4626 * gdbarch.h: Rebuild.
4627 * corelow.c (core_info_proc): Update.
4628
fee354ee
TT
46292014-06-16 Tom Tromey <tromey@redhat.com>
4630
4631 * target.h (struct target_ops) <to_disconnect>: Make parameter
4632 const.
4633 (target_disconnect): Update.
4634 * target.c (target_disconnect): Make "args" const.
4635 * target-delegates.c: Rebuild.
4636 * remote.c (remote_disconnect): Update.
4637 * record.h (record_disconnect): Update.
4638 * record.c (record_disconnect): Update.
4639 * inf-child.c (inf_child_disconnect): Update.
4640
a30bf1f1
TT
46412014-06-16 Tom Tromey <tromey@redhat.com>
4642
4643 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4644 * target.c (debug_to_rcmd, default_rcmd): Update.
4645 * target-delegates.c: Rebuild.
4646 * remote.c (remote_rcmd): Update.
4647 * monitor.c (monitor_rcmd): Update.
4648
d03de421
PA
46492014-06-16 Pedro Alves <palves@redhat.com>
4650
4651 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4652 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4653 have OBJF_SHARED set.
4654 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4655 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4656 instead of OBJF_USERLOADED.
4657 * objfiles.h (OBJF_SHARED): Update comment.
4658 (userloaded_objfile_contains_address_p): Rename to ...
4659 (shared_objfile_contains_address_p): ... this, and update
4660 comments.
4661 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4662 new objfile.
4663 (remove_symbol_file_command): Skip objfiles that don't have
4664 OBJF_SHARED set.
4665
99f4262f
TT
46662014-06-16 Tom Tromey <tromey@redhat.com>
4667
4668 * minsyms.h (prim_record_minimal_symbol)
4669 (prim_record_minimal_symbol_and_info): Update comments.
4670
97d66cc6
EZ
46712014-06-14 Eli Zaretskii <eliz@gnu.org>
4672
4673 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4674 or --without-guile, according to how GDB was built.
4675
635c7e8a
TT
46762014-06-13 Tom Tromey <tromey@redhat.com>
4677
4678 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4679 to help_list.
4680 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4681 to help_list.
4682 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4683 help_list.
4684 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4685 help_list.Pass all_commands, not -1, to help_list.
4686 * cli/cli-dump.c (dump_command, append_command)
4687 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4688 (binary_dump_command, binary_append_command): Pass all_commands,
4689 not -1, to help_list.
4690 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4691 -1, to help_list.
4692 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4693 -1, to help_list.
4694 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4695 help_list.
4696 * top.c (set_history): Pass all_commands, not -1, to help_list.
4697 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4698 all_commands, not -1, to help_list.
4699 * symfile.c (overlay_command): Pass all_commands, not -1, to
4700 help_list.
4701 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4702 help_list.
4703 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4704 help_list.
4705 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4706 -1, to help_list.
4707 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4708 not -1, to help_list.
4709 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4710 not -1, to help_list.
4711 * maint.c (maintenance_command, maintenance_info_command)
4712 (maintenance_print_command, maintenance_set_cmd): Pass
4713 all_commands, not -1, to help_list.
4714 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4715 help_list.
4716 * language.c (set_check): Pass all_commands, not -1, to help_list.
4717 * infcmd.c (unset_command): Pass all_commands, not -1, to
4718 help_list.
4719 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4720 help_list.
4721 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4722 help_list.
4723 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4724 help_list.
4725 * breakpoint.c (save_command): Pass all_commands, not -1, to
4726 help_list.
4727 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4728 all_commands, not -1, to help_list.
4729
b94ade42
PL
47302014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4731
4732 * regcache.c (struct register_to_invalidate): New structure.
4733 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4734 functions.
4735 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4736
31f628ae
YQ
47372014-06-12 Yao Qi <yao@codesourcery.com>
4738
4739 * varobj.c (varobj_get_num_children): Call
4740 varobj_is_dynamic_p.
4741 (varobj_list_children): Likewise.
4742 (varobj_update): Likewise. Update comments.
4743
cde5ef40
YQ
47442014-06-12 Yao Qi <yao@codesourcery.com>
4745
4746 * varobj.c (varobj_pretty_printed_p): Rename to ...
4747 (varobj_is_dynamic_p): ... this. New function.
4748 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4749 (varobj_is_dynamic_p): Declare.
4750 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4751 (mi_print_value_p, varobj_update_one): Likewise.
4752
576ea091
YQ
47532014-06-12 Pedro Alves <pedro@codesourcery.com>
4754 Yao Qi <yao@codesourcery.com>
4755
4756 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4757 (varobj_get_iterator): Wrap up code for pretty-printer by
4758 "#if HAVE_PYTHON" and "#endif".
4759 (update_dynamic_varobj_children): Likewise.
4760
827f100c
YQ
47612014-06-12 Pedro Alves <pedro@codesourcery.com>
4762 Yao Qi <yao@codesourcery.com>
4763
4764 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4765 gdb_python_initialized is false. Move some code from varobj.c.
4766 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4767 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4768 (struct varobj_item): Moved to varobj-iter.h".
4769 (varobj_clear_saved_item): New function.
4770 (update_dynamic_varobj_children): Move python-related code to
4771 py-varobj.c.
4772 (free_variable): Call varobj_clear_saved_item and
4773 varobj_iter_delete.
4774
e5250216
YQ
47752014-06-12 Pedro Alves <pedro@codesourcery.com>
4776 Yao Qi <yao@codesourcery.com>
4777
4778 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4779 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4780 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4781 (py-varobj.o): New rule.
4782 * python/py-varobj.c: New file.
4783 * python/python-internal.h (py_varobj_get_iterator): Declare.
4784 * varobj-iter.h: New file.
4785 * varobj.c: Include "varobj-iter.h"
4786 (struct varobj) <child_iter>: Change its type from "PyObject *"
4787 to "struct varobj_iter *".
4788 <saved_item>: Likewise.
4789 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4790 [HAVE_PYTHON] (varobj_get_iterator): New function.
4791 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4792 python-specific code to python/py-varobj.c.
4793 (install_visualizer): Call varobj_iter_delete instead of
4794 Py_XDECREF.
4795 * varobj.h (varobj_ensure_python_env): Declare.
4796
5a2e0d6e
YQ
47972014-06-12 Yao Qi <yao@codesourcery.com>
4798
4799 * varobj.c (struct varobj_item): New structure.
4800 (create_child_with_value): Update declaration.
4801 (varobj_add_child): Replace arguments 'name' and 'value' with
4802 'item'. All callers updated.
4803 (install_dynamic_child): Likewise.
4804 (update_dynamic_varobj_children): Likewise.
4805 (varobj_add_child): Likewise.
4806 (create_child_with_value): Likewise.
4807
919b9a93
JB
48082014-06-11 Joel Brobecker <brobecker@adacore.com>
4809
4810 * NEWS: Create a new section for the next release branch.
4811 Rename the section of the current branch, now that it has
4812 been cut.
4813
71a55bdf
JB
48142014-06-11 Joel Brobecker <brobecker@adacore.com>
4815
4816 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4817 * version.in: Bump version to 7.8.50.DATE-cvs.
4818
364fe1f7
PA
48192014-06-11 Pedro Alves <palves@redhat.com>
4820
4821 PR remote/17028
4822 * ser-mingw.c (net_windows_socket_check_pending): New function.
4823 (net_windows_select_thread): Ignore spurious wakeups. Use
4824 net_windows_socket_check_pending.
4825 (net_windows_wait_handle): Check for pending events with
4826 ioctlsocket, through net_windows_socket_check_pending, instead of
4827 checking the socket's event.
4828
5a6c7709
SC
48292014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4830
4831 * python/python-internal.h (gdb_PyObject_GetAttrString)
4832 (gdb_PyObject_HasAttrString): New inline function definitions.
4833 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4834 char * of the second argument to PyObject_GetAttrString.
74228e77 4835
0e58ee40
JB
48362014-06-10 Joel Brobecker <brobecker@adacore.com>
4837
4838 * serial.c (serial_write): Fix index of character to be printed
4839 in call to serial_logchar when serial debug traces are enabled.
4840
d190df30
JB
48412014-06-10 Joel Brobecker <brobecker@adacore.com>
4842
4843 * gdbtypes (resolve_dynamic_range): Add function description.
4844
b4b01d36
PA
48452014-06-09 Pedro Alves <palves@redhat.com>
4846
4847 * linux-nat.c (linux_child_follow_fork): Initialize status with
4848 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4849 inner block. Only pass the signal to PTRACE_DETACH if in pass
4850 state.
4851
3657956b
GB
48522014-06-09 Gary Benson <gbenson@redhat.com>
4853
4854 * common/signals.c (gdb_signal_from_host): Reorder to separate
4855 the always-available ANSI-standard signals from the signals that
4856 require checking.
4857 (do_gdb_signal_to_host): Likewise.
4858 * proc-events.c (signal_table): Likewise.
4859
c077881a
HZ
48602014-06-08 Hui Zhu <hui@codesourcery.com>
4861
4862 * common/linux-ptrace.c (linux_disable_event_reporting): New
4863 function.
4864 * common/linux-ptrace.h (linux_disable_event_reporting): New
4865 declaration.
4866 * linux-nat.c (linux_child_follow_fork): Do a single step before
4867 detach.
4868
4186eb54
KS
48692014-06-07 Keith Seitz <keiths@redhat.com>
4870
4871 Revert:
4872 PR c++/16253
4873 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4874 from symbol_matches_domain in symtab.c. All local callers
4875 of symbol_matches_domain updated.
4876 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4877 search STRUCT_DOMAIN.
4878 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4879 independently. standard_lookup will do that automatically.
4880 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4881 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4882 (cp_lookup_symbol_in_namespace): Likewise.
4883 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4884 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4885 may return a STRUCT_DOMAIN match.
4886 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4887 * cp-support.c: Include language.h.
4888 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4889 VAR_DOMAIN.
4890 * psymtab.c (match_partial_symbol): Compare the requested
4891 domain with the symbol's domain directly.
4892 (lookup_partial_symbol): Likewise.
4893 * symtab.c (lookup_symbol_in_language): Explain when/why
4894 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4895 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4896 appropriate languages.
4897 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4898 and moved to ada-lang.c
4899 (lookup_block_symbol): Explain that this function only returns
4900 symbol matching the requested DOMAIN.
4901 Compare the requested domain with the symbol's domain directly.
4902 (iterate_over_symbols): Compare the requested domain with the
4903 symbol's domain directly.
4904 * symtab.h (symbol_matches_domain): Remove.
4905
25326a28 49062014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4907
4908 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4909 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4910 (gdbscm_guile_version_is_at_least): Declare.
4911 (gdbscm_scm_string_to_int): Declare.
4912 * guile/guile.c (gdbscm_guile_major_version): New global.
4913 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4914 (guile_datadir): New static global.
4915 (gdbscm_guile_data_directory): New function.
4916 (initialize_scheme_side): Update.
4917 (misc_guile_functions): Add guile-data-directory.
4918 (initialize_gdb_module): Fetch guile version number.
4919 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4920 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4921 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4922 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4923 comments.
4924 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4925 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4926 * guile/scm-value.c (gdbscm_value_to_string): Only call
4927 scm_port_conversion_strategy if Guile version >= 2.0.6.
4928
0a770bb2 49292014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4930
4931 * main.c (print_gdb_help): Add -q and --silent.
4932
73ba372c
GB
49332014-06-06 Gary Benson <gbenson@redhat.com>
4934
4935 * common/signals.c: Remove preprocessor conditionals for
4936 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4937 SIGSEGV and SIGTERM.
4938 * proc-events.c: Likewise.
4939
c33b2f12
MM
49402014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4941
4942 * symfile.c (symfile_free_objfile): Remove restriction to
4943 OBJF_USERLOADED.
4944 * symfile-mem.c (symbol_file_add_from_memory): Call
4945 add_target_sections_of_objfile.
4946
fb934770
LC
49472014-06-05 Ludovic Courtès <ludo@gnu.org>
4948
4949 * guile/scm-value.c (gdbscm_history_append_x): Use
4950 'vlscm_get_value_smob_arg_unsafe' instead of
4951 'vlscm_scm_to_value'.
4952
6ef284bd
SM
49532014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4954
4955 PR mi/15806
4956 * utils.c (printchar): Don't escape at all if quoter is NUL.
4957 Update function documentation to clarify effect of parameter
4958 QUOTER.
4959 * remote.c (escape_buffer): Pass '\\' as the quoter to
4960 fputstrn_unfiltered.
4961 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4962 generate the output.
4963 (mi_solib_unloaded): Same.
4964
270c9937
JB
49652014-06-05 Joel Brobecker <brobecker@adacore.com>
4966
4967 * development.sh: Delete.
4968 * Makefile.in (config.status): Adjust dependency on development.sh.
4969 * configure.ac: Adjust development.sh source call.
4970 * configure: Regenerate.
4971
16f691fb
DE
49722014-06-04 Doug Evans <xdje42@gmail.com>
4973
4974 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4975 is_scheme_bkpt, spec.
4976 (bpscm_make_breakpoint_smob): Initialize new members.
4977 (gdbscm_create_breakpoint_x): Split into two ...
4978 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4979 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4980 (scheme_function breakpoint_functions): Update.
4981 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4982 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4983 register-breakpoint!.
4984
ef7cab6b
JB
49852014-06-04 Joel Brobecker <brobecker@adacorer.com>
4986
4987 PR server/17023
4988 * mem-break.c (z_type_supported): Return zero if
4989 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4990
012370f6
TT
49912014-06-04 Tom Tromey <tromey@redhat.com>
4992
4993 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4994 value_from_contents_and_address_unresolved.
4995 (ada_template_to_fixed_record_type_1): Likewise.
4996 (ada_which_variant_applies): Likewise.
4997 * value.h (value_from_contents_and_address_unresolved): Declare.
4998 * value.c (value_from_contents_and_address_unresolved): New
4999 function.
5000 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5001 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5002 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5003
92e2a17f
TT
50042014-06-04 Tom Tromey <tromey@redhat.com>
5005
5006 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5007
c0939df1
TT
50082014-06-04 Tom Tromey <tromey@redhat.com>
5009
5010 * procfs.c (procfs_attach): Make "args" const.
5011 * windows-nat.c (windows_attach): Make "args" const.
5012 * nto-procfs.c (procfs_attach): Make "args" const.
5013 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5014 * go32-nat.c (go32_attach): Make "args" const.
5015 * gnu-nat.c (gnu_attach): Make "args" const.
5016 * darwin-nat.c (darwin_attach): Make "args" const.
5017 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5018 * linux-nat.c (linux_nat_attach): Make "args" const.
5019 * remote.c (extended_remote_attach_1, extended_remote_attach):
5020 Make "args" const.
5021 * target.h (struct target_ops) <to_attach>: Make "args" const.
5022 (find_default_attach): Likewise.
5023 * utils.c (parse_pid_to_attach): Make "args" const.
5024 * utils.h (parse_pid_to_attach): Update.
5025
8eaff7cd
TT
50262014-06-04 Tom Tromey <tromey@redhat.com>
5027
5028 * target-delegates.c: Rebuild.
5029 * target.c (default_thread_address_space): New function.
5030 (target_thread_address_space): Simplify.
5031 * target.h (struct target_ops) <to_thread_address_space>: Add
5032 TARGET_DEFAULT_FUNC.
5033
1913f160
DE
50342014-06-04 Doug Evans <xdje42@gmail.com>
5035
5036 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5037
70ad5bff
MM
50382014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5039
5040 * record-btrace.c: Include event-loop.h and inf-loop.h.
5041 (record_btrace_resume_exec_dir)
5042 (record_btrace_async_inferior_event_handler)
5043 (record_btrace_handle_async_inferior_event): New.
5044 (record_btrace_open): Create async event handler.
5045 (record_btrace_close): Delete async event handler.
5046 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5047 Mark async event handler.
5048 (record_btrace_execution_direction): New.
5049 (init_record_btrace_ops): Initialize to_execution_direction.
5050
b6210538
DE
50512014-06-03 Doug Evans <xdje42@gmail.com>
5052
5053 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5054 (gdbscm_make_parameter): Ditto.
5055
a5b1fd27
DE
50562014-06-03 Doug Evans <dje@google.com>
5057
5058 * exec.c (exec_close_1): Call clear_section_table instead of
5059 resize_section_table.
5060 (clear_section_table): New function.
5061 (resize_section_table): Make static. Rename arg num_added to
5062 adjustment.
5063 * exec.h (clear_section_table): Declare.
5064 (resize_section_table): Delete.
5065 * progspace.c (release_program_space): Call clear_section_table
5066 instead of resize_section_table.
5067
0c6e92a5
SC
50682014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5069
5070 * NEWS (Python Scripting): Add entry about the new xmethods
5071 feature.
5072
883964a7
SC
50732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5074
5075 * python/py-xmethods.c: New file.
5076 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5077 (objfpy_dealloc): XDECREF on the new xmethods field.
5078 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5079 field.
5080 (objfpy_get_xmethods): New function.
5081 (objfile_getset): New entry 'xmethods'.
5082 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5083 (pspy_dealloc): XDECREF on the new xmethods field.
5084 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5085 field.
5086 (pspy_get_xmethods): New function.
5087 (pspace_getset): New entry 'xmethods'.
5088 * python/python-internal.h: Add declarations for new functions.
5089 * python/python.c (_initialize_python): Invoke
5090 gdbpy_initialize_xmethods.
5091 * python/lib/gdb/__init__.py (xmethods): New
5092 attribute.
5093 * python/lib/gdb/xmethod.py: New file.
5094 * python/lib/gdb/command/xmethods.py: New file.
5095
58992dc5
SC
50962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5097
5098 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5099 best match method returned by find_overload_match is an xmethod.
5100 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5101 the best matching operator returned by find_overload_match is an
5102 xmethod.
5103 * valops.c: #include "extension.h".
5104 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5105 Return void. The list of matching source methods is returned in
5106 "fn_list" and a vector of matching debug method workers is
5107 returned in "xm_worker_vec". Update all callers.
5108 (value_find_oload_method_list): Likewise.
5109 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5110 non-NULL, then the index of the best matching method in this
5111 vector is returned. Update all callers.
5112 (find_overload_match): Include xmethods while performing overload
5113 resolution.
5114
e81e7f5e
SC
51152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5116
5117 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5118 * extension-priv.h (struct extension_language_ops): Add the
5119 xmethod interface.
5120 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5121 get_matching_xmethod_workers, get_xmethod_argtypes,
5122 invoke_xmethod, free_xmethod_worker,
5123 free_xmethod_worker_vec): New functions.
5124 * extension.h: #include "common/vec.h".
5125 New function declarations.
5126 (struct xmethod_worker): New struct.
5127 (VEC (xmethod_worker_ptr)): New vector type.
5128 (xmethod_worker_ptr): New typedef.
5129 (xmethod_worker_vec): Likewise.
5130 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5131 builtin_type.
5132 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5133 (struct builtin_type): New field "xmethod".
5134 * valarith.c (value_ptradd): Assert that the value argument is not
5135 lval_xcallable.
5136 * valops.c (value_must_coerce_to_target): Return 0 for
5137 lval_xcallable values.
5138 * value.c (struct value): New field XM_WORKER in the field
5139 LOCATION.
5140 (value_address, value_raw_address): Return 0 for lval_xcallable
5141 values.
5142 (set_value_address): Assert that the value is not an
5143 lval_xcallable.
5144 (value_free): Free the associated xmethod worker when freeing
5145 lval_xcallable values.
5146 (set_value_component_location): Assert that the WHOLE value is not
5147 lval_xcallable.
5148 (value_of_xmethod, call_xmethod): New functions.
5149 * value.h: Declare "struct xmethod_worker".
5150 Declare new functions value_of_xmethod, call_xmethod.
5151
ef370185
JB
51522014-06-03 Joel Brobecker <brobecker@adacore.com>
5153 Pedro Alves <palves@redhat.com>
5154
5155 PR breakpoints/17000
5156 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5157 New function, extracted from software_breakpoint_inserted_here_p.
5158 (software_breakpoint_inserted_here_p): Replace factored out code
5159 by call to find_non_raw_software_breakpoint_inserted_here.
5160 (bp_target_info_copy_insertion_state): New function.
5161 (bkpt_insert_location): Handle the case of a single-step
5162 breakpoint already inserted at the same address.
5163 (bkpt_remove_location): Handle the case of a single-step
5164 breakpoint still inserted at the same address.
5165 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5166 breakpoint already inserted at the same address.
5167 (deprecated_remove_raw_breakpoint): Handle the case of a
5168 non-raw breakpoint still inserted at the same address.
5169 (find_single_step_breakpoint): New function, extracted from
5170 single_step_breakpoint_inserted_here_p.
5171 (find_single_step_breakpoint): New function,
5172 factored out from single_step_breakpoint_inserted_here_p.
5173 (single_step_breakpoint_inserted_here_p): Reimplement.
5174
1e2ccb61
BM
51752014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5176
5177 Pushed by Joel Brobecker <brobecker@adacore.com>
5178 * source.c (show_substitute_path_command): Fix display of matching
5179 substitution rules.
5180
d3448d85
GB
51812014-06-03 Gary Benson <gbenson@redhat.com>
5182
5183 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5184
06eb1586
DE
51852014-06-02 Doug Evans <xdje42@gmail.com>
5186
5187 Add parameter support for Guile.
5188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5189 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5190 (scm-param.o): New rule.
5191 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5192 (gdbscm_misc_error): Declare.
5193 (gdbscm_canonicalize_command_name): Declare.
5194 (gdbscm_scm_to_host_string): Declare.
5195 (gdbscm_scm_from_host_string): Declare.
5196 (gdbscm_initialize_parameters): Declare.
5197 * guile/guile.c (initialize_gdb_module): Call
5198 gdbscm_initialize_parameters.
5199 * guile/lib/gdb.scm: Export parameter symbols.
5200 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5201 cmdscm_canonicalize_name and made public. All callers updated.
5202 * guile/scm-exception.c (gdbscm_misc_error): New function.
5203 * guile/scm-param.c: New file.
5204 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5205 (gdbscm_scm_to_host_string): New function.
5206 (gdbscm_scm_from_host_string): New function.
5207 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5208
e698b8c4
DE
52092014-06-02 Doug Evans <xdje42@gmail.com>
5210
5211 Add command support for Guile.
5212 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5213 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5214 (scm-cmd.o): New rule.
5215 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5216 (gdbscm_user_error_p): Declare.
5217 (gdbscm_parse_command_name): Declare.
5218 (gdbscm_valid_command_class_p): Declare.
5219 (gdbscm_initialize_commands): Declare.
5220 * guile/guile.c (initialize_gdb_module): Call
5221 gdbscm_initialize_commands.
5222 * guile/lib/gdb.scm: Export command symbols.
5223 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5224 (throw-user-error): New function.
5225 * guile/scm-cmd.c: New file.
5226 * guile/scm-exception.c (user_error_symbol): New static global.
5227 (gdbscm_user_error_p): New function.
5228 (gdbscm_initialize_exceptions): Set user_error_symbol.
5229 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5230
fb1f94b0
PM
52312014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5232
5233 * top.c (command_loop): Handle comments here...
5234 (command_line_input): ... not here.
5235
ded03782
DE
52362014-06-02 Doug Evans <xdje42@gmail.com>
5237
5238 Add progspace support for Guile.
5239 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5240 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5241 (scm-progspace.o): New rule.
5242 * guile/guile-internal.h (pspace_smob): New typedef.
5243 (psscm_pspace_smob_pretty_printers): Declare.
5244 (psscm_pspace_smob_from_pspace): Declare.
5245 (psscm_scm_from_pspace): Declare.
5246 * guile/guile.c (initialize_gdb_module): Call
5247 gdbscm_initialize_pspaces.
5248 * guile/lib/gdb.scm: Export progspace symbols.
5249 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5250 support.
5251 (append-pretty-printer!): Ditto.
5252 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5253 Implement.
5254 * guile/scm-progspace.c: New file.
5255
397998fc
AM
52562014-06-03 Alan Modra <amodra@gmail.com>
5257
5258 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5259 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5260
6aa5f3a6
DE
52612014-06-02 Doug Evans <dje@google.com>
5262
5263 Add support for skeletonless type units.
5264 * dwarf2read.c (struct dwarf2_per_objfile): New member
5265 n_allocated_type_units.
5266 (struct dwarf2_per_objfile) <tu_stats>: New member
5267 nr_all_type_units_reallocs.
5268 (create_signatured_type_table_from_index): Initialize
5269 n_allocated_type_units
5270 (create_all_type_units): Ditto.
5271 (add_type_unit): Move up in file. New arg slot.
5272 All callers updated. Increase space for all_type_units more
5273 efficiently.
5274 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5275 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5276 (lookup_dwp_signatured_type): Ditto.
5277 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5278 All callers updated.
5279 (build_type_psymtabs_1): Leave type_unit_groups as
5280 NULL if no TUs present.
5281 (print_tu_stats): New function.
5282 (process_skeletonless_type_unit): New function.
5283 (process_dwo_file_for_skeletonless_type_units): New
5284 function.
5285 (process_skeletonless_type_units): New function.
5286 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5287 Call print tu_stats if debugging enabled.
5288
41fac0cf
PA
52892014-06-02 Pedro Alves <palves@redhat.com>
5290
5291 * breakpoint.c (build_target_command_list): Don't build a command
5292 list if we have any duplicate location that isn't a dprintf.
5293
cd1608cc
PA
52942014-06-02 Pedro Alves <palves@redhat.com>
5295
5296 * breakpoint.c (dprintf_breakpoint_hit): New function.
5297 (initialize_breakpoint_ops): Install it as dprintf's
5298 breakpoint_hit method.
5299
486ef3b9
JB
53002014-06-02 Joel Brobecker <brobecker@adacore.com>
5301
5302 * source.c (substitute_path_rule_matches): Simplify using
5303 filename_ncmp instead of FILENAME_CMP.
5304
230cd560
JB
53052014-06-02 Joel Brobecker <brobecker@adacore.com>
5306
5307 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5308
16954d5d
LC
53092014-06-01 Ludovic Courtès <ludo@gnu.org>
5310
5311 * configure.ac: When Guile is available, check for the
5312 availability of 'scm_new_smob'.
5313 * configure, config.h.in: Regenerate.
5314 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5315 function.
5316
53e8a631
AB
53172014-05-30 Andrew Burgess <aburgess@broadcom.com>
5318
5319 * frame.c (struct frame_info): Add stop_string field.
5320 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5321 (get_prev_frame_always): Old content moved into
5322 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5323 TRY_CATCH, handle MEMORY_ERROR exceptions.
5324 (frame_stop_reason_string): New function definition.
5325 * frame.h (unwind_stop_reason_to_string): Extend comment to
5326 mention frame_stop_reason_string.
5327 (frame_stop_reason_string): New function declaration.
5328 * stack.c (frame_info): Switch to frame_stop_reason_string.
5329 (backtrace_command_1): Switch to frame_stop_reason_string.
5330 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5331 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5332 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5333
70e38b8e
AB
53342014-05-30 Andrew Burgess <aburgess@broadcom.com>
5335
5336 * frame.c (frame_stop_reason_string): Rename to ...
5337 (unwind_stop_reason_to_string): this.
5338 * frame.h (frame_stop_reason_string): Rename to ...
5339 (unwind_stop_reason_to_string): this.
5340 * stack.c (frame_info): Update call to frame_stop_reason_string.
5341 (backtrace_command_1): Likewise.
5342 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5343 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5344
938f0e2f
AB
53452014-05-30 Andrew Burgess <aburgess@broadcom.com>
5346
5347 * frame.c (remove_prev_frame): New function.
5348 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5349 remove_prev_frame.
5350
a09dd441
PA
53512014-05-29 Pedro Alves <palves@redhat.com>
5352
5353 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5354 and make it const. When a single-step decays to a continue,
5355 clear 'step', not 'hw_step'. Pass whether the caller wanted
5356 to step to user_visible_resume_ptid, not what we ask the
5357 target to do.
5358
bdc36728
PA
53592014-05-29 Pedro Alves <palves@redhat.com>
5360
5361 * infrun.c (process_event_stop_test, handle_step_into_function)
5362 (handle_step_into_function_backward): Adjust.
5363 Don't set the even thread's stop_step and call stop_waiting before
5364 calling end_stepping_range. Instead do that ...
5365 (end_stepping_range): ... here. Take an ecs pointer parameter.
5366
22bcd14b
PA
53672014-05-29 Pedro Alves <palves@redhat.com>
5368
5369 * infrun.c (stop_stepping): Rename to ...
5370 (stop_waiting): ... this.
5371 (proceed): Update comment.
5372 (process_event_stop_test, handle_inferior_event)
5373 (handle_signal_stop, handle_step_into_function)
5374 (handle_step_into_function_backward): Update.
5375
4ae57c05
PA
53762014-05-29 Pedro Alves <palves@redhat.com>
5377
5378 * infcall.c (run_inferior_call): Don't check whether the current
5379 thread is running after the proceed call.
5380
329ea579
PA
53812014-05-29 Pedro Alves <palves@redhat.com>
5382 Tom Tromey <tromey@redhat.com>
5383
5384 * NEWS: Mention "maint set target-async", "set mi-async", and that
5385 background execution commands are now always available.
5386 * target.h (target_async_permitted): Update comment.
5387 * target.c (target_async_permitted, target_async_permitted_1):
5388 Default to 1.
5389 (set_target_async_command): Rename to ...
5390 (maint_set_target_async_command): ... this.
5391 (show_target_async_command): Rename to ...
5392 (maint_show_target_async_command): ... this.
5393 (_initialize_target): Adjust.
5394 * infcmd.c (prepare_execution_command): Make extern.
5395 * inferior.h (prepare_execution_command): Declare.
5396 * infrun.c (set_observer_mode): Leave target async alone.
5397 * mi/mi-interp.c (mi_interpreter_init): Install
5398 mi_on_sync_execution_done as sync_execution_done observer.
5399 (mi_on_sync_execution_done): New function.
5400 (mi_execute_command_input_handler): Don't print the prompt if we
5401 just started a synchronous command with an async target.
5402 (mi_on_resume): Check sync_execution before printing prompt.
5403 * mi/mi-main.h (mi_async_p): Declare.
5404 * mi/mi-main.c: Include gdbcmd.h.
5405 (mi_async_p): New function.
5406 (mi_async, mi_async_1): New globals.
5407 (set_mi_async_command, show_mi_async_command, mi_async): New
5408 functions.
5409 (exec_continue): Call prepare_execution_command.
5410 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5411 (mi_execute_async_cli_command): Use mi_async_p.
5412 (_initialize_mi_main): Install "set mi-async". Make
5413 "target-async" a deprecated alias.
5414
92bcb5f9
PA
54152014-05-29 Pedro Alves <palves@redhat.com>
5416
5417 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5418 (_initialize_cli_interp): Adjust.
5419 * event-loop.c: Include "observer.h".
5420 (start_event_loop): Notify 'command_error' observers instead of
5421 calling display_gdb_prompt. Remove FIXME comment.
5422 * event-top.c (display_gdb_prompt): Remove call into the
5423 interpreters.
5424 * inf-loop.c: Include "observer.h".
5425 (inferior_event_handler): Notify 'command_error' observers instead
5426 of calling display_gdb_prompt.
5427 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5428 observers instead of calling display_gdb_prompt.
5429 * interps.c (interp_set): Don't call display_gdb_prompt.
5430 (current_interp_display_prompt_p): Delete.
5431 * interps.h (interp_prompt_p): Delete declaration.
5432 (interp_prompt_p_ftype): Delete.
5433 (struct interp_procs) <prompt_proc_p>: Delete field.
5434 (current_interp_display_prompt_p): Delete declaration.
5435 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5436 (_initialize_mi_interp): Adjust.
5437 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5438 'command_error' observers.
5439 (tui_on_sync_execution_done, tui_on_command_error): New
5440 functions.
5441 (tui_display_prompt_p): Delete.
5442 (_initialize_tui_interp): Adjust.
5443
fd664c91
PA
54442014-05-29 Pedro Alves <palves@redhat.com>
5445
5446 PR gdb/13860
5447 * cli/cli-interp.c: Include infrun.h and observer.h.
5448 (cli_uiout, cli_interp): New globals.
5449 (cli_on_signal_received, cli_on_end_stepping_range)
5450 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5451 functions.
5452 (cli_interpreter_init): Install them as 'end_stepping_range',
5453 'signal_received' 'signal_exited', 'exited' and 'no_history'
5454 observers.
5455 (_initialize_cli_interp): Remove cli_interp local.
5456 * infrun.c (handle_inferior_event): Call the several stop reason
5457 observers instead of printing the stop reason directly.
5458 (end_stepping_range): New function.
5459 (print_end_stepping_range_reason, print_signal_exited_reason)
5460 (print_exited_reason, print_signal_received_reason)
5461 (print_no_history_reason): Make static, and add an uiout
5462 parameter. Print to that instead of to CURRENT_UIOUT.
5463 * infrun.h (print_end_stepping_range_reason)
5464 (print_signal_exited_reason, print_exited_reason)
5465 (print_signal_received_reason print_no_history_reason): New
5466 declarations.
5467 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5468 'mi_uiout'.
5469 <cli_uiout>: New field.
5470 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5471 uiout for CLI output. Install 'signal_received',
5472 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5473 observers.
5474 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5475 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5476 (mi_on_no_history): New functions.
5477 (ui_out_free_cleanup): Delete function.
5478 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5479 instead use the one already stored in the MI interpreter data.
5480 (mi_ui_out): Adjust.
5481 * tui/tui-interp.c: Include infrun.h and observer.h.
5482 (tui_interp): New global.
5483 (tui_on_signal_received, tui_on_end_stepping_range)
5484 (tui_on_signal_exited, tui_on_exited)
5485 (tui_on_no_history): New functions.
5486 (tui_init): Install them as 'end_stepping_range',
5487 'signal_received' 'signal_exited', 'exited' and 'no_history'
5488 observers.
5489 (_initialize_tui_interp): Delete tui_interp local.
5490
8817a6f2
PA
54912014-05-29 Pedro Alves <palves@redhat.com>
5492
5493 PR gdb/15713
5494 * linux-nat.c (linux_nat_resume_callback): Rename the second
5495 parameter to 'except'. Skip LP if it points to EXCEPT.
5496 (linux_nat_resume): Don't mark the event lwp as not stopped
5497 before resuming sibling lwps. Instead ask
5498 linux_nat_resume_callback to skip the event lwp. Mark it as not
5499 stopped after actually resuming it.
5500 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5501 resuming it.
5502 (wait_lwp): Mark the lwp as stopped here.
5503 (stop_wait_callback): Mark the lwp as not stopped right after
5504 resuming it. Don't mark lwps as stopped here.
5505 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5506 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5507
251bde03
PA
55082014-05-29 Pedro Alves <palves@redhat.com>
5509
5510 PR PR15693
5511 * infrun.c (resume): Determine how much to resume depending on
5512 whether the caller wanted a step, not whether we can hardware step
5513 the target. Mark all threads that we intend to run as running,
5514 unless we're calling an inferior function.
5515 (normal_stop): If the thread is running an infcall, don't finish
5516 thread state.
5517 * target.c (target_resume): Don't mark threads as running here.
5518
7f3c0343
JB
55192014-05-28 Joel Brobecker <brobecker@adacore.com>
5520
5521 * serial.c (_initialize_serial): Remove support for
5522 the "set remotebaud" and "show remotebaud" commands.
5523 * NEWS: Add entry documenting the removal of that command.
5524
ee34b3f9
YQ
55252014-05-28 Yao Qi <yao@codesourcery.com>
5526
5527 * charset.c: Fix typo in comments.
5528
add6c04d
GB
55292014-05-27 Gary Benson <gbenson@redhat.com>
5530
5531 * utils.c (internal_vproblem): Prompt for a bug report.
5532
92c48fc5
AW
55332014-05-26 Andy Wingo <wingo@igalia.com>
5534
5535 * guile/scm-arch.c (arscm_mark_arch_smob):
5536 * guile/scm-block.c (bkscm_mark_block_smob)
5537 (bkscm_mark_block_syms_progress_smob):
5538 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5539 * guile/scm-exception.c (exscm_mark_exception_smob):
5540 * guile/scm-frame.c (frscm_mark_frame_smob):
5541 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5542 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5543 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5544 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5545 (ppscm_mark_pretty_printer_worker_smob):
5546 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5547 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5548 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5549 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5550 mark functions.
5551 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5552 function.
5553
b2715b27
AW
55542014-05-26 Andy Wingo <wingo@igalia.com>
5555 Doug Evans <xdje42@gmail.com>
5556
5557 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5558 empty_base_class. All uses updated.
5559 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5560 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5561 Adapt all callers.
5562 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5563 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5564 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5565 (gdbscm_gsmob_has_property_p, add_property_name)
5566 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5567 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5568 (gdb-object-has-property?, gdb-object-properties): Remove.
5569 (gdb-object-kind): Renamed from gsmob-kind.
5570
214ab2da
AW
55712014-05-26 Andy Wingo <wingo@igalia.com>
5572
5573 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5574 * configure: Regenerate.
5575
589fdceb
MM
55762014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5577
5578 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5579
67b5c0c1
MM
55802014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5581
5582 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5583 (replay_memory_access_read_only, replay_memory_access_read_write)
5584 (replay_memory_access_types, replay_memory_access)
5585 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5586 (cmd_set_record_btrace, cmd_show_record_btrace)
5587 (cmd_show_replay_memory_access): New.
5588 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5589 (record_btrace_remove_breakpoint): Replace
5590 record_btrace_allow_memory_access with replay_memory_access.
5591 (_initialize_record_btrace): Add commands.
5592 * NEWS: Announce it.
5593
036cd381
RR
55942014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5595
5596 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5597
c77c1e42
RR
55982014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5599
5600 * MAINTAINERS (Write After Approval): Move self back from
5601 paper trail.
5602
45741a9c
PA
56032014-05-22 Pedro Alves <palves@redhat.com>
5604
5605 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5606 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5607 (disable_randomization, enum exec_direction_kind)
5608 (execution_direction, stop_registers, start_remote)
5609 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5610 (wait_for_inferior, normal_stop, get_last_target_status)
5611 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5612 (insert_step_resume_breakpoint_at_sal)
5613 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5614 (set_step_info, print_stop_event, signal_stop_state)
5615 (signal_print_state, signal_pass_state, signal_stop_update)
5616 (signal_print_update, signal_pass_update)
5617 (update_signals_program_target, clear_exit_convenience_vars)
5618 (displaced_step_dump_bytes, update_observer_mode)
5619 (signal_catch_update, gdb_signal_from_command): Move
5620 declarations ...
5621 * infrun.h: ... to this new file.
5622 * amd64-tdep.c: Include infrun.h.
5623 * annotate.c: Include infrun.h.
5624 * arch-utils.c: Include infrun.h.
5625 * arm-linux-tdep.c: Include infrun.h.
5626 * arm-tdep.c: Include infrun.h.
5627 * break-catch-sig.c: Include infrun.h.
5628 * breakpoint.c: Include infrun.h.
5629 * common/agent.c: Include infrun.h instead of inferior.h.
5630 * corelow.c: Include infrun.h.
5631 * event-top.c: Include infrun.h.
5632 * go32-nat.c: Include infrun.h.
5633 * i386-tdep.c: Include infrun.h.
5634 * inf-loop.c: Include infrun.h.
5635 * infcall.c: Include infrun.h.
5636 * infcmd.c: Include infrun.h.
5637 * infrun.c: Include infrun.h.
5638 * linux-fork.c: Include infrun.h.
5639 * linux-nat.c: Include infrun.h.
5640 * linux-thread-db.c: Include infrun.h.
5641 * monitor.c: Include infrun.h.
5642 * nto-tdep.c: Include infrun.h.
5643 * procfs.c: Include infrun.h.
5644 * record-btrace.c: Include infrun.h.
5645 * record-full.c: Include infrun.h.
5646 * remote-m32r-sdi.c: Include infrun.h.
5647 * remote-mips.c: Include infrun.h.
5648 * remote-notif.c: Include infrun.h.
5649 * remote-sim.c: Include infrun.h.
5650 * remote.c: Include infrun.h.
5651 * reverse.c: Include infrun.h.
5652 * rs6000-tdep.c: Include infrun.h.
5653 * s390-linux-tdep.c: Include infrun.h.
5654 * solib-irix.c: Include infrun.h.
5655 * solib-osf.c: Include infrun.h.
5656 * solib-svr4.c: Include infrun.h.
5657 * target.c: Include infrun.h.
5658 * top.c: Include infrun.h.
5659 * windows-nat.c: Include infrun.h.
5660 * mi/mi-interp.c: Include infrun.h.
5661 * mi/mi-main.c: Include infrun.h.
5662 * python/py-threadevent.c: Include infrun.h.
5663
98eb56a4
PA
56642014-05-22 Pedro Alves <palves@redhat.com>
5665
5666 * infrun.c (handle_inferior_event): Store the exit code for
5667 --return-child-result here, instead of ...
5668 (print_exited_reason): ... here.
5669
17b2616c
PA
56702014-05-21 Pedro Alves <palves@redhat.com>
5671
5672 PR gdb/13860
5673 * gdbthread.h (struct thread_control_state): New field
5674 `command_interp'.
5675 * infrun.c (follow_fork): Copy the new thread control field to the
5676 child fork thread.
5677 (clear_proceed_status_thread): Clear the new thread control field.
5678 (proceed): Set the new thread control field.
5679 * interps.h (command_interp): Declare.
5680 * interps.c (command_interpreter): New global.
5681 (command_interp): New function.
5682 (interp_exec): Set `command_interpreter' while here.
5683 * cli-out.c (cli_uiout_dtor): New function.
5684 (cli_ui_out_impl): Install it.
5685 * mi/mi-interp.c: Include cli-out.h.
5686 (mi_cmd_interpreter_exec): Add comment.
5687 (restore_current_uiout_cleanup): New function.
5688 (ui_out_free_cleanup): New function.
5689 (mi_on_normal_stop): If finishing an execution command started by
5690 a CLI command, or any kind of breakpoint-like event triggered,
5691 print the stop event to the output (CLI) stream.
5692 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5693
5166082f
PA
56942014-05-21 Pedro Alves <palves@redhat.com>
5695
5696 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5697 current source line having changed.
5698 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5699 * infrun.c (normal_stop): Adjust call to
5700 set_current_sal_from_frame.
5701 * source.c (clear_lines_listed_range): New function.
5702 (set_current_source_symtab_and_line, identify_source_line): Clear
5703 the lines listed range.
5704 (line_info): Handle the first "info line" after the current source
5705 line having changed.
5706 * stack.c (print_stack_frame): Remove center handling.
5707 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5708 center sal.line.
5709
c1ee2fb3
PA
57102014-05-21 Pedro Alves <palves@redhat.com>
5711
5712 * inf-child.c (inf_child_mourn_inferior): New function.
5713 * inf-child.h (inf_child_mourn_inferior): New declaration.
5714 * darwin-nat.c (darwin_mourn_inferior): Use
5715 inf_child_mourn_inferior.
5716 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5717 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5718 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5719 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5720 * windows-nat.c (windows_mourn_inferior): Likewise.
5721
5c6d4fb2
DE
57222014-05-21 Doug Evans <xdje42@gmail.com>
5723
250748cb 5724 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5725
4a2722c5
DE
57262014-05-21 Doug Evans <xdje42@gmail.com>
5727
17292b30 5728 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5729 (gdbscm_out_of_range_error): Ditto.
5730 (gdbscm_memory_error): Ditto.
250748cb
DE
5731 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5732 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5733 (gdbscm_out_of_range_error): Update.
5734 (gdbscm_memory_error): Update.
5735 (gdbscm_scm_to_target_string_unsafe): Delete.
5736
6a3cb8e8
PA
57372014-05-21 Pedro Alves <palves@redhat.com>
5738
5739 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5740 globals.
5741 (inf_child_open_target): New function.
5742 (inf_child_open): Use inf_child_open_target to push the target
5743 instead of erroring out.
5744 (inf_child_disconnect, inf_child_close)
5745 (inf_child_maybe_unpush_target): New functions.
5746 (inf_child_target): Install inf_child_disconnect and
5747 inf_child_close. Store a pointer to the returned object.
5748 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5749 declarations.
5750 * target.c (auto_connect_native_target): New global.
5751 (show_default_run_target): New function.
5752 (find_default_run_target): Return NULL if automatically connecting
5753 to the native target is disabled.
5754 (_initialize_target): Install set/show auto-connect-native-target.
5755 * NEWS: Mention "set auto-connect-native-target", and "target
5756 native".
5757 * linux-nat.c (super_close): New global.
5758 (linux_nat_close): Call super_close.
5759 (linux_nat_add_target): Store a pointer to the base class's
5760 to_close method.
5761 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5762 inf_child_maybe_unpush.
5763 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5764 already pushed.
5765 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5766 the inferior. Use inf_child_maybe_unpush_target.
5767 (inf_ttrace_attach): Don't push the target if it is already
5768 pushed.
5769 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5770 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5771 after mourning the inferior. Use inf_child_maybe_unpush_target.
5772 (darwin_attach_pid): Don't push the target if it is already
5773 pushed.
5774 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5775 mourning the inferior. Use inf_child_maybe_unpush_target.
5776 (gnu_detach): Use inf_child_maybe_unpush_target.
5777 * go32-nat.c (go32_create_inferior): Don't push the target if it
5778 is already pushed.
5779 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5780 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5781 (procfs_open): Rename to ...
5782 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5783 comments. Can target_preopen before changing node. Call
5784 inf_child_open_target to push the target explicitly.
5785 (procfs_attach): Don't push the target if it is already pushed.
5786 (procfs_detach): Use inf_child_maybe_unpush_target.
5787 (procfs_create_inferior): Don't push the target if it is already
5788 pushed.
5789 (nto_native_ops): New global.
5790 (procfs_open): Reimplement.
5791 (procfs_native_open): New function.
5792 (init_procfs_targets): Install procfs_native_open as to_open of
5793 "target native". Store a pointer to the "native" target in
5794 nto_native_ops.
5795 * procfs.c (procfs_attach): Don't push the target if it is already
5796 pushed.
5797 (procfs_detach): Use inf_child_maybe_unpush_target.
5798 (procfs_mourn_inferior): Only unpush the target after mourning the
5799 inferior. Use inf_child_maybe_unpush_target.
5800 (procfs_init_inferior): Don't push the target if it is already
5801 pushed.
5802 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5803 if it is already pushed.
5804
930ee1b1
PA
58052014-05-21 Pedro Alves <palves@redhat.com>
5806
5807 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5808 and "procfs" targets are now called "native" instead.
5809
1f5d1b13
PA
58102014-05-21 Pedro Alves <palves@redhat.com>
5811
5812 * go32-nat.c (go32_open): Delete.
5813 (go32_target): Don't override the to_open method.
5814
132f8e03
PA
58152014-05-21 Pedro Alves <palves@redhat.com>
5816
5817 * nto-procfs.c (procfs_can_run): New function.
5818 (nto_procfs_ops): New global.
5819 (init_procfs_targets): New, based on procfs_target. Install
5820 "target native" in addition to "target procfs".
5821 (_initialize_procfs): Call init_procfs_targets instead of adding
5822 the target here.
5823
03c136c3
PA
58242014-05-21 Pedro Alves <palves@redhat.com>
5825
5826 * windows-nat.c (windows_target): Don't override to_shortname,
5827 to_longname or to_doc.
5828
a635d0f3
PA
58292014-05-21 Pedro Alves <palves@redhat.com>
5830
5831 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5832 to_doc.
5833
4f9b5133
PA
58342014-05-21 Pedro Alves <palves@redhat.com>
5835
5836 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5837 to_shortname, to_longname or to_doc.
5838
bc85afde
PA
58392014-05-21 Pedro Alves <palves@redhat.com>
5840
5841 * go32-nat.c (go32_target): Don't override to_shortname,
5842 to_longname or to_doc.
5843
4ebfc96e
PA
58442014-05-21 Pedro Alves <palves@redhat.com>
5845
5846 * inf-child.c (inf_child_open): Remove mention of "child".
5847 (inf_child_target): Rename target to "native" instead of "child".
5848
2648dfed
AA
58492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5850
5851 * Makefile.in (SFILES): Delete "regset.c".
5852 (COMMON_OBS): Delete "regset.o".
5853 * regset.c: Remove.
5854 * regset.h (regset_alloc): Delete prototype.
5855
b13feb94
AA
58562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5857
5858 * sparc-linux-tdep.c (sparc32_linux_gregset)
5859 (sparc32_linux_fpregset): New static regset structures.
5860 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5861 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5862 'fpregset' fields.
5863 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5864 (sparc64_linux_fpregset): New static regset structures.
5865 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5866 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5867 New static regset structures.
5868 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5869 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5870 New static regset structures.
5871 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5872 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5873 New static regset structures.
5874 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5875 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5876 New static regset structures.
5877 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5878
b4fd25c9
AA
58792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5880
5881 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5882 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5883 register maps ("regmaps") from "*regset" to "*regmap". Do this
5884 for all regmap types and variables.
5885 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5886 (sparc32_linux_supply_core_gregset)
5887 (sparc32_linux_collect_core_gregset)
5888 (sparc32_linux_supply_core_fpregset)
5889 (sparc32_linux_collect_core_fpregset): Likewise.
5890 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5891 (sparc_gregmap, sparc_fpregmap): ... these.
5892 (sparc_supply_gregset, sparc_collect_gregset)
5893 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5894 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5895 (_initialize_sparc_nat): Rename regmaps.
5896 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5897 (sparc_gregmap, sparc_fpregmap): ... these.
5898 (sparc_supply_gregset, sparc_collect_gregset)
5899 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5900 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5901 Rename macros to...
5902 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5903 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5904 Likewise.
5905 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5906 Rename to...
5907 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5908 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5909 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5910 regmaps.
5911 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5912 (sparc32_bsd_fpregset): Rename to...
5913 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5914 (sparc32_bsd_fpregmap): ... these.
5915 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5916 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5917 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5918 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5919 (struct sparc_gregmap, struct sparc_fpregmap)
5920 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5921 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5922 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5923 (sparc32_supply_regset, sparc32_collect_gregset)
5924 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5925 prototypes.
5926 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5927 (sparc64_linux_ptrace_gregmap): ... this.
5928 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5929 (_initialize_sparc64_linux_nat): Rename regmaps.
5930 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5931 (sparc64_linux_core_gregmap): ... this.
5932 (sparc64_linux_supply_core_gregset)
5933 (sparc64_linux_collect_core_gregset)
5934 (sparc64_linux_supply_core_fpregset)
5935 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5936 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5937 (sparc64_sol2_fpregset): Rename to...
5938 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5939 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5940 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5941 regmaps.
5942 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5943 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5944 (sparc64_bsd_fpregset): Rename to...
5945 (struct sparc_gregmap, sparc64_sol2_gregmap)
5946 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5947 (sparc64_bsd_fpregmap): ... these.
5948 (sparc64_supply_gregset, sparc64_collect_gregset)
5949 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5950 prototypes.
5951 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5952 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5953 (sparc64fbsd_gregmap): ... this.
5954 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5955 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5956 Rename regmaps.
5957 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5958 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5959 (sparc64nbsd_collect_fpregset): Likewise.
5960 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5961 (sparc64nbsd_gregmap): ... this.
5962 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5963 regmaps.
5964 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5965 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5966 (sparc64obsd_gregmap): ... this.
5967 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5968 regmaps.
5969 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5970 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5971 (sparc32nbsd_gregmap): ... this.
5972 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5973 regmaps.
5974
8fea3224
AA
59752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5976
5977 * score-tdep.c (score7_linux_gregset): New static regset
5978 structure.
5979 (score7_linux_regset_from_core_section): Remove dynamic regset
5980 allocation.
5981 (score_gdbarch_init): Drop allocation of tdep structure.
5982 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5983
24534243
AA
59842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5985
5986 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5987 regset structures.
5988 (am33_regset_from_core_section): Remove dynamic regset
5989 allocations.
5990
b7195f27
AA
59912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5992
5993 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5994 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5995 structures.
5996 (mips_linux_regset_from_core_section): Remove dynamic regset
5997 allocations.
5998 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5999 'gregset64', 'fpregset', and 'fpregset64'.
6000 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6001 deleted tdep fields.
6002
ecc37a5a
AA
60032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004
6005 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6006 regset structures.
6007 (amd64_regset_from_core_section): Remove dynamic regset
6008 allocations.
6009 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6010 structure.
6011 (amd64obsd_regset_from_core_section): Remove dynamic regset
6012 allocation.
6013 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6014 Likewise.
6015 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6016 x86-common regset supply function.
6017 * i386-tdep.c (i386_collect_gregset): Make static.
6018 (i386_gregset): New global regset structure.
6019 (i386_fpregset, i386_xstateregset): New static regset structures.
6020 (i386_regset_from_core_section): Remove dynamic regset
6021 allocations.
6022 (i386_gdbarch_init): Remove initialization of tdep fields
6023 'gregset', 'fpregset', and 'xstateregset'.
6024 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6025 'fpregset', and 'xstateregset'.
6026 (i386_collect_gregset): Remove prototype.
6027 (i386_gregset): New declaration.
6028 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6029 structure.
6030 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6031 allocation.
6032
b7611c43
AA
60332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6034
6035 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6036 (arm_linux_vfpregset): New static regset structures.
6037 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6038 regset structures.
6039 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6040 and 'vfpregset' fields.
6041
a069a2bd
AA
60422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6043
6044 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6045 (aarch64_linux_fpregset): New static regset structures.
6046 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6047 of regset structures.
6048 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6049 'fpregset' fields.
6050
09424cff
AA
60512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6052
6053 * regset.h (struct regset): Remove gdbarch field.
6054 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6055 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6056 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6057 Likewise.
6058 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6059 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6060 (ppc32_linux_vsxregset): Likewise.
6061 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6062 via the regcache instead of the regset.
6063 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6064 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6065 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6066 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6067 Likewise.
6068
3ca7dae4
AA
60692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6070
6071 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6072 Constify structures.
6073 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6074 (alphanbsd_aout_gregset): Likewise.
6075 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6076 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6077 Likewise.
6078 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6079 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6080 Likewise.
6081 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6082 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6083 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6084 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6085 * m88k-tdep.c (m88k_gregset): Likewise.
6086 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6087 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6088 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6089 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6090 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6091 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6092 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6093 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6094 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6095 Likewise.
6096 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6097 * sh-tdep.h (sh_corefile_gregset): Likewise.
6098 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6099 * vax-tdep.c (vax_gregset): Likewise.
6100
5876f503
JK
61012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6102
6103 Fix TLS access for -static -pthread.
6104 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6105 (try_thread_db_load_1): Initialize it.
6106 (thread_db_get_thread_local_address): Call it if LM is zero.
6107 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6108 * target.h (struct target_ops) (to_get_thread_local_address): Add
6109 load_module_addr comment.
6110
0256a6ac
PA
61112014-05-21 Pedro Alves <palves@redhat.com>
6112
6113 * dcache.c (dcache_read_memory_partial): If reading the cache line
6114 fails, fallback to reading just the memory the caller wanted.
6115
227533ac
DE
61162014-05-20 Doug Evans <dje@google.com>
6117
6118 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6119 instead of get_current_arch.
6120
936d2992
PA
61212014-05-20 Pedro Alves <palves@redhat.com>
6122
6123 * NEWS: Mention that compare-sections now works with all targets.
6124
6125 * remote.c (PACKET_qCRC): New enum value.
6126 (remote_verify_memory): Don't send qCRC if the target has no
6127 execution. Use packet_support/packet_ok. If the target doesn't
6128 support the qCRC packet, fallback to a deep memory copy.
6129 (compare_sections_command): Say "target image" instead of "remote
6130 executable".
6131 (_initialize_remote): Add PACKET_qCRC to the list of config
6132 packets that have no associated command. Extend comment.
6133 * target.c (simple_verify_memory, default_verify_memory): New
6134 function.
6135 * target.h (struct target_ops) <to_verify_memory>: Default to
6136 default_verify_memory.
6137 (simple_verify_memory): New declaration.
6138 * target-delegates.c: Regenerate.
6139
e59fa00f
MM
61402014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6141
6142 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6143
f2205de0
HZ
61442014-05-20 Hui Zhu <hui@codesourcery.com>
6145 Yao Qi <yao@codesourcery.com>
6146
6147 PR backtrace/16558
6148 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6149 and change address of sp and pc.
6150
c4e54771
TT
61512014-05-19 Tom Tromey <tromey@redhat.com>
6152
6153 * gdbtypes.c (rank_function): Use XNEWVEC.
6154 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6155
73051182
DE
61562014-05-19 Doug Evans <dje@google.com>
6157
6158 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6159 build_type_unit_groups and moved closer to only caller. Remove
6160 arguments. All references updated. Remove outdated .gdb_index
6161 comment.
6162 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6163 build_type_psymtabs_1.
6164
8832e7e3
DE
61652014-05-19 Doug Evans <dje@google.com>
6166
6167 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6168 n_type_unit_groups, all_type_unit_groups. All uses removed.
6169 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6170 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6171 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6172 (add_type_unit_group_to_table): Delete.
6173
cd8ae15e
DE
61742014-05-19 Doug Evans <dje@google.com>
6175
6176 * eval.c (evaluate_subexp_standard): Add some comments.
6177
08f4850b
DE
61782014-05-17 Doug Evans <xdje42@gmail.com>
6179
6180 * progspace.c (remove_program_space): Delete, unused.
6181 * progspace.h (remove_program_space): Ditto.
6182
bed8455c
DE
61832014-05-17 Doug Evans <xdje42@gmail.com>
6184
6185 * inferior.c (prune_inferiors): Fix comment.
6186 (remove_inferior_command): Call prune_program_spaces.
6187
8d551b02
DE
61882014-05-16 Doug Evans <dje@google.com>
6189
6190 New command line option -D.
6191 * NEWS: Mention it.
6192 * main.c (set_gdb_data_directory): New function.
6193 (captured_main): Recognize -D. Flag error for --data-directory "".
6194 Call set_gdb_data_directory.
6195 (print_gdb_help): Print --data-directory, -D.
6196 * main.h (set_gdb_data_directory): Declare.
6197 * top.c (staged_gdb_datadir): New static global.
6198 (set_gdb_datadir): Call set_gdb_data_directory
6199 (show_gdb_datadir): New function.
6200 (init_main): Update init of data-directory parameter.
6201
18848e28
GF
62022014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6203
6204 Import the "dirfd" gnulib module.
6205 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6206 * gnulib/aclocal.m4: Update.
6207 * gnulib/config.in: Update.
6208 * gnulib/configure: Update.
6209 * gnulib/import/Makefile.am: Update.
6210 * gnulib/import/Makefile.in: Update.
6211 * gnulib/import/dirfd.c: New.
6212 * gnulib/import/m4/dirfd.m4: New.
6213 * gnulib/import/m4/gnulib-cache.m4: Update.
6214 * gnulib/import/m4/gnulib-comp.m4: Update.
6215
95c64f92
YQ
62162014-05-16 Pierre Muller <muller@sourceware.org>
6217 Yao Qi <yao@codesourcery.com>
6218
6219 * valprint.c (print_wchar): Move the code on checking whether
6220 W is a printable wide char to the default branch of switch
6221 statement below. Call wchar_printable instead of gdb_iswprint.
6222
cac395ea
TM
62232014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6224
19679eca 6225 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6226 ldr.w and ldrd instructions.
6227
83655187
DE
62282014-05-15 Doug Evans <dje@google.com>
6229
6230 * dwarf2read.c (read_structure_type): Delete outdated comments.
6231
dd756689
TT
62322014-05-14 Tom Tromey <tromey@redhat.com>
6233
6234 * macrocmd.c (print_macro_definition): Reindent.
6235
75ddda77
DE
62362014-05-13 Doug Evans <xdje42@gmail.com>
6237
6238 * python/py-cmd.c (cmdpy_completer): Add comment.
6239 (completers): Make const.
6240
b0f16a3e
SM
62412014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * infrun.c (resume): Remove should_resume (unused). Move up
6244 declaration of resume_ptid.
6245
033c3379
TT
62462014-05-13 Tom Tromey <tromey@redhat.com>
6247
6248 * language.h (unop_type_check): Remove.
6249 (binop_type_check): Don't declare.
6250
9b44a3a5
AA
62512014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6252
6253 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6254 call to regcache_raw_collect.
6255
303a33fa
SM
62562014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6257
6258 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6259 mi_console->quote as the quoting character.
6260
196100a0
SM
62612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6262
6263 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6264
f989a1c8
TT
62652014-04-29 Tom Tromey <tromey@redhat.com>
6266
6267 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6268 "show debug varobj".
6269
9404b58f
KM
62702014-05-07 Kyle McMartin <kyle@redhat.com>
6271
6272 Pushed by Joel Brobecker <brobecker@adacore.com>.
6273 * aarch64-tdep.c (aarch64_software_single_step): New function.
6274 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6275 with aarch64_software_single_step.
6276
5e49ba57
JB
62772014-05-05 Joel Brobecker <brobecker@adacore.com>
6278
6279 GDB 7.7.1 released.
6280
c888a17d
KS
62812014-05-05 Keith Seitz <keiths@redhat.com>
6282
6283 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6284 variable or history value is successfully parsed.
6285
290a839c
YQ
62862014-05-05 Yao Qi <yao@codesourcery.com>
6287 Pedro Alves <palves@redhat.com>
6288
6289 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6290 address of blocks that intersects the requested range. Trim
6291 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6292 sections.
6293 * ctf.c (ctf_xfer_partial): Likewise.
6294
91256dc2
YQ
62952014-05-05 Yao Qi <yao@codesourcery.com>
6296
6297 * printcmd.c (display_command): Remove the check to
6298 target_has_execution.
6299
07284463
MK
63002014-05-03 Mark Kettenis <kettenis@gnu.org>
6301
6302 * ppcobsd-nat.c: Include "obsd-nat.h".
6303 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6304 add_target.
6305 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6306
30a1e6cc
SDJ
63072014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6308
6309 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6310 and 16-bit signed and unsigned arguments. Update comment.
6311 (stap_parse_probe_arguments): Extend code to handle such
6312 arguments. Use warning instead of complaint to notify about
6313 unrecognized bitness.
6314
f33da99a
SDJ
63152014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6316
6317 PR breakpoints/16889
6318 * stap-probe.c (stap_parse_probe_arguments): Simplify
6319 check for non-prefixed probes (i.e., probes whose
6320 arguments do not start with "N@"). Always set the
6321 argument type to a sane value.
6322
95cf3b38
DT
63232014-05-01 David Taylor <dtaylor@emc.com>
6324
6325 * remote.c (compare_sections_command): Add -r option to compare
6326 all loadable read-only sections.
6327
1cfdf534
SC
63282014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6329
6330 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6331 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6332 Update all callers.
6333 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6334 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6335 Remove unused CORE_ADDR argument. Update all callers.
6336
ca4f7f8b
PA
63372014-04-29 Pedro Alves <palves@redhat.com>
6338
6339 * remote.c (struct packet_config) <detect>: Extend comment.
6340 (add_packet_config_cmd): Don't set the config's detect or support
6341 fields here.
6342 (init_all_packet_configs): Also initialize the config's 'detect'
6343 field.
6344 (reset_all_packet_configs_support): New function.
6345 (remote_open_1): Call reset_all_packet_configs_support instead of
6346 init_all_packet_configs.
6347 (_initialize_remote): Initialize all packet configs. Assert that
6348 all packets have an associated command, except a few known
6349 outliers.
6350
11c1ba78
JB
63512014-04-28 Joel Brobecker <brobecker@adacore.com>
6352
6353 * dwarf2read.c (read_subrange_type): Handle dynamic
6354 DW_AT_lower_bound attributes.
6355
8739bc53
JB
63562014-04-28 Joel Brobecker <brobecker@adacore.com>
6357
6358 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6359 dynamic bounds before computing its upper bound.
6360 (ada_discrete_type_low_bound): Same as above with the lower bound.
6361
6f8a3220
JB
63622014-04-28 Joel Brobecker <brobecker@adacore.com>
6363
6364 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6365 range types. Adjust the array handling implementation to
6366 take advantage of this change.
6367 (resolve_dynamic_range): New function, mostly extracted from
6368 resolve_dynamic_bounds.
6369 (resolve_dynamic_array): New function, mostly extracted from
6370 resolve_dynamic_bounds.
6371 (resolve_dynamic_bounds): Delete.
6372 (resolve_dynamic_type): Reimplement. Add handling of
6373 TYPE_CODE_RANGE types.
6374
4d072ce4
JB
63752014-04-28 Joel Brobecker <brobecker@adacore.com>
6376
6377 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6378 handling of parallel ___XA types.
6379
52865325
JB
63802014-04-28 Joel Brobecker <brobecker@adacore.com>
6381
6382 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6383 unnecessary second call to static_unwrap_type.
6384
433e77fa
HZ
63852014-04-27 Hui Zhu <hui@codesourcery.com>
6386
6387 * stack.c (print_frame_info): Call do_gdb_disassembly with
6388 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6389
b51a69ee
DE
63902014-04-26 Doug Evans <xdje42@gmail.com>
6391
6392 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6393
7ae1a6a6
PA
63942014-04-25 Pedro Alves <palves@redhat.com>
6395
6396 PR server/16255
6397 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6398 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6399 and newline from built string.
6400 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6401 (linux_ptrace_attach_fail_reason): ... this.
6402 * linux-nat.c (linux_nat_attach): Adjust to use
6403 linux_ptrace_attach_fail_reason.
6404
4082afcc
PA
64052014-04-25 Pedro Alves <palves@redhat.com>
6406
6407 * remote.c (struct remote_state): Remove multi_process_aware,
6408 non_stop_aware, cond_tracepoints, cond_breakpoints,
6409 breakpoint_commands, fast_tracepoints, static_tracepoints,
6410 install_in_trace, disconnected_tracing,
6411 enable_disable_tracepoints, string_tracing, and
6412 augmented_libraries_svr4_read fields.
6413 (remote_multi_process_p): Move further below in the file.
6414 (struct packet_config): Add comments.
6415 (update_packet_config): Delete function.
6416 (show_packet_config_cmd): Use packet_config_support.
6417 (add_packet_config_cmd): Use NULL as set callback.
6418 (packet_ok): "set remote foo-packet"-style commands no longer
6419 change config->supported -- adjust.
6420 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6421 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6422 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6423 (PACKET_QNonStop, PACKET_multiprocess_feature)
6424 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6425 (PACKET_DisconnectedTracing_feature)
6426 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6427 (set_remote_protocol_packet_cmd): Delete function.
6428 (packet_config_support, packet_support): New functions.
6429 (set_remote_protocol_Z_packet_cmd): Don't call
6430 update_packet_config.
6431 (remote_query_attached, remote_pass_signals)
6432 (remote_program_signals, remote_threads_info)
6433 (remote_threads_extra_info, remote_start_remote): Use
6434 packet_support.
6435 (remote_start_remote): Use packet_config_support and
6436 packet_support.
6437 (init_all_packet_configs): Set all packets to unknown support,
6438 instead of calling update_packet_config.
6439 (remote_check_symbols): Use packet_support.
6440 (remote_supported_packet): Unconditionally set the packet config's
6441 support status.
6442 (remote_multi_process_feature, remote_non_stop_feature)
6443 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6444 (remote_breakpoint_commands_feature)
6445 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6446 (remote_install_in_trace_feature)
6447 (remote_disconnected_tracing_feature)
6448 (remote_enable_disable_tracepoint_feature)
6449 (remote_string_tracing_feature)
6450 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6451 (remote_protocol_features): Adjust to use remote_supported_packet
6452 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6453 "ConditionalTracepoints", "ConditionalBreakpoints",
6454 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6455 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6456 "EnableDisableTracepoints", and "tracenz".
6457 (remote_query_supported): Use packet_support.
6458 (remote_open_1): Adjust.
6459 (extended_remote_attach_1): Use packet_support. Switch on the
6460 result of packet_ok instead of checking whether the packet ended
6461 up disabled.
6462 (remote_vcont_resume): Use packet_support.
6463 (remote_resume, remote_stop_ns, fetch_register_using_p)
6464 (remote_prepare_to_store, store_register_using_P)
6465 (check_binary_download, remote_write_bytes): Use packet_support.
6466 (remote_vkill): Use packet_support. Switch on the result of
6467 packet_ok instead of checking whether the packet ended up
6468 disabled.
6469 (extended_remote_supports_disable_randomization): Use
6470 packet_support.
6471 (extended_remote_run): Switch on the result of packet_ok instead
6472 of checking whether the packet ended up disabled.
6473 (remote_insert_breakpoint, remote_remove_breakpoint)
6474 (remote_insert_watchpoint, remote_remove_watchpoint)
6475 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6476 packet_support.
6477 (remote_search_memory): Use packet_config_support.
6478 (remote_get_thread_local_address, remote_get_tib_address)
6479 (remote_hostio_send_command, remote_can_execute_reverse): Use
6480 packet_support.
6481 (remote_supports_cond_tracepoints)
6482 (remote_supports_cond_breakpoints)
6483 (remote_supports_fast_tracepoints)
6484 (remote_supports_static_tracepoints)
6485 (remote_supports_install_in_trace)
6486 (remote_supports_enable_disable_tracepoint)
6487 (remote_supports_string_tracing)
6488 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6489 the packet config says the feature is enabled or disabled.
6490 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6491 (remote_get_trace_status): Use packet_support.
6492 (remote_set_disconnected_tracing): Adjust to check whether the
6493 feature is enabled with packet_support.
6494 (remote_set_trace_buffer_size, remote_use_agent)
6495 (remote_can_use_agent, remote_supports_btrace): Use
6496 packet_support.
6497 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6498 Use packet_config_support.
6499 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6500 the packet config says the feature is enabled or disabled.
6501 (set_range_stepping): Use packet_support.
6502
bdb52a22
TT
65032014-04-25 Tom Tromey <tromey@redhat.com>
6504
6505 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6506 argument.
6507
e9475ead
SA
65082014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6509
6510 * NEWS: Mention support for C99 variable length arrays.
6511
82eacd52
JB
65122014-04-24 Joel Brobecker <brobecker@adacore.com>
6513
6514 * ada-lang.c (standard_exc): Expand introductory comment.
6515
01f9f808
MS
65162014-04-24 Michael Sturm <michael.sturm@mintel.com>
6517 Walfred Tedeschi <walfred.tedeschi@intel.com>
6518
6519 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6520 AVX512 registers.
6521 (amd64_linux_read_description): Add code to handle AVX512 xstate
6522 mask and return respective tdesc.
6523 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6524 and features/i386/x32-avx512-linux.c.
6525 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6526 (amd64_linux_core_read_description): Add code to handle AVX512
6527 xstate mask and return respective tdesc.
6528 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6529 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6530 calculation.
6531 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6532 (tdesc_amd64_avx512_linux): New prototype.
6533 (tdesc_x32_avx512_linux): Likewise.
6534 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6535 features/i386/x32-avx512.c.
6536 (amd64_ymm_avx512_names): New register names for pseudo
6537 registers YMM16-31.
6538 (amd64_ymmh_avx512_names): New register names for raw registers
6539 YMMH16-31.
6540 (amd64_k_names): New register names for K registers.
6541 (amd64_zmmh_names): New register names for ZMM raw registers.
6542 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6543 (amd64_xmm_avx512_names): New register names for XMM16-31
6544 registers.
6545 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6546 registers.
6547 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6548 if feature is present.
6549 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6550 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6551 (AMD64_NUM_REGS): Adjust to new number of registers.
6552 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6553 registers supplied via XSTATE by AVX512 registers.
6554 (i386_linux_read_description): Add case for AVX512.
6555 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6556 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6557 (i386_linux_core_read_description): Add case for AVX512.
6558 (i386_linux_init_abi): Install supported register note section
6559 for AVX512.
6560 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6561 AVX512.
6562 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6563 registers to be number of zmm7h + 1.
6564 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6565 * i386-tdep.c: Include features/i386/i386-avx512.c.
6566 (i386_zmm_names): Add ZMM pseudo register names array.
6567 (i386_zmmh_names): Add ZMM raw register names array.
6568 (i386_k_names): Add K raw register names array.
6569 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6570 registers. AVX512 has 16 more ZMM registers than there are YMM
6571 registers.
6572 (i386_zmmh_regnum_p): Add function to look up register number of
6573 ZMM raw registers.
6574 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6575 (i386_k_regnum_p): Likewise for K raw registers.
6576 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6577 registers added by AVX512.
6578 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6579 registers added by AVX512.
6580 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6581 added by AVX512.
6582 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6583 (i386_pseudo_register_name): Add ZMM pseudo registers.
6584 (i386_zmm_type): Construct and return vector registers type for ZMM
6585 registers.
6586 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6587 ZMM0-31 pseudo registers and K registers.
6588 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6589 and YMM16-31 registers from register cache.
6590 (i386_pseudo_register_write): Add code to write K, ZMM and
6591 YMM16-31 registers.
6592 (i386_register_reggroup_p): Add code to include/exclude AVX512
6593 registers in/from respective register groups.
6594 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6595 registers if feature is present in xcr0.
6596 (i386_gdbarch_init): Add code to initialize AVX512 feature
6597 variables in tdep structure, wire in pseudo registers and call
6598 initialize_tdesc_i386_avx512.
6599 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6600 variables.
6601 (i386_regnum): Add AVX512 registers.
6602 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6603 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6604 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6605 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6606 512 bits wide.
6607 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6608 (i386_ymm_avx512_regnum_p): Likewise.
6609 (i386_k_regnum_p): Likewise.
6610 (i386_zmm_regnum_p): Likewise.
6611 (i386_zmmh_regnum_p): Likewise.
6612 * i387-tdep.c : Update year in copyright notice.
6613 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6614 XSAVE buffer.
6615 (XSAVE_YMM_AVX512_ADDR): New macro.
6616 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6617 XSAVE buffer.
6618 (XSAVE_XMM_AVX512_ADDR): New macro.
6619 (xsave_avx512_k_offset): New table for K register offsets in
6620 XSAVE buffer.
6621 (XSAVE_AVX512_K_ADDR): New macro.
6622 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6623 in XSAVE buffer.
6624 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6625 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6626 buffer.
6627 (i387_collect_xsave): Add code to collect AVX512 registers from
6628 XSAVE buffer.
6629 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6630 of XMM16-31 registers.
6631 (I387_NUM_K_REGS): New define for number of K registers.
6632 (I387_K0_REGNUM): New define for K0 register number.
6633 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6634 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6635 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6636 registers.
6637 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6638 (I387_XMM16_REGNUM): New define for XMM16 register number.
6639 (I387_YMM0_REGNUM): New define for YMM0 register number.
6640 (I387_KEND_REGNUM): New define for last K register number.
6641 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6642 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6643 number.
6644 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6645 number.
6646 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6647 size.
6648 * features/Makefile: Add AVX512 related files.
6649 * features/i386/32bit-avx512.xml: New file.
6650 * features/i386/64bit-avx512.xml: Likewise.
6651 * features/i386/amd64-avx512-linux.c: Likewise.
6652 * features/i386/amd64-avx512-linux.xml: Likewise.
6653 * features/i386/amd64-avx512.c: Likewise.
6654 * features/i386/amd64-avx512.xml: Likewise.
6655 * features/i386/i386-avx512-linux.c: Likewise.
6656 * features/i386/i386-avx512-linux.xml: Likewise.
6657 * features/i386/i386-avx512.c: Likewise.
6658 * features/i386/i386-avx512.xml: Likewise.
6659 * features/i386/x32-avx512-linux.c: Likewise.
6660 * features/i386/x32-avx512-linux.xml: Likewise.
6661 * features/i386/x32-avx512.c: Likewise.
6662 * features/i386/x32-avx512.xml: Likewise.
6663 * regformats/i386/amd64-avx512-linux.dat: New file.
6664 * regformats/i386/amd64-avx512.dat: Likewise.
6665 * regformats/i386/i386-avx512-linux.dat: Likewise.
6666 * regformats/i386/i386-avx512.dat: Likewise.
6667 * regformats/i386/x32-avx512-linux.dat: Likewise.
6668 * regformats/i386/x32-avx512.dat: Likewise.
6669 * NEWS: Add note about new support for AVX512.
6670
6671
08351840
PA
66722014-04-23 Pedro Alves <palves@redhat.com>
6673
6674 * breakpoint.c (insert_bp_location): Tolerate errors if the
6675 breakpoint is set in a user-loaded objfile.
6676 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6677 location is marked shlib_disabled. If the breakpoint is set in a
6678 user-loaded objfile is a GDB-side memory breakpoint, validate it
6679 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6680 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6681 flag.
6682 * mem-break.c (memory_validate_breakpoint): New function.
6683 * objfiles.c (userloaded_objfile_contains_address_p): New
6684 function.
6685 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6686 * target.h (memory_validate_breakpoint): New declaration.
6687
076855f9
PA
66882014-04-23 Pedro Alves <palves@redhat.com>
6689
6690 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6691 the breakpoint is set in a shared library, only suppress
6692 errors for software breakpoints, not hardware breakpoints.
6693
483805cf
PA
66942014-04-22 Pedro Alves <palves@redhat.com>
6695
6696 * infrun.c (schedlock_applies): New function, factored out from
6697 find_thread_needs_step_over.
6698 (find_thread_needs_step_over): Use it.
6699 (switch_back_to_stepped_thread): Always clear trap_expected if the
6700 step over is finished. Return early if scheduler locking applies.
6701 Look for the stepping thread and a potential step-over thread with
6702 a single loop.
6703 (currently_stepping_or_nexting_callback): Delete.
6704
a75fef0e
NC
67052014-04-22 Nick Clifton <nickc@redhat.com>
6706
6707 * NEWS: Mention that ARM sim now supports tracing.
6708
48b6e87e
YQ
67092014-04-22 Yao Qi <yao@codesourcery.com>
6710
6711 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6712 to ...
6713 * tracefile.c (tracefile_fetch_registers): ... it. New
6714 function.
6715 * tracefile.h (tracefile_fetch_registers): Declare.
6716 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6717 tracefile_fetch_registers.
6718
17617f2d
EZ
67192014-04-19 Eli Zaretskii <eliz@gnu.org>
6720
6721 PR gdb/14018
6722 * windows-nat.c (thread_rec): Don't display a warning when
6723 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6724 fails for any reason, set th->suspended to -1, so that we don't
6725 try to resume such a thread. Also, don't return NULL in these
6726 cases, to avoid completely ruin the session due to "PC register is
6727 not available" error.
6728 (do_windows_fetch_inferior_registers): Check errors in
6729 GetThreadContext call.
6730 (windows_continue): Accept an additional argument KILLED; if not
6731 zero, ignore errors in the SetThreadContext call, since the
6732 inferior was killed and is shutting down.
6733 (windows_resume, get_windows_debug_event)
6734 (windows_create_inferior, windows_mourn_inferior)
6735 (windows_kill_inferior): All callers of windows_continue changed
6736 to adjust to its new calling sequence.
6737
5723a6fd
YQ
67382014-04-19 Yao Qi <yao@codesourcery.com>
6739
6740 * ctf.c (ctf_open): Call post_create_inferior.
6741
614d5099
YQ
67422014-04-19 Yao Qi <yao@codesourcery.com>
6743
6744 * ctf.c (handle_id): New static variable.
6745 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6746 value. Get the declaration of event "register" and get length
6747 of field "contents".
6748
dac3e710
YQ
67492014-04-19 Yao Qi <yao@codesourcery.com>
6750
6751 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6752
2bca57ba
SC
67532014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6754
6755 * valops.c (oload_method_static): Remove unnecessary argument
6756 METHOD. Update all callers.
6757
51d48146
PA
67582014-04-18 Pedro alves <palves@redhat.com>
6759 Tom Tromey <tromey@redhat.com>
6760
6761 PR backtrace/15558
6762 * frame.c (get_prev_frame_1): Rename to ...
6763 (get_prev_frame_always): ... this, and make extern. Adjust.
6764 (skip_artificial_frames): Use get_prev_frame_always.
6765 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6766 (get_frame_unwind_stop_reason): Adjust to rename.
6767 * frame.h (get_prev_frame_always): Declare.
6768 * inline-frame.c: Include frame.h.
6769 (inline_frame_this_id): Use get_prev_frame_always.
6770
1bdad2e0
TG
67712014-04-18 Tristan Gingold <gingold@adacore.com>
6772
6773 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6774 code by using bfd_mach_o_get_base_address.
6775
7ce16bd4
UW
67762014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6777
6778 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6779 (spu_ax_pseudo_register_collect): New function.
6780 (spu_ax_pseudo_register_push_stack): Likewise.
6781 (spu_dwarf_reg_to_regnum): Likewise.
6782 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6783
2ed3c037
UW
67842014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6785
6786 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6787 Replace FRAME argument with FRAME_ID.
6788 * gdbarch.c, gdbarch.h: Regenerate.
6789 * findvar.c (default_value_from_register): Add GDBARCH argument;
6790 replace FRAME by FRAME_ID. No longer call get_frame_id.
6791 (value_from_register): Update call to gdbarch_value_from_register.
6792 * value.h (default_value_from_register): Update prototype.
6793 * s390-linux-tdep.c (s390_value_from_register): Update interface
6794 and call to default_value_from_register.
6795 * spu-tdep.c (spu_value_from_register): Likewise.
6796
6797 * findvar.c (address_from_register): Remove TYPE argument.
6798 Do not call value_from_register; use gdbarch_value_from_register
6799 with null_frame_id instead.
6800 * value.h (address_from_register): Update prototype.
6801 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6802 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6803 address_from_register interface change.
6804
71e50e83
YQ
68052014-04-17 Yao Qi <yao@codesourcery.com>
6806
6807 * gdbtypes.h: Update comments to link to types and macros'
6808 definitions.
6809
7a23c549
SC
68102014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6811
6812 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6813
22869d73
KS
68142014-04-16 Keith Seitz <keiths@redhat.com>
6815
6816 PR gdb/15827
6817 * dwarf2read.c (skip_one_die): Check that all relative-offset
6818 sibling DIEs fall within range of the current reader's buffer.
6819 (read_partial_die): Likewise.
6820
c4f87ca6
KS
68212014-04-16 Keith Seitz <keiths@redhat.com>
6822
6823 PR c++/16597
6824 * cp-namespace.c (lookup_symbol_file): If the type name of
6825 `this' is NULL, return immediately.
6826
b50c8614
KS
68272014-04-14 Keith Seitz <keiths@redhat.com>
6828
6829 PR c++/16253
6830 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6831 from symbol_matches_domain in symtab.c. All local callers
6832 of symbol_matches_domain updated.
6833 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6834 search STRUCT_DOMAIN.
6835 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6836 independently. standard_lookup will do that automatically.
6837 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6838 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6839 (cp_lookup_symbol_in_namespace): Likewise.
6840 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6841 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6842 may return a STRUCT_DOMAIN match.
6843 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6844 * cp-support.c: Include language.h.
6845 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6846 VAR_DOMAIN.
6847 * psymtab.c (match_partial_symbol): Compare the requested
6848 domain with the symbol's domain directly.
6849 (lookup_partial_symbol): Likewise.
6850 * symtab.c (lookup_symbol_in_language): Explain when/why
6851 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6853 appropriate languages.
6854 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6855 and moved to ada-lang.c
6856 (lookup_block_symbol): Explain that this function only returns
6857 symbol matching the requested DOMAIN.
6858 Compare the requested domain with the symbol's domain directly.
6859 (iterate_over_symbols): Compare the requested domain with the
6860 symbol's domain directly.
6861 * symtab.h (symbol_matches_domain): Remove.
6862
3d567982
TT
68632014-04-14 Tom Tromey <tromey@redhat.com>
6864
6865 PR c++/15246:
6866 * c-exp.y (type_aggregate_p): New function.
6867 (qualified_name, classify_inner_name): Use it.
6868 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6869 and TYPE_TARGET_TYPE of an enum type.
6870 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6871 an enum type.
6872 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6873 handle TYPE_DECLARED_CLASS.
6874 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6875 types.
6876 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6877 * valops.c (enum_constant_from_type): New function.
6878 (value_aggregate_elt): Use it.
6879 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6880 TYPE_CODE_ENUM.
6881
c848d642
TT
68822014-04-14 Tom Tromey <tromey@redhat.com>
6883
6884 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6885 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6886 const.
6887 * value.h (value_aggregate_elt): Update.
6888
0626fc76
TT
68892014-04-14 Tom Tromey <tromey@redhat.com>
6890
6891 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6892
5ecaaa66
SA
68932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6894
6895 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6896 (evaluate_subexp_standard): Pass noside argument.
6897 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6898 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6899 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6900 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6901 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6902
1612e0c0
SA
69032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6904
6905 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6906 points to a constant blob.
6907
c451ebe5
SA
69082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6909
6910 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6911 property and store it as the high bound and flag the range accordingly.
6912 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6913 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6914 * gdbtypes.h (enum range_flags): New enum.
6915 (struct range_bounds): Add flags member.
6916
1d42e4c4
SA
69172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6918
6919 * c-typeprint.c (c_type_print_varspec_suffix): Added
6920 check for not yet resolved high bound. If unresolved, print
6921 "variable length" string to the console instead of random
6922 length.
6923
9f1f738a
SA
69242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6925
6926 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6927 value.
6928 (ada_template_to_fixed_record_type_1): Likewise.
6929 (ada_to_fixed_type_1): Likewise.
6930 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6931 (cp_print_value): Likewise.
6932 * d-valprint.c (dynamic_array_type): Likewise.
6933 * findvar.c (address_of_variable): Likewise.
6934 * jv-valprint.c (java_value_print): Likewise.
6935 * valops.c (value_ind): Likewise.
6936 * value.c (coerce_ref): Likewise.
6937
3c8452d4
SA
69382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6939
6940 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6941 value and retrieve the dynamic type size.
6942
4ad88275
SA
69432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6944
6945 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6946 passed to sizeof is dynamic evaluate the argument to compute the length.
6947
80180f79
SA
69482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6949 Joel Brobecker <brobecker@adacore.com>
6950
6951 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6952 (dwarf2_evaluate_property): New function.
6953 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6954 * dwarf2read.c (attr_to_dynamic_prop): New function.
6955 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6956 attribute.
6957 * gdbtypes.c: Include dwarf2loc.h.
6958 (is_dynamic_type): New function.
6959 (resolve_dynamic_type): New function.
6960 (resolve_dynamic_bounds): New function.
6961 (get_type_length): New function.
6962 (check_typedef): Use get_type_length to compute type length.
6963 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6964 (TYPE_LOW_BOUND_KIND): New macro.
6965 (is_dynamic_type): New function prototype.
6966 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6967 to resolve dynamic properties of the type. Update comment.
6968 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6969
a1556843
RH
69702014-04-14 Richard Henderson <rth@redhat.com>
6971
6972 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6973
0be03e84
DE
69742014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6975 Doug Evans <xdje42@gmail.com>
6976
6977 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6978 dereference TYPE_CODE_REF values.
6979
6b662e19
JB
69802014-04-11 Joel Brobecker <brobecker@adacore.com>
6981
6982 Revert the following changes due to regressions:
6983
6984 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6985 (dwarf2_evaluate_property): New function.
6986 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6987 * dwarf2read.c (attr_to_dynamic_prop): New function.
6988 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6989 attribute.
6990 * gdbtypes.c: Include dwarf2loc.h.
6991 (is_dynamic_type): New function.
6992 (resolve_dynamic_type): New function.
6993 (resolve_dynamic_bounds): New function.
6994 (get_type_length): New function.
6995 (check_typedef): Use get_type_length to compute type length.
6996 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6997 (TYPE_LOW_BOUND_KIND): New macro.
6998 (is_dynamic_type): New function prototype.
6999 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7000 to resolve dynamic properties of the type. Update comment.
7001 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7002
7003 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7004 passed to sizeof is dynamic evaluate the argument to compute the length.
7005
7006 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7007 value and retrieve the dynamic type size.
7008
7009 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7010 (ada_template_to_fixed_record_type_1): Likewise.
7011 (ada_to_fixed_type_1): Likewise.
7012 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7013 (cp_print_value): Likewise.
7014 * d-valprint.c (dynamic_array_type): Likewise.
7015 * eval.c (evaluate_subexp_with_coercion): Likewise.
7016 * findvar.c (address_of_variable): Likewise.
7017 * jv-valprint.c (java_value_print): Likewise.
7018 * valops.c (value_ind): Likewise.
7019 * value.c (coerce_ref): Likewise.
7020
7021 * c-typeprint.c (c_type_print_varspec_suffix): Added
7022 check for not yet resolved high bound. If unresolved, print
7023 "variable length" string to the console instead of random
7024 length.
7025
7026 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7027 property and store it as the high bound and flag the range accordingly.
7028 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7029 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7030 * gdbtypes.h (enum range_flags): New enum.
7031 (struct range_bounds): Add flags member.
7032
7033 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7034 points to a constant blob.
7035
7036 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7037 (evaluate_subexp_standard): Pass noside argument.
7038 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7039 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7040 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7041 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7042 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7043
245a5f0b
KS
70442014-04-11 Keith Seitz <keiths@redhat.com>
7045
7046 PR c++/16675
7047 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7048 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7049 reference types.
7050
3bce8237
SA
70512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7052
7053 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7054 (evaluate_subexp_standard): Pass noside argument.
7055 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7056 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7057 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7058 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7059 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7060
92b09522
SA
70612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7062
7063 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7064 points to a constant blob.
7065
e1969afb
SA
70662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7067
7068 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7069 property and store it as the high bound and flag the range accordingly.
7070 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7071 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7072 * gdbtypes.h (enum range_flags): New enum.
7073 (struct range_bounds): Add flags member.
7074
b86138fb
SA
70752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7076
7077 * c-typeprint.c (c_type_print_varspec_suffix): Added
7078 check for not yet resolved high bound. If unresolved, print
7079 "variable length" string to the console instead of random
7080 length.
7081
bcd629a4
SA
70822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7083
7084 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7085 (ada_template_to_fixed_record_type_1): Likewise.
7086 (ada_to_fixed_type_1): Likewise.
7087 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7088 (cp_print_value): Likewise.
7089 * d-valprint.c (dynamic_array_type): Likewise.
7090 * eval.c (evaluate_subexp_with_coercion): Likewise.
7091 * findvar.c (address_of_variable): Likewise.
7092 * jv-valprint.c (java_value_print): Likewise.
7093 * valops.c (value_ind): Likewise.
7094 * value.c (coerce_ref): Likewise.
7095
04b19544
SA
70962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7097
7098 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7099 value and retrieve the dynamic type size.
7100
26cb189f
SA
71012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7102
7103 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7104 passed to sizeof is dynamic evaluate the argument to compute the length.
7105
37c1ab67
SA
71062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7107
7108 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7109 (dwarf2_evaluate_property): New function.
7110 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7111 * dwarf2read.c (attr_to_dynamic_prop): New function.
7112 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7113 attribute.
7114 * gdbtypes.c: Include dwarf2loc.h.
7115 (is_dynamic_type): New function.
7116 (resolve_dynamic_type): New function.
7117 (resolve_dynamic_bounds): New function.
7118 (get_type_length): New function.
7119 (check_typedef): Use get_type_length to compute type length.
7120 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7121 (TYPE_LOW_BOUND_KIND): New macro.
7122 (is_dynamic_type): New function prototype.
7123 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7124 to resolve dynamic properties of the type. Update comment.
7125 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7126
729efb13
SA
71272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7128
7129 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7130 declaring high/low bounds and change uses accordingly. Call
7131 create_range_type instead of create_static_range_type.
7132 * gdbtypes.c (create_range_type): New function.
7133 (create_range_type): Convert bounds into struct bound_prop and pass
7134 them to create_range_type.
7135 * gdbtypes.h (struct bound_prop): New struct.
7136 (create_range_type): New function prototype.
7137 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7138 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7139 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7140 part of the bound.
7141 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7142
0c9c3474
SA
71432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7144
7145 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7146 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7147 * ada-lang.c: All uses of create_range_type updated.
7148 * coffread.c: All uses of create_range_type updated.
7149 * dwarf2read.c: All uses of create_range_type updated.
7150 * f-exp.y: All uses of create_range_type updated.
7151 * m2-valprint.c: All uses of create_range_type updated.
7152 * mdebugread.c: All uses of create_range_type updated.
7153 * stabsread.c: All uses of create_range_type updated.
7154 * valops.c: All uses of create_range_type updated.
7155 * valprint.c: All uses of create_range_type updated.
7156
9d497a19
PA
71572014-04-10 Pedro Alves <palves@redhat.com>
7158
7159 * breakpoint.c (single_step_breakpoints)
7160 (single_step_gdbarch): Move up in the file.
7161 (one_breakpoint_xfer_memory): New function, factored out from ...
7162 (breakpoint_xfer_memory): ... here. Also process single-step
7163 breakpoints.
7164
15a9128a
TG
71652014-04-09 Tristan Gingold <gingold@adacore.com>
7166
7167 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7168 comments.
7169 (darwin_decode_exception_message): Free port only after use.
7170
9c97a070
PL
71712014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7172
7173 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7174 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7175 when setting the size of call_length.
7176
7af389b8
SC
71772014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7178
7179 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7180 dereference TYPE_CODE_REF values.
7181
86ad98c3
JB
71822014-04-07 Joel Brobecker <brobecker@adacore.com>
7183
7184 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7185 end of warning message.
7186
b0aeadb3
DE
71872014-04-03 Doug Evans <dje@google.com>
7188
7189 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7190 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7191
5979d6b6
AM
71922014-04-02 Alan Modra <amodra@gmail.com>
7193
7194 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7195 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7196 (struct symbol_file_add_from_memory_args): Add size field.
7197 (find_vdso_size): New function.
7198 (add_vsyscall_page): Attempt to find vdso size.
7199
0d60c288
DE
72002014-04-01 Doug Evans <dje@google.com>
7201
7202 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7203
a41f2563
TG
72042014-04-01 Tristan Gingold <gingold@adacore.com>
7205
7206 * darwin-nat.c (darwin_encode_reply): Add prototype.
7207 (darwin_decode_exception_message): Reply to unknown inferiors.
7208 (darwin_decode_message): Handle message by id. Ignore message
7209 to unknown inferior.
7210 (darwin_wait): Discard unknown messages, add debug trace.
7211
11a865c8
DE
72122014-03-31 Doug Evans <dje@google.com>
7213
7214 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7215 comp_dir_string.
7216
770e7fc7
DE
72172014-03-31 Doug Evans <dje@google.com>
7218
7219 New option "set print symbol-loading".
7220 * NEWS: Mention it.
7221 * solib.c (solib_read_symbols): Only print symbol loading messages
7222 if requested.
7223 (solib_add): If symbol loading is in "brief" mode, notify user
7224 symbols are being loaded.
7225 (reload_shared_libraries_1): Ditto.
7226 * symfile.c (print_symbol_loading_off): New static global.
7227 (print_symbol_loading_brief): New static global.
7228 (print_symbol_loading_full): New static global.
7229 (print_symbol_loading_enums): New static global.
7230 (print_symbol_loading): New static global.
7231 (print_symbol_loading_p): New function.
7232 (symbol_file_add_with_addrs): Only print symbol loading messages
7233 if requested.
7234 (_initialize_symfile): Register "print symbol-loading" set/show
7235 command.
7236 * symfile.h (print_symbol_loading_p): Declare.
7237
c32c64b7
DE
72382014-03-30 Doug Evans <xdje42@gmail.com>
7239
7240 * infrun.c (set_last_target_status): New function.
7241 (handle_inferior_event): Call it.
7242
7c0bc051
DE
72432014-03-30 Doug Evans <xdje42@gmail.com>
7244
7245 * inferior.h (enum stop_kind): Improve comment.
7246
8776cfe9
JB
72472014-03-28 Joel Brobecker <brobecker@adacore.com>
7248
7249 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7250 a reference, strip the reference layer before calling
7251 the lang_ops value_has_mutated callback.
7252
410a0ff2
SDJ
72532014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7254
7255 Remove some globals from our parser.
7256 * language.c (unk_lang_parser): Add "struct parser_state"
7257 argument.
7258 * language.h (struct language_defn) <la_parser>: Likewise.
7259 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7260 (initialize_expout): Add "struct parser_state" argument.
7261 Rewrite function to use the parser state.
7262 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7263 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7264 write_exp_elt_longcst, write_exp_elt_dblcst,
7265 write_exp_elt_decfloatcst, write_exp_elt_type,
7266 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7267 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7268 write_dollar_variable): Likewise.
7269 (parse_exp_in_context_1): Use parser state.
7270 (insert_type_address_space): Add "struct parser_state" argument.
7271 Use parser state.
7272 (increase_expout_size): New function.
7273 * parser-defs.h: Forward declare "struct language_defn" and
7274 "struct parser_state".
7275 (expout, expout_size, expout_ptr): Remove extern declarations.
7276 (parse_gdbarch, parse_language): Rewrite macro declarations to
7277 accept the parser state.
7278 (struct parser_state): New struct.
7279 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7280 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7281 write_exp_elt_decfloatcst, write_exp_elt_type,
7282 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7283 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7284 write_exp_msymbol, write_dollar_variable,
7285 mark_struct_expression, insert_type_address_space): Add "struct
7286 parser_state" argument.
7287 (increase_expout_size): New function.
7288 * utils.c (do_clear_parser_state): New function.
7289 (make_cleanup_clear_parser_state): Likewise.
7290 * utils.h (make_cleanup_clear_parser_state): New function
7291 prototype.
7292 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7293 Update calls to write_exp* in order to pass the parser state.
7294 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7295 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7296 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7297 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7298 * stap-probe.c (stap_parse_register_operand): Likewise.
7299 (stap_parse_single_operand): Likewise.
7300 (stap_parse_argument_1): Likewise.
7301 (stap_parse_argument): Use parser state.
7302 * stap-probe.h: Include "parser-defs.h".
7303 (struct stap_parse_info) <pstate>: New field.
7304 * c-exp.y (parse_type): Rewrite to use parser state.
7305 (yyparse): Redefine to c_parse_internal.
7306 (pstate): New global variable.
7307 (parse_number): Add "struct parser_state" argument.
7308 (write_destructor_name): Likewise.
7309 (type_exp): Update calls to write_exp* and similars in order to
7310 use parser state.
7311 (exp1, exp, variable, qualified_name, space_identifier,
7312 typename, typebase): Likewise.
7313 (write_destructor_name, parse_number, lex_one_token,
7314 classify_name, classify_inner_name, c_parse): Add "struct
7315 parser_state" argument. Update function to use parser state.
7316 * c-lang.h: Forward declare "struct parser_state".
7317 (c_parse): Add "struct parser_state" argument.
7318 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7319 (yyparse): Redefine macro to ada_parse_internal.
7320 (pstate): New variable.
7321 (write_int, write_object_renaming, write_var_or_type,
7322 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7323 type_int, type_long, type_long_long, type_float, type_double,
7324 type_long_double, type_char, type_boolean, type_system_address):
7325 Add "struct parser_state" argument.
7326 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7327 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7328 var_or_type, aggregate, aggregate_component_list,
7329 positional_list, others, component_group,
7330 component_associations): Update calls to write_exp* and similar
7331 functions in order to use parser state.
7332 (ada_parse, write_var_from_sym, write_int,
7333 write_exp_op_with_string, write_object_renaming,
7334 find_primitive_type, write_selectors, write_ambiguous_var,
7335 write_var_or_type, write_name_assoc, type_int, type_long,
7336 type_long_long, type_float, type_double, type_long_double,
7337 type_char, type_boolean, type_system_address): Add "struct
7338 parser_state" argument. Adjust function to use parser state.
7339 * ada-lang.c (parse): Likewise.
7340 * ada-lang.h: Forward declare "struct parser_state".
7341 (ada_parse): Add "struct parser_state" argument.
7342 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7343 calls to both functions.
7344 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7345 parser state.
7346 (yyparse): Redefine macro to f_parse_internal.
7347 (pstate): New variable.
7348 (parse_number): Add "struct parser_state" argument.
7349 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7350 and similars in order to use parser state.
7351 (parse_number): Adjust code to use parser state.
7352 (yylex): Likewise.
7353 (f_parse): New function.
7354 * f-lang.h: Forward declare "struct parser_state".
7355 (f_parse): Add "struct parser_state" argument.
7356 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7357 parser state.
7358 (yyparse): Redefine macro for java_parse_internal.
7359 (pstate): New variable.
7360 (push_expression_name, push_expression_name, insert_exp): Add
7361 "struct parser_state" argument.
7362 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7363 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7364 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7365 PostIncrementExpression, PostDecrementExpression,
7366 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7367 UnaryExpressionNotPlusMinus, CastExpression,
7368 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7369 RelationalExpression, EqualityExpression, AndExpression,
7370 ExclusiveOrExpression, InclusiveOrExpression,
7371 ConditionalAndExpression, ConditionalOrExpression,
7372 ConditionalExpression, Assignment, LeftHandSide): Update
7373 calls to write_exp* and similars in order to use parser state.
7374 (parse_number): Ajust code to use parser state.
7375 (yylex): Likewise.
7376 (java_parse): New function.
7377 (push_variable): Add "struct parser_state" argument. Adjust
7378 code to user parser state.
7379 (push_fieldnames, push_qualified_expression_name,
7380 push_expression_name, insert_exp): Likewise.
7381 * jv-lang.h: Forward declare "struct parser_state".
7382 (java_parse): Add "struct parser_state" argument.
7383 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7384 parser state.
7385 (yyparse): Redefine macro to m2_parse_internal.
7386 (pstate): New variable.
7387 (type_exp, exp, fblock, variable, type): Update calls to
7388 write_exp* and similars to use parser state.
7389 (yylex): Likewise.
7390 (m2_parse): New function.
7391 * m2-lang.h: Forward declare "struct parser_state".
7392 (m2_parse): Add "struct parser_state" argument.
7393 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7394 * objc-lang.h: Forward declare "struct parser_state".
7395 (end_msglist): Add "struct parser_state" argument.
7396 * p-exp.y (parse_type): Rewrite macro to use parser state.
7397 (yyparse): Redefine macro to pascal_parse_internal.
7398 (pstate): New variable.
7399 (parse_number): Add "struct parser_state" argument.
7400 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7401 write_exp* and similars in order to use parser state.
7402 (parse_number, yylex): Adjust code to use parser state.
7403 (pascal_parse): New function.
7404 * p-lang.h: Forward declare "struct parser_state".
7405 (pascal_parse): Add "struct parser_state" argument.
7406 * go-exp.y (parse_type): Rewrite macro to use parser state.
7407 (yyparse): Redefine macro to go_parse_internal.
7408 (pstate): New variable.
7409 (parse_number): Add "struct parser_state" argument.
7410 (type_exp, exp1, exp, variable, type): Update calls to
7411 write_exp* and similars in order to use parser state.
7412 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7413 to use parser state.
7414 (go_parse): Likewise.
7415 * go-lang.h: Forward declare "struct parser_state".
7416 (go_parse): Add "struct parser_state" argument.
7417
342587c4
DE
74182014-03-27 Doug Evans <dje@google.com>
7419
7420 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7421
33e80786
DE
74222014-03-27 Doug Evans <dje@google.com>
7423
7424 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7425 Remove argument abbrev_section. All callers updated.
7426
1dbab08b
DE
74272014-03-27 Doug Evans <dje@google.com>
7428
7429 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7430 addr_base, ranges_base.
7431
318d3177
KS
74322014-03-26 Keith Seitz <keiths@redhat.com>
7433
7434 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7435 types, not VAR_DOMAIN.
7436
1e54db15
SL
74372014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7438
7439 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7440 "ra" registers.
7441 * features/nios2-linux.c: Regenerated.
7442 * features/nios2.c: Regenerated.
7443
d3839ede
PA
74442014-03-25 Pedro Alves <palves@redhat.com>
7445
7446 * cli/cli-script.c (script_from_file): Force the interpreter to
7447 sync mode.
7448
7588d2ec
PL
74492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7450
7451 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7452 small stack allocation.
7453
a6290449
TG
74542014-03-24 Tristan Gingold <gingold@adacore.com>
7455
7456 * darwin-nat.c (exc_server): Remove unused prototype.
7457 (darwin_dump_message): Correctly display data on x86_64.
7458 (darwin_encode_reply): Fix style.
7459 Add comments and fix indentation.
7460
31ae9d24 74612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7462
7463 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7464
6339bfc4
DE
74652014-03-22 Doug Evans <xdje42@gmail.com>
7466
7467 * infcmd.c: Whitespace fixes.
7468 (interrupt_command): Merge two function comments into one.
7469
0a07590b
DE
74702014-03-22 Doug Evans <xdje42@gmail.com>
7471
7472 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7473 All uses updated.
7474
b55fbac4
YQ
74752014-03-22 Yao Qi <yao@codesourcery.com>
7476
7477 * remote.c (target_read_live_memory): Remove.
7478 (memory_xfer_live_readonly_partial): Rename it to
7479 remote_xfer_live_readonly_partial. Remove argument 'object'.
7480 All callers updated. Call remote_read_bytes_1
7481 instead of target_read_live_memory.
7482 * tracepoint.c (set_traceframe_number): Remove.
7483 (make_cleanup_restore_traceframe_number): Likewise .
7484 * tracepoint.h (set_traceframe_number): Remove declaration.
7485 (make_cleanup_restore_traceframe_number): Likewise.
7486
9217e74e
YQ
74872014-03-22 Yao Qi <yao@codesourcery.com>
7488
7489 * remote.c (remote_read_bytes): Move code on reading from the
7490 remote stub to ...
7491 (remote_read_bytes_1): ... here. New function.
7492
8acf9577
YQ
74932014-03-22 Yao Qi <yao@codesourcery.com>
7494
7495 * ctf.c (ctf_xfer_partial): Check the return value of
7496 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7497 return TARGET_XFER_UNAVAILABLE.
7498 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7499 * target.c (target_read_live_memory): Move it to remote.c.
7500 (memory_xfer_live_readonly_partial): Likewise.
7501 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7502 * remote.c (target_read_live_memory): Moved from target.c.
7503 (memory_xfer_live_readonly_partial): Likewise.
7504 (remote_read_bytes): Factored out from
7505 memory_xfer_partial_1.
7506
feef67ab
DE
75072014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7508
7509 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7510 NULL pointer.
7511
b65dc60b
PA
75122014-03-21 Pedro Alves <palves@redhat.com>
7513
7514 * infrun.c (normal_stop): Extend comment.
7515
b4ab256d
HZ
75162014-03-21 Hui Zhu <hui@codesourcery.com>
7517 Pedro Alves <palves@redhat.com>
7518
7519 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7520 static buffer.
7521 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7522 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7523 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7524
deba7593
MR
75252014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7526
7527 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7528 `z' formatted output modifier.
7529
1bff71c3
SDJ
75302014-03-20 Tom Tromey <tromey@redhat.com>
7531 Sergio Durigan Junior <sergiodj@redhat.com>
7532
7533 * probe.c (parse_probes): Turn assert into an ordinary error.
7534 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7535 exceptions when parsing probes. Rearrange the code for clarity.
7536
90e28950
TT
75372014-03-20 Tom Tromey <tromey@redhat.com>
7538
7539 PR gdb/14135
7540 * top.c (execute_command): Only dispatch events if the command
7541 started the target.
7542
beb460e8
PA
75432014-03-20 Tom Tromey <tromey@redhat.com>
7544
7545 PR cli/15718
7546 * infcall.c: Include event-top.h.
7547 (run_inferior_call): Call async_disable_stdin if needed.
7548
99619bea
PA
75492014-03-20 Pedro Alves <palves@redhat.com>
7550
7551 * infrun.c (prepare_to_proceed): Delete.
7552 (thread_still_needs_step_over): New function.
7553 (find_thread_needs_step_over): New function.
7554 (proceed): If the current thread needs a step-over, set its
7555 steping_over_breakpoint flag. Adjust to use
7556 find_thread_needs_step_over instead of prepare_to_proceed.
7557 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7558 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7559 breakpoint.
7560 (switch_back_to_stepped_thread): Step over breakpoints of all
7561 threads not the stepping thread, before switching back to the
7562 stepping thread.
7563
2adfaa28
PA
75642014-03-20 Pedro Alves <palves@redhat.com>
7565
7566 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7567 extern.
7568 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7569 * infrun.c (saved_singlestep_ptid)
7570 (stepping_past_singlestep_breakpoint): Delete.
7571 (resume): Remove stepping_past_singlestep_breakpoint handling.
7572 (proceed): Store the prev_pc of the stepping thread too.
7573 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7574 singlestep_pc.
7575 (enum infwait_states): Delete infwait_thread_hop_state.
7576 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7577 field.
7578 (handle_inferior_event): Adjust.
7579 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7580 handling and the thread-hop code. Before removing single-step
7581 breakpoints, check whether the thread hit a single-step breakpoint
7582 of another thread. If it did, the trap is not a random signal.
7583 (switch_back_to_stepped_thread): If the event thread hit a
7584 single-step breakpoint, unblock it before switching to the
7585 stepping thread. Handle the case of the stepped thread having
7586 advanced already.
7587 (keep_going): Handle the case of the current thread moving past a
7588 single-step breakpoint.
7589
31e77af2
PA
75902014-03-20 Pedro Alves <palves@redhat.com>
7591
7592 PR breakpoints/7143
7593 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7594 are being stepped over.
7595 (breakpoint_address_match): Make extern.
7596 * breakpoint.h (breakpoint_address_match): New declaration.
7597 * inferior.h (stepping_past_instruction_at): New declaration.
7598 * infrun.c (struct step_over_info): New type.
7599 (step_over_info): New global.
7600 (set_step_over_info, clear_step_over_info)
7601 (stepping_past_instruction_at): New functions.
7602 (handle_inferior_event): Clear the step-over info when
7603 trap_expected is cleared.
7604 (resume): Remove now stale comment.
7605 (clear_proceed_status): Clear step-over info.
7606 (proceed): Adjust step-over handling to set or clear the step-over
7607 info instead of removing all breakpoints.
7608 (handle_signal_stop): When setting up a thread-hop, don't remove
7609 breakpoints here.
7610 (stop_stepping): Clear step-over info.
7611 (keep_going): Adjust step-over handling to set or clear step-over
7612 info and then always inserting breakpoints, instead of removing
7613 all breakpoints when stepping over one.
7614
b9f437de
PA
76152014-03-20 Pedro Alves <palves@redhat.com>
7616
7617 * infrun.c (previous_inferior_ptid): Adjust comment.
7618 (deferred_step_ptid): Delete.
7619 (infrun_thread_ptid_changed, prepare_to_proceed)
7620 (init_wait_for_inferior): Adjust.
7621 (handle_signal_stop): Delete deferred_step_ptid handling.
7622
06c868a8
JK
76232014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7624
7625 PR gdb/15358
7626 * defs.h (sync_quit_force_run): New declaration.
7627 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7628 * event-top.c (async_sigterm_handler): New declaration.
7629 (async_sigterm_token): New variable.
7630 (async_init_signals): Create also async_sigterm_token.
7631 (async_sigterm_handler): New function.
7632 (sync_quit_force_run): New variable.
7633 (handle_sigterm): Replace quit_force call by other calls.
7634 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7635
dea80df0
MR
76362014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7637
7638 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7639 offset into SPE pseudo registers.
7640
0c7e1a46
PA
76412014-03-18 Pedro Alves <palves@redhat.com>
7642
7643 PR gdb/13860
7644 * inferior.h (print_stop_event): Declare.
7645 * infrun.c (print_stop_event): New, factored out from ...
7646 (normal_stop): ... this.
7647 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7648 of bpstat_print/print_stack_frame.
7649
9c1fcd01
TT
76502014-03-17 Tom Tromey <tromey@redhat.com>
7651
7652 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7653
11aa919a
PMR
76542014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7655
7656 * ada-lang.c (decode_constrained_packed_array): Perform a
7657 minimal coercion for reference with coerce_ref instead of
7658 ada_coerce_ref.
7659
d4ccb5e0
TG
76602014-03-17 Tristan Gingold <gingold@adacore.com>
7661
7662 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7663 (darwin_solib_create_inferior_hook): Emit a warning if version
7664 is unhandled.
7665
49840f2a
UW
76662014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7667
7668 * python/py-value.c (get_field_flag): Cast flag_name argument to
7669 PyObject_GetAttrString to support Python 2.4.
7670
ed4123e5
JK
76712014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7672
7673 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7674 (Global Maintainers): Remove Jan Kratochvil.
7675
d6b64346
PA
76762014-03-14 Pedro Alves <palves@redhat.com>
7677
7678 * inferior.h (terminal_ours_for_output): Rename to ...
7679 (child_terminal_ours_for_output): ... this.
7680 (terminal_save_ours): Rename to ...
7681 (child_terminal_save_ours): ... this.
7682 (terminal_ours): Rename to ...
7683 (child_terminal_ours): ... this.
7684 (terminal_inferior): Rename to ...
7685 (child_terminal_inferior): ... this.
7686 (terminal_init_inferior): Rename to ...
7687 (child_terminal_init_inferior): ... this.
7688 (terminal_init_inferior_with_pgrp): Rename to ...
7689 (child_terminal_init_inferior_with_pgrp): ... this.
7690 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7691 (child_terminal_init_with_pgrp): ... this.
7692 (terminal_save_ours): Rename to ...
7693 (child_terminal_save_ours): ... this.
7694 (terminal_init_inferior): Rename to ...
7695 (child_terminal_init): ... this. Adjust.
7696 (terminal_inferior): Rename to ...
7697 (child_terminal_inferior): ... this.
7698 (terminal_ours_for_output): Rename to ...
7699 (child_terminal_ours_for_output): ... this. Adjust.
7700 (terminal_ours): Rename to ...
7701 (child_terminal_ours): ... this.
7702 (terminal_ours_1): Rename to ...
7703 (child_terminal_ours_1): ... this. Adjust.
7704 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7705 * windows-nat.c (do_initial_windows_stuff): Adjust.
7706 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7707 (gnu_terminal_init): ... this. Adjust.
7708 (gnu_target): Adjust.
7709 * inf-child.c (inf_child_target): Adjust.
7710
5a1e8c7a
DE
77112014-03-13 Doug Evans <xdje42@gmail.com>
7712
7713 PR guile/16612
7714 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7715 new eq?-hashtab.
7716
350e1a76
DE
77172014-03-13 Doug Evans <xdje42@gmail.com>
7718
7719 * value.c (record_latest_value): Call release_value_or_incref
7720 instead of release_value.
7721
a69900ae
PA
77222014-03-13 Pedro Alves <palves@redhat.com>
7723
7724 * procfs.c (procfs_target): Don't override to_shortname,
7725 to_longname or to_doc.
7726
5db9f0bd
PA
77272014-03-13 Pedro Alves <palves@redhat.com>
7728
7729 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7730 Unix in user visible strings.
7731
5e3a2c38
SS
77322014-03-12 Stan Shebs <stan@codesourcery.com>
7733
7734 * gdbtypes.h: Annotate comments for Doxygen, add a page
7735 block comment with some general info.
7736
8bc2fe48
PA
77372014-03-12 Pedro Alves <palves@redhat.com>
7738
7739 * infcmd.c (prepare_execution_command): New function, factored out
7740 from several execution commands.
7741 (run_command_1, continue_command, step_1, jump_command)
7742 (signal_command, until_command, advance_command, finish_command)
7743 (attach_command): Use prepare_execution_command.
7744
638c5f49
OJ
77452014-03-12 Omair Javaid <omair.javaid@linaro.org>
7746
7747 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7748 (MAX_BPTS): Define.
7749 (MAX_WPTS): Define.
7750 (struct arm_linux_thread_points): Removed.
7751 (struct arm_linux_process_info): New.
7752 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7753 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7754 (arm_linux_find_breakpoints_by_tid): Removed.
7755 (struct arch_lwp_info): New.
7756 (arm_linux_find_process_pid): New functions.
7757 (arm_linux_add_process): New functions.
7758 (arm_linux_process_info_get): New functions.
7759 (arm_linux_forget_process): New function.
7760 (arm_linux_get_debug_reg_state): New function.
7761 (struct update_registers_data): New.
7762 (update_registers_callback): New function.
7763 (arm_linux_insert_hw_breakpoint1): Updated.
7764 (arm_linux_remove_hw_breakpoint1): Updated.
7765 (arm_linux_insert_hw_breakpoint): Updated.
7766 (arm_linux_remove_hw_breakpoint): Updated.
7767 (arm_linux_insert_watchpoint): Updated.
7768 (arm_linux_remove_watchpoint): Updated.
7769 (arm_linux_new_thread): Updated.
7770 (arm_linux_prepare_to_resume): New function.
7771 (arm_linux_new_fork): New function.
7772 (_initialize_arm_linux_nat): Updated.
7773
6d03af93
PA
77742014-03-12 Pedro Alves <palves@redhat.com>
7775
7776 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7777
b3ccfe11
TT
77782014-03-12 Tom Tromey <tromey@redhat.com>
7779
7780 * inf-child.c (return_zero): New function.
7781 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7782 * aix-thread.c (aix_thread_inferior_created): New function.
7783 (aix_thread_attach): Remove.
7784 (init_aix_thread_ops): Don't set to_attach.
7785 (_initialize_aix_thread): Register inferior_created observer.
7786 * corelow.c (init_core_ops): Don't set to_attach or
7787 to_create_inferior.
7788 * exec.c (init_exec_ops): Don't set to_attach or
7789 to_create_inferior.
7790 * infcmd.c (run_command_1): Use find_run_target. Make direct
7791 target calls.
7792 (attach_command): Use find_attach_target. Make direct target
7793 calls.
7794 * record-btrace.c (init_record_btrace_ops): Don't set
7795 to_create_inferior.
7796 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7797 Remove.
7798 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7799 set to_create_inferior.
7800 * target.c (complete_target_initialization): Add assertion.
7801 (target_create_inferior): Remove.
7802 (find_default_attach, find_default_create_inferior): Remove.
7803 (find_attach_target, find_run_target): New functions.
7804 (find_default_is_async_p, find_default_can_async_p)
7805 (target_supports_non_stop, target_attach): Remove.
7806 (init_dummy_target): Don't set to_create_inferior or
7807 to_supports_non_stop.
7808 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7809 TARGET_DEFAULT_FUNC.
7810 <to_create_inferior>: Add comment.
7811 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7812 TARGET_DEFAULT_RETURN.
7813 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7814 (find_attach_target, find_run_target): Declare.
7815 (target_create_inferior): Remove.
7816 (target_has_execution_1): Update comment.
7817 (target_supports_non_stop): Remove.
7818 * target-delegates.c: Rebuild.
7819
91f83b02
PA
78202014-03-12 Pedro Alves <palves@redhat.com>
7821
7822 * inf-child.h: Update comment to not mention Unix.
7823
f1aea813
PA
78242014-03-12 Pedro Alves <palves@redhat.com>
7825
7826 * inf-child.c: Update top comment to not mention Unix. Add
7827 generic comment describing how this target is meant to be used.
7828 (inf_child_post_attach, inf_child_post_startup_inferior)
7829 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7830 Unix in comment.
7831
ee8e9165
PA
78322014-03-12 Pedro Alves <palves@redhat.com>
7833
7834 * nto-procfs.c: Include inf-child.h.
7835 (procfs_ops): Delete global.
7836 (procfs_can_run): Delete method.
7837 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7838 target pointer instead of referencing procfs_ops.
7839 (procfs_prepare_to_store): Delete.
7840 (init_procfs_ops): Delete function.
7841 (procfs_target): New function, based on init_procfs_ops, but
7842 inherit inf_child_target.
7843 (_initialize_procfs): Use procfs_target.
7844
51a9c8c5
PA
78452014-03-12 Pedro Alves <palves@redhat.com>
7846
7847 * windows-nat.c: Include inf-child.h.
7848 (windows_ops): Delete global.
7849 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7850 methods.
7851 (init_windows_ops): Delete function.
7852 (windows_target): New function, based on init_windows_ops, but
7853 inherit inf_child_target.
7854 (_initialize_windows_nat): Use windows_target. Install x86
7855 specific target methods here.
7856
c1966e26
DE
78572014-03-10 Doug Evans <xdje42@gmail.com>
7858
7859 * guile/guile.c (call_initialize_gdb_module): New function.
7860 (initialize_guile): Replace call to scm_init_guile with call to
7861 scm_with_guile.
7862
023db19c
JB
78632014-03-10 Joel Brobecker <brobecker@adacore.com>
7864
7865 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7866 in call to TYPE_CODE macro.
7867
5ec18f2b
JG
78682014-03-10 Jerome Guitton <guitton@adacore.com>
7869
8668be63
JB
7870 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7871 Resolve tagged types to full view.
5ec18f2b 7872
7d03f2eb
HZ
78732014-03-10 Hui Zhu <hui@codesourcery.com>
7874
7875 * target.h (target_insert_breakpoint): Remove "hardware" from its
7876 comments.
7877
c5164cbc
DE
78782014-03-07 Doug Evans <dje@google.com>
7879
7880 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7881
c4a3fee2
DE
78822014-03-07 Doug Evans <dje@google.com>
7883
7884 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7885 Remove unused local comp_dir_attr. Assert exactly one of
7886 stub_comp_unit_die, stub_comp_dir is non-NULL.
7887
3156469c
JB
78882014-03-07 Joel Brobecker <brobecker@adacore.com>
7889
7890 * target.h (complete_target_initialization, add_target):
7891 Add comment.
7892
c1a7b7c6
PA
78932014-03-07 Pedro Alves <palves@redhat.com>
7894
7895 * go32-nat.c: Include inf-child.h.
7896 (go32_ops): Delete global.
7897 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7898 Delete methods.
7899 (go32_create_inferior): Push the passed in target pointer instead
7900 of referencing go32_ops.
7901 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7902 (go32_target): New function, based on init_go32_ops, but inherit
7903 inf_child_target.
7904 (_initialize_go32_nat): Use go32_target. Move parts of
7905 init_go32_ops here.
7906
d3c1a85f
JB
79072014-03-06 Joel Brobecker <brobecker@adacore.com>
7908
7909 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7910 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7911 SYMBOL_VALUE_ADDRESS.
7912 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7913
5fa1d40e
YQ
79142014-03-06 Yao Qi <yao@codesourcery.com>
7915
7916 * breakpoint.c (get_tracepoint_by_number): Remove argument
7917 optional_p. All callers updated. Adjust comments. Update
7918 output message.
7919 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7920
0c13193f
YQ
79212014-03-06 Yao Qi <yao@codesourcery.com>
7922
7923 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7924 early if get_number returns zero. Use 'p' instead of 'args'.
7925
2217da06
YQ
79262014-03-06 Yao Qi <yao@codesourcery.com>
7927
7928 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7929 message.
7930
cc3da688
YQ
79312014-03-06 Yao Qi <yao@codesourcery.com>
7932
7933 PR breakpoints/16508
7934 * tracepoint.c (check_trace_running): New function.
7935 (trace_find_command): Move code to check_trace_running and
7936 call check_trace_running.
7937 (trace_find_pc_command): Likewise.
7938 (trace_find_tracepoint_command): Likewise.
7939 (trace_find_line_command): Likewise.
7940 (trace_find_range_command): Likewise.
7941 * tracepoint.h (check_trace_running): Likewise.
7942 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7943
6a5f844b
YQ
79442014-03-06 Yao Qi <yao@codesourcery.com>
7945
7946 * target.h (struct target_ops) <to_traceframe_info>: Use
7947 TARGET_DEFAULT_NORETURN (tcomplain ()).
7948 * target-delegates.c: Regenerated.
7949
0f26cec1
PA
79502014-03-05 Pedro Alves <palves@redhat.com>
7951
7952 PR gdb/16575
7953 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7954 void. Update comment.
7955 (dcache_xfer_memory): Delete.
7956 (dcache_read_memory_partial): New, based on the read bits of
7957 dcache_xfer_memory.
7958 (dcache_update): Add status parameter. Use ULONGEST for len, and
7959 adjust. Discard cache lines if the reason for the update was
7960 error.
7961 * dcache.h (dcache_xfer_memory): Delete declaration.
7962 (dcache_read_memory_partial): New declaration.
7963 (dcache_update): Update prototype.
7964 * target.c (raw_memory_xfer_partial): Update the dcache here.
7965 (memory_xfer_partial_1): Don't handle dcache writes here.
7966
b2b255bd
MF
79672014-03-05 Mike Frysinger <vapier@gentoo.org>
7968
7969 * remote-sim.c (gdbsim_load): Add const to prog.
7970
5d9cf8a4
TT
79712014-03-03 Tom Tromey <tromey@redhat.com>
7972
7973 * elfread.c (probe_key): Change to bfd_data.
7974 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7975 now per-BFD, not per-objfile.
7976 * stap-probe.c (stap_probe_destroy): Update comment.
7977 (handle_stap_probe): Allocate on the per-BFD obstack.
7978
729662a5
TT
79792014-03-03 Tom Tromey <tromey@redhat.com>
7980
7981 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7982 * breakpoint.c (create_longjmp_master_breakpoint): Use
7983 get_probe_address.
7984 (add_location_to_breakpoint, bkpt_probe_insert_location)
7985 (bkpt_probe_remove_location): Update.
7986 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7987 * elfread.c (elf_symfile_relocate_probe): Remove.
7988 (elf_probe_fns): Update.
7989 (insert_exception_resume_breakpoint): Change type of "probe"
7990 parameter to bound_probe.
7991 (check_exception_resume): Update.
7992 * objfiles.c (objfile_relocate1): Don't relocate probes.
7993 * probe.c (bound_probe_s): New typedef.
7994 (parse_probes): Use get_probe_address. Set sal's objfile.
7995 (find_probe_by_pc): Return a bound_probe.
7996 (collect_probes): Return a VEC(bound_probe_s).
7997 (compare_probes): Update.
7998 (gen_ui_out_table_header_info): Change type of "probes"
7999 parameter. Update.
8000 (info_probes_for_ops): Update.
8001 (get_probe_address): New function.
8002 (probe_safe_evaluate_at_pc): Update.
8003 * probe.h (struct probe_ops) <get_probe_address>: New field.
8004 <set_semaphore, clear_semaphore>: Add objfile parameter.
8005 (struct probe) <objfile>: Remove field.
8006 <arch>: New field.
8007 <address>: Update comment.
8008 (struct bound_probe): New.
8009 (find_probe_by_pc): Return a bound_probe.
8010 (get_probe_address): Declare.
8011 * solib-svr4.c (struct probe_and_action) <address>: New field.
8012 (hash_probe_and_action, equal_probe_and_action): Update.
8013 (register_solib_event_probe): Add address parameter.
8014 (solib_event_probe_at): Update.
8015 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8016 get_probe_address.
8017 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8018 (stap_get_probe_address): New function.
8019 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8020 (compile_probe_arg): Update.
8021 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8022 address.
8023 (handle_stap_probe): Don't relocate the probe.
8024 (stap_relocate): Remove.
8025 (stap_gen_info_probes_table_values): Update.
8026 (stap_probe_ops): Remove stap_relocate.
8027 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8028 (debug_sym_probe_fns): Update.
8029 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8030 * symtab.c (init_sal): Use memset.
8031 * symtab.h (struct symtab_and_line) <objfile>: New field.
8032 * tracepoint.c (start_tracing, stop_tracing): Update.
8033
ff887920
TT
80342014-03-03 Tom Tromey <tromey@redhat.com>
8035
8036 * probe.h (parse_probes, find_probe_by_pc)
8037 (find_probes_in_objfile): Fix comments.
8038
f0407826
DE
80392014-03-02 Doug Evans <xdje42@gmail.com>
8040
8041 * infrun.c (handle_signal_stop): Replace test for
8042 TARGET_WAITKIND_STOPPED with an assert.
8043
35e6a711
DE
80442014-03-02 Doug Evans <xdje42@gmail.com>
8045
8046 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8047
667f9d0b
DE
80482014-03-02 Doug Evans <xdje42@gmail.com>
8049
8050 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8051
dc92ace0
MK
80522014-03-01 Mark Kettenis <kettenis@gnu.org>
8053
8054 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8055
a900370f
MK
80562014-03-01 Mark Kettenis <kettenis@gnu.org>
8057
8058 * i386obsd-nat.c: Include "obsd-nat.h".
8059 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8060 add_target.
8061 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8062
b72a7981
MK
80632014-03-01 Mark Kettenis <kettenis@gnu.org>
8064
8065 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8066
96c70aba
MK
80672014-03-01 Mark Kettenis <kettenis@gnu.org>
8068
8069 * mips64obsd-nat.c: Include "obsd-nath".
8070 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8071 add_target
8072 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8073
874a80af
MK
80742014-03-01 Mark Kettenis <kettenis@gnu.org>
8075
8fd408f1
MK
8076 * amd64obsd-nat.c: Include "obsd-nat,h.
8077 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8078 add_target.
874a80af
MK
8079 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8080
9cf95373
SC
80812014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8082
8083 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8084 (find_overload_match): Update call to find_oload_champ.
8085 (find_oload_champ_namespace_loop): Likewise
8086
863e4da4
MK
80872014-02-28 Mark Kettenis <kettenis@gnu.org>
8088
025cac40
MK
8089 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8090
1ed586ce
MK
8091 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8092 * config/sparc/obsd64.mh: New file.
8093 * sparc64obsd-nat.c: New file.
8094
863e4da4
MK
8095 * obsd-nat.h: New file.
8096 * obsd-nat.c: New file.
8097 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8098 (ALLDEPFILES): Add obsd-nat.c.
8099
89de4da4
TT
81002014-02-28 Tom Tromey <tromey@redhat.com>
8101
8102 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8103 * cli-out.h (cli_ui_out_impl): Now const.
8104 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8105 * ui-out.c (struct ui_out) <impl>: Now const.
8106 (default_ui_out_impl): Now const.
8107 (ui_out_new): Make 'impl' parameter const.
8108 * ui-out.h (ui_out_new): Update.
8109
c725e7b6
MK
81102014-02-27 Mark Kettenis <kettenis@gnu.org>
8111
8112 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8113
670b46b3
MK
81142014-02-27 Mark Kettenis <kettenis@gnu.org>
8115
8116 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8117
c91550fc
JK
81182014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8119
8120 Additional PR 8882 fix.
8121 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8122
2fa0369e
PA
81232014-02-27 Pedro Alves <palves@redhat.com>
8124
8125 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8126 isn't set.
8127
d632a097
PA
81282014-02-27 Pedro Alves <palves@redhat.com>
8129
8130 PR 12702
8131 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8132 * nat/linux-waitpid.c: Include string.h.
8133 (status_to_str): Moved here and made extern.
8134 * nat/linux-waitpid.h (status_to_str): New declaration.
8135
2ebd5a35
HZ
81362014-02-27 Hui Zhu <hui@codesourcery.com>
8137
8138 PR 12702
8139 * infrun.c (ptid_match): Move ...
8140 * common/ptid.c (ptid_match): ... here.
8141 * inferior.h (ptid_match): Move ...
8142 * common/ptid.h (ptid_match): ... here.
8143
3cdd631f
MK
81442014-02-27 Mark Kettenis <kettenis@gnu.org>
8145
8146 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8147 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8148 gdb_target_obs.
8149
bee30a64
MK
81502014-02-27 Mark Kettenis <kettenis@gnu.org>
8151
8152 * obsd-tdep.c (obsd_auxv_parse): New function.
8153 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8154
8155 * gdbarch.sh (auxv_parse): New.
8156 * gdbarch.h: Regenerated.
8157 * gdbarch.c: Regenerated.
8158 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8159
7a5a839f
LC
81602014-02-26 Ludovic Courtès <ludo@gnu.org>
8161
8162 * guile/scm-value.c (gdbscm_history_append_x): New function.
8163 (value_functions): Add it.
8164
31aa7e4e
JB
81652014-02-27 Joel Brobecker <brobecker@adacore.com>
8166
8167 * dwarf2read.c (attr_value_as_address): New function.
8168 (dwarf2_find_base_address, read_call_site_scope): Use
8169 attr_value_as_address in place of DW_ADDR.
8170 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8171 the low and high addresses. Slight rework of the handling
8172 of the high pc being a constant form, and limit it to
8173 DWARF verson 4 or higher.
8174 (dwarf2_record_block_ranges): Likewise.
8175 (read_partial_die): Likewise.
8176 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8177
9b333ba3
TT
81782014-02-26 Tom Tromey <tromey@redhat.com>
8179
8180 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8181
5f6cac40
TT
81822014-02-26 Tom Tromey <tromey@redhat.com>
8183
8184 * elfread.c (elf_read_minimal_symbols): Return early if
8185 minimal symbols have already been read. Add "ei" parameter.
8186 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8187 * minsyms.c (prim_record_minimal_symbol_full): Update.
8188 * objfiles.h (struct objstats) <n_minsyms>: Move...
8189 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8190 * symmisc.c (print_objfile_statistics): Update.
8191
2750ef27
TT
81922014-02-26 Tom Tromey <tromey@redhat.com>
8193
8194 * elfread.c (elf_read_minimal_symbols): New function, from
8195 elf_symfile_read.
8196 (elf_symfile_read): Call it.
8197
34643a32
TT
81982014-02-26 Tom Tromey <tromey@redhat.com>
8199
8200 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8201 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8202 (lookup_minimal_symbol_solib_trampoline)
8203 (lookup_minimal_symbol_by_pc_section_1)
8204 (lookup_minimal_symbol_and_objfile): Update.
8205 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8206 Don't allocate a minimal symbol if minsyms have already been read.
8207 (build_minimal_symbol_hash_tables): Update.
8208 (install_minimal_symbols): Do nothing if minsyms already read.
8209 Use the per-BFD obstack.
8210 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8211 * objfiles.c (allocate_objfile): Call
8212 terminate_minimal_symbol_table later.
8213 (have_minimal_symbols): Update.
8214 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8215 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8216 Move from struct objfile.
8217 <minsyms_read>: New field.
8218 (struct objfile) <msymbols, minimal_symbol_count,
8219 msymbol_hash, msymbol_demangled_hash>: Move.
8220 (ALL_OBJFILE_MSYMBOLS): Update.
8221 * symfile.c (read_symbols): Set minsyms_read.
8222 (reread_symbols): Update.
8223 * symmisc.c (dump_objfile, dump_msymbols): Update.
8224
2273f0ac
TT
82252014-02-26 Tom Tromey <tromey@redhat.com>
8226
8227 * minsyms.c (msymbols_sort): Remove.
8228 * minsyms.h (msymbols_sort): Remove.
8229 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8230 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8231 * elfread.c (elf_symtab_read): Don't add section offsets.
8232 * xcoffread.c (record_minimal_symbol): Don't add section offset
8233 to minimal symbol address.
8234 * somread.c (text_offset, data_offset): Remove.
8235 (som_symtab_read): Don't add section offsets to minimal symbol
8236 addresses.
8237 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8238 Don't add section offsets to minimal symbols.
8239 * coffread.c (coff_symtab_read): Don't add section offsets
8240 to minimal symbol addresses.
8241 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8242 to minimal symbol addresses.
8243 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8244 section offset to minimal symbol addresses.
8245 * mdebugread.c (parse_partial_symbols): Don't add section
8246 offset to minimal symbol addresses.
8247 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8248 offset to minimal symbol addresses.
8249
77e371c0
TT
82502014-02-26 Tom Tromey <tromey@redhat.com>
8251
8252 * ada-lang.c (ada_main_name): Update.
8253 (ada_add_standard_exceptions): Update.
8254 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8255 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8256 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8257 * auxv.c (ld_so_xfer_auxv): Update.
8258 * avr-tdep.c (avr_scan_prologue): Update.
8259 * ax-gdb.c (gen_var_ref): Update.
8260 * blockframe.c (get_pc_function_start)
8261 (find_pc_partial_function_gnu_ifunc): Update.
8262 * breakpoint.c (create_overlay_event_breakpoint)
8263 (create_longjmp_master_breakpoint)
8264 (create_std_terminate_master_breakpoint)
8265 (create_exception_master_breakpoint): Update.
8266 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8267 * c-valprint.c (c_val_print): Update.
8268 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8269 * common/agent.c (agent_look_up_symbols): Update.
8270 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8271 * dwarf2loc.c (call_site_to_target_addr): Update.
8272 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8273 * elfread.c (elf_gnu_ifunc_record_cache)
8274 (elf_gnu_ifunc_resolve_by_got): Update.
8275 * findvar.c (default_read_var_value): Update.
8276 * frame.c (inside_main_func): Update.
8277 * frv-tdep.c (frv_frame_this_id): Update.
8278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8279 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8280 Update.
8281 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8282 (hppa_hpux_find_dummy_bpaddr): Update.
8283 * hppa-tdep.c (hppa_symbol_address): Update.
8284 * infcmd.c (until_next_command): Update.
8285 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8286 Update.
8287 * linespec.c (minsym_found, add_minsym): Update.
8288 * linux-nat.c (get_signo): Update.
8289 * linux-thread-db.c (inferior_has_bug): Update.
8290 * m32c-tdep.c (m32c_return_value)
8291 (m32c_m16c_address_to_pointer): Update.
8292 * m32r-tdep.c (m32r_frame_this_id): Update.
8293 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8294 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8295 * maint.c (maintenance_translate_address): Update.
8296 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8297 (frob_address): New function.
8298 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8299 frob_address. Rename parameter to "pc_in".
8300 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8301 addresses.
8302 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8303 Update.
8304 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8305 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8306 * objc-lang.c (find_objc_msgsend): Update.
8307 * objfiles.c (objfile_relocate1): Update.
8308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8309 * p-valprint.c (pascal_val_print): Update.
8310 * parse.c (write_exp_msymbol): Update.
8311 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8312 (ppc_elfv2_skip_entrypoint): Update.
8313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8314 * printcmd.c (build_address_symbolic, msym_info)
8315 (address_info): Update.
8316 * proc-service.c (ps_pglobal_lookup): Update.
8317 * psymtab.c (find_pc_sect_psymtab_closer)
8318 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8319 Change msymbol parameter to bound_minimal_symbol.
8320 * ravenscar-thread.c (get_running_thread_id): Update.
8321 * remote.c (remote_check_symbols): Update.
8322 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8323 address.
8324 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8325 * solib-dsbt.c (lm_base): Update.
8326 * solib-frv.c (lm_base, main_got): Update.
8327 * solib-irix.c (locate_base): Update.
8328 * solib-som.c (som_solib_create_inferior_hook)
8329 (link_map_start): Update.
8330 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8331 * solib-svr4.c (elf_locate_base, enable_break): Update.
8332 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8333 (flush_ea_cache): Update.
8334 * stabsread.c (define_symbol, scan_file_globals): Update.
8335 * stack.c (find_frame_funname): Update.
8336 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8337 (debug_qf_find_pc_sect_symtab): Update.
8338 * symfile.c (simple_read_overlay_table)
8339 (simple_overlay_update): Update.
8340 * symfile.h (struct quick_symbol_functions)
8341 <find_pc_sect_symtab>: Change type of msymbol to
8342 bound_minimal_symbol.
8343 * symmisc.c (dump_msymbols): Update.
8344 * symtab.c (find_pc_sect_symtab_via_partial)
8345 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8346 (search_symbols, print_msymbol_info): Update.
8347 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8348 (MSYMBOL_VALUE_ADDRESS): Redefine.
8349 (BMSYMBOL_VALUE_ADDRESS): New macro.
8350 * tracepoint.c (scope_info): Update.
8351 * tui/tui-disasm.c (tui_find_disassembly_address)
8352 (tui_get_begin_asm_address): Update.
8353 * valops.c (find_function_in_inferior): Update.
8354 * value.c (value_static_field, value_fn_field): Update.
8355
3b7344d5
TT
83562014-02-26 Tom Tromey <tromey@redhat.com>
8357
8358 * ada-lang.c (ada_update_initial_language): Update.
8359 (ada_main_name, ada_has_this_exception_support): Update.
8360 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8361 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8362 * arm-tdep.c (arm_skip_stub): Update.
8363 * auxv.c (ld_so_xfer_auxv): Update.
8364 * avr-tdep.c (avr_scan_prologue): Update.
8365 * ax-gdb.c (gen_var_ref): Update.
8366 * breakpoint.c (struct breakpoint_objfile_data)
8367 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8368 type to bound_minimal_symbol.
8369 (create_overlay_event_breakpoint)
8370 (create_longjmp_master_breakpoint)
8371 (create_std_terminate_master_breakpoint)
8372 (create_exception_master_breakpoint): Update.
8373 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8374 * c-exp.y (classify_name): Update.
8375 * coffread.c (coff_symfile_read): Update.
8376 * common/agent.c (agent_look_up_symbols): Update.
8377 * d-lang.c (d_main_name): Update.
8378 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8379 * dec-thread.c (enable_dec_thread): Update.
8380 * dwarf2loc.c (call_site_to_target_addr): Update.
8381 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8382 * eval.c (evaluate_subexp_standard): Update.
8383 * findvar.c (struct minsym_lookup_data) <result>: Change type
8384 to bound_minimal_symbol.
8385 <objfile>: Remove.
8386 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8387 * frame.c (inside_main_func): Update.
8388 * frv-tdep.c (frv_frame_this_id): Update.
8389 * gcore.c (call_target_sbrk): Update.
8390 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8391 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8392 Update.
8393 * go-lang.c (go_main_name): Update.
8394 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8395 (hppa_hpux_find_import_stub_for_addr): Update.
8396 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8397 Update. Change return type.
8398 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8399 type.
8400 * jit.c (jit_breakpoint_re_set_internal): Update.
8401 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8402 Update.
8403 * linux-nat.c (get_signo): Update.
8404 * linux-thread-db.c (inferior_has_bug): Update
8405 * m32c-tdep.c (m32c_return_value)
8406 (m32c_m16c_address_to_pointer): Update.
8407 * m32r-tdep.c (m32r_frame_this_id): Update.
8408 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8409 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8410 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8411 lookup_minimal_symbol. Change return type.
8412 (lookup_minimal_symbol): Remove.
8413 (lookup_bound_minimal_symbol): Update.
8414 (lookup_minimal_symbol_text): Change return type.
8415 (lookup_minimal_symbol_solib_trampoline): Change return type.
8416 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8417 (lookup_minimal_symbol_solib_trampoline): Change return type.
8418 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8419 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8420 (value_nsstring, find_imps): Update.
8421 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8422 * p-lang.c (pascal_main_name): Update.
8423 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8424 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8425 * proc-service.c (ps_pglobal_lookup): Update.
8426 * ravenscar-thread.c (get_running_thread_msymbol): Change
8427 return type.
8428 (has_ravenscar_runtime, get_running_thread_id): Update.
8429 * remote.c (remote_check_symbols): Update.
8430 * sol-thread.c (ps_pglobal_lookup): Update.
8431 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8432 * solib-dsbt.c (lm_base): Update.
8433 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8434 Update.
8435 * solib-irix.c (locate_base): Update.
8436 * solib-som.c (som_solib_create_inferior_hook)
8437 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8438 Update.
8439 * solib-spu.c (spu_enable_break): Update.
8440 * solib-svr4.c (elf_locate_base, enable_break): Update.
8441 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8442 (flush_ea_cache): Update.
8443 * stabsread.c (define_symbol): Update.
8444 * symfile.c (simple_read_overlay_table): Update.
8445 * symtab.c (find_pc_sect_line): Update.
8446 * tracepoint.c (scope_info): Update.
8447 * tui-disasm.c (tui_get_begin_asm_address): Update.
8448 * value.c (value_static_field): Update.
8449
40c1a007
TT
84502014-02-26 Tom Tromey <tromey@redhat.com>
8451
8452 * minsyms.c (prim_record_minimal_symbol_full): Use
8453 SET_MSYMBOL_VALUE_ADDRESS.
8454 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8455 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8456 SET_MSYMBOL_VALUE_ADDRESS.
8457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8458 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8459
efd66ac6
TT
84602014-02-26 Tom Tromey <tromey@redhat.com>
8461
8462 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8463 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8464 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8465 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8466 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8467 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8468 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8469 * ada-lang.c (ada_main_name): Update.
8470 (ada_lookup_simple_minsym): Update.
8471 (ada_make_symbol_completion_list): Update.
8472 (ada_add_standard_exceptions): Update.
8473 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8474 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8475 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8476 * arm-tdep.c (skip_prologue_function): Update.
8477 (arm_skip_stack_protector, arm_skip_stub): Update.
8478 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8479 (arm_wince_skip_main_prologue): Update.
8480 * auxv.c (ld_so_xfer_auxv): Update.
8481 * avr-tdep.c (avr_scan_prologue): Update.
8482 * ax-gdb.c (gen_var_ref): Update.
8483 * block.c (call_site_for_pc): Update.
8484 * blockframe.c (get_pc_function_start): Update.
8485 (find_pc_partial_function_gnu_ifunc): Update.
8486 * breakpoint.c (create_overlay_event_breakpoint): Update.
8487 (create_longjmp_master_breakpoint): Update.
8488 (create_std_terminate_master_breakpoint): Update.
8489 (create_exception_master_breakpoint): Update.
8490 (resolve_sal_pc): Update.
8491 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8492 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8493 Update.
8494 * c-valprint.c (c_val_print): Update.
8495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8496 * coffread.c (coff_symfile_read): Update.
8497 * common/agent.c (agent_look_up_symbols): Update.
8498 * dbxread.c (find_stab_function_addr): Update.
8499 (end_psymtab): Update.
8500 * dwarf2loc.c (call_site_to_target_addr): Update.
8501 (func_verify_no_selftailcall): Update.
8502 (tailcall_dump): Update.
8503 (call_site_find_chain_1): Update.
8504 (dwarf_expr_reg_to_entry_parameter): Update.
8505 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8506 (elf_gnu_ifunc_resolve_by_got): Update.
8507 * f-valprint.c (info_common_command): Update.
8508 * findvar.c (read_var_value): Update.
8509 * frame.c (get_prev_frame_1): Update.
8510 (inside_main_func): Update.
8511 * frv-tdep.c (frv_skip_main_prologue): Update.
8512 (frv_frame_this_id): Update.
8513 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8514 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8515 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8516 (gnuv3_skip_trampoline): Update.
8517 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8518 (hppa64_hpux_in_solib_call_trampoline): Update.
8519 (hppa_hpux_skip_trampoline_code): Update.
8520 (hppa64_hpux_search_dummy_call_sequence): Update.
8521 (hppa_hpux_find_import_stub_for_addr): Update.
8522 (hppa_hpux_find_dummy_bpaddr): Update.
8523 * hppa-tdep.c (hppa_symbol_address)
8524 (hppa_lookup_stub_minimal_symbol): Update.
8525 * i386-tdep.c (i386_skip_main_prologue): Update.
8526 (i386_pe_skip_trampoline_code): Update.
8527 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8528 * infcall.c (get_function_name): Update.
8529 * infcmd.c (until_next_command): Update.
8530 * jit.c (jit_breakpoint_re_set_internal): Update.
8531 (jit_inferior_init): Update.
8532 * linespec.c (minsym_found): Update.
8533 (add_minsym): Update.
8534 * linux-fork.c (info_checkpoints_command): Update.
8535 * linux-nat.c (get_signo): Update.
8536 * linux-thread-db.c (inferior_has_bug): Update.
8537 * m32c-tdep.c (m32c_return_value): Update.
8538 (m32c_m16c_address_to_pointer): Update.
8539 (m32c_m16c_pointer_to_address): Update.
8540 * m32r-tdep.c (m32r_frame_this_id): Update.
8541 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8542 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8543 * maint.c (maintenance_translate_address): Update.
8544 * minsyms.c (add_minsym_to_hash_table): Update.
8545 (add_minsym_to_demangled_hash_table): Update.
8546 (msymbol_objfile): Update.
8547 (lookup_minimal_symbol): Update.
8548 (iterate_over_minimal_symbols): Update.
8549 (lookup_minimal_symbol_text): Update.
8550 (lookup_minimal_symbol_by_pc_name): Update.
8551 (lookup_minimal_symbol_solib_trampoline): Update.
8552 (lookup_minimal_symbol_by_pc_section_1): Update.
8553 (lookup_minimal_symbol_and_objfile): Update.
8554 (prim_record_minimal_symbol_full): Update.
8555 (compare_minimal_symbols): Update.
8556 (compact_minimal_symbols): Update.
8557 (build_minimal_symbol_hash_tables): Update.
8558 (install_minimal_symbols): Update.
8559 (terminate_minimal_symbol_table): Update.
8560 (find_solib_trampoline_target): Update.
8561 (minimal_symbol_upper_bound): Update.
8562 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8563 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8564 (mips_skip_pic_trampoline_code): Update.
8565 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8566 * objc-lang.c (selectors_info): Update.
8567 (classes_info): Update.
8568 (find_methods): Update.
8569 (find_imps): Update.
8570 (find_objc_msgsend): Update.
8571 * objfiles.c (objfile_relocate1): Update.
8572 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8573 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8574 * p-valprint.c (pascal_val_print): Update.
8575 * parse.c (write_exp_msymbol): Update.
8576 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8577 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8578 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8579 * printcmd.c (build_address_symbolic): Update.
8580 (sym_info): Update.
8581 (address_info): Update.
8582 * proc-service.c (ps_pglobal_lookup): Update.
8583 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8584 (find_pc_sect_psymtab): Update.
8585 * python/py-framefilter.c (py_print_frame): Update.
8586 * ravenscar-thread.c (get_running_thread_id): Update.
8587 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8588 Update.
8589 * remote.c (remote_check_symbols): Update.
8590 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8591 (rs6000_skip_trampoline_code): Update.
8592 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8593 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8594 * solib-dsbt.c (lm_base): Update.
8595 * solib-frv.c (lm_base): Update.
8596 (main_got): Update.
8597 * solib-irix.c (locate_base): Update.
8598 * solib-som.c (som_solib_create_inferior_hook): Update.
8599 (som_solib_desire_dynamic_linker_symbols): Update.
8600 (link_map_start): Update.
8601 * solib-spu.c (spu_enable_break): Update.
8602 (ocl_enable_break): Update.
8603 * solib-svr4.c (elf_locate_base): Update.
8604 (enable_break): Update.
8605 * spu-tdep.c (spu_get_overlay_table): Update.
8606 (spu_catch_start): Update.
8607 (flush_ea_cache): Update.
8608 * stabsread.c (define_symbol): Update.
8609 (scan_file_globals): Update.
8610 * stack.c (find_frame_funname): Update.
8611 (frame_info): Update.
8612 * symfile.c (simple_read_overlay_table): Update.
8613 (simple_overlay_update): Update.
8614 * symmisc.c (dump_msymbols): Update.
8615 * symtab.c (fixup_section): Update.
8616 (find_pc_sect_line): Update.
8617 (skip_prologue_sal): Update.
8618 (search_symbols): Update.
8619 (print_msymbol_info): Update.
8620 (rbreak_command): Update.
8621 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8622 (completion_list_objc_symbol): Update.
8623 (default_make_symbol_completion_list_break_on): Update.
8624 * tracepoint.c (scope_info): Update.
8625 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8626 (tui_get_begin_asm_address): Update.
8627 * valops.c (find_function_in_inferior): Update.
8628 * value.c (value_static_field): Update.
8629 (value_fn_field): Update.
8630
50e65b17
TT
86312014-02-26 Tom Tromey <tromey@redhat.com>
8632
8633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8634 bound minimal symbols. Move code that knows about minsym
8635 table layout...
8636 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8637 function.
8638 * minsyms.h (minimal_symbol_upper_bound): Declare.
8639 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8640 minimal_symbol_upper_bound.
8641
1b588015
JB
86422014-02-27 Joel Brobecker <brobecker@adacore.com>
8643
8644 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8645 Use the type's name if its basic type does not have a tag.
8646
dbb9c2b1
JB
86472014-02-27 Joel Brobecker <brobecker@adacore.com>
8648
8649 * dwarf2read.c (read_subrange_type): Add comment.
8650
55426c9d
JB
86512014-02-27 Joel Brobecker <brobecker@adacore.com>
8652
8653 * dwarf2read.c (update_enumeration_type_from_children): New
8654 function, mostly extracted from process_structure_scope.
8655 (read_enumeration_type): Call update_enumeration_type_from_children.
8656 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8657 and flag_flag_enum fields.
8658
f2fce0ca
PA
86592014-02-26 Pedro Alves <palves@redhat.com>
8660
8661 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8662 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8663 to_xfer_partial method.
8664
7a44e40e
PA
86652014-02-26 Pedro Alves <palves@redhat.com>
8666
8667 * target.c (complete_target_initialization): Don't install
8668 default_xfer_partial as to_xfer_partial hook.
8669 (nomemory): Delete.
8670 (update_current_target): Don't INHERIT nor de_fault
8671 deprecated_xfer_memory. Delete de_fault macro.
8672 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8673 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8674 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8675 field.
8676
bd265cd0
PA
86772014-02-26 Pedro Alves <palves@redhat.com>
8678
8679 * go32-nat.c (my_write_child): New function.
8680 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8681 (go32_xfer_partial): New function.
8682 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8683 Instead install a to_xfer_partial hook.
8684
9d46c4e5
PA
86852014-02-26 Pedro Alves <palves@redhat.com>
8686
8687 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8688 to_xfer_partial helper. Rewrite.
8689 (procfs_xfer_partial): New function.
8690 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8691 Install a to_xfer_partial hook.
8692
a1583b1f
PA
86932014-02-26 Pedro Alves <palves@redhat.com>
8694
8695 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8696 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8697 (m32r_xfer_partial): New function.
8698 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8699 Install a to_xfer_partial hook.
8700
6df1b29f
PA
87012014-02-26 Pedro Alves <palves@redhat.com>
8702
8703 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8704 helper.
8705 (mips_xfer_partial): New function.
8706 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8707 hook. Install a to_xfer_partial hook.
8708
dc53a7ad
JB
87092014-02-26 Joel Brobecker <brobecker@adacore.com>
8710
8711 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8712 * gdbtypes.c (create_array_type_with_stride): New function,
8713 renaming create_array_type, but with an added parameter
8714 called "bit_stride".
8715 (create_array_type): Re-implement using
8716 create_array_type_with_stride.
8717 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8718 and DW_AT_bit_stride attributes.
8719
12ab52e9
PA
87202014-02-26 Pedro Alves <palves@redhat.com>
8721
8722 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8723 task-specific breakpoints.
8724
d16461ae
PA
87252014-02-25 Pedro Alves <palves@redhat.com>
8726
8727 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8728 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8729
a8b16220
SS
87302014-02-25 Stan Shebs <stan@codesourcery.com>
8731
8732 * defs.h: Annotate comments for Doxygen.
8733
b9e795ee
TT
87342014-02-25 Tom Tromey <tromey@redhat.com>
8735
8736 * target.h (target_ignore): Don't declare.
8737 * target.c (target_ignore): Remove.
8738
849c862e
JK
87392014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 PR gdb/16626
8742 * auto-load.c (auto_load_objfile_script_1): Change filename to
8743 debugfile.
8744
475109d8
JB
87452014-02-25 Joel Brobecker <brobecker@adacore.com>
8746
8747 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8748 documentation. Adjust prototype to match the target_ops
8749 to_xfer_partial method. Adjust implementation accordingly.
8750
e186c3bd
HZ
87512014-02-25 Hui Zhu <hui@codesourcery.com>
8752
8753 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8754 to_traceframe_info.
8755
6d451942
KB
87562014-02-25 Kevin Buettner <kevinb@redhat.com>
8757
041ab8b4 8758 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8759 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8760 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8761 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8762 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8763 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8764 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8765 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8766 New constants.
8767 (rl78_register_type): Use a data pointer type for SP and
8768 new pseudo registers mentioned above. Use a 16 bit integer
8769 type for all other register pairs.
8770 (rl78_register_name, rl78_g10_register_name): Update for
8771 new pseudo registers.
8772 (rl78_pseudo_register_read): Likewise.
8773 (rl78_pseudo_register_write): Likewise.
8774 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8775 to the newly added pseudo registers.
8776
eddf0bae
DE
87772014-02-24 Doug Evans <dje@google.com>
8778
8779 * value.c (record_latest_value): Fix comment.
8780 * printcmd.c (print_command_1): Remove code to handle -1 return from
8781 record_latest_value.
8782
e96027e0
PA
87832014-02-24 Pedro Alves <palves@redhat.com>
8784
8785 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8786 deprecated_xfer_memory hook.
8787 (procfs_xfer_partial): Call procfs_xfer_memory instead
8788 of the deprecated_xfer_memory target hook.
8789 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8790 helper.
8791
0837c976
YZ
87922014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8793
8794 * windows-nat.c (windows_xfer_shared_libraries): Return
8795 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8796 requested object is TARGET_OBJECT_LIBRARIES.
8797
bc113b4e
YQ
87982014-02-24 Yao Qi <yao@codesourcery.com>
8799
8800 * target.h (enum target_xfer_status)
8801 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8802 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8803 explicitly. New.
8804 * corefile.c (memory_error_message): User updated.
8805 * exec.c (section_table_read_available_memory): Likewise.
8806 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8807 * target.c (target_xfer_status_to_string): Likewise.
8808 (raw_memory_xfer_partial): Likewise.
8809 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8810 * valops.c (read_value_memory): Likewise.
8811 * exec.h: Update comments.
8812
01cb8804
YQ
88132014-02-24 Yao Qi <yao@codesourcery.com>
8814
8815 * target.c (target_xfer_status_to_string): Rename argument err
8816 to status.
8817 * target.h (target_xfer_status_to_string): Update declaration.
8818 Replace target_xfer_error_to_string with
8819 target_xfer_status_to_string in comment.
8820
93063aa6
YQ
88212014-02-24 Yao Qi <yao@codesourcery.com>
8822
8823 * mips-linux-nat.c (super_close): Update its type.
8824 (mips_linux_close): Pass 'self' to super_close.
8825
5c328c05
YQ
88262014-02-24 Yao Qi <yao@codesourcery.com>
8827
8828 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8829 * corefile.c (read_memory): Adjusted.
8830 * target.c (target_write_with_progress): Adjusted.
8831
f73023dd
YQ
88322014-02-23 Yao Qi <yao@codesourcery.com>
8833
8834 Revert two patches:
8835
8836 2013-10-25 Yao Qi <yao@codesourcery.com>
8837
8838 * remote.c (remote_traceframe_info): Return early if
8839 traceframe is not selected.
8840
8841 2013-07-19 Yao Qi <yao@codesourcery.com>
8842
8843 * target.c (update_current_target): Change the default action
8844 of 'to_traceframe_info' from tcomplain to return_zero.
8845 * target.h (struct target_ops) <to_traceframe_info>: Add more
8846 comments.
8847
5a2eb0ef
YQ
88482014-02-23 Yao Qi <yao@codesourcery.com>
8849
8850 * valops.c (read_value_memory): Rewrite it. Call
8851 target_xfer_partial in a loop.
8852 * exec.h (section_table_available_memory): Remove declaration.
8853 Move comments to ...
8854 * exec.c (section_table_available_memory): ... here. Make it
8855 static.
8856
1ee79381
YQ
88572014-02-23 Yao Qi <yao@codesourcery.com>
8858
8859 * exec.c (section_table_read_available_memory): New function.
8860 * exec.h (section_table_read_available_memory): Declare.
8861 * ctf.c (ctf_xfer_partial): Call
8862 section_table_read_available_memory.
8863 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8864
1ca49d37
YQ
88652014-02-23 Yao Qi <yao@codesourcery.com>
8866
8867 * ctf.c (ctf_xfer_partial): Move code to ...
8868 * exec.c (exec_read_partial_read_only): ... it. New function.
8869 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8870 * tracefile.c: Include "exec.h".
8871 * exec.h (exec_read_partial_read_only): Declare.
8872
a283690e
YQ
88732014-02-23 Yao Qi <yao@codesourcery.com>
8874
8875 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8876 (tfile_has_memory): Remove.
8877 (init_tfile_ops): Don't set fields to_has_all_memory and
8878 to_has_memory of tfile_ops.
8879 * tracefile.c (tracefile_has_all_memory): New function.
8880 (tracefile_has_memory): New function.
8881 (init_tracefile_ops): Initialize fields to_has_all_memory and
8882 to_has_memory of 'ops'.
8883
12e03cd0
YQ
88842014-02-23 Yao Qi <yao@codesourcery.com>
8885
8886 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8887 (ctf_thread_alive, ctf_get_trace_status): Remove.
8888 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8889 init_tracefile_ops.
8890 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8891 (tfile_has_stack, tfile_has_registers): Remove.
8892 (tfile_thread_alive): Remove.
8893 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8894 init_tracefile_ops.
8895 * tracefile.c (tracefile_has_stack): New function.
8896 (tracefile_has_registers): New function.
8897 (tracefile_thread_alive): New function.
8898 (tracefile_get_trace_status): New function.
8899 (init_tracefile_ops): New function.
8900 * tracefile.h (init_tracefile_ops): Declare.
8901
11395323
YQ
89022014-02-23 Yao Qi <yao@codesourcery.com>
8903
8904 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8905 (O_LARGEFILE): Likewise.
8906 (tfile_ops): Likewise.
8907 (TRACE_HEADER_SIZE): Likewise.
8908 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8909 (cur_data_size): Likewise.
8910 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8911 (tfile_close, tfile_files_info): Likewise.
8912 (tfile_get_trace_status): Likewise.
8913 (tfile_get_tracepoint_status): Likewise.
8914 (tfile_get_traceframe_address): Likewise.
8915 (tfile_trace_find, match_blocktype): Likewise.
8916 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8917 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8918 (tfile_get_trace_state_variable_value): Likewise.
8919 (tfile_has_all_memory, tfile_has_memory): Likewise.
8920 (tfile_has_stack, tfile_has_registers): Likewise.
8921 (tfile_thread_alive, build_traceframe_info): Likewise.
8922 (tfile_traceframe_info, init_tfile_ops): Likewise.
8923 (_initialize_tracepoint): Don't call init_tfile_ops
8924 and add_target_with_completer.
8925 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8926 exec.h, completer.h and filenames.h.
8927 (_initialize_tracefile_tfile): New function.
8928
7951c4eb
YQ
89292014-02-23 Yao Qi <yao@codesourcery.com>
8930
8931 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8932 tracefile-tfile.o.
8933 (HFILES_NO_SRCDIR): Add tracefile.h.
8934 * ctf.c: Include "tracefile.h".
8935 * tracefile.h: New file.
8936 * tracefile.c: New file
8937 * tracefile-tfile.c: New file.
8938 * tracepoint.c: Include "tracefile.h".
8939 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8940 (stop_reason_names): Add const.
8941 (trace_file_writer_xfree): Move it to tracefile.c.
8942 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8943 (trace_save_ctf): Likewise.
8944 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8945 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8946 (tfile_write_header, tfile_write_regblock_type): Likewise.
8947 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8948 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8949 (tfile_write_raw_data, tfile_end): Likewise.
8950 (tfile_trace_file_writer_new): Likewise.
8951 (free_uploaded_tp): Make it extern.
8952 (free_uploaded_tsv): Make it extern.
8953 (_initialize_tracepoint): Move code to register command 'tsave'
8954 to tracefile.c.
8955 * tracepoint.h (stop_reason_names): Declare.
8956 (struct trace_frame_write_ops): Move it to tracefile.h.
8957 (struct trace_file_write_ops): Likewise.
8958 (struct trace_file_writer): Likewise.
8959 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8960
184cd072
JK
89612014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8962
8963 PR gdb/16594
8964 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8965 process name.
8966 (get_cores_used_by_process): New parameter num_cores, use it.
8967 (linux_xfer_osdata_processes): Pass num_cores to it.
8968 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8969 process name.
8970
c63528fc
AK
89712014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8972
8973 * target.c (memory_xfer_partial): Fix length arg in call to
8974 breakpoint_xfer_memory.
8975
d7b30f67
SDJ
89762014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8977
8978 PR tdep/16397
8979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8980 number comes after the + or - signs. Adjust length of register
8981 name to be extracted.
8982
8838afaf
TT
89832014-02-20 Tom Tromey <tromey@redhat.com>
8984
8985 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8986 (ada_varobj_ops): Mark "extern".
8987
05227d14
TT
89882014-02-20 Tom Tromey <tromey@redhat.com>
8989
8990 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8991
1254eefc
DE
89922014-02-20 Doug Evans <xdje42@gmail.com>
8993
8994 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8995 All callers updated.
8996 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8997 All callers updated.
8998 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8999 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9000
adde2bff
DE
90012014-02-20 lin zuojian <manjian2006@gmail.com>
9002 Joel Brobecker <brobecker@adacore.com>
9003 Doug Evans <xdje42@gmail.com>
9004
9005 PR symtab/16581
9006 * dwarf2read.c (struct die_info): New member in_process.
9007 (reset_die_in_process): New function.
9008 (process_die): Set it at the start, reset when returning.
9009 (inherit_abstract_dies): Only call process_die if origin_child_die
9010 not already being processed.
9011
3be75f87
JB
90122014-02-20 Joel Brobecker <brobecker@adacore.com>
9013
9014 * windows-nat.c (handle_unload_dll): Add function documentation.
9015 (do_initial_windows_stuff): Add comment explaining why we wait
9016 until after inferior initialization has finished before
9017 processing all DLLs.
9018
47f7ffdb
JB
90192014-02-20 Joel Brobecker <brobecker@adacore.com>
9020
9021 * windows-nat.c (get_module_name): Delete.
9022 (windows_get_exec_module_filename): New function, mostly
9023 inspired from get_module_name.
9024 (windows_pid_to_exec_file): Replace call to get_module_name
9025 by call to windows_get_exec_module_filename.
9026
1cd9feab
JB
90272014-02-20 Joel Brobecker <brobecker@adacore.com>
9028
9029 * windows-nat.c (handle_load_dll): Rewrite this function's
9030 introductory comment. Remove code using get_module_name
9031 to get the DLL's name.
9032
ea39ad35
JB
90332014-02-20 Joel Brobecker <brobecker@adacore.com>
9034
9035 * windows-nat.c (get_windows_debug_event): Ignore
9036 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9037 if windows_initialization_done == 0.
9038 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9039 Adjust implementation to always load all DLLs.
9040 (do_initial_windows_stuff): Replace call to
9041 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9042
95060284
JB
90432014-02-20 Joel Brobecker <brobecker@adacore.com>
9044
9045 * windows-nat.c (_initialize_windows_nat): Deprecate the
9046 "dll-symbols" command. Turn the "add-shared-symbol-files"
9047 and "assf" aliases into commands, and deprecate them as well.
9048 * NEWS: Add entry explaining that "dll-symbols" and its two
9049 aliases are now deprecated.
9050
8d4fdb12
JB
90512014-02-20 Joel Brobecker <brobecker@adacore.com>
9052
9053 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9054 new-line in debug string. Remove trailing spaces.
9055
1b281443
SS
90562014-02-19 Stan Shebs <stan@codesourcery.com>
9057
9058 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9059
f7bd0f78
SC
90602014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9061
9062 * NEWS: Add entry for the new feature
9063 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9064 and class values.
9065
399ebc3d
SS
90662014-02-19 Stan Shebs <stan@codesourcery.com>
9067
9068 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9069
c658158d
PA
90702014-02-19 Pedro Alves <palves@redhat.com>
9071
9072 * common/ptid.h (struct ptid): Mention that process_stratum
9073 targets should prefer ptid.lwp.
9074
ba348170
PA
90752014-02-19 Pedro Alves <palves@redhat.com>
9076
9077 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9078 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9079 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9080 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9081 store remote thread ids rather than ptid.tid.
9082 (_initialize_remote): Adjust.
9083
ac01945b
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.c (target_get_unwinder): Rewrite.
9087 (target_get_tailcall_unwinder): Rewrite.
9088 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9089 (record_btrace_to_get_tailcall_unwinder): New function.
9090 (init_record_btrace_ops): Update.
9091 * target.h (struct target_ops) <to_get_unwinder,
9092 to_get_tailcall_unwinder>: Now function pointers. Use
9093 TARGET_DEFAULT_RETURN.
9094
8476dc92
TT
90952014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9098 argument.
9099 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9100
c0eca49f
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9104 directly.
9105 * target-delegates.c: Rebuild.
9106 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9107 TARGET_DEFAULT_FUNC.
9108 * target.c (default_target_decr_pc_after_break): Rename from
9109 forward_target_decr_pc_after_break. Simplify.
9110 (target_decr_pc_after_break): Rely on delegation.
9111
596b6b39
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.c (update_current_target): Do not INHERIT to_doc or
9115 to_magic. Do not de_fault to_open or to_close.
9116
b427c1bc
TT
91172014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * gcore.h (objfile_find_memory_regions): Declare.
9120 * gcore.c (objfile_find_memory_regions): No longer static. Add
9121 "self" argument.
9122 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9123 * exec.c: Include gcore.h.
9124 (exec_set_find_memory_regions): Remove.
9125 (exec_find_memory_regions): Remove.
9126 (exec_do_find_memory_regions): Remove.
9127 (init_exec_ops): Update.
9128 * defs.h (exec_set_find_memory_regions): Remove.
9129
9b144037
TT
91302014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * target-delegates.c: Rebuild.
9133 * target.h (struct target_ops) <to_extra_thread_info,
9134 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9135 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9136 not 0, in TARGET_DEFAULT_RETURN.
9137
555bbdeb
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.c (complete_target_initialization): Remove casts. Use
9141 return_zero_has_execution.
9142 (return_zero): Add "ignore" argument.
9143 (return_zero_has_execution): New function.
9144 (init_dummy_target): Remove casts. Use
9145 return_zero_has_execution.
9146
be4ddd36
TT
91472014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target.c (update_current_target): Update comments. Do not
9150 INHERIT to_stratum.
9151
2117c711
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9155 needed.
9156 * corelow.c (core_read_description): Delegate when needed.
9157 * remote.c (remote_read_description): Delegate when needed.
9158 * target-delegates.c: Rebuild.
9159 * target.c (target_read_description): Rewrite.
9160 * target.h (struct target_ops) <to_read_description>: Update
9161 comment. Use TARGET_DEFAULT_RETURN.
9162
e88ef65c
TT
91632014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9167 to_can_run.
9168 (find_default_run_target): Check against delegate_can_run.
9169 * target.h (struct target_ops) <to_can_run>: Use
9170 TARGET_DEFAULT_RETURN.
9171
86a0854a
TT
91722014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target-delegates.c: Rebuild.
9175 * target.c (target_disconnect): Unconditionally delegate.
9176 * target.h (struct target_ops) <to_disconnect>: Use
9177 TARGET_DEFAULT_NORETURN.
9178
ee97f592
TT
91792014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * record.c (record_stop): Unconditionally delegate.
9182 * target-delegates.c: Rebuild.
9183 * target.c (target_stop_recording): Unconditionally delegate.
9184 * target.h (struct target_ops) <to_stop_recording>: Use
9185 TARGET_DEFAULT_IGNORE.
9186
6dc7fcf4
TT
91872014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target-delegates.c: Rebuild.
9190 * target.c (target_enable_btrace): Unconditionally delegate.
9191 * target.h (struct target_ops) <to_enable_btrace>: Use
9192 TARGET_DEFAULT_NORETURN.
9193
eb5b20d4
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target-delegates.c: Rebuild.
9197 * target.c (target_read_btrace): Unconditionally delegate.
9198 * target.h (struct target_ops) <to_read_btrace>: Use
9199 TARGET_DEFAULT_NORETURN.
9200
9ace480d
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target-delegates.c: Rebuild.
9204 * target.c (target_teardown_btrace): Unconditionally delegate.
9205 * target.h (struct target_ops) <to_teardown_btrace>: Use
9206 TARGET_DEFAULT_NORETURN.
9207
8dc292d3
TT
92082014-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 * target-delegates.c: Rebuild.
9211 * target.c (target_disable_btrace): Unconditionally delegate.
9212 * target.h (struct target_ops) <to_disable_btrace>: Use
9213 TARGET_DEFAULT_NORETURN.
9214
58a5184e
TT
92152014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target-delegates.c: Rebuild.
9218 * target.c (default_search_memory): New function.
9219 (simple_search_memory): Update comment.
9220 (target_search_memory): Unconditionally delegate.
9221 * target.h (struct target_ops) <to_search_memory>: Use
9222 TARGET_DEFAULT_FUNC.
9223
8de71aab
TT
92242014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * auxv.c (default_auxv_parse): No longer static.
9227 (target_auxv_parse): Unconditionally delegate.
9228 * auxv.h (default_auxv_parse): Declare.
9229 * target-delegates.c: Rebuild.
9230 * target.c: Include auxv.h.
9231 * target.h (struct target_ops) <to_auxv_parse>: Use
9232 TARGET_DEFAULT_FUNC.
9233
6b2c5a57
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target-delegates.c: Rebuild.
9237 * target.c (target_memory_map): Unconditionally delegate.
9238 * target.h (struct target_ops) <to_memory_map>: Use
9239 TARGET_DEFAULT_RETURN.
9240
cbffc065
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target-delegates.c: Rebuild.
9244 * target.c (target_thread_alive): Unconditionally delegate.
9245 * target.h (struct target_ops) <to_thread_alive>: Use
9246 TARGET_DEFAULT_RETURN.
9247
f09e2107
TT
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target-delegates.c: Rebuild.
9251 * target.c (target_save_record): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_save_record>: Use
9253 TARGET_DEFAULT_NORETURN.
9254
07366925
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_delete_record): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_delete_record>: Use
9260 TARGET_DEFAULT_NORETURN.
9261
dd2e9d25
TT
92622014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_record_is_replaying): Unconditionally
9266 delegate.
9267 * target.h (struct target_ops) <to_record_is_replaying>: Use
9268 TARGET_DEFAULT_RETURN.
9269
671e76cc
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (target_goto_record_begin): Unconditionally delegate.
9274 * target.h (struct target_ops) <to_goto_record_begin>: Use
9275 TARGET_DEFAULT_NORETURN.
9276
e9179bb3
TT
92772014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (target_goto_record_end): Unconditionally delegate.
9281 * target.h (struct target_ops) <to_goto_record_end>: Use
9282 TARGET_DEFAULT_NORETURN.
9283
05969c84
TT
92842014-02-19 Tom Tromey <tromey@redhat.com>
9285
9286 * target-delegates.c: Rebuild.
9287 * target.c (target_goto_record): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_goto_record>: Use
9289 TARGET_DEFAULT_NORETURN.
9290
3679abfa
TT
92912014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * target-delegates.c: Rebuild.
9294 * target.c (target_insn_history): Unconditionally delegate.
9295 * target.h (struct target_ops) <to_insn_history>: Use
9296 TARGET_DEFAULT_NORETURN.
9297
8444ab58
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target-delegates.c: Rebuild.
9301 * target.c (target_insn_history_from): Unconditionally delegate.
9302 * target.h (struct target_ops) <to_insn_history_from>: Use
9303 TARGET_DEFAULT_NORETURN.
9304
c29302cc
TT
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_insn_history_range): Unconditionally delegate.
9309 * target.h (struct target_ops) <to_insn_history_range>: Use
9310 TARGET_DEFAULT_NORETURN.
9311
170049d4
TT
93122014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_call_history): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_call_history>: Use
9317 TARGET_DEFAULT_NORETURN.
9318
16fc27d6
TT
93192014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_call_history_from): Unconditionally delegate.
9323 * target.h (struct target_ops) <to_call_history_from>: Use
9324 TARGET_DEFAULT_NORETURN.
9325
115d9817
TT
93262014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (target_call_history_range): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_call_history_range>: Use
9331 TARGET_DEFAULT_NORETURN.
9332
eb276a6b
TT
93332014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_verify_memory): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_verify_memory>: Use
9338 TARGET_DEFAULT_NORETURN.
9339
9e538d0d
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target-delegates.c: Rebuild.
9343 * target.c (target_core_of_thread): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_core_of_thread>: Use
9345 TARGET_DEFAULT_RETURN.
9346
f6fb2925
TT
93472014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * target-delegates.c: Rebuild.
9350 * target.c (target_flash_done): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_flash_done>: Use
9352 TARGET_DEFAULT_NORETURN.
9353
e8a6c6ac
TT
93542014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (target_flash_erase): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_flash_erase>: Use
9359 TARGET_DEFAULT_NORETURN.
9360
7e35c012
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target-delegates.c: Rebuild.
9364 * target.c (target_get_section_table): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_get_section_table>: Use
9366 TARGET_DEFAULT_RETURN.
9367
770234d3
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (target_pid_to_str): Unconditionally delegate.
9372 (init_dummy_target): Don't initialize to_pid_to_str.
9373 (default_pid_to_str): Rename from dummy_pid_to_str.
9374 * target.h (struct target_ops) <to_pid_to_str>: Use
9375 TARGET_DEFAULT_FUNC.
9376
09b0dc2b
TT
93772014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target-delegates.c: Rebuild.
9380 * target.c (target_find_new_threads): Unconditionally delegate.
9381 * target.h (struct target_ops) <to_find_new_threads>: Use
9382 TARGET_DEFAULT_RETURN.
9383
7d4f8efa
TT
93842014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target-delegates.c: Rebuild.
9387 * target.c (target_program_signals): Unconditionally delegate.
9388 * target.h (struct target_ops) <to_program_signals>: Use
9389 TARGET_DEFAULT_IGNORE.
9390
035cad7f
TT
93912014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target-delegates.c: Rebuild.
9394 * target.c (target_pass_signals): Unconditionally delegate.
9395 * target.h (struct target_ops) <to_pass_signals>: Use
9396 TARGET_DEFAULT_IGNORE.
9397
8d657035
TT
93982014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target-delegates.c: Rebuild.
9401 * target.c (default_mourn_inferior): New function.
9402 (target_mourn_inferior): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_mourn_inferior>: Use
9404 TARGET_DEFAULT_FUNC.
9405
098dba18
TT
94062014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (default_follow_fork): New function.
9410 (target_follow_fork): Unconditionally delegate.
9411 * target.h (struct target_ops) <to_follow_fork>: Use
9412 TARGET_DEFAULT_FUNC.
9413
423a4807
TT
94142014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (target_kill): Unconditionally delegate.
9418 * target.h (struct target_ops) <to_kill>: Use
9419 TARGET_DEFAULT_NORETURN.
9420
6c7e5e5c
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_masked_watch_num_registers): Unconditionally
9425 delegate.
9426 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9427 Use TARGET_DEFAULT_RETURN.
9428
8b1c364c
TT
94292014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_remove_mask_watchpoint): Unconditionally
9433 delegate.
9434 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9435 TARGET_DEFAULT_RETURN.
9436
cd4ae029
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target-delegates.c: Rebuild.
9440 * target.c (target_insert_mask_watchpoint): Unconditionally
9441 delegate.
9442 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9443 TARGET_DEFAULT_RETURN.
9444
a134316b
TT
94452014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_ranged_break_num_registers): Unconditionally
9449 delegate.
9450 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9451 Use TARGET_DEFAULT_RETURN.
9452
ad5989bd
TT
94532014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target-delegates.c: Rebuild.
9456 * target.c (target_fetch_registers): Unconditionally delegate.
9457 * target.h (struct target_ops) <to_fetch_registers>: Use
9458 TARGET_DEFAULT_NORETURN.
9459
46ee7e8d
TT
94602014-02-19 Tom Tromey <tromey@redhat.com>
9461
9462 * target-delegates.c: Rebuild.
9463 * target.c (update_current_target): Don't inherit or default
9464 to_stop.
9465 * target.h (struct target_ops) <to_stop>: Use
9466 TARGET_DEFAULT_IGNORE.
9467
843f59ed
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9472 to_can_run_breakpoint_commands.
9473 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9474 Use TARGET_DEFAULT_RETURN.
9475
ccfde2a0
TT
94762014-02-19 Tom Tromey <tromey@redhat.com>
9477
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9480 to_supports_evaluation_of_breakpoint_conditions.
9481 * target.h (struct target_ops)
9482 <to_supports_evaluation_of_breakpoint_conditions>: Use
9483 TARGET_DEFAULT_RETURN.
9484
0de91722
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target-delegates.c: Rebuild.
9488 * target.c (update_current_target): Don't inherit or default
9489 to_augmented_libraries_svr4_read.
9490 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9491 Use TARGET_DEFAULT_RETURN.
9492
9a7d8b48
TT
94932014-02-19 Tom Tromey <tromey@redhat.com>
9494
9495 * target-delegates.c: Rebuild.
9496 * target.c (update_current_target): Don't inherit or default
9497 to_can_use_agent.
9498 * target.h (struct target_ops) <to_can_use_agent>: Use
9499 TARGET_DEFAULT_RETURN.
9500
d9db5b21
TT
95012014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target-delegates.c: Rebuild.
9504 * target.c (update_current_target): Don't inherit or default
9505 to_use_agent.
9506 * target.h (struct target_ops) <to_use_agent>: Use
9507 TARGET_DEFAULT_NORETURN.
9508
92155eeb
TT
95092014-02-19 Tom Tromey <tromey@redhat.com>
9510
9511 * target-delegates.c: Rebuild.
9512 * target.c (update_current_target): Don't inherit or default
9513 to_traceframe_info.
9514 (return_null): Remove.
9515 * target.h (struct target_ops) <to_traceframe_info>: Use
9516 TARGET_DEFAULT_RETURN.
9517
d6522a22
TT
95182014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_static_tracepoint_markers_by_strid.
9523 * target.h (struct target_ops)
9524 <to_static_tracepoint_markers_by_strid>: Use
9525 TARGET_DEFAULT_NORETURN.
9526
4c3e4425
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_static_tracepoint_marker_at.
9532 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9533 Use TARGET_DEFAULT_RETURN.
9534
dcd6917f
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_set_permissions.
9540 * target.h (struct target_ops) <to_set_permissions>: Use
9541 TARGET_DEFAULT_IGNORE.
9542
22bcceee
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_get_tib_address.
9548 * target.h (struct target_ops) <to_get_tib_address>: Use
9549 TARGET_DEFAULT_NORETURN.
9550
8586ccaa
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_set_trace_notes.
9556 * target.h (struct target_ops) <to_set_trace_notes>: Use
9557 TARGET_DEFAULT_RETURN.
9558
91df8d1d
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't initialize
9563 to_set_trace_buffer_size.
9564 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9565 TARGET_DEFAULT_IGNORE.
9566
8d526939
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_set_circular_trace_buffer.
9572 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9573 TARGET_DEFAULT_IGNORE.
9574
0bcfeddf
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_set_disconnected_tracing.
9580 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9581 TARGET_DEFAULT_IGNORE.
9582
9249843f
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_get_min_fast_tracepoint_insn_len.
9588 (return_minus_one): Remove.
9589 * target.h (struct target_ops)
9590 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9591
ace92e7d
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_get_raw_trace_data.
9597 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9598 TARGET_DEFAULT_NORETURN.
9599
08120467
TT
96002014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_upload_trace_state_variables.
9605 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9606 Use TARGET_DEFAULT_RETURN.
9607
1e949b00
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_upload_tracepoints.
9613 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9614 TARGET_DEFAULT_RETURN.
9615
a2e6c147
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_save_trace_data.
9621 * target.h (struct target_ops) <to_save_trace_data>: Use
9622 TARGET_DEFAULT_NORETURN.
9623
959bcd0b
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_get_trace_state_variable_value.
9629 * target.h (struct target_ops)
9630 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9631
afc94e66
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_trace_find.
9637 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9638
e51c07ea
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target-delegates.c: Rebuild.
9642 * target.c (update_current_target): Don't inherit or default
9643 to_trace_stop.
9644 * target.h (struct target_ops) <to_trace_stop>: Use
9645 TARGET_DEFAULT_NORETURN.
9646
6fea14cd
TT
96472014-02-19 Tom Tromey <tromey@redhat.com>
9648
9649 * target-delegates.c: Rebuild.
9650 * target.c (update_current_target): Don't inherit or default
9651 to_get_tracepoint_status.
9652 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9653 TARGET_DEFAULT_NORETURN.
9654
4072d4ff
TT
96552014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9659 to_get_trace_status.
9660 * target.h (struct target_ops) <to_get_trace_status>: Use
9661 TARGET_DEFAULT_RETURN.
9662
25da2e80
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target-delegates.c: Rebuild.
9666 * target.c (update_current_target): Don't inherit or default
9667 to_trace_start.
9668 * target.h (struct target_ops) <to_trace_start>: Use
9669 TARGET_DEFAULT_NORETURN.
9670
86dd181d
TT
96712014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * target-delegates.c: Rebuild.
9674 * target.c (update_current_target): Don't inherit or default
9675 to_trace_set_readonly_regions.
9676 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9677 Use TARGET_DEFAULT_NORETURN.
9678
05c41993
TT
96792014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target-delegates.c: Rebuild.
9682 * target.c (update_current_target): Don't inherit or default
9683 to_disable_tracepoint.
9684 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9685 TARGET_DEFAULT_NORETURN.
9686
151f70f1
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_enable_tracepoint.
9692 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9693 TARGET_DEFAULT_NORETURN.
9694
94eb98b9
TT
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target-delegates.c: Rebuild.
9698 * target.c (update_current_target): Don't inherit or default
9699 to_download_trace_state_variable.
9700 * target.h (struct target_ops) <to_download_trace_state_variable>:
9701 Use TARGET_DEFAULT_NORETURN.
9702
719acc4a
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target-delegates.c: Rebuild.
9706 * target.c (update_current_target): Don't inherit or default
9707 to_can_download_tracepoint.
9708 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9709 TARGET_DEFAULT_RETURN.
9710
9a980a22
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target-delegates.c: Rebuild.
9714 * target.c (update_current_target): Don't inherit or default
9715 to_download_tracepoint.
9716 * target.h (struct target_ops) <to_download_tracepoint>: Use
9717 TARGET_DEFAULT_NORETURN.
9718
5536135b
TT
97192014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * target-delegates.c: Rebuild.
9722 * target.c (update_current_target): Don't inherit or default
9723 to_trace_init.
9724 * target.h (struct target_ops) <to_trace_init>: Use
9725 TARGET_DEFAULT_RETURN.
9726
9409d39e
TT
97272014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target-delegates.c: Rebuild.
9730 * target.c (update_current_target): Don't inherit or default
9731 to_supports_string_tracing.
9732 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9733 TARGET_DEFAULT_RETURN.
9734
aab1b22d
TT
97352014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target-delegates.c: Rebuild.
9738 * target.c (update_current_target): Don't inherit or default
9739 to_supports_enable_disable_tracepoint.
9740 * target.h (struct target_ops)
9741 <to_supports_enable_disable_tracepoint>: Use
9742 TARGET_DEFAULT_RETURN.
9743
a7304748
TT
97442014-02-19 Tom Tromey <tromey@redhat.com>
9745
9746 * target-delegates.c: Rebuild.
9747 * target.c (update_current_target): Don't inherit or default
9748 to_supports_multi_process.
9749 * target.h (struct target_ops) <to_supports_multi_process>: Use
9750 TARGET_DEFAULT_RETURN.
9751
4229b31d
TT
97522014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target-delegates.c: Rebuild.
9755 * target.c (update_current_target): Don't inherit or default
9756 to_get_ada_task_ptid.
9757 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9758 TARGET_DEFAULT_FUNC.
9759
43eba180
TT
97602014-02-19 Tom Tromey <tromey@redhat.com>
9761
9762 * target-delegates.c: Rebuild.
9763 * target.c (update_current_target): Don't inherit or default
9764 to_thread_architecture.
9765 * target.h (struct target_ops) <to_thread_architecture>: Use
9766 TARGET_DEFAULT_FUNC.
9767
fe31bf5b
TT
97682014-02-19 Tom Tromey <tromey@redhat.com>
9769
9770 * target-delegates.c: Rebuild.
9771 * target.c (update_current_target): Don't inherit or default
9772 to_execution_direction.
9773 * target.h (struct target_ops) <to_execution_direction>: Use
9774 TARGET_DEFAULT_FUNC.
9775
53e1cfc7
TT
97762014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target-delegates.c: Rebuild.
9779 * target.c (update_current_target): Don't inherit or default
9780 to_can_execute_reverse.
9781 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9782 TARGET_DEFAULT_RETURN.
9783 (target_can_execute_reverse): Unconditionally delegate.
9784
9bb9d61d
TT
97852014-02-19 Tom Tromey <tromey@redhat.com>
9786
9787 * target-delegates.c: Rebuild.
9788 * target.c (update_current_target): Don't inherit or default
9789 to_goto_bookmark.
9790 (dummy_goto_bookmark): Remove.
9791 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9792 * target.h (struct target_ops) <to_goto_bookmark>: Use
9793 TARGET_DEFAULT_NORETURN.
9794
3dbafbbb
TT
97952014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9799 to_get_bookmark.
9800 (dummy_get_bookmark): Remove.
9801 (init_dummy_target): Don't inherit or default to_get_bookmark.
9802 * target.h (struct target_ops) <to_get_bookmark>: Use
9803 TARGET_DEFAULT_NORETURN
9804
16f796b1
TT
98052014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target-delegates.c: Rebuild.
9808 * target.c (update_current_target): Don't inherit or default
9809 to_make_corefile_notes.
9810 (init_dummy_target): Don't initialize to_make_corefile_notes.
9811 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9812 TARGET_DEFAULT_FUNC.
9813
0b5a2719
TT
98142014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target-delegates.c: Rebuild.
9817 * target.c (update_current_target): Don't inherit or default
9818 to_find_memory_regions.
9819 (init_dummy_target): Don't initialize to_find_memory_regions.
9820 * target.h (struct target_ops) <to_find_memory_regions>: Use
9821 TARGET_DEFAULT_FUNC.
9822
d9cb0195
TT
98232014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9827 to_log_command.
9828 * target.h (struct target_ops) <to_log_command>: Use
9829 TARGET_DEFAULT_IGNORE.
9830 (target_log_command): Unconditionally delegate.
9831
830ca330
TT
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target-delegates.c: Rebuild.
9835 * target.c (update_current_target): Don't inherit or default
9836 to_pid_to_exec_file.
9837 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9838 TARGET_DEFAULT_RETURN.
9839
825828fc
TT
98402014-02-19 Tom Tromey <tromey@redhat.com>
9841
9842 * target-delegates.c: Rebuild.
9843 * target.c (update_current_target): Don't inherit or default
9844 to_thread_name.
9845 (target_thread_name): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_thread_name>: Use
9847 TARGET_DEFAULT_RETURN.
9848
4a7e6dda
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target-delegates.c: Rebuild.
9852 * target.c (update_current_target): Don't inherit or default
9853 to_extra_thread_info.
9854 * target.h (struct target_ops) <to_extra_thread_info>: Use
9855 TARGET_DEFAULT_RETURN.
9856
0db88c1d
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target-delegates.c: Rebuild.
9860 * target.c (update_current_target): Don't inherit or default
9861 to_has_exited.
9862 * target.h (struct target_ops) <to_has_exited>: Use
9863 TARGET_DEFAULT_RETURN..
9864
6a9fa051
TT
98652014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * target-delegates.c: Rebuild.
9868 * target.c (update_current_target): Don't inherit or default
9869 to_set_syscall_catchpoint.
9870 (return_one): Remove.
9871 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9872 TARGET_DEFAULT_RETURN.
9873
62f64d7a
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_insert_exec_catchpoint.
9879 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9880 TARGET_DEFAULT_RETURN.
9881
cda0f38c
TT
98822014-01-08 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_exec_catchpoint.
9887 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9888 TARGET_DEFAULT_RETURN.
9889
95c3375e
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_vfork_catchpoint.
9895 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9896 TARGET_DEFAULT_RETURN.
9897
7e18a8dc
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_vfork_catchpoint.
9903 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9904 TARGET_DEFAULT_RETURN.
9905
e1a21fb7
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_remove_fork_catchpoint.
9911 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9912 TARGET_DEFAULT_RETURN.
9913
5958ebeb
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_insert_fork_catchpoint.
9919 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9920 TARGET_DEFAULT_RETURN.
9921
340ba4bf
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_post_startup_inferior.
9927 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9928 TARGET_DEFAULT_IGNORE.
9929
7634da87
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_load.
9935 * target.h (struct target_ops) <to_load>: Use
9936 TARGET_DEFAULT_NORETURN.
9937
e19e919f
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_terminal_info.
9943 * target.h (struct target_ops) <to_terminal_info>: Use
9944 TARGET_DEFAULT_FUNC.
9945
c6ea8f79
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9950 to_terminal_save_ours.
9951 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9952 TARGET_DEFAULT_IGNORE.
9953
e4a733f1
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9958 to_terminal_ours.
9959 * target.h (struct target_ops) <to_terminal_ours>: Use
9960 TARGET_DEFAULT_IGNORE.
9961
74fcbef9
TT
99622014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_terminal_ours_for_output.
9967 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9968 TARGET_DEFAULT_IGNORE.
9969
ddeaacc9
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (update_current_target): Don't inherit or default
9974 to_terminal_inferior.
9975 * target.h (struct target_ops) <to_terminal_inferior>: Use
9976 TARGET_DEFAULT_IGNORE.
9977
0343661d
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target-delegates.c: Rebuild.
9981 * target.c (update_current_target): Don't inherit or default
9982 to_terminal_init.
9983 * target.h (struct target_ops) <to_terminal_init>: Use
9984 TARGET_DEFAULT_IGNORE.
9985
77cdffe9
TT
99862014-02-19 Tom Tromey <tromey@redhat.com>
9987
9988 * target-delegates.c: Rebuild.
9989 * target.c (update_current_target): Don't inherit or default
9990 to_can_accel_watchpoint_condition.
9991 * target.h (struct target_ops)
9992 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9993
d03655e4
TT
99942014-02-19 Tom Tromey <tromey@redhat.com>
9995
9996 * target-delegates.c: Rebuild.
9997 * target.c (update_current_target): Don't inherit or default
9998 to_region_ok_for_hw_watchpoint.
9999 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10000 Use TARGET_DEFAULT_FUNC.
10001
65f160a9
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (update_current_target): Don't inherit or default
10006 to_watchpoint_addr_within_range.
10007 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10008 Use TARGET_DEFAULT_FUNC.
10009
61dd109f
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target-delegates.c: Rebuild.
10013 * target.c (update_current_target): Don't inherit or default
10014 to_remove_watchpoint.
10015 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10016 TARGET_DEFAULT_NORETURN.
10017
016facd4
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (update_current_target): Don't inherit or default
10022 to_insert_watchpoint.
10023 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10024 TARGET_DEFAULT_RETURN.
10025
418dabac
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.c (update_current_target): Don't inherit or default
10030 to_remove_hw_breakpoint.
10031 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10032 TARGET_DEFAULT_RETURN.
10033
61b371f9
TT
100342014-02-19 Tom Tromey <tromey@redhat.com>
10035
10036 * target-delegates.c: Rebuild.
10037 * target.c (update_current_target): Don't inherit or default
10038 to_insert_hw_breakpoint.
10039 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10040 TARGET_DEFAULT_RETURN.
10041
52b51d06
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.c (update_current_target): Don't inherit or default
10046 to_can_use_hw_breakpoint.
10047 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10048 TARGET_DEFAULT_RETURN.
10049
f86e59b2
TT
100502014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target-delegates.c: Rebuild.
10053 * target.c (update_current_target): Don't inherit or default
10054 to_files_info.
10055 * target.h (struct target_ops) <to_files_info>: Use
10056 TARGET_DEFAULT_IGNORE.
10057
6c628163
TT
100582014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target-delegates.c: Rebuild.
10061 * target.c (update_current_target): Don't inherit or default
10062 to_store.
10063 * target.h (struct target_ops) <to_store>: Use
10064 TARGET_DEFAULT_NORETURN.
10065
bebd3233
TT
100662014-02-19 Tom Tromey <tromey@redhat.com>
10067
10068 * target-delegates.c: Rebuild.
10069 * target.c (update_current_target): Don't inherit or default
10070 to_post_attach.
10071 * target.h (struct target_ops) <to_post_attach>: Use
10072 TARGET_DEFAULT_IGNORE.
10073
a53f3625
TT
100742014-02-19 Tom Tromey <tromey@redhat.com>
10075
10076 * target-delegates.c: Rebuild.
10077 * target.c (update_current_target): Don't inherit or default
10078 to_rcmd.
10079 (default_rcmd): New function.
10080 (do_monitor_command): Unconditionally delegate.
10081 * target.h (struct target_ops) <to_rmcd>: Use
10082 TARGET_DEFAULT_FUNC.
10083
e9a29200
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (init_dummy_target): Don't initialize to_attach.
10088 (target_attach): Unconditionally delegate.
10089 * target.h (struct target_ops) <to_attach>: Use
10090 TARGET_DEFAULT_FUNC.
10091
09da0d0a
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target-delegates.c: Rebuild.
10095 * target.c (target_detach): Unconditionally delegate.
10096 (init_dummy_target): Don't initialize to_detach.
10097 * target.h (struct target_ops) <to_detach>: Use
10098 TARGET_DEFAULT_IGNORE.
10099
5436ff03
TT
101002014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10103 Add argument.
10104 (target_augmented_libraries_svr4_read): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10107 argument.
10108
f0d960ea
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target.h (struct target_ops) <to_call_history_range>: Add
10112 argument.
10113 * target.c (target_call_history_range): Add argument.
10114 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10115 argument.
10116 (record_btrace_call_history_from): Update.
10117
ec0aea04
TT
101182014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target.h (struct target_ops) <to_call_history_from>: Add
10121 argument.
10122 * target.c (target_call_history_from): Add argument.
10123 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10124 argument.
10125
5df2fcba
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target.h (struct target_ops) <to_call_history>: Add argument.
10129 * target.c (target_call_history): Add argument.
10130 * record-btrace.c (record_btrace_call_history): Add 'self'
10131 argument.
10132
4e99c6b7
TT
101332014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * target.h (struct target_ops) <to_insn_history_range>: Add
10136 argument.
10137 * target.c (target_insn_history_range): Add argument.
10138 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10139 argument.
10140 (record_btrace_insn_history_from): Update.
10141
9abc3ff3
TT
101422014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target.h (struct target_ops) <to_insn_history_from>: Add
10145 argument.
10146 * target.c (target_insn_history_from): Add argument.
10147 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10148 argument.
10149
7a6c5609
TT
101502014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target.h (struct target_ops) <to_insn_history>: Add argument.
10153 * target.c (target_insn_history): Add argument.
10154 * record-btrace.c (record_btrace_insn_history): Add 'self'
10155 argument.
10156
606183ac
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target.h (struct target_ops) <to_goto_record>: Add argument.
10160 * target.c (target_goto_record): Add argument.
10161 * record-full.c (record_full_goto): Add 'self' argument.
10162 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10163
307a1b91
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10167 * target.c (target_goto_record_end): Add argument.
10168 * record-full.c (record_full_goto_end): Add 'self' argument.
10169 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10170
08475817
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target.h (struct target_ops) <to_goto_record_begin>: Add
10174 argument.
10175 * target.c (target_goto_record_begin): Add argument.
10176 * record-full.c (record_full_goto_begin): Add 'self' argument.
10177 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10178 argument.
10179
1c63c994
TT
101802014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target.h (struct target_ops) <to_record_is_replaying>: Add
10183 argument.
10184 * target.c (target_record_is_replaying): Add argument.
10185 * record-full.c (record_full_is_replaying): Add 'self' argument.
10186 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10187 argument.
10188 (record_btrace_xfer_partial, record_btrace_store_registers)
10189 (record_btrace_prepare_to_store, record_btrace_resume)
10190 (record_btrace_wait, record_btrace_decr_pc_after_break)
10191 (record_btrace_find_new_threads, record_btrace_thread_alive):
10192 Update.
10193
d1b55219
TT
101942014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_delete_record>: Add argument.
10197 * target.c (target_delete_record): Add argument.
10198 * record-full.c (record_full_delete): Add 'self' argument.
10199
1390f529
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target.h (struct target_ops) <to_save_record>: Add argument.
10203 * target.c (target_save_record): Add argument.
10204 * record-full.c (record_full_save): Add 'self' argument.
10205 (record_full_save): Add 'self' argument.
10206
630d6a4a
TT
102072014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target.h (struct target_ops) <to_info_record>: Add argument.
10210 * target.c (target_info_record): Add argument.
10211 * record.c (info_record_command): Add argument.
10212 * record-full.c (record_full_info): Add 'self' argument.
10213 * record-btrace.c (record_btrace_info): Add 'self' argument.
10214
c6cd7c02
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10218 * target.c (target_stop_recording): Add argument.
10219 * record.c (record_stop): Add argument.
10220 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10221 argument.
10222
39c49f83
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10226 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10227 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10228 argument.
10229 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10230 (_initialize_amd64_linux_nat): Use it.
10231 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10232 (_initialize_i386_linux_nat): Use it.
10233
1777056d
TT
102342014-02-19 Tom Tromey <tromey@redhat.com>
10235
10236 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10237 * target.c (target_teardown_btrace): Add argument.
10238 * remote.c (remote_teardown_btrace): Add 'self' argument.
10239 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10240 argument.
10241 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10242 argument.
10243
25e95349
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10247 * target.c (target_disable_btrace): Add argument.
10248 * remote.c (remote_disable_btrace): Add 'self' argument.
10249 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10250 argument.
10251 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10252 argument.
10253
e3c49f88
TT
102542014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10257 * target.c (target_enable_btrace): Add argument.
10258 * remote.c (remote_enable_btrace): Add 'self' argument.
10259 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10260 argument.
10261 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10262 argument.
10263
fe38f897
TT
102642014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10267 (target_can_use_agent): Add argument.
10268 * target.c (update_current_target): Update.
10269 * remote.c (remote_can_use_agent): Add 'self' argument.
10270 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10271
2c152180
TT
102722014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target.h (struct target_ops) <to_use_agent>: Add argument.
10275 (target_use_agent): Add argument.
10276 * target.c (update_current_target): Update.
10277 * remote.c (remote_use_agent): Add 'self' argument.
10278 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10279
a893e81f
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10283 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10284 (target_traceframe_info): Add argument.
10285 * target.c (update_current_target): Update.
10286 * remote.c (remote_traceframe_info): Add 'self' argument.
10287 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10288
c686c57f
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target.h (target_static_tracepoint_markers_by_strid): Add
10292 argument.
10293 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10294 'self' argument.
10295 * target.c (update_current_target): Update.
10296 * remote.c (struct target_ops)
10297 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10298 * linux-nat.c (struct target_ops)
10299 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10300
61fc905d
TT
103012014-02-19 Tom Tromey <tromey@redhat.com>
10302
10303 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10304 Add argument.
10305 (target_static_tracepoint_marker_at): Add argument.
10306 * target.c (update_current_target): Update.
10307 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10308 argument.
10309
c378d69d
TT
103102014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10313 (target_set_permissions): Add argument.
10314 * target.c (update_current_target): Update.
10315 * remote.c (remote_set_permissions): Add 'self' argument.
10316 (remote_start_remote): Update.
10317
bd7ae0f5
TT
103182014-02-19 Tom Tromey <tromey@redhat.com>
10319
10320 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10321 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10322 (target_get_tib_address): Add argument.
10323 * target.c (update_current_target): Update.
10324 * remote.c (remote_get_tib_address): Add 'self' argument.
10325
d9e68a2c
TT
103262014-02-19 Tom Tromey <tromey@redhat.com>
10327
10328 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10329 (target_set_trace_notes): Add argument.
10330 * target.c (update_current_target): Update.
10331 * remote.c (remote_set_trace_notes): Add 'self' argument.
10332
4da384be
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10336 argument.
10337 (target_set_trace_buffer_size): Add argument.
10338 * target.c (update_current_target): Update.
10339 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10340
736d5b1f
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10344 argument.
10345 (target_set_circular_trace_buffer): Add argument.
10346 * target.c (update_current_target): Update.
10347 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10348 argument.
10349
37b25738
TT
103502014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10353 argument.
10354 (target_set_disconnected_tracing): Add argument.
10355 * target.c (update_current_target): Update.
10356 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10357
0e67620a
TT
103582014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops)
10361 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10362 (target_get_min_fast_tracepoint_insn_len): Add argument.
10363 * target.c (update_current_target): Update.
10364 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10365 argument.
10366
88ee6f45
TT
103672014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10370 argument.
10371 (target_get_raw_trace_data): Add argument.
10372 * target.c (update_current_target): Update.
10373 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10374
181e3713
TT
103752014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10378 Add argument.
10379 (target_upload_trace_state_variables): Add argument.
10380 * target.c (update_current_target): Update.
10381 * remote.c (remote_upload_trace_state_variables): Add 'self'
10382 argument.
10383 (remote_start_remote): Update.
10384
ab6617cc
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10388 argument.
10389 (target_upload_tracepoints): Add argument.
10390 * target.c (update_current_target): Update.
10391 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10392 (remote_start_remote): Update.
10393
dc3decaf
TT
103942014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10397 (target_save_trace_data): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_save_trace_data): Add 'self' argument.
10400
4011015b
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10404 argument.
10405 * target.h (struct target_ops)
10406 <to_get_trace_state_variable_value>: Add argument.
10407 (target_get_trace_state_variable_value): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10410 argument.
10411 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10412
bd4c6793
TT
104132014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10416 * target.h (struct target_ops) <to_trace_find>: Add argument.
10417 (target_trace_find): Add argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (remote_trace_find): Add 'self' argument.
10420 * ctf.c (ctf_trace_find): Add 'self' argument.
10421
74499f1b
TT
104222014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10425 (target_trace_stop): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_trace_stop): Add 'self' argument.
10428
db90e85c
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10432 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10433 argument.
10434 (target_get_tracepoint_status): Add argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10437
8bd200f1
TT
104382014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10441 * target.h (struct target_ops) <to_get_trace_status>: Add
10442 argument.
10443 (target_get_trace_status): Add argument.
10444 * target.c (update_current_target): Update.
10445 * remote.c (remote_get_trace_status): Add 'self' argument.
10446 (remote_start_remote, remote_can_download_tracepoint): Update.
10447 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10448
e2d1aae3
TT
104492014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target.h (struct target_ops) <to_trace_start>: Add argument.
10452 (target_trace_start): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_trace_start): Add 'self' argument.
10455
583f9a86
TT
104562014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10459 Add argument.
10460 (target_trace_set_readonly_regions): Add argument.
10461 * target.c (update_current_target): Update.
10462 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10463 argument.
10464
780b049c
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10468 argument.
10469 (target_disable_tracepoint): Add argument.
10470 * target.c (update_current_target): Update.
10471 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10472
46670d57
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10476 argument.
10477 (target_enable_tracepoint): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10480
559d2b81
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops) <to_download_trace_state_variable>:
10484 Add argument.
10485 (target_download_trace_state_variable): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_download_trace_state_variable): Add 'self'
10488 argument.
10489
a52a8357
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10493 argument.
10494 (target_can_download_tracepoint): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10497
548f7808
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops) <to_download_tracepoint>: Add
10501 argument.
10502 (target_download_tracepoint): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_download_tracepoint): Add 'self' argument.
10505
ecae04e1
TT
105062014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target.h (struct target_ops) <to_trace_init>: Add argument.
10509 (target_trace_init): Add argument.
10510 * target.c (update_current_target): Update.
10511 * remote.c (remote_trace_init): Add 'self' argument.
10512
fab5aa7c
TT
105132014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10516 * target.c (target_fileio_readlink): Add argument.
10517 * remote.c (remote_hostio_readlink): Add 'self' argument.
10518 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10519
dbbca37d
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10523 * target.c (target_fileio_unlink): Add argument.
10524 * remote.c (remote_hostio_unlink): Add 'self' argument.
10525 (remote_file_delete): Update.
10526 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10527
df39ea25
TT
105282014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10531 * target.c (target_fileio_close): Add argument.
10532 * remote.c (remote_hostio_close): Add 'self' argument.
10533 (remote_hostio_close_cleanup): Update.
10534 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10535 Update.
10536 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10537
a3be983c
TT
105382014-02-19 Tom Tromey <tromey@redhat.com>
10539
10540 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10541 * target.c (target_fileio_pread): Add argument.
10542 * remote.c (remote_hostio_pread): Add 'self' argument.
10543 (remote_bfd_iovec_pread, remote_file_get): Update.
10544 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10545
0d866f62
TT
105462014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10549 * target.c (target_fileio_pwrite): Add argument.
10550 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10551 (remote_file_put): Update.
10552 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10553
cd897586
TT
105542014-02-19 Tom Tromey <tromey@redhat.com>
10555
10556 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10557 * target.c (target_fileio_open): Add argument.
10558 * remote.c (remote_hostio_open): Add 'self' argument.
10559 (remote_bfd_iovec_open): Add 'self' argument.
10560 (remote_file_put): Add 'self' argument.
10561 (remote_file_get): Add 'self' argument.
10562 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10563
78eff0ec
TT
105642014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10567 Add argument.
10568 (target_can_run_breakpoint_commands): Add argument.
10569 * target.c (update_current_target): Update.
10570 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10571 argument.
10572 (remote_insert_breakpoint): Add 'self' argument.
10573 (remote_insert_hw_breakpoint): Add 'self' argument.
10574 (remote_can_run_breakpoint_commands): Add 'self' argument.
10575
efcc2da7
TT
105762014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target.h (struct target_ops)
10579 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10580 (target_supports_evaluation_of_breakpoint_conditions): Add
10581 argument.
10582 * target.c (update_current_target): Update.
10583 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10584 argument.
10585 (remote_insert_breakpoint): Add 'self' argument.
10586 (remote_insert_hw_breakpoint): Add 'self' argument.
10587 (remote_supports_cond_breakpoints): Add 'self' argument.
10588
6de37a3a
TT
105892014-02-19 Tom Tromey <tromey@redhat.com>
10590
10591 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10592 argument.
10593 (target_supports_string_tracing): Add argument.
10594 * target.c (update_current_target): Update.
10595 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10596
2bfc0540
TT
105972014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * target.h (struct target_ops)
10600 <to_supports_disable_randomization>: Add argument.
10601 * target.c (find_default_supports_disable_randomization): Add
10602 argument.
10603 (target_supports_disable_randomization): Add argument.
10604 (find_default_supports_disable_randomization): Add 'self'
10605 argument.
10606 * remote.c (extended_remote_supports_disable_randomization): Add
10607 'self' argument.
10608 (remote_supports_disable_randomization): Add 'self' argument.
10609 (extended_remote_create_inferior): Update.
10610 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10611 'self' argument.
10612
7d178d6a
TT
106132014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target.h (struct target_ops)
10616 <to_supports_enable_disable_tracepoint>: Add argument.
10617 (target_supports_enable_disable_tracepoint): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10620 argument.
10621
86ce2668
TT
106222014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target.h (struct target_ops) <to_supports_multi_process>: Add
10625 argument.
10626 (target_supports_multi_process): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_supports_multi_process): Add 'self' argument.
10629 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10630 argument.
10631 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10632 argument.
10633
4c612759
TT
106342014-02-19 Tom Tromey <tromey@redhat.com>
10635
10636 * target.h (struct target_ops) <to_execution_direction>: Add
10637 argument.
10638 (target_execution_direction): Add argument.
10639 * target.c (default_execution_direction): Add 'self' argument.
10640 * record-full.c (record_full_execution_direction): Add 'self'
10641 argument.
10642
19db3e69
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10646 argument.
10647 (target_can_execute_reverse): Add argument.
10648 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10649 * record-full.c (record_full_can_execute_reverse): Add 'self'
10650 argument.
10651 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10652 argument.
10653
1e6b91a4
TT
106542014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10657 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10658 argument.
10659 (target_get_ada_task_ptid): Add argument.
10660 * target.c (update_current_target): Update.
10661 (default_get_ada_task_ptid): Add 'self' argument.
10662 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10663 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10664 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10665 argument.
10666 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10667 argument.
10668 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10669 argument.
10670 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10671 argument.
10672 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10673 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10674 argument.
10675
3c80fb48
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10679 (target_goto_bookmark): Add argument.
10680 * target.c (dummy_goto_bookmark): Add 'self' argument.
10681 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10682
dd0e2830
TT
106832014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10686 (target_get_bookmark): Add argument.
10687 * target.c (dummy_get_bookmark): Add 'self' argument.
10688 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10689
fc6691b2
TT
106902014-02-19 Tom Tromey <tromey@redhat.com>
10691
10692 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10693 argument.
10694 (target_make_corefile_notes): Add argument.
10695 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10696 * procfs.c (procfs_make_note_section): Add 'self' argument.
10697 (procfs_make_note_section): Add 'self' argument.
10698 (procfs_make_note_section): Add 'self' argument.
10699 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10700 argument.
10701 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10702 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10703 * exec.c (exec_make_note_section): Add 'self' argument.
10704 (exec_make_note_section): Add 'self' argument.
10705
2e73927c
TT
107062014-02-19 Tom Tromey <tromey@redhat.com>
10707
10708 * target.h (struct target_ops) <to_find_memory_regions>: Add
10709 argument.
10710 (target_find_memory_regions): Add argument.
10711 * target.c (dummy_find_memory_regions): Add 'self' argument.
10712 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10713 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10714 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10715 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10716 * exec. (exec_do_find_memory_regions): New global.
10717 (exec_set_find_memory_regions): Rewrite.
10718 (exec_find_memory_regions): New function.
10719 (init_exec_ops): Use exec_find_memory_regions.
10720
2a9a2795
TT
107212014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * target.h (struct target_ops) <to_supports_non_stop>: Add
10724 argument.
10725 * target.c (find_default_supports_non_stop): Add argument.
10726 (target_supports_non_stop): Add argument.
10727 (find_default_supports_non_stop): Add 'self' argument.
10728 * remote.c (remote_supports_non_stop): Add 'self' argument.
10729 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10730
4ab76ea3
TT
107312014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target.h (struct target_ops) <to_log_command>: Add argument.
10734 (target_log_command): Add argument.
10735 * serial.h (serial_log_command): Add 'self' argument.
10736 * serial.c (serial_log_command): Add 'self' argument.
10737
8dd27370
TT
107382014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10741 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10742 argument.
10743 (target_pid_to_exec_file): Add argument.
10744 * target.c (debug_to_pid_to_exec_file): Add argument.
10745 (update_current_target): Update.
10746 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10747 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10748 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10749 (linux_handle_extended_wait): Update.
10750 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10751 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10752 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10753 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10754
1aac633b
TT
107552014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target.h (struct target_ops) <to_rcmd>: Add argument.
10758 (target_rcmd): Add argument.
10759 * target.c (debug_to_rcmd): Add argument.
10760 (update_current_target, do_monitor_command): Update.
10761 * remote.c (remote_rcmd): Add 'self' argument.
10762 * monitor.c (monitor_rcmd): Add 'self' argument.
10763
1eab8a48
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * windows-nat.c (windows_stop): Add 'self' argument.
10767 * target.h (struct target_ops) <to_stop>: Add argument.
10768 * target.c (target_stop): Add argument.
10769 (debug_to_stop): Add argument.
10770 (update_current_target): Update.
10771 * remote.c (remote_stop): Add 'self' argument.
10772 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10773 (gdbsim_cntrl_c): Update.
10774 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10775 * procfs.c (procfs_stop): Add 'self' argument.
10776 * nto-procfs.c (procfs_stop): Add 'self' argument.
10777 * monitor.c (monitor_stop): Add 'self' argument.
10778 (monitor_open): Update.
10779 * linux-nat.c (linux_nat_stop): Add argument.
10780 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10781 * gnu-nat.c (gnu_stop): Add 'self' argument.
10782 * darwin-nat.c (darwin_stop): Add 'self' argument.
10783
503a628d
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target.h (struct target_ops) <to_thread_name>: Add argument.
10787 * target.c (target_thread_name): Add argument.
10788 (update_current_target): Update.
10789 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10790
c15906d8
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (struct target_ops) <to_extra_thread_info>: Add
10794 argument.
10795 (target_extra_thread_info): Add argument.
10796 * target.c (update_current_target): Update.
10797 * remote.c (remote_threads_extra_info): Add 'self' argument.
10798 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10799 argument.
10800 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10801 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10802 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10803 argument.
10804 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10805 argument.
10806 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10807 argument.
10808 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10809 argument.
10810
daf5e9b6
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target.h (struct target_ops) <to_program_signals>: Add argument.
10814 * target.c (target_program_signals): Add argument.
10815 * remote.c (remote_program_signals): Add 'self' argument.
10816
94bedb42
TT
108172014-02-19 Tom Tromey <tromey@redhat.com>
10818
10819 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10820 * target.c (target_pass_signals): Add argument.
10821 * remote.c (remote_pass_signals): Add 'self' argument.
10822 (remote_start_remote): Update.
10823 * procfs.c (procfs_pass_signals): Add 'self' argument.
10824 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10825 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10826 (linux_nat_create_inferior, linux_nat_attach): Update.
10827
da82bd6b
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * windows-nat.c (windows_can_run): Add 'self' argument.
10831 * target.h (struct target_ops) <to_can_run>: Add argument.
10832 (target_can_run): Add argument.
10833 * target.c (debug_to_can_run): Add argument.
10834 (update_current_target): Update.
10835 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10836 * inf-child.c (inf_child_can_run): Add 'self' argument.
10837 * go32-nat.c (go32_can_run): Add 'self' argument.
10838
d796e1d6
TT
108392014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_has_exited>: Add argument.
10842 (target_has_exited): Add argument.
10843 * target.c (debug_to_has_exited): Add argument.
10844 (update_current_target): Update.
10845
ff214e67
TT
108462014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10849 argument.
10850 (target_set_syscall_catchpoint): Add argument.
10851 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10852 argument.
10853 * target.c (update_current_target): Update.
10854
758e29d2
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10858 argument.
10859 (target_remove_exec_catchpoint): Add argument.
10860 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10861 (update_current_target): Update.
10862 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10863 argument.
10864
ba025e51
TT
108652014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10868 argument.
10869 (target_insert_exec_catchpoint): Add argument.
10870 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10871 (update_current_target): Update.
10872 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10873 argument.
10874
e98cf0cd
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10878 argument.
10879 (target_remove_vfork_catchpoint): Add argument.
10880 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10881 (update_current_target): Update.
10882 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10883 argument.
10884
3ecc7da0
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10888 argument.
10889 (target_insert_vfork_catchpoint): Add argument.
10890 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10891 (update_current_target): Update.
10892 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10893 argument.
10894
973fc227
TT
108952014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10898 argument.
10899 (target_remove_fork_catchpoint): Add argument.
10900 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10901 (update_current_target): Update.
10902 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10903 argument.
10904
a863b201
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10908 argument.
10909 (target_insert_fork_catchpoint): Add argument.
10910 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10911 (update_current_target): Update.
10912 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10913 argument.
10914
2e97a79e
TT
109152014-02-19 Tom Tromey <tromey@redhat.com>
10916
10917 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10918 argument.
10919 (target_post_startup_inferior): Add argument.
10920 * target.c (debug_to_post_startup_inferior): Add argument.
10921 (update_current_target): Update.
10922 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10923 argument.
10924 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10925 argument.
10926 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10927 argument.
10928 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10929 argument.
10930 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10931 'self' argument.
10932 (super_post_startup_inferior): Likewise.
10933 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10934 'self' argument.
10935 (super_post_startup_inferior): Likewise.
10936 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10937 Add 'self' argument.
10938 (super_post_startup_inferior): Likewise.
10939
71a9f134
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_load>: Add argument.
10943 * target.c (target_load): Add argument.
10944 (debug_to_load): Add argument.
10945 (update_current_target): Update.
10946 * remote.c (remote_load): Add 'self' argument.
10947 * remote-sim.c (gdbsim_load): Add 'self' argument.
10948 * remote-mips.c (mips_load): Add 'self' argument.
10949 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10950 * monitor.c (monitor_load): Add 'self' argument.
10951 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10952
0a4f40a2
TT
109532014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10956 (target_terminal_info): Add argument.
10957 * target.c (debug_to_terminal_info): Add argument.
10958 (default_terminal_info): Likewise.
10959 * inflow.c (child_terminal_info): Add 'self' argument.
10960 * inferior.h (child_terminal_info): Add 'self' argument.
10961 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10962
ae3bd431
TT
109632014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10966 argument.
10967 (target_terminal_save_ours): Add argument.
10968 * target.c (debug_to_terminal_save_ours): Add argument.
10969 (update_current_target): Update.
10970 * inflow.c (terminal_save_ours): Add 'self' argument.
10971 * inferior.h (terminal_save_ours): Add 'self' argument.
10972
e3594fd1
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10976 (target_terminal_ours): Add argument.
10977 * target.c (debug_to_terminal_ours): Add argument.
10978 (update_current_target): Update.
10979 * remote.c (remote_terminal_ours): Add 'self' argument.
10980 (remote_close): Update.
10981 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10982 * inflow.c (terminal_ours): Add 'self' argument.
10983 * inferior.h (terminal_ours): Add 'self' argument.
10984 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10985
2e1e1a19
TT
109862014-02-19 Pedro Alves <palves@redhat.com>
10987 Tom Tromey <tromey@redhat.com>
10988
10989 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10990 argument.
10991 (target_terminal_ours_for_output): Add argument.
10992 * target.c (debug_to_terminal_ours_for_output): Add argument.
10993 (update_current_target): Update.
10994 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10995 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10996 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10997
d2f640d4
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target.h (struct target_ops) <to_terminal_inferior>: Add
11001 argument.
11002 * target.c (target_terminal_inferior): Add argument.
11003 (update_current_target): Update.
11004 * remote.c (remote_terminal_inferior): Add 'self' argument.
11005 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11006 * inflow.c (terminal_inferior): Add 'self' argument.
11007 * inferior.h (terminal_inferior): Add 'self' argument.
11008 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11009 (go32_terminal_inferior): Add 'self' argument.
11010
c42bf286
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11014 (target_terminal_init): Add argument.
11015 * target.c (debug_to_terminal_init): Add argument.
11016 (update_current_target): Update.
11017 * inflow.c (terminal_init_inferior): Add 'self' argument.
11018 * inferior.h (terminal_init_inferior): Add 'self' argument.
11019 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11020 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11021
c3a5ff89
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops)
11025 <to_can_accel_watchpoint_condition>: Add argument.
11026 (target_can_accel_watchpoint_condition): Add argument.
11027 * target.c (debug_to_can_accel_watchpoint_condition): Add
11028 argument.
11029 (update_current_target): Update.
11030 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11031 'self' argument.
11032
31568a15
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11036 Add argument.
11037 (target_region_ok_for_hw_watchpoint): Add argument.
11038 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11039 (default_region_ok_for_hw_watchpoint): Add argument.
11040 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11041 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11042 argument.
11043 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11044 argument.
11045 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11046 argument.
11047 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11048 'self' argument.
11049 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11050 'self' argument.
11051 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11052 'self' argument.
11053 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11054 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11055 'self' argument.
11056 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11057 Add 'self' argument.
11058
7bb99c53
TT
110592014-02-19 Tom Tromey <tromey@redhat.com>
11060
11061 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11062 argument.
11063 (target_insert_watchpoint): Add argument.
11064 * target.c (debug_to_insert_watchpoint): Add argument.
11065 (update_current_target): Update.
11066 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11067 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11068 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11069 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11070 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11071 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11072 argument.
11073 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11074 (procfs_insert_hw_watchpoint): Add 'self' argument.
11075 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11076 argument.
11077 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11078 argument.
11079 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11080 argument.
11081 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11082 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11083 argument.
11084 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11085 'self' argument.
11086
11b5219a
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11090 argument.
11091 (target_remove_watchpoint): Add argument.
11092 * target.c (debug_to_remove_watchpoint): Add argument.
11093 (update_current_target): Update.
11094 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11095 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11096 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11097 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11098 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11099 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11100 argument.
11101 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11102 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11103 argument.
11104 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11105 argument.
11106 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11107 argument.
11108 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11109 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11110 argument.
11111 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11112 'self' argument.
11113
a64dc96c
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11117 argument.
11118 (target_remove_hw_breakpoint): Add argument.
11119 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11120 (update_current_target): Update.
11121 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11122 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11123 argument.
11124 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11125 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11126 argument.
11127 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11128 'self' argument.
11129
23a26771
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11133 argument.
11134 (target_insert_hw_breakpoint): Add argument.
11135 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11136 (update_current_target): Update.
11137 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11138 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11139 argument.
11140 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11141 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11142 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11143 argument.
11144 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11145 'self' argument.
11146
5461485a
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11150 argument.
11151 (target_can_use_hardware_watchpoint): Add argument.
11152 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11153 (update_current_target): Update.
11154 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11155 argument.
11156 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11157 argument.
11158 * remote.c (remote_check_watch_resources): Add 'self' argument.
11159 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11160 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11161 argument.
11162 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11163 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11164 argument.
11165 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11166 argument.
11167 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11168 argument.
11169 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11170 argument.
11171 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11172 argument.
11173 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11174 argument.
11175 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11176 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11177 argument.
11178 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11179 'self' argument.
11180
f045800c
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_post_attach>: Add argument.
11184 (target_post_attach): Add argument.
11185 * target.c (debug_to_post_attach): Add argument.
11186 (update_current_target): Update.
11187 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11188 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11189 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11190 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11191 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11192
de90e03d
TT
111932014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * windows-nat.c (windows_close): Add 'self' argument.
11196 * tracepoint.c (tfile_close): Add 'self' argument.
11197 * target.h (struct target_ops) <to_close>: Add argument.
11198 * target.c (target_close): Add argument.
11199 (update_current_target): Update.
11200 * remote.c (remote_close): Add 'self' argument.
11201 * remote-sim.c (gdbsim_close): Add 'self' argument.
11202 * remote-mips.c (mips_close): Add 'self' argument.
11203 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11204 * record-full.c (record_full_close): Add 'self' argument.
11205 * record-btrace.c (record_btrace_close): Add 'self' argument.
11206 * monitor.h (monitor_close): Add 'self' argument.
11207 * monitor.c (monitor_close): Add 'self' argument.
11208 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11209 * linux-nat.c (linux_nat_close): Add argument.
11210 * go32-nat.c (go32_close): Add 'self' argument.
11211 * exec.c (exec_close_1): Add 'self' argument.
11212 * ctf.c (ctf_close): Add 'self' argument.
11213 * corelow.c (core_close): Add 'self' argument.
11214 (core_close_cleanup): Update.
11215 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11216 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11217
9dd130a0
TT
112182014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * remote.c (remote_load): New function.
11221 (init_remote_ops): Use it.
11222
46917d26
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11226 argument.
11227 * common/linux-btrace.h (linux_supports_btrace): Update.
11228 * remote.c (remote_supports_btrace): Add "self" argument.
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_supports_btrace): Remove.
11231 * target.h (struct target_ops) <to_supports_btrace>: Add
11232 target_ops argument.
11233 (target_supports_btrace): New define.
11234
6b84065d
TT
112352014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * record-full.c (record_full_beneath_to_resume_ops)
11238 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11239 (record_full_beneath_to_wait)
11240 (record_full_beneath_to_store_registers_ops)
11241 (record_full_beneath_to_store_registers)
11242 (record_full_beneath_to_xfer_partial_ops)
11243 (record_full_beneath_to_xfer_partial)
11244 (record_full_beneath_to_insert_breakpoint_ops)
11245 (record_full_beneath_to_insert_breakpoint)
11246 (record_full_beneath_to_remove_breakpoint_ops)
11247 (record_full_beneath_to_remove_breakpoint)
11248 (record_full_beneath_to_stopped_by_watchpoint)
11249 (record_full_beneath_to_stopped_data_address)
11250 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11251 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11252 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11253 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11254 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11255 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11256 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11257 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11258 (record_full_resume, record_full_wait_1)
11259 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11260 (record_full_store_registers, record_full_xfer_partial)
11261 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11262 (record_full_async, record_full_core_xfer_partial): Use target
11263 delegation.
11264 * target-delegates.c: Rebuild.
11265 * target.c (current_xfer_partial): Remove.
11266 (update_current_target): Do not INHERIT or de_fault
11267 to_insert_breakpoint, to_remove_breakpoint,
11268 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11269 to_is_async_p, to_async. Do not set to_xfer_partial field.
11270 (default_xfer_partial): Simplify.
11271 (current_xfer_partial): Remove.
11272 (target_wait, target_resume): Simplify.
11273 (find_default_can_async_p, find_default_is_async_p): Update.
11274 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11275 to_xfer_partial, to_stopped_by_watchpoint,
11276 to_stopped_data_address.
11277 (target_store_registers): Simplify.
11278 (forward_target_remove_breakpoint)
11279 (forward_target_insert_breakpoint): Remove.
11280 (target_remove_breakpoint, target_insert_breakpoint)
11281 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11282 * target.h (struct target_ops) <to_resume, to_wait,
11283 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11284 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11285 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11286 markup.
11287 (forward_target_remove_breakpoint)
11288 (forward_target_insert_breakpoint): Remove.
11289 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11290 directly.
11291 (record_btrace_insert_breakpoint): Delegate directly.
11292
1101cb7b
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 PR build/7701:
11296 * target-delegates.c: New file.
11297 * target.c: Include target-delegates.c.
11298 (init_dummy_target): Call install_dummy_methods.
11299 (complete_target_initialization): Call install_delegators.
11300 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11301 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11302 * make-target-delegates: New file.
11303
8b06beed
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * record.c (find_record_target): Use find_target_at.
11307 * target.c (find_target_at): New function.
11308 * target.h (find_target_at): Declare.
11309
6a109b6b
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11313 Add 'ops' argument.
11314 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11315 'ops' argument.
11316 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11317 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11318 'ops' argument.
11319 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11320 argument.
11321 * linux-nat.c (save_sigtrap): Update.
11322 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11323 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11324 (linux_nat_close): Update.
11325 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11326 argument.
11327 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11328 argument.
11329 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11330 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11331 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11332 (tmp_to_async): Add 'ops' argument.
11333 (record_full_stopped_by_watchpoint, record_full_async)
11334 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11335 argument.
11336 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11337 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11338 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11339 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11340 (remote_is_async_p, remote_async): Add 'ops' argument.
11341 (remote_stopped_data_address): Update.
11342 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11343 * target.c (update_current_target)
11344 (find_default_can_async_p, find_default_is_async_p): Update.
11345 (init_dummy_target): Update.
11346 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11347 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11348 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11349 (target_can_async_p, target_is_async_p, target_async)
11350 (target_stopped_by_watchpoint): Update.
11351
e095146b
YQ
113522014-02-19 Yao Qi <yao@codesourcery.com>
11353
11354 PR gdb/16220
11355 * gdbarch.sh: Remove startup_gdbarch.
11356 * gdbarch.c: Regenerated.
11357 * gdbarch.h: Likewise.
11358
bc3c6b36
KB
113592014-02-17 Kevin Buettner <kevinb@redhat.com>
11360
11361 * rl78-tdep.c (rl78_g10_register_name): New function.
11362 (rl78_return_value): Add g10 support.
11363 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11364 g10.
11365
98dc0167 113662014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11367
11368 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11369 (SUBDIR_GUILE_SRCS): Ditto.
11370 (scm-gsmob.o): Ditto.
11371
842c05cd
YQ
113722014-02-17 Yao Qi <yao@codesourcery.com>
11373
11374 * gnu-nat.c (ILL_RPC): Declare defined function.
11375
25c0bd04
YQ
113762014-02-17 Yao Qi <yao@codesourcery.com>
11377
11378 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11379 mach_msg_type_number_t.
11380 (gnu_write_inferior): Likewise.
11381
a9a758e3
YQ
113822014-02-17 Yao Qi <yao@codesourcery.com>
11383
11384 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11385 in format string.
11386 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11387 (inf_validate_procs, inf_signal): Likewise.
11388 (S_exception_raise_request): Likewise.
11389 (do_mach_notify_dead_name): Likewise.
11390 (steal_exc_port): Likewise.
11391 (gnu_read_inferior): Change 'copy_count''s type to
11392 mach_msg_type_number_t.
11393 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11394 format string.
11395
bae8023e
TS
113962014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11397
c82f56d9
TS
11398 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11399 flag. Adjust all users; in particular...
11400 (gnu_wait): ..., don't decrement its value in here...
11401 (gnu_create_inferior): ..., and instead set the flag in here,
11402 around the startup_inferior call, and call that one with
11403 START_INFERIOR_TRAPS_EXPECTED.
11404
3398af6a
TS
11405 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11406 (ILL_RPC): ... new macro.
11407 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11408 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11409 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11410 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11411 functions with ILL_RPC macro.
11412 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11413 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11414 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11415 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11416 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11417 (S_proc_getlogin_reply, S_proc_getsid_reply)
11418 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11419 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11420 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11421 (S_proc_getnports_reply, S_proc_is_important_reply)
11422 (S_proc_get_code_reply): New stub functions, generated with
11423 ILL_RPC macro.
11424
d47642c9
TS
11425 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11426 collected the type check structures.
11427
bae8023e
TS
11428 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11429
8a55ffb0
DE
114302014-02-14 Doug Evans <dje@google.com>
11431
11432 * target.c (target_write_partial): Fix result type.
11433
c2853f3d
JM
114342014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11435
11436 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11437 the proper offsets to access fpregset_t.
11438
ac61d2db
SA
114392014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11440
11441 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11442 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11443 * h8300-tdep.c (setmachinelist): Remove global.
11444 * hppa-tdep.c (hppa_sigtramp): Remove global.
11445 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11446 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11447 * ravenscar-thread.c (update_target_observer): Remove global.
11448 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11449
9d2d0b8b
TT
114502014-02-12 Tom Tromey <tromey@redhat.com>
11451
11452 * common/rsp-low.c: Update comments.
11453 * common/rsp-low.h: Update comments.
11454
a7191e8b
TT
114552014-02-12 Tom Tromey <tromey@redhat.com>
11456
11457 * common/rsp-low.c (convert_ascii_to_int): Remove.
11458 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11459
ff0e980e
TT
114602014-02-12 Tom Tromey <tromey@redhat.com>
11461
11462 * common/rsp-low.h (unhexify): Don't declare.
11463 * common/rsp-low.c (unhexify): Remove.
11464
e9371aff
TT
114652014-02-12 Tom Tromey <tromey@redhat.com>
11466
11467 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11468 * common/rsp-low.c (convert_int_to_ascii): Remove.
11469
971dc0b8
TT
114702014-02-12 Tom Tromey <tromey@redhat.com>
11471
11472 * common/rsp-low.h (hexify): Don't declare.
11473 * common/rsp-low.c (hexify): Remove.
11474
0a822afb
TT
114752014-02-12 Tom Tromey <tromey@redhat.com>
11476
11477 * common/rsp-low.c (hexify): Never take strlen of argument.
11478
9f1b45b0
TT
114792014-02-12 Tom Tromey <tromey@redhat.com>
11480
11481 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11482 * remote.c (extended_remote_run, remote_rcmd)
11483 (remote_download_trace_state_variable, remote_save_trace_data)
11484 (remote_set_trace_notes): Update.
11485 * tracepoint.c (encode_source_string, tfile_write_status)
11486 (tfile_write_uploaded_tsv): Update.
11487
9c3d6531
TT
114882014-02-12 Tom Tromey <tromey@redhat.com>
11489
11490 * tracepoint.c: Include rsp-low.h.
11491 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11492 * remote.c: Include rsp-low.h.
11493 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11494 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11495 (remote_unescape_input): Move to common/rsp-low.c.
11496 * common/rsp-low.h: New file.
11497 * common/rsp-low.c: New file.
11498 * Makefile.in (SFILES): Add common/rsp-low.c.
11499 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11500 (COMMON_OBS): Add rsp-low.o.
11501 (rsp-low.o): New target.
11502
01fd3ea5
TT
115032014-02-12 Tom Tromey <tromey@redhat.com>
11504
11505 * utils.h: Include print-utils.h.
11506 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11507 (int_string, core_addr_to_string, core_addr_to_string_nz)
11508 (hex_string, hex_string_custom): Don't declare.
11509 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11510 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11511 (hex_string_custom, int_string, core_addr_to_string)
11512 (core_addr_to_string_nz, host_address_to_string): Move to
11513 common/print-utils.c.
11514 * common/print-utils.h: New file.
11515 * common/print-utils.c: New file
11516 * Makefile.in (SFILES): Add common/print-utils.c.
11517 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11518 (COMMON_OBS): Add print-utils.o.
11519 (print-utils.o): New target.
11520
9fb50108
TT
115212014-02-12 Tom Tromey <tromey@redhat.com>
11522
11523 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11524
0548b5db
MK
115252014-02-12 Mark Kettenis <kettenis@gnu.org>
11526
11527 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11528
493443a4
MK
115292014-02-12 Mark Kettenis <kettenis@gnu.org>
11530
11531 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11532 if a PT_IO ptrace request returns sucessfully but indicates that 0
11533 bytes were transferred.
11534
706d0883
PA
115352014-02-12 Pedro Alves <palves@redhat.com>
11536 Kevin Buettner <kevinb@redhat.com>
11537
11538 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11539 TYPE_INSTANCE_FLAG_CODE_SPACE.
11540
5caa2f0b
PA
115412014-02-12 Pedro Alves <palves@redhat.com>
11542
11543 * h8300-tdep.c (pseudo_from_raw_register)
11544 (raw_from_pseudo_register): New functions.
11545 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11546 them.
11547
76fd5f74
PA
115482014-02-12 Pedro Alves <palves@redhat.com>
11549
11550 * h8300-tdep.c (h8300_register_sim_regno): New function.
11551 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11552 gdbarch_register_sim_regno hook.
11553
8f008406
SA
115542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11555
11556 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11557
195abc10
SA
115582014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11559
11560 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11561
93ffa5b9
MK
115622014-02-12 Mark Kettenis <kettenis@gnu.org>
11563
11564 * obsd-tdep.h (obsd_init_abi): New prototype.
11565 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11566 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11567 (obsd_init_abi): New functions.
11568 * i386obsd-tdep.c: Include "obsd-tdep.h".
11569 (i386obsd_init_abi): Call obsd_init_abi.
11570 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11571 (amd64obsd_init_abi): Call obsd_init_abi.
11572 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11573 obsd-tdep.c to gdb_target_obs.
11574
49caec94
JM
115752014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11576
11577 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11578 double float arguments to 16-byte in the argument slots.
11579
e1402065
DE
115802014-02-11 Doug Evans <xdje42@gmail.com>
11581
11582 * configure.ac: Don't crash if pkg-config is not found and guile
11583 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11584 in guile checks.
11585 * configure: Regenerate.
11586
edcc890f
YQ
115872014-02-11 Yao Qi <yao@codesourcery.com>
11588
11589 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11590 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11591 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11592 * gnu-nat.c (gnu_xfer_memory): Likewise.
11593 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11594 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11595 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11596 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11597
9b409511
YQ
115982014-02-11 Yao Qi <yao@codesourcery.com>
11599
11600 * target.h (enum target_xfer_error): Rename to ...
11601 (enum target_xfer_status): ... it. New. All users updated.
11602 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11603 New.
11604 (TARGET_XFER_STATUS_ERROR_P): New macro.
11605 (target_xfer_error_to_string): Remove declaration.
11606 (target_xfer_status_to_string): Declare.
11607 (target_xfer_partial_ftype): Adjust it.
11608 (struct target_ops) <to_xfer_partial>: Return
11609 target_xfer_status. Add argument xfered_len. Update
11610 comments.
11611 * target.c (target_xfer_error_to_string): Rename to ...
11612 (target_xfer_status_to_string): ... it. New. All callers
11613 updated.
11614 (target_read_live_memory): Likewise. Call target_xfer_partial
11615 instead of target_read.
11616 (memory_xfer_live_readonly_partial): Return
11617 target_xfer_status. Add argument xfered_len.
11618 (raw_memory_xfer_partial): Likewise.
11619 (memory_xfer_partial_1): Likewise.
11620 (memory_xfer_partial): Likewise.
11621 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11622 properly. Update debug message.
11623 (default_xfer_partial, current_xfer_partial): Likewise.
11624 (target_write_partial): Likewise.
11625 (target_read_partial): Likewise. All callers updated.
11626 (read_whatever_is_readable): Likewise.
11627 (target_write_with_progress): Likewise.
11628 (target_read_alloc_1): Likewise.
11629
11630 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11631 * auxv.c (procfs_xfer_auxv): Likewise.
11632 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11633 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11634 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11635 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11636 * corefile.c (read_memory): Adjust.
11637 * corelow.c (core_xfer_partial): Likewise.
11638 * ctf.c (ctf_xfer_partial): Likewise.
11639 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11640 updated.
11641 (darwin_xfer_partial): Likewise.
11642 * exec.c (section_table_xfer_memory_partial): Likewise. All
11643 callers updated.
11644 (exec_xfer_partial): Likewise.
11645 * exec.h (section_table_xfer_memory_partial): Update
11646 declaration.
11647 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11648 negative.
11649 (gnu_xfer_partial): Likewise.
11650 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11651 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11652 (ia64_hpux_xfer_solib_got): Likewise.
11653 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11654 type of 'partial_len' to ULONGEST.
11655 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11656 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11657 (linux_nat_xfer_partial): Likewise.
11658 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11659 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11660 * monitor.c (monitor_xfer_memory): Likewise.
11661 (monitor_xfer_partial): Likewise.
11662 * procfs.c (procfs_xfer_partial): Likewise.
11663 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11664 * record-full.c (record_full_xfer_partial): Likewise.
11665 (record_full_core_xfer_partial): Likewise.
11666 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11667 (gdbsim_xfer_partial): Likewise.
11668 * remote.c (remote_write_bytes_aux): Likewise. All callers
11669 updated.
11670 (remote_write_bytes, remote_read_bytes): Likewise. All
11671 callers updated.
11672 (remote_flash_erase): Likewise. All callers updated.
11673 (remote_write_qxfer): Likewise. All callers updated.
11674 (remote_read_qxfer): Likewise. All callers updated.
11675 (remote_xfer_partial): Likewise.
11676 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11677 (rs6000_xfer_shared_libraries): Likewise.
11678 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11679 (sol_thread_xfer_partial): Likewise.
11680 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11681 (sparc_xfer_partial): Likewise.
11682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11683 updated.
11684 (spu_xfer_partial): Likewise.
11685 * spu-multiarch.c (spu_xfer_partial): Likewise.
11686 * tracepoint.c (tfile_xfer_partial): Likewise.
11687 * windows-nat.c (windows_xfer_memory): Likewise.
11688 (windows_xfer_shared_libraries): Likewise.
11689 (windows_xfer_partial): Likewise.
11690 * valprint.c: Replace 'target_xfer_error' with
11691 'target_xfer_status' in comments.
11692
a8e63083
JB
116932014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11694
11695 Checked in by Joel Brobecker <brobecker@adacore.com>.
11696 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11697
e86b67d3
JB
116982014-02-11 Joel Brobecker <brobecker@adacore.com>
11699
11700 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11701 function parameters.
11702
4b7d1f7f
WN
117032014-02-10 Will Newton <will.newton@linaro.org>
11704
11705 * elfread.c (elf_rel_plt_read): Look for a .got section if
11706 looking up .got.plt fails.
11707 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11708 on address passed to elf_gnu_ifunc_record_cache.
11709 (elf_gnu_ifunc_resolve_addr): Likewise.
11710 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11711
961842b2
JM
117122014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11713
11714 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11715 (X_RETTURN): New macro.
11716 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11717
11718 * sparc64-tdep.c (sparc64_init_abi): Hook
11719 sparc_in_function_epilogue_p.
11720
3f03e7b1
GB
117212014-02-10 Gary Benson <gbenson@redhat.com>
11722
11723 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11724 Rename name_matcher to symbol_matcher.
11725
96f861ef
GB
117262014-02-10 Gary Benson <gbenson@redhat.com>
11727
11728 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11729 Use expand_symtabs_file_matcher_ftype and
11730 expand_symtabs_symbol_matcher_ftype.
11731
ee01b665
JB
117322014-02-10 Joel Brobecker <brobecker@adacore.com>
11733
11734 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11735 (struct ada_symbol_cache): New.
11736 (ada_free_symbol_cache): Forward declare.
11737 (struct ada_pspace_data): New.
11738 (ada_pspace_data_handle): New static global.
11739 (get_ada_pspace_data, ada_pspace_data_cleanup)
11740 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11741 (cache_space, cache): Delete, now folded inside struct
11742 ada_pspace_data.
11743 (ada_get_symbol_cache): New function.
11744 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11745 implementation.
11746 (_initialize_ada_language): Remove initialization of cache_space.
11747 Move call to observer_attach_inferior_exit up, grouping it
11748 with the other observer registrations inside this function.
11749 Rename command to be more general. Add call to
11750 register_program_space_data_with_cleanup.
11751
143adbbf
JB
117522014-02-10 Joel Brobecker <brobecker@adacore.com>
11753
11754 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11755 ada_new_objfile_observer.
11756 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11757 (_initialize_tasks): Update uses of ada_new_objfile_observer
11758 and ada_tasks_normal_stop_observer.
11759
aa4fb036
JB
117602014-02-10 Joel Brobecker <brobecker@adacore.com>
11761
11762 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11763 returned by the 'Length attribute to integer.
11764
9dee8cc6
JB
117652014-02-10 Joel Brobecker <brobecker@adacore.com>
11766
11767 * ada-lang.c (_initialize_ada_language): Initialize
11768 cache_space obstack.
11769
3d9434b5
JB
117702014-02-10 Joel Brobecker <brobecker@adacore.com>
11771
11772 * ada-lang.c (HASH_SIZE): New macro.
11773 (struct cache_entry): New type.
11774 (cache_space, cache): New static globals.
11775 (ada_clear_symbol_cache, find_entry): New functions.
11776 (lookup_cached_symbol, cache_symbol): Implement.
11777 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11778 (_initialize_ada_language): Attach ada_new_objfile_observer
11779 and ada_free_objfile_observer.
11780
f0c5f9b2
JB
117812014-02-10 Joel Brobecker <brobecker@adacore.com>
11782
11783 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11784 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11785 struct block * parameter.
11786 (ada_lookup_symbol_list_worker): Constify local variable "block".
11787 Remove cast which is no longer necessary.
11788
ed3ef339
DE
117892014-02-10 Doug Evans <xdje42@gmail.com>
11790
11791 Add Guile as an extension language.
11792 * NEWS: Mention Guile scripting.
11793 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11794 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11795 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11796 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11797 (CLIBS): Add GUILE_LIBS.
11798 (install-guile): New rule.
11799 (guile.o): New rule.
11800 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11801 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11802 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11803 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11804 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11805 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11806 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11807 * configure.ac: New option --with-guile.
11808 * configure: Regenerate.
11809 * config.in: Regenerate.
11810 * auto-load.c: Remove #include "python/python.h". Add #include
11811 "gdb/section-scripts.h".
11812 (source_section_scripts): Handle Guile scripts.
11813 (_initialize_auto_load): Add name of Guile objfile script to
11814 scripts-directory help text.
11815 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11816 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11817 (struct breakpoint): New member scm_bp_object.
11818 * defs.h (enum command_control_type): New value guile_control.
11819 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11820 "extension.h".
11821 (show_user): Update comment.
11822 (_initialize_cli_cmds): Update help text for "show user". Update help
11823 text for max-user-call-depth.
11824 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11825 "extension.h".
11826 (multi_line_command_p): Add guile_control.
11827 (print_command_lines): Handle guile_control.
11828 (execute_control_command, recurse_read_control_structure): Ditto.
11829 (process_next_line): Recognize "guile" commands.
11830 * disasm.c (gdb_disassemble_info): Make non-static.
11831 * disasm.h: #include "dis-asm.h".
11832 (struct gdbarch): Add forward decl.
11833 (gdb_disassemble_info): Declare.
11834 * extension.c: #include "guile/guile.h".
11835 (extension_languages): Add guile.
11836 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11837 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11838 * gdbtypes.c (get_unsigned_type_max): New function.
11839 (get_signed_type_minmax): New function.
11840 * gdbtypes.h (get_unsigned_type_max): Declare.
11841 (get_signed_type_minmax): Declare.
11842 * guile/README: New file.
11843 * guile/guile-internal.h: New file.
11844 * guile/guile.c: New file.
11845 * guile/guile.h: New file.
11846 * guile/scm-arch.c: New file.
11847 * guile/scm-auto-load.c: New file.
11848 * guile/scm-block.c: New file.
11849 * guile/scm-breakpoint.c: New file.
11850 * guile/scm-disasm.c: New file.
11851 * guile/scm-exception.c: New file.
11852 * guile/scm-frame.c: New file.
11853 * guile/scm-gsmob.c: New file.
11854 * guile/scm-iterator.c: New file.
11855 * guile/scm-lazy-string.c: New file.
11856 * guile/scm-math.c: New file.
11857 * guile/scm-objfile.c: New file.
11858 * guile/scm-ports.c: New file.
11859 * guile/scm-pretty-print.c: New file.
11860 * guile/scm-safe-call.c: New file.
11861 * guile/scm-string.c: New file.
11862 * guile/scm-symbol.c: New file.
11863 * guile/scm-symtab.c: New file.
11864 * guile/scm-type.c: New file.
11865 * guile/scm-utils.c: New file.
11866 * guile/scm-value.c: New file.
11867 * guile/lib/gdb.scm: New file.
11868 * guile/lib/gdb/boot.scm: New file.
11869 * guile/lib/gdb/experimental.scm: New file.
11870 * guile/lib/gdb/init.scm: New file.
11871 * guile/lib/gdb/iterator.scm: New file.
11872 * guile/lib/gdb/printing.scm: New file.
11873 * guile/lib/gdb/types.scm: New file.
11874 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11875 (VPATH): Add $(GUILE_SRCDIR).
11876 (GUILE_DIR): New variable.
11877 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11878 (all): Add stamp-guile dependency.
11879 (stamp-guile): New rule.
11880 (clean-guile, install-guile, uninstall-guile): New rules.
11881 (install-only): Add install-guile dependency.
11882 (uninstall): Add uninstall-guile dependency.
11883 (clean): Add clean-guile dependency.
11884
ac020ec5
DE
118852014-02-09 Doug Evans <xdje42@gmail.com>
11886
11887 Revert this patch (which I approved, mea culpa).
11888
11889 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11890
11891 * Makefile.in (all-lib): Remove.
11892 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11893
2a081c59
JK
118942014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11895
11896 Fix Python stack corruption.
11897 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11898 gdb_py_longest.
11899
0a6bd22d
MK
119002014-02-08 Mark Kettenis <kettenis@gnu.org>
11901
11902 * Makefile.in (all-lib): Remove.
11903 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11904
1a860409
DE
119052014-02-07 Doug Evans <dje@google.com>
11906
11907 * extension-priv.h (extension_language_script_ops): Add comment.
11908 (extension_language_ops): Add comment.
caf5a491 11909 (active_ext_lang_state): Fix typo in comment.
1a860409 11910
d137e6dc
PA
119112014-02-07 Pedro Alves <palves@redhat.com>
11912
0dcb32c3 11913 PR breakpoints/16292
d137e6dc
PA
11914 * infrun.c (handle_signal_stop) <signal arrives while stepping
11915 over a breakpoint>: Switch back to the stepping thread.
11916
ce6d0892
YQ
119172014-02-07 Yao Qi <yao@codesourcery.com>
11918
11919 * target.c (target_xfer_partial): Return zero if LEN is zero.
11920
2ed4b548
YQ
119212014-02-07 Yao Qi <yao@codesourcery.com>
11922
11923 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11924 (ld_so_xfer_auxv): Likewise.
11925 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11926 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11927 * corelow.c (core_xfer_partial): Likewise.
11928 * ctf.c (ctf_xfer_partial): Likewise.
11929 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11930 (darwin_xfer_partial): Likewise.
11931 * exec.c (exec_xfer_partial): Likewise.
11932 * gnu-nat.c (gnu_xfer_partial): Likewise.
11933 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11934 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11935 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11936 * linux-nat.c (linux_xfer_siginfo): Likewise.
11937 (linux_proc_xfer_spu): Likewise.
11938 * procfs.c (procfs_xfer_partial): Likewise.
11939 * record-full.c (record_full_xfer_partial): Likewise.
11940 (record_full_core_xfer_partial): Likewise.
11941 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11942 * remote.c (remote_write_qxfer): Likewise.
11943 (remote_write_qxfer, remote_read_qxfer): Likewise.
11944 (remote_xfer_partial): Likewise.
11945 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11946 (rs6000_xfer_shared_libraries): Likewise.
11947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11949 (spu_xfer_partial): Likewise.
11950 * target.c (memory_xfer_partial_1): Likewise.
11951 * tracepoint.c (tfile_xfer_partial): Likewise.
11952 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11953 (windows_xfer_partial): Likewise.
11954
c09f20e4
YQ
119552014-02-07 Yao Qi <yao@codesourcery.com>
11956
11957 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11958 comments.
11959 (core_xfer_shared_libraries_aix): Likewise.
11960 * gdbarch.c, gdbarch.h: Regenerated.
11961 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11962 ULONGEST. Change 'len_avail' type to ULONGEST.
11963 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11964 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11965 declaration.
11966 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11967
8635b3bf
YQ
119682014-02-07 Yao Qi <yao@codesourcery.com>
11969
11970 * corefile.c (memory_error): Get 'exception' from ERR and pass
11971 'exception' to throw_error.
11972
6dddc817
DE
119732014-02-06 Doug Evans <xdje42@gmail.com>
11974
11975 * configure.ac (libpython checking): Remove all but python.o from
11976 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11977 * configure: Regenerate.
11978
11979 * Makefile.in (SFILES): Add extension.c.
11980 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11981 (COMMON_OBS): Add extension.o.
11982 * extension.h: New file.
11983 * extension-priv.h: New file.
11984 * extension.c: New file.
11985
11986 * python/python-internal.h: #include "extension.h".
11987 (gdbpy_auto_load_enabled): Declare.
11988 (gdbpy_apply_val_pretty_printer): Declare.
11989 (gdbpy_apply_frame_filter): Declare.
11990 (gdbpy_preserve_values): Declare.
11991 (gdbpy_breakpoint_cond_says_stop): Declare.
11992 (gdbpy_breakpoint_has_cond): Declare.
11993 (void source_python_script_for_objfile): Delete.
11994 * python/python.c: #include "extension-priv.h".
11995 Delete inclusion of "observer.h".
11996 (extension_language_python): Moved here and renamed from
11997 script_language_python in py-auto-load.c.
11998 Redefined to be of type extension_language_defn.
11999 (python_extension_script_ops): New global.
12000 (python_extension_ops): New global.
12001 (struct python_env): New member previous_active.
12002 (restore_python_env): Call restore_active_ext_lang.
12003 (ensure_python_env): Call set_active_ext_lang.
12004 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12005 New arg extlang.
12006 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12007 New arg extlang.
12008 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12009 New arg extlang.
12010 (gdbpy_eval_from_control_command): Renamed from
12011 eval_python_from_control_command, made static. New arg extlang.
12012 (gdbpy_source_script) Renamed from source_python_script, made static.
12013 New arg extlang.
12014 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12015 result to int. New arg extlang.
12016 (gdbpy_source_objfile_script): Renamed from
12017 source_python_script_for_objfile, made static. New arg extlang.
12018 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12019 static. New args extlang, extlang_printers. Change result type to
12020 "void".
12021 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12022 static. New arg extlang. Rename arg printers to extlang_printers
12023 and change type to ext_lang_type_printers *.
12024 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12025 static. Replace argument arg with extlang, extlang_printers.
12026 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12027 (!HAVE_PYTHON, source_python_script): Delete.
12028 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12029 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12030 (!HAVE_PYTHON, start_type_printers): Delete.
12031 (!HAVE_PYTHON, apply_type_printers): Delete.
12032 (!HAVE_PYTHON, free_type_printers): Delete.
12033 (_initialize_python): Delete call to observer_attach_before_prompt.
12034 (finalize_python): Set/restore active extension language.
12035 (gdbpy_finish_initialization) Renamed from
12036 finish_python_initialization, made static. New arg extlang.
12037 (gdbpy_initialized): New function.
12038 * python/python.h: #include "extension.h". Delete #include
12039 "value.h", "mi/mi-cmds.h".
12040 (extension_language_python): Declare.
12041 (GDBPY_AUTO_FILE_NAME): Delete.
12042 (enum py_bt_status): Moved to extension.h and renamed to
12043 ext_lang_bt_status.
12044 (enum frame_filter_flags): Moved to extension.h.
12045 (enum py_frame_args): Moved to extension.h and renamed to
12046 ext_lang_frame_args.
12047 (finish_python_initialization): Delete.
12048 (eval_python_from_control_command): Delete.
12049 (source_python_script): Delete.
12050 (apply_val_pretty_printer): Delete.
12051 (apply_frame_filter): Delete.
12052 (preserve_python_values): Delete.
12053 (gdbpy_script_language_defn): Delete.
12054 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12055 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12056
12057 * auto-load.c: #include "extension.h".
12058 (GDB_AUTO_FILE_NAME): Delete.
12059 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12060 (script_language_gdb): Delete, moved to extension.c and renamed to
12061 extension_language_gdb.
12062 (source_gdb_script_for_objfile): Delete.
12063 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12064 (loaded_script): Change type of language member to
12065 struct extension_language_defn *.
12066 (init_loaded_scripts_info): Initialize
12067 unsupported_script_warning_printed.
12068 (maybe_add_script): Make static. Change type of language arg to
12069 struct extension_language_defn *.
12070 (clear_section_scripts): Reset unsupported_script_warning_printed.
12071 (auto_load_objfile_script_1): Rewrite to use extension language API.
12072 (auto_load_objfile_script): Make public. Remove support-compiled-in
12073 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12074 (source_section_scripts): Rewrite to use extension language API.
12075 (load_auto_scripts_for_objfile): Rewrite to use
12076 auto_load_scripts_for_objfile.
12077 (collect_matching_scripts_data): Change type of language member to
12078 struct extension_language_defn *.
12079 (auto_load_info_scripts): Change type of language arg to
12080 struct extension_language_defn *.
12081 (unsupported_script_warning_print): New function.
12082 (script_not_found_warning_print): Make static.
12083 (_initialize_auto_load): Rewrite construction of scripts-directory
12084 help.
12085 * auto-load.h (struct objfile): Add forward decl.
12086 (struct script_language): Delete.
12087 (struct auto_load_pspace_info): Add forward decl.
12088 (struct extension_language_defn): Add forward decl.
12089 (maybe_add_script): Delete.
12090 (auto_load_objfile_script): Declare.
12091 (script_not_found_warning_print): Delete.
12092 (auto_load_info_scripts): Update prototype.
12093 (auto_load_gdb_scripts_enabled): Declare.
12094 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12095 auto_load_python_scripts_enabled and made public.
12096 (script_language_python): Delete, moved to python.c.
12097 (gdbpy_script_language_defn): Delete.
12098 (info_auto_load_python_scripts): Update to use
12099 extension_language_python.
12100
12101 * breakpoint.c (condition_command): Replace call to
12102 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12103 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12104 with call to breakpoint_ext_lang_cond_says_stop.
12105 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12106 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12107 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12108 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12109 New arg slang.
12110 (local_setattro): Print name of extension language with existing
12111 stop condition.
12112
12113 * valprint.c (val_print, value_print): Update to call
12114 apply_ext_lang_val_pretty_printer.
12115 * cp-valprint.c (cp_print_value): Update call to
12116 apply_ext_lang_val_pretty_printer.
12117 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12118 (gdbpy_apply_val_pretty_printer): Renamed from
12119 apply_val_pretty_printer. New arg extlang.
12120 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12121
12122 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12123 extension language API.
12124 * cli/cli-script.c (execute_control_command): Update to call
12125 eval_ext_lang_from_control_command.
12126
12127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12128 enum ext_lang_bt_status values. Update call to
12129 apply_ext_lang_frame_filter.
12130 (mi_cmd_stack_list_locals): Ditto.
12131 (mi_cmd_stack_list_args): Ditto.
12132 (mi_cmd_stack_list_variables): Ditto.
12133 * mi/mi-main.c: Delete #include "python/python-internal.h".
12134 Add #include "extension.h".
12135 (mi_cmd_list_features): Replace reference to python internal variable
12136 gdb_python_initialized with call to ext_lang_initialized_p.
12137
12138 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12139 Update to use enum ext_lang_frame_args. Update to call
12140 apply_ext_lang_frame_filter.
12141 * python/py-framefilter.c (extract_sym): Update to use enum
12142 ext_lang_bt_status.
12143 (extract_value, py_print_type, py_print_value): Ditto.
12144 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12145 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12146 (py_print_frame): Ditto.
12147 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12148 New arg extlang. Update to use enum ext_lang_bt_status.
12149
12150 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12151 finish_python_initialization. Replace with call to
12152 finish_ext_lang_initialization.
12153
12154 * typeprint.c (do_free_global_table): Update to call
12155 free_ext_lang_type_printers.
12156 (create_global_typedef_table): Update to call
12157 start_ext_lang_type_printers.
12158 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12159 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12160 (type_print_options): Change type of global_printers from "void *"
12161 to "struct ext_lang_type_printers *".
12162
12163 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12164 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12165 (gdbpy_preserve_values): Renamed from preserve_python_values.
12166 New arg extlang.
12167 (!HAVE_PYTHON, preserve_python_values): Delete.
12168
12169 * utils.c (quit_flag): Delete, moved to extension.c.
12170 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12171 extension.c.
12172
12173 * eval.c: Delete #include "python/python.h".
12174 * main.c: Delete #include "python/python.h".
12175
12176 * defs.h: Update comment.
12177
6af79985
JB
121782014-02-06 Joel Brobecker <brobecker@adacore.com>
12179
12180 GDB 7.7 released.
12181
12c5175d
MK
121822014-02-05 Mark Kettenis <kettenis@gnu.org>
12183
12184 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12185 defined.
12186
8dc5b319
YQ
121872014-02-05 Yao Qi <yao@codesourcery.com>
12188
12189 * remote.c (remote_pass_signals): Remove local 'buf' and use
12190 rs->buf.
12191 (remote_program_signals): Likewise.
12192
de7b2893
YQ
121932014-02-05 Yao Qi <yao@codesourcery.com>
12194
12195 * ctf.c: Include "inferior.h" and "gdbthread.h".
12196 (CTF_PID): A new macro.
12197 (ctf_open): Call inferior_appeared and add_thread_silent.
12198 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12199 (ctf_thread_alive): New function.
12200 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12201
66d032ac
YQ
122022014-02-05 Yao Qi <yao@codesourcery.com>
12203
12204 Revert this patch:
12205
12206 2013-05-24 Yao Qi <yao@codesourcery.com>
12207
12208 * tracepoint.c (TFILE_PID): Remove.
12209 (tfile_open): Don't add thread and inferior.
12210 (tfile_close): Don't set 'inferior_ptid'. Don't call
12211 exit_inferior_silent.
12212 (tfile_thread_alive): Remove.
12213 (init_tfile_ops): Don't set field 'to_thread_alive' of
12214 tfile_ops.
12215
f4ccffad
CE
122162014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12217
12218 * remote.c (remote_start_remote): Call remote_check_symbols even
12219 if only symbol-file (not file) has been given.
12220
591a12a1
UW
122212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12222
12223 * gdbarch.sh (skip_entrypoint): New callback.
12224 * gdbarch.c, gdbarch.h: Regenerate.
12225 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12226 * infrun.c (fill_in_stop_func): Likewise.
12227 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12228 (ppc_elfv2_elf_make_msymbol_special): New function.
12229 (ppc_elfv2_skip_entrypoint): Likewise.
12230 (ppc_linux_init_abi): Install them for ELFv2.
12231
cc0e89c5
UW
122322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12233
12234 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12235 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12236 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12237 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12238 structures returned in GPRs.
12239
52f548e4
UW
122402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12241
12242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12243 offset to the stack parameter list for the ELFv2 ABI.
12244
d4094b6a
UW
122452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12246
12247 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12248 set_gdbarch_convert_from_func_ptr_addr and
12249 set_gdbarch_elf_make_msymbol_special for ELFv1.
12250 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12251 function descriptors on ELFv1.
12252 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12253 set up r12 at function entry.
12254
cd453cd0
UW
122552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12256
12257 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12258 (struct gdbarch_tdep): New member elf_abi.
12259
12260 * rs6000-tdep.c: Include "elf/ppc64.h".
12261 (rs6000_gdbarch_init): Detect ELF ABI version.
12262
0ff3e01f
UW
122632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12264
12265 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12266 within a register pair holding a DFP 128-bit value on little-endian.
12267 (ppc64_sysv_abi_return_value_base): Likewise.
12268 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12269 (dfp_pseudo_register_write): Likewise.
12270
5b757e5d
UW
122712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12272
12273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12274 offset on little-endian when passing _Decimal32.
12275 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12276
084ee545
UW
122772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12278
12279 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12280 of the overlapped FP register within the VSX register on little-
12281 endian platforms.
12282 (efpr_pseudo_register_write): Likewise.
12283
d63167af
UW
122842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12285
12286 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12287 offset on little-endian when passing small structures.
12288
e765b44c
UW
122892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12290
12291 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12292 (struct ppc64_sysv_argpos): New data structure.
12293 (ppc64_sysv_abi_push_float): Remove.
12294 (ppc64_sysv_abi_push_val): New function.
12295 (ppc64_sysv_abi_push_integer): Likewise.
12296 (ppc64_sysv_abi_push_freg): Likewise.
12297 (ppc64_sysv_abi_push_vreg): Likewise.
12298 (ppc64_sysv_abi_push_param): Likewise.
12299 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12300 (ppc64_sysv_abi_return_value_base): New function.
12301 (ppc64_sysv_abi_return_value): Refactor to use it.
12302
36c24d95
UW
123032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12304
12305 * NEWS: Document new target powerpc64le-*-linux*.
12306
26fd9228
MK
123072014-02-04 Mark Kettenis <kettenis@gnu.org>
12308
12309 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12310 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12311 core dumps.
12312 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12313 register set used in ELF core dumps. Add floating-point register set.
12314
c5bb7362
KB
123152014-02-03 Kevin Buettner <kevinb@redhat.com>
12316
74228e77 12317 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12318 dwarf2_to_gdb[] table using symbolic constants. Adjust
12319 penultimate entry from number representing the PC register
12320 to symbolic constant representing the MDR register. Add
12321 constant for the PC register to the end of the table.
12322
af09351e
MK
123232014-02-03 Mark Kettenis <kettenis@gnu.org>
12324
12325 * bsd-kvm.c: Include <sys/param.h>
12326
8507e05d
MK
123272014-02-03 Mark Kettenis <kettenis@gnu.org>
12328
12329 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12330
ae56bfb8
JB
123312014-01-31 Joel Brobecker <brobecker@adacore.com>
12332
12333 * ada-lang.h (clear_ada_sym_cache): Delete.
12334
718ee4dc
UW
123352014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12336
12337 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12338
401e27fd
JM
123392014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12340
12341 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12342 the sigreturn register save area only if the syscall is
12343 sigreturn.
12344
a7c88acd
JB
123452014-01-29 Joel Brobecker <brobecker@adacore.com>
12346
12347 * valops.c (value_slice): Minor reformatting.
12348
fa0079ea
UW
123492014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12350
12351 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12352
c6044dd1
JB
123532014-01-28 Joel Brobecker <brobecker@adacore.com>
12354
12355 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12356 New static globals.
12357 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12358 (ada_ignore_descriptive_types_p): New static global.
12359 (find_parallel_type_by_descriptive_type): Return immediately
12360 if ada_ignore_descriptive_types_p is set.
12361 (_initialize_ada_language): Register new commands "maintenance
12362 set ada", "maintenance show ada", "maintenance set ada
12363 ignore-descriptive-types" and "maintenance show ada
12364 ignore-descriptive-types".
12365 * NEWS: Add entry for new "maint ada set/show
12366 ignore-descriptive-types" commands.
12367
568e808b
MM
123682014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12369
12370 * record-btrace.c (record_btrace_close): Call btrace_teardown
12371 for all threads.
12372
467d141b
JB
123732014-01-27 Joel Brobecker <brobecker@adacore.com>
12374
12375 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12376 "ui-out.h".
12377
fb151210
JB
123782014-01-27 Joel Brobecker <brobecker@adacore.com>
12379
12380 * ada-typeprint (type_is_full_subrange_of_target_type):
12381 New function.
12382 (print_range): Add parameter bounds_prefered_p. If not set,
12383 try printing range types using the name of their base type.
12384 (print_range_type): Add parameter bounds_prefered_p.
12385 Use it in call to print_range.
12386 (print_array_type, ada_print_type): Update calls to print_range
12387 and print_range_type.
12388
aba02109
JB
123892014-01-27 Joel Brobecker <brobecker@adacore.com>
12390
12391 * ada-typeprint.c (print_array_type, print_choices, print_range)
12392 (print_range_bound, print_dynamic_range_bound, print_range_type):
12393 Remove declaration.
12394
e62e21fd
JB
123952014-01-27 Joel Brobecker <brobecker@adacore.com>
12396
12397 * ada-typeprint.c (print_range): Add missing empty line
12398 after local declaration.
12399
859cf5d1
JB
124002014-01-27 Joel Brobecker <brobecker@adacore.com>
12401
12402 * ada-valprint.c (print_optional_low_bound): Get index_type's
12403 target type for as long as it is a TYPE_CODE_RANGE.
12404
25790f6f
JB
124052014-01-27 Joel Brobecker <brobecker@adacore.com>
12406
12407 * procfs.c (procfs_make_note_section): Remove assertion and
12408 associated comment.
12409
6b6aa828
YQ
124102014-01-24 Yao Qi <yao@codesourcery.com>
12411
12412 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12413 * corelow.c (get_core_siginfo): Likewise.
12414
5d6df423
YQ
124152014-01-24 Yao Qi <yao@codesourcery.com>
12416
12417 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12418 ULONGEST. Don't check 'len' is negative.
12419 (remote_write_bytes): Change type of 'len' to ULONGEST.
12420
83b645b8
TT
124212014-01-23 Tom Tromey <tromey@redhat.com>
12422
12423 PR python/16485:
12424 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12425 Handle exception from frame.block.
12426 (FrameVars.fetch_frame_locals): Likewise.
12427
0740f8d8
TT
124282014-01-23 Tom Tromey <tromey@redhat.com>
12429
12430 PR python/16487:
12431 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12432 on a NULL pointer. Move "goto error" to correct place.
12433
21909fa1
TT
124342014-01-23 Tom Tromey <tromey@redhat.com>
12435
12436 PR python/16491:
12437 * python/py-framefilter.c (apply_frame_filter): Call
12438 ensure_python_env after computing gdbarch.
12439
17fde6d0
YQ
124402014-01-23 Yao Qi <yao@codesourcery.com>
12441
12442 * target.c (raw_memory_xfer_partial): Change argument type
12443 from void * to gdb_byte *.
12444 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12445
87ce2a04
DE
124462014-01-22 Doug Evans <dje@google.com>
12447
12448 New gdbserver option --debug-format=timestamp.
12449 * NEWS: Mention it.
12450
237b092b
AA
124512014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12452
12453 * syscalls/s390x-linux.xml: New file.
12454 * syscalls/s390-linux.xml: New file.
12455 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12456 (XML_SYSCALL_FILENAME_S390X): Likewise.
12457 (op_svc): New enum value for SVC opcode.
12458 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12459 (s390_linux_get_syscall_number): New function.
12460 (s390_gdbarch_init): Register '*get_syscall_number' and the
12461 syscall xml file name.
12462 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12463 "s390-linux.xml" and "s390x-linux.xml".
12464 * NEWS: Announce new feature.
12465
54bff650
BS
124662014-01-22 Baruch Siach <baruch@tkos.co.il>
12467
12468 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12469
14e361d7
PA
124702014-01-22 Pedro Alves <palves@redhat.com>
12471
12472 * xtensa-config.c: Include defs.h.
12473
46bbb3ed
JB
124742014-01-22 Joel Brobecker <brobecker@adacore.com>
12475
12476 * common/common-utils.h: Add "ARI:" comment beside __func__
12477 reference.
12478
3a80edfc
JB
124792014-01-22 Joel Brobecker <brobecker@adacore.com>
12480
12481 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12482 documentation a bit.
12483
4869db5e
RM
124842014-01-21 Roland McGrath <mcgrathr@google.com>
12485
12486 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12487 * configure: Regenerate.
12488 * aclocal.m4: Regenerate.
12489 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12490 New substituted variables.
12491 (install-strip): New target.
12492 (INSTALL_SCRIPT): New substituted variable.
12493 (FLAGS_TO_PASS): Add it.
12494 (install-only): Use $(INSTALL_SCRIPT) rather than
12495 $(INSTALL_PROGRAM) for gcore.
12496
9ea4267d
TT
124972014-01-20 Tom Tromey <tromey@redhat.com>
12498
12499 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12500 together.
12501
1f2bdf09
TT
125022014-01-20 Tom Tromey <tromey@redhat.com>
12503
12504 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12505 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12506 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12507 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12508 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12509 (struct cmd_list_element) <flags>: Remove.
12510 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12511 doc_allocated>: New fields.
12512 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12513 bitfields.
12514 * maint.c (maintenance_do_deprecate): Update.
12515 * top.c (execute_command): Update.
12516
e671835b
BS
125172014-01-20 Baruch Siach <baruch@tkos.co.il>
12518
12519 * xtensa-linux-nat.c: Include asm/ptrace.h.
12520
50367cd2
IB
125212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12522
12523 * Makefile.in (SFILES): Add d-support.c.
12524 (COMMON_OBS): Add d-support.o.
12525 * d-lang.h (d_parse_symbol): Add comment, now defined in
12526 d-support.c.
12527 * d-lang.c (parse_call_convention)
12528 (parse_attributes, parse_function_types)
12529 (parse_function_args, parse_type, parse_identifier)
12530 (call_convention_p, d_parse_symbol): Move functions to ...
12531 * d-support.c: ... New file.
12532
ec9f644a
IB
125332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12534
12535 * d-lang.h (d_parse_symbol): Add declaration.
12536 * d-lang.c (extract_identifiers)
12537 (extract_type_info): Remove functions.
12538 (parse_call_convention, parse_attributes)
12539 (parse_function_types, parse_function_args)
12540 (parse_type, parse_identifier, call_convention_p)
12541 (d_parse_symbol): New functions.
12542 (d_demangle): Use d_parse_symbol to demangle D symbols.
12543
94b1b47e
IB
125442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12545
12546 * d-lang.h (struct builtin_d_type): New data type.
12547 (builtin_d_type): Add declaration.
12548 * d-lang.c (d_language_arch_info, build_d_types)
12549 (builtin_d_type): New functions.
12550 (enum d_primitive_types): New data type.
12551 (d_language_defn): Change c_language_arch_info to
12552 d_language_arch_info.
12553 (d_type_data): New static variable.
12554 (_initialize_d_language): Initialize d_type_data.
12555
63778547
IB
125562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12557
12558 * d-lang.h (d_main_name): Add declaration.
12559 * d-lang.c (d_main_name): New function.
12560 * symtab.c (find_main_name): Add call to d_main_name.
12561
3271ba66
IB
125622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12563
12564 * d-lang.c (d_language_defn): Change macro_expansion_c to
12565 macro_expansion_no.
12566
d36b3012
IB
125672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12568
12569 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12570
c90a6fb7
SDJ
125712014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12572
12573 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12574 gdb_exception" declaration.
12575 * remote.c (getpkt_or_notif_sane): Likewise.
12576
749234e5
DE
125772014-01-17 Doug Evans <dje@google.com>
12578
12579 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12580 function, contents of dirnames_to_char_ptr_vec_append moved here.
12581 (delim_string_to_char_ptr_vec): New function.
12582 (dirnames_to_char_ptr_vec_append): Rewrite.
12583 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12584
df049a58
DE
125852014-01-17 Doug Evans <dje@google.com>
12586
12587 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12588 and moved here ...
12589 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12590 #include "common-utils.h".
12591 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12592 * common/vec.h (VEC_ASSERT_PASS): Update.
12593 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12594 (MACH_CHECK_ERROR): Update.
12595
69f97648
SM
125962014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12597
12598 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12599 comments.
12600 * gdbarch.h: Regenerate.
12601
98b1cfdc
TT
126022014-01-16 Tom Tromey <tromey@redhat.com>
12603
12604 * value.c (struct value) <regnum>: Move earlier.
12605
77a19445
TT
126062014-01-16 Tom Tromey <tromey@redhat.com>
12607
12608 * remote.c (extended_remote_create_inferior): Rename from
12609 extended_remote_create_inferior_1. Add "ops" argument. Remove
12610 old implementation.
12611
62261490
PA
126122014-01-16 Pedro Alves <palves@redhat.com>
12613
12614 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12615 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12616 the backchain.
12617
4d65956b
DE
126182014-01-16 Doug Evans <dje@google.com>
12619
12620 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12621
52834460
MM
126222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12623
12624 * btrace.h (btrace_thread_flag): New.
12625 (struct btrace_thread_info) <flags>: New.
12626 * record-btrace.c (record_btrace_resume_thread)
12627 (record_btrace_find_thread_to_move, btrace_step_no_history)
12628 (btrace_step_stopped, record_btrace_start_replaying)
12629 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12630 (record_btrace_find_resume_thread): New.
12631 (record_btrace_resume, record_btrace_wait): Extend.
12632 (record_btrace_can_execute_reverse): New.
12633 (record_btrace_open): Fail in non-stop mode.
12634 (record_btrace_set_replay): Split into this, ...
12635 (record_btrace_stop_replaying): ... this, ...
12636 (record_btrace_clear_histories): ... and this.
12637 (init_record_btrace_ops): Init to_can_execute_reverse.
12638 * NEWS: Announce it.
12639
118e6252
MM
126402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12641
12642 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12643 (forward_target_decr_pc_after_break)
12644 (target_decr_pc_after_break): New.
12645 * target.c (forward_target_decr_pc_after_break)
12646 (target_decr_pc_after_break): New.
12647 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12648 instead of gdbarch_decr_pc_after_break.
12649 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12650 instead of gdbarch_decr_pc_after_break.
12651 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12652 instead of gdbarch_decr_pc_after_break.
12653 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12654 instead of gdbarch_decr_pc_after_break.
12655 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12656 instead of gdbarch_decr_pc_after_break.
12657 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12658 instead of gdbarch_decr_pc_after_break.
12659
6e07b1d2
MM
126602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12661
12662 * btrace.c: Include regcache.h.
12663 (btrace_add_pc): New.
12664 (btrace_enable): Call btrace_add_pc.
12665 (btrace_is_empty): New.
12666 * btrace.h (btrace_is_empty): New.
12667 * record-btrace.c (require_btrace, record_btrace_info): Call
12668 btrace_is_empty.
12669
969c39fb
MM
126702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12671
12672 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12673 Support delta reads.
12674 (linux_disable_btrace): Change return type.
12675 * common/linux-btrace.h (linux_read_btrace): Change parameters
12676 and return type to allow error reporting. Update users.
12677 (linux_disable_btrace): Change return type. Update users.
12678 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12679 New.
12680 (btrace_error): New.
12681 (btrace_block) <begin>: Comment on BEGIN == 0.
12682 * btrace.c (btrace_compute_ftrace): Start from the end of
12683 the current trace.
12684 (btrace_stitch_trace, btrace_clear_history): New.
12685 (btrace_fetch): Read delta trace, return if replaying.
12686 (btrace_clear): Move clear history code to btrace_clear_history.
12687 (parse_xml_btrace): Throw an error if parsing failed.
12688 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12689 and return type to allow error reporting.
12690 (target_read_btrace): Change parameters and return type to allow
12691 error reporting.
12692 * target.c (target_read_btrace): Update.
12693 * remote.c (remote_read_btrace): Support delta reads. Pass
12694 errors on.
12695 * NEWS: Announce it.
12696
0b722aec
MM
126972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12698
12699 * record.h (record_btrace_frame_unwind)
12700 (record_btrace_tailcall_frame_unwind): New declarations.
12701 * dwarf2-frame: Include record.h
12702 (dwarf2_frame_cfa): Throw an error for btrace frames.
12703 * record-btrace.c: Include hashtab.h.
12704 (btrace_get_bfun_name): New.
12705 (btrace_call_history): Call btrace_get_bfun_name.
12706 (struct btrace_frame_cache): New.
12707 (bfcache): New.
12708 (bfcache_hash, bfcache_eq, bfcache_new): New.
12709 (btrace_get_frame_function): New.
12710 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12711 (record_btrace_frame_this_id): Compute own id.
12712 (record_btrace_frame_prev_register): Provide PC, throw_error
12713 for all other registers.
12714 (record_btrace_frame_sniffer): Detect btrace frames.
12715 (record_btrace_tailcall_frame_sniffer): New.
12716 (record_btrace_frame_dealloc_cache): New.
12717 (record_btrace_frame_unwind): Add new functions.
12718 (record_btrace_tailcall_frame_unwind): New.
12719 (_initialize_record_btrace): Allocate cache.
12720 * btrace.c (btrace_clear): Call reinit_frame_cache.
12721 * NEWS: Announce it.
12722
066ce621
MM
127232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12724
12725 * record-btrace.c (record_btrace_set_replay)
12726 (record_btrace_goto_begin, record_btrace_goto_end)
12727 (record_btrace_goto): New.
12728 (init_record_btrace_ops): Initialize them.
12729 * NEWS: Announce it.
12730
e2887aa3
MM
127312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12732
12733 * record-btrace.c (record_btrace_find_new_threads)
12734 (record_btrace_thread_alive): New.
12735 (init_record_btrace_ops): Initialize to_find_new_threads and
12736 to_thread_alive.
12737
b2f4cfde
MM
127382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12739
12740 * record-btrace.c (record_btrace_resume): New.
12741 (record_btrace_wait): New.
12742 (init_record_btrace_ops): Initialize to_wait and to_resume.
12743
633785ff
MM
127442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12745
12746 * record-btrace.c (record_btrace_xfer_partial)
12747 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12748 (record_btrace_allow_memory_access): New.
12749 (init_record_btrace_ops): Initialize new methods.
12750 * target.c (raw_memory_xfer_partial): Bail out if target reports
12751 that this memory is not available.
12752
3db08215
MM
127532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12754
12755 * target.h (target_ops) <to_insert_breakpoint>
12756 <to_remove_breakpoint>: Add target_ops parameter.
12757 (forward_target_insert_breakpoint): New.
12758 (forward_target_remove_breakpoint): New.
12759 (memory_remove_breakpoint, memory_insert_breakpoint):
12760 Add target_ops parameter.
12761 * target.c (target_insert_breakpoint): Split into this and ...
12762 (forward_target_insert_breakpoint): ... this.
12763 (target_remove_breakpoint): Split into this and ...
12764 (forward_target_remove_breakpoint): ... this.
12765 (debug_to_insert_breakpoint): Add target_ops parameter.
12766 Call forward_target_insert_breakpoint.
12767 (debug_to_remove_breakpoint): Add target_ops parameter.
12768 Call forward_target_remove_breakpoint.
12769 (update_current_target): Do not inherit or default to_insert_breakpoint
12770 and to_remove_breakpoint.
12771 * corelow.c (ignore): Add target_ops parameter.
12772 * exec.c (ignore): Add target_ops parameter.
12773 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12774 Add target_ops parameter.
12775 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12776 Add target_ops parameter.
12777 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12778 Add target_ops parameter.
12779 * record-full.c (record_full_beneath_to_insert_breakpoint)
12780 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12781 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12782 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12783 (record_full_core_remove_breakpoint): Add target_ops parameter.
12784 Update users.
12785 (record_full_beneath_to_insert_breakpoint_ops)
12786 (record_full_beneath_to_remove_breakpoint_ops)
12787 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12788 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12789 tmp_to_remove_breakpoint_ops,
12790 record_full_beneath_to_insert_breakpoint_ops, and
12791 record_full_beneath_to_remove_breakpoint_ops.
12792 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12793 (m32r_remove_breakpoint): Add target_ops parameter.
12794 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12795 Add target_ops parameter.
12796 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12797 Add target_ops parameter.
12798
cecac1ab
MM
127992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12800 Markus Metzger <markus.t.metzger@intel.com>
12801
12802 * record-btrace.c: Include frame-unwind.h.
12803 (record_btrace_frame_unwind_stop_reason)
12804 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12805 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12806 New.
12807 (init_record_btrace_ops): Install it.
12808
824344ca
MM
128092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12810
12811 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12812 get_prev_frame_1.
12813
32261e52
MM
128142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12815
12816 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12817 earlier.
12818
ea001bdc
MM
128192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12820
12821 * frame-unwind.c: Include target.h.
12822 (frame_unwind_try_unwinder): New function with code from ...
12823 (frame_unwind_find_by_frame): ... here. New variable
12824 unwinder_from_target, call also target_get_unwinder)
12825 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12826 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12827 * target.h (struct target_ops): New fields to_get_unwinder and
12828 to_get_tailcall_unwinder.
12829 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12830
1f3ef581
MM
128312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12832
12833 * record-btrace.c (record_btrace_fetch_registers)
12834 (record_btrace_store_registers)
12835 (record_btrace_to_prepare_to_store): New.
12836 (init_record_btrace_ops): Add the above.
12837
f32dbf8c
MM
128382014-01-16 Tom Tromey <tromey@redhat.com>
12839
12840 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12841 * target.h (struct target_ops) <to_prepare_to_store>: Add
12842 argument.
12843 (target_prepare_to_store): Add argument.
12844 * target.c (debug_to_prepare_to_store): Add argument.
12845 (update_current_target): Update.
12846 * remote.c (remote_prepare_to_store): Add 'self' argument.
12847 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12848 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12849 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12850 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12851 argument.
12852 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12853 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12854 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12855 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12856 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12857
07bbe694
MM
128582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12859
12860 * btrace.h (replay) <replay>: New.
12861 (btrace_is_replaying): New.
12862 * btrace.c (btrace_clear): Free replay iterator.
12863 (btrace_is_replaying): New.
12864 * record-btrace.c (record_btrace_is_replaying): New.
12865 (record_btrace_info): Print insn number if replaying.
12866 (record_btrace_insn_history): Start at replay position.
12867 (record_btrace_call_history): Start at replay position.
12868 (init_record_btrace_ops): Init to_record_is_replaying.
12869
0688d04e
MM
128702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12871
12872 * record-btrace.c (record_btrace_insn_history_range): Include
12873 end.
12874 (record_btrace_insn_history_from): Adjust range.
12875 (record_btrace_call_history_range): Include
12876 end.
12877 (record_btrace_call_history_from): Adjust range.
12878 * NEWS: Announce changes.
12879
8710b709
MM
128802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12881
12882 * record.h (enum record_print_flag)
12883 <record_print_indent_calls>: New.
12884 * record.c (get_call_history_modifiers): Recognize /c modifier.
12885 (_initialize_record): Document /c modifier.
12886 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12887 Reorder fields. Optionally indent the function name. Update
12888 all users.
12889 * NEWS: Announce changes.
12890
d0fa7535
MM
128912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12892
12893 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12894
5de9129b
MM
128952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12896
12897 * btrace.c (ftrace_new_function): Start counting at one.
12898 * record-btrace.c (record_btrace_info): Adjust number of calls
12899 and insns.
12900 * NEWS: Announce it.
12901
7acbe133
MM
129022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12903
12904 * record-btrace.c (btrace_call_history_insn_range): Print
12905 insn range as [begin, end].
12906
23a7fe75
MM
129072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12908
12909 * btrace.h (struct btrace_func_link): New.
12910 (enum btrace_function_flag): New.
12911 (struct btrace_inst): Rename to ...
12912 (struct btrace_insn): ...this. Update all users.
12913 (struct btrace_func) <ibegin, iend>: Remove.
12914 (struct btrace_func_link): New.
12915 (struct btrace_func): Rename to ...
12916 (struct btrace_function): ...this. Update all users.
12917 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12918 (number, level, flags>: New.
12919 (struct btrace_insn_iterator): Rename to ...
12920 (struct btrace_insn_history): ...this.
12921 Update all users.
12922 (struct btrace_insn_iterator, btrace_call_iterator): New.
12923 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12924 (struct btrace_target_info) <begin, end, level>
12925 <insn_history, call_history>: New.
12926 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12927 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12928 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12929 (btrace_call_number, btrace_call_begin, btrace_call_end)
12930 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12931 (btrace_find_function_by_number, btrace_set_insn_history)
12932 (btrace_set_call_history): New.
12933 * btrace.c (btrace_init_insn_iterator)
12934 (btrace_init_func_iterator, compute_itrace): Remove.
12935 (ftrace_print_function_name, ftrace_print_filename)
12936 (ftrace_skip_file): Change
12937 parameter to const.
12938 (ftrace_init_func): Remove.
12939 (ftrace_debug): Use new btrace_function fields.
12940 (ftrace_function_switched): Also consider gaining and
12941 losing symbol information).
12942 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12943 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12944 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12945 New.
12946 (ftrace_new_function): Move. Remove debug print.
12947 (ftrace_update_lines, ftrace_update_insns): New.
12948 (ftrace_update_function): Check for call, ret, and jump.
12949 (compute_ftrace): Renamed to ...
12950 (btrace_compute_ftrace): ...this. Rewritten to compute call
12951 stack.
12952 (btrace_fetch, btrace_clear): Updated.
12953 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12954 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12955 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12956 (btrace_call_number, btrace_call_begin, btrace_call_end)
12957 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12958 (btrace_find_function_by_number, btrace_set_insn_history)
12959 (btrace_set_call_history): New.
12960 * record-btrace.c (require_btrace): Use new btrace thread
12961 info fields.
12962 (record_btrace_info, btrace_insn_history)
12963 (record_btrace_insn_history, record_btrace_insn_history_range):
12964 Use new btrace thread info fields and new iterator.
12965 (btrace_func_history_src_line): Rename to ...
12966 (btrace_call_history_src_line): ...this. Use new btrace
12967 thread info fields.
12968 (btrace_func_history): Rename to ...
12969 (btrace_call_history): ...this. Use new btrace thread info
12970 fields and new iterator.
12971 (record_btrace_call_history, record_btrace_call_history_range):
12972 Use new btrace thread info fields and new iterator.
12973
8372a7cb
MM
129742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12975
12976 * frame.h (frame_id_build_unavailable_stack_special): New.
12977 * frame.c (frame_id_build_unavailable_stack_special): New.
12978
c2170eef
MM
129792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12980
12981 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12982 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12983 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12984 to gdbarch.
12985 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12986 (i386_insn_is_jump, i386_jmp_p): New.
12987 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12988 insn_is_jump to gdbarch.
12989 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12990 * gdbarch.h: Regenerated.
12991 * gdbarch.c: Regenerated.
12992 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12993 (default_insn_is_jump): New.
12994 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12995 (default_insn_is_jump): New.
12996
864089d2
MM
129972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12998
12999 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13000 Change to ...
13001 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13002 (btrace_read_type) <btrace_read_new>: Change to ...
13003 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13004
ed9edfb5
MM
130052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13006
13007 * common/linux-btrace.c (linux_read_btrace): Free trace from
13008 previous iteration.
13009
fbcbc3fd
DE
130102014-01-15 Doug Evans <dje@google.com>
13011
13012 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13013 uint32_t.
13014
3d548a53
TT
130152014-01-15 Tom Tromey <tromey@redhat.com>
13016
13017 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13018 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13019 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13020 (set_objfile_main_name): New function.
13021 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13022 language_of_main>: New fields.
13023 (set_objfile_main_name): Declare.
13024 * symtab.c (find_main_name): Loop over objfiles to find the main
13025 name and language.
13026 (set_main_name): Now static.
13027 (get_main_info): Add comment.
13028 * symtab.h (set_main_name): Don't declare.
13029
32ac0d11
TT
130302014-01-15 Tom Tromey <tromey@redhat.com>
13031
13032 * symtab.c (main_progspace_key): New global.
13033 (struct main_info): New.
13034 (name_of_main, language_of_main): Remove.
13035 (get_main_info, main_info_cleanup): New function.
13036 (set_main_name, main_name, main_language): Use get_main_info.
13037 (_initialize_symtab): Initialize main_progspace_key.
13038
9e6c82ad
TT
130392014-01-15 Tom Tromey <tromey@redhat.com>
13040
13041 * dbxread.c (process_one_symbol): Update.
13042 * dwarf2read.c (read_partial_die): Update.
13043 * symfile.c (set_initial_language): Call main_language.
13044 * symtab.c (language_of_main): Now static.
13045 (set_main_name): Add 'lang' parameter.
13046 (find_main_name): Update.
13047 (main_language): New function.
13048 (symtab_observer_executable_changed): Update.
13049 * symtab.h (set_main_name): Update.
13050 (language_of_main): Remove.
13051 (main_language): Declare.
13052
6ef55de7
TT
130532014-01-15 Tom Tromey <tromey@redhat.com>
13054
13055 * symfile.c (init_entry_point_info): Use new "initialized" field.
13056 Update.
13057 * objfiles.h (struct entry_point) <initialized>: New field.
13058 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13059 (struct objfile) <ei>: ...here. Remove.
13060 * objfiles.c (entry_point_address_query): Update.
13061
53eddfa6
TT
130622014-01-15 Tom Tromey <tromey@redhat.com>
13063
13064 * objfiles.c (entry_point_address_query): Relocate entry point
13065 address.
13066 (objfile_relocate1): Do not relocate entry point address.
13067 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13068 <the_bfd_section_index>: New field.
13069 * symfile.c (init_entry_point_info): Find the entry point's
13070 section.
13071
d56e56aa
TT
130722014-01-15 Tom Tromey <tromey@redhat.com>
13073
13074 * solib-frv.c (enable_break): Use entry_point_address_query.
13075
33a97bbe
OJ
130762014-01-15 Omair Javaid <omair.javaid@linaro.org>
13077
13078 * NEWS: Add note on improved process record-replay on
13079 arm*-linux* targets.
13080
c6ec2b30
OJ
130812014-01-15 Omair Javaid <omair.javaid@linaro.org>
13082
13083 * arm-tdep.c (enum arm_record_result): New enum.
13084 (arm_record_unsupported_insn): New function.
13085 (arm_record_coproc_data_proc): Removed.
13086 (thumb2_record_ld_st_multiple): New function.
13087 (thumb2_record_ld_st_dual_ex_tbb): New function.
13088 (thumb2_record_data_proc_sreg_mimm): New function.
13089 (thumb2_record_ps_dest_generic): New function.
13090 (thumb2_record_branch_misc_cntrl): New function.
13091 (thumb2_record_str_single_data): New function.
13092 (thumb2_record_ld_mem_hints): New function.
13093 (thumb2_record_ld_word): New function.
13094 (thumb2_record_lmul_lmla_div): New function.
13095 (thumb2_record_decode_insn_handler): New function.
13096 (decode_insn): Add thumb32 instruction handlers.
13097
97dfe206
OJ
130982014-01-15 Omair Javaid <omair.javaid@linaro.org>
13099
13100 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13101 (struct arm_linux_record_tdep): Declare.
13102 (arm_canonicalize_syscall): New function.
13103 (arm_all_but_pc_registers_record): New function.
13104 (arm_linux_syscall_record): New function.
13105 (arm_linux_init_abi): Add syscall recording constructs.
13106 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13107 decoding. (arm_record_coproc_data_proc): Update arm syscall
13108 decoding.
13109 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13110 <arm_syscall_record>: New field.
13111 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13112 gdb_target_obs.
13113
9904a494
OJ
131142014-01-15 Omair Javaid <omair.javaid@linaro.org>
13115
13116 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13117 register for push instruction recording.
13118
f969241e
OJ
131192014-01-15 Omair Javaid <omair.javaid@linaro.org>
13120
13121 * arm-tdep.c (thumb_record_misc): Update to correct logical
13122 error while recording ldm, ldmia and pop instructions.
13123
bfbbec00
OJ
131242014-01-15 Omair Javaid <omair.javaid@linaro.org>
13125
13126 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13127
e40adcc9
PA
131282014-01-15 Pedro Alves <palves@redhat.com>
13129
13130 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13131 (go32_resume, go32_fetch_registers, store_register)
13132 (go32_store_registers, go32_prepare_to_store)
13133 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13134 (go32_create_inferior, go32_can_run, go32_terminal_init)
13135 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13136 declarations.
13137
b0a16e66
TT
131382014-01-15 Tom Tromey <tromey@redhat.com>
13139
13140 * target.h (async_callback_ftype): New typedef.
13141 (struct target_ops) <to_async>: Use it.
13142
bf7105a4
JB
131432014-01-15 Joel Brobecker <brobecker@adacore.com>
13144
13145 * python/py-value.c (get_field_type): Remove unnecessary curly
13146 braces for single-statement if block.
13147
a8f35c2e
JB
131482014-01-15 Joel Brobecker <brobecker@adacore.com>
13149
13150 * python/py-type.c (convert_field): Add missing empty line
13151 after declarations.
13152
bb4142cf
DE
131532014-01-14 Doug Evans <dje@google.com>
13154
13155 * symfile.h (expand_symtabs_matching): Renamed from
13156 expand_partial_symbol_names. Update prototype.
13157 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13158 * symfile.c (expand_symtabs_matching): Renamed from
13159 expand_partial_symbol_names. New args file_matcher, kind.
13160 Rename arg fun to symbol_matcher.
13161 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13162 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13163 ada_expand_partial_symbol_name.
13164 (ada_make_symbol_completion_list): Update to call
13165 expand_symtabs_matching.
13166 (ada_add_global_exceptions): Call expand_symtabs_matching.
13167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13168 call map_symbol_filenames.
13169 * symtab.c (sources_info): Update to call map_symbol_filenames.
13170 (search_symbols): Call expand_symtabs_matching.
13171 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13172 (default_make_symbol_completion_list_break_on): Update to call
13173 expand_symtabs_matching.
13174 (make_source_files_completion_list): Update to call
13175 map_symbol_filenames.
13176
206f2a57
DE
131772014-01-14 Doug Evans <dje@google.com>
13178
13179 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13180 (expand_symtabs_symbol_matcher_ftype): New typedef.
13181 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13182 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13183 * symfile.c (expand_partial_symbol_names): Update to use
13184 expand_symtabs_symbol_matcher_ftype.
13185 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13186 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13187 Arg name_matcher renamed to symbol_matcher.
13188 * psymtab.c (recursively_search_psymtabs): Update to use
13189 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13190 sym_matcher.
13191 (expand_symtabs_matching_via_partial): Update to use
13192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13193 Arg name_matcher renamed to symbol_matcher.
13194
540c2971
DE
131952014-01-14 Doug Evans <dje@google.com>
13196
13197 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13198 (map_partial_symbol_filenames): Ditto.
13199 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13200 (map_partial_symbol_filenames): Ditto.
13201 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13202 (map_partial_symbol_filenames): Ditto.
13203 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13204 (map_partial_symbol_filenames): Ditto.
13205 * symtab.c: Delete #include "psymtab.h".
13206
8213266a
PA
132072014-01-14 Pedro Alves <palves@redhat.com>
13208 Tom Tromey <tromey@redhat.com>
13209
13210 * infrun.c (use_displaced_stepping): Use find_record_target
13211 instead of RECORD_IS_USED.
13212 (adjust_pc_after_break): Use record_full_is_used instead of
13213 RECORD_IS_USED.
13214 * record-btrace.c (record_btrace_open): Call record_preopen
13215 instead of checking RECORD_IS_USED.
13216 * record-full.c (record_full_shortname)
13217 (record_full_core_shortname): New globals.
13218 (record_full_is_used): New function.
13219 (find_full_open): Call record_preopen instead of checking
13220 RECORD_IS_USED.
13221 (init_record_full_ops): Set the target's shortname to
13222 record_full_shortname.
13223 (init_record_full_core_ops): Set the target's shortname to
13224 record_full_core_shortname.
13225 * record-full.h (record_full_is_used): Declare.
13226 * record.c (find_record_target): Make extern.
13227 (record_preopen): New function.
13228 * record.h (RECORD_IS_USED): Delete macro.
13229 (find_record_target, record_preopen): Declare functions.
13230
7ec1862d
YQ
132312014-01-14 Yao Qi <yao@codesourcery.com>
13232
13233 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13234 'len''s type to ULONGEST.
13235 (core_xfer_shared_libraries_aix): Likewise.
13236 * gdbarch.c, gdbarch.h: Regenerated.
13237 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13238 Change type of 'len' to ULONGEST.
13239 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13240 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13241
dea80a27
YQ
132422014-01-14 Yao Qi <yao@codesourcery.com>
13243
13244 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13245 type of 'len' to ULONGEST.
13246 (linux_xfer_osdata_processgroups): Likewise.
13247 (linux_xfer_osdata_threads): Likewise.
13248 (linux_xfer_osdata_fds): Likewise.
13249 (linux_xfer_osdata_isockets): Likewise.
13250 (linux_xfer_osdata_shm): Likewise.
13251 (linux_xfer_osdata_sem): Likewise.
13252 (linux_xfer_osdata_msg): Likewise.
13253 (linux_common_xfer_osdata): Likewise.
13254 (struct osdata_type) <getter>: Likewise.
13255 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13256 the declaration.
13257
b55e14c7
YQ
132582014-01-14 Yao Qi <yao@codesourcery.com>
13259
13260 * target.h (target_xfer_partial_ftype): Update.
13261 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13262 ULONGEST.
13263 * aix-thread.c (aix_thread_xfer_partial): Change type of
13264 argument 'len' to ULONGEST.
13265 * auxv.c (procfs_xfer_auxv): Likewise.
13266 (ld_so_xfer_auxv): Likewise.
13267 (memory_xfer_auxv): Likewise.
13268 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13269 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13270 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13271 * corelow.c (core_xfer_partial): Likewise.
13272 * ctf.c (ctf_xfer_partial): Likewise.
13273 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13274 '%u'.
13275 (darwin_read_dyld_info): Likewise.
13276 (darwin_xfer_partial): Likewise.
13277 * exec.c (section_table_xfer_memory_partial): Likewise.
13278 (exec_xfer_partial): Likewise.
13279 * exec.h (section_table_xfer_memory_partial): Update
13280 declaration.
13281 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13282 instead of plongest.
13283 (gnu_xfer_partial): Likewise.
13284 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13285 (ia64_hpux_xfer_solib_got): Likewise.
13286 (ia64_hpux_xfer_partial): Likewise.
13287 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13288 * inf-ptrace.c (inf_ptrace_xfer_partial):
13289 * inf-ttrace.c (inf_ttrace_xfer_partial):
13290 * linux-nat.c (linux_xfer_siginfo): Likewise.
13291 (linux_nat_xfer_partial): Likewise.
13292 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13293 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13294 * monitor.c (monitor_xfer_memory): Likewise.
13295 (monitor_xfer_partial): Likewise.
13296 * procfs.c (procfs_xfer_partial): Likewise.
13297 * record-full.c (record_full_xfer_partial): Likewise.
13298 (record_full_core_xfer_partial): Likewise.
13299 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13300 instead of plongest.
13301 (gdbsim_xfer_partial): Likewise.
13302 * remote.c (remote_xfer_partial): Likewise.
13303 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13304 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13305 declaration.
13306 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13307 (rs6000_xfer_shared_libraries): Likewise.
13308 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13309 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13310 (sparc_xfer_partial): Likewise.
13311 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13312 (spu_xfer_partial): Likewise.
13313 * spu-multiarch.c (spu_xfer_partial): Likewise.
13314 * target.c (target_read_live_memory): Likewise.
13315 (memory_xfer_live_readonly_partial): Likewise.
13316 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13317 (target_xfer_partial, default_xfer_partial): Likewise.
13318 (current_xfer_partial): Likewise.
13319 * tracepoint.c (tfile_xfer_partial): Likewise.
13320 * windows-nat.c (windows_xfer_memory): Likewise. Call
13321 pulongest instead of plongest.
13322 (windows_xfer_partial): Likewise.
13323 (windows_xfer_shared_libraries): Likewise.
13324
05804640
YQ
133252014-01-14 Yao Qi <yao@codesourcery.com>
13326
13327 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13328 target_xfer_partial_ftype.
13329
b5b08fb4
SC
133302014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13331
13332 PR python/15464
13333 PR python/16113
13334 * valops.c (value_struct_elt_bitpos): New function
13335 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13336 object to 'None' if the field name is an empty string ("").
13337 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13338 attribute to look for a field when 'name' is 'None'.
13339 (get_field_type): New function
13340
13aaf454
DE
133412014-01-13 Doug Evans <dje@google.com>
13342
13343 PR symtab/16426
13344 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13345 (try_open_dwop_file): Ditto.
13346 * gdb_bfd.c: #include "vec.h".
13347 (bfdp): New typedef.
13348 (struct gdb_bfd_data): New member included_bfds.
13349 (gdb_bfd_unref): Unref all included bfds.
13350 (gdb_bfd_record_inclusion): New function.
13351 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13352
c2cec97c
TT
133532014-01-13 Tom Tromey <tromey@redhat.com>
13354
13355 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13356
78e5999d
TT
133572014-01-13 Tom Tromey <tromey@redhat.com>
13358
13359 * defs.h (use_windows): Remove.
13360 * gdb.c (main): Update.
13361 * main.c (captured_main, gdb_main): Update.
13362 * main.h (struct captured_main_args) <use_windows>: Remove.
13363 * top.c (use_windows): Remove.
13364
f2052bbe
TT
133652014-01-13 Tom Tromey <tromey@redhat.com>
13366
13367 * defs.h (deprecated_flush_hook): Remove.
13368
fde4f8ed
JK
133692014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13370
13371 PR threads/16216
13372 * linux-thread-db.c (try_thread_db_load): Add parameter
13373 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13374 (try_thread_db_load_from_pdir_1): Move it there from here.
13375 (try_thread_db_load_from_sdir): Update caller.
13376 (try_thread_db_load_from_dir): Move it there from here.
13377
bdf61915
PP
133782014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13379
13380 * regformats/regdat.sh: Always rewrite the register file.
13381
f71e1a8d
PA
133822014-01-13 Pedro Alves <palves@redhat.com>
13383
13384 * Makefile.in (CHECK_HEADERS): New variable.
13385 (check-headers:): New rule.
13386
42c85435
TT
133872014-01-13 Tom Tromey <tromey@redhat.com>
13388
13389 * cli/cli-setshow.c (do_set_command): Update.
13390 * defs.h (deprecated_set_hook): Remove.
13391 * top.c (deprecated_set_hook): Remove.
13392
f8de5129
PA
133932014-01-13 Pedro Alves <palves@redhat.com>
13394
13395 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13396 the tracepoint if the PC is a pseudo-register.
13397
fc270c35
TT
133982014-01-13 Tom Tromey <tromey@redhat.com>
13399
13400 * defs.h (XCALLOC): Remove.
13401 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13402 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13403 * dwarf2loc.c (allocate_piece_closure): Likewise.
13404 * elfread.c (elf_symfile_segments): Likewise.
13405 (elf_symfile_segments): Likewise.
13406 * gdbtypes.c (copy_type_recursive): Likewise.
13407 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13408 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13409 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13410 XCALLOC.
13411 * mt-tdep.c (mt_gdbarch_init): Likewise.
13412 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13413 XCALLOC.
13414 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13415 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13416 * registry.c (registry_alloc_data): Likewise.
13417 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13418 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13419 * serial.c (serial_fdopen_ops): Likewise.
13420 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13421 XCALLOC.
13422 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13423 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13424 not XCALLOC.
13425
70ba0933
TT
134262014-01-13 Tom Tromey <tromey@redhat.com>
13427
13428 * defs.h (XMALLOC): Remove.
13429 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13430 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13431 * cli-out.c (struct ui_out *): Likewise.
13432 * cli/cli-dump.c (add_dump_command): Likewise.
13433 (add_dump_command): Likewise.
13434 * complaints.c (get_complaints): Likewise.
13435 (find_complaint): Likewise.
13436 * dwarf2-frame.c (execute_cfa_program): Likewise.
13437 * dwarf2read.c (abbrev_table_read_table): Likewise.
13438 * gdbarch.sh: Likewise.
13439 * gdbarch.c: Rebuild.
13440 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13441 * interps.c (interp_new): Likewise.
13442 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13443 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13444 * mi/mi-console.c (mi_console_file_new): Likewise.
13445 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13446 * mi/mi-out.c (mi_out_new): Likewise.
13447 * mi/mi-parse.c (mi_parse): Likewise.
13448 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13449 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13450 * observer.c (xalloc_observer_list_node): Likewise.
13451 * regcache.c (regcache_xmalloc_1): Likewise.
13452 * reggroups.c (reggroup_new): Likewise.
13453 (_initialize_reggroup): Likewise.
13454 * registry.c (register_data_with_cleanup): Likewise.
13455 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13456 * ser-base.c (serial_ttystate): Likewise.
13457 * ser-mingw.c (make_pipe_state): Likewise.
13458 * ser-pipe.c (pipe_open): Likewise.
13459 * serial.c (serial_open): Likewise.
13460 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13461 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13462 (tui_alloc_win_info): Likewise.
13463 (tui_add_content_elements): Likewise.
13464 * tui/tui-file.c (tui_file_new): Likewise.
13465 * tui/tui-out.c (tui_out_new): Likewise.
13466 * ui-file.c (mem_file_new): Likewise.
13467 * ui-out.c (push_level): Likewise.
13468 (make_cleanup_ui_out_end): Likewise.
13469 (append_header_to_list): Likewise.
13470 (ui_out_new): Likewise.
13471 * user-regs.c (user_reg_add_builtin): Likewise.
13472
41bf6aca
TT
134732014-01-13 Tom Tromey <tromey@redhat.com>
13474
13475 * defs.h (XZALLOC): Remove.
13476 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13477 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13478 (get_ada_tasks_inferior_data): Likewise.
13479 * auto-load.c (get_auto_load_pspace_data): Likewise.
13480 * auxv.c (get_auxv_inferior_data): Likewise.
13481 * bfd-target.c (target_bfd_reopen): Likewise.
13482 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13483 (deprecated_insert_raw_breakpoint): Likewise.
13484 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13485 * corelow.c (core_open): Likewise.
13486 * darwin-nat.c (darwin_check_new_threads): Likewise.
13487 (darwin_attach_pid): Likewise.
13488 * dummy-frame.c (dummy_frame_push): Likewise.
13489 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13490 * dwarf2loc.c (allocate_piece_closure): Likewise.
13491 * elfread.c (elf_symfile_segments): Likewise.
13492 * eval.c (ptrmath_type_p): Likewise.
13493 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13494 * gdbtypes.c (alloc_type_arch): Likewise.
13495 (alloc_type_instance): Likewise.
13496 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13497 * inf-child.c (inf_child_can_use_agent): Likewise.
13498 * inflow.c (get_inflow_inferior_data): Likewise.
13499 * infrun.c (save_infcall_suspend_state): Likewise.
13500 * jit.c (jit_reader_load): Likewise.
13501 (get_jit_objfile_data): Likewise.
13502 (get_jit_program_space_data): Likewise.
13503 (jit_object_open_impl): Likewise.
13504 (jit_symtab_open_impl): Likewise.
13505 (jit_block_open_impl): Likewise.
13506 (jit_frame_sniffer): Likewise.
13507 * linux-fork.c (add_fork): Likewise.
13508 * maint.c (make_command_stats_cleanup): Likewise.
13509 * objfiles.c (get_objfile_pspace_data): Likewise.
13510 * opencl-lang.c (struct lval_closure): Likewise.
13511 * osdata.c (osdata_start_osdata): Likewise.
13512 * progspace.c (new_address_space): Likewise.
13513 (add_program_space): Likewise.
13514 * remote-sim.c (get_sim_inferior_data): Likewise.
13515 * sh-tdep.c (sh_gdbarch_init): Likewise.
13516 * skip.c (Ignore): Likewise.
13517 (skip_delete_command): Likewise.
13518 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13519 (library_list_start_library): Likewise.
13520 (solib_aix_current_sos): Likewise.
13521 * solib-darwin.c (get_darwin_info): Likewise.
13522 (darwin_current_sos): Likewise.
13523 * solib-dsbt.c (get_dsbt_info): Likewise.
13524 * solib-ia64-hpux.c (new_so_list): Likewise.
13525 (ia64_hpux_get_solib_linkage_addr): Likewise.
13526 * solib-spu.c (append_ocl_sos): Likewise.
13527 (spu_current_sos): Likewise.
13528 * solib-svr4.c (get_svr4_info): Likewise.
13529 (svr4_keep_data_in_core): Likewise.
13530 (library_list_start_library): Likewise.
13531 (svr4_default_sos): Likewise.
13532 (svr4_read_so_list): Likewise.
13533 * solib-target.c (library_list_start_library): Likewise.
13534 (solib_target_current_sos): Likewise.
13535 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13536 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13537 * symfile.c (default_symfile_segments): Likewise.
13538 * target-descriptions.c (tdesc_data_init): Likewise.
13539 (tdesc_create_reg): Likewise.
13540 (struct tdesc_type *): Likewise.
13541 (tdesc_create_vector): Likewise.
13542 (tdesc_set_struct_size): Likewise.
13543 (struct tdesc_type *): Likewise.
13544 (tdesc_free_feature): Likewise.
13545 (tdesc_create_feature): Likewise.
13546 * windows-nat.c (windows_add_thread): Likewise.
13547 (windows_make_so): Likewise.
13548 * xml-support.c (gdb_xml_body_text): Likewise.
13549 (gdb_xml_create_parser_and_cleanup): Likewise.
13550 (xml_process_xincludes): Likewise.
13551 * xml-syscall.c (allocate_syscalls_info): Likewise.
13552 (syscall_create_syscall_desc): Likewise.
13553
5acfdbae
SDJ
135542014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13555
13556 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13557 function, with code from i386_stap_parse_special_token.
13558 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13559 (i386_stap_parse_special_token): Move code to the two functions
13560 above; simplify it.
13561
0000e5cc
PA
135622014-01-09 Pedro Alves <palves@redhat.com>
13563 Hui Zhu <hui@codesourcery.com>
13564
13565 PR gdb/16101
13566 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13567 bp_err_string. Don't mark the location shlib_disabled if the
13568 error thrown wasn't a generic or memory error. Catch errors
13569 thrown while inserting breakpoints in overlayed code. Output
13570 error message of software breakpoints.
13571 * remote.c (remote_insert_breakpoint): If this breakpoint has
13572 target-side commands but this stub doesn't support Z0 packets,
13573 throw NOT_SUPPORTED_ERROR error.
13574 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13575 * target.h (target_insert_breakpoint): Extend comment.
13576 (target_insert_hw_breakpoint): Add comment.
13577
b7ea362b
PA
135782014-01-08 Pedro Alves <palves@redhat.com>
13579
13580 * remote.c (remote_add_thread): Add threads silently if starting
13581 up.
13582 (remote_notice_new_inferior): If in all-stop, and starting up,
13583 don't call notice_new_inferior.
13584 (get_current_thread): New function, factored out from ...
13585 (add_current_inferior_and_thread): ... this. Adjust.
13586 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13587 found any thread, then select the remote's current thread as GDB's
13588 current thread too.
13589
b7bba001
JB
135902014-01-08 Joel Brobecker <brobecker@adacore.com>
13591
13592 * NEWS: Create a new section for the next release branch.
13593 Rename the section of the current branch, now that it has
13594 been cut.
13595
16dfbded
JB
135962014-01-08 Joel Brobecker <brobecker@adacore.com>
13597
13598 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13599 * version.in: Bump version to 7.7.50.DATE-cvs.
13600
22c90ac1
YQ
136012014-01-08 Yao Qi <yao@codesourcery.com>
13602
13603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13604 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13605 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13606
d64ad97c
YQ
136072014-01-08 Yao Qi <yao@codesourcery.com>
13608
13609 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13610 return value of bfd_get_filename to symbol_file_add_from_bfd.
13611
f93ba80c
PM
136122014-01-08 Pierre Muller <muller@sourceware.org>
13613
13614 Fix PR16201.
13615 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13616 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13617 to prim_record_mininal_symbol_and_info.
13618 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13619 in call to prim_record_minimal_symbol_and_info.
13620 (read_pe_exported_syms): Set index field of section_data.
13621
a4d9ba85
AP
136222014-01-07 Andrew Pinski <apinski@cavium.com>
13623
13624 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13625 * features/aarch64.c: Regenerate.
13626
1b67eb02
AS
136272014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13628
13629 * target.c (return_null): Define.
13630 (update_current_target): Use it instead of return_zero for
13631 functions that return a pointer.
13632
5e3f4fab
EBM
136332014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13634
13635 * source.c (add_path): Fix check for duplicated paths in the previously
13636 included paths.
13637
e2616788
HK
136382014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13639
13640 * ada-lang.c: Remove duplicated include statements.
13641 * alphabsd-nat.c: Ditto.
13642 * amd64-darwin-tdep.c: Ditto.
13643 * amd64fbsd-nat.c: Ditto.
13644 * auto-load.c: Ditto.
13645 * ax-gdb.c: Ditto.
13646 * breakpoint.c: Ditto.
13647 * dbxread.c: Ditto.
13648 * fork-child.c: Ditto.
13649 * gdb_usleep.c: Ditto.
13650 * i386-darwin-tdep.c: Ditto.
13651 * i386fbsd-nat.c: Ditto.
13652 * infcmd.c: Ditto.
13653 * inferior.c: Ditto.
13654 * jv-lang.c: Ditto.
13655 * linux-nat.c: Ditto.
13656 * linux-tdep.c: Ditto.
13657 * m68kbsd-nat.c: Ditto.
13658 * m68klinux-nat.c: Ditto.
13659 * microblaze-tdep.c: Ditto.
13660 * mips-linux-tdep.c: Ditto.
13661 * mn10300-tdep.c: Ditto.
13662 * nto-tdep.c: Ditto.
13663 * opencl-lang.c: Ditto.
13664 * osdata.c: Ditto.
13665 * printcmd.c: Ditto.
13666 * regcache.c: Ditto.
13667 * remote-m32r-sdi.c: Ditto.
13668 * remote.c: Ditto.
13669 * symfile.c: Ditto.
13670 * symtab.c: Ditto.
13671 * tilegx-linux-nat.c: Ditto.
13672 * tilegx-tdep.c: Ditto.
13673 * tracepoint.c: Ditto.
13674 * valops.c: Ditto.
13675 * vaxbsd-nat.c: Ditto.
13676 * windows-nat.c: Ditto.
13677 * xtensa-tdep.c: Ditto.
13678
bd1f7788
YQ
136792014-01-07 Yao Qi <yao@codesourcery.com>
13680
13681 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13682
79301218
JB
136832014-01-07 Yao Qi <yao@codesourcery.com>
13684 Joel Brobecker <brobecker@adacore.com>
13685
13686 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13687 (pdc_write_regs): Likewise.
13688 (fetch_regs_kernel_thread): Likewise.
13689 (store_regs_kernel_thread): Likewise.
13690
136912014-01-07 Joel Brobecker <brobecker@adacore.com>
13692
13693 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13694 tagged type objects to their actual type.
13695
8e355c5d
JB
136962014-01-07 Joel Brobecker <brobecker@adacore.com>
13697
13698 * ada-valprint.c (print_field_values): Add "language" parameter.
13699 Update calls to print_field_values and print_variant_part.
13700 Pass new parameter "language" in call to val_print instead
13701 of "current_language". Replace call to ada_val_print by call
13702 to val_print.
13703 (print_variant_part): Add "language" parameter.
13704 (ada_val_print_struct_union): Update call to print_field_values.
13705
4fbf5aa5
JB
137062014-01-07 Joel Brobecker <brobecker@adacore.com>
13707
13708 * ada-valprint.c (ui_memcpy): Delete.
13709 (ada_print_floating): Update documentation. Add empty line
13710 between between function documentation and implementation.
13711 Delete variable "buffer". Use ui_file_xstrdup in place of
13712 ui_file_put. Minor adjustments following this change.
13713
71855601
JB
137142014-01-07 Joel Brobecker <brobecker@adacore.com>
13715
13716 * ada-valprint.c (ada_val_print_string): New function,
13717 extracted from ada_val_print_array.
13718 (ada_val_print_array): Replace extracted code by call
13719 to ada_val_print_string followed by a return. Move
13720 "else" branch to the function's top block.
13721
4eb27a30
JB
137222014-01-07 Joel Brobecker <brobecker@adacore.com>
13723
13724 * ada-valprint.c (ada_val_print_array): Move implementation
13725 down. Rename parameter "offset" and "val" into "offset_aligned"
13726 and "original_value" respectively. Add parameter "offset".
13727
34b27950
JB
137282014-01-07 Joel Brobecker <brobecker@adacore.com>
13729
13730 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13731 re-organizing the code. Change the "???" message printed
13732 when target type is a TYPE_CODE_UNDEF into
13733 "<ref to undefined type>".
13734
079e4591
JB
137352014-01-07 Joel Brobecker <brobecker@adacore.com>
13736
13737 * ada-valprint.c (print_record): Delete, implementation inlined...
13738 (ada_val_print_struct_union): ... here. Remove call to
13739 ada_check_typedef in inlined implementation.
13740
8004dfd1
JB
137412014-01-07 Joel Brobecker <brobecker@adacore.com>
13742
13743 * ada-valprint.c (ada_val_print_gnat_array): New function,
13744 extracted from ada_val_print_1;
13745 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13746 (ada_val_print_flt, ada_val_print_struct_union)
13747 (ada_val_print_ref): Likewise.
13748 (ada_val_print_1): Delete variables i and elttype.
13749 Replace extracted-out code by call to corresponding
13750 new functions.
13751
760a2db0
JB
137522014-01-07 Joel Brobecker <brobecker@adacore.com>
13753
13754 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13755
3a92c861
JB
137562014-01-07 Joel Brobecker <brobecker@adacore.com>
13757
13758 * ada-valprint.c (ada_val_print_1): Replace calls to
13759 ada_val_print_1 by calls to val_print.
13760
cd1630f9
JB
137612014-01-07 Joel Brobecker <brobecker@adacore.com>
13762
13763 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13764 Update calls to self accordingly. Replace calls to c_val_print
13765 by calls to val_print.
13766
bdf779a0
JB
137672014-01-07 Joel Brobecker <brobecker@adacore.com>
13768
13769 * ada-valprint.c (print_record): Delete declaration.
13770 (adjust_type_signedness, ada_val_print_1): Likewise.
13771 (ada_val_print): Move function implementation down.
13772 (print_variant_part, print_field_values, print_record):
13773 Move function implementation up.
13774
c0d48811
JB
137752014-01-07 Joel Brobecker <brobecker@adacore.com>
13776
13777 * python/py-type.c (typy_get_name): New function.
13778 (type_object_getset): Add entry for attribute "name".
13779 * NEWS: Add entry mentioning this new attribute.
13780
c26e9cbb
YQ
137812014-01-07 Yao Qi <yao@codesourcery.com>
13782
13783 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13784 statement.
13785
0cc6f43d
YQ
137862014-01-07 Yao Qi <yao@codesourcery.com>
13787
13788 * gnu-nat.c (info_port_rights): Add qualifier const to
13789 argument args.
13790
eec03155
YQ
137912014-01-07 Yao Qi <yao@codesourcery.com>
13792
13793 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13794
f04a82ef
YQ
137952014-01-07 Yao Qi <yao@codesourcery.com>
13796
13797 * gnu-nat.c (make_inf) Update declaration.
13798 (make_inf): Make it static.
13799 (inf_set_traced): Likewise.
13800 (inf_port_to_thread, inf_task_died_status): Likewise.
13801
d57dda0a
YQ
138022014-01-07 Yao Qi <yao@codesourcery.com>
13803
13804 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13805
3aa8c969
YQ
138062014-01-07 Yao Qi <yao@codesourcery.com>
13807
13808 * gnu-nat.c (_initialize_gnu_nat): Declare.
13809
94123b4f
YQ
138102014-01-07 Yao Qi <yao@codesourcery.com>
13811
13812 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13813 'enum bfd_endian'.
13814 (struct gdbarch_info) <byte_order>: Change type to
13815 'enum bfd_endian'.
13816 <byte_order_for_code>: Likewise.
13817 * gdbarch.c, gdbarch.h: Regenerated.
13818
dc81d70a
TT
138192014-01-06 Sasha Smundak <asmundak@google.com>
13820
13821 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13822
cc2f3c35
TT
138232014-01-06 Tom Tromey <tromey@redhat.com>
13824
13825 * doublest.c (convert_doublest_to_floatformat): Use const, not
13826 CONST.
13827 * somread.c (som_symtab_read): Likewise.
13828
adcf2eed
HZ
138292014-01-07 Hui Zhu <hui@codesourcery.com>
13830
13831 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13832 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13833 (gdb_bfd_fopen): Ditto.
13834 (gdb_bfd_openr): Ditto.
13835 (gdb_bfd_openw): Ditto.
13836 (gdb_bfd_openr_iovec): Ditto.
13837 (gdb_bfd_fdopenr): Ditto.
13838 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13839 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13840 with xstrdup.
13841 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13842 with xstrdup.
13843 * symfile-mem.c (symbol_file_add_from_memory): Removed
13844 gdb_bfd_stash_filename.
13845
50722198
DE
138462014-01-03 Doug Evans <dje@google.com>
13847
13848 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13849 output.
13850
2fa4b862
JB
138512014-01-01 Joel Brobecker <brobecker@adacore.com>
13852
13853 Update year range in copyright notice of all files.
13854
28498c42
JB
138552014-01-01 Joel Brobecker <brobecker@adacore.com>
13856
13857 * top.c (print_gdb_version): Set copyright year to 2014.
13858
7b6e1046
JB
138592014-01-01 Joel Brobecker <brobecker@adacore.com>
13860
13861 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13862
df96af55 13863For older changes see ChangeLog-2013.
c906108c
SS
13864\f
13865Local Variables:
13866mode: change-log
13867left-margin: 8
13868fill-column: 74
13869version-control: never
57da7796 13870coding: utf-8
c906108c 13871End:
This page took 2.454982 seconds and 4 git commands to generate.