Replace 0 with TARGET_XFER_EOF in to_xfer_partial
[binutils-gdb.git] / gdb / ChangeLog
1 2014-08-07 Yao Qi <yao@codesourcery.com>
2
3 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
5 * remote.c (remote_read_bytes): Likewise.
6
7 2014-08-07 Yao Qi <yao@codesourcery.com>
8
9 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
10
11 2014-08-07 Yao Qi <yao@codesourcery.com>
12
13 PR remote/17230
14 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
15 TARGET_XFER_OK instead of 0.
16
17 2014-08-07 Gary Benson <gbenson@redhat.com>
18
19 * common/common-defs.h: Include errno.h.
20 * defs.h: Do not include errno.h.
21 * ada-typeprint.c: Likewise.
22 * c-typeprint.c: Likewise.
23 * core-regset.c: Likewise.
24 * corefile.c: Likewise.
25 * corelow.c: Likewise.
26 * event-loop.c: Likewise.
27 * f-typeprint.c: Likewise.
28 * gnu-nat.c: Likewise.
29 * go32-nat.c: Likewise.
30 * i386gnu-nat.c: Likewise.
31 * m2-typeprint.c: Likewise.
32 * nat/linux-btrace.c: Likewise.
33 * p-typeprint.c: Likewise.
34 * procfs.c: Likewise.
35 * remote-sim.c: Likewise.
36 * rs6000-nat.c: Likewise.
37 * target.c: Likewise.
38 * typeprint.c: Likewise.
39 * ui-file.c: Likewise.
40 * valops.c: Likewise.
41 * valprint.c: Likewise.
42
43 2014-08-07 Gary Benson <gbenson@redhat.com>
44
45 * common/common-defs.h: Include string.h.
46 * aarch64-tdep.c: Do not include string.h.
47 * ada-exp.y: Likewise.
48 * ada-lang.c: Likewise.
49 * ada-lex.l: Likewise.
50 * ada-typeprint.c: Likewise.
51 * ada-valprint.c: Likewise.
52 * aix-thread.c: Likewise.
53 * alpha-linux-tdep.c: Likewise.
54 * alpha-mdebug-tdep.c: Likewise.
55 * alpha-nat.c: Likewise.
56 * alpha-osf1-tdep.c: Likewise.
57 * alpha-tdep.c: Likewise.
58 * alphanbsd-tdep.c: Likewise.
59 * amd64-dicos-tdep.c: Likewise.
60 * amd64-linux-tdep.c: Likewise.
61 * amd64-nat.c: Likewise.
62 * amd64-sol2-tdep.c: Likewise.
63 * amd64fbsd-tdep.c: Likewise.
64 * amd64obsd-tdep.c: Likewise.
65 * arch-utils.c: Likewise.
66 * arm-linux-nat.c: Likewise.
67 * arm-linux-tdep.c: Likewise.
68 * arm-tdep.c: Likewise.
69 * arm-wince-tdep.c: Likewise.
70 * armbsd-tdep.c: Likewise.
71 * armnbsd-nat.c: Likewise.
72 * armnbsd-tdep.c: Likewise.
73 * armobsd-tdep.c: Likewise.
74 * avr-tdep.c: Likewise.
75 * ax-gdb.c: Likewise.
76 * ax-general.c: Likewise.
77 * bcache.c: Likewise.
78 * bfin-tdep.c: Likewise.
79 * breakpoint.c: Likewise.
80 * build-id.c: Likewise.
81 * buildsym.c: Likewise.
82 * c-exp.y: Likewise.
83 * c-lang.c: Likewise.
84 * c-typeprint.c: Likewise.
85 * c-valprint.c: Likewise.
86 * charset.c: Likewise.
87 * cli-out.c: Likewise.
88 * cli/cli-cmds.c: Likewise.
89 * cli/cli-decode.c: Likewise.
90 * cli/cli-dump.c: Likewise.
91 * cli/cli-interp.c: Likewise.
92 * cli/cli-logging.c: Likewise.
93 * cli/cli-script.c: Likewise.
94 * cli/cli-setshow.c: Likewise.
95 * cli/cli-utils.c: Likewise.
96 * coffread.c: Likewise.
97 * common/agent.c: Likewise.
98 * common/buffer.c: Likewise.
99 * common/buffer.h: Likewise.
100 * common/common-utils.c: Likewise.
101 * common/filestuff.c: Likewise.
102 * common/filestuff.c: Likewise.
103 * common/format.c: Likewise.
104 * common/print-utils.c: Likewise.
105 * common/rsp-low.c: Likewise.
106 * common/signals.c: Likewise.
107 * common/vec.h: Likewise.
108 * common/xml-utils.c: Likewise.
109 * core-regset.c: Likewise.
110 * corefile.c: Likewise.
111 * corelow.c: Likewise.
112 * cp-abi.c: Likewise.
113 * cp-name-parser.y: Likewise.
114 * cp-support.c: Likewise.
115 * cp-valprint.c: Likewise.
116 * cris-tdep.c: Likewise.
117 * d-exp.y: Likewise.
118 * darwin-nat.c: Likewise.
119 * dbxread.c: Likewise.
120 * dcache.c: Likewise.
121 * demangle.c: Likewise.
122 * dicos-tdep.c: Likewise.
123 * disasm.c: Likewise.
124 * doublest.c: Likewise.
125 * dsrec.c: Likewise.
126 * dummy-frame.c: Likewise.
127 * dwarf2-frame.c: Likewise.
128 * dwarf2loc.c: Likewise.
129 * dwarf2read.c: Likewise.
130 * elfread.c: Likewise.
131 * environ.c: Likewise.
132 * eval.c: Likewise.
133 * event-loop.c: Likewise.
134 * exceptions.c: Likewise.
135 * exec.c: Likewise.
136 * expprint.c: Likewise.
137 * f-exp.y: Likewise.
138 * f-lang.c: Likewise.
139 * f-typeprint.c: Likewise.
140 * f-valprint.c: Likewise.
141 * fbsd-nat.c: Likewise.
142 * findcmd.c: Likewise.
143 * findvar.c: Likewise.
144 * fork-child.c: Likewise.
145 * frame.c: Likewise.
146 * frv-linux-tdep.c: Likewise.
147 * frv-tdep.c: Likewise.
148 * gdb.c: Likewise.
149 * gdb_bfd.c: Likewise.
150 * gdbarch.c: Likewise.
151 * gdbarch.sh: Likewise.
152 * gdbtypes.c: Likewise.
153 * gnu-nat.c: Likewise.
154 * gnu-v2-abi.c: Likewise.
155 * gnu-v3-abi.c: Likewise.
156 * go-exp.y: Likewise.
157 * go-lang.c: Likewise.
158 * go32-nat.c: Likewise.
159 * guile/guile.c: Likewise.
160 * guile/scm-auto-load.c: Likewise.
161 * hppa-hpux-tdep.c: Likewise.
162 * hppa-linux-nat.c: Likewise.
163 * hppanbsd-tdep.c: Likewise.
164 * hppaobsd-tdep.c: Likewise.
165 * i386-cygwin-tdep.c: Likewise.
166 * i386-dicos-tdep.c: Likewise.
167 * i386-linux-tdep.c: Likewise.
168 * i386-nto-tdep.c: Likewise.
169 * i386-sol2-tdep.c: Likewise.
170 * i386-tdep.c: Likewise.
171 * i386bsd-tdep.c: Likewise.
172 * i386gnu-nat.c: Likewise.
173 * i386nbsd-tdep.c: Likewise.
174 * i386obsd-tdep.c: Likewise.
175 * i387-tdep.c: Likewise.
176 * ia64-libunwind-tdep.c: Likewise.
177 * ia64-linux-nat.c: Likewise.
178 * inf-child.c: Likewise.
179 * inf-ptrace.c: Likewise.
180 * inf-ttrace.c: Likewise.
181 * infcall.c: Likewise.
182 * infcmd.c: Likewise.
183 * inflow.c: Likewise.
184 * infrun.c: Likewise.
185 * interps.c: Likewise.
186 * iq2000-tdep.c: Likewise.
187 * irix5-nat.c: Likewise.
188 * jv-exp.y: Likewise.
189 * jv-lang.c: Likewise.
190 * jv-typeprint.c: Likewise.
191 * jv-valprint.c: Likewise.
192 * language.c: Likewise.
193 * linux-fork.c: Likewise.
194 * linux-nat.c: Likewise.
195 * lm32-tdep.c: Likewise.
196 * m2-exp.y: Likewise.
197 * m2-typeprint.c: Likewise.
198 * m32c-tdep.c: Likewise.
199 * m32r-linux-nat.c: Likewise.
200 * m32r-linux-tdep.c: Likewise.
201 * m32r-rom.c: Likewise.
202 * m32r-tdep.c: Likewise.
203 * m68hc11-tdep.c: Likewise.
204 * m68k-tdep.c: Likewise.
205 * m68kbsd-tdep.c: Likewise.
206 * m68klinux-nat.c: Likewise.
207 * m68klinux-tdep.c: Likewise.
208 * m88k-tdep.c: Likewise.
209 * machoread.c: Likewise.
210 * macrocmd.c: Likewise.
211 * main.c: Likewise.
212 * mdebugread.c: Likewise.
213 * mem-break.c: Likewise.
214 * memattr.c: Likewise.
215 * memory-map.c: Likewise.
216 * mep-tdep.c: Likewise.
217 * mi/mi-cmd-break.c: Likewise.
218 * mi/mi-cmd-disas.c: Likewise.
219 * mi/mi-cmd-env.c: Likewise.
220 * mi/mi-cmd-stack.c: Likewise.
221 * mi/mi-cmd-var.c: Likewise.
222 * mi/mi-cmds.c: Likewise.
223 * mi/mi-console.c: Likewise.
224 * mi/mi-getopt.c: Likewise.
225 * mi/mi-interp.c: Likewise.
226 * mi/mi-main.c: Likewise.
227 * mi/mi-parse.c: Likewise.
228 * microblaze-rom.c: Likewise.
229 * microblaze-tdep.c: Likewise.
230 * mingw-hdep.c: Likewise.
231 * minidebug.c: Likewise.
232 * minsyms.c: Likewise.
233 * mips-irix-tdep.c: Likewise.
234 * mips-linux-tdep.c: Likewise.
235 * mips-tdep.c: Likewise.
236 * mips64obsd-tdep.c: Likewise.
237 * mipsnbsd-tdep.c: Likewise.
238 * mipsread.c: Likewise.
239 * mn10300-linux-tdep.c: Likewise.
240 * mn10300-tdep.c: Likewise.
241 * monitor.c: Likewise.
242 * moxie-tdep.c: Likewise.
243 * mt-tdep.c: Likewise.
244 * nat/linux-btrace.c: Likewise.
245 * nat/linux-osdata.c: Likewise.
246 * nat/linux-procfs.c: Likewise.
247 * nat/linux-ptrace.c: Likewise.
248 * nat/linux-waitpid.c: Likewise.
249 * nbsd-tdep.c: Likewise.
250 * nios2-linux-tdep.c: Likewise.
251 * nto-procfs.c: Likewise.
252 * nto-tdep.c: Likewise.
253 * objc-lang.c: Likewise.
254 * objfiles.c: Likewise.
255 * opencl-lang.c: Likewise.
256 * osabi.c: Likewise.
257 * osdata.c: Likewise.
258 * p-exp.y: Likewise.
259 * p-lang.c: Likewise.
260 * p-typeprint.c: Likewise.
261 * parse.c: Likewise.
262 * posix-hdep.c: Likewise.
263 * ppc-linux-nat.c: Likewise.
264 * ppc-sysv-tdep.c: Likewise.
265 * ppcfbsd-tdep.c: Likewise.
266 * ppcnbsd-tdep.c: Likewise.
267 * ppcobsd-tdep.c: Likewise.
268 * printcmd.c: Likewise.
269 * procfs.c: Likewise.
270 * prologue-value.c: Likewise.
271 * python/py-auto-load.c: Likewise.
272 * python/py-gdb-readline.c: Likewise.
273 * ravenscar-thread.c: Likewise.
274 * regcache.c: Likewise.
275 * registry.c: Likewise.
276 * remote-fileio.c: Likewise.
277 * remote-m32r-sdi.c: Likewise.
278 * remote-mips.c: Likewise.
279 * remote-notif.c: Likewise.
280 * remote-sim.c: Likewise.
281 * remote.c: Likewise.
282 * reverse.c: Likewise.
283 * rs6000-aix-tdep.c: Likewise.
284 * ser-base.c: Likewise.
285 * ser-go32.c: Likewise.
286 * ser-mingw.c: Likewise.
287 * ser-pipe.c: Likewise.
288 * ser-tcp.c: Likewise.
289 * ser-unix.c: Likewise.
290 * serial.c: Likewise.
291 * sh-tdep.c: Likewise.
292 * sh64-tdep.c: Likewise.
293 * shnbsd-tdep.c: Likewise.
294 * skip.c: Likewise.
295 * sol-thread.c: Likewise.
296 * solib-dsbt.c: Likewise.
297 * solib-frv.c: Likewise.
298 * solib-osf.c: Likewise.
299 * solib-som.c: Likewise.
300 * solib-spu.c: Likewise.
301 * solib-target.c: Likewise.
302 * solib.c: Likewise.
303 * somread.c: Likewise.
304 * source.c: Likewise.
305 * sparc-nat.c: Likewise.
306 * sparc-sol2-tdep.c: Likewise.
307 * sparc-tdep.c: Likewise.
308 * sparc64-tdep.c: Likewise.
309 * sparc64fbsd-tdep.c: Likewise.
310 * sparc64nbsd-tdep.c: Likewise.
311 * sparcnbsd-tdep.c: Likewise.
312 * spu-linux-nat.c: Likewise.
313 * spu-multiarch.c: Likewise.
314 * spu-tdep.c: Likewise.
315 * stabsread.c: Likewise.
316 * stack.c: Likewise.
317 * std-regs.c: Likewise.
318 * symfile.c: Likewise.
319 * symmisc.c: Likewise.
320 * symtab.c: Likewise.
321 * target.c: Likewise.
322 * thread.c: Likewise.
323 * tilegx-linux-nat.c: Likewise.
324 * tilegx-tdep.c: Likewise.
325 * top.c: Likewise.
326 * tracepoint.c: Likewise.
327 * tui/tui-command.c: Likewise.
328 * tui/tui-data.c: Likewise.
329 * tui/tui-disasm.c: Likewise.
330 * tui/tui-file.c: Likewise.
331 * tui/tui-layout.c: Likewise.
332 * tui/tui-out.c: Likewise.
333 * tui/tui-regs.c: Likewise.
334 * tui/tui-source.c: Likewise.
335 * tui/tui-stack.c: Likewise.
336 * tui/tui-win.c: Likewise.
337 * tui/tui-windata.c: Likewise.
338 * tui/tui-winsource.c: Likewise.
339 * typeprint.c: Likewise.
340 * ui-file.c: Likewise.
341 * ui-out.c: Likewise.
342 * user-regs.c: Likewise.
343 * utils.c: Likewise.
344 * v850-tdep.c: Likewise.
345 * valarith.c: Likewise.
346 * valops.c: Likewise.
347 * valprint.c: Likewise.
348 * value.c: Likewise.
349 * varobj.c: Likewise.
350 * vax-tdep.c: Likewise.
351 * vaxnbsd-tdep.c: Likewise.
352 * vaxobsd-tdep.c: Likewise.
353 * windows-nat.c: Likewise.
354 * xcoffread.c: Likewise.
355 * xml-support.c: Likewise.
356 * xstormy16-tdep.c: Likewise.
357 * xtensa-linux-nat.c: Likewise.
358
359 2014-08-07 Gary Benson <gbenson@redhat.com>
360
361 * common/common-defs.h: Include gdb_assert.h.
362 * aarch64-tdep.c: Do not include gdb_assert.h.
363 * addrmap.c: Likewise.
364 * aix-thread.c: Likewise.
365 * alpha-linux-tdep.c: Likewise.
366 * alpha-mdebug-tdep.c: Likewise.
367 * alphanbsd-tdep.c: Likewise.
368 * amd64-nat.c: Likewise.
369 * amd64-tdep.c: Likewise.
370 * amd64bsd-nat.c: Likewise.
371 * amd64fbsd-nat.c: Likewise.
372 * amd64fbsd-tdep.c: Likewise.
373 * amd64nbsd-nat.c: Likewise.
374 * amd64nbsd-tdep.c: Likewise.
375 * amd64obsd-nat.c: Likewise.
376 * amd64obsd-tdep.c: Likewise.
377 * arch-utils.c: Likewise.
378 * arm-tdep.c: Likewise.
379 * armbsd-tdep.c: Likewise.
380 * auxv.c: Likewise.
381 * bcache.c: Likewise.
382 * bfin-tdep.c: Likewise.
383 * blockframe.c: Likewise.
384 * breakpoint.c: Likewise.
385 * bsd-kvm.c: Likewise.
386 * bsd-uthread.c: Likewise.
387 * buildsym.c: Likewise.
388 * c-exp.y: Likewise.
389 * c-lang.c: Likewise.
390 * charset.c: Likewise.
391 * cleanups.c: Likewise.
392 * cli-out.c: Likewise.
393 * cli/cli-decode.c: Likewise.
394 * cli/cli-dump.c: Likewise.
395 * cli/cli-logging.c: Likewise.
396 * cli/cli-script.c: Likewise.
397 * cli/cli-utils.c: Likewise.
398 * coffread.c: Likewise.
399 * common/common-utils.c: Likewise.
400 * common/queue.h: Likewise.
401 * common/signals.c: Likewise.
402 * common/vec.h: Likewise.
403 * complaints.c: Likewise.
404 * completer.c: Likewise.
405 * corelow.c: Likewise.
406 * cp-abi.c: Likewise.
407 * cp-name-parser.y: Likewise.
408 * cp-namespace.c: Likewise.
409 * cp-support.c: Likewise.
410 * cris-tdep.c: Likewise.
411 * dbxread.c: Likewise.
412 * dictionary.c: Likewise.
413 * doublest.c: Likewise.
414 * dsrec.c: Likewise.
415 * dummy-frame.c: Likewise.
416 * dwarf2-frame-tailcall.c: Likewise.
417 * dwarf2-frame.c: Likewise.
418 * dwarf2expr.c: Likewise.
419 * dwarf2loc.c: Likewise.
420 * dwarf2read.c: Likewise.
421 * eval.c: Likewise.
422 * event-loop.c: Likewise.
423 * exceptions.c: Likewise.
424 * expprint.c: Likewise.
425 * f-valprint.c: Likewise.
426 * fbsd-nat.c: Likewise.
427 * findvar.c: Likewise.
428 * frame-unwind.c: Likewise.
429 * frame.c: Likewise.
430 * frv-tdep.c: Likewise.
431 * gcore.c: Likewise.
432 * gdb-dlfcn.c: Likewise.
433 * gdb_bfd.c: Likewise.
434 * gdbarch.c: Likewise.
435 * gdbarch.sh: Likewise.
436 * gdbtypes.c: Likewise.
437 * gnu-nat.c: Likewise.
438 * gnu-v3-abi.c: Likewise.
439 * go-lang.c: Likewise.
440 * guile/scm-exception.c: Likewise.
441 * guile/scm-gsmob.c: Likewise.
442 * guile/scm-lazy-string.c: Likewise.
443 * guile/scm-math.c: Likewise.
444 * guile/scm-pretty-print.c: Likewise.
445 * guile/scm-safe-call.c: Likewise.
446 * guile/scm-utils.c: Likewise.
447 * guile/scm-value.c: Likewise.
448 * h8300-tdep.c: Likewise.
449 * hppa-hpux-nat.c: Likewise.
450 * hppa-tdep.c: Likewise.
451 * hppanbsd-tdep.c: Likewise.
452 * hppaobsd-tdep.c: Likewise.
453 * i386-darwin-nat.c: Likewise.
454 * i386-darwin-tdep.c: Likewise.
455 * i386-nto-tdep.c: Likewise.
456 * i386-tdep.c: Likewise.
457 * i386bsd-nat.c: Likewise.
458 * i386fbsd-tdep.c: Likewise.
459 * i386gnu-nat.c: Likewise.
460 * i386nbsd-tdep.c: Likewise.
461 * i386obsd-tdep.c: Likewise.
462 * i387-tdep.c: Likewise.
463 * ia64-libunwind-tdep.c: Likewise.
464 * ia64-tdep.c: Likewise.
465 * inf-ptrace.c: Likewise.
466 * inf-ttrace.c: Likewise.
467 * infcall.c: Likewise.
468 * infcmd.c: Likewise.
469 * infrun.c: Likewise.
470 * inline-frame.c: Likewise.
471 * interps.c: Likewise.
472 * jv-lang.c: Likewise.
473 * jv-typeprint.c: Likewise.
474 * linux-fork.c: Likewise.
475 * linux-nat.c: Likewise.
476 * linux-thread-db.c: Likewise.
477 * m32c-tdep.c: Likewise.
478 * m32r-linux-nat.c: Likewise.
479 * m32r-tdep.c: Likewise.
480 * m68k-tdep.c: Likewise.
481 * m68kbsd-nat.c: Likewise.
482 * m68kbsd-tdep.c: Likewise.
483 * m88k-tdep.c: Likewise.
484 * machoread.c: Likewise.
485 * macroexp.c: Likewise.
486 * macrotab.c: Likewise.
487 * maint.c: Likewise.
488 * mdebugread.c: Likewise.
489 * memory-map.c: Likewise.
490 * mep-tdep.c: Likewise.
491 * mi/mi-common.c: Likewise.
492 * microblaze-tdep.c: Likewise.
493 * mingw-hdep.c: Likewise.
494 * mips-linux-nat.c: Likewise.
495 * mips-linux-tdep.c: Likewise.
496 * mips-tdep.c: Likewise.
497 * mips64obsd-tdep.c: Likewise.
498 * mipsnbsd-tdep.c: Likewise.
499 * mn10300-linux-tdep.c: Likewise.
500 * mn10300-tdep.c: Likewise.
501 * moxie-tdep.c: Likewise.
502 * mt-tdep.c: Likewise.
503 * nat/linux-btrace.c: Likewise.
504 * nat/linux-osdata.c: Likewise.
505 * nat/linux-ptrace.c: Likewise.
506 * nat/mips-linux-watch.c: Likewise.
507 * nios2-linux-tdep.c: Likewise.
508 * nios2-tdep.c: Likewise.
509 * objc-lang.c: Likewise.
510 * objfiles.c: Likewise.
511 * obsd-nat.c: Likewise.
512 * opencl-lang.c: Likewise.
513 * osabi.c: Likewise.
514 * parse.c: Likewise.
515 * ppc-linux-nat.c: Likewise.
516 * ppc-sysv-tdep.c: Likewise.
517 * ppcfbsd-nat.c: Likewise.
518 * ppcfbsd-tdep.c: Likewise.
519 * ppcnbsd-nat.c: Likewise.
520 * ppcnbsd-tdep.c: Likewise.
521 * ppcobsd-nat.c: Likewise.
522 * ppcobsd-tdep.c: Likewise.
523 * printcmd.c: Likewise.
524 * procfs.c: Likewise.
525 * prologue-value.c: Likewise.
526 * psymtab.c: Likewise.
527 * python/py-lazy-string.c: Likewise.
528 * python/py-value.c: Likewise.
529 * regcache.c: Likewise.
530 * reggroups.c: Likewise.
531 * registry.c: Likewise.
532 * remote-sim.c: Likewise.
533 * remote.c: Likewise.
534 * rs6000-aix-tdep.c: Likewise.
535 * rs6000-tdep.c: Likewise.
536 * s390-linux-tdep.c: Likewise.
537 * score-tdep.c: Likewise.
538 * ser-base.c: Likewise.
539 * ser-mingw.c: Likewise.
540 * sh-tdep.c: Likewise.
541 * sh64-tdep.c: Likewise.
542 * solib-darwin.c: Likewise.
543 * solib-spu.c: Likewise.
544 * solib-svr4.c: Likewise.
545 * source.c: Likewise.
546 * sparc-nat.c: Likewise.
547 * sparc-sol2-tdep.c: Likewise.
548 * sparc-tdep.c: Likewise.
549 * sparc64-sol2-tdep.c: Likewise.
550 * sparc64-tdep.c: Likewise.
551 * sparc64fbsd-tdep.c: Likewise.
552 * sparc64nbsd-tdep.c: Likewise.
553 * sparc64obsd-tdep.c: Likewise.
554 * sparcnbsd-tdep.c: Likewise.
555 * sparcobsd-tdep.c: Likewise.
556 * spu-multiarch.c: Likewise.
557 * spu-tdep.c: Likewise.
558 * stabsread.c: Likewise.
559 * stack.c: Likewise.
560 * symfile.c: Likewise.
561 * symtab.c: Likewise.
562 * target-descriptions.c: Likewise.
563 * target-memory.c: Likewise.
564 * target.c: Likewise.
565 * tic6x-linux-tdep.c: Likewise.
566 * tic6x-tdep.c: Likewise.
567 * tilegx-linux-nat.c: Likewise.
568 * tilegx-tdep.c: Likewise.
569 * top.c: Likewise.
570 * tramp-frame.c: Likewise.
571 * tui/tui-out.c: Likewise.
572 * tui/tui-winsource.c: Likewise.
573 * ui-out.c: Likewise.
574 * user-regs.c: Likewise.
575 * utils.c: Likewise.
576 * v850-tdep.c: Likewise.
577 * valops.c: Likewise.
578 * value.c: Likewise.
579 * varobj.c: Likewise.
580 * vax-nat.c: Likewise.
581 * xml-syscall.c: Likewise.
582 * xml-tdesc.c: Likewise.
583 * xstormy16-tdep.c: Likewise.
584 * xtensa-linux-nat.c: Likewise.
585 * xtensa-tdep.c: Likewise.
586
587 2014-08-07 Gary Benson <gbenson@redhat.com>
588
589 * common/common-defs.h: Include common-utils.h.
590 * defs.h: Do not include common-utils.h.
591 * common/gdb_assert.h: Likewise.
592 * darwin-nat.h: Likewise.
593 * nat/linux-btrace.c: Likewise.
594 * target/waitstatus.h: Likewise.
595
596 2014-08-07 Gary Benson <gbenson@redhat.com>
597
598 * common/common-defs.h: Include ptid.h.
599 * defs.h: Do not include ptid.h.
600 * inferior.h: Likewise.
601 * infrun.h: Likewise.
602 * nat/linux-btrace.h: Likewise.
603 * nat/linux-osdata.h: Likewise.
604 * target/waitstatus.h: Likewise.
605
606 2014-08-07 Gary Benson <gbenson@redhat.com>
607
608 * common/common-defs.h: Include gdb_locale.h.
609 * defs.h: Do not include gdb_locale.h.
610
611 2014-08-07 Gary Benson <gbenson@redhat.com>
612
613 * common/common-defs.h: Include gdb/signals.h.
614 * defs.h: Do not include gdb/signals.h.
615
616 2014-08-07 Gary Benson <gbenson@redhat.com>
617
618 * common/common-defs.h: Include pathmax.h.
619 * defs.h: Do not include pathmax.h.
620
621 2014-08-07 Gary Benson <gbenson@redhat.com>
622
623 * common/common-defs.h: Include libiberty.h.
624 * defs.h: Do not include libiberty.h.
625 * common/queue.h: Likewise.
626 * cp-name-parser.y: Likewise.
627 * mi/mi-cmd-catch.c: Likewise.
628 * python/python.c: Likewise.
629
630 2014-08-07 Gary Benson <gbenson@redhat.com>
631
632 * common/common-defs.h: Include ansidecl.h.
633 * defs.h: Do not include ansidecl.h.
634 * common/buffer.h: Likewise.
635 * common/common-utils.h: Likewise.
636
637 2014-08-07 Gary Benson <gbenson@redhat.com>
638
639 * common/common-defs.h: Include stddef.h.
640 * defs.h: Do not include stddef.h.
641 * common/common-utils.h: Likewise.
642 * amd64fbsd-nat.c: Likewise.
643 * bcache.c: Likewise.
644 * charset.c: Likewise.
645 * common/buffer.h: Likewise.
646 * common/vec.h: Likewise.
647 * i386bsd-nat.c: Likewise.
648 * nat/linux-btrace.h: Likewise.
649 * ppcfbsd-nat.c: Likewise.
650 * ppcnbsd-tdep.h: Likewise.
651 * ppcobsd-nat.c: Likewise.
652 * ppcobsd-tdep.h: Likewise.
653 * python/py-gdb-readline.c: Likewise.
654
655 2014-08-07 Gary Benson <gbenson@redhat.com>
656
657 * common/common-defs.h: Include stdarg.h.
658 * defs.h: Do not include stdarg.h.
659 * ada-lang.c: Likewise.
660 * common/common-utils.h: Likewise.
661 * guile/scm-string.c: Likewise.
662 * guile/scm-utils.c: Likewise.
663 * m32c-tdep.c: Likewise.
664
665 2014-08-07 Gary Benson <gbenson@redhat.com>
666
667 * common/common-defs.h: Include stdlib.h.
668 * defs.h: Do not include stdlib.h.
669 * addrmap.c: Likewise.
670 * bcache.c: Likewise.
671 * common/buffer.c: Likewise.
672 * common/common-utils.c: Likewise.
673 * cp-name-parser.y: Likewise.
674 * go32-nat.c: Likewise.
675 * mn10300-linux-tdep.c: Likewise.
676 * nat/linux-osdata.c: Likewise.
677 * tui/tui.c: Likewise.
678 * windows-nat.c: Likewise.
679
680 2014-08-07 Gary Benson <gbenson@redhat.com>
681
682 * common/common-defs.h: Include stdio.h.
683 * defs.h: Do not include stdio.h.
684 * ada-lang.c: Likewise.
685 * common/buffer.c: Likewise.
686 * common/common-utils.c: Likewise.
687 * cp-name-parser.y: Likewise.
688 * gnu-nat.c: Likewise.
689 * go32-nat.c: Likewise.
690 * i386gnu-nat.c: Likewise.
691 * proc-api.c: Likewise.
692 * proc-events.c: Likewise.
693 * proc-flags.c: Likewise.
694 * proc-why.c: Likewise.
695 * python/python-internal.h: Likewise.
696 * target-memory.c: Likewise.
697 * tui/tui-io.c: Likewise.
698 * tui/tui.c: Likewise.
699
700 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
701
702 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
703 (scan_dyntag_auxv): Same.
704
705 2014-08-06 Yao Qi <yao@codesourcery.com>
706
707 * amd64-linux-nat.c: Remove duplicated include
708 "x86-linux-nat.h".
709 * i386-linux-nat.c: Likewise.
710
711 2014-08-06 Yao Qi <yao@codesourcery.com>
712
713 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
714 operand" with "Special opcode" in comments.
715
716 2014-08-05 Gary Benson <gbenson@redhat.com>
717
718 * interps.c (initialize_interps): Remove prototype.
719 (interpreter_initialized): Remove static global.
720 (interp_add): Do not call initialize_interps.
721 (initialize_interps): Remove function.
722
723 2014-08-05 Gary Benson <gbenson@redhat.com>
724
725 * utils.c (vwarning): Remove spurious va_end.
726
727 2014-08-05 Alan Modra <amodra@gmail.com>
728
729 * charset.c (convert_between_encodings): Cast result of obstack_base.
730 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
731 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
732 (read_unwind_info): Use size_t for some locals.
733 * jit.c (finalize_symtab): Likewise.
734 * utils.c (hashtab_obstack_allocate): Likewise.
735 * symmisc.c (print_objfile_statistics): Update format strings.
736
737 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
738
739 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
740 (Changes in GDB 7.8): ... here.
741
742 2014-08-04 Tom Tromey <tromey@redhat.com>
743
744 * target.c (set_targetdebug): New function.
745 (initialize_targets): Pass set_targetdebug when creating "set
746 debug target".
747
748 2014-08-01 Joel Brobecker <brobecker@adacore.com>
749
750 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
751 if detecting a variable-sized field that is not the last field.
752 Fix struct type length computation.
753
754 2014-08-01 Joel Brobecker <brobecker@adacore.com>
755
756 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
757 Add debug trace.
758
759 2014-08-01 Joel Brobecker <brobecker@adacore.com>
760
761 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
762 Remove "+ 8" offset in computation of CHAIN_VMA.
763
764 2014-07-31 Doug Evans <dje@google.com>
765
766 * inflow.c (child_terminal_inferior): Add comment.
767 (child_terminal_ours_for_output): Add comment.
768 (child_terminal_ours): Add comment.
769 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
770 (linux_nat_terminal_ours): Add comment.
771
772 2014-07-31 Gary Benson <gbenson@redhat.com>
773
774 * common/btrace-common.h: Do not include defs.h or server.h.
775 * nat/mips-linux-watch.h: Likewise.
776 * gdb-dlfcn.h: Do not include defs.h.
777 * tracefile.h: Likewise.
778
779 2014-07-30 Roland McGrath <mcgrathr@google.com>
780
781 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
782
783 2014-07-30 Tom Tromey <tromey@redhat.com>
784
785 * bsd-kvm.c (bsd_kvm_open): Constify.
786 * corelow.c (core_open): Constify.
787 * ctf.c (ctf_open): Constify.
788 * dbug-rom.c (dbug_open): Constify.
789 * exec.c (exec_open): Constify.
790 * m32r-rom.c (m32r_open, mon2000_open): Constify.
791 * microblaze-rom.c (picobug_open): Constify.
792 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
793 Constify.
794 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
795 * record-btrace.c (record_btrace_open): Constify.
796 * record-full.c (record_full_core_open_1, record_full_open_1)
797 (record_full_open): Constify.
798 * remote-m32r-sdi.c (m32r_open): Constify.
799 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
800 (rockhopper_open, lsi_open): Constify.
801 * remote-sim.c (gdbsim_open): Constify.
802 * remote.c (remote_open, extended_remote_open, remote_open_1):
803 Constify.
804 * target.h (struct target_ops) <to_open>: Make "arg" const.
805 * tracefile-tfile.c (tfile_open): Constify.
806
807 2014-07-30 Tom Tromey <tromey@redhat.com>
808
809 * breakpoint.c (map_breakpoint_numbers): Update.
810 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
811 (get_number_const): New function.
812 (get_number): Rewrite using get_number_const.
813 (init_number_or_range): Make "string" const.
814 (number_is_in_list): Make "list" const.
815 * cli/cli-utils.h (get_number_const): Declare.
816 (struct get_number_or_range_state) <string, end_ptr>: Now const.
817 (init_number_or_range, number_is_in_list): Update.
818 * printcmd.c (map_display_numbers): Update.
819 * value.c (value_from_history_ref): Constify.
820 * value.h (value_from_history_ref): Update.
821
822 2014-07-30 Tom Tromey <tromey@redhat.com>
823
824 * corefile.c (hook_type, call_extra_exec_file_hooks)
825 (specify_exec_file_hook): Constify.
826 * exec.c (exec_file_attach): Make "filename" const.
827 * gdbcore.h (deprecated_exec_file_display_hook)
828 (specify_exec_file_hook, exec_file_attach): Constify.
829 * main.c (captured_main): Use catch_command_errors_const.
830
831 2014-07-30 Tom Tromey <tromey@redhat.com>
832
833 * target.c (open_target): New function.
834 (add_target_with_completer, add_deprecated_target_alias): Use
835 set_cmd_sfunc, set_cmd_context.
836 (debug_to_open): Remove.
837 (setup_target_debug): Update.
838
839 2014-07-30 Yao Qi <yao@codesourcery.com>
840
841 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
842 comments.
843 * parse.c (exp_iterate): Update comments.
844
845 2014-07-30 Gary Benson <gbenson@redhat.com>
846
847 * common/common-defs.h: New file.
848 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
849 * defs.h: Include common-defs.h.
850 Do not include config.h or build-gnulib/config.h.
851
852 2014-07-30 Gary Benson <gbenson@redhat.com>
853
854 * common/common-utils.h: Do not include config.h.
855 * nat/linux-btrace.h: Likewise.
856
857 2014-07-30 Gary Benson <gbenson@redhat.com>
858
859 * btrace.c: Include defs.h.
860 * common/ptid.c: Include defs.h or server.h as appropriate.
861 * nat/mips-linux-watch.c: Likewise.
862
863 2014-07-29 Tom Tromey <tromey@redhat.com>
864
865 * target.c (target_is_pushed): Simplify.
866
867 2014-07-29 Joel Brobecker <brobecker@adacore.com>
868
869 GDB 7.8 released.
870
871 2014-07-29 Yao Qi <yao@codesourcery.com>
872
873 PR gdb/17206
874 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
875
876 2014-07-28 Doug Evans <xdje42@gmail.com>
877
878 PR guile/17203
879 * guile/scm-param.c (pascm_parameter_defined_p): New function.
880 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
881 parameters.
882
883 2014-07-28 Will Newton <will.newton@linaro.org>
884
885 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
886 (THUMB2_SET_R7_SIGRETURN2): Likewise.
887 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
888 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
889 (THUMB2_EABI_SYSCALL): Likewise.
890 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
891 struct tramp_frame.
892 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
893 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
894
895 2014-07-27 Doug Evans <xdje42@gmail.com>
896
897 * guile/scm-param.c (pascm_print_param_smob): Fix output.
898
899 2014-07-27 Doug Evans <xdje42@gmail.com>
900
901 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
902
903 2014-07-26 Ludovic Courtès <ludo@gnu.org>
904 Doug Evans <xdje42@gmail.com>
905
906 PR guile/17146
907 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
908 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
909 * configure.ac: Try to use guild to compile an scm file, if it fails
910 then disable guile support.
911 * configure: Regenerate.
912 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
913 GUILE_FILE_LIST.
914 (GUILE_COMPILED_FILES): New variable.
915 (GUILE_FILES) Update.
916 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
917 (stamp-guile): Compile scm files.
918 * guile/guile.c (boot_guile_support): New function.
919 (standard_throw_args_p): New function.
920 (print_standard_throw_error, print_throw_error): New functions.
921 (handle_boot_error): New function.
922 (initialize_scheme_side): Rewrite to call boot_guile_support.
923 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
924 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
925
926 2014-07-26 Ludovic Courtès <ludo@gnu.org>
927 Doug Evans <xdje42@gmail.com>
928
929 PR guile/17146
930 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
931 * guile/lib/gdb/support.scm: New file.
932 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
933 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
934 All uses updated.
935 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
936 All uses updated.
937 (%assert-type): Ditto, and renamed to assert-type.
938 (%exception-print-style): Delete.
939
940 2014-07-26 Doug Evans <xdje42@gmail.com>
941
942 PR build/17105
943 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
944 * configure: Regenerate.
945 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
946 PYTHON_FILES.
947 (PYTHON_FILES): New variable.
948 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
949 (GUILE_FILES): New variable.
950 (stamp-python, install-python, uninstall-python): Handle empty
951 file list.
952 (stamp-guile, install-guile, uninstall-guile): Ditto.
953
954 2014-07-26 Doug Evans <xdje42@gmail.com>
955
956 PR guile/17177
957 * guile/lib/gdb.scm (pretty-printers): Export.
958 (set-pretty-printers!): Export.
959 * guile/lib/gdb/printing.scm (gdb module): Update.
960 (prepend-pretty-printer!, append-pretty-printer!): Update.
961 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
962 (pretty_printer_list_var): Delete.
963 (pretty_printer_list): New static global.
964 (gdbscm_pretty_printers): New function.
965 (gdbscm_set_pretty_printers_x): New function.
966 (ppscm_find_pretty_printer_from_gdb): Update.
967 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
968 (gdbscm_initialize_pretty_printers): Update.
969
970 2014-07-26 Doug Evans <xdje42@gmail.com>
971
972 PR 17185
973 * configure.ac: Add check for header gc/gc.h.
974 Add check for function setenv.
975 * configure: Regenerate.
976 * config.in: Regenerate.
977 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
978
979 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
980
981 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
982 variation in gdbarch matching.
983
984 2014-07-25 Tom Tromey <tromey@redhat.com>
985
986 * exec.c (using_exec_ops): Remove.
987 (exec_close_1): Update. Remove extraneous block, reindent.
988 (add_target_sections): Use target_is_pushed.
989
990 2014-07-25 Pedro Alves <palves@redhat.com>
991
992 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
993 * monitor.c (monitor_create_inferior): Likewise.
994 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
995 * remote-sim.c (gdbsim_create_inferior): Likewise.
996 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
997 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
998 * windows-nat.c (do_initial_windows_stuff): Likewise.
999
1000 2014-07-25 Pedro Alves <palves@redhat.com>
1001
1002 * NEWS: Mention signal passing and "signal" command changes.
1003 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1004 comment.
1005 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1006 call.
1007 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1008 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1009 (jump_command): Adjust clear_proceed_status call.
1010 (signal_command): Warn if other thread that are resumed have
1011 signals that will be delivered. Adjust clear_proceed_status call.
1012 (until_next_command, finish_command)
1013 (proceed_after_attach_callback, attach_command_post_wait)
1014 (attach_command): Adjust clear_proceed_status call.
1015 * infrun.c (proceed_after_vfork_done): Likewise.
1016 (proceed_after_attach_callback): Adjust comment.
1017 (clear_proceed_status_thread): Clear stop_signal if not in pass
1018 state.
1019 (clear_proceed_status_callback): Delete.
1020 (clear_proceed_status): New 'step' parameter. Only clear the
1021 proceed status of threads the command being prepared is about to
1022 resume.
1023 (proceed): If passed in an explicit signal, override stop_signal
1024 with it. Don't pass the last stop signal to the thread we're
1025 resuming.
1026 (init_wait_for_inferior): Adjust clear_proceed_status call.
1027 (switch_back_to_stepped_thread): Clear the signal if it should not
1028 be passed.
1029 * infrun.h (clear_proceed_status): New 'step' parameter.
1030 (user_visible_resume_ptid): Add comment.
1031 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1032 signal is in pass state.
1033 * remote.c (append_pending_thread_resumptions): Likewise.
1034 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1035
1036 2014-07-25 Tom Tromey <tromey@redhat.com>
1037
1038 * target.h (target_stopped_data_address)
1039 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1040 parentheses.
1041
1042 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1043
1044 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1045 comments.
1046 (avr_pointer_to_address): Likewise.
1047
1048 2014-07-24 Tom Tromey <tromey@redhat.com>
1049
1050 * monitor.c (compile_pattern): Update.
1051 * target.h (struct target_ops) <to_shortname, to_longname,
1052 to_doc>: Now const.
1053
1054 2014-07-24 Tom Tromey <tromey@redhat.com>
1055
1056 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1057 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1058 (add_info_alias, add_com): Make "doc" const.
1059 (print_doc_line): Make "str" const.
1060 (delete_cmd): Update.
1061 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1062 (print_doc_line): Update.
1063 * cli/cli-script.c (document_command): Update.
1064 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1065 (add_com, add_info, add_info_alias): Update.
1066 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1067 * python/py-cmd.c (cmdpy_destroyer): Update.
1068
1069 2014-07-24 Tom Tromey <tromey@redhat.com>
1070
1071 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1072 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1073 (help_cmd_list): Constify.
1074 (lookup_cmd): Update.
1075 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1076 const.
1077 (help_cmd_list, apropos_cmd): Update.
1078 * cli/cli-script.c (show_user): Update.
1079 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1080 * cli/cli-setshow.h (cmd_show_list): Update.
1081 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1082 (cmd_show_list): Update.
1083 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1084 * python/py-cmd.c (cmdpy_destroyer): Update.
1085
1086 2014-07-24 Tom Tromey <tromey@redhat.com>
1087
1088 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1089 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1090 const.
1091 * command.h (deprecate_cmd): Update.
1092 * maint.c (maintenance_do_deprecate): Add casts.
1093
1094 2014-07-24 Tom Tromey <tromey@redhat.com>
1095
1096 * cli/cli-decode.c (help_cmd): Make parameter "const".
1097 * cli/cli-decode.h (help_cmd): Update.
1098
1099 2014-07-24 Tom Tromey <tromey@redhat.com>
1100
1101 * stack.c (up_silently_base, down_silently_base): Make argument
1102 const.
1103
1104 2014-07-24 Tom Tromey <tromey@redhat.com>
1105
1106 * solib.c (solib_add): Make "pattern" const.
1107 * solib.h (solib_add): Update.
1108
1109 2014-07-24 Tom Tromey <tromey@redhat.com>
1110
1111 * remote.c (remote_serial_open, print_packet, putpkt)
1112 (putpkt_binary): Constify.
1113 * remote.h (putpkt): Update.
1114
1115 2014-07-24 Tom Tromey <tromey@redhat.com>
1116
1117 * monitor.c (monitor_open): Make "args" const.
1118 * monitor.h (monitor_open): Update.
1119
1120 2014-07-24 Tom Tromey <tromey@redhat.com>
1121
1122 * maint.c (match_bfd_flags): Make "string" const.
1123 (print_bfd_section_info): Remove casts.
1124 (print_objfile_section_info): Make "string" const.
1125
1126 2014-07-24 Tom Tromey <tromey@redhat.com>
1127
1128 * inf-child.c (inf_child_open_target): Make "arg" const.
1129 * inf-child.h (inf_child_open_target): Update.
1130
1131 2014-07-24 Tom Tromey <tromey@redhat.com>
1132
1133 * environ.c (unset_in_environ): Make "var" const.
1134 * environ.h (unset_in_environ): Update.
1135
1136 2014-07-24 Tom Tromey <tromey@redhat.com>
1137
1138 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1139 Make "cmd" const.
1140 (scan_filename_with_cleanup): Likewise.
1141 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1142 Make arguments const.
1143 (restore_command): Update.
1144
1145 2014-07-24 Pedro Alves <palves@redhat.com>
1146
1147 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1148
1149 2014-07-24 Tom Tromey <tromey@redhat.com>
1150 Gary Benson <gbenson@redhat.com>
1151
1152 * nat/linux-ptrace.c (additional_flags): New global.
1153 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1154 additional_flags; don't check GDBSERVER.
1155 (linux_ptrace_set_additional_flags): New function.
1156 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1157 Declare.
1158 * linux-nat.c (_initialize_linux_nat): Call
1159 linux_ptrace_set_additional_flags.
1160
1161 2014-07-24 Tom Tromey <tromey@redhat.com>
1162
1163 * make-target-delegates (munge_type, write_debugmethod): New
1164 functions.
1165 (debug_names): New global.
1166 ($TARGET_DEBUG_PRINTER): New global.
1167 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1168 name.
1169 Write debug methods. Generate init_debug_target.
1170 * target-debug.h: New file.
1171 * target-delegates.c: Rebuild.
1172 * target.c: Include target-debug.h.
1173 (debug_target): Hoist definition.
1174 (target_kill, target_get_section_table, target_memory_map)
1175 (target_flash_erase, target_flash_done, target_detach)
1176 (target_disconnect, target_wait, target_resume)
1177 (target_pass_signals, target_program_signals, target_follow_fork)
1178 (target_mourn_inferior, target_search_memory)
1179 (target_thread_address_space, target_close)
1180 (target_find_new_threads, target_core_of_thread)
1181 (target_verify_memory, target_insert_mask_watchpoint)
1182 (target_remove_mask_watchpoint): Remove targetdebug code.
1183 (debug_to_post_attach, debug_to_prepare_to_store)
1184 (debug_to_files_info, debug_to_insert_breakpoint)
1185 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1186 (debug_to_region_ok_for_hw_watchpoint)
1187 (debug_to_can_accel_watchpoint_condition)
1188 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1189 (debug_to_watchpoint_addr_within_range)
1190 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1191 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1192 (debug_to_terminal_init, debug_to_terminal_inferior)
1193 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1194 (debug_to_terminal_save_ours, debug_to_terminal_info)
1195 (debug_to_load, debug_to_post_startup_inferior)
1196 (debug_to_insert_fork_catchpoint)
1197 (debug_to_remove_fork_catchpoint)
1198 (debug_to_insert_vfork_catchpoint)
1199 (debug_to_remove_vfork_catchpoint)
1200 (debug_to_insert_exec_catchpoint)
1201 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1202 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1203 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1204 (setup_target_debug): Call init_debug_target.
1205 * target.h (TARGET_DEBUG_PRINTER): New macro.
1206 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1207 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1208
1209 2014-07-24 Gary Benson <gbenson@redhat.com>
1210
1211 * exceptions.h (throw_vfatal): Renamed to...
1212 (throw_vquit): New declaration.
1213 (throw_quit): Likewise.
1214 * exceptions.c (throw_vfatal): Renamed to...
1215 (throw_vquit): New function.
1216 (throw_quit): Likewise.
1217 (throw_error): Call throw_verror rather than throw_it.
1218 * utils.h (vfatal): Removed.
1219 (fatal): Likewise.
1220 * utils.c (vfatal): Removed.
1221 (fatal): Likewise.
1222 (internal_verror): Replaced call to fatal with call to throw_quit.
1223 (quit): Replaced calls to fatal with calls to throw_quit.
1224
1225 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1226
1227 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1228 target_read_code.
1229
1230 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1231
1232 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1233 less than zero in conditional expression.
1234
1235 2014-07-23 Tom Tromey <tromey@redhat.com>
1236
1237 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1238 ($INTRO_PART): Don't match whitespace.
1239 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1240 argument matching.
1241 ($METHOD): Add $METHOD_TRAILER.
1242 (trim): Rewrite.
1243 (scan_target_h): New sub.
1244 Change main loop not to collect state.
1245 * target-delegates.c: Rebuild.
1246
1247 2014-07-23 Gary Benson <gbenson@redhat.com>
1248
1249 * cp-support.c (gdb_demangle): Fix build on systems without
1250 sigaltstack.
1251
1252 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1255 for reference entry value target data value.
1256
1257 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1258
1259 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1260 value_available_contents_eq.
1261
1262 2014-07-22 Pedro Alves <palves@redhat.com>
1263
1264 * value.c (allocate_optimized_out_value): Don't mark value as
1265 non-lazy.
1266
1267 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1268
1269 * MAINTAINERS (Write After Approval): Update my email address.
1270
1271 2014-07-20 Doug Evans <dje@google.com>
1272
1273 PR server/17147
1274 * remote.c (putpkt_binary): Add text to error message.
1275
1276 2014-07-20 Yao Qi <yao@codesourcery.com>
1277
1278 * eval.c: Remove "Chill" from comments.
1279 * gdbtypes.h: Likewise.
1280 * symtab.h: Likewise.
1281
1282 2014-07-20 Yao Qi <yao@codesourcery.com>
1283
1284 * std-operator.def: Update comments to TERNOP_SLICE.
1285
1286 2014-07-20 Yao Qi <yao@codesourcery.com>
1287
1288 * std-operator.def: Remove BINOP_RANGE.
1289 * breakpoint.c (watchpoint_exp_is_const): Update.
1290 * expprint.c (dump_subexp_body_standard): Likewise.
1291 * eval.c (init_array_element): Remove dead code.
1292 (evaluate_subexp_standard): Likewise.
1293
1294 2014-07-20 Yao Qi <yao@codesourcery.com>
1295
1296 * std-operator.def: Remove BINOP_IN.
1297 * breakpoint.c (watchpoint_exp_is_const): Update.
1298 * eval.c (evaluate_subexp_standard): Likewise.
1299 * expprint.c (dump_subexp_body_standard): Likewise.
1300
1301 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1302
1303 * microblaze-tdep.c (microblaze_register_names): Add
1304 the rshr and rslr register names.
1305 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1306 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1307 Use of tdesc_numbered_register. Use of
1308 microblaze_register_g_packet_guesses. Use of
1309 tdesc_use_registers. Use of set_gdbarch_register_type.
1310 (microblaze_register_g_packet_guesses): New.
1311 * microblaze-tdep.h (microblaze_reg_num): Add
1312 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1313 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1314 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1315 * features/microblaze-core.xml: New file.
1316 * features/microblaze-stack-protect.xml: New file.
1317 * features/microblaze-with-stack-protect.c: New file.
1318 * features/microblaze-with-stack-protect.xml: New file.
1319 * features/microblaze.xml: New file.
1320 * features/microblaze.c: New file.
1321 * features/Makefile (microblaze-with-stack-protect): Add
1322 microblaze-with-stack-protect microblaze and microblaze-expedite.
1323 * regformats/microblaze-with-stack-protect.dat: New file.
1324 * regformats/microblaze.dat: New file.
1325 * doc/gdb.texinfo (MicroBlaze Features): Added.
1326
1327 2014-07-18 Tom Tromey <tromey@redhat.com>
1328
1329 * exec.c (exec_ops): Now static.
1330 * exec.h (exec_ops): Don't declare.
1331
1332 2014-07-18 Tom Tromey <tromey@redhat.com>
1333
1334 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1335 to find_target_beneath.
1336 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1337 find_target_beneath.
1338 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1339
1340 2014-07-18 Tom Tromey <tromey@redhat.com>
1341
1342 PR gdb/17130:
1343 * utils.c (quit): Use target_supports_terminal_ours.
1344 * target.h (target_supports_terminal_ours): Declare.
1345 * target.c (target_supports_delete_record): Don't check
1346 to_delete_record against NULL.
1347 (target_supports_terminal_ours): New function.
1348
1349 2014-07-18 Tom Tromey <tromey@redhat.com>
1350
1351 PR gdb/17130:
1352 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1353 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1354 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1355 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1356 * windows-nat.c (windows_xfer_partial): Always delegate.
1357 * record-btrace.c (record_btrace_xfer_partial): Simplify
1358 delegation.
1359 (record_btrace_fetch_registers, record_btrace_store_registers)
1360 (record_btrace_prepare_to_store, record_btrace_resume)
1361 (record_btrace_wait, record_btrace_find_new_threads)
1362 (record_btrace_thread_alive): Likewise.
1363 * procfs.c (procfs_xfer_partial): Always delegate.
1364 * corelow.c (core_xfer_partial): Always delegate.
1365 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1366
1367 2014-07-18 Tom Tromey <tromey@redhat.com>
1368
1369 * exec.c (exec_make_note_section): Move earlier.
1370
1371 2014-07-17 Doug Evans <dje@google.com>
1372
1373 PR gdb/17170
1374 * maint.c (count_symtabs_and_blocks): Handle NULL
1375 current_program_space.
1376 (report_command_stats): Check global enabled flag in addition to
1377 recorded enabled flag.
1378 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1379
1380 2014-07-16 Pedro Alves <palves@redhat.com>
1381
1382 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1383
1384 2014-07-16 Tom Tromey <tromey@redhat.com>
1385
1386 * target.h (struct target_ops) <to_delete_record>: Reformat
1387 comment.
1388
1389 2014-07-16 Tom Tromey <tromey@redhat.com>
1390
1391 * target-delegates.c: Rebuild.
1392
1393 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1394
1395 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1396 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1397 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1398 (avr_pointer_to_address): Likewise.
1399 (avr_address_class_type_flags): New function.
1400 (avr_address_class_type_flags_to_name): Likewise.
1401 (avr_address_class_name_to_type_flags): Likewise.
1402 (avr_gdbarch_init): Set address_class_type_flags,
1403 address_class_type_flags_to_name and
1404 address_class_name_to_type_flags.
1405
1406 2014-07-15 Pedro Alves <palves@redhat.com>
1407
1408 * linux-nat.c (kill_callback): Save errno and work with saved
1409 copy.
1410
1411 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1412
1413 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1414
1415 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1416
1417 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1418 breakpoint support correctly.
1419
1420 2014-07-14 Pedro Alves <palves@redhat.com>
1421
1422 * utils.c (prompt_for_continue): Call target_terminal_ours.
1423
1424 2014-07-14 Pedro Alves <palves@redhat.com>
1425
1426 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1427 catch_errors. Don't re-enable stdin or notify observers where,
1428 and rethrow error.
1429 (fetch_inferior_event_wrapper): Delete.
1430
1431 2014-07-14 Pedro Alves <palves@redhat.com>
1432
1433 PR gdb/17072
1434 * top.c: Include "inf-loop.h".
1435 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1436 field.
1437 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1438 was async before.
1439 (gdb_readline_wrapper): Store whether the target is async, and
1440 make it sync.
1441
1442 2014-07-14 Pedro Alves <palves@redhat.com>
1443
1444 PR gdb/17072
1445 * top.c (gdb_readline_wrapper_line): Tweak comment.
1446 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1447 the input handler callback.
1448
1449 2014-07-14 Pedro Alves <palves@redhat.com>
1450
1451 PR gdb/17072
1452 * main.c: Include event-top.h.
1453 (handle_command_errors): New function.
1454 (catch_command_errors, catch_command_errors_const): Use it.
1455
1456 2014-07-14 Pedro Alves <palves@redhat.com>
1457
1458 * exceptions.c (catch_command_errors, catch_command_errors_const):
1459 Moved to main.c.
1460 * exceptions.h (catch_command_errors_ftype)
1461 (catch_command_errors_const_ftype): Moved to main.c.
1462 (catch_command_errors, catch_command_errors_const): Delete
1463 declarations.
1464 * main.c (catch_command_errors_ftype)
1465 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1466 (catch_command_errors, catch_command_errors_const)): Moved here
1467 from exceptions.c and make static.
1468
1469 2014-07-14 Pedro Alves <palves@redhat.com>
1470
1471 * exceptions.c (print_any_exception): Delete.
1472 (catch_exceptions_with_msg): Use exception_print instead of
1473 print_any_exception.
1474 (catch_errors): Use exception_fprintf instead of
1475 print_any_exception.
1476 (catch_command_errors, catch_command_errors_const): Use
1477 exception_print instead of print_any_exception.
1478
1479 2014-07-14 Pedro Alves <palves@redhat.com>
1480
1481 * infcall.c (run_inferior_call): Set 'sync_execution' while
1482 running the inferior call.
1483
1484 2014-07-14 Pedro Alves <palves@redhat.com>
1485
1486 * value.c (value_contents_equal): Delete function.
1487 * value.h (value_contents_equal): Delete declaration.
1488
1489 2014-07-14 Tom Tromey <tromey@redhat.com>
1490
1491 PR exp/17106:
1492 * gdbtypes.c (is_dynamic_type_internal): New function, from
1493 is_dynamic_type.
1494 (is_dynamic_type): Rewrite.
1495 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1496 (resolve_dynamic_struct): Likewise.
1497 (resolve_dynamic_type_internal): New function, from
1498 resolve_dynamic_type.
1499 (resolve_dynamic_type): Rewrite.
1500
1501 2014-07-14 Tom Tromey <tromey@redhat.com>
1502
1503 * target.c (target_require_runnable): Also check record_stratum.
1504 Update comment.
1505
1506 2014-07-11 Yao Qi <yao@codesourcery.com>
1507
1508 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1509 thumb_instruction_restores_sp return true.
1510
1511 2014-07-11 Yao Qi <yao@codesourcery.com>
1512
1513 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1514 (thumb_in_function_epilogue_p): Call
1515 thumb_instruction_restores_sp.
1516
1517 2014-07-11 Yao Qi <yao@codesourcery.com>
1518
1519 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1520 'add sp, #imm'.
1521 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1522
1523 2014-07-11 Gary Benson <gbenson@redhat.com>
1524
1525 * amd64-linux-nat.c (gdbcore.h): Remove include.
1526 (regset.h): Likewise.
1527 (nat/linux-btrace.h): Likewise.
1528 (btrace.h): Likewise.
1529 (gdb_assert.h): Likewise.
1530 (string.h): Likewise.
1531 (sys/uio.h): Likewise.
1532 (sys/debugreg.h): Likewise.
1533 (sys/syscall.h): Likewise.
1534 (sys/procfs.h): Likewise.
1535 (sys/user.h): Likewise.
1536 (asm/ptrace.h): Likewise.
1537 (i386-nat.h): Likewise.
1538 * i386-linux-nat.c (i386-nat.h): Likewise.
1539 (regset.h): Likewise.
1540 (target.h): Likewise.
1541 (linux-nat.h): Likewise.
1542 (nat/linux-btrace.h): Likewise.
1543 (btrace.h): Likewise.
1544 (gdb_assert.h): Likewise.
1545 (string.h): Likewise.
1546 (sys/uio.h): Likewise.
1547 (sys/user.h): Likewise.
1548 (sys/procfs.h): Likewise.
1549 (sys/reg.h): Likewise.
1550 (sys/debugreg.h): Likewise.
1551 (ORIG_EAX): Remove definition.
1552
1553 2014-07-11 Gary Benson <gbenson@redhat.com>
1554
1555 * i386-linux-nat.h: New file.
1556 * x86-linux-nat.h: Likewise.
1557 * x86-linux-nat.c: Likewise.
1558 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1559 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1560 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1561 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1562 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1563 (PTRACE_SETREGSET): Likewise.
1564 (arch_lwp_info): Now in x86-linux-nat.c.
1565 (have_ptrace_getregset): Now in x86-linux-nat.h.
1566 (x86_linux_dr_get): Now in x86-linux-nat.c.
1567 (x86_linux_dr_set): Likewise.
1568 (x86_linux_dr_get_addr): Likewise.
1569 (x86_linux_dr_get_control): Likewise.
1570 (x86_linux_dr_get_status): Likewise.
1571 (update_debug_registers_callback): Likewise.
1572 (x86_linux_dr_set_control): Likewise.
1573 (x86_linux_dr_set_addr): Likewise.
1574 (x86_linux_prepare_to_resume): Likewise.
1575 (x86_linux_new_thread): Likewise.
1576 (x86_linux_new_fork): Likewise.
1577 (x86_linux_get_thread_area): Likewise.
1578 (super_post_startup_inferior): Likewise.
1579 (x86_linux_child_post_startup_inferior): Likewise.
1580 (AMD64_LINUX_USER64_CS): Likewise.
1581 (AMD64_LINUX_X32_DS): Likewise.
1582 (x86_linux_read_description): Likewise.
1583 (x86_linux_enable_btrace): Likewise.
1584 (x86_linux_disable_btrace): Likewise.
1585 (x86_linux_teardown_btrace): Likewise.
1586 (x86_linux_read_btrace): Likewise.
1587 (x86_linux_create_target): Likewise.
1588 (x86_linux_add_target): Likewise.
1589 * i386-linux-nat.c (x86-linux-nat.h): New include.
1590 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1591 (PTRACE_SETREGSET): Likewise.
1592 (arch_lwp_info): Now in x86-linux-nat.c.
1593 (have_ptrace_getregset): Now in x86-linux-nat.h.
1594 (x86_linux_dr_get): Now in x86-linux-nat.c.
1595 (x86_linux_dr_set): Likewise.
1596 (x86_linux_dr_get_addr): Likewise.
1597 (x86_linux_dr_get_control): Likewise.
1598 (x86_linux_dr_get_status): Likewise.
1599 (update_debug_registers_callback): Likewise.
1600 (x86_linux_dr_set_control): Likewise.
1601 (x86_linux_dr_set_addr): Likewise.
1602 (x86_linux_prepare_to_resume): Likewise.
1603 (x86_linux_new_thread): Likewise.
1604 (x86_linux_new_fork): Likewise.
1605 (x86_linux_get_thread_area): Likewise.
1606 (super_post_startup_inferior): Likewise.
1607 (x86_linux_child_post_startup_inferior): Likewise.
1608 (AMD64_LINUX_USER64_CS): Likewise.
1609 (AMD64_LINUX_X32_DS): Likewise.
1610 (x86_linux_read_description): Likewise.
1611 (x86_linux_enable_btrace): Likewise.
1612 (x86_linux_disable_btrace): Likewise.
1613 (x86_linux_teardown_btrace): Likewise.
1614 (x86_linux_read_btrace): Likewise.
1615 (x86_linux_create_target): Likewise.
1616 (x86_linux_add_target): Likewise.
1617
1618 2014-07-11 Gary Benson <gbenson@redhat.com>
1619
1620 * amd64-linux-nat.c: Comment and whitespace changes.
1621 * i386-linux-nat.c: Comment and whitespace changes.
1622
1623 2014-07-11 Gary Benson <gbenson@redhat.com>
1624
1625 * amd64-linux-nat.c (x86_linux_create_target): New function.
1626 (x86_linux_add_target): Likewise.
1627 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1628 * i386-linux-nat.c (x86_linux_create_target): New function.
1629 (x86_linux_add_target): Likewise.
1630 (_initialize_i386_linux_nat): Delegate to the above new functions.
1631
1632 2014-07-11 Gary Benson <gbenson@redhat.com>
1633
1634 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1635 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1636 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1637 (ps_get_thread_area): Delegate to the above.
1638
1639 2014-07-11 Gary Benson <gbenson@redhat.com>
1640
1641 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1642 x86_linux_read_description. All uses updated. amd64-specific
1643 code conditionalized. Conditionalized i386-specific code added.
1644 Redundant cast removed.
1645 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1646 x86_linux_read_description. All uses updated. i386-specific
1647 code conditionalized. Conditionalized amd64-specific code added.
1648 One sizeof replaced with the actual type it is describing.
1649
1650 2014-07-11 Gary Benson <gbenson@redhat.com>
1651
1652 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1653 x86_linux_dr_get. All uses updated.
1654 (amd64_linux_dr_set): Renamed to
1655 x86_linux_dr_set. All uses updated.
1656 (amd64_linux_dr_get_addr): Renamed to
1657 x86_linux_dr_get_addr. All uses updated.
1658 (amd64_linux_dr_get_control): Renamed to
1659 x86_linux_dr_get_control. All uses updated.
1660 (amd64_linux_dr_get_status): Renamed to
1661 x86_linux_dr_get_status. All uses updated.
1662 (amd64_linux_dr_set_control): Renamed to
1663 x86_linux_dr_set_control. All uses updated.
1664 (amd64_linux_dr_set_addr): Renamed to
1665 x86_linux_dr_set_addr. All uses updated.
1666 (amd64_linux_prepare_to_resume): Renamed to
1667 x86_linux_prepare_to_resume. All uses updated.
1668 (amd64_linux_new_thread): Renamed to
1669 x86_linux_new_thread. All uses updated.
1670 (amd64_linux_new_fork): Renamed to
1671 x86_linux_new_fork. All uses updated.
1672 (amd64_linux_child_post_startup_inferior): Renamed to
1673 x86_linux_child_post_startup_inferior. All uses updated.
1674 (amd64_linux_enable_btrace): Renamed to
1675 x86_linux_enable_btrace. All uses updated.
1676 (amd64_linux_disable_btrace): Renamed to
1677 x86_linux_disable_btrace. All uses updated.
1678 (amd64_linux_teardown_btrace): Renamed to
1679 x86_linux_teardown_btrace. All uses updated.
1680 (amd64_linux_read_btrace): Renamed to
1681 x86_linux_read_btrace. All uses updated.
1682 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1683 x86_linux_dr_get. All uses updated.
1684 (i386_linux_dr_set): Renamed to
1685 x86_linux_dr_set. All uses updated.
1686 (i386_linux_dr_get_addr): Renamed to
1687 x86_linux_dr_get_addr. All uses updated.
1688 (i386_linux_dr_get_control): Renamed to
1689 x86_linux_dr_get_control. All uses updated.
1690 (i386_linux_dr_get_status): Renamed to
1691 x86_linux_dr_get_status. All uses updated.
1692 (i386_linux_dr_set_control): Renamed to
1693 x86_linux_dr_set_control. All uses updated.
1694 (i386_linux_dr_set_addr): Renamed to
1695 x86_linux_dr_set_addr. All uses updated.
1696 (i386_linux_prepare_to_resume): Renamed to
1697 x86_linux_prepare_to_resume. All uses updated.
1698 (i386_linux_new_thread): Renamed to
1699 x86_linux_new_thread. All uses updated.
1700 (i386_linux_new_fork): Renamed to
1701 x86_linux_new_fork. All uses updated.
1702 (i386_linux_child_post_startup_inferior): Renamed to
1703 x86_linux_child_post_startup_inferior. All uses updated.
1704 (i386_linux_enable_btrace): Renamed to
1705 x86_linux_enable_btrace. All uses updated.
1706 (i386_linux_disable_btrace): Renamed to
1707 x86_linux_disable_btrace. All uses updated.
1708 (i386_linux_teardown_btrace): Renamed to
1709 x86_linux_teardown_btrace. All uses updated.
1710 (i386_linux_read_btrace): Renamed to
1711 x86_linux_read_btrace. All uses updated.
1712
1713 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1714
1715 * remote.c (extended_remote_post_attach): New function.
1716 (init_extended_remote_ops): Install it as to_post_attach method.
1717
1718 2014-07-09 Pedro Alves <palves@redhat.com>
1719
1720 * infcmd.c (attach_command_post_wait): Don't call
1721 target_terminal_inferior here.
1722 (attach_command): Call it here instead.
1723
1724 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1727 field.
1728 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1729 from varobj.c, with additional checks.
1730 (c_varobj_ops): Fill in is_path_expr_parent field.
1731 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1732 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1733 field.
1734 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1735 ops method.
1736 (varobj_default_is_path_expr_parent): New function.
1737 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1738 (varobj_default_is_path_expr_parent): Declare new function.
1739
1740 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1741
1742 * infcmd.c (finish_backward): Turn internal error into normal error.
1743
1744 2014-07-07 Pedro Alves <palves@redhat.com>
1745
1746 PR gdb/17096
1747 * remote.c (async_handle_remote_sigint)
1748 (async_handle_remote_sigint_twice): Call
1749 gdb_call_async_signal_handler instead of
1750 mark_async_signal_handler.
1751
1752 2014-07-07 Tom Tromey <tromey@redhat.com>
1753
1754 * target-delegates.c: Rebuild.
1755 * target.c (target_info_record): Remove.
1756 * record.c (info_record_command): Unconditionally call
1757 to_info_record.
1758 * target.h (struct target_ops) <to_info_record>: Use
1759 TARGET_DEFAULT_IGNORE.
1760 (target_info_record): Remove.
1761
1762 2014-07-07 Tom Tromey <tromey@redhat.com>
1763
1764 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1765 TARGET_DEFAULT_NORETURN.
1766 * target.c (generic_tls_error): New function.
1767 (target_translate_tls_address): Don't search target stack.
1768 * target-delegates.c: Rebuild.
1769 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1770 stack.
1771 * linux-thread-db.c (thread_db_get_thread_local_address):
1772 Unconditionally call beneath target.
1773
1774 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1775
1776 * cli/cli-logging.c (pop_output_files): Assign targerr to
1777 gdb_stdtargerr.
1778
1779 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * MAINTAINERS (Write After Approval): Update my email address.
1782
1783 2014-07-02 Gary Benson <gbenson@redhat.com>
1784
1785 * proc-service.c (ps_xfer_memory): Update comment.
1786 (ps_pstop): Remove unused function.
1787 (ps_pcontinue): Likewise.
1788 (ps_lstop): Likewise.
1789 (ps_lcontinue): Likewise.
1790 (ps_lgetxregsize): Likewise.
1791 (ps_lgetxregs): Likewise.
1792 (ps_lsetxregs): Likewise.
1793 (ps_plog): Likewise.
1794 (ps_ptread): Likewise.
1795 (ps_ptwrite): Likewise.
1796
1797 2014-07-01 Mark Wielaard <mjw@redhat.com>
1798
1799 * dwarf2read.c (add_array_cv_type): New function.
1800 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1801 (read_tag_volatile_type): Likewise.
1802
1803 2014-07-01 Tom Tromey <tromey@redhat.com>
1804
1805 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1806 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1807 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1808 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1809 * command.h (cmd_cfunc_ftype): Move earlier.
1810 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1811 (add_com, add_info): Use cmd_cfunc_ftype.
1812
1813 2014-06-30 Tom Tromey <tromey@redhat.com>
1814
1815 * symtab.c (operator_chars): Make parameters and return type
1816 const.
1817 (file_matches): Make "files" const.
1818 (struct search_symbols_data) <files>: Now const.
1819 (search_symbols): Make "regexp" and "files" parameters const.
1820 Update.
1821 (symtab_symbol_info): Remove cast.
1822 (rbreak_command): Update.
1823 * symtab.h (search_symbols): Update.
1824
1825 2014-06-27 Yao Qi <yao@codesourcery.com>
1826
1827 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1828 Change parameter type to 'struct thread_info *'. Caller
1829 updated.
1830 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1831 Update declaration.
1832 * dummy-frame.c (struct dummy_frame_id): New.
1833 (dummy_frame_id_eq): New function.
1834 (struct dummy_frame) <id>: Change its type to 'struct
1835 dummy_frame_id'.
1836 (dummy_frame_push): Add parameter ptid and save it in
1837 dummy_frame_id.
1838 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1839 inferior_ptid.
1840 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1841 to inferior_ptid.
1842 (lookup_dummy_frame): Change parameter type to 'struct
1843 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1844 instead of frame_id_eq.
1845 (dummy_frame_pop): Add parameter ptid. Callers updated.
1846 Update comments. Compose dummy_frame_id and pass it to
1847 lookup_dummy_frame.
1848 (dummy_frame_discard): Add parameter ptid.
1849 (dummy_frame_sniffer): Compose dummy_frame_id and call
1850 dummy_frame_id_eq instead of frame_id_eq.
1851 (fprint_dummy_frames): Print ptid.
1852 * dummy-frame.h: Remove comments.
1853 (dummy_frame_push): Add ptid in declaration.
1854 (dummy_frame_pop, dummy_frame_discard): Likewise.
1855
1856 2014-06-26 Tom Tromey <tromey@redhat.com>
1857
1858 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1859 * command.h (error_no_arg): Update.
1860
1861 2014-06-26 Tom Tromey <tromey@redhat.com>
1862
1863 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1864 (do_show_command): Make "arg" const.
1865 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1866
1867 2014-06-26 Tom Tromey <tromey@redhat.com>
1868
1869 * record-full.c (record_full_get_bookmark): Make "args" const.
1870 (record_full_goto_bookmark): Make "raw_bookmark" const.
1871 * record.c (record_goto): New function.
1872 (cmd_record_goto): Use it. Now static.
1873 * record.h (record_goto): Declare.
1874 (cmd_record_goto): Remove declaration.
1875 * target-delegates.c: Rebuild.
1876 * target.h (struct target_ops) <to_get_bookmark,
1877 to_goto_bookmark>: Make parameter const.
1878
1879 2014-06-26 Tom Tromey <tromey@redhat.com>
1880
1881 * defs.h (generic_load): Update.
1882 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1883 * monitor.c (monitor_load): Make "args" const.
1884 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1885 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1886 const.
1887 (mips_load): Make "file" const.
1888 * remote-sim.c (gdbsim_load): Make "args" const.
1889 * remote.c (remote_load): Make "name" const.
1890 * symfile.c (generic_load): Make "args" const.
1891 * target-delegates.c: Rebuild.
1892 * target.c (target_load): Make "arg" const.
1893 (debug_to_load): Make "args" const.
1894 * target.h (struct target_ops) <to_load>: Make parameter const.
1895 (target_load): Update.
1896
1897 2014-06-26 Tom Tromey <tromey@redhat.com>
1898
1899 PR symtab/16902:
1900 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1901 (dwarf2_physname, read_partial_die)
1902 (guess_partial_die_structure_name, fixup_partial_die)
1903 (guess_full_die_structure_name, anonymous_struct_prefix)
1904 (dwarf2_name): Use per-BFD obstack.
1905
1906 2014-06-26 Yao Qi <yao@codesourcery.com>
1907
1908 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1909 dummyframe and this_id into inner block below.
1910
1911 2014-06-26 Yao Qi <yao@codesourcery.com>
1912
1913 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1914 with "signal_pass[0]" in the initialization of signal_pass.
1915
1916 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1917
1918 * record-btrace.c (record_btrace_generating_corefile)
1919 (record_btrace_prepare_to_generate_core)
1920 (record_btrace_done_generating_core): New.
1921 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1922 (record_btrace_store_registers, record_btrace_prepare_to_store):
1923 Forward request when generating a core file.
1924 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1925 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1926 to_done_generating_core.
1927
1928 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1929
1930 * target.h (target_ops) <to_prepare_to_generate_core>
1931 <to_done_generating_core>: New.
1932 (target_prepare_to_generate_core, target_done_generating_core): New.
1933 * target.c (target_prepare_to_generate_core)
1934 (target_done_generating_core): New.
1935 * target-delegates.c: Regenerate.
1936 * gcore.c: (write_gcore_file): Rename to ...
1937 (write_gcore_file_1): ...this.
1938 (write_gcore_file): Call target_prepare_to_generate_core
1939 and target_done_generating_core.
1940
1941 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1942
1943 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1944 * gcore.c (write_gcore_file): Free memory returned from
1945 make_corefile_notes.
1946 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1947 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1948
1949 2014-06-24 Yao Qi <yao@codesourcery.com>
1950
1951 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1952 (arm_linux_init_abi): Set skip_trampoline_code with
1953 gdbarch_skip_trampoline_code instead of
1954 find_solib_trampoline_target.
1955
1956 2014-06-24 Yao Qi <yao@codesourcery.com>
1957
1958 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1959 arm_skip_bx_reg returns non-zero.
1960
1961 2014-06-24 Yao Qi <yao@codesourcery.com>
1962
1963 * arm-tdep.c (arm_skip_bx_reg): New function.
1964 (arm_skip_stub): Call arm_skip_bx_reg.
1965
1966 2014-06-23 Don Breazeal <donb@codesourcery.com>
1967
1968 * MAINTAINERS: Add myself as write-after-approval maintainer.
1969
1970 2014-06-23 Pedro Alves <palves@redhat.com>
1971
1972 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1973 DR_CONTROL before setting DR0..DR3.
1974 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1975 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1976 bits of DR_CONTROL related to the debug register slot being
1977 disabled. If all slots are vacant, clear local slowdown as well,
1978 and assert DR_CONTROL is 0.
1979
1980 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1981
1982 * python/lib/gdb/command/xmethods.py
1983 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1984 current progspace only if the string "progspace" matches LOCUS_RE.
1985
1986 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 Fix --with-system-readline with readline-6.3 patch 5.
1989 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1990 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1991 types.
1992
1993 2014-06-20 Tom Tromey <tromey@redhat.com>
1994
1995 * dwarf2read.c (dw2_get_real_path): Use correct type in
1996 OBSTACK_CALLOC.
1997 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1998
1999 2014-06-20 Gary Benson <gbenson@redhat.com>
2000
2001 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2002 * common/glibc_thread_db.h: Likewise.
2003 * common/i386-cpuid.h: Likewise.
2004 * common/i386-gcc-cpuid.h: Likewise.
2005 * common/linux-btrace.h: Likewise.
2006 * common/linux-osdata.h: Likewise.
2007 * common/linux-procfs.h: Likewise.
2008 * common/linux-ptrace.h: Likewise.
2009 * common/mips-linux-watch.h: Likewise.
2010 * common/linux-btrace.c: Moved to nat.
2011 * common/linux-osdata.c: Likewise.
2012 * common/linux-procfs.c: Likewise.
2013 * common/linux-ptrace.c: Likewise.
2014 * common/mips-linux-watch.c: Likewise.
2015 * nat/gdb_thread_db.h: Moved from common.
2016 * nat/glibc_thread_db.h: Likewise.
2017 * nat/i386-cpuid.h: Likewise.
2018 * nat/i386-gcc-cpuid.h: Likewise.
2019 * nat/linux-btrace.c: Likewise.
2020 * nat/linux-btrace.h: Likewise.
2021 * nat/linux-osdata.c: Likewise.
2022 * nat/linux-osdata.h: Likewise.
2023 * nat/linux-procfs.c: Likewise.
2024 * nat/linux-procfs.h: Likewise.
2025 * nat/linux-ptrace.c: Likewise.
2026 * nat/linux-ptrace.h: Likewise.
2027 * nat/mips-linux-watch.c: Likewise.
2028 * nat/mips-linux-watch.h: Likewise.
2029 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2030 (object file files): Reordered.
2031 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2032 of glibc_thread_db.h.
2033
2034 2014-06-20 Gary Benson <gbenson@redhat.com>
2035
2036 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2037 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2038 (i386_dr_low): Likewise.
2039 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2040 (i386_dr_low_set_addr): Likewise.
2041 (i386_dr_low_get_addr): Likewise.
2042 (i386_dr_low_can_set_control): Likewise.
2043 (i386_dr_low_set_control): Likewise.
2044 (i386_dr_low_get_control): Likewise.
2045 (i386_dr_low_get_status): Likewise.
2046 (i386_get_debug_register_length): Likewise.
2047 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2048 (i386_dr_low): Likewise.
2049 * nat/i386-dregs.c (i386-low.h): Remove include.
2050 (i386-nat.h): Likewise.
2051 (nat/i386-dregs.h): New include.
2052 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2053 (i386_dr_low_set_addr): Likewise.
2054 (i386_dr_low_get_addr): Likewise.
2055 (i386_dr_low_can_set_control): Likewise.
2056 (i386_dr_low_set_control): Likewise.
2057 (i386_dr_low_get_control): Likewise.
2058 (i386_dr_low_get_status): Likewise.
2059 (i386_get_debug_register_length): Likewise.
2060 (debug_hw_points): Likewise.
2061
2062 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2063
2064 * Makefile.in (SFILES): Add d-exp.y.
2065 (YYFILES): Add d-exp.c.
2066 (YYOBJ): Add d-exp.o.
2067 (local-maintainer-clean): Delete d-exp.c.
2068 * d-exp.y: New file.
2069 * d-lang.h (d_parse): New declaration.
2070 (d_error): New declaration.
2071 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2072 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2073 PREC_ORDER operators.
2074 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2075
2076 2014-06-19 Yao Qi <yao@codesourcery.com>
2077
2078 * gdbthread.h (any_running): Remove the declaration.
2079 * thread.c (any_running): Remove.
2080
2081 2014-06-19 Yao Qi <yao@codesourcery.com>
2082
2083 * gdbthread.h (struct thread_info) <state>: Change its type to
2084 'enum thread_state'. Update comments.
2085
2086 2014-06-19 Pedro Alves <palves@redhat.com>
2087
2088 * gdbthread.h (ALL_THREADS): Delete.
2089 (ALL_NON_EXITED_THREADS): New macro.
2090 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2091 instead of ALL_THREADS.
2092 * infrun.c (find_thread_needs_step_over)
2093 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2094 instead of ALL_THREADS.
2095 * record-btrace.c (record_btrace_open)
2096 (record_btrace_stop_recording, record_btrace_close)
2097 (record_btrace_is_replaying, record_btrace_resume)
2098 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2099 * remote.c (append_pending_thread_resumptions): Likewise.
2100 * thread.c (thread_apply_all_command): Likewise.
2101
2102 2014-06-19 Gary Benson <gbenson@redhat.com>
2103
2104 * i386-nat.c (i386_stopped_by_watchpoint):
2105 Use i386_dr_stopped_by_watchpoint.
2106 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2107 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2108
2109 2014-06-19 Gary Benson <gbenson@redhat.com>
2110
2111 * nat/i386-dregs.c: New file.
2112 * Makefile.in (i386-dregs.o): New rule.
2113 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2114 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2115 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2116 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2117 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2118 * config/i386/go32.mh (NATDEPFILES): Likewise.
2119 * config/i386/linux.mh (NATDEPFILES): Likewise.
2120 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2121 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2122 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2123 * i386-nat.h (debug_hw_points): New declaration.
2124 * i386-nat.c (breakpoint.h): Remove include.
2125 (command.h): Likewise.
2126 (target.h): Likewise.
2127 (gdb_assert.h): Likewise.
2128 (debug_hw_points): Made nonstatic.
2129 (debug_printf): Now in i386-dregs.c.
2130 (TARGET_HAS_DR_LEN_8): Likewise.
2131 (DR_CONTROL_SHIFT): Likewise.
2132 (DR_CONTROL_SIZE): Likewise.
2133 (DR_RW_EXECUTE): Likewise.
2134 (DR_RW_WRITE): Likewise.
2135 (DR_RW_READ): Likewise.
2136 (DR_RW_IORW): Likewise.
2137 (DR_LEN_1): Likewise.
2138 (DR_LEN_2): Likewise.
2139 (DR_LEN_4): Likewise.
2140 (DR_LEN_8): Likewise.
2141 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2142 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2143 (DR_ENABLE_SIZE): Likewise.
2144 (DR_LOCAL_SLOWDOWN): Likewise.
2145 (DR_GLOBAL_SLOWDOWN): Likewise.
2146 (DR_CONTROL_RESERVED): Likewise.
2147 (I386_DR_CONTROL_MASK): Likewise.
2148 (I386_DR_VACANT): Likewise.
2149 (I386_DR_LOCAL_ENABLE): Likewise.
2150 (I386_DR_GLOBAL_ENABLE): Likewise.
2151 (I386_DR_DISABLE): Likewise.
2152 (I386_DR_SET_RW_LEN): Likewise.
2153 (I386_DR_GET_RW_LEN): Likewise.
2154 (I386_DR_WATCH_HIT): Likewise.
2155 (i386_wp_op_t): Likewise.
2156 (i386_show_dr): Likewise.
2157 (i386_length_and_rw_bits): Likewise.
2158 (i386_insert_aligned_watchpoint): Likewise.
2159 (i386_remove_aligned_watchpoint): Likewise.
2160 (i386_handle_nonaligned_watchpoint): Likewise.
2161 (i386_update_inferior_debug_regs): Likewise.
2162 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2163 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2164 (i386_region_ok_for_watchpoint):
2165 Use i386_dr_region_ok_for_watchpoint.
2166 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2167
2168 2014-06-19 Gary Benson <gbenson@redhat.com>
2169
2170 * i386-nat.c (i386_insert_hw_breakpoint): Use
2171 i386_insert_watchpoint.
2172 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2173
2174 2014-06-19 Gary Benson <gbenson@redhat.com>
2175
2176 * i386-nat.c (i386_dr_show): Renamed to
2177 i386_show_dr and made static. All uses updated.
2178 (i386_dr_length_and_rw_bits): Renamed to
2179 i386_length_and_rw_bits and made static.
2180 All uses updated.
2181 (i386_dr_insert_aligned_watchpoint): Renamed to
2182 i386_insert_aligned_watchpoint and made static.
2183 All uses updated.
2184 (i386_dr_remove_aligned_watchpoint): Renamed to
2185 i386_remove_aligned_watchpoint and made static.
2186 All uses updated.
2187 (i386_dr_update_inferior_debug_regs): Renamed to
2188 i386_update_inferior_debug_regs and made static.
2189 All uses updated.
2190 * nat/i386-dregs.h (i386_dr_show): Removed.
2191 (i386_dr_length_and_rw_bits): Likewise.
2192 (i386_dr_insert_aligned_watchpoint): Likewise.
2193 (i386_dr_remove_aligned_watchpoint): Likewise.
2194 (i386_dr_update_inferior_debug_regs): Likewise.
2195
2196 2014-06-19 Gary Benson <gbenson@redhat.com>
2197
2198 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2199 * configure: Regenerate.
2200 * config.in: Likewise.
2201 * main.c (signal.h): New include.
2202 (setup_alternate_signal_stack): New function.
2203 (captured_main): Call the above.
2204 * cp-support.c (signal.h): New include.
2205 (catch_demangler_crashes): New flag.
2206 (SIGJMP_BUF): New define.
2207 (SIGSETJMP): Likewise.
2208 (SIGLONGJMP): Likewise.
2209 (gdb_demangle_jmp_buf): New static global.
2210 (gdb_demangle_attempt_core_dump): Likewise.
2211 (gdb_demangle_signal_handler): New function.
2212 (gdb_demangle): If catch_demangler_crashes is set, install the
2213 above signal handler before calling bfd_demangle, and restore
2214 the original signal handler afterwards. Display the offending
2215 symbol and call demangler_warning the first time a segmentation
2216 fault is caught.
2217 (_initialize_cp_support): New maint set/show command.
2218
2219 2014-06-19 Gary Benson <gbenson@redhat.com>
2220
2221 * utils.h (resource_limit_kind): New enum.
2222 (can_dump_core): New declaration.
2223 (warn_cant_dump_core): Likewise.
2224 (dump_core): Likewise.
2225 * utils.c (dump_core): Made nonstatic. Added new
2226 parameter "limit_kind".
2227 (can_dump_core): Made nonstatic. Moved printing code to...
2228 (warn_cant_dump_core): New function.
2229 (can_dump_core_warn): Likewise.
2230 (internal_vproblem): Replace calls to can_dump_core with
2231 calls to can_dump_core_warn. Supply new argument to each.
2232
2233 2014-06-19 Gary Benson <gbenson@redhat.com>
2234
2235 * utils.h (demangler_vwarning): New declaration.
2236 (demangler_warning): Likewise.
2237 * utils.c (struct internal_problem)
2238 <user_settable_should_quit>: New field.
2239 <user_settable_should_dump_core>: Likewise
2240 (internal_error_problem): Add values for above new fields.
2241 (internal_warning_problem): Likewise.
2242 (demangler_warning_problem): New static global.
2243 (demangler_vwarning): New function.
2244 (demangler_warning): Likewise.
2245 (add_internal_problem_command): Selectively add commands.
2246 (_initialize_utils): New internal problem command.
2247 * maint.c (maintenance_demangler_warning): New function.
2248 (_initialize_maint_cmds): New command.
2249
2250 2014-06-18 Tom Tromey <tromey@redhat.com>
2251
2252 * f-valprint.c (info_common_command_for_block): Update.
2253 * symtab.h (struct general_symbol_info) <common_block>: Now
2254 const.
2255
2256 2014-06-18 Tom Tromey <tromey@redhat.com>
2257
2258 * symtab.h (struct symtab) <blockvector>: Now const.
2259 * ada-lang.c (ada_add_global_exceptions): Update.
2260 * buildsym.c (augment_type_symtab): Update.
2261 * dwarf2read.c (dw2_lookup_symbol): Update.
2262 * jit.c (finalize_symtab): Update.
2263 * jv-lang.c (add_class_symtab_symbol): Update.
2264 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2265 Update.
2266 * objfiles.c (objfile_relocate1): Update.
2267 * psymtab.c (lookup_symbol_aux_psymtabs)
2268 (maintenance_check_psymtabs): Update.
2269 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2270 Update.
2271 * spu-tdep.c (spu_catch_start): Update.
2272 * symmisc.c (dump_symtab_1): Update.
2273 * symtab.c (lookup_global_symbol_from_objfile)
2274 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2275 (basic_lookup_transparent_type_quick)
2276 (basic_lookup_transparent_type, find_pc_sect_symtab)
2277 (find_pc_sect_line, search_symbols): Update.
2278 * block.c (find_block_in_blockvector): Make "bl" const.
2279 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2280 const.
2281 (blockvector_contains_pc): Make "bv" const.
2282 (block_for_pc_sect): Update.
2283 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2284 (blockvector_contains_pc): Update.
2285 * breakpoint.c (resolve_sal_pc): Update.
2286 * inline-frame.c (block_starting_point_at): Update.
2287
2288 2014-06-18 Tom Tromey <tromey@redhat.com>
2289
2290 * completer.c (complete_line): Make "line_buffer" const.
2291 * completer.h (complete_line): Update.
2292
2293 2014-06-18 Tom Tromey <tromey@redhat.com>
2294
2295 * symtab.c (add_macro_name): Remove unneeded cast.
2296
2297 2014-06-18 Tom Tromey <tromey@redhat.com>
2298
2299 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2300 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2301
2302 2014-06-18 Tom Tromey <tromey@redhat.com>
2303
2304 * probe.c (info_probes_for_ops): Make "arg" const.
2305 * probe.h (info_probes_for_ops): Update.
2306
2307 2014-06-18 Tom Tromey <tromey@redhat.com>
2308
2309 * varobj.c (varobj_create): Update.
2310 * valops.c (value_of_this): Update.
2311 * tracepoint.c (add_local_symbols, scope_info): Update.
2312 * symtab.h (struct general_symbol_info) <block>: Now const.
2313 * symtab.c (skip_prologue_sal)
2314 (default_make_symbol_completion_list_break_on)
2315 (skip_prologue_using_sal): Update.
2316 * stack.h (iterate_over_block_locals)
2317 (iterate_over_block_local_vars): Update.
2318 * stack.c (print_frame_args): Update.
2319 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2320 parameter const.
2321 (get_selected_block): Make return type const.
2322 * python/py-frame.c (frapy_block): Update.
2323 * python/py-block.c (gdbpy_block_for_pc): Update.
2324 * p-exp.y (%union) <bval>: Now const.
2325 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2326 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2327 * m2-exp.y (%union) <bval>: Now const.
2328 * linespec.c (get_current_search_block): Make return type const.
2329 (create_sals_line_offset, find_label_symbols): Update.
2330 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2331 Update.
2332 (block_starting_point_at): Make "block" const.
2333 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2334 (check_exception_resume): Update.
2335 * guile/scm-frame.c (gdbscm_frame_block): Update.
2336 * guile/scm-block.c (gdbscm_lookup_block): Update.
2337 * frame.h (get_frame_block): Update.
2338 (get_selected_block): Make return type const.
2339 * frame.c (frame_id_inner): Update.
2340 * f-valprint.c (info_common_command_for_block)
2341 (info_common_command): Update.
2342 * dwarf2loc.c (dwarf2_find_location_expression)
2343 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2344 (locexpr_describe_location_piece): Update.
2345 * c-exp.y (%union) <bval>: Now const.
2346 * breakpoint.c (resolve_sal_pc): Update.
2347 * blockframe.c (get_frame_block):Make return type const.
2348 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2349 (block_innermost_frame): Update.
2350 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2351 (block_for_pc, block_for_pc_sect): Update.
2352 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2353 'pblock' const.
2354 (block_for_pc_sect, block_for_pc): Make return type const.
2355 * ax-gdb.c (gen_expr): Update.
2356 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2357 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2358 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2359 (ada_read_var_value): Update.
2360 * ada-exp.y (struct name_info) <block>: Now const.
2361 (%union): Likewise.
2362 (block_lookup): Constify.
2363
2364 2014-06-18 Gary Benson <gbenson@redhat.com>
2365
2366 * nat/i386-dregs.h: New file.
2367 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2368 * i386-nat.h (i386-dregs.h): New include.
2369 (DR_FIRSTADDR): Now in i386-dregs.h.
2370 (DR_LASTADDR): Likewise.
2371 (DR_NADDR): Likewise.
2372 (DR_STATUS): Likewise.
2373 (DR_CONTROL): Likewise.
2374 (i386_debug_reg_state): Likewise.
2375 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2376
2377 2014-06-18 Don Breazeal <donb@codesourcery.com>
2378
2379 * breakpoint.c (set_longjmp_breakpoint): Call
2380 momentary_breakpoint_from_master with additional argument.
2381 (set_longjmp_breakpoint_for_call_dummy): Call
2382 momentary_breakpoint_from_master with additional argument.
2383 (set_std_terminate_breakpoint): Call
2384 momentary_breakpoint_from_master with additional argument.
2385 (momentary_breakpoint_from_master): Add argument to function
2386 definition and use it to initialize structure member flag.
2387 (clone_momentary_breakpoint): Call
2388 momentary_breakpoint_from_master with additional argument.
2389 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2390 member flags set in momentary_breakpoint_from_master.
2391
2392 2014-06-18 Gary Benson <gbenson@redhat.com>
2393
2394 * i386-nat.c (i386_show_dr): Renamed to
2395 i386_dr_show and made nonstatic. All uses updated.
2396 (i386_length_and_rw_bits): Renamed to
2397 i386_dr_length_and_rw_bits and made nonstatic.
2398 All uses updated.
2399 (i386_insert_aligned_watchpoint): Renamed to
2400 i386_dr_insert_aligned_watchpoint and made nonstatic.
2401 All uses updated.
2402 (i386_remove_aligned_watchpoint): Renamed to
2403 i386_dr_remove_aligned_watchpoint and made nonstatic.
2404 All uses updated.
2405 (i386_update_inferior_debug_regs): Renamed to
2406 i386_dr_update_inferior_debug_regs and made nonstatic.
2407 All uses updated.
2408
2409 2014-06-18 Gary Benson <gbenson@redhat.com>
2410
2411 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2412 (i386_dr_low_can_set_control): Likewise.
2413 (i386_dr_low_set_addr): Likewise.
2414 (i386_dr_low_set_control): Likewise.
2415 (i386_dr_low_get_addr): Likewise.
2416 (i386_dr_low_get_status): Likewise.
2417 (i386_dr_low_get_control): Likewise.
2418 (i386_insert_aligned_watchpoint): Use new macros.
2419 (i386_update_inferior_debug_regs): Likewise.
2420 (i386_stopped_data_address): Likewise.
2421
2422 2014-06-18 Gary Benson <gbenson@redhat.com>
2423
2424 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2425 New parameter. All uses updated.
2426
2427 2014-06-18 Gary Benson <gbenson@redhat.com>
2428
2429 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2430 All uses updated.
2431
2432 2014-06-18 Gary Benson <gbenson@redhat.com>
2433
2434 * i386-nat.c (debug_printf): New macro.
2435 (i386_get_debug_register_length): Likewise.
2436 (TARGET_HAS_DR_LEN_8): Use above macro.
2437 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2438 and printf_unfiltered. Use phex to format values.
2439
2440 2014-06-18 Gary Benson <gbenson@redhat.com>
2441
2442 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2443 Make const.
2444
2445 2014-06-18 Gary Benson <gbenson@redhat.com>
2446
2447 * i386-nat.c: Comment changes.
2448
2449 2014-06-18 Gary Benson <gbenson@redhat.com>
2450
2451 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2452
2453 2014-06-18 Gary Benson <gbenson@redhat.com>
2454
2455 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2456 (i386_insert_aligned_watchpoint): Likewise.
2457 (i386_remove_aligned_watchpoint): Likewise.
2458 (i386_handle_nonaligned_watchpoint): Likewise.
2459
2460 2014-06-18 Gary Benson <gbenson@redhat.com>
2461
2462 * i386-nat.c: Whitespace changes.
2463
2464 2014-06-17 Samuel Bronson <naesten@gmail.com>
2465
2466 * MAINTAINERS: Update Roland McGrath's email address.
2467 Thanks to Sergio Durigan Junior for pointing out that he left
2468 Red Hat a while ago, and giving me a current address.
2469
2470 2014-06-17 Tom Tromey <tromey@redhat.com>
2471
2472 * utils.h (savestring): Remove declaration.
2473
2474 2014-06-17 Tom Tromey <tromey@redhat.com>
2475
2476 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2477
2478 2014-06-16 Keith Seitz <keiths@redhat.com>
2479
2480 PR mi/15863
2481 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2482 to update the varobj if inferior_ptid is null_ptid.
2483
2484 2014-06-16 Tom Tromey <tromey@redhat.com>
2485
2486 * target.h (struct target_ops) <to_info_proc>: Make parameter
2487 const.
2488 (target_info_proc): Update.
2489 * target.c (target_info_proc): Make "args" const.
2490 * procfs.c (procfs_info_proc): Update.
2491 * linux-tdep.c (linux_info_proc): Update.
2492 (linux_core_info_proc_mappings): Make "args" const.
2493 (linux_core_info_proc): Update.
2494 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2495 * gdbarch.c: Rebuild.
2496 * gdbarch.h: Rebuild.
2497 * corelow.c (core_info_proc): Update.
2498
2499 2014-06-16 Tom Tromey <tromey@redhat.com>
2500
2501 * target.h (struct target_ops) <to_disconnect>: Make parameter
2502 const.
2503 (target_disconnect): Update.
2504 * target.c (target_disconnect): Make "args" const.
2505 * target-delegates.c: Rebuild.
2506 * remote.c (remote_disconnect): Update.
2507 * record.h (record_disconnect): Update.
2508 * record.c (record_disconnect): Update.
2509 * inf-child.c (inf_child_disconnect): Update.
2510
2511 2014-06-16 Tom Tromey <tromey@redhat.com>
2512
2513 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2514 * target.c (debug_to_rcmd, default_rcmd): Update.
2515 * target-delegates.c: Rebuild.
2516 * remote.c (remote_rcmd): Update.
2517 * monitor.c (monitor_rcmd): Update.
2518
2519 2014-06-16 Pedro Alves <palves@redhat.com>
2520
2521 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2522 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2523 have OBJF_SHARED set.
2524 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2525 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2526 instead of OBJF_USERLOADED.
2527 * objfiles.h (OBJF_SHARED): Update comment.
2528 (userloaded_objfile_contains_address_p): Rename to ...
2529 (shared_objfile_contains_address_p): ... this, and update
2530 comments.
2531 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2532 new objfile.
2533 (remove_symbol_file_command): Skip objfiles that don't have
2534 OBJF_SHARED set.
2535
2536 2014-06-16 Tom Tromey <tromey@redhat.com>
2537
2538 * minsyms.h (prim_record_minimal_symbol)
2539 (prim_record_minimal_symbol_and_info): Update comments.
2540
2541 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2542
2543 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2544 or --without-guile, according to how GDB was built.
2545
2546 2014-06-13 Tom Tromey <tromey@redhat.com>
2547
2548 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2549 to help_list.
2550 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2551 to help_list.
2552 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2553 help_list.
2554 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2555 help_list.Pass all_commands, not -1, to help_list.
2556 * cli/cli-dump.c (dump_command, append_command)
2557 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2558 (binary_dump_command, binary_append_command): Pass all_commands,
2559 not -1, to help_list.
2560 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2561 -1, to help_list.
2562 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2563 -1, to help_list.
2564 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2565 help_list.
2566 * top.c (set_history): Pass all_commands, not -1, to help_list.
2567 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2568 all_commands, not -1, to help_list.
2569 * symfile.c (overlay_command): Pass all_commands, not -1, to
2570 help_list.
2571 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2572 help_list.
2573 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2574 help_list.
2575 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2576 -1, to help_list.
2577 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2578 not -1, to help_list.
2579 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2580 not -1, to help_list.
2581 * maint.c (maintenance_command, maintenance_info_command)
2582 (maintenance_print_command, maintenance_set_cmd): Pass
2583 all_commands, not -1, to help_list.
2584 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2585 help_list.
2586 * language.c (set_check): Pass all_commands, not -1, to help_list.
2587 * infcmd.c (unset_command): Pass all_commands, not -1, to
2588 help_list.
2589 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2590 help_list.
2591 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2592 help_list.
2593 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2594 help_list.
2595 * breakpoint.c (save_command): Pass all_commands, not -1, to
2596 help_list.
2597 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2598 all_commands, not -1, to help_list.
2599
2600 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2601
2602 * regcache.c (struct register_to_invalidate): New structure.
2603 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2604 functions.
2605 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2606
2607 2014-06-12 Yao Qi <yao@codesourcery.com>
2608
2609 * varobj.c (varobj_get_num_children): Call
2610 varobj_is_dynamic_p.
2611 (varobj_list_children): Likewise.
2612 (varobj_update): Likewise. Update comments.
2613
2614 2014-06-12 Yao Qi <yao@codesourcery.com>
2615
2616 * varobj.c (varobj_pretty_printed_p): Rename to ...
2617 (varobj_is_dynamic_p): ... this. New function.
2618 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2619 (varobj_is_dynamic_p): Declare.
2620 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2621 (mi_print_value_p, varobj_update_one): Likewise.
2622
2623 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2624 Yao Qi <yao@codesourcery.com>
2625
2626 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2627 (varobj_get_iterator): Wrap up code for pretty-printer by
2628 "#if HAVE_PYTHON" and "#endif".
2629 (update_dynamic_varobj_children): Likewise.
2630
2631 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2632 Yao Qi <yao@codesourcery.com>
2633
2634 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2635 gdb_python_initialized is false. Move some code from varobj.c.
2636 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2637 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2638 (struct varobj_item): Moved to varobj-iter.h".
2639 (varobj_clear_saved_item): New function.
2640 (update_dynamic_varobj_children): Move python-related code to
2641 py-varobj.c.
2642 (free_variable): Call varobj_clear_saved_item and
2643 varobj_iter_delete.
2644
2645 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2646 Yao Qi <yao@codesourcery.com>
2647
2648 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2649 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2650 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2651 (py-varobj.o): New rule.
2652 * python/py-varobj.c: New file.
2653 * python/python-internal.h (py_varobj_get_iterator): Declare.
2654 * varobj-iter.h: New file.
2655 * varobj.c: Include "varobj-iter.h"
2656 (struct varobj) <child_iter>: Change its type from "PyObject *"
2657 to "struct varobj_iter *".
2658 <saved_item>: Likewise.
2659 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2660 [HAVE_PYTHON] (varobj_get_iterator): New function.
2661 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2662 python-specific code to python/py-varobj.c.
2663 (install_visualizer): Call varobj_iter_delete instead of
2664 Py_XDECREF.
2665 * varobj.h (varobj_ensure_python_env): Declare.
2666
2667 2014-06-12 Yao Qi <yao@codesourcery.com>
2668
2669 * varobj.c (struct varobj_item): New structure.
2670 (create_child_with_value): Update declaration.
2671 (varobj_add_child): Replace arguments 'name' and 'value' with
2672 'item'. All callers updated.
2673 (install_dynamic_child): Likewise.
2674 (update_dynamic_varobj_children): Likewise.
2675 (varobj_add_child): Likewise.
2676 (create_child_with_value): Likewise.
2677
2678 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2679
2680 * NEWS: Create a new section for the next release branch.
2681 Rename the section of the current branch, now that it has
2682 been cut.
2683
2684 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2685
2686 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2687 * version.in: Bump version to 7.8.50.DATE-cvs.
2688
2689 2014-06-11 Pedro Alves <palves@redhat.com>
2690
2691 PR remote/17028
2692 * ser-mingw.c (net_windows_socket_check_pending): New function.
2693 (net_windows_select_thread): Ignore spurious wakeups. Use
2694 net_windows_socket_check_pending.
2695 (net_windows_wait_handle): Check for pending events with
2696 ioctlsocket, through net_windows_socket_check_pending, instead of
2697 checking the socket's event.
2698
2699 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2700
2701 * python/python-internal.h (gdb_PyObject_GetAttrString)
2702 (gdb_PyObject_HasAttrString): New inline function definitions.
2703 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2704 char * of the second argument to PyObject_GetAttrString.
2705
2706 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2707
2708 * serial.c (serial_write): Fix index of character to be printed
2709 in call to serial_logchar when serial debug traces are enabled.
2710
2711 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2712
2713 * gdbtypes (resolve_dynamic_range): Add function description.
2714
2715 2014-06-09 Pedro Alves <palves@redhat.com>
2716
2717 * linux-nat.c (linux_child_follow_fork): Initialize status with
2718 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2719 inner block. Only pass the signal to PTRACE_DETACH if in pass
2720 state.
2721
2722 2014-06-09 Gary Benson <gbenson@redhat.com>
2723
2724 * common/signals.c (gdb_signal_from_host): Reorder to separate
2725 the always-available ANSI-standard signals from the signals that
2726 require checking.
2727 (do_gdb_signal_to_host): Likewise.
2728 * proc-events.c (signal_table): Likewise.
2729
2730 2014-06-08 Hui Zhu <hui@codesourcery.com>
2731
2732 * common/linux-ptrace.c (linux_disable_event_reporting): New
2733 function.
2734 * common/linux-ptrace.h (linux_disable_event_reporting): New
2735 declaration.
2736 * linux-nat.c (linux_child_follow_fork): Do a single step before
2737 detach.
2738
2739 2014-06-07 Keith Seitz <keiths@redhat.com>
2740
2741 Revert:
2742 PR c++/16253
2743 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2744 from symbol_matches_domain in symtab.c. All local callers
2745 of symbol_matches_domain updated.
2746 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2747 search STRUCT_DOMAIN.
2748 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2749 independently. standard_lookup will do that automatically.
2750 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2751 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2752 (cp_lookup_symbol_in_namespace): Likewise.
2753 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2754 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2755 may return a STRUCT_DOMAIN match.
2756 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2757 * cp-support.c: Include language.h.
2758 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2759 VAR_DOMAIN.
2760 * psymtab.c (match_partial_symbol): Compare the requested
2761 domain with the symbol's domain directly.
2762 (lookup_partial_symbol): Likewise.
2763 * symtab.c (lookup_symbol_in_language): Explain when/why
2764 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2765 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2766 appropriate languages.
2767 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2768 and moved to ada-lang.c
2769 (lookup_block_symbol): Explain that this function only returns
2770 symbol matching the requested DOMAIN.
2771 Compare the requested domain with the symbol's domain directly.
2772 (iterate_over_symbols): Compare the requested domain with the
2773 symbol's domain directly.
2774 * symtab.h (symbol_matches_domain): Remove.
2775
2776 2014-06-06 Doug Evans <xdje42@gmail.com>
2777
2778 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2779 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2780 (gdbscm_guile_version_is_at_least): Declare.
2781 (gdbscm_scm_string_to_int): Declare.
2782 * guile/guile.c (gdbscm_guile_major_version): New global.
2783 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2784 (guile_datadir): New static global.
2785 (gdbscm_guile_data_directory): New function.
2786 (initialize_scheme_side): Update.
2787 (misc_guile_functions): Add guile-data-directory.
2788 (initialize_gdb_module): Fetch guile version number.
2789 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2790 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2791 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2792 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2793 comments.
2794 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2795 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2796 * guile/scm-value.c (gdbscm_value_to_string): Only call
2797 scm_port_conversion_strategy if Guile version >= 2.0.6.
2798
2799 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2800
2801 * main.c (print_gdb_help): Add -q and --silent.
2802
2803 2014-06-06 Gary Benson <gbenson@redhat.com>
2804
2805 * common/signals.c: Remove preprocessor conditionals for
2806 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2807 SIGSEGV and SIGTERM.
2808 * proc-events.c: Likewise.
2809
2810 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2811
2812 * symfile.c (symfile_free_objfile): Remove restriction to
2813 OBJF_USERLOADED.
2814 * symfile-mem.c (symbol_file_add_from_memory): Call
2815 add_target_sections_of_objfile.
2816
2817 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2818
2819 * guile/scm-value.c (gdbscm_history_append_x): Use
2820 'vlscm_get_value_smob_arg_unsafe' instead of
2821 'vlscm_scm_to_value'.
2822
2823 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2824
2825 PR mi/15806
2826 * utils.c (printchar): Don't escape at all if quoter is NUL.
2827 Update function documentation to clarify effect of parameter
2828 QUOTER.
2829 * remote.c (escape_buffer): Pass '\\' as the quoter to
2830 fputstrn_unfiltered.
2831 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2832 generate the output.
2833 (mi_solib_unloaded): Same.
2834
2835 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2836
2837 * development.sh: Delete.
2838 * Makefile.in (config.status): Adjust dependency on development.sh.
2839 * configure.ac: Adjust development.sh source call.
2840 * configure: Regenerate.
2841
2842 2014-06-04 Doug Evans <xdje42@gmail.com>
2843
2844 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2845 is_scheme_bkpt, spec.
2846 (bpscm_make_breakpoint_smob): Initialize new members.
2847 (gdbscm_create_breakpoint_x): Split into two ...
2848 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2849 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2850 (scheme_function breakpoint_functions): Update.
2851 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2852 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2853 register-breakpoint!.
2854
2855 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2856
2857 PR server/17023
2858 * mem-break.c (z_type_supported): Return zero if
2859 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2860
2861 2014-06-04 Tom Tromey <tromey@redhat.com>
2862
2863 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2864 value_from_contents_and_address_unresolved.
2865 (ada_template_to_fixed_record_type_1): Likewise.
2866 (ada_which_variant_applies): Likewise.
2867 * value.h (value_from_contents_and_address_unresolved): Declare.
2868 * value.c (value_from_contents_and_address_unresolved): New
2869 function.
2870 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2871 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2872 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2873
2874 2014-06-04 Tom Tromey <tromey@redhat.com>
2875
2876 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2877
2878 2014-06-04 Tom Tromey <tromey@redhat.com>
2879
2880 * procfs.c (procfs_attach): Make "args" const.
2881 * windows-nat.c (windows_attach): Make "args" const.
2882 * nto-procfs.c (procfs_attach): Make "args" const.
2883 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2884 * go32-nat.c (go32_attach): Make "args" const.
2885 * gnu-nat.c (gnu_attach): Make "args" const.
2886 * darwin-nat.c (darwin_attach): Make "args" const.
2887 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2888 * linux-nat.c (linux_nat_attach): Make "args" const.
2889 * remote.c (extended_remote_attach_1, extended_remote_attach):
2890 Make "args" const.
2891 * target.h (struct target_ops) <to_attach>: Make "args" const.
2892 (find_default_attach): Likewise.
2893 * utils.c (parse_pid_to_attach): Make "args" const.
2894 * utils.h (parse_pid_to_attach): Update.
2895
2896 2014-06-04 Tom Tromey <tromey@redhat.com>
2897
2898 * target-delegates.c: Rebuild.
2899 * target.c (default_thread_address_space): New function.
2900 (target_thread_address_space): Simplify.
2901 * target.h (struct target_ops) <to_thread_address_space>: Add
2902 TARGET_DEFAULT_FUNC.
2903
2904 2014-06-04 Doug Evans <xdje42@gmail.com>
2905
2906 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2907
2908 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2909
2910 * record-btrace.c: Include event-loop.h and inf-loop.h.
2911 (record_btrace_resume_exec_dir)
2912 (record_btrace_async_inferior_event_handler)
2913 (record_btrace_handle_async_inferior_event): New.
2914 (record_btrace_open): Create async event handler.
2915 (record_btrace_close): Delete async event handler.
2916 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2917 Mark async event handler.
2918 (record_btrace_execution_direction): New.
2919 (init_record_btrace_ops): Initialize to_execution_direction.
2920
2921 2014-06-03 Doug Evans <xdje42@gmail.com>
2922
2923 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2924 (gdbscm_make_parameter): Ditto.
2925
2926 2014-06-03 Doug Evans <dje@google.com>
2927
2928 * exec.c (exec_close_1): Call clear_section_table instead of
2929 resize_section_table.
2930 (clear_section_table): New function.
2931 (resize_section_table): Make static. Rename arg num_added to
2932 adjustment.
2933 * exec.h (clear_section_table): Declare.
2934 (resize_section_table): Delete.
2935 * progspace.c (release_program_space): Call clear_section_table
2936 instead of resize_section_table.
2937
2938 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2939
2940 * NEWS (Python Scripting): Add entry about the new xmethods
2941 feature.
2942
2943 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2944
2945 * python/py-xmethods.c: New file.
2946 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2947 (objfpy_dealloc): XDECREF on the new xmethods field.
2948 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2949 field.
2950 (objfpy_get_xmethods): New function.
2951 (objfile_getset): New entry 'xmethods'.
2952 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2953 (pspy_dealloc): XDECREF on the new xmethods field.
2954 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2955 field.
2956 (pspy_get_xmethods): New function.
2957 (pspace_getset): New entry 'xmethods'.
2958 * python/python-internal.h: Add declarations for new functions.
2959 * python/python.c (_initialize_python): Invoke
2960 gdbpy_initialize_xmethods.
2961 * python/lib/gdb/__init__.py (xmethods): New
2962 attribute.
2963 * python/lib/gdb/xmethod.py: New file.
2964 * python/lib/gdb/command/xmethods.py: New file.
2965
2966 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2967
2968 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2969 best match method returned by find_overload_match is an xmethod.
2970 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2971 the best matching operator returned by find_overload_match is an
2972 xmethod.
2973 * valops.c: #include "extension.h".
2974 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2975 Return void. The list of matching source methods is returned in
2976 "fn_list" and a vector of matching debug method workers is
2977 returned in "xm_worker_vec". Update all callers.
2978 (value_find_oload_method_list): Likewise.
2979 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2980 non-NULL, then the index of the best matching method in this
2981 vector is returned. Update all callers.
2982 (find_overload_match): Include xmethods while performing overload
2983 resolution.
2984
2985 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2986
2987 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2988 * extension-priv.h (struct extension_language_ops): Add the
2989 xmethod interface.
2990 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2991 get_matching_xmethod_workers, get_xmethod_argtypes,
2992 invoke_xmethod, free_xmethod_worker,
2993 free_xmethod_worker_vec): New functions.
2994 * extension.h: #include "common/vec.h".
2995 New function declarations.
2996 (struct xmethod_worker): New struct.
2997 (VEC (xmethod_worker_ptr)): New vector type.
2998 (xmethod_worker_ptr): New typedef.
2999 (xmethod_worker_vec): Likewise.
3000 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3001 builtin_type.
3002 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3003 (struct builtin_type): New field "xmethod".
3004 * valarith.c (value_ptradd): Assert that the value argument is not
3005 lval_xcallable.
3006 * valops.c (value_must_coerce_to_target): Return 0 for
3007 lval_xcallable values.
3008 * value.c (struct value): New field XM_WORKER in the field
3009 LOCATION.
3010 (value_address, value_raw_address): Return 0 for lval_xcallable
3011 values.
3012 (set_value_address): Assert that the value is not an
3013 lval_xcallable.
3014 (value_free): Free the associated xmethod worker when freeing
3015 lval_xcallable values.
3016 (set_value_component_location): Assert that the WHOLE value is not
3017 lval_xcallable.
3018 (value_of_xmethod, call_xmethod): New functions.
3019 * value.h: Declare "struct xmethod_worker".
3020 Declare new functions value_of_xmethod, call_xmethod.
3021
3022 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3023 Pedro Alves <palves@redhat.com>
3024
3025 PR breakpoints/17000
3026 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3027 New function, extracted from software_breakpoint_inserted_here_p.
3028 (software_breakpoint_inserted_here_p): Replace factored out code
3029 by call to find_non_raw_software_breakpoint_inserted_here.
3030 (bp_target_info_copy_insertion_state): New function.
3031 (bkpt_insert_location): Handle the case of a single-step
3032 breakpoint already inserted at the same address.
3033 (bkpt_remove_location): Handle the case of a single-step
3034 breakpoint still inserted at the same address.
3035 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3036 breakpoint already inserted at the same address.
3037 (deprecated_remove_raw_breakpoint): Handle the case of a
3038 non-raw breakpoint still inserted at the same address.
3039 (find_single_step_breakpoint): New function, extracted from
3040 single_step_breakpoint_inserted_here_p.
3041 (find_single_step_breakpoint): New function,
3042 factored out from single_step_breakpoint_inserted_here_p.
3043 (single_step_breakpoint_inserted_here_p): Reimplement.
3044
3045 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3046
3047 Pushed by Joel Brobecker <brobecker@adacore.com>
3048 * source.c (show_substitute_path_command): Fix display of matching
3049 substitution rules.
3050
3051 2014-06-03 Gary Benson <gbenson@redhat.com>
3052
3053 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3054
3055 2014-06-02 Doug Evans <xdje42@gmail.com>
3056
3057 Add parameter support for Guile.
3058 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3059 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3060 (scm-param.o): New rule.
3061 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3062 (gdbscm_misc_error): Declare.
3063 (gdbscm_canonicalize_command_name): Declare.
3064 (gdbscm_scm_to_host_string): Declare.
3065 (gdbscm_scm_from_host_string): Declare.
3066 (gdbscm_initialize_parameters): Declare.
3067 * guile/guile.c (initialize_gdb_module): Call
3068 gdbscm_initialize_parameters.
3069 * guile/lib/gdb.scm: Export parameter symbols.
3070 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3071 cmdscm_canonicalize_name and made public. All callers updated.
3072 * guile/scm-exception.c (gdbscm_misc_error): New function.
3073 * guile/scm-param.c: New file.
3074 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3075 (gdbscm_scm_to_host_string): New function.
3076 (gdbscm_scm_from_host_string): New function.
3077 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3078
3079 2014-06-02 Doug Evans <xdje42@gmail.com>
3080
3081 Add command support for Guile.
3082 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3083 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3084 (scm-cmd.o): New rule.
3085 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3086 (gdbscm_user_error_p): Declare.
3087 (gdbscm_parse_command_name): Declare.
3088 (gdbscm_valid_command_class_p): Declare.
3089 (gdbscm_initialize_commands): Declare.
3090 * guile/guile.c (initialize_gdb_module): Call
3091 gdbscm_initialize_commands.
3092 * guile/lib/gdb.scm: Export command symbols.
3093 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3094 (throw-user-error): New function.
3095 * guile/scm-cmd.c: New file.
3096 * guile/scm-exception.c (user_error_symbol): New static global.
3097 (gdbscm_user_error_p): New function.
3098 (gdbscm_initialize_exceptions): Set user_error_symbol.
3099 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3100
3101 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3102
3103 * top.c (command_loop): Handle comments here...
3104 (command_line_input): ... not here.
3105
3106 2014-06-02 Doug Evans <xdje42@gmail.com>
3107
3108 Add progspace support for Guile.
3109 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3110 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3111 (scm-progspace.o): New rule.
3112 * guile/guile-internal.h (pspace_smob): New typedef.
3113 (psscm_pspace_smob_pretty_printers): Declare.
3114 (psscm_pspace_smob_from_pspace): Declare.
3115 (psscm_scm_from_pspace): Declare.
3116 * guile/guile.c (initialize_gdb_module): Call
3117 gdbscm_initialize_pspaces.
3118 * guile/lib/gdb.scm: Export progspace symbols.
3119 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3120 support.
3121 (append-pretty-printer!): Ditto.
3122 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3123 Implement.
3124 * guile/scm-progspace.c: New file.
3125
3126 2014-06-03 Alan Modra <amodra@gmail.com>
3127
3128 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3129 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3130
3131 2014-06-02 Doug Evans <dje@google.com>
3132
3133 Add support for skeletonless type units.
3134 * dwarf2read.c (struct dwarf2_per_objfile): New member
3135 n_allocated_type_units.
3136 (struct dwarf2_per_objfile) <tu_stats>: New member
3137 nr_all_type_units_reallocs.
3138 (create_signatured_type_table_from_index): Initialize
3139 n_allocated_type_units
3140 (create_all_type_units): Ditto.
3141 (add_type_unit): Move up in file. New arg slot.
3142 All callers updated. Increase space for all_type_units more
3143 efficiently.
3144 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3145 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3146 (lookup_dwp_signatured_type): Ditto.
3147 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3148 All callers updated.
3149 (build_type_psymtabs_1): Leave type_unit_groups as
3150 NULL if no TUs present.
3151 (print_tu_stats): New function.
3152 (process_skeletonless_type_unit): New function.
3153 (process_dwo_file_for_skeletonless_type_units): New
3154 function.
3155 (process_skeletonless_type_units): New function.
3156 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3157 Call print tu_stats if debugging enabled.
3158
3159 2014-06-02 Pedro Alves <palves@redhat.com>
3160
3161 * breakpoint.c (build_target_command_list): Don't build a command
3162 list if we have any duplicate location that isn't a dprintf.
3163
3164 2014-06-02 Pedro Alves <palves@redhat.com>
3165
3166 * breakpoint.c (dprintf_breakpoint_hit): New function.
3167 (initialize_breakpoint_ops): Install it as dprintf's
3168 breakpoint_hit method.
3169
3170 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3171
3172 * source.c (substitute_path_rule_matches): Simplify using
3173 filename_ncmp instead of FILENAME_CMP.
3174
3175 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3176
3177 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3178
3179 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3180
3181 * configure.ac: When Guile is available, check for the
3182 availability of 'scm_new_smob'.
3183 * configure, config.h.in: Regenerate.
3184 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3185 function.
3186
3187 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3188
3189 * frame.c (struct frame_info): Add stop_string field.
3190 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3191 (get_prev_frame_always): Old content moved into
3192 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3193 TRY_CATCH, handle MEMORY_ERROR exceptions.
3194 (frame_stop_reason_string): New function definition.
3195 * frame.h (unwind_stop_reason_to_string): Extend comment to
3196 mention frame_stop_reason_string.
3197 (frame_stop_reason_string): New function declaration.
3198 * stack.c (frame_info): Switch to frame_stop_reason_string.
3199 (backtrace_command_1): Switch to frame_stop_reason_string.
3200 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3201 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3202 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3203
3204 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3205
3206 * frame.c (frame_stop_reason_string): Rename to ...
3207 (unwind_stop_reason_to_string): this.
3208 * frame.h (frame_stop_reason_string): Rename to ...
3209 (unwind_stop_reason_to_string): this.
3210 * stack.c (frame_info): Update call to frame_stop_reason_string.
3211 (backtrace_command_1): Likewise.
3212 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3213 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3214
3215 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3216
3217 * frame.c (remove_prev_frame): New function.
3218 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3219 remove_prev_frame.
3220
3221 2014-05-29 Pedro Alves <palves@redhat.com>
3222
3223 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3224 and make it const. When a single-step decays to a continue,
3225 clear 'step', not 'hw_step'. Pass whether the caller wanted
3226 to step to user_visible_resume_ptid, not what we ask the
3227 target to do.
3228
3229 2014-05-29 Pedro Alves <palves@redhat.com>
3230
3231 * infrun.c (process_event_stop_test, handle_step_into_function)
3232 (handle_step_into_function_backward): Adjust.
3233 Don't set the even thread's stop_step and call stop_waiting before
3234 calling end_stepping_range. Instead do that ...
3235 (end_stepping_range): ... here. Take an ecs pointer parameter.
3236
3237 2014-05-29 Pedro Alves <palves@redhat.com>
3238
3239 * infrun.c (stop_stepping): Rename to ...
3240 (stop_waiting): ... this.
3241 (proceed): Update comment.
3242 (process_event_stop_test, handle_inferior_event)
3243 (handle_signal_stop, handle_step_into_function)
3244 (handle_step_into_function_backward): Update.
3245
3246 2014-05-29 Pedro Alves <palves@redhat.com>
3247
3248 * infcall.c (run_inferior_call): Don't check whether the current
3249 thread is running after the proceed call.
3250
3251 2014-05-29 Pedro Alves <palves@redhat.com>
3252 Tom Tromey <tromey@redhat.com>
3253
3254 * NEWS: Mention "maint set target-async", "set mi-async", and that
3255 background execution commands are now always available.
3256 * target.h (target_async_permitted): Update comment.
3257 * target.c (target_async_permitted, target_async_permitted_1):
3258 Default to 1.
3259 (set_target_async_command): Rename to ...
3260 (maint_set_target_async_command): ... this.
3261 (show_target_async_command): Rename to ...
3262 (maint_show_target_async_command): ... this.
3263 (_initialize_target): Adjust.
3264 * infcmd.c (prepare_execution_command): Make extern.
3265 * inferior.h (prepare_execution_command): Declare.
3266 * infrun.c (set_observer_mode): Leave target async alone.
3267 * mi/mi-interp.c (mi_interpreter_init): Install
3268 mi_on_sync_execution_done as sync_execution_done observer.
3269 (mi_on_sync_execution_done): New function.
3270 (mi_execute_command_input_handler): Don't print the prompt if we
3271 just started a synchronous command with an async target.
3272 (mi_on_resume): Check sync_execution before printing prompt.
3273 * mi/mi-main.h (mi_async_p): Declare.
3274 * mi/mi-main.c: Include gdbcmd.h.
3275 (mi_async_p): New function.
3276 (mi_async, mi_async_1): New globals.
3277 (set_mi_async_command, show_mi_async_command, mi_async): New
3278 functions.
3279 (exec_continue): Call prepare_execution_command.
3280 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3281 (mi_execute_async_cli_command): Use mi_async_p.
3282 (_initialize_mi_main): Install "set mi-async". Make
3283 "target-async" a deprecated alias.
3284
3285 2014-05-29 Pedro Alves <palves@redhat.com>
3286
3287 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3288 (_initialize_cli_interp): Adjust.
3289 * event-loop.c: Include "observer.h".
3290 (start_event_loop): Notify 'command_error' observers instead of
3291 calling display_gdb_prompt. Remove FIXME comment.
3292 * event-top.c (display_gdb_prompt): Remove call into the
3293 interpreters.
3294 * inf-loop.c: Include "observer.h".
3295 (inferior_event_handler): Notify 'command_error' observers instead
3296 of calling display_gdb_prompt.
3297 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3298 observers instead of calling display_gdb_prompt.
3299 * interps.c (interp_set): Don't call display_gdb_prompt.
3300 (current_interp_display_prompt_p): Delete.
3301 * interps.h (interp_prompt_p): Delete declaration.
3302 (interp_prompt_p_ftype): Delete.
3303 (struct interp_procs) <prompt_proc_p>: Delete field.
3304 (current_interp_display_prompt_p): Delete declaration.
3305 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3306 (_initialize_mi_interp): Adjust.
3307 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3308 'command_error' observers.
3309 (tui_on_sync_execution_done, tui_on_command_error): New
3310 functions.
3311 (tui_display_prompt_p): Delete.
3312 (_initialize_tui_interp): Adjust.
3313
3314 2014-05-29 Pedro Alves <palves@redhat.com>
3315
3316 PR gdb/13860
3317 * cli/cli-interp.c: Include infrun.h and observer.h.
3318 (cli_uiout, cli_interp): New globals.
3319 (cli_on_signal_received, cli_on_end_stepping_range)
3320 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3321 functions.
3322 (cli_interpreter_init): Install them as 'end_stepping_range',
3323 'signal_received' 'signal_exited', 'exited' and 'no_history'
3324 observers.
3325 (_initialize_cli_interp): Remove cli_interp local.
3326 * infrun.c (handle_inferior_event): Call the several stop reason
3327 observers instead of printing the stop reason directly.
3328 (end_stepping_range): New function.
3329 (print_end_stepping_range_reason, print_signal_exited_reason)
3330 (print_exited_reason, print_signal_received_reason)
3331 (print_no_history_reason): Make static, and add an uiout
3332 parameter. Print to that instead of to CURRENT_UIOUT.
3333 * infrun.h (print_end_stepping_range_reason)
3334 (print_signal_exited_reason, print_exited_reason)
3335 (print_signal_received_reason print_no_history_reason): New
3336 declarations.
3337 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3338 'mi_uiout'.
3339 <cli_uiout>: New field.
3340 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3341 uiout for CLI output. Install 'signal_received',
3342 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3343 observers.
3344 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3345 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3346 (mi_on_no_history): New functions.
3347 (ui_out_free_cleanup): Delete function.
3348 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3349 instead use the one already stored in the MI interpreter data.
3350 (mi_ui_out): Adjust.
3351 * tui/tui-interp.c: Include infrun.h and observer.h.
3352 (tui_interp): New global.
3353 (tui_on_signal_received, tui_on_end_stepping_range)
3354 (tui_on_signal_exited, tui_on_exited)
3355 (tui_on_no_history): New functions.
3356 (tui_init): Install them as 'end_stepping_range',
3357 'signal_received' 'signal_exited', 'exited' and 'no_history'
3358 observers.
3359 (_initialize_tui_interp): Delete tui_interp local.
3360
3361 2014-05-29 Pedro Alves <palves@redhat.com>
3362
3363 PR gdb/15713
3364 * linux-nat.c (linux_nat_resume_callback): Rename the second
3365 parameter to 'except'. Skip LP if it points to EXCEPT.
3366 (linux_nat_resume): Don't mark the event lwp as not stopped
3367 before resuming sibling lwps. Instead ask
3368 linux_nat_resume_callback to skip the event lwp. Mark it as not
3369 stopped after actually resuming it.
3370 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3371 resuming it.
3372 (wait_lwp): Mark the lwp as stopped here.
3373 (stop_wait_callback): Mark the lwp as not stopped right after
3374 resuming it. Don't mark lwps as stopped here.
3375 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3376 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3377
3378 2014-05-29 Pedro Alves <palves@redhat.com>
3379
3380 PR PR15693
3381 * infrun.c (resume): Determine how much to resume depending on
3382 whether the caller wanted a step, not whether we can hardware step
3383 the target. Mark all threads that we intend to run as running,
3384 unless we're calling an inferior function.
3385 (normal_stop): If the thread is running an infcall, don't finish
3386 thread state.
3387 * target.c (target_resume): Don't mark threads as running here.
3388
3389 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3390
3391 * serial.c (_initialize_serial): Remove support for
3392 the "set remotebaud" and "show remotebaud" commands.
3393 * NEWS: Add entry documenting the removal of that command.
3394
3395 2014-05-28 Yao Qi <yao@codesourcery.com>
3396
3397 * charset.c: Fix typo in comments.
3398
3399 2014-05-27 Gary Benson <gbenson@redhat.com>
3400
3401 * utils.c (internal_vproblem): Prompt for a bug report.
3402
3403 2014-05-26 Andy Wingo <wingo@igalia.com>
3404
3405 * guile/scm-arch.c (arscm_mark_arch_smob):
3406 * guile/scm-block.c (bkscm_mark_block_smob)
3407 (bkscm_mark_block_syms_progress_smob):
3408 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3409 * guile/scm-exception.c (exscm_mark_exception_smob):
3410 * guile/scm-frame.c (frscm_mark_frame_smob):
3411 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3412 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3413 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3414 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3415 (ppscm_mark_pretty_printer_worker_smob):
3416 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3417 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3418 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3419 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3420 mark functions.
3421 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3422 function.
3423
3424 2014-05-26 Andy Wingo <wingo@igalia.com>
3425 Doug Evans <xdje42@gmail.com>
3426
3427 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3428 empty_base_class. All uses updated.
3429 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3430 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3431 Adapt all callers.
3432 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3433 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3434 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3435 (gdbscm_gsmob_has_property_p, add_property_name)
3436 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3437 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3438 (gdb-object-has-property?, gdb-object-properties): Remove.
3439 (gdb-object-kind): Renamed from gsmob-kind.
3440
3441 2014-05-26 Andy Wingo <wingo@igalia.com>
3442
3443 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3444 * configure: Regenerate.
3445
3446 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3447
3448 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3449
3450 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3451
3452 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3453 (replay_memory_access_read_only, replay_memory_access_read_write)
3454 (replay_memory_access_types, replay_memory_access)
3455 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3456 (cmd_set_record_btrace, cmd_show_record_btrace)
3457 (cmd_show_replay_memory_access): New.
3458 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3459 (record_btrace_remove_breakpoint): Replace
3460 record_btrace_allow_memory_access with replay_memory_access.
3461 (_initialize_record_btrace): Add commands.
3462 * NEWS: Announce it.
3463
3464 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3465
3466 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3467
3468 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3469
3470 * MAINTAINERS (Write After Approval): Move self back from
3471 paper trail.
3472
3473 2014-05-22 Pedro Alves <palves@redhat.com>
3474
3475 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3476 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3477 (disable_randomization, enum exec_direction_kind)
3478 (execution_direction, stop_registers, start_remote)
3479 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3480 (wait_for_inferior, normal_stop, get_last_target_status)
3481 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3482 (insert_step_resume_breakpoint_at_sal)
3483 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3484 (set_step_info, print_stop_event, signal_stop_state)
3485 (signal_print_state, signal_pass_state, signal_stop_update)
3486 (signal_print_update, signal_pass_update)
3487 (update_signals_program_target, clear_exit_convenience_vars)
3488 (displaced_step_dump_bytes, update_observer_mode)
3489 (signal_catch_update, gdb_signal_from_command): Move
3490 declarations ...
3491 * infrun.h: ... to this new file.
3492 * amd64-tdep.c: Include infrun.h.
3493 * annotate.c: Include infrun.h.
3494 * arch-utils.c: Include infrun.h.
3495 * arm-linux-tdep.c: Include infrun.h.
3496 * arm-tdep.c: Include infrun.h.
3497 * break-catch-sig.c: Include infrun.h.
3498 * breakpoint.c: Include infrun.h.
3499 * common/agent.c: Include infrun.h instead of inferior.h.
3500 * corelow.c: Include infrun.h.
3501 * event-top.c: Include infrun.h.
3502 * go32-nat.c: Include infrun.h.
3503 * i386-tdep.c: Include infrun.h.
3504 * inf-loop.c: Include infrun.h.
3505 * infcall.c: Include infrun.h.
3506 * infcmd.c: Include infrun.h.
3507 * infrun.c: Include infrun.h.
3508 * linux-fork.c: Include infrun.h.
3509 * linux-nat.c: Include infrun.h.
3510 * linux-thread-db.c: Include infrun.h.
3511 * monitor.c: Include infrun.h.
3512 * nto-tdep.c: Include infrun.h.
3513 * procfs.c: Include infrun.h.
3514 * record-btrace.c: Include infrun.h.
3515 * record-full.c: Include infrun.h.
3516 * remote-m32r-sdi.c: Include infrun.h.
3517 * remote-mips.c: Include infrun.h.
3518 * remote-notif.c: Include infrun.h.
3519 * remote-sim.c: Include infrun.h.
3520 * remote.c: Include infrun.h.
3521 * reverse.c: Include infrun.h.
3522 * rs6000-tdep.c: Include infrun.h.
3523 * s390-linux-tdep.c: Include infrun.h.
3524 * solib-irix.c: Include infrun.h.
3525 * solib-osf.c: Include infrun.h.
3526 * solib-svr4.c: Include infrun.h.
3527 * target.c: Include infrun.h.
3528 * top.c: Include infrun.h.
3529 * windows-nat.c: Include infrun.h.
3530 * mi/mi-interp.c: Include infrun.h.
3531 * mi/mi-main.c: Include infrun.h.
3532 * python/py-threadevent.c: Include infrun.h.
3533
3534 2014-05-22 Pedro Alves <palves@redhat.com>
3535
3536 * infrun.c (handle_inferior_event): Store the exit code for
3537 --return-child-result here, instead of ...
3538 (print_exited_reason): ... here.
3539
3540 2014-05-21 Pedro Alves <palves@redhat.com>
3541
3542 PR gdb/13860
3543 * gdbthread.h (struct thread_control_state): New field
3544 `command_interp'.
3545 * infrun.c (follow_fork): Copy the new thread control field to the
3546 child fork thread.
3547 (clear_proceed_status_thread): Clear the new thread control field.
3548 (proceed): Set the new thread control field.
3549 * interps.h (command_interp): Declare.
3550 * interps.c (command_interpreter): New global.
3551 (command_interp): New function.
3552 (interp_exec): Set `command_interpreter' while here.
3553 * cli-out.c (cli_uiout_dtor): New function.
3554 (cli_ui_out_impl): Install it.
3555 * mi/mi-interp.c: Include cli-out.h.
3556 (mi_cmd_interpreter_exec): Add comment.
3557 (restore_current_uiout_cleanup): New function.
3558 (ui_out_free_cleanup): New function.
3559 (mi_on_normal_stop): If finishing an execution command started by
3560 a CLI command, or any kind of breakpoint-like event triggered,
3561 print the stop event to the output (CLI) stream.
3562 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3563
3564 2014-05-21 Pedro Alves <palves@redhat.com>
3565
3566 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3567 current source line having changed.
3568 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3569 * infrun.c (normal_stop): Adjust call to
3570 set_current_sal_from_frame.
3571 * source.c (clear_lines_listed_range): New function.
3572 (set_current_source_symtab_and_line, identify_source_line): Clear
3573 the lines listed range.
3574 (line_info): Handle the first "info line" after the current source
3575 line having changed.
3576 * stack.c (print_stack_frame): Remove center handling.
3577 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3578 center sal.line.
3579
3580 2014-05-21 Pedro Alves <palves@redhat.com>
3581
3582 * inf-child.c (inf_child_mourn_inferior): New function.
3583 * inf-child.h (inf_child_mourn_inferior): New declaration.
3584 * darwin-nat.c (darwin_mourn_inferior): Use
3585 inf_child_mourn_inferior.
3586 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3587 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3588 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3589 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3590 * windows-nat.c (windows_mourn_inferior): Likewise.
3591
3592 2014-05-21 Doug Evans <xdje42@gmail.com>
3593
3594 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3595
3596 2014-05-21 Doug Evans <xdje42@gmail.com>
3597
3598 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3599 (gdbscm_out_of_range_error): Ditto.
3600 (gdbscm_memory_error): Ditto.
3601 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3602 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3603 (gdbscm_out_of_range_error): Update.
3604 (gdbscm_memory_error): Update.
3605 (gdbscm_scm_to_target_string_unsafe): Delete.
3606
3607 2014-05-21 Pedro Alves <palves@redhat.com>
3608
3609 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3610 globals.
3611 (inf_child_open_target): New function.
3612 (inf_child_open): Use inf_child_open_target to push the target
3613 instead of erroring out.
3614 (inf_child_disconnect, inf_child_close)
3615 (inf_child_maybe_unpush_target): New functions.
3616 (inf_child_target): Install inf_child_disconnect and
3617 inf_child_close. Store a pointer to the returned object.
3618 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3619 declarations.
3620 * target.c (auto_connect_native_target): New global.
3621 (show_default_run_target): New function.
3622 (find_default_run_target): Return NULL if automatically connecting
3623 to the native target is disabled.
3624 (_initialize_target): Install set/show auto-connect-native-target.
3625 * NEWS: Mention "set auto-connect-native-target", and "target
3626 native".
3627 * linux-nat.c (super_close): New global.
3628 (linux_nat_close): Call super_close.
3629 (linux_nat_add_target): Store a pointer to the base class's
3630 to_close method.
3631 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3632 inf_child_maybe_unpush.
3633 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3634 already pushed.
3635 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3636 the inferior. Use inf_child_maybe_unpush_target.
3637 (inf_ttrace_attach): Don't push the target if it is already
3638 pushed.
3639 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3640 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3641 after mourning the inferior. Use inf_child_maybe_unpush_target.
3642 (darwin_attach_pid): Don't push the target if it is already
3643 pushed.
3644 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3645 mourning the inferior. Use inf_child_maybe_unpush_target.
3646 (gnu_detach): Use inf_child_maybe_unpush_target.
3647 * go32-nat.c (go32_create_inferior): Don't push the target if it
3648 is already pushed.
3649 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3650 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3651 (procfs_open): Rename to ...
3652 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3653 comments. Can target_preopen before changing node. Call
3654 inf_child_open_target to push the target explicitly.
3655 (procfs_attach): Don't push the target if it is already pushed.
3656 (procfs_detach): Use inf_child_maybe_unpush_target.
3657 (procfs_create_inferior): Don't push the target if it is already
3658 pushed.
3659 (nto_native_ops): New global.
3660 (procfs_open): Reimplement.
3661 (procfs_native_open): New function.
3662 (init_procfs_targets): Install procfs_native_open as to_open of
3663 "target native". Store a pointer to the "native" target in
3664 nto_native_ops.
3665 * procfs.c (procfs_attach): Don't push the target if it is already
3666 pushed.
3667 (procfs_detach): Use inf_child_maybe_unpush_target.
3668 (procfs_mourn_inferior): Only unpush the target after mourning the
3669 inferior. Use inf_child_maybe_unpush_target.
3670 (procfs_init_inferior): Don't push the target if it is already
3671 pushed.
3672 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3673 if it is already pushed.
3674
3675 2014-05-21 Pedro Alves <palves@redhat.com>
3676
3677 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3678 and "procfs" targets are now called "native" instead.
3679
3680 2014-05-21 Pedro Alves <palves@redhat.com>
3681
3682 * go32-nat.c (go32_open): Delete.
3683 (go32_target): Don't override the to_open method.
3684
3685 2014-05-21 Pedro Alves <palves@redhat.com>
3686
3687 * nto-procfs.c (procfs_can_run): New function.
3688 (nto_procfs_ops): New global.
3689 (init_procfs_targets): New, based on procfs_target. Install
3690 "target native" in addition to "target procfs".
3691 (_initialize_procfs): Call init_procfs_targets instead of adding
3692 the target here.
3693
3694 2014-05-21 Pedro Alves <palves@redhat.com>
3695
3696 * windows-nat.c (windows_target): Don't override to_shortname,
3697 to_longname or to_doc.
3698
3699 2014-05-21 Pedro Alves <palves@redhat.com>
3700
3701 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3702 to_doc.
3703
3704 2014-05-21 Pedro Alves <palves@redhat.com>
3705
3706 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3707 to_shortname, to_longname or to_doc.
3708
3709 2014-05-21 Pedro Alves <palves@redhat.com>
3710
3711 * go32-nat.c (go32_target): Don't override to_shortname,
3712 to_longname or to_doc.
3713
3714 2014-05-21 Pedro Alves <palves@redhat.com>
3715
3716 * inf-child.c (inf_child_open): Remove mention of "child".
3717 (inf_child_target): Rename target to "native" instead of "child".
3718
3719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3720
3721 * Makefile.in (SFILES): Delete "regset.c".
3722 (COMMON_OBS): Delete "regset.o".
3723 * regset.c: Remove.
3724 * regset.h (regset_alloc): Delete prototype.
3725
3726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3727
3728 * sparc-linux-tdep.c (sparc32_linux_gregset)
3729 (sparc32_linux_fpregset): New static regset structures.
3730 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3731 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3732 'fpregset' fields.
3733 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3734 (sparc64_linux_fpregset): New static regset structures.
3735 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3736 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3737 New static regset structures.
3738 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3739 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3740 New static regset structures.
3741 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3742 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3743 New static regset structures.
3744 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3745 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3746 New static regset structures.
3747 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3748
3749 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3750
3751 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3752 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3753 register maps ("regmaps") from "*regset" to "*regmap". Do this
3754 for all regmap types and variables.
3755 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3756 (sparc32_linux_supply_core_gregset)
3757 (sparc32_linux_collect_core_gregset)
3758 (sparc32_linux_supply_core_fpregset)
3759 (sparc32_linux_collect_core_fpregset): Likewise.
3760 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3761 (sparc_gregmap, sparc_fpregmap): ... these.
3762 (sparc_supply_gregset, sparc_collect_gregset)
3763 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3764 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3765 (_initialize_sparc_nat): Rename regmaps.
3766 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3767 (sparc_gregmap, sparc_fpregmap): ... these.
3768 (sparc_supply_gregset, sparc_collect_gregset)
3769 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3770 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3771 Rename macros to...
3772 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3773 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3774 Likewise.
3775 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3776 Rename to...
3777 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3778 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3779 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3780 regmaps.
3781 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3782 (sparc32_bsd_fpregset): Rename to...
3783 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3784 (sparc32_bsd_fpregmap): ... these.
3785 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3786 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3787 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3788 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3789 (struct sparc_gregmap, struct sparc_fpregmap)
3790 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3791 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3792 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3793 (sparc32_supply_regset, sparc32_collect_gregset)
3794 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3795 prototypes.
3796 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3797 (sparc64_linux_ptrace_gregmap): ... this.
3798 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3799 (_initialize_sparc64_linux_nat): Rename regmaps.
3800 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3801 (sparc64_linux_core_gregmap): ... this.
3802 (sparc64_linux_supply_core_gregset)
3803 (sparc64_linux_collect_core_gregset)
3804 (sparc64_linux_supply_core_fpregset)
3805 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3806 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3807 (sparc64_sol2_fpregset): Rename to...
3808 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3809 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3810 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3811 regmaps.
3812 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3813 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3814 (sparc64_bsd_fpregset): Rename to...
3815 (struct sparc_gregmap, sparc64_sol2_gregmap)
3816 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3817 (sparc64_bsd_fpregmap): ... these.
3818 (sparc64_supply_gregset, sparc64_collect_gregset)
3819 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3820 prototypes.
3821 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3822 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3823 (sparc64fbsd_gregmap): ... this.
3824 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3825 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3826 Rename regmaps.
3827 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3828 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3829 (sparc64nbsd_collect_fpregset): Likewise.
3830 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3831 (sparc64nbsd_gregmap): ... this.
3832 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3833 regmaps.
3834 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3835 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3836 (sparc64obsd_gregmap): ... this.
3837 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3838 regmaps.
3839 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3840 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3841 (sparc32nbsd_gregmap): ... this.
3842 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3843 regmaps.
3844
3845 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3846
3847 * score-tdep.c (score7_linux_gregset): New static regset
3848 structure.
3849 (score7_linux_regset_from_core_section): Remove dynamic regset
3850 allocation.
3851 (score_gdbarch_init): Drop allocation of tdep structure.
3852 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3853
3854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3855
3856 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3857 regset structures.
3858 (am33_regset_from_core_section): Remove dynamic regset
3859 allocations.
3860
3861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3862
3863 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3864 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3865 structures.
3866 (mips_linux_regset_from_core_section): Remove dynamic regset
3867 allocations.
3868 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3869 'gregset64', 'fpregset', and 'fpregset64'.
3870 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3871 deleted tdep fields.
3872
3873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3874
3875 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3876 regset structures.
3877 (amd64_regset_from_core_section): Remove dynamic regset
3878 allocations.
3879 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3880 structure.
3881 (amd64obsd_regset_from_core_section): Remove dynamic regset
3882 allocation.
3883 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3884 Likewise.
3885 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3886 x86-common regset supply function.
3887 * i386-tdep.c (i386_collect_gregset): Make static.
3888 (i386_gregset): New global regset structure.
3889 (i386_fpregset, i386_xstateregset): New static regset structures.
3890 (i386_regset_from_core_section): Remove dynamic regset
3891 allocations.
3892 (i386_gdbarch_init): Remove initialization of tdep fields
3893 'gregset', 'fpregset', and 'xstateregset'.
3894 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3895 'fpregset', and 'xstateregset'.
3896 (i386_collect_gregset): Remove prototype.
3897 (i386_gregset): New declaration.
3898 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3899 structure.
3900 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3901 allocation.
3902
3903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3904
3905 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3906 (arm_linux_vfpregset): New static regset structures.
3907 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3908 regset structures.
3909 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3910 and 'vfpregset' fields.
3911
3912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3913
3914 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3915 (aarch64_linux_fpregset): New static regset structures.
3916 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3917 of regset structures.
3918 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3919 'fpregset' fields.
3920
3921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3922
3923 * regset.h (struct regset): Remove gdbarch field.
3924 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3926 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3927 Likewise.
3928 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3929 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3930 (ppc32_linux_vsxregset): Likewise.
3931 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3932 via the regcache instead of the regset.
3933 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3934 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3935 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3936 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3937 Likewise.
3938
3939 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3940
3941 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3942 Constify structures.
3943 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3944 (alphanbsd_aout_gregset): Likewise.
3945 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3946 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3947 Likewise.
3948 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3949 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3950 Likewise.
3951 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3952 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3953 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3954 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3955 * m88k-tdep.c (m88k_gregset): Likewise.
3956 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3957 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3958 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3959 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3960 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3961 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3962 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3963 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3964 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3965 Likewise.
3966 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3967 * sh-tdep.h (sh_corefile_gregset): Likewise.
3968 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3969 * vax-tdep.c (vax_gregset): Likewise.
3970
3971 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3972
3973 Fix TLS access for -static -pthread.
3974 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3975 (try_thread_db_load_1): Initialize it.
3976 (thread_db_get_thread_local_address): Call it if LM is zero.
3977 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3978 * target.h (struct target_ops) (to_get_thread_local_address): Add
3979 load_module_addr comment.
3980
3981 2014-05-21 Pedro Alves <palves@redhat.com>
3982
3983 * dcache.c (dcache_read_memory_partial): If reading the cache line
3984 fails, fallback to reading just the memory the caller wanted.
3985
3986 2014-05-20 Doug Evans <dje@google.com>
3987
3988 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3989 instead of get_current_arch.
3990
3991 2014-05-20 Pedro Alves <palves@redhat.com>
3992
3993 * NEWS: Mention that compare-sections now works with all targets.
3994
3995 * remote.c (PACKET_qCRC): New enum value.
3996 (remote_verify_memory): Don't send qCRC if the target has no
3997 execution. Use packet_support/packet_ok. If the target doesn't
3998 support the qCRC packet, fallback to a deep memory copy.
3999 (compare_sections_command): Say "target image" instead of "remote
4000 executable".
4001 (_initialize_remote): Add PACKET_qCRC to the list of config
4002 packets that have no associated command. Extend comment.
4003 * target.c (simple_verify_memory, default_verify_memory): New
4004 function.
4005 * target.h (struct target_ops) <to_verify_memory>: Default to
4006 default_verify_memory.
4007 (simple_verify_memory): New declaration.
4008 * target-delegates.c: Regenerate.
4009
4010 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4011
4012 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4013
4014 2014-05-20 Hui Zhu <hui@codesourcery.com>
4015 Yao Qi <yao@codesourcery.com>
4016
4017 PR backtrace/16558
4018 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4019 and change address of sp and pc.
4020
4021 2014-05-19 Tom Tromey <tromey@redhat.com>
4022
4023 * gdbtypes.c (rank_function): Use XNEWVEC.
4024 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4025
4026 2014-05-19 Doug Evans <dje@google.com>
4027
4028 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4029 build_type_unit_groups and moved closer to only caller. Remove
4030 arguments. All references updated. Remove outdated .gdb_index
4031 comment.
4032 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4033 build_type_psymtabs_1.
4034
4035 2014-05-19 Doug Evans <dje@google.com>
4036
4037 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4038 n_type_unit_groups, all_type_unit_groups. All uses removed.
4039 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4040 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4041 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4042 (add_type_unit_group_to_table): Delete.
4043
4044 2014-05-19 Doug Evans <dje@google.com>
4045
4046 * eval.c (evaluate_subexp_standard): Add some comments.
4047
4048 2014-05-17 Doug Evans <xdje42@gmail.com>
4049
4050 * progspace.c (remove_program_space): Delete, unused.
4051 * progspace.h (remove_program_space): Ditto.
4052
4053 2014-05-17 Doug Evans <xdje42@gmail.com>
4054
4055 * inferior.c (prune_inferiors): Fix comment.
4056 (remove_inferior_command): Call prune_program_spaces.
4057
4058 2014-05-16 Doug Evans <dje@google.com>
4059
4060 New command line option -D.
4061 * NEWS: Mention it.
4062 * main.c (set_gdb_data_directory): New function.
4063 (captured_main): Recognize -D. Flag error for --data-directory "".
4064 Call set_gdb_data_directory.
4065 (print_gdb_help): Print --data-directory, -D.
4066 * main.h (set_gdb_data_directory): Declare.
4067 * top.c (staged_gdb_datadir): New static global.
4068 (set_gdb_datadir): Call set_gdb_data_directory
4069 (show_gdb_datadir): New function.
4070 (init_main): Update init of data-directory parameter.
4071
4072 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4073
4074 Import the "dirfd" gnulib module.
4075 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4076 * gnulib/aclocal.m4: Update.
4077 * gnulib/config.in: Update.
4078 * gnulib/configure: Update.
4079 * gnulib/import/Makefile.am: Update.
4080 * gnulib/import/Makefile.in: Update.
4081 * gnulib/import/dirfd.c: New.
4082 * gnulib/import/m4/dirfd.m4: New.
4083 * gnulib/import/m4/gnulib-cache.m4: Update.
4084 * gnulib/import/m4/gnulib-comp.m4: Update.
4085
4086 2014-05-16 Pierre Muller <muller@sourceware.org>
4087 Yao Qi <yao@codesourcery.com>
4088
4089 * valprint.c (print_wchar): Move the code on checking whether
4090 W is a printable wide char to the default branch of switch
4091 statement below. Call wchar_printable instead of gdb_iswprint.
4092
4093 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4094
4095 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4096 ldr.w and ldrd instructions.
4097
4098 2014-05-15 Doug Evans <dje@google.com>
4099
4100 * dwarf2read.c (read_structure_type): Delete outdated comments.
4101
4102 2014-05-14 Tom Tromey <tromey@redhat.com>
4103
4104 * macrocmd.c (print_macro_definition): Reindent.
4105
4106 2014-05-13 Doug Evans <xdje42@gmail.com>
4107
4108 * python/py-cmd.c (cmdpy_completer): Add comment.
4109 (completers): Make const.
4110
4111 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4112
4113 * infrun.c (resume): Remove should_resume (unused). Move up
4114 declaration of resume_ptid.
4115
4116 2014-05-13 Tom Tromey <tromey@redhat.com>
4117
4118 * language.h (unop_type_check): Remove.
4119 (binop_type_check): Don't declare.
4120
4121 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4122
4123 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4124 call to regcache_raw_collect.
4125
4126 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4127
4128 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4129 mi_console->quote as the quoting character.
4130
4131 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4132
4133 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4134
4135 2014-04-29 Tom Tromey <tromey@redhat.com>
4136
4137 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4138 "show debug varobj".
4139
4140 2014-05-07 Kyle McMartin <kyle@redhat.com>
4141
4142 Pushed by Joel Brobecker <brobecker@adacore.com>.
4143 * aarch64-tdep.c (aarch64_software_single_step): New function.
4144 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4145 with aarch64_software_single_step.
4146
4147 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4148
4149 GDB 7.7.1 released.
4150
4151 2014-05-05 Keith Seitz <keiths@redhat.com>
4152
4153 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4154 variable or history value is successfully parsed.
4155
4156 2014-05-05 Yao Qi <yao@codesourcery.com>
4157 Pedro Alves <palves@redhat.com>
4158
4159 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4160 address of blocks that intersects the requested range. Trim
4161 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4162 sections.
4163 * ctf.c (ctf_xfer_partial): Likewise.
4164
4165 2014-05-05 Yao Qi <yao@codesourcery.com>
4166
4167 * printcmd.c (display_command): Remove the check to
4168 target_has_execution.
4169
4170 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4171
4172 * ppcobsd-nat.c: Include "obsd-nat.h".
4173 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4174 add_target.
4175 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4176
4177 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4178
4179 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4180 and 16-bit signed and unsigned arguments. Update comment.
4181 (stap_parse_probe_arguments): Extend code to handle such
4182 arguments. Use warning instead of complaint to notify about
4183 unrecognized bitness.
4184
4185 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4186
4187 PR breakpoints/16889
4188 * stap-probe.c (stap_parse_probe_arguments): Simplify
4189 check for non-prefixed probes (i.e., probes whose
4190 arguments do not start with "N@"). Always set the
4191 argument type to a sane value.
4192
4193 2014-05-01 David Taylor <dtaylor@emc.com>
4194
4195 * remote.c (compare_sections_command): Add -r option to compare
4196 all loadable read-only sections.
4197
4198 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4199
4200 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4201 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4202 Update all callers.
4203 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4204 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4205 Remove unused CORE_ADDR argument. Update all callers.
4206
4207 2014-04-29 Pedro Alves <palves@redhat.com>
4208
4209 * remote.c (struct packet_config) <detect>: Extend comment.
4210 (add_packet_config_cmd): Don't set the config's detect or support
4211 fields here.
4212 (init_all_packet_configs): Also initialize the config's 'detect'
4213 field.
4214 (reset_all_packet_configs_support): New function.
4215 (remote_open_1): Call reset_all_packet_configs_support instead of
4216 init_all_packet_configs.
4217 (_initialize_remote): Initialize all packet configs. Assert that
4218 all packets have an associated command, except a few known
4219 outliers.
4220
4221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4222
4223 * dwarf2read.c (read_subrange_type): Handle dynamic
4224 DW_AT_lower_bound attributes.
4225
4226 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4227
4228 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4229 dynamic bounds before computing its upper bound.
4230 (ada_discrete_type_low_bound): Same as above with the lower bound.
4231
4232 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4233
4234 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4235 range types. Adjust the array handling implementation to
4236 take advantage of this change.
4237 (resolve_dynamic_range): New function, mostly extracted from
4238 resolve_dynamic_bounds.
4239 (resolve_dynamic_array): New function, mostly extracted from
4240 resolve_dynamic_bounds.
4241 (resolve_dynamic_bounds): Delete.
4242 (resolve_dynamic_type): Reimplement. Add handling of
4243 TYPE_CODE_RANGE types.
4244
4245 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4246
4247 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4248 handling of parallel ___XA types.
4249
4250 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4251
4252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4253 unnecessary second call to static_unwrap_type.
4254
4255 2014-04-27 Hui Zhu <hui@codesourcery.com>
4256
4257 * stack.c (print_frame_info): Call do_gdb_disassembly with
4258 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4259
4260 2014-04-26 Doug Evans <xdje42@gmail.com>
4261
4262 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4263
4264 2014-04-25 Pedro Alves <palves@redhat.com>
4265
4266 PR server/16255
4267 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4268 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4269 and newline from built string.
4270 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4271 (linux_ptrace_attach_fail_reason): ... this.
4272 * linux-nat.c (linux_nat_attach): Adjust to use
4273 linux_ptrace_attach_fail_reason.
4274
4275 2014-04-25 Pedro Alves <palves@redhat.com>
4276
4277 * remote.c (struct remote_state): Remove multi_process_aware,
4278 non_stop_aware, cond_tracepoints, cond_breakpoints,
4279 breakpoint_commands, fast_tracepoints, static_tracepoints,
4280 install_in_trace, disconnected_tracing,
4281 enable_disable_tracepoints, string_tracing, and
4282 augmented_libraries_svr4_read fields.
4283 (remote_multi_process_p): Move further below in the file.
4284 (struct packet_config): Add comments.
4285 (update_packet_config): Delete function.
4286 (show_packet_config_cmd): Use packet_config_support.
4287 (add_packet_config_cmd): Use NULL as set callback.
4288 (packet_ok): "set remote foo-packet"-style commands no longer
4289 change config->supported -- adjust.
4290 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4291 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4292 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4293 (PACKET_QNonStop, PACKET_multiprocess_feature)
4294 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4295 (PACKET_DisconnectedTracing_feature)
4296 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4297 (set_remote_protocol_packet_cmd): Delete function.
4298 (packet_config_support, packet_support): New functions.
4299 (set_remote_protocol_Z_packet_cmd): Don't call
4300 update_packet_config.
4301 (remote_query_attached, remote_pass_signals)
4302 (remote_program_signals, remote_threads_info)
4303 (remote_threads_extra_info, remote_start_remote): Use
4304 packet_support.
4305 (remote_start_remote): Use packet_config_support and
4306 packet_support.
4307 (init_all_packet_configs): Set all packets to unknown support,
4308 instead of calling update_packet_config.
4309 (remote_check_symbols): Use packet_support.
4310 (remote_supported_packet): Unconditionally set the packet config's
4311 support status.
4312 (remote_multi_process_feature, remote_non_stop_feature)
4313 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4314 (remote_breakpoint_commands_feature)
4315 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4316 (remote_install_in_trace_feature)
4317 (remote_disconnected_tracing_feature)
4318 (remote_enable_disable_tracepoint_feature)
4319 (remote_string_tracing_feature)
4320 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4321 (remote_protocol_features): Adjust to use remote_supported_packet
4322 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4323 "ConditionalTracepoints", "ConditionalBreakpoints",
4324 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4325 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4326 "EnableDisableTracepoints", and "tracenz".
4327 (remote_query_supported): Use packet_support.
4328 (remote_open_1): Adjust.
4329 (extended_remote_attach_1): Use packet_support. Switch on the
4330 result of packet_ok instead of checking whether the packet ended
4331 up disabled.
4332 (remote_vcont_resume): Use packet_support.
4333 (remote_resume, remote_stop_ns, fetch_register_using_p)
4334 (remote_prepare_to_store, store_register_using_P)
4335 (check_binary_download, remote_write_bytes): Use packet_support.
4336 (remote_vkill): Use packet_support. Switch on the result of
4337 packet_ok instead of checking whether the packet ended up
4338 disabled.
4339 (extended_remote_supports_disable_randomization): Use
4340 packet_support.
4341 (extended_remote_run): Switch on the result of packet_ok instead
4342 of checking whether the packet ended up disabled.
4343 (remote_insert_breakpoint, remote_remove_breakpoint)
4344 (remote_insert_watchpoint, remote_remove_watchpoint)
4345 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4346 packet_support.
4347 (remote_search_memory): Use packet_config_support.
4348 (remote_get_thread_local_address, remote_get_tib_address)
4349 (remote_hostio_send_command, remote_can_execute_reverse): Use
4350 packet_support.
4351 (remote_supports_cond_tracepoints)
4352 (remote_supports_cond_breakpoints)
4353 (remote_supports_fast_tracepoints)
4354 (remote_supports_static_tracepoints)
4355 (remote_supports_install_in_trace)
4356 (remote_supports_enable_disable_tracepoint)
4357 (remote_supports_string_tracing)
4358 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4359 the packet config says the feature is enabled or disabled.
4360 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4361 (remote_get_trace_status): Use packet_support.
4362 (remote_set_disconnected_tracing): Adjust to check whether the
4363 feature is enabled with packet_support.
4364 (remote_set_trace_buffer_size, remote_use_agent)
4365 (remote_can_use_agent, remote_supports_btrace): Use
4366 packet_support.
4367 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4368 Use packet_config_support.
4369 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4370 the packet config says the feature is enabled or disabled.
4371 (set_range_stepping): Use packet_support.
4372
4373 2014-04-25 Tom Tromey <tromey@redhat.com>
4374
4375 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4376 argument.
4377
4378 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4379
4380 * NEWS: Mention support for C99 variable length arrays.
4381
4382 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4383
4384 * ada-lang.c (standard_exc): Expand introductory comment.
4385
4386 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4387 Walfred Tedeschi <walfred.tedeschi@intel.com>
4388
4389 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4390 AVX512 registers.
4391 (amd64_linux_read_description): Add code to handle AVX512 xstate
4392 mask and return respective tdesc.
4393 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4394 and features/i386/x32-avx512-linux.c.
4395 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4396 (amd64_linux_core_read_description): Add code to handle AVX512
4397 xstate mask and return respective tdesc.
4398 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4399 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4400 calculation.
4401 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4402 (tdesc_amd64_avx512_linux): New prototype.
4403 (tdesc_x32_avx512_linux): Likewise.
4404 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4405 features/i386/x32-avx512.c.
4406 (amd64_ymm_avx512_names): New register names for pseudo
4407 registers YMM16-31.
4408 (amd64_ymmh_avx512_names): New register names for raw registers
4409 YMMH16-31.
4410 (amd64_k_names): New register names for K registers.
4411 (amd64_zmmh_names): New register names for ZMM raw registers.
4412 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4413 (amd64_xmm_avx512_names): New register names for XMM16-31
4414 registers.
4415 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4416 registers.
4417 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4418 if feature is present.
4419 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4420 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4421 (AMD64_NUM_REGS): Adjust to new number of registers.
4422 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4423 registers supplied via XSTATE by AVX512 registers.
4424 (i386_linux_read_description): Add case for AVX512.
4425 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4426 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4427 (i386_linux_core_read_description): Add case for AVX512.
4428 (i386_linux_init_abi): Install supported register note section
4429 for AVX512.
4430 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4431 AVX512.
4432 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4433 registers to be number of zmm7h + 1.
4434 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4435 * i386-tdep.c: Include features/i386/i386-avx512.c.
4436 (i386_zmm_names): Add ZMM pseudo register names array.
4437 (i386_zmmh_names): Add ZMM raw register names array.
4438 (i386_k_names): Add K raw register names array.
4439 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4440 registers. AVX512 has 16 more ZMM registers than there are YMM
4441 registers.
4442 (i386_zmmh_regnum_p): Add function to look up register number of
4443 ZMM raw registers.
4444 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4445 (i386_k_regnum_p): Likewise for K raw registers.
4446 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4447 registers added by AVX512.
4448 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4449 registers added by AVX512.
4450 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4451 added by AVX512.
4452 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4453 (i386_pseudo_register_name): Add ZMM pseudo registers.
4454 (i386_zmm_type): Construct and return vector registers type for ZMM
4455 registers.
4456 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4457 ZMM0-31 pseudo registers and K registers.
4458 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4459 and YMM16-31 registers from register cache.
4460 (i386_pseudo_register_write): Add code to write K, ZMM and
4461 YMM16-31 registers.
4462 (i386_register_reggroup_p): Add code to include/exclude AVX512
4463 registers in/from respective register groups.
4464 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4465 registers if feature is present in xcr0.
4466 (i386_gdbarch_init): Add code to initialize AVX512 feature
4467 variables in tdep structure, wire in pseudo registers and call
4468 initialize_tdesc_i386_avx512.
4469 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4470 variables.
4471 (i386_regnum): Add AVX512 registers.
4472 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4473 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4474 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4475 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4476 512 bits wide.
4477 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4478 (i386_ymm_avx512_regnum_p): Likewise.
4479 (i386_k_regnum_p): Likewise.
4480 (i386_zmm_regnum_p): Likewise.
4481 (i386_zmmh_regnum_p): Likewise.
4482 * i387-tdep.c : Update year in copyright notice.
4483 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4484 XSAVE buffer.
4485 (XSAVE_YMM_AVX512_ADDR): New macro.
4486 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4487 XSAVE buffer.
4488 (XSAVE_XMM_AVX512_ADDR): New macro.
4489 (xsave_avx512_k_offset): New table for K register offsets in
4490 XSAVE buffer.
4491 (XSAVE_AVX512_K_ADDR): New macro.
4492 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4493 in XSAVE buffer.
4494 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4495 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4496 buffer.
4497 (i387_collect_xsave): Add code to collect AVX512 registers from
4498 XSAVE buffer.
4499 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4500 of XMM16-31 registers.
4501 (I387_NUM_K_REGS): New define for number of K registers.
4502 (I387_K0_REGNUM): New define for K0 register number.
4503 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4504 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4505 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4506 registers.
4507 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4508 (I387_XMM16_REGNUM): New define for XMM16 register number.
4509 (I387_YMM0_REGNUM): New define for YMM0 register number.
4510 (I387_KEND_REGNUM): New define for last K register number.
4511 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4512 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4513 number.
4514 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4515 number.
4516 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4517 size.
4518 * features/Makefile: Add AVX512 related files.
4519 * features/i386/32bit-avx512.xml: New file.
4520 * features/i386/64bit-avx512.xml: Likewise.
4521 * features/i386/amd64-avx512-linux.c: Likewise.
4522 * features/i386/amd64-avx512-linux.xml: Likewise.
4523 * features/i386/amd64-avx512.c: Likewise.
4524 * features/i386/amd64-avx512.xml: Likewise.
4525 * features/i386/i386-avx512-linux.c: Likewise.
4526 * features/i386/i386-avx512-linux.xml: Likewise.
4527 * features/i386/i386-avx512.c: Likewise.
4528 * features/i386/i386-avx512.xml: Likewise.
4529 * features/i386/x32-avx512-linux.c: Likewise.
4530 * features/i386/x32-avx512-linux.xml: Likewise.
4531 * features/i386/x32-avx512.c: Likewise.
4532 * features/i386/x32-avx512.xml: Likewise.
4533 * regformats/i386/amd64-avx512-linux.dat: New file.
4534 * regformats/i386/amd64-avx512.dat: Likewise.
4535 * regformats/i386/i386-avx512-linux.dat: Likewise.
4536 * regformats/i386/i386-avx512.dat: Likewise.
4537 * regformats/i386/x32-avx512-linux.dat: Likewise.
4538 * regformats/i386/x32-avx512.dat: Likewise.
4539 * NEWS: Add note about new support for AVX512.
4540
4541
4542 2014-04-23 Pedro Alves <palves@redhat.com>
4543
4544 * breakpoint.c (insert_bp_location): Tolerate errors if the
4545 breakpoint is set in a user-loaded objfile.
4546 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4547 location is marked shlib_disabled. If the breakpoint is set in a
4548 user-loaded objfile is a GDB-side memory breakpoint, validate it
4549 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4550 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4551 flag.
4552 * mem-break.c (memory_validate_breakpoint): New function.
4553 * objfiles.c (userloaded_objfile_contains_address_p): New
4554 function.
4555 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4556 * target.h (memory_validate_breakpoint): New declaration.
4557
4558 2014-04-23 Pedro Alves <palves@redhat.com>
4559
4560 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4561 the breakpoint is set in a shared library, only suppress
4562 errors for software breakpoints, not hardware breakpoints.
4563
4564 2014-04-22 Pedro Alves <palves@redhat.com>
4565
4566 * infrun.c (schedlock_applies): New function, factored out from
4567 find_thread_needs_step_over.
4568 (find_thread_needs_step_over): Use it.
4569 (switch_back_to_stepped_thread): Always clear trap_expected if the
4570 step over is finished. Return early if scheduler locking applies.
4571 Look for the stepping thread and a potential step-over thread with
4572 a single loop.
4573 (currently_stepping_or_nexting_callback): Delete.
4574
4575 2014-04-22 Nick Clifton <nickc@redhat.com>
4576
4577 * NEWS: Mention that ARM sim now supports tracing.
4578
4579 2014-04-22 Yao Qi <yao@codesourcery.com>
4580
4581 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4582 to ...
4583 * tracefile.c (tracefile_fetch_registers): ... it. New
4584 function.
4585 * tracefile.h (tracefile_fetch_registers): Declare.
4586 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4587 tracefile_fetch_registers.
4588
4589 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4590
4591 PR gdb/14018
4592 * windows-nat.c (thread_rec): Don't display a warning when
4593 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4594 fails for any reason, set th->suspended to -1, so that we don't
4595 try to resume such a thread. Also, don't return NULL in these
4596 cases, to avoid completely ruin the session due to "PC register is
4597 not available" error.
4598 (do_windows_fetch_inferior_registers): Check errors in
4599 GetThreadContext call.
4600 (windows_continue): Accept an additional argument KILLED; if not
4601 zero, ignore errors in the SetThreadContext call, since the
4602 inferior was killed and is shutting down.
4603 (windows_resume, get_windows_debug_event)
4604 (windows_create_inferior, windows_mourn_inferior)
4605 (windows_kill_inferior): All callers of windows_continue changed
4606 to adjust to its new calling sequence.
4607
4608 2014-04-19 Yao Qi <yao@codesourcery.com>
4609
4610 * ctf.c (ctf_open): Call post_create_inferior.
4611
4612 2014-04-19 Yao Qi <yao@codesourcery.com>
4613
4614 * ctf.c (handle_id): New static variable.
4615 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4616 value. Get the declaration of event "register" and get length
4617 of field "contents".
4618
4619 2014-04-19 Yao Qi <yao@codesourcery.com>
4620
4621 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4622
4623 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4624
4625 * valops.c (oload_method_static): Remove unnecessary argument
4626 METHOD. Update all callers.
4627
4628 2014-04-18 Pedro alves <palves@redhat.com>
4629 Tom Tromey <tromey@redhat.com>
4630
4631 PR backtrace/15558
4632 * frame.c (get_prev_frame_1): Rename to ...
4633 (get_prev_frame_always): ... this, and make extern. Adjust.
4634 (skip_artificial_frames): Use get_prev_frame_always.
4635 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4636 (get_frame_unwind_stop_reason): Adjust to rename.
4637 * frame.h (get_prev_frame_always): Declare.
4638 * inline-frame.c: Include frame.h.
4639 (inline_frame_this_id): Use get_prev_frame_always.
4640
4641 2014-04-18 Tristan Gingold <gingold@adacore.com>
4642
4643 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4644 code by using bfd_mach_o_get_base_address.
4645
4646 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4647
4648 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4649 (spu_ax_pseudo_register_collect): New function.
4650 (spu_ax_pseudo_register_push_stack): Likewise.
4651 (spu_dwarf_reg_to_regnum): Likewise.
4652 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4653
4654 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4655
4656 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4657 Replace FRAME argument with FRAME_ID.
4658 * gdbarch.c, gdbarch.h: Regenerate.
4659 * findvar.c (default_value_from_register): Add GDBARCH argument;
4660 replace FRAME by FRAME_ID. No longer call get_frame_id.
4661 (value_from_register): Update call to gdbarch_value_from_register.
4662 * value.h (default_value_from_register): Update prototype.
4663 * s390-linux-tdep.c (s390_value_from_register): Update interface
4664 and call to default_value_from_register.
4665 * spu-tdep.c (spu_value_from_register): Likewise.
4666
4667 * findvar.c (address_from_register): Remove TYPE argument.
4668 Do not call value_from_register; use gdbarch_value_from_register
4669 with null_frame_id instead.
4670 * value.h (address_from_register): Update prototype.
4671 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4672 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4673 address_from_register interface change.
4674
4675 2014-04-17 Yao Qi <yao@codesourcery.com>
4676
4677 * gdbtypes.h: Update comments to link to types and macros'
4678 definitions.
4679
4680 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4681
4682 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4683
4684 2014-04-16 Keith Seitz <keiths@redhat.com>
4685
4686 PR gdb/15827
4687 * dwarf2read.c (skip_one_die): Check that all relative-offset
4688 sibling DIEs fall within range of the current reader's buffer.
4689 (read_partial_die): Likewise.
4690
4691 2014-04-16 Keith Seitz <keiths@redhat.com>
4692
4693 PR c++/16597
4694 * cp-namespace.c (lookup_symbol_file): If the type name of
4695 `this' is NULL, return immediately.
4696
4697 2014-04-14 Keith Seitz <keiths@redhat.com>
4698
4699 PR c++/16253
4700 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4701 from symbol_matches_domain in symtab.c. All local callers
4702 of symbol_matches_domain updated.
4703 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4704 search STRUCT_DOMAIN.
4705 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4706 independently. standard_lookup will do that automatically.
4707 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4708 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4709 (cp_lookup_symbol_in_namespace): Likewise.
4710 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4711 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4712 may return a STRUCT_DOMAIN match.
4713 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4714 * cp-support.c: Include language.h.
4715 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4716 VAR_DOMAIN.
4717 * psymtab.c (match_partial_symbol): Compare the requested
4718 domain with the symbol's domain directly.
4719 (lookup_partial_symbol): Likewise.
4720 * symtab.c (lookup_symbol_in_language): Explain when/why
4721 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4722 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4723 appropriate languages.
4724 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4725 and moved to ada-lang.c
4726 (lookup_block_symbol): Explain that this function only returns
4727 symbol matching the requested DOMAIN.
4728 Compare the requested domain with the symbol's domain directly.
4729 (iterate_over_symbols): Compare the requested domain with the
4730 symbol's domain directly.
4731 * symtab.h (symbol_matches_domain): Remove.
4732
4733 2014-04-14 Tom Tromey <tromey@redhat.com>
4734
4735 PR c++/15246:
4736 * c-exp.y (type_aggregate_p): New function.
4737 (qualified_name, classify_inner_name): Use it.
4738 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4739 and TYPE_TARGET_TYPE of an enum type.
4740 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4741 an enum type.
4742 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4743 handle TYPE_DECLARED_CLASS.
4744 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4745 types.
4746 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4747 * valops.c (enum_constant_from_type): New function.
4748 (value_aggregate_elt): Use it.
4749 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4750 TYPE_CODE_ENUM.
4751
4752 2014-04-14 Tom Tromey <tromey@redhat.com>
4753
4754 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4755 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4756 const.
4757 * value.h (value_aggregate_elt): Update.
4758
4759 2014-04-14 Tom Tromey <tromey@redhat.com>
4760
4761 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4762
4763 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4764
4765 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4766 (evaluate_subexp_standard): Pass noside argument.
4767 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4768 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4769 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4770 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4771 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4772
4773 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4774
4775 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4776 points to a constant blob.
4777
4778 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4779
4780 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4781 property and store it as the high bound and flag the range accordingly.
4782 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4783 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4784 * gdbtypes.h (enum range_flags): New enum.
4785 (struct range_bounds): Add flags member.
4786
4787 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4788
4789 * c-typeprint.c (c_type_print_varspec_suffix): Added
4790 check for not yet resolved high bound. If unresolved, print
4791 "variable length" string to the console instead of random
4792 length.
4793
4794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4795
4796 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4797 value.
4798 (ada_template_to_fixed_record_type_1): Likewise.
4799 (ada_to_fixed_type_1): Likewise.
4800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4801 (cp_print_value): Likewise.
4802 * d-valprint.c (dynamic_array_type): Likewise.
4803 * findvar.c (address_of_variable): Likewise.
4804 * jv-valprint.c (java_value_print): Likewise.
4805 * valops.c (value_ind): Likewise.
4806 * value.c (coerce_ref): Likewise.
4807
4808 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4809
4810 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4811 value and retrieve the dynamic type size.
4812
4813 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4814
4815 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4816 passed to sizeof is dynamic evaluate the argument to compute the length.
4817
4818 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4819 Joel Brobecker <brobecker@adacore.com>
4820
4821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4822 (dwarf2_evaluate_property): New function.
4823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4824 * dwarf2read.c (attr_to_dynamic_prop): New function.
4825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4826 attribute.
4827 * gdbtypes.c: Include dwarf2loc.h.
4828 (is_dynamic_type): New function.
4829 (resolve_dynamic_type): New function.
4830 (resolve_dynamic_bounds): New function.
4831 (get_type_length): New function.
4832 (check_typedef): Use get_type_length to compute type length.
4833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4834 (TYPE_LOW_BOUND_KIND): New macro.
4835 (is_dynamic_type): New function prototype.
4836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4837 to resolve dynamic properties of the type. Update comment.
4838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4839
4840 2014-04-14 Richard Henderson <rth@redhat.com>
4841
4842 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4843
4844 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4845 Doug Evans <xdje42@gmail.com>
4846
4847 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4848 dereference TYPE_CODE_REF values.
4849
4850 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4851
4852 Revert the following changes due to regressions:
4853
4854 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4855 (dwarf2_evaluate_property): New function.
4856 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4857 * dwarf2read.c (attr_to_dynamic_prop): New function.
4858 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4859 attribute.
4860 * gdbtypes.c: Include dwarf2loc.h.
4861 (is_dynamic_type): New function.
4862 (resolve_dynamic_type): New function.
4863 (resolve_dynamic_bounds): New function.
4864 (get_type_length): New function.
4865 (check_typedef): Use get_type_length to compute type length.
4866 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4867 (TYPE_LOW_BOUND_KIND): New macro.
4868 (is_dynamic_type): New function prototype.
4869 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4870 to resolve dynamic properties of the type. Update comment.
4871 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4872
4873 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4874 passed to sizeof is dynamic evaluate the argument to compute the length.
4875
4876 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4877 value and retrieve the dynamic type size.
4878
4879 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4880 (ada_template_to_fixed_record_type_1): Likewise.
4881 (ada_to_fixed_type_1): Likewise.
4882 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4883 (cp_print_value): Likewise.
4884 * d-valprint.c (dynamic_array_type): Likewise.
4885 * eval.c (evaluate_subexp_with_coercion): Likewise.
4886 * findvar.c (address_of_variable): Likewise.
4887 * jv-valprint.c (java_value_print): Likewise.
4888 * valops.c (value_ind): Likewise.
4889 * value.c (coerce_ref): Likewise.
4890
4891 * c-typeprint.c (c_type_print_varspec_suffix): Added
4892 check for not yet resolved high bound. If unresolved, print
4893 "variable length" string to the console instead of random
4894 length.
4895
4896 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4897 property and store it as the high bound and flag the range accordingly.
4898 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4899 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4900 * gdbtypes.h (enum range_flags): New enum.
4901 (struct range_bounds): Add flags member.
4902
4903 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4904 points to a constant blob.
4905
4906 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4907 (evaluate_subexp_standard): Pass noside argument.
4908 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4909 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4910 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4911 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4912 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4913
4914 2014-04-11 Keith Seitz <keiths@redhat.com>
4915
4916 PR c++/16675
4917 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4918 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4919 reference types.
4920
4921 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4922
4923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4924 (evaluate_subexp_standard): Pass noside argument.
4925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4930
4931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4932
4933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4934 points to a constant blob.
4935
4936 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4937
4938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4939 property and store it as the high bound and flag the range accordingly.
4940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4942 * gdbtypes.h (enum range_flags): New enum.
4943 (struct range_bounds): Add flags member.
4944
4945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4946
4947 * c-typeprint.c (c_type_print_varspec_suffix): Added
4948 check for not yet resolved high bound. If unresolved, print
4949 "variable length" string to the console instead of random
4950 length.
4951
4952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4953
4954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4955 (ada_template_to_fixed_record_type_1): Likewise.
4956 (ada_to_fixed_type_1): Likewise.
4957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4958 (cp_print_value): Likewise.
4959 * d-valprint.c (dynamic_array_type): Likewise.
4960 * eval.c (evaluate_subexp_with_coercion): Likewise.
4961 * findvar.c (address_of_variable): Likewise.
4962 * jv-valprint.c (java_value_print): Likewise.
4963 * valops.c (value_ind): Likewise.
4964 * value.c (coerce_ref): Likewise.
4965
4966 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4967
4968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4969 value and retrieve the dynamic type size.
4970
4971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4972
4973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4974 passed to sizeof is dynamic evaluate the argument to compute the length.
4975
4976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4977
4978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4979 (dwarf2_evaluate_property): New function.
4980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4981 * dwarf2read.c (attr_to_dynamic_prop): New function.
4982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4983 attribute.
4984 * gdbtypes.c: Include dwarf2loc.h.
4985 (is_dynamic_type): New function.
4986 (resolve_dynamic_type): New function.
4987 (resolve_dynamic_bounds): New function.
4988 (get_type_length): New function.
4989 (check_typedef): Use get_type_length to compute type length.
4990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4991 (TYPE_LOW_BOUND_KIND): New macro.
4992 (is_dynamic_type): New function prototype.
4993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4994 to resolve dynamic properties of the type. Update comment.
4995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4996
4997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4998
4999 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5000 declaring high/low bounds and change uses accordingly. Call
5001 create_range_type instead of create_static_range_type.
5002 * gdbtypes.c (create_range_type): New function.
5003 (create_range_type): Convert bounds into struct bound_prop and pass
5004 them to create_range_type.
5005 * gdbtypes.h (struct bound_prop): New struct.
5006 (create_range_type): New function prototype.
5007 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5008 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5009 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5010 part of the bound.
5011 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5012
5013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5014
5015 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5016 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5017 * ada-lang.c: All uses of create_range_type updated.
5018 * coffread.c: All uses of create_range_type updated.
5019 * dwarf2read.c: All uses of create_range_type updated.
5020 * f-exp.y: All uses of create_range_type updated.
5021 * m2-valprint.c: All uses of create_range_type updated.
5022 * mdebugread.c: All uses of create_range_type updated.
5023 * stabsread.c: All uses of create_range_type updated.
5024 * valops.c: All uses of create_range_type updated.
5025 * valprint.c: All uses of create_range_type updated.
5026
5027 2014-04-10 Pedro Alves <palves@redhat.com>
5028
5029 * breakpoint.c (single_step_breakpoints)
5030 (single_step_gdbarch): Move up in the file.
5031 (one_breakpoint_xfer_memory): New function, factored out from ...
5032 (breakpoint_xfer_memory): ... here. Also process single-step
5033 breakpoints.
5034
5035 2014-04-09 Tristan Gingold <gingold@adacore.com>
5036
5037 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5038 comments.
5039 (darwin_decode_exception_message): Free port only after use.
5040
5041 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5042
5043 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5044 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5045 when setting the size of call_length.
5046
5047 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5048
5049 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5050 dereference TYPE_CODE_REF values.
5051
5052 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5053
5054 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5055 end of warning message.
5056
5057 2014-04-03 Doug Evans <dje@google.com>
5058
5059 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5060 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5061
5062 2014-04-02 Alan Modra <amodra@gmail.com>
5063
5064 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5065 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5066 (struct symbol_file_add_from_memory_args): Add size field.
5067 (find_vdso_size): New function.
5068 (add_vsyscall_page): Attempt to find vdso size.
5069
5070 2014-04-01 Doug Evans <dje@google.com>
5071
5072 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5073
5074 2014-04-01 Tristan Gingold <gingold@adacore.com>
5075
5076 * darwin-nat.c (darwin_encode_reply): Add prototype.
5077 (darwin_decode_exception_message): Reply to unknown inferiors.
5078 (darwin_decode_message): Handle message by id. Ignore message
5079 to unknown inferior.
5080 (darwin_wait): Discard unknown messages, add debug trace.
5081
5082 2014-03-31 Doug Evans <dje@google.com>
5083
5084 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5085 comp_dir_string.
5086
5087 2014-03-31 Doug Evans <dje@google.com>
5088
5089 New option "set print symbol-loading".
5090 * NEWS: Mention it.
5091 * solib.c (solib_read_symbols): Only print symbol loading messages
5092 if requested.
5093 (solib_add): If symbol loading is in "brief" mode, notify user
5094 symbols are being loaded.
5095 (reload_shared_libraries_1): Ditto.
5096 * symfile.c (print_symbol_loading_off): New static global.
5097 (print_symbol_loading_brief): New static global.
5098 (print_symbol_loading_full): New static global.
5099 (print_symbol_loading_enums): New static global.
5100 (print_symbol_loading): New static global.
5101 (print_symbol_loading_p): New function.
5102 (symbol_file_add_with_addrs): Only print symbol loading messages
5103 if requested.
5104 (_initialize_symfile): Register "print symbol-loading" set/show
5105 command.
5106 * symfile.h (print_symbol_loading_p): Declare.
5107
5108 2014-03-30 Doug Evans <xdje42@gmail.com>
5109
5110 * infrun.c (set_last_target_status): New function.
5111 (handle_inferior_event): Call it.
5112
5113 2014-03-30 Doug Evans <xdje42@gmail.com>
5114
5115 * inferior.h (enum stop_kind): Improve comment.
5116
5117 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5118
5119 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5120 a reference, strip the reference layer before calling
5121 the lang_ops value_has_mutated callback.
5122
5123 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5124
5125 Remove some globals from our parser.
5126 * language.c (unk_lang_parser): Add "struct parser_state"
5127 argument.
5128 * language.h (struct language_defn) <la_parser>: Likewise.
5129 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5130 (initialize_expout): Add "struct parser_state" argument.
5131 Rewrite function to use the parser state.
5132 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5133 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5134 write_exp_elt_longcst, write_exp_elt_dblcst,
5135 write_exp_elt_decfloatcst, write_exp_elt_type,
5136 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5137 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5138 write_dollar_variable): Likewise.
5139 (parse_exp_in_context_1): Use parser state.
5140 (insert_type_address_space): Add "struct parser_state" argument.
5141 Use parser state.
5142 (increase_expout_size): New function.
5143 * parser-defs.h: Forward declare "struct language_defn" and
5144 "struct parser_state".
5145 (expout, expout_size, expout_ptr): Remove extern declarations.
5146 (parse_gdbarch, parse_language): Rewrite macro declarations to
5147 accept the parser state.
5148 (struct parser_state): New struct.
5149 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5150 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5151 write_exp_elt_decfloatcst, write_exp_elt_type,
5152 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5153 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5154 write_exp_msymbol, write_dollar_variable,
5155 mark_struct_expression, insert_type_address_space): Add "struct
5156 parser_state" argument.
5157 (increase_expout_size): New function.
5158 * utils.c (do_clear_parser_state): New function.
5159 (make_cleanup_clear_parser_state): Likewise.
5160 * utils.h (make_cleanup_clear_parser_state): New function
5161 prototype.
5162 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5163 Update calls to write_exp* in order to pass the parser state.
5164 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5165 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5166 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5167 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5168 * stap-probe.c (stap_parse_register_operand): Likewise.
5169 (stap_parse_single_operand): Likewise.
5170 (stap_parse_argument_1): Likewise.
5171 (stap_parse_argument): Use parser state.
5172 * stap-probe.h: Include "parser-defs.h".
5173 (struct stap_parse_info) <pstate>: New field.
5174 * c-exp.y (parse_type): Rewrite to use parser state.
5175 (yyparse): Redefine to c_parse_internal.
5176 (pstate): New global variable.
5177 (parse_number): Add "struct parser_state" argument.
5178 (write_destructor_name): Likewise.
5179 (type_exp): Update calls to write_exp* and similars in order to
5180 use parser state.
5181 (exp1, exp, variable, qualified_name, space_identifier,
5182 typename, typebase): Likewise.
5183 (write_destructor_name, parse_number, lex_one_token,
5184 classify_name, classify_inner_name, c_parse): Add "struct
5185 parser_state" argument. Update function to use parser state.
5186 * c-lang.h: Forward declare "struct parser_state".
5187 (c_parse): Add "struct parser_state" argument.
5188 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5189 (yyparse): Redefine macro to ada_parse_internal.
5190 (pstate): New variable.
5191 (write_int, write_object_renaming, write_var_or_type,
5192 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5193 type_int, type_long, type_long_long, type_float, type_double,
5194 type_long_double, type_char, type_boolean, type_system_address):
5195 Add "struct parser_state" argument.
5196 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5197 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5198 var_or_type, aggregate, aggregate_component_list,
5199 positional_list, others, component_group,
5200 component_associations): Update calls to write_exp* and similar
5201 functions in order to use parser state.
5202 (ada_parse, write_var_from_sym, write_int,
5203 write_exp_op_with_string, write_object_renaming,
5204 find_primitive_type, write_selectors, write_ambiguous_var,
5205 write_var_or_type, write_name_assoc, type_int, type_long,
5206 type_long_long, type_float, type_double, type_long_double,
5207 type_char, type_boolean, type_system_address): Add "struct
5208 parser_state" argument. Adjust function to use parser state.
5209 * ada-lang.c (parse): Likewise.
5210 * ada-lang.h: Forward declare "struct parser_state".
5211 (ada_parse): Add "struct parser_state" argument.
5212 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5213 calls to both functions.
5214 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5215 parser state.
5216 (yyparse): Redefine macro to f_parse_internal.
5217 (pstate): New variable.
5218 (parse_number): Add "struct parser_state" argument.
5219 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5220 and similars in order to use parser state.
5221 (parse_number): Adjust code to use parser state.
5222 (yylex): Likewise.
5223 (f_parse): New function.
5224 * f-lang.h: Forward declare "struct parser_state".
5225 (f_parse): Add "struct parser_state" argument.
5226 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5227 parser state.
5228 (yyparse): Redefine macro for java_parse_internal.
5229 (pstate): New variable.
5230 (push_expression_name, push_expression_name, insert_exp): Add
5231 "struct parser_state" argument.
5232 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5233 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5234 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5235 PostIncrementExpression, PostDecrementExpression,
5236 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5237 UnaryExpressionNotPlusMinus, CastExpression,
5238 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5239 RelationalExpression, EqualityExpression, AndExpression,
5240 ExclusiveOrExpression, InclusiveOrExpression,
5241 ConditionalAndExpression, ConditionalOrExpression,
5242 ConditionalExpression, Assignment, LeftHandSide): Update
5243 calls to write_exp* and similars in order to use parser state.
5244 (parse_number): Ajust code to use parser state.
5245 (yylex): Likewise.
5246 (java_parse): New function.
5247 (push_variable): Add "struct parser_state" argument. Adjust
5248 code to user parser state.
5249 (push_fieldnames, push_qualified_expression_name,
5250 push_expression_name, insert_exp): Likewise.
5251 * jv-lang.h: Forward declare "struct parser_state".
5252 (java_parse): Add "struct parser_state" argument.
5253 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5254 parser state.
5255 (yyparse): Redefine macro to m2_parse_internal.
5256 (pstate): New variable.
5257 (type_exp, exp, fblock, variable, type): Update calls to
5258 write_exp* and similars to use parser state.
5259 (yylex): Likewise.
5260 (m2_parse): New function.
5261 * m2-lang.h: Forward declare "struct parser_state".
5262 (m2_parse): Add "struct parser_state" argument.
5263 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5264 * objc-lang.h: Forward declare "struct parser_state".
5265 (end_msglist): Add "struct parser_state" argument.
5266 * p-exp.y (parse_type): Rewrite macro to use parser state.
5267 (yyparse): Redefine macro to pascal_parse_internal.
5268 (pstate): New variable.
5269 (parse_number): Add "struct parser_state" argument.
5270 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5271 write_exp* and similars in order to use parser state.
5272 (parse_number, yylex): Adjust code to use parser state.
5273 (pascal_parse): New function.
5274 * p-lang.h: Forward declare "struct parser_state".
5275 (pascal_parse): Add "struct parser_state" argument.
5276 * go-exp.y (parse_type): Rewrite macro to use parser state.
5277 (yyparse): Redefine macro to go_parse_internal.
5278 (pstate): New variable.
5279 (parse_number): Add "struct parser_state" argument.
5280 (type_exp, exp1, exp, variable, type): Update calls to
5281 write_exp* and similars in order to use parser state.
5282 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5283 to use parser state.
5284 (go_parse): Likewise.
5285 * go-lang.h: Forward declare "struct parser_state".
5286 (go_parse): Add "struct parser_state" argument.
5287
5288 2014-03-27 Doug Evans <dje@google.com>
5289
5290 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5291
5292 2014-03-27 Doug Evans <dje@google.com>
5293
5294 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5295 Remove argument abbrev_section. All callers updated.
5296
5297 2014-03-27 Doug Evans <dje@google.com>
5298
5299 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5300 addr_base, ranges_base.
5301
5302 2014-03-26 Keith Seitz <keiths@redhat.com>
5303
5304 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5305 types, not VAR_DOMAIN.
5306
5307 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5308
5309 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5310 "ra" registers.
5311 * features/nios2-linux.c: Regenerated.
5312 * features/nios2.c: Regenerated.
5313
5314 2014-03-25 Pedro Alves <palves@redhat.com>
5315
5316 * cli/cli-script.c (script_from_file): Force the interpreter to
5317 sync mode.
5318
5319 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5320
5321 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5322 small stack allocation.
5323
5324 2014-03-24 Tristan Gingold <gingold@adacore.com>
5325
5326 * darwin-nat.c (exc_server): Remove unused prototype.
5327 (darwin_dump_message): Correctly display data on x86_64.
5328 (darwin_encode_reply): Fix style.
5329 Add comments and fix indentation.
5330
5331 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5332
5333 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5334
5335 2014-03-22 Doug Evans <xdje42@gmail.com>
5336
5337 * infcmd.c: Whitespace fixes.
5338 (interrupt_command): Merge two function comments into one.
5339
5340 2014-03-22 Doug Evans <xdje42@gmail.com>
5341
5342 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5343 All uses updated.
5344
5345 2014-03-22 Yao Qi <yao@codesourcery.com>
5346
5347 * remote.c (target_read_live_memory): Remove.
5348 (memory_xfer_live_readonly_partial): Rename it to
5349 remote_xfer_live_readonly_partial. Remove argument 'object'.
5350 All callers updated. Call remote_read_bytes_1
5351 instead of target_read_live_memory.
5352 * tracepoint.c (set_traceframe_number): Remove.
5353 (make_cleanup_restore_traceframe_number): Likewise .
5354 * tracepoint.h (set_traceframe_number): Remove declaration.
5355 (make_cleanup_restore_traceframe_number): Likewise.
5356
5357 2014-03-22 Yao Qi <yao@codesourcery.com>
5358
5359 * remote.c (remote_read_bytes): Move code on reading from the
5360 remote stub to ...
5361 (remote_read_bytes_1): ... here. New function.
5362
5363 2014-03-22 Yao Qi <yao@codesourcery.com>
5364
5365 * ctf.c (ctf_xfer_partial): Check the return value of
5366 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5367 return TARGET_XFER_UNAVAILABLE.
5368 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5369 * target.c (target_read_live_memory): Move it to remote.c.
5370 (memory_xfer_live_readonly_partial): Likewise.
5371 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5372 * remote.c (target_read_live_memory): Moved from target.c.
5373 (memory_xfer_live_readonly_partial): Likewise.
5374 (remote_read_bytes): Factored out from
5375 memory_xfer_partial_1.
5376
5377 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5378
5379 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5380 NULL pointer.
5381
5382 2014-03-21 Pedro Alves <palves@redhat.com>
5383
5384 * infrun.c (normal_stop): Extend comment.
5385
5386 2014-03-21 Hui Zhu <hui@codesourcery.com>
5387 Pedro Alves <palves@redhat.com>
5388
5389 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5390 static buffer.
5391 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5392 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5393 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5394
5395 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5396
5397 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5398 `z' formatted output modifier.
5399
5400 2014-03-20 Tom Tromey <tromey@redhat.com>
5401 Sergio Durigan Junior <sergiodj@redhat.com>
5402
5403 * probe.c (parse_probes): Turn assert into an ordinary error.
5404 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5405 exceptions when parsing probes. Rearrange the code for clarity.
5406
5407 2014-03-20 Tom Tromey <tromey@redhat.com>
5408
5409 PR gdb/14135
5410 * top.c (execute_command): Only dispatch events if the command
5411 started the target.
5412
5413 2014-03-20 Tom Tromey <tromey@redhat.com>
5414
5415 PR cli/15718
5416 * infcall.c: Include event-top.h.
5417 (run_inferior_call): Call async_disable_stdin if needed.
5418
5419 2014-03-20 Pedro Alves <palves@redhat.com>
5420
5421 * infrun.c (prepare_to_proceed): Delete.
5422 (thread_still_needs_step_over): New function.
5423 (find_thread_needs_step_over): New function.
5424 (proceed): If the current thread needs a step-over, set its
5425 steping_over_breakpoint flag. Adjust to use
5426 find_thread_needs_step_over instead of prepare_to_proceed.
5427 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5428 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5429 breakpoint.
5430 (switch_back_to_stepped_thread): Step over breakpoints of all
5431 threads not the stepping thread, before switching back to the
5432 stepping thread.
5433
5434 2014-03-20 Pedro Alves <palves@redhat.com>
5435
5436 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5437 extern.
5438 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5439 * infrun.c (saved_singlestep_ptid)
5440 (stepping_past_singlestep_breakpoint): Delete.
5441 (resume): Remove stepping_past_singlestep_breakpoint handling.
5442 (proceed): Store the prev_pc of the stepping thread too.
5443 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5444 singlestep_pc.
5445 (enum infwait_states): Delete infwait_thread_hop_state.
5446 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5447 field.
5448 (handle_inferior_event): Adjust.
5449 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5450 handling and the thread-hop code. Before removing single-step
5451 breakpoints, check whether the thread hit a single-step breakpoint
5452 of another thread. If it did, the trap is not a random signal.
5453 (switch_back_to_stepped_thread): If the event thread hit a
5454 single-step breakpoint, unblock it before switching to the
5455 stepping thread. Handle the case of the stepped thread having
5456 advanced already.
5457 (keep_going): Handle the case of the current thread moving past a
5458 single-step breakpoint.
5459
5460 2014-03-20 Pedro Alves <palves@redhat.com>
5461
5462 PR breakpoints/7143
5463 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5464 are being stepped over.
5465 (breakpoint_address_match): Make extern.
5466 * breakpoint.h (breakpoint_address_match): New declaration.
5467 * inferior.h (stepping_past_instruction_at): New declaration.
5468 * infrun.c (struct step_over_info): New type.
5469 (step_over_info): New global.
5470 (set_step_over_info, clear_step_over_info)
5471 (stepping_past_instruction_at): New functions.
5472 (handle_inferior_event): Clear the step-over info when
5473 trap_expected is cleared.
5474 (resume): Remove now stale comment.
5475 (clear_proceed_status): Clear step-over info.
5476 (proceed): Adjust step-over handling to set or clear the step-over
5477 info instead of removing all breakpoints.
5478 (handle_signal_stop): When setting up a thread-hop, don't remove
5479 breakpoints here.
5480 (stop_stepping): Clear step-over info.
5481 (keep_going): Adjust step-over handling to set or clear step-over
5482 info and then always inserting breakpoints, instead of removing
5483 all breakpoints when stepping over one.
5484
5485 2014-03-20 Pedro Alves <palves@redhat.com>
5486
5487 * infrun.c (previous_inferior_ptid): Adjust comment.
5488 (deferred_step_ptid): Delete.
5489 (infrun_thread_ptid_changed, prepare_to_proceed)
5490 (init_wait_for_inferior): Adjust.
5491 (handle_signal_stop): Delete deferred_step_ptid handling.
5492
5493 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5494
5495 PR gdb/15358
5496 * defs.h (sync_quit_force_run): New declaration.
5497 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5498 * event-top.c (async_sigterm_handler): New declaration.
5499 (async_sigterm_token): New variable.
5500 (async_init_signals): Create also async_sigterm_token.
5501 (async_sigterm_handler): New function.
5502 (sync_quit_force_run): New variable.
5503 (handle_sigterm): Replace quit_force call by other calls.
5504 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5505
5506 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5507
5508 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5509 offset into SPE pseudo registers.
5510
5511 2014-03-18 Pedro Alves <palves@redhat.com>
5512
5513 PR gdb/13860
5514 * inferior.h (print_stop_event): Declare.
5515 * infrun.c (print_stop_event): New, factored out from ...
5516 (normal_stop): ... this.
5517 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5518 of bpstat_print/print_stack_frame.
5519
5520 2014-03-17 Tom Tromey <tromey@redhat.com>
5521
5522 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5523
5524 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5525
5526 * ada-lang.c (decode_constrained_packed_array): Perform a
5527 minimal coercion for reference with coerce_ref instead of
5528 ada_coerce_ref.
5529
5530 2014-03-17 Tristan Gingold <gingold@adacore.com>
5531
5532 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5533 (darwin_solib_create_inferior_hook): Emit a warning if version
5534 is unhandled.
5535
5536 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5537
5538 * python/py-value.c (get_field_flag): Cast flag_name argument to
5539 PyObject_GetAttrString to support Python 2.4.
5540
5541 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5542
5543 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5544 (Global Maintainers): Remove Jan Kratochvil.
5545
5546 2014-03-14 Pedro Alves <palves@redhat.com>
5547
5548 * inferior.h (terminal_ours_for_output): Rename to ...
5549 (child_terminal_ours_for_output): ... this.
5550 (terminal_save_ours): Rename to ...
5551 (child_terminal_save_ours): ... this.
5552 (terminal_ours): Rename to ...
5553 (child_terminal_ours): ... this.
5554 (terminal_inferior): Rename to ...
5555 (child_terminal_inferior): ... this.
5556 (terminal_init_inferior): Rename to ...
5557 (child_terminal_init_inferior): ... this.
5558 (terminal_init_inferior_with_pgrp): Rename to ...
5559 (child_terminal_init_inferior_with_pgrp): ... this.
5560 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5561 (child_terminal_init_with_pgrp): ... this.
5562 (terminal_save_ours): Rename to ...
5563 (child_terminal_save_ours): ... this.
5564 (terminal_init_inferior): Rename to ...
5565 (child_terminal_init): ... this. Adjust.
5566 (terminal_inferior): Rename to ...
5567 (child_terminal_inferior): ... this.
5568 (terminal_ours_for_output): Rename to ...
5569 (child_terminal_ours_for_output): ... this. Adjust.
5570 (terminal_ours): Rename to ...
5571 (child_terminal_ours): ... this.
5572 (terminal_ours_1): Rename to ...
5573 (child_terminal_ours_1): ... this. Adjust.
5574 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5575 * windows-nat.c (do_initial_windows_stuff): Adjust.
5576 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5577 (gnu_terminal_init): ... this. Adjust.
5578 (gnu_target): Adjust.
5579 * inf-child.c (inf_child_target): Adjust.
5580
5581 2014-03-13 Doug Evans <xdje42@gmail.com>
5582
5583 PR guile/16612
5584 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5585 new eq?-hashtab.
5586
5587 2014-03-13 Doug Evans <xdje42@gmail.com>
5588
5589 * value.c (record_latest_value): Call release_value_or_incref
5590 instead of release_value.
5591
5592 2014-03-13 Pedro Alves <palves@redhat.com>
5593
5594 * procfs.c (procfs_target): Don't override to_shortname,
5595 to_longname or to_doc.
5596
5597 2014-03-13 Pedro Alves <palves@redhat.com>
5598
5599 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5600 Unix in user visible strings.
5601
5602 2014-03-12 Stan Shebs <stan@codesourcery.com>
5603
5604 * gdbtypes.h: Annotate comments for Doxygen, add a page
5605 block comment with some general info.
5606
5607 2014-03-12 Pedro Alves <palves@redhat.com>
5608
5609 * infcmd.c (prepare_execution_command): New function, factored out
5610 from several execution commands.
5611 (run_command_1, continue_command, step_1, jump_command)
5612 (signal_command, until_command, advance_command, finish_command)
5613 (attach_command): Use prepare_execution_command.
5614
5615 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5616
5617 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5618 (MAX_BPTS): Define.
5619 (MAX_WPTS): Define.
5620 (struct arm_linux_thread_points): Removed.
5621 (struct arm_linux_process_info): New.
5622 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5623 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5624 (arm_linux_find_breakpoints_by_tid): Removed.
5625 (struct arch_lwp_info): New.
5626 (arm_linux_find_process_pid): New functions.
5627 (arm_linux_add_process): New functions.
5628 (arm_linux_process_info_get): New functions.
5629 (arm_linux_forget_process): New function.
5630 (arm_linux_get_debug_reg_state): New function.
5631 (struct update_registers_data): New.
5632 (update_registers_callback): New function.
5633 (arm_linux_insert_hw_breakpoint1): Updated.
5634 (arm_linux_remove_hw_breakpoint1): Updated.
5635 (arm_linux_insert_hw_breakpoint): Updated.
5636 (arm_linux_remove_hw_breakpoint): Updated.
5637 (arm_linux_insert_watchpoint): Updated.
5638 (arm_linux_remove_watchpoint): Updated.
5639 (arm_linux_new_thread): Updated.
5640 (arm_linux_prepare_to_resume): New function.
5641 (arm_linux_new_fork): New function.
5642 (_initialize_arm_linux_nat): Updated.
5643
5644 2014-03-12 Pedro Alves <palves@redhat.com>
5645
5646 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5647
5648 2014-03-12 Tom Tromey <tromey@redhat.com>
5649
5650 * inf-child.c (return_zero): New function.
5651 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5652 * aix-thread.c (aix_thread_inferior_created): New function.
5653 (aix_thread_attach): Remove.
5654 (init_aix_thread_ops): Don't set to_attach.
5655 (_initialize_aix_thread): Register inferior_created observer.
5656 * corelow.c (init_core_ops): Don't set to_attach or
5657 to_create_inferior.
5658 * exec.c (init_exec_ops): Don't set to_attach or
5659 to_create_inferior.
5660 * infcmd.c (run_command_1): Use find_run_target. Make direct
5661 target calls.
5662 (attach_command): Use find_attach_target. Make direct target
5663 calls.
5664 * record-btrace.c (init_record_btrace_ops): Don't set
5665 to_create_inferior.
5666 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5667 Remove.
5668 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5669 set to_create_inferior.
5670 * target.c (complete_target_initialization): Add assertion.
5671 (target_create_inferior): Remove.
5672 (find_default_attach, find_default_create_inferior): Remove.
5673 (find_attach_target, find_run_target): New functions.
5674 (find_default_is_async_p, find_default_can_async_p)
5675 (target_supports_non_stop, target_attach): Remove.
5676 (init_dummy_target): Don't set to_create_inferior or
5677 to_supports_non_stop.
5678 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5679 TARGET_DEFAULT_FUNC.
5680 <to_create_inferior>: Add comment.
5681 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5682 TARGET_DEFAULT_RETURN.
5683 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5684 (find_attach_target, find_run_target): Declare.
5685 (target_create_inferior): Remove.
5686 (target_has_execution_1): Update comment.
5687 (target_supports_non_stop): Remove.
5688 * target-delegates.c: Rebuild.
5689
5690 2014-03-12 Pedro Alves <palves@redhat.com>
5691
5692 * inf-child.h: Update comment to not mention Unix.
5693
5694 2014-03-12 Pedro Alves <palves@redhat.com>
5695
5696 * inf-child.c: Update top comment to not mention Unix. Add
5697 generic comment describing how this target is meant to be used.
5698 (inf_child_post_attach, inf_child_post_startup_inferior)
5699 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5700 Unix in comment.
5701
5702 2014-03-12 Pedro Alves <palves@redhat.com>
5703
5704 * nto-procfs.c: Include inf-child.h.
5705 (procfs_ops): Delete global.
5706 (procfs_can_run): Delete method.
5707 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5708 target pointer instead of referencing procfs_ops.
5709 (procfs_prepare_to_store): Delete.
5710 (init_procfs_ops): Delete function.
5711 (procfs_target): New function, based on init_procfs_ops, but
5712 inherit inf_child_target.
5713 (_initialize_procfs): Use procfs_target.
5714
5715 2014-03-12 Pedro Alves <palves@redhat.com>
5716
5717 * windows-nat.c: Include inf-child.h.
5718 (windows_ops): Delete global.
5719 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5720 methods.
5721 (init_windows_ops): Delete function.
5722 (windows_target): New function, based on init_windows_ops, but
5723 inherit inf_child_target.
5724 (_initialize_windows_nat): Use windows_target. Install x86
5725 specific target methods here.
5726
5727 2014-03-10 Doug Evans <xdje42@gmail.com>
5728
5729 * guile/guile.c (call_initialize_gdb_module): New function.
5730 (initialize_guile): Replace call to scm_init_guile with call to
5731 scm_with_guile.
5732
5733 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5734
5735 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5736 in call to TYPE_CODE macro.
5737
5738 2014-03-10 Jerome Guitton <guitton@adacore.com>
5739
5740 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5741 Resolve tagged types to full view.
5742
5743 2014-03-10 Hui Zhu <hui@codesourcery.com>
5744
5745 * target.h (target_insert_breakpoint): Remove "hardware" from its
5746 comments.
5747
5748 2014-03-07 Doug Evans <dje@google.com>
5749
5750 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5751
5752 2014-03-07 Doug Evans <dje@google.com>
5753
5754 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5755 Remove unused local comp_dir_attr. Assert exactly one of
5756 stub_comp_unit_die, stub_comp_dir is non-NULL.
5757
5758 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5759
5760 * target.h (complete_target_initialization, add_target):
5761 Add comment.
5762
5763 2014-03-07 Pedro Alves <palves@redhat.com>
5764
5765 * go32-nat.c: Include inf-child.h.
5766 (go32_ops): Delete global.
5767 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5768 Delete methods.
5769 (go32_create_inferior): Push the passed in target pointer instead
5770 of referencing go32_ops.
5771 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5772 (go32_target): New function, based on init_go32_ops, but inherit
5773 inf_child_target.
5774 (_initialize_go32_nat): Use go32_target. Move parts of
5775 init_go32_ops here.
5776
5777 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5778
5779 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5780 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5781 SYMBOL_VALUE_ADDRESS.
5782 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5783
5784 2014-03-06 Yao Qi <yao@codesourcery.com>
5785
5786 * breakpoint.c (get_tracepoint_by_number): Remove argument
5787 optional_p. All callers updated. Adjust comments. Update
5788 output message.
5789 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5790
5791 2014-03-06 Yao Qi <yao@codesourcery.com>
5792
5793 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5794 early if get_number returns zero. Use 'p' instead of 'args'.
5795
5796 2014-03-06 Yao Qi <yao@codesourcery.com>
5797
5798 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5799 message.
5800
5801 2014-03-06 Yao Qi <yao@codesourcery.com>
5802
5803 PR breakpoints/16508
5804 * tracepoint.c (check_trace_running): New function.
5805 (trace_find_command): Move code to check_trace_running and
5806 call check_trace_running.
5807 (trace_find_pc_command): Likewise.
5808 (trace_find_tracepoint_command): Likewise.
5809 (trace_find_line_command): Likewise.
5810 (trace_find_range_command): Likewise.
5811 * tracepoint.h (check_trace_running): Likewise.
5812 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5813
5814 2014-03-06 Yao Qi <yao@codesourcery.com>
5815
5816 * target.h (struct target_ops) <to_traceframe_info>: Use
5817 TARGET_DEFAULT_NORETURN (tcomplain ()).
5818 * target-delegates.c: Regenerated.
5819
5820 2014-03-05 Pedro Alves <palves@redhat.com>
5821
5822 PR gdb/16575
5823 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5824 void. Update comment.
5825 (dcache_xfer_memory): Delete.
5826 (dcache_read_memory_partial): New, based on the read bits of
5827 dcache_xfer_memory.
5828 (dcache_update): Add status parameter. Use ULONGEST for len, and
5829 adjust. Discard cache lines if the reason for the update was
5830 error.
5831 * dcache.h (dcache_xfer_memory): Delete declaration.
5832 (dcache_read_memory_partial): New declaration.
5833 (dcache_update): Update prototype.
5834 * target.c (raw_memory_xfer_partial): Update the dcache here.
5835 (memory_xfer_partial_1): Don't handle dcache writes here.
5836
5837 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5838
5839 * remote-sim.c (gdbsim_load): Add const to prog.
5840
5841 2014-03-03 Tom Tromey <tromey@redhat.com>
5842
5843 * elfread.c (probe_key): Change to bfd_data.
5844 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5845 now per-BFD, not per-objfile.
5846 * stap-probe.c (stap_probe_destroy): Update comment.
5847 (handle_stap_probe): Allocate on the per-BFD obstack.
5848
5849 2014-03-03 Tom Tromey <tromey@redhat.com>
5850
5851 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5852 * breakpoint.c (create_longjmp_master_breakpoint): Use
5853 get_probe_address.
5854 (add_location_to_breakpoint, bkpt_probe_insert_location)
5855 (bkpt_probe_remove_location): Update.
5856 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5857 * elfread.c (elf_symfile_relocate_probe): Remove.
5858 (elf_probe_fns): Update.
5859 (insert_exception_resume_breakpoint): Change type of "probe"
5860 parameter to bound_probe.
5861 (check_exception_resume): Update.
5862 * objfiles.c (objfile_relocate1): Don't relocate probes.
5863 * probe.c (bound_probe_s): New typedef.
5864 (parse_probes): Use get_probe_address. Set sal's objfile.
5865 (find_probe_by_pc): Return a bound_probe.
5866 (collect_probes): Return a VEC(bound_probe_s).
5867 (compare_probes): Update.
5868 (gen_ui_out_table_header_info): Change type of "probes"
5869 parameter. Update.
5870 (info_probes_for_ops): Update.
5871 (get_probe_address): New function.
5872 (probe_safe_evaluate_at_pc): Update.
5873 * probe.h (struct probe_ops) <get_probe_address>: New field.
5874 <set_semaphore, clear_semaphore>: Add objfile parameter.
5875 (struct probe) <objfile>: Remove field.
5876 <arch>: New field.
5877 <address>: Update comment.
5878 (struct bound_probe): New.
5879 (find_probe_by_pc): Return a bound_probe.
5880 (get_probe_address): Declare.
5881 * solib-svr4.c (struct probe_and_action) <address>: New field.
5882 (hash_probe_and_action, equal_probe_and_action): Update.
5883 (register_solib_event_probe): Add address parameter.
5884 (solib_event_probe_at): Update.
5885 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5886 get_probe_address.
5887 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5888 (stap_get_probe_address): New function.
5889 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5890 (compile_probe_arg): Update.
5891 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5892 address.
5893 (handle_stap_probe): Don't relocate the probe.
5894 (stap_relocate): Remove.
5895 (stap_gen_info_probes_table_values): Update.
5896 (stap_probe_ops): Remove stap_relocate.
5897 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5898 (debug_sym_probe_fns): Update.
5899 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5900 * symtab.c (init_sal): Use memset.
5901 * symtab.h (struct symtab_and_line) <objfile>: New field.
5902 * tracepoint.c (start_tracing, stop_tracing): Update.
5903
5904 2014-03-03 Tom Tromey <tromey@redhat.com>
5905
5906 * probe.h (parse_probes, find_probe_by_pc)
5907 (find_probes_in_objfile): Fix comments.
5908
5909 2014-03-02 Doug Evans <xdje42@gmail.com>
5910
5911 * infrun.c (handle_signal_stop): Replace test for
5912 TARGET_WAITKIND_STOPPED with an assert.
5913
5914 2014-03-02 Doug Evans <xdje42@gmail.com>
5915
5916 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5917
5918 2014-03-02 Doug Evans <xdje42@gmail.com>
5919
5920 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5921
5922 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5923
5924 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5925
5926 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5927
5928 * i386obsd-nat.c: Include "obsd-nat.h".
5929 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5930 add_target.
5931 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5932
5933 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5934
5935 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5936
5937 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5938
5939 * mips64obsd-nat.c: Include "obsd-nath".
5940 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5941 add_target
5942 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5943
5944 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5945
5946 * amd64obsd-nat.c: Include "obsd-nat,h.
5947 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5948 add_target.
5949 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5950
5951 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5952
5953 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5954 (find_overload_match): Update call to find_oload_champ.
5955 (find_oload_champ_namespace_loop): Likewise
5956
5957 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5958
5959 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5960
5961 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5962 * config/sparc/obsd64.mh: New file.
5963 * sparc64obsd-nat.c: New file.
5964
5965 * obsd-nat.h: New file.
5966 * obsd-nat.c: New file.
5967 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5968 (ALLDEPFILES): Add obsd-nat.c.
5969
5970 2014-02-28 Tom Tromey <tromey@redhat.com>
5971
5972 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5973 * cli-out.h (cli_ui_out_impl): Now const.
5974 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5975 * ui-out.c (struct ui_out) <impl>: Now const.
5976 (default_ui_out_impl): Now const.
5977 (ui_out_new): Make 'impl' parameter const.
5978 * ui-out.h (ui_out_new): Update.
5979
5980 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5981
5982 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5983
5984 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5985
5986 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5987
5988 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 Additional PR 8882 fix.
5991 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5992
5993 2014-02-27 Pedro Alves <palves@redhat.com>
5994
5995 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5996 isn't set.
5997
5998 2014-02-27 Pedro Alves <palves@redhat.com>
5999
6000 PR 12702
6001 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6002 * nat/linux-waitpid.c: Include string.h.
6003 (status_to_str): Moved here and made extern.
6004 * nat/linux-waitpid.h (status_to_str): New declaration.
6005
6006 2014-02-27 Hui Zhu <hui@codesourcery.com>
6007
6008 PR 12702
6009 * infrun.c (ptid_match): Move ...
6010 * common/ptid.c (ptid_match): ... here.
6011 * inferior.h (ptid_match): Move ...
6012 * common/ptid.h (ptid_match): ... here.
6013
6014 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6015
6016 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6017 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6018 gdb_target_obs.
6019
6020 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6021
6022 * obsd-tdep.c (obsd_auxv_parse): New function.
6023 (obsd_init_abi): Set auxv_parse.
6024
6025 * gdbarch.sh (auxv_parse): New.
6026 * gdbarch.h: Regenerated.
6027 * gdbarch.c: Regenerated.
6028 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6029
6030 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6031
6032 * guile/scm-value.c (gdbscm_history_append_x): New function.
6033 (value_functions): Add it.
6034
6035 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6036
6037 * dwarf2read.c (attr_value_as_address): New function.
6038 (dwarf2_find_base_address, read_call_site_scope): Use
6039 attr_value_as_address in place of DW_ADDR.
6040 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6041 the low and high addresses. Slight rework of the handling
6042 of the high pc being a constant form, and limit it to
6043 DWARF verson 4 or higher.
6044 (dwarf2_record_block_ranges): Likewise.
6045 (read_partial_die): Likewise.
6046 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6047
6048 2014-02-26 Tom Tromey <tromey@redhat.com>
6049
6050 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6051
6052 2014-02-26 Tom Tromey <tromey@redhat.com>
6053
6054 * elfread.c (elf_read_minimal_symbols): Return early if
6055 minimal symbols have already been read. Add "ei" parameter.
6056 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6057 * minsyms.c (prim_record_minimal_symbol_full): Update.
6058 * objfiles.h (struct objstats) <n_minsyms>: Move...
6059 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6060 * symmisc.c (print_objfile_statistics): Update.
6061
6062 2014-02-26 Tom Tromey <tromey@redhat.com>
6063
6064 * elfread.c (elf_read_minimal_symbols): New function, from
6065 elf_symfile_read.
6066 (elf_symfile_read): Call it.
6067
6068 2014-02-26 Tom Tromey <tromey@redhat.com>
6069
6070 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6071 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6072 (lookup_minimal_symbol_solib_trampoline)
6073 (lookup_minimal_symbol_by_pc_section_1)
6074 (lookup_minimal_symbol_and_objfile): Update.
6075 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6076 Don't allocate a minimal symbol if minsyms have already been read.
6077 (build_minimal_symbol_hash_tables): Update.
6078 (install_minimal_symbols): Do nothing if minsyms already read.
6079 Use the per-BFD obstack.
6080 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6081 * objfiles.c (allocate_objfile): Call
6082 terminate_minimal_symbol_table later.
6083 (have_minimal_symbols): Update.
6084 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6085 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6086 Move from struct objfile.
6087 <minsyms_read>: New field.
6088 (struct objfile) <msymbols, minimal_symbol_count,
6089 msymbol_hash, msymbol_demangled_hash>: Move.
6090 (ALL_OBJFILE_MSYMBOLS): Update.
6091 * symfile.c (read_symbols): Set minsyms_read.
6092 (reread_symbols): Update.
6093 * symmisc.c (dump_objfile, dump_msymbols): Update.
6094
6095 2014-02-26 Tom Tromey <tromey@redhat.com>
6096
6097 * minsyms.c (msymbols_sort): Remove.
6098 * minsyms.h (msymbols_sort): Remove.
6099 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6100 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6101 * elfread.c (elf_symtab_read): Don't add section offsets.
6102 * xcoffread.c (record_minimal_symbol): Don't add section offset
6103 to minimal symbol address.
6104 * somread.c (text_offset, data_offset): Remove.
6105 (som_symtab_read): Don't add section offsets to minimal symbol
6106 addresses.
6107 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6108 Don't add section offsets to minimal symbols.
6109 * coffread.c (coff_symtab_read): Don't add section offsets
6110 to minimal symbol addresses.
6111 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6112 to minimal symbol addresses.
6113 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6114 section offset to minimal symbol addresses.
6115 * mdebugread.c (parse_partial_symbols): Don't add section
6116 offset to minimal symbol addresses.
6117 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6118 offset to minimal symbol addresses.
6119
6120 2014-02-26 Tom Tromey <tromey@redhat.com>
6121
6122 * ada-lang.c (ada_main_name): Update.
6123 (ada_add_standard_exceptions): Update.
6124 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6125 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6126 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6127 * auxv.c (ld_so_xfer_auxv): Update.
6128 * avr-tdep.c (avr_scan_prologue): Update.
6129 * ax-gdb.c (gen_var_ref): Update.
6130 * blockframe.c (get_pc_function_start)
6131 (find_pc_partial_function_gnu_ifunc): Update.
6132 * breakpoint.c (create_overlay_event_breakpoint)
6133 (create_longjmp_master_breakpoint)
6134 (create_std_terminate_master_breakpoint)
6135 (create_exception_master_breakpoint): Update.
6136 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6137 * c-valprint.c (c_val_print): Update.
6138 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6139 * common/agent.c (agent_look_up_symbols): Update.
6140 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6141 * dwarf2loc.c (call_site_to_target_addr): Update.
6142 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6143 * elfread.c (elf_gnu_ifunc_record_cache)
6144 (elf_gnu_ifunc_resolve_by_got): Update.
6145 * findvar.c (default_read_var_value): Update.
6146 * frame.c (inside_main_func): Update.
6147 * frv-tdep.c (frv_frame_this_id): Update.
6148 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6149 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6150 Update.
6151 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6152 (hppa_hpux_find_dummy_bpaddr): Update.
6153 * hppa-tdep.c (hppa_symbol_address): Update.
6154 * infcmd.c (until_next_command): Update.
6155 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6156 Update.
6157 * linespec.c (minsym_found, add_minsym): Update.
6158 * linux-nat.c (get_signo): Update.
6159 * linux-thread-db.c (inferior_has_bug): Update.
6160 * m32c-tdep.c (m32c_return_value)
6161 (m32c_m16c_address_to_pointer): Update.
6162 * m32r-tdep.c (m32r_frame_this_id): Update.
6163 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6164 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6165 * maint.c (maintenance_translate_address): Update.
6166 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6167 (frob_address): New function.
6168 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6169 frob_address. Rename parameter to "pc_in".
6170 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6171 addresses.
6172 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6173 Update.
6174 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6175 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6176 * objc-lang.c (find_objc_msgsend): Update.
6177 * objfiles.c (objfile_relocate1): Update.
6178 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6179 * p-valprint.c (pascal_val_print): Update.
6180 * parse.c (write_exp_msymbol): Update.
6181 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6182 (ppc_elfv2_skip_entrypoint): Update.
6183 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6184 * printcmd.c (build_address_symbolic, msym_info)
6185 (address_info): Update.
6186 * proc-service.c (ps_pglobal_lookup): Update.
6187 * psymtab.c (find_pc_sect_psymtab_closer)
6188 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6189 Change msymbol parameter to bound_minimal_symbol.
6190 * ravenscar-thread.c (get_running_thread_id): Update.
6191 * remote.c (remote_check_symbols): Update.
6192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6193 address.
6194 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6195 * solib-dsbt.c (lm_base): Update.
6196 * solib-frv.c (lm_base, main_got): Update.
6197 * solib-irix.c (locate_base): Update.
6198 * solib-som.c (som_solib_create_inferior_hook)
6199 (link_map_start): Update.
6200 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6201 * solib-svr4.c (elf_locate_base, enable_break): Update.
6202 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6203 (flush_ea_cache): Update.
6204 * stabsread.c (define_symbol, scan_file_globals): Update.
6205 * stack.c (find_frame_funname): Update.
6206 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6207 (debug_qf_find_pc_sect_symtab): Update.
6208 * symfile.c (simple_read_overlay_table)
6209 (simple_overlay_update): Update.
6210 * symfile.h (struct quick_symbol_functions)
6211 <find_pc_sect_symtab>: Change type of msymbol to
6212 bound_minimal_symbol.
6213 * symmisc.c (dump_msymbols): Update.
6214 * symtab.c (find_pc_sect_symtab_via_partial)
6215 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6216 (search_symbols, print_msymbol_info): Update.
6217 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6218 (MSYMBOL_VALUE_ADDRESS): Redefine.
6219 (BMSYMBOL_VALUE_ADDRESS): New macro.
6220 * tracepoint.c (scope_info): Update.
6221 * tui/tui-disasm.c (tui_find_disassembly_address)
6222 (tui_get_begin_asm_address): Update.
6223 * valops.c (find_function_in_inferior): Update.
6224 * value.c (value_static_field, value_fn_field): Update.
6225
6226 2014-02-26 Tom Tromey <tromey@redhat.com>
6227
6228 * ada-lang.c (ada_update_initial_language): Update.
6229 (ada_main_name, ada_has_this_exception_support): Update.
6230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6232 * arm-tdep.c (arm_skip_stub): Update.
6233 * auxv.c (ld_so_xfer_auxv): Update.
6234 * avr-tdep.c (avr_scan_prologue): Update.
6235 * ax-gdb.c (gen_var_ref): Update.
6236 * breakpoint.c (struct breakpoint_objfile_data)
6237 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6238 type to bound_minimal_symbol.
6239 (create_overlay_event_breakpoint)
6240 (create_longjmp_master_breakpoint)
6241 (create_std_terminate_master_breakpoint)
6242 (create_exception_master_breakpoint): Update.
6243 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6244 * c-exp.y (classify_name): Update.
6245 * coffread.c (coff_symfile_read): Update.
6246 * common/agent.c (agent_look_up_symbols): Update.
6247 * d-lang.c (d_main_name): Update.
6248 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6249 * dec-thread.c (enable_dec_thread): Update.
6250 * dwarf2loc.c (call_site_to_target_addr): Update.
6251 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6252 * eval.c (evaluate_subexp_standard): Update.
6253 * findvar.c (struct minsym_lookup_data) <result>: Change type
6254 to bound_minimal_symbol.
6255 <objfile>: Remove.
6256 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6257 * frame.c (inside_main_func): Update.
6258 * frv-tdep.c (frv_frame_this_id): Update.
6259 * gcore.c (call_target_sbrk): Update.
6260 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6261 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6262 Update.
6263 * go-lang.c (go_main_name): Update.
6264 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6265 (hppa_hpux_find_import_stub_for_addr): Update.
6266 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6267 Update. Change return type.
6268 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6269 type.
6270 * jit.c (jit_breakpoint_re_set_internal): Update.
6271 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6272 Update.
6273 * linux-nat.c (get_signo): Update.
6274 * linux-thread-db.c (inferior_has_bug): Update
6275 * m32c-tdep.c (m32c_return_value)
6276 (m32c_m16c_address_to_pointer): Update.
6277 * m32r-tdep.c (m32r_frame_this_id): Update.
6278 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6279 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6280 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6281 lookup_minimal_symbol. Change return type.
6282 (lookup_minimal_symbol): Remove.
6283 (lookup_bound_minimal_symbol): Update.
6284 (lookup_minimal_symbol_text): Change return type.
6285 (lookup_minimal_symbol_solib_trampoline): Change return type.
6286 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6287 (lookup_minimal_symbol_solib_trampoline): Change return type.
6288 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6289 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6290 (value_nsstring, find_imps): Update.
6291 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6292 * p-lang.c (pascal_main_name): Update.
6293 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6294 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6295 * proc-service.c (ps_pglobal_lookup): Update.
6296 * ravenscar-thread.c (get_running_thread_msymbol): Change
6297 return type.
6298 (has_ravenscar_runtime, get_running_thread_id): Update.
6299 * remote.c (remote_check_symbols): Update.
6300 * sol-thread.c (ps_pglobal_lookup): Update.
6301 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6302 * solib-dsbt.c (lm_base): Update.
6303 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6304 Update.
6305 * solib-irix.c (locate_base): Update.
6306 * solib-som.c (som_solib_create_inferior_hook)
6307 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6308 Update.
6309 * solib-spu.c (spu_enable_break): Update.
6310 * solib-svr4.c (elf_locate_base, enable_break): Update.
6311 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6312 (flush_ea_cache): Update.
6313 * stabsread.c (define_symbol): Update.
6314 * symfile.c (simple_read_overlay_table): Update.
6315 * symtab.c (find_pc_sect_line): Update.
6316 * tracepoint.c (scope_info): Update.
6317 * tui-disasm.c (tui_get_begin_asm_address): Update.
6318 * value.c (value_static_field): Update.
6319
6320 2014-02-26 Tom Tromey <tromey@redhat.com>
6321
6322 * minsyms.c (prim_record_minimal_symbol_full): Use
6323 SET_MSYMBOL_VALUE_ADDRESS.
6324 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6325 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6326 SET_MSYMBOL_VALUE_ADDRESS.
6327 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6328 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6329
6330 2014-02-26 Tom Tromey <tromey@redhat.com>
6331
6332 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6333 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6334 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6335 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6336 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6337 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6338 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6339 * ada-lang.c (ada_main_name): Update.
6340 (ada_lookup_simple_minsym): Update.
6341 (ada_make_symbol_completion_list): Update.
6342 (ada_add_standard_exceptions): Update.
6343 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6344 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6345 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6346 * arm-tdep.c (skip_prologue_function): Update.
6347 (arm_skip_stack_protector, arm_skip_stub): Update.
6348 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6349 (arm_wince_skip_main_prologue): Update.
6350 * auxv.c (ld_so_xfer_auxv): Update.
6351 * avr-tdep.c (avr_scan_prologue): Update.
6352 * ax-gdb.c (gen_var_ref): Update.
6353 * block.c (call_site_for_pc): Update.
6354 * blockframe.c (get_pc_function_start): Update.
6355 (find_pc_partial_function_gnu_ifunc): Update.
6356 * breakpoint.c (create_overlay_event_breakpoint): Update.
6357 (create_longjmp_master_breakpoint): Update.
6358 (create_std_terminate_master_breakpoint): Update.
6359 (create_exception_master_breakpoint): Update.
6360 (resolve_sal_pc): Update.
6361 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6362 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6363 Update.
6364 * c-valprint.c (c_val_print): Update.
6365 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6366 * coffread.c (coff_symfile_read): Update.
6367 * common/agent.c (agent_look_up_symbols): Update.
6368 * dbxread.c (find_stab_function_addr): Update.
6369 (end_psymtab): Update.
6370 * dwarf2loc.c (call_site_to_target_addr): Update.
6371 (func_verify_no_selftailcall): Update.
6372 (tailcall_dump): Update.
6373 (call_site_find_chain_1): Update.
6374 (dwarf_expr_reg_to_entry_parameter): Update.
6375 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6376 (elf_gnu_ifunc_resolve_by_got): Update.
6377 * f-valprint.c (info_common_command): Update.
6378 * findvar.c (read_var_value): Update.
6379 * frame.c (get_prev_frame_1): Update.
6380 (inside_main_func): Update.
6381 * frv-tdep.c (frv_skip_main_prologue): Update.
6382 (frv_frame_this_id): Update.
6383 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6384 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6385 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6386 (gnuv3_skip_trampoline): Update.
6387 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6388 (hppa64_hpux_in_solib_call_trampoline): Update.
6389 (hppa_hpux_skip_trampoline_code): Update.
6390 (hppa64_hpux_search_dummy_call_sequence): Update.
6391 (hppa_hpux_find_import_stub_for_addr): Update.
6392 (hppa_hpux_find_dummy_bpaddr): Update.
6393 * hppa-tdep.c (hppa_symbol_address)
6394 (hppa_lookup_stub_minimal_symbol): Update.
6395 * i386-tdep.c (i386_skip_main_prologue): Update.
6396 (i386_pe_skip_trampoline_code): Update.
6397 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6398 * infcall.c (get_function_name): Update.
6399 * infcmd.c (until_next_command): Update.
6400 * jit.c (jit_breakpoint_re_set_internal): Update.
6401 (jit_inferior_init): Update.
6402 * linespec.c (minsym_found): Update.
6403 (add_minsym): Update.
6404 * linux-fork.c (info_checkpoints_command): Update.
6405 * linux-nat.c (get_signo): Update.
6406 * linux-thread-db.c (inferior_has_bug): Update.
6407 * m32c-tdep.c (m32c_return_value): Update.
6408 (m32c_m16c_address_to_pointer): Update.
6409 (m32c_m16c_pointer_to_address): Update.
6410 * m32r-tdep.c (m32r_frame_this_id): Update.
6411 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6412 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6413 * maint.c (maintenance_translate_address): Update.
6414 * minsyms.c (add_minsym_to_hash_table): Update.
6415 (add_minsym_to_demangled_hash_table): Update.
6416 (msymbol_objfile): Update.
6417 (lookup_minimal_symbol): Update.
6418 (iterate_over_minimal_symbols): Update.
6419 (lookup_minimal_symbol_text): Update.
6420 (lookup_minimal_symbol_by_pc_name): Update.
6421 (lookup_minimal_symbol_solib_trampoline): Update.
6422 (lookup_minimal_symbol_by_pc_section_1): Update.
6423 (lookup_minimal_symbol_and_objfile): Update.
6424 (prim_record_minimal_symbol_full): Update.
6425 (compare_minimal_symbols): Update.
6426 (compact_minimal_symbols): Update.
6427 (build_minimal_symbol_hash_tables): Update.
6428 (install_minimal_symbols): Update.
6429 (terminate_minimal_symbol_table): Update.
6430 (find_solib_trampoline_target): Update.
6431 (minimal_symbol_upper_bound): Update.
6432 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6433 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6434 (mips_skip_pic_trampoline_code): Update.
6435 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6436 * objc-lang.c (selectors_info): Update.
6437 (classes_info): Update.
6438 (find_methods): Update.
6439 (find_imps): Update.
6440 (find_objc_msgsend): Update.
6441 * objfiles.c (objfile_relocate1): Update.
6442 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6444 * p-valprint.c (pascal_val_print): Update.
6445 * parse.c (write_exp_msymbol): Update.
6446 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6447 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6448 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6449 * printcmd.c (build_address_symbolic): Update.
6450 (sym_info): Update.
6451 (address_info): Update.
6452 * proc-service.c (ps_pglobal_lookup): Update.
6453 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6454 (find_pc_sect_psymtab): Update.
6455 * python/py-framefilter.c (py_print_frame): Update.
6456 * ravenscar-thread.c (get_running_thread_id): Update.
6457 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6458 Update.
6459 * remote.c (remote_check_symbols): Update.
6460 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6461 (rs6000_skip_trampoline_code): Update.
6462 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6463 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6464 * solib-dsbt.c (lm_base): Update.
6465 * solib-frv.c (lm_base): Update.
6466 (main_got): Update.
6467 * solib-irix.c (locate_base): Update.
6468 * solib-som.c (som_solib_create_inferior_hook): Update.
6469 (som_solib_desire_dynamic_linker_symbols): Update.
6470 (link_map_start): Update.
6471 * solib-spu.c (spu_enable_break): Update.
6472 (ocl_enable_break): Update.
6473 * solib-svr4.c (elf_locate_base): Update.
6474 (enable_break): Update.
6475 * spu-tdep.c (spu_get_overlay_table): Update.
6476 (spu_catch_start): Update.
6477 (flush_ea_cache): Update.
6478 * stabsread.c (define_symbol): Update.
6479 (scan_file_globals): Update.
6480 * stack.c (find_frame_funname): Update.
6481 (frame_info): Update.
6482 * symfile.c (simple_read_overlay_table): Update.
6483 (simple_overlay_update): Update.
6484 * symmisc.c (dump_msymbols): Update.
6485 * symtab.c (fixup_section): Update.
6486 (find_pc_sect_line): Update.
6487 (skip_prologue_sal): Update.
6488 (search_symbols): Update.
6489 (print_msymbol_info): Update.
6490 (rbreak_command): Update.
6491 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6492 (completion_list_objc_symbol): Update.
6493 (default_make_symbol_completion_list_break_on): Update.
6494 * tracepoint.c (scope_info): Update.
6495 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6496 (tui_get_begin_asm_address): Update.
6497 * valops.c (find_function_in_inferior): Update.
6498 * value.c (value_static_field): Update.
6499 (value_fn_field): Update.
6500
6501 2014-02-26 Tom Tromey <tromey@redhat.com>
6502
6503 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6504 bound minimal symbols. Move code that knows about minsym
6505 table layout...
6506 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6507 function.
6508 * minsyms.h (minimal_symbol_upper_bound): Declare.
6509 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6510 minimal_symbol_upper_bound.
6511
6512 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6513
6514 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6515 Use the type's name if its basic type does not have a tag.
6516
6517 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6518
6519 * dwarf2read.c (read_subrange_type): Add comment.
6520
6521 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6522
6523 * dwarf2read.c (update_enumeration_type_from_children): New
6524 function, mostly extracted from process_structure_scope.
6525 (read_enumeration_type): Call update_enumeration_type_from_children.
6526 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6527 and flag_flag_enum fields.
6528
6529 2014-02-26 Pedro Alves <palves@redhat.com>
6530
6531 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6532 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6533 to_xfer_partial method.
6534
6535 2014-02-26 Pedro Alves <palves@redhat.com>
6536
6537 * target.c (complete_target_initialization): Don't install
6538 default_xfer_partial as to_xfer_partial hook.
6539 (nomemory): Delete.
6540 (update_current_target): Don't INHERIT nor de_fault
6541 deprecated_xfer_memory. Delete de_fault macro.
6542 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6543 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6544 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6545 field.
6546
6547 2014-02-26 Pedro Alves <palves@redhat.com>
6548
6549 * go32-nat.c (my_write_child): New function.
6550 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6551 (go32_xfer_partial): New function.
6552 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6553 Instead install a to_xfer_partial hook.
6554
6555 2014-02-26 Pedro Alves <palves@redhat.com>
6556
6557 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6558 to_xfer_partial helper. Rewrite.
6559 (procfs_xfer_partial): New function.
6560 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6561 Install a to_xfer_partial hook.
6562
6563 2014-02-26 Pedro Alves <palves@redhat.com>
6564
6565 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6566 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6567 (m32r_xfer_partial): New function.
6568 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6569 Install a to_xfer_partial hook.
6570
6571 2014-02-26 Pedro Alves <palves@redhat.com>
6572
6573 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6574 helper.
6575 (mips_xfer_partial): New function.
6576 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6577 hook. Install a to_xfer_partial hook.
6578
6579 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6580
6581 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6582 * gdbtypes.c (create_array_type_with_stride): New function,
6583 renaming create_array_type, but with an added parameter
6584 called "bit_stride".
6585 (create_array_type): Re-implement using
6586 create_array_type_with_stride.
6587 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6588 and DW_AT_bit_stride attributes.
6589
6590 2014-02-26 Pedro Alves <palves@redhat.com>
6591
6592 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6593 task-specific breakpoints.
6594
6595 2014-02-25 Pedro Alves <palves@redhat.com>
6596
6597 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6598 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6599
6600 2014-02-25 Stan Shebs <stan@codesourcery.com>
6601
6602 * defs.h: Annotate comments for Doxygen.
6603
6604 2014-02-25 Tom Tromey <tromey@redhat.com>
6605
6606 * target.h (target_ignore): Don't declare.
6607 * target.c (target_ignore): Remove.
6608
6609 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6610
6611 PR gdb/16626
6612 * auto-load.c (auto_load_objfile_script_1): Change filename to
6613 debugfile.
6614
6615 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6616
6617 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6618 documentation. Adjust prototype to match the target_ops
6619 to_xfer_partial method. Adjust implementation accordingly.
6620
6621 2014-02-25 Hui Zhu <hui@codesourcery.com>
6622
6623 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6624 to_traceframe_info.
6625
6626 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6627
6628 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6629 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6630 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6631 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6632 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6633 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6634 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6635 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6636 New constants.
6637 (rl78_register_type): Use a data pointer type for SP and
6638 new pseudo registers mentioned above. Use a 16 bit integer
6639 type for all other register pairs.
6640 (rl78_register_name, rl78_g10_register_name): Update for
6641 new pseudo registers.
6642 (rl78_pseudo_register_read): Likewise.
6643 (rl78_pseudo_register_write): Likewise.
6644 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6645 to the newly added pseudo registers.
6646
6647 2014-02-24 Doug Evans <dje@google.com>
6648
6649 * value.c (record_latest_value): Fix comment.
6650 * printcmd.c (print_command_1): Remove code to handle -1 return from
6651 record_latest_value.
6652
6653 2014-02-24 Pedro Alves <palves@redhat.com>
6654
6655 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6656 deprecated_xfer_memory hook.
6657 (procfs_xfer_partial): Call procfs_xfer_memory instead
6658 of the deprecated_xfer_memory target hook.
6659 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6660 helper.
6661
6662 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6663
6664 * windows-nat.c (windows_xfer_shared_libraries): Return
6665 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6666 requested object is TARGET_OBJECT_LIBRARIES.
6667
6668 2014-02-24 Yao Qi <yao@codesourcery.com>
6669
6670 * target.h (enum target_xfer_status)
6671 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6672 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6673 explicitly. New.
6674 * corefile.c (memory_error_message): User updated.
6675 * exec.c (section_table_read_available_memory): Likewise.
6676 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6677 * target.c (target_xfer_status_to_string): Likewise.
6678 (raw_memory_xfer_partial): Likewise.
6679 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6680 * valops.c (read_value_memory): Likewise.
6681 * exec.h: Update comments.
6682
6683 2014-02-24 Yao Qi <yao@codesourcery.com>
6684
6685 * target.c (target_xfer_status_to_string): Rename argument err
6686 to status.
6687 * target.h (target_xfer_status_to_string): Update declaration.
6688 Replace target_xfer_error_to_string with
6689 target_xfer_status_to_string in comment.
6690
6691 2014-02-24 Yao Qi <yao@codesourcery.com>
6692
6693 * mips-linux-nat.c (super_close): Update its type.
6694 (mips_linux_close): Pass 'self' to super_close.
6695
6696 2014-02-24 Yao Qi <yao@codesourcery.com>
6697
6698 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6699 * corefile.c (read_memory): Adjusted.
6700 * target.c (target_write_with_progress): Adjusted.
6701
6702 2014-02-23 Yao Qi <yao@codesourcery.com>
6703
6704 Revert two patches:
6705
6706 2013-10-25 Yao Qi <yao@codesourcery.com>
6707
6708 * remote.c (remote_traceframe_info): Return early if
6709 traceframe is not selected.
6710
6711 2013-07-19 Yao Qi <yao@codesourcery.com>
6712
6713 * target.c (update_current_target): Change the default action
6714 of 'to_traceframe_info' from tcomplain to return_zero.
6715 * target.h (struct target_ops) <to_traceframe_info>: Add more
6716 comments.
6717
6718 2014-02-23 Yao Qi <yao@codesourcery.com>
6719
6720 * valops.c (read_value_memory): Rewrite it. Call
6721 target_xfer_partial in a loop.
6722 * exec.h (section_table_available_memory): Remove declaration.
6723 Move comments to ...
6724 * exec.c (section_table_available_memory): ... here. Make it
6725 static.
6726
6727 2014-02-23 Yao Qi <yao@codesourcery.com>
6728
6729 * exec.c (section_table_read_available_memory): New function.
6730 * exec.h (section_table_read_available_memory): Declare.
6731 * ctf.c (ctf_xfer_partial): Call
6732 section_table_read_available_memory.
6733 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6734
6735 2014-02-23 Yao Qi <yao@codesourcery.com>
6736
6737 * ctf.c (ctf_xfer_partial): Move code to ...
6738 * exec.c (exec_read_partial_read_only): ... it. New function.
6739 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6740 * tracefile.c: Include "exec.h".
6741 * exec.h (exec_read_partial_read_only): Declare.
6742
6743 2014-02-23 Yao Qi <yao@codesourcery.com>
6744
6745 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6746 (tfile_has_memory): Remove.
6747 (init_tfile_ops): Don't set fields to_has_all_memory and
6748 to_has_memory of tfile_ops.
6749 * tracefile.c (tracefile_has_all_memory): New function.
6750 (tracefile_has_memory): New function.
6751 (init_tracefile_ops): Initialize fields to_has_all_memory and
6752 to_has_memory of 'ops'.
6753
6754 2014-02-23 Yao Qi <yao@codesourcery.com>
6755
6756 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6757 (ctf_thread_alive, ctf_get_trace_status): Remove.
6758 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6759 init_tracefile_ops.
6760 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6761 (tfile_has_stack, tfile_has_registers): Remove.
6762 (tfile_thread_alive): Remove.
6763 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6764 init_tracefile_ops.
6765 * tracefile.c (tracefile_has_stack): New function.
6766 (tracefile_has_registers): New function.
6767 (tracefile_thread_alive): New function.
6768 (tracefile_get_trace_status): New function.
6769 (init_tracefile_ops): New function.
6770 * tracefile.h (init_tracefile_ops): Declare.
6771
6772 2014-02-23 Yao Qi <yao@codesourcery.com>
6773
6774 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6775 (O_LARGEFILE): Likewise.
6776 (tfile_ops): Likewise.
6777 (TRACE_HEADER_SIZE): Likewise.
6778 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6779 (cur_data_size): Likewise.
6780 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6781 (tfile_close, tfile_files_info): Likewise.
6782 (tfile_get_trace_status): Likewise.
6783 (tfile_get_tracepoint_status): Likewise.
6784 (tfile_get_traceframe_address): Likewise.
6785 (tfile_trace_find, match_blocktype): Likewise.
6786 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6787 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6788 (tfile_get_trace_state_variable_value): Likewise.
6789 (tfile_has_all_memory, tfile_has_memory): Likewise.
6790 (tfile_has_stack, tfile_has_registers): Likewise.
6791 (tfile_thread_alive, build_traceframe_info): Likewise.
6792 (tfile_traceframe_info, init_tfile_ops): Likewise.
6793 (_initialize_tracepoint): Don't call init_tfile_ops
6794 and add_target_with_completer.
6795 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6796 exec.h, completer.h and filenames.h.
6797 (_initialize_tracefile_tfile): New function.
6798
6799 2014-02-23 Yao Qi <yao@codesourcery.com>
6800
6801 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6802 tracefile-tfile.o.
6803 (HFILES_NO_SRCDIR): Add tracefile.h.
6804 * ctf.c: Include "tracefile.h".
6805 * tracefile.h: New file.
6806 * tracefile.c: New file
6807 * tracefile-tfile.c: New file.
6808 * tracepoint.c: Include "tracefile.h".
6809 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6810 (stop_reason_names): Add const.
6811 (trace_file_writer_xfree): Move it to tracefile.c.
6812 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6813 (trace_save_ctf): Likewise.
6814 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6815 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6816 (tfile_write_header, tfile_write_regblock_type): Likewise.
6817 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6818 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6819 (tfile_write_raw_data, tfile_end): Likewise.
6820 (tfile_trace_file_writer_new): Likewise.
6821 (free_uploaded_tp): Make it extern.
6822 (free_uploaded_tsv): Make it extern.
6823 (_initialize_tracepoint): Move code to register command 'tsave'
6824 to tracefile.c.
6825 * tracepoint.h (stop_reason_names): Declare.
6826 (struct trace_frame_write_ops): Move it to tracefile.h.
6827 (struct trace_file_write_ops): Likewise.
6828 (struct trace_file_writer): Likewise.
6829 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6830
6831 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6832
6833 PR gdb/16594
6834 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6835 process name.
6836 (get_cores_used_by_process): New parameter num_cores, use it.
6837 (linux_xfer_osdata_processes): Pass num_cores to it.
6838 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6839 process name.
6840
6841 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6842
6843 * target.c (memory_xfer_partial): Fix length arg in call to
6844 breakpoint_xfer_memory.
6845
6846 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6847
6848 PR tdep/16397
6849 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6850 number comes after the + or - signs. Adjust length of register
6851 name to be extracted.
6852
6853 2014-02-20 Tom Tromey <tromey@redhat.com>
6854
6855 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6856 (ada_varobj_ops): Mark "extern".
6857
6858 2014-02-20 Tom Tromey <tromey@redhat.com>
6859
6860 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6861
6862 2014-02-20 Doug Evans <xdje42@gmail.com>
6863
6864 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6865 All callers updated.
6866 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6867 All callers updated.
6868 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6869 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6870
6871 2014-02-20 lin zuojian <manjian2006@gmail.com>
6872 Joel Brobecker <brobecker@adacore.com>
6873 Doug Evans <xdje42@gmail.com>
6874
6875 PR symtab/16581
6876 * dwarf2read.c (struct die_info): New member in_process.
6877 (reset_die_in_process): New function.
6878 (process_die): Set it at the start, reset when returning.
6879 (inherit_abstract_dies): Only call process_die if origin_child_die
6880 not already being processed.
6881
6882 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6883
6884 * windows-nat.c (handle_unload_dll): Add function documentation.
6885 (do_initial_windows_stuff): Add comment explaining why we wait
6886 until after inferior initialization has finished before
6887 processing all DLLs.
6888
6889 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6890
6891 * windows-nat.c (get_module_name): Delete.
6892 (windows_get_exec_module_filename): New function, mostly
6893 inspired from get_module_name.
6894 (windows_pid_to_exec_file): Replace call to get_module_name
6895 by call to windows_get_exec_module_filename.
6896
6897 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6898
6899 * windows-nat.c (handle_load_dll): Rewrite this function's
6900 introductory comment. Remove code using get_module_name
6901 to get the DLL's name.
6902
6903 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6904
6905 * windows-nat.c (get_windows_debug_event): Ignore
6906 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6907 if windows_initialization_done == 0.
6908 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6909 Adjust implementation to always load all DLLs.
6910 (do_initial_windows_stuff): Replace call to
6911 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6912
6913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6914
6915 * windows-nat.c (_initialize_windows_nat): Deprecate the
6916 "dll-symbols" command. Turn the "add-shared-symbol-files"
6917 and "assf" aliases into commands, and deprecate them as well.
6918 * NEWS: Add entry explaining that "dll-symbols" and its two
6919 aliases are now deprecated.
6920
6921 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6922
6923 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6924 new-line in debug string. Remove trailing spaces.
6925
6926 2014-02-19 Stan Shebs <stan@codesourcery.com>
6927
6928 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6929
6930 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6931
6932 * NEWS: Add entry for the new feature
6933 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6934 and class values.
6935
6936 2014-02-19 Stan Shebs <stan@codesourcery.com>
6937
6938 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6939
6940 2014-02-19 Pedro Alves <palves@redhat.com>
6941
6942 * common/ptid.h (struct ptid): Mention that process_stratum
6943 targets should prefer ptid.lwp.
6944
6945 2014-02-19 Pedro Alves <palves@redhat.com>
6946
6947 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6948 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6949 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6950 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6951 store remote thread ids rather than ptid.tid.
6952 (_initialize_remote): Adjust.
6953
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6955
6956 * target.c (target_get_unwinder): Rewrite.
6957 (target_get_tailcall_unwinder): Rewrite.
6958 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6959 (record_btrace_to_get_tailcall_unwinder): New function.
6960 (init_record_btrace_ops): Update.
6961 * target.h (struct target_ops) <to_get_unwinder,
6962 to_get_tailcall_unwinder>: Now function pointers. Use
6963 TARGET_DEFAULT_RETURN.
6964
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6966
6967 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6968 argument.
6969 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6970
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6972
6973 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6974 directly.
6975 * target-delegates.c: Rebuild.
6976 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6977 TARGET_DEFAULT_FUNC.
6978 * target.c (default_target_decr_pc_after_break): Rename from
6979 forward_target_decr_pc_after_break. Simplify.
6980 (target_decr_pc_after_break): Rely on delegation.
6981
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6983
6984 * target.c (update_current_target): Do not INHERIT to_doc or
6985 to_magic. Do not de_fault to_open or to_close.
6986
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6988
6989 * gcore.h (objfile_find_memory_regions): Declare.
6990 * gcore.c (objfile_find_memory_regions): No longer static. Add
6991 "self" argument.
6992 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6993 * exec.c: Include gcore.h.
6994 (exec_set_find_memory_regions): Remove.
6995 (exec_find_memory_regions): Remove.
6996 (exec_do_find_memory_regions): Remove.
6997 (init_exec_ops): Update.
6998 * defs.h (exec_set_find_memory_regions): Remove.
6999
7000 2014-02-19 Tom Tromey <tromey@redhat.com>
7001
7002 * target-delegates.c: Rebuild.
7003 * target.h (struct target_ops) <to_extra_thread_info,
7004 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7005 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7006 not 0, in TARGET_DEFAULT_RETURN.
7007
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7009
7010 * target.c (complete_target_initialization): Remove casts. Use
7011 return_zero_has_execution.
7012 (return_zero): Add "ignore" argument.
7013 (return_zero_has_execution): New function.
7014 (init_dummy_target): Remove casts. Use
7015 return_zero_has_execution.
7016
7017 2014-02-19 Tom Tromey <tromey@redhat.com>
7018
7019 * target.c (update_current_target): Update comments. Do not
7020 INHERIT to_stratum.
7021
7022 2014-02-19 Tom Tromey <tromey@redhat.com>
7023
7024 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7025 needed.
7026 * corelow.c (core_read_description): Delegate when needed.
7027 * remote.c (remote_read_description): Delegate when needed.
7028 * target-delegates.c: Rebuild.
7029 * target.c (target_read_description): Rewrite.
7030 * target.h (struct target_ops) <to_read_description>: Update
7031 comment. Use TARGET_DEFAULT_RETURN.
7032
7033 2014-02-19 Tom Tromey <tromey@redhat.com>
7034
7035 * target-delegates.c: Rebuild.
7036 * target.c (update_current_target): Don't inherit or default
7037 to_can_run.
7038 (find_default_run_target): Check against delegate_can_run.
7039 * target.h (struct target_ops) <to_can_run>: Use
7040 TARGET_DEFAULT_RETURN.
7041
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7043
7044 * target-delegates.c: Rebuild.
7045 * target.c (target_disconnect): Unconditionally delegate.
7046 * target.h (struct target_ops) <to_disconnect>: Use
7047 TARGET_DEFAULT_NORETURN.
7048
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7050
7051 * record.c (record_stop): Unconditionally delegate.
7052 * target-delegates.c: Rebuild.
7053 * target.c (target_stop_recording): Unconditionally delegate.
7054 * target.h (struct target_ops) <to_stop_recording>: Use
7055 TARGET_DEFAULT_IGNORE.
7056
7057 2014-02-19 Tom Tromey <tromey@redhat.com>
7058
7059 * target-delegates.c: Rebuild.
7060 * target.c (target_enable_btrace): Unconditionally delegate.
7061 * target.h (struct target_ops) <to_enable_btrace>: Use
7062 TARGET_DEFAULT_NORETURN.
7063
7064 2014-02-19 Tom Tromey <tromey@redhat.com>
7065
7066 * target-delegates.c: Rebuild.
7067 * target.c (target_read_btrace): Unconditionally delegate.
7068 * target.h (struct target_ops) <to_read_btrace>: Use
7069 TARGET_DEFAULT_NORETURN.
7070
7071 2014-02-19 Tom Tromey <tromey@redhat.com>
7072
7073 * target-delegates.c: Rebuild.
7074 * target.c (target_teardown_btrace): Unconditionally delegate.
7075 * target.h (struct target_ops) <to_teardown_btrace>: Use
7076 TARGET_DEFAULT_NORETURN.
7077
7078 2014-02-19 Tom Tromey <tromey@redhat.com>
7079
7080 * target-delegates.c: Rebuild.
7081 * target.c (target_disable_btrace): Unconditionally delegate.
7082 * target.h (struct target_ops) <to_disable_btrace>: Use
7083 TARGET_DEFAULT_NORETURN.
7084
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7086
7087 * target-delegates.c: Rebuild.
7088 * target.c (default_search_memory): New function.
7089 (simple_search_memory): Update comment.
7090 (target_search_memory): Unconditionally delegate.
7091 * target.h (struct target_ops) <to_search_memory>: Use
7092 TARGET_DEFAULT_FUNC.
7093
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7095
7096 * auxv.c (default_auxv_parse): No longer static.
7097 (target_auxv_parse): Unconditionally delegate.
7098 * auxv.h (default_auxv_parse): Declare.
7099 * target-delegates.c: Rebuild.
7100 * target.c: Include auxv.h.
7101 * target.h (struct target_ops) <to_auxv_parse>: Use
7102 TARGET_DEFAULT_FUNC.
7103
7104 2014-02-19 Tom Tromey <tromey@redhat.com>
7105
7106 * target-delegates.c: Rebuild.
7107 * target.c (target_memory_map): Unconditionally delegate.
7108 * target.h (struct target_ops) <to_memory_map>: Use
7109 TARGET_DEFAULT_RETURN.
7110
7111 2014-02-19 Tom Tromey <tromey@redhat.com>
7112
7113 * target-delegates.c: Rebuild.
7114 * target.c (target_thread_alive): Unconditionally delegate.
7115 * target.h (struct target_ops) <to_thread_alive>: Use
7116 TARGET_DEFAULT_RETURN.
7117
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7119
7120 * target-delegates.c: Rebuild.
7121 * target.c (target_save_record): Unconditionally delegate.
7122 * target.h (struct target_ops) <to_save_record>: Use
7123 TARGET_DEFAULT_NORETURN.
7124
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7126
7127 * target-delegates.c: Rebuild.
7128 * target.c (target_delete_record): Unconditionally delegate.
7129 * target.h (struct target_ops) <to_delete_record>: Use
7130 TARGET_DEFAULT_NORETURN.
7131
7132 2014-02-19 Tom Tromey <tromey@redhat.com>
7133
7134 * target-delegates.c: Rebuild.
7135 * target.c (target_record_is_replaying): Unconditionally
7136 delegate.
7137 * target.h (struct target_ops) <to_record_is_replaying>: Use
7138 TARGET_DEFAULT_RETURN.
7139
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7141
7142 * target-delegates.c: Rebuild.
7143 * target.c (target_goto_record_begin): Unconditionally delegate.
7144 * target.h (struct target_ops) <to_goto_record_begin>: Use
7145 TARGET_DEFAULT_NORETURN.
7146
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7148
7149 * target-delegates.c: Rebuild.
7150 * target.c (target_goto_record_end): Unconditionally delegate.
7151 * target.h (struct target_ops) <to_goto_record_end>: Use
7152 TARGET_DEFAULT_NORETURN.
7153
7154 2014-02-19 Tom Tromey <tromey@redhat.com>
7155
7156 * target-delegates.c: Rebuild.
7157 * target.c (target_goto_record): Unconditionally delegate.
7158 * target.h (struct target_ops) <to_goto_record>: Use
7159 TARGET_DEFAULT_NORETURN.
7160
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7162
7163 * target-delegates.c: Rebuild.
7164 * target.c (target_insn_history): Unconditionally delegate.
7165 * target.h (struct target_ops) <to_insn_history>: Use
7166 TARGET_DEFAULT_NORETURN.
7167
7168 2014-02-19 Tom Tromey <tromey@redhat.com>
7169
7170 * target-delegates.c: Rebuild.
7171 * target.c (target_insn_history_from): Unconditionally delegate.
7172 * target.h (struct target_ops) <to_insn_history_from>: Use
7173 TARGET_DEFAULT_NORETURN.
7174
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7176
7177 * target-delegates.c: Rebuild.
7178 * target.c (target_insn_history_range): Unconditionally delegate.
7179 * target.h (struct target_ops) <to_insn_history_range>: Use
7180 TARGET_DEFAULT_NORETURN.
7181
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7183
7184 * target-delegates.c: Rebuild.
7185 * target.c (target_call_history): Unconditionally delegate.
7186 * target.h (struct target_ops) <to_call_history>: Use
7187 TARGET_DEFAULT_NORETURN.
7188
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7190
7191 * target-delegates.c: Rebuild.
7192 * target.c (target_call_history_from): Unconditionally delegate.
7193 * target.h (struct target_ops) <to_call_history_from>: Use
7194 TARGET_DEFAULT_NORETURN.
7195
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7197
7198 * target-delegates.c: Rebuild.
7199 * target.c (target_call_history_range): Unconditionally delegate.
7200 * target.h (struct target_ops) <to_call_history_range>: Use
7201 TARGET_DEFAULT_NORETURN.
7202
7203 2014-02-19 Tom Tromey <tromey@redhat.com>
7204
7205 * target-delegates.c: Rebuild.
7206 * target.c (target_verify_memory): Unconditionally delegate.
7207 * target.h (struct target_ops) <to_verify_memory>: Use
7208 TARGET_DEFAULT_NORETURN.
7209
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * target-delegates.c: Rebuild.
7213 * target.c (target_core_of_thread): Unconditionally delegate.
7214 * target.h (struct target_ops) <to_core_of_thread>: Use
7215 TARGET_DEFAULT_RETURN.
7216
7217 2014-02-19 Tom Tromey <tromey@redhat.com>
7218
7219 * target-delegates.c: Rebuild.
7220 * target.c (target_flash_done): Unconditionally delegate.
7221 * target.h (struct target_ops) <to_flash_done>: Use
7222 TARGET_DEFAULT_NORETURN.
7223
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7225
7226 * target-delegates.c: Rebuild.
7227 * target.c (target_flash_erase): Unconditionally delegate.
7228 * target.h (struct target_ops) <to_flash_erase>: Use
7229 TARGET_DEFAULT_NORETURN.
7230
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * target-delegates.c: Rebuild.
7234 * target.c (target_get_section_table): Unconditionally delegate.
7235 * target.h (struct target_ops) <to_get_section_table>: Use
7236 TARGET_DEFAULT_RETURN.
7237
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7239
7240 * target-delegates.c: Rebuild.
7241 * target.c (target_pid_to_str): Unconditionally delegate.
7242 (init_dummy_target): Don't initialize to_pid_to_str.
7243 (default_pid_to_str): Rename from dummy_pid_to_str.
7244 * target.h (struct target_ops) <to_pid_to_str>: Use
7245 TARGET_DEFAULT_FUNC.
7246
7247 2014-02-19 Tom Tromey <tromey@redhat.com>
7248
7249 * target-delegates.c: Rebuild.
7250 * target.c (target_find_new_threads): Unconditionally delegate.
7251 * target.h (struct target_ops) <to_find_new_threads>: Use
7252 TARGET_DEFAULT_RETURN.
7253
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7255
7256 * target-delegates.c: Rebuild.
7257 * target.c (target_program_signals): Unconditionally delegate.
7258 * target.h (struct target_ops) <to_program_signals>: Use
7259 TARGET_DEFAULT_IGNORE.
7260
7261 2014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.c (target_pass_signals): Unconditionally delegate.
7265 * target.h (struct target_ops) <to_pass_signals>: Use
7266 TARGET_DEFAULT_IGNORE.
7267
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target-delegates.c: Rebuild.
7271 * target.c (default_mourn_inferior): New function.
7272 (target_mourn_inferior): Unconditionally delegate.
7273 * target.h (struct target_ops) <to_mourn_inferior>: Use
7274 TARGET_DEFAULT_FUNC.
7275
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7277
7278 * target-delegates.c: Rebuild.
7279 * target.c (default_follow_fork): New function.
7280 (target_follow_fork): Unconditionally delegate.
7281 * target.h (struct target_ops) <to_follow_fork>: Use
7282 TARGET_DEFAULT_FUNC.
7283
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7285
7286 * target-delegates.c: Rebuild.
7287 * target.c (target_kill): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_kill>: Use
7289 TARGET_DEFAULT_NORETURN.
7290
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7292
7293 * target-delegates.c: Rebuild.
7294 * target.c (target_masked_watch_num_registers): Unconditionally
7295 delegate.
7296 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7297 Use TARGET_DEFAULT_RETURN.
7298
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target-delegates.c: Rebuild.
7302 * target.c (target_remove_mask_watchpoint): Unconditionally
7303 delegate.
7304 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7305 TARGET_DEFAULT_RETURN.
7306
7307 2014-02-19 Tom Tromey <tromey@redhat.com>
7308
7309 * target-delegates.c: Rebuild.
7310 * target.c (target_insert_mask_watchpoint): Unconditionally
7311 delegate.
7312 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7313 TARGET_DEFAULT_RETURN.
7314
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7316
7317 * target-delegates.c: Rebuild.
7318 * target.c (target_ranged_break_num_registers): Unconditionally
7319 delegate.
7320 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7321 Use TARGET_DEFAULT_RETURN.
7322
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7324
7325 * target-delegates.c: Rebuild.
7326 * target.c (target_fetch_registers): Unconditionally delegate.
7327 * target.h (struct target_ops) <to_fetch_registers>: Use
7328 TARGET_DEFAULT_NORETURN.
7329
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7331
7332 * target-delegates.c: Rebuild.
7333 * target.c (update_current_target): Don't inherit or default
7334 to_stop.
7335 * target.h (struct target_ops) <to_stop>: Use
7336 TARGET_DEFAULT_IGNORE.
7337
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7339
7340 * target-delegates.c: Rebuild.
7341 * target.c (update_current_target): Don't inherit or default
7342 to_can_run_breakpoint_commands.
7343 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7344 Use TARGET_DEFAULT_RETURN.
7345
7346 2014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target-delegates.c: Rebuild.
7349 * target.c (update_current_target): Don't inherit or default
7350 to_supports_evaluation_of_breakpoint_conditions.
7351 * target.h (struct target_ops)
7352 <to_supports_evaluation_of_breakpoint_conditions>: Use
7353 TARGET_DEFAULT_RETURN.
7354
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7356
7357 * target-delegates.c: Rebuild.
7358 * target.c (update_current_target): Don't inherit or default
7359 to_augmented_libraries_svr4_read.
7360 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7361 Use TARGET_DEFAULT_RETURN.
7362
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7364
7365 * target-delegates.c: Rebuild.
7366 * target.c (update_current_target): Don't inherit or default
7367 to_can_use_agent.
7368 * target.h (struct target_ops) <to_can_use_agent>: Use
7369 TARGET_DEFAULT_RETURN.
7370
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7372
7373 * target-delegates.c: Rebuild.
7374 * target.c (update_current_target): Don't inherit or default
7375 to_use_agent.
7376 * target.h (struct target_ops) <to_use_agent>: Use
7377 TARGET_DEFAULT_NORETURN.
7378
7379 2014-02-19 Tom Tromey <tromey@redhat.com>
7380
7381 * target-delegates.c: Rebuild.
7382 * target.c (update_current_target): Don't inherit or default
7383 to_traceframe_info.
7384 (return_null): Remove.
7385 * target.h (struct target_ops) <to_traceframe_info>: Use
7386 TARGET_DEFAULT_RETURN.
7387
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7389
7390 * target-delegates.c: Rebuild.
7391 * target.c (update_current_target): Don't inherit or default
7392 to_static_tracepoint_markers_by_strid.
7393 * target.h (struct target_ops)
7394 <to_static_tracepoint_markers_by_strid>: Use
7395 TARGET_DEFAULT_NORETURN.
7396
7397 2014-02-19 Tom Tromey <tromey@redhat.com>
7398
7399 * target-delegates.c: Rebuild.
7400 * target.c (update_current_target): Don't inherit or default
7401 to_static_tracepoint_marker_at.
7402 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7403 Use TARGET_DEFAULT_RETURN.
7404
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (update_current_target): Don't inherit or default
7409 to_set_permissions.
7410 * target.h (struct target_ops) <to_set_permissions>: Use
7411 TARGET_DEFAULT_IGNORE.
7412
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7414
7415 * target-delegates.c: Rebuild.
7416 * target.c (update_current_target): Don't inherit or default
7417 to_get_tib_address.
7418 * target.h (struct target_ops) <to_get_tib_address>: Use
7419 TARGET_DEFAULT_NORETURN.
7420
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (update_current_target): Don't inherit or default
7425 to_set_trace_notes.
7426 * target.h (struct target_ops) <to_set_trace_notes>: Use
7427 TARGET_DEFAULT_RETURN.
7428
7429 2014-02-19 Tom Tromey <tromey@redhat.com>
7430
7431 * target-delegates.c: Rebuild.
7432 * target.c (update_current_target): Don't initialize
7433 to_set_trace_buffer_size.
7434 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7435 TARGET_DEFAULT_IGNORE.
7436
7437 2014-02-19 Tom Tromey <tromey@redhat.com>
7438
7439 * target-delegates.c: Rebuild.
7440 * target.c (update_current_target): Don't inherit or default
7441 to_set_circular_trace_buffer.
7442 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7443 TARGET_DEFAULT_IGNORE.
7444
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7446
7447 * target-delegates.c: Rebuild.
7448 * target.c (update_current_target): Don't inherit or default
7449 to_set_disconnected_tracing.
7450 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7451 TARGET_DEFAULT_IGNORE.
7452
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7454
7455 * target-delegates.c: Rebuild.
7456 * target.c (update_current_target): Don't inherit or default
7457 to_get_min_fast_tracepoint_insn_len.
7458 (return_minus_one): Remove.
7459 * target.h (struct target_ops)
7460 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7461
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7463
7464 * target-delegates.c: Rebuild.
7465 * target.c (update_current_target): Don't inherit or default
7466 to_get_raw_trace_data.
7467 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7468 TARGET_DEFAULT_NORETURN.
7469
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7471
7472 * target-delegates.c: Rebuild.
7473 * target.c (update_current_target): Don't inherit or default
7474 to_upload_trace_state_variables.
7475 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7476 Use TARGET_DEFAULT_RETURN.
7477
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target-delegates.c: Rebuild.
7481 * target.c (update_current_target): Don't inherit or default
7482 to_upload_tracepoints.
7483 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7484 TARGET_DEFAULT_RETURN.
7485
7486 2014-02-19 Tom Tromey <tromey@redhat.com>
7487
7488 * target-delegates.c: Rebuild.
7489 * target.c (update_current_target): Don't inherit or default
7490 to_save_trace_data.
7491 * target.h (struct target_ops) <to_save_trace_data>: Use
7492 TARGET_DEFAULT_NORETURN.
7493
7494 2014-02-19 Tom Tromey <tromey@redhat.com>
7495
7496 * target-delegates.c: Rebuild.
7497 * target.c (update_current_target): Don't inherit or default
7498 to_get_trace_state_variable_value.
7499 * target.h (struct target_ops)
7500 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7501
7502 2014-02-19 Tom Tromey <tromey@redhat.com>
7503
7504 * target-delegates.c: Rebuild.
7505 * target.c (update_current_target): Don't inherit or default
7506 to_trace_find.
7507 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7508
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7510
7511 * target-delegates.c: Rebuild.
7512 * target.c (update_current_target): Don't inherit or default
7513 to_trace_stop.
7514 * target.h (struct target_ops) <to_trace_stop>: Use
7515 TARGET_DEFAULT_NORETURN.
7516
7517 2014-02-19 Tom Tromey <tromey@redhat.com>
7518
7519 * target-delegates.c: Rebuild.
7520 * target.c (update_current_target): Don't inherit or default
7521 to_get_tracepoint_status.
7522 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7523 TARGET_DEFAULT_NORETURN.
7524
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7526
7527 * target-delegates.c: Rebuild.
7528 * target.c (update_current_target): Don't inherit or default
7529 to_get_trace_status.
7530 * target.h (struct target_ops) <to_get_trace_status>: Use
7531 TARGET_DEFAULT_RETURN.
7532
7533 2014-02-19 Tom Tromey <tromey@redhat.com>
7534
7535 * target-delegates.c: Rebuild.
7536 * target.c (update_current_target): Don't inherit or default
7537 to_trace_start.
7538 * target.h (struct target_ops) <to_trace_start>: Use
7539 TARGET_DEFAULT_NORETURN.
7540
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7542
7543 * target-delegates.c: Rebuild.
7544 * target.c (update_current_target): Don't inherit or default
7545 to_trace_set_readonly_regions.
7546 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7547 Use TARGET_DEFAULT_NORETURN.
7548
7549 2014-02-19 Tom Tromey <tromey@redhat.com>
7550
7551 * target-delegates.c: Rebuild.
7552 * target.c (update_current_target): Don't inherit or default
7553 to_disable_tracepoint.
7554 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7555 TARGET_DEFAULT_NORETURN.
7556
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7558
7559 * target-delegates.c: Rebuild.
7560 * target.c (update_current_target): Don't inherit or default
7561 to_enable_tracepoint.
7562 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7563 TARGET_DEFAULT_NORETURN.
7564
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7566
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7569 to_download_trace_state_variable.
7570 * target.h (struct target_ops) <to_download_trace_state_variable>:
7571 Use TARGET_DEFAULT_NORETURN.
7572
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7574
7575 * target-delegates.c: Rebuild.
7576 * target.c (update_current_target): Don't inherit or default
7577 to_can_download_tracepoint.
7578 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7579 TARGET_DEFAULT_RETURN.
7580
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7582
7583 * target-delegates.c: Rebuild.
7584 * target.c (update_current_target): Don't inherit or default
7585 to_download_tracepoint.
7586 * target.h (struct target_ops) <to_download_tracepoint>: Use
7587 TARGET_DEFAULT_NORETURN.
7588
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7590
7591 * target-delegates.c: Rebuild.
7592 * target.c (update_current_target): Don't inherit or default
7593 to_trace_init.
7594 * target.h (struct target_ops) <to_trace_init>: Use
7595 TARGET_DEFAULT_RETURN.
7596
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7598
7599 * target-delegates.c: Rebuild.
7600 * target.c (update_current_target): Don't inherit or default
7601 to_supports_string_tracing.
7602 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7603 TARGET_DEFAULT_RETURN.
7604
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7606
7607 * target-delegates.c: Rebuild.
7608 * target.c (update_current_target): Don't inherit or default
7609 to_supports_enable_disable_tracepoint.
7610 * target.h (struct target_ops)
7611 <to_supports_enable_disable_tracepoint>: Use
7612 TARGET_DEFAULT_RETURN.
7613
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * target-delegates.c: Rebuild.
7617 * target.c (update_current_target): Don't inherit or default
7618 to_supports_multi_process.
7619 * target.h (struct target_ops) <to_supports_multi_process>: Use
7620 TARGET_DEFAULT_RETURN.
7621
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target-delegates.c: Rebuild.
7625 * target.c (update_current_target): Don't inherit or default
7626 to_get_ada_task_ptid.
7627 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7628 TARGET_DEFAULT_FUNC.
7629
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7634 to_thread_architecture.
7635 * target.h (struct target_ops) <to_thread_architecture>: Use
7636 TARGET_DEFAULT_FUNC.
7637
7638 2014-02-19 Tom Tromey <tromey@redhat.com>
7639
7640 * target-delegates.c: Rebuild.
7641 * target.c (update_current_target): Don't inherit or default
7642 to_execution_direction.
7643 * target.h (struct target_ops) <to_execution_direction>: Use
7644 TARGET_DEFAULT_FUNC.
7645
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7647
7648 * target-delegates.c: Rebuild.
7649 * target.c (update_current_target): Don't inherit or default
7650 to_can_execute_reverse.
7651 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7652 TARGET_DEFAULT_RETURN.
7653 (target_can_execute_reverse): Unconditionally delegate.
7654
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7656
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7659 to_goto_bookmark.
7660 (dummy_goto_bookmark): Remove.
7661 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7662 * target.h (struct target_ops) <to_goto_bookmark>: Use
7663 TARGET_DEFAULT_NORETURN.
7664
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * target-delegates.c: Rebuild.
7668 * target.c (update_current_target): Don't inherit or default
7669 to_get_bookmark.
7670 (dummy_get_bookmark): Remove.
7671 (init_dummy_target): Don't inherit or default to_get_bookmark.
7672 * target.h (struct target_ops) <to_get_bookmark>: Use
7673 TARGET_DEFAULT_NORETURN
7674
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't inherit or default
7679 to_make_corefile_notes.
7680 (init_dummy_target): Don't initialize to_make_corefile_notes.
7681 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7682 TARGET_DEFAULT_FUNC.
7683
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7685
7686 * target-delegates.c: Rebuild.
7687 * target.c (update_current_target): Don't inherit or default
7688 to_find_memory_regions.
7689 (init_dummy_target): Don't initialize to_find_memory_regions.
7690 * target.h (struct target_ops) <to_find_memory_regions>: Use
7691 TARGET_DEFAULT_FUNC.
7692
7693 2014-02-19 Tom Tromey <tromey@redhat.com>
7694
7695 * target-delegates.c: Rebuild.
7696 * target.c (update_current_target): Don't inherit or default
7697 to_log_command.
7698 * target.h (struct target_ops) <to_log_command>: Use
7699 TARGET_DEFAULT_IGNORE.
7700 (target_log_command): Unconditionally delegate.
7701
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7703
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7706 to_pid_to_exec_file.
7707 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7708 TARGET_DEFAULT_RETURN.
7709
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7711
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7714 to_thread_name.
7715 (target_thread_name): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_thread_name>: Use
7717 TARGET_DEFAULT_RETURN.
7718
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target-delegates.c: Rebuild.
7722 * target.c (update_current_target): Don't inherit or default
7723 to_extra_thread_info.
7724 * target.h (struct target_ops) <to_extra_thread_info>: Use
7725 TARGET_DEFAULT_RETURN.
7726
7727 2014-02-19 Tom Tromey <tromey@redhat.com>
7728
7729 * target-delegates.c: Rebuild.
7730 * target.c (update_current_target): Don't inherit or default
7731 to_has_exited.
7732 * target.h (struct target_ops) <to_has_exited>: Use
7733 TARGET_DEFAULT_RETURN..
7734
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7736
7737 * target-delegates.c: Rebuild.
7738 * target.c (update_current_target): Don't inherit or default
7739 to_set_syscall_catchpoint.
7740 (return_one): Remove.
7741 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7742 TARGET_DEFAULT_RETURN.
7743
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7745
7746 * target-delegates.c: Rebuild.
7747 * target.c (update_current_target): Don't inherit or default
7748 to_insert_exec_catchpoint.
7749 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7750 TARGET_DEFAULT_RETURN.
7751
7752 2014-01-08 Tom Tromey <tromey@redhat.com>
7753
7754 * target-delegates.c: Rebuild.
7755 * target.c (update_current_target): Don't inherit or default
7756 to_insert_exec_catchpoint.
7757 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7758 TARGET_DEFAULT_RETURN.
7759
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7761
7762 * target-delegates.c: Rebuild.
7763 * target.c (update_current_target): Don't inherit or default
7764 to_remove_vfork_catchpoint.
7765 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7766 TARGET_DEFAULT_RETURN.
7767
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7769
7770 * target-delegates.c: Rebuild.
7771 * target.c (update_current_target): Don't inherit or default
7772 to_insert_vfork_catchpoint.
7773 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7774 TARGET_DEFAULT_RETURN.
7775
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target-delegates.c: Rebuild.
7779 * target.c (update_current_target): Don't inherit or default
7780 to_remove_fork_catchpoint.
7781 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7782 TARGET_DEFAULT_RETURN.
7783
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7785
7786 * target-delegates.c: Rebuild.
7787 * target.c (update_current_target): Don't inherit or default
7788 to_insert_fork_catchpoint.
7789 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7790 TARGET_DEFAULT_RETURN.
7791
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7793
7794 * target-delegates.c: Rebuild.
7795 * target.c (update_current_target): Don't inherit or default
7796 to_post_startup_inferior.
7797 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7798 TARGET_DEFAULT_IGNORE.
7799
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7801
7802 * target-delegates.c: Rebuild.
7803 * target.c (update_current_target): Don't inherit or default
7804 to_load.
7805 * target.h (struct target_ops) <to_load>: Use
7806 TARGET_DEFAULT_NORETURN.
7807
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7809
7810 * target-delegates.c: Rebuild.
7811 * target.c (update_current_target): Don't inherit or default
7812 to_terminal_info.
7813 * target.h (struct target_ops) <to_terminal_info>: Use
7814 TARGET_DEFAULT_FUNC.
7815
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target-delegates.c: Rebuild.
7819 * target.c (update_current_target): Don't inherit or default
7820 to_terminal_save_ours.
7821 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7822 TARGET_DEFAULT_IGNORE.
7823
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7825
7826 * target-delegates.c: Rebuild.
7827 * target.c (update_current_target): Don't inherit or default
7828 to_terminal_ours.
7829 * target.h (struct target_ops) <to_terminal_ours>: Use
7830 TARGET_DEFAULT_IGNORE.
7831
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7836 to_terminal_ours_for_output.
7837 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7838 TARGET_DEFAULT_IGNORE.
7839
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7841
7842 * target-delegates.c: Rebuild.
7843 * target.c (update_current_target): Don't inherit or default
7844 to_terminal_inferior.
7845 * target.h (struct target_ops) <to_terminal_inferior>: Use
7846 TARGET_DEFAULT_IGNORE.
7847
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7849
7850 * target-delegates.c: Rebuild.
7851 * target.c (update_current_target): Don't inherit or default
7852 to_terminal_init.
7853 * target.h (struct target_ops) <to_terminal_init>: Use
7854 TARGET_DEFAULT_IGNORE.
7855
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7857
7858 * target-delegates.c: Rebuild.
7859 * target.c (update_current_target): Don't inherit or default
7860 to_can_accel_watchpoint_condition.
7861 * target.h (struct target_ops)
7862 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7863
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7865
7866 * target-delegates.c: Rebuild.
7867 * target.c (update_current_target): Don't inherit or default
7868 to_region_ok_for_hw_watchpoint.
7869 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7870 Use TARGET_DEFAULT_FUNC.
7871
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target-delegates.c: Rebuild.
7875 * target.c (update_current_target): Don't inherit or default
7876 to_watchpoint_addr_within_range.
7877 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7878 Use TARGET_DEFAULT_FUNC.
7879
7880 2014-02-19 Tom Tromey <tromey@redhat.com>
7881
7882 * target-delegates.c: Rebuild.
7883 * target.c (update_current_target): Don't inherit or default
7884 to_remove_watchpoint.
7885 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7886 TARGET_DEFAULT_NORETURN.
7887
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7889
7890 * target-delegates.c: Rebuild.
7891 * target.c (update_current_target): Don't inherit or default
7892 to_insert_watchpoint.
7893 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7894 TARGET_DEFAULT_RETURN.
7895
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (update_current_target): Don't inherit or default
7900 to_remove_hw_breakpoint.
7901 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7902 TARGET_DEFAULT_RETURN.
7903
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target-delegates.c: Rebuild.
7907 * target.c (update_current_target): Don't inherit or default
7908 to_insert_hw_breakpoint.
7909 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7910 TARGET_DEFAULT_RETURN.
7911
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7916 to_can_use_hw_breakpoint.
7917 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7918 TARGET_DEFAULT_RETURN.
7919
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7921
7922 * target-delegates.c: Rebuild.
7923 * target.c (update_current_target): Don't inherit or default
7924 to_files_info.
7925 * target.h (struct target_ops) <to_files_info>: Use
7926 TARGET_DEFAULT_IGNORE.
7927
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7929
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7932 to_store.
7933 * target.h (struct target_ops) <to_store>: Use
7934 TARGET_DEFAULT_NORETURN.
7935
7936 2014-02-19 Tom Tromey <tromey@redhat.com>
7937
7938 * target-delegates.c: Rebuild.
7939 * target.c (update_current_target): Don't inherit or default
7940 to_post_attach.
7941 * target.h (struct target_ops) <to_post_attach>: Use
7942 TARGET_DEFAULT_IGNORE.
7943
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7945
7946 * target-delegates.c: Rebuild.
7947 * target.c (update_current_target): Don't inherit or default
7948 to_rcmd.
7949 (default_rcmd): New function.
7950 (do_monitor_command): Unconditionally delegate.
7951 * target.h (struct target_ops) <to_rmcd>: Use
7952 TARGET_DEFAULT_FUNC.
7953
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * target-delegates.c: Rebuild.
7957 * target.c (init_dummy_target): Don't initialize to_attach.
7958 (target_attach): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_attach>: Use
7960 TARGET_DEFAULT_FUNC.
7961
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_detach): Unconditionally delegate.
7966 (init_dummy_target): Don't initialize to_detach.
7967 * target.h (struct target_ops) <to_detach>: Use
7968 TARGET_DEFAULT_IGNORE.
7969
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7971
7972 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7973 Add argument.
7974 (target_augmented_libraries_svr4_read): Add argument.
7975 * target.c (update_current_target): Update.
7976 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7977 argument.
7978
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * target.h (struct target_ops) <to_call_history_range>: Add
7982 argument.
7983 * target.c (target_call_history_range): Add argument.
7984 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7985 argument.
7986 (record_btrace_call_history_from): Update.
7987
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target.h (struct target_ops) <to_call_history_from>: Add
7991 argument.
7992 * target.c (target_call_history_from): Add argument.
7993 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7994 argument.
7995
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target.h (struct target_ops) <to_call_history>: Add argument.
7999 * target.c (target_call_history): Add argument.
8000 * record-btrace.c (record_btrace_call_history): Add 'self'
8001 argument.
8002
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target.h (struct target_ops) <to_insn_history_range>: Add
8006 argument.
8007 * target.c (target_insn_history_range): Add argument.
8008 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8009 argument.
8010 (record_btrace_insn_history_from): Update.
8011
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target.h (struct target_ops) <to_insn_history_from>: Add
8015 argument.
8016 * target.c (target_insn_history_from): Add argument.
8017 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8018 argument.
8019
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target.h (struct target_ops) <to_insn_history>: Add argument.
8023 * target.c (target_insn_history): Add argument.
8024 * record-btrace.c (record_btrace_insn_history): Add 'self'
8025 argument.
8026
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8028
8029 * target.h (struct target_ops) <to_goto_record>: Add argument.
8030 * target.c (target_goto_record): Add argument.
8031 * record-full.c (record_full_goto): Add 'self' argument.
8032 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8033
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8037 * target.c (target_goto_record_end): Add argument.
8038 * record-full.c (record_full_goto_end): Add 'self' argument.
8039 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8040
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target.h (struct target_ops) <to_goto_record_begin>: Add
8044 argument.
8045 * target.c (target_goto_record_begin): Add argument.
8046 * record-full.c (record_full_goto_begin): Add 'self' argument.
8047 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8048 argument.
8049
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8051
8052 * target.h (struct target_ops) <to_record_is_replaying>: Add
8053 argument.
8054 * target.c (target_record_is_replaying): Add argument.
8055 * record-full.c (record_full_is_replaying): Add 'self' argument.
8056 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8057 argument.
8058 (record_btrace_xfer_partial, record_btrace_store_registers)
8059 (record_btrace_prepare_to_store, record_btrace_resume)
8060 (record_btrace_wait, record_btrace_decr_pc_after_break)
8061 (record_btrace_find_new_threads, record_btrace_thread_alive):
8062 Update.
8063
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8065
8066 * target.h (struct target_ops) <to_delete_record>: Add argument.
8067 * target.c (target_delete_record): Add argument.
8068 * record-full.c (record_full_delete): Add 'self' argument.
8069
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target.h (struct target_ops) <to_save_record>: Add argument.
8073 * target.c (target_save_record): Add argument.
8074 * record-full.c (record_full_save): Add 'self' argument.
8075 (record_full_save): Add 'self' argument.
8076
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target.h (struct target_ops) <to_info_record>: Add argument.
8080 * target.c (target_info_record): Add argument.
8081 * record.c (info_record_command): Add argument.
8082 * record-full.c (record_full_info): Add 'self' argument.
8083 * record-btrace.c (record_btrace_info): Add 'self' argument.
8084
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8088 * target.c (target_stop_recording): Add argument.
8089 * record.c (record_stop): Add argument.
8090 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8091 argument.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8096 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8097 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8098 argument.
8099 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8100 (_initialize_amd64_linux_nat): Use it.
8101 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8102 (_initialize_i386_linux_nat): Use it.
8103
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8105
8106 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8107 * target.c (target_teardown_btrace): Add argument.
8108 * remote.c (remote_teardown_btrace): Add 'self' argument.
8109 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8110 argument.
8111 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8112 argument.
8113
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8117 * target.c (target_disable_btrace): Add argument.
8118 * remote.c (remote_disable_btrace): Add 'self' argument.
8119 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8120 argument.
8121 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8122 argument.
8123
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8127 * target.c (target_enable_btrace): Add argument.
8128 * remote.c (remote_enable_btrace): Add 'self' argument.
8129 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8130 argument.
8131 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8132 argument.
8133
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8137 (target_can_use_agent): Add argument.
8138 * target.c (update_current_target): Update.
8139 * remote.c (remote_can_use_agent): Add 'self' argument.
8140 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8141
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target.h (struct target_ops) <to_use_agent>: Add argument.
8145 (target_use_agent): Add argument.
8146 * target.c (update_current_target): Update.
8147 * remote.c (remote_use_agent): Add 'self' argument.
8148 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8149
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8153 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8154 (target_traceframe_info): Add argument.
8155 * target.c (update_current_target): Update.
8156 * remote.c (remote_traceframe_info): Add 'self' argument.
8157 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8158
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8160
8161 * target.h (target_static_tracepoint_markers_by_strid): Add
8162 argument.
8163 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8164 'self' argument.
8165 * target.c (update_current_target): Update.
8166 * remote.c (struct target_ops)
8167 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8168 * linux-nat.c (struct target_ops)
8169 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8170
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8174 Add argument.
8175 (target_static_tracepoint_marker_at): Add argument.
8176 * target.c (update_current_target): Update.
8177 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8178 argument.
8179
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8183 (target_set_permissions): Add argument.
8184 * target.c (update_current_target): Update.
8185 * remote.c (remote_set_permissions): Add 'self' argument.
8186 (remote_start_remote): Update.
8187
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8191 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8192 (target_get_tib_address): Add argument.
8193 * target.c (update_current_target): Update.
8194 * remote.c (remote_get_tib_address): Add 'self' argument.
8195
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8199 (target_set_trace_notes): Add argument.
8200 * target.c (update_current_target): Update.
8201 * remote.c (remote_set_trace_notes): Add 'self' argument.
8202
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8206 argument.
8207 (target_set_trace_buffer_size): Add argument.
8208 * target.c (update_current_target): Update.
8209 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8210
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8214 argument.
8215 (target_set_circular_trace_buffer): Add argument.
8216 * target.c (update_current_target): Update.
8217 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8218 argument.
8219
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8223 argument.
8224 (target_set_disconnected_tracing): Add argument.
8225 * target.c (update_current_target): Update.
8226 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8227
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target.h (struct target_ops)
8231 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8232 (target_get_min_fast_tracepoint_insn_len): Add argument.
8233 * target.c (update_current_target): Update.
8234 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8235 argument.
8236
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8240 argument.
8241 (target_get_raw_trace_data): Add argument.
8242 * target.c (update_current_target): Update.
8243 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8244
8245 2014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8248 Add argument.
8249 (target_upload_trace_state_variables): Add argument.
8250 * target.c (update_current_target): Update.
8251 * remote.c (remote_upload_trace_state_variables): Add 'self'
8252 argument.
8253 (remote_start_remote): Update.
8254
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8258 argument.
8259 (target_upload_tracepoints): Add argument.
8260 * target.c (update_current_target): Update.
8261 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8262 (remote_start_remote): Update.
8263
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8267 (target_save_trace_data): Add argument.
8268 * target.c (update_current_target): Update.
8269 * remote.c (remote_save_trace_data): Add 'self' argument.
8270
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8274 argument.
8275 * target.h (struct target_ops)
8276 <to_get_trace_state_variable_value>: Add argument.
8277 (target_get_trace_state_variable_value): Add argument.
8278 * target.c (update_current_target): Update.
8279 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8280 argument.
8281 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8282
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8286 * target.h (struct target_ops) <to_trace_find>: Add argument.
8287 (target_trace_find): Add argument.
8288 * target.c (update_current_target): Update.
8289 * remote.c (remote_trace_find): Add 'self' argument.
8290 * ctf.c (ctf_trace_find): Add 'self' argument.
8291
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8295 (target_trace_stop): Add argument.
8296 * target.c (update_current_target): Update.
8297 * remote.c (remote_trace_stop): Add 'self' argument.
8298
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8300
8301 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8302 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8303 argument.
8304 (target_get_tracepoint_status): Add argument.
8305 * target.c (update_current_target): Update.
8306 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8307
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8311 * target.h (struct target_ops) <to_get_trace_status>: Add
8312 argument.
8313 (target_get_trace_status): Add argument.
8314 * target.c (update_current_target): Update.
8315 * remote.c (remote_get_trace_status): Add 'self' argument.
8316 (remote_start_remote, remote_can_download_tracepoint): Update.
8317 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8318
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target.h (struct target_ops) <to_trace_start>: Add argument.
8322 (target_trace_start): Add argument.
8323 * target.c (update_current_target): Update.
8324 * remote.c (remote_trace_start): Add 'self' argument.
8325
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8327
8328 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8329 Add argument.
8330 (target_trace_set_readonly_regions): Add argument.
8331 * target.c (update_current_target): Update.
8332 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8333 argument.
8334
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8338 argument.
8339 (target_disable_tracepoint): Add argument.
8340 * target.c (update_current_target): Update.
8341 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8342
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8346 argument.
8347 (target_enable_tracepoint): Add argument.
8348 * target.c (update_current_target): Update.
8349 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8350
8351 2014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target.h (struct target_ops) <to_download_trace_state_variable>:
8354 Add argument.
8355 (target_download_trace_state_variable): Add argument.
8356 * target.c (update_current_target): Update.
8357 * remote.c (remote_download_trace_state_variable): Add 'self'
8358 argument.
8359
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8363 argument.
8364 (target_can_download_tracepoint): Add argument.
8365 * target.c (update_current_target): Update.
8366 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8367
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target.h (struct target_ops) <to_download_tracepoint>: Add
8371 argument.
8372 (target_download_tracepoint): Add argument.
8373 * target.c (update_current_target): Update.
8374 * remote.c (remote_download_tracepoint): Add 'self' argument.
8375
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8377
8378 * target.h (struct target_ops) <to_trace_init>: Add argument.
8379 (target_trace_init): Add argument.
8380 * target.c (update_current_target): Update.
8381 * remote.c (remote_trace_init): Add 'self' argument.
8382
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8386 * target.c (target_fileio_readlink): Add argument.
8387 * remote.c (remote_hostio_readlink): Add 'self' argument.
8388 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8389
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8393 * target.c (target_fileio_unlink): Add argument.
8394 * remote.c (remote_hostio_unlink): Add 'self' argument.
8395 (remote_file_delete): Update.
8396 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8397
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8401 * target.c (target_fileio_close): Add argument.
8402 * remote.c (remote_hostio_close): Add 'self' argument.
8403 (remote_hostio_close_cleanup): Update.
8404 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8405 Update.
8406 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8407
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8411 * target.c (target_fileio_pread): Add argument.
8412 * remote.c (remote_hostio_pread): Add 'self' argument.
8413 (remote_bfd_iovec_pread, remote_file_get): Update.
8414 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8415
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8419 * target.c (target_fileio_pwrite): Add argument.
8420 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8421 (remote_file_put): Update.
8422 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8423
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8427 * target.c (target_fileio_open): Add argument.
8428 * remote.c (remote_hostio_open): Add 'self' argument.
8429 (remote_bfd_iovec_open): Add 'self' argument.
8430 (remote_file_put): Add 'self' argument.
8431 (remote_file_get): Add 'self' argument.
8432 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8433
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8437 Add argument.
8438 (target_can_run_breakpoint_commands): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8441 argument.
8442 (remote_insert_breakpoint): Add 'self' argument.
8443 (remote_insert_hw_breakpoint): Add 'self' argument.
8444 (remote_can_run_breakpoint_commands): Add 'self' argument.
8445
8446 2014-02-19 Tom Tromey <tromey@redhat.com>
8447
8448 * target.h (struct target_ops)
8449 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8450 (target_supports_evaluation_of_breakpoint_conditions): Add
8451 argument.
8452 * target.c (update_current_target): Update.
8453 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8454 argument.
8455 (remote_insert_breakpoint): Add 'self' argument.
8456 (remote_insert_hw_breakpoint): Add 'self' argument.
8457 (remote_supports_cond_breakpoints): Add 'self' argument.
8458
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8462 argument.
8463 (target_supports_string_tracing): Add argument.
8464 * target.c (update_current_target): Update.
8465 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8466
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target.h (struct target_ops)
8470 <to_supports_disable_randomization>: Add argument.
8471 * target.c (find_default_supports_disable_randomization): Add
8472 argument.
8473 (target_supports_disable_randomization): Add argument.
8474 (find_default_supports_disable_randomization): Add 'self'
8475 argument.
8476 * remote.c (extended_remote_supports_disable_randomization): Add
8477 'self' argument.
8478 (remote_supports_disable_randomization): Add 'self' argument.
8479 (extended_remote_create_inferior): Update.
8480 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8481 'self' argument.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target.h (struct target_ops)
8486 <to_supports_enable_disable_tracepoint>: Add argument.
8487 (target_supports_enable_disable_tracepoint): Add argument.
8488 * target.c (update_current_target): Update.
8489 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8490 argument.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target.h (struct target_ops) <to_supports_multi_process>: Add
8495 argument.
8496 (target_supports_multi_process): Add argument.
8497 * target.c (update_current_target): Update.
8498 * remote.c (remote_supports_multi_process): Add 'self' argument.
8499 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8500 argument.
8501 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8502 argument.
8503
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target.h (struct target_ops) <to_execution_direction>: Add
8507 argument.
8508 (target_execution_direction): Add argument.
8509 * target.c (default_execution_direction): Add 'self' argument.
8510 * record-full.c (record_full_execution_direction): Add 'self'
8511 argument.
8512
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8516 argument.
8517 (target_can_execute_reverse): Add argument.
8518 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8519 * record-full.c (record_full_can_execute_reverse): Add 'self'
8520 argument.
8521 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8522 argument.
8523
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8527 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8528 argument.
8529 (target_get_ada_task_ptid): Add argument.
8530 * target.c (update_current_target): Update.
8531 (default_get_ada_task_ptid): Add 'self' argument.
8532 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8533 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8534 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8535 argument.
8536 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8537 argument.
8538 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8539 argument.
8540 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8541 argument.
8542 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8543 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8544 argument.
8545
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8549 (target_goto_bookmark): Add argument.
8550 * target.c (dummy_goto_bookmark): Add 'self' argument.
8551 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8552
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8556 (target_get_bookmark): Add argument.
8557 * target.c (dummy_get_bookmark): Add 'self' argument.
8558 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8559
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8563 argument.
8564 (target_make_corefile_notes): Add argument.
8565 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8566 * procfs.c (procfs_make_note_section): Add 'self' argument.
8567 (procfs_make_note_section): Add 'self' argument.
8568 (procfs_make_note_section): Add 'self' argument.
8569 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8570 argument.
8571 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8572 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8573 * exec.c (exec_make_note_section): Add 'self' argument.
8574 (exec_make_note_section): Add 'self' argument.
8575
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target.h (struct target_ops) <to_find_memory_regions>: Add
8579 argument.
8580 (target_find_memory_regions): Add argument.
8581 * target.c (dummy_find_memory_regions): Add 'self' argument.
8582 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8583 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8584 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8585 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8586 * exec. (exec_do_find_memory_regions): New global.
8587 (exec_set_find_memory_regions): Rewrite.
8588 (exec_find_memory_regions): New function.
8589 (init_exec_ops): Use exec_find_memory_regions.
8590
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target.h (struct target_ops) <to_supports_non_stop>: Add
8594 argument.
8595 * target.c (find_default_supports_non_stop): Add argument.
8596 (target_supports_non_stop): Add argument.
8597 (find_default_supports_non_stop): Add 'self' argument.
8598 * remote.c (remote_supports_non_stop): Add 'self' argument.
8599 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8600
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target.h (struct target_ops) <to_log_command>: Add argument.
8604 (target_log_command): Add argument.
8605 * serial.h (serial_log_command): Add 'self' argument.
8606 * serial.c (serial_log_command): Add 'self' argument.
8607
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8611 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8612 argument.
8613 (target_pid_to_exec_file): Add argument.
8614 * target.c (debug_to_pid_to_exec_file): Add argument.
8615 (update_current_target): Update.
8616 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8617 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8618 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8619 (linux_handle_extended_wait): Update.
8620 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8621 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8622 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8623 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target.h (struct target_ops) <to_rcmd>: Add argument.
8628 (target_rcmd): Add argument.
8629 * target.c (debug_to_rcmd): Add argument.
8630 (update_current_target, do_monitor_command): Update.
8631 * remote.c (remote_rcmd): Add 'self' argument.
8632 * monitor.c (monitor_rcmd): Add 'self' argument.
8633
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * windows-nat.c (windows_stop): Add 'self' argument.
8637 * target.h (struct target_ops) <to_stop>: Add argument.
8638 * target.c (target_stop): Add argument.
8639 (debug_to_stop): Add argument.
8640 (update_current_target): Update.
8641 * remote.c (remote_stop): Add 'self' argument.
8642 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8643 (gdbsim_cntrl_c): Update.
8644 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8645 * procfs.c (procfs_stop): Add 'self' argument.
8646 * nto-procfs.c (procfs_stop): Add 'self' argument.
8647 * monitor.c (monitor_stop): Add 'self' argument.
8648 (monitor_open): Update.
8649 * linux-nat.c (linux_nat_stop): Add argument.
8650 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8651 * gnu-nat.c (gnu_stop): Add 'self' argument.
8652 * darwin-nat.c (darwin_stop): Add 'self' argument.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target.h (struct target_ops) <to_thread_name>: Add argument.
8657 * target.c (target_thread_name): Add argument.
8658 (update_current_target): Update.
8659 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.h (struct target_ops) <to_extra_thread_info>: Add
8664 argument.
8665 (target_extra_thread_info): Add argument.
8666 * target.c (update_current_target): Update.
8667 * remote.c (remote_threads_extra_info): Add 'self' argument.
8668 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8669 argument.
8670 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8671 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8672 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8673 argument.
8674 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8675 argument.
8676 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8677 argument.
8678 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8679 argument.
8680
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target.h (struct target_ops) <to_program_signals>: Add argument.
8684 * target.c (target_program_signals): Add argument.
8685 * remote.c (remote_program_signals): Add 'self' argument.
8686
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8690 * target.c (target_pass_signals): Add argument.
8691 * remote.c (remote_pass_signals): Add 'self' argument.
8692 (remote_start_remote): Update.
8693 * procfs.c (procfs_pass_signals): Add 'self' argument.
8694 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8695 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8696 (linux_nat_create_inferior, linux_nat_attach): Update.
8697
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * windows-nat.c (windows_can_run): Add 'self' argument.
8701 * target.h (struct target_ops) <to_can_run>: Add argument.
8702 (target_can_run): Add argument.
8703 * target.c (debug_to_can_run): Add argument.
8704 (update_current_target): Update.
8705 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8706 * inf-child.c (inf_child_can_run): Add 'self' argument.
8707 * go32-nat.c (go32_can_run): Add 'self' argument.
8708
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target.h (struct target_ops) <to_has_exited>: Add argument.
8712 (target_has_exited): Add argument.
8713 * target.c (debug_to_has_exited): Add argument.
8714 (update_current_target): Update.
8715
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8719 argument.
8720 (target_set_syscall_catchpoint): Add argument.
8721 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8722 argument.
8723 * target.c (update_current_target): Update.
8724
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8728 argument.
8729 (target_remove_exec_catchpoint): Add argument.
8730 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8731 (update_current_target): Update.
8732 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8733 argument.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8738 argument.
8739 (target_insert_exec_catchpoint): Add argument.
8740 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8741 (update_current_target): Update.
8742 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8743 argument.
8744
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8746
8747 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8748 argument.
8749 (target_remove_vfork_catchpoint): Add argument.
8750 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8751 (update_current_target): Update.
8752 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8753 argument.
8754
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8758 argument.
8759 (target_insert_vfork_catchpoint): Add argument.
8760 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8761 (update_current_target): Update.
8762 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8763 argument.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8768 argument.
8769 (target_remove_fork_catchpoint): Add argument.
8770 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8771 (update_current_target): Update.
8772 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8773 argument.
8774
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8778 argument.
8779 (target_insert_fork_catchpoint): Add argument.
8780 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8781 (update_current_target): Update.
8782 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8783 argument.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8788 argument.
8789 (target_post_startup_inferior): Add argument.
8790 * target.c (debug_to_post_startup_inferior): Add argument.
8791 (update_current_target): Update.
8792 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8793 argument.
8794 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8795 argument.
8796 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8797 argument.
8798 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8799 argument.
8800 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8801 'self' argument.
8802 (super_post_startup_inferior): Likewise.
8803 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8804 'self' argument.
8805 (super_post_startup_inferior): Likewise.
8806 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8807 Add 'self' argument.
8808 (super_post_startup_inferior): Likewise.
8809
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target.h (struct target_ops) <to_load>: Add argument.
8813 * target.c (target_load): Add argument.
8814 (debug_to_load): Add argument.
8815 (update_current_target): Update.
8816 * remote.c (remote_load): Add 'self' argument.
8817 * remote-sim.c (gdbsim_load): Add 'self' argument.
8818 * remote-mips.c (mips_load): Add 'self' argument.
8819 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8820 * monitor.c (monitor_load): Add 'self' argument.
8821 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8826 (target_terminal_info): Add argument.
8827 * target.c (debug_to_terminal_info): Add argument.
8828 (default_terminal_info): Likewise.
8829 * inflow.c (child_terminal_info): Add 'self' argument.
8830 * inferior.h (child_terminal_info): Add 'self' argument.
8831 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8836 argument.
8837 (target_terminal_save_ours): Add argument.
8838 * target.c (debug_to_terminal_save_ours): Add argument.
8839 (update_current_target): Update.
8840 * inflow.c (terminal_save_ours): Add 'self' argument.
8841 * inferior.h (terminal_save_ours): Add 'self' argument.
8842
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8846 (target_terminal_ours): Add argument.
8847 * target.c (debug_to_terminal_ours): Add argument.
8848 (update_current_target): Update.
8849 * remote.c (remote_terminal_ours): Add 'self' argument.
8850 (remote_close): Update.
8851 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8852 * inflow.c (terminal_ours): Add 'self' argument.
8853 * inferior.h (terminal_ours): Add 'self' argument.
8854 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8855
8856 2014-02-19 Pedro Alves <palves@redhat.com>
8857 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8860 argument.
8861 (target_terminal_ours_for_output): Add argument.
8862 * target.c (debug_to_terminal_ours_for_output): Add argument.
8863 (update_current_target): Update.
8864 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8865 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8866 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8867
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target.h (struct target_ops) <to_terminal_inferior>: Add
8871 argument.
8872 * target.c (target_terminal_inferior): Add argument.
8873 (update_current_target): Update.
8874 * remote.c (remote_terminal_inferior): Add 'self' argument.
8875 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8876 * inflow.c (terminal_inferior): Add 'self' argument.
8877 * inferior.h (terminal_inferior): Add 'self' argument.
8878 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8879 (go32_terminal_inferior): Add 'self' argument.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8884 (target_terminal_init): Add argument.
8885 * target.c (debug_to_terminal_init): Add argument.
8886 (update_current_target): Update.
8887 * inflow.c (terminal_init_inferior): Add 'self' argument.
8888 * inferior.h (terminal_init_inferior): Add 'self' argument.
8889 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8890 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8891
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops)
8895 <to_can_accel_watchpoint_condition>: Add argument.
8896 (target_can_accel_watchpoint_condition): Add argument.
8897 * target.c (debug_to_can_accel_watchpoint_condition): Add
8898 argument.
8899 (update_current_target): Update.
8900 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8901 'self' argument.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8906 Add argument.
8907 (target_region_ok_for_hw_watchpoint): Add argument.
8908 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8909 (default_region_ok_for_hw_watchpoint): Add argument.
8910 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8911 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8912 argument.
8913 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8914 argument.
8915 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8916 argument.
8917 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8918 'self' argument.
8919 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8920 'self' argument.
8921 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8922 'self' argument.
8923 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8924 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8925 'self' argument.
8926 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8927 Add 'self' argument.
8928
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8932 argument.
8933 (target_insert_watchpoint): Add argument.
8934 * target.c (debug_to_insert_watchpoint): Add argument.
8935 (update_current_target): Update.
8936 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8937 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8938 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8939 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8940 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8941 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8942 argument.
8943 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8944 (procfs_insert_hw_watchpoint): Add 'self' argument.
8945 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8946 argument.
8947 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8948 argument.
8949 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8950 argument.
8951 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8952 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8953 argument.
8954 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8955 'self' argument.
8956
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8960 argument.
8961 (target_remove_watchpoint): Add argument.
8962 * target.c (debug_to_remove_watchpoint): Add argument.
8963 (update_current_target): Update.
8964 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8965 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8966 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8967 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8968 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8969 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8970 argument.
8971 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8972 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8973 argument.
8974 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8975 argument.
8976 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8977 argument.
8978 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8979 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8980 argument.
8981 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8982 'self' argument.
8983
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8987 argument.
8988 (target_remove_hw_breakpoint): Add argument.
8989 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8990 (update_current_target): Update.
8991 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8992 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8993 argument.
8994 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8995 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8996 argument.
8997 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8998 'self' argument.
8999
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9003 argument.
9004 (target_insert_hw_breakpoint): Add argument.
9005 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9006 (update_current_target): Update.
9007 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9008 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9009 argument.
9010 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9011 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9012 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9013 argument.
9014 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9015 'self' argument.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9020 argument.
9021 (target_can_use_hardware_watchpoint): Add argument.
9022 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9023 (update_current_target): Update.
9024 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9025 argument.
9026 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9027 argument.
9028 * remote.c (remote_check_watch_resources): Add 'self' argument.
9029 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9030 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9031 argument.
9032 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9033 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9034 argument.
9035 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9036 argument.
9037 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9038 argument.
9039 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9040 argument.
9041 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9042 argument.
9043 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9044 argument.
9045 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9046 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9047 argument.
9048 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9049 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_post_attach>: Add argument.
9054 (target_post_attach): Add argument.
9055 * target.c (debug_to_post_attach): Add argument.
9056 (update_current_target): Update.
9057 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9058 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9059 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9060 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9061 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9062
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * windows-nat.c (windows_close): Add 'self' argument.
9066 * tracepoint.c (tfile_close): Add 'self' argument.
9067 * target.h (struct target_ops) <to_close>: Add argument.
9068 * target.c (target_close): Add argument.
9069 (update_current_target): Update.
9070 * remote.c (remote_close): Add 'self' argument.
9071 * remote-sim.c (gdbsim_close): Add 'self' argument.
9072 * remote-mips.c (mips_close): Add 'self' argument.
9073 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9074 * record-full.c (record_full_close): Add 'self' argument.
9075 * record-btrace.c (record_btrace_close): Add 'self' argument.
9076 * monitor.h (monitor_close): Add 'self' argument.
9077 * monitor.c (monitor_close): Add 'self' argument.
9078 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9079 * linux-nat.c (linux_nat_close): Add argument.
9080 * go32-nat.c (go32_close): Add 'self' argument.
9081 * exec.c (exec_close_1): Add 'self' argument.
9082 * ctf.c (ctf_close): Add 'self' argument.
9083 * corelow.c (core_close): Add 'self' argument.
9084 (core_close_cleanup): Update.
9085 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9086 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * remote.c (remote_load): New function.
9091 (init_remote_ops): Use it.
9092
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9096 argument.
9097 * common/linux-btrace.h (linux_supports_btrace): Update.
9098 * remote.c (remote_supports_btrace): Add "self" argument.
9099 * target-delegates.c: Rebuild.
9100 * target.c (target_supports_btrace): Remove.
9101 * target.h (struct target_ops) <to_supports_btrace>: Add
9102 target_ops argument.
9103 (target_supports_btrace): New define.
9104
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * record-full.c (record_full_beneath_to_resume_ops)
9108 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9109 (record_full_beneath_to_wait)
9110 (record_full_beneath_to_store_registers_ops)
9111 (record_full_beneath_to_store_registers)
9112 (record_full_beneath_to_xfer_partial_ops)
9113 (record_full_beneath_to_xfer_partial)
9114 (record_full_beneath_to_insert_breakpoint_ops)
9115 (record_full_beneath_to_insert_breakpoint)
9116 (record_full_beneath_to_remove_breakpoint_ops)
9117 (record_full_beneath_to_remove_breakpoint)
9118 (record_full_beneath_to_stopped_by_watchpoint)
9119 (record_full_beneath_to_stopped_data_address)
9120 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9121 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9122 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9123 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9124 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9125 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9126 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9127 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9128 (record_full_resume, record_full_wait_1)
9129 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9130 (record_full_store_registers, record_full_xfer_partial)
9131 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9132 (record_full_async, record_full_core_xfer_partial): Use target
9133 delegation.
9134 * target-delegates.c: Rebuild.
9135 * target.c (current_xfer_partial): Remove.
9136 (update_current_target): Do not INHERIT or de_fault
9137 to_insert_breakpoint, to_remove_breakpoint,
9138 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9139 to_is_async_p, to_async. Do not set to_xfer_partial field.
9140 (default_xfer_partial): Simplify.
9141 (current_xfer_partial): Remove.
9142 (target_wait, target_resume): Simplify.
9143 (find_default_can_async_p, find_default_is_async_p): Update.
9144 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9145 to_xfer_partial, to_stopped_by_watchpoint,
9146 to_stopped_data_address.
9147 (target_store_registers): Simplify.
9148 (forward_target_remove_breakpoint)
9149 (forward_target_insert_breakpoint): Remove.
9150 (target_remove_breakpoint, target_insert_breakpoint)
9151 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9152 * target.h (struct target_ops) <to_resume, to_wait,
9153 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9154 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9155 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9156 markup.
9157 (forward_target_remove_breakpoint)
9158 (forward_target_insert_breakpoint): Remove.
9159 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9160 directly.
9161 (record_btrace_insert_breakpoint): Delegate directly.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 PR build/7701:
9166 * target-delegates.c: New file.
9167 * target.c: Include target-delegates.c.
9168 (init_dummy_target): Call install_dummy_methods.
9169 (complete_target_initialization): Call install_delegators.
9170 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9171 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9172 * make-target-delegates: New file.
9173
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * record.c (find_record_target): Use find_target_at.
9177 * target.c (find_target_at): New function.
9178 * target.h (find_target_at): Declare.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9183 Add 'ops' argument.
9184 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9185 'ops' argument.
9186 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9187 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9188 'ops' argument.
9189 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9190 argument.
9191 * linux-nat.c (save_sigtrap): Update.
9192 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9193 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9194 (linux_nat_close): Update.
9195 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9196 argument.
9197 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9198 argument.
9199 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9200 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9201 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9202 (tmp_to_async): Add 'ops' argument.
9203 (record_full_stopped_by_watchpoint, record_full_async)
9204 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9205 argument.
9206 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9207 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9208 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9209 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9210 (remote_is_async_p, remote_async): Add 'ops' argument.
9211 (remote_stopped_data_address): Update.
9212 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9213 * target.c (update_current_target)
9214 (find_default_can_async_p, find_default_is_async_p): Update.
9215 (init_dummy_target): Update.
9216 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9217 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9218 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9219 (target_can_async_p, target_is_async_p, target_async)
9220 (target_stopped_by_watchpoint): Update.
9221
9222 2014-02-19 Yao Qi <yao@codesourcery.com>
9223
9224 PR gdb/16220
9225 * gdbarch.sh: Remove startup_gdbarch.
9226 * gdbarch.c: Regenerated.
9227 * gdbarch.h: Likewise.
9228
9229 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9230
9231 * rl78-tdep.c (rl78_g10_register_name): New function.
9232 (rl78_return_value): Add g10 support.
9233 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9234 g10.
9235
9236 2014-02-17 Doug Evans <xdje42@gmail.com>
9237
9238 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9239 (SUBDIR_GUILE_SRCS): Ditto.
9240 (scm-gsmob.o): Ditto.
9241
9242 2014-02-17 Yao Qi <yao@codesourcery.com>
9243
9244 * gnu-nat.c (ILL_RPC): Declare defined function.
9245
9246 2014-02-17 Yao Qi <yao@codesourcery.com>
9247
9248 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9249 mach_msg_type_number_t.
9250 (gnu_write_inferior): Likewise.
9251
9252 2014-02-17 Yao Qi <yao@codesourcery.com>
9253
9254 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9255 in format string.
9256 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9257 (inf_validate_procs, inf_signal): Likewise.
9258 (S_exception_raise_request): Likewise.
9259 (do_mach_notify_dead_name): Likewise.
9260 (steal_exc_port): Likewise.
9261 (gnu_read_inferior): Change 'copy_count''s type to
9262 mach_msg_type_number_t.
9263 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9264 format string.
9265
9266 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9267
9268 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9269 flag. Adjust all users; in particular...
9270 (gnu_wait): ..., don't decrement its value in here...
9271 (gnu_create_inferior): ..., and instead set the flag in here,
9272 around the startup_inferior call, and call that one with
9273 START_INFERIOR_TRAPS_EXPECTED.
9274
9275 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9276 (ILL_RPC): ... new macro.
9277 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9278 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9279 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9280 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9281 functions with ILL_RPC macro.
9282 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9283 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9284 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9285 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9286 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9287 (S_proc_getlogin_reply, S_proc_getsid_reply)
9288 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9289 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9290 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9291 (S_proc_getnports_reply, S_proc_is_important_reply)
9292 (S_proc_get_code_reply): New stub functions, generated with
9293 ILL_RPC macro.
9294
9295 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9296 collected the type check structures.
9297
9298 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9299
9300 2014-02-14 Doug Evans <dje@google.com>
9301
9302 * target.c (target_write_partial): Fix result type.
9303
9304 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9305
9306 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9307 the proper offsets to access fpregset_t.
9308
9309 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9310
9311 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9312 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9313 * h8300-tdep.c (setmachinelist): Remove global.
9314 * hppa-tdep.c (hppa_sigtramp): Remove global.
9315 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9316 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9317 * ravenscar-thread.c (update_target_observer): Remove global.
9318 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9319
9320 2014-02-12 Tom Tromey <tromey@redhat.com>
9321
9322 * common/rsp-low.c: Update comments.
9323 * common/rsp-low.h: Update comments.
9324
9325 2014-02-12 Tom Tromey <tromey@redhat.com>
9326
9327 * common/rsp-low.c (convert_ascii_to_int): Remove.
9328 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9329
9330 2014-02-12 Tom Tromey <tromey@redhat.com>
9331
9332 * common/rsp-low.h (unhexify): Don't declare.
9333 * common/rsp-low.c (unhexify): Remove.
9334
9335 2014-02-12 Tom Tromey <tromey@redhat.com>
9336
9337 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9338 * common/rsp-low.c (convert_int_to_ascii): Remove.
9339
9340 2014-02-12 Tom Tromey <tromey@redhat.com>
9341
9342 * common/rsp-low.h (hexify): Don't declare.
9343 * common/rsp-low.c (hexify): Remove.
9344
9345 2014-02-12 Tom Tromey <tromey@redhat.com>
9346
9347 * common/rsp-low.c (hexify): Never take strlen of argument.
9348
9349 2014-02-12 Tom Tromey <tromey@redhat.com>
9350
9351 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9352 * remote.c (extended_remote_run, remote_rcmd)
9353 (remote_download_trace_state_variable, remote_save_trace_data)
9354 (remote_set_trace_notes): Update.
9355 * tracepoint.c (encode_source_string, tfile_write_status)
9356 (tfile_write_uploaded_tsv): Update.
9357
9358 2014-02-12 Tom Tromey <tromey@redhat.com>
9359
9360 * tracepoint.c: Include rsp-low.h.
9361 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9362 * remote.c: Include rsp-low.h.
9363 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9364 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9365 (remote_unescape_input): Move to common/rsp-low.c.
9366 * common/rsp-low.h: New file.
9367 * common/rsp-low.c: New file.
9368 * Makefile.in (SFILES): Add common/rsp-low.c.
9369 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9370 (COMMON_OBS): Add rsp-low.o.
9371 (rsp-low.o): New target.
9372
9373 2014-02-12 Tom Tromey <tromey@redhat.com>
9374
9375 * utils.h: Include print-utils.h.
9376 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9377 (int_string, core_addr_to_string, core_addr_to_string_nz)
9378 (hex_string, hex_string_custom): Don't declare.
9379 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9380 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9381 (hex_string_custom, int_string, core_addr_to_string)
9382 (core_addr_to_string_nz, host_address_to_string): Move to
9383 common/print-utils.c.
9384 * common/print-utils.h: New file.
9385 * common/print-utils.c: New file
9386 * Makefile.in (SFILES): Add common/print-utils.c.
9387 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9388 (COMMON_OBS): Add print-utils.o.
9389 (print-utils.o): New target.
9390
9391 2014-02-12 Tom Tromey <tromey@redhat.com>
9392
9393 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9394
9395 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9396
9397 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9398
9399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9400
9401 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9402 if a PT_IO ptrace request returns sucessfully but indicates that 0
9403 bytes were transferred.
9404
9405 2014-02-12 Pedro Alves <palves@redhat.com>
9406 Kevin Buettner <kevinb@redhat.com>
9407
9408 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9409 TYPE_INSTANCE_FLAG_CODE_SPACE.
9410
9411 2014-02-12 Pedro Alves <palves@redhat.com>
9412
9413 * h8300-tdep.c (pseudo_from_raw_register)
9414 (raw_from_pseudo_register): New functions.
9415 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9416 them.
9417
9418 2014-02-12 Pedro Alves <palves@redhat.com>
9419
9420 * h8300-tdep.c (h8300_register_sim_regno): New function.
9421 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9422 gdbarch_register_sim_regno hook.
9423
9424 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9425
9426 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9427
9428 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9429
9430 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9431
9432 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9433
9434 * obsd-tdep.h (obsd_init_abi): New prototype.
9435 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9436 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9437 (obsd_init_abi): New functions.
9438 * i386obsd-tdep.c: Include "obsd-tdep.h".
9439 (i386obsd_init_abi): Call obsd_init_abi.
9440 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9441 (amd64obsd_init_abi): Call obsd_init_abi.
9442 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9443 obsd-tdep.c to gdb_target_obs.
9444
9445 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9446
9447 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9448 double float arguments to 16-byte in the argument slots.
9449
9450 2014-02-11 Doug Evans <xdje42@gmail.com>
9451
9452 * configure.ac: Don't crash if pkg-config is not found and guile
9453 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9454 in guile checks.
9455 * configure: Regenerate.
9456
9457 2014-02-11 Yao Qi <yao@codesourcery.com>
9458
9459 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9460 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9461 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9462 * gnu-nat.c (gnu_xfer_memory): Likewise.
9463 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9467
9468 2014-02-11 Yao Qi <yao@codesourcery.com>
9469
9470 * target.h (enum target_xfer_error): Rename to ...
9471 (enum target_xfer_status): ... it. New. All users updated.
9472 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9473 New.
9474 (TARGET_XFER_STATUS_ERROR_P): New macro.
9475 (target_xfer_error_to_string): Remove declaration.
9476 (target_xfer_status_to_string): Declare.
9477 (target_xfer_partial_ftype): Adjust it.
9478 (struct target_ops) <to_xfer_partial>: Return
9479 target_xfer_status. Add argument xfered_len. Update
9480 comments.
9481 * target.c (target_xfer_error_to_string): Rename to ...
9482 (target_xfer_status_to_string): ... it. New. All callers
9483 updated.
9484 (target_read_live_memory): Likewise. Call target_xfer_partial
9485 instead of target_read.
9486 (memory_xfer_live_readonly_partial): Return
9487 target_xfer_status. Add argument xfered_len.
9488 (raw_memory_xfer_partial): Likewise.
9489 (memory_xfer_partial_1): Likewise.
9490 (memory_xfer_partial): Likewise.
9491 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9492 properly. Update debug message.
9493 (default_xfer_partial, current_xfer_partial): Likewise.
9494 (target_write_partial): Likewise.
9495 (target_read_partial): Likewise. All callers updated.
9496 (read_whatever_is_readable): Likewise.
9497 (target_write_with_progress): Likewise.
9498 (target_read_alloc_1): Likewise.
9499
9500 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9501 * auxv.c (procfs_xfer_auxv): Likewise.
9502 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9503 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9504 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9505 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9506 * corefile.c (read_memory): Adjust.
9507 * corelow.c (core_xfer_partial): Likewise.
9508 * ctf.c (ctf_xfer_partial): Likewise.
9509 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9510 updated.
9511 (darwin_xfer_partial): Likewise.
9512 * exec.c (section_table_xfer_memory_partial): Likewise. All
9513 callers updated.
9514 (exec_xfer_partial): Likewise.
9515 * exec.h (section_table_xfer_memory_partial): Update
9516 declaration.
9517 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9518 negative.
9519 (gnu_xfer_partial): Likewise.
9520 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9521 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9522 (ia64_hpux_xfer_solib_got): Likewise.
9523 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9524 type of 'partial_len' to ULONGEST.
9525 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9526 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9527 (linux_nat_xfer_partial): Likewise.
9528 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9529 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9530 * monitor.c (monitor_xfer_memory): Likewise.
9531 (monitor_xfer_partial): Likewise.
9532 * procfs.c (procfs_xfer_partial): Likewise.
9533 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9534 * record-full.c (record_full_xfer_partial): Likewise.
9535 (record_full_core_xfer_partial): Likewise.
9536 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9537 (gdbsim_xfer_partial): Likewise.
9538 * remote.c (remote_write_bytes_aux): Likewise. All callers
9539 updated.
9540 (remote_write_bytes, remote_read_bytes): Likewise. All
9541 callers updated.
9542 (remote_flash_erase): Likewise. All callers updated.
9543 (remote_write_qxfer): Likewise. All callers updated.
9544 (remote_read_qxfer): Likewise. All callers updated.
9545 (remote_xfer_partial): Likewise.
9546 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9547 (rs6000_xfer_shared_libraries): Likewise.
9548 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9549 (sol_thread_xfer_partial): Likewise.
9550 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9551 (sparc_xfer_partial): Likewise.
9552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9553 updated.
9554 (spu_xfer_partial): Likewise.
9555 * spu-multiarch.c (spu_xfer_partial): Likewise.
9556 * tracepoint.c (tfile_xfer_partial): Likewise.
9557 * windows-nat.c (windows_xfer_memory): Likewise.
9558 (windows_xfer_shared_libraries): Likewise.
9559 (windows_xfer_partial): Likewise.
9560 * valprint.c: Replace 'target_xfer_error' with
9561 'target_xfer_status' in comments.
9562
9563 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9564
9565 Checked in by Joel Brobecker <brobecker@adacore.com>.
9566 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9567
9568 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9569
9570 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9571 function parameters.
9572
9573 2014-02-10 Will Newton <will.newton@linaro.org>
9574
9575 * elfread.c (elf_rel_plt_read): Look for a .got section if
9576 looking up .got.plt fails.
9577 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9578 on address passed to elf_gnu_ifunc_record_cache.
9579 (elf_gnu_ifunc_resolve_addr): Likewise.
9580 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9581
9582 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9583
9584 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9585 (X_RETTURN): New macro.
9586 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9587
9588 * sparc64-tdep.c (sparc64_init_abi): Hook
9589 sparc_in_function_epilogue_p.
9590
9591 2014-02-10 Gary Benson <gbenson@redhat.com>
9592
9593 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9594 Rename name_matcher to symbol_matcher.
9595
9596 2014-02-10 Gary Benson <gbenson@redhat.com>
9597
9598 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9599 Use expand_symtabs_file_matcher_ftype and
9600 expand_symtabs_symbol_matcher_ftype.
9601
9602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9603
9604 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9605 (struct ada_symbol_cache): New.
9606 (ada_free_symbol_cache): Forward declare.
9607 (struct ada_pspace_data): New.
9608 (ada_pspace_data_handle): New static global.
9609 (get_ada_pspace_data, ada_pspace_data_cleanup)
9610 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9611 (cache_space, cache): Delete, now folded inside struct
9612 ada_pspace_data.
9613 (ada_get_symbol_cache): New function.
9614 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9615 implementation.
9616 (_initialize_ada_language): Remove initialization of cache_space.
9617 Move call to observer_attach_inferior_exit up, grouping it
9618 with the other observer registrations inside this function.
9619 Rename command to be more general. Add call to
9620 register_program_space_data_with_cleanup.
9621
9622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9623
9624 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9625 ada_new_objfile_observer.
9626 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9627 (_initialize_tasks): Update uses of ada_new_objfile_observer
9628 and ada_tasks_normal_stop_observer.
9629
9630 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9631
9632 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9633 returned by the 'Length attribute to integer.
9634
9635 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9636
9637 * ada-lang.c (_initialize_ada_language): Initialize
9638 cache_space obstack.
9639
9640 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9641
9642 * ada-lang.c (HASH_SIZE): New macro.
9643 (struct cache_entry): New type.
9644 (cache_space, cache): New static globals.
9645 (ada_clear_symbol_cache, find_entry): New functions.
9646 (lookup_cached_symbol, cache_symbol): Implement.
9647 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9648 (_initialize_ada_language): Attach ada_new_objfile_observer
9649 and ada_free_objfile_observer.
9650
9651 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9652
9653 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9654 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9655 struct block * parameter.
9656 (ada_lookup_symbol_list_worker): Constify local variable "block".
9657 Remove cast which is no longer necessary.
9658
9659 2014-02-10 Doug Evans <xdje42@gmail.com>
9660
9661 Add Guile as an extension language.
9662 * NEWS: Mention Guile scripting.
9663 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9664 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9665 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9666 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9667 (CLIBS): Add GUILE_LIBS.
9668 (install-guile): New rule.
9669 (guile.o): New rule.
9670 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9671 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9672 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9673 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9674 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9675 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9676 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9677 * configure.ac: New option --with-guile.
9678 * configure: Regenerate.
9679 * config.in: Regenerate.
9680 * auto-load.c: Remove #include "python/python.h". Add #include
9681 "gdb/section-scripts.h".
9682 (source_section_scripts): Handle Guile scripts.
9683 (_initialize_auto_load): Add name of Guile objfile script to
9684 scripts-directory help text.
9685 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9686 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9687 (struct breakpoint): New member scm_bp_object.
9688 * defs.h (enum command_control_type): New value guile_control.
9689 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9690 "extension.h".
9691 (show_user): Update comment.
9692 (_initialize_cli_cmds): Update help text for "show user". Update help
9693 text for max-user-call-depth.
9694 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9695 "extension.h".
9696 (multi_line_command_p): Add guile_control.
9697 (print_command_lines): Handle guile_control.
9698 (execute_control_command, recurse_read_control_structure): Ditto.
9699 (process_next_line): Recognize "guile" commands.
9700 * disasm.c (gdb_disassemble_info): Make non-static.
9701 * disasm.h: #include "dis-asm.h".
9702 (struct gdbarch): Add forward decl.
9703 (gdb_disassemble_info): Declare.
9704 * extension.c: #include "guile/guile.h".
9705 (extension_languages): Add guile.
9706 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9707 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9708 * gdbtypes.c (get_unsigned_type_max): New function.
9709 (get_signed_type_minmax): New function.
9710 * gdbtypes.h (get_unsigned_type_max): Declare.
9711 (get_signed_type_minmax): Declare.
9712 * guile/README: New file.
9713 * guile/guile-internal.h: New file.
9714 * guile/guile.c: New file.
9715 * guile/guile.h: New file.
9716 * guile/scm-arch.c: New file.
9717 * guile/scm-auto-load.c: New file.
9718 * guile/scm-block.c: New file.
9719 * guile/scm-breakpoint.c: New file.
9720 * guile/scm-disasm.c: New file.
9721 * guile/scm-exception.c: New file.
9722 * guile/scm-frame.c: New file.
9723 * guile/scm-gsmob.c: New file.
9724 * guile/scm-iterator.c: New file.
9725 * guile/scm-lazy-string.c: New file.
9726 * guile/scm-math.c: New file.
9727 * guile/scm-objfile.c: New file.
9728 * guile/scm-ports.c: New file.
9729 * guile/scm-pretty-print.c: New file.
9730 * guile/scm-safe-call.c: New file.
9731 * guile/scm-string.c: New file.
9732 * guile/scm-symbol.c: New file.
9733 * guile/scm-symtab.c: New file.
9734 * guile/scm-type.c: New file.
9735 * guile/scm-utils.c: New file.
9736 * guile/scm-value.c: New file.
9737 * guile/lib/gdb.scm: New file.
9738 * guile/lib/gdb/boot.scm: New file.
9739 * guile/lib/gdb/experimental.scm: New file.
9740 * guile/lib/gdb/init.scm: New file.
9741 * guile/lib/gdb/iterator.scm: New file.
9742 * guile/lib/gdb/printing.scm: New file.
9743 * guile/lib/gdb/types.scm: New file.
9744 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9745 (VPATH): Add $(GUILE_SRCDIR).
9746 (GUILE_DIR): New variable.
9747 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9748 (all): Add stamp-guile dependency.
9749 (stamp-guile): New rule.
9750 (clean-guile, install-guile, uninstall-guile): New rules.
9751 (install-only): Add install-guile dependency.
9752 (uninstall): Add uninstall-guile dependency.
9753 (clean): Add clean-guile dependency.
9754
9755 2014-02-09 Doug Evans <xdje42@gmail.com>
9756
9757 Revert this patch (which I approved, mea culpa).
9758
9759 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9760
9761 * Makefile.in (all-lib): Remove.
9762 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9763
9764 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9765
9766 Fix Python stack corruption.
9767 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9768 gdb_py_longest.
9769
9770 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9771
9772 * Makefile.in (all-lib): Remove.
9773 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9774
9775 2014-02-07 Doug Evans <dje@google.com>
9776
9777 * extension-priv.h (extension_language_script_ops): Add comment.
9778 (extension_language_ops): Add comment.
9779 (active_ext_lang_state): Fix typo in comment.
9780
9781 2014-02-07 Pedro Alves <palves@redhat.com>
9782
9783 PR breakpoints/16292
9784 * infrun.c (handle_signal_stop) <signal arrives while stepping
9785 over a breakpoint>: Switch back to the stepping thread.
9786
9787 2014-02-07 Yao Qi <yao@codesourcery.com>
9788
9789 * target.c (target_xfer_partial): Return zero if LEN is zero.
9790
9791 2014-02-07 Yao Qi <yao@codesourcery.com>
9792
9793 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9794 (ld_so_xfer_auxv): Likewise.
9795 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9796 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9797 * corelow.c (core_xfer_partial): Likewise.
9798 * ctf.c (ctf_xfer_partial): Likewise.
9799 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9800 (darwin_xfer_partial): Likewise.
9801 * exec.c (exec_xfer_partial): Likewise.
9802 * gnu-nat.c (gnu_xfer_partial): Likewise.
9803 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9804 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9805 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9806 * linux-nat.c (linux_xfer_siginfo): Likewise.
9807 (linux_proc_xfer_spu): Likewise.
9808 * procfs.c (procfs_xfer_partial): Likewise.
9809 * record-full.c (record_full_xfer_partial): Likewise.
9810 (record_full_core_xfer_partial): Likewise.
9811 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9812 * remote.c (remote_write_qxfer): Likewise.
9813 (remote_write_qxfer, remote_read_qxfer): Likewise.
9814 (remote_xfer_partial): Likewise.
9815 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9816 (rs6000_xfer_shared_libraries): Likewise.
9817 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9818 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9819 (spu_xfer_partial): Likewise.
9820 * target.c (memory_xfer_partial_1): Likewise.
9821 * tracepoint.c (tfile_xfer_partial): Likewise.
9822 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9823 (windows_xfer_partial): Likewise.
9824
9825 2014-02-07 Yao Qi <yao@codesourcery.com>
9826
9827 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9828 comments.
9829 (core_xfer_shared_libraries_aix): Likewise.
9830 * gdbarch.c, gdbarch.h: Regenerated.
9831 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9832 ULONGEST. Change 'len_avail' type to ULONGEST.
9833 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9834 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9835 declaration.
9836 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9837
9838 2014-02-07 Yao Qi <yao@codesourcery.com>
9839
9840 * corefile.c (memory_error): Get 'exception' from ERR and pass
9841 'exception' to throw_error.
9842
9843 2014-02-06 Doug Evans <xdje42@gmail.com>
9844
9845 * configure.ac (libpython checking): Remove all but python.o from
9846 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9847 * configure: Regenerate.
9848
9849 * Makefile.in (SFILES): Add extension.c.
9850 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9851 (COMMON_OBS): Add extension.o.
9852 * extension.h: New file.
9853 * extension-priv.h: New file.
9854 * extension.c: New file.
9855
9856 * python/python-internal.h: #include "extension.h".
9857 (gdbpy_auto_load_enabled): Declare.
9858 (gdbpy_apply_val_pretty_printer): Declare.
9859 (gdbpy_apply_frame_filter): Declare.
9860 (gdbpy_preserve_values): Declare.
9861 (gdbpy_breakpoint_cond_says_stop): Declare.
9862 (gdbpy_breakpoint_has_cond): Declare.
9863 (void source_python_script_for_objfile): Delete.
9864 * python/python.c: #include "extension-priv.h".
9865 Delete inclusion of "observer.h".
9866 (extension_language_python): Moved here and renamed from
9867 script_language_python in py-auto-load.c.
9868 Redefined to be of type extension_language_defn.
9869 (python_extension_script_ops): New global.
9870 (python_extension_ops): New global.
9871 (struct python_env): New member previous_active.
9872 (restore_python_env): Call restore_active_ext_lang.
9873 (ensure_python_env): Call set_active_ext_lang.
9874 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9875 New arg extlang.
9876 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9877 New arg extlang.
9878 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9879 New arg extlang.
9880 (gdbpy_eval_from_control_command): Renamed from
9881 eval_python_from_control_command, made static. New arg extlang.
9882 (gdbpy_source_script) Renamed from source_python_script, made static.
9883 New arg extlang.
9884 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9885 result to int. New arg extlang.
9886 (gdbpy_source_objfile_script): Renamed from
9887 source_python_script_for_objfile, made static. New arg extlang.
9888 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9889 static. New args extlang, extlang_printers. Change result type to
9890 "void".
9891 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9892 static. New arg extlang. Rename arg printers to extlang_printers
9893 and change type to ext_lang_type_printers *.
9894 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9895 static. Replace argument arg with extlang, extlang_printers.
9896 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9897 (!HAVE_PYTHON, source_python_script): Delete.
9898 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9899 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9900 (!HAVE_PYTHON, start_type_printers): Delete.
9901 (!HAVE_PYTHON, apply_type_printers): Delete.
9902 (!HAVE_PYTHON, free_type_printers): Delete.
9903 (_initialize_python): Delete call to observer_attach_before_prompt.
9904 (finalize_python): Set/restore active extension language.
9905 (gdbpy_finish_initialization) Renamed from
9906 finish_python_initialization, made static. New arg extlang.
9907 (gdbpy_initialized): New function.
9908 * python/python.h: #include "extension.h". Delete #include
9909 "value.h", "mi/mi-cmds.h".
9910 (extension_language_python): Declare.
9911 (GDBPY_AUTO_FILE_NAME): Delete.
9912 (enum py_bt_status): Moved to extension.h and renamed to
9913 ext_lang_bt_status.
9914 (enum frame_filter_flags): Moved to extension.h.
9915 (enum py_frame_args): Moved to extension.h and renamed to
9916 ext_lang_frame_args.
9917 (finish_python_initialization): Delete.
9918 (eval_python_from_control_command): Delete.
9919 (source_python_script): Delete.
9920 (apply_val_pretty_printer): Delete.
9921 (apply_frame_filter): Delete.
9922 (preserve_python_values): Delete.
9923 (gdbpy_script_language_defn): Delete.
9924 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9925 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9926
9927 * auto-load.c: #include "extension.h".
9928 (GDB_AUTO_FILE_NAME): Delete.
9929 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9930 (script_language_gdb): Delete, moved to extension.c and renamed to
9931 extension_language_gdb.
9932 (source_gdb_script_for_objfile): Delete.
9933 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9934 (loaded_script): Change type of language member to
9935 struct extension_language_defn *.
9936 (init_loaded_scripts_info): Initialize
9937 unsupported_script_warning_printed.
9938 (maybe_add_script): Make static. Change type of language arg to
9939 struct extension_language_defn *.
9940 (clear_section_scripts): Reset unsupported_script_warning_printed.
9941 (auto_load_objfile_script_1): Rewrite to use extension language API.
9942 (auto_load_objfile_script): Make public. Remove support-compiled-in
9943 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9944 (source_section_scripts): Rewrite to use extension language API.
9945 (load_auto_scripts_for_objfile): Rewrite to use
9946 auto_load_scripts_for_objfile.
9947 (collect_matching_scripts_data): Change type of language member to
9948 struct extension_language_defn *.
9949 (auto_load_info_scripts): Change type of language arg to
9950 struct extension_language_defn *.
9951 (unsupported_script_warning_print): New function.
9952 (script_not_found_warning_print): Make static.
9953 (_initialize_auto_load): Rewrite construction of scripts-directory
9954 help.
9955 * auto-load.h (struct objfile): Add forward decl.
9956 (struct script_language): Delete.
9957 (struct auto_load_pspace_info): Add forward decl.
9958 (struct extension_language_defn): Add forward decl.
9959 (maybe_add_script): Delete.
9960 (auto_load_objfile_script): Declare.
9961 (script_not_found_warning_print): Delete.
9962 (auto_load_info_scripts): Update prototype.
9963 (auto_load_gdb_scripts_enabled): Declare.
9964 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9965 auto_load_python_scripts_enabled and made public.
9966 (script_language_python): Delete, moved to python.c.
9967 (gdbpy_script_language_defn): Delete.
9968 (info_auto_load_python_scripts): Update to use
9969 extension_language_python.
9970
9971 * breakpoint.c (condition_command): Replace call to
9972 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9973 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9974 with call to breakpoint_ext_lang_cond_says_stop.
9975 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9976 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9977 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9978 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9979 New arg slang.
9980 (local_setattro): Print name of extension language with existing
9981 stop condition.
9982
9983 * valprint.c (val_print, value_print): Update to call
9984 apply_ext_lang_val_pretty_printer.
9985 * cp-valprint.c (cp_print_value): Update call to
9986 apply_ext_lang_val_pretty_printer.
9987 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9988 (gdbpy_apply_val_pretty_printer): Renamed from
9989 apply_val_pretty_printer. New arg extlang.
9990 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9991
9992 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9993 extension language API.
9994 * cli/cli-script.c (execute_control_command): Update to call
9995 eval_ext_lang_from_control_command.
9996
9997 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9998 enum ext_lang_bt_status values. Update call to
9999 apply_ext_lang_frame_filter.
10000 (mi_cmd_stack_list_locals): Ditto.
10001 (mi_cmd_stack_list_args): Ditto.
10002 (mi_cmd_stack_list_variables): Ditto.
10003 * mi/mi-main.c: Delete #include "python/python-internal.h".
10004 Add #include "extension.h".
10005 (mi_cmd_list_features): Replace reference to python internal variable
10006 gdb_python_initialized with call to ext_lang_initialized_p.
10007
10008 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10009 Update to use enum ext_lang_frame_args. Update to call
10010 apply_ext_lang_frame_filter.
10011 * python/py-framefilter.c (extract_sym): Update to use enum
10012 ext_lang_bt_status.
10013 (extract_value, py_print_type, py_print_value): Ditto.
10014 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10015 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10016 (py_print_frame): Ditto.
10017 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10018 New arg extlang. Update to use enum ext_lang_bt_status.
10019
10020 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10021 finish_python_initialization. Replace with call to
10022 finish_ext_lang_initialization.
10023
10024 * typeprint.c (do_free_global_table): Update to call
10025 free_ext_lang_type_printers.
10026 (create_global_typedef_table): Update to call
10027 start_ext_lang_type_printers.
10028 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10029 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10030 (type_print_options): Change type of global_printers from "void *"
10031 to "struct ext_lang_type_printers *".
10032
10033 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10034 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10035 (gdbpy_preserve_values): Renamed from preserve_python_values.
10036 New arg extlang.
10037 (!HAVE_PYTHON, preserve_python_values): Delete.
10038
10039 * utils.c (quit_flag): Delete, moved to extension.c.
10040 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10041 extension.c.
10042
10043 * eval.c: Delete #include "python/python.h".
10044 * main.c: Delete #include "python/python.h".
10045
10046 * defs.h: Update comment.
10047
10048 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10049
10050 GDB 7.7 released.
10051
10052 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10053
10054 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10055 defined.
10056
10057 2014-02-05 Yao Qi <yao@codesourcery.com>
10058
10059 * remote.c (remote_pass_signals): Remove local 'buf' and use
10060 rs->buf.
10061 (remote_program_signals): Likewise.
10062
10063 2014-02-05 Yao Qi <yao@codesourcery.com>
10064
10065 * ctf.c: Include "inferior.h" and "gdbthread.h".
10066 (CTF_PID): A new macro.
10067 (ctf_open): Call inferior_appeared and add_thread_silent.
10068 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10069 (ctf_thread_alive): New function.
10070 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10071
10072 2014-02-05 Yao Qi <yao@codesourcery.com>
10073
10074 Revert this patch:
10075
10076 2013-05-24 Yao Qi <yao@codesourcery.com>
10077
10078 * tracepoint.c (TFILE_PID): Remove.
10079 (tfile_open): Don't add thread and inferior.
10080 (tfile_close): Don't set 'inferior_ptid'. Don't call
10081 exit_inferior_silent.
10082 (tfile_thread_alive): Remove.
10083 (init_tfile_ops): Don't set field 'to_thread_alive' of
10084 tfile_ops.
10085
10086 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10087
10088 * remote.c (remote_start_remote): Call remote_check_symbols even
10089 if only symbol-file (not file) has been given.
10090
10091 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10092
10093 * gdbarch.sh (skip_entrypoint): New callback.
10094 * gdbarch.c, gdbarch.h: Regenerate.
10095 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10096 * infrun.c (fill_in_stop_func): Likewise.
10097 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10098 (ppc_elfv2_elf_make_msymbol_special): New function.
10099 (ppc_elfv2_skip_entrypoint): Likewise.
10100 (ppc_linux_init_abi): Install them for ELFv2.
10101
10102 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10103
10104 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10105 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10106 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10107 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10108 structures returned in GPRs.
10109
10110 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10111
10112 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10113 offset to the stack parameter list for the ELFv2 ABI.
10114
10115 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10116
10117 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10118 set_gdbarch_convert_from_func_ptr_addr and
10119 set_gdbarch_elf_make_msymbol_special for ELFv1.
10120 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10121 function descriptors on ELFv1.
10122 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10123 set up r12 at function entry.
10124
10125 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10126
10127 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10128 (struct gdbarch_tdep): New member elf_abi.
10129
10130 * rs6000-tdep.c: Include "elf/ppc64.h".
10131 (rs6000_gdbarch_init): Detect ELF ABI version.
10132
10133 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10134
10135 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10136 within a register pair holding a DFP 128-bit value on little-endian.
10137 (ppc64_sysv_abi_return_value_base): Likewise.
10138 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10139 (dfp_pseudo_register_write): Likewise.
10140
10141 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10142
10143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10144 offset on little-endian when passing _Decimal32.
10145 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10146
10147 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10148
10149 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10150 of the overlapped FP register within the VSX register on little-
10151 endian platforms.
10152 (efpr_pseudo_register_write): Likewise.
10153
10154 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10155
10156 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10157 offset on little-endian when passing small structures.
10158
10159 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10160
10161 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10162 (struct ppc64_sysv_argpos): New data structure.
10163 (ppc64_sysv_abi_push_float): Remove.
10164 (ppc64_sysv_abi_push_val): New function.
10165 (ppc64_sysv_abi_push_integer): Likewise.
10166 (ppc64_sysv_abi_push_freg): Likewise.
10167 (ppc64_sysv_abi_push_vreg): Likewise.
10168 (ppc64_sysv_abi_push_param): Likewise.
10169 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10170 (ppc64_sysv_abi_return_value_base): New function.
10171 (ppc64_sysv_abi_return_value): Refactor to use it.
10172
10173 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10174
10175 * NEWS: Document new target powerpc64le-*-linux*.
10176
10177 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10178
10179 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10180 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10181 core dumps.
10182 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10183 register set used in ELF core dumps. Add floating-point register set.
10184
10185 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10186
10187 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10188 dwarf2_to_gdb[] table using symbolic constants. Adjust
10189 penultimate entry from number representing the PC register
10190 to symbolic constant representing the MDR register. Add
10191 constant for the PC register to the end of the table.
10192
10193 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10194
10195 * bsd-kvm.c: Include <sys/param.h>
10196
10197 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10198
10199 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10200
10201 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10202
10203 * ada-lang.h (clear_ada_sym_cache): Delete.
10204
10205 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10206
10207 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10208
10209 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10210
10211 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10212 the sigreturn register save area only if the syscall is
10213 sigreturn.
10214
10215 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10216
10217 * valops.c (value_slice): Minor reformatting.
10218
10219 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10220
10221 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10222
10223 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10224
10225 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10226 New static globals.
10227 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10228 (ada_ignore_descriptive_types_p): New static global.
10229 (find_parallel_type_by_descriptive_type): Return immediately
10230 if ada_ignore_descriptive_types_p is set.
10231 (_initialize_ada_language): Register new commands "maintenance
10232 set ada", "maintenance show ada", "maintenance set ada
10233 ignore-descriptive-types" and "maintenance show ada
10234 ignore-descriptive-types".
10235 * NEWS: Add entry for new "maint ada set/show
10236 ignore-descriptive-types" commands.
10237
10238 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10239
10240 * record-btrace.c (record_btrace_close): Call btrace_teardown
10241 for all threads.
10242
10243 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10244
10245 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10246 "ui-out.h".
10247
10248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10249
10250 * ada-typeprint (type_is_full_subrange_of_target_type):
10251 New function.
10252 (print_range): Add parameter bounds_prefered_p. If not set,
10253 try printing range types using the name of their base type.
10254 (print_range_type): Add parameter bounds_prefered_p.
10255 Use it in call to print_range.
10256 (print_array_type, ada_print_type): Update calls to print_range
10257 and print_range_type.
10258
10259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10260
10261 * ada-typeprint.c (print_array_type, print_choices, print_range)
10262 (print_range_bound, print_dynamic_range_bound, print_range_type):
10263 Remove declaration.
10264
10265 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10266
10267 * ada-typeprint.c (print_range): Add missing empty line
10268 after local declaration.
10269
10270 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10271
10272 * ada-valprint.c (print_optional_low_bound): Get index_type's
10273 target type for as long as it is a TYPE_CODE_RANGE.
10274
10275 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10276
10277 * procfs.c (procfs_make_note_section): Remove assertion and
10278 associated comment.
10279
10280 2014-01-24 Yao Qi <yao@codesourcery.com>
10281
10282 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10283 * corelow.c (get_core_siginfo): Likewise.
10284
10285 2014-01-24 Yao Qi <yao@codesourcery.com>
10286
10287 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10288 ULONGEST. Don't check 'len' is negative.
10289 (remote_write_bytes): Change type of 'len' to ULONGEST.
10290
10291 2014-01-23 Tom Tromey <tromey@redhat.com>
10292
10293 PR python/16485:
10294 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10295 Handle exception from frame.block.
10296 (FrameVars.fetch_frame_locals): Likewise.
10297
10298 2014-01-23 Tom Tromey <tromey@redhat.com>
10299
10300 PR python/16487:
10301 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10302 on a NULL pointer. Move "goto error" to correct place.
10303
10304 2014-01-23 Tom Tromey <tromey@redhat.com>
10305
10306 PR python/16491:
10307 * python/py-framefilter.c (apply_frame_filter): Call
10308 ensure_python_env after computing gdbarch.
10309
10310 2014-01-23 Yao Qi <yao@codesourcery.com>
10311
10312 * target.c (raw_memory_xfer_partial): Change argument type
10313 from void * to gdb_byte *.
10314 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10315
10316 2014-01-22 Doug Evans <dje@google.com>
10317
10318 New gdbserver option --debug-format=timestamp.
10319 * NEWS: Mention it.
10320
10321 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10322
10323 * syscalls/s390x-linux.xml: New file.
10324 * syscalls/s390-linux.xml: New file.
10325 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10326 (XML_SYSCALL_FILENAME_S390X): Likewise.
10327 (op_svc): New enum value for SVC opcode.
10328 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10329 (s390_linux_get_syscall_number): New function.
10330 (s390_gdbarch_init): Register '*get_syscall_number' and the
10331 syscall xml file name.
10332 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10333 "s390-linux.xml" and "s390x-linux.xml".
10334 * NEWS: Announce new feature.
10335
10336 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10337
10338 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10339
10340 2014-01-22 Pedro Alves <palves@redhat.com>
10341
10342 * xtensa-config.c: Include defs.h.
10343
10344 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10345
10346 * common/common-utils.h: Add "ARI:" comment beside __func__
10347 reference.
10348
10349 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10350
10351 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10352 documentation a bit.
10353
10354 2014-01-21 Roland McGrath <mcgrathr@google.com>
10355
10356 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10357 * configure: Regenerate.
10358 * aclocal.m4: Regenerate.
10359 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10360 New substituted variables.
10361 (install-strip): New target.
10362 (INSTALL_SCRIPT): New substituted variable.
10363 (FLAGS_TO_PASS): Add it.
10364 (install-only): Use $(INSTALL_SCRIPT) rather than
10365 $(INSTALL_PROGRAM) for gcore.
10366
10367 2014-01-20 Tom Tromey <tromey@redhat.com>
10368
10369 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10370 together.
10371
10372 2014-01-20 Tom Tromey <tromey@redhat.com>
10373
10374 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10375 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10376 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10377 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10378 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10379 (struct cmd_list_element) <flags>: Remove.
10380 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10381 doc_allocated>: New fields.
10382 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10383 bitfields.
10384 * maint.c (maintenance_do_deprecate): Update.
10385 * top.c (execute_command): Update.
10386
10387 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10388
10389 * xtensa-linux-nat.c: Include asm/ptrace.h.
10390
10391 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10392
10393 * Makefile.in (SFILES): Add d-support.c.
10394 (COMMON_OBS): Add d-support.o.
10395 * d-lang.h (d_parse_symbol): Add comment, now defined in
10396 d-support.c.
10397 * d-lang.c (parse_call_convention)
10398 (parse_attributes, parse_function_types)
10399 (parse_function_args, parse_type, parse_identifier)
10400 (call_convention_p, d_parse_symbol): Move functions to ...
10401 * d-support.c: ... New file.
10402
10403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10404
10405 * d-lang.h (d_parse_symbol): Add declaration.
10406 * d-lang.c (extract_identifiers)
10407 (extract_type_info): Remove functions.
10408 (parse_call_convention, parse_attributes)
10409 (parse_function_types, parse_function_args)
10410 (parse_type, parse_identifier, call_convention_p)
10411 (d_parse_symbol): New functions.
10412 (d_demangle): Use d_parse_symbol to demangle D symbols.
10413
10414 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10415
10416 * d-lang.h (struct builtin_d_type): New data type.
10417 (builtin_d_type): Add declaration.
10418 * d-lang.c (d_language_arch_info, build_d_types)
10419 (builtin_d_type): New functions.
10420 (enum d_primitive_types): New data type.
10421 (d_language_defn): Change c_language_arch_info to
10422 d_language_arch_info.
10423 (d_type_data): New static variable.
10424 (_initialize_d_language): Initialize d_type_data.
10425
10426 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10427
10428 * d-lang.h (d_main_name): Add declaration.
10429 * d-lang.c (d_main_name): New function.
10430 * symtab.c (find_main_name): Add call to d_main_name.
10431
10432 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10433
10434 * d-lang.c (d_language_defn): Change macro_expansion_c to
10435 macro_expansion_no.
10436
10437 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10438
10439 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10440
10441 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10442
10443 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10444 gdb_exception" declaration.
10445 * remote.c (getpkt_or_notif_sane): Likewise.
10446
10447 2014-01-17 Doug Evans <dje@google.com>
10448
10449 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10450 function, contents of dirnames_to_char_ptr_vec_append moved here.
10451 (delim_string_to_char_ptr_vec): New function.
10452 (dirnames_to_char_ptr_vec_append): Rewrite.
10453 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10454
10455 2014-01-17 Doug Evans <dje@google.com>
10456
10457 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10458 and moved here ...
10459 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10460 #include "common-utils.h".
10461 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10462 * common/vec.h (VEC_ASSERT_PASS): Update.
10463 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10464 (MACH_CHECK_ERROR): Update.
10465
10466 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10467
10468 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10469 comments.
10470 * gdbarch.h: Regenerate.
10471
10472 2014-01-16 Tom Tromey <tromey@redhat.com>
10473
10474 * value.c (struct value) <regnum>: Move earlier.
10475
10476 2014-01-16 Tom Tromey <tromey@redhat.com>
10477
10478 * remote.c (extended_remote_create_inferior): Rename from
10479 extended_remote_create_inferior_1. Add "ops" argument. Remove
10480 old implementation.
10481
10482 2014-01-16 Pedro Alves <palves@redhat.com>
10483
10484 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10485 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10486 the backchain.
10487
10488 2014-01-16 Doug Evans <dje@google.com>
10489
10490 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10491
10492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10493
10494 * btrace.h (btrace_thread_flag): New.
10495 (struct btrace_thread_info) <flags>: New.
10496 * record-btrace.c (record_btrace_resume_thread)
10497 (record_btrace_find_thread_to_move, btrace_step_no_history)
10498 (btrace_step_stopped, record_btrace_start_replaying)
10499 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10500 (record_btrace_find_resume_thread): New.
10501 (record_btrace_resume, record_btrace_wait): Extend.
10502 (record_btrace_can_execute_reverse): New.
10503 (record_btrace_open): Fail in non-stop mode.
10504 (record_btrace_set_replay): Split into this, ...
10505 (record_btrace_stop_replaying): ... this, ...
10506 (record_btrace_clear_histories): ... and this.
10507 (init_record_btrace_ops): Init to_can_execute_reverse.
10508 * NEWS: Announce it.
10509
10510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10511
10512 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10513 (forward_target_decr_pc_after_break)
10514 (target_decr_pc_after_break): New.
10515 * target.c (forward_target_decr_pc_after_break)
10516 (target_decr_pc_after_break): New.
10517 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10518 instead of gdbarch_decr_pc_after_break.
10519 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10520 instead of gdbarch_decr_pc_after_break.
10521 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10522 instead of gdbarch_decr_pc_after_break.
10523 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10524 instead of gdbarch_decr_pc_after_break.
10525 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10526 instead of gdbarch_decr_pc_after_break.
10527 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10528 instead of gdbarch_decr_pc_after_break.
10529
10530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10531
10532 * btrace.c: Include regcache.h.
10533 (btrace_add_pc): New.
10534 (btrace_enable): Call btrace_add_pc.
10535 (btrace_is_empty): New.
10536 * btrace.h (btrace_is_empty): New.
10537 * record-btrace.c (require_btrace, record_btrace_info): Call
10538 btrace_is_empty.
10539
10540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10541
10542 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10543 Support delta reads.
10544 (linux_disable_btrace): Change return type.
10545 * common/linux-btrace.h (linux_read_btrace): Change parameters
10546 and return type to allow error reporting. Update users.
10547 (linux_disable_btrace): Change return type. Update users.
10548 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10549 New.
10550 (btrace_error): New.
10551 (btrace_block) <begin>: Comment on BEGIN == 0.
10552 * btrace.c (btrace_compute_ftrace): Start from the end of
10553 the current trace.
10554 (btrace_stitch_trace, btrace_clear_history): New.
10555 (btrace_fetch): Read delta trace, return if replaying.
10556 (btrace_clear): Move clear history code to btrace_clear_history.
10557 (parse_xml_btrace): Throw an error if parsing failed.
10558 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10559 and return type to allow error reporting.
10560 (target_read_btrace): Change parameters and return type to allow
10561 error reporting.
10562 * target.c (target_read_btrace): Update.
10563 * remote.c (remote_read_btrace): Support delta reads. Pass
10564 errors on.
10565 * NEWS: Announce it.
10566
10567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10568
10569 * record.h (record_btrace_frame_unwind)
10570 (record_btrace_tailcall_frame_unwind): New declarations.
10571 * dwarf2-frame: Include record.h
10572 (dwarf2_frame_cfa): Throw an error for btrace frames.
10573 * record-btrace.c: Include hashtab.h.
10574 (btrace_get_bfun_name): New.
10575 (btrace_call_history): Call btrace_get_bfun_name.
10576 (struct btrace_frame_cache): New.
10577 (bfcache): New.
10578 (bfcache_hash, bfcache_eq, bfcache_new): New.
10579 (btrace_get_frame_function): New.
10580 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10581 (record_btrace_frame_this_id): Compute own id.
10582 (record_btrace_frame_prev_register): Provide PC, throw_error
10583 for all other registers.
10584 (record_btrace_frame_sniffer): Detect btrace frames.
10585 (record_btrace_tailcall_frame_sniffer): New.
10586 (record_btrace_frame_dealloc_cache): New.
10587 (record_btrace_frame_unwind): Add new functions.
10588 (record_btrace_tailcall_frame_unwind): New.
10589 (_initialize_record_btrace): Allocate cache.
10590 * btrace.c (btrace_clear): Call reinit_frame_cache.
10591 * NEWS: Announce it.
10592
10593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10594
10595 * record-btrace.c (record_btrace_set_replay)
10596 (record_btrace_goto_begin, record_btrace_goto_end)
10597 (record_btrace_goto): New.
10598 (init_record_btrace_ops): Initialize them.
10599 * NEWS: Announce it.
10600
10601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10602
10603 * record-btrace.c (record_btrace_find_new_threads)
10604 (record_btrace_thread_alive): New.
10605 (init_record_btrace_ops): Initialize to_find_new_threads and
10606 to_thread_alive.
10607
10608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10609
10610 * record-btrace.c (record_btrace_resume): New.
10611 (record_btrace_wait): New.
10612 (init_record_btrace_ops): Initialize to_wait and to_resume.
10613
10614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10615
10616 * record-btrace.c (record_btrace_xfer_partial)
10617 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10618 (record_btrace_allow_memory_access): New.
10619 (init_record_btrace_ops): Initialize new methods.
10620 * target.c (raw_memory_xfer_partial): Bail out if target reports
10621 that this memory is not available.
10622
10623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10624
10625 * target.h (target_ops) <to_insert_breakpoint>
10626 <to_remove_breakpoint>: Add target_ops parameter.
10627 (forward_target_insert_breakpoint): New.
10628 (forward_target_remove_breakpoint): New.
10629 (memory_remove_breakpoint, memory_insert_breakpoint):
10630 Add target_ops parameter.
10631 * target.c (target_insert_breakpoint): Split into this and ...
10632 (forward_target_insert_breakpoint): ... this.
10633 (target_remove_breakpoint): Split into this and ...
10634 (forward_target_remove_breakpoint): ... this.
10635 (debug_to_insert_breakpoint): Add target_ops parameter.
10636 Call forward_target_insert_breakpoint.
10637 (debug_to_remove_breakpoint): Add target_ops parameter.
10638 Call forward_target_remove_breakpoint.
10639 (update_current_target): Do not inherit or default to_insert_breakpoint
10640 and to_remove_breakpoint.
10641 * corelow.c (ignore): Add target_ops parameter.
10642 * exec.c (ignore): Add target_ops parameter.
10643 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10644 Add target_ops parameter.
10645 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10646 Add target_ops parameter.
10647 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10648 Add target_ops parameter.
10649 * record-full.c (record_full_beneath_to_insert_breakpoint)
10650 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10651 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10652 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10653 (record_full_core_remove_breakpoint): Add target_ops parameter.
10654 Update users.
10655 (record_full_beneath_to_insert_breakpoint_ops)
10656 (record_full_beneath_to_remove_breakpoint_ops)
10657 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10658 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10659 tmp_to_remove_breakpoint_ops,
10660 record_full_beneath_to_insert_breakpoint_ops, and
10661 record_full_beneath_to_remove_breakpoint_ops.
10662 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10663 (m32r_remove_breakpoint): Add target_ops parameter.
10664 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10665 Add target_ops parameter.
10666 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10667 Add target_ops parameter.
10668
10669 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10670 Markus Metzger <markus.t.metzger@intel.com>
10671
10672 * record-btrace.c: Include frame-unwind.h.
10673 (record_btrace_frame_unwind_stop_reason)
10674 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10675 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10676 New.
10677 (init_record_btrace_ops): Install it.
10678
10679 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10682 get_prev_frame_1.
10683
10684 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10687 earlier.
10688
10689 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10690
10691 * frame-unwind.c: Include target.h.
10692 (frame_unwind_try_unwinder): New function with code from ...
10693 (frame_unwind_find_by_frame): ... here. New variable
10694 unwinder_from_target, call also target_get_unwinder)
10695 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10696 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10697 * target.h (struct target_ops): New fields to_get_unwinder and
10698 to_get_tailcall_unwinder.
10699 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10700
10701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10702
10703 * record-btrace.c (record_btrace_fetch_registers)
10704 (record_btrace_store_registers)
10705 (record_btrace_to_prepare_to_store): New.
10706 (init_record_btrace_ops): Add the above.
10707
10708 2014-01-16 Tom Tromey <tromey@redhat.com>
10709
10710 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10711 * target.h (struct target_ops) <to_prepare_to_store>: Add
10712 argument.
10713 (target_prepare_to_store): Add argument.
10714 * target.c (debug_to_prepare_to_store): Add argument.
10715 (update_current_target): Update.
10716 * remote.c (remote_prepare_to_store): Add 'self' argument.
10717 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10718 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10719 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10720 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10721 argument.
10722 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10723 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10724 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10725 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10726 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10727
10728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10729
10730 * btrace.h (replay) <replay>: New.
10731 (btrace_is_replaying): New.
10732 * btrace.c (btrace_clear): Free replay iterator.
10733 (btrace_is_replaying): New.
10734 * record-btrace.c (record_btrace_is_replaying): New.
10735 (record_btrace_info): Print insn number if replaying.
10736 (record_btrace_insn_history): Start at replay position.
10737 (record_btrace_call_history): Start at replay position.
10738 (init_record_btrace_ops): Init to_record_is_replaying.
10739
10740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10741
10742 * record-btrace.c (record_btrace_insn_history_range): Include
10743 end.
10744 (record_btrace_insn_history_from): Adjust range.
10745 (record_btrace_call_history_range): Include
10746 end.
10747 (record_btrace_call_history_from): Adjust range.
10748 * NEWS: Announce changes.
10749
10750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10751
10752 * record.h (enum record_print_flag)
10753 <record_print_indent_calls>: New.
10754 * record.c (get_call_history_modifiers): Recognize /c modifier.
10755 (_initialize_record): Document /c modifier.
10756 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10757 Reorder fields. Optionally indent the function name. Update
10758 all users.
10759 * NEWS: Announce changes.
10760
10761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10762
10763 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10764
10765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10766
10767 * btrace.c (ftrace_new_function): Start counting at one.
10768 * record-btrace.c (record_btrace_info): Adjust number of calls
10769 and insns.
10770 * NEWS: Announce it.
10771
10772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10773
10774 * record-btrace.c (btrace_call_history_insn_range): Print
10775 insn range as [begin, end].
10776
10777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10778
10779 * btrace.h (struct btrace_func_link): New.
10780 (enum btrace_function_flag): New.
10781 (struct btrace_inst): Rename to ...
10782 (struct btrace_insn): ...this. Update all users.
10783 (struct btrace_func) <ibegin, iend>: Remove.
10784 (struct btrace_func_link): New.
10785 (struct btrace_func): Rename to ...
10786 (struct btrace_function): ...this. Update all users.
10787 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10788 (number, level, flags>: New.
10789 (struct btrace_insn_iterator): Rename to ...
10790 (struct btrace_insn_history): ...this.
10791 Update all users.
10792 (struct btrace_insn_iterator, btrace_call_iterator): New.
10793 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10794 (struct btrace_target_info) <begin, end, level>
10795 <insn_history, call_history>: New.
10796 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10797 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10798 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10799 (btrace_call_number, btrace_call_begin, btrace_call_end)
10800 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10801 (btrace_find_function_by_number, btrace_set_insn_history)
10802 (btrace_set_call_history): New.
10803 * btrace.c (btrace_init_insn_iterator)
10804 (btrace_init_func_iterator, compute_itrace): Remove.
10805 (ftrace_print_function_name, ftrace_print_filename)
10806 (ftrace_skip_file): Change
10807 parameter to const.
10808 (ftrace_init_func): Remove.
10809 (ftrace_debug): Use new btrace_function fields.
10810 (ftrace_function_switched): Also consider gaining and
10811 losing symbol information).
10812 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10813 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10814 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10815 New.
10816 (ftrace_new_function): Move. Remove debug print.
10817 (ftrace_update_lines, ftrace_update_insns): New.
10818 (ftrace_update_function): Check for call, ret, and jump.
10819 (compute_ftrace): Renamed to ...
10820 (btrace_compute_ftrace): ...this. Rewritten to compute call
10821 stack.
10822 (btrace_fetch, btrace_clear): Updated.
10823 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10824 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10825 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10826 (btrace_call_number, btrace_call_begin, btrace_call_end)
10827 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10828 (btrace_find_function_by_number, btrace_set_insn_history)
10829 (btrace_set_call_history): New.
10830 * record-btrace.c (require_btrace): Use new btrace thread
10831 info fields.
10832 (record_btrace_info, btrace_insn_history)
10833 (record_btrace_insn_history, record_btrace_insn_history_range):
10834 Use new btrace thread info fields and new iterator.
10835 (btrace_func_history_src_line): Rename to ...
10836 (btrace_call_history_src_line): ...this. Use new btrace
10837 thread info fields.
10838 (btrace_func_history): Rename to ...
10839 (btrace_call_history): ...this. Use new btrace thread info
10840 fields and new iterator.
10841 (record_btrace_call_history, record_btrace_call_history_range):
10842 Use new btrace thread info fields and new iterator.
10843
10844 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10845
10846 * frame.h (frame_id_build_unavailable_stack_special): New.
10847 * frame.c (frame_id_build_unavailable_stack_special): New.
10848
10849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10850
10851 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10852 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10853 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10854 to gdbarch.
10855 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10856 (i386_insn_is_jump, i386_jmp_p): New.
10857 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10858 insn_is_jump to gdbarch.
10859 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10860 * gdbarch.h: Regenerated.
10861 * gdbarch.c: Regenerated.
10862 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10863 (default_insn_is_jump): New.
10864 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10865 (default_insn_is_jump): New.
10866
10867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10868
10869 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10870 Change to ...
10871 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10872 (btrace_read_type) <btrace_read_new>: Change to ...
10873 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10874
10875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10876
10877 * common/linux-btrace.c (linux_read_btrace): Free trace from
10878 previous iteration.
10879
10880 2014-01-15 Doug Evans <dje@google.com>
10881
10882 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10883 uint32_t.
10884
10885 2014-01-15 Tom Tromey <tromey@redhat.com>
10886
10887 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10888 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10889 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10890 (set_objfile_main_name): New function.
10891 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10892 language_of_main>: New fields.
10893 (set_objfile_main_name): Declare.
10894 * symtab.c (find_main_name): Loop over objfiles to find the main
10895 name and language.
10896 (set_main_name): Now static.
10897 (get_main_info): Add comment.
10898 * symtab.h (set_main_name): Don't declare.
10899
10900 2014-01-15 Tom Tromey <tromey@redhat.com>
10901
10902 * symtab.c (main_progspace_key): New global.
10903 (struct main_info): New.
10904 (name_of_main, language_of_main): Remove.
10905 (get_main_info, main_info_cleanup): New function.
10906 (set_main_name, main_name, main_language): Use get_main_info.
10907 (_initialize_symtab): Initialize main_progspace_key.
10908
10909 2014-01-15 Tom Tromey <tromey@redhat.com>
10910
10911 * dbxread.c (process_one_symbol): Update.
10912 * dwarf2read.c (read_partial_die): Update.
10913 * symfile.c (set_initial_language): Call main_language.
10914 * symtab.c (language_of_main): Now static.
10915 (set_main_name): Add 'lang' parameter.
10916 (find_main_name): Update.
10917 (main_language): New function.
10918 (symtab_observer_executable_changed): Update.
10919 * symtab.h (set_main_name): Update.
10920 (language_of_main): Remove.
10921 (main_language): Declare.
10922
10923 2014-01-15 Tom Tromey <tromey@redhat.com>
10924
10925 * symfile.c (init_entry_point_info): Use new "initialized" field.
10926 Update.
10927 * objfiles.h (struct entry_point) <initialized>: New field.
10928 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10929 (struct objfile) <ei>: ...here. Remove.
10930 * objfiles.c (entry_point_address_query): Update.
10931
10932 2014-01-15 Tom Tromey <tromey@redhat.com>
10933
10934 * objfiles.c (entry_point_address_query): Relocate entry point
10935 address.
10936 (objfile_relocate1): Do not relocate entry point address.
10937 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10938 <the_bfd_section_index>: New field.
10939 * symfile.c (init_entry_point_info): Find the entry point's
10940 section.
10941
10942 2014-01-15 Tom Tromey <tromey@redhat.com>
10943
10944 * solib-frv.c (enable_break): Use entry_point_address_query.
10945
10946 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10947
10948 * NEWS: Add note on improved process record-replay on
10949 arm*-linux* targets.
10950
10951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10952
10953 * arm-tdep.c (enum arm_record_result): New enum.
10954 (arm_record_unsupported_insn): New function.
10955 (arm_record_coproc_data_proc): Removed.
10956 (thumb2_record_ld_st_multiple): New function.
10957 (thumb2_record_ld_st_dual_ex_tbb): New function.
10958 (thumb2_record_data_proc_sreg_mimm): New function.
10959 (thumb2_record_ps_dest_generic): New function.
10960 (thumb2_record_branch_misc_cntrl): New function.
10961 (thumb2_record_str_single_data): New function.
10962 (thumb2_record_ld_mem_hints): New function.
10963 (thumb2_record_ld_word): New function.
10964 (thumb2_record_lmul_lmla_div): New function.
10965 (thumb2_record_decode_insn_handler): New function.
10966 (decode_insn): Add thumb32 instruction handlers.
10967
10968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10969
10970 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10971 (struct arm_linux_record_tdep): Declare.
10972 (arm_canonicalize_syscall): New function.
10973 (arm_all_but_pc_registers_record): New function.
10974 (arm_linux_syscall_record): New function.
10975 (arm_linux_init_abi): Add syscall recording constructs.
10976 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10977 decoding. (arm_record_coproc_data_proc): Update arm syscall
10978 decoding.
10979 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10980 <arm_syscall_record>: New field.
10981 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10982 gdb_target_obs.
10983
10984 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10985
10986 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10987 register for push instruction recording.
10988
10989 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10990
10991 * arm-tdep.c (thumb_record_misc): Update to correct logical
10992 error while recording ldm, ldmia and pop instructions.
10993
10994 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10995
10996 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10997
10998 2014-01-15 Pedro Alves <palves@redhat.com>
10999
11000 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11001 (go32_resume, go32_fetch_registers, store_register)
11002 (go32_store_registers, go32_prepare_to_store)
11003 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11004 (go32_create_inferior, go32_can_run, go32_terminal_init)
11005 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11006 declarations.
11007
11008 2014-01-15 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (async_callback_ftype): New typedef.
11011 (struct target_ops) <to_async>: Use it.
11012
11013 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11014
11015 * python/py-value.c (get_field_type): Remove unnecessary curly
11016 braces for single-statement if block.
11017
11018 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11019
11020 * python/py-type.c (convert_field): Add missing empty line
11021 after declarations.
11022
11023 2014-01-14 Doug Evans <dje@google.com>
11024
11025 * symfile.h (expand_symtabs_matching): Renamed from
11026 expand_partial_symbol_names. Update prototype.
11027 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11028 * symfile.c (expand_symtabs_matching): Renamed from
11029 expand_partial_symbol_names. New args file_matcher, kind.
11030 Rename arg fun to symbol_matcher.
11031 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11032 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11033 ada_expand_partial_symbol_name.
11034 (ada_make_symbol_completion_list): Update to call
11035 expand_symtabs_matching.
11036 (ada_add_global_exceptions): Call expand_symtabs_matching.
11037 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11038 call map_symbol_filenames.
11039 * symtab.c (sources_info): Update to call map_symbol_filenames.
11040 (search_symbols): Call expand_symtabs_matching.
11041 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11042 (default_make_symbol_completion_list_break_on): Update to call
11043 expand_symtabs_matching.
11044 (make_source_files_completion_list): Update to call
11045 map_symbol_filenames.
11046
11047 2014-01-14 Doug Evans <dje@google.com>
11048
11049 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11050 (expand_symtabs_symbol_matcher_ftype): New typedef.
11051 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11052 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11053 * symfile.c (expand_partial_symbol_names): Update to use
11054 expand_symtabs_symbol_matcher_ftype.
11055 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11056 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11057 Arg name_matcher renamed to symbol_matcher.
11058 * psymtab.c (recursively_search_psymtabs): Update to use
11059 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11060 sym_matcher.
11061 (expand_symtabs_matching_via_partial): Update to use
11062 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11063 Arg name_matcher renamed to symbol_matcher.
11064
11065 2014-01-14 Doug Evans <dje@google.com>
11066
11067 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11068 (map_partial_symbol_filenames): Ditto.
11069 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11070 (map_partial_symbol_filenames): Ditto.
11071 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11072 (map_partial_symbol_filenames): Ditto.
11073 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11074 (map_partial_symbol_filenames): Ditto.
11075 * symtab.c: Delete #include "psymtab.h".
11076
11077 2014-01-14 Pedro Alves <palves@redhat.com>
11078 Tom Tromey <tromey@redhat.com>
11079
11080 * infrun.c (use_displaced_stepping): Use find_record_target
11081 instead of RECORD_IS_USED.
11082 (adjust_pc_after_break): Use record_full_is_used instead of
11083 RECORD_IS_USED.
11084 * record-btrace.c (record_btrace_open): Call record_preopen
11085 instead of checking RECORD_IS_USED.
11086 * record-full.c (record_full_shortname)
11087 (record_full_core_shortname): New globals.
11088 (record_full_is_used): New function.
11089 (find_full_open): Call record_preopen instead of checking
11090 RECORD_IS_USED.
11091 (init_record_full_ops): Set the target's shortname to
11092 record_full_shortname.
11093 (init_record_full_core_ops): Set the target's shortname to
11094 record_full_core_shortname.
11095 * record-full.h (record_full_is_used): Declare.
11096 * record.c (find_record_target): Make extern.
11097 (record_preopen): New function.
11098 * record.h (RECORD_IS_USED): Delete macro.
11099 (find_record_target, record_preopen): Declare functions.
11100
11101 2014-01-14 Yao Qi <yao@codesourcery.com>
11102
11103 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11104 'len''s type to ULONGEST.
11105 (core_xfer_shared_libraries_aix): Likewise.
11106 * gdbarch.c, gdbarch.h: Regenerated.
11107 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11108 Change type of 'len' to ULONGEST.
11109 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11110 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11111
11112 2014-01-14 Yao Qi <yao@codesourcery.com>
11113
11114 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11115 type of 'len' to ULONGEST.
11116 (linux_xfer_osdata_processgroups): Likewise.
11117 (linux_xfer_osdata_threads): Likewise.
11118 (linux_xfer_osdata_fds): Likewise.
11119 (linux_xfer_osdata_isockets): Likewise.
11120 (linux_xfer_osdata_shm): Likewise.
11121 (linux_xfer_osdata_sem): Likewise.
11122 (linux_xfer_osdata_msg): Likewise.
11123 (linux_common_xfer_osdata): Likewise.
11124 (struct osdata_type) <getter>: Likewise.
11125 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11126 the declaration.
11127
11128 2014-01-14 Yao Qi <yao@codesourcery.com>
11129
11130 * target.h (target_xfer_partial_ftype): Update.
11131 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11132 ULONGEST.
11133 * aix-thread.c (aix_thread_xfer_partial): Change type of
11134 argument 'len' to ULONGEST.
11135 * auxv.c (procfs_xfer_auxv): Likewise.
11136 (ld_so_xfer_auxv): Likewise.
11137 (memory_xfer_auxv): Likewise.
11138 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11139 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11140 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11141 * corelow.c (core_xfer_partial): Likewise.
11142 * ctf.c (ctf_xfer_partial): Likewise.
11143 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11144 '%u'.
11145 (darwin_read_dyld_info): Likewise.
11146 (darwin_xfer_partial): Likewise.
11147 * exec.c (section_table_xfer_memory_partial): Likewise.
11148 (exec_xfer_partial): Likewise.
11149 * exec.h (section_table_xfer_memory_partial): Update
11150 declaration.
11151 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11152 instead of plongest.
11153 (gnu_xfer_partial): Likewise.
11154 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11155 (ia64_hpux_xfer_solib_got): Likewise.
11156 (ia64_hpux_xfer_partial): Likewise.
11157 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11158 * inf-ptrace.c (inf_ptrace_xfer_partial):
11159 * inf-ttrace.c (inf_ttrace_xfer_partial):
11160 * linux-nat.c (linux_xfer_siginfo): Likewise.
11161 (linux_nat_xfer_partial): Likewise.
11162 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11163 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11164 * monitor.c (monitor_xfer_memory): Likewise.
11165 (monitor_xfer_partial): Likewise.
11166 * procfs.c (procfs_xfer_partial): Likewise.
11167 * record-full.c (record_full_xfer_partial): Likewise.
11168 (record_full_core_xfer_partial): Likewise.
11169 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11170 instead of plongest.
11171 (gdbsim_xfer_partial): Likewise.
11172 * remote.c (remote_xfer_partial): Likewise.
11173 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11174 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11175 declaration.
11176 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11177 (rs6000_xfer_shared_libraries): Likewise.
11178 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11180 (sparc_xfer_partial): Likewise.
11181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11182 (spu_xfer_partial): Likewise.
11183 * spu-multiarch.c (spu_xfer_partial): Likewise.
11184 * target.c (target_read_live_memory): Likewise.
11185 (memory_xfer_live_readonly_partial): Likewise.
11186 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11187 (target_xfer_partial, default_xfer_partial): Likewise.
11188 (current_xfer_partial): Likewise.
11189 * tracepoint.c (tfile_xfer_partial): Likewise.
11190 * windows-nat.c (windows_xfer_memory): Likewise. Call
11191 pulongest instead of plongest.
11192 (windows_xfer_partial): Likewise.
11193 (windows_xfer_shared_libraries): Likewise.
11194
11195 2014-01-14 Yao Qi <yao@codesourcery.com>
11196
11197 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11198 target_xfer_partial_ftype.
11199
11200 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11201
11202 PR python/15464
11203 PR python/16113
11204 * valops.c (value_struct_elt_bitpos): New function
11205 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11206 object to 'None' if the field name is an empty string ("").
11207 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11208 attribute to look for a field when 'name' is 'None'.
11209 (get_field_type): New function
11210
11211 2014-01-13 Doug Evans <dje@google.com>
11212
11213 PR symtab/16426
11214 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11215 (try_open_dwop_file): Ditto.
11216 * gdb_bfd.c: #include "vec.h".
11217 (bfdp): New typedef.
11218 (struct gdb_bfd_data): New member included_bfds.
11219 (gdb_bfd_unref): Unref all included bfds.
11220 (gdb_bfd_record_inclusion): New function.
11221 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11222
11223 2014-01-13 Tom Tromey <tromey@redhat.com>
11224
11225 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11226
11227 2014-01-13 Tom Tromey <tromey@redhat.com>
11228
11229 * defs.h (use_windows): Remove.
11230 * gdb.c (main): Update.
11231 * main.c (captured_main, gdb_main): Update.
11232 * main.h (struct captured_main_args) <use_windows>: Remove.
11233 * top.c (use_windows): Remove.
11234
11235 2014-01-13 Tom Tromey <tromey@redhat.com>
11236
11237 * defs.h (deprecated_flush_hook): Remove.
11238
11239 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11240
11241 PR threads/16216
11242 * linux-thread-db.c (try_thread_db_load): Add parameter
11243 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11244 (try_thread_db_load_from_pdir_1): Move it there from here.
11245 (try_thread_db_load_from_sdir): Update caller.
11246 (try_thread_db_load_from_dir): Move it there from here.
11247
11248 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11249
11250 * regformats/regdat.sh: Always rewrite the register file.
11251
11252 2014-01-13 Pedro Alves <palves@redhat.com>
11253
11254 * Makefile.in (CHECK_HEADERS): New variable.
11255 (check-headers:): New rule.
11256
11257 2014-01-13 Tom Tromey <tromey@redhat.com>
11258
11259 * cli/cli-setshow.c (do_set_command): Update.
11260 * defs.h (deprecated_set_hook): Remove.
11261 * top.c (deprecated_set_hook): Remove.
11262
11263 2014-01-13 Pedro Alves <palves@redhat.com>
11264
11265 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11266 the tracepoint if the PC is a pseudo-register.
11267
11268 2014-01-13 Tom Tromey <tromey@redhat.com>
11269
11270 * defs.h (XCALLOC): Remove.
11271 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11272 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11273 * dwarf2loc.c (allocate_piece_closure): Likewise.
11274 * elfread.c (elf_symfile_segments): Likewise.
11275 (elf_symfile_segments): Likewise.
11276 * gdbtypes.c (copy_type_recursive): Likewise.
11277 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11278 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11279 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11280 XCALLOC.
11281 * mt-tdep.c (mt_gdbarch_init): Likewise.
11282 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11283 XCALLOC.
11284 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11285 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11286 * registry.c (registry_alloc_data): Likewise.
11287 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11288 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11289 * serial.c (serial_fdopen_ops): Likewise.
11290 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11291 XCALLOC.
11292 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11293 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11294 not XCALLOC.
11295
11296 2014-01-13 Tom Tromey <tromey@redhat.com>
11297
11298 * defs.h (XMALLOC): Remove.
11299 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11300 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11301 * cli-out.c (struct ui_out *): Likewise.
11302 * cli/cli-dump.c (add_dump_command): Likewise.
11303 (add_dump_command): Likewise.
11304 * complaints.c (get_complaints): Likewise.
11305 (find_complaint): Likewise.
11306 * dwarf2-frame.c (execute_cfa_program): Likewise.
11307 * dwarf2read.c (abbrev_table_read_table): Likewise.
11308 * gdbarch.sh: Likewise.
11309 * gdbarch.c: Rebuild.
11310 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11311 * interps.c (interp_new): Likewise.
11312 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11313 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11314 * mi/mi-console.c (mi_console_file_new): Likewise.
11315 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11316 * mi/mi-out.c (mi_out_new): Likewise.
11317 * mi/mi-parse.c (mi_parse): Likewise.
11318 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11319 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11320 * observer.c (xalloc_observer_list_node): Likewise.
11321 * regcache.c (regcache_xmalloc_1): Likewise.
11322 * reggroups.c (reggroup_new): Likewise.
11323 (_initialize_reggroup): Likewise.
11324 * registry.c (register_data_with_cleanup): Likewise.
11325 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11326 * ser-base.c (serial_ttystate): Likewise.
11327 * ser-mingw.c (make_pipe_state): Likewise.
11328 * ser-pipe.c (pipe_open): Likewise.
11329 * serial.c (serial_open): Likewise.
11330 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11331 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11332 (tui_alloc_win_info): Likewise.
11333 (tui_add_content_elements): Likewise.
11334 * tui/tui-file.c (tui_file_new): Likewise.
11335 * tui/tui-out.c (tui_out_new): Likewise.
11336 * ui-file.c (mem_file_new): Likewise.
11337 * ui-out.c (push_level): Likewise.
11338 (make_cleanup_ui_out_end): Likewise.
11339 (append_header_to_list): Likewise.
11340 (ui_out_new): Likewise.
11341 * user-regs.c (user_reg_add_builtin): Likewise.
11342
11343 2014-01-13 Tom Tromey <tromey@redhat.com>
11344
11345 * defs.h (XZALLOC): Remove.
11346 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11347 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11348 (get_ada_tasks_inferior_data): Likewise.
11349 * auto-load.c (get_auto_load_pspace_data): Likewise.
11350 * auxv.c (get_auxv_inferior_data): Likewise.
11351 * bfd-target.c (target_bfd_reopen): Likewise.
11352 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11353 (deprecated_insert_raw_breakpoint): Likewise.
11354 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11355 * corelow.c (core_open): Likewise.
11356 * darwin-nat.c (darwin_check_new_threads): Likewise.
11357 (darwin_attach_pid): Likewise.
11358 * dummy-frame.c (dummy_frame_push): Likewise.
11359 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11360 * dwarf2loc.c (allocate_piece_closure): Likewise.
11361 * elfread.c (elf_symfile_segments): Likewise.
11362 * eval.c (ptrmath_type_p): Likewise.
11363 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11364 * gdbtypes.c (alloc_type_arch): Likewise.
11365 (alloc_type_instance): Likewise.
11366 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11367 * inf-child.c (inf_child_can_use_agent): Likewise.
11368 * inflow.c (get_inflow_inferior_data): Likewise.
11369 * infrun.c (save_infcall_suspend_state): Likewise.
11370 * jit.c (jit_reader_load): Likewise.
11371 (get_jit_objfile_data): Likewise.
11372 (get_jit_program_space_data): Likewise.
11373 (jit_object_open_impl): Likewise.
11374 (jit_symtab_open_impl): Likewise.
11375 (jit_block_open_impl): Likewise.
11376 (jit_frame_sniffer): Likewise.
11377 * linux-fork.c (add_fork): Likewise.
11378 * maint.c (make_command_stats_cleanup): Likewise.
11379 * objfiles.c (get_objfile_pspace_data): Likewise.
11380 * opencl-lang.c (struct lval_closure): Likewise.
11381 * osdata.c (osdata_start_osdata): Likewise.
11382 * progspace.c (new_address_space): Likewise.
11383 (add_program_space): Likewise.
11384 * remote-sim.c (get_sim_inferior_data): Likewise.
11385 * sh-tdep.c (sh_gdbarch_init): Likewise.
11386 * skip.c (Ignore): Likewise.
11387 (skip_delete_command): Likewise.
11388 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11389 (library_list_start_library): Likewise.
11390 (solib_aix_current_sos): Likewise.
11391 * solib-darwin.c (get_darwin_info): Likewise.
11392 (darwin_current_sos): Likewise.
11393 * solib-dsbt.c (get_dsbt_info): Likewise.
11394 * solib-ia64-hpux.c (new_so_list): Likewise.
11395 (ia64_hpux_get_solib_linkage_addr): Likewise.
11396 * solib-spu.c (append_ocl_sos): Likewise.
11397 (spu_current_sos): Likewise.
11398 * solib-svr4.c (get_svr4_info): Likewise.
11399 (svr4_keep_data_in_core): Likewise.
11400 (library_list_start_library): Likewise.
11401 (svr4_default_sos): Likewise.
11402 (svr4_read_so_list): Likewise.
11403 * solib-target.c (library_list_start_library): Likewise.
11404 (solib_target_current_sos): Likewise.
11405 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11406 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11407 * symfile.c (default_symfile_segments): Likewise.
11408 * target-descriptions.c (tdesc_data_init): Likewise.
11409 (tdesc_create_reg): Likewise.
11410 (struct tdesc_type *): Likewise.
11411 (tdesc_create_vector): Likewise.
11412 (tdesc_set_struct_size): Likewise.
11413 (struct tdesc_type *): Likewise.
11414 (tdesc_free_feature): Likewise.
11415 (tdesc_create_feature): Likewise.
11416 * windows-nat.c (windows_add_thread): Likewise.
11417 (windows_make_so): Likewise.
11418 * xml-support.c (gdb_xml_body_text): Likewise.
11419 (gdb_xml_create_parser_and_cleanup): Likewise.
11420 (xml_process_xincludes): Likewise.
11421 * xml-syscall.c (allocate_syscalls_info): Likewise.
11422 (syscall_create_syscall_desc): Likewise.
11423
11424 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11425
11426 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11427 function, with code from i386_stap_parse_special_token.
11428 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11429 (i386_stap_parse_special_token): Move code to the two functions
11430 above; simplify it.
11431
11432 2014-01-09 Pedro Alves <palves@redhat.com>
11433 Hui Zhu <hui@codesourcery.com>
11434
11435 PR gdb/16101
11436 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11437 bp_err_string. Don't mark the location shlib_disabled if the
11438 error thrown wasn't a generic or memory error. Catch errors
11439 thrown while inserting breakpoints in overlayed code. Output
11440 error message of software breakpoints.
11441 * remote.c (remote_insert_breakpoint): If this breakpoint has
11442 target-side commands but this stub doesn't support Z0 packets,
11443 throw NOT_SUPPORTED_ERROR error.
11444 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11445 * target.h (target_insert_breakpoint): Extend comment.
11446 (target_insert_hw_breakpoint): Add comment.
11447
11448 2014-01-08 Pedro Alves <palves@redhat.com>
11449
11450 * remote.c (remote_add_thread): Add threads silently if starting
11451 up.
11452 (remote_notice_new_inferior): If in all-stop, and starting up,
11453 don't call notice_new_inferior.
11454 (get_current_thread): New function, factored out from ...
11455 (add_current_inferior_and_thread): ... this. Adjust.
11456 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11457 found any thread, then select the remote's current thread as GDB's
11458 current thread too.
11459
11460 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11461
11462 * NEWS: Create a new section for the next release branch.
11463 Rename the section of the current branch, now that it has
11464 been cut.
11465
11466 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11467
11468 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11469 * version.in: Bump version to 7.7.50.DATE-cvs.
11470
11471 2014-01-08 Yao Qi <yao@codesourcery.com>
11472
11473 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11474 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11475 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11476
11477 2014-01-08 Yao Qi <yao@codesourcery.com>
11478
11479 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11480 return value of bfd_get_filename to symbol_file_add_from_bfd.
11481
11482 2014-01-08 Pierre Muller <muller@sourceware.org>
11483
11484 Fix PR16201.
11485 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11486 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11487 to prim_record_mininal_symbol_and_info.
11488 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11489 in call to prim_record_minimal_symbol_and_info.
11490 (read_pe_exported_syms): Set index field of section_data.
11491
11492 2014-01-07 Andrew Pinski <apinski@cavium.com>
11493
11494 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11495 * features/aarch64.c: Regenerate.
11496
11497 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11498
11499 * target.c (return_null): Define.
11500 (update_current_target): Use it instead of return_zero for
11501 functions that return a pointer.
11502
11503 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11504
11505 * source.c (add_path): Fix check for duplicated paths in the previously
11506 included paths.
11507
11508 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11509
11510 * ada-lang.c: Remove duplicated include statements.
11511 * alphabsd-nat.c: Ditto.
11512 * amd64-darwin-tdep.c: Ditto.
11513 * amd64fbsd-nat.c: Ditto.
11514 * auto-load.c: Ditto.
11515 * ax-gdb.c: Ditto.
11516 * breakpoint.c: Ditto.
11517 * dbxread.c: Ditto.
11518 * fork-child.c: Ditto.
11519 * gdb_usleep.c: Ditto.
11520 * i386-darwin-tdep.c: Ditto.
11521 * i386fbsd-nat.c: Ditto.
11522 * infcmd.c: Ditto.
11523 * inferior.c: Ditto.
11524 * jv-lang.c: Ditto.
11525 * linux-nat.c: Ditto.
11526 * linux-tdep.c: Ditto.
11527 * m68kbsd-nat.c: Ditto.
11528 * m68klinux-nat.c: Ditto.
11529 * microblaze-tdep.c: Ditto.
11530 * mips-linux-tdep.c: Ditto.
11531 * mn10300-tdep.c: Ditto.
11532 * nto-tdep.c: Ditto.
11533 * opencl-lang.c: Ditto.
11534 * osdata.c: Ditto.
11535 * printcmd.c: Ditto.
11536 * regcache.c: Ditto.
11537 * remote-m32r-sdi.c: Ditto.
11538 * remote.c: Ditto.
11539 * symfile.c: Ditto.
11540 * symtab.c: Ditto.
11541 * tilegx-linux-nat.c: Ditto.
11542 * tilegx-tdep.c: Ditto.
11543 * tracepoint.c: Ditto.
11544 * valops.c: Ditto.
11545 * vaxbsd-nat.c: Ditto.
11546 * windows-nat.c: Ditto.
11547 * xtensa-tdep.c: Ditto.
11548
11549 2014-01-07 Yao Qi <yao@codesourcery.com>
11550
11551 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11552
11553 2014-01-07 Yao Qi <yao@codesourcery.com>
11554 Joel Brobecker <brobecker@adacore.com>
11555
11556 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11557 (pdc_write_regs): Likewise.
11558 (fetch_regs_kernel_thread): Likewise.
11559 (store_regs_kernel_thread): Likewise.
11560
11561 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11562
11563 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11564 tagged type objects to their actual type.
11565
11566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11567
11568 * ada-valprint.c (print_field_values): Add "language" parameter.
11569 Update calls to print_field_values and print_variant_part.
11570 Pass new parameter "language" in call to val_print instead
11571 of "current_language". Replace call to ada_val_print by call
11572 to val_print.
11573 (print_variant_part): Add "language" parameter.
11574 (ada_val_print_struct_union): Update call to print_field_values.
11575
11576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11577
11578 * ada-valprint.c (ui_memcpy): Delete.
11579 (ada_print_floating): Update documentation. Add empty line
11580 between between function documentation and implementation.
11581 Delete variable "buffer". Use ui_file_xstrdup in place of
11582 ui_file_put. Minor adjustments following this change.
11583
11584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11585
11586 * ada-valprint.c (ada_val_print_string): New function,
11587 extracted from ada_val_print_array.
11588 (ada_val_print_array): Replace extracted code by call
11589 to ada_val_print_string followed by a return. Move
11590 "else" branch to the function's top block.
11591
11592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11593
11594 * ada-valprint.c (ada_val_print_array): Move implementation
11595 down. Rename parameter "offset" and "val" into "offset_aligned"
11596 and "original_value" respectively. Add parameter "offset".
11597
11598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11599
11600 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11601 re-organizing the code. Change the "???" message printed
11602 when target type is a TYPE_CODE_UNDEF into
11603 "<ref to undefined type>".
11604
11605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11606
11607 * ada-valprint.c (print_record): Delete, implementation inlined...
11608 (ada_val_print_struct_union): ... here. Remove call to
11609 ada_check_typedef in inlined implementation.
11610
11611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-valprint.c (ada_val_print_gnat_array): New function,
11614 extracted from ada_val_print_1;
11615 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11616 (ada_val_print_flt, ada_val_print_struct_union)
11617 (ada_val_print_ref): Likewise.
11618 (ada_val_print_1): Delete variables i and elttype.
11619 Replace extracted-out code by call to corresponding
11620 new functions.
11621
11622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11623
11624 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11625
11626 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11627
11628 * ada-valprint.c (ada_val_print_1): Replace calls to
11629 ada_val_print_1 by calls to val_print.
11630
11631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11632
11633 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11634 Update calls to self accordingly. Replace calls to c_val_print
11635 by calls to val_print.
11636
11637 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11638
11639 * ada-valprint.c (print_record): Delete declaration.
11640 (adjust_type_signedness, ada_val_print_1): Likewise.
11641 (ada_val_print): Move function implementation down.
11642 (print_variant_part, print_field_values, print_record):
11643 Move function implementation up.
11644
11645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11646
11647 * python/py-type.c (typy_get_name): New function.
11648 (type_object_getset): Add entry for attribute "name".
11649 * NEWS: Add entry mentioning this new attribute.
11650
11651 2014-01-07 Yao Qi <yao@codesourcery.com>
11652
11653 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11654 statement.
11655
11656 2014-01-07 Yao Qi <yao@codesourcery.com>
11657
11658 * gnu-nat.c (info_port_rights): Add qualifier const to
11659 argument args.
11660
11661 2014-01-07 Yao Qi <yao@codesourcery.com>
11662
11663 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11664
11665 2014-01-07 Yao Qi <yao@codesourcery.com>
11666
11667 * gnu-nat.c (make_inf) Update declaration.
11668 (make_inf): Make it static.
11669 (inf_set_traced): Likewise.
11670 (inf_port_to_thread, inf_task_died_status): Likewise.
11671
11672 2014-01-07 Yao Qi <yao@codesourcery.com>
11673
11674 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11675
11676 2014-01-07 Yao Qi <yao@codesourcery.com>
11677
11678 * gnu-nat.c (_initialize_gnu_nat): Declare.
11679
11680 2014-01-07 Yao Qi <yao@codesourcery.com>
11681
11682 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11683 'enum bfd_endian'.
11684 (struct gdbarch_info) <byte_order>: Change type to
11685 'enum bfd_endian'.
11686 <byte_order_for_code>: Likewise.
11687 * gdbarch.c, gdbarch.h: Regenerated.
11688
11689 2014-01-06 Sasha Smundak <asmundak@google.com>
11690
11691 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11692
11693 2014-01-06 Tom Tromey <tromey@redhat.com>
11694
11695 * doublest.c (convert_doublest_to_floatformat): Use const, not
11696 CONST.
11697 * somread.c (som_symtab_read): Likewise.
11698
11699 2014-01-07 Hui Zhu <hui@codesourcery.com>
11700
11701 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11702 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11703 (gdb_bfd_fopen): Ditto.
11704 (gdb_bfd_openr): Ditto.
11705 (gdb_bfd_openw): Ditto.
11706 (gdb_bfd_openr_iovec): Ditto.
11707 (gdb_bfd_fdopenr): Ditto.
11708 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11709 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11710 with xstrdup.
11711 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11712 with xstrdup.
11713 * symfile-mem.c (symbol_file_add_from_memory): Removed
11714 gdb_bfd_stash_filename.
11715
11716 2014-01-03 Doug Evans <dje@google.com>
11717
11718 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11719 output.
11720
11721 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11722
11723 Update year range in copyright notice of all files.
11724
11725 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11726
11727 * top.c (print_gdb_version): Set copyright year to 2014.
11728
11729 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11730
11731 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11732
11733 For older changes see ChangeLog-2013.
11734 \f
11735 Local Variables:
11736 mode: change-log
11737 left-margin: 8
11738 fill-column: 74
11739 version-control: never
11740 coding: utf-8
11741 End: