1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * regcache.c: Include "regset.h".
4 (regcache_transfer_regset): New local function.
5 (regcache_supply_regset, regcache_collect_regset): New functions.
6 * regcache.h (struct regcache_map_entry): New structure.
7 (REGCACHE_MAP_SKIP): New enum value.
8 (regcache_supply_regset, regcache_collect_regset): New prototypes.
10 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
13 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
14 (ppc_linux_collect_gregset ): Likewise.
15 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
16 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
17 (ppc_collect_vrregset): Likewise.
18 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
21 2014-08-07 Yao Qi <yao@codesourcery.com>
23 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
24 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
25 * remote.c (remote_read_bytes): Likewise.
27 2014-08-07 Yao Qi <yao@codesourcery.com>
29 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
31 2014-08-07 Yao Qi <yao@codesourcery.com>
34 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
35 TARGET_XFER_OK instead of 0.
37 2014-08-07 Gary Benson <gbenson@redhat.com>
39 * common/common-defs.h: Include errno.h.
40 * defs.h: Do not include errno.h.
41 * ada-typeprint.c: Likewise.
42 * c-typeprint.c: Likewise.
43 * core-regset.c: Likewise.
44 * corefile.c: Likewise.
45 * corelow.c: Likewise.
46 * event-loop.c: Likewise.
47 * f-typeprint.c: Likewise.
48 * gnu-nat.c: Likewise.
49 * go32-nat.c: Likewise.
50 * i386gnu-nat.c: Likewise.
51 * m2-typeprint.c: Likewise.
52 * nat/linux-btrace.c: Likewise.
53 * p-typeprint.c: Likewise.
55 * remote-sim.c: Likewise.
56 * rs6000-nat.c: Likewise.
58 * typeprint.c: Likewise.
59 * ui-file.c: Likewise.
61 * valprint.c: Likewise.
63 2014-08-07 Gary Benson <gbenson@redhat.com>
65 * common/common-defs.h: Include string.h.
66 * aarch64-tdep.c: Do not include string.h.
67 * ada-exp.y: Likewise.
68 * ada-lang.c: Likewise.
69 * ada-lex.l: Likewise.
70 * ada-typeprint.c: Likewise.
71 * ada-valprint.c: Likewise.
72 * aix-thread.c: Likewise.
73 * alpha-linux-tdep.c: Likewise.
74 * alpha-mdebug-tdep.c: Likewise.
75 * alpha-nat.c: Likewise.
76 * alpha-osf1-tdep.c: Likewise.
77 * alpha-tdep.c: Likewise.
78 * alphanbsd-tdep.c: Likewise.
79 * amd64-dicos-tdep.c: Likewise.
80 * amd64-linux-tdep.c: Likewise.
81 * amd64-nat.c: Likewise.
82 * amd64-sol2-tdep.c: Likewise.
83 * amd64fbsd-tdep.c: Likewise.
84 * amd64obsd-tdep.c: Likewise.
85 * arch-utils.c: Likewise.
86 * arm-linux-nat.c: Likewise.
87 * arm-linux-tdep.c: Likewise.
88 * arm-tdep.c: Likewise.
89 * arm-wince-tdep.c: Likewise.
90 * armbsd-tdep.c: Likewise.
91 * armnbsd-nat.c: Likewise.
92 * armnbsd-tdep.c: Likewise.
93 * armobsd-tdep.c: Likewise.
94 * avr-tdep.c: Likewise.
96 * ax-general.c: Likewise.
98 * bfin-tdep.c: Likewise.
99 * breakpoint.c: Likewise.
100 * build-id.c: Likewise.
101 * buildsym.c: Likewise.
103 * c-lang.c: Likewise.
104 * c-typeprint.c: Likewise.
105 * c-valprint.c: Likewise.
106 * charset.c: Likewise.
107 * cli-out.c: Likewise.
108 * cli/cli-cmds.c: Likewise.
109 * cli/cli-decode.c: Likewise.
110 * cli/cli-dump.c: Likewise.
111 * cli/cli-interp.c: Likewise.
112 * cli/cli-logging.c: Likewise.
113 * cli/cli-script.c: Likewise.
114 * cli/cli-setshow.c: Likewise.
115 * cli/cli-utils.c: Likewise.
116 * coffread.c: Likewise.
117 * common/agent.c: Likewise.
118 * common/buffer.c: Likewise.
119 * common/buffer.h: Likewise.
120 * common/common-utils.c: Likewise.
121 * common/filestuff.c: Likewise.
122 * common/filestuff.c: Likewise.
123 * common/format.c: Likewise.
124 * common/print-utils.c: Likewise.
125 * common/rsp-low.c: Likewise.
126 * common/signals.c: Likewise.
127 * common/vec.h: Likewise.
128 * common/xml-utils.c: Likewise.
129 * core-regset.c: Likewise.
130 * corefile.c: Likewise.
131 * corelow.c: Likewise.
132 * cp-abi.c: Likewise.
133 * cp-name-parser.y: Likewise.
134 * cp-support.c: Likewise.
135 * cp-valprint.c: Likewise.
136 * cris-tdep.c: Likewise.
138 * darwin-nat.c: Likewise.
139 * dbxread.c: Likewise.
140 * dcache.c: Likewise.
141 * demangle.c: Likewise.
142 * dicos-tdep.c: Likewise.
143 * disasm.c: Likewise.
144 * doublest.c: Likewise.
146 * dummy-frame.c: Likewise.
147 * dwarf2-frame.c: Likewise.
148 * dwarf2loc.c: Likewise.
149 * dwarf2read.c: Likewise.
150 * elfread.c: Likewise.
151 * environ.c: Likewise.
153 * event-loop.c: Likewise.
154 * exceptions.c: Likewise.
156 * expprint.c: Likewise.
158 * f-lang.c: Likewise.
159 * f-typeprint.c: Likewise.
160 * f-valprint.c: Likewise.
161 * fbsd-nat.c: Likewise.
162 * findcmd.c: Likewise.
163 * findvar.c: Likewise.
164 * fork-child.c: Likewise.
166 * frv-linux-tdep.c: Likewise.
167 * frv-tdep.c: Likewise.
169 * gdb_bfd.c: Likewise.
170 * gdbarch.c: Likewise.
171 * gdbarch.sh: Likewise.
172 * gdbtypes.c: Likewise.
173 * gnu-nat.c: Likewise.
174 * gnu-v2-abi.c: Likewise.
175 * gnu-v3-abi.c: Likewise.
176 * go-exp.y: Likewise.
177 * go-lang.c: Likewise.
178 * go32-nat.c: Likewise.
179 * guile/guile.c: Likewise.
180 * guile/scm-auto-load.c: Likewise.
181 * hppa-hpux-tdep.c: Likewise.
182 * hppa-linux-nat.c: Likewise.
183 * hppanbsd-tdep.c: Likewise.
184 * hppaobsd-tdep.c: Likewise.
185 * i386-cygwin-tdep.c: Likewise.
186 * i386-dicos-tdep.c: Likewise.
187 * i386-linux-tdep.c: Likewise.
188 * i386-nto-tdep.c: Likewise.
189 * i386-sol2-tdep.c: Likewise.
190 * i386-tdep.c: Likewise.
191 * i386bsd-tdep.c: Likewise.
192 * i386gnu-nat.c: Likewise.
193 * i386nbsd-tdep.c: Likewise.
194 * i386obsd-tdep.c: Likewise.
195 * i387-tdep.c: Likewise.
196 * ia64-libunwind-tdep.c: Likewise.
197 * ia64-linux-nat.c: Likewise.
198 * inf-child.c: Likewise.
199 * inf-ptrace.c: Likewise.
200 * inf-ttrace.c: Likewise.
201 * infcall.c: Likewise.
202 * infcmd.c: Likewise.
203 * inflow.c: Likewise.
204 * infrun.c: Likewise.
205 * interps.c: Likewise.
206 * iq2000-tdep.c: Likewise.
207 * irix5-nat.c: Likewise.
208 * jv-exp.y: Likewise.
209 * jv-lang.c: Likewise.
210 * jv-typeprint.c: Likewise.
211 * jv-valprint.c: Likewise.
212 * language.c: Likewise.
213 * linux-fork.c: Likewise.
214 * linux-nat.c: Likewise.
215 * lm32-tdep.c: Likewise.
216 * m2-exp.y: Likewise.
217 * m2-typeprint.c: Likewise.
218 * m32c-tdep.c: Likewise.
219 * m32r-linux-nat.c: Likewise.
220 * m32r-linux-tdep.c: Likewise.
221 * m32r-rom.c: Likewise.
222 * m32r-tdep.c: Likewise.
223 * m68hc11-tdep.c: Likewise.
224 * m68k-tdep.c: Likewise.
225 * m68kbsd-tdep.c: Likewise.
226 * m68klinux-nat.c: Likewise.
227 * m68klinux-tdep.c: Likewise.
228 * m88k-tdep.c: Likewise.
229 * machoread.c: Likewise.
230 * macrocmd.c: Likewise.
232 * mdebugread.c: Likewise.
233 * mem-break.c: Likewise.
234 * memattr.c: Likewise.
235 * memory-map.c: Likewise.
236 * mep-tdep.c: Likewise.
237 * mi/mi-cmd-break.c: Likewise.
238 * mi/mi-cmd-disas.c: Likewise.
239 * mi/mi-cmd-env.c: Likewise.
240 * mi/mi-cmd-stack.c: Likewise.
241 * mi/mi-cmd-var.c: Likewise.
242 * mi/mi-cmds.c: Likewise.
243 * mi/mi-console.c: Likewise.
244 * mi/mi-getopt.c: Likewise.
245 * mi/mi-interp.c: Likewise.
246 * mi/mi-main.c: Likewise.
247 * mi/mi-parse.c: Likewise.
248 * microblaze-rom.c: Likewise.
249 * microblaze-tdep.c: Likewise.
250 * mingw-hdep.c: Likewise.
251 * minidebug.c: Likewise.
252 * minsyms.c: Likewise.
253 * mips-irix-tdep.c: Likewise.
254 * mips-linux-tdep.c: Likewise.
255 * mips-tdep.c: Likewise.
256 * mips64obsd-tdep.c: Likewise.
257 * mipsnbsd-tdep.c: Likewise.
258 * mipsread.c: Likewise.
259 * mn10300-linux-tdep.c: Likewise.
260 * mn10300-tdep.c: Likewise.
261 * monitor.c: Likewise.
262 * moxie-tdep.c: Likewise.
263 * mt-tdep.c: Likewise.
264 * nat/linux-btrace.c: Likewise.
265 * nat/linux-osdata.c: Likewise.
266 * nat/linux-procfs.c: Likewise.
267 * nat/linux-ptrace.c: Likewise.
268 * nat/linux-waitpid.c: Likewise.
269 * nbsd-tdep.c: Likewise.
270 * nios2-linux-tdep.c: Likewise.
271 * nto-procfs.c: Likewise.
272 * nto-tdep.c: Likewise.
273 * objc-lang.c: Likewise.
274 * objfiles.c: Likewise.
275 * opencl-lang.c: Likewise.
277 * osdata.c: Likewise.
279 * p-lang.c: Likewise.
280 * p-typeprint.c: Likewise.
282 * posix-hdep.c: Likewise.
283 * ppc-linux-nat.c: Likewise.
284 * ppc-sysv-tdep.c: Likewise.
285 * ppcfbsd-tdep.c: Likewise.
286 * ppcnbsd-tdep.c: Likewise.
287 * ppcobsd-tdep.c: Likewise.
288 * printcmd.c: Likewise.
289 * procfs.c: Likewise.
290 * prologue-value.c: Likewise.
291 * python/py-auto-load.c: Likewise.
292 * python/py-gdb-readline.c: Likewise.
293 * ravenscar-thread.c: Likewise.
294 * regcache.c: Likewise.
295 * registry.c: Likewise.
296 * remote-fileio.c: Likewise.
297 * remote-m32r-sdi.c: Likewise.
298 * remote-mips.c: Likewise.
299 * remote-notif.c: Likewise.
300 * remote-sim.c: Likewise.
301 * remote.c: Likewise.
302 * reverse.c: Likewise.
303 * rs6000-aix-tdep.c: Likewise.
304 * ser-base.c: Likewise.
305 * ser-go32.c: Likewise.
306 * ser-mingw.c: Likewise.
307 * ser-pipe.c: Likewise.
308 * ser-tcp.c: Likewise.
309 * ser-unix.c: Likewise.
310 * serial.c: Likewise.
311 * sh-tdep.c: Likewise.
312 * sh64-tdep.c: Likewise.
313 * shnbsd-tdep.c: Likewise.
315 * sol-thread.c: Likewise.
316 * solib-dsbt.c: Likewise.
317 * solib-frv.c: Likewise.
318 * solib-osf.c: Likewise.
319 * solib-som.c: Likewise.
320 * solib-spu.c: Likewise.
321 * solib-target.c: Likewise.
323 * somread.c: Likewise.
324 * source.c: Likewise.
325 * sparc-nat.c: Likewise.
326 * sparc-sol2-tdep.c: Likewise.
327 * sparc-tdep.c: Likewise.
328 * sparc64-tdep.c: Likewise.
329 * sparc64fbsd-tdep.c: Likewise.
330 * sparc64nbsd-tdep.c: Likewise.
331 * sparcnbsd-tdep.c: Likewise.
332 * spu-linux-nat.c: Likewise.
333 * spu-multiarch.c: Likewise.
334 * spu-tdep.c: Likewise.
335 * stabsread.c: Likewise.
337 * std-regs.c: Likewise.
338 * symfile.c: Likewise.
339 * symmisc.c: Likewise.
340 * symtab.c: Likewise.
341 * target.c: Likewise.
342 * thread.c: Likewise.
343 * tilegx-linux-nat.c: Likewise.
344 * tilegx-tdep.c: Likewise.
346 * tracepoint.c: Likewise.
347 * tui/tui-command.c: Likewise.
348 * tui/tui-data.c: Likewise.
349 * tui/tui-disasm.c: Likewise.
350 * tui/tui-file.c: Likewise.
351 * tui/tui-layout.c: Likewise.
352 * tui/tui-out.c: Likewise.
353 * tui/tui-regs.c: Likewise.
354 * tui/tui-source.c: Likewise.
355 * tui/tui-stack.c: Likewise.
356 * tui/tui-win.c: Likewise.
357 * tui/tui-windata.c: Likewise.
358 * tui/tui-winsource.c: Likewise.
359 * typeprint.c: Likewise.
360 * ui-file.c: Likewise.
361 * ui-out.c: Likewise.
362 * user-regs.c: Likewise.
364 * v850-tdep.c: Likewise.
365 * valarith.c: Likewise.
366 * valops.c: Likewise.
367 * valprint.c: Likewise.
369 * varobj.c: Likewise.
370 * vax-tdep.c: Likewise.
371 * vaxnbsd-tdep.c: Likewise.
372 * vaxobsd-tdep.c: Likewise.
373 * windows-nat.c: Likewise.
374 * xcoffread.c: Likewise.
375 * xml-support.c: Likewise.
376 * xstormy16-tdep.c: Likewise.
377 * xtensa-linux-nat.c: Likewise.
379 2014-08-07 Gary Benson <gbenson@redhat.com>
381 * common/common-defs.h: Include gdb_assert.h.
382 * aarch64-tdep.c: Do not include gdb_assert.h.
383 * addrmap.c: Likewise.
384 * aix-thread.c: Likewise.
385 * alpha-linux-tdep.c: Likewise.
386 * alpha-mdebug-tdep.c: Likewise.
387 * alphanbsd-tdep.c: Likewise.
388 * amd64-nat.c: Likewise.
389 * amd64-tdep.c: Likewise.
390 * amd64bsd-nat.c: Likewise.
391 * amd64fbsd-nat.c: Likewise.
392 * amd64fbsd-tdep.c: Likewise.
393 * amd64nbsd-nat.c: Likewise.
394 * amd64nbsd-tdep.c: Likewise.
395 * amd64obsd-nat.c: Likewise.
396 * amd64obsd-tdep.c: Likewise.
397 * arch-utils.c: Likewise.
398 * arm-tdep.c: Likewise.
399 * armbsd-tdep.c: Likewise.
401 * bcache.c: Likewise.
402 * bfin-tdep.c: Likewise.
403 * blockframe.c: Likewise.
404 * breakpoint.c: Likewise.
405 * bsd-kvm.c: Likewise.
406 * bsd-uthread.c: Likewise.
407 * buildsym.c: Likewise.
409 * c-lang.c: Likewise.
410 * charset.c: Likewise.
411 * cleanups.c: Likewise.
412 * cli-out.c: Likewise.
413 * cli/cli-decode.c: Likewise.
414 * cli/cli-dump.c: Likewise.
415 * cli/cli-logging.c: Likewise.
416 * cli/cli-script.c: Likewise.
417 * cli/cli-utils.c: Likewise.
418 * coffread.c: Likewise.
419 * common/common-utils.c: Likewise.
420 * common/queue.h: Likewise.
421 * common/signals.c: Likewise.
422 * common/vec.h: Likewise.
423 * complaints.c: Likewise.
424 * completer.c: Likewise.
425 * corelow.c: Likewise.
426 * cp-abi.c: Likewise.
427 * cp-name-parser.y: Likewise.
428 * cp-namespace.c: Likewise.
429 * cp-support.c: Likewise.
430 * cris-tdep.c: Likewise.
431 * dbxread.c: Likewise.
432 * dictionary.c: Likewise.
433 * doublest.c: Likewise.
435 * dummy-frame.c: Likewise.
436 * dwarf2-frame-tailcall.c: Likewise.
437 * dwarf2-frame.c: Likewise.
438 * dwarf2expr.c: Likewise.
439 * dwarf2loc.c: Likewise.
440 * dwarf2read.c: Likewise.
442 * event-loop.c: Likewise.
443 * exceptions.c: Likewise.
444 * expprint.c: Likewise.
445 * f-valprint.c: Likewise.
446 * fbsd-nat.c: Likewise.
447 * findvar.c: Likewise.
448 * frame-unwind.c: Likewise.
450 * frv-tdep.c: Likewise.
452 * gdb-dlfcn.c: Likewise.
453 * gdb_bfd.c: Likewise.
454 * gdbarch.c: Likewise.
455 * gdbarch.sh: Likewise.
456 * gdbtypes.c: Likewise.
457 * gnu-nat.c: Likewise.
458 * gnu-v3-abi.c: Likewise.
459 * go-lang.c: Likewise.
460 * guile/scm-exception.c: Likewise.
461 * guile/scm-gsmob.c: Likewise.
462 * guile/scm-lazy-string.c: Likewise.
463 * guile/scm-math.c: Likewise.
464 * guile/scm-pretty-print.c: Likewise.
465 * guile/scm-safe-call.c: Likewise.
466 * guile/scm-utils.c: Likewise.
467 * guile/scm-value.c: Likewise.
468 * h8300-tdep.c: Likewise.
469 * hppa-hpux-nat.c: Likewise.
470 * hppa-tdep.c: Likewise.
471 * hppanbsd-tdep.c: Likewise.
472 * hppaobsd-tdep.c: Likewise.
473 * i386-darwin-nat.c: Likewise.
474 * i386-darwin-tdep.c: Likewise.
475 * i386-nto-tdep.c: Likewise.
476 * i386-tdep.c: Likewise.
477 * i386bsd-nat.c: Likewise.
478 * i386fbsd-tdep.c: Likewise.
479 * i386gnu-nat.c: Likewise.
480 * i386nbsd-tdep.c: Likewise.
481 * i386obsd-tdep.c: Likewise.
482 * i387-tdep.c: Likewise.
483 * ia64-libunwind-tdep.c: Likewise.
484 * ia64-tdep.c: Likewise.
485 * inf-ptrace.c: Likewise.
486 * inf-ttrace.c: Likewise.
487 * infcall.c: Likewise.
488 * infcmd.c: Likewise.
489 * infrun.c: Likewise.
490 * inline-frame.c: Likewise.
491 * interps.c: Likewise.
492 * jv-lang.c: Likewise.
493 * jv-typeprint.c: Likewise.
494 * linux-fork.c: Likewise.
495 * linux-nat.c: Likewise.
496 * linux-thread-db.c: Likewise.
497 * m32c-tdep.c: Likewise.
498 * m32r-linux-nat.c: Likewise.
499 * m32r-tdep.c: Likewise.
500 * m68k-tdep.c: Likewise.
501 * m68kbsd-nat.c: Likewise.
502 * m68kbsd-tdep.c: Likewise.
503 * m88k-tdep.c: Likewise.
504 * machoread.c: Likewise.
505 * macroexp.c: Likewise.
506 * macrotab.c: Likewise.
508 * mdebugread.c: Likewise.
509 * memory-map.c: Likewise.
510 * mep-tdep.c: Likewise.
511 * mi/mi-common.c: Likewise.
512 * microblaze-tdep.c: Likewise.
513 * mingw-hdep.c: Likewise.
514 * mips-linux-nat.c: Likewise.
515 * mips-linux-tdep.c: Likewise.
516 * mips-tdep.c: Likewise.
517 * mips64obsd-tdep.c: Likewise.
518 * mipsnbsd-tdep.c: Likewise.
519 * mn10300-linux-tdep.c: Likewise.
520 * mn10300-tdep.c: Likewise.
521 * moxie-tdep.c: Likewise.
522 * mt-tdep.c: Likewise.
523 * nat/linux-btrace.c: Likewise.
524 * nat/linux-osdata.c: Likewise.
525 * nat/linux-ptrace.c: Likewise.
526 * nat/mips-linux-watch.c: Likewise.
527 * nios2-linux-tdep.c: Likewise.
528 * nios2-tdep.c: Likewise.
529 * objc-lang.c: Likewise.
530 * objfiles.c: Likewise.
531 * obsd-nat.c: Likewise.
532 * opencl-lang.c: Likewise.
535 * ppc-linux-nat.c: Likewise.
536 * ppc-sysv-tdep.c: Likewise.
537 * ppcfbsd-nat.c: Likewise.
538 * ppcfbsd-tdep.c: Likewise.
539 * ppcnbsd-nat.c: Likewise.
540 * ppcnbsd-tdep.c: Likewise.
541 * ppcobsd-nat.c: Likewise.
542 * ppcobsd-tdep.c: Likewise.
543 * printcmd.c: Likewise.
544 * procfs.c: Likewise.
545 * prologue-value.c: Likewise.
546 * psymtab.c: Likewise.
547 * python/py-lazy-string.c: Likewise.
548 * python/py-value.c: Likewise.
549 * regcache.c: Likewise.
550 * reggroups.c: Likewise.
551 * registry.c: Likewise.
552 * remote-sim.c: Likewise.
553 * remote.c: Likewise.
554 * rs6000-aix-tdep.c: Likewise.
555 * rs6000-tdep.c: Likewise.
556 * s390-linux-tdep.c: Likewise.
557 * score-tdep.c: Likewise.
558 * ser-base.c: Likewise.
559 * ser-mingw.c: Likewise.
560 * sh-tdep.c: Likewise.
561 * sh64-tdep.c: Likewise.
562 * solib-darwin.c: Likewise.
563 * solib-spu.c: Likewise.
564 * solib-svr4.c: Likewise.
565 * source.c: Likewise.
566 * sparc-nat.c: Likewise.
567 * sparc-sol2-tdep.c: Likewise.
568 * sparc-tdep.c: Likewise.
569 * sparc64-sol2-tdep.c: Likewise.
570 * sparc64-tdep.c: Likewise.
571 * sparc64fbsd-tdep.c: Likewise.
572 * sparc64nbsd-tdep.c: Likewise.
573 * sparc64obsd-tdep.c: Likewise.
574 * sparcnbsd-tdep.c: Likewise.
575 * sparcobsd-tdep.c: Likewise.
576 * spu-multiarch.c: Likewise.
577 * spu-tdep.c: Likewise.
578 * stabsread.c: Likewise.
580 * symfile.c: Likewise.
581 * symtab.c: Likewise.
582 * target-descriptions.c: Likewise.
583 * target-memory.c: Likewise.
584 * target.c: Likewise.
585 * tic6x-linux-tdep.c: Likewise.
586 * tic6x-tdep.c: Likewise.
587 * tilegx-linux-nat.c: Likewise.
588 * tilegx-tdep.c: Likewise.
590 * tramp-frame.c: Likewise.
591 * tui/tui-out.c: Likewise.
592 * tui/tui-winsource.c: Likewise.
593 * ui-out.c: Likewise.
594 * user-regs.c: Likewise.
596 * v850-tdep.c: Likewise.
597 * valops.c: Likewise.
599 * varobj.c: Likewise.
600 * vax-nat.c: Likewise.
601 * xml-syscall.c: Likewise.
602 * xml-tdesc.c: Likewise.
603 * xstormy16-tdep.c: Likewise.
604 * xtensa-linux-nat.c: Likewise.
605 * xtensa-tdep.c: Likewise.
607 2014-08-07 Gary Benson <gbenson@redhat.com>
609 * common/common-defs.h: Include common-utils.h.
610 * defs.h: Do not include common-utils.h.
611 * common/gdb_assert.h: Likewise.
612 * darwin-nat.h: Likewise.
613 * nat/linux-btrace.c: Likewise.
614 * target/waitstatus.h: Likewise.
616 2014-08-07 Gary Benson <gbenson@redhat.com>
618 * common/common-defs.h: Include ptid.h.
619 * defs.h: Do not include ptid.h.
620 * inferior.h: Likewise.
621 * infrun.h: Likewise.
622 * nat/linux-btrace.h: Likewise.
623 * nat/linux-osdata.h: Likewise.
624 * target/waitstatus.h: Likewise.
626 2014-08-07 Gary Benson <gbenson@redhat.com>
628 * common/common-defs.h: Include gdb_locale.h.
629 * defs.h: Do not include gdb_locale.h.
631 2014-08-07 Gary Benson <gbenson@redhat.com>
633 * common/common-defs.h: Include gdb/signals.h.
634 * defs.h: Do not include gdb/signals.h.
636 2014-08-07 Gary Benson <gbenson@redhat.com>
638 * common/common-defs.h: Include pathmax.h.
639 * defs.h: Do not include pathmax.h.
641 2014-08-07 Gary Benson <gbenson@redhat.com>
643 * common/common-defs.h: Include libiberty.h.
644 * defs.h: Do not include libiberty.h.
645 * common/queue.h: Likewise.
646 * cp-name-parser.y: Likewise.
647 * mi/mi-cmd-catch.c: Likewise.
648 * python/python.c: Likewise.
650 2014-08-07 Gary Benson <gbenson@redhat.com>
652 * common/common-defs.h: Include ansidecl.h.
653 * defs.h: Do not include ansidecl.h.
654 * common/buffer.h: Likewise.
655 * common/common-utils.h: Likewise.
657 2014-08-07 Gary Benson <gbenson@redhat.com>
659 * common/common-defs.h: Include stddef.h.
660 * defs.h: Do not include stddef.h.
661 * common/common-utils.h: Likewise.
662 * amd64fbsd-nat.c: Likewise.
663 * bcache.c: Likewise.
664 * charset.c: Likewise.
665 * common/buffer.h: Likewise.
666 * common/vec.h: Likewise.
667 * i386bsd-nat.c: Likewise.
668 * nat/linux-btrace.h: Likewise.
669 * ppcfbsd-nat.c: Likewise.
670 * ppcnbsd-tdep.h: Likewise.
671 * ppcobsd-nat.c: Likewise.
672 * ppcobsd-tdep.h: Likewise.
673 * python/py-gdb-readline.c: Likewise.
675 2014-08-07 Gary Benson <gbenson@redhat.com>
677 * common/common-defs.h: Include stdarg.h.
678 * defs.h: Do not include stdarg.h.
679 * ada-lang.c: Likewise.
680 * common/common-utils.h: Likewise.
681 * guile/scm-string.c: Likewise.
682 * guile/scm-utils.c: Likewise.
683 * m32c-tdep.c: Likewise.
685 2014-08-07 Gary Benson <gbenson@redhat.com>
687 * common/common-defs.h: Include stdlib.h.
688 * defs.h: Do not include stdlib.h.
689 * addrmap.c: Likewise.
690 * bcache.c: Likewise.
691 * common/buffer.c: Likewise.
692 * common/common-utils.c: Likewise.
693 * cp-name-parser.y: Likewise.
694 * go32-nat.c: Likewise.
695 * mn10300-linux-tdep.c: Likewise.
696 * nat/linux-osdata.c: Likewise.
697 * tui/tui.c: Likewise.
698 * windows-nat.c: Likewise.
700 2014-08-07 Gary Benson <gbenson@redhat.com>
702 * common/common-defs.h: Include stdio.h.
703 * defs.h: Do not include stdio.h.
704 * ada-lang.c: Likewise.
705 * common/buffer.c: Likewise.
706 * common/common-utils.c: Likewise.
707 * cp-name-parser.y: Likewise.
708 * gnu-nat.c: Likewise.
709 * go32-nat.c: Likewise.
710 * i386gnu-nat.c: Likewise.
711 * proc-api.c: Likewise.
712 * proc-events.c: Likewise.
713 * proc-flags.c: Likewise.
714 * proc-why.c: Likewise.
715 * python/python-internal.h: Likewise.
716 * target-memory.c: Likewise.
717 * tui/tui-io.c: Likewise.
718 * tui/tui.c: Likewise.
720 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
722 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
723 (scan_dyntag_auxv): Same.
725 2014-08-06 Yao Qi <yao@codesourcery.com>
727 * amd64-linux-nat.c: Remove duplicated include
729 * i386-linux-nat.c: Likewise.
731 2014-08-06 Yao Qi <yao@codesourcery.com>
733 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
734 operand" with "Special opcode" in comments.
736 2014-08-05 Gary Benson <gbenson@redhat.com>
738 * interps.c (initialize_interps): Remove prototype.
739 (interpreter_initialized): Remove static global.
740 (interp_add): Do not call initialize_interps.
741 (initialize_interps): Remove function.
743 2014-08-05 Gary Benson <gbenson@redhat.com>
745 * utils.c (vwarning): Remove spurious va_end.
747 2014-08-05 Alan Modra <amodra@gmail.com>
749 * charset.c (convert_between_encodings): Cast result of obstack_base.
750 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
751 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
752 (read_unwind_info): Use size_t for some locals.
753 * jit.c (finalize_symtab): Likewise.
754 * utils.c (hashtab_obstack_allocate): Likewise.
755 * symmisc.c (print_objfile_statistics): Update format strings.
757 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
759 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
760 (Changes in GDB 7.8): ... here.
762 2014-08-04 Tom Tromey <tromey@redhat.com>
764 * target.c (set_targetdebug): New function.
765 (initialize_targets): Pass set_targetdebug when creating "set
768 2014-08-01 Joel Brobecker <brobecker@adacore.com>
770 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
771 if detecting a variable-sized field that is not the last field.
772 Fix struct type length computation.
774 2014-08-01 Joel Brobecker <brobecker@adacore.com>
776 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
779 2014-08-01 Joel Brobecker <brobecker@adacore.com>
781 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
782 Remove "+ 8" offset in computation of CHAIN_VMA.
784 2014-07-31 Doug Evans <dje@google.com>
786 * inflow.c (child_terminal_inferior): Add comment.
787 (child_terminal_ours_for_output): Add comment.
788 (child_terminal_ours): Add comment.
789 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
790 (linux_nat_terminal_ours): Add comment.
792 2014-07-31 Gary Benson <gbenson@redhat.com>
794 * common/btrace-common.h: Do not include defs.h or server.h.
795 * nat/mips-linux-watch.h: Likewise.
796 * gdb-dlfcn.h: Do not include defs.h.
797 * tracefile.h: Likewise.
799 2014-07-30 Roland McGrath <mcgrathr@google.com>
801 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
803 2014-07-30 Tom Tromey <tromey@redhat.com>
805 * bsd-kvm.c (bsd_kvm_open): Constify.
806 * corelow.c (core_open): Constify.
807 * ctf.c (ctf_open): Constify.
808 * dbug-rom.c (dbug_open): Constify.
809 * exec.c (exec_open): Constify.
810 * m32r-rom.c (m32r_open, mon2000_open): Constify.
811 * microblaze-rom.c (picobug_open): Constify.
812 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
814 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
815 * record-btrace.c (record_btrace_open): Constify.
816 * record-full.c (record_full_core_open_1, record_full_open_1)
817 (record_full_open): Constify.
818 * remote-m32r-sdi.c (m32r_open): Constify.
819 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
820 (rockhopper_open, lsi_open): Constify.
821 * remote-sim.c (gdbsim_open): Constify.
822 * remote.c (remote_open, extended_remote_open, remote_open_1):
824 * target.h (struct target_ops) <to_open>: Make "arg" const.
825 * tracefile-tfile.c (tfile_open): Constify.
827 2014-07-30 Tom Tromey <tromey@redhat.com>
829 * breakpoint.c (map_breakpoint_numbers): Update.
830 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
831 (get_number_const): New function.
832 (get_number): Rewrite using get_number_const.
833 (init_number_or_range): Make "string" const.
834 (number_is_in_list): Make "list" const.
835 * cli/cli-utils.h (get_number_const): Declare.
836 (struct get_number_or_range_state) <string, end_ptr>: Now const.
837 (init_number_or_range, number_is_in_list): Update.
838 * printcmd.c (map_display_numbers): Update.
839 * value.c (value_from_history_ref): Constify.
840 * value.h (value_from_history_ref): Update.
842 2014-07-30 Tom Tromey <tromey@redhat.com>
844 * corefile.c (hook_type, call_extra_exec_file_hooks)
845 (specify_exec_file_hook): Constify.
846 * exec.c (exec_file_attach): Make "filename" const.
847 * gdbcore.h (deprecated_exec_file_display_hook)
848 (specify_exec_file_hook, exec_file_attach): Constify.
849 * main.c (captured_main): Use catch_command_errors_const.
851 2014-07-30 Tom Tromey <tromey@redhat.com>
853 * target.c (open_target): New function.
854 (add_target_with_completer, add_deprecated_target_alias): Use
855 set_cmd_sfunc, set_cmd_context.
856 (debug_to_open): Remove.
857 (setup_target_debug): Update.
859 2014-07-30 Yao Qi <yao@codesourcery.com>
861 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
863 * parse.c (exp_iterate): Update comments.
865 2014-07-30 Gary Benson <gbenson@redhat.com>
867 * common/common-defs.h: New file.
868 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
869 * defs.h: Include common-defs.h.
870 Do not include config.h or build-gnulib/config.h.
872 2014-07-30 Gary Benson <gbenson@redhat.com>
874 * common/common-utils.h: Do not include config.h.
875 * nat/linux-btrace.h: Likewise.
877 2014-07-30 Gary Benson <gbenson@redhat.com>
879 * btrace.c: Include defs.h.
880 * common/ptid.c: Include defs.h or server.h as appropriate.
881 * nat/mips-linux-watch.c: Likewise.
883 2014-07-29 Tom Tromey <tromey@redhat.com>
885 * target.c (target_is_pushed): Simplify.
887 2014-07-29 Joel Brobecker <brobecker@adacore.com>
891 2014-07-29 Yao Qi <yao@codesourcery.com>
894 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
896 2014-07-28 Doug Evans <xdje42@gmail.com>
899 * guile/scm-param.c (pascm_parameter_defined_p): New function.
900 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
903 2014-07-28 Will Newton <will.newton@linaro.org>
905 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
906 (THUMB2_SET_R7_SIGRETURN2): Likewise.
907 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
908 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
909 (THUMB2_EABI_SYSCALL): Likewise.
910 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
912 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
913 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
915 2014-07-27 Doug Evans <xdje42@gmail.com>
917 * guile/scm-param.c (pascm_print_param_smob): Fix output.
919 2014-07-27 Doug Evans <xdje42@gmail.com>
921 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
923 2014-07-26 Ludovic Courtès <ludo@gnu.org>
924 Doug Evans <xdje42@gmail.com>
927 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
928 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
929 * configure.ac: Try to use guild to compile an scm file, if it fails
930 then disable guile support.
931 * configure: Regenerate.
932 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
934 (GUILE_COMPILED_FILES): New variable.
935 (GUILE_FILES) Update.
936 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
937 (stamp-guile): Compile scm files.
938 * guile/guile.c (boot_guile_support): New function.
939 (standard_throw_args_p): New function.
940 (print_standard_throw_error, print_throw_error): New functions.
941 (handle_boot_error): New function.
942 (initialize_scheme_side): Rewrite to call boot_guile_support.
943 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
944 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
946 2014-07-26 Ludovic Courtès <ludo@gnu.org>
947 Doug Evans <xdje42@gmail.com>
950 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
951 * guile/lib/gdb/support.scm: New file.
952 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
953 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
955 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
957 (%assert-type): Ditto, and renamed to assert-type.
958 (%exception-print-style): Delete.
960 2014-07-26 Doug Evans <xdje42@gmail.com>
963 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
964 * configure: Regenerate.
965 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
967 (PYTHON_FILES): New variable.
968 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
969 (GUILE_FILES): New variable.
970 (stamp-python, install-python, uninstall-python): Handle empty
972 (stamp-guile, install-guile, uninstall-guile): Ditto.
974 2014-07-26 Doug Evans <xdje42@gmail.com>
977 * guile/lib/gdb.scm (pretty-printers): Export.
978 (set-pretty-printers!): Export.
979 * guile/lib/gdb/printing.scm (gdb module): Update.
980 (prepend-pretty-printer!, append-pretty-printer!): Update.
981 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
982 (pretty_printer_list_var): Delete.
983 (pretty_printer_list): New static global.
984 (gdbscm_pretty_printers): New function.
985 (gdbscm_set_pretty_printers_x): New function.
986 (ppscm_find_pretty_printer_from_gdb): Update.
987 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
988 (gdbscm_initialize_pretty_printers): Update.
990 2014-07-26 Doug Evans <xdje42@gmail.com>
993 * configure.ac: Add check for header gc/gc.h.
994 Add check for function setenv.
995 * configure: Regenerate.
996 * config.in: Regenerate.
997 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
999 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1001 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1002 variation in gdbarch matching.
1004 2014-07-25 Tom Tromey <tromey@redhat.com>
1006 * exec.c (using_exec_ops): Remove.
1007 (exec_close_1): Update. Remove extraneous block, reindent.
1008 (add_target_sections): Use target_is_pushed.
1010 2014-07-25 Pedro Alves <palves@redhat.com>
1012 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1013 * monitor.c (monitor_create_inferior): Likewise.
1014 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1015 * remote-sim.c (gdbsim_create_inferior): Likewise.
1016 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1017 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1018 * windows-nat.c (do_initial_windows_stuff): Likewise.
1020 2014-07-25 Pedro Alves <palves@redhat.com>
1022 * NEWS: Mention signal passing and "signal" command changes.
1023 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1025 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1027 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1028 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1029 (jump_command): Adjust clear_proceed_status call.
1030 (signal_command): Warn if other thread that are resumed have
1031 signals that will be delivered. Adjust clear_proceed_status call.
1032 (until_next_command, finish_command)
1033 (proceed_after_attach_callback, attach_command_post_wait)
1034 (attach_command): Adjust clear_proceed_status call.
1035 * infrun.c (proceed_after_vfork_done): Likewise.
1036 (proceed_after_attach_callback): Adjust comment.
1037 (clear_proceed_status_thread): Clear stop_signal if not in pass
1039 (clear_proceed_status_callback): Delete.
1040 (clear_proceed_status): New 'step' parameter. Only clear the
1041 proceed status of threads the command being prepared is about to
1043 (proceed): If passed in an explicit signal, override stop_signal
1044 with it. Don't pass the last stop signal to the thread we're
1046 (init_wait_for_inferior): Adjust clear_proceed_status call.
1047 (switch_back_to_stepped_thread): Clear the signal if it should not
1049 * infrun.h (clear_proceed_status): New 'step' parameter.
1050 (user_visible_resume_ptid): Add comment.
1051 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1052 signal is in pass state.
1053 * remote.c (append_pending_thread_resumptions): Likewise.
1054 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1056 2014-07-25 Tom Tromey <tromey@redhat.com>
1058 * target.h (target_stopped_data_address)
1059 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1062 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1064 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1066 (avr_pointer_to_address): Likewise.
1068 2014-07-24 Tom Tromey <tromey@redhat.com>
1070 * monitor.c (compile_pattern): Update.
1071 * target.h (struct target_ops) <to_shortname, to_longname,
1074 2014-07-24 Tom Tromey <tromey@redhat.com>
1076 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1077 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1078 (add_info_alias, add_com): Make "doc" const.
1079 (print_doc_line): Make "str" const.
1080 (delete_cmd): Update.
1081 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1082 (print_doc_line): Update.
1083 * cli/cli-script.c (document_command): Update.
1084 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1085 (add_com, add_info, add_info_alias): Update.
1086 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1087 * python/py-cmd.c (cmdpy_destroyer): Update.
1089 2014-07-24 Tom Tromey <tromey@redhat.com>
1091 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1092 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1093 (help_cmd_list): Constify.
1094 (lookup_cmd): Update.
1095 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1097 (help_cmd_list, apropos_cmd): Update.
1098 * cli/cli-script.c (show_user): Update.
1099 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1100 * cli/cli-setshow.h (cmd_show_list): Update.
1101 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1102 (cmd_show_list): Update.
1103 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1104 * python/py-cmd.c (cmdpy_destroyer): Update.
1106 2014-07-24 Tom Tromey <tromey@redhat.com>
1108 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1109 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1111 * command.h (deprecate_cmd): Update.
1112 * maint.c (maintenance_do_deprecate): Add casts.
1114 2014-07-24 Tom Tromey <tromey@redhat.com>
1116 * cli/cli-decode.c (help_cmd): Make parameter "const".
1117 * cli/cli-decode.h (help_cmd): Update.
1119 2014-07-24 Tom Tromey <tromey@redhat.com>
1121 * stack.c (up_silently_base, down_silently_base): Make argument
1124 2014-07-24 Tom Tromey <tromey@redhat.com>
1126 * solib.c (solib_add): Make "pattern" const.
1127 * solib.h (solib_add): Update.
1129 2014-07-24 Tom Tromey <tromey@redhat.com>
1131 * remote.c (remote_serial_open, print_packet, putpkt)
1132 (putpkt_binary): Constify.
1133 * remote.h (putpkt): Update.
1135 2014-07-24 Tom Tromey <tromey@redhat.com>
1137 * monitor.c (monitor_open): Make "args" const.
1138 * monitor.h (monitor_open): Update.
1140 2014-07-24 Tom Tromey <tromey@redhat.com>
1142 * maint.c (match_bfd_flags): Make "string" const.
1143 (print_bfd_section_info): Remove casts.
1144 (print_objfile_section_info): Make "string" const.
1146 2014-07-24 Tom Tromey <tromey@redhat.com>
1148 * inf-child.c (inf_child_open_target): Make "arg" const.
1149 * inf-child.h (inf_child_open_target): Update.
1151 2014-07-24 Tom Tromey <tromey@redhat.com>
1153 * environ.c (unset_in_environ): Make "var" const.
1154 * environ.h (unset_in_environ): Update.
1156 2014-07-24 Tom Tromey <tromey@redhat.com>
1158 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1160 (scan_filename_with_cleanup): Likewise.
1161 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1162 Make arguments const.
1163 (restore_command): Update.
1165 2014-07-24 Pedro Alves <palves@redhat.com>
1167 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1169 2014-07-24 Tom Tromey <tromey@redhat.com>
1170 Gary Benson <gbenson@redhat.com>
1172 * nat/linux-ptrace.c (additional_flags): New global.
1173 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1174 additional_flags; don't check GDBSERVER.
1175 (linux_ptrace_set_additional_flags): New function.
1176 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1178 * linux-nat.c (_initialize_linux_nat): Call
1179 linux_ptrace_set_additional_flags.
1181 2014-07-24 Tom Tromey <tromey@redhat.com>
1183 * make-target-delegates (munge_type, write_debugmethod): New
1185 (debug_names): New global.
1186 ($TARGET_DEBUG_PRINTER): New global.
1187 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1189 Write debug methods. Generate init_debug_target.
1190 * target-debug.h: New file.
1191 * target-delegates.c: Rebuild.
1192 * target.c: Include target-debug.h.
1193 (debug_target): Hoist definition.
1194 (target_kill, target_get_section_table, target_memory_map)
1195 (target_flash_erase, target_flash_done, target_detach)
1196 (target_disconnect, target_wait, target_resume)
1197 (target_pass_signals, target_program_signals, target_follow_fork)
1198 (target_mourn_inferior, target_search_memory)
1199 (target_thread_address_space, target_close)
1200 (target_find_new_threads, target_core_of_thread)
1201 (target_verify_memory, target_insert_mask_watchpoint)
1202 (target_remove_mask_watchpoint): Remove targetdebug code.
1203 (debug_to_post_attach, debug_to_prepare_to_store)
1204 (debug_to_files_info, debug_to_insert_breakpoint)
1205 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1206 (debug_to_region_ok_for_hw_watchpoint)
1207 (debug_to_can_accel_watchpoint_condition)
1208 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1209 (debug_to_watchpoint_addr_within_range)
1210 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1211 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1212 (debug_to_terminal_init, debug_to_terminal_inferior)
1213 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1214 (debug_to_terminal_save_ours, debug_to_terminal_info)
1215 (debug_to_load, debug_to_post_startup_inferior)
1216 (debug_to_insert_fork_catchpoint)
1217 (debug_to_remove_fork_catchpoint)
1218 (debug_to_insert_vfork_catchpoint)
1219 (debug_to_remove_vfork_catchpoint)
1220 (debug_to_insert_exec_catchpoint)
1221 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1222 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1223 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1224 (setup_target_debug): Call init_debug_target.
1225 * target.h (TARGET_DEBUG_PRINTER): New macro.
1226 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1227 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1229 2014-07-24 Gary Benson <gbenson@redhat.com>
1231 * exceptions.h (throw_vfatal): Renamed to...
1232 (throw_vquit): New declaration.
1233 (throw_quit): Likewise.
1234 * exceptions.c (throw_vfatal): Renamed to...
1235 (throw_vquit): New function.
1236 (throw_quit): Likewise.
1237 (throw_error): Call throw_verror rather than throw_it.
1238 * utils.h (vfatal): Removed.
1240 * utils.c (vfatal): Removed.
1242 (internal_verror): Replaced call to fatal with call to throw_quit.
1243 (quit): Replaced calls to fatal with calls to throw_quit.
1245 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1247 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1250 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1252 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1253 less than zero in conditional expression.
1255 2014-07-23 Tom Tromey <tromey@redhat.com>
1257 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1258 ($INTRO_PART): Don't match whitespace.
1259 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1261 ($METHOD): Add $METHOD_TRAILER.
1263 (scan_target_h): New sub.
1264 Change main loop not to collect state.
1265 * target-delegates.c: Rebuild.
1267 2014-07-23 Gary Benson <gbenson@redhat.com>
1269 * cp-support.c (gdb_demangle): Fix build on systems without
1272 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1274 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1275 for reference entry value target data value.
1277 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1280 value_available_contents_eq.
1282 2014-07-22 Pedro Alves <palves@redhat.com>
1284 * value.c (allocate_optimized_out_value): Don't mark value as
1287 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1289 * MAINTAINERS (Write After Approval): Update my email address.
1291 2014-07-20 Doug Evans <dje@google.com>
1294 * remote.c (putpkt_binary): Add text to error message.
1296 2014-07-20 Yao Qi <yao@codesourcery.com>
1298 * eval.c: Remove "Chill" from comments.
1299 * gdbtypes.h: Likewise.
1300 * symtab.h: Likewise.
1302 2014-07-20 Yao Qi <yao@codesourcery.com>
1304 * std-operator.def: Update comments to TERNOP_SLICE.
1306 2014-07-20 Yao Qi <yao@codesourcery.com>
1308 * std-operator.def: Remove BINOP_RANGE.
1309 * breakpoint.c (watchpoint_exp_is_const): Update.
1310 * expprint.c (dump_subexp_body_standard): Likewise.
1311 * eval.c (init_array_element): Remove dead code.
1312 (evaluate_subexp_standard): Likewise.
1314 2014-07-20 Yao Qi <yao@codesourcery.com>
1316 * std-operator.def: Remove BINOP_IN.
1317 * breakpoint.c (watchpoint_exp_is_const): Update.
1318 * eval.c (evaluate_subexp_standard): Likewise.
1319 * expprint.c (dump_subexp_body_standard): Likewise.
1321 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1323 * microblaze-tdep.c (microblaze_register_names): Add
1324 the rshr and rslr register names.
1325 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1326 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1327 Use of tdesc_numbered_register. Use of
1328 microblaze_register_g_packet_guesses. Use of
1329 tdesc_use_registers. Use of set_gdbarch_register_type.
1330 (microblaze_register_g_packet_guesses): New.
1331 * microblaze-tdep.h (microblaze_reg_num): Add
1332 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1333 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1334 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1335 * features/microblaze-core.xml: New file.
1336 * features/microblaze-stack-protect.xml: New file.
1337 * features/microblaze-with-stack-protect.c: New file.
1338 * features/microblaze-with-stack-protect.xml: New file.
1339 * features/microblaze.xml: New file.
1340 * features/microblaze.c: New file.
1341 * features/Makefile (microblaze-with-stack-protect): Add
1342 microblaze-with-stack-protect microblaze and microblaze-expedite.
1343 * regformats/microblaze-with-stack-protect.dat: New file.
1344 * regformats/microblaze.dat: New file.
1345 * doc/gdb.texinfo (MicroBlaze Features): Added.
1347 2014-07-18 Tom Tromey <tromey@redhat.com>
1349 * exec.c (exec_ops): Now static.
1350 * exec.h (exec_ops): Don't declare.
1352 2014-07-18 Tom Tromey <tromey@redhat.com>
1354 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1355 to find_target_beneath.
1356 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1357 find_target_beneath.
1358 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1360 2014-07-18 Tom Tromey <tromey@redhat.com>
1363 * utils.c (quit): Use target_supports_terminal_ours.
1364 * target.h (target_supports_terminal_ours): Declare.
1365 * target.c (target_supports_delete_record): Don't check
1366 to_delete_record against NULL.
1367 (target_supports_terminal_ours): New function.
1369 2014-07-18 Tom Tromey <tromey@redhat.com>
1372 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1373 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1374 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1375 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1376 * windows-nat.c (windows_xfer_partial): Always delegate.
1377 * record-btrace.c (record_btrace_xfer_partial): Simplify
1379 (record_btrace_fetch_registers, record_btrace_store_registers)
1380 (record_btrace_prepare_to_store, record_btrace_resume)
1381 (record_btrace_wait, record_btrace_find_new_threads)
1382 (record_btrace_thread_alive): Likewise.
1383 * procfs.c (procfs_xfer_partial): Always delegate.
1384 * corelow.c (core_xfer_partial): Always delegate.
1385 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1387 2014-07-18 Tom Tromey <tromey@redhat.com>
1389 * exec.c (exec_make_note_section): Move earlier.
1391 2014-07-17 Doug Evans <dje@google.com>
1394 * maint.c (count_symtabs_and_blocks): Handle NULL
1395 current_program_space.
1396 (report_command_stats): Check global enabled flag in addition to
1397 recorded enabled flag.
1398 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1400 2014-07-16 Pedro Alves <palves@redhat.com>
1402 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1404 2014-07-16 Tom Tromey <tromey@redhat.com>
1406 * target.h (struct target_ops) <to_delete_record>: Reformat
1409 2014-07-16 Tom Tromey <tromey@redhat.com>
1411 * target-delegates.c: Rebuild.
1413 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1415 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1416 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1417 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1418 (avr_pointer_to_address): Likewise.
1419 (avr_address_class_type_flags): New function.
1420 (avr_address_class_type_flags_to_name): Likewise.
1421 (avr_address_class_name_to_type_flags): Likewise.
1422 (avr_gdbarch_init): Set address_class_type_flags,
1423 address_class_type_flags_to_name and
1424 address_class_name_to_type_flags.
1426 2014-07-15 Pedro Alves <palves@redhat.com>
1428 * linux-nat.c (kill_callback): Save errno and work with saved
1431 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1433 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1435 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1437 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1438 breakpoint support correctly.
1440 2014-07-14 Pedro Alves <palves@redhat.com>
1442 * utils.c (prompt_for_continue): Call target_terminal_ours.
1444 2014-07-14 Pedro Alves <palves@redhat.com>
1446 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1447 catch_errors. Don't re-enable stdin or notify observers where,
1449 (fetch_inferior_event_wrapper): Delete.
1451 2014-07-14 Pedro Alves <palves@redhat.com>
1454 * top.c: Include "inf-loop.h".
1455 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1457 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1459 (gdb_readline_wrapper): Store whether the target is async, and
1462 2014-07-14 Pedro Alves <palves@redhat.com>
1465 * top.c (gdb_readline_wrapper_line): Tweak comment.
1466 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1467 the input handler callback.
1469 2014-07-14 Pedro Alves <palves@redhat.com>
1472 * main.c: Include event-top.h.
1473 (handle_command_errors): New function.
1474 (catch_command_errors, catch_command_errors_const): Use it.
1476 2014-07-14 Pedro Alves <palves@redhat.com>
1478 * exceptions.c (catch_command_errors, catch_command_errors_const):
1480 * exceptions.h (catch_command_errors_ftype)
1481 (catch_command_errors_const_ftype): Moved to main.c.
1482 (catch_command_errors, catch_command_errors_const): Delete
1484 * main.c (catch_command_errors_ftype)
1485 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1486 (catch_command_errors, catch_command_errors_const)): Moved here
1487 from exceptions.c and make static.
1489 2014-07-14 Pedro Alves <palves@redhat.com>
1491 * exceptions.c (print_any_exception): Delete.
1492 (catch_exceptions_with_msg): Use exception_print instead of
1493 print_any_exception.
1494 (catch_errors): Use exception_fprintf instead of
1495 print_any_exception.
1496 (catch_command_errors, catch_command_errors_const): Use
1497 exception_print instead of print_any_exception.
1499 2014-07-14 Pedro Alves <palves@redhat.com>
1501 * infcall.c (run_inferior_call): Set 'sync_execution' while
1502 running the inferior call.
1504 2014-07-14 Pedro Alves <palves@redhat.com>
1506 * value.c (value_contents_equal): Delete function.
1507 * value.h (value_contents_equal): Delete declaration.
1509 2014-07-14 Tom Tromey <tromey@redhat.com>
1512 * gdbtypes.c (is_dynamic_type_internal): New function, from
1514 (is_dynamic_type): Rewrite.
1515 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1516 (resolve_dynamic_struct): Likewise.
1517 (resolve_dynamic_type_internal): New function, from
1518 resolve_dynamic_type.
1519 (resolve_dynamic_type): Rewrite.
1521 2014-07-14 Tom Tromey <tromey@redhat.com>
1523 * target.c (target_require_runnable): Also check record_stratum.
1526 2014-07-11 Yao Qi <yao@codesourcery.com>
1528 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1529 thumb_instruction_restores_sp return true.
1531 2014-07-11 Yao Qi <yao@codesourcery.com>
1533 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1534 (thumb_in_function_epilogue_p): Call
1535 thumb_instruction_restores_sp.
1537 2014-07-11 Yao Qi <yao@codesourcery.com>
1539 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1541 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1543 2014-07-11 Gary Benson <gbenson@redhat.com>
1545 * amd64-linux-nat.c (gdbcore.h): Remove include.
1546 (regset.h): Likewise.
1547 (nat/linux-btrace.h): Likewise.
1548 (btrace.h): Likewise.
1549 (gdb_assert.h): Likewise.
1550 (string.h): Likewise.
1551 (sys/uio.h): Likewise.
1552 (sys/debugreg.h): Likewise.
1553 (sys/syscall.h): Likewise.
1554 (sys/procfs.h): Likewise.
1555 (sys/user.h): Likewise.
1556 (asm/ptrace.h): Likewise.
1557 (i386-nat.h): Likewise.
1558 * i386-linux-nat.c (i386-nat.h): Likewise.
1559 (regset.h): Likewise.
1560 (target.h): Likewise.
1561 (linux-nat.h): Likewise.
1562 (nat/linux-btrace.h): Likewise.
1563 (btrace.h): Likewise.
1564 (gdb_assert.h): Likewise.
1565 (string.h): Likewise.
1566 (sys/uio.h): Likewise.
1567 (sys/user.h): Likewise.
1568 (sys/procfs.h): Likewise.
1569 (sys/reg.h): Likewise.
1570 (sys/debugreg.h): Likewise.
1571 (ORIG_EAX): Remove definition.
1573 2014-07-11 Gary Benson <gbenson@redhat.com>
1575 * i386-linux-nat.h: New file.
1576 * x86-linux-nat.h: Likewise.
1577 * x86-linux-nat.c: Likewise.
1578 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1579 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1580 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1581 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1582 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1583 (PTRACE_SETREGSET): Likewise.
1584 (arch_lwp_info): Now in x86-linux-nat.c.
1585 (have_ptrace_getregset): Now in x86-linux-nat.h.
1586 (x86_linux_dr_get): Now in x86-linux-nat.c.
1587 (x86_linux_dr_set): Likewise.
1588 (x86_linux_dr_get_addr): Likewise.
1589 (x86_linux_dr_get_control): Likewise.
1590 (x86_linux_dr_get_status): Likewise.
1591 (update_debug_registers_callback): Likewise.
1592 (x86_linux_dr_set_control): Likewise.
1593 (x86_linux_dr_set_addr): Likewise.
1594 (x86_linux_prepare_to_resume): Likewise.
1595 (x86_linux_new_thread): Likewise.
1596 (x86_linux_new_fork): Likewise.
1597 (x86_linux_get_thread_area): Likewise.
1598 (super_post_startup_inferior): Likewise.
1599 (x86_linux_child_post_startup_inferior): Likewise.
1600 (AMD64_LINUX_USER64_CS): Likewise.
1601 (AMD64_LINUX_X32_DS): Likewise.
1602 (x86_linux_read_description): Likewise.
1603 (x86_linux_enable_btrace): Likewise.
1604 (x86_linux_disable_btrace): Likewise.
1605 (x86_linux_teardown_btrace): Likewise.
1606 (x86_linux_read_btrace): Likewise.
1607 (x86_linux_create_target): Likewise.
1608 (x86_linux_add_target): Likewise.
1609 * i386-linux-nat.c (x86-linux-nat.h): New include.
1610 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1611 (PTRACE_SETREGSET): Likewise.
1612 (arch_lwp_info): Now in x86-linux-nat.c.
1613 (have_ptrace_getregset): Now in x86-linux-nat.h.
1614 (x86_linux_dr_get): Now in x86-linux-nat.c.
1615 (x86_linux_dr_set): Likewise.
1616 (x86_linux_dr_get_addr): Likewise.
1617 (x86_linux_dr_get_control): Likewise.
1618 (x86_linux_dr_get_status): Likewise.
1619 (update_debug_registers_callback): Likewise.
1620 (x86_linux_dr_set_control): Likewise.
1621 (x86_linux_dr_set_addr): Likewise.
1622 (x86_linux_prepare_to_resume): Likewise.
1623 (x86_linux_new_thread): Likewise.
1624 (x86_linux_new_fork): Likewise.
1625 (x86_linux_get_thread_area): Likewise.
1626 (super_post_startup_inferior): Likewise.
1627 (x86_linux_child_post_startup_inferior): Likewise.
1628 (AMD64_LINUX_USER64_CS): Likewise.
1629 (AMD64_LINUX_X32_DS): Likewise.
1630 (x86_linux_read_description): Likewise.
1631 (x86_linux_enable_btrace): Likewise.
1632 (x86_linux_disable_btrace): Likewise.
1633 (x86_linux_teardown_btrace): Likewise.
1634 (x86_linux_read_btrace): Likewise.
1635 (x86_linux_create_target): Likewise.
1636 (x86_linux_add_target): Likewise.
1638 2014-07-11 Gary Benson <gbenson@redhat.com>
1640 * amd64-linux-nat.c: Comment and whitespace changes.
1641 * i386-linux-nat.c: Comment and whitespace changes.
1643 2014-07-11 Gary Benson <gbenson@redhat.com>
1645 * amd64-linux-nat.c (x86_linux_create_target): New function.
1646 (x86_linux_add_target): Likewise.
1647 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1648 * i386-linux-nat.c (x86_linux_create_target): New function.
1649 (x86_linux_add_target): Likewise.
1650 (_initialize_i386_linux_nat): Delegate to the above new functions.
1652 2014-07-11 Gary Benson <gbenson@redhat.com>
1654 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1655 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1656 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1657 (ps_get_thread_area): Delegate to the above.
1659 2014-07-11 Gary Benson <gbenson@redhat.com>
1661 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1662 x86_linux_read_description. All uses updated. amd64-specific
1663 code conditionalized. Conditionalized i386-specific code added.
1664 Redundant cast removed.
1665 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1666 x86_linux_read_description. All uses updated. i386-specific
1667 code conditionalized. Conditionalized amd64-specific code added.
1668 One sizeof replaced with the actual type it is describing.
1670 2014-07-11 Gary Benson <gbenson@redhat.com>
1672 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1673 x86_linux_dr_get. All uses updated.
1674 (amd64_linux_dr_set): Renamed to
1675 x86_linux_dr_set. All uses updated.
1676 (amd64_linux_dr_get_addr): Renamed to
1677 x86_linux_dr_get_addr. All uses updated.
1678 (amd64_linux_dr_get_control): Renamed to
1679 x86_linux_dr_get_control. All uses updated.
1680 (amd64_linux_dr_get_status): Renamed to
1681 x86_linux_dr_get_status. All uses updated.
1682 (amd64_linux_dr_set_control): Renamed to
1683 x86_linux_dr_set_control. All uses updated.
1684 (amd64_linux_dr_set_addr): Renamed to
1685 x86_linux_dr_set_addr. All uses updated.
1686 (amd64_linux_prepare_to_resume): Renamed to
1687 x86_linux_prepare_to_resume. All uses updated.
1688 (amd64_linux_new_thread): Renamed to
1689 x86_linux_new_thread. All uses updated.
1690 (amd64_linux_new_fork): Renamed to
1691 x86_linux_new_fork. All uses updated.
1692 (amd64_linux_child_post_startup_inferior): Renamed to
1693 x86_linux_child_post_startup_inferior. All uses updated.
1694 (amd64_linux_enable_btrace): Renamed to
1695 x86_linux_enable_btrace. All uses updated.
1696 (amd64_linux_disable_btrace): Renamed to
1697 x86_linux_disable_btrace. All uses updated.
1698 (amd64_linux_teardown_btrace): Renamed to
1699 x86_linux_teardown_btrace. All uses updated.
1700 (amd64_linux_read_btrace): Renamed to
1701 x86_linux_read_btrace. All uses updated.
1702 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1703 x86_linux_dr_get. All uses updated.
1704 (i386_linux_dr_set): Renamed to
1705 x86_linux_dr_set. All uses updated.
1706 (i386_linux_dr_get_addr): Renamed to
1707 x86_linux_dr_get_addr. All uses updated.
1708 (i386_linux_dr_get_control): Renamed to
1709 x86_linux_dr_get_control. All uses updated.
1710 (i386_linux_dr_get_status): Renamed to
1711 x86_linux_dr_get_status. All uses updated.
1712 (i386_linux_dr_set_control): Renamed to
1713 x86_linux_dr_set_control. All uses updated.
1714 (i386_linux_dr_set_addr): Renamed to
1715 x86_linux_dr_set_addr. All uses updated.
1716 (i386_linux_prepare_to_resume): Renamed to
1717 x86_linux_prepare_to_resume. All uses updated.
1718 (i386_linux_new_thread): Renamed to
1719 x86_linux_new_thread. All uses updated.
1720 (i386_linux_new_fork): Renamed to
1721 x86_linux_new_fork. All uses updated.
1722 (i386_linux_child_post_startup_inferior): Renamed to
1723 x86_linux_child_post_startup_inferior. All uses updated.
1724 (i386_linux_enable_btrace): Renamed to
1725 x86_linux_enable_btrace. All uses updated.
1726 (i386_linux_disable_btrace): Renamed to
1727 x86_linux_disable_btrace. All uses updated.
1728 (i386_linux_teardown_btrace): Renamed to
1729 x86_linux_teardown_btrace. All uses updated.
1730 (i386_linux_read_btrace): Renamed to
1731 x86_linux_read_btrace. All uses updated.
1733 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1735 * remote.c (extended_remote_post_attach): New function.
1736 (init_extended_remote_ops): Install it as to_post_attach method.
1738 2014-07-09 Pedro Alves <palves@redhat.com>
1740 * infcmd.c (attach_command_post_wait): Don't call
1741 target_terminal_inferior here.
1742 (attach_command): Call it here instead.
1744 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1746 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1748 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1749 from varobj.c, with additional checks.
1750 (c_varobj_ops): Fill in is_path_expr_parent field.
1751 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1752 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1754 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1756 (varobj_default_is_path_expr_parent): New function.
1757 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1758 (varobj_default_is_path_expr_parent): Declare new function.
1760 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1762 * infcmd.c (finish_backward): Turn internal error into normal error.
1764 2014-07-07 Pedro Alves <palves@redhat.com>
1767 * remote.c (async_handle_remote_sigint)
1768 (async_handle_remote_sigint_twice): Call
1769 gdb_call_async_signal_handler instead of
1770 mark_async_signal_handler.
1772 2014-07-07 Tom Tromey <tromey@redhat.com>
1774 * target-delegates.c: Rebuild.
1775 * target.c (target_info_record): Remove.
1776 * record.c (info_record_command): Unconditionally call
1778 * target.h (struct target_ops) <to_info_record>: Use
1779 TARGET_DEFAULT_IGNORE.
1780 (target_info_record): Remove.
1782 2014-07-07 Tom Tromey <tromey@redhat.com>
1784 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1785 TARGET_DEFAULT_NORETURN.
1786 * target.c (generic_tls_error): New function.
1787 (target_translate_tls_address): Don't search target stack.
1788 * target-delegates.c: Rebuild.
1789 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1791 * linux-thread-db.c (thread_db_get_thread_local_address):
1792 Unconditionally call beneath target.
1794 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1796 * cli/cli-logging.c (pop_output_files): Assign targerr to
1799 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1801 * MAINTAINERS (Write After Approval): Update my email address.
1803 2014-07-02 Gary Benson <gbenson@redhat.com>
1805 * proc-service.c (ps_xfer_memory): Update comment.
1806 (ps_pstop): Remove unused function.
1807 (ps_pcontinue): Likewise.
1808 (ps_lstop): Likewise.
1809 (ps_lcontinue): Likewise.
1810 (ps_lgetxregsize): Likewise.
1811 (ps_lgetxregs): Likewise.
1812 (ps_lsetxregs): Likewise.
1813 (ps_plog): Likewise.
1814 (ps_ptread): Likewise.
1815 (ps_ptwrite): Likewise.
1817 2014-07-01 Mark Wielaard <mjw@redhat.com>
1819 * dwarf2read.c (add_array_cv_type): New function.
1820 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1821 (read_tag_volatile_type): Likewise.
1823 2014-07-01 Tom Tromey <tromey@redhat.com>
1825 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1826 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1827 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1828 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1829 * command.h (cmd_cfunc_ftype): Move earlier.
1830 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1831 (add_com, add_info): Use cmd_cfunc_ftype.
1833 2014-06-30 Tom Tromey <tromey@redhat.com>
1835 * symtab.c (operator_chars): Make parameters and return type
1837 (file_matches): Make "files" const.
1838 (struct search_symbols_data) <files>: Now const.
1839 (search_symbols): Make "regexp" and "files" parameters const.
1841 (symtab_symbol_info): Remove cast.
1842 (rbreak_command): Update.
1843 * symtab.h (search_symbols): Update.
1845 2014-06-27 Yao Qi <yao@codesourcery.com>
1847 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1848 Change parameter type to 'struct thread_info *'. Caller
1850 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1852 * dummy-frame.c (struct dummy_frame_id): New.
1853 (dummy_frame_id_eq): New function.
1854 (struct dummy_frame) <id>: Change its type to 'struct
1856 (dummy_frame_push): Add parameter ptid and save it in
1858 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1860 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1862 (lookup_dummy_frame): Change parameter type to 'struct
1863 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1864 instead of frame_id_eq.
1865 (dummy_frame_pop): Add parameter ptid. Callers updated.
1866 Update comments. Compose dummy_frame_id and pass it to
1868 (dummy_frame_discard): Add parameter ptid.
1869 (dummy_frame_sniffer): Compose dummy_frame_id and call
1870 dummy_frame_id_eq instead of frame_id_eq.
1871 (fprint_dummy_frames): Print ptid.
1872 * dummy-frame.h: Remove comments.
1873 (dummy_frame_push): Add ptid in declaration.
1874 (dummy_frame_pop, dummy_frame_discard): Likewise.
1876 2014-06-26 Tom Tromey <tromey@redhat.com>
1878 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1879 * command.h (error_no_arg): Update.
1881 2014-06-26 Tom Tromey <tromey@redhat.com>
1883 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1884 (do_show_command): Make "arg" const.
1885 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1887 2014-06-26 Tom Tromey <tromey@redhat.com>
1889 * record-full.c (record_full_get_bookmark): Make "args" const.
1890 (record_full_goto_bookmark): Make "raw_bookmark" const.
1891 * record.c (record_goto): New function.
1892 (cmd_record_goto): Use it. Now static.
1893 * record.h (record_goto): Declare.
1894 (cmd_record_goto): Remove declaration.
1895 * target-delegates.c: Rebuild.
1896 * target.h (struct target_ops) <to_get_bookmark,
1897 to_goto_bookmark>: Make parameter const.
1899 2014-06-26 Tom Tromey <tromey@redhat.com>
1901 * defs.h (generic_load): Update.
1902 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1903 * monitor.c (monitor_load): Make "args" const.
1904 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1905 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1907 (mips_load): Make "file" const.
1908 * remote-sim.c (gdbsim_load): Make "args" const.
1909 * remote.c (remote_load): Make "name" const.
1910 * symfile.c (generic_load): Make "args" const.
1911 * target-delegates.c: Rebuild.
1912 * target.c (target_load): Make "arg" const.
1913 (debug_to_load): Make "args" const.
1914 * target.h (struct target_ops) <to_load>: Make parameter const.
1915 (target_load): Update.
1917 2014-06-26 Tom Tromey <tromey@redhat.com>
1920 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1921 (dwarf2_physname, read_partial_die)
1922 (guess_partial_die_structure_name, fixup_partial_die)
1923 (guess_full_die_structure_name, anonymous_struct_prefix)
1924 (dwarf2_name): Use per-BFD obstack.
1926 2014-06-26 Yao Qi <yao@codesourcery.com>
1928 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1929 dummyframe and this_id into inner block below.
1931 2014-06-26 Yao Qi <yao@codesourcery.com>
1933 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1934 with "signal_pass[0]" in the initialization of signal_pass.
1936 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1938 * record-btrace.c (record_btrace_generating_corefile)
1939 (record_btrace_prepare_to_generate_core)
1940 (record_btrace_done_generating_core): New.
1941 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1942 (record_btrace_store_registers, record_btrace_prepare_to_store):
1943 Forward request when generating a core file.
1944 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1945 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1946 to_done_generating_core.
1948 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1950 * target.h (target_ops) <to_prepare_to_generate_core>
1951 <to_done_generating_core>: New.
1952 (target_prepare_to_generate_core, target_done_generating_core): New.
1953 * target.c (target_prepare_to_generate_core)
1954 (target_done_generating_core): New.
1955 * target-delegates.c: Regenerate.
1956 * gcore.c: (write_gcore_file): Rename to ...
1957 (write_gcore_file_1): ...this.
1958 (write_gcore_file): Call target_prepare_to_generate_core
1959 and target_done_generating_core.
1961 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1963 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1964 * gcore.c (write_gcore_file): Free memory returned from
1965 make_corefile_notes.
1966 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1967 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1969 2014-06-24 Yao Qi <yao@codesourcery.com>
1971 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1972 (arm_linux_init_abi): Set skip_trampoline_code with
1973 gdbarch_skip_trampoline_code instead of
1974 find_solib_trampoline_target.
1976 2014-06-24 Yao Qi <yao@codesourcery.com>
1978 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1979 arm_skip_bx_reg returns non-zero.
1981 2014-06-24 Yao Qi <yao@codesourcery.com>
1983 * arm-tdep.c (arm_skip_bx_reg): New function.
1984 (arm_skip_stub): Call arm_skip_bx_reg.
1986 2014-06-23 Don Breazeal <donb@codesourcery.com>
1988 * MAINTAINERS: Add myself as write-after-approval maintainer.
1990 2014-06-23 Pedro Alves <palves@redhat.com>
1992 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1993 DR_CONTROL before setting DR0..DR3.
1994 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1995 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1996 bits of DR_CONTROL related to the debug register slot being
1997 disabled. If all slots are vacant, clear local slowdown as well,
1998 and assert DR_CONTROL is 0.
2000 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2002 * python/lib/gdb/command/xmethods.py
2003 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2004 current progspace only if the string "progspace" matches LOCUS_RE.
2006 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2008 Fix --with-system-readline with readline-6.3 patch 5.
2009 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2010 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2013 2014-06-20 Tom Tromey <tromey@redhat.com>
2015 * dwarf2read.c (dw2_get_real_path): Use correct type in
2017 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2019 2014-06-20 Gary Benson <gbenson@redhat.com>
2021 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2022 * common/glibc_thread_db.h: Likewise.
2023 * common/i386-cpuid.h: Likewise.
2024 * common/i386-gcc-cpuid.h: Likewise.
2025 * common/linux-btrace.h: Likewise.
2026 * common/linux-osdata.h: Likewise.
2027 * common/linux-procfs.h: Likewise.
2028 * common/linux-ptrace.h: Likewise.
2029 * common/mips-linux-watch.h: Likewise.
2030 * common/linux-btrace.c: Moved to nat.
2031 * common/linux-osdata.c: Likewise.
2032 * common/linux-procfs.c: Likewise.
2033 * common/linux-ptrace.c: Likewise.
2034 * common/mips-linux-watch.c: Likewise.
2035 * nat/gdb_thread_db.h: Moved from common.
2036 * nat/glibc_thread_db.h: Likewise.
2037 * nat/i386-cpuid.h: Likewise.
2038 * nat/i386-gcc-cpuid.h: Likewise.
2039 * nat/linux-btrace.c: Likewise.
2040 * nat/linux-btrace.h: Likewise.
2041 * nat/linux-osdata.c: Likewise.
2042 * nat/linux-osdata.h: Likewise.
2043 * nat/linux-procfs.c: Likewise.
2044 * nat/linux-procfs.h: Likewise.
2045 * nat/linux-ptrace.c: Likewise.
2046 * nat/linux-ptrace.h: Likewise.
2047 * nat/mips-linux-watch.c: Likewise.
2048 * nat/mips-linux-watch.h: Likewise.
2049 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2050 (object file files): Reordered.
2051 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2052 of glibc_thread_db.h.
2054 2014-06-20 Gary Benson <gbenson@redhat.com>
2056 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2057 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2058 (i386_dr_low): Likewise.
2059 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2060 (i386_dr_low_set_addr): Likewise.
2061 (i386_dr_low_get_addr): Likewise.
2062 (i386_dr_low_can_set_control): Likewise.
2063 (i386_dr_low_set_control): Likewise.
2064 (i386_dr_low_get_control): Likewise.
2065 (i386_dr_low_get_status): Likewise.
2066 (i386_get_debug_register_length): Likewise.
2067 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2068 (i386_dr_low): Likewise.
2069 * nat/i386-dregs.c (i386-low.h): Remove include.
2070 (i386-nat.h): Likewise.
2071 (nat/i386-dregs.h): New include.
2072 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2073 (i386_dr_low_set_addr): Likewise.
2074 (i386_dr_low_get_addr): Likewise.
2075 (i386_dr_low_can_set_control): Likewise.
2076 (i386_dr_low_set_control): Likewise.
2077 (i386_dr_low_get_control): Likewise.
2078 (i386_dr_low_get_status): Likewise.
2079 (i386_get_debug_register_length): Likewise.
2080 (debug_hw_points): Likewise.
2082 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2084 * Makefile.in (SFILES): Add d-exp.y.
2085 (YYFILES): Add d-exp.c.
2086 (YYOBJ): Add d-exp.o.
2087 (local-maintainer-clean): Delete d-exp.c.
2088 * d-exp.y: New file.
2089 * d-lang.h (d_parse): New declaration.
2090 (d_error): New declaration.
2091 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2092 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2093 PREC_ORDER operators.
2094 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2096 2014-06-19 Yao Qi <yao@codesourcery.com>
2098 * gdbthread.h (any_running): Remove the declaration.
2099 * thread.c (any_running): Remove.
2101 2014-06-19 Yao Qi <yao@codesourcery.com>
2103 * gdbthread.h (struct thread_info) <state>: Change its type to
2104 'enum thread_state'. Update comments.
2106 2014-06-19 Pedro Alves <palves@redhat.com>
2108 * gdbthread.h (ALL_THREADS): Delete.
2109 (ALL_NON_EXITED_THREADS): New macro.
2110 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2111 instead of ALL_THREADS.
2112 * infrun.c (find_thread_needs_step_over)
2113 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2114 instead of ALL_THREADS.
2115 * record-btrace.c (record_btrace_open)
2116 (record_btrace_stop_recording, record_btrace_close)
2117 (record_btrace_is_replaying, record_btrace_resume)
2118 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2119 * remote.c (append_pending_thread_resumptions): Likewise.
2120 * thread.c (thread_apply_all_command): Likewise.
2122 2014-06-19 Gary Benson <gbenson@redhat.com>
2124 * i386-nat.c (i386_stopped_by_watchpoint):
2125 Use i386_dr_stopped_by_watchpoint.
2126 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2127 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2129 2014-06-19 Gary Benson <gbenson@redhat.com>
2131 * nat/i386-dregs.c: New file.
2132 * Makefile.in (i386-dregs.o): New rule.
2133 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2134 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2135 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2136 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2137 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2138 * config/i386/go32.mh (NATDEPFILES): Likewise.
2139 * config/i386/linux.mh (NATDEPFILES): Likewise.
2140 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2141 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2142 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2143 * i386-nat.h (debug_hw_points): New declaration.
2144 * i386-nat.c (breakpoint.h): Remove include.
2145 (command.h): Likewise.
2146 (target.h): Likewise.
2147 (gdb_assert.h): Likewise.
2148 (debug_hw_points): Made nonstatic.
2149 (debug_printf): Now in i386-dregs.c.
2150 (TARGET_HAS_DR_LEN_8): Likewise.
2151 (DR_CONTROL_SHIFT): Likewise.
2152 (DR_CONTROL_SIZE): Likewise.
2153 (DR_RW_EXECUTE): Likewise.
2154 (DR_RW_WRITE): Likewise.
2155 (DR_RW_READ): Likewise.
2156 (DR_RW_IORW): Likewise.
2157 (DR_LEN_1): Likewise.
2158 (DR_LEN_2): Likewise.
2159 (DR_LEN_4): Likewise.
2160 (DR_LEN_8): Likewise.
2161 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2162 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2163 (DR_ENABLE_SIZE): Likewise.
2164 (DR_LOCAL_SLOWDOWN): Likewise.
2165 (DR_GLOBAL_SLOWDOWN): Likewise.
2166 (DR_CONTROL_RESERVED): Likewise.
2167 (I386_DR_CONTROL_MASK): Likewise.
2168 (I386_DR_VACANT): Likewise.
2169 (I386_DR_LOCAL_ENABLE): Likewise.
2170 (I386_DR_GLOBAL_ENABLE): Likewise.
2171 (I386_DR_DISABLE): Likewise.
2172 (I386_DR_SET_RW_LEN): Likewise.
2173 (I386_DR_GET_RW_LEN): Likewise.
2174 (I386_DR_WATCH_HIT): Likewise.
2175 (i386_wp_op_t): Likewise.
2176 (i386_show_dr): Likewise.
2177 (i386_length_and_rw_bits): Likewise.
2178 (i386_insert_aligned_watchpoint): Likewise.
2179 (i386_remove_aligned_watchpoint): Likewise.
2180 (i386_handle_nonaligned_watchpoint): Likewise.
2181 (i386_update_inferior_debug_regs): Likewise.
2182 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2183 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2184 (i386_region_ok_for_watchpoint):
2185 Use i386_dr_region_ok_for_watchpoint.
2186 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2188 2014-06-19 Gary Benson <gbenson@redhat.com>
2190 * i386-nat.c (i386_insert_hw_breakpoint): Use
2191 i386_insert_watchpoint.
2192 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2194 2014-06-19 Gary Benson <gbenson@redhat.com>
2196 * i386-nat.c (i386_dr_show): Renamed to
2197 i386_show_dr and made static. All uses updated.
2198 (i386_dr_length_and_rw_bits): Renamed to
2199 i386_length_and_rw_bits and made static.
2201 (i386_dr_insert_aligned_watchpoint): Renamed to
2202 i386_insert_aligned_watchpoint and made static.
2204 (i386_dr_remove_aligned_watchpoint): Renamed to
2205 i386_remove_aligned_watchpoint and made static.
2207 (i386_dr_update_inferior_debug_regs): Renamed to
2208 i386_update_inferior_debug_regs and made static.
2210 * nat/i386-dregs.h (i386_dr_show): Removed.
2211 (i386_dr_length_and_rw_bits): Likewise.
2212 (i386_dr_insert_aligned_watchpoint): Likewise.
2213 (i386_dr_remove_aligned_watchpoint): Likewise.
2214 (i386_dr_update_inferior_debug_regs): Likewise.
2216 2014-06-19 Gary Benson <gbenson@redhat.com>
2218 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2219 * configure: Regenerate.
2220 * config.in: Likewise.
2221 * main.c (signal.h): New include.
2222 (setup_alternate_signal_stack): New function.
2223 (captured_main): Call the above.
2224 * cp-support.c (signal.h): New include.
2225 (catch_demangler_crashes): New flag.
2226 (SIGJMP_BUF): New define.
2227 (SIGSETJMP): Likewise.
2228 (SIGLONGJMP): Likewise.
2229 (gdb_demangle_jmp_buf): New static global.
2230 (gdb_demangle_attempt_core_dump): Likewise.
2231 (gdb_demangle_signal_handler): New function.
2232 (gdb_demangle): If catch_demangler_crashes is set, install the
2233 above signal handler before calling bfd_demangle, and restore
2234 the original signal handler afterwards. Display the offending
2235 symbol and call demangler_warning the first time a segmentation
2237 (_initialize_cp_support): New maint set/show command.
2239 2014-06-19 Gary Benson <gbenson@redhat.com>
2241 * utils.h (resource_limit_kind): New enum.
2242 (can_dump_core): New declaration.
2243 (warn_cant_dump_core): Likewise.
2244 (dump_core): Likewise.
2245 * utils.c (dump_core): Made nonstatic. Added new
2246 parameter "limit_kind".
2247 (can_dump_core): Made nonstatic. Moved printing code to...
2248 (warn_cant_dump_core): New function.
2249 (can_dump_core_warn): Likewise.
2250 (internal_vproblem): Replace calls to can_dump_core with
2251 calls to can_dump_core_warn. Supply new argument to each.
2253 2014-06-19 Gary Benson <gbenson@redhat.com>
2255 * utils.h (demangler_vwarning): New declaration.
2256 (demangler_warning): Likewise.
2257 * utils.c (struct internal_problem)
2258 <user_settable_should_quit>: New field.
2259 <user_settable_should_dump_core>: Likewise
2260 (internal_error_problem): Add values for above new fields.
2261 (internal_warning_problem): Likewise.
2262 (demangler_warning_problem): New static global.
2263 (demangler_vwarning): New function.
2264 (demangler_warning): Likewise.
2265 (add_internal_problem_command): Selectively add commands.
2266 (_initialize_utils): New internal problem command.
2267 * maint.c (maintenance_demangler_warning): New function.
2268 (_initialize_maint_cmds): New command.
2270 2014-06-18 Tom Tromey <tromey@redhat.com>
2272 * f-valprint.c (info_common_command_for_block): Update.
2273 * symtab.h (struct general_symbol_info) <common_block>: Now
2276 2014-06-18 Tom Tromey <tromey@redhat.com>
2278 * symtab.h (struct symtab) <blockvector>: Now const.
2279 * ada-lang.c (ada_add_global_exceptions): Update.
2280 * buildsym.c (augment_type_symtab): Update.
2281 * dwarf2read.c (dw2_lookup_symbol): Update.
2282 * jit.c (finalize_symtab): Update.
2283 * jv-lang.c (add_class_symtab_symbol): Update.
2284 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2286 * objfiles.c (objfile_relocate1): Update.
2287 * psymtab.c (lookup_symbol_aux_psymtabs)
2288 (maintenance_check_psymtabs): Update.
2289 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2291 * spu-tdep.c (spu_catch_start): Update.
2292 * symmisc.c (dump_symtab_1): Update.
2293 * symtab.c (lookup_global_symbol_from_objfile)
2294 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2295 (basic_lookup_transparent_type_quick)
2296 (basic_lookup_transparent_type, find_pc_sect_symtab)
2297 (find_pc_sect_line, search_symbols): Update.
2298 * block.c (find_block_in_blockvector): Make "bl" const.
2299 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2301 (blockvector_contains_pc): Make "bv" const.
2302 (block_for_pc_sect): Update.
2303 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2304 (blockvector_contains_pc): Update.
2305 * breakpoint.c (resolve_sal_pc): Update.
2306 * inline-frame.c (block_starting_point_at): Update.
2308 2014-06-18 Tom Tromey <tromey@redhat.com>
2310 * completer.c (complete_line): Make "line_buffer" const.
2311 * completer.h (complete_line): Update.
2313 2014-06-18 Tom Tromey <tromey@redhat.com>
2315 * symtab.c (add_macro_name): Remove unneeded cast.
2317 2014-06-18 Tom Tromey <tromey@redhat.com>
2319 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2320 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2322 2014-06-18 Tom Tromey <tromey@redhat.com>
2324 * probe.c (info_probes_for_ops): Make "arg" const.
2325 * probe.h (info_probes_for_ops): Update.
2327 2014-06-18 Tom Tromey <tromey@redhat.com>
2329 * varobj.c (varobj_create): Update.
2330 * valops.c (value_of_this): Update.
2331 * tracepoint.c (add_local_symbols, scope_info): Update.
2332 * symtab.h (struct general_symbol_info) <block>: Now const.
2333 * symtab.c (skip_prologue_sal)
2334 (default_make_symbol_completion_list_break_on)
2335 (skip_prologue_using_sal): Update.
2336 * stack.h (iterate_over_block_locals)
2337 (iterate_over_block_local_vars): Update.
2338 * stack.c (print_frame_args): Update.
2339 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2341 (get_selected_block): Make return type const.
2342 * python/py-frame.c (frapy_block): Update.
2343 * python/py-block.c (gdbpy_block_for_pc): Update.
2344 * p-exp.y (%union) <bval>: Now const.
2345 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2346 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2347 * m2-exp.y (%union) <bval>: Now const.
2348 * linespec.c (get_current_search_block): Make return type const.
2349 (create_sals_line_offset, find_label_symbols): Update.
2350 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2352 (block_starting_point_at): Make "block" const.
2353 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2354 (check_exception_resume): Update.
2355 * guile/scm-frame.c (gdbscm_frame_block): Update.
2356 * guile/scm-block.c (gdbscm_lookup_block): Update.
2357 * frame.h (get_frame_block): Update.
2358 (get_selected_block): Make return type const.
2359 * frame.c (frame_id_inner): Update.
2360 * f-valprint.c (info_common_command_for_block)
2361 (info_common_command): Update.
2362 * dwarf2loc.c (dwarf2_find_location_expression)
2363 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2364 (locexpr_describe_location_piece): Update.
2365 * c-exp.y (%union) <bval>: Now const.
2366 * breakpoint.c (resolve_sal_pc): Update.
2367 * blockframe.c (get_frame_block):Make return type const.
2368 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2369 (block_innermost_frame): Update.
2370 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2371 (block_for_pc, block_for_pc_sect): Update.
2372 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2374 (block_for_pc_sect, block_for_pc): Make return type const.
2375 * ax-gdb.c (gen_expr): Update.
2376 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2377 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2378 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2379 (ada_read_var_value): Update.
2380 * ada-exp.y (struct name_info) <block>: Now const.
2382 (block_lookup): Constify.
2384 2014-06-18 Gary Benson <gbenson@redhat.com>
2386 * nat/i386-dregs.h: New file.
2387 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2388 * i386-nat.h (i386-dregs.h): New include.
2389 (DR_FIRSTADDR): Now in i386-dregs.h.
2390 (DR_LASTADDR): Likewise.
2391 (DR_NADDR): Likewise.
2392 (DR_STATUS): Likewise.
2393 (DR_CONTROL): Likewise.
2394 (i386_debug_reg_state): Likewise.
2395 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2397 2014-06-18 Don Breazeal <donb@codesourcery.com>
2399 * breakpoint.c (set_longjmp_breakpoint): Call
2400 momentary_breakpoint_from_master with additional argument.
2401 (set_longjmp_breakpoint_for_call_dummy): Call
2402 momentary_breakpoint_from_master with additional argument.
2403 (set_std_terminate_breakpoint): Call
2404 momentary_breakpoint_from_master with additional argument.
2405 (momentary_breakpoint_from_master): Add argument to function
2406 definition and use it to initialize structure member flag.
2407 (clone_momentary_breakpoint): Call
2408 momentary_breakpoint_from_master with additional argument.
2409 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2410 member flags set in momentary_breakpoint_from_master.
2412 2014-06-18 Gary Benson <gbenson@redhat.com>
2414 * i386-nat.c (i386_show_dr): Renamed to
2415 i386_dr_show and made nonstatic. All uses updated.
2416 (i386_length_and_rw_bits): Renamed to
2417 i386_dr_length_and_rw_bits and made nonstatic.
2419 (i386_insert_aligned_watchpoint): Renamed to
2420 i386_dr_insert_aligned_watchpoint and made nonstatic.
2422 (i386_remove_aligned_watchpoint): Renamed to
2423 i386_dr_remove_aligned_watchpoint and made nonstatic.
2425 (i386_update_inferior_debug_regs): Renamed to
2426 i386_dr_update_inferior_debug_regs and made nonstatic.
2429 2014-06-18 Gary Benson <gbenson@redhat.com>
2431 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2432 (i386_dr_low_can_set_control): Likewise.
2433 (i386_dr_low_set_addr): Likewise.
2434 (i386_dr_low_set_control): Likewise.
2435 (i386_dr_low_get_addr): Likewise.
2436 (i386_dr_low_get_status): Likewise.
2437 (i386_dr_low_get_control): Likewise.
2438 (i386_insert_aligned_watchpoint): Use new macros.
2439 (i386_update_inferior_debug_regs): Likewise.
2440 (i386_stopped_data_address): Likewise.
2442 2014-06-18 Gary Benson <gbenson@redhat.com>
2444 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2445 New parameter. All uses updated.
2447 2014-06-18 Gary Benson <gbenson@redhat.com>
2449 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2452 2014-06-18 Gary Benson <gbenson@redhat.com>
2454 * i386-nat.c (debug_printf): New macro.
2455 (i386_get_debug_register_length): Likewise.
2456 (TARGET_HAS_DR_LEN_8): Use above macro.
2457 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2458 and printf_unfiltered. Use phex to format values.
2460 2014-06-18 Gary Benson <gbenson@redhat.com>
2462 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2465 2014-06-18 Gary Benson <gbenson@redhat.com>
2467 * i386-nat.c: Comment changes.
2469 2014-06-18 Gary Benson <gbenson@redhat.com>
2471 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2473 2014-06-18 Gary Benson <gbenson@redhat.com>
2475 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2476 (i386_insert_aligned_watchpoint): Likewise.
2477 (i386_remove_aligned_watchpoint): Likewise.
2478 (i386_handle_nonaligned_watchpoint): Likewise.
2480 2014-06-18 Gary Benson <gbenson@redhat.com>
2482 * i386-nat.c: Whitespace changes.
2484 2014-06-17 Samuel Bronson <naesten@gmail.com>
2486 * MAINTAINERS: Update Roland McGrath's email address.
2487 Thanks to Sergio Durigan Junior for pointing out that he left
2488 Red Hat a while ago, and giving me a current address.
2490 2014-06-17 Tom Tromey <tromey@redhat.com>
2492 * utils.h (savestring): Remove declaration.
2494 2014-06-17 Tom Tromey <tromey@redhat.com>
2496 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2498 2014-06-16 Keith Seitz <keiths@redhat.com>
2501 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2502 to update the varobj if inferior_ptid is null_ptid.
2504 2014-06-16 Tom Tromey <tromey@redhat.com>
2506 * target.h (struct target_ops) <to_info_proc>: Make parameter
2508 (target_info_proc): Update.
2509 * target.c (target_info_proc): Make "args" const.
2510 * procfs.c (procfs_info_proc): Update.
2511 * linux-tdep.c (linux_info_proc): Update.
2512 (linux_core_info_proc_mappings): Make "args" const.
2513 (linux_core_info_proc): Update.
2514 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2515 * gdbarch.c: Rebuild.
2516 * gdbarch.h: Rebuild.
2517 * corelow.c (core_info_proc): Update.
2519 2014-06-16 Tom Tromey <tromey@redhat.com>
2521 * target.h (struct target_ops) <to_disconnect>: Make parameter
2523 (target_disconnect): Update.
2524 * target.c (target_disconnect): Make "args" const.
2525 * target-delegates.c: Rebuild.
2526 * remote.c (remote_disconnect): Update.
2527 * record.h (record_disconnect): Update.
2528 * record.c (record_disconnect): Update.
2529 * inf-child.c (inf_child_disconnect): Update.
2531 2014-06-16 Tom Tromey <tromey@redhat.com>
2533 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2534 * target.c (debug_to_rcmd, default_rcmd): Update.
2535 * target-delegates.c: Rebuild.
2536 * remote.c (remote_rcmd): Update.
2537 * monitor.c (monitor_rcmd): Update.
2539 2014-06-16 Pedro Alves <palves@redhat.com>
2541 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2542 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2543 have OBJF_SHARED set.
2544 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2545 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2546 instead of OBJF_USERLOADED.
2547 * objfiles.h (OBJF_SHARED): Update comment.
2548 (userloaded_objfile_contains_address_p): Rename to ...
2549 (shared_objfile_contains_address_p): ... this, and update
2551 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2553 (remove_symbol_file_command): Skip objfiles that don't have
2556 2014-06-16 Tom Tromey <tromey@redhat.com>
2558 * minsyms.h (prim_record_minimal_symbol)
2559 (prim_record_minimal_symbol_and_info): Update comments.
2561 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2563 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2564 or --without-guile, according to how GDB was built.
2566 2014-06-13 Tom Tromey <tromey@redhat.com>
2568 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2570 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2572 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2574 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2575 help_list.Pass all_commands, not -1, to help_list.
2576 * cli/cli-dump.c (dump_command, append_command)
2577 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2578 (binary_dump_command, binary_append_command): Pass all_commands,
2579 not -1, to help_list.
2580 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2582 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2584 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2586 * top.c (set_history): Pass all_commands, not -1, to help_list.
2587 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2588 all_commands, not -1, to help_list.
2589 * symfile.c (overlay_command): Pass all_commands, not -1, to
2591 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2593 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2595 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2597 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2598 not -1, to help_list.
2599 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2600 not -1, to help_list.
2601 * maint.c (maintenance_command, maintenance_info_command)
2602 (maintenance_print_command, maintenance_set_cmd): Pass
2603 all_commands, not -1, to help_list.
2604 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2606 * language.c (set_check): Pass all_commands, not -1, to help_list.
2607 * infcmd.c (unset_command): Pass all_commands, not -1, to
2609 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2611 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2613 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2615 * breakpoint.c (save_command): Pass all_commands, not -1, to
2617 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2618 all_commands, not -1, to help_list.
2620 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2622 * regcache.c (struct register_to_invalidate): New structure.
2623 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2625 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2627 2014-06-12 Yao Qi <yao@codesourcery.com>
2629 * varobj.c (varobj_get_num_children): Call
2630 varobj_is_dynamic_p.
2631 (varobj_list_children): Likewise.
2632 (varobj_update): Likewise. Update comments.
2634 2014-06-12 Yao Qi <yao@codesourcery.com>
2636 * varobj.c (varobj_pretty_printed_p): Rename to ...
2637 (varobj_is_dynamic_p): ... this. New function.
2638 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2639 (varobj_is_dynamic_p): Declare.
2640 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2641 (mi_print_value_p, varobj_update_one): Likewise.
2643 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2644 Yao Qi <yao@codesourcery.com>
2646 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2647 (varobj_get_iterator): Wrap up code for pretty-printer by
2648 "#if HAVE_PYTHON" and "#endif".
2649 (update_dynamic_varobj_children): Likewise.
2651 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2652 Yao Qi <yao@codesourcery.com>
2654 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2655 gdb_python_initialized is false. Move some code from varobj.c.
2656 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2657 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2658 (struct varobj_item): Moved to varobj-iter.h".
2659 (varobj_clear_saved_item): New function.
2660 (update_dynamic_varobj_children): Move python-related code to
2662 (free_variable): Call varobj_clear_saved_item and
2665 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2666 Yao Qi <yao@codesourcery.com>
2668 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2669 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2670 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2671 (py-varobj.o): New rule.
2672 * python/py-varobj.c: New file.
2673 * python/python-internal.h (py_varobj_get_iterator): Declare.
2674 * varobj-iter.h: New file.
2675 * varobj.c: Include "varobj-iter.h"
2676 (struct varobj) <child_iter>: Change its type from "PyObject *"
2677 to "struct varobj_iter *".
2678 <saved_item>: Likewise.
2679 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2680 [HAVE_PYTHON] (varobj_get_iterator): New function.
2681 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2682 python-specific code to python/py-varobj.c.
2683 (install_visualizer): Call varobj_iter_delete instead of
2685 * varobj.h (varobj_ensure_python_env): Declare.
2687 2014-06-12 Yao Qi <yao@codesourcery.com>
2689 * varobj.c (struct varobj_item): New structure.
2690 (create_child_with_value): Update declaration.
2691 (varobj_add_child): Replace arguments 'name' and 'value' with
2692 'item'. All callers updated.
2693 (install_dynamic_child): Likewise.
2694 (update_dynamic_varobj_children): Likewise.
2695 (varobj_add_child): Likewise.
2696 (create_child_with_value): Likewise.
2698 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2700 * NEWS: Create a new section for the next release branch.
2701 Rename the section of the current branch, now that it has
2704 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2706 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2707 * version.in: Bump version to 7.8.50.DATE-cvs.
2709 2014-06-11 Pedro Alves <palves@redhat.com>
2712 * ser-mingw.c (net_windows_socket_check_pending): New function.
2713 (net_windows_select_thread): Ignore spurious wakeups. Use
2714 net_windows_socket_check_pending.
2715 (net_windows_wait_handle): Check for pending events with
2716 ioctlsocket, through net_windows_socket_check_pending, instead of
2717 checking the socket's event.
2719 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2721 * python/python-internal.h (gdb_PyObject_GetAttrString)
2722 (gdb_PyObject_HasAttrString): New inline function definitions.
2723 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2724 char * of the second argument to PyObject_GetAttrString.
2726 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2728 * serial.c (serial_write): Fix index of character to be printed
2729 in call to serial_logchar when serial debug traces are enabled.
2731 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2733 * gdbtypes (resolve_dynamic_range): Add function description.
2735 2014-06-09 Pedro Alves <palves@redhat.com>
2737 * linux-nat.c (linux_child_follow_fork): Initialize status with
2738 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2739 inner block. Only pass the signal to PTRACE_DETACH if in pass
2742 2014-06-09 Gary Benson <gbenson@redhat.com>
2744 * common/signals.c (gdb_signal_from_host): Reorder to separate
2745 the always-available ANSI-standard signals from the signals that
2747 (do_gdb_signal_to_host): Likewise.
2748 * proc-events.c (signal_table): Likewise.
2750 2014-06-08 Hui Zhu <hui@codesourcery.com>
2752 * common/linux-ptrace.c (linux_disable_event_reporting): New
2754 * common/linux-ptrace.h (linux_disable_event_reporting): New
2756 * linux-nat.c (linux_child_follow_fork): Do a single step before
2759 2014-06-07 Keith Seitz <keiths@redhat.com>
2763 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2764 from symbol_matches_domain in symtab.c. All local callers
2765 of symbol_matches_domain updated.
2766 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2767 search STRUCT_DOMAIN.
2768 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2769 independently. standard_lookup will do that automatically.
2770 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2771 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2772 (cp_lookup_symbol_in_namespace): Likewise.
2773 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2774 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2775 may return a STRUCT_DOMAIN match.
2776 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2777 * cp-support.c: Include language.h.
2778 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2780 * psymtab.c (match_partial_symbol): Compare the requested
2781 domain with the symbol's domain directly.
2782 (lookup_partial_symbol): Likewise.
2783 * symtab.c (lookup_symbol_in_language): Explain when/why
2784 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2785 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2786 appropriate languages.
2787 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2788 and moved to ada-lang.c
2789 (lookup_block_symbol): Explain that this function only returns
2790 symbol matching the requested DOMAIN.
2791 Compare the requested domain with the symbol's domain directly.
2792 (iterate_over_symbols): Compare the requested domain with the
2793 symbol's domain directly.
2794 * symtab.h (symbol_matches_domain): Remove.
2796 2014-06-06 Doug Evans <xdje42@gmail.com>
2798 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2799 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2800 (gdbscm_guile_version_is_at_least): Declare.
2801 (gdbscm_scm_string_to_int): Declare.
2802 * guile/guile.c (gdbscm_guile_major_version): New global.
2803 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2804 (guile_datadir): New static global.
2805 (gdbscm_guile_data_directory): New function.
2806 (initialize_scheme_side): Update.
2807 (misc_guile_functions): Add guile-data-directory.
2808 (initialize_gdb_module): Fetch guile version number.
2809 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2810 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2811 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2812 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2814 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2815 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2816 * guile/scm-value.c (gdbscm_value_to_string): Only call
2817 scm_port_conversion_strategy if Guile version >= 2.0.6.
2819 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2821 * main.c (print_gdb_help): Add -q and --silent.
2823 2014-06-06 Gary Benson <gbenson@redhat.com>
2825 * common/signals.c: Remove preprocessor conditionals for
2826 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2827 SIGSEGV and SIGTERM.
2828 * proc-events.c: Likewise.
2830 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2832 * symfile.c (symfile_free_objfile): Remove restriction to
2834 * symfile-mem.c (symbol_file_add_from_memory): Call
2835 add_target_sections_of_objfile.
2837 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2839 * guile/scm-value.c (gdbscm_history_append_x): Use
2840 'vlscm_get_value_smob_arg_unsafe' instead of
2841 'vlscm_scm_to_value'.
2843 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2846 * utils.c (printchar): Don't escape at all if quoter is NUL.
2847 Update function documentation to clarify effect of parameter
2849 * remote.c (escape_buffer): Pass '\\' as the quoter to
2850 fputstrn_unfiltered.
2851 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2852 generate the output.
2853 (mi_solib_unloaded): Same.
2855 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2857 * development.sh: Delete.
2858 * Makefile.in (config.status): Adjust dependency on development.sh.
2859 * configure.ac: Adjust development.sh source call.
2860 * configure: Regenerate.
2862 2014-06-04 Doug Evans <xdje42@gmail.com>
2864 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2865 is_scheme_bkpt, spec.
2866 (bpscm_make_breakpoint_smob): Initialize new members.
2867 (gdbscm_create_breakpoint_x): Split into two ...
2868 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2869 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2870 (scheme_function breakpoint_functions): Update.
2871 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2872 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2873 register-breakpoint!.
2875 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2878 * mem-break.c (z_type_supported): Return zero if
2879 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2881 2014-06-04 Tom Tromey <tromey@redhat.com>
2883 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2884 value_from_contents_and_address_unresolved.
2885 (ada_template_to_fixed_record_type_1): Likewise.
2886 (ada_which_variant_applies): Likewise.
2887 * value.h (value_from_contents_and_address_unresolved): Declare.
2888 * value.c (value_from_contents_and_address_unresolved): New
2890 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2891 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2892 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2894 2014-06-04 Tom Tromey <tromey@redhat.com>
2896 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2898 2014-06-04 Tom Tromey <tromey@redhat.com>
2900 * procfs.c (procfs_attach): Make "args" const.
2901 * windows-nat.c (windows_attach): Make "args" const.
2902 * nto-procfs.c (procfs_attach): Make "args" const.
2903 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2904 * go32-nat.c (go32_attach): Make "args" const.
2905 * gnu-nat.c (gnu_attach): Make "args" const.
2906 * darwin-nat.c (darwin_attach): Make "args" const.
2907 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2908 * linux-nat.c (linux_nat_attach): Make "args" const.
2909 * remote.c (extended_remote_attach_1, extended_remote_attach):
2911 * target.h (struct target_ops) <to_attach>: Make "args" const.
2912 (find_default_attach): Likewise.
2913 * utils.c (parse_pid_to_attach): Make "args" const.
2914 * utils.h (parse_pid_to_attach): Update.
2916 2014-06-04 Tom Tromey <tromey@redhat.com>
2918 * target-delegates.c: Rebuild.
2919 * target.c (default_thread_address_space): New function.
2920 (target_thread_address_space): Simplify.
2921 * target.h (struct target_ops) <to_thread_address_space>: Add
2922 TARGET_DEFAULT_FUNC.
2924 2014-06-04 Doug Evans <xdje42@gmail.com>
2926 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2928 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2930 * record-btrace.c: Include event-loop.h and inf-loop.h.
2931 (record_btrace_resume_exec_dir)
2932 (record_btrace_async_inferior_event_handler)
2933 (record_btrace_handle_async_inferior_event): New.
2934 (record_btrace_open): Create async event handler.
2935 (record_btrace_close): Delete async event handler.
2936 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2937 Mark async event handler.
2938 (record_btrace_execution_direction): New.
2939 (init_record_btrace_ops): Initialize to_execution_direction.
2941 2014-06-03 Doug Evans <xdje42@gmail.com>
2943 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2944 (gdbscm_make_parameter): Ditto.
2946 2014-06-03 Doug Evans <dje@google.com>
2948 * exec.c (exec_close_1): Call clear_section_table instead of
2949 resize_section_table.
2950 (clear_section_table): New function.
2951 (resize_section_table): Make static. Rename arg num_added to
2953 * exec.h (clear_section_table): Declare.
2954 (resize_section_table): Delete.
2955 * progspace.c (release_program_space): Call clear_section_table
2956 instead of resize_section_table.
2958 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2960 * NEWS (Python Scripting): Add entry about the new xmethods
2963 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2965 * python/py-xmethods.c: New file.
2966 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2967 (objfpy_dealloc): XDECREF on the new xmethods field.
2968 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2970 (objfpy_get_xmethods): New function.
2971 (objfile_getset): New entry 'xmethods'.
2972 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2973 (pspy_dealloc): XDECREF on the new xmethods field.
2974 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2976 (pspy_get_xmethods): New function.
2977 (pspace_getset): New entry 'xmethods'.
2978 * python/python-internal.h: Add declarations for new functions.
2979 * python/python.c (_initialize_python): Invoke
2980 gdbpy_initialize_xmethods.
2981 * python/lib/gdb/__init__.py (xmethods): New
2983 * python/lib/gdb/xmethod.py: New file.
2984 * python/lib/gdb/command/xmethods.py: New file.
2986 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2988 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2989 best match method returned by find_overload_match is an xmethod.
2990 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2991 the best matching operator returned by find_overload_match is an
2993 * valops.c: #include "extension.h".
2994 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2995 Return void. The list of matching source methods is returned in
2996 "fn_list" and a vector of matching debug method workers is
2997 returned in "xm_worker_vec". Update all callers.
2998 (value_find_oload_method_list): Likewise.
2999 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3000 non-NULL, then the index of the best matching method in this
3001 vector is returned. Update all callers.
3002 (find_overload_match): Include xmethods while performing overload
3005 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3007 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3008 * extension-priv.h (struct extension_language_ops): Add the
3010 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3011 get_matching_xmethod_workers, get_xmethod_argtypes,
3012 invoke_xmethod, free_xmethod_worker,
3013 free_xmethod_worker_vec): New functions.
3014 * extension.h: #include "common/vec.h".
3015 New function declarations.
3016 (struct xmethod_worker): New struct.
3017 (VEC (xmethod_worker_ptr)): New vector type.
3018 (xmethod_worker_ptr): New typedef.
3019 (xmethod_worker_vec): Likewise.
3020 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3022 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3023 (struct builtin_type): New field "xmethod".
3024 * valarith.c (value_ptradd): Assert that the value argument is not
3026 * valops.c (value_must_coerce_to_target): Return 0 for
3027 lval_xcallable values.
3028 * value.c (struct value): New field XM_WORKER in the field
3030 (value_address, value_raw_address): Return 0 for lval_xcallable
3032 (set_value_address): Assert that the value is not an
3034 (value_free): Free the associated xmethod worker when freeing
3035 lval_xcallable values.
3036 (set_value_component_location): Assert that the WHOLE value is not
3038 (value_of_xmethod, call_xmethod): New functions.
3039 * value.h: Declare "struct xmethod_worker".
3040 Declare new functions value_of_xmethod, call_xmethod.
3042 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3043 Pedro Alves <palves@redhat.com>
3045 PR breakpoints/17000
3046 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3047 New function, extracted from software_breakpoint_inserted_here_p.
3048 (software_breakpoint_inserted_here_p): Replace factored out code
3049 by call to find_non_raw_software_breakpoint_inserted_here.
3050 (bp_target_info_copy_insertion_state): New function.
3051 (bkpt_insert_location): Handle the case of a single-step
3052 breakpoint already inserted at the same address.
3053 (bkpt_remove_location): Handle the case of a single-step
3054 breakpoint still inserted at the same address.
3055 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3056 breakpoint already inserted at the same address.
3057 (deprecated_remove_raw_breakpoint): Handle the case of a
3058 non-raw breakpoint still inserted at the same address.
3059 (find_single_step_breakpoint): New function, extracted from
3060 single_step_breakpoint_inserted_here_p.
3061 (find_single_step_breakpoint): New function,
3062 factored out from single_step_breakpoint_inserted_here_p.
3063 (single_step_breakpoint_inserted_here_p): Reimplement.
3065 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3067 Pushed by Joel Brobecker <brobecker@adacore.com>
3068 * source.c (show_substitute_path_command): Fix display of matching
3071 2014-06-03 Gary Benson <gbenson@redhat.com>
3073 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3075 2014-06-02 Doug Evans <xdje42@gmail.com>
3077 Add parameter support for Guile.
3078 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3079 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3080 (scm-param.o): New rule.
3081 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3082 (gdbscm_misc_error): Declare.
3083 (gdbscm_canonicalize_command_name): Declare.
3084 (gdbscm_scm_to_host_string): Declare.
3085 (gdbscm_scm_from_host_string): Declare.
3086 (gdbscm_initialize_parameters): Declare.
3087 * guile/guile.c (initialize_gdb_module): Call
3088 gdbscm_initialize_parameters.
3089 * guile/lib/gdb.scm: Export parameter symbols.
3090 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3091 cmdscm_canonicalize_name and made public. All callers updated.
3092 * guile/scm-exception.c (gdbscm_misc_error): New function.
3093 * guile/scm-param.c: New file.
3094 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3095 (gdbscm_scm_to_host_string): New function.
3096 (gdbscm_scm_from_host_string): New function.
3097 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3099 2014-06-02 Doug Evans <xdje42@gmail.com>
3101 Add command support for Guile.
3102 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3103 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3104 (scm-cmd.o): New rule.
3105 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3106 (gdbscm_user_error_p): Declare.
3107 (gdbscm_parse_command_name): Declare.
3108 (gdbscm_valid_command_class_p): Declare.
3109 (gdbscm_initialize_commands): Declare.
3110 * guile/guile.c (initialize_gdb_module): Call
3111 gdbscm_initialize_commands.
3112 * guile/lib/gdb.scm: Export command symbols.
3113 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3114 (throw-user-error): New function.
3115 * guile/scm-cmd.c: New file.
3116 * guile/scm-exception.c (user_error_symbol): New static global.
3117 (gdbscm_user_error_p): New function.
3118 (gdbscm_initialize_exceptions): Set user_error_symbol.
3119 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3121 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3123 * top.c (command_loop): Handle comments here...
3124 (command_line_input): ... not here.
3126 2014-06-02 Doug Evans <xdje42@gmail.com>
3128 Add progspace support for Guile.
3129 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3130 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3131 (scm-progspace.o): New rule.
3132 * guile/guile-internal.h (pspace_smob): New typedef.
3133 (psscm_pspace_smob_pretty_printers): Declare.
3134 (psscm_pspace_smob_from_pspace): Declare.
3135 (psscm_scm_from_pspace): Declare.
3136 * guile/guile.c (initialize_gdb_module): Call
3137 gdbscm_initialize_pspaces.
3138 * guile/lib/gdb.scm: Export progspace symbols.
3139 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3141 (append-pretty-printer!): Ditto.
3142 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3144 * guile/scm-progspace.c: New file.
3146 2014-06-03 Alan Modra <amodra@gmail.com>
3148 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3149 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3151 2014-06-02 Doug Evans <dje@google.com>
3153 Add support for skeletonless type units.
3154 * dwarf2read.c (struct dwarf2_per_objfile): New member
3155 n_allocated_type_units.
3156 (struct dwarf2_per_objfile) <tu_stats>: New member
3157 nr_all_type_units_reallocs.
3158 (create_signatured_type_table_from_index): Initialize
3159 n_allocated_type_units
3160 (create_all_type_units): Ditto.
3161 (add_type_unit): Move up in file. New arg slot.
3162 All callers updated. Increase space for all_type_units more
3164 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3165 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3166 (lookup_dwp_signatured_type): Ditto.
3167 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3168 All callers updated.
3169 (build_type_psymtabs_1): Leave type_unit_groups as
3170 NULL if no TUs present.
3171 (print_tu_stats): New function.
3172 (process_skeletonless_type_unit): New function.
3173 (process_dwo_file_for_skeletonless_type_units): New
3175 (process_skeletonless_type_units): New function.
3176 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3177 Call print tu_stats if debugging enabled.
3179 2014-06-02 Pedro Alves <palves@redhat.com>
3181 * breakpoint.c (build_target_command_list): Don't build a command
3182 list if we have any duplicate location that isn't a dprintf.
3184 2014-06-02 Pedro Alves <palves@redhat.com>
3186 * breakpoint.c (dprintf_breakpoint_hit): New function.
3187 (initialize_breakpoint_ops): Install it as dprintf's
3188 breakpoint_hit method.
3190 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3192 * source.c (substitute_path_rule_matches): Simplify using
3193 filename_ncmp instead of FILENAME_CMP.
3195 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3197 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3199 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3201 * configure.ac: When Guile is available, check for the
3202 availability of 'scm_new_smob'.
3203 * configure, config.h.in: Regenerate.
3204 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3207 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3209 * frame.c (struct frame_info): Add stop_string field.
3210 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3211 (get_prev_frame_always): Old content moved into
3212 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3213 TRY_CATCH, handle MEMORY_ERROR exceptions.
3214 (frame_stop_reason_string): New function definition.
3215 * frame.h (unwind_stop_reason_to_string): Extend comment to
3216 mention frame_stop_reason_string.
3217 (frame_stop_reason_string): New function declaration.
3218 * stack.c (frame_info): Switch to frame_stop_reason_string.
3219 (backtrace_command_1): Switch to frame_stop_reason_string.
3220 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3221 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3222 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3224 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3226 * frame.c (frame_stop_reason_string): Rename to ...
3227 (unwind_stop_reason_to_string): this.
3228 * frame.h (frame_stop_reason_string): Rename to ...
3229 (unwind_stop_reason_to_string): this.
3230 * stack.c (frame_info): Update call to frame_stop_reason_string.
3231 (backtrace_command_1): Likewise.
3232 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3233 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3235 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3237 * frame.c (remove_prev_frame): New function.
3238 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3241 2014-05-29 Pedro Alves <palves@redhat.com>
3243 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3244 and make it const. When a single-step decays to a continue,
3245 clear 'step', not 'hw_step'. Pass whether the caller wanted
3246 to step to user_visible_resume_ptid, not what we ask the
3249 2014-05-29 Pedro Alves <palves@redhat.com>
3251 * infrun.c (process_event_stop_test, handle_step_into_function)
3252 (handle_step_into_function_backward): Adjust.
3253 Don't set the even thread's stop_step and call stop_waiting before
3254 calling end_stepping_range. Instead do that ...
3255 (end_stepping_range): ... here. Take an ecs pointer parameter.
3257 2014-05-29 Pedro Alves <palves@redhat.com>
3259 * infrun.c (stop_stepping): Rename to ...
3260 (stop_waiting): ... this.
3261 (proceed): Update comment.
3262 (process_event_stop_test, handle_inferior_event)
3263 (handle_signal_stop, handle_step_into_function)
3264 (handle_step_into_function_backward): Update.
3266 2014-05-29 Pedro Alves <palves@redhat.com>
3268 * infcall.c (run_inferior_call): Don't check whether the current
3269 thread is running after the proceed call.
3271 2014-05-29 Pedro Alves <palves@redhat.com>
3272 Tom Tromey <tromey@redhat.com>
3274 * NEWS: Mention "maint set target-async", "set mi-async", and that
3275 background execution commands are now always available.
3276 * target.h (target_async_permitted): Update comment.
3277 * target.c (target_async_permitted, target_async_permitted_1):
3279 (set_target_async_command): Rename to ...
3280 (maint_set_target_async_command): ... this.
3281 (show_target_async_command): Rename to ...
3282 (maint_show_target_async_command): ... this.
3283 (_initialize_target): Adjust.
3284 * infcmd.c (prepare_execution_command): Make extern.
3285 * inferior.h (prepare_execution_command): Declare.
3286 * infrun.c (set_observer_mode): Leave target async alone.
3287 * mi/mi-interp.c (mi_interpreter_init): Install
3288 mi_on_sync_execution_done as sync_execution_done observer.
3289 (mi_on_sync_execution_done): New function.
3290 (mi_execute_command_input_handler): Don't print the prompt if we
3291 just started a synchronous command with an async target.
3292 (mi_on_resume): Check sync_execution before printing prompt.
3293 * mi/mi-main.h (mi_async_p): Declare.
3294 * mi/mi-main.c: Include gdbcmd.h.
3295 (mi_async_p): New function.
3296 (mi_async, mi_async_1): New globals.
3297 (set_mi_async_command, show_mi_async_command, mi_async): New
3299 (exec_continue): Call prepare_execution_command.
3300 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3301 (mi_execute_async_cli_command): Use mi_async_p.
3302 (_initialize_mi_main): Install "set mi-async". Make
3303 "target-async" a deprecated alias.
3305 2014-05-29 Pedro Alves <palves@redhat.com>
3307 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3308 (_initialize_cli_interp): Adjust.
3309 * event-loop.c: Include "observer.h".
3310 (start_event_loop): Notify 'command_error' observers instead of
3311 calling display_gdb_prompt. Remove FIXME comment.
3312 * event-top.c (display_gdb_prompt): Remove call into the
3314 * inf-loop.c: Include "observer.h".
3315 (inferior_event_handler): Notify 'command_error' observers instead
3316 of calling display_gdb_prompt.
3317 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3318 observers instead of calling display_gdb_prompt.
3319 * interps.c (interp_set): Don't call display_gdb_prompt.
3320 (current_interp_display_prompt_p): Delete.
3321 * interps.h (interp_prompt_p): Delete declaration.
3322 (interp_prompt_p_ftype): Delete.
3323 (struct interp_procs) <prompt_proc_p>: Delete field.
3324 (current_interp_display_prompt_p): Delete declaration.
3325 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3326 (_initialize_mi_interp): Adjust.
3327 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3328 'command_error' observers.
3329 (tui_on_sync_execution_done, tui_on_command_error): New
3331 (tui_display_prompt_p): Delete.
3332 (_initialize_tui_interp): Adjust.
3334 2014-05-29 Pedro Alves <palves@redhat.com>
3337 * cli/cli-interp.c: Include infrun.h and observer.h.
3338 (cli_uiout, cli_interp): New globals.
3339 (cli_on_signal_received, cli_on_end_stepping_range)
3340 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3342 (cli_interpreter_init): Install them as 'end_stepping_range',
3343 'signal_received' 'signal_exited', 'exited' and 'no_history'
3345 (_initialize_cli_interp): Remove cli_interp local.
3346 * infrun.c (handle_inferior_event): Call the several stop reason
3347 observers instead of printing the stop reason directly.
3348 (end_stepping_range): New function.
3349 (print_end_stepping_range_reason, print_signal_exited_reason)
3350 (print_exited_reason, print_signal_received_reason)
3351 (print_no_history_reason): Make static, and add an uiout
3352 parameter. Print to that instead of to CURRENT_UIOUT.
3353 * infrun.h (print_end_stepping_range_reason)
3354 (print_signal_exited_reason, print_exited_reason)
3355 (print_signal_received_reason print_no_history_reason): New
3357 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3359 <cli_uiout>: New field.
3360 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3361 uiout for CLI output. Install 'signal_received',
3362 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3364 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3365 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3366 (mi_on_no_history): New functions.
3367 (ui_out_free_cleanup): Delete function.
3368 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3369 instead use the one already stored in the MI interpreter data.
3370 (mi_ui_out): Adjust.
3371 * tui/tui-interp.c: Include infrun.h and observer.h.
3372 (tui_interp): New global.
3373 (tui_on_signal_received, tui_on_end_stepping_range)
3374 (tui_on_signal_exited, tui_on_exited)
3375 (tui_on_no_history): New functions.
3376 (tui_init): Install them as 'end_stepping_range',
3377 'signal_received' 'signal_exited', 'exited' and 'no_history'
3379 (_initialize_tui_interp): Delete tui_interp local.
3381 2014-05-29 Pedro Alves <palves@redhat.com>
3384 * linux-nat.c (linux_nat_resume_callback): Rename the second
3385 parameter to 'except'. Skip LP if it points to EXCEPT.
3386 (linux_nat_resume): Don't mark the event lwp as not stopped
3387 before resuming sibling lwps. Instead ask
3388 linux_nat_resume_callback to skip the event lwp. Mark it as not
3389 stopped after actually resuming it.
3390 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3392 (wait_lwp): Mark the lwp as stopped here.
3393 (stop_wait_callback): Mark the lwp as not stopped right after
3394 resuming it. Don't mark lwps as stopped here.
3395 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3396 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3398 2014-05-29 Pedro Alves <palves@redhat.com>
3401 * infrun.c (resume): Determine how much to resume depending on
3402 whether the caller wanted a step, not whether we can hardware step
3403 the target. Mark all threads that we intend to run as running,
3404 unless we're calling an inferior function.
3405 (normal_stop): If the thread is running an infcall, don't finish
3407 * target.c (target_resume): Don't mark threads as running here.
3409 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3411 * serial.c (_initialize_serial): Remove support for
3412 the "set remotebaud" and "show remotebaud" commands.
3413 * NEWS: Add entry documenting the removal of that command.
3415 2014-05-28 Yao Qi <yao@codesourcery.com>
3417 * charset.c: Fix typo in comments.
3419 2014-05-27 Gary Benson <gbenson@redhat.com>
3421 * utils.c (internal_vproblem): Prompt for a bug report.
3423 2014-05-26 Andy Wingo <wingo@igalia.com>
3425 * guile/scm-arch.c (arscm_mark_arch_smob):
3426 * guile/scm-block.c (bkscm_mark_block_smob)
3427 (bkscm_mark_block_syms_progress_smob):
3428 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3429 * guile/scm-exception.c (exscm_mark_exception_smob):
3430 * guile/scm-frame.c (frscm_mark_frame_smob):
3431 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3432 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3433 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3434 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3435 (ppscm_mark_pretty_printer_worker_smob):
3436 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3437 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3438 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3439 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3441 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3444 2014-05-26 Andy Wingo <wingo@igalia.com>
3445 Doug Evans <xdje42@gmail.com>
3447 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3448 empty_base_class. All uses updated.
3449 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3450 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3452 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3453 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3454 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3455 (gdbscm_gsmob_has_property_p, add_property_name)
3456 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3457 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3458 (gdb-object-has-property?, gdb-object-properties): Remove.
3459 (gdb-object-kind): Renamed from gsmob-kind.
3461 2014-05-26 Andy Wingo <wingo@igalia.com>
3463 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3464 * configure: Regenerate.
3466 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3468 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3470 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3472 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3473 (replay_memory_access_read_only, replay_memory_access_read_write)
3474 (replay_memory_access_types, replay_memory_access)
3475 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3476 (cmd_set_record_btrace, cmd_show_record_btrace)
3477 (cmd_show_replay_memory_access): New.
3478 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3479 (record_btrace_remove_breakpoint): Replace
3480 record_btrace_allow_memory_access with replay_memory_access.
3481 (_initialize_record_btrace): Add commands.
3482 * NEWS: Announce it.
3484 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3486 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3488 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3490 * MAINTAINERS (Write After Approval): Move self back from
3493 2014-05-22 Pedro Alves <palves@redhat.com>
3495 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3496 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3497 (disable_randomization, enum exec_direction_kind)
3498 (execution_direction, stop_registers, start_remote)
3499 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3500 (wait_for_inferior, normal_stop, get_last_target_status)
3501 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3502 (insert_step_resume_breakpoint_at_sal)
3503 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3504 (set_step_info, print_stop_event, signal_stop_state)
3505 (signal_print_state, signal_pass_state, signal_stop_update)
3506 (signal_print_update, signal_pass_update)
3507 (update_signals_program_target, clear_exit_convenience_vars)
3508 (displaced_step_dump_bytes, update_observer_mode)
3509 (signal_catch_update, gdb_signal_from_command): Move
3511 * infrun.h: ... to this new file.
3512 * amd64-tdep.c: Include infrun.h.
3513 * annotate.c: Include infrun.h.
3514 * arch-utils.c: Include infrun.h.
3515 * arm-linux-tdep.c: Include infrun.h.
3516 * arm-tdep.c: Include infrun.h.
3517 * break-catch-sig.c: Include infrun.h.
3518 * breakpoint.c: Include infrun.h.
3519 * common/agent.c: Include infrun.h instead of inferior.h.
3520 * corelow.c: Include infrun.h.
3521 * event-top.c: Include infrun.h.
3522 * go32-nat.c: Include infrun.h.
3523 * i386-tdep.c: Include infrun.h.
3524 * inf-loop.c: Include infrun.h.
3525 * infcall.c: Include infrun.h.
3526 * infcmd.c: Include infrun.h.
3527 * infrun.c: Include infrun.h.
3528 * linux-fork.c: Include infrun.h.
3529 * linux-nat.c: Include infrun.h.
3530 * linux-thread-db.c: Include infrun.h.
3531 * monitor.c: Include infrun.h.
3532 * nto-tdep.c: Include infrun.h.
3533 * procfs.c: Include infrun.h.
3534 * record-btrace.c: Include infrun.h.
3535 * record-full.c: Include infrun.h.
3536 * remote-m32r-sdi.c: Include infrun.h.
3537 * remote-mips.c: Include infrun.h.
3538 * remote-notif.c: Include infrun.h.
3539 * remote-sim.c: Include infrun.h.
3540 * remote.c: Include infrun.h.
3541 * reverse.c: Include infrun.h.
3542 * rs6000-tdep.c: Include infrun.h.
3543 * s390-linux-tdep.c: Include infrun.h.
3544 * solib-irix.c: Include infrun.h.
3545 * solib-osf.c: Include infrun.h.
3546 * solib-svr4.c: Include infrun.h.
3547 * target.c: Include infrun.h.
3548 * top.c: Include infrun.h.
3549 * windows-nat.c: Include infrun.h.
3550 * mi/mi-interp.c: Include infrun.h.
3551 * mi/mi-main.c: Include infrun.h.
3552 * python/py-threadevent.c: Include infrun.h.
3554 2014-05-22 Pedro Alves <palves@redhat.com>
3556 * infrun.c (handle_inferior_event): Store the exit code for
3557 --return-child-result here, instead of ...
3558 (print_exited_reason): ... here.
3560 2014-05-21 Pedro Alves <palves@redhat.com>
3563 * gdbthread.h (struct thread_control_state): New field
3565 * infrun.c (follow_fork): Copy the new thread control field to the
3567 (clear_proceed_status_thread): Clear the new thread control field.
3568 (proceed): Set the new thread control field.
3569 * interps.h (command_interp): Declare.
3570 * interps.c (command_interpreter): New global.
3571 (command_interp): New function.
3572 (interp_exec): Set `command_interpreter' while here.
3573 * cli-out.c (cli_uiout_dtor): New function.
3574 (cli_ui_out_impl): Install it.
3575 * mi/mi-interp.c: Include cli-out.h.
3576 (mi_cmd_interpreter_exec): Add comment.
3577 (restore_current_uiout_cleanup): New function.
3578 (ui_out_free_cleanup): New function.
3579 (mi_on_normal_stop): If finishing an execution command started by
3580 a CLI command, or any kind of breakpoint-like event triggered,
3581 print the stop event to the output (CLI) stream.
3582 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3584 2014-05-21 Pedro Alves <palves@redhat.com>
3586 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3587 current source line having changed.
3588 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3589 * infrun.c (normal_stop): Adjust call to
3590 set_current_sal_from_frame.
3591 * source.c (clear_lines_listed_range): New function.
3592 (set_current_source_symtab_and_line, identify_source_line): Clear
3593 the lines listed range.
3594 (line_info): Handle the first "info line" after the current source
3595 line having changed.
3596 * stack.c (print_stack_frame): Remove center handling.
3597 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3600 2014-05-21 Pedro Alves <palves@redhat.com>
3602 * inf-child.c (inf_child_mourn_inferior): New function.
3603 * inf-child.h (inf_child_mourn_inferior): New declaration.
3604 * darwin-nat.c (darwin_mourn_inferior): Use
3605 inf_child_mourn_inferior.
3606 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3607 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3608 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3609 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3610 * windows-nat.c (windows_mourn_inferior): Likewise.
3612 2014-05-21 Doug Evans <xdje42@gmail.com>
3614 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3616 2014-05-21 Doug Evans <xdje42@gmail.com>
3618 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3619 (gdbscm_out_of_range_error): Ditto.
3620 (gdbscm_memory_error): Ditto.
3621 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3622 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3623 (gdbscm_out_of_range_error): Update.
3624 (gdbscm_memory_error): Update.
3625 (gdbscm_scm_to_target_string_unsafe): Delete.
3627 2014-05-21 Pedro Alves <palves@redhat.com>
3629 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3631 (inf_child_open_target): New function.
3632 (inf_child_open): Use inf_child_open_target to push the target
3633 instead of erroring out.
3634 (inf_child_disconnect, inf_child_close)
3635 (inf_child_maybe_unpush_target): New functions.
3636 (inf_child_target): Install inf_child_disconnect and
3637 inf_child_close. Store a pointer to the returned object.
3638 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3640 * target.c (auto_connect_native_target): New global.
3641 (show_default_run_target): New function.
3642 (find_default_run_target): Return NULL if automatically connecting
3643 to the native target is disabled.
3644 (_initialize_target): Install set/show auto-connect-native-target.
3645 * NEWS: Mention "set auto-connect-native-target", and "target
3647 * linux-nat.c (super_close): New global.
3648 (linux_nat_close): Call super_close.
3649 (linux_nat_add_target): Store a pointer to the base class's
3651 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3652 inf_child_maybe_unpush.
3653 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3655 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3656 the inferior. Use inf_child_maybe_unpush_target.
3657 (inf_ttrace_attach): Don't push the target if it is already
3659 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3660 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3661 after mourning the inferior. Use inf_child_maybe_unpush_target.
3662 (darwin_attach_pid): Don't push the target if it is already
3664 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3665 mourning the inferior. Use inf_child_maybe_unpush_target.
3666 (gnu_detach): Use inf_child_maybe_unpush_target.
3667 * go32-nat.c (go32_create_inferior): Don't push the target if it
3669 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3670 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3671 (procfs_open): Rename to ...
3672 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3673 comments. Can target_preopen before changing node. Call
3674 inf_child_open_target to push the target explicitly.
3675 (procfs_attach): Don't push the target if it is already pushed.
3676 (procfs_detach): Use inf_child_maybe_unpush_target.
3677 (procfs_create_inferior): Don't push the target if it is already
3679 (nto_native_ops): New global.
3680 (procfs_open): Reimplement.
3681 (procfs_native_open): New function.
3682 (init_procfs_targets): Install procfs_native_open as to_open of
3683 "target native". Store a pointer to the "native" target in
3685 * procfs.c (procfs_attach): Don't push the target if it is already
3687 (procfs_detach): Use inf_child_maybe_unpush_target.
3688 (procfs_mourn_inferior): Only unpush the target after mourning the
3689 inferior. Use inf_child_maybe_unpush_target.
3690 (procfs_init_inferior): Don't push the target if it is already
3692 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3693 if it is already pushed.
3695 2014-05-21 Pedro Alves <palves@redhat.com>
3697 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3698 and "procfs" targets are now called "native" instead.
3700 2014-05-21 Pedro Alves <palves@redhat.com>
3702 * go32-nat.c (go32_open): Delete.
3703 (go32_target): Don't override the to_open method.
3705 2014-05-21 Pedro Alves <palves@redhat.com>
3707 * nto-procfs.c (procfs_can_run): New function.
3708 (nto_procfs_ops): New global.
3709 (init_procfs_targets): New, based on procfs_target. Install
3710 "target native" in addition to "target procfs".
3711 (_initialize_procfs): Call init_procfs_targets instead of adding
3714 2014-05-21 Pedro Alves <palves@redhat.com>
3716 * windows-nat.c (windows_target): Don't override to_shortname,
3717 to_longname or to_doc.
3719 2014-05-21 Pedro Alves <palves@redhat.com>
3721 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3724 2014-05-21 Pedro Alves <palves@redhat.com>
3726 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3727 to_shortname, to_longname or to_doc.
3729 2014-05-21 Pedro Alves <palves@redhat.com>
3731 * go32-nat.c (go32_target): Don't override to_shortname,
3732 to_longname or to_doc.
3734 2014-05-21 Pedro Alves <palves@redhat.com>
3736 * inf-child.c (inf_child_open): Remove mention of "child".
3737 (inf_child_target): Rename target to "native" instead of "child".
3739 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3741 * Makefile.in (SFILES): Delete "regset.c".
3742 (COMMON_OBS): Delete "regset.o".
3744 * regset.h (regset_alloc): Delete prototype.
3746 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3748 * sparc-linux-tdep.c (sparc32_linux_gregset)
3749 (sparc32_linux_fpregset): New static regset structures.
3750 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3751 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3753 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3754 (sparc64_linux_fpregset): New static regset structures.
3755 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3756 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3757 New static regset structures.
3758 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3759 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3760 New static regset structures.
3761 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3762 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3763 New static regset structures.
3764 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3765 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3766 New static regset structures.
3767 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3769 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3771 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3772 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3773 register maps ("regmaps") from "*regset" to "*regmap". Do this
3774 for all regmap types and variables.
3775 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3776 (sparc32_linux_supply_core_gregset)
3777 (sparc32_linux_collect_core_gregset)
3778 (sparc32_linux_supply_core_fpregset)
3779 (sparc32_linux_collect_core_fpregset): Likewise.
3780 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3781 (sparc_gregmap, sparc_fpregmap): ... these.
3782 (sparc_supply_gregset, sparc_collect_gregset)
3783 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3784 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3785 (_initialize_sparc_nat): Rename regmaps.
3786 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3787 (sparc_gregmap, sparc_fpregmap): ... these.
3788 (sparc_supply_gregset, sparc_collect_gregset)
3789 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3790 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3792 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3793 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3795 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3797 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3798 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3799 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3801 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3802 (sparc32_bsd_fpregset): Rename to...
3803 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3804 (sparc32_bsd_fpregmap): ... these.
3805 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3806 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3807 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3808 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3809 (struct sparc_gregmap, struct sparc_fpregmap)
3810 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3811 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3812 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3813 (sparc32_supply_regset, sparc32_collect_gregset)
3814 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3816 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3817 (sparc64_linux_ptrace_gregmap): ... this.
3818 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3819 (_initialize_sparc64_linux_nat): Rename regmaps.
3820 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3821 (sparc64_linux_core_gregmap): ... this.
3822 (sparc64_linux_supply_core_gregset)
3823 (sparc64_linux_collect_core_gregset)
3824 (sparc64_linux_supply_core_fpregset)
3825 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3826 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3827 (sparc64_sol2_fpregset): Rename to...
3828 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3829 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3830 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3832 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3833 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3834 (sparc64_bsd_fpregset): Rename to...
3835 (struct sparc_gregmap, sparc64_sol2_gregmap)
3836 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3837 (sparc64_bsd_fpregmap): ... these.
3838 (sparc64_supply_gregset, sparc64_collect_gregset)
3839 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3841 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3842 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3843 (sparc64fbsd_gregmap): ... this.
3844 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3845 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3847 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3848 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3849 (sparc64nbsd_collect_fpregset): Likewise.
3850 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3851 (sparc64nbsd_gregmap): ... this.
3852 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3854 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3855 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3856 (sparc64obsd_gregmap): ... this.
3857 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3859 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3860 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3861 (sparc32nbsd_gregmap): ... this.
3862 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3865 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3867 * score-tdep.c (score7_linux_gregset): New static regset
3869 (score7_linux_regset_from_core_section): Remove dynamic regset
3871 (score_gdbarch_init): Drop allocation of tdep structure.
3872 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3876 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3878 (am33_regset_from_core_section): Remove dynamic regset
3881 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3883 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3884 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3886 (mips_linux_regset_from_core_section): Remove dynamic regset
3888 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3889 'gregset64', 'fpregset', and 'fpregset64'.
3890 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3891 deleted tdep fields.
3893 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3895 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3897 (amd64_regset_from_core_section): Remove dynamic regset
3899 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3901 (amd64obsd_regset_from_core_section): Remove dynamic regset
3903 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3905 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3906 x86-common regset supply function.
3907 * i386-tdep.c (i386_collect_gregset): Make static.
3908 (i386_gregset): New global regset structure.
3909 (i386_fpregset, i386_xstateregset): New static regset structures.
3910 (i386_regset_from_core_section): Remove dynamic regset
3912 (i386_gdbarch_init): Remove initialization of tdep fields
3913 'gregset', 'fpregset', and 'xstateregset'.
3914 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3915 'fpregset', and 'xstateregset'.
3916 (i386_collect_gregset): Remove prototype.
3917 (i386_gregset): New declaration.
3918 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3920 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3923 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3925 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3926 (arm_linux_vfpregset): New static regset structures.
3927 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3929 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3930 and 'vfpregset' fields.
3932 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3934 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3935 (aarch64_linux_fpregset): New static regset structures.
3936 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3937 of regset structures.
3938 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3943 * regset.h (struct regset): Remove gdbarch field.
3944 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3945 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3946 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3948 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3949 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3950 (ppc32_linux_vsxregset): Likewise.
3951 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3952 via the regcache instead of the regset.
3953 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3954 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3955 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3956 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3959 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3961 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3962 Constify structures.
3963 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3964 (alphanbsd_aout_gregset): Likewise.
3965 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3966 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3968 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3969 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3971 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3972 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3973 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3974 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3975 * m88k-tdep.c (m88k_gregset): Likewise.
3976 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3977 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3978 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3979 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3980 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3981 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3982 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3983 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3984 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3986 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3987 * sh-tdep.h (sh_corefile_gregset): Likewise.
3988 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3989 * vax-tdep.c (vax_gregset): Likewise.
3991 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 Fix TLS access for -static -pthread.
3994 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3995 (try_thread_db_load_1): Initialize it.
3996 (thread_db_get_thread_local_address): Call it if LM is zero.
3997 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3998 * target.h (struct target_ops) (to_get_thread_local_address): Add
3999 load_module_addr comment.
4001 2014-05-21 Pedro Alves <palves@redhat.com>
4003 * dcache.c (dcache_read_memory_partial): If reading the cache line
4004 fails, fallback to reading just the memory the caller wanted.
4006 2014-05-20 Doug Evans <dje@google.com>
4008 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4009 instead of get_current_arch.
4011 2014-05-20 Pedro Alves <palves@redhat.com>
4013 * NEWS: Mention that compare-sections now works with all targets.
4015 * remote.c (PACKET_qCRC): New enum value.
4016 (remote_verify_memory): Don't send qCRC if the target has no
4017 execution. Use packet_support/packet_ok. If the target doesn't
4018 support the qCRC packet, fallback to a deep memory copy.
4019 (compare_sections_command): Say "target image" instead of "remote
4021 (_initialize_remote): Add PACKET_qCRC to the list of config
4022 packets that have no associated command. Extend comment.
4023 * target.c (simple_verify_memory, default_verify_memory): New
4025 * target.h (struct target_ops) <to_verify_memory>: Default to
4026 default_verify_memory.
4027 (simple_verify_memory): New declaration.
4028 * target-delegates.c: Regenerate.
4030 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4032 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4034 2014-05-20 Hui Zhu <hui@codesourcery.com>
4035 Yao Qi <yao@codesourcery.com>
4038 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4039 and change address of sp and pc.
4041 2014-05-19 Tom Tromey <tromey@redhat.com>
4043 * gdbtypes.c (rank_function): Use XNEWVEC.
4044 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4046 2014-05-19 Doug Evans <dje@google.com>
4048 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4049 build_type_unit_groups and moved closer to only caller. Remove
4050 arguments. All references updated. Remove outdated .gdb_index
4052 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4053 build_type_psymtabs_1.
4055 2014-05-19 Doug Evans <dje@google.com>
4057 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4058 n_type_unit_groups, all_type_unit_groups. All uses removed.
4059 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4060 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4061 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4062 (add_type_unit_group_to_table): Delete.
4064 2014-05-19 Doug Evans <dje@google.com>
4066 * eval.c (evaluate_subexp_standard): Add some comments.
4068 2014-05-17 Doug Evans <xdje42@gmail.com>
4070 * progspace.c (remove_program_space): Delete, unused.
4071 * progspace.h (remove_program_space): Ditto.
4073 2014-05-17 Doug Evans <xdje42@gmail.com>
4075 * inferior.c (prune_inferiors): Fix comment.
4076 (remove_inferior_command): Call prune_program_spaces.
4078 2014-05-16 Doug Evans <dje@google.com>
4080 New command line option -D.
4082 * main.c (set_gdb_data_directory): New function.
4083 (captured_main): Recognize -D. Flag error for --data-directory "".
4084 Call set_gdb_data_directory.
4085 (print_gdb_help): Print --data-directory, -D.
4086 * main.h (set_gdb_data_directory): Declare.
4087 * top.c (staged_gdb_datadir): New static global.
4088 (set_gdb_datadir): Call set_gdb_data_directory
4089 (show_gdb_datadir): New function.
4090 (init_main): Update init of data-directory parameter.
4092 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4094 Import the "dirfd" gnulib module.
4095 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4096 * gnulib/aclocal.m4: Update.
4097 * gnulib/config.in: Update.
4098 * gnulib/configure: Update.
4099 * gnulib/import/Makefile.am: Update.
4100 * gnulib/import/Makefile.in: Update.
4101 * gnulib/import/dirfd.c: New.
4102 * gnulib/import/m4/dirfd.m4: New.
4103 * gnulib/import/m4/gnulib-cache.m4: Update.
4104 * gnulib/import/m4/gnulib-comp.m4: Update.
4106 2014-05-16 Pierre Muller <muller@sourceware.org>
4107 Yao Qi <yao@codesourcery.com>
4109 * valprint.c (print_wchar): Move the code on checking whether
4110 W is a printable wide char to the default branch of switch
4111 statement below. Call wchar_printable instead of gdb_iswprint.
4113 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4115 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4116 ldr.w and ldrd instructions.
4118 2014-05-15 Doug Evans <dje@google.com>
4120 * dwarf2read.c (read_structure_type): Delete outdated comments.
4122 2014-05-14 Tom Tromey <tromey@redhat.com>
4124 * macrocmd.c (print_macro_definition): Reindent.
4126 2014-05-13 Doug Evans <xdje42@gmail.com>
4128 * python/py-cmd.c (cmdpy_completer): Add comment.
4129 (completers): Make const.
4131 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4133 * infrun.c (resume): Remove should_resume (unused). Move up
4134 declaration of resume_ptid.
4136 2014-05-13 Tom Tromey <tromey@redhat.com>
4138 * language.h (unop_type_check): Remove.
4139 (binop_type_check): Don't declare.
4141 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4143 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4144 call to regcache_raw_collect.
4146 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4148 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4149 mi_console->quote as the quoting character.
4151 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4153 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4155 2014-04-29 Tom Tromey <tromey@redhat.com>
4157 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4158 "show debug varobj".
4160 2014-05-07 Kyle McMartin <kyle@redhat.com>
4162 Pushed by Joel Brobecker <brobecker@adacore.com>.
4163 * aarch64-tdep.c (aarch64_software_single_step): New function.
4164 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4165 with aarch64_software_single_step.
4167 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4171 2014-05-05 Keith Seitz <keiths@redhat.com>
4173 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4174 variable or history value is successfully parsed.
4176 2014-05-05 Yao Qi <yao@codesourcery.com>
4177 Pedro Alves <palves@redhat.com>
4179 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4180 address of blocks that intersects the requested range. Trim
4181 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4183 * ctf.c (ctf_xfer_partial): Likewise.
4185 2014-05-05 Yao Qi <yao@codesourcery.com>
4187 * printcmd.c (display_command): Remove the check to
4188 target_has_execution.
4190 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4192 * ppcobsd-nat.c: Include "obsd-nat.h".
4193 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4195 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4197 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4199 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4200 and 16-bit signed and unsigned arguments. Update comment.
4201 (stap_parse_probe_arguments): Extend code to handle such
4202 arguments. Use warning instead of complaint to notify about
4203 unrecognized bitness.
4205 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4207 PR breakpoints/16889
4208 * stap-probe.c (stap_parse_probe_arguments): Simplify
4209 check for non-prefixed probes (i.e., probes whose
4210 arguments do not start with "N@"). Always set the
4211 argument type to a sane value.
4213 2014-05-01 David Taylor <dtaylor@emc.com>
4215 * remote.c (compare_sections_command): Add -r option to compare
4216 all loadable read-only sections.
4218 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4220 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4221 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4223 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4224 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4225 Remove unused CORE_ADDR argument. Update all callers.
4227 2014-04-29 Pedro Alves <palves@redhat.com>
4229 * remote.c (struct packet_config) <detect>: Extend comment.
4230 (add_packet_config_cmd): Don't set the config's detect or support
4232 (init_all_packet_configs): Also initialize the config's 'detect'
4234 (reset_all_packet_configs_support): New function.
4235 (remote_open_1): Call reset_all_packet_configs_support instead of
4236 init_all_packet_configs.
4237 (_initialize_remote): Initialize all packet configs. Assert that
4238 all packets have an associated command, except a few known
4241 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4243 * dwarf2read.c (read_subrange_type): Handle dynamic
4244 DW_AT_lower_bound attributes.
4246 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4248 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4249 dynamic bounds before computing its upper bound.
4250 (ada_discrete_type_low_bound): Same as above with the lower bound.
4252 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4254 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4255 range types. Adjust the array handling implementation to
4256 take advantage of this change.
4257 (resolve_dynamic_range): New function, mostly extracted from
4258 resolve_dynamic_bounds.
4259 (resolve_dynamic_array): New function, mostly extracted from
4260 resolve_dynamic_bounds.
4261 (resolve_dynamic_bounds): Delete.
4262 (resolve_dynamic_type): Reimplement. Add handling of
4263 TYPE_CODE_RANGE types.
4265 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4267 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4268 handling of parallel ___XA types.
4270 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4272 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4273 unnecessary second call to static_unwrap_type.
4275 2014-04-27 Hui Zhu <hui@codesourcery.com>
4277 * stack.c (print_frame_info): Call do_gdb_disassembly with
4278 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4280 2014-04-26 Doug Evans <xdje42@gmail.com>
4282 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4284 2014-04-25 Pedro Alves <palves@redhat.com>
4287 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4288 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4289 and newline from built string.
4290 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4291 (linux_ptrace_attach_fail_reason): ... this.
4292 * linux-nat.c (linux_nat_attach): Adjust to use
4293 linux_ptrace_attach_fail_reason.
4295 2014-04-25 Pedro Alves <palves@redhat.com>
4297 * remote.c (struct remote_state): Remove multi_process_aware,
4298 non_stop_aware, cond_tracepoints, cond_breakpoints,
4299 breakpoint_commands, fast_tracepoints, static_tracepoints,
4300 install_in_trace, disconnected_tracing,
4301 enable_disable_tracepoints, string_tracing, and
4302 augmented_libraries_svr4_read fields.
4303 (remote_multi_process_p): Move further below in the file.
4304 (struct packet_config): Add comments.
4305 (update_packet_config): Delete function.
4306 (show_packet_config_cmd): Use packet_config_support.
4307 (add_packet_config_cmd): Use NULL as set callback.
4308 (packet_ok): "set remote foo-packet"-style commands no longer
4309 change config->supported -- adjust.
4310 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4311 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4312 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4313 (PACKET_QNonStop, PACKET_multiprocess_feature)
4314 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4315 (PACKET_DisconnectedTracing_feature)
4316 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4317 (set_remote_protocol_packet_cmd): Delete function.
4318 (packet_config_support, packet_support): New functions.
4319 (set_remote_protocol_Z_packet_cmd): Don't call
4320 update_packet_config.
4321 (remote_query_attached, remote_pass_signals)
4322 (remote_program_signals, remote_threads_info)
4323 (remote_threads_extra_info, remote_start_remote): Use
4325 (remote_start_remote): Use packet_config_support and
4327 (init_all_packet_configs): Set all packets to unknown support,
4328 instead of calling update_packet_config.
4329 (remote_check_symbols): Use packet_support.
4330 (remote_supported_packet): Unconditionally set the packet config's
4332 (remote_multi_process_feature, remote_non_stop_feature)
4333 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4334 (remote_breakpoint_commands_feature)
4335 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4336 (remote_install_in_trace_feature)
4337 (remote_disconnected_tracing_feature)
4338 (remote_enable_disable_tracepoint_feature)
4339 (remote_string_tracing_feature)
4340 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4341 (remote_protocol_features): Adjust to use remote_supported_packet
4342 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4343 "ConditionalTracepoints", "ConditionalBreakpoints",
4344 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4345 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4346 "EnableDisableTracepoints", and "tracenz".
4347 (remote_query_supported): Use packet_support.
4348 (remote_open_1): Adjust.
4349 (extended_remote_attach_1): Use packet_support. Switch on the
4350 result of packet_ok instead of checking whether the packet ended
4352 (remote_vcont_resume): Use packet_support.
4353 (remote_resume, remote_stop_ns, fetch_register_using_p)
4354 (remote_prepare_to_store, store_register_using_P)
4355 (check_binary_download, remote_write_bytes): Use packet_support.
4356 (remote_vkill): Use packet_support. Switch on the result of
4357 packet_ok instead of checking whether the packet ended up
4359 (extended_remote_supports_disable_randomization): Use
4361 (extended_remote_run): Switch on the result of packet_ok instead
4362 of checking whether the packet ended up disabled.
4363 (remote_insert_breakpoint, remote_remove_breakpoint)
4364 (remote_insert_watchpoint, remote_remove_watchpoint)
4365 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4367 (remote_search_memory): Use packet_config_support.
4368 (remote_get_thread_local_address, remote_get_tib_address)
4369 (remote_hostio_send_command, remote_can_execute_reverse): Use
4371 (remote_supports_cond_tracepoints)
4372 (remote_supports_cond_breakpoints)
4373 (remote_supports_fast_tracepoints)
4374 (remote_supports_static_tracepoints)
4375 (remote_supports_install_in_trace)
4376 (remote_supports_enable_disable_tracepoint)
4377 (remote_supports_string_tracing)
4378 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4379 the packet config says the feature is enabled or disabled.
4380 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4381 (remote_get_trace_status): Use packet_support.
4382 (remote_set_disconnected_tracing): Adjust to check whether the
4383 feature is enabled with packet_support.
4384 (remote_set_trace_buffer_size, remote_use_agent)
4385 (remote_can_use_agent, remote_supports_btrace): Use
4387 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4388 Use packet_config_support.
4389 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4390 the packet config says the feature is enabled or disabled.
4391 (set_range_stepping): Use packet_support.
4393 2014-04-25 Tom Tromey <tromey@redhat.com>
4395 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4398 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4400 * NEWS: Mention support for C99 variable length arrays.
4402 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4404 * ada-lang.c (standard_exc): Expand introductory comment.
4406 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4407 Walfred Tedeschi <walfred.tedeschi@intel.com>
4409 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4411 (amd64_linux_read_description): Add code to handle AVX512 xstate
4412 mask and return respective tdesc.
4413 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4414 and features/i386/x32-avx512-linux.c.
4415 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4416 (amd64_linux_core_read_description): Add code to handle AVX512
4417 xstate mask and return respective tdesc.
4418 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4419 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4421 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4422 (tdesc_amd64_avx512_linux): New prototype.
4423 (tdesc_x32_avx512_linux): Likewise.
4424 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4425 features/i386/x32-avx512.c.
4426 (amd64_ymm_avx512_names): New register names for pseudo
4428 (amd64_ymmh_avx512_names): New register names for raw registers
4430 (amd64_k_names): New register names for K registers.
4431 (amd64_zmmh_names): New register names for ZMM raw registers.
4432 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4433 (amd64_xmm_avx512_names): New register names for XMM16-31
4435 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4437 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4438 if feature is present.
4439 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4440 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4441 (AMD64_NUM_REGS): Adjust to new number of registers.
4442 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4443 registers supplied via XSTATE by AVX512 registers.
4444 (i386_linux_read_description): Add case for AVX512.
4445 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4446 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4447 (i386_linux_core_read_description): Add case for AVX512.
4448 (i386_linux_init_abi): Install supported register note section
4450 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4452 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4453 registers to be number of zmm7h + 1.
4454 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4455 * i386-tdep.c: Include features/i386/i386-avx512.c.
4456 (i386_zmm_names): Add ZMM pseudo register names array.
4457 (i386_zmmh_names): Add ZMM raw register names array.
4458 (i386_k_names): Add K raw register names array.
4459 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4460 registers. AVX512 has 16 more ZMM registers than there are YMM
4462 (i386_zmmh_regnum_p): Add function to look up register number of
4464 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4465 (i386_k_regnum_p): Likewise for K raw registers.
4466 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4467 registers added by AVX512.
4468 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4469 registers added by AVX512.
4470 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4472 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4473 (i386_pseudo_register_name): Add ZMM pseudo registers.
4474 (i386_zmm_type): Construct and return vector registers type for ZMM
4476 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4477 ZMM0-31 pseudo registers and K registers.
4478 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4479 and YMM16-31 registers from register cache.
4480 (i386_pseudo_register_write): Add code to write K, ZMM and
4482 (i386_register_reggroup_p): Add code to include/exclude AVX512
4483 registers in/from respective register groups.
4484 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4485 registers if feature is present in xcr0.
4486 (i386_gdbarch_init): Add code to initialize AVX512 feature
4487 variables in tdep structure, wire in pseudo registers and call
4488 initialize_tdesc_i386_avx512.
4489 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4491 (i386_regnum): Add AVX512 registers.
4492 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4493 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4494 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4495 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4497 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4498 (i386_ymm_avx512_regnum_p): Likewise.
4499 (i386_k_regnum_p): Likewise.
4500 (i386_zmm_regnum_p): Likewise.
4501 (i386_zmmh_regnum_p): Likewise.
4502 * i387-tdep.c : Update year in copyright notice.
4503 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4505 (XSAVE_YMM_AVX512_ADDR): New macro.
4506 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4508 (XSAVE_XMM_AVX512_ADDR): New macro.
4509 (xsave_avx512_k_offset): New table for K register offsets in
4511 (XSAVE_AVX512_K_ADDR): New macro.
4512 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4514 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4515 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4517 (i387_collect_xsave): Add code to collect AVX512 registers from
4519 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4520 of XMM16-31 registers.
4521 (I387_NUM_K_REGS): New define for number of K registers.
4522 (I387_K0_REGNUM): New define for K0 register number.
4523 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4524 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4525 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4527 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4528 (I387_XMM16_REGNUM): New define for XMM16 register number.
4529 (I387_YMM0_REGNUM): New define for YMM0 register number.
4530 (I387_KEND_REGNUM): New define for last K register number.
4531 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4532 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4534 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4536 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4538 * features/Makefile: Add AVX512 related files.
4539 * features/i386/32bit-avx512.xml: New file.
4540 * features/i386/64bit-avx512.xml: Likewise.
4541 * features/i386/amd64-avx512-linux.c: Likewise.
4542 * features/i386/amd64-avx512-linux.xml: Likewise.
4543 * features/i386/amd64-avx512.c: Likewise.
4544 * features/i386/amd64-avx512.xml: Likewise.
4545 * features/i386/i386-avx512-linux.c: Likewise.
4546 * features/i386/i386-avx512-linux.xml: Likewise.
4547 * features/i386/i386-avx512.c: Likewise.
4548 * features/i386/i386-avx512.xml: Likewise.
4549 * features/i386/x32-avx512-linux.c: Likewise.
4550 * features/i386/x32-avx512-linux.xml: Likewise.
4551 * features/i386/x32-avx512.c: Likewise.
4552 * features/i386/x32-avx512.xml: Likewise.
4553 * regformats/i386/amd64-avx512-linux.dat: New file.
4554 * regformats/i386/amd64-avx512.dat: Likewise.
4555 * regformats/i386/i386-avx512-linux.dat: Likewise.
4556 * regformats/i386/i386-avx512.dat: Likewise.
4557 * regformats/i386/x32-avx512-linux.dat: Likewise.
4558 * regformats/i386/x32-avx512.dat: Likewise.
4559 * NEWS: Add note about new support for AVX512.
4562 2014-04-23 Pedro Alves <palves@redhat.com>
4564 * breakpoint.c (insert_bp_location): Tolerate errors if the
4565 breakpoint is set in a user-loaded objfile.
4566 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4567 location is marked shlib_disabled. If the breakpoint is set in a
4568 user-loaded objfile is a GDB-side memory breakpoint, validate it
4569 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4570 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4572 * mem-break.c (memory_validate_breakpoint): New function.
4573 * objfiles.c (userloaded_objfile_contains_address_p): New
4575 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4576 * target.h (memory_validate_breakpoint): New declaration.
4578 2014-04-23 Pedro Alves <palves@redhat.com>
4580 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4581 the breakpoint is set in a shared library, only suppress
4582 errors for software breakpoints, not hardware breakpoints.
4584 2014-04-22 Pedro Alves <palves@redhat.com>
4586 * infrun.c (schedlock_applies): New function, factored out from
4587 find_thread_needs_step_over.
4588 (find_thread_needs_step_over): Use it.
4589 (switch_back_to_stepped_thread): Always clear trap_expected if the
4590 step over is finished. Return early if scheduler locking applies.
4591 Look for the stepping thread and a potential step-over thread with
4593 (currently_stepping_or_nexting_callback): Delete.
4595 2014-04-22 Nick Clifton <nickc@redhat.com>
4597 * NEWS: Mention that ARM sim now supports tracing.
4599 2014-04-22 Yao Qi <yao@codesourcery.com>
4601 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4603 * tracefile.c (tracefile_fetch_registers): ... it. New
4605 * tracefile.h (tracefile_fetch_registers): Declare.
4606 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4607 tracefile_fetch_registers.
4609 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4612 * windows-nat.c (thread_rec): Don't display a warning when
4613 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4614 fails for any reason, set th->suspended to -1, so that we don't
4615 try to resume such a thread. Also, don't return NULL in these
4616 cases, to avoid completely ruin the session due to "PC register is
4617 not available" error.
4618 (do_windows_fetch_inferior_registers): Check errors in
4619 GetThreadContext call.
4620 (windows_continue): Accept an additional argument KILLED; if not
4621 zero, ignore errors in the SetThreadContext call, since the
4622 inferior was killed and is shutting down.
4623 (windows_resume, get_windows_debug_event)
4624 (windows_create_inferior, windows_mourn_inferior)
4625 (windows_kill_inferior): All callers of windows_continue changed
4626 to adjust to its new calling sequence.
4628 2014-04-19 Yao Qi <yao@codesourcery.com>
4630 * ctf.c (ctf_open): Call post_create_inferior.
4632 2014-04-19 Yao Qi <yao@codesourcery.com>
4634 * ctf.c (handle_id): New static variable.
4635 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4636 value. Get the declaration of event "register" and get length
4637 of field "contents".
4639 2014-04-19 Yao Qi <yao@codesourcery.com>
4641 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4643 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4645 * valops.c (oload_method_static): Remove unnecessary argument
4646 METHOD. Update all callers.
4648 2014-04-18 Pedro alves <palves@redhat.com>
4649 Tom Tromey <tromey@redhat.com>
4652 * frame.c (get_prev_frame_1): Rename to ...
4653 (get_prev_frame_always): ... this, and make extern. Adjust.
4654 (skip_artificial_frames): Use get_prev_frame_always.
4655 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4656 (get_frame_unwind_stop_reason): Adjust to rename.
4657 * frame.h (get_prev_frame_always): Declare.
4658 * inline-frame.c: Include frame.h.
4659 (inline_frame_this_id): Use get_prev_frame_always.
4661 2014-04-18 Tristan Gingold <gingold@adacore.com>
4663 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4664 code by using bfd_mach_o_get_base_address.
4666 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4668 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4669 (spu_ax_pseudo_register_collect): New function.
4670 (spu_ax_pseudo_register_push_stack): Likewise.
4671 (spu_dwarf_reg_to_regnum): Likewise.
4672 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4674 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4676 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4677 Replace FRAME argument with FRAME_ID.
4678 * gdbarch.c, gdbarch.h: Regenerate.
4679 * findvar.c (default_value_from_register): Add GDBARCH argument;
4680 replace FRAME by FRAME_ID. No longer call get_frame_id.
4681 (value_from_register): Update call to gdbarch_value_from_register.
4682 * value.h (default_value_from_register): Update prototype.
4683 * s390-linux-tdep.c (s390_value_from_register): Update interface
4684 and call to default_value_from_register.
4685 * spu-tdep.c (spu_value_from_register): Likewise.
4687 * findvar.c (address_from_register): Remove TYPE argument.
4688 Do not call value_from_register; use gdbarch_value_from_register
4689 with null_frame_id instead.
4690 * value.h (address_from_register): Update prototype.
4691 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4692 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4693 address_from_register interface change.
4695 2014-04-17 Yao Qi <yao@codesourcery.com>
4697 * gdbtypes.h: Update comments to link to types and macros'
4700 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4702 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4704 2014-04-16 Keith Seitz <keiths@redhat.com>
4707 * dwarf2read.c (skip_one_die): Check that all relative-offset
4708 sibling DIEs fall within range of the current reader's buffer.
4709 (read_partial_die): Likewise.
4711 2014-04-16 Keith Seitz <keiths@redhat.com>
4714 * cp-namespace.c (lookup_symbol_file): If the type name of
4715 `this' is NULL, return immediately.
4717 2014-04-14 Keith Seitz <keiths@redhat.com>
4720 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4721 from symbol_matches_domain in symtab.c. All local callers
4722 of symbol_matches_domain updated.
4723 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4724 search STRUCT_DOMAIN.
4725 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4726 independently. standard_lookup will do that automatically.
4727 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4728 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4729 (cp_lookup_symbol_in_namespace): Likewise.
4730 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4731 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4732 may return a STRUCT_DOMAIN match.
4733 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4734 * cp-support.c: Include language.h.
4735 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4737 * psymtab.c (match_partial_symbol): Compare the requested
4738 domain with the symbol's domain directly.
4739 (lookup_partial_symbol): Likewise.
4740 * symtab.c (lookup_symbol_in_language): Explain when/why
4741 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4742 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4743 appropriate languages.
4744 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4745 and moved to ada-lang.c
4746 (lookup_block_symbol): Explain that this function only returns
4747 symbol matching the requested DOMAIN.
4748 Compare the requested domain with the symbol's domain directly.
4749 (iterate_over_symbols): Compare the requested domain with the
4750 symbol's domain directly.
4751 * symtab.h (symbol_matches_domain): Remove.
4753 2014-04-14 Tom Tromey <tromey@redhat.com>
4756 * c-exp.y (type_aggregate_p): New function.
4757 (qualified_name, classify_inner_name): Use it.
4758 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4759 and TYPE_TARGET_TYPE of an enum type.
4760 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4762 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4763 handle TYPE_DECLARED_CLASS.
4764 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4766 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4767 * valops.c (enum_constant_from_type): New function.
4768 (value_aggregate_elt): Use it.
4769 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4772 2014-04-14 Tom Tromey <tromey@redhat.com>
4774 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4775 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4777 * value.h (value_aggregate_elt): Update.
4779 2014-04-14 Tom Tromey <tromey@redhat.com>
4781 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4783 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4785 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4786 (evaluate_subexp_standard): Pass noside argument.
4787 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4788 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4789 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4790 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4791 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4793 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4795 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4796 points to a constant blob.
4798 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4800 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4801 property and store it as the high bound and flag the range accordingly.
4802 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4803 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4804 * gdbtypes.h (enum range_flags): New enum.
4805 (struct range_bounds): Add flags member.
4807 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4809 * c-typeprint.c (c_type_print_varspec_suffix): Added
4810 check for not yet resolved high bound. If unresolved, print
4811 "variable length" string to the console instead of random
4814 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4816 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4818 (ada_template_to_fixed_record_type_1): Likewise.
4819 (ada_to_fixed_type_1): Likewise.
4820 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4821 (cp_print_value): Likewise.
4822 * d-valprint.c (dynamic_array_type): Likewise.
4823 * findvar.c (address_of_variable): Likewise.
4824 * jv-valprint.c (java_value_print): Likewise.
4825 * valops.c (value_ind): Likewise.
4826 * value.c (coerce_ref): Likewise.
4828 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4830 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4831 value and retrieve the dynamic type size.
4833 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4835 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4836 passed to sizeof is dynamic evaluate the argument to compute the length.
4838 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4839 Joel Brobecker <brobecker@adacore.com>
4841 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4842 (dwarf2_evaluate_property): New function.
4843 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4844 * dwarf2read.c (attr_to_dynamic_prop): New function.
4845 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4847 * gdbtypes.c: Include dwarf2loc.h.
4848 (is_dynamic_type): New function.
4849 (resolve_dynamic_type): New function.
4850 (resolve_dynamic_bounds): New function.
4851 (get_type_length): New function.
4852 (check_typedef): Use get_type_length to compute type length.
4853 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4854 (TYPE_LOW_BOUND_KIND): New macro.
4855 (is_dynamic_type): New function prototype.
4856 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4857 to resolve dynamic properties of the type. Update comment.
4858 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4860 2014-04-14 Richard Henderson <rth@redhat.com>
4862 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4864 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4865 Doug Evans <xdje42@gmail.com>
4867 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4868 dereference TYPE_CODE_REF values.
4870 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4872 Revert the following changes due to regressions:
4874 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4875 (dwarf2_evaluate_property): New function.
4876 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4877 * dwarf2read.c (attr_to_dynamic_prop): New function.
4878 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4880 * gdbtypes.c: Include dwarf2loc.h.
4881 (is_dynamic_type): New function.
4882 (resolve_dynamic_type): New function.
4883 (resolve_dynamic_bounds): New function.
4884 (get_type_length): New function.
4885 (check_typedef): Use get_type_length to compute type length.
4886 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4887 (TYPE_LOW_BOUND_KIND): New macro.
4888 (is_dynamic_type): New function prototype.
4889 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4890 to resolve dynamic properties of the type. Update comment.
4891 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4893 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4894 passed to sizeof is dynamic evaluate the argument to compute the length.
4896 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4897 value and retrieve the dynamic type size.
4899 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4900 (ada_template_to_fixed_record_type_1): Likewise.
4901 (ada_to_fixed_type_1): Likewise.
4902 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4903 (cp_print_value): Likewise.
4904 * d-valprint.c (dynamic_array_type): Likewise.
4905 * eval.c (evaluate_subexp_with_coercion): Likewise.
4906 * findvar.c (address_of_variable): Likewise.
4907 * jv-valprint.c (java_value_print): Likewise.
4908 * valops.c (value_ind): Likewise.
4909 * value.c (coerce_ref): Likewise.
4911 * c-typeprint.c (c_type_print_varspec_suffix): Added
4912 check for not yet resolved high bound. If unresolved, print
4913 "variable length" string to the console instead of random
4916 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4917 property and store it as the high bound and flag the range accordingly.
4918 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4919 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4920 * gdbtypes.h (enum range_flags): New enum.
4921 (struct range_bounds): Add flags member.
4923 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4924 points to a constant blob.
4926 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4927 (evaluate_subexp_standard): Pass noside argument.
4928 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4929 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4930 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4931 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4932 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4934 2014-04-11 Keith Seitz <keiths@redhat.com>
4937 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4938 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4941 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4943 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4944 (evaluate_subexp_standard): Pass noside argument.
4945 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4946 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4947 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4948 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4949 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4951 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4953 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4954 points to a constant blob.
4956 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4958 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4959 property and store it as the high bound and flag the range accordingly.
4960 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4961 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4962 * gdbtypes.h (enum range_flags): New enum.
4963 (struct range_bounds): Add flags member.
4965 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4967 * c-typeprint.c (c_type_print_varspec_suffix): Added
4968 check for not yet resolved high bound. If unresolved, print
4969 "variable length" string to the console instead of random
4972 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4974 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4975 (ada_template_to_fixed_record_type_1): Likewise.
4976 (ada_to_fixed_type_1): Likewise.
4977 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4978 (cp_print_value): Likewise.
4979 * d-valprint.c (dynamic_array_type): Likewise.
4980 * eval.c (evaluate_subexp_with_coercion): Likewise.
4981 * findvar.c (address_of_variable): Likewise.
4982 * jv-valprint.c (java_value_print): Likewise.
4983 * valops.c (value_ind): Likewise.
4984 * value.c (coerce_ref): Likewise.
4986 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4988 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4989 value and retrieve the dynamic type size.
4991 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4993 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4994 passed to sizeof is dynamic evaluate the argument to compute the length.
4996 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4998 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4999 (dwarf2_evaluate_property): New function.
5000 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5001 * dwarf2read.c (attr_to_dynamic_prop): New function.
5002 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5004 * gdbtypes.c: Include dwarf2loc.h.
5005 (is_dynamic_type): New function.
5006 (resolve_dynamic_type): New function.
5007 (resolve_dynamic_bounds): New function.
5008 (get_type_length): New function.
5009 (check_typedef): Use get_type_length to compute type length.
5010 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5011 (TYPE_LOW_BOUND_KIND): New macro.
5012 (is_dynamic_type): New function prototype.
5013 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5014 to resolve dynamic properties of the type. Update comment.
5015 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5017 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5019 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5020 declaring high/low bounds and change uses accordingly. Call
5021 create_range_type instead of create_static_range_type.
5022 * gdbtypes.c (create_range_type): New function.
5023 (create_range_type): Convert bounds into struct bound_prop and pass
5024 them to create_range_type.
5025 * gdbtypes.h (struct bound_prop): New struct.
5026 (create_range_type): New function prototype.
5027 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5028 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5029 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5031 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5033 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5035 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5036 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5037 * ada-lang.c: All uses of create_range_type updated.
5038 * coffread.c: All uses of create_range_type updated.
5039 * dwarf2read.c: All uses of create_range_type updated.
5040 * f-exp.y: All uses of create_range_type updated.
5041 * m2-valprint.c: All uses of create_range_type updated.
5042 * mdebugread.c: All uses of create_range_type updated.
5043 * stabsread.c: All uses of create_range_type updated.
5044 * valops.c: All uses of create_range_type updated.
5045 * valprint.c: All uses of create_range_type updated.
5047 2014-04-10 Pedro Alves <palves@redhat.com>
5049 * breakpoint.c (single_step_breakpoints)
5050 (single_step_gdbarch): Move up in the file.
5051 (one_breakpoint_xfer_memory): New function, factored out from ...
5052 (breakpoint_xfer_memory): ... here. Also process single-step
5055 2014-04-09 Tristan Gingold <gingold@adacore.com>
5057 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5059 (darwin_decode_exception_message): Free port only after use.
5061 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5063 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5064 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5065 when setting the size of call_length.
5067 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5069 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5070 dereference TYPE_CODE_REF values.
5072 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5074 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5075 end of warning message.
5077 2014-04-03 Doug Evans <dje@google.com>
5079 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5080 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5082 2014-04-02 Alan Modra <amodra@gmail.com>
5084 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5085 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5086 (struct symbol_file_add_from_memory_args): Add size field.
5087 (find_vdso_size): New function.
5088 (add_vsyscall_page): Attempt to find vdso size.
5090 2014-04-01 Doug Evans <dje@google.com>
5092 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5094 2014-04-01 Tristan Gingold <gingold@adacore.com>
5096 * darwin-nat.c (darwin_encode_reply): Add prototype.
5097 (darwin_decode_exception_message): Reply to unknown inferiors.
5098 (darwin_decode_message): Handle message by id. Ignore message
5099 to unknown inferior.
5100 (darwin_wait): Discard unknown messages, add debug trace.
5102 2014-03-31 Doug Evans <dje@google.com>
5104 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5107 2014-03-31 Doug Evans <dje@google.com>
5109 New option "set print symbol-loading".
5111 * solib.c (solib_read_symbols): Only print symbol loading messages
5113 (solib_add): If symbol loading is in "brief" mode, notify user
5114 symbols are being loaded.
5115 (reload_shared_libraries_1): Ditto.
5116 * symfile.c (print_symbol_loading_off): New static global.
5117 (print_symbol_loading_brief): New static global.
5118 (print_symbol_loading_full): New static global.
5119 (print_symbol_loading_enums): New static global.
5120 (print_symbol_loading): New static global.
5121 (print_symbol_loading_p): New function.
5122 (symbol_file_add_with_addrs): Only print symbol loading messages
5124 (_initialize_symfile): Register "print symbol-loading" set/show
5126 * symfile.h (print_symbol_loading_p): Declare.
5128 2014-03-30 Doug Evans <xdje42@gmail.com>
5130 * infrun.c (set_last_target_status): New function.
5131 (handle_inferior_event): Call it.
5133 2014-03-30 Doug Evans <xdje42@gmail.com>
5135 * inferior.h (enum stop_kind): Improve comment.
5137 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5139 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5140 a reference, strip the reference layer before calling
5141 the lang_ops value_has_mutated callback.
5143 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5145 Remove some globals from our parser.
5146 * language.c (unk_lang_parser): Add "struct parser_state"
5148 * language.h (struct language_defn) <la_parser>: Likewise.
5149 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5150 (initialize_expout): Add "struct parser_state" argument.
5151 Rewrite function to use the parser state.
5152 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5153 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5154 write_exp_elt_longcst, write_exp_elt_dblcst,
5155 write_exp_elt_decfloatcst, write_exp_elt_type,
5156 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5157 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5158 write_dollar_variable): Likewise.
5159 (parse_exp_in_context_1): Use parser state.
5160 (insert_type_address_space): Add "struct parser_state" argument.
5162 (increase_expout_size): New function.
5163 * parser-defs.h: Forward declare "struct language_defn" and
5164 "struct parser_state".
5165 (expout, expout_size, expout_ptr): Remove extern declarations.
5166 (parse_gdbarch, parse_language): Rewrite macro declarations to
5167 accept the parser state.
5168 (struct parser_state): New struct.
5169 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5170 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5171 write_exp_elt_decfloatcst, write_exp_elt_type,
5172 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5173 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5174 write_exp_msymbol, write_dollar_variable,
5175 mark_struct_expression, insert_type_address_space): Add "struct
5176 parser_state" argument.
5177 (increase_expout_size): New function.
5178 * utils.c (do_clear_parser_state): New function.
5179 (make_cleanup_clear_parser_state): Likewise.
5180 * utils.h (make_cleanup_clear_parser_state): New function
5182 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5183 Update calls to write_exp* in order to pass the parser state.
5184 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5185 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5186 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5187 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5188 * stap-probe.c (stap_parse_register_operand): Likewise.
5189 (stap_parse_single_operand): Likewise.
5190 (stap_parse_argument_1): Likewise.
5191 (stap_parse_argument): Use parser state.
5192 * stap-probe.h: Include "parser-defs.h".
5193 (struct stap_parse_info) <pstate>: New field.
5194 * c-exp.y (parse_type): Rewrite to use parser state.
5195 (yyparse): Redefine to c_parse_internal.
5196 (pstate): New global variable.
5197 (parse_number): Add "struct parser_state" argument.
5198 (write_destructor_name): Likewise.
5199 (type_exp): Update calls to write_exp* and similars in order to
5201 (exp1, exp, variable, qualified_name, space_identifier,
5202 typename, typebase): Likewise.
5203 (write_destructor_name, parse_number, lex_one_token,
5204 classify_name, classify_inner_name, c_parse): Add "struct
5205 parser_state" argument. Update function to use parser state.
5206 * c-lang.h: Forward declare "struct parser_state".
5207 (c_parse): Add "struct parser_state" argument.
5208 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5209 (yyparse): Redefine macro to ada_parse_internal.
5210 (pstate): New variable.
5211 (write_int, write_object_renaming, write_var_or_type,
5212 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5213 type_int, type_long, type_long_long, type_float, type_double,
5214 type_long_double, type_char, type_boolean, type_system_address):
5215 Add "struct parser_state" argument.
5216 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5217 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5218 var_or_type, aggregate, aggregate_component_list,
5219 positional_list, others, component_group,
5220 component_associations): Update calls to write_exp* and similar
5221 functions in order to use parser state.
5222 (ada_parse, write_var_from_sym, write_int,
5223 write_exp_op_with_string, write_object_renaming,
5224 find_primitive_type, write_selectors, write_ambiguous_var,
5225 write_var_or_type, write_name_assoc, type_int, type_long,
5226 type_long_long, type_float, type_double, type_long_double,
5227 type_char, type_boolean, type_system_address): Add "struct
5228 parser_state" argument. Adjust function to use parser state.
5229 * ada-lang.c (parse): Likewise.
5230 * ada-lang.h: Forward declare "struct parser_state".
5231 (ada_parse): Add "struct parser_state" argument.
5232 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5233 calls to both functions.
5234 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5236 (yyparse): Redefine macro to f_parse_internal.
5237 (pstate): New variable.
5238 (parse_number): Add "struct parser_state" argument.
5239 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5240 and similars in order to use parser state.
5241 (parse_number): Adjust code to use parser state.
5243 (f_parse): New function.
5244 * f-lang.h: Forward declare "struct parser_state".
5245 (f_parse): Add "struct parser_state" argument.
5246 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5248 (yyparse): Redefine macro for java_parse_internal.
5249 (pstate): New variable.
5250 (push_expression_name, push_expression_name, insert_exp): Add
5251 "struct parser_state" argument.
5252 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5253 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5254 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5255 PostIncrementExpression, PostDecrementExpression,
5256 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5257 UnaryExpressionNotPlusMinus, CastExpression,
5258 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5259 RelationalExpression, EqualityExpression, AndExpression,
5260 ExclusiveOrExpression, InclusiveOrExpression,
5261 ConditionalAndExpression, ConditionalOrExpression,
5262 ConditionalExpression, Assignment, LeftHandSide): Update
5263 calls to write_exp* and similars in order to use parser state.
5264 (parse_number): Ajust code to use parser state.
5266 (java_parse): New function.
5267 (push_variable): Add "struct parser_state" argument. Adjust
5268 code to user parser state.
5269 (push_fieldnames, push_qualified_expression_name,
5270 push_expression_name, insert_exp): Likewise.
5271 * jv-lang.h: Forward declare "struct parser_state".
5272 (java_parse): Add "struct parser_state" argument.
5273 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5275 (yyparse): Redefine macro to m2_parse_internal.
5276 (pstate): New variable.
5277 (type_exp, exp, fblock, variable, type): Update calls to
5278 write_exp* and similars to use parser state.
5280 (m2_parse): New function.
5281 * m2-lang.h: Forward declare "struct parser_state".
5282 (m2_parse): Add "struct parser_state" argument.
5283 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5284 * objc-lang.h: Forward declare "struct parser_state".
5285 (end_msglist): Add "struct parser_state" argument.
5286 * p-exp.y (parse_type): Rewrite macro to use parser state.
5287 (yyparse): Redefine macro to pascal_parse_internal.
5288 (pstate): New variable.
5289 (parse_number): Add "struct parser_state" argument.
5290 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5291 write_exp* and similars in order to use parser state.
5292 (parse_number, yylex): Adjust code to use parser state.
5293 (pascal_parse): New function.
5294 * p-lang.h: Forward declare "struct parser_state".
5295 (pascal_parse): Add "struct parser_state" argument.
5296 * go-exp.y (parse_type): Rewrite macro to use parser state.
5297 (yyparse): Redefine macro to go_parse_internal.
5298 (pstate): New variable.
5299 (parse_number): Add "struct parser_state" argument.
5300 (type_exp, exp1, exp, variable, type): Update calls to
5301 write_exp* and similars in order to use parser state.
5302 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5303 to use parser state.
5304 (go_parse): Likewise.
5305 * go-lang.h: Forward declare "struct parser_state".
5306 (go_parse): Add "struct parser_state" argument.
5308 2014-03-27 Doug Evans <dje@google.com>
5310 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5312 2014-03-27 Doug Evans <dje@google.com>
5314 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5315 Remove argument abbrev_section. All callers updated.
5317 2014-03-27 Doug Evans <dje@google.com>
5319 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5320 addr_base, ranges_base.
5322 2014-03-26 Keith Seitz <keiths@redhat.com>
5324 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5325 types, not VAR_DOMAIN.
5327 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5329 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5331 * features/nios2-linux.c: Regenerated.
5332 * features/nios2.c: Regenerated.
5334 2014-03-25 Pedro Alves <palves@redhat.com>
5336 * cli/cli-script.c (script_from_file): Force the interpreter to
5339 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5341 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5342 small stack allocation.
5344 2014-03-24 Tristan Gingold <gingold@adacore.com>
5346 * darwin-nat.c (exc_server): Remove unused prototype.
5347 (darwin_dump_message): Correctly display data on x86_64.
5348 (darwin_encode_reply): Fix style.
5349 Add comments and fix indentation.
5351 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5353 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5355 2014-03-22 Doug Evans <xdje42@gmail.com>
5357 * infcmd.c: Whitespace fixes.
5358 (interrupt_command): Merge two function comments into one.
5360 2014-03-22 Doug Evans <xdje42@gmail.com>
5362 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5365 2014-03-22 Yao Qi <yao@codesourcery.com>
5367 * remote.c (target_read_live_memory): Remove.
5368 (memory_xfer_live_readonly_partial): Rename it to
5369 remote_xfer_live_readonly_partial. Remove argument 'object'.
5370 All callers updated. Call remote_read_bytes_1
5371 instead of target_read_live_memory.
5372 * tracepoint.c (set_traceframe_number): Remove.
5373 (make_cleanup_restore_traceframe_number): Likewise .
5374 * tracepoint.h (set_traceframe_number): Remove declaration.
5375 (make_cleanup_restore_traceframe_number): Likewise.
5377 2014-03-22 Yao Qi <yao@codesourcery.com>
5379 * remote.c (remote_read_bytes): Move code on reading from the
5381 (remote_read_bytes_1): ... here. New function.
5383 2014-03-22 Yao Qi <yao@codesourcery.com>
5385 * ctf.c (ctf_xfer_partial): Check the return value of
5386 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5387 return TARGET_XFER_UNAVAILABLE.
5388 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5389 * target.c (target_read_live_memory): Move it to remote.c.
5390 (memory_xfer_live_readonly_partial): Likewise.
5391 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5392 * remote.c (target_read_live_memory): Moved from target.c.
5393 (memory_xfer_live_readonly_partial): Likewise.
5394 (remote_read_bytes): Factored out from
5395 memory_xfer_partial_1.
5397 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5399 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5402 2014-03-21 Pedro Alves <palves@redhat.com>
5404 * infrun.c (normal_stop): Extend comment.
5406 2014-03-21 Hui Zhu <hui@codesourcery.com>
5407 Pedro Alves <palves@redhat.com>
5409 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5411 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5412 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5413 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5415 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5417 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5418 `z' formatted output modifier.
5420 2014-03-20 Tom Tromey <tromey@redhat.com>
5421 Sergio Durigan Junior <sergiodj@redhat.com>
5423 * probe.c (parse_probes): Turn assert into an ordinary error.
5424 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5425 exceptions when parsing probes. Rearrange the code for clarity.
5427 2014-03-20 Tom Tromey <tromey@redhat.com>
5430 * top.c (execute_command): Only dispatch events if the command
5433 2014-03-20 Tom Tromey <tromey@redhat.com>
5436 * infcall.c: Include event-top.h.
5437 (run_inferior_call): Call async_disable_stdin if needed.
5439 2014-03-20 Pedro Alves <palves@redhat.com>
5441 * infrun.c (prepare_to_proceed): Delete.
5442 (thread_still_needs_step_over): New function.
5443 (find_thread_needs_step_over): New function.
5444 (proceed): If the current thread needs a step-over, set its
5445 steping_over_breakpoint flag. Adjust to use
5446 find_thread_needs_step_over instead of prepare_to_proceed.
5447 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5448 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5450 (switch_back_to_stepped_thread): Step over breakpoints of all
5451 threads not the stepping thread, before switching back to the
5454 2014-03-20 Pedro Alves <palves@redhat.com>
5456 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5458 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5459 * infrun.c (saved_singlestep_ptid)
5460 (stepping_past_singlestep_breakpoint): Delete.
5461 (resume): Remove stepping_past_singlestep_breakpoint handling.
5462 (proceed): Store the prev_pc of the stepping thread too.
5463 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5465 (enum infwait_states): Delete infwait_thread_hop_state.
5466 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5468 (handle_inferior_event): Adjust.
5469 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5470 handling and the thread-hop code. Before removing single-step
5471 breakpoints, check whether the thread hit a single-step breakpoint
5472 of another thread. If it did, the trap is not a random signal.
5473 (switch_back_to_stepped_thread): If the event thread hit a
5474 single-step breakpoint, unblock it before switching to the
5475 stepping thread. Handle the case of the stepped thread having
5477 (keep_going): Handle the case of the current thread moving past a
5478 single-step breakpoint.
5480 2014-03-20 Pedro Alves <palves@redhat.com>
5483 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5484 are being stepped over.
5485 (breakpoint_address_match): Make extern.
5486 * breakpoint.h (breakpoint_address_match): New declaration.
5487 * inferior.h (stepping_past_instruction_at): New declaration.
5488 * infrun.c (struct step_over_info): New type.
5489 (step_over_info): New global.
5490 (set_step_over_info, clear_step_over_info)
5491 (stepping_past_instruction_at): New functions.
5492 (handle_inferior_event): Clear the step-over info when
5493 trap_expected is cleared.
5494 (resume): Remove now stale comment.
5495 (clear_proceed_status): Clear step-over info.
5496 (proceed): Adjust step-over handling to set or clear the step-over
5497 info instead of removing all breakpoints.
5498 (handle_signal_stop): When setting up a thread-hop, don't remove
5500 (stop_stepping): Clear step-over info.
5501 (keep_going): Adjust step-over handling to set or clear step-over
5502 info and then always inserting breakpoints, instead of removing
5503 all breakpoints when stepping over one.
5505 2014-03-20 Pedro Alves <palves@redhat.com>
5507 * infrun.c (previous_inferior_ptid): Adjust comment.
5508 (deferred_step_ptid): Delete.
5509 (infrun_thread_ptid_changed, prepare_to_proceed)
5510 (init_wait_for_inferior): Adjust.
5511 (handle_signal_stop): Delete deferred_step_ptid handling.
5513 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5516 * defs.h (sync_quit_force_run): New declaration.
5517 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5518 * event-top.c (async_sigterm_handler): New declaration.
5519 (async_sigterm_token): New variable.
5520 (async_init_signals): Create also async_sigterm_token.
5521 (async_sigterm_handler): New function.
5522 (sync_quit_force_run): New variable.
5523 (handle_sigterm): Replace quit_force call by other calls.
5524 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5526 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5528 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5529 offset into SPE pseudo registers.
5531 2014-03-18 Pedro Alves <palves@redhat.com>
5534 * inferior.h (print_stop_event): Declare.
5535 * infrun.c (print_stop_event): New, factored out from ...
5536 (normal_stop): ... this.
5537 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5538 of bpstat_print/print_stack_frame.
5540 2014-03-17 Tom Tromey <tromey@redhat.com>
5542 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5544 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5546 * ada-lang.c (decode_constrained_packed_array): Perform a
5547 minimal coercion for reference with coerce_ref instead of
5550 2014-03-17 Tristan Gingold <gingold@adacore.com>
5552 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5553 (darwin_solib_create_inferior_hook): Emit a warning if version
5556 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5558 * python/py-value.c (get_field_flag): Cast flag_name argument to
5559 PyObject_GetAttrString to support Python 2.4.
5561 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5563 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5564 (Global Maintainers): Remove Jan Kratochvil.
5566 2014-03-14 Pedro Alves <palves@redhat.com>
5568 * inferior.h (terminal_ours_for_output): Rename to ...
5569 (child_terminal_ours_for_output): ... this.
5570 (terminal_save_ours): Rename to ...
5571 (child_terminal_save_ours): ... this.
5572 (terminal_ours): Rename to ...
5573 (child_terminal_ours): ... this.
5574 (terminal_inferior): Rename to ...
5575 (child_terminal_inferior): ... this.
5576 (terminal_init_inferior): Rename to ...
5577 (child_terminal_init_inferior): ... this.
5578 (terminal_init_inferior_with_pgrp): Rename to ...
5579 (child_terminal_init_inferior_with_pgrp): ... this.
5580 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5581 (child_terminal_init_with_pgrp): ... this.
5582 (terminal_save_ours): Rename to ...
5583 (child_terminal_save_ours): ... this.
5584 (terminal_init_inferior): Rename to ...
5585 (child_terminal_init): ... this. Adjust.
5586 (terminal_inferior): Rename to ...
5587 (child_terminal_inferior): ... this.
5588 (terminal_ours_for_output): Rename to ...
5589 (child_terminal_ours_for_output): ... this. Adjust.
5590 (terminal_ours): Rename to ...
5591 (child_terminal_ours): ... this.
5592 (terminal_ours_1): Rename to ...
5593 (child_terminal_ours_1): ... this. Adjust.
5594 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5595 * windows-nat.c (do_initial_windows_stuff): Adjust.
5596 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5597 (gnu_terminal_init): ... this. Adjust.
5598 (gnu_target): Adjust.
5599 * inf-child.c (inf_child_target): Adjust.
5601 2014-03-13 Doug Evans <xdje42@gmail.com>
5604 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5607 2014-03-13 Doug Evans <xdje42@gmail.com>
5609 * value.c (record_latest_value): Call release_value_or_incref
5610 instead of release_value.
5612 2014-03-13 Pedro Alves <palves@redhat.com>
5614 * procfs.c (procfs_target): Don't override to_shortname,
5615 to_longname or to_doc.
5617 2014-03-13 Pedro Alves <palves@redhat.com>
5619 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5620 Unix in user visible strings.
5622 2014-03-12 Stan Shebs <stan@codesourcery.com>
5624 * gdbtypes.h: Annotate comments for Doxygen, add a page
5625 block comment with some general info.
5627 2014-03-12 Pedro Alves <palves@redhat.com>
5629 * infcmd.c (prepare_execution_command): New function, factored out
5630 from several execution commands.
5631 (run_command_1, continue_command, step_1, jump_command)
5632 (signal_command, until_command, advance_command, finish_command)
5633 (attach_command): Use prepare_execution_command.
5635 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5637 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5640 (struct arm_linux_thread_points): Removed.
5641 (struct arm_linux_process_info): New.
5642 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5643 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5644 (arm_linux_find_breakpoints_by_tid): Removed.
5645 (struct arch_lwp_info): New.
5646 (arm_linux_find_process_pid): New functions.
5647 (arm_linux_add_process): New functions.
5648 (arm_linux_process_info_get): New functions.
5649 (arm_linux_forget_process): New function.
5650 (arm_linux_get_debug_reg_state): New function.
5651 (struct update_registers_data): New.
5652 (update_registers_callback): New function.
5653 (arm_linux_insert_hw_breakpoint1): Updated.
5654 (arm_linux_remove_hw_breakpoint1): Updated.
5655 (arm_linux_insert_hw_breakpoint): Updated.
5656 (arm_linux_remove_hw_breakpoint): Updated.
5657 (arm_linux_insert_watchpoint): Updated.
5658 (arm_linux_remove_watchpoint): Updated.
5659 (arm_linux_new_thread): Updated.
5660 (arm_linux_prepare_to_resume): New function.
5661 (arm_linux_new_fork): New function.
5662 (_initialize_arm_linux_nat): Updated.
5664 2014-03-12 Pedro Alves <palves@redhat.com>
5666 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5668 2014-03-12 Tom Tromey <tromey@redhat.com>
5670 * inf-child.c (return_zero): New function.
5671 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5672 * aix-thread.c (aix_thread_inferior_created): New function.
5673 (aix_thread_attach): Remove.
5674 (init_aix_thread_ops): Don't set to_attach.
5675 (_initialize_aix_thread): Register inferior_created observer.
5676 * corelow.c (init_core_ops): Don't set to_attach or
5678 * exec.c (init_exec_ops): Don't set to_attach or
5680 * infcmd.c (run_command_1): Use find_run_target. Make direct
5682 (attach_command): Use find_attach_target. Make direct target
5684 * record-btrace.c (init_record_btrace_ops): Don't set
5686 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5688 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5689 set to_create_inferior.
5690 * target.c (complete_target_initialization): Add assertion.
5691 (target_create_inferior): Remove.
5692 (find_default_attach, find_default_create_inferior): Remove.
5693 (find_attach_target, find_run_target): New functions.
5694 (find_default_is_async_p, find_default_can_async_p)
5695 (target_supports_non_stop, target_attach): Remove.
5696 (init_dummy_target): Don't set to_create_inferior or
5697 to_supports_non_stop.
5698 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5699 TARGET_DEFAULT_FUNC.
5700 <to_create_inferior>: Add comment.
5701 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5702 TARGET_DEFAULT_RETURN.
5703 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5704 (find_attach_target, find_run_target): Declare.
5705 (target_create_inferior): Remove.
5706 (target_has_execution_1): Update comment.
5707 (target_supports_non_stop): Remove.
5708 * target-delegates.c: Rebuild.
5710 2014-03-12 Pedro Alves <palves@redhat.com>
5712 * inf-child.h: Update comment to not mention Unix.
5714 2014-03-12 Pedro Alves <palves@redhat.com>
5716 * inf-child.c: Update top comment to not mention Unix. Add
5717 generic comment describing how this target is meant to be used.
5718 (inf_child_post_attach, inf_child_post_startup_inferior)
5719 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5722 2014-03-12 Pedro Alves <palves@redhat.com>
5724 * nto-procfs.c: Include inf-child.h.
5725 (procfs_ops): Delete global.
5726 (procfs_can_run): Delete method.
5727 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5728 target pointer instead of referencing procfs_ops.
5729 (procfs_prepare_to_store): Delete.
5730 (init_procfs_ops): Delete function.
5731 (procfs_target): New function, based on init_procfs_ops, but
5732 inherit inf_child_target.
5733 (_initialize_procfs): Use procfs_target.
5735 2014-03-12 Pedro Alves <palves@redhat.com>
5737 * windows-nat.c: Include inf-child.h.
5738 (windows_ops): Delete global.
5739 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5741 (init_windows_ops): Delete function.
5742 (windows_target): New function, based on init_windows_ops, but
5743 inherit inf_child_target.
5744 (_initialize_windows_nat): Use windows_target. Install x86
5745 specific target methods here.
5747 2014-03-10 Doug Evans <xdje42@gmail.com>
5749 * guile/guile.c (call_initialize_gdb_module): New function.
5750 (initialize_guile): Replace call to scm_init_guile with call to
5753 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5755 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5756 in call to TYPE_CODE macro.
5758 2014-03-10 Jerome Guitton <guitton@adacore.com>
5760 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5761 Resolve tagged types to full view.
5763 2014-03-10 Hui Zhu <hui@codesourcery.com>
5765 * target.h (target_insert_breakpoint): Remove "hardware" from its
5768 2014-03-07 Doug Evans <dje@google.com>
5770 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5772 2014-03-07 Doug Evans <dje@google.com>
5774 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5775 Remove unused local comp_dir_attr. Assert exactly one of
5776 stub_comp_unit_die, stub_comp_dir is non-NULL.
5778 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5780 * target.h (complete_target_initialization, add_target):
5783 2014-03-07 Pedro Alves <palves@redhat.com>
5785 * go32-nat.c: Include inf-child.h.
5786 (go32_ops): Delete global.
5787 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5789 (go32_create_inferior): Push the passed in target pointer instead
5790 of referencing go32_ops.
5791 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5792 (go32_target): New function, based on init_go32_ops, but inherit
5794 (_initialize_go32_nat): Use go32_target. Move parts of
5797 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5799 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5800 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5801 SYMBOL_VALUE_ADDRESS.
5802 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5804 2014-03-06 Yao Qi <yao@codesourcery.com>
5806 * breakpoint.c (get_tracepoint_by_number): Remove argument
5807 optional_p. All callers updated. Adjust comments. Update
5809 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5811 2014-03-06 Yao Qi <yao@codesourcery.com>
5813 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5814 early if get_number returns zero. Use 'p' instead of 'args'.
5816 2014-03-06 Yao Qi <yao@codesourcery.com>
5818 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5821 2014-03-06 Yao Qi <yao@codesourcery.com>
5823 PR breakpoints/16508
5824 * tracepoint.c (check_trace_running): New function.
5825 (trace_find_command): Move code to check_trace_running and
5826 call check_trace_running.
5827 (trace_find_pc_command): Likewise.
5828 (trace_find_tracepoint_command): Likewise.
5829 (trace_find_line_command): Likewise.
5830 (trace_find_range_command): Likewise.
5831 * tracepoint.h (check_trace_running): Likewise.
5832 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5834 2014-03-06 Yao Qi <yao@codesourcery.com>
5836 * target.h (struct target_ops) <to_traceframe_info>: Use
5837 TARGET_DEFAULT_NORETURN (tcomplain ()).
5838 * target-delegates.c: Regenerated.
5840 2014-03-05 Pedro Alves <palves@redhat.com>
5843 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5844 void. Update comment.
5845 (dcache_xfer_memory): Delete.
5846 (dcache_read_memory_partial): New, based on the read bits of
5848 (dcache_update): Add status parameter. Use ULONGEST for len, and
5849 adjust. Discard cache lines if the reason for the update was
5851 * dcache.h (dcache_xfer_memory): Delete declaration.
5852 (dcache_read_memory_partial): New declaration.
5853 (dcache_update): Update prototype.
5854 * target.c (raw_memory_xfer_partial): Update the dcache here.
5855 (memory_xfer_partial_1): Don't handle dcache writes here.
5857 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5859 * remote-sim.c (gdbsim_load): Add const to prog.
5861 2014-03-03 Tom Tromey <tromey@redhat.com>
5863 * elfread.c (probe_key): Change to bfd_data.
5864 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5865 now per-BFD, not per-objfile.
5866 * stap-probe.c (stap_probe_destroy): Update comment.
5867 (handle_stap_probe): Allocate on the per-BFD obstack.
5869 2014-03-03 Tom Tromey <tromey@redhat.com>
5871 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5872 * breakpoint.c (create_longjmp_master_breakpoint): Use
5874 (add_location_to_breakpoint, bkpt_probe_insert_location)
5875 (bkpt_probe_remove_location): Update.
5876 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5877 * elfread.c (elf_symfile_relocate_probe): Remove.
5878 (elf_probe_fns): Update.
5879 (insert_exception_resume_breakpoint): Change type of "probe"
5880 parameter to bound_probe.
5881 (check_exception_resume): Update.
5882 * objfiles.c (objfile_relocate1): Don't relocate probes.
5883 * probe.c (bound_probe_s): New typedef.
5884 (parse_probes): Use get_probe_address. Set sal's objfile.
5885 (find_probe_by_pc): Return a bound_probe.
5886 (collect_probes): Return a VEC(bound_probe_s).
5887 (compare_probes): Update.
5888 (gen_ui_out_table_header_info): Change type of "probes"
5890 (info_probes_for_ops): Update.
5891 (get_probe_address): New function.
5892 (probe_safe_evaluate_at_pc): Update.
5893 * probe.h (struct probe_ops) <get_probe_address>: New field.
5894 <set_semaphore, clear_semaphore>: Add objfile parameter.
5895 (struct probe) <objfile>: Remove field.
5897 <address>: Update comment.
5898 (struct bound_probe): New.
5899 (find_probe_by_pc): Return a bound_probe.
5900 (get_probe_address): Declare.
5901 * solib-svr4.c (struct probe_and_action) <address>: New field.
5902 (hash_probe_and_action, equal_probe_and_action): Update.
5903 (register_solib_event_probe): Add address parameter.
5904 (solib_event_probe_at): Update.
5905 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5907 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5908 (stap_get_probe_address): New function.
5909 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5910 (compile_probe_arg): Update.
5911 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5913 (handle_stap_probe): Don't relocate the probe.
5914 (stap_relocate): Remove.
5915 (stap_gen_info_probes_table_values): Update.
5916 (stap_probe_ops): Remove stap_relocate.
5917 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5918 (debug_sym_probe_fns): Update.
5919 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5920 * symtab.c (init_sal): Use memset.
5921 * symtab.h (struct symtab_and_line) <objfile>: New field.
5922 * tracepoint.c (start_tracing, stop_tracing): Update.
5924 2014-03-03 Tom Tromey <tromey@redhat.com>
5926 * probe.h (parse_probes, find_probe_by_pc)
5927 (find_probes_in_objfile): Fix comments.
5929 2014-03-02 Doug Evans <xdje42@gmail.com>
5931 * infrun.c (handle_signal_stop): Replace test for
5932 TARGET_WAITKIND_STOPPED with an assert.
5934 2014-03-02 Doug Evans <xdje42@gmail.com>
5936 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5938 2014-03-02 Doug Evans <xdje42@gmail.com>
5940 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5942 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5944 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5946 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5948 * i386obsd-nat.c: Include "obsd-nat.h".
5949 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5951 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5953 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5955 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5957 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5959 * mips64obsd-nat.c: Include "obsd-nath".
5960 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5962 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5964 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5966 * amd64obsd-nat.c: Include "obsd-nat,h.
5967 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5969 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5971 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5973 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5974 (find_overload_match): Update call to find_oload_champ.
5975 (find_oload_champ_namespace_loop): Likewise
5977 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5979 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5981 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5982 * config/sparc/obsd64.mh: New file.
5983 * sparc64obsd-nat.c: New file.
5985 * obsd-nat.h: New file.
5986 * obsd-nat.c: New file.
5987 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5988 (ALLDEPFILES): Add obsd-nat.c.
5990 2014-02-28 Tom Tromey <tromey@redhat.com>
5992 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5993 * cli-out.h (cli_ui_out_impl): Now const.
5994 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5995 * ui-out.c (struct ui_out) <impl>: Now const.
5996 (default_ui_out_impl): Now const.
5997 (ui_out_new): Make 'impl' parameter const.
5998 * ui-out.h (ui_out_new): Update.
6000 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6002 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6004 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6006 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6008 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6010 Additional PR 8882 fix.
6011 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6013 2014-02-27 Pedro Alves <palves@redhat.com>
6015 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6018 2014-02-27 Pedro Alves <palves@redhat.com>
6021 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6022 * nat/linux-waitpid.c: Include string.h.
6023 (status_to_str): Moved here and made extern.
6024 * nat/linux-waitpid.h (status_to_str): New declaration.
6026 2014-02-27 Hui Zhu <hui@codesourcery.com>
6029 * infrun.c (ptid_match): Move ...
6030 * common/ptid.c (ptid_match): ... here.
6031 * inferior.h (ptid_match): Move ...
6032 * common/ptid.h (ptid_match): ... here.
6034 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6036 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6037 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6040 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6042 * obsd-tdep.c (obsd_auxv_parse): New function.
6043 (obsd_init_abi): Set auxv_parse.
6045 * gdbarch.sh (auxv_parse): New.
6046 * gdbarch.h: Regenerated.
6047 * gdbarch.c: Regenerated.
6048 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6050 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6052 * guile/scm-value.c (gdbscm_history_append_x): New function.
6053 (value_functions): Add it.
6055 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6057 * dwarf2read.c (attr_value_as_address): New function.
6058 (dwarf2_find_base_address, read_call_site_scope): Use
6059 attr_value_as_address in place of DW_ADDR.
6060 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6061 the low and high addresses. Slight rework of the handling
6062 of the high pc being a constant form, and limit it to
6063 DWARF verson 4 or higher.
6064 (dwarf2_record_block_ranges): Likewise.
6065 (read_partial_die): Likewise.
6066 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6068 2014-02-26 Tom Tromey <tromey@redhat.com>
6070 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6072 2014-02-26 Tom Tromey <tromey@redhat.com>
6074 * elfread.c (elf_read_minimal_symbols): Return early if
6075 minimal symbols have already been read. Add "ei" parameter.
6076 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6077 * minsyms.c (prim_record_minimal_symbol_full): Update.
6078 * objfiles.h (struct objstats) <n_minsyms>: Move...
6079 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6080 * symmisc.c (print_objfile_statistics): Update.
6082 2014-02-26 Tom Tromey <tromey@redhat.com>
6084 * elfread.c (elf_read_minimal_symbols): New function, from
6086 (elf_symfile_read): Call it.
6088 2014-02-26 Tom Tromey <tromey@redhat.com>
6090 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6091 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6092 (lookup_minimal_symbol_solib_trampoline)
6093 (lookup_minimal_symbol_by_pc_section_1)
6094 (lookup_minimal_symbol_and_objfile): Update.
6095 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6096 Don't allocate a minimal symbol if minsyms have already been read.
6097 (build_minimal_symbol_hash_tables): Update.
6098 (install_minimal_symbols): Do nothing if minsyms already read.
6099 Use the per-BFD obstack.
6100 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6101 * objfiles.c (allocate_objfile): Call
6102 terminate_minimal_symbol_table later.
6103 (have_minimal_symbols): Update.
6104 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6105 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6106 Move from struct objfile.
6107 <minsyms_read>: New field.
6108 (struct objfile) <msymbols, minimal_symbol_count,
6109 msymbol_hash, msymbol_demangled_hash>: Move.
6110 (ALL_OBJFILE_MSYMBOLS): Update.
6111 * symfile.c (read_symbols): Set minsyms_read.
6112 (reread_symbols): Update.
6113 * symmisc.c (dump_objfile, dump_msymbols): Update.
6115 2014-02-26 Tom Tromey <tromey@redhat.com>
6117 * minsyms.c (msymbols_sort): Remove.
6118 * minsyms.h (msymbols_sort): Remove.
6119 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6120 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6121 * elfread.c (elf_symtab_read): Don't add section offsets.
6122 * xcoffread.c (record_minimal_symbol): Don't add section offset
6123 to minimal symbol address.
6124 * somread.c (text_offset, data_offset): Remove.
6125 (som_symtab_read): Don't add section offsets to minimal symbol
6127 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6128 Don't add section offsets to minimal symbols.
6129 * coffread.c (coff_symtab_read): Don't add section offsets
6130 to minimal symbol addresses.
6131 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6132 to minimal symbol addresses.
6133 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6134 section offset to minimal symbol addresses.
6135 * mdebugread.c (parse_partial_symbols): Don't add section
6136 offset to minimal symbol addresses.
6137 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6138 offset to minimal symbol addresses.
6140 2014-02-26 Tom Tromey <tromey@redhat.com>
6142 * ada-lang.c (ada_main_name): Update.
6143 (ada_add_standard_exceptions): Update.
6144 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6145 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6146 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6147 * auxv.c (ld_so_xfer_auxv): Update.
6148 * avr-tdep.c (avr_scan_prologue): Update.
6149 * ax-gdb.c (gen_var_ref): Update.
6150 * blockframe.c (get_pc_function_start)
6151 (find_pc_partial_function_gnu_ifunc): Update.
6152 * breakpoint.c (create_overlay_event_breakpoint)
6153 (create_longjmp_master_breakpoint)
6154 (create_std_terminate_master_breakpoint)
6155 (create_exception_master_breakpoint): Update.
6156 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6157 * c-valprint.c (c_val_print): Update.
6158 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6159 * common/agent.c (agent_look_up_symbols): Update.
6160 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6161 * dwarf2loc.c (call_site_to_target_addr): Update.
6162 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6163 * elfread.c (elf_gnu_ifunc_record_cache)
6164 (elf_gnu_ifunc_resolve_by_got): Update.
6165 * findvar.c (default_read_var_value): Update.
6166 * frame.c (inside_main_func): Update.
6167 * frv-tdep.c (frv_frame_this_id): Update.
6168 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6169 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6171 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6172 (hppa_hpux_find_dummy_bpaddr): Update.
6173 * hppa-tdep.c (hppa_symbol_address): Update.
6174 * infcmd.c (until_next_command): Update.
6175 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6177 * linespec.c (minsym_found, add_minsym): Update.
6178 * linux-nat.c (get_signo): Update.
6179 * linux-thread-db.c (inferior_has_bug): Update.
6180 * m32c-tdep.c (m32c_return_value)
6181 (m32c_m16c_address_to_pointer): Update.
6182 * m32r-tdep.c (m32r_frame_this_id): Update.
6183 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6184 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6185 * maint.c (maintenance_translate_address): Update.
6186 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6187 (frob_address): New function.
6188 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6189 frob_address. Rename parameter to "pc_in".
6190 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6192 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6194 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6195 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6196 * objc-lang.c (find_objc_msgsend): Update.
6197 * objfiles.c (objfile_relocate1): Update.
6198 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6199 * p-valprint.c (pascal_val_print): Update.
6200 * parse.c (write_exp_msymbol): Update.
6201 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6202 (ppc_elfv2_skip_entrypoint): Update.
6203 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6204 * printcmd.c (build_address_symbolic, msym_info)
6205 (address_info): Update.
6206 * proc-service.c (ps_pglobal_lookup): Update.
6207 * psymtab.c (find_pc_sect_psymtab_closer)
6208 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6209 Change msymbol parameter to bound_minimal_symbol.
6210 * ravenscar-thread.c (get_running_thread_id): Update.
6211 * remote.c (remote_check_symbols): Update.
6212 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6214 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6215 * solib-dsbt.c (lm_base): Update.
6216 * solib-frv.c (lm_base, main_got): Update.
6217 * solib-irix.c (locate_base): Update.
6218 * solib-som.c (som_solib_create_inferior_hook)
6219 (link_map_start): Update.
6220 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6221 * solib-svr4.c (elf_locate_base, enable_break): Update.
6222 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6223 (flush_ea_cache): Update.
6224 * stabsread.c (define_symbol, scan_file_globals): Update.
6225 * stack.c (find_frame_funname): Update.
6226 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6227 (debug_qf_find_pc_sect_symtab): Update.
6228 * symfile.c (simple_read_overlay_table)
6229 (simple_overlay_update): Update.
6230 * symfile.h (struct quick_symbol_functions)
6231 <find_pc_sect_symtab>: Change type of msymbol to
6232 bound_minimal_symbol.
6233 * symmisc.c (dump_msymbols): Update.
6234 * symtab.c (find_pc_sect_symtab_via_partial)
6235 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6236 (search_symbols, print_msymbol_info): Update.
6237 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6238 (MSYMBOL_VALUE_ADDRESS): Redefine.
6239 (BMSYMBOL_VALUE_ADDRESS): New macro.
6240 * tracepoint.c (scope_info): Update.
6241 * tui/tui-disasm.c (tui_find_disassembly_address)
6242 (tui_get_begin_asm_address): Update.
6243 * valops.c (find_function_in_inferior): Update.
6244 * value.c (value_static_field, value_fn_field): Update.
6246 2014-02-26 Tom Tromey <tromey@redhat.com>
6248 * ada-lang.c (ada_update_initial_language): Update.
6249 (ada_main_name, ada_has_this_exception_support): Update.
6250 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6251 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6252 * arm-tdep.c (arm_skip_stub): Update.
6253 * auxv.c (ld_so_xfer_auxv): Update.
6254 * avr-tdep.c (avr_scan_prologue): Update.
6255 * ax-gdb.c (gen_var_ref): Update.
6256 * breakpoint.c (struct breakpoint_objfile_data)
6257 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6258 type to bound_minimal_symbol.
6259 (create_overlay_event_breakpoint)
6260 (create_longjmp_master_breakpoint)
6261 (create_std_terminate_master_breakpoint)
6262 (create_exception_master_breakpoint): Update.
6263 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6264 * c-exp.y (classify_name): Update.
6265 * coffread.c (coff_symfile_read): Update.
6266 * common/agent.c (agent_look_up_symbols): Update.
6267 * d-lang.c (d_main_name): Update.
6268 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6269 * dec-thread.c (enable_dec_thread): Update.
6270 * dwarf2loc.c (call_site_to_target_addr): Update.
6271 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6272 * eval.c (evaluate_subexp_standard): Update.
6273 * findvar.c (struct minsym_lookup_data) <result>: Change type
6274 to bound_minimal_symbol.
6276 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6277 * frame.c (inside_main_func): Update.
6278 * frv-tdep.c (frv_frame_this_id): Update.
6279 * gcore.c (call_target_sbrk): Update.
6280 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6281 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6283 * go-lang.c (go_main_name): Update.
6284 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6285 (hppa_hpux_find_import_stub_for_addr): Update.
6286 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6287 Update. Change return type.
6288 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6290 * jit.c (jit_breakpoint_re_set_internal): Update.
6291 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6293 * linux-nat.c (get_signo): Update.
6294 * linux-thread-db.c (inferior_has_bug): Update
6295 * m32c-tdep.c (m32c_return_value)
6296 (m32c_m16c_address_to_pointer): Update.
6297 * m32r-tdep.c (m32r_frame_this_id): Update.
6298 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6299 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6300 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6301 lookup_minimal_symbol. Change return type.
6302 (lookup_minimal_symbol): Remove.
6303 (lookup_bound_minimal_symbol): Update.
6304 (lookup_minimal_symbol_text): Change return type.
6305 (lookup_minimal_symbol_solib_trampoline): Change return type.
6306 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6307 (lookup_minimal_symbol_solib_trampoline): Change return type.
6308 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6309 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6310 (value_nsstring, find_imps): Update.
6311 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6312 * p-lang.c (pascal_main_name): Update.
6313 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6314 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6315 * proc-service.c (ps_pglobal_lookup): Update.
6316 * ravenscar-thread.c (get_running_thread_msymbol): Change
6318 (has_ravenscar_runtime, get_running_thread_id): Update.
6319 * remote.c (remote_check_symbols): Update.
6320 * sol-thread.c (ps_pglobal_lookup): Update.
6321 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6322 * solib-dsbt.c (lm_base): Update.
6323 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6325 * solib-irix.c (locate_base): Update.
6326 * solib-som.c (som_solib_create_inferior_hook)
6327 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6329 * solib-spu.c (spu_enable_break): Update.
6330 * solib-svr4.c (elf_locate_base, enable_break): Update.
6331 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6332 (flush_ea_cache): Update.
6333 * stabsread.c (define_symbol): Update.
6334 * symfile.c (simple_read_overlay_table): Update.
6335 * symtab.c (find_pc_sect_line): Update.
6336 * tracepoint.c (scope_info): Update.
6337 * tui-disasm.c (tui_get_begin_asm_address): Update.
6338 * value.c (value_static_field): Update.
6340 2014-02-26 Tom Tromey <tromey@redhat.com>
6342 * minsyms.c (prim_record_minimal_symbol_full): Use
6343 SET_MSYMBOL_VALUE_ADDRESS.
6344 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6345 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6346 SET_MSYMBOL_VALUE_ADDRESS.
6347 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6348 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6350 2014-02-26 Tom Tromey <tromey@redhat.com>
6352 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6353 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6354 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6355 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6356 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6357 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6358 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6359 * ada-lang.c (ada_main_name): Update.
6360 (ada_lookup_simple_minsym): Update.
6361 (ada_make_symbol_completion_list): Update.
6362 (ada_add_standard_exceptions): Update.
6363 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6364 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6365 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6366 * arm-tdep.c (skip_prologue_function): Update.
6367 (arm_skip_stack_protector, arm_skip_stub): Update.
6368 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6369 (arm_wince_skip_main_prologue): Update.
6370 * auxv.c (ld_so_xfer_auxv): Update.
6371 * avr-tdep.c (avr_scan_prologue): Update.
6372 * ax-gdb.c (gen_var_ref): Update.
6373 * block.c (call_site_for_pc): Update.
6374 * blockframe.c (get_pc_function_start): Update.
6375 (find_pc_partial_function_gnu_ifunc): Update.
6376 * breakpoint.c (create_overlay_event_breakpoint): Update.
6377 (create_longjmp_master_breakpoint): Update.
6378 (create_std_terminate_master_breakpoint): Update.
6379 (create_exception_master_breakpoint): Update.
6380 (resolve_sal_pc): Update.
6381 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6382 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6384 * c-valprint.c (c_val_print): Update.
6385 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6386 * coffread.c (coff_symfile_read): Update.
6387 * common/agent.c (agent_look_up_symbols): Update.
6388 * dbxread.c (find_stab_function_addr): Update.
6389 (end_psymtab): Update.
6390 * dwarf2loc.c (call_site_to_target_addr): Update.
6391 (func_verify_no_selftailcall): Update.
6392 (tailcall_dump): Update.
6393 (call_site_find_chain_1): Update.
6394 (dwarf_expr_reg_to_entry_parameter): Update.
6395 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6396 (elf_gnu_ifunc_resolve_by_got): Update.
6397 * f-valprint.c (info_common_command): Update.
6398 * findvar.c (read_var_value): Update.
6399 * frame.c (get_prev_frame_1): Update.
6400 (inside_main_func): Update.
6401 * frv-tdep.c (frv_skip_main_prologue): Update.
6402 (frv_frame_this_id): Update.
6403 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6404 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6405 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6406 (gnuv3_skip_trampoline): Update.
6407 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6408 (hppa64_hpux_in_solib_call_trampoline): Update.
6409 (hppa_hpux_skip_trampoline_code): Update.
6410 (hppa64_hpux_search_dummy_call_sequence): Update.
6411 (hppa_hpux_find_import_stub_for_addr): Update.
6412 (hppa_hpux_find_dummy_bpaddr): Update.
6413 * hppa-tdep.c (hppa_symbol_address)
6414 (hppa_lookup_stub_minimal_symbol): Update.
6415 * i386-tdep.c (i386_skip_main_prologue): Update.
6416 (i386_pe_skip_trampoline_code): Update.
6417 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6418 * infcall.c (get_function_name): Update.
6419 * infcmd.c (until_next_command): Update.
6420 * jit.c (jit_breakpoint_re_set_internal): Update.
6421 (jit_inferior_init): Update.
6422 * linespec.c (minsym_found): Update.
6423 (add_minsym): Update.
6424 * linux-fork.c (info_checkpoints_command): Update.
6425 * linux-nat.c (get_signo): Update.
6426 * linux-thread-db.c (inferior_has_bug): Update.
6427 * m32c-tdep.c (m32c_return_value): Update.
6428 (m32c_m16c_address_to_pointer): Update.
6429 (m32c_m16c_pointer_to_address): Update.
6430 * m32r-tdep.c (m32r_frame_this_id): Update.
6431 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6432 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6433 * maint.c (maintenance_translate_address): Update.
6434 * minsyms.c (add_minsym_to_hash_table): Update.
6435 (add_minsym_to_demangled_hash_table): Update.
6436 (msymbol_objfile): Update.
6437 (lookup_minimal_symbol): Update.
6438 (iterate_over_minimal_symbols): Update.
6439 (lookup_minimal_symbol_text): Update.
6440 (lookup_minimal_symbol_by_pc_name): Update.
6441 (lookup_minimal_symbol_solib_trampoline): Update.
6442 (lookup_minimal_symbol_by_pc_section_1): Update.
6443 (lookup_minimal_symbol_and_objfile): Update.
6444 (prim_record_minimal_symbol_full): Update.
6445 (compare_minimal_symbols): Update.
6446 (compact_minimal_symbols): Update.
6447 (build_minimal_symbol_hash_tables): Update.
6448 (install_minimal_symbols): Update.
6449 (terminate_minimal_symbol_table): Update.
6450 (find_solib_trampoline_target): Update.
6451 (minimal_symbol_upper_bound): Update.
6452 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6453 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6454 (mips_skip_pic_trampoline_code): Update.
6455 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6456 * objc-lang.c (selectors_info): Update.
6457 (classes_info): Update.
6458 (find_methods): Update.
6459 (find_imps): Update.
6460 (find_objc_msgsend): Update.
6461 * objfiles.c (objfile_relocate1): Update.
6462 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6463 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6464 * p-valprint.c (pascal_val_print): Update.
6465 * parse.c (write_exp_msymbol): Update.
6466 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6467 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6468 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6469 * printcmd.c (build_address_symbolic): Update.
6471 (address_info): Update.
6472 * proc-service.c (ps_pglobal_lookup): Update.
6473 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6474 (find_pc_sect_psymtab): Update.
6475 * python/py-framefilter.c (py_print_frame): Update.
6476 * ravenscar-thread.c (get_running_thread_id): Update.
6477 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6479 * remote.c (remote_check_symbols): Update.
6480 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6481 (rs6000_skip_trampoline_code): Update.
6482 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6483 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6484 * solib-dsbt.c (lm_base): Update.
6485 * solib-frv.c (lm_base): Update.
6487 * solib-irix.c (locate_base): Update.
6488 * solib-som.c (som_solib_create_inferior_hook): Update.
6489 (som_solib_desire_dynamic_linker_symbols): Update.
6490 (link_map_start): Update.
6491 * solib-spu.c (spu_enable_break): Update.
6492 (ocl_enable_break): Update.
6493 * solib-svr4.c (elf_locate_base): Update.
6494 (enable_break): Update.
6495 * spu-tdep.c (spu_get_overlay_table): Update.
6496 (spu_catch_start): Update.
6497 (flush_ea_cache): Update.
6498 * stabsread.c (define_symbol): Update.
6499 (scan_file_globals): Update.
6500 * stack.c (find_frame_funname): Update.
6501 (frame_info): Update.
6502 * symfile.c (simple_read_overlay_table): Update.
6503 (simple_overlay_update): Update.
6504 * symmisc.c (dump_msymbols): Update.
6505 * symtab.c (fixup_section): Update.
6506 (find_pc_sect_line): Update.
6507 (skip_prologue_sal): Update.
6508 (search_symbols): Update.
6509 (print_msymbol_info): Update.
6510 (rbreak_command): Update.
6511 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6512 (completion_list_objc_symbol): Update.
6513 (default_make_symbol_completion_list_break_on): Update.
6514 * tracepoint.c (scope_info): Update.
6515 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6516 (tui_get_begin_asm_address): Update.
6517 * valops.c (find_function_in_inferior): Update.
6518 * value.c (value_static_field): Update.
6519 (value_fn_field): Update.
6521 2014-02-26 Tom Tromey <tromey@redhat.com>
6523 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6524 bound minimal symbols. Move code that knows about minsym
6526 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6528 * minsyms.h (minimal_symbol_upper_bound): Declare.
6529 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6530 minimal_symbol_upper_bound.
6532 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6534 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6535 Use the type's name if its basic type does not have a tag.
6537 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6539 * dwarf2read.c (read_subrange_type): Add comment.
6541 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6543 * dwarf2read.c (update_enumeration_type_from_children): New
6544 function, mostly extracted from process_structure_scope.
6545 (read_enumeration_type): Call update_enumeration_type_from_children.
6546 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6547 and flag_flag_enum fields.
6549 2014-02-26 Pedro Alves <palves@redhat.com>
6551 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6552 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6553 to_xfer_partial method.
6555 2014-02-26 Pedro Alves <palves@redhat.com>
6557 * target.c (complete_target_initialization): Don't install
6558 default_xfer_partial as to_xfer_partial hook.
6560 (update_current_target): Don't INHERIT nor de_fault
6561 deprecated_xfer_memory. Delete de_fault macro.
6562 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6563 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6564 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6567 2014-02-26 Pedro Alves <palves@redhat.com>
6569 * go32-nat.c (my_write_child): New function.
6570 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6571 (go32_xfer_partial): New function.
6572 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6573 Instead install a to_xfer_partial hook.
6575 2014-02-26 Pedro Alves <palves@redhat.com>
6577 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6578 to_xfer_partial helper. Rewrite.
6579 (procfs_xfer_partial): New function.
6580 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6581 Install a to_xfer_partial hook.
6583 2014-02-26 Pedro Alves <palves@redhat.com>
6585 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6586 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6587 (m32r_xfer_partial): New function.
6588 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6589 Install a to_xfer_partial hook.
6591 2014-02-26 Pedro Alves <palves@redhat.com>
6593 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6595 (mips_xfer_partial): New function.
6596 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6597 hook. Install a to_xfer_partial hook.
6599 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6601 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6602 * gdbtypes.c (create_array_type_with_stride): New function,
6603 renaming create_array_type, but with an added parameter
6604 called "bit_stride".
6605 (create_array_type): Re-implement using
6606 create_array_type_with_stride.
6607 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6608 and DW_AT_bit_stride attributes.
6610 2014-02-26 Pedro Alves <palves@redhat.com>
6612 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6613 task-specific breakpoints.
6615 2014-02-25 Pedro Alves <palves@redhat.com>
6617 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6618 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6620 2014-02-25 Stan Shebs <stan@codesourcery.com>
6622 * defs.h: Annotate comments for Doxygen.
6624 2014-02-25 Tom Tromey <tromey@redhat.com>
6626 * target.h (target_ignore): Don't declare.
6627 * target.c (target_ignore): Remove.
6629 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6632 * auto-load.c (auto_load_objfile_script_1): Change filename to
6635 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6637 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6638 documentation. Adjust prototype to match the target_ops
6639 to_xfer_partial method. Adjust implementation accordingly.
6641 2014-02-25 Hui Zhu <hui@codesourcery.com>
6643 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6646 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6648 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6649 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6650 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6651 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6652 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6653 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6654 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6655 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6657 (rl78_register_type): Use a data pointer type for SP and
6658 new pseudo registers mentioned above. Use a 16 bit integer
6659 type for all other register pairs.
6660 (rl78_register_name, rl78_g10_register_name): Update for
6661 new pseudo registers.
6662 (rl78_pseudo_register_read): Likewise.
6663 (rl78_pseudo_register_write): Likewise.
6664 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6665 to the newly added pseudo registers.
6667 2014-02-24 Doug Evans <dje@google.com>
6669 * value.c (record_latest_value): Fix comment.
6670 * printcmd.c (print_command_1): Remove code to handle -1 return from
6671 record_latest_value.
6673 2014-02-24 Pedro Alves <palves@redhat.com>
6675 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6676 deprecated_xfer_memory hook.
6677 (procfs_xfer_partial): Call procfs_xfer_memory instead
6678 of the deprecated_xfer_memory target hook.
6679 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6682 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6684 * windows-nat.c (windows_xfer_shared_libraries): Return
6685 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6686 requested object is TARGET_OBJECT_LIBRARIES.
6688 2014-02-24 Yao Qi <yao@codesourcery.com>
6690 * target.h (enum target_xfer_status)
6691 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6692 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6694 * corefile.c (memory_error_message): User updated.
6695 * exec.c (section_table_read_available_memory): Likewise.
6696 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6697 * target.c (target_xfer_status_to_string): Likewise.
6698 (raw_memory_xfer_partial): Likewise.
6699 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6700 * valops.c (read_value_memory): Likewise.
6701 * exec.h: Update comments.
6703 2014-02-24 Yao Qi <yao@codesourcery.com>
6705 * target.c (target_xfer_status_to_string): Rename argument err
6707 * target.h (target_xfer_status_to_string): Update declaration.
6708 Replace target_xfer_error_to_string with
6709 target_xfer_status_to_string in comment.
6711 2014-02-24 Yao Qi <yao@codesourcery.com>
6713 * mips-linux-nat.c (super_close): Update its type.
6714 (mips_linux_close): Pass 'self' to super_close.
6716 2014-02-24 Yao Qi <yao@codesourcery.com>
6718 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6719 * corefile.c (read_memory): Adjusted.
6720 * target.c (target_write_with_progress): Adjusted.
6722 2014-02-23 Yao Qi <yao@codesourcery.com>
6726 2013-10-25 Yao Qi <yao@codesourcery.com>
6728 * remote.c (remote_traceframe_info): Return early if
6729 traceframe is not selected.
6731 2013-07-19 Yao Qi <yao@codesourcery.com>
6733 * target.c (update_current_target): Change the default action
6734 of 'to_traceframe_info' from tcomplain to return_zero.
6735 * target.h (struct target_ops) <to_traceframe_info>: Add more
6738 2014-02-23 Yao Qi <yao@codesourcery.com>
6740 * valops.c (read_value_memory): Rewrite it. Call
6741 target_xfer_partial in a loop.
6742 * exec.h (section_table_available_memory): Remove declaration.
6743 Move comments to ...
6744 * exec.c (section_table_available_memory): ... here. Make it
6747 2014-02-23 Yao Qi <yao@codesourcery.com>
6749 * exec.c (section_table_read_available_memory): New function.
6750 * exec.h (section_table_read_available_memory): Declare.
6751 * ctf.c (ctf_xfer_partial): Call
6752 section_table_read_available_memory.
6753 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6755 2014-02-23 Yao Qi <yao@codesourcery.com>
6757 * ctf.c (ctf_xfer_partial): Move code to ...
6758 * exec.c (exec_read_partial_read_only): ... it. New function.
6759 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6760 * tracefile.c: Include "exec.h".
6761 * exec.h (exec_read_partial_read_only): Declare.
6763 2014-02-23 Yao Qi <yao@codesourcery.com>
6765 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6766 (tfile_has_memory): Remove.
6767 (init_tfile_ops): Don't set fields to_has_all_memory and
6768 to_has_memory of tfile_ops.
6769 * tracefile.c (tracefile_has_all_memory): New function.
6770 (tracefile_has_memory): New function.
6771 (init_tracefile_ops): Initialize fields to_has_all_memory and
6772 to_has_memory of 'ops'.
6774 2014-02-23 Yao Qi <yao@codesourcery.com>
6776 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6777 (ctf_thread_alive, ctf_get_trace_status): Remove.
6778 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6780 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6781 (tfile_has_stack, tfile_has_registers): Remove.
6782 (tfile_thread_alive): Remove.
6783 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6785 * tracefile.c (tracefile_has_stack): New function.
6786 (tracefile_has_registers): New function.
6787 (tracefile_thread_alive): New function.
6788 (tracefile_get_trace_status): New function.
6789 (init_tracefile_ops): New function.
6790 * tracefile.h (init_tracefile_ops): Declare.
6792 2014-02-23 Yao Qi <yao@codesourcery.com>
6794 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6795 (O_LARGEFILE): Likewise.
6796 (tfile_ops): Likewise.
6797 (TRACE_HEADER_SIZE): Likewise.
6798 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6799 (cur_data_size): Likewise.
6800 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6801 (tfile_close, tfile_files_info): Likewise.
6802 (tfile_get_trace_status): Likewise.
6803 (tfile_get_tracepoint_status): Likewise.
6804 (tfile_get_traceframe_address): Likewise.
6805 (tfile_trace_find, match_blocktype): Likewise.
6806 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6807 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6808 (tfile_get_trace_state_variable_value): Likewise.
6809 (tfile_has_all_memory, tfile_has_memory): Likewise.
6810 (tfile_has_stack, tfile_has_registers): Likewise.
6811 (tfile_thread_alive, build_traceframe_info): Likewise.
6812 (tfile_traceframe_info, init_tfile_ops): Likewise.
6813 (_initialize_tracepoint): Don't call init_tfile_ops
6814 and add_target_with_completer.
6815 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6816 exec.h, completer.h and filenames.h.
6817 (_initialize_tracefile_tfile): New function.
6819 2014-02-23 Yao Qi <yao@codesourcery.com>
6821 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6823 (HFILES_NO_SRCDIR): Add tracefile.h.
6824 * ctf.c: Include "tracefile.h".
6825 * tracefile.h: New file.
6826 * tracefile.c: New file
6827 * tracefile-tfile.c: New file.
6828 * tracepoint.c: Include "tracefile.h".
6829 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6830 (stop_reason_names): Add const.
6831 (trace_file_writer_xfree): Move it to tracefile.c.
6832 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6833 (trace_save_ctf): Likewise.
6834 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6835 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6836 (tfile_write_header, tfile_write_regblock_type): Likewise.
6837 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6838 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6839 (tfile_write_raw_data, tfile_end): Likewise.
6840 (tfile_trace_file_writer_new): Likewise.
6841 (free_uploaded_tp): Make it extern.
6842 (free_uploaded_tsv): Make it extern.
6843 (_initialize_tracepoint): Move code to register command 'tsave'
6845 * tracepoint.h (stop_reason_names): Declare.
6846 (struct trace_frame_write_ops): Move it to tracefile.h.
6847 (struct trace_file_write_ops): Likewise.
6848 (struct trace_file_writer): Likewise.
6849 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6851 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6854 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6856 (get_cores_used_by_process): New parameter num_cores, use it.
6857 (linux_xfer_osdata_processes): Pass num_cores to it.
6858 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6861 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6863 * target.c (memory_xfer_partial): Fix length arg in call to
6864 breakpoint_xfer_memory.
6866 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6869 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6870 number comes after the + or - signs. Adjust length of register
6871 name to be extracted.
6873 2014-02-20 Tom Tromey <tromey@redhat.com>
6875 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6876 (ada_varobj_ops): Mark "extern".
6878 2014-02-20 Tom Tromey <tromey@redhat.com>
6880 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6882 2014-02-20 Doug Evans <xdje42@gmail.com>
6884 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6885 All callers updated.
6886 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6887 All callers updated.
6888 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6889 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6891 2014-02-20 lin zuojian <manjian2006@gmail.com>
6892 Joel Brobecker <brobecker@adacore.com>
6893 Doug Evans <xdje42@gmail.com>
6896 * dwarf2read.c (struct die_info): New member in_process.
6897 (reset_die_in_process): New function.
6898 (process_die): Set it at the start, reset when returning.
6899 (inherit_abstract_dies): Only call process_die if origin_child_die
6900 not already being processed.
6902 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6904 * windows-nat.c (handle_unload_dll): Add function documentation.
6905 (do_initial_windows_stuff): Add comment explaining why we wait
6906 until after inferior initialization has finished before
6907 processing all DLLs.
6909 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6911 * windows-nat.c (get_module_name): Delete.
6912 (windows_get_exec_module_filename): New function, mostly
6913 inspired from get_module_name.
6914 (windows_pid_to_exec_file): Replace call to get_module_name
6915 by call to windows_get_exec_module_filename.
6917 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6919 * windows-nat.c (handle_load_dll): Rewrite this function's
6920 introductory comment. Remove code using get_module_name
6921 to get the DLL's name.
6923 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6925 * windows-nat.c (get_windows_debug_event): Ignore
6926 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6927 if windows_initialization_done == 0.
6928 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6929 Adjust implementation to always load all DLLs.
6930 (do_initial_windows_stuff): Replace call to
6931 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6933 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6935 * windows-nat.c (_initialize_windows_nat): Deprecate the
6936 "dll-symbols" command. Turn the "add-shared-symbol-files"
6937 and "assf" aliases into commands, and deprecate them as well.
6938 * NEWS: Add entry explaining that "dll-symbols" and its two
6939 aliases are now deprecated.
6941 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6943 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6944 new-line in debug string. Remove trailing spaces.
6946 2014-02-19 Stan Shebs <stan@codesourcery.com>
6948 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6950 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6952 * NEWS: Add entry for the new feature
6953 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6956 2014-02-19 Stan Shebs <stan@codesourcery.com>
6958 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6960 2014-02-19 Pedro Alves <palves@redhat.com>
6962 * common/ptid.h (struct ptid): Mention that process_stratum
6963 targets should prefer ptid.lwp.
6965 2014-02-19 Pedro Alves <palves@redhat.com>
6967 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6968 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6969 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6970 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6971 store remote thread ids rather than ptid.tid.
6972 (_initialize_remote): Adjust.
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target.c (target_get_unwinder): Rewrite.
6977 (target_get_tailcall_unwinder): Rewrite.
6978 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6979 (record_btrace_to_get_tailcall_unwinder): New function.
6980 (init_record_btrace_ops): Update.
6981 * target.h (struct target_ops) <to_get_unwinder,
6982 to_get_tailcall_unwinder>: Now function pointers. Use
6983 TARGET_DEFAULT_RETURN.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6989 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6991 2014-02-19 Tom Tromey <tromey@redhat.com>
6993 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6995 * target-delegates.c: Rebuild.
6996 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6997 TARGET_DEFAULT_FUNC.
6998 * target.c (default_target_decr_pc_after_break): Rename from
6999 forward_target_decr_pc_after_break. Simplify.
7000 (target_decr_pc_after_break): Rely on delegation.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target.c (update_current_target): Do not INHERIT to_doc or
7005 to_magic. Do not de_fault to_open or to_close.
7007 2014-02-19 Tom Tromey <tromey@redhat.com>
7009 * gcore.h (objfile_find_memory_regions): Declare.
7010 * gcore.c (objfile_find_memory_regions): No longer static. Add
7012 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7013 * exec.c: Include gcore.h.
7014 (exec_set_find_memory_regions): Remove.
7015 (exec_find_memory_regions): Remove.
7016 (exec_do_find_memory_regions): Remove.
7017 (init_exec_ops): Update.
7018 * defs.h (exec_set_find_memory_regions): Remove.
7020 2014-02-19 Tom Tromey <tromey@redhat.com>
7022 * target-delegates.c: Rebuild.
7023 * target.h (struct target_ops) <to_extra_thread_info,
7024 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7025 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7026 not 0, in TARGET_DEFAULT_RETURN.
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target.c (complete_target_initialization): Remove casts. Use
7031 return_zero_has_execution.
7032 (return_zero): Add "ignore" argument.
7033 (return_zero_has_execution): New function.
7034 (init_dummy_target): Remove casts. Use
7035 return_zero_has_execution.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target.c (update_current_target): Update comments. Do not
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7046 * corelow.c (core_read_description): Delegate when needed.
7047 * remote.c (remote_read_description): Delegate when needed.
7048 * target-delegates.c: Rebuild.
7049 * target.c (target_read_description): Rewrite.
7050 * target.h (struct target_ops) <to_read_description>: Update
7051 comment. Use TARGET_DEFAULT_RETURN.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target-delegates.c: Rebuild.
7056 * target.c (update_current_target): Don't inherit or default
7058 (find_default_run_target): Check against delegate_can_run.
7059 * target.h (struct target_ops) <to_can_run>: Use
7060 TARGET_DEFAULT_RETURN.
7062 2014-02-19 Tom Tromey <tromey@redhat.com>
7064 * target-delegates.c: Rebuild.
7065 * target.c (target_disconnect): Unconditionally delegate.
7066 * target.h (struct target_ops) <to_disconnect>: Use
7067 TARGET_DEFAULT_NORETURN.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * record.c (record_stop): Unconditionally delegate.
7072 * target-delegates.c: Rebuild.
7073 * target.c (target_stop_recording): Unconditionally delegate.
7074 * target.h (struct target_ops) <to_stop_recording>: Use
7075 TARGET_DEFAULT_IGNORE.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target-delegates.c: Rebuild.
7080 * target.c (target_enable_btrace): Unconditionally delegate.
7081 * target.h (struct target_ops) <to_enable_btrace>: Use
7082 TARGET_DEFAULT_NORETURN.
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * target-delegates.c: Rebuild.
7087 * target.c (target_read_btrace): Unconditionally delegate.
7088 * target.h (struct target_ops) <to_read_btrace>: Use
7089 TARGET_DEFAULT_NORETURN.
7091 2014-02-19 Tom Tromey <tromey@redhat.com>
7093 * target-delegates.c: Rebuild.
7094 * target.c (target_teardown_btrace): Unconditionally delegate.
7095 * target.h (struct target_ops) <to_teardown_btrace>: Use
7096 TARGET_DEFAULT_NORETURN.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target-delegates.c: Rebuild.
7101 * target.c (target_disable_btrace): Unconditionally delegate.
7102 * target.h (struct target_ops) <to_disable_btrace>: Use
7103 TARGET_DEFAULT_NORETURN.
7105 2014-02-19 Tom Tromey <tromey@redhat.com>
7107 * target-delegates.c: Rebuild.
7108 * target.c (default_search_memory): New function.
7109 (simple_search_memory): Update comment.
7110 (target_search_memory): Unconditionally delegate.
7111 * target.h (struct target_ops) <to_search_memory>: Use
7112 TARGET_DEFAULT_FUNC.
7114 2014-02-19 Tom Tromey <tromey@redhat.com>
7116 * auxv.c (default_auxv_parse): No longer static.
7117 (target_auxv_parse): Unconditionally delegate.
7118 * auxv.h (default_auxv_parse): Declare.
7119 * target-delegates.c: Rebuild.
7120 * target.c: Include auxv.h.
7121 * target.h (struct target_ops) <to_auxv_parse>: Use
7122 TARGET_DEFAULT_FUNC.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target-delegates.c: Rebuild.
7127 * target.c (target_memory_map): Unconditionally delegate.
7128 * target.h (struct target_ops) <to_memory_map>: Use
7129 TARGET_DEFAULT_RETURN.
7131 2014-02-19 Tom Tromey <tromey@redhat.com>
7133 * target-delegates.c: Rebuild.
7134 * target.c (target_thread_alive): Unconditionally delegate.
7135 * target.h (struct target_ops) <to_thread_alive>: Use
7136 TARGET_DEFAULT_RETURN.
7138 2014-02-19 Tom Tromey <tromey@redhat.com>
7140 * target-delegates.c: Rebuild.
7141 * target.c (target_save_record): Unconditionally delegate.
7142 * target.h (struct target_ops) <to_save_record>: Use
7143 TARGET_DEFAULT_NORETURN.
7145 2014-02-19 Tom Tromey <tromey@redhat.com>
7147 * target-delegates.c: Rebuild.
7148 * target.c (target_delete_record): Unconditionally delegate.
7149 * target.h (struct target_ops) <to_delete_record>: Use
7150 TARGET_DEFAULT_NORETURN.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target-delegates.c: Rebuild.
7155 * target.c (target_record_is_replaying): Unconditionally
7157 * target.h (struct target_ops) <to_record_is_replaying>: Use
7158 TARGET_DEFAULT_RETURN.
7160 2014-02-19 Tom Tromey <tromey@redhat.com>
7162 * target-delegates.c: Rebuild.
7163 * target.c (target_goto_record_begin): Unconditionally delegate.
7164 * target.h (struct target_ops) <to_goto_record_begin>: Use
7165 TARGET_DEFAULT_NORETURN.
7167 2014-02-19 Tom Tromey <tromey@redhat.com>
7169 * target-delegates.c: Rebuild.
7170 * target.c (target_goto_record_end): Unconditionally delegate.
7171 * target.h (struct target_ops) <to_goto_record_end>: Use
7172 TARGET_DEFAULT_NORETURN.
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target-delegates.c: Rebuild.
7177 * target.c (target_goto_record): Unconditionally delegate.
7178 * target.h (struct target_ops) <to_goto_record>: Use
7179 TARGET_DEFAULT_NORETURN.
7181 2014-02-19 Tom Tromey <tromey@redhat.com>
7183 * target-delegates.c: Rebuild.
7184 * target.c (target_insn_history): Unconditionally delegate.
7185 * target.h (struct target_ops) <to_insn_history>: Use
7186 TARGET_DEFAULT_NORETURN.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * target-delegates.c: Rebuild.
7191 * target.c (target_insn_history_from): Unconditionally delegate.
7192 * target.h (struct target_ops) <to_insn_history_from>: Use
7193 TARGET_DEFAULT_NORETURN.
7195 2014-02-19 Tom Tromey <tromey@redhat.com>
7197 * target-delegates.c: Rebuild.
7198 * target.c (target_insn_history_range): Unconditionally delegate.
7199 * target.h (struct target_ops) <to_insn_history_range>: Use
7200 TARGET_DEFAULT_NORETURN.
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7204 * target-delegates.c: Rebuild.
7205 * target.c (target_call_history): Unconditionally delegate.
7206 * target.h (struct target_ops) <to_call_history>: Use
7207 TARGET_DEFAULT_NORETURN.
7209 2014-02-19 Tom Tromey <tromey@redhat.com>
7211 * target-delegates.c: Rebuild.
7212 * target.c (target_call_history_from): Unconditionally delegate.
7213 * target.h (struct target_ops) <to_call_history_from>: Use
7214 TARGET_DEFAULT_NORETURN.
7216 2014-02-19 Tom Tromey <tromey@redhat.com>
7218 * target-delegates.c: Rebuild.
7219 * target.c (target_call_history_range): Unconditionally delegate.
7220 * target.h (struct target_ops) <to_call_history_range>: Use
7221 TARGET_DEFAULT_NORETURN.
7223 2014-02-19 Tom Tromey <tromey@redhat.com>
7225 * target-delegates.c: Rebuild.
7226 * target.c (target_verify_memory): Unconditionally delegate.
7227 * target.h (struct target_ops) <to_verify_memory>: Use
7228 TARGET_DEFAULT_NORETURN.
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * target-delegates.c: Rebuild.
7233 * target.c (target_core_of_thread): Unconditionally delegate.
7234 * target.h (struct target_ops) <to_core_of_thread>: Use
7235 TARGET_DEFAULT_RETURN.
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target-delegates.c: Rebuild.
7240 * target.c (target_flash_done): Unconditionally delegate.
7241 * target.h (struct target_ops) <to_flash_done>: Use
7242 TARGET_DEFAULT_NORETURN.
7244 2014-02-19 Tom Tromey <tromey@redhat.com>
7246 * target-delegates.c: Rebuild.
7247 * target.c (target_flash_erase): Unconditionally delegate.
7248 * target.h (struct target_ops) <to_flash_erase>: Use
7249 TARGET_DEFAULT_NORETURN.
7251 2014-02-19 Tom Tromey <tromey@redhat.com>
7253 * target-delegates.c: Rebuild.
7254 * target.c (target_get_section_table): Unconditionally delegate.
7255 * target.h (struct target_ops) <to_get_section_table>: Use
7256 TARGET_DEFAULT_RETURN.
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target-delegates.c: Rebuild.
7261 * target.c (target_pid_to_str): Unconditionally delegate.
7262 (init_dummy_target): Don't initialize to_pid_to_str.
7263 (default_pid_to_str): Rename from dummy_pid_to_str.
7264 * target.h (struct target_ops) <to_pid_to_str>: Use
7265 TARGET_DEFAULT_FUNC.
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7269 * target-delegates.c: Rebuild.
7270 * target.c (target_find_new_threads): Unconditionally delegate.
7271 * target.h (struct target_ops) <to_find_new_threads>: Use
7272 TARGET_DEFAULT_RETURN.
7274 2014-02-19 Tom Tromey <tromey@redhat.com>
7276 * target-delegates.c: Rebuild.
7277 * target.c (target_program_signals): Unconditionally delegate.
7278 * target.h (struct target_ops) <to_program_signals>: Use
7279 TARGET_DEFAULT_IGNORE.
7281 2014-02-19 Tom Tromey <tromey@redhat.com>
7283 * target-delegates.c: Rebuild.
7284 * target.c (target_pass_signals): Unconditionally delegate.
7285 * target.h (struct target_ops) <to_pass_signals>: Use
7286 TARGET_DEFAULT_IGNORE.
7288 2014-02-19 Tom Tromey <tromey@redhat.com>
7290 * target-delegates.c: Rebuild.
7291 * target.c (default_mourn_inferior): New function.
7292 (target_mourn_inferior): Unconditionally delegate.
7293 * target.h (struct target_ops) <to_mourn_inferior>: Use
7294 TARGET_DEFAULT_FUNC.
7296 2014-02-19 Tom Tromey <tromey@redhat.com>
7298 * target-delegates.c: Rebuild.
7299 * target.c (default_follow_fork): New function.
7300 (target_follow_fork): Unconditionally delegate.
7301 * target.h (struct target_ops) <to_follow_fork>: Use
7302 TARGET_DEFAULT_FUNC.
7304 2014-02-19 Tom Tromey <tromey@redhat.com>
7306 * target-delegates.c: Rebuild.
7307 * target.c (target_kill): Unconditionally delegate.
7308 * target.h (struct target_ops) <to_kill>: Use
7309 TARGET_DEFAULT_NORETURN.
7311 2014-02-19 Tom Tromey <tromey@redhat.com>
7313 * target-delegates.c: Rebuild.
7314 * target.c (target_masked_watch_num_registers): Unconditionally
7316 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7317 Use TARGET_DEFAULT_RETURN.
7319 2014-02-19 Tom Tromey <tromey@redhat.com>
7321 * target-delegates.c: Rebuild.
7322 * target.c (target_remove_mask_watchpoint): Unconditionally
7324 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7325 TARGET_DEFAULT_RETURN.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target-delegates.c: Rebuild.
7330 * target.c (target_insert_mask_watchpoint): Unconditionally
7332 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7333 TARGET_DEFAULT_RETURN.
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target-delegates.c: Rebuild.
7338 * target.c (target_ranged_break_num_registers): Unconditionally
7340 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7341 Use TARGET_DEFAULT_RETURN.
7343 2014-02-19 Tom Tromey <tromey@redhat.com>
7345 * target-delegates.c: Rebuild.
7346 * target.c (target_fetch_registers): Unconditionally delegate.
7347 * target.h (struct target_ops) <to_fetch_registers>: Use
7348 TARGET_DEFAULT_NORETURN.
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * target-delegates.c: Rebuild.
7353 * target.c (update_current_target): Don't inherit or default
7355 * target.h (struct target_ops) <to_stop>: Use
7356 TARGET_DEFAULT_IGNORE.
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * target-delegates.c: Rebuild.
7361 * target.c (update_current_target): Don't inherit or default
7362 to_can_run_breakpoint_commands.
7363 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7364 Use TARGET_DEFAULT_RETURN.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target-delegates.c: Rebuild.
7369 * target.c (update_current_target): Don't inherit or default
7370 to_supports_evaluation_of_breakpoint_conditions.
7371 * target.h (struct target_ops)
7372 <to_supports_evaluation_of_breakpoint_conditions>: Use
7373 TARGET_DEFAULT_RETURN.
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7377 * target-delegates.c: Rebuild.
7378 * target.c (update_current_target): Don't inherit or default
7379 to_augmented_libraries_svr4_read.
7380 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7381 Use TARGET_DEFAULT_RETURN.
7383 2014-02-19 Tom Tromey <tromey@redhat.com>
7385 * target-delegates.c: Rebuild.
7386 * target.c (update_current_target): Don't inherit or default
7388 * target.h (struct target_ops) <to_can_use_agent>: Use
7389 TARGET_DEFAULT_RETURN.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target-delegates.c: Rebuild.
7394 * target.c (update_current_target): Don't inherit or default
7396 * target.h (struct target_ops) <to_use_agent>: Use
7397 TARGET_DEFAULT_NORETURN.
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7401 * target-delegates.c: Rebuild.
7402 * target.c (update_current_target): Don't inherit or default
7404 (return_null): Remove.
7405 * target.h (struct target_ops) <to_traceframe_info>: Use
7406 TARGET_DEFAULT_RETURN.
7408 2014-02-19 Tom Tromey <tromey@redhat.com>
7410 * target-delegates.c: Rebuild.
7411 * target.c (update_current_target): Don't inherit or default
7412 to_static_tracepoint_markers_by_strid.
7413 * target.h (struct target_ops)
7414 <to_static_tracepoint_markers_by_strid>: Use
7415 TARGET_DEFAULT_NORETURN.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target-delegates.c: Rebuild.
7420 * target.c (update_current_target): Don't inherit or default
7421 to_static_tracepoint_marker_at.
7422 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7423 Use TARGET_DEFAULT_RETURN.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target-delegates.c: Rebuild.
7428 * target.c (update_current_target): Don't inherit or default
7430 * target.h (struct target_ops) <to_set_permissions>: Use
7431 TARGET_DEFAULT_IGNORE.
7433 2014-02-19 Tom Tromey <tromey@redhat.com>
7435 * target-delegates.c: Rebuild.
7436 * target.c (update_current_target): Don't inherit or default
7438 * target.h (struct target_ops) <to_get_tib_address>: Use
7439 TARGET_DEFAULT_NORETURN.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target-delegates.c: Rebuild.
7444 * target.c (update_current_target): Don't inherit or default
7446 * target.h (struct target_ops) <to_set_trace_notes>: Use
7447 TARGET_DEFAULT_RETURN.
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target-delegates.c: Rebuild.
7452 * target.c (update_current_target): Don't initialize
7453 to_set_trace_buffer_size.
7454 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7455 TARGET_DEFAULT_IGNORE.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target-delegates.c: Rebuild.
7460 * target.c (update_current_target): Don't inherit or default
7461 to_set_circular_trace_buffer.
7462 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7463 TARGET_DEFAULT_IGNORE.
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7467 * target-delegates.c: Rebuild.
7468 * target.c (update_current_target): Don't inherit or default
7469 to_set_disconnected_tracing.
7470 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7471 TARGET_DEFAULT_IGNORE.
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * target-delegates.c: Rebuild.
7476 * target.c (update_current_target): Don't inherit or default
7477 to_get_min_fast_tracepoint_insn_len.
7478 (return_minus_one): Remove.
7479 * target.h (struct target_ops)
7480 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7484 * target-delegates.c: Rebuild.
7485 * target.c (update_current_target): Don't inherit or default
7486 to_get_raw_trace_data.
7487 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7488 TARGET_DEFAULT_NORETURN.
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7492 * target-delegates.c: Rebuild.
7493 * target.c (update_current_target): Don't inherit or default
7494 to_upload_trace_state_variables.
7495 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7496 Use TARGET_DEFAULT_RETURN.
7498 2014-02-19 Tom Tromey <tromey@redhat.com>
7500 * target-delegates.c: Rebuild.
7501 * target.c (update_current_target): Don't inherit or default
7502 to_upload_tracepoints.
7503 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7504 TARGET_DEFAULT_RETURN.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target-delegates.c: Rebuild.
7509 * target.c (update_current_target): Don't inherit or default
7511 * target.h (struct target_ops) <to_save_trace_data>: Use
7512 TARGET_DEFAULT_NORETURN.
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target-delegates.c: Rebuild.
7517 * target.c (update_current_target): Don't inherit or default
7518 to_get_trace_state_variable_value.
7519 * target.h (struct target_ops)
7520 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7522 2014-02-19 Tom Tromey <tromey@redhat.com>
7524 * target-delegates.c: Rebuild.
7525 * target.c (update_current_target): Don't inherit or default
7527 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target-delegates.c: Rebuild.
7532 * target.c (update_current_target): Don't inherit or default
7534 * target.h (struct target_ops) <to_trace_stop>: Use
7535 TARGET_DEFAULT_NORETURN.
7537 2014-02-19 Tom Tromey <tromey@redhat.com>
7539 * target-delegates.c: Rebuild.
7540 * target.c (update_current_target): Don't inherit or default
7541 to_get_tracepoint_status.
7542 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7543 TARGET_DEFAULT_NORETURN.
7545 2014-02-19 Tom Tromey <tromey@redhat.com>
7547 * target-delegates.c: Rebuild.
7548 * target.c (update_current_target): Don't inherit or default
7549 to_get_trace_status.
7550 * target.h (struct target_ops) <to_get_trace_status>: Use
7551 TARGET_DEFAULT_RETURN.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target-delegates.c: Rebuild.
7556 * target.c (update_current_target): Don't inherit or default
7558 * target.h (struct target_ops) <to_trace_start>: Use
7559 TARGET_DEFAULT_NORETURN.
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target-delegates.c: Rebuild.
7564 * target.c (update_current_target): Don't inherit or default
7565 to_trace_set_readonly_regions.
7566 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7567 Use TARGET_DEFAULT_NORETURN.
7569 2014-02-19 Tom Tromey <tromey@redhat.com>
7571 * target-delegates.c: Rebuild.
7572 * target.c (update_current_target): Don't inherit or default
7573 to_disable_tracepoint.
7574 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7575 TARGET_DEFAULT_NORETURN.
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target-delegates.c: Rebuild.
7580 * target.c (update_current_target): Don't inherit or default
7581 to_enable_tracepoint.
7582 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7583 TARGET_DEFAULT_NORETURN.
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7587 * target-delegates.c: Rebuild.
7588 * target.c (update_current_target): Don't inherit or default
7589 to_download_trace_state_variable.
7590 * target.h (struct target_ops) <to_download_trace_state_variable>:
7591 Use TARGET_DEFAULT_NORETURN.
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7595 * target-delegates.c: Rebuild.
7596 * target.c (update_current_target): Don't inherit or default
7597 to_can_download_tracepoint.
7598 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7599 TARGET_DEFAULT_RETURN.
7601 2014-02-19 Tom Tromey <tromey@redhat.com>
7603 * target-delegates.c: Rebuild.
7604 * target.c (update_current_target): Don't inherit or default
7605 to_download_tracepoint.
7606 * target.h (struct target_ops) <to_download_tracepoint>: Use
7607 TARGET_DEFAULT_NORETURN.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7614 * target.h (struct target_ops) <to_trace_init>: Use
7615 TARGET_DEFAULT_RETURN.
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7619 * target-delegates.c: Rebuild.
7620 * target.c (update_current_target): Don't inherit or default
7621 to_supports_string_tracing.
7622 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7623 TARGET_DEFAULT_RETURN.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_supports_enable_disable_tracepoint.
7630 * target.h (struct target_ops)
7631 <to_supports_enable_disable_tracepoint>: Use
7632 TARGET_DEFAULT_RETURN.
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target-delegates.c: Rebuild.
7637 * target.c (update_current_target): Don't inherit or default
7638 to_supports_multi_process.
7639 * target.h (struct target_ops) <to_supports_multi_process>: Use
7640 TARGET_DEFAULT_RETURN.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target-delegates.c: Rebuild.
7645 * target.c (update_current_target): Don't inherit or default
7646 to_get_ada_task_ptid.
7647 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7648 TARGET_DEFAULT_FUNC.
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7652 * target-delegates.c: Rebuild.
7653 * target.c (update_current_target): Don't inherit or default
7654 to_thread_architecture.
7655 * target.h (struct target_ops) <to_thread_architecture>: Use
7656 TARGET_DEFAULT_FUNC.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * target-delegates.c: Rebuild.
7661 * target.c (update_current_target): Don't inherit or default
7662 to_execution_direction.
7663 * target.h (struct target_ops) <to_execution_direction>: Use
7664 TARGET_DEFAULT_FUNC.
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7670 to_can_execute_reverse.
7671 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7672 TARGET_DEFAULT_RETURN.
7673 (target_can_execute_reverse): Unconditionally delegate.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't inherit or default
7680 (dummy_goto_bookmark): Remove.
7681 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7682 * target.h (struct target_ops) <to_goto_bookmark>: Use
7683 TARGET_DEFAULT_NORETURN.
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7687 * target-delegates.c: Rebuild.
7688 * target.c (update_current_target): Don't inherit or default
7690 (dummy_get_bookmark): Remove.
7691 (init_dummy_target): Don't inherit or default to_get_bookmark.
7692 * target.h (struct target_ops) <to_get_bookmark>: Use
7693 TARGET_DEFAULT_NORETURN
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7699 to_make_corefile_notes.
7700 (init_dummy_target): Don't initialize to_make_corefile_notes.
7701 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7702 TARGET_DEFAULT_FUNC.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7708 to_find_memory_regions.
7709 (init_dummy_target): Don't initialize to_find_memory_regions.
7710 * target.h (struct target_ops) <to_find_memory_regions>: Use
7711 TARGET_DEFAULT_FUNC.
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7715 * target-delegates.c: Rebuild.
7716 * target.c (update_current_target): Don't inherit or default
7718 * target.h (struct target_ops) <to_log_command>: Use
7719 TARGET_DEFAULT_IGNORE.
7720 (target_log_command): Unconditionally delegate.
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7724 * target-delegates.c: Rebuild.
7725 * target.c (update_current_target): Don't inherit or default
7726 to_pid_to_exec_file.
7727 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7728 TARGET_DEFAULT_RETURN.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target-delegates.c: Rebuild.
7733 * target.c (update_current_target): Don't inherit or default
7735 (target_thread_name): Unconditionally delegate.
7736 * target.h (struct target_ops) <to_thread_name>: Use
7737 TARGET_DEFAULT_RETURN.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't inherit or default
7743 to_extra_thread_info.
7744 * target.h (struct target_ops) <to_extra_thread_info>: Use
7745 TARGET_DEFAULT_RETURN.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7752 * target.h (struct target_ops) <to_has_exited>: Use
7753 TARGET_DEFAULT_RETURN..
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target-delegates.c: Rebuild.
7758 * target.c (update_current_target): Don't inherit or default
7759 to_set_syscall_catchpoint.
7760 (return_one): Remove.
7761 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7762 TARGET_DEFAULT_RETURN.
7764 2014-02-19 Tom Tromey <tromey@redhat.com>
7766 * target-delegates.c: Rebuild.
7767 * target.c (update_current_target): Don't inherit or default
7768 to_insert_exec_catchpoint.
7769 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7770 TARGET_DEFAULT_RETURN.
7772 2014-01-08 Tom Tromey <tromey@redhat.com>
7774 * target-delegates.c: Rebuild.
7775 * target.c (update_current_target): Don't inherit or default
7776 to_insert_exec_catchpoint.
7777 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7778 TARGET_DEFAULT_RETURN.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.c (update_current_target): Don't inherit or default
7784 to_remove_vfork_catchpoint.
7785 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7786 TARGET_DEFAULT_RETURN.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target-delegates.c: Rebuild.
7791 * target.c (update_current_target): Don't inherit or default
7792 to_insert_vfork_catchpoint.
7793 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7794 TARGET_DEFAULT_RETURN.
7796 2014-02-19 Tom Tromey <tromey@redhat.com>
7798 * target-delegates.c: Rebuild.
7799 * target.c (update_current_target): Don't inherit or default
7800 to_remove_fork_catchpoint.
7801 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7802 TARGET_DEFAULT_RETURN.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * target-delegates.c: Rebuild.
7807 * target.c (update_current_target): Don't inherit or default
7808 to_insert_fork_catchpoint.
7809 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7810 TARGET_DEFAULT_RETURN.
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7814 * target-delegates.c: Rebuild.
7815 * target.c (update_current_target): Don't inherit or default
7816 to_post_startup_inferior.
7817 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7818 TARGET_DEFAULT_IGNORE.
7820 2014-02-19 Tom Tromey <tromey@redhat.com>
7822 * target-delegates.c: Rebuild.
7823 * target.c (update_current_target): Don't inherit or default
7825 * target.h (struct target_ops) <to_load>: Use
7826 TARGET_DEFAULT_NORETURN.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * target-delegates.c: Rebuild.
7831 * target.c (update_current_target): Don't inherit or default
7833 * target.h (struct target_ops) <to_terminal_info>: Use
7834 TARGET_DEFAULT_FUNC.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target-delegates.c: Rebuild.
7839 * target.c (update_current_target): Don't inherit or default
7840 to_terminal_save_ours.
7841 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7842 TARGET_DEFAULT_IGNORE.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (update_current_target): Don't inherit or default
7849 * target.h (struct target_ops) <to_terminal_ours>: Use
7850 TARGET_DEFAULT_IGNORE.
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_terminal_ours_for_output.
7857 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7858 TARGET_DEFAULT_IGNORE.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target-delegates.c: Rebuild.
7863 * target.c (update_current_target): Don't inherit or default
7864 to_terminal_inferior.
7865 * target.h (struct target_ops) <to_terminal_inferior>: Use
7866 TARGET_DEFAULT_IGNORE.
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7873 * target.h (struct target_ops) <to_terminal_init>: Use
7874 TARGET_DEFAULT_IGNORE.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_can_accel_watchpoint_condition.
7881 * target.h (struct target_ops)
7882 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7884 2014-02-19 Tom Tromey <tromey@redhat.com>
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_region_ok_for_hw_watchpoint.
7889 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7890 Use TARGET_DEFAULT_FUNC.
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target-delegates.c: Rebuild.
7895 * target.c (update_current_target): Don't inherit or default
7896 to_watchpoint_addr_within_range.
7897 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7898 Use TARGET_DEFAULT_FUNC.
7900 2014-02-19 Tom Tromey <tromey@redhat.com>
7902 * target-delegates.c: Rebuild.
7903 * target.c (update_current_target): Don't inherit or default
7904 to_remove_watchpoint.
7905 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7906 TARGET_DEFAULT_NORETURN.
7908 2014-02-19 Tom Tromey <tromey@redhat.com>
7910 * target-delegates.c: Rebuild.
7911 * target.c (update_current_target): Don't inherit or default
7912 to_insert_watchpoint.
7913 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7914 TARGET_DEFAULT_RETURN.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7920 to_remove_hw_breakpoint.
7921 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7922 TARGET_DEFAULT_RETURN.
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target-delegates.c: Rebuild.
7927 * target.c (update_current_target): Don't inherit or default
7928 to_insert_hw_breakpoint.
7929 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7930 TARGET_DEFAULT_RETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (update_current_target): Don't inherit or default
7936 to_can_use_hw_breakpoint.
7937 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7938 TARGET_DEFAULT_RETURN.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * target-delegates.c: Rebuild.
7943 * target.c (update_current_target): Don't inherit or default
7945 * target.h (struct target_ops) <to_files_info>: Use
7946 TARGET_DEFAULT_IGNORE.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target-delegates.c: Rebuild.
7951 * target.c (update_current_target): Don't inherit or default
7953 * target.h (struct target_ops) <to_store>: Use
7954 TARGET_DEFAULT_NORETURN.
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7958 * target-delegates.c: Rebuild.
7959 * target.c (update_current_target): Don't inherit or default
7961 * target.h (struct target_ops) <to_post_attach>: Use
7962 TARGET_DEFAULT_IGNORE.
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7969 (default_rcmd): New function.
7970 (do_monitor_command): Unconditionally delegate.
7971 * target.h (struct target_ops) <to_rmcd>: Use
7972 TARGET_DEFAULT_FUNC.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target-delegates.c: Rebuild.
7977 * target.c (init_dummy_target): Don't initialize to_attach.
7978 (target_attach): Unconditionally delegate.
7979 * target.h (struct target_ops) <to_attach>: Use
7980 TARGET_DEFAULT_FUNC.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_detach): Unconditionally delegate.
7986 (init_dummy_target): Don't initialize to_detach.
7987 * target.h (struct target_ops) <to_detach>: Use
7988 TARGET_DEFAULT_IGNORE.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7994 (target_augmented_libraries_svr4_read): Add argument.
7995 * target.c (update_current_target): Update.
7996 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target.h (struct target_ops) <to_call_history_range>: Add
8003 * target.c (target_call_history_range): Add argument.
8004 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8006 (record_btrace_call_history_from): Update.
8008 2014-02-19 Tom Tromey <tromey@redhat.com>
8010 * target.h (struct target_ops) <to_call_history_from>: Add
8012 * target.c (target_call_history_from): Add argument.
8013 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target.h (struct target_ops) <to_call_history>: Add argument.
8019 * target.c (target_call_history): Add argument.
8020 * record-btrace.c (record_btrace_call_history): Add 'self'
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target.h (struct target_ops) <to_insn_history_range>: Add
8027 * target.c (target_insn_history_range): Add argument.
8028 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8030 (record_btrace_insn_history_from): Update.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target.h (struct target_ops) <to_insn_history_from>: Add
8036 * target.c (target_insn_history_from): Add argument.
8037 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target.h (struct target_ops) <to_insn_history>: Add argument.
8043 * target.c (target_insn_history): Add argument.
8044 * record-btrace.c (record_btrace_insn_history): Add 'self'
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target.h (struct target_ops) <to_goto_record>: Add argument.
8050 * target.c (target_goto_record): Add argument.
8051 * record-full.c (record_full_goto): Add 'self' argument.
8052 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8057 * target.c (target_goto_record_end): Add argument.
8058 * record-full.c (record_full_goto_end): Add 'self' argument.
8059 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target.h (struct target_ops) <to_goto_record_begin>: Add
8065 * target.c (target_goto_record_begin): Add argument.
8066 * record-full.c (record_full_goto_begin): Add 'self' argument.
8067 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target.h (struct target_ops) <to_record_is_replaying>: Add
8074 * target.c (target_record_is_replaying): Add argument.
8075 * record-full.c (record_full_is_replaying): Add 'self' argument.
8076 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8078 (record_btrace_xfer_partial, record_btrace_store_registers)
8079 (record_btrace_prepare_to_store, record_btrace_resume)
8080 (record_btrace_wait, record_btrace_decr_pc_after_break)
8081 (record_btrace_find_new_threads, record_btrace_thread_alive):
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target.h (struct target_ops) <to_delete_record>: Add argument.
8087 * target.c (target_delete_record): Add argument.
8088 * record-full.c (record_full_delete): Add 'self' argument.
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target.h (struct target_ops) <to_save_record>: Add argument.
8093 * target.c (target_save_record): Add argument.
8094 * record-full.c (record_full_save): Add 'self' argument.
8095 (record_full_save): Add 'self' argument.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target.h (struct target_ops) <to_info_record>: Add argument.
8100 * target.c (target_info_record): Add argument.
8101 * record.c (info_record_command): Add argument.
8102 * record-full.c (record_full_info): Add 'self' argument.
8103 * record-btrace.c (record_btrace_info): Add 'self' argument.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8108 * target.c (target_stop_recording): Add argument.
8109 * record.c (record_stop): Add argument.
8110 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8115 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8116 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8117 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8119 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8120 (_initialize_amd64_linux_nat): Use it.
8121 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8122 (_initialize_i386_linux_nat): Use it.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8127 * target.c (target_teardown_btrace): Add argument.
8128 * remote.c (remote_teardown_btrace): Add 'self' argument.
8129 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8131 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8137 * target.c (target_disable_btrace): Add argument.
8138 * remote.c (remote_disable_btrace): Add 'self' argument.
8139 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8141 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8147 * target.c (target_enable_btrace): Add argument.
8148 * remote.c (remote_enable_btrace): Add 'self' argument.
8149 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8151 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8157 (target_can_use_agent): Add argument.
8158 * target.c (update_current_target): Update.
8159 * remote.c (remote_can_use_agent): Add 'self' argument.
8160 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target.h (struct target_ops) <to_use_agent>: Add argument.
8165 (target_use_agent): Add argument.
8166 * target.c (update_current_target): Update.
8167 * remote.c (remote_use_agent): Add 'self' argument.
8168 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8173 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8174 (target_traceframe_info): Add argument.
8175 * target.c (update_current_target): Update.
8176 * remote.c (remote_traceframe_info): Add 'self' argument.
8177 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target.h (target_static_tracepoint_markers_by_strid): Add
8183 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8185 * target.c (update_current_target): Update.
8186 * remote.c (struct target_ops)
8187 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8188 * linux-nat.c (struct target_ops)
8189 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8195 (target_static_tracepoint_marker_at): Add argument.
8196 * target.c (update_current_target): Update.
8197 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8203 (target_set_permissions): Add argument.
8204 * target.c (update_current_target): Update.
8205 * remote.c (remote_set_permissions): Add 'self' argument.
8206 (remote_start_remote): Update.
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8210 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8211 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8212 (target_get_tib_address): Add argument.
8213 * target.c (update_current_target): Update.
8214 * remote.c (remote_get_tib_address): Add 'self' argument.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8219 (target_set_trace_notes): Add argument.
8220 * target.c (update_current_target): Update.
8221 * remote.c (remote_set_trace_notes): Add 'self' argument.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8227 (target_set_trace_buffer_size): Add argument.
8228 * target.c (update_current_target): Update.
8229 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8235 (target_set_circular_trace_buffer): Add argument.
8236 * target.c (update_current_target): Update.
8237 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8244 (target_set_disconnected_tracing): Add argument.
8245 * target.c (update_current_target): Update.
8246 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target.h (struct target_ops)
8251 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8252 (target_get_min_fast_tracepoint_insn_len): Add argument.
8253 * target.c (update_current_target): Update.
8254 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8261 (target_get_raw_trace_data): Add argument.
8262 * target.c (update_current_target): Update.
8263 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8269 (target_upload_trace_state_variables): Add argument.
8270 * target.c (update_current_target): Update.
8271 * remote.c (remote_upload_trace_state_variables): Add 'self'
8273 (remote_start_remote): Update.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8279 (target_upload_tracepoints): Add argument.
8280 * target.c (update_current_target): Update.
8281 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8282 (remote_start_remote): Update.
8284 2014-02-19 Tom Tromey <tromey@redhat.com>
8286 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8287 (target_save_trace_data): Add argument.
8288 * target.c (update_current_target): Update.
8289 * remote.c (remote_save_trace_data): Add 'self' argument.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8295 * target.h (struct target_ops)
8296 <to_get_trace_state_variable_value>: Add argument.
8297 (target_get_trace_state_variable_value): Add argument.
8298 * target.c (update_current_target): Update.
8299 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8301 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8306 * target.h (struct target_ops) <to_trace_find>: Add argument.
8307 (target_trace_find): Add argument.
8308 * target.c (update_current_target): Update.
8309 * remote.c (remote_trace_find): Add 'self' argument.
8310 * ctf.c (ctf_trace_find): Add 'self' argument.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8315 (target_trace_stop): Add argument.
8316 * target.c (update_current_target): Update.
8317 * remote.c (remote_trace_stop): Add 'self' argument.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8322 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8324 (target_get_tracepoint_status): Add argument.
8325 * target.c (update_current_target): Update.
8326 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8330 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8331 * target.h (struct target_ops) <to_get_trace_status>: Add
8333 (target_get_trace_status): Add argument.
8334 * target.c (update_current_target): Update.
8335 * remote.c (remote_get_trace_status): Add 'self' argument.
8336 (remote_start_remote, remote_can_download_tracepoint): Update.
8337 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target.h (struct target_ops) <to_trace_start>: Add argument.
8342 (target_trace_start): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_trace_start): Add 'self' argument.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8350 (target_trace_set_readonly_regions): Add argument.
8351 * target.c (update_current_target): Update.
8352 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8359 (target_disable_tracepoint): Add argument.
8360 * target.c (update_current_target): Update.
8361 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8367 (target_enable_tracepoint): Add argument.
8368 * target.c (update_current_target): Update.
8369 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target.h (struct target_ops) <to_download_trace_state_variable>:
8375 (target_download_trace_state_variable): Add argument.
8376 * target.c (update_current_target): Update.
8377 * remote.c (remote_download_trace_state_variable): Add 'self'
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8384 (target_can_download_tracepoint): Add argument.
8385 * target.c (update_current_target): Update.
8386 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target.h (struct target_ops) <to_download_tracepoint>: Add
8392 (target_download_tracepoint): Add argument.
8393 * target.c (update_current_target): Update.
8394 * remote.c (remote_download_tracepoint): Add 'self' argument.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target.h (struct target_ops) <to_trace_init>: Add argument.
8399 (target_trace_init): Add argument.
8400 * target.c (update_current_target): Update.
8401 * remote.c (remote_trace_init): Add 'self' argument.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8406 * target.c (target_fileio_readlink): Add argument.
8407 * remote.c (remote_hostio_readlink): Add 'self' argument.
8408 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8413 * target.c (target_fileio_unlink): Add argument.
8414 * remote.c (remote_hostio_unlink): Add 'self' argument.
8415 (remote_file_delete): Update.
8416 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8421 * target.c (target_fileio_close): Add argument.
8422 * remote.c (remote_hostio_close): Add 'self' argument.
8423 (remote_hostio_close_cleanup): Update.
8424 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8426 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8431 * target.c (target_fileio_pread): Add argument.
8432 * remote.c (remote_hostio_pread): Add 'self' argument.
8433 (remote_bfd_iovec_pread, remote_file_get): Update.
8434 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8438 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8439 * target.c (target_fileio_pwrite): Add argument.
8440 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8441 (remote_file_put): Update.
8442 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8447 * target.c (target_fileio_open): Add argument.
8448 * remote.c (remote_hostio_open): Add 'self' argument.
8449 (remote_bfd_iovec_open): Add 'self' argument.
8450 (remote_file_put): Add 'self' argument.
8451 (remote_file_get): Add 'self' argument.
8452 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8454 2014-02-19 Tom Tromey <tromey@redhat.com>
8456 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8458 (target_can_run_breakpoint_commands): Add argument.
8459 * target.c (update_current_target): Update.
8460 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8462 (remote_insert_breakpoint): Add 'self' argument.
8463 (remote_insert_hw_breakpoint): Add 'self' argument.
8464 (remote_can_run_breakpoint_commands): Add 'self' argument.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target.h (struct target_ops)
8469 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8470 (target_supports_evaluation_of_breakpoint_conditions): Add
8472 * target.c (update_current_target): Update.
8473 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8475 (remote_insert_breakpoint): Add 'self' argument.
8476 (remote_insert_hw_breakpoint): Add 'self' argument.
8477 (remote_supports_cond_breakpoints): Add 'self' argument.
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8481 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8483 (target_supports_string_tracing): Add argument.
8484 * target.c (update_current_target): Update.
8485 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target.h (struct target_ops)
8490 <to_supports_disable_randomization>: Add argument.
8491 * target.c (find_default_supports_disable_randomization): Add
8493 (target_supports_disable_randomization): Add argument.
8494 (find_default_supports_disable_randomization): Add 'self'
8496 * remote.c (extended_remote_supports_disable_randomization): Add
8498 (remote_supports_disable_randomization): Add 'self' argument.
8499 (extended_remote_create_inferior): Update.
8500 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target.h (struct target_ops)
8506 <to_supports_enable_disable_tracepoint>: Add argument.
8507 (target_supports_enable_disable_tracepoint): Add argument.
8508 * target.c (update_current_target): Update.
8509 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target.h (struct target_ops) <to_supports_multi_process>: Add
8516 (target_supports_multi_process): Add argument.
8517 * target.c (update_current_target): Update.
8518 * remote.c (remote_supports_multi_process): Add 'self' argument.
8519 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8521 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target.h (struct target_ops) <to_execution_direction>: Add
8528 (target_execution_direction): Add argument.
8529 * target.c (default_execution_direction): Add 'self' argument.
8530 * record-full.c (record_full_execution_direction): Add 'self'
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8537 (target_can_execute_reverse): Add argument.
8538 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8539 * record-full.c (record_full_can_execute_reverse): Add 'self'
8541 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8547 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8549 (target_get_ada_task_ptid): Add argument.
8550 * target.c (update_current_target): Update.
8551 (default_get_ada_task_ptid): Add 'self' argument.
8552 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8553 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8554 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8556 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8558 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8560 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8562 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8563 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8569 (target_goto_bookmark): Add argument.
8570 * target.c (dummy_goto_bookmark): Add 'self' argument.
8571 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8576 (target_get_bookmark): Add argument.
8577 * target.c (dummy_get_bookmark): Add 'self' argument.
8578 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8584 (target_make_corefile_notes): Add argument.
8585 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8586 * procfs.c (procfs_make_note_section): Add 'self' argument.
8587 (procfs_make_note_section): Add 'self' argument.
8588 (procfs_make_note_section): Add 'self' argument.
8589 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8591 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8592 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8593 * exec.c (exec_make_note_section): Add 'self' argument.
8594 (exec_make_note_section): Add 'self' argument.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target.h (struct target_ops) <to_find_memory_regions>: Add
8600 (target_find_memory_regions): Add argument.
8601 * target.c (dummy_find_memory_regions): Add 'self' argument.
8602 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8603 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8604 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8605 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8606 * exec. (exec_do_find_memory_regions): New global.
8607 (exec_set_find_memory_regions): Rewrite.
8608 (exec_find_memory_regions): New function.
8609 (init_exec_ops): Use exec_find_memory_regions.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target.h (struct target_ops) <to_supports_non_stop>: Add
8615 * target.c (find_default_supports_non_stop): Add argument.
8616 (target_supports_non_stop): Add argument.
8617 (find_default_supports_non_stop): Add 'self' argument.
8618 * remote.c (remote_supports_non_stop): Add 'self' argument.
8619 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target.h (struct target_ops) <to_log_command>: Add argument.
8624 (target_log_command): Add argument.
8625 * serial.h (serial_log_command): Add 'self' argument.
8626 * serial.c (serial_log_command): Add 'self' argument.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8631 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8633 (target_pid_to_exec_file): Add argument.
8634 * target.c (debug_to_pid_to_exec_file): Add argument.
8635 (update_current_target): Update.
8636 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8637 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8638 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8639 (linux_handle_extended_wait): Update.
8640 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8641 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8642 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8643 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target.h (struct target_ops) <to_rcmd>: Add argument.
8648 (target_rcmd): Add argument.
8649 * target.c (debug_to_rcmd): Add argument.
8650 (update_current_target, do_monitor_command): Update.
8651 * remote.c (remote_rcmd): Add 'self' argument.
8652 * monitor.c (monitor_rcmd): Add 'self' argument.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * windows-nat.c (windows_stop): Add 'self' argument.
8657 * target.h (struct target_ops) <to_stop>: Add argument.
8658 * target.c (target_stop): Add argument.
8659 (debug_to_stop): Add argument.
8660 (update_current_target): Update.
8661 * remote.c (remote_stop): Add 'self' argument.
8662 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8663 (gdbsim_cntrl_c): Update.
8664 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8665 * procfs.c (procfs_stop): Add 'self' argument.
8666 * nto-procfs.c (procfs_stop): Add 'self' argument.
8667 * monitor.c (monitor_stop): Add 'self' argument.
8668 (monitor_open): Update.
8669 * linux-nat.c (linux_nat_stop): Add argument.
8670 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8671 * gnu-nat.c (gnu_stop): Add 'self' argument.
8672 * darwin-nat.c (darwin_stop): Add 'self' argument.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target.h (struct target_ops) <to_thread_name>: Add argument.
8677 * target.c (target_thread_name): Add argument.
8678 (update_current_target): Update.
8679 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target.h (struct target_ops) <to_extra_thread_info>: Add
8685 (target_extra_thread_info): Add argument.
8686 * target.c (update_current_target): Update.
8687 * remote.c (remote_threads_extra_info): Add 'self' argument.
8688 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8690 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8691 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8692 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8694 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8696 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8698 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target.h (struct target_ops) <to_program_signals>: Add argument.
8704 * target.c (target_program_signals): Add argument.
8705 * remote.c (remote_program_signals): Add 'self' argument.
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8709 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8710 * target.c (target_pass_signals): Add argument.
8711 * remote.c (remote_pass_signals): Add 'self' argument.
8712 (remote_start_remote): Update.
8713 * procfs.c (procfs_pass_signals): Add 'self' argument.
8714 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8715 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8716 (linux_nat_create_inferior, linux_nat_attach): Update.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * windows-nat.c (windows_can_run): Add 'self' argument.
8721 * target.h (struct target_ops) <to_can_run>: Add argument.
8722 (target_can_run): Add argument.
8723 * target.c (debug_to_can_run): Add argument.
8724 (update_current_target): Update.
8725 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8726 * inf-child.c (inf_child_can_run): Add 'self' argument.
8727 * go32-nat.c (go32_can_run): Add 'self' argument.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target.h (struct target_ops) <to_has_exited>: Add argument.
8732 (target_has_exited): Add argument.
8733 * target.c (debug_to_has_exited): Add argument.
8734 (update_current_target): Update.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8740 (target_set_syscall_catchpoint): Add argument.
8741 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8743 * target.c (update_current_target): Update.
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8749 (target_remove_exec_catchpoint): Add argument.
8750 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8751 (update_current_target): Update.
8752 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8759 (target_insert_exec_catchpoint): Add argument.
8760 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8761 (update_current_target): Update.
8762 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8769 (target_remove_vfork_catchpoint): Add argument.
8770 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8771 (update_current_target): Update.
8772 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8779 (target_insert_vfork_catchpoint): Add argument.
8780 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8781 (update_current_target): Update.
8782 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8789 (target_remove_fork_catchpoint): Add argument.
8790 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8791 (update_current_target): Update.
8792 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8797 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8799 (target_insert_fork_catchpoint): Add argument.
8800 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8801 (update_current_target): Update.
8802 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8809 (target_post_startup_inferior): Add argument.
8810 * target.c (debug_to_post_startup_inferior): Add argument.
8811 (update_current_target): Update.
8812 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8814 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8816 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8818 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8820 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8822 (super_post_startup_inferior): Likewise.
8823 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8825 (super_post_startup_inferior): Likewise.
8826 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8827 Add 'self' argument.
8828 (super_post_startup_inferior): Likewise.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target.h (struct target_ops) <to_load>: Add argument.
8833 * target.c (target_load): Add argument.
8834 (debug_to_load): Add argument.
8835 (update_current_target): Update.
8836 * remote.c (remote_load): Add 'self' argument.
8837 * remote-sim.c (gdbsim_load): Add 'self' argument.
8838 * remote-mips.c (mips_load): Add 'self' argument.
8839 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8840 * monitor.c (monitor_load): Add 'self' argument.
8841 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8846 (target_terminal_info): Add argument.
8847 * target.c (debug_to_terminal_info): Add argument.
8848 (default_terminal_info): Likewise.
8849 * inflow.c (child_terminal_info): Add 'self' argument.
8850 * inferior.h (child_terminal_info): Add 'self' argument.
8851 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8857 (target_terminal_save_ours): Add argument.
8858 * target.c (debug_to_terminal_save_ours): Add argument.
8859 (update_current_target): Update.
8860 * inflow.c (terminal_save_ours): Add 'self' argument.
8861 * inferior.h (terminal_save_ours): Add 'self' argument.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8866 (target_terminal_ours): Add argument.
8867 * target.c (debug_to_terminal_ours): Add argument.
8868 (update_current_target): Update.
8869 * remote.c (remote_terminal_ours): Add 'self' argument.
8870 (remote_close): Update.
8871 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8872 * inflow.c (terminal_ours): Add 'self' argument.
8873 * inferior.h (terminal_ours): Add 'self' argument.
8874 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8876 2014-02-19 Pedro Alves <palves@redhat.com>
8877 Tom Tromey <tromey@redhat.com>
8879 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8881 (target_terminal_ours_for_output): Add argument.
8882 * target.c (debug_to_terminal_ours_for_output): Add argument.
8883 (update_current_target): Update.
8884 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8885 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8886 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target.h (struct target_ops) <to_terminal_inferior>: Add
8892 * target.c (target_terminal_inferior): Add argument.
8893 (update_current_target): Update.
8894 * remote.c (remote_terminal_inferior): Add 'self' argument.
8895 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8896 * inflow.c (terminal_inferior): Add 'self' argument.
8897 * inferior.h (terminal_inferior): Add 'self' argument.
8898 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8899 (go32_terminal_inferior): Add 'self' argument.
8901 2014-02-19 Tom Tromey <tromey@redhat.com>
8903 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8904 (target_terminal_init): Add argument.
8905 * target.c (debug_to_terminal_init): Add argument.
8906 (update_current_target): Update.
8907 * inflow.c (terminal_init_inferior): Add 'self' argument.
8908 * inferior.h (terminal_init_inferior): Add 'self' argument.
8909 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8910 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target.h (struct target_ops)
8915 <to_can_accel_watchpoint_condition>: Add argument.
8916 (target_can_accel_watchpoint_condition): Add argument.
8917 * target.c (debug_to_can_accel_watchpoint_condition): Add
8919 (update_current_target): Update.
8920 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8927 (target_region_ok_for_hw_watchpoint): Add argument.
8928 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8929 (default_region_ok_for_hw_watchpoint): Add argument.
8930 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8931 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8933 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8935 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8937 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8939 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8941 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8943 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8944 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8946 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8947 Add 'self' argument.
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8951 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8953 (target_insert_watchpoint): Add argument.
8954 * target.c (debug_to_insert_watchpoint): Add argument.
8955 (update_current_target): Update.
8956 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8957 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8958 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8959 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8960 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8961 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8963 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8964 (procfs_insert_hw_watchpoint): Add 'self' argument.
8965 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8967 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8969 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8971 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8972 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8974 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8979 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8981 (target_remove_watchpoint): Add argument.
8982 * target.c (debug_to_remove_watchpoint): Add argument.
8983 (update_current_target): Update.
8984 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8985 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8986 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8987 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8988 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8989 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8991 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8992 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8994 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8996 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8998 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8999 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9001 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9008 (target_remove_hw_breakpoint): Add argument.
9009 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9010 (update_current_target): Update.
9011 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9012 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9014 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9015 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9017 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9024 (target_insert_hw_breakpoint): Add argument.
9025 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9026 (update_current_target): Update.
9027 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9028 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9030 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9031 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9032 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9034 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9041 (target_can_use_hardware_watchpoint): Add argument.
9042 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9043 (update_current_target): Update.
9044 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9046 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9048 * remote.c (remote_check_watch_resources): Add 'self' argument.
9049 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9050 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9052 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9053 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9055 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9057 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9059 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9061 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9063 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9065 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9066 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9068 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target.h (struct target_ops) <to_post_attach>: Add argument.
9074 (target_post_attach): Add argument.
9075 * target.c (debug_to_post_attach): Add argument.
9076 (update_current_target): Update.
9077 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9078 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9079 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9080 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9081 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * windows-nat.c (windows_close): Add 'self' argument.
9086 * tracepoint.c (tfile_close): Add 'self' argument.
9087 * target.h (struct target_ops) <to_close>: Add argument.
9088 * target.c (target_close): Add argument.
9089 (update_current_target): Update.
9090 * remote.c (remote_close): Add 'self' argument.
9091 * remote-sim.c (gdbsim_close): Add 'self' argument.
9092 * remote-mips.c (mips_close): Add 'self' argument.
9093 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9094 * record-full.c (record_full_close): Add 'self' argument.
9095 * record-btrace.c (record_btrace_close): Add 'self' argument.
9096 * monitor.h (monitor_close): Add 'self' argument.
9097 * monitor.c (monitor_close): Add 'self' argument.
9098 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9099 * linux-nat.c (linux_nat_close): Add argument.
9100 * go32-nat.c (go32_close): Add 'self' argument.
9101 * exec.c (exec_close_1): Add 'self' argument.
9102 * ctf.c (ctf_close): Add 'self' argument.
9103 * corelow.c (core_close): Add 'self' argument.
9104 (core_close_cleanup): Update.
9105 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9106 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9110 * remote.c (remote_load): New function.
9111 (init_remote_ops): Use it.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9117 * common/linux-btrace.h (linux_supports_btrace): Update.
9118 * remote.c (remote_supports_btrace): Add "self" argument.
9119 * target-delegates.c: Rebuild.
9120 * target.c (target_supports_btrace): Remove.
9121 * target.h (struct target_ops) <to_supports_btrace>: Add
9122 target_ops argument.
9123 (target_supports_btrace): New define.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * record-full.c (record_full_beneath_to_resume_ops)
9128 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9129 (record_full_beneath_to_wait)
9130 (record_full_beneath_to_store_registers_ops)
9131 (record_full_beneath_to_store_registers)
9132 (record_full_beneath_to_xfer_partial_ops)
9133 (record_full_beneath_to_xfer_partial)
9134 (record_full_beneath_to_insert_breakpoint_ops)
9135 (record_full_beneath_to_insert_breakpoint)
9136 (record_full_beneath_to_remove_breakpoint_ops)
9137 (record_full_beneath_to_remove_breakpoint)
9138 (record_full_beneath_to_stopped_by_watchpoint)
9139 (record_full_beneath_to_stopped_data_address)
9140 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9141 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9142 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9143 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9144 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9145 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9146 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9147 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9148 (record_full_resume, record_full_wait_1)
9149 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9150 (record_full_store_registers, record_full_xfer_partial)
9151 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9152 (record_full_async, record_full_core_xfer_partial): Use target
9154 * target-delegates.c: Rebuild.
9155 * target.c (current_xfer_partial): Remove.
9156 (update_current_target): Do not INHERIT or de_fault
9157 to_insert_breakpoint, to_remove_breakpoint,
9158 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9159 to_is_async_p, to_async. Do not set to_xfer_partial field.
9160 (default_xfer_partial): Simplify.
9161 (current_xfer_partial): Remove.
9162 (target_wait, target_resume): Simplify.
9163 (find_default_can_async_p, find_default_is_async_p): Update.
9164 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9165 to_xfer_partial, to_stopped_by_watchpoint,
9166 to_stopped_data_address.
9167 (target_store_registers): Simplify.
9168 (forward_target_remove_breakpoint)
9169 (forward_target_insert_breakpoint): Remove.
9170 (target_remove_breakpoint, target_insert_breakpoint)
9171 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9172 * target.h (struct target_ops) <to_resume, to_wait,
9173 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9174 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9175 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9177 (forward_target_remove_breakpoint)
9178 (forward_target_insert_breakpoint): Remove.
9179 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9181 (record_btrace_insert_breakpoint): Delegate directly.
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target-delegates.c: New file.
9187 * target.c: Include target-delegates.c.
9188 (init_dummy_target): Call install_dummy_methods.
9189 (complete_target_initialization): Call install_delegators.
9190 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9191 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9192 * make-target-delegates: New file.
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * record.c (find_record_target): Use find_target_at.
9197 * target.c (find_target_at): New function.
9198 * target.h (find_target_at): Declare.
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9204 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9206 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9207 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9209 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9211 * linux-nat.c (save_sigtrap): Update.
9212 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9213 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9214 (linux_nat_close): Update.
9215 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9217 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9219 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9220 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9221 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9222 (tmp_to_async): Add 'ops' argument.
9223 (record_full_stopped_by_watchpoint, record_full_async)
9224 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9226 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9227 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9228 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9229 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9230 (remote_is_async_p, remote_async): Add 'ops' argument.
9231 (remote_stopped_data_address): Update.
9232 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9233 * target.c (update_current_target)
9234 (find_default_can_async_p, find_default_is_async_p): Update.
9235 (init_dummy_target): Update.
9236 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9237 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9238 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9239 (target_can_async_p, target_is_async_p, target_async)
9240 (target_stopped_by_watchpoint): Update.
9242 2014-02-19 Yao Qi <yao@codesourcery.com>
9245 * gdbarch.sh: Remove startup_gdbarch.
9246 * gdbarch.c: Regenerated.
9247 * gdbarch.h: Likewise.
9249 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9251 * rl78-tdep.c (rl78_g10_register_name): New function.
9252 (rl78_return_value): Add g10 support.
9253 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9256 2014-02-17 Doug Evans <xdje42@gmail.com>
9258 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9259 (SUBDIR_GUILE_SRCS): Ditto.
9260 (scm-gsmob.o): Ditto.
9262 2014-02-17 Yao Qi <yao@codesourcery.com>
9264 * gnu-nat.c (ILL_RPC): Declare defined function.
9266 2014-02-17 Yao Qi <yao@codesourcery.com>
9268 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9269 mach_msg_type_number_t.
9270 (gnu_write_inferior): Likewise.
9272 2014-02-17 Yao Qi <yao@codesourcery.com>
9274 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9276 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9277 (inf_validate_procs, inf_signal): Likewise.
9278 (S_exception_raise_request): Likewise.
9279 (do_mach_notify_dead_name): Likewise.
9280 (steal_exc_port): Likewise.
9281 (gnu_read_inferior): Change 'copy_count''s type to
9282 mach_msg_type_number_t.
9283 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9286 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9288 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9289 flag. Adjust all users; in particular...
9290 (gnu_wait): ..., don't decrement its value in here...
9291 (gnu_create_inferior): ..., and instead set the flag in here,
9292 around the startup_inferior call, and call that one with
9293 START_INFERIOR_TRAPS_EXPECTED.
9295 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9296 (ILL_RPC): ... new macro.
9297 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9298 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9299 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9300 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9301 functions with ILL_RPC macro.
9302 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9303 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9304 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9305 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9306 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9307 (S_proc_getlogin_reply, S_proc_getsid_reply)
9308 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9309 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9310 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9311 (S_proc_getnports_reply, S_proc_is_important_reply)
9312 (S_proc_get_code_reply): New stub functions, generated with
9315 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9316 collected the type check structures.
9318 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9320 2014-02-14 Doug Evans <dje@google.com>
9322 * target.c (target_write_partial): Fix result type.
9324 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9326 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9327 the proper offsets to access fpregset_t.
9329 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9331 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9332 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9333 * h8300-tdep.c (setmachinelist): Remove global.
9334 * hppa-tdep.c (hppa_sigtramp): Remove global.
9335 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9336 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9337 * ravenscar-thread.c (update_target_observer): Remove global.
9338 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9340 2014-02-12 Tom Tromey <tromey@redhat.com>
9342 * common/rsp-low.c: Update comments.
9343 * common/rsp-low.h: Update comments.
9345 2014-02-12 Tom Tromey <tromey@redhat.com>
9347 * common/rsp-low.c (convert_ascii_to_int): Remove.
9348 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9350 2014-02-12 Tom Tromey <tromey@redhat.com>
9352 * common/rsp-low.h (unhexify): Don't declare.
9353 * common/rsp-low.c (unhexify): Remove.
9355 2014-02-12 Tom Tromey <tromey@redhat.com>
9357 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9358 * common/rsp-low.c (convert_int_to_ascii): Remove.
9360 2014-02-12 Tom Tromey <tromey@redhat.com>
9362 * common/rsp-low.h (hexify): Don't declare.
9363 * common/rsp-low.c (hexify): Remove.
9365 2014-02-12 Tom Tromey <tromey@redhat.com>
9367 * common/rsp-low.c (hexify): Never take strlen of argument.
9369 2014-02-12 Tom Tromey <tromey@redhat.com>
9371 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9372 * remote.c (extended_remote_run, remote_rcmd)
9373 (remote_download_trace_state_variable, remote_save_trace_data)
9374 (remote_set_trace_notes): Update.
9375 * tracepoint.c (encode_source_string, tfile_write_status)
9376 (tfile_write_uploaded_tsv): Update.
9378 2014-02-12 Tom Tromey <tromey@redhat.com>
9380 * tracepoint.c: Include rsp-low.h.
9381 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9382 * remote.c: Include rsp-low.h.
9383 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9384 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9385 (remote_unescape_input): Move to common/rsp-low.c.
9386 * common/rsp-low.h: New file.
9387 * common/rsp-low.c: New file.
9388 * Makefile.in (SFILES): Add common/rsp-low.c.
9389 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9390 (COMMON_OBS): Add rsp-low.o.
9391 (rsp-low.o): New target.
9393 2014-02-12 Tom Tromey <tromey@redhat.com>
9395 * utils.h: Include print-utils.h.
9396 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9397 (int_string, core_addr_to_string, core_addr_to_string_nz)
9398 (hex_string, hex_string_custom): Don't declare.
9399 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9400 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9401 (hex_string_custom, int_string, core_addr_to_string)
9402 (core_addr_to_string_nz, host_address_to_string): Move to
9403 common/print-utils.c.
9404 * common/print-utils.h: New file.
9405 * common/print-utils.c: New file
9406 * Makefile.in (SFILES): Add common/print-utils.c.
9407 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9408 (COMMON_OBS): Add print-utils.o.
9409 (print-utils.o): New target.
9411 2014-02-12 Tom Tromey <tromey@redhat.com>
9413 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9415 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9417 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9419 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9421 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9422 if a PT_IO ptrace request returns sucessfully but indicates that 0
9423 bytes were transferred.
9425 2014-02-12 Pedro Alves <palves@redhat.com>
9426 Kevin Buettner <kevinb@redhat.com>
9428 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9429 TYPE_INSTANCE_FLAG_CODE_SPACE.
9431 2014-02-12 Pedro Alves <palves@redhat.com>
9433 * h8300-tdep.c (pseudo_from_raw_register)
9434 (raw_from_pseudo_register): New functions.
9435 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9438 2014-02-12 Pedro Alves <palves@redhat.com>
9440 * h8300-tdep.c (h8300_register_sim_regno): New function.
9441 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9442 gdbarch_register_sim_regno hook.
9444 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9446 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9448 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9450 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9452 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9454 * obsd-tdep.h (obsd_init_abi): New prototype.
9455 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9456 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9457 (obsd_init_abi): New functions.
9458 * i386obsd-tdep.c: Include "obsd-tdep.h".
9459 (i386obsd_init_abi): Call obsd_init_abi.
9460 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9461 (amd64obsd_init_abi): Call obsd_init_abi.
9462 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9463 obsd-tdep.c to gdb_target_obs.
9465 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9467 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9468 double float arguments to 16-byte in the argument slots.
9470 2014-02-11 Doug Evans <xdje42@gmail.com>
9472 * configure.ac: Don't crash if pkg-config is not found and guile
9473 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9475 * configure: Regenerate.
9477 2014-02-11 Yao Qi <yao@codesourcery.com>
9479 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9480 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9481 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9482 * gnu-nat.c (gnu_xfer_memory): Likewise.
9483 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9484 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9485 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9486 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9488 2014-02-11 Yao Qi <yao@codesourcery.com>
9490 * target.h (enum target_xfer_error): Rename to ...
9491 (enum target_xfer_status): ... it. New. All users updated.
9492 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9494 (TARGET_XFER_STATUS_ERROR_P): New macro.
9495 (target_xfer_error_to_string): Remove declaration.
9496 (target_xfer_status_to_string): Declare.
9497 (target_xfer_partial_ftype): Adjust it.
9498 (struct target_ops) <to_xfer_partial>: Return
9499 target_xfer_status. Add argument xfered_len. Update
9501 * target.c (target_xfer_error_to_string): Rename to ...
9502 (target_xfer_status_to_string): ... it. New. All callers
9504 (target_read_live_memory): Likewise. Call target_xfer_partial
9505 instead of target_read.
9506 (memory_xfer_live_readonly_partial): Return
9507 target_xfer_status. Add argument xfered_len.
9508 (raw_memory_xfer_partial): Likewise.
9509 (memory_xfer_partial_1): Likewise.
9510 (memory_xfer_partial): Likewise.
9511 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9512 properly. Update debug message.
9513 (default_xfer_partial, current_xfer_partial): Likewise.
9514 (target_write_partial): Likewise.
9515 (target_read_partial): Likewise. All callers updated.
9516 (read_whatever_is_readable): Likewise.
9517 (target_write_with_progress): Likewise.
9518 (target_read_alloc_1): Likewise.
9520 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9521 * auxv.c (procfs_xfer_auxv): Likewise.
9522 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9523 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9524 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9525 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9526 * corefile.c (read_memory): Adjust.
9527 * corelow.c (core_xfer_partial): Likewise.
9528 * ctf.c (ctf_xfer_partial): Likewise.
9529 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9531 (darwin_xfer_partial): Likewise.
9532 * exec.c (section_table_xfer_memory_partial): Likewise. All
9534 (exec_xfer_partial): Likewise.
9535 * exec.h (section_table_xfer_memory_partial): Update
9537 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9539 (gnu_xfer_partial): Likewise.
9540 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9541 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9542 (ia64_hpux_xfer_solib_got): Likewise.
9543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9544 type of 'partial_len' to ULONGEST.
9545 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9546 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9547 (linux_nat_xfer_partial): Likewise.
9548 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9549 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9550 * monitor.c (monitor_xfer_memory): Likewise.
9551 (monitor_xfer_partial): Likewise.
9552 * procfs.c (procfs_xfer_partial): Likewise.
9553 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9554 * record-full.c (record_full_xfer_partial): Likewise.
9555 (record_full_core_xfer_partial): Likewise.
9556 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9557 (gdbsim_xfer_partial): Likewise.
9558 * remote.c (remote_write_bytes_aux): Likewise. All callers
9560 (remote_write_bytes, remote_read_bytes): Likewise. All
9562 (remote_flash_erase): Likewise. All callers updated.
9563 (remote_write_qxfer): Likewise. All callers updated.
9564 (remote_read_qxfer): Likewise. All callers updated.
9565 (remote_xfer_partial): Likewise.
9566 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9567 (rs6000_xfer_shared_libraries): Likewise.
9568 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9569 (sol_thread_xfer_partial): Likewise.
9570 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9571 (sparc_xfer_partial): Likewise.
9572 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9574 (spu_xfer_partial): Likewise.
9575 * spu-multiarch.c (spu_xfer_partial): Likewise.
9576 * tracepoint.c (tfile_xfer_partial): Likewise.
9577 * windows-nat.c (windows_xfer_memory): Likewise.
9578 (windows_xfer_shared_libraries): Likewise.
9579 (windows_xfer_partial): Likewise.
9580 * valprint.c: Replace 'target_xfer_error' with
9581 'target_xfer_status' in comments.
9583 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9585 Checked in by Joel Brobecker <brobecker@adacore.com>.
9586 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9588 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9590 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9591 function parameters.
9593 2014-02-10 Will Newton <will.newton@linaro.org>
9595 * elfread.c (elf_rel_plt_read): Look for a .got section if
9596 looking up .got.plt fails.
9597 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9598 on address passed to elf_gnu_ifunc_record_cache.
9599 (elf_gnu_ifunc_resolve_addr): Likewise.
9600 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9602 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9604 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9605 (X_RETTURN): New macro.
9606 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9608 * sparc64-tdep.c (sparc64_init_abi): Hook
9609 sparc_in_function_epilogue_p.
9611 2014-02-10 Gary Benson <gbenson@redhat.com>
9613 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9614 Rename name_matcher to symbol_matcher.
9616 2014-02-10 Gary Benson <gbenson@redhat.com>
9618 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9619 Use expand_symtabs_file_matcher_ftype and
9620 expand_symtabs_symbol_matcher_ftype.
9622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9624 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9625 (struct ada_symbol_cache): New.
9626 (ada_free_symbol_cache): Forward declare.
9627 (struct ada_pspace_data): New.
9628 (ada_pspace_data_handle): New static global.
9629 (get_ada_pspace_data, ada_pspace_data_cleanup)
9630 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9631 (cache_space, cache): Delete, now folded inside struct
9633 (ada_get_symbol_cache): New function.
9634 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9636 (_initialize_ada_language): Remove initialization of cache_space.
9637 Move call to observer_attach_inferior_exit up, grouping it
9638 with the other observer registrations inside this function.
9639 Rename command to be more general. Add call to
9640 register_program_space_data_with_cleanup.
9642 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9644 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9645 ada_new_objfile_observer.
9646 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9647 (_initialize_tasks): Update uses of ada_new_objfile_observer
9648 and ada_tasks_normal_stop_observer.
9650 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9652 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9653 returned by the 'Length attribute to integer.
9655 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9657 * ada-lang.c (_initialize_ada_language): Initialize
9658 cache_space obstack.
9660 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9662 * ada-lang.c (HASH_SIZE): New macro.
9663 (struct cache_entry): New type.
9664 (cache_space, cache): New static globals.
9665 (ada_clear_symbol_cache, find_entry): New functions.
9666 (lookup_cached_symbol, cache_symbol): Implement.
9667 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9668 (_initialize_ada_language): Attach ada_new_objfile_observer
9669 and ada_free_objfile_observer.
9671 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9673 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9674 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9675 struct block * parameter.
9676 (ada_lookup_symbol_list_worker): Constify local variable "block".
9677 Remove cast which is no longer necessary.
9679 2014-02-10 Doug Evans <xdje42@gmail.com>
9681 Add Guile as an extension language.
9682 * NEWS: Mention Guile scripting.
9683 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9684 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9685 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9686 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9687 (CLIBS): Add GUILE_LIBS.
9688 (install-guile): New rule.
9689 (guile.o): New rule.
9690 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9691 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9692 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9693 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9694 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9695 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9696 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9697 * configure.ac: New option --with-guile.
9698 * configure: Regenerate.
9699 * config.in: Regenerate.
9700 * auto-load.c: Remove #include "python/python.h". Add #include
9701 "gdb/section-scripts.h".
9702 (source_section_scripts): Handle Guile scripts.
9703 (_initialize_auto_load): Add name of Guile objfile script to
9704 scripts-directory help text.
9705 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9706 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9707 (struct breakpoint): New member scm_bp_object.
9708 * defs.h (enum command_control_type): New value guile_control.
9709 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9711 (show_user): Update comment.
9712 (_initialize_cli_cmds): Update help text for "show user". Update help
9713 text for max-user-call-depth.
9714 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9716 (multi_line_command_p): Add guile_control.
9717 (print_command_lines): Handle guile_control.
9718 (execute_control_command, recurse_read_control_structure): Ditto.
9719 (process_next_line): Recognize "guile" commands.
9720 * disasm.c (gdb_disassemble_info): Make non-static.
9721 * disasm.h: #include "dis-asm.h".
9722 (struct gdbarch): Add forward decl.
9723 (gdb_disassemble_info): Declare.
9724 * extension.c: #include "guile/guile.h".
9725 (extension_languages): Add guile.
9726 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9727 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9728 * gdbtypes.c (get_unsigned_type_max): New function.
9729 (get_signed_type_minmax): New function.
9730 * gdbtypes.h (get_unsigned_type_max): Declare.
9731 (get_signed_type_minmax): Declare.
9732 * guile/README: New file.
9733 * guile/guile-internal.h: New file.
9734 * guile/guile.c: New file.
9735 * guile/guile.h: New file.
9736 * guile/scm-arch.c: New file.
9737 * guile/scm-auto-load.c: New file.
9738 * guile/scm-block.c: New file.
9739 * guile/scm-breakpoint.c: New file.
9740 * guile/scm-disasm.c: New file.
9741 * guile/scm-exception.c: New file.
9742 * guile/scm-frame.c: New file.
9743 * guile/scm-gsmob.c: New file.
9744 * guile/scm-iterator.c: New file.
9745 * guile/scm-lazy-string.c: New file.
9746 * guile/scm-math.c: New file.
9747 * guile/scm-objfile.c: New file.
9748 * guile/scm-ports.c: New file.
9749 * guile/scm-pretty-print.c: New file.
9750 * guile/scm-safe-call.c: New file.
9751 * guile/scm-string.c: New file.
9752 * guile/scm-symbol.c: New file.
9753 * guile/scm-symtab.c: New file.
9754 * guile/scm-type.c: New file.
9755 * guile/scm-utils.c: New file.
9756 * guile/scm-value.c: New file.
9757 * guile/lib/gdb.scm: New file.
9758 * guile/lib/gdb/boot.scm: New file.
9759 * guile/lib/gdb/experimental.scm: New file.
9760 * guile/lib/gdb/init.scm: New file.
9761 * guile/lib/gdb/iterator.scm: New file.
9762 * guile/lib/gdb/printing.scm: New file.
9763 * guile/lib/gdb/types.scm: New file.
9764 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9765 (VPATH): Add $(GUILE_SRCDIR).
9766 (GUILE_DIR): New variable.
9767 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9768 (all): Add stamp-guile dependency.
9769 (stamp-guile): New rule.
9770 (clean-guile, install-guile, uninstall-guile): New rules.
9771 (install-only): Add install-guile dependency.
9772 (uninstall): Add uninstall-guile dependency.
9773 (clean): Add clean-guile dependency.
9775 2014-02-09 Doug Evans <xdje42@gmail.com>
9777 Revert this patch (which I approved, mea culpa).
9779 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9781 * Makefile.in (all-lib): Remove.
9782 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9784 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9786 Fix Python stack corruption.
9787 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9790 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9792 * Makefile.in (all-lib): Remove.
9793 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9795 2014-02-07 Doug Evans <dje@google.com>
9797 * extension-priv.h (extension_language_script_ops): Add comment.
9798 (extension_language_ops): Add comment.
9799 (active_ext_lang_state): Fix typo in comment.
9801 2014-02-07 Pedro Alves <palves@redhat.com>
9803 PR breakpoints/16292
9804 * infrun.c (handle_signal_stop) <signal arrives while stepping
9805 over a breakpoint>: Switch back to the stepping thread.
9807 2014-02-07 Yao Qi <yao@codesourcery.com>
9809 * target.c (target_xfer_partial): Return zero if LEN is zero.
9811 2014-02-07 Yao Qi <yao@codesourcery.com>
9813 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9814 (ld_so_xfer_auxv): Likewise.
9815 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9816 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9817 * corelow.c (core_xfer_partial): Likewise.
9818 * ctf.c (ctf_xfer_partial): Likewise.
9819 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9820 (darwin_xfer_partial): Likewise.
9821 * exec.c (exec_xfer_partial): Likewise.
9822 * gnu-nat.c (gnu_xfer_partial): Likewise.
9823 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9824 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9825 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9826 * linux-nat.c (linux_xfer_siginfo): Likewise.
9827 (linux_proc_xfer_spu): Likewise.
9828 * procfs.c (procfs_xfer_partial): Likewise.
9829 * record-full.c (record_full_xfer_partial): Likewise.
9830 (record_full_core_xfer_partial): Likewise.
9831 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9832 * remote.c (remote_write_qxfer): Likewise.
9833 (remote_write_qxfer, remote_read_qxfer): Likewise.
9834 (remote_xfer_partial): Likewise.
9835 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9836 (rs6000_xfer_shared_libraries): Likewise.
9837 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9838 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9839 (spu_xfer_partial): Likewise.
9840 * target.c (memory_xfer_partial_1): Likewise.
9841 * tracepoint.c (tfile_xfer_partial): Likewise.
9842 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9843 (windows_xfer_partial): Likewise.
9845 2014-02-07 Yao Qi <yao@codesourcery.com>
9847 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9849 (core_xfer_shared_libraries_aix): Likewise.
9850 * gdbarch.c, gdbarch.h: Regenerated.
9851 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9852 ULONGEST. Change 'len_avail' type to ULONGEST.
9853 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9854 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9856 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9858 2014-02-07 Yao Qi <yao@codesourcery.com>
9860 * corefile.c (memory_error): Get 'exception' from ERR and pass
9861 'exception' to throw_error.
9863 2014-02-06 Doug Evans <xdje42@gmail.com>
9865 * configure.ac (libpython checking): Remove all but python.o from
9866 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9867 * configure: Regenerate.
9869 * Makefile.in (SFILES): Add extension.c.
9870 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9871 (COMMON_OBS): Add extension.o.
9872 * extension.h: New file.
9873 * extension-priv.h: New file.
9874 * extension.c: New file.
9876 * python/python-internal.h: #include "extension.h".
9877 (gdbpy_auto_load_enabled): Declare.
9878 (gdbpy_apply_val_pretty_printer): Declare.
9879 (gdbpy_apply_frame_filter): Declare.
9880 (gdbpy_preserve_values): Declare.
9881 (gdbpy_breakpoint_cond_says_stop): Declare.
9882 (gdbpy_breakpoint_has_cond): Declare.
9883 (void source_python_script_for_objfile): Delete.
9884 * python/python.c: #include "extension-priv.h".
9885 Delete inclusion of "observer.h".
9886 (extension_language_python): Moved here and renamed from
9887 script_language_python in py-auto-load.c.
9888 Redefined to be of type extension_language_defn.
9889 (python_extension_script_ops): New global.
9890 (python_extension_ops): New global.
9891 (struct python_env): New member previous_active.
9892 (restore_python_env): Call restore_active_ext_lang.
9893 (ensure_python_env): Call set_active_ext_lang.
9894 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9896 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9898 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9900 (gdbpy_eval_from_control_command): Renamed from
9901 eval_python_from_control_command, made static. New arg extlang.
9902 (gdbpy_source_script) Renamed from source_python_script, made static.
9904 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9905 result to int. New arg extlang.
9906 (gdbpy_source_objfile_script): Renamed from
9907 source_python_script_for_objfile, made static. New arg extlang.
9908 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9909 static. New args extlang, extlang_printers. Change result type to
9911 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9912 static. New arg extlang. Rename arg printers to extlang_printers
9913 and change type to ext_lang_type_printers *.
9914 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9915 static. Replace argument arg with extlang, extlang_printers.
9916 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9917 (!HAVE_PYTHON, source_python_script): Delete.
9918 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9919 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9920 (!HAVE_PYTHON, start_type_printers): Delete.
9921 (!HAVE_PYTHON, apply_type_printers): Delete.
9922 (!HAVE_PYTHON, free_type_printers): Delete.
9923 (_initialize_python): Delete call to observer_attach_before_prompt.
9924 (finalize_python): Set/restore active extension language.
9925 (gdbpy_finish_initialization) Renamed from
9926 finish_python_initialization, made static. New arg extlang.
9927 (gdbpy_initialized): New function.
9928 * python/python.h: #include "extension.h". Delete #include
9929 "value.h", "mi/mi-cmds.h".
9930 (extension_language_python): Declare.
9931 (GDBPY_AUTO_FILE_NAME): Delete.
9932 (enum py_bt_status): Moved to extension.h and renamed to
9934 (enum frame_filter_flags): Moved to extension.h.
9935 (enum py_frame_args): Moved to extension.h and renamed to
9936 ext_lang_frame_args.
9937 (finish_python_initialization): Delete.
9938 (eval_python_from_control_command): Delete.
9939 (source_python_script): Delete.
9940 (apply_val_pretty_printer): Delete.
9941 (apply_frame_filter): Delete.
9942 (preserve_python_values): Delete.
9943 (gdbpy_script_language_defn): Delete.
9944 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9945 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9947 * auto-load.c: #include "extension.h".
9948 (GDB_AUTO_FILE_NAME): Delete.
9949 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9950 (script_language_gdb): Delete, moved to extension.c and renamed to
9951 extension_language_gdb.
9952 (source_gdb_script_for_objfile): Delete.
9953 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9954 (loaded_script): Change type of language member to
9955 struct extension_language_defn *.
9956 (init_loaded_scripts_info): Initialize
9957 unsupported_script_warning_printed.
9958 (maybe_add_script): Make static. Change type of language arg to
9959 struct extension_language_defn *.
9960 (clear_section_scripts): Reset unsupported_script_warning_printed.
9961 (auto_load_objfile_script_1): Rewrite to use extension language API.
9962 (auto_load_objfile_script): Make public. Remove support-compiled-in
9963 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9964 (source_section_scripts): Rewrite to use extension language API.
9965 (load_auto_scripts_for_objfile): Rewrite to use
9966 auto_load_scripts_for_objfile.
9967 (collect_matching_scripts_data): Change type of language member to
9968 struct extension_language_defn *.
9969 (auto_load_info_scripts): Change type of language arg to
9970 struct extension_language_defn *.
9971 (unsupported_script_warning_print): New function.
9972 (script_not_found_warning_print): Make static.
9973 (_initialize_auto_load): Rewrite construction of scripts-directory
9975 * auto-load.h (struct objfile): Add forward decl.
9976 (struct script_language): Delete.
9977 (struct auto_load_pspace_info): Add forward decl.
9978 (struct extension_language_defn): Add forward decl.
9979 (maybe_add_script): Delete.
9980 (auto_load_objfile_script): Declare.
9981 (script_not_found_warning_print): Delete.
9982 (auto_load_info_scripts): Update prototype.
9983 (auto_load_gdb_scripts_enabled): Declare.
9984 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9985 auto_load_python_scripts_enabled and made public.
9986 (script_language_python): Delete, moved to python.c.
9987 (gdbpy_script_language_defn): Delete.
9988 (info_auto_load_python_scripts): Update to use
9989 extension_language_python.
9991 * breakpoint.c (condition_command): Replace call to
9992 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9993 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9994 with call to breakpoint_ext_lang_cond_says_stop.
9995 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9996 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9997 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9998 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10000 (local_setattro): Print name of extension language with existing
10003 * valprint.c (val_print, value_print): Update to call
10004 apply_ext_lang_val_pretty_printer.
10005 * cp-valprint.c (cp_print_value): Update call to
10006 apply_ext_lang_val_pretty_printer.
10007 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10008 (gdbpy_apply_val_pretty_printer): Renamed from
10009 apply_val_pretty_printer. New arg extlang.
10010 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10012 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10013 extension language API.
10014 * cli/cli-script.c (execute_control_command): Update to call
10015 eval_ext_lang_from_control_command.
10017 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10018 enum ext_lang_bt_status values. Update call to
10019 apply_ext_lang_frame_filter.
10020 (mi_cmd_stack_list_locals): Ditto.
10021 (mi_cmd_stack_list_args): Ditto.
10022 (mi_cmd_stack_list_variables): Ditto.
10023 * mi/mi-main.c: Delete #include "python/python-internal.h".
10024 Add #include "extension.h".
10025 (mi_cmd_list_features): Replace reference to python internal variable
10026 gdb_python_initialized with call to ext_lang_initialized_p.
10028 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10029 Update to use enum ext_lang_frame_args. Update to call
10030 apply_ext_lang_frame_filter.
10031 * python/py-framefilter.c (extract_sym): Update to use enum
10032 ext_lang_bt_status.
10033 (extract_value, py_print_type, py_print_value): Ditto.
10034 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10035 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10036 (py_print_frame): Ditto.
10037 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10038 New arg extlang. Update to use enum ext_lang_bt_status.
10040 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10041 finish_python_initialization. Replace with call to
10042 finish_ext_lang_initialization.
10044 * typeprint.c (do_free_global_table): Update to call
10045 free_ext_lang_type_printers.
10046 (create_global_typedef_table): Update to call
10047 start_ext_lang_type_printers.
10048 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10049 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10050 (type_print_options): Change type of global_printers from "void *"
10051 to "struct ext_lang_type_printers *".
10053 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10054 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10055 (gdbpy_preserve_values): Renamed from preserve_python_values.
10057 (!HAVE_PYTHON, preserve_python_values): Delete.
10059 * utils.c (quit_flag): Delete, moved to extension.c.
10060 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10063 * eval.c: Delete #include "python/python.h".
10064 * main.c: Delete #include "python/python.h".
10066 * defs.h: Update comment.
10068 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10072 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10074 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10077 2014-02-05 Yao Qi <yao@codesourcery.com>
10079 * remote.c (remote_pass_signals): Remove local 'buf' and use
10081 (remote_program_signals): Likewise.
10083 2014-02-05 Yao Qi <yao@codesourcery.com>
10085 * ctf.c: Include "inferior.h" and "gdbthread.h".
10086 (CTF_PID): A new macro.
10087 (ctf_open): Call inferior_appeared and add_thread_silent.
10088 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10089 (ctf_thread_alive): New function.
10090 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10092 2014-02-05 Yao Qi <yao@codesourcery.com>
10096 2013-05-24 Yao Qi <yao@codesourcery.com>
10098 * tracepoint.c (TFILE_PID): Remove.
10099 (tfile_open): Don't add thread and inferior.
10100 (tfile_close): Don't set 'inferior_ptid'. Don't call
10101 exit_inferior_silent.
10102 (tfile_thread_alive): Remove.
10103 (init_tfile_ops): Don't set field 'to_thread_alive' of
10106 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10108 * remote.c (remote_start_remote): Call remote_check_symbols even
10109 if only symbol-file (not file) has been given.
10111 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10113 * gdbarch.sh (skip_entrypoint): New callback.
10114 * gdbarch.c, gdbarch.h: Regenerate.
10115 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10116 * infrun.c (fill_in_stop_func): Likewise.
10117 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10118 (ppc_elfv2_elf_make_msymbol_special): New function.
10119 (ppc_elfv2_skip_entrypoint): Likewise.
10120 (ppc_linux_init_abi): Install them for ELFv2.
10122 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10124 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10125 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10126 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10127 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10128 structures returned in GPRs.
10130 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10132 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10133 offset to the stack parameter list for the ELFv2 ABI.
10135 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10137 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10138 set_gdbarch_convert_from_func_ptr_addr and
10139 set_gdbarch_elf_make_msymbol_special for ELFv1.
10140 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10141 function descriptors on ELFv1.
10142 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10143 set up r12 at function entry.
10145 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10147 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10148 (struct gdbarch_tdep): New member elf_abi.
10150 * rs6000-tdep.c: Include "elf/ppc64.h".
10151 (rs6000_gdbarch_init): Detect ELF ABI version.
10153 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10156 within a register pair holding a DFP 128-bit value on little-endian.
10157 (ppc64_sysv_abi_return_value_base): Likewise.
10158 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10159 (dfp_pseudo_register_write): Likewise.
10161 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10163 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10164 offset on little-endian when passing _Decimal32.
10165 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10167 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10169 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10170 of the overlapped FP register within the VSX register on little-
10172 (efpr_pseudo_register_write): Likewise.
10174 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10176 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10177 offset on little-endian when passing small structures.
10179 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10181 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10182 (struct ppc64_sysv_argpos): New data structure.
10183 (ppc64_sysv_abi_push_float): Remove.
10184 (ppc64_sysv_abi_push_val): New function.
10185 (ppc64_sysv_abi_push_integer): Likewise.
10186 (ppc64_sysv_abi_push_freg): Likewise.
10187 (ppc64_sysv_abi_push_vreg): Likewise.
10188 (ppc64_sysv_abi_push_param): Likewise.
10189 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10190 (ppc64_sysv_abi_return_value_base): New function.
10191 (ppc64_sysv_abi_return_value): Refactor to use it.
10193 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10195 * NEWS: Document new target powerpc64le-*-linux*.
10197 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10199 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10200 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10202 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10203 register set used in ELF core dumps. Add floating-point register set.
10205 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10207 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10208 dwarf2_to_gdb[] table using symbolic constants. Adjust
10209 penultimate entry from number representing the PC register
10210 to symbolic constant representing the MDR register. Add
10211 constant for the PC register to the end of the table.
10213 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10215 * bsd-kvm.c: Include <sys/param.h>
10217 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10219 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10221 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10223 * ada-lang.h (clear_ada_sym_cache): Delete.
10225 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10227 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10229 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10231 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10232 the sigreturn register save area only if the syscall is
10235 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10237 * valops.c (value_slice): Minor reformatting.
10239 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10241 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10243 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10245 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10246 New static globals.
10247 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10248 (ada_ignore_descriptive_types_p): New static global.
10249 (find_parallel_type_by_descriptive_type): Return immediately
10250 if ada_ignore_descriptive_types_p is set.
10251 (_initialize_ada_language): Register new commands "maintenance
10252 set ada", "maintenance show ada", "maintenance set ada
10253 ignore-descriptive-types" and "maintenance show ada
10254 ignore-descriptive-types".
10255 * NEWS: Add entry for new "maint ada set/show
10256 ignore-descriptive-types" commands.
10258 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10260 * record-btrace.c (record_btrace_close): Call btrace_teardown
10263 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10265 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10268 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10270 * ada-typeprint (type_is_full_subrange_of_target_type):
10272 (print_range): Add parameter bounds_prefered_p. If not set,
10273 try printing range types using the name of their base type.
10274 (print_range_type): Add parameter bounds_prefered_p.
10275 Use it in call to print_range.
10276 (print_array_type, ada_print_type): Update calls to print_range
10277 and print_range_type.
10279 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10281 * ada-typeprint.c (print_array_type, print_choices, print_range)
10282 (print_range_bound, print_dynamic_range_bound, print_range_type):
10283 Remove declaration.
10285 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10287 * ada-typeprint.c (print_range): Add missing empty line
10288 after local declaration.
10290 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10292 * ada-valprint.c (print_optional_low_bound): Get index_type's
10293 target type for as long as it is a TYPE_CODE_RANGE.
10295 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10297 * procfs.c (procfs_make_note_section): Remove assertion and
10298 associated comment.
10300 2014-01-24 Yao Qi <yao@codesourcery.com>
10302 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10303 * corelow.c (get_core_siginfo): Likewise.
10305 2014-01-24 Yao Qi <yao@codesourcery.com>
10307 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10308 ULONGEST. Don't check 'len' is negative.
10309 (remote_write_bytes): Change type of 'len' to ULONGEST.
10311 2014-01-23 Tom Tromey <tromey@redhat.com>
10314 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10315 Handle exception from frame.block.
10316 (FrameVars.fetch_frame_locals): Likewise.
10318 2014-01-23 Tom Tromey <tromey@redhat.com>
10321 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10322 on a NULL pointer. Move "goto error" to correct place.
10324 2014-01-23 Tom Tromey <tromey@redhat.com>
10327 * python/py-framefilter.c (apply_frame_filter): Call
10328 ensure_python_env after computing gdbarch.
10330 2014-01-23 Yao Qi <yao@codesourcery.com>
10332 * target.c (raw_memory_xfer_partial): Change argument type
10333 from void * to gdb_byte *.
10334 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10336 2014-01-22 Doug Evans <dje@google.com>
10338 New gdbserver option --debug-format=timestamp.
10339 * NEWS: Mention it.
10341 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10343 * syscalls/s390x-linux.xml: New file.
10344 * syscalls/s390-linux.xml: New file.
10345 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10346 (XML_SYSCALL_FILENAME_S390X): Likewise.
10347 (op_svc): New enum value for SVC opcode.
10348 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10349 (s390_linux_get_syscall_number): New function.
10350 (s390_gdbarch_init): Register '*get_syscall_number' and the
10351 syscall xml file name.
10352 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10353 "s390-linux.xml" and "s390x-linux.xml".
10354 * NEWS: Announce new feature.
10356 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10358 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10360 2014-01-22 Pedro Alves <palves@redhat.com>
10362 * xtensa-config.c: Include defs.h.
10364 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10366 * common/common-utils.h: Add "ARI:" comment beside __func__
10369 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10371 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10372 documentation a bit.
10374 2014-01-21 Roland McGrath <mcgrathr@google.com>
10376 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10377 * configure: Regenerate.
10378 * aclocal.m4: Regenerate.
10379 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10380 New substituted variables.
10381 (install-strip): New target.
10382 (INSTALL_SCRIPT): New substituted variable.
10383 (FLAGS_TO_PASS): Add it.
10384 (install-only): Use $(INSTALL_SCRIPT) rather than
10385 $(INSTALL_PROGRAM) for gcore.
10387 2014-01-20 Tom Tromey <tromey@redhat.com>
10389 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10392 2014-01-20 Tom Tromey <tromey@redhat.com>
10394 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10395 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10396 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10397 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10398 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10399 (struct cmd_list_element) <flags>: Remove.
10400 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10401 doc_allocated>: New fields.
10402 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10404 * maint.c (maintenance_do_deprecate): Update.
10405 * top.c (execute_command): Update.
10407 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10409 * xtensa-linux-nat.c: Include asm/ptrace.h.
10411 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10413 * Makefile.in (SFILES): Add d-support.c.
10414 (COMMON_OBS): Add d-support.o.
10415 * d-lang.h (d_parse_symbol): Add comment, now defined in
10417 * d-lang.c (parse_call_convention)
10418 (parse_attributes, parse_function_types)
10419 (parse_function_args, parse_type, parse_identifier)
10420 (call_convention_p, d_parse_symbol): Move functions to ...
10421 * d-support.c: ... New file.
10423 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10425 * d-lang.h (d_parse_symbol): Add declaration.
10426 * d-lang.c (extract_identifiers)
10427 (extract_type_info): Remove functions.
10428 (parse_call_convention, parse_attributes)
10429 (parse_function_types, parse_function_args)
10430 (parse_type, parse_identifier, call_convention_p)
10431 (d_parse_symbol): New functions.
10432 (d_demangle): Use d_parse_symbol to demangle D symbols.
10434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10436 * d-lang.h (struct builtin_d_type): New data type.
10437 (builtin_d_type): Add declaration.
10438 * d-lang.c (d_language_arch_info, build_d_types)
10439 (builtin_d_type): New functions.
10440 (enum d_primitive_types): New data type.
10441 (d_language_defn): Change c_language_arch_info to
10442 d_language_arch_info.
10443 (d_type_data): New static variable.
10444 (_initialize_d_language): Initialize d_type_data.
10446 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10448 * d-lang.h (d_main_name): Add declaration.
10449 * d-lang.c (d_main_name): New function.
10450 * symtab.c (find_main_name): Add call to d_main_name.
10452 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10454 * d-lang.c (d_language_defn): Change macro_expansion_c to
10455 macro_expansion_no.
10457 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10459 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10461 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10463 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10464 gdb_exception" declaration.
10465 * remote.c (getpkt_or_notif_sane): Likewise.
10467 2014-01-17 Doug Evans <dje@google.com>
10469 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10470 function, contents of dirnames_to_char_ptr_vec_append moved here.
10471 (delim_string_to_char_ptr_vec): New function.
10472 (dirnames_to_char_ptr_vec_append): Rewrite.
10473 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10475 2014-01-17 Doug Evans <dje@google.com>
10477 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10479 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10480 #include "common-utils.h".
10481 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10482 * common/vec.h (VEC_ASSERT_PASS): Update.
10483 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10484 (MACH_CHECK_ERROR): Update.
10486 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10488 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10490 * gdbarch.h: Regenerate.
10492 2014-01-16 Tom Tromey <tromey@redhat.com>
10494 * value.c (struct value) <regnum>: Move earlier.
10496 2014-01-16 Tom Tromey <tromey@redhat.com>
10498 * remote.c (extended_remote_create_inferior): Rename from
10499 extended_remote_create_inferior_1. Add "ops" argument. Remove
10500 old implementation.
10502 2014-01-16 Pedro Alves <palves@redhat.com>
10504 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10505 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10508 2014-01-16 Doug Evans <dje@google.com>
10510 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10514 * btrace.h (btrace_thread_flag): New.
10515 (struct btrace_thread_info) <flags>: New.
10516 * record-btrace.c (record_btrace_resume_thread)
10517 (record_btrace_find_thread_to_move, btrace_step_no_history)
10518 (btrace_step_stopped, record_btrace_start_replaying)
10519 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10520 (record_btrace_find_resume_thread): New.
10521 (record_btrace_resume, record_btrace_wait): Extend.
10522 (record_btrace_can_execute_reverse): New.
10523 (record_btrace_open): Fail in non-stop mode.
10524 (record_btrace_set_replay): Split into this, ...
10525 (record_btrace_stop_replaying): ... this, ...
10526 (record_btrace_clear_histories): ... and this.
10527 (init_record_btrace_ops): Init to_can_execute_reverse.
10528 * NEWS: Announce it.
10530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10532 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10533 (forward_target_decr_pc_after_break)
10534 (target_decr_pc_after_break): New.
10535 * target.c (forward_target_decr_pc_after_break)
10536 (target_decr_pc_after_break): New.
10537 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10538 instead of gdbarch_decr_pc_after_break.
10539 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10540 instead of gdbarch_decr_pc_after_break.
10541 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10542 instead of gdbarch_decr_pc_after_break.
10543 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10544 instead of gdbarch_decr_pc_after_break.
10545 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10546 instead of gdbarch_decr_pc_after_break.
10547 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10548 instead of gdbarch_decr_pc_after_break.
10550 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10552 * btrace.c: Include regcache.h.
10553 (btrace_add_pc): New.
10554 (btrace_enable): Call btrace_add_pc.
10555 (btrace_is_empty): New.
10556 * btrace.h (btrace_is_empty): New.
10557 * record-btrace.c (require_btrace, record_btrace_info): Call
10560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10562 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10563 Support delta reads.
10564 (linux_disable_btrace): Change return type.
10565 * common/linux-btrace.h (linux_read_btrace): Change parameters
10566 and return type to allow error reporting. Update users.
10567 (linux_disable_btrace): Change return type. Update users.
10568 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10570 (btrace_error): New.
10571 (btrace_block) <begin>: Comment on BEGIN == 0.
10572 * btrace.c (btrace_compute_ftrace): Start from the end of
10574 (btrace_stitch_trace, btrace_clear_history): New.
10575 (btrace_fetch): Read delta trace, return if replaying.
10576 (btrace_clear): Move clear history code to btrace_clear_history.
10577 (parse_xml_btrace): Throw an error if parsing failed.
10578 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10579 and return type to allow error reporting.
10580 (target_read_btrace): Change parameters and return type to allow
10582 * target.c (target_read_btrace): Update.
10583 * remote.c (remote_read_btrace): Support delta reads. Pass
10585 * NEWS: Announce it.
10587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10589 * record.h (record_btrace_frame_unwind)
10590 (record_btrace_tailcall_frame_unwind): New declarations.
10591 * dwarf2-frame: Include record.h
10592 (dwarf2_frame_cfa): Throw an error for btrace frames.
10593 * record-btrace.c: Include hashtab.h.
10594 (btrace_get_bfun_name): New.
10595 (btrace_call_history): Call btrace_get_bfun_name.
10596 (struct btrace_frame_cache): New.
10598 (bfcache_hash, bfcache_eq, bfcache_new): New.
10599 (btrace_get_frame_function): New.
10600 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10601 (record_btrace_frame_this_id): Compute own id.
10602 (record_btrace_frame_prev_register): Provide PC, throw_error
10603 for all other registers.
10604 (record_btrace_frame_sniffer): Detect btrace frames.
10605 (record_btrace_tailcall_frame_sniffer): New.
10606 (record_btrace_frame_dealloc_cache): New.
10607 (record_btrace_frame_unwind): Add new functions.
10608 (record_btrace_tailcall_frame_unwind): New.
10609 (_initialize_record_btrace): Allocate cache.
10610 * btrace.c (btrace_clear): Call reinit_frame_cache.
10611 * NEWS: Announce it.
10613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10615 * record-btrace.c (record_btrace_set_replay)
10616 (record_btrace_goto_begin, record_btrace_goto_end)
10617 (record_btrace_goto): New.
10618 (init_record_btrace_ops): Initialize them.
10619 * NEWS: Announce it.
10621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10623 * record-btrace.c (record_btrace_find_new_threads)
10624 (record_btrace_thread_alive): New.
10625 (init_record_btrace_ops): Initialize to_find_new_threads and
10628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10630 * record-btrace.c (record_btrace_resume): New.
10631 (record_btrace_wait): New.
10632 (init_record_btrace_ops): Initialize to_wait and to_resume.
10634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10636 * record-btrace.c (record_btrace_xfer_partial)
10637 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10638 (record_btrace_allow_memory_access): New.
10639 (init_record_btrace_ops): Initialize new methods.
10640 * target.c (raw_memory_xfer_partial): Bail out if target reports
10641 that this memory is not available.
10643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10645 * target.h (target_ops) <to_insert_breakpoint>
10646 <to_remove_breakpoint>: Add target_ops parameter.
10647 (forward_target_insert_breakpoint): New.
10648 (forward_target_remove_breakpoint): New.
10649 (memory_remove_breakpoint, memory_insert_breakpoint):
10650 Add target_ops parameter.
10651 * target.c (target_insert_breakpoint): Split into this and ...
10652 (forward_target_insert_breakpoint): ... this.
10653 (target_remove_breakpoint): Split into this and ...
10654 (forward_target_remove_breakpoint): ... this.
10655 (debug_to_insert_breakpoint): Add target_ops parameter.
10656 Call forward_target_insert_breakpoint.
10657 (debug_to_remove_breakpoint): Add target_ops parameter.
10658 Call forward_target_remove_breakpoint.
10659 (update_current_target): Do not inherit or default to_insert_breakpoint
10660 and to_remove_breakpoint.
10661 * corelow.c (ignore): Add target_ops parameter.
10662 * exec.c (ignore): Add target_ops parameter.
10663 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10664 Add target_ops parameter.
10665 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10666 Add target_ops parameter.
10667 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10668 Add target_ops parameter.
10669 * record-full.c (record_full_beneath_to_insert_breakpoint)
10670 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10671 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10672 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10673 (record_full_core_remove_breakpoint): Add target_ops parameter.
10675 (record_full_beneath_to_insert_breakpoint_ops)
10676 (record_full_beneath_to_remove_breakpoint_ops)
10677 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10678 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10679 tmp_to_remove_breakpoint_ops,
10680 record_full_beneath_to_insert_breakpoint_ops, and
10681 record_full_beneath_to_remove_breakpoint_ops.
10682 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10683 (m32r_remove_breakpoint): Add target_ops parameter.
10684 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10685 Add target_ops parameter.
10686 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10687 Add target_ops parameter.
10689 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10690 Markus Metzger <markus.t.metzger@intel.com>
10692 * record-btrace.c: Include frame-unwind.h.
10693 (record_btrace_frame_unwind_stop_reason)
10694 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10695 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10697 (init_record_btrace_ops): Install it.
10699 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10701 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10704 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10706 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10709 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10711 * frame-unwind.c: Include target.h.
10712 (frame_unwind_try_unwinder): New function with code from ...
10713 (frame_unwind_find_by_frame): ... here. New variable
10714 unwinder_from_target, call also target_get_unwinder)
10715 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10716 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10717 * target.h (struct target_ops): New fields to_get_unwinder and
10718 to_get_tailcall_unwinder.
10719 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10723 * record-btrace.c (record_btrace_fetch_registers)
10724 (record_btrace_store_registers)
10725 (record_btrace_to_prepare_to_store): New.
10726 (init_record_btrace_ops): Add the above.
10728 2014-01-16 Tom Tromey <tromey@redhat.com>
10730 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10731 * target.h (struct target_ops) <to_prepare_to_store>: Add
10733 (target_prepare_to_store): Add argument.
10734 * target.c (debug_to_prepare_to_store): Add argument.
10735 (update_current_target): Update.
10736 * remote.c (remote_prepare_to_store): Add 'self' argument.
10737 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10738 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10739 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10740 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10742 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10743 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10744 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10745 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10746 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10750 * btrace.h (replay) <replay>: New.
10751 (btrace_is_replaying): New.
10752 * btrace.c (btrace_clear): Free replay iterator.
10753 (btrace_is_replaying): New.
10754 * record-btrace.c (record_btrace_is_replaying): New.
10755 (record_btrace_info): Print insn number if replaying.
10756 (record_btrace_insn_history): Start at replay position.
10757 (record_btrace_call_history): Start at replay position.
10758 (init_record_btrace_ops): Init to_record_is_replaying.
10760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10762 * record-btrace.c (record_btrace_insn_history_range): Include
10764 (record_btrace_insn_history_from): Adjust range.
10765 (record_btrace_call_history_range): Include
10767 (record_btrace_call_history_from): Adjust range.
10768 * NEWS: Announce changes.
10770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10772 * record.h (enum record_print_flag)
10773 <record_print_indent_calls>: New.
10774 * record.c (get_call_history_modifiers): Recognize /c modifier.
10775 (_initialize_record): Document /c modifier.
10776 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10777 Reorder fields. Optionally indent the function name. Update
10779 * NEWS: Announce changes.
10781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10783 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10787 * btrace.c (ftrace_new_function): Start counting at one.
10788 * record-btrace.c (record_btrace_info): Adjust number of calls
10790 * NEWS: Announce it.
10792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10794 * record-btrace.c (btrace_call_history_insn_range): Print
10795 insn range as [begin, end].
10797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10799 * btrace.h (struct btrace_func_link): New.
10800 (enum btrace_function_flag): New.
10801 (struct btrace_inst): Rename to ...
10802 (struct btrace_insn): ...this. Update all users.
10803 (struct btrace_func) <ibegin, iend>: Remove.
10804 (struct btrace_func_link): New.
10805 (struct btrace_func): Rename to ...
10806 (struct btrace_function): ...this. Update all users.
10807 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10808 (number, level, flags>: New.
10809 (struct btrace_insn_iterator): Rename to ...
10810 (struct btrace_insn_history): ...this.
10812 (struct btrace_insn_iterator, btrace_call_iterator): New.
10813 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10814 (struct btrace_target_info) <begin, end, level>
10815 <insn_history, call_history>: New.
10816 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10817 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10818 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10819 (btrace_call_number, btrace_call_begin, btrace_call_end)
10820 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10821 (btrace_find_function_by_number, btrace_set_insn_history)
10822 (btrace_set_call_history): New.
10823 * btrace.c (btrace_init_insn_iterator)
10824 (btrace_init_func_iterator, compute_itrace): Remove.
10825 (ftrace_print_function_name, ftrace_print_filename)
10826 (ftrace_skip_file): Change
10827 parameter to const.
10828 (ftrace_init_func): Remove.
10829 (ftrace_debug): Use new btrace_function fields.
10830 (ftrace_function_switched): Also consider gaining and
10831 losing symbol information).
10832 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10833 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10834 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10836 (ftrace_new_function): Move. Remove debug print.
10837 (ftrace_update_lines, ftrace_update_insns): New.
10838 (ftrace_update_function): Check for call, ret, and jump.
10839 (compute_ftrace): Renamed to ...
10840 (btrace_compute_ftrace): ...this. Rewritten to compute call
10842 (btrace_fetch, btrace_clear): Updated.
10843 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10844 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10845 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10846 (btrace_call_number, btrace_call_begin, btrace_call_end)
10847 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10848 (btrace_find_function_by_number, btrace_set_insn_history)
10849 (btrace_set_call_history): New.
10850 * record-btrace.c (require_btrace): Use new btrace thread
10852 (record_btrace_info, btrace_insn_history)
10853 (record_btrace_insn_history, record_btrace_insn_history_range):
10854 Use new btrace thread info fields and new iterator.
10855 (btrace_func_history_src_line): Rename to ...
10856 (btrace_call_history_src_line): ...this. Use new btrace
10857 thread info fields.
10858 (btrace_func_history): Rename to ...
10859 (btrace_call_history): ...this. Use new btrace thread info
10860 fields and new iterator.
10861 (record_btrace_call_history, record_btrace_call_history_range):
10862 Use new btrace thread info fields and new iterator.
10864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10866 * frame.h (frame_id_build_unavailable_stack_special): New.
10867 * frame.c (frame_id_build_unavailable_stack_special): New.
10869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10871 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10872 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10873 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10875 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10876 (i386_insn_is_jump, i386_jmp_p): New.
10877 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10878 insn_is_jump to gdbarch.
10879 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10880 * gdbarch.h: Regenerated.
10881 * gdbarch.c: Regenerated.
10882 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10883 (default_insn_is_jump): New.
10884 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10885 (default_insn_is_jump): New.
10887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10889 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10891 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10892 (btrace_read_type) <btrace_read_new>: Change to ...
10893 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10897 * common/linux-btrace.c (linux_read_btrace): Free trace from
10898 previous iteration.
10900 2014-01-15 Doug Evans <dje@google.com>
10902 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10905 2014-01-15 Tom Tromey <tromey@redhat.com>
10907 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10908 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10909 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10910 (set_objfile_main_name): New function.
10911 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10912 language_of_main>: New fields.
10913 (set_objfile_main_name): Declare.
10914 * symtab.c (find_main_name): Loop over objfiles to find the main
10916 (set_main_name): Now static.
10917 (get_main_info): Add comment.
10918 * symtab.h (set_main_name): Don't declare.
10920 2014-01-15 Tom Tromey <tromey@redhat.com>
10922 * symtab.c (main_progspace_key): New global.
10923 (struct main_info): New.
10924 (name_of_main, language_of_main): Remove.
10925 (get_main_info, main_info_cleanup): New function.
10926 (set_main_name, main_name, main_language): Use get_main_info.
10927 (_initialize_symtab): Initialize main_progspace_key.
10929 2014-01-15 Tom Tromey <tromey@redhat.com>
10931 * dbxread.c (process_one_symbol): Update.
10932 * dwarf2read.c (read_partial_die): Update.
10933 * symfile.c (set_initial_language): Call main_language.
10934 * symtab.c (language_of_main): Now static.
10935 (set_main_name): Add 'lang' parameter.
10936 (find_main_name): Update.
10937 (main_language): New function.
10938 (symtab_observer_executable_changed): Update.
10939 * symtab.h (set_main_name): Update.
10940 (language_of_main): Remove.
10941 (main_language): Declare.
10943 2014-01-15 Tom Tromey <tromey@redhat.com>
10945 * symfile.c (init_entry_point_info): Use new "initialized" field.
10947 * objfiles.h (struct entry_point) <initialized>: New field.
10948 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10949 (struct objfile) <ei>: ...here. Remove.
10950 * objfiles.c (entry_point_address_query): Update.
10952 2014-01-15 Tom Tromey <tromey@redhat.com>
10954 * objfiles.c (entry_point_address_query): Relocate entry point
10956 (objfile_relocate1): Do not relocate entry point address.
10957 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10958 <the_bfd_section_index>: New field.
10959 * symfile.c (init_entry_point_info): Find the entry point's
10962 2014-01-15 Tom Tromey <tromey@redhat.com>
10964 * solib-frv.c (enable_break): Use entry_point_address_query.
10966 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10968 * NEWS: Add note on improved process record-replay on
10969 arm*-linux* targets.
10971 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10973 * arm-tdep.c (enum arm_record_result): New enum.
10974 (arm_record_unsupported_insn): New function.
10975 (arm_record_coproc_data_proc): Removed.
10976 (thumb2_record_ld_st_multiple): New function.
10977 (thumb2_record_ld_st_dual_ex_tbb): New function.
10978 (thumb2_record_data_proc_sreg_mimm): New function.
10979 (thumb2_record_ps_dest_generic): New function.
10980 (thumb2_record_branch_misc_cntrl): New function.
10981 (thumb2_record_str_single_data): New function.
10982 (thumb2_record_ld_mem_hints): New function.
10983 (thumb2_record_ld_word): New function.
10984 (thumb2_record_lmul_lmla_div): New function.
10985 (thumb2_record_decode_insn_handler): New function.
10986 (decode_insn): Add thumb32 instruction handlers.
10988 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10990 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10991 (struct arm_linux_record_tdep): Declare.
10992 (arm_canonicalize_syscall): New function.
10993 (arm_all_but_pc_registers_record): New function.
10994 (arm_linux_syscall_record): New function.
10995 (arm_linux_init_abi): Add syscall recording constructs.
10996 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10997 decoding. (arm_record_coproc_data_proc): Update arm syscall
10999 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11000 <arm_syscall_record>: New field.
11001 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11004 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11006 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11007 register for push instruction recording.
11009 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11011 * arm-tdep.c (thumb_record_misc): Update to correct logical
11012 error while recording ldm, ldmia and pop instructions.
11014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11016 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11018 2014-01-15 Pedro Alves <palves@redhat.com>
11020 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11021 (go32_resume, go32_fetch_registers, store_register)
11022 (go32_store_registers, go32_prepare_to_store)
11023 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11024 (go32_create_inferior, go32_can_run, go32_terminal_init)
11025 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11028 2014-01-15 Tom Tromey <tromey@redhat.com>
11030 * target.h (async_callback_ftype): New typedef.
11031 (struct target_ops) <to_async>: Use it.
11033 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11035 * python/py-value.c (get_field_type): Remove unnecessary curly
11036 braces for single-statement if block.
11038 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11040 * python/py-type.c (convert_field): Add missing empty line
11041 after declarations.
11043 2014-01-14 Doug Evans <dje@google.com>
11045 * symfile.h (expand_symtabs_matching): Renamed from
11046 expand_partial_symbol_names. Update prototype.
11047 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11048 * symfile.c (expand_symtabs_matching): Renamed from
11049 expand_partial_symbol_names. New args file_matcher, kind.
11050 Rename arg fun to symbol_matcher.
11051 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11052 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11053 ada_expand_partial_symbol_name.
11054 (ada_make_symbol_completion_list): Update to call
11055 expand_symtabs_matching.
11056 (ada_add_global_exceptions): Call expand_symtabs_matching.
11057 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11058 call map_symbol_filenames.
11059 * symtab.c (sources_info): Update to call map_symbol_filenames.
11060 (search_symbols): Call expand_symtabs_matching.
11061 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11062 (default_make_symbol_completion_list_break_on): Update to call
11063 expand_symtabs_matching.
11064 (make_source_files_completion_list): Update to call
11065 map_symbol_filenames.
11067 2014-01-14 Doug Evans <dje@google.com>
11069 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11070 (expand_symtabs_symbol_matcher_ftype): New typedef.
11071 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11072 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11073 * symfile.c (expand_partial_symbol_names): Update to use
11074 expand_symtabs_symbol_matcher_ftype.
11075 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11076 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11077 Arg name_matcher renamed to symbol_matcher.
11078 * psymtab.c (recursively_search_psymtabs): Update to use
11079 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11081 (expand_symtabs_matching_via_partial): Update to use
11082 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11083 Arg name_matcher renamed to symbol_matcher.
11085 2014-01-14 Doug Evans <dje@google.com>
11087 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11088 (map_partial_symbol_filenames): Ditto.
11089 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11090 (map_partial_symbol_filenames): Ditto.
11091 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11092 (map_partial_symbol_filenames): Ditto.
11093 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11094 (map_partial_symbol_filenames): Ditto.
11095 * symtab.c: Delete #include "psymtab.h".
11097 2014-01-14 Pedro Alves <palves@redhat.com>
11098 Tom Tromey <tromey@redhat.com>
11100 * infrun.c (use_displaced_stepping): Use find_record_target
11101 instead of RECORD_IS_USED.
11102 (adjust_pc_after_break): Use record_full_is_used instead of
11104 * record-btrace.c (record_btrace_open): Call record_preopen
11105 instead of checking RECORD_IS_USED.
11106 * record-full.c (record_full_shortname)
11107 (record_full_core_shortname): New globals.
11108 (record_full_is_used): New function.
11109 (find_full_open): Call record_preopen instead of checking
11111 (init_record_full_ops): Set the target's shortname to
11112 record_full_shortname.
11113 (init_record_full_core_ops): Set the target's shortname to
11114 record_full_core_shortname.
11115 * record-full.h (record_full_is_used): Declare.
11116 * record.c (find_record_target): Make extern.
11117 (record_preopen): New function.
11118 * record.h (RECORD_IS_USED): Delete macro.
11119 (find_record_target, record_preopen): Declare functions.
11121 2014-01-14 Yao Qi <yao@codesourcery.com>
11123 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11124 'len''s type to ULONGEST.
11125 (core_xfer_shared_libraries_aix): Likewise.
11126 * gdbarch.c, gdbarch.h: Regenerated.
11127 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11128 Change type of 'len' to ULONGEST.
11129 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11130 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11132 2014-01-14 Yao Qi <yao@codesourcery.com>
11134 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11135 type of 'len' to ULONGEST.
11136 (linux_xfer_osdata_processgroups): Likewise.
11137 (linux_xfer_osdata_threads): Likewise.
11138 (linux_xfer_osdata_fds): Likewise.
11139 (linux_xfer_osdata_isockets): Likewise.
11140 (linux_xfer_osdata_shm): Likewise.
11141 (linux_xfer_osdata_sem): Likewise.
11142 (linux_xfer_osdata_msg): Likewise.
11143 (linux_common_xfer_osdata): Likewise.
11144 (struct osdata_type) <getter>: Likewise.
11145 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11148 2014-01-14 Yao Qi <yao@codesourcery.com>
11150 * target.h (target_xfer_partial_ftype): Update.
11151 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11153 * aix-thread.c (aix_thread_xfer_partial): Change type of
11154 argument 'len' to ULONGEST.
11155 * auxv.c (procfs_xfer_auxv): Likewise.
11156 (ld_so_xfer_auxv): Likewise.
11157 (memory_xfer_auxv): Likewise.
11158 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11159 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11160 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11161 * corelow.c (core_xfer_partial): Likewise.
11162 * ctf.c (ctf_xfer_partial): Likewise.
11163 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11165 (darwin_read_dyld_info): Likewise.
11166 (darwin_xfer_partial): Likewise.
11167 * exec.c (section_table_xfer_memory_partial): Likewise.
11168 (exec_xfer_partial): Likewise.
11169 * exec.h (section_table_xfer_memory_partial): Update
11171 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11172 instead of plongest.
11173 (gnu_xfer_partial): Likewise.
11174 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11175 (ia64_hpux_xfer_solib_got): Likewise.
11176 (ia64_hpux_xfer_partial): Likewise.
11177 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11178 * inf-ptrace.c (inf_ptrace_xfer_partial):
11179 * inf-ttrace.c (inf_ttrace_xfer_partial):
11180 * linux-nat.c (linux_xfer_siginfo): Likewise.
11181 (linux_nat_xfer_partial): Likewise.
11182 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11183 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11184 * monitor.c (monitor_xfer_memory): Likewise.
11185 (monitor_xfer_partial): Likewise.
11186 * procfs.c (procfs_xfer_partial): Likewise.
11187 * record-full.c (record_full_xfer_partial): Likewise.
11188 (record_full_core_xfer_partial): Likewise.
11189 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11190 instead of plongest.
11191 (gdbsim_xfer_partial): Likewise.
11192 * remote.c (remote_xfer_partial): Likewise.
11193 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11194 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11196 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11197 (rs6000_xfer_shared_libraries): Likewise.
11198 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11199 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11200 (sparc_xfer_partial): Likewise.
11201 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11202 (spu_xfer_partial): Likewise.
11203 * spu-multiarch.c (spu_xfer_partial): Likewise.
11204 * target.c (target_read_live_memory): Likewise.
11205 (memory_xfer_live_readonly_partial): Likewise.
11206 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11207 (target_xfer_partial, default_xfer_partial): Likewise.
11208 (current_xfer_partial): Likewise.
11209 * tracepoint.c (tfile_xfer_partial): Likewise.
11210 * windows-nat.c (windows_xfer_memory): Likewise. Call
11211 pulongest instead of plongest.
11212 (windows_xfer_partial): Likewise.
11213 (windows_xfer_shared_libraries): Likewise.
11215 2014-01-14 Yao Qi <yao@codesourcery.com>
11217 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11218 target_xfer_partial_ftype.
11220 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11224 * valops.c (value_struct_elt_bitpos): New function
11225 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11226 object to 'None' if the field name is an empty string ("").
11227 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11228 attribute to look for a field when 'name' is 'None'.
11229 (get_field_type): New function
11231 2014-01-13 Doug Evans <dje@google.com>
11234 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11235 (try_open_dwop_file): Ditto.
11236 * gdb_bfd.c: #include "vec.h".
11237 (bfdp): New typedef.
11238 (struct gdb_bfd_data): New member included_bfds.
11239 (gdb_bfd_unref): Unref all included bfds.
11240 (gdb_bfd_record_inclusion): New function.
11241 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11243 2014-01-13 Tom Tromey <tromey@redhat.com>
11245 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11247 2014-01-13 Tom Tromey <tromey@redhat.com>
11249 * defs.h (use_windows): Remove.
11250 * gdb.c (main): Update.
11251 * main.c (captured_main, gdb_main): Update.
11252 * main.h (struct captured_main_args) <use_windows>: Remove.
11253 * top.c (use_windows): Remove.
11255 2014-01-13 Tom Tromey <tromey@redhat.com>
11257 * defs.h (deprecated_flush_hook): Remove.
11259 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11262 * linux-thread-db.c (try_thread_db_load): Add parameter
11263 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11264 (try_thread_db_load_from_pdir_1): Move it there from here.
11265 (try_thread_db_load_from_sdir): Update caller.
11266 (try_thread_db_load_from_dir): Move it there from here.
11268 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11270 * regformats/regdat.sh: Always rewrite the register file.
11272 2014-01-13 Pedro Alves <palves@redhat.com>
11274 * Makefile.in (CHECK_HEADERS): New variable.
11275 (check-headers:): New rule.
11277 2014-01-13 Tom Tromey <tromey@redhat.com>
11279 * cli/cli-setshow.c (do_set_command): Update.
11280 * defs.h (deprecated_set_hook): Remove.
11281 * top.c (deprecated_set_hook): Remove.
11283 2014-01-13 Pedro Alves <palves@redhat.com>
11285 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11286 the tracepoint if the PC is a pseudo-register.
11288 2014-01-13 Tom Tromey <tromey@redhat.com>
11290 * defs.h (XCALLOC): Remove.
11291 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11292 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11293 * dwarf2loc.c (allocate_piece_closure): Likewise.
11294 * elfread.c (elf_symfile_segments): Likewise.
11295 (elf_symfile_segments): Likewise.
11296 * gdbtypes.c (copy_type_recursive): Likewise.
11297 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11298 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11299 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11301 * mt-tdep.c (mt_gdbarch_init): Likewise.
11302 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11304 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11305 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11306 * registry.c (registry_alloc_data): Likewise.
11307 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11308 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11309 * serial.c (serial_fdopen_ops): Likewise.
11310 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11312 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11313 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11316 2014-01-13 Tom Tromey <tromey@redhat.com>
11318 * defs.h (XMALLOC): Remove.
11319 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11320 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11321 * cli-out.c (struct ui_out *): Likewise.
11322 * cli/cli-dump.c (add_dump_command): Likewise.
11323 (add_dump_command): Likewise.
11324 * complaints.c (get_complaints): Likewise.
11325 (find_complaint): Likewise.
11326 * dwarf2-frame.c (execute_cfa_program): Likewise.
11327 * dwarf2read.c (abbrev_table_read_table): Likewise.
11328 * gdbarch.sh: Likewise.
11329 * gdbarch.c: Rebuild.
11330 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11331 * interps.c (interp_new): Likewise.
11332 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11333 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11334 * mi/mi-console.c (mi_console_file_new): Likewise.
11335 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11336 * mi/mi-out.c (mi_out_new): Likewise.
11337 * mi/mi-parse.c (mi_parse): Likewise.
11338 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11339 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11340 * observer.c (xalloc_observer_list_node): Likewise.
11341 * regcache.c (regcache_xmalloc_1): Likewise.
11342 * reggroups.c (reggroup_new): Likewise.
11343 (_initialize_reggroup): Likewise.
11344 * registry.c (register_data_with_cleanup): Likewise.
11345 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11346 * ser-base.c (serial_ttystate): Likewise.
11347 * ser-mingw.c (make_pipe_state): Likewise.
11348 * ser-pipe.c (pipe_open): Likewise.
11349 * serial.c (serial_open): Likewise.
11350 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11351 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11352 (tui_alloc_win_info): Likewise.
11353 (tui_add_content_elements): Likewise.
11354 * tui/tui-file.c (tui_file_new): Likewise.
11355 * tui/tui-out.c (tui_out_new): Likewise.
11356 * ui-file.c (mem_file_new): Likewise.
11357 * ui-out.c (push_level): Likewise.
11358 (make_cleanup_ui_out_end): Likewise.
11359 (append_header_to_list): Likewise.
11360 (ui_out_new): Likewise.
11361 * user-regs.c (user_reg_add_builtin): Likewise.
11363 2014-01-13 Tom Tromey <tromey@redhat.com>
11365 * defs.h (XZALLOC): Remove.
11366 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11367 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11368 (get_ada_tasks_inferior_data): Likewise.
11369 * auto-load.c (get_auto_load_pspace_data): Likewise.
11370 * auxv.c (get_auxv_inferior_data): Likewise.
11371 * bfd-target.c (target_bfd_reopen): Likewise.
11372 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11373 (deprecated_insert_raw_breakpoint): Likewise.
11374 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11375 * corelow.c (core_open): Likewise.
11376 * darwin-nat.c (darwin_check_new_threads): Likewise.
11377 (darwin_attach_pid): Likewise.
11378 * dummy-frame.c (dummy_frame_push): Likewise.
11379 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11380 * dwarf2loc.c (allocate_piece_closure): Likewise.
11381 * elfread.c (elf_symfile_segments): Likewise.
11382 * eval.c (ptrmath_type_p): Likewise.
11383 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11384 * gdbtypes.c (alloc_type_arch): Likewise.
11385 (alloc_type_instance): Likewise.
11386 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11387 * inf-child.c (inf_child_can_use_agent): Likewise.
11388 * inflow.c (get_inflow_inferior_data): Likewise.
11389 * infrun.c (save_infcall_suspend_state): Likewise.
11390 * jit.c (jit_reader_load): Likewise.
11391 (get_jit_objfile_data): Likewise.
11392 (get_jit_program_space_data): Likewise.
11393 (jit_object_open_impl): Likewise.
11394 (jit_symtab_open_impl): Likewise.
11395 (jit_block_open_impl): Likewise.
11396 (jit_frame_sniffer): Likewise.
11397 * linux-fork.c (add_fork): Likewise.
11398 * maint.c (make_command_stats_cleanup): Likewise.
11399 * objfiles.c (get_objfile_pspace_data): Likewise.
11400 * opencl-lang.c (struct lval_closure): Likewise.
11401 * osdata.c (osdata_start_osdata): Likewise.
11402 * progspace.c (new_address_space): Likewise.
11403 (add_program_space): Likewise.
11404 * remote-sim.c (get_sim_inferior_data): Likewise.
11405 * sh-tdep.c (sh_gdbarch_init): Likewise.
11406 * skip.c (Ignore): Likewise.
11407 (skip_delete_command): Likewise.
11408 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11409 (library_list_start_library): Likewise.
11410 (solib_aix_current_sos): Likewise.
11411 * solib-darwin.c (get_darwin_info): Likewise.
11412 (darwin_current_sos): Likewise.
11413 * solib-dsbt.c (get_dsbt_info): Likewise.
11414 * solib-ia64-hpux.c (new_so_list): Likewise.
11415 (ia64_hpux_get_solib_linkage_addr): Likewise.
11416 * solib-spu.c (append_ocl_sos): Likewise.
11417 (spu_current_sos): Likewise.
11418 * solib-svr4.c (get_svr4_info): Likewise.
11419 (svr4_keep_data_in_core): Likewise.
11420 (library_list_start_library): Likewise.
11421 (svr4_default_sos): Likewise.
11422 (svr4_read_so_list): Likewise.
11423 * solib-target.c (library_list_start_library): Likewise.
11424 (solib_target_current_sos): Likewise.
11425 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11426 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11427 * symfile.c (default_symfile_segments): Likewise.
11428 * target-descriptions.c (tdesc_data_init): Likewise.
11429 (tdesc_create_reg): Likewise.
11430 (struct tdesc_type *): Likewise.
11431 (tdesc_create_vector): Likewise.
11432 (tdesc_set_struct_size): Likewise.
11433 (struct tdesc_type *): Likewise.
11434 (tdesc_free_feature): Likewise.
11435 (tdesc_create_feature): Likewise.
11436 * windows-nat.c (windows_add_thread): Likewise.
11437 (windows_make_so): Likewise.
11438 * xml-support.c (gdb_xml_body_text): Likewise.
11439 (gdb_xml_create_parser_and_cleanup): Likewise.
11440 (xml_process_xincludes): Likewise.
11441 * xml-syscall.c (allocate_syscalls_info): Likewise.
11442 (syscall_create_syscall_desc): Likewise.
11444 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11446 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11447 function, with code from i386_stap_parse_special_token.
11448 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11449 (i386_stap_parse_special_token): Move code to the two functions
11450 above; simplify it.
11452 2014-01-09 Pedro Alves <palves@redhat.com>
11453 Hui Zhu <hui@codesourcery.com>
11456 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11457 bp_err_string. Don't mark the location shlib_disabled if the
11458 error thrown wasn't a generic or memory error. Catch errors
11459 thrown while inserting breakpoints in overlayed code. Output
11460 error message of software breakpoints.
11461 * remote.c (remote_insert_breakpoint): If this breakpoint has
11462 target-side commands but this stub doesn't support Z0 packets,
11463 throw NOT_SUPPORTED_ERROR error.
11464 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11465 * target.h (target_insert_breakpoint): Extend comment.
11466 (target_insert_hw_breakpoint): Add comment.
11468 2014-01-08 Pedro Alves <palves@redhat.com>
11470 * remote.c (remote_add_thread): Add threads silently if starting
11472 (remote_notice_new_inferior): If in all-stop, and starting up,
11473 don't call notice_new_inferior.
11474 (get_current_thread): New function, factored out from ...
11475 (add_current_inferior_and_thread): ... this. Adjust.
11476 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11477 found any thread, then select the remote's current thread as GDB's
11478 current thread too.
11480 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11482 * NEWS: Create a new section for the next release branch.
11483 Rename the section of the current branch, now that it has
11486 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11488 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11489 * version.in: Bump version to 7.7.50.DATE-cvs.
11491 2014-01-08 Yao Qi <yao@codesourcery.com>
11493 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11494 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11495 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11497 2014-01-08 Yao Qi <yao@codesourcery.com>
11499 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11500 return value of bfd_get_filename to symbol_file_add_from_bfd.
11502 2014-01-08 Pierre Muller <muller@sourceware.org>
11505 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11506 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11507 to prim_record_mininal_symbol_and_info.
11508 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11509 in call to prim_record_minimal_symbol_and_info.
11510 (read_pe_exported_syms): Set index field of section_data.
11512 2014-01-07 Andrew Pinski <apinski@cavium.com>
11514 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11515 * features/aarch64.c: Regenerate.
11517 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11519 * target.c (return_null): Define.
11520 (update_current_target): Use it instead of return_zero for
11521 functions that return a pointer.
11523 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11525 * source.c (add_path): Fix check for duplicated paths in the previously
11528 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11530 * ada-lang.c: Remove duplicated include statements.
11531 * alphabsd-nat.c: Ditto.
11532 * amd64-darwin-tdep.c: Ditto.
11533 * amd64fbsd-nat.c: Ditto.
11534 * auto-load.c: Ditto.
11536 * breakpoint.c: Ditto.
11537 * dbxread.c: Ditto.
11538 * fork-child.c: Ditto.
11539 * gdb_usleep.c: Ditto.
11540 * i386-darwin-tdep.c: Ditto.
11541 * i386fbsd-nat.c: Ditto.
11543 * inferior.c: Ditto.
11544 * jv-lang.c: Ditto.
11545 * linux-nat.c: Ditto.
11546 * linux-tdep.c: Ditto.
11547 * m68kbsd-nat.c: Ditto.
11548 * m68klinux-nat.c: Ditto.
11549 * microblaze-tdep.c: Ditto.
11550 * mips-linux-tdep.c: Ditto.
11551 * mn10300-tdep.c: Ditto.
11552 * nto-tdep.c: Ditto.
11553 * opencl-lang.c: Ditto.
11555 * printcmd.c: Ditto.
11556 * regcache.c: Ditto.
11557 * remote-m32r-sdi.c: Ditto.
11559 * symfile.c: Ditto.
11561 * tilegx-linux-nat.c: Ditto.
11562 * tilegx-tdep.c: Ditto.
11563 * tracepoint.c: Ditto.
11565 * vaxbsd-nat.c: Ditto.
11566 * windows-nat.c: Ditto.
11567 * xtensa-tdep.c: Ditto.
11569 2014-01-07 Yao Qi <yao@codesourcery.com>
11571 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11573 2014-01-07 Yao Qi <yao@codesourcery.com>
11574 Joel Brobecker <brobecker@adacore.com>
11576 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11577 (pdc_write_regs): Likewise.
11578 (fetch_regs_kernel_thread): Likewise.
11579 (store_regs_kernel_thread): Likewise.
11581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11583 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11584 tagged type objects to their actual type.
11586 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11588 * ada-valprint.c (print_field_values): Add "language" parameter.
11589 Update calls to print_field_values and print_variant_part.
11590 Pass new parameter "language" in call to val_print instead
11591 of "current_language". Replace call to ada_val_print by call
11593 (print_variant_part): Add "language" parameter.
11594 (ada_val_print_struct_union): Update call to print_field_values.
11596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11598 * ada-valprint.c (ui_memcpy): Delete.
11599 (ada_print_floating): Update documentation. Add empty line
11600 between between function documentation and implementation.
11601 Delete variable "buffer". Use ui_file_xstrdup in place of
11602 ui_file_put. Minor adjustments following this change.
11604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11606 * ada-valprint.c (ada_val_print_string): New function,
11607 extracted from ada_val_print_array.
11608 (ada_val_print_array): Replace extracted code by call
11609 to ada_val_print_string followed by a return. Move
11610 "else" branch to the function's top block.
11612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11614 * ada-valprint.c (ada_val_print_array): Move implementation
11615 down. Rename parameter "offset" and "val" into "offset_aligned"
11616 and "original_value" respectively. Add parameter "offset".
11618 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11620 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11621 re-organizing the code. Change the "???" message printed
11622 when target type is a TYPE_CODE_UNDEF into
11623 "<ref to undefined type>".
11625 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11627 * ada-valprint.c (print_record): Delete, implementation inlined...
11628 (ada_val_print_struct_union): ... here. Remove call to
11629 ada_check_typedef in inlined implementation.
11631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11633 * ada-valprint.c (ada_val_print_gnat_array): New function,
11634 extracted from ada_val_print_1;
11635 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11636 (ada_val_print_flt, ada_val_print_struct_union)
11637 (ada_val_print_ref): Likewise.
11638 (ada_val_print_1): Delete variables i and elttype.
11639 Replace extracted-out code by call to corresponding
11642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11644 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11648 * ada-valprint.c (ada_val_print_1): Replace calls to
11649 ada_val_print_1 by calls to val_print.
11651 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11653 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11654 Update calls to self accordingly. Replace calls to c_val_print
11655 by calls to val_print.
11657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11659 * ada-valprint.c (print_record): Delete declaration.
11660 (adjust_type_signedness, ada_val_print_1): Likewise.
11661 (ada_val_print): Move function implementation down.
11662 (print_variant_part, print_field_values, print_record):
11663 Move function implementation up.
11665 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11667 * python/py-type.c (typy_get_name): New function.
11668 (type_object_getset): Add entry for attribute "name".
11669 * NEWS: Add entry mentioning this new attribute.
11671 2014-01-07 Yao Qi <yao@codesourcery.com>
11673 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11676 2014-01-07 Yao Qi <yao@codesourcery.com>
11678 * gnu-nat.c (info_port_rights): Add qualifier const to
11681 2014-01-07 Yao Qi <yao@codesourcery.com>
11683 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11685 2014-01-07 Yao Qi <yao@codesourcery.com>
11687 * gnu-nat.c (make_inf) Update declaration.
11688 (make_inf): Make it static.
11689 (inf_set_traced): Likewise.
11690 (inf_port_to_thread, inf_task_died_status): Likewise.
11692 2014-01-07 Yao Qi <yao@codesourcery.com>
11694 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11696 2014-01-07 Yao Qi <yao@codesourcery.com>
11698 * gnu-nat.c (_initialize_gnu_nat): Declare.
11700 2014-01-07 Yao Qi <yao@codesourcery.com>
11702 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11704 (struct gdbarch_info) <byte_order>: Change type to
11706 <byte_order_for_code>: Likewise.
11707 * gdbarch.c, gdbarch.h: Regenerated.
11709 2014-01-06 Sasha Smundak <asmundak@google.com>
11711 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11713 2014-01-06 Tom Tromey <tromey@redhat.com>
11715 * doublest.c (convert_doublest_to_floatformat): Use const, not
11717 * somread.c (som_symtab_read): Likewise.
11719 2014-01-07 Hui Zhu <hui@codesourcery.com>
11721 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11722 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11723 (gdb_bfd_fopen): Ditto.
11724 (gdb_bfd_openr): Ditto.
11725 (gdb_bfd_openw): Ditto.
11726 (gdb_bfd_openr_iovec): Ditto.
11727 (gdb_bfd_fdopenr): Ditto.
11728 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11729 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11731 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11733 * symfile-mem.c (symbol_file_add_from_memory): Removed
11734 gdb_bfd_stash_filename.
11736 2014-01-03 Doug Evans <dje@google.com>
11738 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11741 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11743 Update year range in copyright notice of all files.
11745 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11747 * top.c (print_gdb_version): Set copyright year to 2014.
11749 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11751 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11753 For older changes see ChangeLog-2013.
11759 version-control: never