1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4 by call to alpha_supply_int_regs.
5 (alpha_linux_collect_gregset): New function.
6 (alpha_linux_supply_fpregset): Replace logic by call to
8 (alpha_linux_collect_fpregset): New function.
9 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
11 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
14 by call to regcache_collect_regset.
15 (supply_gregset, supply_fpregset): Call regcache_supply_regset
16 instead of aarch64_linux_supply_gregset/_fpregset.
17 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
18 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
20 (aarch64_linux_supply_gregset, supply_gregset_from_core)
21 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
22 functions. Move logic to ...
23 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
25 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
26 refer to new register maps, replace *_regset_from_core by
27 regcache_supply_regset, and also use regcache_collect_regset.
28 * aarch64-linux-tdep.h: Include "regset.h".
29 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
31 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
32 macros, moved from C source file.
33 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
34 variable declarations.
36 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
38 * s390-linux-nat.c: Include "regset.h".
39 (regmap_gregset): Delete macro.
40 (s390_64_regmap_gregset): New register map for
41 regcache_supply/_collect_regset.
42 (s390_64_gregset): New regset.
43 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
44 (regmap_fpregset): Delete macro.
45 (s390_native_supply, s390_native_collect): Delete functions.
46 (supply_gregset, fill_gregset): Replace s390-specific regmap
47 handling by a call to regcache_supply/_collect_regset.
48 (supply_fpregset, fill_fpregset): Call regcache_supply/
49 _collect_regset instead of s390_native_supply/_collect.
50 (fetch_regset, store_regset): Likewise. Also change the last
51 parameter to a regset instead of a regmap.
52 (s390_linux_fetch_inferior_registers)
53 (390_linux_store_inferior_registers): Adjust last parameter in
54 calls to fetch_regset and store_regset.
55 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
56 (s390_gregmap): ... this. Also make static const and convert to
57 regcache_map_entry format.
58 (s390x_regmap_gregset): Delete.
59 (s390_regmap_fpregset): Rename to...
60 (s390_fpregmap): ... this. Make static const and convert to
61 regcache_map_entry format.
62 (s390_regmap_upper, s390_regmap_last_break)
63 (s390x_regmap_last_break, s390_regmap_system_call)
64 (s390_regmap_tdb): Likewise.
65 (s390_supply_regset, s390_collect_regset): Remove functions.
66 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
68 (s390_gregset, s390_fpregset, s390_upper_regset)
69 (s390_last_break_regset, s390x_last_break_regset)
70 (s390_system_call_regset, s390_tdb_regset): Make global and
71 replace s390_supply/_collect_regset by regcache_supply/
73 (s390x_gregset): Delete.
74 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
75 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
76 (s390_regmap_fpregset, s390_regmap_last_break)
77 (s390x_regmap_last_break, s390_regmap_system_call)
78 (s390_regmap_tdb): Delete global variable declarations.
79 (s390_gregset, s390_fpregset, s390_last_break_regset)
80 (s390x_last_break_regset, s390_system_call_regset)
81 (s390_tdb_regset): New global variable declarations.
83 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
85 * regcache.c: Include "regset.h".
86 (regcache_transfer_regset): New local function.
87 (regcache_supply_regset, regcache_collect_regset): New functions.
88 * regcache.h (struct regcache_map_entry): New structure.
89 (REGCACHE_MAP_SKIP): New enum value.
90 (regcache_supply_regset, regcache_collect_regset): New prototypes.
92 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
94 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
95 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
96 (ppc_linux_collect_gregset ): Likewise.
97 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
98 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
99 (ppc_collect_vrregset): Likewise.
100 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
103 2014-08-07 Yao Qi <yao@codesourcery.com>
105 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
106 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
107 * remote.c (remote_read_bytes): Likewise.
109 2014-08-07 Yao Qi <yao@codesourcery.com>
111 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
113 2014-08-07 Yao Qi <yao@codesourcery.com>
116 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
117 TARGET_XFER_OK instead of 0.
119 2014-08-07 Gary Benson <gbenson@redhat.com>
121 * common/common-defs.h: Include errno.h.
122 * defs.h: Do not include errno.h.
123 * ada-typeprint.c: Likewise.
124 * c-typeprint.c: Likewise.
125 * core-regset.c: Likewise.
126 * corefile.c: Likewise.
127 * corelow.c: Likewise.
128 * event-loop.c: Likewise.
129 * f-typeprint.c: Likewise.
130 * gnu-nat.c: Likewise.
131 * go32-nat.c: Likewise.
132 * i386gnu-nat.c: Likewise.
133 * m2-typeprint.c: Likewise.
134 * nat/linux-btrace.c: Likewise.
135 * p-typeprint.c: Likewise.
136 * procfs.c: Likewise.
137 * remote-sim.c: Likewise.
138 * rs6000-nat.c: Likewise.
139 * target.c: Likewise.
140 * typeprint.c: Likewise.
141 * ui-file.c: Likewise.
142 * valops.c: Likewise.
143 * valprint.c: Likewise.
145 2014-08-07 Gary Benson <gbenson@redhat.com>
147 * common/common-defs.h: Include string.h.
148 * aarch64-tdep.c: Do not include string.h.
149 * ada-exp.y: Likewise.
150 * ada-lang.c: Likewise.
151 * ada-lex.l: Likewise.
152 * ada-typeprint.c: Likewise.
153 * ada-valprint.c: Likewise.
154 * aix-thread.c: Likewise.
155 * alpha-linux-tdep.c: Likewise.
156 * alpha-mdebug-tdep.c: Likewise.
157 * alpha-nat.c: Likewise.
158 * alpha-osf1-tdep.c: Likewise.
159 * alpha-tdep.c: Likewise.
160 * alphanbsd-tdep.c: Likewise.
161 * amd64-dicos-tdep.c: Likewise.
162 * amd64-linux-tdep.c: Likewise.
163 * amd64-nat.c: Likewise.
164 * amd64-sol2-tdep.c: Likewise.
165 * amd64fbsd-tdep.c: Likewise.
166 * amd64obsd-tdep.c: Likewise.
167 * arch-utils.c: Likewise.
168 * arm-linux-nat.c: Likewise.
169 * arm-linux-tdep.c: Likewise.
170 * arm-tdep.c: Likewise.
171 * arm-wince-tdep.c: Likewise.
172 * armbsd-tdep.c: Likewise.
173 * armnbsd-nat.c: Likewise.
174 * armnbsd-tdep.c: Likewise.
175 * armobsd-tdep.c: Likewise.
176 * avr-tdep.c: Likewise.
177 * ax-gdb.c: Likewise.
178 * ax-general.c: Likewise.
179 * bcache.c: Likewise.
180 * bfin-tdep.c: Likewise.
181 * breakpoint.c: Likewise.
182 * build-id.c: Likewise.
183 * buildsym.c: Likewise.
185 * c-lang.c: Likewise.
186 * c-typeprint.c: Likewise.
187 * c-valprint.c: Likewise.
188 * charset.c: Likewise.
189 * cli-out.c: Likewise.
190 * cli/cli-cmds.c: Likewise.
191 * cli/cli-decode.c: Likewise.
192 * cli/cli-dump.c: Likewise.
193 * cli/cli-interp.c: Likewise.
194 * cli/cli-logging.c: Likewise.
195 * cli/cli-script.c: Likewise.
196 * cli/cli-setshow.c: Likewise.
197 * cli/cli-utils.c: Likewise.
198 * coffread.c: Likewise.
199 * common/agent.c: Likewise.
200 * common/buffer.c: Likewise.
201 * common/buffer.h: Likewise.
202 * common/common-utils.c: Likewise.
203 * common/filestuff.c: Likewise.
204 * common/filestuff.c: Likewise.
205 * common/format.c: Likewise.
206 * common/print-utils.c: Likewise.
207 * common/rsp-low.c: Likewise.
208 * common/signals.c: Likewise.
209 * common/vec.h: Likewise.
210 * common/xml-utils.c: Likewise.
211 * core-regset.c: Likewise.
212 * corefile.c: Likewise.
213 * corelow.c: Likewise.
214 * cp-abi.c: Likewise.
215 * cp-name-parser.y: Likewise.
216 * cp-support.c: Likewise.
217 * cp-valprint.c: Likewise.
218 * cris-tdep.c: Likewise.
220 * darwin-nat.c: Likewise.
221 * dbxread.c: Likewise.
222 * dcache.c: Likewise.
223 * demangle.c: Likewise.
224 * dicos-tdep.c: Likewise.
225 * disasm.c: Likewise.
226 * doublest.c: Likewise.
228 * dummy-frame.c: Likewise.
229 * dwarf2-frame.c: Likewise.
230 * dwarf2loc.c: Likewise.
231 * dwarf2read.c: Likewise.
232 * elfread.c: Likewise.
233 * environ.c: Likewise.
235 * event-loop.c: Likewise.
236 * exceptions.c: Likewise.
238 * expprint.c: Likewise.
240 * f-lang.c: Likewise.
241 * f-typeprint.c: Likewise.
242 * f-valprint.c: Likewise.
243 * fbsd-nat.c: Likewise.
244 * findcmd.c: Likewise.
245 * findvar.c: Likewise.
246 * fork-child.c: Likewise.
248 * frv-linux-tdep.c: Likewise.
249 * frv-tdep.c: Likewise.
251 * gdb_bfd.c: Likewise.
252 * gdbarch.c: Likewise.
253 * gdbarch.sh: Likewise.
254 * gdbtypes.c: Likewise.
255 * gnu-nat.c: Likewise.
256 * gnu-v2-abi.c: Likewise.
257 * gnu-v3-abi.c: Likewise.
258 * go-exp.y: Likewise.
259 * go-lang.c: Likewise.
260 * go32-nat.c: Likewise.
261 * guile/guile.c: Likewise.
262 * guile/scm-auto-load.c: Likewise.
263 * hppa-hpux-tdep.c: Likewise.
264 * hppa-linux-nat.c: Likewise.
265 * hppanbsd-tdep.c: Likewise.
266 * hppaobsd-tdep.c: Likewise.
267 * i386-cygwin-tdep.c: Likewise.
268 * i386-dicos-tdep.c: Likewise.
269 * i386-linux-tdep.c: Likewise.
270 * i386-nto-tdep.c: Likewise.
271 * i386-sol2-tdep.c: Likewise.
272 * i386-tdep.c: Likewise.
273 * i386bsd-tdep.c: Likewise.
274 * i386gnu-nat.c: Likewise.
275 * i386nbsd-tdep.c: Likewise.
276 * i386obsd-tdep.c: Likewise.
277 * i387-tdep.c: Likewise.
278 * ia64-libunwind-tdep.c: Likewise.
279 * ia64-linux-nat.c: Likewise.
280 * inf-child.c: Likewise.
281 * inf-ptrace.c: Likewise.
282 * inf-ttrace.c: Likewise.
283 * infcall.c: Likewise.
284 * infcmd.c: Likewise.
285 * inflow.c: Likewise.
286 * infrun.c: Likewise.
287 * interps.c: Likewise.
288 * iq2000-tdep.c: Likewise.
289 * irix5-nat.c: Likewise.
290 * jv-exp.y: Likewise.
291 * jv-lang.c: Likewise.
292 * jv-typeprint.c: Likewise.
293 * jv-valprint.c: Likewise.
294 * language.c: Likewise.
295 * linux-fork.c: Likewise.
296 * linux-nat.c: Likewise.
297 * lm32-tdep.c: Likewise.
298 * m2-exp.y: Likewise.
299 * m2-typeprint.c: Likewise.
300 * m32c-tdep.c: Likewise.
301 * m32r-linux-nat.c: Likewise.
302 * m32r-linux-tdep.c: Likewise.
303 * m32r-rom.c: Likewise.
304 * m32r-tdep.c: Likewise.
305 * m68hc11-tdep.c: Likewise.
306 * m68k-tdep.c: Likewise.
307 * m68kbsd-tdep.c: Likewise.
308 * m68klinux-nat.c: Likewise.
309 * m68klinux-tdep.c: Likewise.
310 * m88k-tdep.c: Likewise.
311 * machoread.c: Likewise.
312 * macrocmd.c: Likewise.
314 * mdebugread.c: Likewise.
315 * mem-break.c: Likewise.
316 * memattr.c: Likewise.
317 * memory-map.c: Likewise.
318 * mep-tdep.c: Likewise.
319 * mi/mi-cmd-break.c: Likewise.
320 * mi/mi-cmd-disas.c: Likewise.
321 * mi/mi-cmd-env.c: Likewise.
322 * mi/mi-cmd-stack.c: Likewise.
323 * mi/mi-cmd-var.c: Likewise.
324 * mi/mi-cmds.c: Likewise.
325 * mi/mi-console.c: Likewise.
326 * mi/mi-getopt.c: Likewise.
327 * mi/mi-interp.c: Likewise.
328 * mi/mi-main.c: Likewise.
329 * mi/mi-parse.c: Likewise.
330 * microblaze-rom.c: Likewise.
331 * microblaze-tdep.c: Likewise.
332 * mingw-hdep.c: Likewise.
333 * minidebug.c: Likewise.
334 * minsyms.c: Likewise.
335 * mips-irix-tdep.c: Likewise.
336 * mips-linux-tdep.c: Likewise.
337 * mips-tdep.c: Likewise.
338 * mips64obsd-tdep.c: Likewise.
339 * mipsnbsd-tdep.c: Likewise.
340 * mipsread.c: Likewise.
341 * mn10300-linux-tdep.c: Likewise.
342 * mn10300-tdep.c: Likewise.
343 * monitor.c: Likewise.
344 * moxie-tdep.c: Likewise.
345 * mt-tdep.c: Likewise.
346 * nat/linux-btrace.c: Likewise.
347 * nat/linux-osdata.c: Likewise.
348 * nat/linux-procfs.c: Likewise.
349 * nat/linux-ptrace.c: Likewise.
350 * nat/linux-waitpid.c: Likewise.
351 * nbsd-tdep.c: Likewise.
352 * nios2-linux-tdep.c: Likewise.
353 * nto-procfs.c: Likewise.
354 * nto-tdep.c: Likewise.
355 * objc-lang.c: Likewise.
356 * objfiles.c: Likewise.
357 * opencl-lang.c: Likewise.
359 * osdata.c: Likewise.
361 * p-lang.c: Likewise.
362 * p-typeprint.c: Likewise.
364 * posix-hdep.c: Likewise.
365 * ppc-linux-nat.c: Likewise.
366 * ppc-sysv-tdep.c: Likewise.
367 * ppcfbsd-tdep.c: Likewise.
368 * ppcnbsd-tdep.c: Likewise.
369 * ppcobsd-tdep.c: Likewise.
370 * printcmd.c: Likewise.
371 * procfs.c: Likewise.
372 * prologue-value.c: Likewise.
373 * python/py-auto-load.c: Likewise.
374 * python/py-gdb-readline.c: Likewise.
375 * ravenscar-thread.c: Likewise.
376 * regcache.c: Likewise.
377 * registry.c: Likewise.
378 * remote-fileio.c: Likewise.
379 * remote-m32r-sdi.c: Likewise.
380 * remote-mips.c: Likewise.
381 * remote-notif.c: Likewise.
382 * remote-sim.c: Likewise.
383 * remote.c: Likewise.
384 * reverse.c: Likewise.
385 * rs6000-aix-tdep.c: Likewise.
386 * ser-base.c: Likewise.
387 * ser-go32.c: Likewise.
388 * ser-mingw.c: Likewise.
389 * ser-pipe.c: Likewise.
390 * ser-tcp.c: Likewise.
391 * ser-unix.c: Likewise.
392 * serial.c: Likewise.
393 * sh-tdep.c: Likewise.
394 * sh64-tdep.c: Likewise.
395 * shnbsd-tdep.c: Likewise.
397 * sol-thread.c: Likewise.
398 * solib-dsbt.c: Likewise.
399 * solib-frv.c: Likewise.
400 * solib-osf.c: Likewise.
401 * solib-som.c: Likewise.
402 * solib-spu.c: Likewise.
403 * solib-target.c: Likewise.
405 * somread.c: Likewise.
406 * source.c: Likewise.
407 * sparc-nat.c: Likewise.
408 * sparc-sol2-tdep.c: Likewise.
409 * sparc-tdep.c: Likewise.
410 * sparc64-tdep.c: Likewise.
411 * sparc64fbsd-tdep.c: Likewise.
412 * sparc64nbsd-tdep.c: Likewise.
413 * sparcnbsd-tdep.c: Likewise.
414 * spu-linux-nat.c: Likewise.
415 * spu-multiarch.c: Likewise.
416 * spu-tdep.c: Likewise.
417 * stabsread.c: Likewise.
419 * std-regs.c: Likewise.
420 * symfile.c: Likewise.
421 * symmisc.c: Likewise.
422 * symtab.c: Likewise.
423 * target.c: Likewise.
424 * thread.c: Likewise.
425 * tilegx-linux-nat.c: Likewise.
426 * tilegx-tdep.c: Likewise.
428 * tracepoint.c: Likewise.
429 * tui/tui-command.c: Likewise.
430 * tui/tui-data.c: Likewise.
431 * tui/tui-disasm.c: Likewise.
432 * tui/tui-file.c: Likewise.
433 * tui/tui-layout.c: Likewise.
434 * tui/tui-out.c: Likewise.
435 * tui/tui-regs.c: Likewise.
436 * tui/tui-source.c: Likewise.
437 * tui/tui-stack.c: Likewise.
438 * tui/tui-win.c: Likewise.
439 * tui/tui-windata.c: Likewise.
440 * tui/tui-winsource.c: Likewise.
441 * typeprint.c: Likewise.
442 * ui-file.c: Likewise.
443 * ui-out.c: Likewise.
444 * user-regs.c: Likewise.
446 * v850-tdep.c: Likewise.
447 * valarith.c: Likewise.
448 * valops.c: Likewise.
449 * valprint.c: Likewise.
451 * varobj.c: Likewise.
452 * vax-tdep.c: Likewise.
453 * vaxnbsd-tdep.c: Likewise.
454 * vaxobsd-tdep.c: Likewise.
455 * windows-nat.c: Likewise.
456 * xcoffread.c: Likewise.
457 * xml-support.c: Likewise.
458 * xstormy16-tdep.c: Likewise.
459 * xtensa-linux-nat.c: Likewise.
461 2014-08-07 Gary Benson <gbenson@redhat.com>
463 * common/common-defs.h: Include gdb_assert.h.
464 * aarch64-tdep.c: Do not include gdb_assert.h.
465 * addrmap.c: Likewise.
466 * aix-thread.c: Likewise.
467 * alpha-linux-tdep.c: Likewise.
468 * alpha-mdebug-tdep.c: Likewise.
469 * alphanbsd-tdep.c: Likewise.
470 * amd64-nat.c: Likewise.
471 * amd64-tdep.c: Likewise.
472 * amd64bsd-nat.c: Likewise.
473 * amd64fbsd-nat.c: Likewise.
474 * amd64fbsd-tdep.c: Likewise.
475 * amd64nbsd-nat.c: Likewise.
476 * amd64nbsd-tdep.c: Likewise.
477 * amd64obsd-nat.c: Likewise.
478 * amd64obsd-tdep.c: Likewise.
479 * arch-utils.c: Likewise.
480 * arm-tdep.c: Likewise.
481 * armbsd-tdep.c: Likewise.
483 * bcache.c: Likewise.
484 * bfin-tdep.c: Likewise.
485 * blockframe.c: Likewise.
486 * breakpoint.c: Likewise.
487 * bsd-kvm.c: Likewise.
488 * bsd-uthread.c: Likewise.
489 * buildsym.c: Likewise.
491 * c-lang.c: Likewise.
492 * charset.c: Likewise.
493 * cleanups.c: Likewise.
494 * cli-out.c: Likewise.
495 * cli/cli-decode.c: Likewise.
496 * cli/cli-dump.c: Likewise.
497 * cli/cli-logging.c: Likewise.
498 * cli/cli-script.c: Likewise.
499 * cli/cli-utils.c: Likewise.
500 * coffread.c: Likewise.
501 * common/common-utils.c: Likewise.
502 * common/queue.h: Likewise.
503 * common/signals.c: Likewise.
504 * common/vec.h: Likewise.
505 * complaints.c: Likewise.
506 * completer.c: Likewise.
507 * corelow.c: Likewise.
508 * cp-abi.c: Likewise.
509 * cp-name-parser.y: Likewise.
510 * cp-namespace.c: Likewise.
511 * cp-support.c: Likewise.
512 * cris-tdep.c: Likewise.
513 * dbxread.c: Likewise.
514 * dictionary.c: Likewise.
515 * doublest.c: Likewise.
517 * dummy-frame.c: Likewise.
518 * dwarf2-frame-tailcall.c: Likewise.
519 * dwarf2-frame.c: Likewise.
520 * dwarf2expr.c: Likewise.
521 * dwarf2loc.c: Likewise.
522 * dwarf2read.c: Likewise.
524 * event-loop.c: Likewise.
525 * exceptions.c: Likewise.
526 * expprint.c: Likewise.
527 * f-valprint.c: Likewise.
528 * fbsd-nat.c: Likewise.
529 * findvar.c: Likewise.
530 * frame-unwind.c: Likewise.
532 * frv-tdep.c: Likewise.
534 * gdb-dlfcn.c: Likewise.
535 * gdb_bfd.c: Likewise.
536 * gdbarch.c: Likewise.
537 * gdbarch.sh: Likewise.
538 * gdbtypes.c: Likewise.
539 * gnu-nat.c: Likewise.
540 * gnu-v3-abi.c: Likewise.
541 * go-lang.c: Likewise.
542 * guile/scm-exception.c: Likewise.
543 * guile/scm-gsmob.c: Likewise.
544 * guile/scm-lazy-string.c: Likewise.
545 * guile/scm-math.c: Likewise.
546 * guile/scm-pretty-print.c: Likewise.
547 * guile/scm-safe-call.c: Likewise.
548 * guile/scm-utils.c: Likewise.
549 * guile/scm-value.c: Likewise.
550 * h8300-tdep.c: Likewise.
551 * hppa-hpux-nat.c: Likewise.
552 * hppa-tdep.c: Likewise.
553 * hppanbsd-tdep.c: Likewise.
554 * hppaobsd-tdep.c: Likewise.
555 * i386-darwin-nat.c: Likewise.
556 * i386-darwin-tdep.c: Likewise.
557 * i386-nto-tdep.c: Likewise.
558 * i386-tdep.c: Likewise.
559 * i386bsd-nat.c: Likewise.
560 * i386fbsd-tdep.c: Likewise.
561 * i386gnu-nat.c: Likewise.
562 * i386nbsd-tdep.c: Likewise.
563 * i386obsd-tdep.c: Likewise.
564 * i387-tdep.c: Likewise.
565 * ia64-libunwind-tdep.c: Likewise.
566 * ia64-tdep.c: Likewise.
567 * inf-ptrace.c: Likewise.
568 * inf-ttrace.c: Likewise.
569 * infcall.c: Likewise.
570 * infcmd.c: Likewise.
571 * infrun.c: Likewise.
572 * inline-frame.c: Likewise.
573 * interps.c: Likewise.
574 * jv-lang.c: Likewise.
575 * jv-typeprint.c: Likewise.
576 * linux-fork.c: Likewise.
577 * linux-nat.c: Likewise.
578 * linux-thread-db.c: Likewise.
579 * m32c-tdep.c: Likewise.
580 * m32r-linux-nat.c: Likewise.
581 * m32r-tdep.c: Likewise.
582 * m68k-tdep.c: Likewise.
583 * m68kbsd-nat.c: Likewise.
584 * m68kbsd-tdep.c: Likewise.
585 * m88k-tdep.c: Likewise.
586 * machoread.c: Likewise.
587 * macroexp.c: Likewise.
588 * macrotab.c: Likewise.
590 * mdebugread.c: Likewise.
591 * memory-map.c: Likewise.
592 * mep-tdep.c: Likewise.
593 * mi/mi-common.c: Likewise.
594 * microblaze-tdep.c: Likewise.
595 * mingw-hdep.c: Likewise.
596 * mips-linux-nat.c: Likewise.
597 * mips-linux-tdep.c: Likewise.
598 * mips-tdep.c: Likewise.
599 * mips64obsd-tdep.c: Likewise.
600 * mipsnbsd-tdep.c: Likewise.
601 * mn10300-linux-tdep.c: Likewise.
602 * mn10300-tdep.c: Likewise.
603 * moxie-tdep.c: Likewise.
604 * mt-tdep.c: Likewise.
605 * nat/linux-btrace.c: Likewise.
606 * nat/linux-osdata.c: Likewise.
607 * nat/linux-ptrace.c: Likewise.
608 * nat/mips-linux-watch.c: Likewise.
609 * nios2-linux-tdep.c: Likewise.
610 * nios2-tdep.c: Likewise.
611 * objc-lang.c: Likewise.
612 * objfiles.c: Likewise.
613 * obsd-nat.c: Likewise.
614 * opencl-lang.c: Likewise.
617 * ppc-linux-nat.c: Likewise.
618 * ppc-sysv-tdep.c: Likewise.
619 * ppcfbsd-nat.c: Likewise.
620 * ppcfbsd-tdep.c: Likewise.
621 * ppcnbsd-nat.c: Likewise.
622 * ppcnbsd-tdep.c: Likewise.
623 * ppcobsd-nat.c: Likewise.
624 * ppcobsd-tdep.c: Likewise.
625 * printcmd.c: Likewise.
626 * procfs.c: Likewise.
627 * prologue-value.c: Likewise.
628 * psymtab.c: Likewise.
629 * python/py-lazy-string.c: Likewise.
630 * python/py-value.c: Likewise.
631 * regcache.c: Likewise.
632 * reggroups.c: Likewise.
633 * registry.c: Likewise.
634 * remote-sim.c: Likewise.
635 * remote.c: Likewise.
636 * rs6000-aix-tdep.c: Likewise.
637 * rs6000-tdep.c: Likewise.
638 * s390-linux-tdep.c: Likewise.
639 * score-tdep.c: Likewise.
640 * ser-base.c: Likewise.
641 * ser-mingw.c: Likewise.
642 * sh-tdep.c: Likewise.
643 * sh64-tdep.c: Likewise.
644 * solib-darwin.c: Likewise.
645 * solib-spu.c: Likewise.
646 * solib-svr4.c: Likewise.
647 * source.c: Likewise.
648 * sparc-nat.c: Likewise.
649 * sparc-sol2-tdep.c: Likewise.
650 * sparc-tdep.c: Likewise.
651 * sparc64-sol2-tdep.c: Likewise.
652 * sparc64-tdep.c: Likewise.
653 * sparc64fbsd-tdep.c: Likewise.
654 * sparc64nbsd-tdep.c: Likewise.
655 * sparc64obsd-tdep.c: Likewise.
656 * sparcnbsd-tdep.c: Likewise.
657 * sparcobsd-tdep.c: Likewise.
658 * spu-multiarch.c: Likewise.
659 * spu-tdep.c: Likewise.
660 * stabsread.c: Likewise.
662 * symfile.c: Likewise.
663 * symtab.c: Likewise.
664 * target-descriptions.c: Likewise.
665 * target-memory.c: Likewise.
666 * target.c: Likewise.
667 * tic6x-linux-tdep.c: Likewise.
668 * tic6x-tdep.c: Likewise.
669 * tilegx-linux-nat.c: Likewise.
670 * tilegx-tdep.c: Likewise.
672 * tramp-frame.c: Likewise.
673 * tui/tui-out.c: Likewise.
674 * tui/tui-winsource.c: Likewise.
675 * ui-out.c: Likewise.
676 * user-regs.c: Likewise.
678 * v850-tdep.c: Likewise.
679 * valops.c: Likewise.
681 * varobj.c: Likewise.
682 * vax-nat.c: Likewise.
683 * xml-syscall.c: Likewise.
684 * xml-tdesc.c: Likewise.
685 * xstormy16-tdep.c: Likewise.
686 * xtensa-linux-nat.c: Likewise.
687 * xtensa-tdep.c: Likewise.
689 2014-08-07 Gary Benson <gbenson@redhat.com>
691 * common/common-defs.h: Include common-utils.h.
692 * defs.h: Do not include common-utils.h.
693 * common/gdb_assert.h: Likewise.
694 * darwin-nat.h: Likewise.
695 * nat/linux-btrace.c: Likewise.
696 * target/waitstatus.h: Likewise.
698 2014-08-07 Gary Benson <gbenson@redhat.com>
700 * common/common-defs.h: Include ptid.h.
701 * defs.h: Do not include ptid.h.
702 * inferior.h: Likewise.
703 * infrun.h: Likewise.
704 * nat/linux-btrace.h: Likewise.
705 * nat/linux-osdata.h: Likewise.
706 * target/waitstatus.h: Likewise.
708 2014-08-07 Gary Benson <gbenson@redhat.com>
710 * common/common-defs.h: Include gdb_locale.h.
711 * defs.h: Do not include gdb_locale.h.
713 2014-08-07 Gary Benson <gbenson@redhat.com>
715 * common/common-defs.h: Include gdb/signals.h.
716 * defs.h: Do not include gdb/signals.h.
718 2014-08-07 Gary Benson <gbenson@redhat.com>
720 * common/common-defs.h: Include pathmax.h.
721 * defs.h: Do not include pathmax.h.
723 2014-08-07 Gary Benson <gbenson@redhat.com>
725 * common/common-defs.h: Include libiberty.h.
726 * defs.h: Do not include libiberty.h.
727 * common/queue.h: Likewise.
728 * cp-name-parser.y: Likewise.
729 * mi/mi-cmd-catch.c: Likewise.
730 * python/python.c: Likewise.
732 2014-08-07 Gary Benson <gbenson@redhat.com>
734 * common/common-defs.h: Include ansidecl.h.
735 * defs.h: Do not include ansidecl.h.
736 * common/buffer.h: Likewise.
737 * common/common-utils.h: Likewise.
739 2014-08-07 Gary Benson <gbenson@redhat.com>
741 * common/common-defs.h: Include stddef.h.
742 * defs.h: Do not include stddef.h.
743 * common/common-utils.h: Likewise.
744 * amd64fbsd-nat.c: Likewise.
745 * bcache.c: Likewise.
746 * charset.c: Likewise.
747 * common/buffer.h: Likewise.
748 * common/vec.h: Likewise.
749 * i386bsd-nat.c: Likewise.
750 * nat/linux-btrace.h: Likewise.
751 * ppcfbsd-nat.c: Likewise.
752 * ppcnbsd-tdep.h: Likewise.
753 * ppcobsd-nat.c: Likewise.
754 * ppcobsd-tdep.h: Likewise.
755 * python/py-gdb-readline.c: Likewise.
757 2014-08-07 Gary Benson <gbenson@redhat.com>
759 * common/common-defs.h: Include stdarg.h.
760 * defs.h: Do not include stdarg.h.
761 * ada-lang.c: Likewise.
762 * common/common-utils.h: Likewise.
763 * guile/scm-string.c: Likewise.
764 * guile/scm-utils.c: Likewise.
765 * m32c-tdep.c: Likewise.
767 2014-08-07 Gary Benson <gbenson@redhat.com>
769 * common/common-defs.h: Include stdlib.h.
770 * defs.h: Do not include stdlib.h.
771 * addrmap.c: Likewise.
772 * bcache.c: Likewise.
773 * common/buffer.c: Likewise.
774 * common/common-utils.c: Likewise.
775 * cp-name-parser.y: Likewise.
776 * go32-nat.c: Likewise.
777 * mn10300-linux-tdep.c: Likewise.
778 * nat/linux-osdata.c: Likewise.
779 * tui/tui.c: Likewise.
780 * windows-nat.c: Likewise.
782 2014-08-07 Gary Benson <gbenson@redhat.com>
784 * common/common-defs.h: Include stdio.h.
785 * defs.h: Do not include stdio.h.
786 * ada-lang.c: Likewise.
787 * common/buffer.c: Likewise.
788 * common/common-utils.c: Likewise.
789 * cp-name-parser.y: Likewise.
790 * gnu-nat.c: Likewise.
791 * go32-nat.c: Likewise.
792 * i386gnu-nat.c: Likewise.
793 * proc-api.c: Likewise.
794 * proc-events.c: Likewise.
795 * proc-flags.c: Likewise.
796 * proc-why.c: Likewise.
797 * python/python-internal.h: Likewise.
798 * target-memory.c: Likewise.
799 * tui/tui-io.c: Likewise.
800 * tui/tui.c: Likewise.
802 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
804 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
805 (scan_dyntag_auxv): Same.
807 2014-08-06 Yao Qi <yao@codesourcery.com>
809 * amd64-linux-nat.c: Remove duplicated include
811 * i386-linux-nat.c: Likewise.
813 2014-08-06 Yao Qi <yao@codesourcery.com>
815 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
816 operand" with "Special opcode" in comments.
818 2014-08-05 Gary Benson <gbenson@redhat.com>
820 * interps.c (initialize_interps): Remove prototype.
821 (interpreter_initialized): Remove static global.
822 (interp_add): Do not call initialize_interps.
823 (initialize_interps): Remove function.
825 2014-08-05 Gary Benson <gbenson@redhat.com>
827 * utils.c (vwarning): Remove spurious va_end.
829 2014-08-05 Alan Modra <amodra@gmail.com>
831 * charset.c (convert_between_encodings): Cast result of obstack_base.
832 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
833 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
834 (read_unwind_info): Use size_t for some locals.
835 * jit.c (finalize_symtab): Likewise.
836 * utils.c (hashtab_obstack_allocate): Likewise.
837 * symmisc.c (print_objfile_statistics): Update format strings.
839 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
842 (Changes in GDB 7.8): ... here.
844 2014-08-04 Tom Tromey <tromey@redhat.com>
846 * target.c (set_targetdebug): New function.
847 (initialize_targets): Pass set_targetdebug when creating "set
850 2014-08-01 Joel Brobecker <brobecker@adacore.com>
852 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
853 if detecting a variable-sized field that is not the last field.
854 Fix struct type length computation.
856 2014-08-01 Joel Brobecker <brobecker@adacore.com>
858 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
861 2014-08-01 Joel Brobecker <brobecker@adacore.com>
863 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
864 Remove "+ 8" offset in computation of CHAIN_VMA.
866 2014-07-31 Doug Evans <dje@google.com>
868 * inflow.c (child_terminal_inferior): Add comment.
869 (child_terminal_ours_for_output): Add comment.
870 (child_terminal_ours): Add comment.
871 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
872 (linux_nat_terminal_ours): Add comment.
874 2014-07-31 Gary Benson <gbenson@redhat.com>
876 * common/btrace-common.h: Do not include defs.h or server.h.
877 * nat/mips-linux-watch.h: Likewise.
878 * gdb-dlfcn.h: Do not include defs.h.
879 * tracefile.h: Likewise.
881 2014-07-30 Roland McGrath <mcgrathr@google.com>
883 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
885 2014-07-30 Tom Tromey <tromey@redhat.com>
887 * bsd-kvm.c (bsd_kvm_open): Constify.
888 * corelow.c (core_open): Constify.
889 * ctf.c (ctf_open): Constify.
890 * dbug-rom.c (dbug_open): Constify.
891 * exec.c (exec_open): Constify.
892 * m32r-rom.c (m32r_open, mon2000_open): Constify.
893 * microblaze-rom.c (picobug_open): Constify.
894 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
896 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
897 * record-btrace.c (record_btrace_open): Constify.
898 * record-full.c (record_full_core_open_1, record_full_open_1)
899 (record_full_open): Constify.
900 * remote-m32r-sdi.c (m32r_open): Constify.
901 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
902 (rockhopper_open, lsi_open): Constify.
903 * remote-sim.c (gdbsim_open): Constify.
904 * remote.c (remote_open, extended_remote_open, remote_open_1):
906 * target.h (struct target_ops) <to_open>: Make "arg" const.
907 * tracefile-tfile.c (tfile_open): Constify.
909 2014-07-30 Tom Tromey <tromey@redhat.com>
911 * breakpoint.c (map_breakpoint_numbers): Update.
912 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
913 (get_number_const): New function.
914 (get_number): Rewrite using get_number_const.
915 (init_number_or_range): Make "string" const.
916 (number_is_in_list): Make "list" const.
917 * cli/cli-utils.h (get_number_const): Declare.
918 (struct get_number_or_range_state) <string, end_ptr>: Now const.
919 (init_number_or_range, number_is_in_list): Update.
920 * printcmd.c (map_display_numbers): Update.
921 * value.c (value_from_history_ref): Constify.
922 * value.h (value_from_history_ref): Update.
924 2014-07-30 Tom Tromey <tromey@redhat.com>
926 * corefile.c (hook_type, call_extra_exec_file_hooks)
927 (specify_exec_file_hook): Constify.
928 * exec.c (exec_file_attach): Make "filename" const.
929 * gdbcore.h (deprecated_exec_file_display_hook)
930 (specify_exec_file_hook, exec_file_attach): Constify.
931 * main.c (captured_main): Use catch_command_errors_const.
933 2014-07-30 Tom Tromey <tromey@redhat.com>
935 * target.c (open_target): New function.
936 (add_target_with_completer, add_deprecated_target_alias): Use
937 set_cmd_sfunc, set_cmd_context.
938 (debug_to_open): Remove.
939 (setup_target_debug): Update.
941 2014-07-30 Yao Qi <yao@codesourcery.com>
943 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
945 * parse.c (exp_iterate): Update comments.
947 2014-07-30 Gary Benson <gbenson@redhat.com>
949 * common/common-defs.h: New file.
950 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
951 * defs.h: Include common-defs.h.
952 Do not include config.h or build-gnulib/config.h.
954 2014-07-30 Gary Benson <gbenson@redhat.com>
956 * common/common-utils.h: Do not include config.h.
957 * nat/linux-btrace.h: Likewise.
959 2014-07-30 Gary Benson <gbenson@redhat.com>
961 * btrace.c: Include defs.h.
962 * common/ptid.c: Include defs.h or server.h as appropriate.
963 * nat/mips-linux-watch.c: Likewise.
965 2014-07-29 Tom Tromey <tromey@redhat.com>
967 * target.c (target_is_pushed): Simplify.
969 2014-07-29 Joel Brobecker <brobecker@adacore.com>
973 2014-07-29 Yao Qi <yao@codesourcery.com>
976 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
978 2014-07-28 Doug Evans <xdje42@gmail.com>
981 * guile/scm-param.c (pascm_parameter_defined_p): New function.
982 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
985 2014-07-28 Will Newton <will.newton@linaro.org>
987 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
988 (THUMB2_SET_R7_SIGRETURN2): Likewise.
989 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
990 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
991 (THUMB2_EABI_SYSCALL): Likewise.
992 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
994 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
995 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
997 2014-07-27 Doug Evans <xdje42@gmail.com>
999 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1001 2014-07-27 Doug Evans <xdje42@gmail.com>
1003 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1005 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1006 Doug Evans <xdje42@gmail.com>
1009 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1010 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1011 * configure.ac: Try to use guild to compile an scm file, if it fails
1012 then disable guile support.
1013 * configure: Regenerate.
1014 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1016 (GUILE_COMPILED_FILES): New variable.
1017 (GUILE_FILES) Update.
1018 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1019 (stamp-guile): Compile scm files.
1020 * guile/guile.c (boot_guile_support): New function.
1021 (standard_throw_args_p): New function.
1022 (print_standard_throw_error, print_throw_error): New functions.
1023 (handle_boot_error): New function.
1024 (initialize_scheme_side): Rewrite to call boot_guile_support.
1025 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1026 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1028 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1029 Doug Evans <xdje42@gmail.com>
1032 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1033 * guile/lib/gdb/support.scm: New file.
1034 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1035 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1037 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1039 (%assert-type): Ditto, and renamed to assert-type.
1040 (%exception-print-style): Delete.
1042 2014-07-26 Doug Evans <xdje42@gmail.com>
1045 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1046 * configure: Regenerate.
1047 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1049 (PYTHON_FILES): New variable.
1050 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1051 (GUILE_FILES): New variable.
1052 (stamp-python, install-python, uninstall-python): Handle empty
1054 (stamp-guile, install-guile, uninstall-guile): Ditto.
1056 2014-07-26 Doug Evans <xdje42@gmail.com>
1059 * guile/lib/gdb.scm (pretty-printers): Export.
1060 (set-pretty-printers!): Export.
1061 * guile/lib/gdb/printing.scm (gdb module): Update.
1062 (prepend-pretty-printer!, append-pretty-printer!): Update.
1063 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1064 (pretty_printer_list_var): Delete.
1065 (pretty_printer_list): New static global.
1066 (gdbscm_pretty_printers): New function.
1067 (gdbscm_set_pretty_printers_x): New function.
1068 (ppscm_find_pretty_printer_from_gdb): Update.
1069 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1070 (gdbscm_initialize_pretty_printers): Update.
1072 2014-07-26 Doug Evans <xdje42@gmail.com>
1075 * configure.ac: Add check for header gc/gc.h.
1076 Add check for function setenv.
1077 * configure: Regenerate.
1078 * config.in: Regenerate.
1079 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1081 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1083 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1084 variation in gdbarch matching.
1086 2014-07-25 Tom Tromey <tromey@redhat.com>
1088 * exec.c (using_exec_ops): Remove.
1089 (exec_close_1): Update. Remove extraneous block, reindent.
1090 (add_target_sections): Use target_is_pushed.
1092 2014-07-25 Pedro Alves <palves@redhat.com>
1094 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1095 * monitor.c (monitor_create_inferior): Likewise.
1096 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1097 * remote-sim.c (gdbsim_create_inferior): Likewise.
1098 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1099 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1100 * windows-nat.c (do_initial_windows_stuff): Likewise.
1102 2014-07-25 Pedro Alves <palves@redhat.com>
1104 * NEWS: Mention signal passing and "signal" command changes.
1105 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1107 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1109 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1110 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1111 (jump_command): Adjust clear_proceed_status call.
1112 (signal_command): Warn if other thread that are resumed have
1113 signals that will be delivered. Adjust clear_proceed_status call.
1114 (until_next_command, finish_command)
1115 (proceed_after_attach_callback, attach_command_post_wait)
1116 (attach_command): Adjust clear_proceed_status call.
1117 * infrun.c (proceed_after_vfork_done): Likewise.
1118 (proceed_after_attach_callback): Adjust comment.
1119 (clear_proceed_status_thread): Clear stop_signal if not in pass
1121 (clear_proceed_status_callback): Delete.
1122 (clear_proceed_status): New 'step' parameter. Only clear the
1123 proceed status of threads the command being prepared is about to
1125 (proceed): If passed in an explicit signal, override stop_signal
1126 with it. Don't pass the last stop signal to the thread we're
1128 (init_wait_for_inferior): Adjust clear_proceed_status call.
1129 (switch_back_to_stepped_thread): Clear the signal if it should not
1131 * infrun.h (clear_proceed_status): New 'step' parameter.
1132 (user_visible_resume_ptid): Add comment.
1133 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1134 signal is in pass state.
1135 * remote.c (append_pending_thread_resumptions): Likewise.
1136 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1138 2014-07-25 Tom Tromey <tromey@redhat.com>
1140 * target.h (target_stopped_data_address)
1141 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1144 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1146 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1148 (avr_pointer_to_address): Likewise.
1150 2014-07-24 Tom Tromey <tromey@redhat.com>
1152 * monitor.c (compile_pattern): Update.
1153 * target.h (struct target_ops) <to_shortname, to_longname,
1156 2014-07-24 Tom Tromey <tromey@redhat.com>
1158 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1159 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1160 (add_info_alias, add_com): Make "doc" const.
1161 (print_doc_line): Make "str" const.
1162 (delete_cmd): Update.
1163 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1164 (print_doc_line): Update.
1165 * cli/cli-script.c (document_command): Update.
1166 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1167 (add_com, add_info, add_info_alias): Update.
1168 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1169 * python/py-cmd.c (cmdpy_destroyer): Update.
1171 2014-07-24 Tom Tromey <tromey@redhat.com>
1173 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1174 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1175 (help_cmd_list): Constify.
1176 (lookup_cmd): Update.
1177 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1179 (help_cmd_list, apropos_cmd): Update.
1180 * cli/cli-script.c (show_user): Update.
1181 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1182 * cli/cli-setshow.h (cmd_show_list): Update.
1183 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1184 (cmd_show_list): Update.
1185 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1186 * python/py-cmd.c (cmdpy_destroyer): Update.
1188 2014-07-24 Tom Tromey <tromey@redhat.com>
1190 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1191 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1193 * command.h (deprecate_cmd): Update.
1194 * maint.c (maintenance_do_deprecate): Add casts.
1196 2014-07-24 Tom Tromey <tromey@redhat.com>
1198 * cli/cli-decode.c (help_cmd): Make parameter "const".
1199 * cli/cli-decode.h (help_cmd): Update.
1201 2014-07-24 Tom Tromey <tromey@redhat.com>
1203 * stack.c (up_silently_base, down_silently_base): Make argument
1206 2014-07-24 Tom Tromey <tromey@redhat.com>
1208 * solib.c (solib_add): Make "pattern" const.
1209 * solib.h (solib_add): Update.
1211 2014-07-24 Tom Tromey <tromey@redhat.com>
1213 * remote.c (remote_serial_open, print_packet, putpkt)
1214 (putpkt_binary): Constify.
1215 * remote.h (putpkt): Update.
1217 2014-07-24 Tom Tromey <tromey@redhat.com>
1219 * monitor.c (monitor_open): Make "args" const.
1220 * monitor.h (monitor_open): Update.
1222 2014-07-24 Tom Tromey <tromey@redhat.com>
1224 * maint.c (match_bfd_flags): Make "string" const.
1225 (print_bfd_section_info): Remove casts.
1226 (print_objfile_section_info): Make "string" const.
1228 2014-07-24 Tom Tromey <tromey@redhat.com>
1230 * inf-child.c (inf_child_open_target): Make "arg" const.
1231 * inf-child.h (inf_child_open_target): Update.
1233 2014-07-24 Tom Tromey <tromey@redhat.com>
1235 * environ.c (unset_in_environ): Make "var" const.
1236 * environ.h (unset_in_environ): Update.
1238 2014-07-24 Tom Tromey <tromey@redhat.com>
1240 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1242 (scan_filename_with_cleanup): Likewise.
1243 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1244 Make arguments const.
1245 (restore_command): Update.
1247 2014-07-24 Pedro Alves <palves@redhat.com>
1249 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1251 2014-07-24 Tom Tromey <tromey@redhat.com>
1252 Gary Benson <gbenson@redhat.com>
1254 * nat/linux-ptrace.c (additional_flags): New global.
1255 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1256 additional_flags; don't check GDBSERVER.
1257 (linux_ptrace_set_additional_flags): New function.
1258 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1260 * linux-nat.c (_initialize_linux_nat): Call
1261 linux_ptrace_set_additional_flags.
1263 2014-07-24 Tom Tromey <tromey@redhat.com>
1265 * make-target-delegates (munge_type, write_debugmethod): New
1267 (debug_names): New global.
1268 ($TARGET_DEBUG_PRINTER): New global.
1269 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1271 Write debug methods. Generate init_debug_target.
1272 * target-debug.h: New file.
1273 * target-delegates.c: Rebuild.
1274 * target.c: Include target-debug.h.
1275 (debug_target): Hoist definition.
1276 (target_kill, target_get_section_table, target_memory_map)
1277 (target_flash_erase, target_flash_done, target_detach)
1278 (target_disconnect, target_wait, target_resume)
1279 (target_pass_signals, target_program_signals, target_follow_fork)
1280 (target_mourn_inferior, target_search_memory)
1281 (target_thread_address_space, target_close)
1282 (target_find_new_threads, target_core_of_thread)
1283 (target_verify_memory, target_insert_mask_watchpoint)
1284 (target_remove_mask_watchpoint): Remove targetdebug code.
1285 (debug_to_post_attach, debug_to_prepare_to_store)
1286 (debug_to_files_info, debug_to_insert_breakpoint)
1287 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1288 (debug_to_region_ok_for_hw_watchpoint)
1289 (debug_to_can_accel_watchpoint_condition)
1290 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1291 (debug_to_watchpoint_addr_within_range)
1292 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1293 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1294 (debug_to_terminal_init, debug_to_terminal_inferior)
1295 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1296 (debug_to_terminal_save_ours, debug_to_terminal_info)
1297 (debug_to_load, debug_to_post_startup_inferior)
1298 (debug_to_insert_fork_catchpoint)
1299 (debug_to_remove_fork_catchpoint)
1300 (debug_to_insert_vfork_catchpoint)
1301 (debug_to_remove_vfork_catchpoint)
1302 (debug_to_insert_exec_catchpoint)
1303 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1304 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1305 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1306 (setup_target_debug): Call init_debug_target.
1307 * target.h (TARGET_DEBUG_PRINTER): New macro.
1308 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1309 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1311 2014-07-24 Gary Benson <gbenson@redhat.com>
1313 * exceptions.h (throw_vfatal): Renamed to...
1314 (throw_vquit): New declaration.
1315 (throw_quit): Likewise.
1316 * exceptions.c (throw_vfatal): Renamed to...
1317 (throw_vquit): New function.
1318 (throw_quit): Likewise.
1319 (throw_error): Call throw_verror rather than throw_it.
1320 * utils.h (vfatal): Removed.
1322 * utils.c (vfatal): Removed.
1324 (internal_verror): Replaced call to fatal with call to throw_quit.
1325 (quit): Replaced calls to fatal with calls to throw_quit.
1327 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1329 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1332 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1334 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1335 less than zero in conditional expression.
1337 2014-07-23 Tom Tromey <tromey@redhat.com>
1339 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1340 ($INTRO_PART): Don't match whitespace.
1341 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1343 ($METHOD): Add $METHOD_TRAILER.
1345 (scan_target_h): New sub.
1346 Change main loop not to collect state.
1347 * target-delegates.c: Rebuild.
1349 2014-07-23 Gary Benson <gbenson@redhat.com>
1351 * cp-support.c (gdb_demangle): Fix build on systems without
1354 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1356 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1357 for reference entry value target data value.
1359 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1361 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1362 value_available_contents_eq.
1364 2014-07-22 Pedro Alves <palves@redhat.com>
1366 * value.c (allocate_optimized_out_value): Don't mark value as
1369 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1371 * MAINTAINERS (Write After Approval): Update my email address.
1373 2014-07-20 Doug Evans <dje@google.com>
1376 * remote.c (putpkt_binary): Add text to error message.
1378 2014-07-20 Yao Qi <yao@codesourcery.com>
1380 * eval.c: Remove "Chill" from comments.
1381 * gdbtypes.h: Likewise.
1382 * symtab.h: Likewise.
1384 2014-07-20 Yao Qi <yao@codesourcery.com>
1386 * std-operator.def: Update comments to TERNOP_SLICE.
1388 2014-07-20 Yao Qi <yao@codesourcery.com>
1390 * std-operator.def: Remove BINOP_RANGE.
1391 * breakpoint.c (watchpoint_exp_is_const): Update.
1392 * expprint.c (dump_subexp_body_standard): Likewise.
1393 * eval.c (init_array_element): Remove dead code.
1394 (evaluate_subexp_standard): Likewise.
1396 2014-07-20 Yao Qi <yao@codesourcery.com>
1398 * std-operator.def: Remove BINOP_IN.
1399 * breakpoint.c (watchpoint_exp_is_const): Update.
1400 * eval.c (evaluate_subexp_standard): Likewise.
1401 * expprint.c (dump_subexp_body_standard): Likewise.
1403 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1405 * microblaze-tdep.c (microblaze_register_names): Add
1406 the rshr and rslr register names.
1407 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1408 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1409 Use of tdesc_numbered_register. Use of
1410 microblaze_register_g_packet_guesses. Use of
1411 tdesc_use_registers. Use of set_gdbarch_register_type.
1412 (microblaze_register_g_packet_guesses): New.
1413 * microblaze-tdep.h (microblaze_reg_num): Add
1414 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1415 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1416 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1417 * features/microblaze-core.xml: New file.
1418 * features/microblaze-stack-protect.xml: New file.
1419 * features/microblaze-with-stack-protect.c: New file.
1420 * features/microblaze-with-stack-protect.xml: New file.
1421 * features/microblaze.xml: New file.
1422 * features/microblaze.c: New file.
1423 * features/Makefile (microblaze-with-stack-protect): Add
1424 microblaze-with-stack-protect microblaze and microblaze-expedite.
1425 * regformats/microblaze-with-stack-protect.dat: New file.
1426 * regformats/microblaze.dat: New file.
1427 * doc/gdb.texinfo (MicroBlaze Features): Added.
1429 2014-07-18 Tom Tromey <tromey@redhat.com>
1431 * exec.c (exec_ops): Now static.
1432 * exec.h (exec_ops): Don't declare.
1434 2014-07-18 Tom Tromey <tromey@redhat.com>
1436 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1437 to find_target_beneath.
1438 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1439 find_target_beneath.
1440 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1442 2014-07-18 Tom Tromey <tromey@redhat.com>
1445 * utils.c (quit): Use target_supports_terminal_ours.
1446 * target.h (target_supports_terminal_ours): Declare.
1447 * target.c (target_supports_delete_record): Don't check
1448 to_delete_record against NULL.
1449 (target_supports_terminal_ours): New function.
1451 2014-07-18 Tom Tromey <tromey@redhat.com>
1454 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1455 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1456 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1457 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1458 * windows-nat.c (windows_xfer_partial): Always delegate.
1459 * record-btrace.c (record_btrace_xfer_partial): Simplify
1461 (record_btrace_fetch_registers, record_btrace_store_registers)
1462 (record_btrace_prepare_to_store, record_btrace_resume)
1463 (record_btrace_wait, record_btrace_find_new_threads)
1464 (record_btrace_thread_alive): Likewise.
1465 * procfs.c (procfs_xfer_partial): Always delegate.
1466 * corelow.c (core_xfer_partial): Always delegate.
1467 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1469 2014-07-18 Tom Tromey <tromey@redhat.com>
1471 * exec.c (exec_make_note_section): Move earlier.
1473 2014-07-17 Doug Evans <dje@google.com>
1476 * maint.c (count_symtabs_and_blocks): Handle NULL
1477 current_program_space.
1478 (report_command_stats): Check global enabled flag in addition to
1479 recorded enabled flag.
1480 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1482 2014-07-16 Pedro Alves <palves@redhat.com>
1484 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1486 2014-07-16 Tom Tromey <tromey@redhat.com>
1488 * target.h (struct target_ops) <to_delete_record>: Reformat
1491 2014-07-16 Tom Tromey <tromey@redhat.com>
1493 * target-delegates.c: Rebuild.
1495 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1497 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1498 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1499 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1500 (avr_pointer_to_address): Likewise.
1501 (avr_address_class_type_flags): New function.
1502 (avr_address_class_type_flags_to_name): Likewise.
1503 (avr_address_class_name_to_type_flags): Likewise.
1504 (avr_gdbarch_init): Set address_class_type_flags,
1505 address_class_type_flags_to_name and
1506 address_class_name_to_type_flags.
1508 2014-07-15 Pedro Alves <palves@redhat.com>
1510 * linux-nat.c (kill_callback): Save errno and work with saved
1513 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1515 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1517 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1519 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1520 breakpoint support correctly.
1522 2014-07-14 Pedro Alves <palves@redhat.com>
1524 * utils.c (prompt_for_continue): Call target_terminal_ours.
1526 2014-07-14 Pedro Alves <palves@redhat.com>
1528 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1529 catch_errors. Don't re-enable stdin or notify observers where,
1531 (fetch_inferior_event_wrapper): Delete.
1533 2014-07-14 Pedro Alves <palves@redhat.com>
1536 * top.c: Include "inf-loop.h".
1537 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1539 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1541 (gdb_readline_wrapper): Store whether the target is async, and
1544 2014-07-14 Pedro Alves <palves@redhat.com>
1547 * top.c (gdb_readline_wrapper_line): Tweak comment.
1548 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1549 the input handler callback.
1551 2014-07-14 Pedro Alves <palves@redhat.com>
1554 * main.c: Include event-top.h.
1555 (handle_command_errors): New function.
1556 (catch_command_errors, catch_command_errors_const): Use it.
1558 2014-07-14 Pedro Alves <palves@redhat.com>
1560 * exceptions.c (catch_command_errors, catch_command_errors_const):
1562 * exceptions.h (catch_command_errors_ftype)
1563 (catch_command_errors_const_ftype): Moved to main.c.
1564 (catch_command_errors, catch_command_errors_const): Delete
1566 * main.c (catch_command_errors_ftype)
1567 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1568 (catch_command_errors, catch_command_errors_const)): Moved here
1569 from exceptions.c and make static.
1571 2014-07-14 Pedro Alves <palves@redhat.com>
1573 * exceptions.c (print_any_exception): Delete.
1574 (catch_exceptions_with_msg): Use exception_print instead of
1575 print_any_exception.
1576 (catch_errors): Use exception_fprintf instead of
1577 print_any_exception.
1578 (catch_command_errors, catch_command_errors_const): Use
1579 exception_print instead of print_any_exception.
1581 2014-07-14 Pedro Alves <palves@redhat.com>
1583 * infcall.c (run_inferior_call): Set 'sync_execution' while
1584 running the inferior call.
1586 2014-07-14 Pedro Alves <palves@redhat.com>
1588 * value.c (value_contents_equal): Delete function.
1589 * value.h (value_contents_equal): Delete declaration.
1591 2014-07-14 Tom Tromey <tromey@redhat.com>
1594 * gdbtypes.c (is_dynamic_type_internal): New function, from
1596 (is_dynamic_type): Rewrite.
1597 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1598 (resolve_dynamic_struct): Likewise.
1599 (resolve_dynamic_type_internal): New function, from
1600 resolve_dynamic_type.
1601 (resolve_dynamic_type): Rewrite.
1603 2014-07-14 Tom Tromey <tromey@redhat.com>
1605 * target.c (target_require_runnable): Also check record_stratum.
1608 2014-07-11 Yao Qi <yao@codesourcery.com>
1610 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1611 thumb_instruction_restores_sp return true.
1613 2014-07-11 Yao Qi <yao@codesourcery.com>
1615 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1616 (thumb_in_function_epilogue_p): Call
1617 thumb_instruction_restores_sp.
1619 2014-07-11 Yao Qi <yao@codesourcery.com>
1621 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1623 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1625 2014-07-11 Gary Benson <gbenson@redhat.com>
1627 * amd64-linux-nat.c (gdbcore.h): Remove include.
1628 (regset.h): Likewise.
1629 (nat/linux-btrace.h): Likewise.
1630 (btrace.h): Likewise.
1631 (gdb_assert.h): Likewise.
1632 (string.h): Likewise.
1633 (sys/uio.h): Likewise.
1634 (sys/debugreg.h): Likewise.
1635 (sys/syscall.h): Likewise.
1636 (sys/procfs.h): Likewise.
1637 (sys/user.h): Likewise.
1638 (asm/ptrace.h): Likewise.
1639 (i386-nat.h): Likewise.
1640 * i386-linux-nat.c (i386-nat.h): Likewise.
1641 (regset.h): Likewise.
1642 (target.h): Likewise.
1643 (linux-nat.h): Likewise.
1644 (nat/linux-btrace.h): Likewise.
1645 (btrace.h): Likewise.
1646 (gdb_assert.h): Likewise.
1647 (string.h): Likewise.
1648 (sys/uio.h): Likewise.
1649 (sys/user.h): Likewise.
1650 (sys/procfs.h): Likewise.
1651 (sys/reg.h): Likewise.
1652 (sys/debugreg.h): Likewise.
1653 (ORIG_EAX): Remove definition.
1655 2014-07-11 Gary Benson <gbenson@redhat.com>
1657 * i386-linux-nat.h: New file.
1658 * x86-linux-nat.h: Likewise.
1659 * x86-linux-nat.c: Likewise.
1660 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1661 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1662 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1663 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1664 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1665 (PTRACE_SETREGSET): Likewise.
1666 (arch_lwp_info): Now in x86-linux-nat.c.
1667 (have_ptrace_getregset): Now in x86-linux-nat.h.
1668 (x86_linux_dr_get): Now in x86-linux-nat.c.
1669 (x86_linux_dr_set): Likewise.
1670 (x86_linux_dr_get_addr): Likewise.
1671 (x86_linux_dr_get_control): Likewise.
1672 (x86_linux_dr_get_status): Likewise.
1673 (update_debug_registers_callback): Likewise.
1674 (x86_linux_dr_set_control): Likewise.
1675 (x86_linux_dr_set_addr): Likewise.
1676 (x86_linux_prepare_to_resume): Likewise.
1677 (x86_linux_new_thread): Likewise.
1678 (x86_linux_new_fork): Likewise.
1679 (x86_linux_get_thread_area): Likewise.
1680 (super_post_startup_inferior): Likewise.
1681 (x86_linux_child_post_startup_inferior): Likewise.
1682 (AMD64_LINUX_USER64_CS): Likewise.
1683 (AMD64_LINUX_X32_DS): Likewise.
1684 (x86_linux_read_description): Likewise.
1685 (x86_linux_enable_btrace): Likewise.
1686 (x86_linux_disable_btrace): Likewise.
1687 (x86_linux_teardown_btrace): Likewise.
1688 (x86_linux_read_btrace): Likewise.
1689 (x86_linux_create_target): Likewise.
1690 (x86_linux_add_target): Likewise.
1691 * i386-linux-nat.c (x86-linux-nat.h): New include.
1692 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1693 (PTRACE_SETREGSET): Likewise.
1694 (arch_lwp_info): Now in x86-linux-nat.c.
1695 (have_ptrace_getregset): Now in x86-linux-nat.h.
1696 (x86_linux_dr_get): Now in x86-linux-nat.c.
1697 (x86_linux_dr_set): Likewise.
1698 (x86_linux_dr_get_addr): Likewise.
1699 (x86_linux_dr_get_control): Likewise.
1700 (x86_linux_dr_get_status): Likewise.
1701 (update_debug_registers_callback): Likewise.
1702 (x86_linux_dr_set_control): Likewise.
1703 (x86_linux_dr_set_addr): Likewise.
1704 (x86_linux_prepare_to_resume): Likewise.
1705 (x86_linux_new_thread): Likewise.
1706 (x86_linux_new_fork): Likewise.
1707 (x86_linux_get_thread_area): Likewise.
1708 (super_post_startup_inferior): Likewise.
1709 (x86_linux_child_post_startup_inferior): Likewise.
1710 (AMD64_LINUX_USER64_CS): Likewise.
1711 (AMD64_LINUX_X32_DS): Likewise.
1712 (x86_linux_read_description): Likewise.
1713 (x86_linux_enable_btrace): Likewise.
1714 (x86_linux_disable_btrace): Likewise.
1715 (x86_linux_teardown_btrace): Likewise.
1716 (x86_linux_read_btrace): Likewise.
1717 (x86_linux_create_target): Likewise.
1718 (x86_linux_add_target): Likewise.
1720 2014-07-11 Gary Benson <gbenson@redhat.com>
1722 * amd64-linux-nat.c: Comment and whitespace changes.
1723 * i386-linux-nat.c: Comment and whitespace changes.
1725 2014-07-11 Gary Benson <gbenson@redhat.com>
1727 * amd64-linux-nat.c (x86_linux_create_target): New function.
1728 (x86_linux_add_target): Likewise.
1729 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1730 * i386-linux-nat.c (x86_linux_create_target): New function.
1731 (x86_linux_add_target): Likewise.
1732 (_initialize_i386_linux_nat): Delegate to the above new functions.
1734 2014-07-11 Gary Benson <gbenson@redhat.com>
1736 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1737 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1738 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1739 (ps_get_thread_area): Delegate to the above.
1741 2014-07-11 Gary Benson <gbenson@redhat.com>
1743 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1744 x86_linux_read_description. All uses updated. amd64-specific
1745 code conditionalized. Conditionalized i386-specific code added.
1746 Redundant cast removed.
1747 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1748 x86_linux_read_description. All uses updated. i386-specific
1749 code conditionalized. Conditionalized amd64-specific code added.
1750 One sizeof replaced with the actual type it is describing.
1752 2014-07-11 Gary Benson <gbenson@redhat.com>
1754 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1755 x86_linux_dr_get. All uses updated.
1756 (amd64_linux_dr_set): Renamed to
1757 x86_linux_dr_set. All uses updated.
1758 (amd64_linux_dr_get_addr): Renamed to
1759 x86_linux_dr_get_addr. All uses updated.
1760 (amd64_linux_dr_get_control): Renamed to
1761 x86_linux_dr_get_control. All uses updated.
1762 (amd64_linux_dr_get_status): Renamed to
1763 x86_linux_dr_get_status. All uses updated.
1764 (amd64_linux_dr_set_control): Renamed to
1765 x86_linux_dr_set_control. All uses updated.
1766 (amd64_linux_dr_set_addr): Renamed to
1767 x86_linux_dr_set_addr. All uses updated.
1768 (amd64_linux_prepare_to_resume): Renamed to
1769 x86_linux_prepare_to_resume. All uses updated.
1770 (amd64_linux_new_thread): Renamed to
1771 x86_linux_new_thread. All uses updated.
1772 (amd64_linux_new_fork): Renamed to
1773 x86_linux_new_fork. All uses updated.
1774 (amd64_linux_child_post_startup_inferior): Renamed to
1775 x86_linux_child_post_startup_inferior. All uses updated.
1776 (amd64_linux_enable_btrace): Renamed to
1777 x86_linux_enable_btrace. All uses updated.
1778 (amd64_linux_disable_btrace): Renamed to
1779 x86_linux_disable_btrace. All uses updated.
1780 (amd64_linux_teardown_btrace): Renamed to
1781 x86_linux_teardown_btrace. All uses updated.
1782 (amd64_linux_read_btrace): Renamed to
1783 x86_linux_read_btrace. All uses updated.
1784 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1785 x86_linux_dr_get. All uses updated.
1786 (i386_linux_dr_set): Renamed to
1787 x86_linux_dr_set. All uses updated.
1788 (i386_linux_dr_get_addr): Renamed to
1789 x86_linux_dr_get_addr. All uses updated.
1790 (i386_linux_dr_get_control): Renamed to
1791 x86_linux_dr_get_control. All uses updated.
1792 (i386_linux_dr_get_status): Renamed to
1793 x86_linux_dr_get_status. All uses updated.
1794 (i386_linux_dr_set_control): Renamed to
1795 x86_linux_dr_set_control. All uses updated.
1796 (i386_linux_dr_set_addr): Renamed to
1797 x86_linux_dr_set_addr. All uses updated.
1798 (i386_linux_prepare_to_resume): Renamed to
1799 x86_linux_prepare_to_resume. All uses updated.
1800 (i386_linux_new_thread): Renamed to
1801 x86_linux_new_thread. All uses updated.
1802 (i386_linux_new_fork): Renamed to
1803 x86_linux_new_fork. All uses updated.
1804 (i386_linux_child_post_startup_inferior): Renamed to
1805 x86_linux_child_post_startup_inferior. All uses updated.
1806 (i386_linux_enable_btrace): Renamed to
1807 x86_linux_enable_btrace. All uses updated.
1808 (i386_linux_disable_btrace): Renamed to
1809 x86_linux_disable_btrace. All uses updated.
1810 (i386_linux_teardown_btrace): Renamed to
1811 x86_linux_teardown_btrace. All uses updated.
1812 (i386_linux_read_btrace): Renamed to
1813 x86_linux_read_btrace. All uses updated.
1815 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1817 * remote.c (extended_remote_post_attach): New function.
1818 (init_extended_remote_ops): Install it as to_post_attach method.
1820 2014-07-09 Pedro Alves <palves@redhat.com>
1822 * infcmd.c (attach_command_post_wait): Don't call
1823 target_terminal_inferior here.
1824 (attach_command): Call it here instead.
1826 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1828 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1830 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1831 from varobj.c, with additional checks.
1832 (c_varobj_ops): Fill in is_path_expr_parent field.
1833 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1834 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1836 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1838 (varobj_default_is_path_expr_parent): New function.
1839 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1840 (varobj_default_is_path_expr_parent): Declare new function.
1842 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1844 * infcmd.c (finish_backward): Turn internal error into normal error.
1846 2014-07-07 Pedro Alves <palves@redhat.com>
1849 * remote.c (async_handle_remote_sigint)
1850 (async_handle_remote_sigint_twice): Call
1851 gdb_call_async_signal_handler instead of
1852 mark_async_signal_handler.
1854 2014-07-07 Tom Tromey <tromey@redhat.com>
1856 * target-delegates.c: Rebuild.
1857 * target.c (target_info_record): Remove.
1858 * record.c (info_record_command): Unconditionally call
1860 * target.h (struct target_ops) <to_info_record>: Use
1861 TARGET_DEFAULT_IGNORE.
1862 (target_info_record): Remove.
1864 2014-07-07 Tom Tromey <tromey@redhat.com>
1866 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1867 TARGET_DEFAULT_NORETURN.
1868 * target.c (generic_tls_error): New function.
1869 (target_translate_tls_address): Don't search target stack.
1870 * target-delegates.c: Rebuild.
1871 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1873 * linux-thread-db.c (thread_db_get_thread_local_address):
1874 Unconditionally call beneath target.
1876 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1878 * cli/cli-logging.c (pop_output_files): Assign targerr to
1881 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1883 * MAINTAINERS (Write After Approval): Update my email address.
1885 2014-07-02 Gary Benson <gbenson@redhat.com>
1887 * proc-service.c (ps_xfer_memory): Update comment.
1888 (ps_pstop): Remove unused function.
1889 (ps_pcontinue): Likewise.
1890 (ps_lstop): Likewise.
1891 (ps_lcontinue): Likewise.
1892 (ps_lgetxregsize): Likewise.
1893 (ps_lgetxregs): Likewise.
1894 (ps_lsetxregs): Likewise.
1895 (ps_plog): Likewise.
1896 (ps_ptread): Likewise.
1897 (ps_ptwrite): Likewise.
1899 2014-07-01 Mark Wielaard <mjw@redhat.com>
1901 * dwarf2read.c (add_array_cv_type): New function.
1902 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1903 (read_tag_volatile_type): Likewise.
1905 2014-07-01 Tom Tromey <tromey@redhat.com>
1907 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1908 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1909 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1910 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1911 * command.h (cmd_cfunc_ftype): Move earlier.
1912 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1913 (add_com, add_info): Use cmd_cfunc_ftype.
1915 2014-06-30 Tom Tromey <tromey@redhat.com>
1917 * symtab.c (operator_chars): Make parameters and return type
1919 (file_matches): Make "files" const.
1920 (struct search_symbols_data) <files>: Now const.
1921 (search_symbols): Make "regexp" and "files" parameters const.
1923 (symtab_symbol_info): Remove cast.
1924 (rbreak_command): Update.
1925 * symtab.h (search_symbols): Update.
1927 2014-06-27 Yao Qi <yao@codesourcery.com>
1929 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1930 Change parameter type to 'struct thread_info *'. Caller
1932 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1934 * dummy-frame.c (struct dummy_frame_id): New.
1935 (dummy_frame_id_eq): New function.
1936 (struct dummy_frame) <id>: Change its type to 'struct
1938 (dummy_frame_push): Add parameter ptid and save it in
1940 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1942 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1944 (lookup_dummy_frame): Change parameter type to 'struct
1945 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1946 instead of frame_id_eq.
1947 (dummy_frame_pop): Add parameter ptid. Callers updated.
1948 Update comments. Compose dummy_frame_id and pass it to
1950 (dummy_frame_discard): Add parameter ptid.
1951 (dummy_frame_sniffer): Compose dummy_frame_id and call
1952 dummy_frame_id_eq instead of frame_id_eq.
1953 (fprint_dummy_frames): Print ptid.
1954 * dummy-frame.h: Remove comments.
1955 (dummy_frame_push): Add ptid in declaration.
1956 (dummy_frame_pop, dummy_frame_discard): Likewise.
1958 2014-06-26 Tom Tromey <tromey@redhat.com>
1960 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1961 * command.h (error_no_arg): Update.
1963 2014-06-26 Tom Tromey <tromey@redhat.com>
1965 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1966 (do_show_command): Make "arg" const.
1967 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1969 2014-06-26 Tom Tromey <tromey@redhat.com>
1971 * record-full.c (record_full_get_bookmark): Make "args" const.
1972 (record_full_goto_bookmark): Make "raw_bookmark" const.
1973 * record.c (record_goto): New function.
1974 (cmd_record_goto): Use it. Now static.
1975 * record.h (record_goto): Declare.
1976 (cmd_record_goto): Remove declaration.
1977 * target-delegates.c: Rebuild.
1978 * target.h (struct target_ops) <to_get_bookmark,
1979 to_goto_bookmark>: Make parameter const.
1981 2014-06-26 Tom Tromey <tromey@redhat.com>
1983 * defs.h (generic_load): Update.
1984 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1985 * monitor.c (monitor_load): Make "args" const.
1986 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1987 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1989 (mips_load): Make "file" const.
1990 * remote-sim.c (gdbsim_load): Make "args" const.
1991 * remote.c (remote_load): Make "name" const.
1992 * symfile.c (generic_load): Make "args" const.
1993 * target-delegates.c: Rebuild.
1994 * target.c (target_load): Make "arg" const.
1995 (debug_to_load): Make "args" const.
1996 * target.h (struct target_ops) <to_load>: Make parameter const.
1997 (target_load): Update.
1999 2014-06-26 Tom Tromey <tromey@redhat.com>
2002 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2003 (dwarf2_physname, read_partial_die)
2004 (guess_partial_die_structure_name, fixup_partial_die)
2005 (guess_full_die_structure_name, anonymous_struct_prefix)
2006 (dwarf2_name): Use per-BFD obstack.
2008 2014-06-26 Yao Qi <yao@codesourcery.com>
2010 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2011 dummyframe and this_id into inner block below.
2013 2014-06-26 Yao Qi <yao@codesourcery.com>
2015 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2016 with "signal_pass[0]" in the initialization of signal_pass.
2018 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2020 * record-btrace.c (record_btrace_generating_corefile)
2021 (record_btrace_prepare_to_generate_core)
2022 (record_btrace_done_generating_core): New.
2023 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2024 (record_btrace_store_registers, record_btrace_prepare_to_store):
2025 Forward request when generating a core file.
2026 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2027 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2028 to_done_generating_core.
2030 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2032 * target.h (target_ops) <to_prepare_to_generate_core>
2033 <to_done_generating_core>: New.
2034 (target_prepare_to_generate_core, target_done_generating_core): New.
2035 * target.c (target_prepare_to_generate_core)
2036 (target_done_generating_core): New.
2037 * target-delegates.c: Regenerate.
2038 * gcore.c: (write_gcore_file): Rename to ...
2039 (write_gcore_file_1): ...this.
2040 (write_gcore_file): Call target_prepare_to_generate_core
2041 and target_done_generating_core.
2043 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2045 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2046 * gcore.c (write_gcore_file): Free memory returned from
2047 make_corefile_notes.
2048 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2049 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2051 2014-06-24 Yao Qi <yao@codesourcery.com>
2053 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2054 (arm_linux_init_abi): Set skip_trampoline_code with
2055 gdbarch_skip_trampoline_code instead of
2056 find_solib_trampoline_target.
2058 2014-06-24 Yao Qi <yao@codesourcery.com>
2060 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2061 arm_skip_bx_reg returns non-zero.
2063 2014-06-24 Yao Qi <yao@codesourcery.com>
2065 * arm-tdep.c (arm_skip_bx_reg): New function.
2066 (arm_skip_stub): Call arm_skip_bx_reg.
2068 2014-06-23 Don Breazeal <donb@codesourcery.com>
2070 * MAINTAINERS: Add myself as write-after-approval maintainer.
2072 2014-06-23 Pedro Alves <palves@redhat.com>
2074 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2075 DR_CONTROL before setting DR0..DR3.
2076 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2077 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2078 bits of DR_CONTROL related to the debug register slot being
2079 disabled. If all slots are vacant, clear local slowdown as well,
2080 and assert DR_CONTROL is 0.
2082 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2084 * python/lib/gdb/command/xmethods.py
2085 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2086 current progspace only if the string "progspace" matches LOCUS_RE.
2088 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 Fix --with-system-readline with readline-6.3 patch 5.
2091 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2092 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2095 2014-06-20 Tom Tromey <tromey@redhat.com>
2097 * dwarf2read.c (dw2_get_real_path): Use correct type in
2099 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2101 2014-06-20 Gary Benson <gbenson@redhat.com>
2103 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2104 * common/glibc_thread_db.h: Likewise.
2105 * common/i386-cpuid.h: Likewise.
2106 * common/i386-gcc-cpuid.h: Likewise.
2107 * common/linux-btrace.h: Likewise.
2108 * common/linux-osdata.h: Likewise.
2109 * common/linux-procfs.h: Likewise.
2110 * common/linux-ptrace.h: Likewise.
2111 * common/mips-linux-watch.h: Likewise.
2112 * common/linux-btrace.c: Moved to nat.
2113 * common/linux-osdata.c: Likewise.
2114 * common/linux-procfs.c: Likewise.
2115 * common/linux-ptrace.c: Likewise.
2116 * common/mips-linux-watch.c: Likewise.
2117 * nat/gdb_thread_db.h: Moved from common.
2118 * nat/glibc_thread_db.h: Likewise.
2119 * nat/i386-cpuid.h: Likewise.
2120 * nat/i386-gcc-cpuid.h: Likewise.
2121 * nat/linux-btrace.c: Likewise.
2122 * nat/linux-btrace.h: Likewise.
2123 * nat/linux-osdata.c: Likewise.
2124 * nat/linux-osdata.h: Likewise.
2125 * nat/linux-procfs.c: Likewise.
2126 * nat/linux-procfs.h: Likewise.
2127 * nat/linux-ptrace.c: Likewise.
2128 * nat/linux-ptrace.h: Likewise.
2129 * nat/mips-linux-watch.c: Likewise.
2130 * nat/mips-linux-watch.h: Likewise.
2131 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2132 (object file files): Reordered.
2133 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2134 of glibc_thread_db.h.
2136 2014-06-20 Gary Benson <gbenson@redhat.com>
2138 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2139 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2140 (i386_dr_low): Likewise.
2141 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2142 (i386_dr_low_set_addr): Likewise.
2143 (i386_dr_low_get_addr): Likewise.
2144 (i386_dr_low_can_set_control): Likewise.
2145 (i386_dr_low_set_control): Likewise.
2146 (i386_dr_low_get_control): Likewise.
2147 (i386_dr_low_get_status): Likewise.
2148 (i386_get_debug_register_length): Likewise.
2149 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2150 (i386_dr_low): Likewise.
2151 * nat/i386-dregs.c (i386-low.h): Remove include.
2152 (i386-nat.h): Likewise.
2153 (nat/i386-dregs.h): New include.
2154 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2155 (i386_dr_low_set_addr): Likewise.
2156 (i386_dr_low_get_addr): Likewise.
2157 (i386_dr_low_can_set_control): Likewise.
2158 (i386_dr_low_set_control): Likewise.
2159 (i386_dr_low_get_control): Likewise.
2160 (i386_dr_low_get_status): Likewise.
2161 (i386_get_debug_register_length): Likewise.
2162 (debug_hw_points): Likewise.
2164 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2166 * Makefile.in (SFILES): Add d-exp.y.
2167 (YYFILES): Add d-exp.c.
2168 (YYOBJ): Add d-exp.o.
2169 (local-maintainer-clean): Delete d-exp.c.
2170 * d-exp.y: New file.
2171 * d-lang.h (d_parse): New declaration.
2172 (d_error): New declaration.
2173 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2174 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2175 PREC_ORDER operators.
2176 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2178 2014-06-19 Yao Qi <yao@codesourcery.com>
2180 * gdbthread.h (any_running): Remove the declaration.
2181 * thread.c (any_running): Remove.
2183 2014-06-19 Yao Qi <yao@codesourcery.com>
2185 * gdbthread.h (struct thread_info) <state>: Change its type to
2186 'enum thread_state'. Update comments.
2188 2014-06-19 Pedro Alves <palves@redhat.com>
2190 * gdbthread.h (ALL_THREADS): Delete.
2191 (ALL_NON_EXITED_THREADS): New macro.
2192 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2193 instead of ALL_THREADS.
2194 * infrun.c (find_thread_needs_step_over)
2195 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2196 instead of ALL_THREADS.
2197 * record-btrace.c (record_btrace_open)
2198 (record_btrace_stop_recording, record_btrace_close)
2199 (record_btrace_is_replaying, record_btrace_resume)
2200 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2201 * remote.c (append_pending_thread_resumptions): Likewise.
2202 * thread.c (thread_apply_all_command): Likewise.
2204 2014-06-19 Gary Benson <gbenson@redhat.com>
2206 * i386-nat.c (i386_stopped_by_watchpoint):
2207 Use i386_dr_stopped_by_watchpoint.
2208 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2209 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2211 2014-06-19 Gary Benson <gbenson@redhat.com>
2213 * nat/i386-dregs.c: New file.
2214 * Makefile.in (i386-dregs.o): New rule.
2215 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2216 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2217 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2218 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2219 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2220 * config/i386/go32.mh (NATDEPFILES): Likewise.
2221 * config/i386/linux.mh (NATDEPFILES): Likewise.
2222 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2223 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2224 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2225 * i386-nat.h (debug_hw_points): New declaration.
2226 * i386-nat.c (breakpoint.h): Remove include.
2227 (command.h): Likewise.
2228 (target.h): Likewise.
2229 (gdb_assert.h): Likewise.
2230 (debug_hw_points): Made nonstatic.
2231 (debug_printf): Now in i386-dregs.c.
2232 (TARGET_HAS_DR_LEN_8): Likewise.
2233 (DR_CONTROL_SHIFT): Likewise.
2234 (DR_CONTROL_SIZE): Likewise.
2235 (DR_RW_EXECUTE): Likewise.
2236 (DR_RW_WRITE): Likewise.
2237 (DR_RW_READ): Likewise.
2238 (DR_RW_IORW): Likewise.
2239 (DR_LEN_1): Likewise.
2240 (DR_LEN_2): Likewise.
2241 (DR_LEN_4): Likewise.
2242 (DR_LEN_8): Likewise.
2243 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2244 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2245 (DR_ENABLE_SIZE): Likewise.
2246 (DR_LOCAL_SLOWDOWN): Likewise.
2247 (DR_GLOBAL_SLOWDOWN): Likewise.
2248 (DR_CONTROL_RESERVED): Likewise.
2249 (I386_DR_CONTROL_MASK): Likewise.
2250 (I386_DR_VACANT): Likewise.
2251 (I386_DR_LOCAL_ENABLE): Likewise.
2252 (I386_DR_GLOBAL_ENABLE): Likewise.
2253 (I386_DR_DISABLE): Likewise.
2254 (I386_DR_SET_RW_LEN): Likewise.
2255 (I386_DR_GET_RW_LEN): Likewise.
2256 (I386_DR_WATCH_HIT): Likewise.
2257 (i386_wp_op_t): Likewise.
2258 (i386_show_dr): Likewise.
2259 (i386_length_and_rw_bits): Likewise.
2260 (i386_insert_aligned_watchpoint): Likewise.
2261 (i386_remove_aligned_watchpoint): Likewise.
2262 (i386_handle_nonaligned_watchpoint): Likewise.
2263 (i386_update_inferior_debug_regs): Likewise.
2264 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2265 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2266 (i386_region_ok_for_watchpoint):
2267 Use i386_dr_region_ok_for_watchpoint.
2268 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2270 2014-06-19 Gary Benson <gbenson@redhat.com>
2272 * i386-nat.c (i386_insert_hw_breakpoint): Use
2273 i386_insert_watchpoint.
2274 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2276 2014-06-19 Gary Benson <gbenson@redhat.com>
2278 * i386-nat.c (i386_dr_show): Renamed to
2279 i386_show_dr and made static. All uses updated.
2280 (i386_dr_length_and_rw_bits): Renamed to
2281 i386_length_and_rw_bits and made static.
2283 (i386_dr_insert_aligned_watchpoint): Renamed to
2284 i386_insert_aligned_watchpoint and made static.
2286 (i386_dr_remove_aligned_watchpoint): Renamed to
2287 i386_remove_aligned_watchpoint and made static.
2289 (i386_dr_update_inferior_debug_regs): Renamed to
2290 i386_update_inferior_debug_regs and made static.
2292 * nat/i386-dregs.h (i386_dr_show): Removed.
2293 (i386_dr_length_and_rw_bits): Likewise.
2294 (i386_dr_insert_aligned_watchpoint): Likewise.
2295 (i386_dr_remove_aligned_watchpoint): Likewise.
2296 (i386_dr_update_inferior_debug_regs): Likewise.
2298 2014-06-19 Gary Benson <gbenson@redhat.com>
2300 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2301 * configure: Regenerate.
2302 * config.in: Likewise.
2303 * main.c (signal.h): New include.
2304 (setup_alternate_signal_stack): New function.
2305 (captured_main): Call the above.
2306 * cp-support.c (signal.h): New include.
2307 (catch_demangler_crashes): New flag.
2308 (SIGJMP_BUF): New define.
2309 (SIGSETJMP): Likewise.
2310 (SIGLONGJMP): Likewise.
2311 (gdb_demangle_jmp_buf): New static global.
2312 (gdb_demangle_attempt_core_dump): Likewise.
2313 (gdb_demangle_signal_handler): New function.
2314 (gdb_demangle): If catch_demangler_crashes is set, install the
2315 above signal handler before calling bfd_demangle, and restore
2316 the original signal handler afterwards. Display the offending
2317 symbol and call demangler_warning the first time a segmentation
2319 (_initialize_cp_support): New maint set/show command.
2321 2014-06-19 Gary Benson <gbenson@redhat.com>
2323 * utils.h (resource_limit_kind): New enum.
2324 (can_dump_core): New declaration.
2325 (warn_cant_dump_core): Likewise.
2326 (dump_core): Likewise.
2327 * utils.c (dump_core): Made nonstatic. Added new
2328 parameter "limit_kind".
2329 (can_dump_core): Made nonstatic. Moved printing code to...
2330 (warn_cant_dump_core): New function.
2331 (can_dump_core_warn): Likewise.
2332 (internal_vproblem): Replace calls to can_dump_core with
2333 calls to can_dump_core_warn. Supply new argument to each.
2335 2014-06-19 Gary Benson <gbenson@redhat.com>
2337 * utils.h (demangler_vwarning): New declaration.
2338 (demangler_warning): Likewise.
2339 * utils.c (struct internal_problem)
2340 <user_settable_should_quit>: New field.
2341 <user_settable_should_dump_core>: Likewise
2342 (internal_error_problem): Add values for above new fields.
2343 (internal_warning_problem): Likewise.
2344 (demangler_warning_problem): New static global.
2345 (demangler_vwarning): New function.
2346 (demangler_warning): Likewise.
2347 (add_internal_problem_command): Selectively add commands.
2348 (_initialize_utils): New internal problem command.
2349 * maint.c (maintenance_demangler_warning): New function.
2350 (_initialize_maint_cmds): New command.
2352 2014-06-18 Tom Tromey <tromey@redhat.com>
2354 * f-valprint.c (info_common_command_for_block): Update.
2355 * symtab.h (struct general_symbol_info) <common_block>: Now
2358 2014-06-18 Tom Tromey <tromey@redhat.com>
2360 * symtab.h (struct symtab) <blockvector>: Now const.
2361 * ada-lang.c (ada_add_global_exceptions): Update.
2362 * buildsym.c (augment_type_symtab): Update.
2363 * dwarf2read.c (dw2_lookup_symbol): Update.
2364 * jit.c (finalize_symtab): Update.
2365 * jv-lang.c (add_class_symtab_symbol): Update.
2366 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2368 * objfiles.c (objfile_relocate1): Update.
2369 * psymtab.c (lookup_symbol_aux_psymtabs)
2370 (maintenance_check_psymtabs): Update.
2371 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2373 * spu-tdep.c (spu_catch_start): Update.
2374 * symmisc.c (dump_symtab_1): Update.
2375 * symtab.c (lookup_global_symbol_from_objfile)
2376 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2377 (basic_lookup_transparent_type_quick)
2378 (basic_lookup_transparent_type, find_pc_sect_symtab)
2379 (find_pc_sect_line, search_symbols): Update.
2380 * block.c (find_block_in_blockvector): Make "bl" const.
2381 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2383 (blockvector_contains_pc): Make "bv" const.
2384 (block_for_pc_sect): Update.
2385 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2386 (blockvector_contains_pc): Update.
2387 * breakpoint.c (resolve_sal_pc): Update.
2388 * inline-frame.c (block_starting_point_at): Update.
2390 2014-06-18 Tom Tromey <tromey@redhat.com>
2392 * completer.c (complete_line): Make "line_buffer" const.
2393 * completer.h (complete_line): Update.
2395 2014-06-18 Tom Tromey <tromey@redhat.com>
2397 * symtab.c (add_macro_name): Remove unneeded cast.
2399 2014-06-18 Tom Tromey <tromey@redhat.com>
2401 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2402 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2404 2014-06-18 Tom Tromey <tromey@redhat.com>
2406 * probe.c (info_probes_for_ops): Make "arg" const.
2407 * probe.h (info_probes_for_ops): Update.
2409 2014-06-18 Tom Tromey <tromey@redhat.com>
2411 * varobj.c (varobj_create): Update.
2412 * valops.c (value_of_this): Update.
2413 * tracepoint.c (add_local_symbols, scope_info): Update.
2414 * symtab.h (struct general_symbol_info) <block>: Now const.
2415 * symtab.c (skip_prologue_sal)
2416 (default_make_symbol_completion_list_break_on)
2417 (skip_prologue_using_sal): Update.
2418 * stack.h (iterate_over_block_locals)
2419 (iterate_over_block_local_vars): Update.
2420 * stack.c (print_frame_args): Update.
2421 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2423 (get_selected_block): Make return type const.
2424 * python/py-frame.c (frapy_block): Update.
2425 * python/py-block.c (gdbpy_block_for_pc): Update.
2426 * p-exp.y (%union) <bval>: Now const.
2427 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2428 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2429 * m2-exp.y (%union) <bval>: Now const.
2430 * linespec.c (get_current_search_block): Make return type const.
2431 (create_sals_line_offset, find_label_symbols): Update.
2432 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2434 (block_starting_point_at): Make "block" const.
2435 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2436 (check_exception_resume): Update.
2437 * guile/scm-frame.c (gdbscm_frame_block): Update.
2438 * guile/scm-block.c (gdbscm_lookup_block): Update.
2439 * frame.h (get_frame_block): Update.
2440 (get_selected_block): Make return type const.
2441 * frame.c (frame_id_inner): Update.
2442 * f-valprint.c (info_common_command_for_block)
2443 (info_common_command): Update.
2444 * dwarf2loc.c (dwarf2_find_location_expression)
2445 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2446 (locexpr_describe_location_piece): Update.
2447 * c-exp.y (%union) <bval>: Now const.
2448 * breakpoint.c (resolve_sal_pc): Update.
2449 * blockframe.c (get_frame_block):Make return type const.
2450 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2451 (block_innermost_frame): Update.
2452 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2453 (block_for_pc, block_for_pc_sect): Update.
2454 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2456 (block_for_pc_sect, block_for_pc): Make return type const.
2457 * ax-gdb.c (gen_expr): Update.
2458 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2459 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2460 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2461 (ada_read_var_value): Update.
2462 * ada-exp.y (struct name_info) <block>: Now const.
2464 (block_lookup): Constify.
2466 2014-06-18 Gary Benson <gbenson@redhat.com>
2468 * nat/i386-dregs.h: New file.
2469 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2470 * i386-nat.h (i386-dregs.h): New include.
2471 (DR_FIRSTADDR): Now in i386-dregs.h.
2472 (DR_LASTADDR): Likewise.
2473 (DR_NADDR): Likewise.
2474 (DR_STATUS): Likewise.
2475 (DR_CONTROL): Likewise.
2476 (i386_debug_reg_state): Likewise.
2477 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2479 2014-06-18 Don Breazeal <donb@codesourcery.com>
2481 * breakpoint.c (set_longjmp_breakpoint): Call
2482 momentary_breakpoint_from_master with additional argument.
2483 (set_longjmp_breakpoint_for_call_dummy): Call
2484 momentary_breakpoint_from_master with additional argument.
2485 (set_std_terminate_breakpoint): Call
2486 momentary_breakpoint_from_master with additional argument.
2487 (momentary_breakpoint_from_master): Add argument to function
2488 definition and use it to initialize structure member flag.
2489 (clone_momentary_breakpoint): Call
2490 momentary_breakpoint_from_master with additional argument.
2491 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2492 member flags set in momentary_breakpoint_from_master.
2494 2014-06-18 Gary Benson <gbenson@redhat.com>
2496 * i386-nat.c (i386_show_dr): Renamed to
2497 i386_dr_show and made nonstatic. All uses updated.
2498 (i386_length_and_rw_bits): Renamed to
2499 i386_dr_length_and_rw_bits and made nonstatic.
2501 (i386_insert_aligned_watchpoint): Renamed to
2502 i386_dr_insert_aligned_watchpoint and made nonstatic.
2504 (i386_remove_aligned_watchpoint): Renamed to
2505 i386_dr_remove_aligned_watchpoint and made nonstatic.
2507 (i386_update_inferior_debug_regs): Renamed to
2508 i386_dr_update_inferior_debug_regs and made nonstatic.
2511 2014-06-18 Gary Benson <gbenson@redhat.com>
2513 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2514 (i386_dr_low_can_set_control): Likewise.
2515 (i386_dr_low_set_addr): Likewise.
2516 (i386_dr_low_set_control): Likewise.
2517 (i386_dr_low_get_addr): Likewise.
2518 (i386_dr_low_get_status): Likewise.
2519 (i386_dr_low_get_control): Likewise.
2520 (i386_insert_aligned_watchpoint): Use new macros.
2521 (i386_update_inferior_debug_regs): Likewise.
2522 (i386_stopped_data_address): Likewise.
2524 2014-06-18 Gary Benson <gbenson@redhat.com>
2526 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2527 New parameter. All uses updated.
2529 2014-06-18 Gary Benson <gbenson@redhat.com>
2531 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2534 2014-06-18 Gary Benson <gbenson@redhat.com>
2536 * i386-nat.c (debug_printf): New macro.
2537 (i386_get_debug_register_length): Likewise.
2538 (TARGET_HAS_DR_LEN_8): Use above macro.
2539 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2540 and printf_unfiltered. Use phex to format values.
2542 2014-06-18 Gary Benson <gbenson@redhat.com>
2544 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2547 2014-06-18 Gary Benson <gbenson@redhat.com>
2549 * i386-nat.c: Comment changes.
2551 2014-06-18 Gary Benson <gbenson@redhat.com>
2553 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2555 2014-06-18 Gary Benson <gbenson@redhat.com>
2557 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2558 (i386_insert_aligned_watchpoint): Likewise.
2559 (i386_remove_aligned_watchpoint): Likewise.
2560 (i386_handle_nonaligned_watchpoint): Likewise.
2562 2014-06-18 Gary Benson <gbenson@redhat.com>
2564 * i386-nat.c: Whitespace changes.
2566 2014-06-17 Samuel Bronson <naesten@gmail.com>
2568 * MAINTAINERS: Update Roland McGrath's email address.
2569 Thanks to Sergio Durigan Junior for pointing out that he left
2570 Red Hat a while ago, and giving me a current address.
2572 2014-06-17 Tom Tromey <tromey@redhat.com>
2574 * utils.h (savestring): Remove declaration.
2576 2014-06-17 Tom Tromey <tromey@redhat.com>
2578 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2580 2014-06-16 Keith Seitz <keiths@redhat.com>
2583 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2584 to update the varobj if inferior_ptid is null_ptid.
2586 2014-06-16 Tom Tromey <tromey@redhat.com>
2588 * target.h (struct target_ops) <to_info_proc>: Make parameter
2590 (target_info_proc): Update.
2591 * target.c (target_info_proc): Make "args" const.
2592 * procfs.c (procfs_info_proc): Update.
2593 * linux-tdep.c (linux_info_proc): Update.
2594 (linux_core_info_proc_mappings): Make "args" const.
2595 (linux_core_info_proc): Update.
2596 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2597 * gdbarch.c: Rebuild.
2598 * gdbarch.h: Rebuild.
2599 * corelow.c (core_info_proc): Update.
2601 2014-06-16 Tom Tromey <tromey@redhat.com>
2603 * target.h (struct target_ops) <to_disconnect>: Make parameter
2605 (target_disconnect): Update.
2606 * target.c (target_disconnect): Make "args" const.
2607 * target-delegates.c: Rebuild.
2608 * remote.c (remote_disconnect): Update.
2609 * record.h (record_disconnect): Update.
2610 * record.c (record_disconnect): Update.
2611 * inf-child.c (inf_child_disconnect): Update.
2613 2014-06-16 Tom Tromey <tromey@redhat.com>
2615 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2616 * target.c (debug_to_rcmd, default_rcmd): Update.
2617 * target-delegates.c: Rebuild.
2618 * remote.c (remote_rcmd): Update.
2619 * monitor.c (monitor_rcmd): Update.
2621 2014-06-16 Pedro Alves <palves@redhat.com>
2623 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2624 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2625 have OBJF_SHARED set.
2626 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2627 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2628 instead of OBJF_USERLOADED.
2629 * objfiles.h (OBJF_SHARED): Update comment.
2630 (userloaded_objfile_contains_address_p): Rename to ...
2631 (shared_objfile_contains_address_p): ... this, and update
2633 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2635 (remove_symbol_file_command): Skip objfiles that don't have
2638 2014-06-16 Tom Tromey <tromey@redhat.com>
2640 * minsyms.h (prim_record_minimal_symbol)
2641 (prim_record_minimal_symbol_and_info): Update comments.
2643 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2645 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2646 or --without-guile, according to how GDB was built.
2648 2014-06-13 Tom Tromey <tromey@redhat.com>
2650 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2652 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2654 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2656 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2657 help_list.Pass all_commands, not -1, to help_list.
2658 * cli/cli-dump.c (dump_command, append_command)
2659 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2660 (binary_dump_command, binary_append_command): Pass all_commands,
2661 not -1, to help_list.
2662 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2664 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2666 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2668 * top.c (set_history): Pass all_commands, not -1, to help_list.
2669 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2670 all_commands, not -1, to help_list.
2671 * symfile.c (overlay_command): Pass all_commands, not -1, to
2673 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2675 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2677 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2679 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2680 not -1, to help_list.
2681 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2682 not -1, to help_list.
2683 * maint.c (maintenance_command, maintenance_info_command)
2684 (maintenance_print_command, maintenance_set_cmd): Pass
2685 all_commands, not -1, to help_list.
2686 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2688 * language.c (set_check): Pass all_commands, not -1, to help_list.
2689 * infcmd.c (unset_command): Pass all_commands, not -1, to
2691 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2693 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2695 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2697 * breakpoint.c (save_command): Pass all_commands, not -1, to
2699 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2700 all_commands, not -1, to help_list.
2702 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2704 * regcache.c (struct register_to_invalidate): New structure.
2705 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2707 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2709 2014-06-12 Yao Qi <yao@codesourcery.com>
2711 * varobj.c (varobj_get_num_children): Call
2712 varobj_is_dynamic_p.
2713 (varobj_list_children): Likewise.
2714 (varobj_update): Likewise. Update comments.
2716 2014-06-12 Yao Qi <yao@codesourcery.com>
2718 * varobj.c (varobj_pretty_printed_p): Rename to ...
2719 (varobj_is_dynamic_p): ... this. New function.
2720 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2721 (varobj_is_dynamic_p): Declare.
2722 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2723 (mi_print_value_p, varobj_update_one): Likewise.
2725 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2726 Yao Qi <yao@codesourcery.com>
2728 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2729 (varobj_get_iterator): Wrap up code for pretty-printer by
2730 "#if HAVE_PYTHON" and "#endif".
2731 (update_dynamic_varobj_children): Likewise.
2733 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2734 Yao Qi <yao@codesourcery.com>
2736 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2737 gdb_python_initialized is false. Move some code from varobj.c.
2738 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2739 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2740 (struct varobj_item): Moved to varobj-iter.h".
2741 (varobj_clear_saved_item): New function.
2742 (update_dynamic_varobj_children): Move python-related code to
2744 (free_variable): Call varobj_clear_saved_item and
2747 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2748 Yao Qi <yao@codesourcery.com>
2750 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2751 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2752 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2753 (py-varobj.o): New rule.
2754 * python/py-varobj.c: New file.
2755 * python/python-internal.h (py_varobj_get_iterator): Declare.
2756 * varobj-iter.h: New file.
2757 * varobj.c: Include "varobj-iter.h"
2758 (struct varobj) <child_iter>: Change its type from "PyObject *"
2759 to "struct varobj_iter *".
2760 <saved_item>: Likewise.
2761 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2762 [HAVE_PYTHON] (varobj_get_iterator): New function.
2763 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2764 python-specific code to python/py-varobj.c.
2765 (install_visualizer): Call varobj_iter_delete instead of
2767 * varobj.h (varobj_ensure_python_env): Declare.
2769 2014-06-12 Yao Qi <yao@codesourcery.com>
2771 * varobj.c (struct varobj_item): New structure.
2772 (create_child_with_value): Update declaration.
2773 (varobj_add_child): Replace arguments 'name' and 'value' with
2774 'item'. All callers updated.
2775 (install_dynamic_child): Likewise.
2776 (update_dynamic_varobj_children): Likewise.
2777 (varobj_add_child): Likewise.
2778 (create_child_with_value): Likewise.
2780 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2782 * NEWS: Create a new section for the next release branch.
2783 Rename the section of the current branch, now that it has
2786 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2788 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2789 * version.in: Bump version to 7.8.50.DATE-cvs.
2791 2014-06-11 Pedro Alves <palves@redhat.com>
2794 * ser-mingw.c (net_windows_socket_check_pending): New function.
2795 (net_windows_select_thread): Ignore spurious wakeups. Use
2796 net_windows_socket_check_pending.
2797 (net_windows_wait_handle): Check for pending events with
2798 ioctlsocket, through net_windows_socket_check_pending, instead of
2799 checking the socket's event.
2801 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2803 * python/python-internal.h (gdb_PyObject_GetAttrString)
2804 (gdb_PyObject_HasAttrString): New inline function definitions.
2805 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2806 char * of the second argument to PyObject_GetAttrString.
2808 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2810 * serial.c (serial_write): Fix index of character to be printed
2811 in call to serial_logchar when serial debug traces are enabled.
2813 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2815 * gdbtypes (resolve_dynamic_range): Add function description.
2817 2014-06-09 Pedro Alves <palves@redhat.com>
2819 * linux-nat.c (linux_child_follow_fork): Initialize status with
2820 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2821 inner block. Only pass the signal to PTRACE_DETACH if in pass
2824 2014-06-09 Gary Benson <gbenson@redhat.com>
2826 * common/signals.c (gdb_signal_from_host): Reorder to separate
2827 the always-available ANSI-standard signals from the signals that
2829 (do_gdb_signal_to_host): Likewise.
2830 * proc-events.c (signal_table): Likewise.
2832 2014-06-08 Hui Zhu <hui@codesourcery.com>
2834 * common/linux-ptrace.c (linux_disable_event_reporting): New
2836 * common/linux-ptrace.h (linux_disable_event_reporting): New
2838 * linux-nat.c (linux_child_follow_fork): Do a single step before
2841 2014-06-07 Keith Seitz <keiths@redhat.com>
2845 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2846 from symbol_matches_domain in symtab.c. All local callers
2847 of symbol_matches_domain updated.
2848 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2849 search STRUCT_DOMAIN.
2850 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2851 independently. standard_lookup will do that automatically.
2852 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2853 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2854 (cp_lookup_symbol_in_namespace): Likewise.
2855 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2856 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2857 may return a STRUCT_DOMAIN match.
2858 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2859 * cp-support.c: Include language.h.
2860 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2862 * psymtab.c (match_partial_symbol): Compare the requested
2863 domain with the symbol's domain directly.
2864 (lookup_partial_symbol): Likewise.
2865 * symtab.c (lookup_symbol_in_language): Explain when/why
2866 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2867 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2868 appropriate languages.
2869 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2870 and moved to ada-lang.c
2871 (lookup_block_symbol): Explain that this function only returns
2872 symbol matching the requested DOMAIN.
2873 Compare the requested domain with the symbol's domain directly.
2874 (iterate_over_symbols): Compare the requested domain with the
2875 symbol's domain directly.
2876 * symtab.h (symbol_matches_domain): Remove.
2878 2014-06-06 Doug Evans <xdje42@gmail.com>
2880 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2881 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2882 (gdbscm_guile_version_is_at_least): Declare.
2883 (gdbscm_scm_string_to_int): Declare.
2884 * guile/guile.c (gdbscm_guile_major_version): New global.
2885 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2886 (guile_datadir): New static global.
2887 (gdbscm_guile_data_directory): New function.
2888 (initialize_scheme_side): Update.
2889 (misc_guile_functions): Add guile-data-directory.
2890 (initialize_gdb_module): Fetch guile version number.
2891 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2892 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2893 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2894 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2896 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2897 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2898 * guile/scm-value.c (gdbscm_value_to_string): Only call
2899 scm_port_conversion_strategy if Guile version >= 2.0.6.
2901 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2903 * main.c (print_gdb_help): Add -q and --silent.
2905 2014-06-06 Gary Benson <gbenson@redhat.com>
2907 * common/signals.c: Remove preprocessor conditionals for
2908 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2909 SIGSEGV and SIGTERM.
2910 * proc-events.c: Likewise.
2912 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2914 * symfile.c (symfile_free_objfile): Remove restriction to
2916 * symfile-mem.c (symbol_file_add_from_memory): Call
2917 add_target_sections_of_objfile.
2919 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2921 * guile/scm-value.c (gdbscm_history_append_x): Use
2922 'vlscm_get_value_smob_arg_unsafe' instead of
2923 'vlscm_scm_to_value'.
2925 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2928 * utils.c (printchar): Don't escape at all if quoter is NUL.
2929 Update function documentation to clarify effect of parameter
2931 * remote.c (escape_buffer): Pass '\\' as the quoter to
2932 fputstrn_unfiltered.
2933 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2934 generate the output.
2935 (mi_solib_unloaded): Same.
2937 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2939 * development.sh: Delete.
2940 * Makefile.in (config.status): Adjust dependency on development.sh.
2941 * configure.ac: Adjust development.sh source call.
2942 * configure: Regenerate.
2944 2014-06-04 Doug Evans <xdje42@gmail.com>
2946 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2947 is_scheme_bkpt, spec.
2948 (bpscm_make_breakpoint_smob): Initialize new members.
2949 (gdbscm_create_breakpoint_x): Split into two ...
2950 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2951 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2952 (scheme_function breakpoint_functions): Update.
2953 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2954 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2955 register-breakpoint!.
2957 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2960 * mem-break.c (z_type_supported): Return zero if
2961 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2963 2014-06-04 Tom Tromey <tromey@redhat.com>
2965 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2966 value_from_contents_and_address_unresolved.
2967 (ada_template_to_fixed_record_type_1): Likewise.
2968 (ada_which_variant_applies): Likewise.
2969 * value.h (value_from_contents_and_address_unresolved): Declare.
2970 * value.c (value_from_contents_and_address_unresolved): New
2972 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2973 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2974 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2976 2014-06-04 Tom Tromey <tromey@redhat.com>
2978 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2980 2014-06-04 Tom Tromey <tromey@redhat.com>
2982 * procfs.c (procfs_attach): Make "args" const.
2983 * windows-nat.c (windows_attach): Make "args" const.
2984 * nto-procfs.c (procfs_attach): Make "args" const.
2985 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2986 * go32-nat.c (go32_attach): Make "args" const.
2987 * gnu-nat.c (gnu_attach): Make "args" const.
2988 * darwin-nat.c (darwin_attach): Make "args" const.
2989 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2990 * linux-nat.c (linux_nat_attach): Make "args" const.
2991 * remote.c (extended_remote_attach_1, extended_remote_attach):
2993 * target.h (struct target_ops) <to_attach>: Make "args" const.
2994 (find_default_attach): Likewise.
2995 * utils.c (parse_pid_to_attach): Make "args" const.
2996 * utils.h (parse_pid_to_attach): Update.
2998 2014-06-04 Tom Tromey <tromey@redhat.com>
3000 * target-delegates.c: Rebuild.
3001 * target.c (default_thread_address_space): New function.
3002 (target_thread_address_space): Simplify.
3003 * target.h (struct target_ops) <to_thread_address_space>: Add
3004 TARGET_DEFAULT_FUNC.
3006 2014-06-04 Doug Evans <xdje42@gmail.com>
3008 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3010 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3012 * record-btrace.c: Include event-loop.h and inf-loop.h.
3013 (record_btrace_resume_exec_dir)
3014 (record_btrace_async_inferior_event_handler)
3015 (record_btrace_handle_async_inferior_event): New.
3016 (record_btrace_open): Create async event handler.
3017 (record_btrace_close): Delete async event handler.
3018 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3019 Mark async event handler.
3020 (record_btrace_execution_direction): New.
3021 (init_record_btrace_ops): Initialize to_execution_direction.
3023 2014-06-03 Doug Evans <xdje42@gmail.com>
3025 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3026 (gdbscm_make_parameter): Ditto.
3028 2014-06-03 Doug Evans <dje@google.com>
3030 * exec.c (exec_close_1): Call clear_section_table instead of
3031 resize_section_table.
3032 (clear_section_table): New function.
3033 (resize_section_table): Make static. Rename arg num_added to
3035 * exec.h (clear_section_table): Declare.
3036 (resize_section_table): Delete.
3037 * progspace.c (release_program_space): Call clear_section_table
3038 instead of resize_section_table.
3040 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3042 * NEWS (Python Scripting): Add entry about the new xmethods
3045 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3047 * python/py-xmethods.c: New file.
3048 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3049 (objfpy_dealloc): XDECREF on the new xmethods field.
3050 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3052 (objfpy_get_xmethods): New function.
3053 (objfile_getset): New entry 'xmethods'.
3054 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3055 (pspy_dealloc): XDECREF on the new xmethods field.
3056 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3058 (pspy_get_xmethods): New function.
3059 (pspace_getset): New entry 'xmethods'.
3060 * python/python-internal.h: Add declarations for new functions.
3061 * python/python.c (_initialize_python): Invoke
3062 gdbpy_initialize_xmethods.
3063 * python/lib/gdb/__init__.py (xmethods): New
3065 * python/lib/gdb/xmethod.py: New file.
3066 * python/lib/gdb/command/xmethods.py: New file.
3068 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3070 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3071 best match method returned by find_overload_match is an xmethod.
3072 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3073 the best matching operator returned by find_overload_match is an
3075 * valops.c: #include "extension.h".
3076 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3077 Return void. The list of matching source methods is returned in
3078 "fn_list" and a vector of matching debug method workers is
3079 returned in "xm_worker_vec". Update all callers.
3080 (value_find_oload_method_list): Likewise.
3081 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3082 non-NULL, then the index of the best matching method in this
3083 vector is returned. Update all callers.
3084 (find_overload_match): Include xmethods while performing overload
3087 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3089 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3090 * extension-priv.h (struct extension_language_ops): Add the
3092 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3093 get_matching_xmethod_workers, get_xmethod_argtypes,
3094 invoke_xmethod, free_xmethod_worker,
3095 free_xmethod_worker_vec): New functions.
3096 * extension.h: #include "common/vec.h".
3097 New function declarations.
3098 (struct xmethod_worker): New struct.
3099 (VEC (xmethod_worker_ptr)): New vector type.
3100 (xmethod_worker_ptr): New typedef.
3101 (xmethod_worker_vec): Likewise.
3102 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3104 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3105 (struct builtin_type): New field "xmethod".
3106 * valarith.c (value_ptradd): Assert that the value argument is not
3108 * valops.c (value_must_coerce_to_target): Return 0 for
3109 lval_xcallable values.
3110 * value.c (struct value): New field XM_WORKER in the field
3112 (value_address, value_raw_address): Return 0 for lval_xcallable
3114 (set_value_address): Assert that the value is not an
3116 (value_free): Free the associated xmethod worker when freeing
3117 lval_xcallable values.
3118 (set_value_component_location): Assert that the WHOLE value is not
3120 (value_of_xmethod, call_xmethod): New functions.
3121 * value.h: Declare "struct xmethod_worker".
3122 Declare new functions value_of_xmethod, call_xmethod.
3124 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3125 Pedro Alves <palves@redhat.com>
3127 PR breakpoints/17000
3128 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3129 New function, extracted from software_breakpoint_inserted_here_p.
3130 (software_breakpoint_inserted_here_p): Replace factored out code
3131 by call to find_non_raw_software_breakpoint_inserted_here.
3132 (bp_target_info_copy_insertion_state): New function.
3133 (bkpt_insert_location): Handle the case of a single-step
3134 breakpoint already inserted at the same address.
3135 (bkpt_remove_location): Handle the case of a single-step
3136 breakpoint still inserted at the same address.
3137 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3138 breakpoint already inserted at the same address.
3139 (deprecated_remove_raw_breakpoint): Handle the case of a
3140 non-raw breakpoint still inserted at the same address.
3141 (find_single_step_breakpoint): New function, extracted from
3142 single_step_breakpoint_inserted_here_p.
3143 (find_single_step_breakpoint): New function,
3144 factored out from single_step_breakpoint_inserted_here_p.
3145 (single_step_breakpoint_inserted_here_p): Reimplement.
3147 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3149 Pushed by Joel Brobecker <brobecker@adacore.com>
3150 * source.c (show_substitute_path_command): Fix display of matching
3153 2014-06-03 Gary Benson <gbenson@redhat.com>
3155 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3157 2014-06-02 Doug Evans <xdje42@gmail.com>
3159 Add parameter support for Guile.
3160 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3161 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3162 (scm-param.o): New rule.
3163 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3164 (gdbscm_misc_error): Declare.
3165 (gdbscm_canonicalize_command_name): Declare.
3166 (gdbscm_scm_to_host_string): Declare.
3167 (gdbscm_scm_from_host_string): Declare.
3168 (gdbscm_initialize_parameters): Declare.
3169 * guile/guile.c (initialize_gdb_module): Call
3170 gdbscm_initialize_parameters.
3171 * guile/lib/gdb.scm: Export parameter symbols.
3172 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3173 cmdscm_canonicalize_name and made public. All callers updated.
3174 * guile/scm-exception.c (gdbscm_misc_error): New function.
3175 * guile/scm-param.c: New file.
3176 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3177 (gdbscm_scm_to_host_string): New function.
3178 (gdbscm_scm_from_host_string): New function.
3179 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3181 2014-06-02 Doug Evans <xdje42@gmail.com>
3183 Add command support for Guile.
3184 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3185 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3186 (scm-cmd.o): New rule.
3187 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3188 (gdbscm_user_error_p): Declare.
3189 (gdbscm_parse_command_name): Declare.
3190 (gdbscm_valid_command_class_p): Declare.
3191 (gdbscm_initialize_commands): Declare.
3192 * guile/guile.c (initialize_gdb_module): Call
3193 gdbscm_initialize_commands.
3194 * guile/lib/gdb.scm: Export command symbols.
3195 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3196 (throw-user-error): New function.
3197 * guile/scm-cmd.c: New file.
3198 * guile/scm-exception.c (user_error_symbol): New static global.
3199 (gdbscm_user_error_p): New function.
3200 (gdbscm_initialize_exceptions): Set user_error_symbol.
3201 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3203 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3205 * top.c (command_loop): Handle comments here...
3206 (command_line_input): ... not here.
3208 2014-06-02 Doug Evans <xdje42@gmail.com>
3210 Add progspace support for Guile.
3211 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3212 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3213 (scm-progspace.o): New rule.
3214 * guile/guile-internal.h (pspace_smob): New typedef.
3215 (psscm_pspace_smob_pretty_printers): Declare.
3216 (psscm_pspace_smob_from_pspace): Declare.
3217 (psscm_scm_from_pspace): Declare.
3218 * guile/guile.c (initialize_gdb_module): Call
3219 gdbscm_initialize_pspaces.
3220 * guile/lib/gdb.scm: Export progspace symbols.
3221 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3223 (append-pretty-printer!): Ditto.
3224 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3226 * guile/scm-progspace.c: New file.
3228 2014-06-03 Alan Modra <amodra@gmail.com>
3230 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3231 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3233 2014-06-02 Doug Evans <dje@google.com>
3235 Add support for skeletonless type units.
3236 * dwarf2read.c (struct dwarf2_per_objfile): New member
3237 n_allocated_type_units.
3238 (struct dwarf2_per_objfile) <tu_stats>: New member
3239 nr_all_type_units_reallocs.
3240 (create_signatured_type_table_from_index): Initialize
3241 n_allocated_type_units
3242 (create_all_type_units): Ditto.
3243 (add_type_unit): Move up in file. New arg slot.
3244 All callers updated. Increase space for all_type_units more
3246 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3247 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3248 (lookup_dwp_signatured_type): Ditto.
3249 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3250 All callers updated.
3251 (build_type_psymtabs_1): Leave type_unit_groups as
3252 NULL if no TUs present.
3253 (print_tu_stats): New function.
3254 (process_skeletonless_type_unit): New function.
3255 (process_dwo_file_for_skeletonless_type_units): New
3257 (process_skeletonless_type_units): New function.
3258 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3259 Call print tu_stats if debugging enabled.
3261 2014-06-02 Pedro Alves <palves@redhat.com>
3263 * breakpoint.c (build_target_command_list): Don't build a command
3264 list if we have any duplicate location that isn't a dprintf.
3266 2014-06-02 Pedro Alves <palves@redhat.com>
3268 * breakpoint.c (dprintf_breakpoint_hit): New function.
3269 (initialize_breakpoint_ops): Install it as dprintf's
3270 breakpoint_hit method.
3272 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3274 * source.c (substitute_path_rule_matches): Simplify using
3275 filename_ncmp instead of FILENAME_CMP.
3277 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3279 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3281 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3283 * configure.ac: When Guile is available, check for the
3284 availability of 'scm_new_smob'.
3285 * configure, config.h.in: Regenerate.
3286 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3289 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3291 * frame.c (struct frame_info): Add stop_string field.
3292 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3293 (get_prev_frame_always): Old content moved into
3294 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3295 TRY_CATCH, handle MEMORY_ERROR exceptions.
3296 (frame_stop_reason_string): New function definition.
3297 * frame.h (unwind_stop_reason_to_string): Extend comment to
3298 mention frame_stop_reason_string.
3299 (frame_stop_reason_string): New function declaration.
3300 * stack.c (frame_info): Switch to frame_stop_reason_string.
3301 (backtrace_command_1): Switch to frame_stop_reason_string.
3302 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3303 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3304 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3306 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3308 * frame.c (frame_stop_reason_string): Rename to ...
3309 (unwind_stop_reason_to_string): this.
3310 * frame.h (frame_stop_reason_string): Rename to ...
3311 (unwind_stop_reason_to_string): this.
3312 * stack.c (frame_info): Update call to frame_stop_reason_string.
3313 (backtrace_command_1): Likewise.
3314 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3315 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3317 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3319 * frame.c (remove_prev_frame): New function.
3320 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3323 2014-05-29 Pedro Alves <palves@redhat.com>
3325 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3326 and make it const. When a single-step decays to a continue,
3327 clear 'step', not 'hw_step'. Pass whether the caller wanted
3328 to step to user_visible_resume_ptid, not what we ask the
3331 2014-05-29 Pedro Alves <palves@redhat.com>
3333 * infrun.c (process_event_stop_test, handle_step_into_function)
3334 (handle_step_into_function_backward): Adjust.
3335 Don't set the even thread's stop_step and call stop_waiting before
3336 calling end_stepping_range. Instead do that ...
3337 (end_stepping_range): ... here. Take an ecs pointer parameter.
3339 2014-05-29 Pedro Alves <palves@redhat.com>
3341 * infrun.c (stop_stepping): Rename to ...
3342 (stop_waiting): ... this.
3343 (proceed): Update comment.
3344 (process_event_stop_test, handle_inferior_event)
3345 (handle_signal_stop, handle_step_into_function)
3346 (handle_step_into_function_backward): Update.
3348 2014-05-29 Pedro Alves <palves@redhat.com>
3350 * infcall.c (run_inferior_call): Don't check whether the current
3351 thread is running after the proceed call.
3353 2014-05-29 Pedro Alves <palves@redhat.com>
3354 Tom Tromey <tromey@redhat.com>
3356 * NEWS: Mention "maint set target-async", "set mi-async", and that
3357 background execution commands are now always available.
3358 * target.h (target_async_permitted): Update comment.
3359 * target.c (target_async_permitted, target_async_permitted_1):
3361 (set_target_async_command): Rename to ...
3362 (maint_set_target_async_command): ... this.
3363 (show_target_async_command): Rename to ...
3364 (maint_show_target_async_command): ... this.
3365 (_initialize_target): Adjust.
3366 * infcmd.c (prepare_execution_command): Make extern.
3367 * inferior.h (prepare_execution_command): Declare.
3368 * infrun.c (set_observer_mode): Leave target async alone.
3369 * mi/mi-interp.c (mi_interpreter_init): Install
3370 mi_on_sync_execution_done as sync_execution_done observer.
3371 (mi_on_sync_execution_done): New function.
3372 (mi_execute_command_input_handler): Don't print the prompt if we
3373 just started a synchronous command with an async target.
3374 (mi_on_resume): Check sync_execution before printing prompt.
3375 * mi/mi-main.h (mi_async_p): Declare.
3376 * mi/mi-main.c: Include gdbcmd.h.
3377 (mi_async_p): New function.
3378 (mi_async, mi_async_1): New globals.
3379 (set_mi_async_command, show_mi_async_command, mi_async): New
3381 (exec_continue): Call prepare_execution_command.
3382 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3383 (mi_execute_async_cli_command): Use mi_async_p.
3384 (_initialize_mi_main): Install "set mi-async". Make
3385 "target-async" a deprecated alias.
3387 2014-05-29 Pedro Alves <palves@redhat.com>
3389 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3390 (_initialize_cli_interp): Adjust.
3391 * event-loop.c: Include "observer.h".
3392 (start_event_loop): Notify 'command_error' observers instead of
3393 calling display_gdb_prompt. Remove FIXME comment.
3394 * event-top.c (display_gdb_prompt): Remove call into the
3396 * inf-loop.c: Include "observer.h".
3397 (inferior_event_handler): Notify 'command_error' observers instead
3398 of calling display_gdb_prompt.
3399 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3400 observers instead of calling display_gdb_prompt.
3401 * interps.c (interp_set): Don't call display_gdb_prompt.
3402 (current_interp_display_prompt_p): Delete.
3403 * interps.h (interp_prompt_p): Delete declaration.
3404 (interp_prompt_p_ftype): Delete.
3405 (struct interp_procs) <prompt_proc_p>: Delete field.
3406 (current_interp_display_prompt_p): Delete declaration.
3407 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3408 (_initialize_mi_interp): Adjust.
3409 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3410 'command_error' observers.
3411 (tui_on_sync_execution_done, tui_on_command_error): New
3413 (tui_display_prompt_p): Delete.
3414 (_initialize_tui_interp): Adjust.
3416 2014-05-29 Pedro Alves <palves@redhat.com>
3419 * cli/cli-interp.c: Include infrun.h and observer.h.
3420 (cli_uiout, cli_interp): New globals.
3421 (cli_on_signal_received, cli_on_end_stepping_range)
3422 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3424 (cli_interpreter_init): Install them as 'end_stepping_range',
3425 'signal_received' 'signal_exited', 'exited' and 'no_history'
3427 (_initialize_cli_interp): Remove cli_interp local.
3428 * infrun.c (handle_inferior_event): Call the several stop reason
3429 observers instead of printing the stop reason directly.
3430 (end_stepping_range): New function.
3431 (print_end_stepping_range_reason, print_signal_exited_reason)
3432 (print_exited_reason, print_signal_received_reason)
3433 (print_no_history_reason): Make static, and add an uiout
3434 parameter. Print to that instead of to CURRENT_UIOUT.
3435 * infrun.h (print_end_stepping_range_reason)
3436 (print_signal_exited_reason, print_exited_reason)
3437 (print_signal_received_reason print_no_history_reason): New
3439 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3441 <cli_uiout>: New field.
3442 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3443 uiout for CLI output. Install 'signal_received',
3444 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3446 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3447 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3448 (mi_on_no_history): New functions.
3449 (ui_out_free_cleanup): Delete function.
3450 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3451 instead use the one already stored in the MI interpreter data.
3452 (mi_ui_out): Adjust.
3453 * tui/tui-interp.c: Include infrun.h and observer.h.
3454 (tui_interp): New global.
3455 (tui_on_signal_received, tui_on_end_stepping_range)
3456 (tui_on_signal_exited, tui_on_exited)
3457 (tui_on_no_history): New functions.
3458 (tui_init): Install them as 'end_stepping_range',
3459 'signal_received' 'signal_exited', 'exited' and 'no_history'
3461 (_initialize_tui_interp): Delete tui_interp local.
3463 2014-05-29 Pedro Alves <palves@redhat.com>
3466 * linux-nat.c (linux_nat_resume_callback): Rename the second
3467 parameter to 'except'. Skip LP if it points to EXCEPT.
3468 (linux_nat_resume): Don't mark the event lwp as not stopped
3469 before resuming sibling lwps. Instead ask
3470 linux_nat_resume_callback to skip the event lwp. Mark it as not
3471 stopped after actually resuming it.
3472 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3474 (wait_lwp): Mark the lwp as stopped here.
3475 (stop_wait_callback): Mark the lwp as not stopped right after
3476 resuming it. Don't mark lwps as stopped here.
3477 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3478 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3480 2014-05-29 Pedro Alves <palves@redhat.com>
3483 * infrun.c (resume): Determine how much to resume depending on
3484 whether the caller wanted a step, not whether we can hardware step
3485 the target. Mark all threads that we intend to run as running,
3486 unless we're calling an inferior function.
3487 (normal_stop): If the thread is running an infcall, don't finish
3489 * target.c (target_resume): Don't mark threads as running here.
3491 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3493 * serial.c (_initialize_serial): Remove support for
3494 the "set remotebaud" and "show remotebaud" commands.
3495 * NEWS: Add entry documenting the removal of that command.
3497 2014-05-28 Yao Qi <yao@codesourcery.com>
3499 * charset.c: Fix typo in comments.
3501 2014-05-27 Gary Benson <gbenson@redhat.com>
3503 * utils.c (internal_vproblem): Prompt for a bug report.
3505 2014-05-26 Andy Wingo <wingo@igalia.com>
3507 * guile/scm-arch.c (arscm_mark_arch_smob):
3508 * guile/scm-block.c (bkscm_mark_block_smob)
3509 (bkscm_mark_block_syms_progress_smob):
3510 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3511 * guile/scm-exception.c (exscm_mark_exception_smob):
3512 * guile/scm-frame.c (frscm_mark_frame_smob):
3513 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3514 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3515 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3516 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3517 (ppscm_mark_pretty_printer_worker_smob):
3518 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3519 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3520 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3521 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3523 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3526 2014-05-26 Andy Wingo <wingo@igalia.com>
3527 Doug Evans <xdje42@gmail.com>
3529 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3530 empty_base_class. All uses updated.
3531 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3532 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3534 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3535 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3536 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3537 (gdbscm_gsmob_has_property_p, add_property_name)
3538 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3539 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3540 (gdb-object-has-property?, gdb-object-properties): Remove.
3541 (gdb-object-kind): Renamed from gsmob-kind.
3543 2014-05-26 Andy Wingo <wingo@igalia.com>
3545 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3546 * configure: Regenerate.
3548 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3550 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3552 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3554 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3555 (replay_memory_access_read_only, replay_memory_access_read_write)
3556 (replay_memory_access_types, replay_memory_access)
3557 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3558 (cmd_set_record_btrace, cmd_show_record_btrace)
3559 (cmd_show_replay_memory_access): New.
3560 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3561 (record_btrace_remove_breakpoint): Replace
3562 record_btrace_allow_memory_access with replay_memory_access.
3563 (_initialize_record_btrace): Add commands.
3564 * NEWS: Announce it.
3566 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3568 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3570 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3572 * MAINTAINERS (Write After Approval): Move self back from
3575 2014-05-22 Pedro Alves <palves@redhat.com>
3577 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3578 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3579 (disable_randomization, enum exec_direction_kind)
3580 (execution_direction, stop_registers, start_remote)
3581 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3582 (wait_for_inferior, normal_stop, get_last_target_status)
3583 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3584 (insert_step_resume_breakpoint_at_sal)
3585 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3586 (set_step_info, print_stop_event, signal_stop_state)
3587 (signal_print_state, signal_pass_state, signal_stop_update)
3588 (signal_print_update, signal_pass_update)
3589 (update_signals_program_target, clear_exit_convenience_vars)
3590 (displaced_step_dump_bytes, update_observer_mode)
3591 (signal_catch_update, gdb_signal_from_command): Move
3593 * infrun.h: ... to this new file.
3594 * amd64-tdep.c: Include infrun.h.
3595 * annotate.c: Include infrun.h.
3596 * arch-utils.c: Include infrun.h.
3597 * arm-linux-tdep.c: Include infrun.h.
3598 * arm-tdep.c: Include infrun.h.
3599 * break-catch-sig.c: Include infrun.h.
3600 * breakpoint.c: Include infrun.h.
3601 * common/agent.c: Include infrun.h instead of inferior.h.
3602 * corelow.c: Include infrun.h.
3603 * event-top.c: Include infrun.h.
3604 * go32-nat.c: Include infrun.h.
3605 * i386-tdep.c: Include infrun.h.
3606 * inf-loop.c: Include infrun.h.
3607 * infcall.c: Include infrun.h.
3608 * infcmd.c: Include infrun.h.
3609 * infrun.c: Include infrun.h.
3610 * linux-fork.c: Include infrun.h.
3611 * linux-nat.c: Include infrun.h.
3612 * linux-thread-db.c: Include infrun.h.
3613 * monitor.c: Include infrun.h.
3614 * nto-tdep.c: Include infrun.h.
3615 * procfs.c: Include infrun.h.
3616 * record-btrace.c: Include infrun.h.
3617 * record-full.c: Include infrun.h.
3618 * remote-m32r-sdi.c: Include infrun.h.
3619 * remote-mips.c: Include infrun.h.
3620 * remote-notif.c: Include infrun.h.
3621 * remote-sim.c: Include infrun.h.
3622 * remote.c: Include infrun.h.
3623 * reverse.c: Include infrun.h.
3624 * rs6000-tdep.c: Include infrun.h.
3625 * s390-linux-tdep.c: Include infrun.h.
3626 * solib-irix.c: Include infrun.h.
3627 * solib-osf.c: Include infrun.h.
3628 * solib-svr4.c: Include infrun.h.
3629 * target.c: Include infrun.h.
3630 * top.c: Include infrun.h.
3631 * windows-nat.c: Include infrun.h.
3632 * mi/mi-interp.c: Include infrun.h.
3633 * mi/mi-main.c: Include infrun.h.
3634 * python/py-threadevent.c: Include infrun.h.
3636 2014-05-22 Pedro Alves <palves@redhat.com>
3638 * infrun.c (handle_inferior_event): Store the exit code for
3639 --return-child-result here, instead of ...
3640 (print_exited_reason): ... here.
3642 2014-05-21 Pedro Alves <palves@redhat.com>
3645 * gdbthread.h (struct thread_control_state): New field
3647 * infrun.c (follow_fork): Copy the new thread control field to the
3649 (clear_proceed_status_thread): Clear the new thread control field.
3650 (proceed): Set the new thread control field.
3651 * interps.h (command_interp): Declare.
3652 * interps.c (command_interpreter): New global.
3653 (command_interp): New function.
3654 (interp_exec): Set `command_interpreter' while here.
3655 * cli-out.c (cli_uiout_dtor): New function.
3656 (cli_ui_out_impl): Install it.
3657 * mi/mi-interp.c: Include cli-out.h.
3658 (mi_cmd_interpreter_exec): Add comment.
3659 (restore_current_uiout_cleanup): New function.
3660 (ui_out_free_cleanup): New function.
3661 (mi_on_normal_stop): If finishing an execution command started by
3662 a CLI command, or any kind of breakpoint-like event triggered,
3663 print the stop event to the output (CLI) stream.
3664 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3666 2014-05-21 Pedro Alves <palves@redhat.com>
3668 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3669 current source line having changed.
3670 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3671 * infrun.c (normal_stop): Adjust call to
3672 set_current_sal_from_frame.
3673 * source.c (clear_lines_listed_range): New function.
3674 (set_current_source_symtab_and_line, identify_source_line): Clear
3675 the lines listed range.
3676 (line_info): Handle the first "info line" after the current source
3677 line having changed.
3678 * stack.c (print_stack_frame): Remove center handling.
3679 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3682 2014-05-21 Pedro Alves <palves@redhat.com>
3684 * inf-child.c (inf_child_mourn_inferior): New function.
3685 * inf-child.h (inf_child_mourn_inferior): New declaration.
3686 * darwin-nat.c (darwin_mourn_inferior): Use
3687 inf_child_mourn_inferior.
3688 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3689 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3690 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3691 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3692 * windows-nat.c (windows_mourn_inferior): Likewise.
3694 2014-05-21 Doug Evans <xdje42@gmail.com>
3696 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3698 2014-05-21 Doug Evans <xdje42@gmail.com>
3700 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3701 (gdbscm_out_of_range_error): Ditto.
3702 (gdbscm_memory_error): Ditto.
3703 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3704 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3705 (gdbscm_out_of_range_error): Update.
3706 (gdbscm_memory_error): Update.
3707 (gdbscm_scm_to_target_string_unsafe): Delete.
3709 2014-05-21 Pedro Alves <palves@redhat.com>
3711 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3713 (inf_child_open_target): New function.
3714 (inf_child_open): Use inf_child_open_target to push the target
3715 instead of erroring out.
3716 (inf_child_disconnect, inf_child_close)
3717 (inf_child_maybe_unpush_target): New functions.
3718 (inf_child_target): Install inf_child_disconnect and
3719 inf_child_close. Store a pointer to the returned object.
3720 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3722 * target.c (auto_connect_native_target): New global.
3723 (show_default_run_target): New function.
3724 (find_default_run_target): Return NULL if automatically connecting
3725 to the native target is disabled.
3726 (_initialize_target): Install set/show auto-connect-native-target.
3727 * NEWS: Mention "set auto-connect-native-target", and "target
3729 * linux-nat.c (super_close): New global.
3730 (linux_nat_close): Call super_close.
3731 (linux_nat_add_target): Store a pointer to the base class's
3733 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3734 inf_child_maybe_unpush.
3735 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3737 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3738 the inferior. Use inf_child_maybe_unpush_target.
3739 (inf_ttrace_attach): Don't push the target if it is already
3741 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3742 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3743 after mourning the inferior. Use inf_child_maybe_unpush_target.
3744 (darwin_attach_pid): Don't push the target if it is already
3746 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3747 mourning the inferior. Use inf_child_maybe_unpush_target.
3748 (gnu_detach): Use inf_child_maybe_unpush_target.
3749 * go32-nat.c (go32_create_inferior): Don't push the target if it
3751 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3752 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3753 (procfs_open): Rename to ...
3754 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3755 comments. Can target_preopen before changing node. Call
3756 inf_child_open_target to push the target explicitly.
3757 (procfs_attach): Don't push the target if it is already pushed.
3758 (procfs_detach): Use inf_child_maybe_unpush_target.
3759 (procfs_create_inferior): Don't push the target if it is already
3761 (nto_native_ops): New global.
3762 (procfs_open): Reimplement.
3763 (procfs_native_open): New function.
3764 (init_procfs_targets): Install procfs_native_open as to_open of
3765 "target native". Store a pointer to the "native" target in
3767 * procfs.c (procfs_attach): Don't push the target if it is already
3769 (procfs_detach): Use inf_child_maybe_unpush_target.
3770 (procfs_mourn_inferior): Only unpush the target after mourning the
3771 inferior. Use inf_child_maybe_unpush_target.
3772 (procfs_init_inferior): Don't push the target if it is already
3774 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3775 if it is already pushed.
3777 2014-05-21 Pedro Alves <palves@redhat.com>
3779 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3780 and "procfs" targets are now called "native" instead.
3782 2014-05-21 Pedro Alves <palves@redhat.com>
3784 * go32-nat.c (go32_open): Delete.
3785 (go32_target): Don't override the to_open method.
3787 2014-05-21 Pedro Alves <palves@redhat.com>
3789 * nto-procfs.c (procfs_can_run): New function.
3790 (nto_procfs_ops): New global.
3791 (init_procfs_targets): New, based on procfs_target. Install
3792 "target native" in addition to "target procfs".
3793 (_initialize_procfs): Call init_procfs_targets instead of adding
3796 2014-05-21 Pedro Alves <palves@redhat.com>
3798 * windows-nat.c (windows_target): Don't override to_shortname,
3799 to_longname or to_doc.
3801 2014-05-21 Pedro Alves <palves@redhat.com>
3803 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3806 2014-05-21 Pedro Alves <palves@redhat.com>
3808 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3809 to_shortname, to_longname or to_doc.
3811 2014-05-21 Pedro Alves <palves@redhat.com>
3813 * go32-nat.c (go32_target): Don't override to_shortname,
3814 to_longname or to_doc.
3816 2014-05-21 Pedro Alves <palves@redhat.com>
3818 * inf-child.c (inf_child_open): Remove mention of "child".
3819 (inf_child_target): Rename target to "native" instead of "child".
3821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3823 * Makefile.in (SFILES): Delete "regset.c".
3824 (COMMON_OBS): Delete "regset.o".
3826 * regset.h (regset_alloc): Delete prototype.
3828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3830 * sparc-linux-tdep.c (sparc32_linux_gregset)
3831 (sparc32_linux_fpregset): New static regset structures.
3832 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3833 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3835 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3836 (sparc64_linux_fpregset): New static regset structures.
3837 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3838 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3839 New static regset structures.
3840 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3841 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3842 New static regset structures.
3843 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3844 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3845 New static regset structures.
3846 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3847 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3848 New static regset structures.
3849 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3851 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3853 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3854 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3855 register maps ("regmaps") from "*regset" to "*regmap". Do this
3856 for all regmap types and variables.
3857 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3858 (sparc32_linux_supply_core_gregset)
3859 (sparc32_linux_collect_core_gregset)
3860 (sparc32_linux_supply_core_fpregset)
3861 (sparc32_linux_collect_core_fpregset): Likewise.
3862 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3863 (sparc_gregmap, sparc_fpregmap): ... these.
3864 (sparc_supply_gregset, sparc_collect_gregset)
3865 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3866 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3867 (_initialize_sparc_nat): Rename regmaps.
3868 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3869 (sparc_gregmap, sparc_fpregmap): ... these.
3870 (sparc_supply_gregset, sparc_collect_gregset)
3871 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3872 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3874 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3875 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3877 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3879 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3880 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3881 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3883 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3884 (sparc32_bsd_fpregset): Rename to...
3885 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3886 (sparc32_bsd_fpregmap): ... these.
3887 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3888 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3889 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3890 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3891 (struct sparc_gregmap, struct sparc_fpregmap)
3892 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3893 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3894 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3895 (sparc32_supply_regset, sparc32_collect_gregset)
3896 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3898 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3899 (sparc64_linux_ptrace_gregmap): ... this.
3900 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3901 (_initialize_sparc64_linux_nat): Rename regmaps.
3902 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3903 (sparc64_linux_core_gregmap): ... this.
3904 (sparc64_linux_supply_core_gregset)
3905 (sparc64_linux_collect_core_gregset)
3906 (sparc64_linux_supply_core_fpregset)
3907 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3908 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3909 (sparc64_sol2_fpregset): Rename to...
3910 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3911 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3912 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3914 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3915 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3916 (sparc64_bsd_fpregset): Rename to...
3917 (struct sparc_gregmap, sparc64_sol2_gregmap)
3918 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3919 (sparc64_bsd_fpregmap): ... these.
3920 (sparc64_supply_gregset, sparc64_collect_gregset)
3921 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3923 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3924 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3925 (sparc64fbsd_gregmap): ... this.
3926 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3927 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3929 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3930 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3931 (sparc64nbsd_collect_fpregset): Likewise.
3932 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3933 (sparc64nbsd_gregmap): ... this.
3934 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3936 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3937 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3938 (sparc64obsd_gregmap): ... this.
3939 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3941 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3942 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3943 (sparc32nbsd_gregmap): ... this.
3944 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3949 * score-tdep.c (score7_linux_gregset): New static regset
3951 (score7_linux_regset_from_core_section): Remove dynamic regset
3953 (score_gdbarch_init): Drop allocation of tdep structure.
3954 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3956 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3958 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3960 (am33_regset_from_core_section): Remove dynamic regset
3963 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3965 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3966 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3968 (mips_linux_regset_from_core_section): Remove dynamic regset
3970 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3971 'gregset64', 'fpregset', and 'fpregset64'.
3972 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3973 deleted tdep fields.
3975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3977 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3979 (amd64_regset_from_core_section): Remove dynamic regset
3981 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3983 (amd64obsd_regset_from_core_section): Remove dynamic regset
3985 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3987 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3988 x86-common regset supply function.
3989 * i386-tdep.c (i386_collect_gregset): Make static.
3990 (i386_gregset): New global regset structure.
3991 (i386_fpregset, i386_xstateregset): New static regset structures.
3992 (i386_regset_from_core_section): Remove dynamic regset
3994 (i386_gdbarch_init): Remove initialization of tdep fields
3995 'gregset', 'fpregset', and 'xstateregset'.
3996 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3997 'fpregset', and 'xstateregset'.
3998 (i386_collect_gregset): Remove prototype.
3999 (i386_gregset): New declaration.
4000 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4002 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4005 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4007 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4008 (arm_linux_vfpregset): New static regset structures.
4009 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4011 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4012 and 'vfpregset' fields.
4014 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4016 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4017 (aarch64_linux_fpregset): New static regset structures.
4018 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4019 of regset structures.
4020 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4023 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4025 * regset.h (struct regset): Remove gdbarch field.
4026 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4027 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4028 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4030 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4031 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4032 (ppc32_linux_vsxregset): Likewise.
4033 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4034 via the regcache instead of the regset.
4035 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4036 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4037 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4038 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4041 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4043 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4044 Constify structures.
4045 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4046 (alphanbsd_aout_gregset): Likewise.
4047 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4048 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4050 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4051 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4053 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4054 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4055 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4056 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4057 * m88k-tdep.c (m88k_gregset): Likewise.
4058 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4059 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4060 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4061 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4062 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4063 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4064 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4065 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4066 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4068 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4069 * sh-tdep.h (sh_corefile_gregset): Likewise.
4070 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4071 * vax-tdep.c (vax_gregset): Likewise.
4073 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 Fix TLS access for -static -pthread.
4076 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4077 (try_thread_db_load_1): Initialize it.
4078 (thread_db_get_thread_local_address): Call it if LM is zero.
4079 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4080 * target.h (struct target_ops) (to_get_thread_local_address): Add
4081 load_module_addr comment.
4083 2014-05-21 Pedro Alves <palves@redhat.com>
4085 * dcache.c (dcache_read_memory_partial): If reading the cache line
4086 fails, fallback to reading just the memory the caller wanted.
4088 2014-05-20 Doug Evans <dje@google.com>
4090 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4091 instead of get_current_arch.
4093 2014-05-20 Pedro Alves <palves@redhat.com>
4095 * NEWS: Mention that compare-sections now works with all targets.
4097 * remote.c (PACKET_qCRC): New enum value.
4098 (remote_verify_memory): Don't send qCRC if the target has no
4099 execution. Use packet_support/packet_ok. If the target doesn't
4100 support the qCRC packet, fallback to a deep memory copy.
4101 (compare_sections_command): Say "target image" instead of "remote
4103 (_initialize_remote): Add PACKET_qCRC to the list of config
4104 packets that have no associated command. Extend comment.
4105 * target.c (simple_verify_memory, default_verify_memory): New
4107 * target.h (struct target_ops) <to_verify_memory>: Default to
4108 default_verify_memory.
4109 (simple_verify_memory): New declaration.
4110 * target-delegates.c: Regenerate.
4112 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4114 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4116 2014-05-20 Hui Zhu <hui@codesourcery.com>
4117 Yao Qi <yao@codesourcery.com>
4120 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4121 and change address of sp and pc.
4123 2014-05-19 Tom Tromey <tromey@redhat.com>
4125 * gdbtypes.c (rank_function): Use XNEWVEC.
4126 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4128 2014-05-19 Doug Evans <dje@google.com>
4130 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4131 build_type_unit_groups and moved closer to only caller. Remove
4132 arguments. All references updated. Remove outdated .gdb_index
4134 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4135 build_type_psymtabs_1.
4137 2014-05-19 Doug Evans <dje@google.com>
4139 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4140 n_type_unit_groups, all_type_unit_groups. All uses removed.
4141 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4142 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4143 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4144 (add_type_unit_group_to_table): Delete.
4146 2014-05-19 Doug Evans <dje@google.com>
4148 * eval.c (evaluate_subexp_standard): Add some comments.
4150 2014-05-17 Doug Evans <xdje42@gmail.com>
4152 * progspace.c (remove_program_space): Delete, unused.
4153 * progspace.h (remove_program_space): Ditto.
4155 2014-05-17 Doug Evans <xdje42@gmail.com>
4157 * inferior.c (prune_inferiors): Fix comment.
4158 (remove_inferior_command): Call prune_program_spaces.
4160 2014-05-16 Doug Evans <dje@google.com>
4162 New command line option -D.
4164 * main.c (set_gdb_data_directory): New function.
4165 (captured_main): Recognize -D. Flag error for --data-directory "".
4166 Call set_gdb_data_directory.
4167 (print_gdb_help): Print --data-directory, -D.
4168 * main.h (set_gdb_data_directory): Declare.
4169 * top.c (staged_gdb_datadir): New static global.
4170 (set_gdb_datadir): Call set_gdb_data_directory
4171 (show_gdb_datadir): New function.
4172 (init_main): Update init of data-directory parameter.
4174 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4176 Import the "dirfd" gnulib module.
4177 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4178 * gnulib/aclocal.m4: Update.
4179 * gnulib/config.in: Update.
4180 * gnulib/configure: Update.
4181 * gnulib/import/Makefile.am: Update.
4182 * gnulib/import/Makefile.in: Update.
4183 * gnulib/import/dirfd.c: New.
4184 * gnulib/import/m4/dirfd.m4: New.
4185 * gnulib/import/m4/gnulib-cache.m4: Update.
4186 * gnulib/import/m4/gnulib-comp.m4: Update.
4188 2014-05-16 Pierre Muller <muller@sourceware.org>
4189 Yao Qi <yao@codesourcery.com>
4191 * valprint.c (print_wchar): Move the code on checking whether
4192 W is a printable wide char to the default branch of switch
4193 statement below. Call wchar_printable instead of gdb_iswprint.
4195 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4197 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4198 ldr.w and ldrd instructions.
4200 2014-05-15 Doug Evans <dje@google.com>
4202 * dwarf2read.c (read_structure_type): Delete outdated comments.
4204 2014-05-14 Tom Tromey <tromey@redhat.com>
4206 * macrocmd.c (print_macro_definition): Reindent.
4208 2014-05-13 Doug Evans <xdje42@gmail.com>
4210 * python/py-cmd.c (cmdpy_completer): Add comment.
4211 (completers): Make const.
4213 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4215 * infrun.c (resume): Remove should_resume (unused). Move up
4216 declaration of resume_ptid.
4218 2014-05-13 Tom Tromey <tromey@redhat.com>
4220 * language.h (unop_type_check): Remove.
4221 (binop_type_check): Don't declare.
4223 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4225 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4226 call to regcache_raw_collect.
4228 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4230 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4231 mi_console->quote as the quoting character.
4233 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4235 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4237 2014-04-29 Tom Tromey <tromey@redhat.com>
4239 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4240 "show debug varobj".
4242 2014-05-07 Kyle McMartin <kyle@redhat.com>
4244 Pushed by Joel Brobecker <brobecker@adacore.com>.
4245 * aarch64-tdep.c (aarch64_software_single_step): New function.
4246 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4247 with aarch64_software_single_step.
4249 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4253 2014-05-05 Keith Seitz <keiths@redhat.com>
4255 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4256 variable or history value is successfully parsed.
4258 2014-05-05 Yao Qi <yao@codesourcery.com>
4259 Pedro Alves <palves@redhat.com>
4261 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4262 address of blocks that intersects the requested range. Trim
4263 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4265 * ctf.c (ctf_xfer_partial): Likewise.
4267 2014-05-05 Yao Qi <yao@codesourcery.com>
4269 * printcmd.c (display_command): Remove the check to
4270 target_has_execution.
4272 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4274 * ppcobsd-nat.c: Include "obsd-nat.h".
4275 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4277 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4279 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4281 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4282 and 16-bit signed and unsigned arguments. Update comment.
4283 (stap_parse_probe_arguments): Extend code to handle such
4284 arguments. Use warning instead of complaint to notify about
4285 unrecognized bitness.
4287 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4289 PR breakpoints/16889
4290 * stap-probe.c (stap_parse_probe_arguments): Simplify
4291 check for non-prefixed probes (i.e., probes whose
4292 arguments do not start with "N@"). Always set the
4293 argument type to a sane value.
4295 2014-05-01 David Taylor <dtaylor@emc.com>
4297 * remote.c (compare_sections_command): Add -r option to compare
4298 all loadable read-only sections.
4300 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4302 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4303 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4305 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4306 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4307 Remove unused CORE_ADDR argument. Update all callers.
4309 2014-04-29 Pedro Alves <palves@redhat.com>
4311 * remote.c (struct packet_config) <detect>: Extend comment.
4312 (add_packet_config_cmd): Don't set the config's detect or support
4314 (init_all_packet_configs): Also initialize the config's 'detect'
4316 (reset_all_packet_configs_support): New function.
4317 (remote_open_1): Call reset_all_packet_configs_support instead of
4318 init_all_packet_configs.
4319 (_initialize_remote): Initialize all packet configs. Assert that
4320 all packets have an associated command, except a few known
4323 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4325 * dwarf2read.c (read_subrange_type): Handle dynamic
4326 DW_AT_lower_bound attributes.
4328 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4330 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4331 dynamic bounds before computing its upper bound.
4332 (ada_discrete_type_low_bound): Same as above with the lower bound.
4334 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4336 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4337 range types. Adjust the array handling implementation to
4338 take advantage of this change.
4339 (resolve_dynamic_range): New function, mostly extracted from
4340 resolve_dynamic_bounds.
4341 (resolve_dynamic_array): New function, mostly extracted from
4342 resolve_dynamic_bounds.
4343 (resolve_dynamic_bounds): Delete.
4344 (resolve_dynamic_type): Reimplement. Add handling of
4345 TYPE_CODE_RANGE types.
4347 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4349 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4350 handling of parallel ___XA types.
4352 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4354 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4355 unnecessary second call to static_unwrap_type.
4357 2014-04-27 Hui Zhu <hui@codesourcery.com>
4359 * stack.c (print_frame_info): Call do_gdb_disassembly with
4360 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4362 2014-04-26 Doug Evans <xdje42@gmail.com>
4364 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4366 2014-04-25 Pedro Alves <palves@redhat.com>
4369 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4370 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4371 and newline from built string.
4372 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4373 (linux_ptrace_attach_fail_reason): ... this.
4374 * linux-nat.c (linux_nat_attach): Adjust to use
4375 linux_ptrace_attach_fail_reason.
4377 2014-04-25 Pedro Alves <palves@redhat.com>
4379 * remote.c (struct remote_state): Remove multi_process_aware,
4380 non_stop_aware, cond_tracepoints, cond_breakpoints,
4381 breakpoint_commands, fast_tracepoints, static_tracepoints,
4382 install_in_trace, disconnected_tracing,
4383 enable_disable_tracepoints, string_tracing, and
4384 augmented_libraries_svr4_read fields.
4385 (remote_multi_process_p): Move further below in the file.
4386 (struct packet_config): Add comments.
4387 (update_packet_config): Delete function.
4388 (show_packet_config_cmd): Use packet_config_support.
4389 (add_packet_config_cmd): Use NULL as set callback.
4390 (packet_ok): "set remote foo-packet"-style commands no longer
4391 change config->supported -- adjust.
4392 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4393 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4394 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4395 (PACKET_QNonStop, PACKET_multiprocess_feature)
4396 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4397 (PACKET_DisconnectedTracing_feature)
4398 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4399 (set_remote_protocol_packet_cmd): Delete function.
4400 (packet_config_support, packet_support): New functions.
4401 (set_remote_protocol_Z_packet_cmd): Don't call
4402 update_packet_config.
4403 (remote_query_attached, remote_pass_signals)
4404 (remote_program_signals, remote_threads_info)
4405 (remote_threads_extra_info, remote_start_remote): Use
4407 (remote_start_remote): Use packet_config_support and
4409 (init_all_packet_configs): Set all packets to unknown support,
4410 instead of calling update_packet_config.
4411 (remote_check_symbols): Use packet_support.
4412 (remote_supported_packet): Unconditionally set the packet config's
4414 (remote_multi_process_feature, remote_non_stop_feature)
4415 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4416 (remote_breakpoint_commands_feature)
4417 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4418 (remote_install_in_trace_feature)
4419 (remote_disconnected_tracing_feature)
4420 (remote_enable_disable_tracepoint_feature)
4421 (remote_string_tracing_feature)
4422 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4423 (remote_protocol_features): Adjust to use remote_supported_packet
4424 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4425 "ConditionalTracepoints", "ConditionalBreakpoints",
4426 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4427 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4428 "EnableDisableTracepoints", and "tracenz".
4429 (remote_query_supported): Use packet_support.
4430 (remote_open_1): Adjust.
4431 (extended_remote_attach_1): Use packet_support. Switch on the
4432 result of packet_ok instead of checking whether the packet ended
4434 (remote_vcont_resume): Use packet_support.
4435 (remote_resume, remote_stop_ns, fetch_register_using_p)
4436 (remote_prepare_to_store, store_register_using_P)
4437 (check_binary_download, remote_write_bytes): Use packet_support.
4438 (remote_vkill): Use packet_support. Switch on the result of
4439 packet_ok instead of checking whether the packet ended up
4441 (extended_remote_supports_disable_randomization): Use
4443 (extended_remote_run): Switch on the result of packet_ok instead
4444 of checking whether the packet ended up disabled.
4445 (remote_insert_breakpoint, remote_remove_breakpoint)
4446 (remote_insert_watchpoint, remote_remove_watchpoint)
4447 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4449 (remote_search_memory): Use packet_config_support.
4450 (remote_get_thread_local_address, remote_get_tib_address)
4451 (remote_hostio_send_command, remote_can_execute_reverse): Use
4453 (remote_supports_cond_tracepoints)
4454 (remote_supports_cond_breakpoints)
4455 (remote_supports_fast_tracepoints)
4456 (remote_supports_static_tracepoints)
4457 (remote_supports_install_in_trace)
4458 (remote_supports_enable_disable_tracepoint)
4459 (remote_supports_string_tracing)
4460 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4461 the packet config says the feature is enabled or disabled.
4462 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4463 (remote_get_trace_status): Use packet_support.
4464 (remote_set_disconnected_tracing): Adjust to check whether the
4465 feature is enabled with packet_support.
4466 (remote_set_trace_buffer_size, remote_use_agent)
4467 (remote_can_use_agent, remote_supports_btrace): Use
4469 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4470 Use packet_config_support.
4471 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4472 the packet config says the feature is enabled or disabled.
4473 (set_range_stepping): Use packet_support.
4475 2014-04-25 Tom Tromey <tromey@redhat.com>
4477 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4480 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4482 * NEWS: Mention support for C99 variable length arrays.
4484 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4486 * ada-lang.c (standard_exc): Expand introductory comment.
4488 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4489 Walfred Tedeschi <walfred.tedeschi@intel.com>
4491 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4493 (amd64_linux_read_description): Add code to handle AVX512 xstate
4494 mask and return respective tdesc.
4495 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4496 and features/i386/x32-avx512-linux.c.
4497 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4498 (amd64_linux_core_read_description): Add code to handle AVX512
4499 xstate mask and return respective tdesc.
4500 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4501 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4503 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4504 (tdesc_amd64_avx512_linux): New prototype.
4505 (tdesc_x32_avx512_linux): Likewise.
4506 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4507 features/i386/x32-avx512.c.
4508 (amd64_ymm_avx512_names): New register names for pseudo
4510 (amd64_ymmh_avx512_names): New register names for raw registers
4512 (amd64_k_names): New register names for K registers.
4513 (amd64_zmmh_names): New register names for ZMM raw registers.
4514 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4515 (amd64_xmm_avx512_names): New register names for XMM16-31
4517 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4519 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4520 if feature is present.
4521 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4522 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4523 (AMD64_NUM_REGS): Adjust to new number of registers.
4524 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4525 registers supplied via XSTATE by AVX512 registers.
4526 (i386_linux_read_description): Add case for AVX512.
4527 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4528 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4529 (i386_linux_core_read_description): Add case for AVX512.
4530 (i386_linux_init_abi): Install supported register note section
4532 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4534 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4535 registers to be number of zmm7h + 1.
4536 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4537 * i386-tdep.c: Include features/i386/i386-avx512.c.
4538 (i386_zmm_names): Add ZMM pseudo register names array.
4539 (i386_zmmh_names): Add ZMM raw register names array.
4540 (i386_k_names): Add K raw register names array.
4541 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4542 registers. AVX512 has 16 more ZMM registers than there are YMM
4544 (i386_zmmh_regnum_p): Add function to look up register number of
4546 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4547 (i386_k_regnum_p): Likewise for K raw registers.
4548 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4549 registers added by AVX512.
4550 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4551 registers added by AVX512.
4552 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4554 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4555 (i386_pseudo_register_name): Add ZMM pseudo registers.
4556 (i386_zmm_type): Construct and return vector registers type for ZMM
4558 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4559 ZMM0-31 pseudo registers and K registers.
4560 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4561 and YMM16-31 registers from register cache.
4562 (i386_pseudo_register_write): Add code to write K, ZMM and
4564 (i386_register_reggroup_p): Add code to include/exclude AVX512
4565 registers in/from respective register groups.
4566 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4567 registers if feature is present in xcr0.
4568 (i386_gdbarch_init): Add code to initialize AVX512 feature
4569 variables in tdep structure, wire in pseudo registers and call
4570 initialize_tdesc_i386_avx512.
4571 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4573 (i386_regnum): Add AVX512 registers.
4574 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4575 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4576 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4577 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4579 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4580 (i386_ymm_avx512_regnum_p): Likewise.
4581 (i386_k_regnum_p): Likewise.
4582 (i386_zmm_regnum_p): Likewise.
4583 (i386_zmmh_regnum_p): Likewise.
4584 * i387-tdep.c : Update year in copyright notice.
4585 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4587 (XSAVE_YMM_AVX512_ADDR): New macro.
4588 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4590 (XSAVE_XMM_AVX512_ADDR): New macro.
4591 (xsave_avx512_k_offset): New table for K register offsets in
4593 (XSAVE_AVX512_K_ADDR): New macro.
4594 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4596 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4597 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4599 (i387_collect_xsave): Add code to collect AVX512 registers from
4601 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4602 of XMM16-31 registers.
4603 (I387_NUM_K_REGS): New define for number of K registers.
4604 (I387_K0_REGNUM): New define for K0 register number.
4605 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4606 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4607 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4609 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4610 (I387_XMM16_REGNUM): New define for XMM16 register number.
4611 (I387_YMM0_REGNUM): New define for YMM0 register number.
4612 (I387_KEND_REGNUM): New define for last K register number.
4613 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4614 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4616 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4618 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4620 * features/Makefile: Add AVX512 related files.
4621 * features/i386/32bit-avx512.xml: New file.
4622 * features/i386/64bit-avx512.xml: Likewise.
4623 * features/i386/amd64-avx512-linux.c: Likewise.
4624 * features/i386/amd64-avx512-linux.xml: Likewise.
4625 * features/i386/amd64-avx512.c: Likewise.
4626 * features/i386/amd64-avx512.xml: Likewise.
4627 * features/i386/i386-avx512-linux.c: Likewise.
4628 * features/i386/i386-avx512-linux.xml: Likewise.
4629 * features/i386/i386-avx512.c: Likewise.
4630 * features/i386/i386-avx512.xml: Likewise.
4631 * features/i386/x32-avx512-linux.c: Likewise.
4632 * features/i386/x32-avx512-linux.xml: Likewise.
4633 * features/i386/x32-avx512.c: Likewise.
4634 * features/i386/x32-avx512.xml: Likewise.
4635 * regformats/i386/amd64-avx512-linux.dat: New file.
4636 * regformats/i386/amd64-avx512.dat: Likewise.
4637 * regformats/i386/i386-avx512-linux.dat: Likewise.
4638 * regformats/i386/i386-avx512.dat: Likewise.
4639 * regformats/i386/x32-avx512-linux.dat: Likewise.
4640 * regformats/i386/x32-avx512.dat: Likewise.
4641 * NEWS: Add note about new support for AVX512.
4644 2014-04-23 Pedro Alves <palves@redhat.com>
4646 * breakpoint.c (insert_bp_location): Tolerate errors if the
4647 breakpoint is set in a user-loaded objfile.
4648 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4649 location is marked shlib_disabled. If the breakpoint is set in a
4650 user-loaded objfile is a GDB-side memory breakpoint, validate it
4651 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4652 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4654 * mem-break.c (memory_validate_breakpoint): New function.
4655 * objfiles.c (userloaded_objfile_contains_address_p): New
4657 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4658 * target.h (memory_validate_breakpoint): New declaration.
4660 2014-04-23 Pedro Alves <palves@redhat.com>
4662 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4663 the breakpoint is set in a shared library, only suppress
4664 errors for software breakpoints, not hardware breakpoints.
4666 2014-04-22 Pedro Alves <palves@redhat.com>
4668 * infrun.c (schedlock_applies): New function, factored out from
4669 find_thread_needs_step_over.
4670 (find_thread_needs_step_over): Use it.
4671 (switch_back_to_stepped_thread): Always clear trap_expected if the
4672 step over is finished. Return early if scheduler locking applies.
4673 Look for the stepping thread and a potential step-over thread with
4675 (currently_stepping_or_nexting_callback): Delete.
4677 2014-04-22 Nick Clifton <nickc@redhat.com>
4679 * NEWS: Mention that ARM sim now supports tracing.
4681 2014-04-22 Yao Qi <yao@codesourcery.com>
4683 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4685 * tracefile.c (tracefile_fetch_registers): ... it. New
4687 * tracefile.h (tracefile_fetch_registers): Declare.
4688 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4689 tracefile_fetch_registers.
4691 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4694 * windows-nat.c (thread_rec): Don't display a warning when
4695 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4696 fails for any reason, set th->suspended to -1, so that we don't
4697 try to resume such a thread. Also, don't return NULL in these
4698 cases, to avoid completely ruin the session due to "PC register is
4699 not available" error.
4700 (do_windows_fetch_inferior_registers): Check errors in
4701 GetThreadContext call.
4702 (windows_continue): Accept an additional argument KILLED; if not
4703 zero, ignore errors in the SetThreadContext call, since the
4704 inferior was killed and is shutting down.
4705 (windows_resume, get_windows_debug_event)
4706 (windows_create_inferior, windows_mourn_inferior)
4707 (windows_kill_inferior): All callers of windows_continue changed
4708 to adjust to its new calling sequence.
4710 2014-04-19 Yao Qi <yao@codesourcery.com>
4712 * ctf.c (ctf_open): Call post_create_inferior.
4714 2014-04-19 Yao Qi <yao@codesourcery.com>
4716 * ctf.c (handle_id): New static variable.
4717 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4718 value. Get the declaration of event "register" and get length
4719 of field "contents".
4721 2014-04-19 Yao Qi <yao@codesourcery.com>
4723 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4725 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4727 * valops.c (oload_method_static): Remove unnecessary argument
4728 METHOD. Update all callers.
4730 2014-04-18 Pedro alves <palves@redhat.com>
4731 Tom Tromey <tromey@redhat.com>
4734 * frame.c (get_prev_frame_1): Rename to ...
4735 (get_prev_frame_always): ... this, and make extern. Adjust.
4736 (skip_artificial_frames): Use get_prev_frame_always.
4737 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4738 (get_frame_unwind_stop_reason): Adjust to rename.
4739 * frame.h (get_prev_frame_always): Declare.
4740 * inline-frame.c: Include frame.h.
4741 (inline_frame_this_id): Use get_prev_frame_always.
4743 2014-04-18 Tristan Gingold <gingold@adacore.com>
4745 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4746 code by using bfd_mach_o_get_base_address.
4748 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4750 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4751 (spu_ax_pseudo_register_collect): New function.
4752 (spu_ax_pseudo_register_push_stack): Likewise.
4753 (spu_dwarf_reg_to_regnum): Likewise.
4754 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4756 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4758 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4759 Replace FRAME argument with FRAME_ID.
4760 * gdbarch.c, gdbarch.h: Regenerate.
4761 * findvar.c (default_value_from_register): Add GDBARCH argument;
4762 replace FRAME by FRAME_ID. No longer call get_frame_id.
4763 (value_from_register): Update call to gdbarch_value_from_register.
4764 * value.h (default_value_from_register): Update prototype.
4765 * s390-linux-tdep.c (s390_value_from_register): Update interface
4766 and call to default_value_from_register.
4767 * spu-tdep.c (spu_value_from_register): Likewise.
4769 * findvar.c (address_from_register): Remove TYPE argument.
4770 Do not call value_from_register; use gdbarch_value_from_register
4771 with null_frame_id instead.
4772 * value.h (address_from_register): Update prototype.
4773 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4774 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4775 address_from_register interface change.
4777 2014-04-17 Yao Qi <yao@codesourcery.com>
4779 * gdbtypes.h: Update comments to link to types and macros'
4782 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4784 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4786 2014-04-16 Keith Seitz <keiths@redhat.com>
4789 * dwarf2read.c (skip_one_die): Check that all relative-offset
4790 sibling DIEs fall within range of the current reader's buffer.
4791 (read_partial_die): Likewise.
4793 2014-04-16 Keith Seitz <keiths@redhat.com>
4796 * cp-namespace.c (lookup_symbol_file): If the type name of
4797 `this' is NULL, return immediately.
4799 2014-04-14 Keith Seitz <keiths@redhat.com>
4802 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4803 from symbol_matches_domain in symtab.c. All local callers
4804 of symbol_matches_domain updated.
4805 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4806 search STRUCT_DOMAIN.
4807 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4808 independently. standard_lookup will do that automatically.
4809 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4810 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4811 (cp_lookup_symbol_in_namespace): Likewise.
4812 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4813 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4814 may return a STRUCT_DOMAIN match.
4815 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4816 * cp-support.c: Include language.h.
4817 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4819 * psymtab.c (match_partial_symbol): Compare the requested
4820 domain with the symbol's domain directly.
4821 (lookup_partial_symbol): Likewise.
4822 * symtab.c (lookup_symbol_in_language): Explain when/why
4823 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4824 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4825 appropriate languages.
4826 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4827 and moved to ada-lang.c
4828 (lookup_block_symbol): Explain that this function only returns
4829 symbol matching the requested DOMAIN.
4830 Compare the requested domain with the symbol's domain directly.
4831 (iterate_over_symbols): Compare the requested domain with the
4832 symbol's domain directly.
4833 * symtab.h (symbol_matches_domain): Remove.
4835 2014-04-14 Tom Tromey <tromey@redhat.com>
4838 * c-exp.y (type_aggregate_p): New function.
4839 (qualified_name, classify_inner_name): Use it.
4840 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4841 and TYPE_TARGET_TYPE of an enum type.
4842 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4844 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4845 handle TYPE_DECLARED_CLASS.
4846 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4848 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4849 * valops.c (enum_constant_from_type): New function.
4850 (value_aggregate_elt): Use it.
4851 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4854 2014-04-14 Tom Tromey <tromey@redhat.com>
4856 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4857 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4859 * value.h (value_aggregate_elt): Update.
4861 2014-04-14 Tom Tromey <tromey@redhat.com>
4863 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4865 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4867 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4868 (evaluate_subexp_standard): Pass noside argument.
4869 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4870 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4871 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4872 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4873 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4875 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4877 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4878 points to a constant blob.
4880 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4882 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4883 property and store it as the high bound and flag the range accordingly.
4884 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4885 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4886 * gdbtypes.h (enum range_flags): New enum.
4887 (struct range_bounds): Add flags member.
4889 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4891 * c-typeprint.c (c_type_print_varspec_suffix): Added
4892 check for not yet resolved high bound. If unresolved, print
4893 "variable length" string to the console instead of random
4896 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4898 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
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 * findvar.c (address_of_variable): Likewise.
4906 * jv-valprint.c (java_value_print): Likewise.
4907 * valops.c (value_ind): Likewise.
4908 * value.c (coerce_ref): Likewise.
4910 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4912 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4913 value and retrieve the dynamic type size.
4915 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4917 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4918 passed to sizeof is dynamic evaluate the argument to compute the length.
4920 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4921 Joel Brobecker <brobecker@adacore.com>
4923 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4924 (dwarf2_evaluate_property): New function.
4925 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4926 * dwarf2read.c (attr_to_dynamic_prop): New function.
4927 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4929 * gdbtypes.c: Include dwarf2loc.h.
4930 (is_dynamic_type): New function.
4931 (resolve_dynamic_type): New function.
4932 (resolve_dynamic_bounds): New function.
4933 (get_type_length): New function.
4934 (check_typedef): Use get_type_length to compute type length.
4935 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4936 (TYPE_LOW_BOUND_KIND): New macro.
4937 (is_dynamic_type): New function prototype.
4938 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4939 to resolve dynamic properties of the type. Update comment.
4940 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4942 2014-04-14 Richard Henderson <rth@redhat.com>
4944 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4946 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4947 Doug Evans <xdje42@gmail.com>
4949 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4950 dereference TYPE_CODE_REF values.
4952 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4954 Revert the following changes due to regressions:
4956 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4957 (dwarf2_evaluate_property): New function.
4958 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4959 * dwarf2read.c (attr_to_dynamic_prop): New function.
4960 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4962 * gdbtypes.c: Include dwarf2loc.h.
4963 (is_dynamic_type): New function.
4964 (resolve_dynamic_type): New function.
4965 (resolve_dynamic_bounds): New function.
4966 (get_type_length): New function.
4967 (check_typedef): Use get_type_length to compute type length.
4968 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4969 (TYPE_LOW_BOUND_KIND): New macro.
4970 (is_dynamic_type): New function prototype.
4971 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4972 to resolve dynamic properties of the type. Update comment.
4973 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4975 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4976 passed to sizeof is dynamic evaluate the argument to compute the length.
4978 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4979 value and retrieve the dynamic type size.
4981 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4982 (ada_template_to_fixed_record_type_1): Likewise.
4983 (ada_to_fixed_type_1): Likewise.
4984 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4985 (cp_print_value): Likewise.
4986 * d-valprint.c (dynamic_array_type): Likewise.
4987 * eval.c (evaluate_subexp_with_coercion): Likewise.
4988 * findvar.c (address_of_variable): Likewise.
4989 * jv-valprint.c (java_value_print): Likewise.
4990 * valops.c (value_ind): Likewise.
4991 * value.c (coerce_ref): Likewise.
4993 * c-typeprint.c (c_type_print_varspec_suffix): Added
4994 check for not yet resolved high bound. If unresolved, print
4995 "variable length" string to the console instead of random
4998 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4999 property and store it as the high bound and flag the range accordingly.
5000 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5001 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5002 * gdbtypes.h (enum range_flags): New enum.
5003 (struct range_bounds): Add flags member.
5005 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5006 points to a constant blob.
5008 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5009 (evaluate_subexp_standard): Pass noside argument.
5010 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5011 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5012 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5013 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5014 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5016 2014-04-11 Keith Seitz <keiths@redhat.com>
5019 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5020 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5025 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5026 (evaluate_subexp_standard): Pass noside argument.
5027 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5028 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5029 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5030 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5031 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5033 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5035 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5036 points to a constant blob.
5038 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5040 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5041 property and store it as the high bound and flag the range accordingly.
5042 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5043 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5044 * gdbtypes.h (enum range_flags): New enum.
5045 (struct range_bounds): Add flags member.
5047 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5049 * c-typeprint.c (c_type_print_varspec_suffix): Added
5050 check for not yet resolved high bound. If unresolved, print
5051 "variable length" string to the console instead of random
5054 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5056 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5057 (ada_template_to_fixed_record_type_1): Likewise.
5058 (ada_to_fixed_type_1): Likewise.
5059 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5060 (cp_print_value): Likewise.
5061 * d-valprint.c (dynamic_array_type): Likewise.
5062 * eval.c (evaluate_subexp_with_coercion): Likewise.
5063 * findvar.c (address_of_variable): Likewise.
5064 * jv-valprint.c (java_value_print): Likewise.
5065 * valops.c (value_ind): Likewise.
5066 * value.c (coerce_ref): Likewise.
5068 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5070 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5071 value and retrieve the dynamic type size.
5073 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5075 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5076 passed to sizeof is dynamic evaluate the argument to compute the length.
5078 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5080 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5081 (dwarf2_evaluate_property): New function.
5082 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5083 * dwarf2read.c (attr_to_dynamic_prop): New function.
5084 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5086 * gdbtypes.c: Include dwarf2loc.h.
5087 (is_dynamic_type): New function.
5088 (resolve_dynamic_type): New function.
5089 (resolve_dynamic_bounds): New function.
5090 (get_type_length): New function.
5091 (check_typedef): Use get_type_length to compute type length.
5092 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5093 (TYPE_LOW_BOUND_KIND): New macro.
5094 (is_dynamic_type): New function prototype.
5095 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5096 to resolve dynamic properties of the type. Update comment.
5097 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5099 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5101 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5102 declaring high/low bounds and change uses accordingly. Call
5103 create_range_type instead of create_static_range_type.
5104 * gdbtypes.c (create_range_type): New function.
5105 (create_range_type): Convert bounds into struct bound_prop and pass
5106 them to create_range_type.
5107 * gdbtypes.h (struct bound_prop): New struct.
5108 (create_range_type): New function prototype.
5109 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5110 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5111 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5113 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5117 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5118 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5119 * ada-lang.c: All uses of create_range_type updated.
5120 * coffread.c: All uses of create_range_type updated.
5121 * dwarf2read.c: All uses of create_range_type updated.
5122 * f-exp.y: All uses of create_range_type updated.
5123 * m2-valprint.c: All uses of create_range_type updated.
5124 * mdebugread.c: All uses of create_range_type updated.
5125 * stabsread.c: All uses of create_range_type updated.
5126 * valops.c: All uses of create_range_type updated.
5127 * valprint.c: All uses of create_range_type updated.
5129 2014-04-10 Pedro Alves <palves@redhat.com>
5131 * breakpoint.c (single_step_breakpoints)
5132 (single_step_gdbarch): Move up in the file.
5133 (one_breakpoint_xfer_memory): New function, factored out from ...
5134 (breakpoint_xfer_memory): ... here. Also process single-step
5137 2014-04-09 Tristan Gingold <gingold@adacore.com>
5139 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5141 (darwin_decode_exception_message): Free port only after use.
5143 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5145 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5146 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5147 when setting the size of call_length.
5149 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5151 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5152 dereference TYPE_CODE_REF values.
5154 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5156 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5157 end of warning message.
5159 2014-04-03 Doug Evans <dje@google.com>
5161 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5162 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5164 2014-04-02 Alan Modra <amodra@gmail.com>
5166 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5167 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5168 (struct symbol_file_add_from_memory_args): Add size field.
5169 (find_vdso_size): New function.
5170 (add_vsyscall_page): Attempt to find vdso size.
5172 2014-04-01 Doug Evans <dje@google.com>
5174 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5176 2014-04-01 Tristan Gingold <gingold@adacore.com>
5178 * darwin-nat.c (darwin_encode_reply): Add prototype.
5179 (darwin_decode_exception_message): Reply to unknown inferiors.
5180 (darwin_decode_message): Handle message by id. Ignore message
5181 to unknown inferior.
5182 (darwin_wait): Discard unknown messages, add debug trace.
5184 2014-03-31 Doug Evans <dje@google.com>
5186 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5189 2014-03-31 Doug Evans <dje@google.com>
5191 New option "set print symbol-loading".
5193 * solib.c (solib_read_symbols): Only print symbol loading messages
5195 (solib_add): If symbol loading is in "brief" mode, notify user
5196 symbols are being loaded.
5197 (reload_shared_libraries_1): Ditto.
5198 * symfile.c (print_symbol_loading_off): New static global.
5199 (print_symbol_loading_brief): New static global.
5200 (print_symbol_loading_full): New static global.
5201 (print_symbol_loading_enums): New static global.
5202 (print_symbol_loading): New static global.
5203 (print_symbol_loading_p): New function.
5204 (symbol_file_add_with_addrs): Only print symbol loading messages
5206 (_initialize_symfile): Register "print symbol-loading" set/show
5208 * symfile.h (print_symbol_loading_p): Declare.
5210 2014-03-30 Doug Evans <xdje42@gmail.com>
5212 * infrun.c (set_last_target_status): New function.
5213 (handle_inferior_event): Call it.
5215 2014-03-30 Doug Evans <xdje42@gmail.com>
5217 * inferior.h (enum stop_kind): Improve comment.
5219 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5221 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5222 a reference, strip the reference layer before calling
5223 the lang_ops value_has_mutated callback.
5225 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5227 Remove some globals from our parser.
5228 * language.c (unk_lang_parser): Add "struct parser_state"
5230 * language.h (struct language_defn) <la_parser>: Likewise.
5231 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5232 (initialize_expout): Add "struct parser_state" argument.
5233 Rewrite function to use the parser state.
5234 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5235 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5236 write_exp_elt_longcst, write_exp_elt_dblcst,
5237 write_exp_elt_decfloatcst, write_exp_elt_type,
5238 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5239 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5240 write_dollar_variable): Likewise.
5241 (parse_exp_in_context_1): Use parser state.
5242 (insert_type_address_space): Add "struct parser_state" argument.
5244 (increase_expout_size): New function.
5245 * parser-defs.h: Forward declare "struct language_defn" and
5246 "struct parser_state".
5247 (expout, expout_size, expout_ptr): Remove extern declarations.
5248 (parse_gdbarch, parse_language): Rewrite macro declarations to
5249 accept the parser state.
5250 (struct parser_state): New struct.
5251 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5252 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5253 write_exp_elt_decfloatcst, write_exp_elt_type,
5254 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5255 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5256 write_exp_msymbol, write_dollar_variable,
5257 mark_struct_expression, insert_type_address_space): Add "struct
5258 parser_state" argument.
5259 (increase_expout_size): New function.
5260 * utils.c (do_clear_parser_state): New function.
5261 (make_cleanup_clear_parser_state): Likewise.
5262 * utils.h (make_cleanup_clear_parser_state): New function
5264 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5265 Update calls to write_exp* in order to pass the parser state.
5266 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5267 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5268 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5269 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5270 * stap-probe.c (stap_parse_register_operand): Likewise.
5271 (stap_parse_single_operand): Likewise.
5272 (stap_parse_argument_1): Likewise.
5273 (stap_parse_argument): Use parser state.
5274 * stap-probe.h: Include "parser-defs.h".
5275 (struct stap_parse_info) <pstate>: New field.
5276 * c-exp.y (parse_type): Rewrite to use parser state.
5277 (yyparse): Redefine to c_parse_internal.
5278 (pstate): New global variable.
5279 (parse_number): Add "struct parser_state" argument.
5280 (write_destructor_name): Likewise.
5281 (type_exp): Update calls to write_exp* and similars in order to
5283 (exp1, exp, variable, qualified_name, space_identifier,
5284 typename, typebase): Likewise.
5285 (write_destructor_name, parse_number, lex_one_token,
5286 classify_name, classify_inner_name, c_parse): Add "struct
5287 parser_state" argument. Update function to use parser state.
5288 * c-lang.h: Forward declare "struct parser_state".
5289 (c_parse): Add "struct parser_state" argument.
5290 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5291 (yyparse): Redefine macro to ada_parse_internal.
5292 (pstate): New variable.
5293 (write_int, write_object_renaming, write_var_or_type,
5294 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5295 type_int, type_long, type_long_long, type_float, type_double,
5296 type_long_double, type_char, type_boolean, type_system_address):
5297 Add "struct parser_state" argument.
5298 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5299 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5300 var_or_type, aggregate, aggregate_component_list,
5301 positional_list, others, component_group,
5302 component_associations): Update calls to write_exp* and similar
5303 functions in order to use parser state.
5304 (ada_parse, write_var_from_sym, write_int,
5305 write_exp_op_with_string, write_object_renaming,
5306 find_primitive_type, write_selectors, write_ambiguous_var,
5307 write_var_or_type, write_name_assoc, type_int, type_long,
5308 type_long_long, type_float, type_double, type_long_double,
5309 type_char, type_boolean, type_system_address): Add "struct
5310 parser_state" argument. Adjust function to use parser state.
5311 * ada-lang.c (parse): Likewise.
5312 * ada-lang.h: Forward declare "struct parser_state".
5313 (ada_parse): Add "struct parser_state" argument.
5314 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5315 calls to both functions.
5316 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5318 (yyparse): Redefine macro to f_parse_internal.
5319 (pstate): New variable.
5320 (parse_number): Add "struct parser_state" argument.
5321 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5322 and similars in order to use parser state.
5323 (parse_number): Adjust code to use parser state.
5325 (f_parse): New function.
5326 * f-lang.h: Forward declare "struct parser_state".
5327 (f_parse): Add "struct parser_state" argument.
5328 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5330 (yyparse): Redefine macro for java_parse_internal.
5331 (pstate): New variable.
5332 (push_expression_name, push_expression_name, insert_exp): Add
5333 "struct parser_state" argument.
5334 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5335 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5336 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5337 PostIncrementExpression, PostDecrementExpression,
5338 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5339 UnaryExpressionNotPlusMinus, CastExpression,
5340 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5341 RelationalExpression, EqualityExpression, AndExpression,
5342 ExclusiveOrExpression, InclusiveOrExpression,
5343 ConditionalAndExpression, ConditionalOrExpression,
5344 ConditionalExpression, Assignment, LeftHandSide): Update
5345 calls to write_exp* and similars in order to use parser state.
5346 (parse_number): Ajust code to use parser state.
5348 (java_parse): New function.
5349 (push_variable): Add "struct parser_state" argument. Adjust
5350 code to user parser state.
5351 (push_fieldnames, push_qualified_expression_name,
5352 push_expression_name, insert_exp): Likewise.
5353 * jv-lang.h: Forward declare "struct parser_state".
5354 (java_parse): Add "struct parser_state" argument.
5355 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5357 (yyparse): Redefine macro to m2_parse_internal.
5358 (pstate): New variable.
5359 (type_exp, exp, fblock, variable, type): Update calls to
5360 write_exp* and similars to use parser state.
5362 (m2_parse): New function.
5363 * m2-lang.h: Forward declare "struct parser_state".
5364 (m2_parse): Add "struct parser_state" argument.
5365 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5366 * objc-lang.h: Forward declare "struct parser_state".
5367 (end_msglist): Add "struct parser_state" argument.
5368 * p-exp.y (parse_type): Rewrite macro to use parser state.
5369 (yyparse): Redefine macro to pascal_parse_internal.
5370 (pstate): New variable.
5371 (parse_number): Add "struct parser_state" argument.
5372 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5373 write_exp* and similars in order to use parser state.
5374 (parse_number, yylex): Adjust code to use parser state.
5375 (pascal_parse): New function.
5376 * p-lang.h: Forward declare "struct parser_state".
5377 (pascal_parse): Add "struct parser_state" argument.
5378 * go-exp.y (parse_type): Rewrite macro to use parser state.
5379 (yyparse): Redefine macro to go_parse_internal.
5380 (pstate): New variable.
5381 (parse_number): Add "struct parser_state" argument.
5382 (type_exp, exp1, exp, variable, type): Update calls to
5383 write_exp* and similars in order to use parser state.
5384 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5385 to use parser state.
5386 (go_parse): Likewise.
5387 * go-lang.h: Forward declare "struct parser_state".
5388 (go_parse): Add "struct parser_state" argument.
5390 2014-03-27 Doug Evans <dje@google.com>
5392 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5394 2014-03-27 Doug Evans <dje@google.com>
5396 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5397 Remove argument abbrev_section. All callers updated.
5399 2014-03-27 Doug Evans <dje@google.com>
5401 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5402 addr_base, ranges_base.
5404 2014-03-26 Keith Seitz <keiths@redhat.com>
5406 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5407 types, not VAR_DOMAIN.
5409 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5411 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5413 * features/nios2-linux.c: Regenerated.
5414 * features/nios2.c: Regenerated.
5416 2014-03-25 Pedro Alves <palves@redhat.com>
5418 * cli/cli-script.c (script_from_file): Force the interpreter to
5421 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5423 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5424 small stack allocation.
5426 2014-03-24 Tristan Gingold <gingold@adacore.com>
5428 * darwin-nat.c (exc_server): Remove unused prototype.
5429 (darwin_dump_message): Correctly display data on x86_64.
5430 (darwin_encode_reply): Fix style.
5431 Add comments and fix indentation.
5433 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5435 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5437 2014-03-22 Doug Evans <xdje42@gmail.com>
5439 * infcmd.c: Whitespace fixes.
5440 (interrupt_command): Merge two function comments into one.
5442 2014-03-22 Doug Evans <xdje42@gmail.com>
5444 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5447 2014-03-22 Yao Qi <yao@codesourcery.com>
5449 * remote.c (target_read_live_memory): Remove.
5450 (memory_xfer_live_readonly_partial): Rename it to
5451 remote_xfer_live_readonly_partial. Remove argument 'object'.
5452 All callers updated. Call remote_read_bytes_1
5453 instead of target_read_live_memory.
5454 * tracepoint.c (set_traceframe_number): Remove.
5455 (make_cleanup_restore_traceframe_number): Likewise .
5456 * tracepoint.h (set_traceframe_number): Remove declaration.
5457 (make_cleanup_restore_traceframe_number): Likewise.
5459 2014-03-22 Yao Qi <yao@codesourcery.com>
5461 * remote.c (remote_read_bytes): Move code on reading from the
5463 (remote_read_bytes_1): ... here. New function.
5465 2014-03-22 Yao Qi <yao@codesourcery.com>
5467 * ctf.c (ctf_xfer_partial): Check the return value of
5468 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5469 return TARGET_XFER_UNAVAILABLE.
5470 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5471 * target.c (target_read_live_memory): Move it to remote.c.
5472 (memory_xfer_live_readonly_partial): Likewise.
5473 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5474 * remote.c (target_read_live_memory): Moved from target.c.
5475 (memory_xfer_live_readonly_partial): Likewise.
5476 (remote_read_bytes): Factored out from
5477 memory_xfer_partial_1.
5479 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5481 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5484 2014-03-21 Pedro Alves <palves@redhat.com>
5486 * infrun.c (normal_stop): Extend comment.
5488 2014-03-21 Hui Zhu <hui@codesourcery.com>
5489 Pedro Alves <palves@redhat.com>
5491 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5493 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5494 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5495 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5497 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5499 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5500 `z' formatted output modifier.
5502 2014-03-20 Tom Tromey <tromey@redhat.com>
5503 Sergio Durigan Junior <sergiodj@redhat.com>
5505 * probe.c (parse_probes): Turn assert into an ordinary error.
5506 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5507 exceptions when parsing probes. Rearrange the code for clarity.
5509 2014-03-20 Tom Tromey <tromey@redhat.com>
5512 * top.c (execute_command): Only dispatch events if the command
5515 2014-03-20 Tom Tromey <tromey@redhat.com>
5518 * infcall.c: Include event-top.h.
5519 (run_inferior_call): Call async_disable_stdin if needed.
5521 2014-03-20 Pedro Alves <palves@redhat.com>
5523 * infrun.c (prepare_to_proceed): Delete.
5524 (thread_still_needs_step_over): New function.
5525 (find_thread_needs_step_over): New function.
5526 (proceed): If the current thread needs a step-over, set its
5527 steping_over_breakpoint flag. Adjust to use
5528 find_thread_needs_step_over instead of prepare_to_proceed.
5529 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5530 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5532 (switch_back_to_stepped_thread): Step over breakpoints of all
5533 threads not the stepping thread, before switching back to the
5536 2014-03-20 Pedro Alves <palves@redhat.com>
5538 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5540 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5541 * infrun.c (saved_singlestep_ptid)
5542 (stepping_past_singlestep_breakpoint): Delete.
5543 (resume): Remove stepping_past_singlestep_breakpoint handling.
5544 (proceed): Store the prev_pc of the stepping thread too.
5545 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5547 (enum infwait_states): Delete infwait_thread_hop_state.
5548 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5550 (handle_inferior_event): Adjust.
5551 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5552 handling and the thread-hop code. Before removing single-step
5553 breakpoints, check whether the thread hit a single-step breakpoint
5554 of another thread. If it did, the trap is not a random signal.
5555 (switch_back_to_stepped_thread): If the event thread hit a
5556 single-step breakpoint, unblock it before switching to the
5557 stepping thread. Handle the case of the stepped thread having
5559 (keep_going): Handle the case of the current thread moving past a
5560 single-step breakpoint.
5562 2014-03-20 Pedro Alves <palves@redhat.com>
5565 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5566 are being stepped over.
5567 (breakpoint_address_match): Make extern.
5568 * breakpoint.h (breakpoint_address_match): New declaration.
5569 * inferior.h (stepping_past_instruction_at): New declaration.
5570 * infrun.c (struct step_over_info): New type.
5571 (step_over_info): New global.
5572 (set_step_over_info, clear_step_over_info)
5573 (stepping_past_instruction_at): New functions.
5574 (handle_inferior_event): Clear the step-over info when
5575 trap_expected is cleared.
5576 (resume): Remove now stale comment.
5577 (clear_proceed_status): Clear step-over info.
5578 (proceed): Adjust step-over handling to set or clear the step-over
5579 info instead of removing all breakpoints.
5580 (handle_signal_stop): When setting up a thread-hop, don't remove
5582 (stop_stepping): Clear step-over info.
5583 (keep_going): Adjust step-over handling to set or clear step-over
5584 info and then always inserting breakpoints, instead of removing
5585 all breakpoints when stepping over one.
5587 2014-03-20 Pedro Alves <palves@redhat.com>
5589 * infrun.c (previous_inferior_ptid): Adjust comment.
5590 (deferred_step_ptid): Delete.
5591 (infrun_thread_ptid_changed, prepare_to_proceed)
5592 (init_wait_for_inferior): Adjust.
5593 (handle_signal_stop): Delete deferred_step_ptid handling.
5595 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5598 * defs.h (sync_quit_force_run): New declaration.
5599 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5600 * event-top.c (async_sigterm_handler): New declaration.
5601 (async_sigterm_token): New variable.
5602 (async_init_signals): Create also async_sigterm_token.
5603 (async_sigterm_handler): New function.
5604 (sync_quit_force_run): New variable.
5605 (handle_sigterm): Replace quit_force call by other calls.
5606 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5608 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5610 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5611 offset into SPE pseudo registers.
5613 2014-03-18 Pedro Alves <palves@redhat.com>
5616 * inferior.h (print_stop_event): Declare.
5617 * infrun.c (print_stop_event): New, factored out from ...
5618 (normal_stop): ... this.
5619 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5620 of bpstat_print/print_stack_frame.
5622 2014-03-17 Tom Tromey <tromey@redhat.com>
5624 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5626 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5628 * ada-lang.c (decode_constrained_packed_array): Perform a
5629 minimal coercion for reference with coerce_ref instead of
5632 2014-03-17 Tristan Gingold <gingold@adacore.com>
5634 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5635 (darwin_solib_create_inferior_hook): Emit a warning if version
5638 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5640 * python/py-value.c (get_field_flag): Cast flag_name argument to
5641 PyObject_GetAttrString to support Python 2.4.
5643 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5646 (Global Maintainers): Remove Jan Kratochvil.
5648 2014-03-14 Pedro Alves <palves@redhat.com>
5650 * inferior.h (terminal_ours_for_output): Rename to ...
5651 (child_terminal_ours_for_output): ... this.
5652 (terminal_save_ours): Rename to ...
5653 (child_terminal_save_ours): ... this.
5654 (terminal_ours): Rename to ...
5655 (child_terminal_ours): ... this.
5656 (terminal_inferior): Rename to ...
5657 (child_terminal_inferior): ... this.
5658 (terminal_init_inferior): Rename to ...
5659 (child_terminal_init_inferior): ... this.
5660 (terminal_init_inferior_with_pgrp): Rename to ...
5661 (child_terminal_init_inferior_with_pgrp): ... this.
5662 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5663 (child_terminal_init_with_pgrp): ... this.
5664 (terminal_save_ours): Rename to ...
5665 (child_terminal_save_ours): ... this.
5666 (terminal_init_inferior): Rename to ...
5667 (child_terminal_init): ... this. Adjust.
5668 (terminal_inferior): Rename to ...
5669 (child_terminal_inferior): ... this.
5670 (terminal_ours_for_output): Rename to ...
5671 (child_terminal_ours_for_output): ... this. Adjust.
5672 (terminal_ours): Rename to ...
5673 (child_terminal_ours): ... this.
5674 (terminal_ours_1): Rename to ...
5675 (child_terminal_ours_1): ... this. Adjust.
5676 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5677 * windows-nat.c (do_initial_windows_stuff): Adjust.
5678 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5679 (gnu_terminal_init): ... this. Adjust.
5680 (gnu_target): Adjust.
5681 * inf-child.c (inf_child_target): Adjust.
5683 2014-03-13 Doug Evans <xdje42@gmail.com>
5686 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5689 2014-03-13 Doug Evans <xdje42@gmail.com>
5691 * value.c (record_latest_value): Call release_value_or_incref
5692 instead of release_value.
5694 2014-03-13 Pedro Alves <palves@redhat.com>
5696 * procfs.c (procfs_target): Don't override to_shortname,
5697 to_longname or to_doc.
5699 2014-03-13 Pedro Alves <palves@redhat.com>
5701 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5702 Unix in user visible strings.
5704 2014-03-12 Stan Shebs <stan@codesourcery.com>
5706 * gdbtypes.h: Annotate comments for Doxygen, add a page
5707 block comment with some general info.
5709 2014-03-12 Pedro Alves <palves@redhat.com>
5711 * infcmd.c (prepare_execution_command): New function, factored out
5712 from several execution commands.
5713 (run_command_1, continue_command, step_1, jump_command)
5714 (signal_command, until_command, advance_command, finish_command)
5715 (attach_command): Use prepare_execution_command.
5717 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5719 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5722 (struct arm_linux_thread_points): Removed.
5723 (struct arm_linux_process_info): New.
5724 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5725 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5726 (arm_linux_find_breakpoints_by_tid): Removed.
5727 (struct arch_lwp_info): New.
5728 (arm_linux_find_process_pid): New functions.
5729 (arm_linux_add_process): New functions.
5730 (arm_linux_process_info_get): New functions.
5731 (arm_linux_forget_process): New function.
5732 (arm_linux_get_debug_reg_state): New function.
5733 (struct update_registers_data): New.
5734 (update_registers_callback): New function.
5735 (arm_linux_insert_hw_breakpoint1): Updated.
5736 (arm_linux_remove_hw_breakpoint1): Updated.
5737 (arm_linux_insert_hw_breakpoint): Updated.
5738 (arm_linux_remove_hw_breakpoint): Updated.
5739 (arm_linux_insert_watchpoint): Updated.
5740 (arm_linux_remove_watchpoint): Updated.
5741 (arm_linux_new_thread): Updated.
5742 (arm_linux_prepare_to_resume): New function.
5743 (arm_linux_new_fork): New function.
5744 (_initialize_arm_linux_nat): Updated.
5746 2014-03-12 Pedro Alves <palves@redhat.com>
5748 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5750 2014-03-12 Tom Tromey <tromey@redhat.com>
5752 * inf-child.c (return_zero): New function.
5753 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5754 * aix-thread.c (aix_thread_inferior_created): New function.
5755 (aix_thread_attach): Remove.
5756 (init_aix_thread_ops): Don't set to_attach.
5757 (_initialize_aix_thread): Register inferior_created observer.
5758 * corelow.c (init_core_ops): Don't set to_attach or
5760 * exec.c (init_exec_ops): Don't set to_attach or
5762 * infcmd.c (run_command_1): Use find_run_target. Make direct
5764 (attach_command): Use find_attach_target. Make direct target
5766 * record-btrace.c (init_record_btrace_ops): Don't set
5768 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5770 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5771 set to_create_inferior.
5772 * target.c (complete_target_initialization): Add assertion.
5773 (target_create_inferior): Remove.
5774 (find_default_attach, find_default_create_inferior): Remove.
5775 (find_attach_target, find_run_target): New functions.
5776 (find_default_is_async_p, find_default_can_async_p)
5777 (target_supports_non_stop, target_attach): Remove.
5778 (init_dummy_target): Don't set to_create_inferior or
5779 to_supports_non_stop.
5780 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5781 TARGET_DEFAULT_FUNC.
5782 <to_create_inferior>: Add comment.
5783 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5784 TARGET_DEFAULT_RETURN.
5785 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5786 (find_attach_target, find_run_target): Declare.
5787 (target_create_inferior): Remove.
5788 (target_has_execution_1): Update comment.
5789 (target_supports_non_stop): Remove.
5790 * target-delegates.c: Rebuild.
5792 2014-03-12 Pedro Alves <palves@redhat.com>
5794 * inf-child.h: Update comment to not mention Unix.
5796 2014-03-12 Pedro Alves <palves@redhat.com>
5798 * inf-child.c: Update top comment to not mention Unix. Add
5799 generic comment describing how this target is meant to be used.
5800 (inf_child_post_attach, inf_child_post_startup_inferior)
5801 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5804 2014-03-12 Pedro Alves <palves@redhat.com>
5806 * nto-procfs.c: Include inf-child.h.
5807 (procfs_ops): Delete global.
5808 (procfs_can_run): Delete method.
5809 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5810 target pointer instead of referencing procfs_ops.
5811 (procfs_prepare_to_store): Delete.
5812 (init_procfs_ops): Delete function.
5813 (procfs_target): New function, based on init_procfs_ops, but
5814 inherit inf_child_target.
5815 (_initialize_procfs): Use procfs_target.
5817 2014-03-12 Pedro Alves <palves@redhat.com>
5819 * windows-nat.c: Include inf-child.h.
5820 (windows_ops): Delete global.
5821 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5823 (init_windows_ops): Delete function.
5824 (windows_target): New function, based on init_windows_ops, but
5825 inherit inf_child_target.
5826 (_initialize_windows_nat): Use windows_target. Install x86
5827 specific target methods here.
5829 2014-03-10 Doug Evans <xdje42@gmail.com>
5831 * guile/guile.c (call_initialize_gdb_module): New function.
5832 (initialize_guile): Replace call to scm_init_guile with call to
5835 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5837 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5838 in call to TYPE_CODE macro.
5840 2014-03-10 Jerome Guitton <guitton@adacore.com>
5842 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5843 Resolve tagged types to full view.
5845 2014-03-10 Hui Zhu <hui@codesourcery.com>
5847 * target.h (target_insert_breakpoint): Remove "hardware" from its
5850 2014-03-07 Doug Evans <dje@google.com>
5852 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5854 2014-03-07 Doug Evans <dje@google.com>
5856 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5857 Remove unused local comp_dir_attr. Assert exactly one of
5858 stub_comp_unit_die, stub_comp_dir is non-NULL.
5860 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5862 * target.h (complete_target_initialization, add_target):
5865 2014-03-07 Pedro Alves <palves@redhat.com>
5867 * go32-nat.c: Include inf-child.h.
5868 (go32_ops): Delete global.
5869 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5871 (go32_create_inferior): Push the passed in target pointer instead
5872 of referencing go32_ops.
5873 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5874 (go32_target): New function, based on init_go32_ops, but inherit
5876 (_initialize_go32_nat): Use go32_target. Move parts of
5879 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5881 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5882 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5883 SYMBOL_VALUE_ADDRESS.
5884 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5886 2014-03-06 Yao Qi <yao@codesourcery.com>
5888 * breakpoint.c (get_tracepoint_by_number): Remove argument
5889 optional_p. All callers updated. Adjust comments. Update
5891 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5893 2014-03-06 Yao Qi <yao@codesourcery.com>
5895 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5896 early if get_number returns zero. Use 'p' instead of 'args'.
5898 2014-03-06 Yao Qi <yao@codesourcery.com>
5900 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5903 2014-03-06 Yao Qi <yao@codesourcery.com>
5905 PR breakpoints/16508
5906 * tracepoint.c (check_trace_running): New function.
5907 (trace_find_command): Move code to check_trace_running and
5908 call check_trace_running.
5909 (trace_find_pc_command): Likewise.
5910 (trace_find_tracepoint_command): Likewise.
5911 (trace_find_line_command): Likewise.
5912 (trace_find_range_command): Likewise.
5913 * tracepoint.h (check_trace_running): Likewise.
5914 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5916 2014-03-06 Yao Qi <yao@codesourcery.com>
5918 * target.h (struct target_ops) <to_traceframe_info>: Use
5919 TARGET_DEFAULT_NORETURN (tcomplain ()).
5920 * target-delegates.c: Regenerated.
5922 2014-03-05 Pedro Alves <palves@redhat.com>
5925 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5926 void. Update comment.
5927 (dcache_xfer_memory): Delete.
5928 (dcache_read_memory_partial): New, based on the read bits of
5930 (dcache_update): Add status parameter. Use ULONGEST for len, and
5931 adjust. Discard cache lines if the reason for the update was
5933 * dcache.h (dcache_xfer_memory): Delete declaration.
5934 (dcache_read_memory_partial): New declaration.
5935 (dcache_update): Update prototype.
5936 * target.c (raw_memory_xfer_partial): Update the dcache here.
5937 (memory_xfer_partial_1): Don't handle dcache writes here.
5939 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5941 * remote-sim.c (gdbsim_load): Add const to prog.
5943 2014-03-03 Tom Tromey <tromey@redhat.com>
5945 * elfread.c (probe_key): Change to bfd_data.
5946 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5947 now per-BFD, not per-objfile.
5948 * stap-probe.c (stap_probe_destroy): Update comment.
5949 (handle_stap_probe): Allocate on the per-BFD obstack.
5951 2014-03-03 Tom Tromey <tromey@redhat.com>
5953 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5954 * breakpoint.c (create_longjmp_master_breakpoint): Use
5956 (add_location_to_breakpoint, bkpt_probe_insert_location)
5957 (bkpt_probe_remove_location): Update.
5958 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5959 * elfread.c (elf_symfile_relocate_probe): Remove.
5960 (elf_probe_fns): Update.
5961 (insert_exception_resume_breakpoint): Change type of "probe"
5962 parameter to bound_probe.
5963 (check_exception_resume): Update.
5964 * objfiles.c (objfile_relocate1): Don't relocate probes.
5965 * probe.c (bound_probe_s): New typedef.
5966 (parse_probes): Use get_probe_address. Set sal's objfile.
5967 (find_probe_by_pc): Return a bound_probe.
5968 (collect_probes): Return a VEC(bound_probe_s).
5969 (compare_probes): Update.
5970 (gen_ui_out_table_header_info): Change type of "probes"
5972 (info_probes_for_ops): Update.
5973 (get_probe_address): New function.
5974 (probe_safe_evaluate_at_pc): Update.
5975 * probe.h (struct probe_ops) <get_probe_address>: New field.
5976 <set_semaphore, clear_semaphore>: Add objfile parameter.
5977 (struct probe) <objfile>: Remove field.
5979 <address>: Update comment.
5980 (struct bound_probe): New.
5981 (find_probe_by_pc): Return a bound_probe.
5982 (get_probe_address): Declare.
5983 * solib-svr4.c (struct probe_and_action) <address>: New field.
5984 (hash_probe_and_action, equal_probe_and_action): Update.
5985 (register_solib_event_probe): Add address parameter.
5986 (solib_event_probe_at): Update.
5987 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5989 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5990 (stap_get_probe_address): New function.
5991 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5992 (compile_probe_arg): Update.
5993 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5995 (handle_stap_probe): Don't relocate the probe.
5996 (stap_relocate): Remove.
5997 (stap_gen_info_probes_table_values): Update.
5998 (stap_probe_ops): Remove stap_relocate.
5999 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6000 (debug_sym_probe_fns): Update.
6001 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6002 * symtab.c (init_sal): Use memset.
6003 * symtab.h (struct symtab_and_line) <objfile>: New field.
6004 * tracepoint.c (start_tracing, stop_tracing): Update.
6006 2014-03-03 Tom Tromey <tromey@redhat.com>
6008 * probe.h (parse_probes, find_probe_by_pc)
6009 (find_probes_in_objfile): Fix comments.
6011 2014-03-02 Doug Evans <xdje42@gmail.com>
6013 * infrun.c (handle_signal_stop): Replace test for
6014 TARGET_WAITKIND_STOPPED with an assert.
6016 2014-03-02 Doug Evans <xdje42@gmail.com>
6018 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6020 2014-03-02 Doug Evans <xdje42@gmail.com>
6022 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6024 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6026 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6028 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6030 * i386obsd-nat.c: Include "obsd-nat.h".
6031 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6033 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6035 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6037 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6039 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6041 * mips64obsd-nat.c: Include "obsd-nath".
6042 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6044 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6046 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6048 * amd64obsd-nat.c: Include "obsd-nat,h.
6049 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6051 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6053 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6055 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6056 (find_overload_match): Update call to find_oload_champ.
6057 (find_oload_champ_namespace_loop): Likewise
6059 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6061 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6063 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6064 * config/sparc/obsd64.mh: New file.
6065 * sparc64obsd-nat.c: New file.
6067 * obsd-nat.h: New file.
6068 * obsd-nat.c: New file.
6069 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6070 (ALLDEPFILES): Add obsd-nat.c.
6072 2014-02-28 Tom Tromey <tromey@redhat.com>
6074 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6075 * cli-out.h (cli_ui_out_impl): Now const.
6076 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6077 * ui-out.c (struct ui_out) <impl>: Now const.
6078 (default_ui_out_impl): Now const.
6079 (ui_out_new): Make 'impl' parameter const.
6080 * ui-out.h (ui_out_new): Update.
6082 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6084 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6086 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6088 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6090 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6092 Additional PR 8882 fix.
6093 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6095 2014-02-27 Pedro Alves <palves@redhat.com>
6097 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6100 2014-02-27 Pedro Alves <palves@redhat.com>
6103 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6104 * nat/linux-waitpid.c: Include string.h.
6105 (status_to_str): Moved here and made extern.
6106 * nat/linux-waitpid.h (status_to_str): New declaration.
6108 2014-02-27 Hui Zhu <hui@codesourcery.com>
6111 * infrun.c (ptid_match): Move ...
6112 * common/ptid.c (ptid_match): ... here.
6113 * inferior.h (ptid_match): Move ...
6114 * common/ptid.h (ptid_match): ... here.
6116 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6118 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6119 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6122 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6124 * obsd-tdep.c (obsd_auxv_parse): New function.
6125 (obsd_init_abi): Set auxv_parse.
6127 * gdbarch.sh (auxv_parse): New.
6128 * gdbarch.h: Regenerated.
6129 * gdbarch.c: Regenerated.
6130 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6132 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6134 * guile/scm-value.c (gdbscm_history_append_x): New function.
6135 (value_functions): Add it.
6137 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6139 * dwarf2read.c (attr_value_as_address): New function.
6140 (dwarf2_find_base_address, read_call_site_scope): Use
6141 attr_value_as_address in place of DW_ADDR.
6142 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6143 the low and high addresses. Slight rework of the handling
6144 of the high pc being a constant form, and limit it to
6145 DWARF verson 4 or higher.
6146 (dwarf2_record_block_ranges): Likewise.
6147 (read_partial_die): Likewise.
6148 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6150 2014-02-26 Tom Tromey <tromey@redhat.com>
6152 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6154 2014-02-26 Tom Tromey <tromey@redhat.com>
6156 * elfread.c (elf_read_minimal_symbols): Return early if
6157 minimal symbols have already been read. Add "ei" parameter.
6158 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6159 * minsyms.c (prim_record_minimal_symbol_full): Update.
6160 * objfiles.h (struct objstats) <n_minsyms>: Move...
6161 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6162 * symmisc.c (print_objfile_statistics): Update.
6164 2014-02-26 Tom Tromey <tromey@redhat.com>
6166 * elfread.c (elf_read_minimal_symbols): New function, from
6168 (elf_symfile_read): Call it.
6170 2014-02-26 Tom Tromey <tromey@redhat.com>
6172 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6173 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6174 (lookup_minimal_symbol_solib_trampoline)
6175 (lookup_minimal_symbol_by_pc_section_1)
6176 (lookup_minimal_symbol_and_objfile): Update.
6177 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6178 Don't allocate a minimal symbol if minsyms have already been read.
6179 (build_minimal_symbol_hash_tables): Update.
6180 (install_minimal_symbols): Do nothing if minsyms already read.
6181 Use the per-BFD obstack.
6182 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6183 * objfiles.c (allocate_objfile): Call
6184 terminate_minimal_symbol_table later.
6185 (have_minimal_symbols): Update.
6186 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6187 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6188 Move from struct objfile.
6189 <minsyms_read>: New field.
6190 (struct objfile) <msymbols, minimal_symbol_count,
6191 msymbol_hash, msymbol_demangled_hash>: Move.
6192 (ALL_OBJFILE_MSYMBOLS): Update.
6193 * symfile.c (read_symbols): Set minsyms_read.
6194 (reread_symbols): Update.
6195 * symmisc.c (dump_objfile, dump_msymbols): Update.
6197 2014-02-26 Tom Tromey <tromey@redhat.com>
6199 * minsyms.c (msymbols_sort): Remove.
6200 * minsyms.h (msymbols_sort): Remove.
6201 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6202 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6203 * elfread.c (elf_symtab_read): Don't add section offsets.
6204 * xcoffread.c (record_minimal_symbol): Don't add section offset
6205 to minimal symbol address.
6206 * somread.c (text_offset, data_offset): Remove.
6207 (som_symtab_read): Don't add section offsets to minimal symbol
6209 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6210 Don't add section offsets to minimal symbols.
6211 * coffread.c (coff_symtab_read): Don't add section offsets
6212 to minimal symbol addresses.
6213 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6214 to minimal symbol addresses.
6215 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6216 section offset to minimal symbol addresses.
6217 * mdebugread.c (parse_partial_symbols): Don't add section
6218 offset to minimal symbol addresses.
6219 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6220 offset to minimal symbol addresses.
6222 2014-02-26 Tom Tromey <tromey@redhat.com>
6224 * ada-lang.c (ada_main_name): Update.
6225 (ada_add_standard_exceptions): Update.
6226 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6227 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6228 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6229 * auxv.c (ld_so_xfer_auxv): Update.
6230 * avr-tdep.c (avr_scan_prologue): Update.
6231 * ax-gdb.c (gen_var_ref): Update.
6232 * blockframe.c (get_pc_function_start)
6233 (find_pc_partial_function_gnu_ifunc): Update.
6234 * breakpoint.c (create_overlay_event_breakpoint)
6235 (create_longjmp_master_breakpoint)
6236 (create_std_terminate_master_breakpoint)
6237 (create_exception_master_breakpoint): Update.
6238 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6239 * c-valprint.c (c_val_print): Update.
6240 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6241 * common/agent.c (agent_look_up_symbols): Update.
6242 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6243 * dwarf2loc.c (call_site_to_target_addr): Update.
6244 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6245 * elfread.c (elf_gnu_ifunc_record_cache)
6246 (elf_gnu_ifunc_resolve_by_got): Update.
6247 * findvar.c (default_read_var_value): Update.
6248 * frame.c (inside_main_func): Update.
6249 * frv-tdep.c (frv_frame_this_id): Update.
6250 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6251 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6253 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6254 (hppa_hpux_find_dummy_bpaddr): Update.
6255 * hppa-tdep.c (hppa_symbol_address): Update.
6256 * infcmd.c (until_next_command): Update.
6257 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6259 * linespec.c (minsym_found, add_minsym): Update.
6260 * linux-nat.c (get_signo): Update.
6261 * linux-thread-db.c (inferior_has_bug): Update.
6262 * m32c-tdep.c (m32c_return_value)
6263 (m32c_m16c_address_to_pointer): Update.
6264 * m32r-tdep.c (m32r_frame_this_id): Update.
6265 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6266 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6267 * maint.c (maintenance_translate_address): Update.
6268 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6269 (frob_address): New function.
6270 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6271 frob_address. Rename parameter to "pc_in".
6272 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6274 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6276 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6277 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6278 * objc-lang.c (find_objc_msgsend): Update.
6279 * objfiles.c (objfile_relocate1): Update.
6280 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6281 * p-valprint.c (pascal_val_print): Update.
6282 * parse.c (write_exp_msymbol): Update.
6283 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6284 (ppc_elfv2_skip_entrypoint): Update.
6285 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6286 * printcmd.c (build_address_symbolic, msym_info)
6287 (address_info): Update.
6288 * proc-service.c (ps_pglobal_lookup): Update.
6289 * psymtab.c (find_pc_sect_psymtab_closer)
6290 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6291 Change msymbol parameter to bound_minimal_symbol.
6292 * ravenscar-thread.c (get_running_thread_id): Update.
6293 * remote.c (remote_check_symbols): Update.
6294 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6296 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6297 * solib-dsbt.c (lm_base): Update.
6298 * solib-frv.c (lm_base, main_got): Update.
6299 * solib-irix.c (locate_base): Update.
6300 * solib-som.c (som_solib_create_inferior_hook)
6301 (link_map_start): Update.
6302 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6303 * solib-svr4.c (elf_locate_base, enable_break): Update.
6304 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6305 (flush_ea_cache): Update.
6306 * stabsread.c (define_symbol, scan_file_globals): Update.
6307 * stack.c (find_frame_funname): Update.
6308 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6309 (debug_qf_find_pc_sect_symtab): Update.
6310 * symfile.c (simple_read_overlay_table)
6311 (simple_overlay_update): Update.
6312 * symfile.h (struct quick_symbol_functions)
6313 <find_pc_sect_symtab>: Change type of msymbol to
6314 bound_minimal_symbol.
6315 * symmisc.c (dump_msymbols): Update.
6316 * symtab.c (find_pc_sect_symtab_via_partial)
6317 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6318 (search_symbols, print_msymbol_info): Update.
6319 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6320 (MSYMBOL_VALUE_ADDRESS): Redefine.
6321 (BMSYMBOL_VALUE_ADDRESS): New macro.
6322 * tracepoint.c (scope_info): Update.
6323 * tui/tui-disasm.c (tui_find_disassembly_address)
6324 (tui_get_begin_asm_address): Update.
6325 * valops.c (find_function_in_inferior): Update.
6326 * value.c (value_static_field, value_fn_field): Update.
6328 2014-02-26 Tom Tromey <tromey@redhat.com>
6330 * ada-lang.c (ada_update_initial_language): Update.
6331 (ada_main_name, ada_has_this_exception_support): Update.
6332 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6333 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6334 * arm-tdep.c (arm_skip_stub): Update.
6335 * auxv.c (ld_so_xfer_auxv): Update.
6336 * avr-tdep.c (avr_scan_prologue): Update.
6337 * ax-gdb.c (gen_var_ref): Update.
6338 * breakpoint.c (struct breakpoint_objfile_data)
6339 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6340 type to bound_minimal_symbol.
6341 (create_overlay_event_breakpoint)
6342 (create_longjmp_master_breakpoint)
6343 (create_std_terminate_master_breakpoint)
6344 (create_exception_master_breakpoint): Update.
6345 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6346 * c-exp.y (classify_name): Update.
6347 * coffread.c (coff_symfile_read): Update.
6348 * common/agent.c (agent_look_up_symbols): Update.
6349 * d-lang.c (d_main_name): Update.
6350 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6351 * dec-thread.c (enable_dec_thread): Update.
6352 * dwarf2loc.c (call_site_to_target_addr): Update.
6353 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6354 * eval.c (evaluate_subexp_standard): Update.
6355 * findvar.c (struct minsym_lookup_data) <result>: Change type
6356 to bound_minimal_symbol.
6358 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6359 * frame.c (inside_main_func): Update.
6360 * frv-tdep.c (frv_frame_this_id): Update.
6361 * gcore.c (call_target_sbrk): Update.
6362 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6363 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6365 * go-lang.c (go_main_name): Update.
6366 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6367 (hppa_hpux_find_import_stub_for_addr): Update.
6368 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6369 Update. Change return type.
6370 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6372 * jit.c (jit_breakpoint_re_set_internal): Update.
6373 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6375 * linux-nat.c (get_signo): Update.
6376 * linux-thread-db.c (inferior_has_bug): Update
6377 * m32c-tdep.c (m32c_return_value)
6378 (m32c_m16c_address_to_pointer): Update.
6379 * m32r-tdep.c (m32r_frame_this_id): Update.
6380 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6381 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6382 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6383 lookup_minimal_symbol. Change return type.
6384 (lookup_minimal_symbol): Remove.
6385 (lookup_bound_minimal_symbol): Update.
6386 (lookup_minimal_symbol_text): Change return type.
6387 (lookup_minimal_symbol_solib_trampoline): Change return type.
6388 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6389 (lookup_minimal_symbol_solib_trampoline): Change return type.
6390 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6391 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6392 (value_nsstring, find_imps): Update.
6393 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6394 * p-lang.c (pascal_main_name): Update.
6395 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6396 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6397 * proc-service.c (ps_pglobal_lookup): Update.
6398 * ravenscar-thread.c (get_running_thread_msymbol): Change
6400 (has_ravenscar_runtime, get_running_thread_id): Update.
6401 * remote.c (remote_check_symbols): Update.
6402 * sol-thread.c (ps_pglobal_lookup): Update.
6403 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6404 * solib-dsbt.c (lm_base): Update.
6405 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6407 * solib-irix.c (locate_base): Update.
6408 * solib-som.c (som_solib_create_inferior_hook)
6409 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6411 * solib-spu.c (spu_enable_break): Update.
6412 * solib-svr4.c (elf_locate_base, enable_break): Update.
6413 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6414 (flush_ea_cache): Update.
6415 * stabsread.c (define_symbol): Update.
6416 * symfile.c (simple_read_overlay_table): Update.
6417 * symtab.c (find_pc_sect_line): Update.
6418 * tracepoint.c (scope_info): Update.
6419 * tui-disasm.c (tui_get_begin_asm_address): Update.
6420 * value.c (value_static_field): Update.
6422 2014-02-26 Tom Tromey <tromey@redhat.com>
6424 * minsyms.c (prim_record_minimal_symbol_full): Use
6425 SET_MSYMBOL_VALUE_ADDRESS.
6426 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6427 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6428 SET_MSYMBOL_VALUE_ADDRESS.
6429 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6430 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6432 2014-02-26 Tom Tromey <tromey@redhat.com>
6434 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6435 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6436 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6437 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6438 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6439 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6440 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6441 * ada-lang.c (ada_main_name): Update.
6442 (ada_lookup_simple_minsym): Update.
6443 (ada_make_symbol_completion_list): Update.
6444 (ada_add_standard_exceptions): Update.
6445 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6446 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6447 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6448 * arm-tdep.c (skip_prologue_function): Update.
6449 (arm_skip_stack_protector, arm_skip_stub): Update.
6450 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6451 (arm_wince_skip_main_prologue): Update.
6452 * auxv.c (ld_so_xfer_auxv): Update.
6453 * avr-tdep.c (avr_scan_prologue): Update.
6454 * ax-gdb.c (gen_var_ref): Update.
6455 * block.c (call_site_for_pc): Update.
6456 * blockframe.c (get_pc_function_start): Update.
6457 (find_pc_partial_function_gnu_ifunc): Update.
6458 * breakpoint.c (create_overlay_event_breakpoint): Update.
6459 (create_longjmp_master_breakpoint): Update.
6460 (create_std_terminate_master_breakpoint): Update.
6461 (create_exception_master_breakpoint): Update.
6462 (resolve_sal_pc): Update.
6463 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6464 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6466 * c-valprint.c (c_val_print): Update.
6467 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6468 * coffread.c (coff_symfile_read): Update.
6469 * common/agent.c (agent_look_up_symbols): Update.
6470 * dbxread.c (find_stab_function_addr): Update.
6471 (end_psymtab): Update.
6472 * dwarf2loc.c (call_site_to_target_addr): Update.
6473 (func_verify_no_selftailcall): Update.
6474 (tailcall_dump): Update.
6475 (call_site_find_chain_1): Update.
6476 (dwarf_expr_reg_to_entry_parameter): Update.
6477 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6478 (elf_gnu_ifunc_resolve_by_got): Update.
6479 * f-valprint.c (info_common_command): Update.
6480 * findvar.c (read_var_value): Update.
6481 * frame.c (get_prev_frame_1): Update.
6482 (inside_main_func): Update.
6483 * frv-tdep.c (frv_skip_main_prologue): Update.
6484 (frv_frame_this_id): Update.
6485 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6486 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6487 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6488 (gnuv3_skip_trampoline): Update.
6489 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6490 (hppa64_hpux_in_solib_call_trampoline): Update.
6491 (hppa_hpux_skip_trampoline_code): Update.
6492 (hppa64_hpux_search_dummy_call_sequence): Update.
6493 (hppa_hpux_find_import_stub_for_addr): Update.
6494 (hppa_hpux_find_dummy_bpaddr): Update.
6495 * hppa-tdep.c (hppa_symbol_address)
6496 (hppa_lookup_stub_minimal_symbol): Update.
6497 * i386-tdep.c (i386_skip_main_prologue): Update.
6498 (i386_pe_skip_trampoline_code): Update.
6499 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6500 * infcall.c (get_function_name): Update.
6501 * infcmd.c (until_next_command): Update.
6502 * jit.c (jit_breakpoint_re_set_internal): Update.
6503 (jit_inferior_init): Update.
6504 * linespec.c (minsym_found): Update.
6505 (add_minsym): Update.
6506 * linux-fork.c (info_checkpoints_command): Update.
6507 * linux-nat.c (get_signo): Update.
6508 * linux-thread-db.c (inferior_has_bug): Update.
6509 * m32c-tdep.c (m32c_return_value): Update.
6510 (m32c_m16c_address_to_pointer): Update.
6511 (m32c_m16c_pointer_to_address): Update.
6512 * m32r-tdep.c (m32r_frame_this_id): Update.
6513 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6514 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6515 * maint.c (maintenance_translate_address): Update.
6516 * minsyms.c (add_minsym_to_hash_table): Update.
6517 (add_minsym_to_demangled_hash_table): Update.
6518 (msymbol_objfile): Update.
6519 (lookup_minimal_symbol): Update.
6520 (iterate_over_minimal_symbols): Update.
6521 (lookup_minimal_symbol_text): Update.
6522 (lookup_minimal_symbol_by_pc_name): Update.
6523 (lookup_minimal_symbol_solib_trampoline): Update.
6524 (lookup_minimal_symbol_by_pc_section_1): Update.
6525 (lookup_minimal_symbol_and_objfile): Update.
6526 (prim_record_minimal_symbol_full): Update.
6527 (compare_minimal_symbols): Update.
6528 (compact_minimal_symbols): Update.
6529 (build_minimal_symbol_hash_tables): Update.
6530 (install_minimal_symbols): Update.
6531 (terminate_minimal_symbol_table): Update.
6532 (find_solib_trampoline_target): Update.
6533 (minimal_symbol_upper_bound): Update.
6534 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6535 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6536 (mips_skip_pic_trampoline_code): Update.
6537 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6538 * objc-lang.c (selectors_info): Update.
6539 (classes_info): Update.
6540 (find_methods): Update.
6541 (find_imps): Update.
6542 (find_objc_msgsend): Update.
6543 * objfiles.c (objfile_relocate1): Update.
6544 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6545 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6546 * p-valprint.c (pascal_val_print): Update.
6547 * parse.c (write_exp_msymbol): Update.
6548 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6549 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6550 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6551 * printcmd.c (build_address_symbolic): Update.
6553 (address_info): Update.
6554 * proc-service.c (ps_pglobal_lookup): Update.
6555 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6556 (find_pc_sect_psymtab): Update.
6557 * python/py-framefilter.c (py_print_frame): Update.
6558 * ravenscar-thread.c (get_running_thread_id): Update.
6559 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6561 * remote.c (remote_check_symbols): Update.
6562 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6563 (rs6000_skip_trampoline_code): Update.
6564 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6565 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6566 * solib-dsbt.c (lm_base): Update.
6567 * solib-frv.c (lm_base): Update.
6569 * solib-irix.c (locate_base): Update.
6570 * solib-som.c (som_solib_create_inferior_hook): Update.
6571 (som_solib_desire_dynamic_linker_symbols): Update.
6572 (link_map_start): Update.
6573 * solib-spu.c (spu_enable_break): Update.
6574 (ocl_enable_break): Update.
6575 * solib-svr4.c (elf_locate_base): Update.
6576 (enable_break): Update.
6577 * spu-tdep.c (spu_get_overlay_table): Update.
6578 (spu_catch_start): Update.
6579 (flush_ea_cache): Update.
6580 * stabsread.c (define_symbol): Update.
6581 (scan_file_globals): Update.
6582 * stack.c (find_frame_funname): Update.
6583 (frame_info): Update.
6584 * symfile.c (simple_read_overlay_table): Update.
6585 (simple_overlay_update): Update.
6586 * symmisc.c (dump_msymbols): Update.
6587 * symtab.c (fixup_section): Update.
6588 (find_pc_sect_line): Update.
6589 (skip_prologue_sal): Update.
6590 (search_symbols): Update.
6591 (print_msymbol_info): Update.
6592 (rbreak_command): Update.
6593 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6594 (completion_list_objc_symbol): Update.
6595 (default_make_symbol_completion_list_break_on): Update.
6596 * tracepoint.c (scope_info): Update.
6597 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6598 (tui_get_begin_asm_address): Update.
6599 * valops.c (find_function_in_inferior): Update.
6600 * value.c (value_static_field): Update.
6601 (value_fn_field): Update.
6603 2014-02-26 Tom Tromey <tromey@redhat.com>
6605 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6606 bound minimal symbols. Move code that knows about minsym
6608 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6610 * minsyms.h (minimal_symbol_upper_bound): Declare.
6611 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6612 minimal_symbol_upper_bound.
6614 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6616 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6617 Use the type's name if its basic type does not have a tag.
6619 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6621 * dwarf2read.c (read_subrange_type): Add comment.
6623 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6625 * dwarf2read.c (update_enumeration_type_from_children): New
6626 function, mostly extracted from process_structure_scope.
6627 (read_enumeration_type): Call update_enumeration_type_from_children.
6628 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6629 and flag_flag_enum fields.
6631 2014-02-26 Pedro Alves <palves@redhat.com>
6633 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6634 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6635 to_xfer_partial method.
6637 2014-02-26 Pedro Alves <palves@redhat.com>
6639 * target.c (complete_target_initialization): Don't install
6640 default_xfer_partial as to_xfer_partial hook.
6642 (update_current_target): Don't INHERIT nor de_fault
6643 deprecated_xfer_memory. Delete de_fault macro.
6644 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6645 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6646 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6649 2014-02-26 Pedro Alves <palves@redhat.com>
6651 * go32-nat.c (my_write_child): New function.
6652 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6653 (go32_xfer_partial): New function.
6654 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6655 Instead install a to_xfer_partial hook.
6657 2014-02-26 Pedro Alves <palves@redhat.com>
6659 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6660 to_xfer_partial helper. Rewrite.
6661 (procfs_xfer_partial): New function.
6662 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6663 Install a to_xfer_partial hook.
6665 2014-02-26 Pedro Alves <palves@redhat.com>
6667 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6668 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6669 (m32r_xfer_partial): New function.
6670 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6671 Install a to_xfer_partial hook.
6673 2014-02-26 Pedro Alves <palves@redhat.com>
6675 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6677 (mips_xfer_partial): New function.
6678 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6679 hook. Install a to_xfer_partial hook.
6681 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6683 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6684 * gdbtypes.c (create_array_type_with_stride): New function,
6685 renaming create_array_type, but with an added parameter
6686 called "bit_stride".
6687 (create_array_type): Re-implement using
6688 create_array_type_with_stride.
6689 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6690 and DW_AT_bit_stride attributes.
6692 2014-02-26 Pedro Alves <palves@redhat.com>
6694 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6695 task-specific breakpoints.
6697 2014-02-25 Pedro Alves <palves@redhat.com>
6699 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6700 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6702 2014-02-25 Stan Shebs <stan@codesourcery.com>
6704 * defs.h: Annotate comments for Doxygen.
6706 2014-02-25 Tom Tromey <tromey@redhat.com>
6708 * target.h (target_ignore): Don't declare.
6709 * target.c (target_ignore): Remove.
6711 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6714 * auto-load.c (auto_load_objfile_script_1): Change filename to
6717 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6719 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6720 documentation. Adjust prototype to match the target_ops
6721 to_xfer_partial method. Adjust implementation accordingly.
6723 2014-02-25 Hui Zhu <hui@codesourcery.com>
6725 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6728 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6730 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6731 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6732 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6733 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6734 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6735 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6736 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6737 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6739 (rl78_register_type): Use a data pointer type for SP and
6740 new pseudo registers mentioned above. Use a 16 bit integer
6741 type for all other register pairs.
6742 (rl78_register_name, rl78_g10_register_name): Update for
6743 new pseudo registers.
6744 (rl78_pseudo_register_read): Likewise.
6745 (rl78_pseudo_register_write): Likewise.
6746 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6747 to the newly added pseudo registers.
6749 2014-02-24 Doug Evans <dje@google.com>
6751 * value.c (record_latest_value): Fix comment.
6752 * printcmd.c (print_command_1): Remove code to handle -1 return from
6753 record_latest_value.
6755 2014-02-24 Pedro Alves <palves@redhat.com>
6757 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6758 deprecated_xfer_memory hook.
6759 (procfs_xfer_partial): Call procfs_xfer_memory instead
6760 of the deprecated_xfer_memory target hook.
6761 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6764 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6766 * windows-nat.c (windows_xfer_shared_libraries): Return
6767 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6768 requested object is TARGET_OBJECT_LIBRARIES.
6770 2014-02-24 Yao Qi <yao@codesourcery.com>
6772 * target.h (enum target_xfer_status)
6773 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6774 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6776 * corefile.c (memory_error_message): User updated.
6777 * exec.c (section_table_read_available_memory): Likewise.
6778 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6779 * target.c (target_xfer_status_to_string): Likewise.
6780 (raw_memory_xfer_partial): Likewise.
6781 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6782 * valops.c (read_value_memory): Likewise.
6783 * exec.h: Update comments.
6785 2014-02-24 Yao Qi <yao@codesourcery.com>
6787 * target.c (target_xfer_status_to_string): Rename argument err
6789 * target.h (target_xfer_status_to_string): Update declaration.
6790 Replace target_xfer_error_to_string with
6791 target_xfer_status_to_string in comment.
6793 2014-02-24 Yao Qi <yao@codesourcery.com>
6795 * mips-linux-nat.c (super_close): Update its type.
6796 (mips_linux_close): Pass 'self' to super_close.
6798 2014-02-24 Yao Qi <yao@codesourcery.com>
6800 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6801 * corefile.c (read_memory): Adjusted.
6802 * target.c (target_write_with_progress): Adjusted.
6804 2014-02-23 Yao Qi <yao@codesourcery.com>
6808 2013-10-25 Yao Qi <yao@codesourcery.com>
6810 * remote.c (remote_traceframe_info): Return early if
6811 traceframe is not selected.
6813 2013-07-19 Yao Qi <yao@codesourcery.com>
6815 * target.c (update_current_target): Change the default action
6816 of 'to_traceframe_info' from tcomplain to return_zero.
6817 * target.h (struct target_ops) <to_traceframe_info>: Add more
6820 2014-02-23 Yao Qi <yao@codesourcery.com>
6822 * valops.c (read_value_memory): Rewrite it. Call
6823 target_xfer_partial in a loop.
6824 * exec.h (section_table_available_memory): Remove declaration.
6825 Move comments to ...
6826 * exec.c (section_table_available_memory): ... here. Make it
6829 2014-02-23 Yao Qi <yao@codesourcery.com>
6831 * exec.c (section_table_read_available_memory): New function.
6832 * exec.h (section_table_read_available_memory): Declare.
6833 * ctf.c (ctf_xfer_partial): Call
6834 section_table_read_available_memory.
6835 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6837 2014-02-23 Yao Qi <yao@codesourcery.com>
6839 * ctf.c (ctf_xfer_partial): Move code to ...
6840 * exec.c (exec_read_partial_read_only): ... it. New function.
6841 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6842 * tracefile.c: Include "exec.h".
6843 * exec.h (exec_read_partial_read_only): Declare.
6845 2014-02-23 Yao Qi <yao@codesourcery.com>
6847 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6848 (tfile_has_memory): Remove.
6849 (init_tfile_ops): Don't set fields to_has_all_memory and
6850 to_has_memory of tfile_ops.
6851 * tracefile.c (tracefile_has_all_memory): New function.
6852 (tracefile_has_memory): New function.
6853 (init_tracefile_ops): Initialize fields to_has_all_memory and
6854 to_has_memory of 'ops'.
6856 2014-02-23 Yao Qi <yao@codesourcery.com>
6858 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6859 (ctf_thread_alive, ctf_get_trace_status): Remove.
6860 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6862 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6863 (tfile_has_stack, tfile_has_registers): Remove.
6864 (tfile_thread_alive): Remove.
6865 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6867 * tracefile.c (tracefile_has_stack): New function.
6868 (tracefile_has_registers): New function.
6869 (tracefile_thread_alive): New function.
6870 (tracefile_get_trace_status): New function.
6871 (init_tracefile_ops): New function.
6872 * tracefile.h (init_tracefile_ops): Declare.
6874 2014-02-23 Yao Qi <yao@codesourcery.com>
6876 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6877 (O_LARGEFILE): Likewise.
6878 (tfile_ops): Likewise.
6879 (TRACE_HEADER_SIZE): Likewise.
6880 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6881 (cur_data_size): Likewise.
6882 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6883 (tfile_close, tfile_files_info): Likewise.
6884 (tfile_get_trace_status): Likewise.
6885 (tfile_get_tracepoint_status): Likewise.
6886 (tfile_get_traceframe_address): Likewise.
6887 (tfile_trace_find, match_blocktype): Likewise.
6888 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6889 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6890 (tfile_get_trace_state_variable_value): Likewise.
6891 (tfile_has_all_memory, tfile_has_memory): Likewise.
6892 (tfile_has_stack, tfile_has_registers): Likewise.
6893 (tfile_thread_alive, build_traceframe_info): Likewise.
6894 (tfile_traceframe_info, init_tfile_ops): Likewise.
6895 (_initialize_tracepoint): Don't call init_tfile_ops
6896 and add_target_with_completer.
6897 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6898 exec.h, completer.h and filenames.h.
6899 (_initialize_tracefile_tfile): New function.
6901 2014-02-23 Yao Qi <yao@codesourcery.com>
6903 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6905 (HFILES_NO_SRCDIR): Add tracefile.h.
6906 * ctf.c: Include "tracefile.h".
6907 * tracefile.h: New file.
6908 * tracefile.c: New file
6909 * tracefile-tfile.c: New file.
6910 * tracepoint.c: Include "tracefile.h".
6911 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6912 (stop_reason_names): Add const.
6913 (trace_file_writer_xfree): Move it to tracefile.c.
6914 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6915 (trace_save_ctf): Likewise.
6916 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6917 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6918 (tfile_write_header, tfile_write_regblock_type): Likewise.
6919 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6920 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6921 (tfile_write_raw_data, tfile_end): Likewise.
6922 (tfile_trace_file_writer_new): Likewise.
6923 (free_uploaded_tp): Make it extern.
6924 (free_uploaded_tsv): Make it extern.
6925 (_initialize_tracepoint): Move code to register command 'tsave'
6927 * tracepoint.h (stop_reason_names): Declare.
6928 (struct trace_frame_write_ops): Move it to tracefile.h.
6929 (struct trace_file_write_ops): Likewise.
6930 (struct trace_file_writer): Likewise.
6931 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6933 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6936 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6938 (get_cores_used_by_process): New parameter num_cores, use it.
6939 (linux_xfer_osdata_processes): Pass num_cores to it.
6940 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6943 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6945 * target.c (memory_xfer_partial): Fix length arg in call to
6946 breakpoint_xfer_memory.
6948 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6951 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6952 number comes after the + or - signs. Adjust length of register
6953 name to be extracted.
6955 2014-02-20 Tom Tromey <tromey@redhat.com>
6957 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6958 (ada_varobj_ops): Mark "extern".
6960 2014-02-20 Tom Tromey <tromey@redhat.com>
6962 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6964 2014-02-20 Doug Evans <xdje42@gmail.com>
6966 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6967 All callers updated.
6968 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6969 All callers updated.
6970 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6971 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6973 2014-02-20 lin zuojian <manjian2006@gmail.com>
6974 Joel Brobecker <brobecker@adacore.com>
6975 Doug Evans <xdje42@gmail.com>
6978 * dwarf2read.c (struct die_info): New member in_process.
6979 (reset_die_in_process): New function.
6980 (process_die): Set it at the start, reset when returning.
6981 (inherit_abstract_dies): Only call process_die if origin_child_die
6982 not already being processed.
6984 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6986 * windows-nat.c (handle_unload_dll): Add function documentation.
6987 (do_initial_windows_stuff): Add comment explaining why we wait
6988 until after inferior initialization has finished before
6989 processing all DLLs.
6991 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6993 * windows-nat.c (get_module_name): Delete.
6994 (windows_get_exec_module_filename): New function, mostly
6995 inspired from get_module_name.
6996 (windows_pid_to_exec_file): Replace call to get_module_name
6997 by call to windows_get_exec_module_filename.
6999 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7001 * windows-nat.c (handle_load_dll): Rewrite this function's
7002 introductory comment. Remove code using get_module_name
7003 to get the DLL's name.
7005 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7007 * windows-nat.c (get_windows_debug_event): Ignore
7008 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7009 if windows_initialization_done == 0.
7010 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7011 Adjust implementation to always load all DLLs.
7012 (do_initial_windows_stuff): Replace call to
7013 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7015 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7017 * windows-nat.c (_initialize_windows_nat): Deprecate the
7018 "dll-symbols" command. Turn the "add-shared-symbol-files"
7019 and "assf" aliases into commands, and deprecate them as well.
7020 * NEWS: Add entry explaining that "dll-symbols" and its two
7021 aliases are now deprecated.
7023 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7025 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7026 new-line in debug string. Remove trailing spaces.
7028 2014-02-19 Stan Shebs <stan@codesourcery.com>
7030 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7032 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7034 * NEWS: Add entry for the new feature
7035 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7038 2014-02-19 Stan Shebs <stan@codesourcery.com>
7040 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7042 2014-02-19 Pedro Alves <palves@redhat.com>
7044 * common/ptid.h (struct ptid): Mention that process_stratum
7045 targets should prefer ptid.lwp.
7047 2014-02-19 Pedro Alves <palves@redhat.com>
7049 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7050 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7051 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7052 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7053 store remote thread ids rather than ptid.tid.
7054 (_initialize_remote): Adjust.
7056 2014-02-19 Tom Tromey <tromey@redhat.com>
7058 * target.c (target_get_unwinder): Rewrite.
7059 (target_get_tailcall_unwinder): Rewrite.
7060 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7061 (record_btrace_to_get_tailcall_unwinder): New function.
7062 (init_record_btrace_ops): Update.
7063 * target.h (struct target_ops) <to_get_unwinder,
7064 to_get_tailcall_unwinder>: Now function pointers. Use
7065 TARGET_DEFAULT_RETURN.
7067 2014-02-19 Tom Tromey <tromey@redhat.com>
7069 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7071 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7073 2014-02-19 Tom Tromey <tromey@redhat.com>
7075 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7077 * target-delegates.c: Rebuild.
7078 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7079 TARGET_DEFAULT_FUNC.
7080 * target.c (default_target_decr_pc_after_break): Rename from
7081 forward_target_decr_pc_after_break. Simplify.
7082 (target_decr_pc_after_break): Rely on delegation.
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * target.c (update_current_target): Do not INHERIT to_doc or
7087 to_magic. Do not de_fault to_open or to_close.
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7091 * gcore.h (objfile_find_memory_regions): Declare.
7092 * gcore.c (objfile_find_memory_regions): No longer static. Add
7094 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7095 * exec.c: Include gcore.h.
7096 (exec_set_find_memory_regions): Remove.
7097 (exec_find_memory_regions): Remove.
7098 (exec_do_find_memory_regions): Remove.
7099 (init_exec_ops): Update.
7100 * defs.h (exec_set_find_memory_regions): Remove.
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target-delegates.c: Rebuild.
7105 * target.h (struct target_ops) <to_extra_thread_info,
7106 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7107 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7108 not 0, in TARGET_DEFAULT_RETURN.
7110 2014-02-19 Tom Tromey <tromey@redhat.com>
7112 * target.c (complete_target_initialization): Remove casts. Use
7113 return_zero_has_execution.
7114 (return_zero): Add "ignore" argument.
7115 (return_zero_has_execution): New function.
7116 (init_dummy_target): Remove casts. Use
7117 return_zero_has_execution.
7119 2014-02-19 Tom Tromey <tromey@redhat.com>
7121 * target.c (update_current_target): Update comments. Do not
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7128 * corelow.c (core_read_description): Delegate when needed.
7129 * remote.c (remote_read_description): Delegate when needed.
7130 * target-delegates.c: Rebuild.
7131 * target.c (target_read_description): Rewrite.
7132 * target.h (struct target_ops) <to_read_description>: Update
7133 comment. Use TARGET_DEFAULT_RETURN.
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * target-delegates.c: Rebuild.
7138 * target.c (update_current_target): Don't inherit or default
7140 (find_default_run_target): Check against delegate_can_run.
7141 * target.h (struct target_ops) <to_can_run>: Use
7142 TARGET_DEFAULT_RETURN.
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target-delegates.c: Rebuild.
7147 * target.c (target_disconnect): Unconditionally delegate.
7148 * target.h (struct target_ops) <to_disconnect>: Use
7149 TARGET_DEFAULT_NORETURN.
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7153 * record.c (record_stop): Unconditionally delegate.
7154 * target-delegates.c: Rebuild.
7155 * target.c (target_stop_recording): Unconditionally delegate.
7156 * target.h (struct target_ops) <to_stop_recording>: Use
7157 TARGET_DEFAULT_IGNORE.
7159 2014-02-19 Tom Tromey <tromey@redhat.com>
7161 * target-delegates.c: Rebuild.
7162 * target.c (target_enable_btrace): Unconditionally delegate.
7163 * target.h (struct target_ops) <to_enable_btrace>: Use
7164 TARGET_DEFAULT_NORETURN.
7166 2014-02-19 Tom Tromey <tromey@redhat.com>
7168 * target-delegates.c: Rebuild.
7169 * target.c (target_read_btrace): Unconditionally delegate.
7170 * target.h (struct target_ops) <to_read_btrace>: Use
7171 TARGET_DEFAULT_NORETURN.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * target-delegates.c: Rebuild.
7176 * target.c (target_teardown_btrace): Unconditionally delegate.
7177 * target.h (struct target_ops) <to_teardown_btrace>: Use
7178 TARGET_DEFAULT_NORETURN.
7180 2014-02-19 Tom Tromey <tromey@redhat.com>
7182 * target-delegates.c: Rebuild.
7183 * target.c (target_disable_btrace): Unconditionally delegate.
7184 * target.h (struct target_ops) <to_disable_btrace>: Use
7185 TARGET_DEFAULT_NORETURN.
7187 2014-02-19 Tom Tromey <tromey@redhat.com>
7189 * target-delegates.c: Rebuild.
7190 * target.c (default_search_memory): New function.
7191 (simple_search_memory): Update comment.
7192 (target_search_memory): Unconditionally delegate.
7193 * target.h (struct target_ops) <to_search_memory>: Use
7194 TARGET_DEFAULT_FUNC.
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7198 * auxv.c (default_auxv_parse): No longer static.
7199 (target_auxv_parse): Unconditionally delegate.
7200 * auxv.h (default_auxv_parse): Declare.
7201 * target-delegates.c: Rebuild.
7202 * target.c: Include auxv.h.
7203 * target.h (struct target_ops) <to_auxv_parse>: Use
7204 TARGET_DEFAULT_FUNC.
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * target-delegates.c: Rebuild.
7209 * target.c (target_memory_map): Unconditionally delegate.
7210 * target.h (struct target_ops) <to_memory_map>: Use
7211 TARGET_DEFAULT_RETURN.
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target-delegates.c: Rebuild.
7216 * target.c (target_thread_alive): Unconditionally delegate.
7217 * target.h (struct target_ops) <to_thread_alive>: Use
7218 TARGET_DEFAULT_RETURN.
7220 2014-02-19 Tom Tromey <tromey@redhat.com>
7222 * target-delegates.c: Rebuild.
7223 * target.c (target_save_record): Unconditionally delegate.
7224 * target.h (struct target_ops) <to_save_record>: Use
7225 TARGET_DEFAULT_NORETURN.
7227 2014-02-19 Tom Tromey <tromey@redhat.com>
7229 * target-delegates.c: Rebuild.
7230 * target.c (target_delete_record): Unconditionally delegate.
7231 * target.h (struct target_ops) <to_delete_record>: Use
7232 TARGET_DEFAULT_NORETURN.
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target-delegates.c: Rebuild.
7237 * target.c (target_record_is_replaying): Unconditionally
7239 * target.h (struct target_ops) <to_record_is_replaying>: Use
7240 TARGET_DEFAULT_RETURN.
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * target-delegates.c: Rebuild.
7245 * target.c (target_goto_record_begin): Unconditionally delegate.
7246 * target.h (struct target_ops) <to_goto_record_begin>: Use
7247 TARGET_DEFAULT_NORETURN.
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7251 * target-delegates.c: Rebuild.
7252 * target.c (target_goto_record_end): Unconditionally delegate.
7253 * target.h (struct target_ops) <to_goto_record_end>: Use
7254 TARGET_DEFAULT_NORETURN.
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7258 * target-delegates.c: Rebuild.
7259 * target.c (target_goto_record): Unconditionally delegate.
7260 * target.h (struct target_ops) <to_goto_record>: Use
7261 TARGET_DEFAULT_NORETURN.
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target-delegates.c: Rebuild.
7266 * target.c (target_insn_history): Unconditionally delegate.
7267 * target.h (struct target_ops) <to_insn_history>: Use
7268 TARGET_DEFAULT_NORETURN.
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7272 * target-delegates.c: Rebuild.
7273 * target.c (target_insn_history_from): Unconditionally delegate.
7274 * target.h (struct target_ops) <to_insn_history_from>: Use
7275 TARGET_DEFAULT_NORETURN.
7277 2014-02-19 Tom Tromey <tromey@redhat.com>
7279 * target-delegates.c: Rebuild.
7280 * target.c (target_insn_history_range): Unconditionally delegate.
7281 * target.h (struct target_ops) <to_insn_history_range>: Use
7282 TARGET_DEFAULT_NORETURN.
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * target-delegates.c: Rebuild.
7287 * target.c (target_call_history): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_call_history>: Use
7289 TARGET_DEFAULT_NORETURN.
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7293 * target-delegates.c: Rebuild.
7294 * target.c (target_call_history_from): Unconditionally delegate.
7295 * target.h (struct target_ops) <to_call_history_from>: Use
7296 TARGET_DEFAULT_NORETURN.
7298 2014-02-19 Tom Tromey <tromey@redhat.com>
7300 * target-delegates.c: Rebuild.
7301 * target.c (target_call_history_range): Unconditionally delegate.
7302 * target.h (struct target_ops) <to_call_history_range>: Use
7303 TARGET_DEFAULT_NORETURN.
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7307 * target-delegates.c: Rebuild.
7308 * target.c (target_verify_memory): Unconditionally delegate.
7309 * target.h (struct target_ops) <to_verify_memory>: Use
7310 TARGET_DEFAULT_NORETURN.
7312 2014-02-19 Tom Tromey <tromey@redhat.com>
7314 * target-delegates.c: Rebuild.
7315 * target.c (target_core_of_thread): Unconditionally delegate.
7316 * target.h (struct target_ops) <to_core_of_thread>: Use
7317 TARGET_DEFAULT_RETURN.
7319 2014-02-19 Tom Tromey <tromey@redhat.com>
7321 * target-delegates.c: Rebuild.
7322 * target.c (target_flash_done): Unconditionally delegate.
7323 * target.h (struct target_ops) <to_flash_done>: Use
7324 TARGET_DEFAULT_NORETURN.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target-delegates.c: Rebuild.
7329 * target.c (target_flash_erase): Unconditionally delegate.
7330 * target.h (struct target_ops) <to_flash_erase>: Use
7331 TARGET_DEFAULT_NORETURN.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target-delegates.c: Rebuild.
7336 * target.c (target_get_section_table): Unconditionally delegate.
7337 * target.h (struct target_ops) <to_get_section_table>: Use
7338 TARGET_DEFAULT_RETURN.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target-delegates.c: Rebuild.
7343 * target.c (target_pid_to_str): Unconditionally delegate.
7344 (init_dummy_target): Don't initialize to_pid_to_str.
7345 (default_pid_to_str): Rename from dummy_pid_to_str.
7346 * target.h (struct target_ops) <to_pid_to_str>: Use
7347 TARGET_DEFAULT_FUNC.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * target-delegates.c: Rebuild.
7352 * target.c (target_find_new_threads): Unconditionally delegate.
7353 * target.h (struct target_ops) <to_find_new_threads>: Use
7354 TARGET_DEFAULT_RETURN.
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7358 * target-delegates.c: Rebuild.
7359 * target.c (target_program_signals): Unconditionally delegate.
7360 * target.h (struct target_ops) <to_program_signals>: Use
7361 TARGET_DEFAULT_IGNORE.
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_pass_signals): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_pass_signals>: Use
7368 TARGET_DEFAULT_IGNORE.
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7372 * target-delegates.c: Rebuild.
7373 * target.c (default_mourn_inferior): New function.
7374 (target_mourn_inferior): Unconditionally delegate.
7375 * target.h (struct target_ops) <to_mourn_inferior>: Use
7376 TARGET_DEFAULT_FUNC.
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7380 * target-delegates.c: Rebuild.
7381 * target.c (default_follow_fork): New function.
7382 (target_follow_fork): Unconditionally delegate.
7383 * target.h (struct target_ops) <to_follow_fork>: Use
7384 TARGET_DEFAULT_FUNC.
7386 2014-02-19 Tom Tromey <tromey@redhat.com>
7388 * target-delegates.c: Rebuild.
7389 * target.c (target_kill): Unconditionally delegate.
7390 * target.h (struct target_ops) <to_kill>: Use
7391 TARGET_DEFAULT_NORETURN.
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target-delegates.c: Rebuild.
7396 * target.c (target_masked_watch_num_registers): Unconditionally
7398 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7399 Use TARGET_DEFAULT_RETURN.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * target-delegates.c: Rebuild.
7404 * target.c (target_remove_mask_watchpoint): Unconditionally
7406 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7407 TARGET_DEFAULT_RETURN.
7409 2014-02-19 Tom Tromey <tromey@redhat.com>
7411 * target-delegates.c: Rebuild.
7412 * target.c (target_insert_mask_watchpoint): Unconditionally
7414 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7415 TARGET_DEFAULT_RETURN.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target-delegates.c: Rebuild.
7420 * target.c (target_ranged_break_num_registers): Unconditionally
7422 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7423 Use TARGET_DEFAULT_RETURN.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target-delegates.c: Rebuild.
7428 * target.c (target_fetch_registers): Unconditionally delegate.
7429 * target.h (struct target_ops) <to_fetch_registers>: Use
7430 TARGET_DEFAULT_NORETURN.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target-delegates.c: Rebuild.
7435 * target.c (update_current_target): Don't inherit or default
7437 * target.h (struct target_ops) <to_stop>: Use
7438 TARGET_DEFAULT_IGNORE.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target-delegates.c: Rebuild.
7443 * target.c (update_current_target): Don't inherit or default
7444 to_can_run_breakpoint_commands.
7445 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7446 Use TARGET_DEFAULT_RETURN.
7448 2014-02-19 Tom Tromey <tromey@redhat.com>
7450 * target-delegates.c: Rebuild.
7451 * target.c (update_current_target): Don't inherit or default
7452 to_supports_evaluation_of_breakpoint_conditions.
7453 * target.h (struct target_ops)
7454 <to_supports_evaluation_of_breakpoint_conditions>: Use
7455 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
7462 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7463 Use TARGET_DEFAULT_RETURN.
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
7470 * target.h (struct target_ops) <to_can_use_agent>: Use
7471 TARGET_DEFAULT_RETURN.
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
7478 * target.h (struct target_ops) <to_use_agent>: Use
7479 TARGET_DEFAULT_NORETURN.
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7483 * target-delegates.c: Rebuild.
7484 * target.c (update_current_target): Don't inherit or default
7486 (return_null): Remove.
7487 * target.h (struct target_ops) <to_traceframe_info>: Use
7488 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
7495 * target.h (struct target_ops)
7496 <to_static_tracepoint_markers_by_strid>: Use
7497 TARGET_DEFAULT_NORETURN.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target-delegates.c: Rebuild.
7502 * target.c (update_current_target): Don't inherit or default
7503 to_static_tracepoint_marker_at.
7504 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7505 Use TARGET_DEFAULT_RETURN.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target-delegates.c: Rebuild.
7510 * target.c (update_current_target): Don't inherit or default
7512 * target.h (struct target_ops) <to_set_permissions>: Use
7513 TARGET_DEFAULT_IGNORE.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * target-delegates.c: Rebuild.
7518 * target.c (update_current_target): Don't inherit or default
7520 * target.h (struct target_ops) <to_get_tib_address>: Use
7521 TARGET_DEFAULT_NORETURN.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target-delegates.c: Rebuild.
7526 * target.c (update_current_target): Don't inherit or default
7528 * target.h (struct target_ops) <to_set_trace_notes>: Use
7529 TARGET_DEFAULT_RETURN.
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target-delegates.c: Rebuild.
7534 * target.c (update_current_target): Don't initialize
7535 to_set_trace_buffer_size.
7536 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7537 TARGET_DEFAULT_IGNORE.
7539 2014-02-19 Tom Tromey <tromey@redhat.com>
7541 * target-delegates.c: Rebuild.
7542 * target.c (update_current_target): Don't inherit or default
7543 to_set_circular_trace_buffer.
7544 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7545 TARGET_DEFAULT_IGNORE.
7547 2014-02-19 Tom Tromey <tromey@redhat.com>
7549 * target-delegates.c: Rebuild.
7550 * target.c (update_current_target): Don't inherit or default
7551 to_set_disconnected_tracing.
7552 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7553 TARGET_DEFAULT_IGNORE.
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7557 * target-delegates.c: Rebuild.
7558 * target.c (update_current_target): Don't inherit or default
7559 to_get_min_fast_tracepoint_insn_len.
7560 (return_minus_one): Remove.
7561 * target.h (struct target_ops)
7562 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target-delegates.c: Rebuild.
7567 * target.c (update_current_target): Don't inherit or default
7568 to_get_raw_trace_data.
7569 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7570 TARGET_DEFAULT_NORETURN.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * target-delegates.c: Rebuild.
7575 * target.c (update_current_target): Don't inherit or default
7576 to_upload_trace_state_variables.
7577 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7578 Use TARGET_DEFAULT_RETURN.
7580 2014-02-19 Tom Tromey <tromey@redhat.com>
7582 * target-delegates.c: Rebuild.
7583 * target.c (update_current_target): Don't inherit or default
7584 to_upload_tracepoints.
7585 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7586 TARGET_DEFAULT_RETURN.
7588 2014-02-19 Tom Tromey <tromey@redhat.com>
7590 * target-delegates.c: Rebuild.
7591 * target.c (update_current_target): Don't inherit or default
7593 * target.h (struct target_ops) <to_save_trace_data>: Use
7594 TARGET_DEFAULT_NORETURN.
7596 2014-02-19 Tom Tromey <tromey@redhat.com>
7598 * target-delegates.c: Rebuild.
7599 * target.c (update_current_target): Don't inherit or default
7600 to_get_trace_state_variable_value.
7601 * target.h (struct target_ops)
7602 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7604 2014-02-19 Tom Tromey <tromey@redhat.com>
7606 * target-delegates.c: Rebuild.
7607 * target.c (update_current_target): Don't inherit or default
7609 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7611 2014-02-19 Tom Tromey <tromey@redhat.com>
7613 * target-delegates.c: Rebuild.
7614 * target.c (update_current_target): Don't inherit or default
7616 * target.h (struct target_ops) <to_trace_stop>: Use
7617 TARGET_DEFAULT_NORETURN.
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * target-delegates.c: Rebuild.
7622 * target.c (update_current_target): Don't inherit or default
7623 to_get_tracepoint_status.
7624 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7625 TARGET_DEFAULT_NORETURN.
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target-delegates.c: Rebuild.
7630 * target.c (update_current_target): Don't inherit or default
7631 to_get_trace_status.
7632 * target.h (struct target_ops) <to_get_trace_status>: Use
7633 TARGET_DEFAULT_RETURN.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * target-delegates.c: Rebuild.
7638 * target.c (update_current_target): Don't inherit or default
7640 * target.h (struct target_ops) <to_trace_start>: Use
7641 TARGET_DEFAULT_NORETURN.
7643 2014-02-19 Tom Tromey <tromey@redhat.com>
7645 * target-delegates.c: Rebuild.
7646 * target.c (update_current_target): Don't inherit or default
7647 to_trace_set_readonly_regions.
7648 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7649 Use TARGET_DEFAULT_NORETURN.
7651 2014-02-19 Tom Tromey <tromey@redhat.com>
7653 * target-delegates.c: Rebuild.
7654 * target.c (update_current_target): Don't inherit or default
7655 to_disable_tracepoint.
7656 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7657 TARGET_DEFAULT_NORETURN.
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7661 * target-delegates.c: Rebuild.
7662 * target.c (update_current_target): Don't inherit or default
7663 to_enable_tracepoint.
7664 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7665 TARGET_DEFAULT_NORETURN.
7667 2014-02-19 Tom Tromey <tromey@redhat.com>
7669 * target-delegates.c: Rebuild.
7670 * target.c (update_current_target): Don't inherit or default
7671 to_download_trace_state_variable.
7672 * target.h (struct target_ops) <to_download_trace_state_variable>:
7673 Use TARGET_DEFAULT_NORETURN.
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
7679 to_can_download_tracepoint.
7680 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7681 TARGET_DEFAULT_RETURN.
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7685 * target-delegates.c: Rebuild.
7686 * target.c (update_current_target): Don't inherit or default
7687 to_download_tracepoint.
7688 * target.h (struct target_ops) <to_download_tracepoint>: Use
7689 TARGET_DEFAULT_NORETURN.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target-delegates.c: Rebuild.
7694 * target.c (update_current_target): Don't inherit or default
7696 * target.h (struct target_ops) <to_trace_init>: Use
7697 TARGET_DEFAULT_RETURN.
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * target-delegates.c: Rebuild.
7702 * target.c (update_current_target): Don't inherit or default
7703 to_supports_string_tracing.
7704 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7705 TARGET_DEFAULT_RETURN.
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7709 * target-delegates.c: Rebuild.
7710 * target.c (update_current_target): Don't inherit or default
7711 to_supports_enable_disable_tracepoint.
7712 * target.h (struct target_ops)
7713 <to_supports_enable_disable_tracepoint>: Use
7714 TARGET_DEFAULT_RETURN.
7716 2014-02-19 Tom Tromey <tromey@redhat.com>
7718 * target-delegates.c: Rebuild.
7719 * target.c (update_current_target): Don't inherit or default
7720 to_supports_multi_process.
7721 * target.h (struct target_ops) <to_supports_multi_process>: Use
7722 TARGET_DEFAULT_RETURN.
7724 2014-02-19 Tom Tromey <tromey@redhat.com>
7726 * target-delegates.c: Rebuild.
7727 * target.c (update_current_target): Don't inherit or default
7728 to_get_ada_task_ptid.
7729 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7730 TARGET_DEFAULT_FUNC.
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7736 to_thread_architecture.
7737 * target.h (struct target_ops) <to_thread_architecture>: Use
7738 TARGET_DEFAULT_FUNC.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target-delegates.c: Rebuild.
7743 * target.c (update_current_target): Don't inherit or default
7744 to_execution_direction.
7745 * target.h (struct target_ops) <to_execution_direction>: Use
7746 TARGET_DEFAULT_FUNC.
7748 2014-02-19 Tom Tromey <tromey@redhat.com>
7750 * target-delegates.c: Rebuild.
7751 * target.c (update_current_target): Don't inherit or default
7752 to_can_execute_reverse.
7753 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7754 TARGET_DEFAULT_RETURN.
7755 (target_can_execute_reverse): Unconditionally delegate.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * target-delegates.c: Rebuild.
7760 * target.c (update_current_target): Don't inherit or default
7762 (dummy_goto_bookmark): Remove.
7763 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7764 * target.h (struct target_ops) <to_goto_bookmark>: Use
7765 TARGET_DEFAULT_NORETURN.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target-delegates.c: Rebuild.
7770 * target.c (update_current_target): Don't inherit or default
7772 (dummy_get_bookmark): Remove.
7773 (init_dummy_target): Don't inherit or default to_get_bookmark.
7774 * target.h (struct target_ops) <to_get_bookmark>: Use
7775 TARGET_DEFAULT_NORETURN
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7779 * target-delegates.c: Rebuild.
7780 * target.c (update_current_target): Don't inherit or default
7781 to_make_corefile_notes.
7782 (init_dummy_target): Don't initialize to_make_corefile_notes.
7783 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7784 TARGET_DEFAULT_FUNC.
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * target-delegates.c: Rebuild.
7789 * target.c (update_current_target): Don't inherit or default
7790 to_find_memory_regions.
7791 (init_dummy_target): Don't initialize to_find_memory_regions.
7792 * target.h (struct target_ops) <to_find_memory_regions>: Use
7793 TARGET_DEFAULT_FUNC.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target-delegates.c: Rebuild.
7798 * target.c (update_current_target): Don't inherit or default
7800 * target.h (struct target_ops) <to_log_command>: Use
7801 TARGET_DEFAULT_IGNORE.
7802 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
7809 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
7817 (target_thread_name): Unconditionally delegate.
7818 * target.h (struct target_ops) <to_thread_name>: Use
7819 TARGET_DEFAULT_RETURN.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target-delegates.c: Rebuild.
7824 * target.c (update_current_target): Don't inherit or default
7825 to_extra_thread_info.
7826 * target.h (struct target_ops) <to_extra_thread_info>: Use
7827 TARGET_DEFAULT_RETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target-delegates.c: Rebuild.
7832 * target.c (update_current_target): Don't inherit or default
7834 * target.h (struct target_ops) <to_has_exited>: Use
7835 TARGET_DEFAULT_RETURN..
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (update_current_target): Don't inherit or default
7841 to_set_syscall_catchpoint.
7842 (return_one): Remove.
7843 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7844 TARGET_DEFAULT_RETURN.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (update_current_target): Don't inherit or default
7850 to_insert_exec_catchpoint.
7851 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7852 TARGET_DEFAULT_RETURN.
7854 2014-01-08 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (update_current_target): Don't inherit or default
7858 to_insert_exec_catchpoint.
7859 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7860 TARGET_DEFAULT_RETURN.
7862 2014-02-19 Tom Tromey <tromey@redhat.com>
7864 * target-delegates.c: Rebuild.
7865 * target.c (update_current_target): Don't inherit or default
7866 to_remove_vfork_catchpoint.
7867 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7868 TARGET_DEFAULT_RETURN.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7874 to_insert_vfork_catchpoint.
7875 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7876 TARGET_DEFAULT_RETURN.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7882 to_remove_fork_catchpoint.
7883 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7884 TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7890 to_insert_fork_catchpoint.
7891 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7892 TARGET_DEFAULT_RETURN.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (update_current_target): Don't inherit or default
7898 to_post_startup_inferior.
7899 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7900 TARGET_DEFAULT_IGNORE.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7907 * target.h (struct target_ops) <to_load>: Use
7908 TARGET_DEFAULT_NORETURN.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target-delegates.c: Rebuild.
7913 * target.c (update_current_target): Don't inherit or default
7915 * target.h (struct target_ops) <to_terminal_info>: Use
7916 TARGET_DEFAULT_FUNC.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.c (update_current_target): Don't inherit or default
7922 to_terminal_save_ours.
7923 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7924 TARGET_DEFAULT_IGNORE.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target-delegates.c: Rebuild.
7929 * target.c (update_current_target): Don't inherit or default
7931 * target.h (struct target_ops) <to_terminal_ours>: Use
7932 TARGET_DEFAULT_IGNORE.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (update_current_target): Don't inherit or default
7938 to_terminal_ours_for_output.
7939 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7940 TARGET_DEFAULT_IGNORE.
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7944 * target-delegates.c: Rebuild.
7945 * target.c (update_current_target): Don't inherit or default
7946 to_terminal_inferior.
7947 * target.h (struct target_ops) <to_terminal_inferior>: Use
7948 TARGET_DEFAULT_IGNORE.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target-delegates.c: Rebuild.
7953 * target.c (update_current_target): Don't inherit or default
7955 * target.h (struct target_ops) <to_terminal_init>: Use
7956 TARGET_DEFAULT_IGNORE.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target-delegates.c: Rebuild.
7961 * target.c (update_current_target): Don't inherit or default
7962 to_can_accel_watchpoint_condition.
7963 * target.h (struct target_ops)
7964 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7968 * target-delegates.c: Rebuild.
7969 * target.c (update_current_target): Don't inherit or default
7970 to_region_ok_for_hw_watchpoint.
7971 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7972 Use TARGET_DEFAULT_FUNC.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target-delegates.c: Rebuild.
7977 * target.c (update_current_target): Don't inherit or default
7978 to_watchpoint_addr_within_range.
7979 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7980 Use TARGET_DEFAULT_FUNC.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (update_current_target): Don't inherit or default
7986 to_remove_watchpoint.
7987 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7988 TARGET_DEFAULT_NORETURN.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target-delegates.c: Rebuild.
7993 * target.c (update_current_target): Don't inherit or default
7994 to_insert_watchpoint.
7995 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7996 TARGET_DEFAULT_RETURN.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_remove_hw_breakpoint.
8003 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8004 TARGET_DEFAULT_RETURN.
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_insert_hw_breakpoint.
8011 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8012 TARGET_DEFAULT_RETURN.
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_can_use_hw_breakpoint.
8019 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8020 TARGET_DEFAULT_RETURN.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * target-delegates.c: Rebuild.
8025 * target.c (update_current_target): Don't inherit or default
8027 * target.h (struct target_ops) <to_files_info>: Use
8028 TARGET_DEFAULT_IGNORE.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target-delegates.c: Rebuild.
8033 * target.c (update_current_target): Don't inherit or default
8035 * target.h (struct target_ops) <to_store>: Use
8036 TARGET_DEFAULT_NORETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (update_current_target): Don't inherit or default
8043 * target.h (struct target_ops) <to_post_attach>: Use
8044 TARGET_DEFAULT_IGNORE.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8051 (default_rcmd): New function.
8052 (do_monitor_command): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_rmcd>: Use
8054 TARGET_DEFAULT_FUNC.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (init_dummy_target): Don't initialize to_attach.
8060 (target_attach): Unconditionally delegate.
8061 * target.h (struct target_ops) <to_attach>: Use
8062 TARGET_DEFAULT_FUNC.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (target_detach): Unconditionally delegate.
8068 (init_dummy_target): Don't initialize to_detach.
8069 * target.h (struct target_ops) <to_detach>: Use
8070 TARGET_DEFAULT_IGNORE.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8076 (target_augmented_libraries_svr4_read): Add argument.
8077 * target.c (update_current_target): Update.
8078 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target.h (struct target_ops) <to_call_history_range>: Add
8085 * target.c (target_call_history_range): Add argument.
8086 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8088 (record_btrace_call_history_from): Update.
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target.h (struct target_ops) <to_call_history_from>: Add
8094 * target.c (target_call_history_from): Add argument.
8095 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8098 2014-02-19 Tom Tromey <tromey@redhat.com>
8100 * target.h (struct target_ops) <to_call_history>: Add argument.
8101 * target.c (target_call_history): Add argument.
8102 * record-btrace.c (record_btrace_call_history): Add 'self'
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target.h (struct target_ops) <to_insn_history_range>: Add
8109 * target.c (target_insn_history_range): Add argument.
8110 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8112 (record_btrace_insn_history_from): Update.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target.h (struct target_ops) <to_insn_history_from>: Add
8118 * target.c (target_insn_history_from): Add argument.
8119 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target.h (struct target_ops) <to_insn_history>: Add argument.
8125 * target.c (target_insn_history): Add argument.
8126 * record-btrace.c (record_btrace_insn_history): Add 'self'
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target.h (struct target_ops) <to_goto_record>: Add argument.
8132 * target.c (target_goto_record): Add argument.
8133 * record-full.c (record_full_goto): Add 'self' argument.
8134 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8138 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8139 * target.c (target_goto_record_end): Add argument.
8140 * record-full.c (record_full_goto_end): Add 'self' argument.
8141 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target.h (struct target_ops) <to_goto_record_begin>: Add
8147 * target.c (target_goto_record_begin): Add argument.
8148 * record-full.c (record_full_goto_begin): Add 'self' argument.
8149 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target.h (struct target_ops) <to_record_is_replaying>: Add
8156 * target.c (target_record_is_replaying): Add argument.
8157 * record-full.c (record_full_is_replaying): Add 'self' argument.
8158 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8160 (record_btrace_xfer_partial, record_btrace_store_registers)
8161 (record_btrace_prepare_to_store, record_btrace_resume)
8162 (record_btrace_wait, record_btrace_decr_pc_after_break)
8163 (record_btrace_find_new_threads, record_btrace_thread_alive):
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target.h (struct target_ops) <to_delete_record>: Add argument.
8169 * target.c (target_delete_record): Add argument.
8170 * record-full.c (record_full_delete): Add 'self' argument.
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8174 * target.h (struct target_ops) <to_save_record>: Add argument.
8175 * target.c (target_save_record): Add argument.
8176 * record-full.c (record_full_save): Add 'self' argument.
8177 (record_full_save): Add 'self' argument.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target.h (struct target_ops) <to_info_record>: Add argument.
8182 * target.c (target_info_record): Add argument.
8183 * record.c (info_record_command): Add argument.
8184 * record-full.c (record_full_info): Add 'self' argument.
8185 * record-btrace.c (record_btrace_info): Add 'self' argument.
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8190 * target.c (target_stop_recording): Add argument.
8191 * record.c (record_stop): Add argument.
8192 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8198 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8199 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8201 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8202 (_initialize_amd64_linux_nat): Use it.
8203 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8204 (_initialize_i386_linux_nat): Use it.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8209 * target.c (target_teardown_btrace): Add argument.
8210 * remote.c (remote_teardown_btrace): Add 'self' argument.
8211 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8213 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8219 * target.c (target_disable_btrace): Add argument.
8220 * remote.c (remote_disable_btrace): Add 'self' argument.
8221 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8223 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8229 * target.c (target_enable_btrace): Add argument.
8230 * remote.c (remote_enable_btrace): Add 'self' argument.
8231 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8233 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8239 (target_can_use_agent): Add argument.
8240 * target.c (update_current_target): Update.
8241 * remote.c (remote_can_use_agent): Add 'self' argument.
8242 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target.h (struct target_ops) <to_use_agent>: Add argument.
8247 (target_use_agent): Add argument.
8248 * target.c (update_current_target): Update.
8249 * remote.c (remote_use_agent): Add 'self' argument.
8250 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8255 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8256 (target_traceframe_info): Add argument.
8257 * target.c (update_current_target): Update.
8258 * remote.c (remote_traceframe_info): Add 'self' argument.
8259 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8261 2014-02-19 Tom Tromey <tromey@redhat.com>
8263 * target.h (target_static_tracepoint_markers_by_strid): Add
8265 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8267 * target.c (update_current_target): Update.
8268 * remote.c (struct target_ops)
8269 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8270 * linux-nat.c (struct target_ops)
8271 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8277 (target_static_tracepoint_marker_at): Add argument.
8278 * target.c (update_current_target): Update.
8279 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8285 (target_set_permissions): Add argument.
8286 * target.c (update_current_target): Update.
8287 * remote.c (remote_set_permissions): Add 'self' argument.
8288 (remote_start_remote): Update.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8293 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8294 (target_get_tib_address): Add argument.
8295 * target.c (update_current_target): Update.
8296 * remote.c (remote_get_tib_address): Add 'self' argument.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8301 (target_set_trace_notes): Add argument.
8302 * target.c (update_current_target): Update.
8303 * remote.c (remote_set_trace_notes): Add 'self' argument.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8309 (target_set_trace_buffer_size): Add argument.
8310 * target.c (update_current_target): Update.
8311 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8317 (target_set_circular_trace_buffer): Add argument.
8318 * target.c (update_current_target): Update.
8319 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8326 (target_set_disconnected_tracing): Add argument.
8327 * target.c (update_current_target): Update.
8328 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target.h (struct target_ops)
8333 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8334 (target_get_min_fast_tracepoint_insn_len): Add argument.
8335 * target.c (update_current_target): Update.
8336 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8343 (target_get_raw_trace_data): Add argument.
8344 * target.c (update_current_target): Update.
8345 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8351 (target_upload_trace_state_variables): Add argument.
8352 * target.c (update_current_target): Update.
8353 * remote.c (remote_upload_trace_state_variables): Add 'self'
8355 (remote_start_remote): Update.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8361 (target_upload_tracepoints): Add argument.
8362 * target.c (update_current_target): Update.
8363 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8364 (remote_start_remote): Update.
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8368 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8369 (target_save_trace_data): Add argument.
8370 * target.c (update_current_target): Update.
8371 * remote.c (remote_save_trace_data): Add 'self' argument.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8377 * target.h (struct target_ops)
8378 <to_get_trace_state_variable_value>: Add argument.
8379 (target_get_trace_state_variable_value): Add argument.
8380 * target.c (update_current_target): Update.
8381 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8383 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8387 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8388 * target.h (struct target_ops) <to_trace_find>: Add argument.
8389 (target_trace_find): Add argument.
8390 * target.c (update_current_target): Update.
8391 * remote.c (remote_trace_find): Add 'self' argument.
8392 * ctf.c (ctf_trace_find): Add 'self' argument.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8397 (target_trace_stop): Add argument.
8398 * target.c (update_current_target): Update.
8399 * remote.c (remote_trace_stop): Add 'self' argument.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8404 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8406 (target_get_tracepoint_status): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8413 * target.h (struct target_ops) <to_get_trace_status>: Add
8415 (target_get_trace_status): Add argument.
8416 * target.c (update_current_target): Update.
8417 * remote.c (remote_get_trace_status): Add 'self' argument.
8418 (remote_start_remote, remote_can_download_tracepoint): Update.
8419 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8423 * target.h (struct target_ops) <to_trace_start>: Add argument.
8424 (target_trace_start): Add argument.
8425 * target.c (update_current_target): Update.
8426 * remote.c (remote_trace_start): Add 'self' argument.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8432 (target_trace_set_readonly_regions): Add argument.
8433 * target.c (update_current_target): Update.
8434 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8439 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8441 (target_disable_tracepoint): Add argument.
8442 * target.c (update_current_target): Update.
8443 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8449 (target_enable_tracepoint): Add argument.
8450 * target.c (update_current_target): Update.
8451 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target.h (struct target_ops) <to_download_trace_state_variable>:
8457 (target_download_trace_state_variable): Add argument.
8458 * target.c (update_current_target): Update.
8459 * remote.c (remote_download_trace_state_variable): Add 'self'
8462 2014-02-19 Tom Tromey <tromey@redhat.com>
8464 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8466 (target_can_download_tracepoint): Add argument.
8467 * target.c (update_current_target): Update.
8468 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target.h (struct target_ops) <to_download_tracepoint>: Add
8474 (target_download_tracepoint): Add argument.
8475 * target.c (update_current_target): Update.
8476 * remote.c (remote_download_tracepoint): Add 'self' argument.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target.h (struct target_ops) <to_trace_init>: Add argument.
8481 (target_trace_init): Add argument.
8482 * target.c (update_current_target): Update.
8483 * remote.c (remote_trace_init): Add 'self' argument.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8488 * target.c (target_fileio_readlink): Add argument.
8489 * remote.c (remote_hostio_readlink): Add 'self' argument.
8490 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8495 * target.c (target_fileio_unlink): Add argument.
8496 * remote.c (remote_hostio_unlink): Add 'self' argument.
8497 (remote_file_delete): Update.
8498 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8503 * target.c (target_fileio_close): Add argument.
8504 * remote.c (remote_hostio_close): Add 'self' argument.
8505 (remote_hostio_close_cleanup): Update.
8506 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8508 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8513 * target.c (target_fileio_pread): Add argument.
8514 * remote.c (remote_hostio_pread): Add 'self' argument.
8515 (remote_bfd_iovec_pread, remote_file_get): Update.
8516 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8521 * target.c (target_fileio_pwrite): Add argument.
8522 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8523 (remote_file_put): Update.
8524 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8529 * target.c (target_fileio_open): Add argument.
8530 * remote.c (remote_hostio_open): Add 'self' argument.
8531 (remote_bfd_iovec_open): Add 'self' argument.
8532 (remote_file_put): Add 'self' argument.
8533 (remote_file_get): Add 'self' argument.
8534 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8540 (target_can_run_breakpoint_commands): Add argument.
8541 * target.c (update_current_target): Update.
8542 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8544 (remote_insert_breakpoint): Add 'self' argument.
8545 (remote_insert_hw_breakpoint): Add 'self' argument.
8546 (remote_can_run_breakpoint_commands): Add 'self' argument.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target.h (struct target_ops)
8551 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8552 (target_supports_evaluation_of_breakpoint_conditions): Add
8554 * target.c (update_current_target): Update.
8555 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8557 (remote_insert_breakpoint): Add 'self' argument.
8558 (remote_insert_hw_breakpoint): Add 'self' argument.
8559 (remote_supports_cond_breakpoints): Add 'self' argument.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8565 (target_supports_string_tracing): Add argument.
8566 * target.c (update_current_target): Update.
8567 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target.h (struct target_ops)
8572 <to_supports_disable_randomization>: Add argument.
8573 * target.c (find_default_supports_disable_randomization): Add
8575 (target_supports_disable_randomization): Add argument.
8576 (find_default_supports_disable_randomization): Add 'self'
8578 * remote.c (extended_remote_supports_disable_randomization): Add
8580 (remote_supports_disable_randomization): Add 'self' argument.
8581 (extended_remote_create_inferior): Update.
8582 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.h (struct target_ops)
8588 <to_supports_enable_disable_tracepoint>: Add argument.
8589 (target_supports_enable_disable_tracepoint): Add argument.
8590 * target.c (update_current_target): Update.
8591 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target.h (struct target_ops) <to_supports_multi_process>: Add
8598 (target_supports_multi_process): Add argument.
8599 * target.c (update_current_target): Update.
8600 * remote.c (remote_supports_multi_process): Add 'self' argument.
8601 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8603 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target.h (struct target_ops) <to_execution_direction>: Add
8610 (target_execution_direction): Add argument.
8611 * target.c (default_execution_direction): Add 'self' argument.
8612 * record-full.c (record_full_execution_direction): Add 'self'
8615 2014-02-19 Tom Tromey <tromey@redhat.com>
8617 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8619 (target_can_execute_reverse): Add argument.
8620 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8621 * record-full.c (record_full_can_execute_reverse): Add 'self'
8623 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8629 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8631 (target_get_ada_task_ptid): Add argument.
8632 * target.c (update_current_target): Update.
8633 (default_get_ada_task_ptid): Add 'self' argument.
8634 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8635 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8636 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8638 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8640 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8642 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8644 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8645 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8651 (target_goto_bookmark): Add argument.
8652 * target.c (dummy_goto_bookmark): Add 'self' argument.
8653 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8658 (target_get_bookmark): Add argument.
8659 * target.c (dummy_get_bookmark): Add 'self' argument.
8660 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8666 (target_make_corefile_notes): Add argument.
8667 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8668 * procfs.c (procfs_make_note_section): Add 'self' argument.
8669 (procfs_make_note_section): Add 'self' argument.
8670 (procfs_make_note_section): Add 'self' argument.
8671 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8673 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8674 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8675 * exec.c (exec_make_note_section): Add 'self' argument.
8676 (exec_make_note_section): Add 'self' argument.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target.h (struct target_ops) <to_find_memory_regions>: Add
8682 (target_find_memory_regions): Add argument.
8683 * target.c (dummy_find_memory_regions): Add 'self' argument.
8684 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8685 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8686 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8687 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8688 * exec. (exec_do_find_memory_regions): New global.
8689 (exec_set_find_memory_regions): Rewrite.
8690 (exec_find_memory_regions): New function.
8691 (init_exec_ops): Use exec_find_memory_regions.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target.h (struct target_ops) <to_supports_non_stop>: Add
8697 * target.c (find_default_supports_non_stop): Add argument.
8698 (target_supports_non_stop): Add argument.
8699 (find_default_supports_non_stop): Add 'self' argument.
8700 * remote.c (remote_supports_non_stop): Add 'self' argument.
8701 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target.h (struct target_ops) <to_log_command>: Add argument.
8706 (target_log_command): Add argument.
8707 * serial.h (serial_log_command): Add 'self' argument.
8708 * serial.c (serial_log_command): Add 'self' argument.
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8713 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8715 (target_pid_to_exec_file): Add argument.
8716 * target.c (debug_to_pid_to_exec_file): Add argument.
8717 (update_current_target): Update.
8718 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8719 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8720 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8721 (linux_handle_extended_wait): Update.
8722 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8723 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8724 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8725 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target.h (struct target_ops) <to_rcmd>: Add argument.
8730 (target_rcmd): Add argument.
8731 * target.c (debug_to_rcmd): Add argument.
8732 (update_current_target, do_monitor_command): Update.
8733 * remote.c (remote_rcmd): Add 'self' argument.
8734 * monitor.c (monitor_rcmd): Add 'self' argument.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * windows-nat.c (windows_stop): Add 'self' argument.
8739 * target.h (struct target_ops) <to_stop>: Add argument.
8740 * target.c (target_stop): Add argument.
8741 (debug_to_stop): Add argument.
8742 (update_current_target): Update.
8743 * remote.c (remote_stop): Add 'self' argument.
8744 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8745 (gdbsim_cntrl_c): Update.
8746 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8747 * procfs.c (procfs_stop): Add 'self' argument.
8748 * nto-procfs.c (procfs_stop): Add 'self' argument.
8749 * monitor.c (monitor_stop): Add 'self' argument.
8750 (monitor_open): Update.
8751 * linux-nat.c (linux_nat_stop): Add argument.
8752 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8753 * gnu-nat.c (gnu_stop): Add 'self' argument.
8754 * darwin-nat.c (darwin_stop): Add 'self' argument.
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target.h (struct target_ops) <to_thread_name>: Add argument.
8759 * target.c (target_thread_name): Add argument.
8760 (update_current_target): Update.
8761 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8763 2014-02-19 Tom Tromey <tromey@redhat.com>
8765 * target.h (struct target_ops) <to_extra_thread_info>: Add
8767 (target_extra_thread_info): Add argument.
8768 * target.c (update_current_target): Update.
8769 * remote.c (remote_threads_extra_info): Add 'self' argument.
8770 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8772 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8773 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8774 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8776 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8778 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8780 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target.h (struct target_ops) <to_program_signals>: Add argument.
8786 * target.c (target_program_signals): Add argument.
8787 * remote.c (remote_program_signals): Add 'self' argument.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8792 * target.c (target_pass_signals): Add argument.
8793 * remote.c (remote_pass_signals): Add 'self' argument.
8794 (remote_start_remote): Update.
8795 * procfs.c (procfs_pass_signals): Add 'self' argument.
8796 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8797 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8798 (linux_nat_create_inferior, linux_nat_attach): Update.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * windows-nat.c (windows_can_run): Add 'self' argument.
8803 * target.h (struct target_ops) <to_can_run>: Add argument.
8804 (target_can_run): Add argument.
8805 * target.c (debug_to_can_run): Add argument.
8806 (update_current_target): Update.
8807 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8808 * inf-child.c (inf_child_can_run): Add 'self' argument.
8809 * go32-nat.c (go32_can_run): Add 'self' argument.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * target.h (struct target_ops) <to_has_exited>: Add argument.
8814 (target_has_exited): Add argument.
8815 * target.c (debug_to_has_exited): Add argument.
8816 (update_current_target): Update.
8818 2014-02-19 Tom Tromey <tromey@redhat.com>
8820 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8822 (target_set_syscall_catchpoint): Add argument.
8823 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8825 * target.c (update_current_target): Update.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8831 (target_remove_exec_catchpoint): Add argument.
8832 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8833 (update_current_target): Update.
8834 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8839 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8841 (target_insert_exec_catchpoint): Add argument.
8842 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8843 (update_current_target): Update.
8844 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8851 (target_remove_vfork_catchpoint): Add argument.
8852 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8853 (update_current_target): Update.
8854 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8861 (target_insert_vfork_catchpoint): Add argument.
8862 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8863 (update_current_target): Update.
8864 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8871 (target_remove_fork_catchpoint): Add argument.
8872 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8873 (update_current_target): Update.
8874 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8881 (target_insert_fork_catchpoint): Add argument.
8882 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8883 (update_current_target): Update.
8884 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8891 (target_post_startup_inferior): Add argument.
8892 * target.c (debug_to_post_startup_inferior): Add argument.
8893 (update_current_target): Update.
8894 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8896 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8898 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8900 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8902 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8904 (super_post_startup_inferior): Likewise.
8905 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8907 (super_post_startup_inferior): Likewise.
8908 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8909 Add 'self' argument.
8910 (super_post_startup_inferior): Likewise.
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target.h (struct target_ops) <to_load>: Add argument.
8915 * target.c (target_load): Add argument.
8916 (debug_to_load): Add argument.
8917 (update_current_target): Update.
8918 * remote.c (remote_load): Add 'self' argument.
8919 * remote-sim.c (gdbsim_load): Add 'self' argument.
8920 * remote-mips.c (mips_load): Add 'self' argument.
8921 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8922 * monitor.c (monitor_load): Add 'self' argument.
8923 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8928 (target_terminal_info): Add argument.
8929 * target.c (debug_to_terminal_info): Add argument.
8930 (default_terminal_info): Likewise.
8931 * inflow.c (child_terminal_info): Add 'self' argument.
8932 * inferior.h (child_terminal_info): Add 'self' argument.
8933 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8939 (target_terminal_save_ours): Add argument.
8940 * target.c (debug_to_terminal_save_ours): Add argument.
8941 (update_current_target): Update.
8942 * inflow.c (terminal_save_ours): Add 'self' argument.
8943 * inferior.h (terminal_save_ours): Add 'self' argument.
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8948 (target_terminal_ours): Add argument.
8949 * target.c (debug_to_terminal_ours): Add argument.
8950 (update_current_target): Update.
8951 * remote.c (remote_terminal_ours): Add 'self' argument.
8952 (remote_close): Update.
8953 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8954 * inflow.c (terminal_ours): Add 'self' argument.
8955 * inferior.h (terminal_ours): Add 'self' argument.
8956 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8958 2014-02-19 Pedro Alves <palves@redhat.com>
8959 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8963 (target_terminal_ours_for_output): Add argument.
8964 * target.c (debug_to_terminal_ours_for_output): Add argument.
8965 (update_current_target): Update.
8966 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8967 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8968 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * target.h (struct target_ops) <to_terminal_inferior>: Add
8974 * target.c (target_terminal_inferior): Add argument.
8975 (update_current_target): Update.
8976 * remote.c (remote_terminal_inferior): Add 'self' argument.
8977 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8978 * inflow.c (terminal_inferior): Add 'self' argument.
8979 * inferior.h (terminal_inferior): Add 'self' argument.
8980 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8981 (go32_terminal_inferior): Add 'self' argument.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8986 (target_terminal_init): Add argument.
8987 * target.c (debug_to_terminal_init): Add argument.
8988 (update_current_target): Update.
8989 * inflow.c (terminal_init_inferior): Add 'self' argument.
8990 * inferior.h (terminal_init_inferior): Add 'self' argument.
8991 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8992 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8996 * target.h (struct target_ops)
8997 <to_can_accel_watchpoint_condition>: Add argument.
8998 (target_can_accel_watchpoint_condition): Add argument.
8999 * target.c (debug_to_can_accel_watchpoint_condition): Add
9001 (update_current_target): Update.
9002 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9009 (target_region_ok_for_hw_watchpoint): Add argument.
9010 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9011 (default_region_ok_for_hw_watchpoint): Add argument.
9012 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9013 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9015 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9017 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9019 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9021 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9023 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9025 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9026 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9028 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9029 Add 'self' argument.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9035 (target_insert_watchpoint): Add argument.
9036 * target.c (debug_to_insert_watchpoint): Add argument.
9037 (update_current_target): Update.
9038 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9039 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9040 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9041 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9042 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9043 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9045 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9046 (procfs_insert_hw_watchpoint): Add 'self' argument.
9047 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9049 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9051 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9053 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9054 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9056 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9063 (target_remove_watchpoint): Add argument.
9064 * target.c (debug_to_remove_watchpoint): Add argument.
9065 (update_current_target): Update.
9066 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9067 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9068 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9069 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9070 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9071 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9073 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9074 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9076 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9078 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9080 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9081 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9083 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9090 (target_remove_hw_breakpoint): Add argument.
9091 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9092 (update_current_target): Update.
9093 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9094 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9096 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9097 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9099 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9106 (target_insert_hw_breakpoint): Add argument.
9107 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9108 (update_current_target): Update.
9109 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9110 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9112 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9113 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9114 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9116 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9123 (target_can_use_hardware_watchpoint): Add argument.
9124 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9125 (update_current_target): Update.
9126 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9128 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9130 * remote.c (remote_check_watch_resources): Add 'self' argument.
9131 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9132 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9134 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9135 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9137 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9139 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9141 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9143 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9145 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9147 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9148 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9150 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9155 * target.h (struct target_ops) <to_post_attach>: Add argument.
9156 (target_post_attach): Add argument.
9157 * target.c (debug_to_post_attach): Add argument.
9158 (update_current_target): Update.
9159 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9160 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9161 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9162 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9163 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * windows-nat.c (windows_close): Add 'self' argument.
9168 * tracepoint.c (tfile_close): Add 'self' argument.
9169 * target.h (struct target_ops) <to_close>: Add argument.
9170 * target.c (target_close): Add argument.
9171 (update_current_target): Update.
9172 * remote.c (remote_close): Add 'self' argument.
9173 * remote-sim.c (gdbsim_close): Add 'self' argument.
9174 * remote-mips.c (mips_close): Add 'self' argument.
9175 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9176 * record-full.c (record_full_close): Add 'self' argument.
9177 * record-btrace.c (record_btrace_close): Add 'self' argument.
9178 * monitor.h (monitor_close): Add 'self' argument.
9179 * monitor.c (monitor_close): Add 'self' argument.
9180 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9181 * linux-nat.c (linux_nat_close): Add argument.
9182 * go32-nat.c (go32_close): Add 'self' argument.
9183 * exec.c (exec_close_1): Add 'self' argument.
9184 * ctf.c (ctf_close): Add 'self' argument.
9185 * corelow.c (core_close): Add 'self' argument.
9186 (core_close_cleanup): Update.
9187 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9188 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * remote.c (remote_load): New function.
9193 (init_remote_ops): Use it.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9199 * common/linux-btrace.h (linux_supports_btrace): Update.
9200 * remote.c (remote_supports_btrace): Add "self" argument.
9201 * target-delegates.c: Rebuild.
9202 * target.c (target_supports_btrace): Remove.
9203 * target.h (struct target_ops) <to_supports_btrace>: Add
9204 target_ops argument.
9205 (target_supports_btrace): New define.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * record-full.c (record_full_beneath_to_resume_ops)
9210 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9211 (record_full_beneath_to_wait)
9212 (record_full_beneath_to_store_registers_ops)
9213 (record_full_beneath_to_store_registers)
9214 (record_full_beneath_to_xfer_partial_ops)
9215 (record_full_beneath_to_xfer_partial)
9216 (record_full_beneath_to_insert_breakpoint_ops)
9217 (record_full_beneath_to_insert_breakpoint)
9218 (record_full_beneath_to_remove_breakpoint_ops)
9219 (record_full_beneath_to_remove_breakpoint)
9220 (record_full_beneath_to_stopped_by_watchpoint)
9221 (record_full_beneath_to_stopped_data_address)
9222 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9223 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9224 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9225 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9226 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9227 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9228 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9229 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9230 (record_full_resume, record_full_wait_1)
9231 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9232 (record_full_store_registers, record_full_xfer_partial)
9233 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9234 (record_full_async, record_full_core_xfer_partial): Use target
9236 * target-delegates.c: Rebuild.
9237 * target.c (current_xfer_partial): Remove.
9238 (update_current_target): Do not INHERIT or de_fault
9239 to_insert_breakpoint, to_remove_breakpoint,
9240 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9241 to_is_async_p, to_async. Do not set to_xfer_partial field.
9242 (default_xfer_partial): Simplify.
9243 (current_xfer_partial): Remove.
9244 (target_wait, target_resume): Simplify.
9245 (find_default_can_async_p, find_default_is_async_p): Update.
9246 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9247 to_xfer_partial, to_stopped_by_watchpoint,
9248 to_stopped_data_address.
9249 (target_store_registers): Simplify.
9250 (forward_target_remove_breakpoint)
9251 (forward_target_insert_breakpoint): Remove.
9252 (target_remove_breakpoint, target_insert_breakpoint)
9253 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9254 * target.h (struct target_ops) <to_resume, to_wait,
9255 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9256 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9257 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9259 (forward_target_remove_breakpoint)
9260 (forward_target_insert_breakpoint): Remove.
9261 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9263 (record_btrace_insert_breakpoint): Delegate directly.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target-delegates.c: New file.
9269 * target.c: Include target-delegates.c.
9270 (init_dummy_target): Call install_dummy_methods.
9271 (complete_target_initialization): Call install_delegators.
9272 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9273 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9274 * make-target-delegates: New file.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * record.c (find_record_target): Use find_target_at.
9279 * target.c (find_target_at): New function.
9280 * target.h (find_target_at): Declare.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9286 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9288 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9289 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9291 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9293 * linux-nat.c (save_sigtrap): Update.
9294 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9295 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9296 (linux_nat_close): Update.
9297 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9299 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9301 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9302 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9303 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9304 (tmp_to_async): Add 'ops' argument.
9305 (record_full_stopped_by_watchpoint, record_full_async)
9306 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9308 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9309 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9310 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9311 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9312 (remote_is_async_p, remote_async): Add 'ops' argument.
9313 (remote_stopped_data_address): Update.
9314 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9315 * target.c (update_current_target)
9316 (find_default_can_async_p, find_default_is_async_p): Update.
9317 (init_dummy_target): Update.
9318 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9319 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9320 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9321 (target_can_async_p, target_is_async_p, target_async)
9322 (target_stopped_by_watchpoint): Update.
9324 2014-02-19 Yao Qi <yao@codesourcery.com>
9327 * gdbarch.sh: Remove startup_gdbarch.
9328 * gdbarch.c: Regenerated.
9329 * gdbarch.h: Likewise.
9331 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9333 * rl78-tdep.c (rl78_g10_register_name): New function.
9334 (rl78_return_value): Add g10 support.
9335 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9338 2014-02-17 Doug Evans <xdje42@gmail.com>
9340 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9341 (SUBDIR_GUILE_SRCS): Ditto.
9342 (scm-gsmob.o): Ditto.
9344 2014-02-17 Yao Qi <yao@codesourcery.com>
9346 * gnu-nat.c (ILL_RPC): Declare defined function.
9348 2014-02-17 Yao Qi <yao@codesourcery.com>
9350 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9351 mach_msg_type_number_t.
9352 (gnu_write_inferior): Likewise.
9354 2014-02-17 Yao Qi <yao@codesourcery.com>
9356 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9358 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9359 (inf_validate_procs, inf_signal): Likewise.
9360 (S_exception_raise_request): Likewise.
9361 (do_mach_notify_dead_name): Likewise.
9362 (steal_exc_port): Likewise.
9363 (gnu_read_inferior): Change 'copy_count''s type to
9364 mach_msg_type_number_t.
9365 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9368 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9370 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9371 flag. Adjust all users; in particular...
9372 (gnu_wait): ..., don't decrement its value in here...
9373 (gnu_create_inferior): ..., and instead set the flag in here,
9374 around the startup_inferior call, and call that one with
9375 START_INFERIOR_TRAPS_EXPECTED.
9377 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9378 (ILL_RPC): ... new macro.
9379 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9380 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9381 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9382 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9383 functions with ILL_RPC macro.
9384 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9385 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9386 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9387 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9388 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9389 (S_proc_getlogin_reply, S_proc_getsid_reply)
9390 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9391 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9392 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9393 (S_proc_getnports_reply, S_proc_is_important_reply)
9394 (S_proc_get_code_reply): New stub functions, generated with
9397 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9398 collected the type check structures.
9400 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9402 2014-02-14 Doug Evans <dje@google.com>
9404 * target.c (target_write_partial): Fix result type.
9406 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9408 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9409 the proper offsets to access fpregset_t.
9411 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9413 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9414 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9415 * h8300-tdep.c (setmachinelist): Remove global.
9416 * hppa-tdep.c (hppa_sigtramp): Remove global.
9417 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9418 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9419 * ravenscar-thread.c (update_target_observer): Remove global.
9420 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9422 2014-02-12 Tom Tromey <tromey@redhat.com>
9424 * common/rsp-low.c: Update comments.
9425 * common/rsp-low.h: Update comments.
9427 2014-02-12 Tom Tromey <tromey@redhat.com>
9429 * common/rsp-low.c (convert_ascii_to_int): Remove.
9430 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9432 2014-02-12 Tom Tromey <tromey@redhat.com>
9434 * common/rsp-low.h (unhexify): Don't declare.
9435 * common/rsp-low.c (unhexify): Remove.
9437 2014-02-12 Tom Tromey <tromey@redhat.com>
9439 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9440 * common/rsp-low.c (convert_int_to_ascii): Remove.
9442 2014-02-12 Tom Tromey <tromey@redhat.com>
9444 * common/rsp-low.h (hexify): Don't declare.
9445 * common/rsp-low.c (hexify): Remove.
9447 2014-02-12 Tom Tromey <tromey@redhat.com>
9449 * common/rsp-low.c (hexify): Never take strlen of argument.
9451 2014-02-12 Tom Tromey <tromey@redhat.com>
9453 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9454 * remote.c (extended_remote_run, remote_rcmd)
9455 (remote_download_trace_state_variable, remote_save_trace_data)
9456 (remote_set_trace_notes): Update.
9457 * tracepoint.c (encode_source_string, tfile_write_status)
9458 (tfile_write_uploaded_tsv): Update.
9460 2014-02-12 Tom Tromey <tromey@redhat.com>
9462 * tracepoint.c: Include rsp-low.h.
9463 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9464 * remote.c: Include rsp-low.h.
9465 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9466 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9467 (remote_unescape_input): Move to common/rsp-low.c.
9468 * common/rsp-low.h: New file.
9469 * common/rsp-low.c: New file.
9470 * Makefile.in (SFILES): Add common/rsp-low.c.
9471 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9472 (COMMON_OBS): Add rsp-low.o.
9473 (rsp-low.o): New target.
9475 2014-02-12 Tom Tromey <tromey@redhat.com>
9477 * utils.h: Include print-utils.h.
9478 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9479 (int_string, core_addr_to_string, core_addr_to_string_nz)
9480 (hex_string, hex_string_custom): Don't declare.
9481 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9482 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9483 (hex_string_custom, int_string, core_addr_to_string)
9484 (core_addr_to_string_nz, host_address_to_string): Move to
9485 common/print-utils.c.
9486 * common/print-utils.h: New file.
9487 * common/print-utils.c: New file
9488 * Makefile.in (SFILES): Add common/print-utils.c.
9489 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9490 (COMMON_OBS): Add print-utils.o.
9491 (print-utils.o): New target.
9493 2014-02-12 Tom Tromey <tromey@redhat.com>
9495 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9497 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9499 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9501 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9503 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9504 if a PT_IO ptrace request returns sucessfully but indicates that 0
9505 bytes were transferred.
9507 2014-02-12 Pedro Alves <palves@redhat.com>
9508 Kevin Buettner <kevinb@redhat.com>
9510 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9511 TYPE_INSTANCE_FLAG_CODE_SPACE.
9513 2014-02-12 Pedro Alves <palves@redhat.com>
9515 * h8300-tdep.c (pseudo_from_raw_register)
9516 (raw_from_pseudo_register): New functions.
9517 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9520 2014-02-12 Pedro Alves <palves@redhat.com>
9522 * h8300-tdep.c (h8300_register_sim_regno): New function.
9523 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9524 gdbarch_register_sim_regno hook.
9526 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9528 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9530 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9532 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9534 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9536 * obsd-tdep.h (obsd_init_abi): New prototype.
9537 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9538 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9539 (obsd_init_abi): New functions.
9540 * i386obsd-tdep.c: Include "obsd-tdep.h".
9541 (i386obsd_init_abi): Call obsd_init_abi.
9542 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9543 (amd64obsd_init_abi): Call obsd_init_abi.
9544 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9545 obsd-tdep.c to gdb_target_obs.
9547 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9549 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9550 double float arguments to 16-byte in the argument slots.
9552 2014-02-11 Doug Evans <xdje42@gmail.com>
9554 * configure.ac: Don't crash if pkg-config is not found and guile
9555 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9557 * configure: Regenerate.
9559 2014-02-11 Yao Qi <yao@codesourcery.com>
9561 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9562 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9563 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9564 * gnu-nat.c (gnu_xfer_memory): Likewise.
9565 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9566 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9567 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9570 2014-02-11 Yao Qi <yao@codesourcery.com>
9572 * target.h (enum target_xfer_error): Rename to ...
9573 (enum target_xfer_status): ... it. New. All users updated.
9574 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9576 (TARGET_XFER_STATUS_ERROR_P): New macro.
9577 (target_xfer_error_to_string): Remove declaration.
9578 (target_xfer_status_to_string): Declare.
9579 (target_xfer_partial_ftype): Adjust it.
9580 (struct target_ops) <to_xfer_partial>: Return
9581 target_xfer_status. Add argument xfered_len. Update
9583 * target.c (target_xfer_error_to_string): Rename to ...
9584 (target_xfer_status_to_string): ... it. New. All callers
9586 (target_read_live_memory): Likewise. Call target_xfer_partial
9587 instead of target_read.
9588 (memory_xfer_live_readonly_partial): Return
9589 target_xfer_status. Add argument xfered_len.
9590 (raw_memory_xfer_partial): Likewise.
9591 (memory_xfer_partial_1): Likewise.
9592 (memory_xfer_partial): Likewise.
9593 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9594 properly. Update debug message.
9595 (default_xfer_partial, current_xfer_partial): Likewise.
9596 (target_write_partial): Likewise.
9597 (target_read_partial): Likewise. All callers updated.
9598 (read_whatever_is_readable): Likewise.
9599 (target_write_with_progress): Likewise.
9600 (target_read_alloc_1): Likewise.
9602 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9603 * auxv.c (procfs_xfer_auxv): Likewise.
9604 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9605 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9606 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9607 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9608 * corefile.c (read_memory): Adjust.
9609 * corelow.c (core_xfer_partial): Likewise.
9610 * ctf.c (ctf_xfer_partial): Likewise.
9611 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9613 (darwin_xfer_partial): Likewise.
9614 * exec.c (section_table_xfer_memory_partial): Likewise. All
9616 (exec_xfer_partial): Likewise.
9617 * exec.h (section_table_xfer_memory_partial): Update
9619 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9621 (gnu_xfer_partial): Likewise.
9622 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9623 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9624 (ia64_hpux_xfer_solib_got): Likewise.
9625 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9626 type of 'partial_len' to ULONGEST.
9627 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9628 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9629 (linux_nat_xfer_partial): Likewise.
9630 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9631 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9632 * monitor.c (monitor_xfer_memory): Likewise.
9633 (monitor_xfer_partial): Likewise.
9634 * procfs.c (procfs_xfer_partial): Likewise.
9635 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9636 * record-full.c (record_full_xfer_partial): Likewise.
9637 (record_full_core_xfer_partial): Likewise.
9638 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9639 (gdbsim_xfer_partial): Likewise.
9640 * remote.c (remote_write_bytes_aux): Likewise. All callers
9642 (remote_write_bytes, remote_read_bytes): Likewise. All
9644 (remote_flash_erase): Likewise. All callers updated.
9645 (remote_write_qxfer): Likewise. All callers updated.
9646 (remote_read_qxfer): Likewise. All callers updated.
9647 (remote_xfer_partial): Likewise.
9648 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9649 (rs6000_xfer_shared_libraries): Likewise.
9650 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9651 (sol_thread_xfer_partial): Likewise.
9652 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9653 (sparc_xfer_partial): Likewise.
9654 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9656 (spu_xfer_partial): Likewise.
9657 * spu-multiarch.c (spu_xfer_partial): Likewise.
9658 * tracepoint.c (tfile_xfer_partial): Likewise.
9659 * windows-nat.c (windows_xfer_memory): Likewise.
9660 (windows_xfer_shared_libraries): Likewise.
9661 (windows_xfer_partial): Likewise.
9662 * valprint.c: Replace 'target_xfer_error' with
9663 'target_xfer_status' in comments.
9665 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9667 Checked in by Joel Brobecker <brobecker@adacore.com>.
9668 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9670 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9672 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9673 function parameters.
9675 2014-02-10 Will Newton <will.newton@linaro.org>
9677 * elfread.c (elf_rel_plt_read): Look for a .got section if
9678 looking up .got.plt fails.
9679 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9680 on address passed to elf_gnu_ifunc_record_cache.
9681 (elf_gnu_ifunc_resolve_addr): Likewise.
9682 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9684 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9686 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9687 (X_RETTURN): New macro.
9688 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9690 * sparc64-tdep.c (sparc64_init_abi): Hook
9691 sparc_in_function_epilogue_p.
9693 2014-02-10 Gary Benson <gbenson@redhat.com>
9695 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9696 Rename name_matcher to symbol_matcher.
9698 2014-02-10 Gary Benson <gbenson@redhat.com>
9700 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9701 Use expand_symtabs_file_matcher_ftype and
9702 expand_symtabs_symbol_matcher_ftype.
9704 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9706 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9707 (struct ada_symbol_cache): New.
9708 (ada_free_symbol_cache): Forward declare.
9709 (struct ada_pspace_data): New.
9710 (ada_pspace_data_handle): New static global.
9711 (get_ada_pspace_data, ada_pspace_data_cleanup)
9712 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9713 (cache_space, cache): Delete, now folded inside struct
9715 (ada_get_symbol_cache): New function.
9716 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9718 (_initialize_ada_language): Remove initialization of cache_space.
9719 Move call to observer_attach_inferior_exit up, grouping it
9720 with the other observer registrations inside this function.
9721 Rename command to be more general. Add call to
9722 register_program_space_data_with_cleanup.
9724 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9726 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9727 ada_new_objfile_observer.
9728 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9729 (_initialize_tasks): Update uses of ada_new_objfile_observer
9730 and ada_tasks_normal_stop_observer.
9732 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9734 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9735 returned by the 'Length attribute to integer.
9737 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9739 * ada-lang.c (_initialize_ada_language): Initialize
9740 cache_space obstack.
9742 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9744 * ada-lang.c (HASH_SIZE): New macro.
9745 (struct cache_entry): New type.
9746 (cache_space, cache): New static globals.
9747 (ada_clear_symbol_cache, find_entry): New functions.
9748 (lookup_cached_symbol, cache_symbol): Implement.
9749 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9750 (_initialize_ada_language): Attach ada_new_objfile_observer
9751 and ada_free_objfile_observer.
9753 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9755 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9756 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9757 struct block * parameter.
9758 (ada_lookup_symbol_list_worker): Constify local variable "block".
9759 Remove cast which is no longer necessary.
9761 2014-02-10 Doug Evans <xdje42@gmail.com>
9763 Add Guile as an extension language.
9764 * NEWS: Mention Guile scripting.
9765 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9766 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9767 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9768 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9769 (CLIBS): Add GUILE_LIBS.
9770 (install-guile): New rule.
9771 (guile.o): New rule.
9772 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9773 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9774 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9775 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9776 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9777 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9778 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9779 * configure.ac: New option --with-guile.
9780 * configure: Regenerate.
9781 * config.in: Regenerate.
9782 * auto-load.c: Remove #include "python/python.h". Add #include
9783 "gdb/section-scripts.h".
9784 (source_section_scripts): Handle Guile scripts.
9785 (_initialize_auto_load): Add name of Guile objfile script to
9786 scripts-directory help text.
9787 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9788 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9789 (struct breakpoint): New member scm_bp_object.
9790 * defs.h (enum command_control_type): New value guile_control.
9791 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9793 (show_user): Update comment.
9794 (_initialize_cli_cmds): Update help text for "show user". Update help
9795 text for max-user-call-depth.
9796 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9798 (multi_line_command_p): Add guile_control.
9799 (print_command_lines): Handle guile_control.
9800 (execute_control_command, recurse_read_control_structure): Ditto.
9801 (process_next_line): Recognize "guile" commands.
9802 * disasm.c (gdb_disassemble_info): Make non-static.
9803 * disasm.h: #include "dis-asm.h".
9804 (struct gdbarch): Add forward decl.
9805 (gdb_disassemble_info): Declare.
9806 * extension.c: #include "guile/guile.h".
9807 (extension_languages): Add guile.
9808 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9809 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9810 * gdbtypes.c (get_unsigned_type_max): New function.
9811 (get_signed_type_minmax): New function.
9812 * gdbtypes.h (get_unsigned_type_max): Declare.
9813 (get_signed_type_minmax): Declare.
9814 * guile/README: New file.
9815 * guile/guile-internal.h: New file.
9816 * guile/guile.c: New file.
9817 * guile/guile.h: New file.
9818 * guile/scm-arch.c: New file.
9819 * guile/scm-auto-load.c: New file.
9820 * guile/scm-block.c: New file.
9821 * guile/scm-breakpoint.c: New file.
9822 * guile/scm-disasm.c: New file.
9823 * guile/scm-exception.c: New file.
9824 * guile/scm-frame.c: New file.
9825 * guile/scm-gsmob.c: New file.
9826 * guile/scm-iterator.c: New file.
9827 * guile/scm-lazy-string.c: New file.
9828 * guile/scm-math.c: New file.
9829 * guile/scm-objfile.c: New file.
9830 * guile/scm-ports.c: New file.
9831 * guile/scm-pretty-print.c: New file.
9832 * guile/scm-safe-call.c: New file.
9833 * guile/scm-string.c: New file.
9834 * guile/scm-symbol.c: New file.
9835 * guile/scm-symtab.c: New file.
9836 * guile/scm-type.c: New file.
9837 * guile/scm-utils.c: New file.
9838 * guile/scm-value.c: New file.
9839 * guile/lib/gdb.scm: New file.
9840 * guile/lib/gdb/boot.scm: New file.
9841 * guile/lib/gdb/experimental.scm: New file.
9842 * guile/lib/gdb/init.scm: New file.
9843 * guile/lib/gdb/iterator.scm: New file.
9844 * guile/lib/gdb/printing.scm: New file.
9845 * guile/lib/gdb/types.scm: New file.
9846 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9847 (VPATH): Add $(GUILE_SRCDIR).
9848 (GUILE_DIR): New variable.
9849 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9850 (all): Add stamp-guile dependency.
9851 (stamp-guile): New rule.
9852 (clean-guile, install-guile, uninstall-guile): New rules.
9853 (install-only): Add install-guile dependency.
9854 (uninstall): Add uninstall-guile dependency.
9855 (clean): Add clean-guile dependency.
9857 2014-02-09 Doug Evans <xdje42@gmail.com>
9859 Revert this patch (which I approved, mea culpa).
9861 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9863 * Makefile.in (all-lib): Remove.
9864 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9866 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9868 Fix Python stack corruption.
9869 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9872 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9874 * Makefile.in (all-lib): Remove.
9875 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9877 2014-02-07 Doug Evans <dje@google.com>
9879 * extension-priv.h (extension_language_script_ops): Add comment.
9880 (extension_language_ops): Add comment.
9881 (active_ext_lang_state): Fix typo in comment.
9883 2014-02-07 Pedro Alves <palves@redhat.com>
9885 PR breakpoints/16292
9886 * infrun.c (handle_signal_stop) <signal arrives while stepping
9887 over a breakpoint>: Switch back to the stepping thread.
9889 2014-02-07 Yao Qi <yao@codesourcery.com>
9891 * target.c (target_xfer_partial): Return zero if LEN is zero.
9893 2014-02-07 Yao Qi <yao@codesourcery.com>
9895 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9896 (ld_so_xfer_auxv): Likewise.
9897 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9898 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9899 * corelow.c (core_xfer_partial): Likewise.
9900 * ctf.c (ctf_xfer_partial): Likewise.
9901 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9902 (darwin_xfer_partial): Likewise.
9903 * exec.c (exec_xfer_partial): Likewise.
9904 * gnu-nat.c (gnu_xfer_partial): Likewise.
9905 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9906 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9907 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9908 * linux-nat.c (linux_xfer_siginfo): Likewise.
9909 (linux_proc_xfer_spu): Likewise.
9910 * procfs.c (procfs_xfer_partial): Likewise.
9911 * record-full.c (record_full_xfer_partial): Likewise.
9912 (record_full_core_xfer_partial): Likewise.
9913 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9914 * remote.c (remote_write_qxfer): Likewise.
9915 (remote_write_qxfer, remote_read_qxfer): Likewise.
9916 (remote_xfer_partial): Likewise.
9917 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9918 (rs6000_xfer_shared_libraries): Likewise.
9919 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9921 (spu_xfer_partial): Likewise.
9922 * target.c (memory_xfer_partial_1): Likewise.
9923 * tracepoint.c (tfile_xfer_partial): Likewise.
9924 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9925 (windows_xfer_partial): Likewise.
9927 2014-02-07 Yao Qi <yao@codesourcery.com>
9929 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9931 (core_xfer_shared_libraries_aix): Likewise.
9932 * gdbarch.c, gdbarch.h: Regenerated.
9933 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9934 ULONGEST. Change 'len_avail' type to ULONGEST.
9935 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9936 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9938 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9940 2014-02-07 Yao Qi <yao@codesourcery.com>
9942 * corefile.c (memory_error): Get 'exception' from ERR and pass
9943 'exception' to throw_error.
9945 2014-02-06 Doug Evans <xdje42@gmail.com>
9947 * configure.ac (libpython checking): Remove all but python.o from
9948 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9949 * configure: Regenerate.
9951 * Makefile.in (SFILES): Add extension.c.
9952 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9953 (COMMON_OBS): Add extension.o.
9954 * extension.h: New file.
9955 * extension-priv.h: New file.
9956 * extension.c: New file.
9958 * python/python-internal.h: #include "extension.h".
9959 (gdbpy_auto_load_enabled): Declare.
9960 (gdbpy_apply_val_pretty_printer): Declare.
9961 (gdbpy_apply_frame_filter): Declare.
9962 (gdbpy_preserve_values): Declare.
9963 (gdbpy_breakpoint_cond_says_stop): Declare.
9964 (gdbpy_breakpoint_has_cond): Declare.
9965 (void source_python_script_for_objfile): Delete.
9966 * python/python.c: #include "extension-priv.h".
9967 Delete inclusion of "observer.h".
9968 (extension_language_python): Moved here and renamed from
9969 script_language_python in py-auto-load.c.
9970 Redefined to be of type extension_language_defn.
9971 (python_extension_script_ops): New global.
9972 (python_extension_ops): New global.
9973 (struct python_env): New member previous_active.
9974 (restore_python_env): Call restore_active_ext_lang.
9975 (ensure_python_env): Call set_active_ext_lang.
9976 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9978 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9980 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9982 (gdbpy_eval_from_control_command): Renamed from
9983 eval_python_from_control_command, made static. New arg extlang.
9984 (gdbpy_source_script) Renamed from source_python_script, made static.
9986 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9987 result to int. New arg extlang.
9988 (gdbpy_source_objfile_script): Renamed from
9989 source_python_script_for_objfile, made static. New arg extlang.
9990 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9991 static. New args extlang, extlang_printers. Change result type to
9993 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9994 static. New arg extlang. Rename arg printers to extlang_printers
9995 and change type to ext_lang_type_printers *.
9996 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9997 static. Replace argument arg with extlang, extlang_printers.
9998 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9999 (!HAVE_PYTHON, source_python_script): Delete.
10000 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10001 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10002 (!HAVE_PYTHON, start_type_printers): Delete.
10003 (!HAVE_PYTHON, apply_type_printers): Delete.
10004 (!HAVE_PYTHON, free_type_printers): Delete.
10005 (_initialize_python): Delete call to observer_attach_before_prompt.
10006 (finalize_python): Set/restore active extension language.
10007 (gdbpy_finish_initialization) Renamed from
10008 finish_python_initialization, made static. New arg extlang.
10009 (gdbpy_initialized): New function.
10010 * python/python.h: #include "extension.h". Delete #include
10011 "value.h", "mi/mi-cmds.h".
10012 (extension_language_python): Declare.
10013 (GDBPY_AUTO_FILE_NAME): Delete.
10014 (enum py_bt_status): Moved to extension.h and renamed to
10015 ext_lang_bt_status.
10016 (enum frame_filter_flags): Moved to extension.h.
10017 (enum py_frame_args): Moved to extension.h and renamed to
10018 ext_lang_frame_args.
10019 (finish_python_initialization): Delete.
10020 (eval_python_from_control_command): Delete.
10021 (source_python_script): Delete.
10022 (apply_val_pretty_printer): Delete.
10023 (apply_frame_filter): Delete.
10024 (preserve_python_values): Delete.
10025 (gdbpy_script_language_defn): Delete.
10026 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10027 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10029 * auto-load.c: #include "extension.h".
10030 (GDB_AUTO_FILE_NAME): Delete.
10031 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10032 (script_language_gdb): Delete, moved to extension.c and renamed to
10033 extension_language_gdb.
10034 (source_gdb_script_for_objfile): Delete.
10035 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10036 (loaded_script): Change type of language member to
10037 struct extension_language_defn *.
10038 (init_loaded_scripts_info): Initialize
10039 unsupported_script_warning_printed.
10040 (maybe_add_script): Make static. Change type of language arg to
10041 struct extension_language_defn *.
10042 (clear_section_scripts): Reset unsupported_script_warning_printed.
10043 (auto_load_objfile_script_1): Rewrite to use extension language API.
10044 (auto_load_objfile_script): Make public. Remove support-compiled-in
10045 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10046 (source_section_scripts): Rewrite to use extension language API.
10047 (load_auto_scripts_for_objfile): Rewrite to use
10048 auto_load_scripts_for_objfile.
10049 (collect_matching_scripts_data): Change type of language member to
10050 struct extension_language_defn *.
10051 (auto_load_info_scripts): Change type of language arg to
10052 struct extension_language_defn *.
10053 (unsupported_script_warning_print): New function.
10054 (script_not_found_warning_print): Make static.
10055 (_initialize_auto_load): Rewrite construction of scripts-directory
10057 * auto-load.h (struct objfile): Add forward decl.
10058 (struct script_language): Delete.
10059 (struct auto_load_pspace_info): Add forward decl.
10060 (struct extension_language_defn): Add forward decl.
10061 (maybe_add_script): Delete.
10062 (auto_load_objfile_script): Declare.
10063 (script_not_found_warning_print): Delete.
10064 (auto_load_info_scripts): Update prototype.
10065 (auto_load_gdb_scripts_enabled): Declare.
10066 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10067 auto_load_python_scripts_enabled and made public.
10068 (script_language_python): Delete, moved to python.c.
10069 (gdbpy_script_language_defn): Delete.
10070 (info_auto_load_python_scripts): Update to use
10071 extension_language_python.
10073 * breakpoint.c (condition_command): Replace call to
10074 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10075 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10076 with call to breakpoint_ext_lang_cond_says_stop.
10077 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10078 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10079 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10080 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10082 (local_setattro): Print name of extension language with existing
10085 * valprint.c (val_print, value_print): Update to call
10086 apply_ext_lang_val_pretty_printer.
10087 * cp-valprint.c (cp_print_value): Update call to
10088 apply_ext_lang_val_pretty_printer.
10089 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10090 (gdbpy_apply_val_pretty_printer): Renamed from
10091 apply_val_pretty_printer. New arg extlang.
10092 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10094 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10095 extension language API.
10096 * cli/cli-script.c (execute_control_command): Update to call
10097 eval_ext_lang_from_control_command.
10099 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10100 enum ext_lang_bt_status values. Update call to
10101 apply_ext_lang_frame_filter.
10102 (mi_cmd_stack_list_locals): Ditto.
10103 (mi_cmd_stack_list_args): Ditto.
10104 (mi_cmd_stack_list_variables): Ditto.
10105 * mi/mi-main.c: Delete #include "python/python-internal.h".
10106 Add #include "extension.h".
10107 (mi_cmd_list_features): Replace reference to python internal variable
10108 gdb_python_initialized with call to ext_lang_initialized_p.
10110 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10111 Update to use enum ext_lang_frame_args. Update to call
10112 apply_ext_lang_frame_filter.
10113 * python/py-framefilter.c (extract_sym): Update to use enum
10114 ext_lang_bt_status.
10115 (extract_value, py_print_type, py_print_value): Ditto.
10116 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10117 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10118 (py_print_frame): Ditto.
10119 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10120 New arg extlang. Update to use enum ext_lang_bt_status.
10122 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10123 finish_python_initialization. Replace with call to
10124 finish_ext_lang_initialization.
10126 * typeprint.c (do_free_global_table): Update to call
10127 free_ext_lang_type_printers.
10128 (create_global_typedef_table): Update to call
10129 start_ext_lang_type_printers.
10130 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10131 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10132 (type_print_options): Change type of global_printers from "void *"
10133 to "struct ext_lang_type_printers *".
10135 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10136 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10137 (gdbpy_preserve_values): Renamed from preserve_python_values.
10139 (!HAVE_PYTHON, preserve_python_values): Delete.
10141 * utils.c (quit_flag): Delete, moved to extension.c.
10142 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10145 * eval.c: Delete #include "python/python.h".
10146 * main.c: Delete #include "python/python.h".
10148 * defs.h: Update comment.
10150 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10154 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10156 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10159 2014-02-05 Yao Qi <yao@codesourcery.com>
10161 * remote.c (remote_pass_signals): Remove local 'buf' and use
10163 (remote_program_signals): Likewise.
10165 2014-02-05 Yao Qi <yao@codesourcery.com>
10167 * ctf.c: Include "inferior.h" and "gdbthread.h".
10168 (CTF_PID): A new macro.
10169 (ctf_open): Call inferior_appeared and add_thread_silent.
10170 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10171 (ctf_thread_alive): New function.
10172 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10174 2014-02-05 Yao Qi <yao@codesourcery.com>
10178 2013-05-24 Yao Qi <yao@codesourcery.com>
10180 * tracepoint.c (TFILE_PID): Remove.
10181 (tfile_open): Don't add thread and inferior.
10182 (tfile_close): Don't set 'inferior_ptid'. Don't call
10183 exit_inferior_silent.
10184 (tfile_thread_alive): Remove.
10185 (init_tfile_ops): Don't set field 'to_thread_alive' of
10188 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10190 * remote.c (remote_start_remote): Call remote_check_symbols even
10191 if only symbol-file (not file) has been given.
10193 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10195 * gdbarch.sh (skip_entrypoint): New callback.
10196 * gdbarch.c, gdbarch.h: Regenerate.
10197 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10198 * infrun.c (fill_in_stop_func): Likewise.
10199 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10200 (ppc_elfv2_elf_make_msymbol_special): New function.
10201 (ppc_elfv2_skip_entrypoint): Likewise.
10202 (ppc_linux_init_abi): Install them for ELFv2.
10204 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10206 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10207 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10208 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10209 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10210 structures returned in GPRs.
10212 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10214 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10215 offset to the stack parameter list for the ELFv2 ABI.
10217 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10219 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10220 set_gdbarch_convert_from_func_ptr_addr and
10221 set_gdbarch_elf_make_msymbol_special for ELFv1.
10222 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10223 function descriptors on ELFv1.
10224 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10225 set up r12 at function entry.
10227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10229 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10230 (struct gdbarch_tdep): New member elf_abi.
10232 * rs6000-tdep.c: Include "elf/ppc64.h".
10233 (rs6000_gdbarch_init): Detect ELF ABI version.
10235 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10237 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10238 within a register pair holding a DFP 128-bit value on little-endian.
10239 (ppc64_sysv_abi_return_value_base): Likewise.
10240 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10241 (dfp_pseudo_register_write): Likewise.
10243 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10245 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10246 offset on little-endian when passing _Decimal32.
10247 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10251 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10252 of the overlapped FP register within the VSX register on little-
10254 (efpr_pseudo_register_write): Likewise.
10256 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10258 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10259 offset on little-endian when passing small structures.
10261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10263 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10264 (struct ppc64_sysv_argpos): New data structure.
10265 (ppc64_sysv_abi_push_float): Remove.
10266 (ppc64_sysv_abi_push_val): New function.
10267 (ppc64_sysv_abi_push_integer): Likewise.
10268 (ppc64_sysv_abi_push_freg): Likewise.
10269 (ppc64_sysv_abi_push_vreg): Likewise.
10270 (ppc64_sysv_abi_push_param): Likewise.
10271 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10272 (ppc64_sysv_abi_return_value_base): New function.
10273 (ppc64_sysv_abi_return_value): Refactor to use it.
10275 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10277 * NEWS: Document new target powerpc64le-*-linux*.
10279 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10281 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10282 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10284 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10285 register set used in ELF core dumps. Add floating-point register set.
10287 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10289 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10290 dwarf2_to_gdb[] table using symbolic constants. Adjust
10291 penultimate entry from number representing the PC register
10292 to symbolic constant representing the MDR register. Add
10293 constant for the PC register to the end of the table.
10295 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10297 * bsd-kvm.c: Include <sys/param.h>
10299 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10301 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10303 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10305 * ada-lang.h (clear_ada_sym_cache): Delete.
10307 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10309 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10311 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10313 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10314 the sigreturn register save area only if the syscall is
10317 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10319 * valops.c (value_slice): Minor reformatting.
10321 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10323 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10325 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10327 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10328 New static globals.
10329 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10330 (ada_ignore_descriptive_types_p): New static global.
10331 (find_parallel_type_by_descriptive_type): Return immediately
10332 if ada_ignore_descriptive_types_p is set.
10333 (_initialize_ada_language): Register new commands "maintenance
10334 set ada", "maintenance show ada", "maintenance set ada
10335 ignore-descriptive-types" and "maintenance show ada
10336 ignore-descriptive-types".
10337 * NEWS: Add entry for new "maint ada set/show
10338 ignore-descriptive-types" commands.
10340 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10342 * record-btrace.c (record_btrace_close): Call btrace_teardown
10345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10347 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10350 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10352 * ada-typeprint (type_is_full_subrange_of_target_type):
10354 (print_range): Add parameter bounds_prefered_p. If not set,
10355 try printing range types using the name of their base type.
10356 (print_range_type): Add parameter bounds_prefered_p.
10357 Use it in call to print_range.
10358 (print_array_type, ada_print_type): Update calls to print_range
10359 and print_range_type.
10361 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10363 * ada-typeprint.c (print_array_type, print_choices, print_range)
10364 (print_range_bound, print_dynamic_range_bound, print_range_type):
10365 Remove declaration.
10367 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10369 * ada-typeprint.c (print_range): Add missing empty line
10370 after local declaration.
10372 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10374 * ada-valprint.c (print_optional_low_bound): Get index_type's
10375 target type for as long as it is a TYPE_CODE_RANGE.
10377 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10379 * procfs.c (procfs_make_note_section): Remove assertion and
10380 associated comment.
10382 2014-01-24 Yao Qi <yao@codesourcery.com>
10384 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10385 * corelow.c (get_core_siginfo): Likewise.
10387 2014-01-24 Yao Qi <yao@codesourcery.com>
10389 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10390 ULONGEST. Don't check 'len' is negative.
10391 (remote_write_bytes): Change type of 'len' to ULONGEST.
10393 2014-01-23 Tom Tromey <tromey@redhat.com>
10396 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10397 Handle exception from frame.block.
10398 (FrameVars.fetch_frame_locals): Likewise.
10400 2014-01-23 Tom Tromey <tromey@redhat.com>
10403 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10404 on a NULL pointer. Move "goto error" to correct place.
10406 2014-01-23 Tom Tromey <tromey@redhat.com>
10409 * python/py-framefilter.c (apply_frame_filter): Call
10410 ensure_python_env after computing gdbarch.
10412 2014-01-23 Yao Qi <yao@codesourcery.com>
10414 * target.c (raw_memory_xfer_partial): Change argument type
10415 from void * to gdb_byte *.
10416 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10418 2014-01-22 Doug Evans <dje@google.com>
10420 New gdbserver option --debug-format=timestamp.
10421 * NEWS: Mention it.
10423 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10425 * syscalls/s390x-linux.xml: New file.
10426 * syscalls/s390-linux.xml: New file.
10427 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10428 (XML_SYSCALL_FILENAME_S390X): Likewise.
10429 (op_svc): New enum value for SVC opcode.
10430 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10431 (s390_linux_get_syscall_number): New function.
10432 (s390_gdbarch_init): Register '*get_syscall_number' and the
10433 syscall xml file name.
10434 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10435 "s390-linux.xml" and "s390x-linux.xml".
10436 * NEWS: Announce new feature.
10438 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10440 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10442 2014-01-22 Pedro Alves <palves@redhat.com>
10444 * xtensa-config.c: Include defs.h.
10446 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10448 * common/common-utils.h: Add "ARI:" comment beside __func__
10451 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10453 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10454 documentation a bit.
10456 2014-01-21 Roland McGrath <mcgrathr@google.com>
10458 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10459 * configure: Regenerate.
10460 * aclocal.m4: Regenerate.
10461 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10462 New substituted variables.
10463 (install-strip): New target.
10464 (INSTALL_SCRIPT): New substituted variable.
10465 (FLAGS_TO_PASS): Add it.
10466 (install-only): Use $(INSTALL_SCRIPT) rather than
10467 $(INSTALL_PROGRAM) for gcore.
10469 2014-01-20 Tom Tromey <tromey@redhat.com>
10471 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10474 2014-01-20 Tom Tromey <tromey@redhat.com>
10476 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10477 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10478 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10479 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10480 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10481 (struct cmd_list_element) <flags>: Remove.
10482 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10483 doc_allocated>: New fields.
10484 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10486 * maint.c (maintenance_do_deprecate): Update.
10487 * top.c (execute_command): Update.
10489 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10491 * xtensa-linux-nat.c: Include asm/ptrace.h.
10493 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10495 * Makefile.in (SFILES): Add d-support.c.
10496 (COMMON_OBS): Add d-support.o.
10497 * d-lang.h (d_parse_symbol): Add comment, now defined in
10499 * d-lang.c (parse_call_convention)
10500 (parse_attributes, parse_function_types)
10501 (parse_function_args, parse_type, parse_identifier)
10502 (call_convention_p, d_parse_symbol): Move functions to ...
10503 * d-support.c: ... New file.
10505 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10507 * d-lang.h (d_parse_symbol): Add declaration.
10508 * d-lang.c (extract_identifiers)
10509 (extract_type_info): Remove functions.
10510 (parse_call_convention, parse_attributes)
10511 (parse_function_types, parse_function_args)
10512 (parse_type, parse_identifier, call_convention_p)
10513 (d_parse_symbol): New functions.
10514 (d_demangle): Use d_parse_symbol to demangle D symbols.
10516 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10518 * d-lang.h (struct builtin_d_type): New data type.
10519 (builtin_d_type): Add declaration.
10520 * d-lang.c (d_language_arch_info, build_d_types)
10521 (builtin_d_type): New functions.
10522 (enum d_primitive_types): New data type.
10523 (d_language_defn): Change c_language_arch_info to
10524 d_language_arch_info.
10525 (d_type_data): New static variable.
10526 (_initialize_d_language): Initialize d_type_data.
10528 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10530 * d-lang.h (d_main_name): Add declaration.
10531 * d-lang.c (d_main_name): New function.
10532 * symtab.c (find_main_name): Add call to d_main_name.
10534 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10536 * d-lang.c (d_language_defn): Change macro_expansion_c to
10537 macro_expansion_no.
10539 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10541 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10543 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10545 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10546 gdb_exception" declaration.
10547 * remote.c (getpkt_or_notif_sane): Likewise.
10549 2014-01-17 Doug Evans <dje@google.com>
10551 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10552 function, contents of dirnames_to_char_ptr_vec_append moved here.
10553 (delim_string_to_char_ptr_vec): New function.
10554 (dirnames_to_char_ptr_vec_append): Rewrite.
10555 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10557 2014-01-17 Doug Evans <dje@google.com>
10559 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10561 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10562 #include "common-utils.h".
10563 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10564 * common/vec.h (VEC_ASSERT_PASS): Update.
10565 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10566 (MACH_CHECK_ERROR): Update.
10568 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10570 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10572 * gdbarch.h: Regenerate.
10574 2014-01-16 Tom Tromey <tromey@redhat.com>
10576 * value.c (struct value) <regnum>: Move earlier.
10578 2014-01-16 Tom Tromey <tromey@redhat.com>
10580 * remote.c (extended_remote_create_inferior): Rename from
10581 extended_remote_create_inferior_1. Add "ops" argument. Remove
10582 old implementation.
10584 2014-01-16 Pedro Alves <palves@redhat.com>
10586 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10587 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10590 2014-01-16 Doug Evans <dje@google.com>
10592 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10596 * btrace.h (btrace_thread_flag): New.
10597 (struct btrace_thread_info) <flags>: New.
10598 * record-btrace.c (record_btrace_resume_thread)
10599 (record_btrace_find_thread_to_move, btrace_step_no_history)
10600 (btrace_step_stopped, record_btrace_start_replaying)
10601 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10602 (record_btrace_find_resume_thread): New.
10603 (record_btrace_resume, record_btrace_wait): Extend.
10604 (record_btrace_can_execute_reverse): New.
10605 (record_btrace_open): Fail in non-stop mode.
10606 (record_btrace_set_replay): Split into this, ...
10607 (record_btrace_stop_replaying): ... this, ...
10608 (record_btrace_clear_histories): ... and this.
10609 (init_record_btrace_ops): Init to_can_execute_reverse.
10610 * NEWS: Announce it.
10612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10614 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10615 (forward_target_decr_pc_after_break)
10616 (target_decr_pc_after_break): New.
10617 * target.c (forward_target_decr_pc_after_break)
10618 (target_decr_pc_after_break): New.
10619 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10620 instead of gdbarch_decr_pc_after_break.
10621 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10622 instead of gdbarch_decr_pc_after_break.
10623 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10624 instead of gdbarch_decr_pc_after_break.
10625 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10626 instead of gdbarch_decr_pc_after_break.
10627 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10628 instead of gdbarch_decr_pc_after_break.
10629 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10630 instead of gdbarch_decr_pc_after_break.
10632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10634 * btrace.c: Include regcache.h.
10635 (btrace_add_pc): New.
10636 (btrace_enable): Call btrace_add_pc.
10637 (btrace_is_empty): New.
10638 * btrace.h (btrace_is_empty): New.
10639 * record-btrace.c (require_btrace, record_btrace_info): Call
10642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10644 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10645 Support delta reads.
10646 (linux_disable_btrace): Change return type.
10647 * common/linux-btrace.h (linux_read_btrace): Change parameters
10648 and return type to allow error reporting. Update users.
10649 (linux_disable_btrace): Change return type. Update users.
10650 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10652 (btrace_error): New.
10653 (btrace_block) <begin>: Comment on BEGIN == 0.
10654 * btrace.c (btrace_compute_ftrace): Start from the end of
10656 (btrace_stitch_trace, btrace_clear_history): New.
10657 (btrace_fetch): Read delta trace, return if replaying.
10658 (btrace_clear): Move clear history code to btrace_clear_history.
10659 (parse_xml_btrace): Throw an error if parsing failed.
10660 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10661 and return type to allow error reporting.
10662 (target_read_btrace): Change parameters and return type to allow
10664 * target.c (target_read_btrace): Update.
10665 * remote.c (remote_read_btrace): Support delta reads. Pass
10667 * NEWS: Announce it.
10669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10671 * record.h (record_btrace_frame_unwind)
10672 (record_btrace_tailcall_frame_unwind): New declarations.
10673 * dwarf2-frame: Include record.h
10674 (dwarf2_frame_cfa): Throw an error for btrace frames.
10675 * record-btrace.c: Include hashtab.h.
10676 (btrace_get_bfun_name): New.
10677 (btrace_call_history): Call btrace_get_bfun_name.
10678 (struct btrace_frame_cache): New.
10680 (bfcache_hash, bfcache_eq, bfcache_new): New.
10681 (btrace_get_frame_function): New.
10682 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10683 (record_btrace_frame_this_id): Compute own id.
10684 (record_btrace_frame_prev_register): Provide PC, throw_error
10685 for all other registers.
10686 (record_btrace_frame_sniffer): Detect btrace frames.
10687 (record_btrace_tailcall_frame_sniffer): New.
10688 (record_btrace_frame_dealloc_cache): New.
10689 (record_btrace_frame_unwind): Add new functions.
10690 (record_btrace_tailcall_frame_unwind): New.
10691 (_initialize_record_btrace): Allocate cache.
10692 * btrace.c (btrace_clear): Call reinit_frame_cache.
10693 * NEWS: Announce it.
10695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10697 * record-btrace.c (record_btrace_set_replay)
10698 (record_btrace_goto_begin, record_btrace_goto_end)
10699 (record_btrace_goto): New.
10700 (init_record_btrace_ops): Initialize them.
10701 * NEWS: Announce it.
10703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10705 * record-btrace.c (record_btrace_find_new_threads)
10706 (record_btrace_thread_alive): New.
10707 (init_record_btrace_ops): Initialize to_find_new_threads and
10710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10712 * record-btrace.c (record_btrace_resume): New.
10713 (record_btrace_wait): New.
10714 (init_record_btrace_ops): Initialize to_wait and to_resume.
10716 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10718 * record-btrace.c (record_btrace_xfer_partial)
10719 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10720 (record_btrace_allow_memory_access): New.
10721 (init_record_btrace_ops): Initialize new methods.
10722 * target.c (raw_memory_xfer_partial): Bail out if target reports
10723 that this memory is not available.
10725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10727 * target.h (target_ops) <to_insert_breakpoint>
10728 <to_remove_breakpoint>: Add target_ops parameter.
10729 (forward_target_insert_breakpoint): New.
10730 (forward_target_remove_breakpoint): New.
10731 (memory_remove_breakpoint, memory_insert_breakpoint):
10732 Add target_ops parameter.
10733 * target.c (target_insert_breakpoint): Split into this and ...
10734 (forward_target_insert_breakpoint): ... this.
10735 (target_remove_breakpoint): Split into this and ...
10736 (forward_target_remove_breakpoint): ... this.
10737 (debug_to_insert_breakpoint): Add target_ops parameter.
10738 Call forward_target_insert_breakpoint.
10739 (debug_to_remove_breakpoint): Add target_ops parameter.
10740 Call forward_target_remove_breakpoint.
10741 (update_current_target): Do not inherit or default to_insert_breakpoint
10742 and to_remove_breakpoint.
10743 * corelow.c (ignore): Add target_ops parameter.
10744 * exec.c (ignore): Add target_ops parameter.
10745 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10746 Add target_ops parameter.
10747 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10748 Add target_ops parameter.
10749 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10750 Add target_ops parameter.
10751 * record-full.c (record_full_beneath_to_insert_breakpoint)
10752 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10753 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10754 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10755 (record_full_core_remove_breakpoint): Add target_ops parameter.
10757 (record_full_beneath_to_insert_breakpoint_ops)
10758 (record_full_beneath_to_remove_breakpoint_ops)
10759 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10760 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10761 tmp_to_remove_breakpoint_ops,
10762 record_full_beneath_to_insert_breakpoint_ops, and
10763 record_full_beneath_to_remove_breakpoint_ops.
10764 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10765 (m32r_remove_breakpoint): Add target_ops parameter.
10766 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10767 Add target_ops parameter.
10768 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10769 Add target_ops parameter.
10771 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 Markus Metzger <markus.t.metzger@intel.com>
10774 * record-btrace.c: Include frame-unwind.h.
10775 (record_btrace_frame_unwind_stop_reason)
10776 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10777 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10779 (init_record_btrace_ops): Install it.
10781 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10783 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10786 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10788 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10791 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10793 * frame-unwind.c: Include target.h.
10794 (frame_unwind_try_unwinder): New function with code from ...
10795 (frame_unwind_find_by_frame): ... here. New variable
10796 unwinder_from_target, call also target_get_unwinder)
10797 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10798 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10799 * target.h (struct target_ops): New fields to_get_unwinder and
10800 to_get_tailcall_unwinder.
10801 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10805 * record-btrace.c (record_btrace_fetch_registers)
10806 (record_btrace_store_registers)
10807 (record_btrace_to_prepare_to_store): New.
10808 (init_record_btrace_ops): Add the above.
10810 2014-01-16 Tom Tromey <tromey@redhat.com>
10812 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10813 * target.h (struct target_ops) <to_prepare_to_store>: Add
10815 (target_prepare_to_store): Add argument.
10816 * target.c (debug_to_prepare_to_store): Add argument.
10817 (update_current_target): Update.
10818 * remote.c (remote_prepare_to_store): Add 'self' argument.
10819 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10820 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10821 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10822 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10824 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10825 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10826 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10827 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10828 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10832 * btrace.h (replay) <replay>: New.
10833 (btrace_is_replaying): New.
10834 * btrace.c (btrace_clear): Free replay iterator.
10835 (btrace_is_replaying): New.
10836 * record-btrace.c (record_btrace_is_replaying): New.
10837 (record_btrace_info): Print insn number if replaying.
10838 (record_btrace_insn_history): Start at replay position.
10839 (record_btrace_call_history): Start at replay position.
10840 (init_record_btrace_ops): Init to_record_is_replaying.
10842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10844 * record-btrace.c (record_btrace_insn_history_range): Include
10846 (record_btrace_insn_history_from): Adjust range.
10847 (record_btrace_call_history_range): Include
10849 (record_btrace_call_history_from): Adjust range.
10850 * NEWS: Announce changes.
10852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10854 * record.h (enum record_print_flag)
10855 <record_print_indent_calls>: New.
10856 * record.c (get_call_history_modifiers): Recognize /c modifier.
10857 (_initialize_record): Document /c modifier.
10858 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10859 Reorder fields. Optionally indent the function name. Update
10861 * NEWS: Announce changes.
10863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10865 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10869 * btrace.c (ftrace_new_function): Start counting at one.
10870 * record-btrace.c (record_btrace_info): Adjust number of calls
10872 * NEWS: Announce it.
10874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10876 * record-btrace.c (btrace_call_history_insn_range): Print
10877 insn range as [begin, end].
10879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10881 * btrace.h (struct btrace_func_link): New.
10882 (enum btrace_function_flag): New.
10883 (struct btrace_inst): Rename to ...
10884 (struct btrace_insn): ...this. Update all users.
10885 (struct btrace_func) <ibegin, iend>: Remove.
10886 (struct btrace_func_link): New.
10887 (struct btrace_func): Rename to ...
10888 (struct btrace_function): ...this. Update all users.
10889 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10890 (number, level, flags>: New.
10891 (struct btrace_insn_iterator): Rename to ...
10892 (struct btrace_insn_history): ...this.
10894 (struct btrace_insn_iterator, btrace_call_iterator): New.
10895 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10896 (struct btrace_target_info) <begin, end, level>
10897 <insn_history, call_history>: New.
10898 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10899 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10900 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10901 (btrace_call_number, btrace_call_begin, btrace_call_end)
10902 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10903 (btrace_find_function_by_number, btrace_set_insn_history)
10904 (btrace_set_call_history): New.
10905 * btrace.c (btrace_init_insn_iterator)
10906 (btrace_init_func_iterator, compute_itrace): Remove.
10907 (ftrace_print_function_name, ftrace_print_filename)
10908 (ftrace_skip_file): Change
10909 parameter to const.
10910 (ftrace_init_func): Remove.
10911 (ftrace_debug): Use new btrace_function fields.
10912 (ftrace_function_switched): Also consider gaining and
10913 losing symbol information).
10914 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10915 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10916 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10918 (ftrace_new_function): Move. Remove debug print.
10919 (ftrace_update_lines, ftrace_update_insns): New.
10920 (ftrace_update_function): Check for call, ret, and jump.
10921 (compute_ftrace): Renamed to ...
10922 (btrace_compute_ftrace): ...this. Rewritten to compute call
10924 (btrace_fetch, btrace_clear): Updated.
10925 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10926 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10927 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10928 (btrace_call_number, btrace_call_begin, btrace_call_end)
10929 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10930 (btrace_find_function_by_number, btrace_set_insn_history)
10931 (btrace_set_call_history): New.
10932 * record-btrace.c (require_btrace): Use new btrace thread
10934 (record_btrace_info, btrace_insn_history)
10935 (record_btrace_insn_history, record_btrace_insn_history_range):
10936 Use new btrace thread info fields and new iterator.
10937 (btrace_func_history_src_line): Rename to ...
10938 (btrace_call_history_src_line): ...this. Use new btrace
10939 thread info fields.
10940 (btrace_func_history): Rename to ...
10941 (btrace_call_history): ...this. Use new btrace thread info
10942 fields and new iterator.
10943 (record_btrace_call_history, record_btrace_call_history_range):
10944 Use new btrace thread info fields and new iterator.
10946 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10948 * frame.h (frame_id_build_unavailable_stack_special): New.
10949 * frame.c (frame_id_build_unavailable_stack_special): New.
10951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10953 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10954 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10955 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10957 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10958 (i386_insn_is_jump, i386_jmp_p): New.
10959 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10960 insn_is_jump to gdbarch.
10961 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10962 * gdbarch.h: Regenerated.
10963 * gdbarch.c: Regenerated.
10964 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10965 (default_insn_is_jump): New.
10966 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10967 (default_insn_is_jump): New.
10969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10971 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10973 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10974 (btrace_read_type) <btrace_read_new>: Change to ...
10975 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10979 * common/linux-btrace.c (linux_read_btrace): Free trace from
10980 previous iteration.
10982 2014-01-15 Doug Evans <dje@google.com>
10984 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10987 2014-01-15 Tom Tromey <tromey@redhat.com>
10989 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10990 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10991 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10992 (set_objfile_main_name): New function.
10993 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10994 language_of_main>: New fields.
10995 (set_objfile_main_name): Declare.
10996 * symtab.c (find_main_name): Loop over objfiles to find the main
10998 (set_main_name): Now static.
10999 (get_main_info): Add comment.
11000 * symtab.h (set_main_name): Don't declare.
11002 2014-01-15 Tom Tromey <tromey@redhat.com>
11004 * symtab.c (main_progspace_key): New global.
11005 (struct main_info): New.
11006 (name_of_main, language_of_main): Remove.
11007 (get_main_info, main_info_cleanup): New function.
11008 (set_main_name, main_name, main_language): Use get_main_info.
11009 (_initialize_symtab): Initialize main_progspace_key.
11011 2014-01-15 Tom Tromey <tromey@redhat.com>
11013 * dbxread.c (process_one_symbol): Update.
11014 * dwarf2read.c (read_partial_die): Update.
11015 * symfile.c (set_initial_language): Call main_language.
11016 * symtab.c (language_of_main): Now static.
11017 (set_main_name): Add 'lang' parameter.
11018 (find_main_name): Update.
11019 (main_language): New function.
11020 (symtab_observer_executable_changed): Update.
11021 * symtab.h (set_main_name): Update.
11022 (language_of_main): Remove.
11023 (main_language): Declare.
11025 2014-01-15 Tom Tromey <tromey@redhat.com>
11027 * symfile.c (init_entry_point_info): Use new "initialized" field.
11029 * objfiles.h (struct entry_point) <initialized>: New field.
11030 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11031 (struct objfile) <ei>: ...here. Remove.
11032 * objfiles.c (entry_point_address_query): Update.
11034 2014-01-15 Tom Tromey <tromey@redhat.com>
11036 * objfiles.c (entry_point_address_query): Relocate entry point
11038 (objfile_relocate1): Do not relocate entry point address.
11039 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11040 <the_bfd_section_index>: New field.
11041 * symfile.c (init_entry_point_info): Find the entry point's
11044 2014-01-15 Tom Tromey <tromey@redhat.com>
11046 * solib-frv.c (enable_break): Use entry_point_address_query.
11048 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11050 * NEWS: Add note on improved process record-replay on
11051 arm*-linux* targets.
11053 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11055 * arm-tdep.c (enum arm_record_result): New enum.
11056 (arm_record_unsupported_insn): New function.
11057 (arm_record_coproc_data_proc): Removed.
11058 (thumb2_record_ld_st_multiple): New function.
11059 (thumb2_record_ld_st_dual_ex_tbb): New function.
11060 (thumb2_record_data_proc_sreg_mimm): New function.
11061 (thumb2_record_ps_dest_generic): New function.
11062 (thumb2_record_branch_misc_cntrl): New function.
11063 (thumb2_record_str_single_data): New function.
11064 (thumb2_record_ld_mem_hints): New function.
11065 (thumb2_record_ld_word): New function.
11066 (thumb2_record_lmul_lmla_div): New function.
11067 (thumb2_record_decode_insn_handler): New function.
11068 (decode_insn): Add thumb32 instruction handlers.
11070 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11072 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11073 (struct arm_linux_record_tdep): Declare.
11074 (arm_canonicalize_syscall): New function.
11075 (arm_all_but_pc_registers_record): New function.
11076 (arm_linux_syscall_record): New function.
11077 (arm_linux_init_abi): Add syscall recording constructs.
11078 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11079 decoding. (arm_record_coproc_data_proc): Update arm syscall
11081 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11082 <arm_syscall_record>: New field.
11083 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11088 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11089 register for push instruction recording.
11091 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11093 * arm-tdep.c (thumb_record_misc): Update to correct logical
11094 error while recording ldm, ldmia and pop instructions.
11096 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11098 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11100 2014-01-15 Pedro Alves <palves@redhat.com>
11102 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11103 (go32_resume, go32_fetch_registers, store_register)
11104 (go32_store_registers, go32_prepare_to_store)
11105 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11106 (go32_create_inferior, go32_can_run, go32_terminal_init)
11107 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11110 2014-01-15 Tom Tromey <tromey@redhat.com>
11112 * target.h (async_callback_ftype): New typedef.
11113 (struct target_ops) <to_async>: Use it.
11115 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11117 * python/py-value.c (get_field_type): Remove unnecessary curly
11118 braces for single-statement if block.
11120 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11122 * python/py-type.c (convert_field): Add missing empty line
11123 after declarations.
11125 2014-01-14 Doug Evans <dje@google.com>
11127 * symfile.h (expand_symtabs_matching): Renamed from
11128 expand_partial_symbol_names. Update prototype.
11129 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11130 * symfile.c (expand_symtabs_matching): Renamed from
11131 expand_partial_symbol_names. New args file_matcher, kind.
11132 Rename arg fun to symbol_matcher.
11133 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11134 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11135 ada_expand_partial_symbol_name.
11136 (ada_make_symbol_completion_list): Update to call
11137 expand_symtabs_matching.
11138 (ada_add_global_exceptions): Call expand_symtabs_matching.
11139 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11140 call map_symbol_filenames.
11141 * symtab.c (sources_info): Update to call map_symbol_filenames.
11142 (search_symbols): Call expand_symtabs_matching.
11143 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11144 (default_make_symbol_completion_list_break_on): Update to call
11145 expand_symtabs_matching.
11146 (make_source_files_completion_list): Update to call
11147 map_symbol_filenames.
11149 2014-01-14 Doug Evans <dje@google.com>
11151 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11152 (expand_symtabs_symbol_matcher_ftype): New typedef.
11153 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11154 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11155 * symfile.c (expand_partial_symbol_names): Update to use
11156 expand_symtabs_symbol_matcher_ftype.
11157 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11158 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11159 Arg name_matcher renamed to symbol_matcher.
11160 * psymtab.c (recursively_search_psymtabs): Update to use
11161 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11163 (expand_symtabs_matching_via_partial): Update to use
11164 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11165 Arg name_matcher renamed to symbol_matcher.
11167 2014-01-14 Doug Evans <dje@google.com>
11169 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11170 (map_partial_symbol_filenames): Ditto.
11171 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11172 (map_partial_symbol_filenames): Ditto.
11173 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11174 (map_partial_symbol_filenames): Ditto.
11175 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11176 (map_partial_symbol_filenames): Ditto.
11177 * symtab.c: Delete #include "psymtab.h".
11179 2014-01-14 Pedro Alves <palves@redhat.com>
11180 Tom Tromey <tromey@redhat.com>
11182 * infrun.c (use_displaced_stepping): Use find_record_target
11183 instead of RECORD_IS_USED.
11184 (adjust_pc_after_break): Use record_full_is_used instead of
11186 * record-btrace.c (record_btrace_open): Call record_preopen
11187 instead of checking RECORD_IS_USED.
11188 * record-full.c (record_full_shortname)
11189 (record_full_core_shortname): New globals.
11190 (record_full_is_used): New function.
11191 (find_full_open): Call record_preopen instead of checking
11193 (init_record_full_ops): Set the target's shortname to
11194 record_full_shortname.
11195 (init_record_full_core_ops): Set the target's shortname to
11196 record_full_core_shortname.
11197 * record-full.h (record_full_is_used): Declare.
11198 * record.c (find_record_target): Make extern.
11199 (record_preopen): New function.
11200 * record.h (RECORD_IS_USED): Delete macro.
11201 (find_record_target, record_preopen): Declare functions.
11203 2014-01-14 Yao Qi <yao@codesourcery.com>
11205 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11206 'len''s type to ULONGEST.
11207 (core_xfer_shared_libraries_aix): Likewise.
11208 * gdbarch.c, gdbarch.h: Regenerated.
11209 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11210 Change type of 'len' to ULONGEST.
11211 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11212 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11214 2014-01-14 Yao Qi <yao@codesourcery.com>
11216 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11217 type of 'len' to ULONGEST.
11218 (linux_xfer_osdata_processgroups): Likewise.
11219 (linux_xfer_osdata_threads): Likewise.
11220 (linux_xfer_osdata_fds): Likewise.
11221 (linux_xfer_osdata_isockets): Likewise.
11222 (linux_xfer_osdata_shm): Likewise.
11223 (linux_xfer_osdata_sem): Likewise.
11224 (linux_xfer_osdata_msg): Likewise.
11225 (linux_common_xfer_osdata): Likewise.
11226 (struct osdata_type) <getter>: Likewise.
11227 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11230 2014-01-14 Yao Qi <yao@codesourcery.com>
11232 * target.h (target_xfer_partial_ftype): Update.
11233 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11235 * aix-thread.c (aix_thread_xfer_partial): Change type of
11236 argument 'len' to ULONGEST.
11237 * auxv.c (procfs_xfer_auxv): Likewise.
11238 (ld_so_xfer_auxv): Likewise.
11239 (memory_xfer_auxv): Likewise.
11240 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11241 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11242 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11243 * corelow.c (core_xfer_partial): Likewise.
11244 * ctf.c (ctf_xfer_partial): Likewise.
11245 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11247 (darwin_read_dyld_info): Likewise.
11248 (darwin_xfer_partial): Likewise.
11249 * exec.c (section_table_xfer_memory_partial): Likewise.
11250 (exec_xfer_partial): Likewise.
11251 * exec.h (section_table_xfer_memory_partial): Update
11253 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11254 instead of plongest.
11255 (gnu_xfer_partial): Likewise.
11256 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11257 (ia64_hpux_xfer_solib_got): Likewise.
11258 (ia64_hpux_xfer_partial): Likewise.
11259 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11260 * inf-ptrace.c (inf_ptrace_xfer_partial):
11261 * inf-ttrace.c (inf_ttrace_xfer_partial):
11262 * linux-nat.c (linux_xfer_siginfo): Likewise.
11263 (linux_nat_xfer_partial): Likewise.
11264 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11265 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11266 * monitor.c (monitor_xfer_memory): Likewise.
11267 (monitor_xfer_partial): Likewise.
11268 * procfs.c (procfs_xfer_partial): Likewise.
11269 * record-full.c (record_full_xfer_partial): Likewise.
11270 (record_full_core_xfer_partial): Likewise.
11271 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11272 instead of plongest.
11273 (gdbsim_xfer_partial): Likewise.
11274 * remote.c (remote_xfer_partial): Likewise.
11275 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11276 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11278 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11279 (rs6000_xfer_shared_libraries): Likewise.
11280 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11281 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11282 (sparc_xfer_partial): Likewise.
11283 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11284 (spu_xfer_partial): Likewise.
11285 * spu-multiarch.c (spu_xfer_partial): Likewise.
11286 * target.c (target_read_live_memory): Likewise.
11287 (memory_xfer_live_readonly_partial): Likewise.
11288 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11289 (target_xfer_partial, default_xfer_partial): Likewise.
11290 (current_xfer_partial): Likewise.
11291 * tracepoint.c (tfile_xfer_partial): Likewise.
11292 * windows-nat.c (windows_xfer_memory): Likewise. Call
11293 pulongest instead of plongest.
11294 (windows_xfer_partial): Likewise.
11295 (windows_xfer_shared_libraries): Likewise.
11297 2014-01-14 Yao Qi <yao@codesourcery.com>
11299 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11300 target_xfer_partial_ftype.
11302 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11306 * valops.c (value_struct_elt_bitpos): New function
11307 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11308 object to 'None' if the field name is an empty string ("").
11309 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11310 attribute to look for a field when 'name' is 'None'.
11311 (get_field_type): New function
11313 2014-01-13 Doug Evans <dje@google.com>
11316 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11317 (try_open_dwop_file): Ditto.
11318 * gdb_bfd.c: #include "vec.h".
11319 (bfdp): New typedef.
11320 (struct gdb_bfd_data): New member included_bfds.
11321 (gdb_bfd_unref): Unref all included bfds.
11322 (gdb_bfd_record_inclusion): New function.
11323 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11325 2014-01-13 Tom Tromey <tromey@redhat.com>
11327 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11329 2014-01-13 Tom Tromey <tromey@redhat.com>
11331 * defs.h (use_windows): Remove.
11332 * gdb.c (main): Update.
11333 * main.c (captured_main, gdb_main): Update.
11334 * main.h (struct captured_main_args) <use_windows>: Remove.
11335 * top.c (use_windows): Remove.
11337 2014-01-13 Tom Tromey <tromey@redhat.com>
11339 * defs.h (deprecated_flush_hook): Remove.
11341 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11344 * linux-thread-db.c (try_thread_db_load): Add parameter
11345 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11346 (try_thread_db_load_from_pdir_1): Move it there from here.
11347 (try_thread_db_load_from_sdir): Update caller.
11348 (try_thread_db_load_from_dir): Move it there from here.
11350 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11352 * regformats/regdat.sh: Always rewrite the register file.
11354 2014-01-13 Pedro Alves <palves@redhat.com>
11356 * Makefile.in (CHECK_HEADERS): New variable.
11357 (check-headers:): New rule.
11359 2014-01-13 Tom Tromey <tromey@redhat.com>
11361 * cli/cli-setshow.c (do_set_command): Update.
11362 * defs.h (deprecated_set_hook): Remove.
11363 * top.c (deprecated_set_hook): Remove.
11365 2014-01-13 Pedro Alves <palves@redhat.com>
11367 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11368 the tracepoint if the PC is a pseudo-register.
11370 2014-01-13 Tom Tromey <tromey@redhat.com>
11372 * defs.h (XCALLOC): Remove.
11373 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11374 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11375 * dwarf2loc.c (allocate_piece_closure): Likewise.
11376 * elfread.c (elf_symfile_segments): Likewise.
11377 (elf_symfile_segments): Likewise.
11378 * gdbtypes.c (copy_type_recursive): Likewise.
11379 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11380 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11381 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11383 * mt-tdep.c (mt_gdbarch_init): Likewise.
11384 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11386 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11387 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11388 * registry.c (registry_alloc_data): Likewise.
11389 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11390 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11391 * serial.c (serial_fdopen_ops): Likewise.
11392 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11394 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11395 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11398 2014-01-13 Tom Tromey <tromey@redhat.com>
11400 * defs.h (XMALLOC): Remove.
11401 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11402 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11403 * cli-out.c (struct ui_out *): Likewise.
11404 * cli/cli-dump.c (add_dump_command): Likewise.
11405 (add_dump_command): Likewise.
11406 * complaints.c (get_complaints): Likewise.
11407 (find_complaint): Likewise.
11408 * dwarf2-frame.c (execute_cfa_program): Likewise.
11409 * dwarf2read.c (abbrev_table_read_table): Likewise.
11410 * gdbarch.sh: Likewise.
11411 * gdbarch.c: Rebuild.
11412 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11413 * interps.c (interp_new): Likewise.
11414 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11415 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11416 * mi/mi-console.c (mi_console_file_new): Likewise.
11417 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11418 * mi/mi-out.c (mi_out_new): Likewise.
11419 * mi/mi-parse.c (mi_parse): Likewise.
11420 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11421 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11422 * observer.c (xalloc_observer_list_node): Likewise.
11423 * regcache.c (regcache_xmalloc_1): Likewise.
11424 * reggroups.c (reggroup_new): Likewise.
11425 (_initialize_reggroup): Likewise.
11426 * registry.c (register_data_with_cleanup): Likewise.
11427 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11428 * ser-base.c (serial_ttystate): Likewise.
11429 * ser-mingw.c (make_pipe_state): Likewise.
11430 * ser-pipe.c (pipe_open): Likewise.
11431 * serial.c (serial_open): Likewise.
11432 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11433 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11434 (tui_alloc_win_info): Likewise.
11435 (tui_add_content_elements): Likewise.
11436 * tui/tui-file.c (tui_file_new): Likewise.
11437 * tui/tui-out.c (tui_out_new): Likewise.
11438 * ui-file.c (mem_file_new): Likewise.
11439 * ui-out.c (push_level): Likewise.
11440 (make_cleanup_ui_out_end): Likewise.
11441 (append_header_to_list): Likewise.
11442 (ui_out_new): Likewise.
11443 * user-regs.c (user_reg_add_builtin): Likewise.
11445 2014-01-13 Tom Tromey <tromey@redhat.com>
11447 * defs.h (XZALLOC): Remove.
11448 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11449 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11450 (get_ada_tasks_inferior_data): Likewise.
11451 * auto-load.c (get_auto_load_pspace_data): Likewise.
11452 * auxv.c (get_auxv_inferior_data): Likewise.
11453 * bfd-target.c (target_bfd_reopen): Likewise.
11454 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11455 (deprecated_insert_raw_breakpoint): Likewise.
11456 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11457 * corelow.c (core_open): Likewise.
11458 * darwin-nat.c (darwin_check_new_threads): Likewise.
11459 (darwin_attach_pid): Likewise.
11460 * dummy-frame.c (dummy_frame_push): Likewise.
11461 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11462 * dwarf2loc.c (allocate_piece_closure): Likewise.
11463 * elfread.c (elf_symfile_segments): Likewise.
11464 * eval.c (ptrmath_type_p): Likewise.
11465 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11466 * gdbtypes.c (alloc_type_arch): Likewise.
11467 (alloc_type_instance): Likewise.
11468 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11469 * inf-child.c (inf_child_can_use_agent): Likewise.
11470 * inflow.c (get_inflow_inferior_data): Likewise.
11471 * infrun.c (save_infcall_suspend_state): Likewise.
11472 * jit.c (jit_reader_load): Likewise.
11473 (get_jit_objfile_data): Likewise.
11474 (get_jit_program_space_data): Likewise.
11475 (jit_object_open_impl): Likewise.
11476 (jit_symtab_open_impl): Likewise.
11477 (jit_block_open_impl): Likewise.
11478 (jit_frame_sniffer): Likewise.
11479 * linux-fork.c (add_fork): Likewise.
11480 * maint.c (make_command_stats_cleanup): Likewise.
11481 * objfiles.c (get_objfile_pspace_data): Likewise.
11482 * opencl-lang.c (struct lval_closure): Likewise.
11483 * osdata.c (osdata_start_osdata): Likewise.
11484 * progspace.c (new_address_space): Likewise.
11485 (add_program_space): Likewise.
11486 * remote-sim.c (get_sim_inferior_data): Likewise.
11487 * sh-tdep.c (sh_gdbarch_init): Likewise.
11488 * skip.c (Ignore): Likewise.
11489 (skip_delete_command): Likewise.
11490 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11491 (library_list_start_library): Likewise.
11492 (solib_aix_current_sos): Likewise.
11493 * solib-darwin.c (get_darwin_info): Likewise.
11494 (darwin_current_sos): Likewise.
11495 * solib-dsbt.c (get_dsbt_info): Likewise.
11496 * solib-ia64-hpux.c (new_so_list): Likewise.
11497 (ia64_hpux_get_solib_linkage_addr): Likewise.
11498 * solib-spu.c (append_ocl_sos): Likewise.
11499 (spu_current_sos): Likewise.
11500 * solib-svr4.c (get_svr4_info): Likewise.
11501 (svr4_keep_data_in_core): Likewise.
11502 (library_list_start_library): Likewise.
11503 (svr4_default_sos): Likewise.
11504 (svr4_read_so_list): Likewise.
11505 * solib-target.c (library_list_start_library): Likewise.
11506 (solib_target_current_sos): Likewise.
11507 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11508 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11509 * symfile.c (default_symfile_segments): Likewise.
11510 * target-descriptions.c (tdesc_data_init): Likewise.
11511 (tdesc_create_reg): Likewise.
11512 (struct tdesc_type *): Likewise.
11513 (tdesc_create_vector): Likewise.
11514 (tdesc_set_struct_size): Likewise.
11515 (struct tdesc_type *): Likewise.
11516 (tdesc_free_feature): Likewise.
11517 (tdesc_create_feature): Likewise.
11518 * windows-nat.c (windows_add_thread): Likewise.
11519 (windows_make_so): Likewise.
11520 * xml-support.c (gdb_xml_body_text): Likewise.
11521 (gdb_xml_create_parser_and_cleanup): Likewise.
11522 (xml_process_xincludes): Likewise.
11523 * xml-syscall.c (allocate_syscalls_info): Likewise.
11524 (syscall_create_syscall_desc): Likewise.
11526 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11528 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11529 function, with code from i386_stap_parse_special_token.
11530 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11531 (i386_stap_parse_special_token): Move code to the two functions
11532 above; simplify it.
11534 2014-01-09 Pedro Alves <palves@redhat.com>
11535 Hui Zhu <hui@codesourcery.com>
11538 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11539 bp_err_string. Don't mark the location shlib_disabled if the
11540 error thrown wasn't a generic or memory error. Catch errors
11541 thrown while inserting breakpoints in overlayed code. Output
11542 error message of software breakpoints.
11543 * remote.c (remote_insert_breakpoint): If this breakpoint has
11544 target-side commands but this stub doesn't support Z0 packets,
11545 throw NOT_SUPPORTED_ERROR error.
11546 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11547 * target.h (target_insert_breakpoint): Extend comment.
11548 (target_insert_hw_breakpoint): Add comment.
11550 2014-01-08 Pedro Alves <palves@redhat.com>
11552 * remote.c (remote_add_thread): Add threads silently if starting
11554 (remote_notice_new_inferior): If in all-stop, and starting up,
11555 don't call notice_new_inferior.
11556 (get_current_thread): New function, factored out from ...
11557 (add_current_inferior_and_thread): ... this. Adjust.
11558 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11559 found any thread, then select the remote's current thread as GDB's
11560 current thread too.
11562 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11564 * NEWS: Create a new section for the next release branch.
11565 Rename the section of the current branch, now that it has
11568 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11570 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11571 * version.in: Bump version to 7.7.50.DATE-cvs.
11573 2014-01-08 Yao Qi <yao@codesourcery.com>
11575 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11576 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11577 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11579 2014-01-08 Yao Qi <yao@codesourcery.com>
11581 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11582 return value of bfd_get_filename to symbol_file_add_from_bfd.
11584 2014-01-08 Pierre Muller <muller@sourceware.org>
11587 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11588 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11589 to prim_record_mininal_symbol_and_info.
11590 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11591 in call to prim_record_minimal_symbol_and_info.
11592 (read_pe_exported_syms): Set index field of section_data.
11594 2014-01-07 Andrew Pinski <apinski@cavium.com>
11596 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11597 * features/aarch64.c: Regenerate.
11599 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11601 * target.c (return_null): Define.
11602 (update_current_target): Use it instead of return_zero for
11603 functions that return a pointer.
11605 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11607 * source.c (add_path): Fix check for duplicated paths in the previously
11610 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11612 * ada-lang.c: Remove duplicated include statements.
11613 * alphabsd-nat.c: Ditto.
11614 * amd64-darwin-tdep.c: Ditto.
11615 * amd64fbsd-nat.c: Ditto.
11616 * auto-load.c: Ditto.
11618 * breakpoint.c: Ditto.
11619 * dbxread.c: Ditto.
11620 * fork-child.c: Ditto.
11621 * gdb_usleep.c: Ditto.
11622 * i386-darwin-tdep.c: Ditto.
11623 * i386fbsd-nat.c: Ditto.
11625 * inferior.c: Ditto.
11626 * jv-lang.c: Ditto.
11627 * linux-nat.c: Ditto.
11628 * linux-tdep.c: Ditto.
11629 * m68kbsd-nat.c: Ditto.
11630 * m68klinux-nat.c: Ditto.
11631 * microblaze-tdep.c: Ditto.
11632 * mips-linux-tdep.c: Ditto.
11633 * mn10300-tdep.c: Ditto.
11634 * nto-tdep.c: Ditto.
11635 * opencl-lang.c: Ditto.
11637 * printcmd.c: Ditto.
11638 * regcache.c: Ditto.
11639 * remote-m32r-sdi.c: Ditto.
11641 * symfile.c: Ditto.
11643 * tilegx-linux-nat.c: Ditto.
11644 * tilegx-tdep.c: Ditto.
11645 * tracepoint.c: Ditto.
11647 * vaxbsd-nat.c: Ditto.
11648 * windows-nat.c: Ditto.
11649 * xtensa-tdep.c: Ditto.
11651 2014-01-07 Yao Qi <yao@codesourcery.com>
11653 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11655 2014-01-07 Yao Qi <yao@codesourcery.com>
11656 Joel Brobecker <brobecker@adacore.com>
11658 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11659 (pdc_write_regs): Likewise.
11660 (fetch_regs_kernel_thread): Likewise.
11661 (store_regs_kernel_thread): Likewise.
11663 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11665 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11666 tagged type objects to their actual type.
11668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11670 * ada-valprint.c (print_field_values): Add "language" parameter.
11671 Update calls to print_field_values and print_variant_part.
11672 Pass new parameter "language" in call to val_print instead
11673 of "current_language". Replace call to ada_val_print by call
11675 (print_variant_part): Add "language" parameter.
11676 (ada_val_print_struct_union): Update call to print_field_values.
11678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11680 * ada-valprint.c (ui_memcpy): Delete.
11681 (ada_print_floating): Update documentation. Add empty line
11682 between between function documentation and implementation.
11683 Delete variable "buffer". Use ui_file_xstrdup in place of
11684 ui_file_put. Minor adjustments following this change.
11686 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11688 * ada-valprint.c (ada_val_print_string): New function,
11689 extracted from ada_val_print_array.
11690 (ada_val_print_array): Replace extracted code by call
11691 to ada_val_print_string followed by a return. Move
11692 "else" branch to the function's top block.
11694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11696 * ada-valprint.c (ada_val_print_array): Move implementation
11697 down. Rename parameter "offset" and "val" into "offset_aligned"
11698 and "original_value" respectively. Add parameter "offset".
11700 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11702 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11703 re-organizing the code. Change the "???" message printed
11704 when target type is a TYPE_CODE_UNDEF into
11705 "<ref to undefined type>".
11707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11709 * ada-valprint.c (print_record): Delete, implementation inlined...
11710 (ada_val_print_struct_union): ... here. Remove call to
11711 ada_check_typedef in inlined implementation.
11713 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11715 * ada-valprint.c (ada_val_print_gnat_array): New function,
11716 extracted from ada_val_print_1;
11717 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11718 (ada_val_print_flt, ada_val_print_struct_union)
11719 (ada_val_print_ref): Likewise.
11720 (ada_val_print_1): Delete variables i and elttype.
11721 Replace extracted-out code by call to corresponding
11724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11726 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11730 * ada-valprint.c (ada_val_print_1): Replace calls to
11731 ada_val_print_1 by calls to val_print.
11733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11735 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11736 Update calls to self accordingly. Replace calls to c_val_print
11737 by calls to val_print.
11739 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11741 * ada-valprint.c (print_record): Delete declaration.
11742 (adjust_type_signedness, ada_val_print_1): Likewise.
11743 (ada_val_print): Move function implementation down.
11744 (print_variant_part, print_field_values, print_record):
11745 Move function implementation up.
11747 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11749 * python/py-type.c (typy_get_name): New function.
11750 (type_object_getset): Add entry for attribute "name".
11751 * NEWS: Add entry mentioning this new attribute.
11753 2014-01-07 Yao Qi <yao@codesourcery.com>
11755 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11758 2014-01-07 Yao Qi <yao@codesourcery.com>
11760 * gnu-nat.c (info_port_rights): Add qualifier const to
11763 2014-01-07 Yao Qi <yao@codesourcery.com>
11765 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11767 2014-01-07 Yao Qi <yao@codesourcery.com>
11769 * gnu-nat.c (make_inf) Update declaration.
11770 (make_inf): Make it static.
11771 (inf_set_traced): Likewise.
11772 (inf_port_to_thread, inf_task_died_status): Likewise.
11774 2014-01-07 Yao Qi <yao@codesourcery.com>
11776 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11778 2014-01-07 Yao Qi <yao@codesourcery.com>
11780 * gnu-nat.c (_initialize_gnu_nat): Declare.
11782 2014-01-07 Yao Qi <yao@codesourcery.com>
11784 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11786 (struct gdbarch_info) <byte_order>: Change type to
11788 <byte_order_for_code>: Likewise.
11789 * gdbarch.c, gdbarch.h: Regenerated.
11791 2014-01-06 Sasha Smundak <asmundak@google.com>
11793 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11795 2014-01-06 Tom Tromey <tromey@redhat.com>
11797 * doublest.c (convert_doublest_to_floatformat): Use const, not
11799 * somread.c (som_symtab_read): Likewise.
11801 2014-01-07 Hui Zhu <hui@codesourcery.com>
11803 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11804 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11805 (gdb_bfd_fopen): Ditto.
11806 (gdb_bfd_openr): Ditto.
11807 (gdb_bfd_openw): Ditto.
11808 (gdb_bfd_openr_iovec): Ditto.
11809 (gdb_bfd_fdopenr): Ditto.
11810 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11811 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11813 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11815 * symfile-mem.c (symbol_file_add_from_memory): Removed
11816 gdb_bfd_stash_filename.
11818 2014-01-03 Doug Evans <dje@google.com>
11820 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11823 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11825 Update year range in copyright notice of all files.
11827 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11829 * top.c (print_gdb_version): Set copyright year to 2014.
11831 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11833 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11835 For older changes see ChangeLog-2013.
11841 version-control: never