1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4 (nios2_core_regset): Add collect method.
6 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
9 platform-independent and don't write to read-only input buffer.
10 (m32r_linux_collect_gregset): New function.
11 (m32r_linux_gregset): Add collect method.
13 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
15 * hppa-linux-tdep.c (greg_map): Rename to...
16 (hppa_linux_gregmap): ... this. Also convert to
17 regcache_map_entry format.
18 (hppa_linux_supply_regset): Delete function.
19 (hppa_linux_supply_fpregset): Delete function. Move logic to...
20 (hppa_linux_fpregmap): ... this new register map.
21 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
22 register map, replace supply method by regcache_supply_regset, and
23 add collect method regcache_collect_regset.
25 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
27 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
28 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
29 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
30 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
31 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
32 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
33 (frv_linux_supply_gregset): Replace main logic by call to
34 regcache_supply_regset, but keep clearing gr32-gr63.
35 (frv_linux_supply_fpregset): Delete function.
36 (frv_linux_gregset): Refer to appropriate register map and add
37 regcache_collect_regset as the collect method.
38 (frv_linux_fpregset): Likewise. Also exchange the supply method
39 by regcache_supply_regset.
41 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
43 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
44 by call to alpha_supply_int_regs.
45 (alpha_linux_collect_gregset): New function.
46 (alpha_linux_supply_fpregset): Replace logic by call to
48 (alpha_linux_collect_fpregset): New function.
49 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
51 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
53 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
54 by call to regcache_collect_regset.
55 (supply_gregset, supply_fpregset): Call regcache_supply_regset
56 instead of aarch64_linux_supply_gregset/_fpregset.
57 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
58 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
60 (aarch64_linux_supply_gregset, supply_gregset_from_core)
61 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
62 functions. Move logic to ...
63 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
65 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
66 refer to new register maps, replace *_regset_from_core by
67 regcache_supply_regset, and also use regcache_collect_regset.
68 * aarch64-linux-tdep.h: Include "regset.h".
69 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
71 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
72 macros, moved from C source file.
73 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
74 variable declarations.
76 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
78 * s390-linux-nat.c: Include "regset.h".
79 (regmap_gregset): Delete macro.
80 (s390_64_regmap_gregset): New register map for
81 regcache_supply/_collect_regset.
82 (s390_64_gregset): New regset.
83 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
84 (regmap_fpregset): Delete macro.
85 (s390_native_supply, s390_native_collect): Delete functions.
86 (supply_gregset, fill_gregset): Replace s390-specific regmap
87 handling by a call to regcache_supply/_collect_regset.
88 (supply_fpregset, fill_fpregset): Call regcache_supply/
89 _collect_regset instead of s390_native_supply/_collect.
90 (fetch_regset, store_regset): Likewise. Also change the last
91 parameter to a regset instead of a regmap.
92 (s390_linux_fetch_inferior_registers)
93 (390_linux_store_inferior_registers): Adjust last parameter in
94 calls to fetch_regset and store_regset.
95 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
96 (s390_gregmap): ... this. Also make static const and convert to
97 regcache_map_entry format.
98 (s390x_regmap_gregset): Delete.
99 (s390_regmap_fpregset): Rename to...
100 (s390_fpregmap): ... this. Make static const and convert to
101 regcache_map_entry format.
102 (s390_regmap_upper, s390_regmap_last_break)
103 (s390x_regmap_last_break, s390_regmap_system_call)
104 (s390_regmap_tdb): Likewise.
105 (s390_supply_regset, s390_collect_regset): Remove functions.
106 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
108 (s390_gregset, s390_fpregset, s390_upper_regset)
109 (s390_last_break_regset, s390x_last_break_regset)
110 (s390_system_call_regset, s390_tdb_regset): Make global and
111 replace s390_supply/_collect_regset by regcache_supply/
113 (s390x_gregset): Delete.
114 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
115 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
116 (s390_regmap_fpregset, s390_regmap_last_break)
117 (s390x_regmap_last_break, s390_regmap_system_call)
118 (s390_regmap_tdb): Delete global variable declarations.
119 (s390_gregset, s390_fpregset, s390_last_break_regset)
120 (s390x_last_break_regset, s390_system_call_regset)
121 (s390_tdb_regset): New global variable declarations.
123 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
125 * regcache.c: Include "regset.h".
126 (regcache_transfer_regset): New local function.
127 (regcache_supply_regset, regcache_collect_regset): New functions.
128 * regcache.h (struct regcache_map_entry): New structure.
129 (REGCACHE_MAP_SKIP): New enum value.
130 (regcache_supply_regset, regcache_collect_regset): New prototypes.
132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
134 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
135 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
136 (ppc_linux_collect_gregset ): Likewise.
137 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
138 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
139 (ppc_collect_vrregset): Likewise.
140 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
143 2014-08-07 Yao Qi <yao@codesourcery.com>
145 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
146 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
147 * remote.c (remote_read_bytes): Likewise.
149 2014-08-07 Yao Qi <yao@codesourcery.com>
151 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
153 2014-08-07 Yao Qi <yao@codesourcery.com>
156 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
157 TARGET_XFER_OK instead of 0.
159 2014-08-07 Gary Benson <gbenson@redhat.com>
161 * common/common-defs.h: Include errno.h.
162 * defs.h: Do not include errno.h.
163 * ada-typeprint.c: Likewise.
164 * c-typeprint.c: Likewise.
165 * core-regset.c: Likewise.
166 * corefile.c: Likewise.
167 * corelow.c: Likewise.
168 * event-loop.c: Likewise.
169 * f-typeprint.c: Likewise.
170 * gnu-nat.c: Likewise.
171 * go32-nat.c: Likewise.
172 * i386gnu-nat.c: Likewise.
173 * m2-typeprint.c: Likewise.
174 * nat/linux-btrace.c: Likewise.
175 * p-typeprint.c: Likewise.
176 * procfs.c: Likewise.
177 * remote-sim.c: Likewise.
178 * rs6000-nat.c: Likewise.
179 * target.c: Likewise.
180 * typeprint.c: Likewise.
181 * ui-file.c: Likewise.
182 * valops.c: Likewise.
183 * valprint.c: Likewise.
185 2014-08-07 Gary Benson <gbenson@redhat.com>
187 * common/common-defs.h: Include string.h.
188 * aarch64-tdep.c: Do not include string.h.
189 * ada-exp.y: Likewise.
190 * ada-lang.c: Likewise.
191 * ada-lex.l: Likewise.
192 * ada-typeprint.c: Likewise.
193 * ada-valprint.c: Likewise.
194 * aix-thread.c: Likewise.
195 * alpha-linux-tdep.c: Likewise.
196 * alpha-mdebug-tdep.c: Likewise.
197 * alpha-nat.c: Likewise.
198 * alpha-osf1-tdep.c: Likewise.
199 * alpha-tdep.c: Likewise.
200 * alphanbsd-tdep.c: Likewise.
201 * amd64-dicos-tdep.c: Likewise.
202 * amd64-linux-tdep.c: Likewise.
203 * amd64-nat.c: Likewise.
204 * amd64-sol2-tdep.c: Likewise.
205 * amd64fbsd-tdep.c: Likewise.
206 * amd64obsd-tdep.c: Likewise.
207 * arch-utils.c: Likewise.
208 * arm-linux-nat.c: Likewise.
209 * arm-linux-tdep.c: Likewise.
210 * arm-tdep.c: Likewise.
211 * arm-wince-tdep.c: Likewise.
212 * armbsd-tdep.c: Likewise.
213 * armnbsd-nat.c: Likewise.
214 * armnbsd-tdep.c: Likewise.
215 * armobsd-tdep.c: Likewise.
216 * avr-tdep.c: Likewise.
217 * ax-gdb.c: Likewise.
218 * ax-general.c: Likewise.
219 * bcache.c: Likewise.
220 * bfin-tdep.c: Likewise.
221 * breakpoint.c: Likewise.
222 * build-id.c: Likewise.
223 * buildsym.c: Likewise.
225 * c-lang.c: Likewise.
226 * c-typeprint.c: Likewise.
227 * c-valprint.c: Likewise.
228 * charset.c: Likewise.
229 * cli-out.c: Likewise.
230 * cli/cli-cmds.c: Likewise.
231 * cli/cli-decode.c: Likewise.
232 * cli/cli-dump.c: Likewise.
233 * cli/cli-interp.c: Likewise.
234 * cli/cli-logging.c: Likewise.
235 * cli/cli-script.c: Likewise.
236 * cli/cli-setshow.c: Likewise.
237 * cli/cli-utils.c: Likewise.
238 * coffread.c: Likewise.
239 * common/agent.c: Likewise.
240 * common/buffer.c: Likewise.
241 * common/buffer.h: Likewise.
242 * common/common-utils.c: Likewise.
243 * common/filestuff.c: Likewise.
244 * common/filestuff.c: Likewise.
245 * common/format.c: Likewise.
246 * common/print-utils.c: Likewise.
247 * common/rsp-low.c: Likewise.
248 * common/signals.c: Likewise.
249 * common/vec.h: Likewise.
250 * common/xml-utils.c: Likewise.
251 * core-regset.c: Likewise.
252 * corefile.c: Likewise.
253 * corelow.c: Likewise.
254 * cp-abi.c: Likewise.
255 * cp-name-parser.y: Likewise.
256 * cp-support.c: Likewise.
257 * cp-valprint.c: Likewise.
258 * cris-tdep.c: Likewise.
260 * darwin-nat.c: Likewise.
261 * dbxread.c: Likewise.
262 * dcache.c: Likewise.
263 * demangle.c: Likewise.
264 * dicos-tdep.c: Likewise.
265 * disasm.c: Likewise.
266 * doublest.c: Likewise.
268 * dummy-frame.c: Likewise.
269 * dwarf2-frame.c: Likewise.
270 * dwarf2loc.c: Likewise.
271 * dwarf2read.c: Likewise.
272 * elfread.c: Likewise.
273 * environ.c: Likewise.
275 * event-loop.c: Likewise.
276 * exceptions.c: Likewise.
278 * expprint.c: Likewise.
280 * f-lang.c: Likewise.
281 * f-typeprint.c: Likewise.
282 * f-valprint.c: Likewise.
283 * fbsd-nat.c: Likewise.
284 * findcmd.c: Likewise.
285 * findvar.c: Likewise.
286 * fork-child.c: Likewise.
288 * frv-linux-tdep.c: Likewise.
289 * frv-tdep.c: Likewise.
291 * gdb_bfd.c: Likewise.
292 * gdbarch.c: Likewise.
293 * gdbarch.sh: Likewise.
294 * gdbtypes.c: Likewise.
295 * gnu-nat.c: Likewise.
296 * gnu-v2-abi.c: Likewise.
297 * gnu-v3-abi.c: Likewise.
298 * go-exp.y: Likewise.
299 * go-lang.c: Likewise.
300 * go32-nat.c: Likewise.
301 * guile/guile.c: Likewise.
302 * guile/scm-auto-load.c: Likewise.
303 * hppa-hpux-tdep.c: Likewise.
304 * hppa-linux-nat.c: Likewise.
305 * hppanbsd-tdep.c: Likewise.
306 * hppaobsd-tdep.c: Likewise.
307 * i386-cygwin-tdep.c: Likewise.
308 * i386-dicos-tdep.c: Likewise.
309 * i386-linux-tdep.c: Likewise.
310 * i386-nto-tdep.c: Likewise.
311 * i386-sol2-tdep.c: Likewise.
312 * i386-tdep.c: Likewise.
313 * i386bsd-tdep.c: Likewise.
314 * i386gnu-nat.c: Likewise.
315 * i386nbsd-tdep.c: Likewise.
316 * i386obsd-tdep.c: Likewise.
317 * i387-tdep.c: Likewise.
318 * ia64-libunwind-tdep.c: Likewise.
319 * ia64-linux-nat.c: Likewise.
320 * inf-child.c: Likewise.
321 * inf-ptrace.c: Likewise.
322 * inf-ttrace.c: Likewise.
323 * infcall.c: Likewise.
324 * infcmd.c: Likewise.
325 * inflow.c: Likewise.
326 * infrun.c: Likewise.
327 * interps.c: Likewise.
328 * iq2000-tdep.c: Likewise.
329 * irix5-nat.c: Likewise.
330 * jv-exp.y: Likewise.
331 * jv-lang.c: Likewise.
332 * jv-typeprint.c: Likewise.
333 * jv-valprint.c: Likewise.
334 * language.c: Likewise.
335 * linux-fork.c: Likewise.
336 * linux-nat.c: Likewise.
337 * lm32-tdep.c: Likewise.
338 * m2-exp.y: Likewise.
339 * m2-typeprint.c: Likewise.
340 * m32c-tdep.c: Likewise.
341 * m32r-linux-nat.c: Likewise.
342 * m32r-linux-tdep.c: Likewise.
343 * m32r-rom.c: Likewise.
344 * m32r-tdep.c: Likewise.
345 * m68hc11-tdep.c: Likewise.
346 * m68k-tdep.c: Likewise.
347 * m68kbsd-tdep.c: Likewise.
348 * m68klinux-nat.c: Likewise.
349 * m68klinux-tdep.c: Likewise.
350 * m88k-tdep.c: Likewise.
351 * machoread.c: Likewise.
352 * macrocmd.c: Likewise.
354 * mdebugread.c: Likewise.
355 * mem-break.c: Likewise.
356 * memattr.c: Likewise.
357 * memory-map.c: Likewise.
358 * mep-tdep.c: Likewise.
359 * mi/mi-cmd-break.c: Likewise.
360 * mi/mi-cmd-disas.c: Likewise.
361 * mi/mi-cmd-env.c: Likewise.
362 * mi/mi-cmd-stack.c: Likewise.
363 * mi/mi-cmd-var.c: Likewise.
364 * mi/mi-cmds.c: Likewise.
365 * mi/mi-console.c: Likewise.
366 * mi/mi-getopt.c: Likewise.
367 * mi/mi-interp.c: Likewise.
368 * mi/mi-main.c: Likewise.
369 * mi/mi-parse.c: Likewise.
370 * microblaze-rom.c: Likewise.
371 * microblaze-tdep.c: Likewise.
372 * mingw-hdep.c: Likewise.
373 * minidebug.c: Likewise.
374 * minsyms.c: Likewise.
375 * mips-irix-tdep.c: Likewise.
376 * mips-linux-tdep.c: Likewise.
377 * mips-tdep.c: Likewise.
378 * mips64obsd-tdep.c: Likewise.
379 * mipsnbsd-tdep.c: Likewise.
380 * mipsread.c: Likewise.
381 * mn10300-linux-tdep.c: Likewise.
382 * mn10300-tdep.c: Likewise.
383 * monitor.c: Likewise.
384 * moxie-tdep.c: Likewise.
385 * mt-tdep.c: Likewise.
386 * nat/linux-btrace.c: Likewise.
387 * nat/linux-osdata.c: Likewise.
388 * nat/linux-procfs.c: Likewise.
389 * nat/linux-ptrace.c: Likewise.
390 * nat/linux-waitpid.c: Likewise.
391 * nbsd-tdep.c: Likewise.
392 * nios2-linux-tdep.c: Likewise.
393 * nto-procfs.c: Likewise.
394 * nto-tdep.c: Likewise.
395 * objc-lang.c: Likewise.
396 * objfiles.c: Likewise.
397 * opencl-lang.c: Likewise.
399 * osdata.c: Likewise.
401 * p-lang.c: Likewise.
402 * p-typeprint.c: Likewise.
404 * posix-hdep.c: Likewise.
405 * ppc-linux-nat.c: Likewise.
406 * ppc-sysv-tdep.c: Likewise.
407 * ppcfbsd-tdep.c: Likewise.
408 * ppcnbsd-tdep.c: Likewise.
409 * ppcobsd-tdep.c: Likewise.
410 * printcmd.c: Likewise.
411 * procfs.c: Likewise.
412 * prologue-value.c: Likewise.
413 * python/py-auto-load.c: Likewise.
414 * python/py-gdb-readline.c: Likewise.
415 * ravenscar-thread.c: Likewise.
416 * regcache.c: Likewise.
417 * registry.c: Likewise.
418 * remote-fileio.c: Likewise.
419 * remote-m32r-sdi.c: Likewise.
420 * remote-mips.c: Likewise.
421 * remote-notif.c: Likewise.
422 * remote-sim.c: Likewise.
423 * remote.c: Likewise.
424 * reverse.c: Likewise.
425 * rs6000-aix-tdep.c: Likewise.
426 * ser-base.c: Likewise.
427 * ser-go32.c: Likewise.
428 * ser-mingw.c: Likewise.
429 * ser-pipe.c: Likewise.
430 * ser-tcp.c: Likewise.
431 * ser-unix.c: Likewise.
432 * serial.c: Likewise.
433 * sh-tdep.c: Likewise.
434 * sh64-tdep.c: Likewise.
435 * shnbsd-tdep.c: Likewise.
437 * sol-thread.c: Likewise.
438 * solib-dsbt.c: Likewise.
439 * solib-frv.c: Likewise.
440 * solib-osf.c: Likewise.
441 * solib-som.c: Likewise.
442 * solib-spu.c: Likewise.
443 * solib-target.c: Likewise.
445 * somread.c: Likewise.
446 * source.c: Likewise.
447 * sparc-nat.c: Likewise.
448 * sparc-sol2-tdep.c: Likewise.
449 * sparc-tdep.c: Likewise.
450 * sparc64-tdep.c: Likewise.
451 * sparc64fbsd-tdep.c: Likewise.
452 * sparc64nbsd-tdep.c: Likewise.
453 * sparcnbsd-tdep.c: Likewise.
454 * spu-linux-nat.c: Likewise.
455 * spu-multiarch.c: Likewise.
456 * spu-tdep.c: Likewise.
457 * stabsread.c: Likewise.
459 * std-regs.c: Likewise.
460 * symfile.c: Likewise.
461 * symmisc.c: Likewise.
462 * symtab.c: Likewise.
463 * target.c: Likewise.
464 * thread.c: Likewise.
465 * tilegx-linux-nat.c: Likewise.
466 * tilegx-tdep.c: Likewise.
468 * tracepoint.c: Likewise.
469 * tui/tui-command.c: Likewise.
470 * tui/tui-data.c: Likewise.
471 * tui/tui-disasm.c: Likewise.
472 * tui/tui-file.c: Likewise.
473 * tui/tui-layout.c: Likewise.
474 * tui/tui-out.c: Likewise.
475 * tui/tui-regs.c: Likewise.
476 * tui/tui-source.c: Likewise.
477 * tui/tui-stack.c: Likewise.
478 * tui/tui-win.c: Likewise.
479 * tui/tui-windata.c: Likewise.
480 * tui/tui-winsource.c: Likewise.
481 * typeprint.c: Likewise.
482 * ui-file.c: Likewise.
483 * ui-out.c: Likewise.
484 * user-regs.c: Likewise.
486 * v850-tdep.c: Likewise.
487 * valarith.c: Likewise.
488 * valops.c: Likewise.
489 * valprint.c: Likewise.
491 * varobj.c: Likewise.
492 * vax-tdep.c: Likewise.
493 * vaxnbsd-tdep.c: Likewise.
494 * vaxobsd-tdep.c: Likewise.
495 * windows-nat.c: Likewise.
496 * xcoffread.c: Likewise.
497 * xml-support.c: Likewise.
498 * xstormy16-tdep.c: Likewise.
499 * xtensa-linux-nat.c: Likewise.
501 2014-08-07 Gary Benson <gbenson@redhat.com>
503 * common/common-defs.h: Include gdb_assert.h.
504 * aarch64-tdep.c: Do not include gdb_assert.h.
505 * addrmap.c: Likewise.
506 * aix-thread.c: Likewise.
507 * alpha-linux-tdep.c: Likewise.
508 * alpha-mdebug-tdep.c: Likewise.
509 * alphanbsd-tdep.c: Likewise.
510 * amd64-nat.c: Likewise.
511 * amd64-tdep.c: Likewise.
512 * amd64bsd-nat.c: Likewise.
513 * amd64fbsd-nat.c: Likewise.
514 * amd64fbsd-tdep.c: Likewise.
515 * amd64nbsd-nat.c: Likewise.
516 * amd64nbsd-tdep.c: Likewise.
517 * amd64obsd-nat.c: Likewise.
518 * amd64obsd-tdep.c: Likewise.
519 * arch-utils.c: Likewise.
520 * arm-tdep.c: Likewise.
521 * armbsd-tdep.c: Likewise.
523 * bcache.c: Likewise.
524 * bfin-tdep.c: Likewise.
525 * blockframe.c: Likewise.
526 * breakpoint.c: Likewise.
527 * bsd-kvm.c: Likewise.
528 * bsd-uthread.c: Likewise.
529 * buildsym.c: Likewise.
531 * c-lang.c: Likewise.
532 * charset.c: Likewise.
533 * cleanups.c: Likewise.
534 * cli-out.c: Likewise.
535 * cli/cli-decode.c: Likewise.
536 * cli/cli-dump.c: Likewise.
537 * cli/cli-logging.c: Likewise.
538 * cli/cli-script.c: Likewise.
539 * cli/cli-utils.c: Likewise.
540 * coffread.c: Likewise.
541 * common/common-utils.c: Likewise.
542 * common/queue.h: Likewise.
543 * common/signals.c: Likewise.
544 * common/vec.h: Likewise.
545 * complaints.c: Likewise.
546 * completer.c: Likewise.
547 * corelow.c: Likewise.
548 * cp-abi.c: Likewise.
549 * cp-name-parser.y: Likewise.
550 * cp-namespace.c: Likewise.
551 * cp-support.c: Likewise.
552 * cris-tdep.c: Likewise.
553 * dbxread.c: Likewise.
554 * dictionary.c: Likewise.
555 * doublest.c: Likewise.
557 * dummy-frame.c: Likewise.
558 * dwarf2-frame-tailcall.c: Likewise.
559 * dwarf2-frame.c: Likewise.
560 * dwarf2expr.c: Likewise.
561 * dwarf2loc.c: Likewise.
562 * dwarf2read.c: Likewise.
564 * event-loop.c: Likewise.
565 * exceptions.c: Likewise.
566 * expprint.c: Likewise.
567 * f-valprint.c: Likewise.
568 * fbsd-nat.c: Likewise.
569 * findvar.c: Likewise.
570 * frame-unwind.c: Likewise.
572 * frv-tdep.c: Likewise.
574 * gdb-dlfcn.c: Likewise.
575 * gdb_bfd.c: Likewise.
576 * gdbarch.c: Likewise.
577 * gdbarch.sh: Likewise.
578 * gdbtypes.c: Likewise.
579 * gnu-nat.c: Likewise.
580 * gnu-v3-abi.c: Likewise.
581 * go-lang.c: Likewise.
582 * guile/scm-exception.c: Likewise.
583 * guile/scm-gsmob.c: Likewise.
584 * guile/scm-lazy-string.c: Likewise.
585 * guile/scm-math.c: Likewise.
586 * guile/scm-pretty-print.c: Likewise.
587 * guile/scm-safe-call.c: Likewise.
588 * guile/scm-utils.c: Likewise.
589 * guile/scm-value.c: Likewise.
590 * h8300-tdep.c: Likewise.
591 * hppa-hpux-nat.c: Likewise.
592 * hppa-tdep.c: Likewise.
593 * hppanbsd-tdep.c: Likewise.
594 * hppaobsd-tdep.c: Likewise.
595 * i386-darwin-nat.c: Likewise.
596 * i386-darwin-tdep.c: Likewise.
597 * i386-nto-tdep.c: Likewise.
598 * i386-tdep.c: Likewise.
599 * i386bsd-nat.c: Likewise.
600 * i386fbsd-tdep.c: Likewise.
601 * i386gnu-nat.c: Likewise.
602 * i386nbsd-tdep.c: Likewise.
603 * i386obsd-tdep.c: Likewise.
604 * i387-tdep.c: Likewise.
605 * ia64-libunwind-tdep.c: Likewise.
606 * ia64-tdep.c: Likewise.
607 * inf-ptrace.c: Likewise.
608 * inf-ttrace.c: Likewise.
609 * infcall.c: Likewise.
610 * infcmd.c: Likewise.
611 * infrun.c: Likewise.
612 * inline-frame.c: Likewise.
613 * interps.c: Likewise.
614 * jv-lang.c: Likewise.
615 * jv-typeprint.c: Likewise.
616 * linux-fork.c: Likewise.
617 * linux-nat.c: Likewise.
618 * linux-thread-db.c: Likewise.
619 * m32c-tdep.c: Likewise.
620 * m32r-linux-nat.c: Likewise.
621 * m32r-tdep.c: Likewise.
622 * m68k-tdep.c: Likewise.
623 * m68kbsd-nat.c: Likewise.
624 * m68kbsd-tdep.c: Likewise.
625 * m88k-tdep.c: Likewise.
626 * machoread.c: Likewise.
627 * macroexp.c: Likewise.
628 * macrotab.c: Likewise.
630 * mdebugread.c: Likewise.
631 * memory-map.c: Likewise.
632 * mep-tdep.c: Likewise.
633 * mi/mi-common.c: Likewise.
634 * microblaze-tdep.c: Likewise.
635 * mingw-hdep.c: Likewise.
636 * mips-linux-nat.c: Likewise.
637 * mips-linux-tdep.c: Likewise.
638 * mips-tdep.c: Likewise.
639 * mips64obsd-tdep.c: Likewise.
640 * mipsnbsd-tdep.c: Likewise.
641 * mn10300-linux-tdep.c: Likewise.
642 * mn10300-tdep.c: Likewise.
643 * moxie-tdep.c: Likewise.
644 * mt-tdep.c: Likewise.
645 * nat/linux-btrace.c: Likewise.
646 * nat/linux-osdata.c: Likewise.
647 * nat/linux-ptrace.c: Likewise.
648 * nat/mips-linux-watch.c: Likewise.
649 * nios2-linux-tdep.c: Likewise.
650 * nios2-tdep.c: Likewise.
651 * objc-lang.c: Likewise.
652 * objfiles.c: Likewise.
653 * obsd-nat.c: Likewise.
654 * opencl-lang.c: Likewise.
657 * ppc-linux-nat.c: Likewise.
658 * ppc-sysv-tdep.c: Likewise.
659 * ppcfbsd-nat.c: Likewise.
660 * ppcfbsd-tdep.c: Likewise.
661 * ppcnbsd-nat.c: Likewise.
662 * ppcnbsd-tdep.c: Likewise.
663 * ppcobsd-nat.c: Likewise.
664 * ppcobsd-tdep.c: Likewise.
665 * printcmd.c: Likewise.
666 * procfs.c: Likewise.
667 * prologue-value.c: Likewise.
668 * psymtab.c: Likewise.
669 * python/py-lazy-string.c: Likewise.
670 * python/py-value.c: Likewise.
671 * regcache.c: Likewise.
672 * reggroups.c: Likewise.
673 * registry.c: Likewise.
674 * remote-sim.c: Likewise.
675 * remote.c: Likewise.
676 * rs6000-aix-tdep.c: Likewise.
677 * rs6000-tdep.c: Likewise.
678 * s390-linux-tdep.c: Likewise.
679 * score-tdep.c: Likewise.
680 * ser-base.c: Likewise.
681 * ser-mingw.c: Likewise.
682 * sh-tdep.c: Likewise.
683 * sh64-tdep.c: Likewise.
684 * solib-darwin.c: Likewise.
685 * solib-spu.c: Likewise.
686 * solib-svr4.c: Likewise.
687 * source.c: Likewise.
688 * sparc-nat.c: Likewise.
689 * sparc-sol2-tdep.c: Likewise.
690 * sparc-tdep.c: Likewise.
691 * sparc64-sol2-tdep.c: Likewise.
692 * sparc64-tdep.c: Likewise.
693 * sparc64fbsd-tdep.c: Likewise.
694 * sparc64nbsd-tdep.c: Likewise.
695 * sparc64obsd-tdep.c: Likewise.
696 * sparcnbsd-tdep.c: Likewise.
697 * sparcobsd-tdep.c: Likewise.
698 * spu-multiarch.c: Likewise.
699 * spu-tdep.c: Likewise.
700 * stabsread.c: Likewise.
702 * symfile.c: Likewise.
703 * symtab.c: Likewise.
704 * target-descriptions.c: Likewise.
705 * target-memory.c: Likewise.
706 * target.c: Likewise.
707 * tic6x-linux-tdep.c: Likewise.
708 * tic6x-tdep.c: Likewise.
709 * tilegx-linux-nat.c: Likewise.
710 * tilegx-tdep.c: Likewise.
712 * tramp-frame.c: Likewise.
713 * tui/tui-out.c: Likewise.
714 * tui/tui-winsource.c: Likewise.
715 * ui-out.c: Likewise.
716 * user-regs.c: Likewise.
718 * v850-tdep.c: Likewise.
719 * valops.c: Likewise.
721 * varobj.c: Likewise.
722 * vax-nat.c: Likewise.
723 * xml-syscall.c: Likewise.
724 * xml-tdesc.c: Likewise.
725 * xstormy16-tdep.c: Likewise.
726 * xtensa-linux-nat.c: Likewise.
727 * xtensa-tdep.c: Likewise.
729 2014-08-07 Gary Benson <gbenson@redhat.com>
731 * common/common-defs.h: Include common-utils.h.
732 * defs.h: Do not include common-utils.h.
733 * common/gdb_assert.h: Likewise.
734 * darwin-nat.h: Likewise.
735 * nat/linux-btrace.c: Likewise.
736 * target/waitstatus.h: Likewise.
738 2014-08-07 Gary Benson <gbenson@redhat.com>
740 * common/common-defs.h: Include ptid.h.
741 * defs.h: Do not include ptid.h.
742 * inferior.h: Likewise.
743 * infrun.h: Likewise.
744 * nat/linux-btrace.h: Likewise.
745 * nat/linux-osdata.h: Likewise.
746 * target/waitstatus.h: Likewise.
748 2014-08-07 Gary Benson <gbenson@redhat.com>
750 * common/common-defs.h: Include gdb_locale.h.
751 * defs.h: Do not include gdb_locale.h.
753 2014-08-07 Gary Benson <gbenson@redhat.com>
755 * common/common-defs.h: Include gdb/signals.h.
756 * defs.h: Do not include gdb/signals.h.
758 2014-08-07 Gary Benson <gbenson@redhat.com>
760 * common/common-defs.h: Include pathmax.h.
761 * defs.h: Do not include pathmax.h.
763 2014-08-07 Gary Benson <gbenson@redhat.com>
765 * common/common-defs.h: Include libiberty.h.
766 * defs.h: Do not include libiberty.h.
767 * common/queue.h: Likewise.
768 * cp-name-parser.y: Likewise.
769 * mi/mi-cmd-catch.c: Likewise.
770 * python/python.c: Likewise.
772 2014-08-07 Gary Benson <gbenson@redhat.com>
774 * common/common-defs.h: Include ansidecl.h.
775 * defs.h: Do not include ansidecl.h.
776 * common/buffer.h: Likewise.
777 * common/common-utils.h: Likewise.
779 2014-08-07 Gary Benson <gbenson@redhat.com>
781 * common/common-defs.h: Include stddef.h.
782 * defs.h: Do not include stddef.h.
783 * common/common-utils.h: Likewise.
784 * amd64fbsd-nat.c: Likewise.
785 * bcache.c: Likewise.
786 * charset.c: Likewise.
787 * common/buffer.h: Likewise.
788 * common/vec.h: Likewise.
789 * i386bsd-nat.c: Likewise.
790 * nat/linux-btrace.h: Likewise.
791 * ppcfbsd-nat.c: Likewise.
792 * ppcnbsd-tdep.h: Likewise.
793 * ppcobsd-nat.c: Likewise.
794 * ppcobsd-tdep.h: Likewise.
795 * python/py-gdb-readline.c: Likewise.
797 2014-08-07 Gary Benson <gbenson@redhat.com>
799 * common/common-defs.h: Include stdarg.h.
800 * defs.h: Do not include stdarg.h.
801 * ada-lang.c: Likewise.
802 * common/common-utils.h: Likewise.
803 * guile/scm-string.c: Likewise.
804 * guile/scm-utils.c: Likewise.
805 * m32c-tdep.c: Likewise.
807 2014-08-07 Gary Benson <gbenson@redhat.com>
809 * common/common-defs.h: Include stdlib.h.
810 * defs.h: Do not include stdlib.h.
811 * addrmap.c: Likewise.
812 * bcache.c: Likewise.
813 * common/buffer.c: Likewise.
814 * common/common-utils.c: Likewise.
815 * cp-name-parser.y: Likewise.
816 * go32-nat.c: Likewise.
817 * mn10300-linux-tdep.c: Likewise.
818 * nat/linux-osdata.c: Likewise.
819 * tui/tui.c: Likewise.
820 * windows-nat.c: Likewise.
822 2014-08-07 Gary Benson <gbenson@redhat.com>
824 * common/common-defs.h: Include stdio.h.
825 * defs.h: Do not include stdio.h.
826 * ada-lang.c: Likewise.
827 * common/buffer.c: Likewise.
828 * common/common-utils.c: Likewise.
829 * cp-name-parser.y: Likewise.
830 * gnu-nat.c: Likewise.
831 * go32-nat.c: Likewise.
832 * i386gnu-nat.c: Likewise.
833 * proc-api.c: Likewise.
834 * proc-events.c: Likewise.
835 * proc-flags.c: Likewise.
836 * proc-why.c: Likewise.
837 * python/python-internal.h: Likewise.
838 * target-memory.c: Likewise.
839 * tui/tui-io.c: Likewise.
840 * tui/tui.c: Likewise.
842 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
844 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
845 (scan_dyntag_auxv): Same.
847 2014-08-06 Yao Qi <yao@codesourcery.com>
849 * amd64-linux-nat.c: Remove duplicated include
851 * i386-linux-nat.c: Likewise.
853 2014-08-06 Yao Qi <yao@codesourcery.com>
855 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
856 operand" with "Special opcode" in comments.
858 2014-08-05 Gary Benson <gbenson@redhat.com>
860 * interps.c (initialize_interps): Remove prototype.
861 (interpreter_initialized): Remove static global.
862 (interp_add): Do not call initialize_interps.
863 (initialize_interps): Remove function.
865 2014-08-05 Gary Benson <gbenson@redhat.com>
867 * utils.c (vwarning): Remove spurious va_end.
869 2014-08-05 Alan Modra <amodra@gmail.com>
871 * charset.c (convert_between_encodings): Cast result of obstack_base.
872 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
873 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
874 (read_unwind_info): Use size_t for some locals.
875 * jit.c (finalize_symtab): Likewise.
876 * utils.c (hashtab_obstack_allocate): Likewise.
877 * symmisc.c (print_objfile_statistics): Update format strings.
879 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
881 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
882 (Changes in GDB 7.8): ... here.
884 2014-08-04 Tom Tromey <tromey@redhat.com>
886 * target.c (set_targetdebug): New function.
887 (initialize_targets): Pass set_targetdebug when creating "set
890 2014-08-01 Joel Brobecker <brobecker@adacore.com>
892 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
893 if detecting a variable-sized field that is not the last field.
894 Fix struct type length computation.
896 2014-08-01 Joel Brobecker <brobecker@adacore.com>
898 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
901 2014-08-01 Joel Brobecker <brobecker@adacore.com>
903 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
904 Remove "+ 8" offset in computation of CHAIN_VMA.
906 2014-07-31 Doug Evans <dje@google.com>
908 * inflow.c (child_terminal_inferior): Add comment.
909 (child_terminal_ours_for_output): Add comment.
910 (child_terminal_ours): Add comment.
911 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
912 (linux_nat_terminal_ours): Add comment.
914 2014-07-31 Gary Benson <gbenson@redhat.com>
916 * common/btrace-common.h: Do not include defs.h or server.h.
917 * nat/mips-linux-watch.h: Likewise.
918 * gdb-dlfcn.h: Do not include defs.h.
919 * tracefile.h: Likewise.
921 2014-07-30 Roland McGrath <mcgrathr@google.com>
923 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
925 2014-07-30 Tom Tromey <tromey@redhat.com>
927 * bsd-kvm.c (bsd_kvm_open): Constify.
928 * corelow.c (core_open): Constify.
929 * ctf.c (ctf_open): Constify.
930 * dbug-rom.c (dbug_open): Constify.
931 * exec.c (exec_open): Constify.
932 * m32r-rom.c (m32r_open, mon2000_open): Constify.
933 * microblaze-rom.c (picobug_open): Constify.
934 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
936 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
937 * record-btrace.c (record_btrace_open): Constify.
938 * record-full.c (record_full_core_open_1, record_full_open_1)
939 (record_full_open): Constify.
940 * remote-m32r-sdi.c (m32r_open): Constify.
941 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
942 (rockhopper_open, lsi_open): Constify.
943 * remote-sim.c (gdbsim_open): Constify.
944 * remote.c (remote_open, extended_remote_open, remote_open_1):
946 * target.h (struct target_ops) <to_open>: Make "arg" const.
947 * tracefile-tfile.c (tfile_open): Constify.
949 2014-07-30 Tom Tromey <tromey@redhat.com>
951 * breakpoint.c (map_breakpoint_numbers): Update.
952 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
953 (get_number_const): New function.
954 (get_number): Rewrite using get_number_const.
955 (init_number_or_range): Make "string" const.
956 (number_is_in_list): Make "list" const.
957 * cli/cli-utils.h (get_number_const): Declare.
958 (struct get_number_or_range_state) <string, end_ptr>: Now const.
959 (init_number_or_range, number_is_in_list): Update.
960 * printcmd.c (map_display_numbers): Update.
961 * value.c (value_from_history_ref): Constify.
962 * value.h (value_from_history_ref): Update.
964 2014-07-30 Tom Tromey <tromey@redhat.com>
966 * corefile.c (hook_type, call_extra_exec_file_hooks)
967 (specify_exec_file_hook): Constify.
968 * exec.c (exec_file_attach): Make "filename" const.
969 * gdbcore.h (deprecated_exec_file_display_hook)
970 (specify_exec_file_hook, exec_file_attach): Constify.
971 * main.c (captured_main): Use catch_command_errors_const.
973 2014-07-30 Tom Tromey <tromey@redhat.com>
975 * target.c (open_target): New function.
976 (add_target_with_completer, add_deprecated_target_alias): Use
977 set_cmd_sfunc, set_cmd_context.
978 (debug_to_open): Remove.
979 (setup_target_debug): Update.
981 2014-07-30 Yao Qi <yao@codesourcery.com>
983 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
985 * parse.c (exp_iterate): Update comments.
987 2014-07-30 Gary Benson <gbenson@redhat.com>
989 * common/common-defs.h: New file.
990 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
991 * defs.h: Include common-defs.h.
992 Do not include config.h or build-gnulib/config.h.
994 2014-07-30 Gary Benson <gbenson@redhat.com>
996 * common/common-utils.h: Do not include config.h.
997 * nat/linux-btrace.h: Likewise.
999 2014-07-30 Gary Benson <gbenson@redhat.com>
1001 * btrace.c: Include defs.h.
1002 * common/ptid.c: Include defs.h or server.h as appropriate.
1003 * nat/mips-linux-watch.c: Likewise.
1005 2014-07-29 Tom Tromey <tromey@redhat.com>
1007 * target.c (target_is_pushed): Simplify.
1009 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1013 2014-07-29 Yao Qi <yao@codesourcery.com>
1016 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1018 2014-07-28 Doug Evans <xdje42@gmail.com>
1021 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1022 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1025 2014-07-28 Will Newton <will.newton@linaro.org>
1027 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1028 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1029 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1030 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1031 (THUMB2_EABI_SYSCALL): Likewise.
1032 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1034 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1035 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1037 2014-07-27 Doug Evans <xdje42@gmail.com>
1039 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1041 2014-07-27 Doug Evans <xdje42@gmail.com>
1043 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1045 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1046 Doug Evans <xdje42@gmail.com>
1049 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1050 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1051 * configure.ac: Try to use guild to compile an scm file, if it fails
1052 then disable guile support.
1053 * configure: Regenerate.
1054 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1056 (GUILE_COMPILED_FILES): New variable.
1057 (GUILE_FILES) Update.
1058 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1059 (stamp-guile): Compile scm files.
1060 * guile/guile.c (boot_guile_support): New function.
1061 (standard_throw_args_p): New function.
1062 (print_standard_throw_error, print_throw_error): New functions.
1063 (handle_boot_error): New function.
1064 (initialize_scheme_side): Rewrite to call boot_guile_support.
1065 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1066 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1068 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1069 Doug Evans <xdje42@gmail.com>
1072 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1073 * guile/lib/gdb/support.scm: New file.
1074 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1075 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1077 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1079 (%assert-type): Ditto, and renamed to assert-type.
1080 (%exception-print-style): Delete.
1082 2014-07-26 Doug Evans <xdje42@gmail.com>
1085 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1086 * configure: Regenerate.
1087 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1089 (PYTHON_FILES): New variable.
1090 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1091 (GUILE_FILES): New variable.
1092 (stamp-python, install-python, uninstall-python): Handle empty
1094 (stamp-guile, install-guile, uninstall-guile): Ditto.
1096 2014-07-26 Doug Evans <xdje42@gmail.com>
1099 * guile/lib/gdb.scm (pretty-printers): Export.
1100 (set-pretty-printers!): Export.
1101 * guile/lib/gdb/printing.scm (gdb module): Update.
1102 (prepend-pretty-printer!, append-pretty-printer!): Update.
1103 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1104 (pretty_printer_list_var): Delete.
1105 (pretty_printer_list): New static global.
1106 (gdbscm_pretty_printers): New function.
1107 (gdbscm_set_pretty_printers_x): New function.
1108 (ppscm_find_pretty_printer_from_gdb): Update.
1109 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1110 (gdbscm_initialize_pretty_printers): Update.
1112 2014-07-26 Doug Evans <xdje42@gmail.com>
1115 * configure.ac: Add check for header gc/gc.h.
1116 Add check for function setenv.
1117 * configure: Regenerate.
1118 * config.in: Regenerate.
1119 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1121 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1123 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1124 variation in gdbarch matching.
1126 2014-07-25 Tom Tromey <tromey@redhat.com>
1128 * exec.c (using_exec_ops): Remove.
1129 (exec_close_1): Update. Remove extraneous block, reindent.
1130 (add_target_sections): Use target_is_pushed.
1132 2014-07-25 Pedro Alves <palves@redhat.com>
1134 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1135 * monitor.c (monitor_create_inferior): Likewise.
1136 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1137 * remote-sim.c (gdbsim_create_inferior): Likewise.
1138 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1139 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1140 * windows-nat.c (do_initial_windows_stuff): Likewise.
1142 2014-07-25 Pedro Alves <palves@redhat.com>
1144 * NEWS: Mention signal passing and "signal" command changes.
1145 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1147 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1149 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1150 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1151 (jump_command): Adjust clear_proceed_status call.
1152 (signal_command): Warn if other thread that are resumed have
1153 signals that will be delivered. Adjust clear_proceed_status call.
1154 (until_next_command, finish_command)
1155 (proceed_after_attach_callback, attach_command_post_wait)
1156 (attach_command): Adjust clear_proceed_status call.
1157 * infrun.c (proceed_after_vfork_done): Likewise.
1158 (proceed_after_attach_callback): Adjust comment.
1159 (clear_proceed_status_thread): Clear stop_signal if not in pass
1161 (clear_proceed_status_callback): Delete.
1162 (clear_proceed_status): New 'step' parameter. Only clear the
1163 proceed status of threads the command being prepared is about to
1165 (proceed): If passed in an explicit signal, override stop_signal
1166 with it. Don't pass the last stop signal to the thread we're
1168 (init_wait_for_inferior): Adjust clear_proceed_status call.
1169 (switch_back_to_stepped_thread): Clear the signal if it should not
1171 * infrun.h (clear_proceed_status): New 'step' parameter.
1172 (user_visible_resume_ptid): Add comment.
1173 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1174 signal is in pass state.
1175 * remote.c (append_pending_thread_resumptions): Likewise.
1176 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1178 2014-07-25 Tom Tromey <tromey@redhat.com>
1180 * target.h (target_stopped_data_address)
1181 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1184 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1186 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1188 (avr_pointer_to_address): Likewise.
1190 2014-07-24 Tom Tromey <tromey@redhat.com>
1192 * monitor.c (compile_pattern): Update.
1193 * target.h (struct target_ops) <to_shortname, to_longname,
1196 2014-07-24 Tom Tromey <tromey@redhat.com>
1198 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1199 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1200 (add_info_alias, add_com): Make "doc" const.
1201 (print_doc_line): Make "str" const.
1202 (delete_cmd): Update.
1203 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1204 (print_doc_line): Update.
1205 * cli/cli-script.c (document_command): Update.
1206 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1207 (add_com, add_info, add_info_alias): Update.
1208 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1209 * python/py-cmd.c (cmdpy_destroyer): Update.
1211 2014-07-24 Tom Tromey <tromey@redhat.com>
1213 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1214 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1215 (help_cmd_list): Constify.
1216 (lookup_cmd): Update.
1217 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1219 (help_cmd_list, apropos_cmd): Update.
1220 * cli/cli-script.c (show_user): Update.
1221 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1222 * cli/cli-setshow.h (cmd_show_list): Update.
1223 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1224 (cmd_show_list): Update.
1225 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1226 * python/py-cmd.c (cmdpy_destroyer): Update.
1228 2014-07-24 Tom Tromey <tromey@redhat.com>
1230 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1231 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1233 * command.h (deprecate_cmd): Update.
1234 * maint.c (maintenance_do_deprecate): Add casts.
1236 2014-07-24 Tom Tromey <tromey@redhat.com>
1238 * cli/cli-decode.c (help_cmd): Make parameter "const".
1239 * cli/cli-decode.h (help_cmd): Update.
1241 2014-07-24 Tom Tromey <tromey@redhat.com>
1243 * stack.c (up_silently_base, down_silently_base): Make argument
1246 2014-07-24 Tom Tromey <tromey@redhat.com>
1248 * solib.c (solib_add): Make "pattern" const.
1249 * solib.h (solib_add): Update.
1251 2014-07-24 Tom Tromey <tromey@redhat.com>
1253 * remote.c (remote_serial_open, print_packet, putpkt)
1254 (putpkt_binary): Constify.
1255 * remote.h (putpkt): Update.
1257 2014-07-24 Tom Tromey <tromey@redhat.com>
1259 * monitor.c (monitor_open): Make "args" const.
1260 * monitor.h (monitor_open): Update.
1262 2014-07-24 Tom Tromey <tromey@redhat.com>
1264 * maint.c (match_bfd_flags): Make "string" const.
1265 (print_bfd_section_info): Remove casts.
1266 (print_objfile_section_info): Make "string" const.
1268 2014-07-24 Tom Tromey <tromey@redhat.com>
1270 * inf-child.c (inf_child_open_target): Make "arg" const.
1271 * inf-child.h (inf_child_open_target): Update.
1273 2014-07-24 Tom Tromey <tromey@redhat.com>
1275 * environ.c (unset_in_environ): Make "var" const.
1276 * environ.h (unset_in_environ): Update.
1278 2014-07-24 Tom Tromey <tromey@redhat.com>
1280 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1282 (scan_filename_with_cleanup): Likewise.
1283 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1284 Make arguments const.
1285 (restore_command): Update.
1287 2014-07-24 Pedro Alves <palves@redhat.com>
1289 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1291 2014-07-24 Tom Tromey <tromey@redhat.com>
1292 Gary Benson <gbenson@redhat.com>
1294 * nat/linux-ptrace.c (additional_flags): New global.
1295 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1296 additional_flags; don't check GDBSERVER.
1297 (linux_ptrace_set_additional_flags): New function.
1298 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1300 * linux-nat.c (_initialize_linux_nat): Call
1301 linux_ptrace_set_additional_flags.
1303 2014-07-24 Tom Tromey <tromey@redhat.com>
1305 * make-target-delegates (munge_type, write_debugmethod): New
1307 (debug_names): New global.
1308 ($TARGET_DEBUG_PRINTER): New global.
1309 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1311 Write debug methods. Generate init_debug_target.
1312 * target-debug.h: New file.
1313 * target-delegates.c: Rebuild.
1314 * target.c: Include target-debug.h.
1315 (debug_target): Hoist definition.
1316 (target_kill, target_get_section_table, target_memory_map)
1317 (target_flash_erase, target_flash_done, target_detach)
1318 (target_disconnect, target_wait, target_resume)
1319 (target_pass_signals, target_program_signals, target_follow_fork)
1320 (target_mourn_inferior, target_search_memory)
1321 (target_thread_address_space, target_close)
1322 (target_find_new_threads, target_core_of_thread)
1323 (target_verify_memory, target_insert_mask_watchpoint)
1324 (target_remove_mask_watchpoint): Remove targetdebug code.
1325 (debug_to_post_attach, debug_to_prepare_to_store)
1326 (debug_to_files_info, debug_to_insert_breakpoint)
1327 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1328 (debug_to_region_ok_for_hw_watchpoint)
1329 (debug_to_can_accel_watchpoint_condition)
1330 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1331 (debug_to_watchpoint_addr_within_range)
1332 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1333 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1334 (debug_to_terminal_init, debug_to_terminal_inferior)
1335 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1336 (debug_to_terminal_save_ours, debug_to_terminal_info)
1337 (debug_to_load, debug_to_post_startup_inferior)
1338 (debug_to_insert_fork_catchpoint)
1339 (debug_to_remove_fork_catchpoint)
1340 (debug_to_insert_vfork_catchpoint)
1341 (debug_to_remove_vfork_catchpoint)
1342 (debug_to_insert_exec_catchpoint)
1343 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1344 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1345 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1346 (setup_target_debug): Call init_debug_target.
1347 * target.h (TARGET_DEBUG_PRINTER): New macro.
1348 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1349 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1351 2014-07-24 Gary Benson <gbenson@redhat.com>
1353 * exceptions.h (throw_vfatal): Renamed to...
1354 (throw_vquit): New declaration.
1355 (throw_quit): Likewise.
1356 * exceptions.c (throw_vfatal): Renamed to...
1357 (throw_vquit): New function.
1358 (throw_quit): Likewise.
1359 (throw_error): Call throw_verror rather than throw_it.
1360 * utils.h (vfatal): Removed.
1362 * utils.c (vfatal): Removed.
1364 (internal_verror): Replaced call to fatal with call to throw_quit.
1365 (quit): Replaced calls to fatal with calls to throw_quit.
1367 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1369 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1372 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1374 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1375 less than zero in conditional expression.
1377 2014-07-23 Tom Tromey <tromey@redhat.com>
1379 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1380 ($INTRO_PART): Don't match whitespace.
1381 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1383 ($METHOD): Add $METHOD_TRAILER.
1385 (scan_target_h): New sub.
1386 Change main loop not to collect state.
1387 * target-delegates.c: Rebuild.
1389 2014-07-23 Gary Benson <gbenson@redhat.com>
1391 * cp-support.c (gdb_demangle): Fix build on systems without
1394 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1396 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1397 for reference entry value target data value.
1399 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1402 value_available_contents_eq.
1404 2014-07-22 Pedro Alves <palves@redhat.com>
1406 * value.c (allocate_optimized_out_value): Don't mark value as
1409 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1411 * MAINTAINERS (Write After Approval): Update my email address.
1413 2014-07-20 Doug Evans <dje@google.com>
1416 * remote.c (putpkt_binary): Add text to error message.
1418 2014-07-20 Yao Qi <yao@codesourcery.com>
1420 * eval.c: Remove "Chill" from comments.
1421 * gdbtypes.h: Likewise.
1422 * symtab.h: Likewise.
1424 2014-07-20 Yao Qi <yao@codesourcery.com>
1426 * std-operator.def: Update comments to TERNOP_SLICE.
1428 2014-07-20 Yao Qi <yao@codesourcery.com>
1430 * std-operator.def: Remove BINOP_RANGE.
1431 * breakpoint.c (watchpoint_exp_is_const): Update.
1432 * expprint.c (dump_subexp_body_standard): Likewise.
1433 * eval.c (init_array_element): Remove dead code.
1434 (evaluate_subexp_standard): Likewise.
1436 2014-07-20 Yao Qi <yao@codesourcery.com>
1438 * std-operator.def: Remove BINOP_IN.
1439 * breakpoint.c (watchpoint_exp_is_const): Update.
1440 * eval.c (evaluate_subexp_standard): Likewise.
1441 * expprint.c (dump_subexp_body_standard): Likewise.
1443 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1445 * microblaze-tdep.c (microblaze_register_names): Add
1446 the rshr and rslr register names.
1447 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1448 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1449 Use of tdesc_numbered_register. Use of
1450 microblaze_register_g_packet_guesses. Use of
1451 tdesc_use_registers. Use of set_gdbarch_register_type.
1452 (microblaze_register_g_packet_guesses): New.
1453 * microblaze-tdep.h (microblaze_reg_num): Add
1454 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1455 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1456 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1457 * features/microblaze-core.xml: New file.
1458 * features/microblaze-stack-protect.xml: New file.
1459 * features/microblaze-with-stack-protect.c: New file.
1460 * features/microblaze-with-stack-protect.xml: New file.
1461 * features/microblaze.xml: New file.
1462 * features/microblaze.c: New file.
1463 * features/Makefile (microblaze-with-stack-protect): Add
1464 microblaze-with-stack-protect microblaze and microblaze-expedite.
1465 * regformats/microblaze-with-stack-protect.dat: New file.
1466 * regformats/microblaze.dat: New file.
1467 * doc/gdb.texinfo (MicroBlaze Features): Added.
1469 2014-07-18 Tom Tromey <tromey@redhat.com>
1471 * exec.c (exec_ops): Now static.
1472 * exec.h (exec_ops): Don't declare.
1474 2014-07-18 Tom Tromey <tromey@redhat.com>
1476 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1477 to find_target_beneath.
1478 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1479 find_target_beneath.
1480 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1482 2014-07-18 Tom Tromey <tromey@redhat.com>
1485 * utils.c (quit): Use target_supports_terminal_ours.
1486 * target.h (target_supports_terminal_ours): Declare.
1487 * target.c (target_supports_delete_record): Don't check
1488 to_delete_record against NULL.
1489 (target_supports_terminal_ours): New function.
1491 2014-07-18 Tom Tromey <tromey@redhat.com>
1494 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1495 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1496 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1497 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1498 * windows-nat.c (windows_xfer_partial): Always delegate.
1499 * record-btrace.c (record_btrace_xfer_partial): Simplify
1501 (record_btrace_fetch_registers, record_btrace_store_registers)
1502 (record_btrace_prepare_to_store, record_btrace_resume)
1503 (record_btrace_wait, record_btrace_find_new_threads)
1504 (record_btrace_thread_alive): Likewise.
1505 * procfs.c (procfs_xfer_partial): Always delegate.
1506 * corelow.c (core_xfer_partial): Always delegate.
1507 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1509 2014-07-18 Tom Tromey <tromey@redhat.com>
1511 * exec.c (exec_make_note_section): Move earlier.
1513 2014-07-17 Doug Evans <dje@google.com>
1516 * maint.c (count_symtabs_and_blocks): Handle NULL
1517 current_program_space.
1518 (report_command_stats): Check global enabled flag in addition to
1519 recorded enabled flag.
1520 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1522 2014-07-16 Pedro Alves <palves@redhat.com>
1524 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1526 2014-07-16 Tom Tromey <tromey@redhat.com>
1528 * target.h (struct target_ops) <to_delete_record>: Reformat
1531 2014-07-16 Tom Tromey <tromey@redhat.com>
1533 * target-delegates.c: Rebuild.
1535 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1537 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1538 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1539 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1540 (avr_pointer_to_address): Likewise.
1541 (avr_address_class_type_flags): New function.
1542 (avr_address_class_type_flags_to_name): Likewise.
1543 (avr_address_class_name_to_type_flags): Likewise.
1544 (avr_gdbarch_init): Set address_class_type_flags,
1545 address_class_type_flags_to_name and
1546 address_class_name_to_type_flags.
1548 2014-07-15 Pedro Alves <palves@redhat.com>
1550 * linux-nat.c (kill_callback): Save errno and work with saved
1553 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1555 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1557 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1559 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1560 breakpoint support correctly.
1562 2014-07-14 Pedro Alves <palves@redhat.com>
1564 * utils.c (prompt_for_continue): Call target_terminal_ours.
1566 2014-07-14 Pedro Alves <palves@redhat.com>
1568 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1569 catch_errors. Don't re-enable stdin or notify observers where,
1571 (fetch_inferior_event_wrapper): Delete.
1573 2014-07-14 Pedro Alves <palves@redhat.com>
1576 * top.c: Include "inf-loop.h".
1577 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1579 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1581 (gdb_readline_wrapper): Store whether the target is async, and
1584 2014-07-14 Pedro Alves <palves@redhat.com>
1587 * top.c (gdb_readline_wrapper_line): Tweak comment.
1588 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1589 the input handler callback.
1591 2014-07-14 Pedro Alves <palves@redhat.com>
1594 * main.c: Include event-top.h.
1595 (handle_command_errors): New function.
1596 (catch_command_errors, catch_command_errors_const): Use it.
1598 2014-07-14 Pedro Alves <palves@redhat.com>
1600 * exceptions.c (catch_command_errors, catch_command_errors_const):
1602 * exceptions.h (catch_command_errors_ftype)
1603 (catch_command_errors_const_ftype): Moved to main.c.
1604 (catch_command_errors, catch_command_errors_const): Delete
1606 * main.c (catch_command_errors_ftype)
1607 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1608 (catch_command_errors, catch_command_errors_const)): Moved here
1609 from exceptions.c and make static.
1611 2014-07-14 Pedro Alves <palves@redhat.com>
1613 * exceptions.c (print_any_exception): Delete.
1614 (catch_exceptions_with_msg): Use exception_print instead of
1615 print_any_exception.
1616 (catch_errors): Use exception_fprintf instead of
1617 print_any_exception.
1618 (catch_command_errors, catch_command_errors_const): Use
1619 exception_print instead of print_any_exception.
1621 2014-07-14 Pedro Alves <palves@redhat.com>
1623 * infcall.c (run_inferior_call): Set 'sync_execution' while
1624 running the inferior call.
1626 2014-07-14 Pedro Alves <palves@redhat.com>
1628 * value.c (value_contents_equal): Delete function.
1629 * value.h (value_contents_equal): Delete declaration.
1631 2014-07-14 Tom Tromey <tromey@redhat.com>
1634 * gdbtypes.c (is_dynamic_type_internal): New function, from
1636 (is_dynamic_type): Rewrite.
1637 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1638 (resolve_dynamic_struct): Likewise.
1639 (resolve_dynamic_type_internal): New function, from
1640 resolve_dynamic_type.
1641 (resolve_dynamic_type): Rewrite.
1643 2014-07-14 Tom Tromey <tromey@redhat.com>
1645 * target.c (target_require_runnable): Also check record_stratum.
1648 2014-07-11 Yao Qi <yao@codesourcery.com>
1650 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1651 thumb_instruction_restores_sp return true.
1653 2014-07-11 Yao Qi <yao@codesourcery.com>
1655 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1656 (thumb_in_function_epilogue_p): Call
1657 thumb_instruction_restores_sp.
1659 2014-07-11 Yao Qi <yao@codesourcery.com>
1661 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1663 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1665 2014-07-11 Gary Benson <gbenson@redhat.com>
1667 * amd64-linux-nat.c (gdbcore.h): Remove include.
1668 (regset.h): Likewise.
1669 (nat/linux-btrace.h): Likewise.
1670 (btrace.h): Likewise.
1671 (gdb_assert.h): Likewise.
1672 (string.h): Likewise.
1673 (sys/uio.h): Likewise.
1674 (sys/debugreg.h): Likewise.
1675 (sys/syscall.h): Likewise.
1676 (sys/procfs.h): Likewise.
1677 (sys/user.h): Likewise.
1678 (asm/ptrace.h): Likewise.
1679 (i386-nat.h): Likewise.
1680 * i386-linux-nat.c (i386-nat.h): Likewise.
1681 (regset.h): Likewise.
1682 (target.h): Likewise.
1683 (linux-nat.h): Likewise.
1684 (nat/linux-btrace.h): Likewise.
1685 (btrace.h): Likewise.
1686 (gdb_assert.h): Likewise.
1687 (string.h): Likewise.
1688 (sys/uio.h): Likewise.
1689 (sys/user.h): Likewise.
1690 (sys/procfs.h): Likewise.
1691 (sys/reg.h): Likewise.
1692 (sys/debugreg.h): Likewise.
1693 (ORIG_EAX): Remove definition.
1695 2014-07-11 Gary Benson <gbenson@redhat.com>
1697 * i386-linux-nat.h: New file.
1698 * x86-linux-nat.h: Likewise.
1699 * x86-linux-nat.c: Likewise.
1700 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1701 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1702 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1703 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1704 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1705 (PTRACE_SETREGSET): Likewise.
1706 (arch_lwp_info): Now in x86-linux-nat.c.
1707 (have_ptrace_getregset): Now in x86-linux-nat.h.
1708 (x86_linux_dr_get): Now in x86-linux-nat.c.
1709 (x86_linux_dr_set): Likewise.
1710 (x86_linux_dr_get_addr): Likewise.
1711 (x86_linux_dr_get_control): Likewise.
1712 (x86_linux_dr_get_status): Likewise.
1713 (update_debug_registers_callback): Likewise.
1714 (x86_linux_dr_set_control): Likewise.
1715 (x86_linux_dr_set_addr): Likewise.
1716 (x86_linux_prepare_to_resume): Likewise.
1717 (x86_linux_new_thread): Likewise.
1718 (x86_linux_new_fork): Likewise.
1719 (x86_linux_get_thread_area): Likewise.
1720 (super_post_startup_inferior): Likewise.
1721 (x86_linux_child_post_startup_inferior): Likewise.
1722 (AMD64_LINUX_USER64_CS): Likewise.
1723 (AMD64_LINUX_X32_DS): Likewise.
1724 (x86_linux_read_description): Likewise.
1725 (x86_linux_enable_btrace): Likewise.
1726 (x86_linux_disable_btrace): Likewise.
1727 (x86_linux_teardown_btrace): Likewise.
1728 (x86_linux_read_btrace): Likewise.
1729 (x86_linux_create_target): Likewise.
1730 (x86_linux_add_target): Likewise.
1731 * i386-linux-nat.c (x86-linux-nat.h): New include.
1732 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1733 (PTRACE_SETREGSET): Likewise.
1734 (arch_lwp_info): Now in x86-linux-nat.c.
1735 (have_ptrace_getregset): Now in x86-linux-nat.h.
1736 (x86_linux_dr_get): Now in x86-linux-nat.c.
1737 (x86_linux_dr_set): Likewise.
1738 (x86_linux_dr_get_addr): Likewise.
1739 (x86_linux_dr_get_control): Likewise.
1740 (x86_linux_dr_get_status): Likewise.
1741 (update_debug_registers_callback): Likewise.
1742 (x86_linux_dr_set_control): Likewise.
1743 (x86_linux_dr_set_addr): Likewise.
1744 (x86_linux_prepare_to_resume): Likewise.
1745 (x86_linux_new_thread): Likewise.
1746 (x86_linux_new_fork): Likewise.
1747 (x86_linux_get_thread_area): Likewise.
1748 (super_post_startup_inferior): Likewise.
1749 (x86_linux_child_post_startup_inferior): Likewise.
1750 (AMD64_LINUX_USER64_CS): Likewise.
1751 (AMD64_LINUX_X32_DS): Likewise.
1752 (x86_linux_read_description): Likewise.
1753 (x86_linux_enable_btrace): Likewise.
1754 (x86_linux_disable_btrace): Likewise.
1755 (x86_linux_teardown_btrace): Likewise.
1756 (x86_linux_read_btrace): Likewise.
1757 (x86_linux_create_target): Likewise.
1758 (x86_linux_add_target): Likewise.
1760 2014-07-11 Gary Benson <gbenson@redhat.com>
1762 * amd64-linux-nat.c: Comment and whitespace changes.
1763 * i386-linux-nat.c: Comment and whitespace changes.
1765 2014-07-11 Gary Benson <gbenson@redhat.com>
1767 * amd64-linux-nat.c (x86_linux_create_target): New function.
1768 (x86_linux_add_target): Likewise.
1769 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1770 * i386-linux-nat.c (x86_linux_create_target): New function.
1771 (x86_linux_add_target): Likewise.
1772 (_initialize_i386_linux_nat): Delegate to the above new functions.
1774 2014-07-11 Gary Benson <gbenson@redhat.com>
1776 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1777 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1778 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1779 (ps_get_thread_area): Delegate to the above.
1781 2014-07-11 Gary Benson <gbenson@redhat.com>
1783 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1784 x86_linux_read_description. All uses updated. amd64-specific
1785 code conditionalized. Conditionalized i386-specific code added.
1786 Redundant cast removed.
1787 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1788 x86_linux_read_description. All uses updated. i386-specific
1789 code conditionalized. Conditionalized amd64-specific code added.
1790 One sizeof replaced with the actual type it is describing.
1792 2014-07-11 Gary Benson <gbenson@redhat.com>
1794 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1795 x86_linux_dr_get. All uses updated.
1796 (amd64_linux_dr_set): Renamed to
1797 x86_linux_dr_set. All uses updated.
1798 (amd64_linux_dr_get_addr): Renamed to
1799 x86_linux_dr_get_addr. All uses updated.
1800 (amd64_linux_dr_get_control): Renamed to
1801 x86_linux_dr_get_control. All uses updated.
1802 (amd64_linux_dr_get_status): Renamed to
1803 x86_linux_dr_get_status. All uses updated.
1804 (amd64_linux_dr_set_control): Renamed to
1805 x86_linux_dr_set_control. All uses updated.
1806 (amd64_linux_dr_set_addr): Renamed to
1807 x86_linux_dr_set_addr. All uses updated.
1808 (amd64_linux_prepare_to_resume): Renamed to
1809 x86_linux_prepare_to_resume. All uses updated.
1810 (amd64_linux_new_thread): Renamed to
1811 x86_linux_new_thread. All uses updated.
1812 (amd64_linux_new_fork): Renamed to
1813 x86_linux_new_fork. All uses updated.
1814 (amd64_linux_child_post_startup_inferior): Renamed to
1815 x86_linux_child_post_startup_inferior. All uses updated.
1816 (amd64_linux_enable_btrace): Renamed to
1817 x86_linux_enable_btrace. All uses updated.
1818 (amd64_linux_disable_btrace): Renamed to
1819 x86_linux_disable_btrace. All uses updated.
1820 (amd64_linux_teardown_btrace): Renamed to
1821 x86_linux_teardown_btrace. All uses updated.
1822 (amd64_linux_read_btrace): Renamed to
1823 x86_linux_read_btrace. All uses updated.
1824 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1825 x86_linux_dr_get. All uses updated.
1826 (i386_linux_dr_set): Renamed to
1827 x86_linux_dr_set. All uses updated.
1828 (i386_linux_dr_get_addr): Renamed to
1829 x86_linux_dr_get_addr. All uses updated.
1830 (i386_linux_dr_get_control): Renamed to
1831 x86_linux_dr_get_control. All uses updated.
1832 (i386_linux_dr_get_status): Renamed to
1833 x86_linux_dr_get_status. All uses updated.
1834 (i386_linux_dr_set_control): Renamed to
1835 x86_linux_dr_set_control. All uses updated.
1836 (i386_linux_dr_set_addr): Renamed to
1837 x86_linux_dr_set_addr. All uses updated.
1838 (i386_linux_prepare_to_resume): Renamed to
1839 x86_linux_prepare_to_resume. All uses updated.
1840 (i386_linux_new_thread): Renamed to
1841 x86_linux_new_thread. All uses updated.
1842 (i386_linux_new_fork): Renamed to
1843 x86_linux_new_fork. All uses updated.
1844 (i386_linux_child_post_startup_inferior): Renamed to
1845 x86_linux_child_post_startup_inferior. All uses updated.
1846 (i386_linux_enable_btrace): Renamed to
1847 x86_linux_enable_btrace. All uses updated.
1848 (i386_linux_disable_btrace): Renamed to
1849 x86_linux_disable_btrace. All uses updated.
1850 (i386_linux_teardown_btrace): Renamed to
1851 x86_linux_teardown_btrace. All uses updated.
1852 (i386_linux_read_btrace): Renamed to
1853 x86_linux_read_btrace. All uses updated.
1855 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1857 * remote.c (extended_remote_post_attach): New function.
1858 (init_extended_remote_ops): Install it as to_post_attach method.
1860 2014-07-09 Pedro Alves <palves@redhat.com>
1862 * infcmd.c (attach_command_post_wait): Don't call
1863 target_terminal_inferior here.
1864 (attach_command): Call it here instead.
1866 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1868 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1870 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1871 from varobj.c, with additional checks.
1872 (c_varobj_ops): Fill in is_path_expr_parent field.
1873 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1874 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1876 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1878 (varobj_default_is_path_expr_parent): New function.
1879 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1880 (varobj_default_is_path_expr_parent): Declare new function.
1882 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1884 * infcmd.c (finish_backward): Turn internal error into normal error.
1886 2014-07-07 Pedro Alves <palves@redhat.com>
1889 * remote.c (async_handle_remote_sigint)
1890 (async_handle_remote_sigint_twice): Call
1891 gdb_call_async_signal_handler instead of
1892 mark_async_signal_handler.
1894 2014-07-07 Tom Tromey <tromey@redhat.com>
1896 * target-delegates.c: Rebuild.
1897 * target.c (target_info_record): Remove.
1898 * record.c (info_record_command): Unconditionally call
1900 * target.h (struct target_ops) <to_info_record>: Use
1901 TARGET_DEFAULT_IGNORE.
1902 (target_info_record): Remove.
1904 2014-07-07 Tom Tromey <tromey@redhat.com>
1906 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1907 TARGET_DEFAULT_NORETURN.
1908 * target.c (generic_tls_error): New function.
1909 (target_translate_tls_address): Don't search target stack.
1910 * target-delegates.c: Rebuild.
1911 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1913 * linux-thread-db.c (thread_db_get_thread_local_address):
1914 Unconditionally call beneath target.
1916 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1918 * cli/cli-logging.c (pop_output_files): Assign targerr to
1921 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1923 * MAINTAINERS (Write After Approval): Update my email address.
1925 2014-07-02 Gary Benson <gbenson@redhat.com>
1927 * proc-service.c (ps_xfer_memory): Update comment.
1928 (ps_pstop): Remove unused function.
1929 (ps_pcontinue): Likewise.
1930 (ps_lstop): Likewise.
1931 (ps_lcontinue): Likewise.
1932 (ps_lgetxregsize): Likewise.
1933 (ps_lgetxregs): Likewise.
1934 (ps_lsetxregs): Likewise.
1935 (ps_plog): Likewise.
1936 (ps_ptread): Likewise.
1937 (ps_ptwrite): Likewise.
1939 2014-07-01 Mark Wielaard <mjw@redhat.com>
1941 * dwarf2read.c (add_array_cv_type): New function.
1942 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1943 (read_tag_volatile_type): Likewise.
1945 2014-07-01 Tom Tromey <tromey@redhat.com>
1947 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1948 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1949 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1950 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1951 * command.h (cmd_cfunc_ftype): Move earlier.
1952 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1953 (add_com, add_info): Use cmd_cfunc_ftype.
1955 2014-06-30 Tom Tromey <tromey@redhat.com>
1957 * symtab.c (operator_chars): Make parameters and return type
1959 (file_matches): Make "files" const.
1960 (struct search_symbols_data) <files>: Now const.
1961 (search_symbols): Make "regexp" and "files" parameters const.
1963 (symtab_symbol_info): Remove cast.
1964 (rbreak_command): Update.
1965 * symtab.h (search_symbols): Update.
1967 2014-06-27 Yao Qi <yao@codesourcery.com>
1969 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1970 Change parameter type to 'struct thread_info *'. Caller
1972 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1974 * dummy-frame.c (struct dummy_frame_id): New.
1975 (dummy_frame_id_eq): New function.
1976 (struct dummy_frame) <id>: Change its type to 'struct
1978 (dummy_frame_push): Add parameter ptid and save it in
1980 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1982 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1984 (lookup_dummy_frame): Change parameter type to 'struct
1985 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1986 instead of frame_id_eq.
1987 (dummy_frame_pop): Add parameter ptid. Callers updated.
1988 Update comments. Compose dummy_frame_id and pass it to
1990 (dummy_frame_discard): Add parameter ptid.
1991 (dummy_frame_sniffer): Compose dummy_frame_id and call
1992 dummy_frame_id_eq instead of frame_id_eq.
1993 (fprint_dummy_frames): Print ptid.
1994 * dummy-frame.h: Remove comments.
1995 (dummy_frame_push): Add ptid in declaration.
1996 (dummy_frame_pop, dummy_frame_discard): Likewise.
1998 2014-06-26 Tom Tromey <tromey@redhat.com>
2000 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2001 * command.h (error_no_arg): Update.
2003 2014-06-26 Tom Tromey <tromey@redhat.com>
2005 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2006 (do_show_command): Make "arg" const.
2007 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2009 2014-06-26 Tom Tromey <tromey@redhat.com>
2011 * record-full.c (record_full_get_bookmark): Make "args" const.
2012 (record_full_goto_bookmark): Make "raw_bookmark" const.
2013 * record.c (record_goto): New function.
2014 (cmd_record_goto): Use it. Now static.
2015 * record.h (record_goto): Declare.
2016 (cmd_record_goto): Remove declaration.
2017 * target-delegates.c: Rebuild.
2018 * target.h (struct target_ops) <to_get_bookmark,
2019 to_goto_bookmark>: Make parameter const.
2021 2014-06-26 Tom Tromey <tromey@redhat.com>
2023 * defs.h (generic_load): Update.
2024 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2025 * monitor.c (monitor_load): Make "args" const.
2026 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2027 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2029 (mips_load): Make "file" const.
2030 * remote-sim.c (gdbsim_load): Make "args" const.
2031 * remote.c (remote_load): Make "name" const.
2032 * symfile.c (generic_load): Make "args" const.
2033 * target-delegates.c: Rebuild.
2034 * target.c (target_load): Make "arg" const.
2035 (debug_to_load): Make "args" const.
2036 * target.h (struct target_ops) <to_load>: Make parameter const.
2037 (target_load): Update.
2039 2014-06-26 Tom Tromey <tromey@redhat.com>
2042 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2043 (dwarf2_physname, read_partial_die)
2044 (guess_partial_die_structure_name, fixup_partial_die)
2045 (guess_full_die_structure_name, anonymous_struct_prefix)
2046 (dwarf2_name): Use per-BFD obstack.
2048 2014-06-26 Yao Qi <yao@codesourcery.com>
2050 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2051 dummyframe and this_id into inner block below.
2053 2014-06-26 Yao Qi <yao@codesourcery.com>
2055 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2056 with "signal_pass[0]" in the initialization of signal_pass.
2058 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2060 * record-btrace.c (record_btrace_generating_corefile)
2061 (record_btrace_prepare_to_generate_core)
2062 (record_btrace_done_generating_core): New.
2063 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2064 (record_btrace_store_registers, record_btrace_prepare_to_store):
2065 Forward request when generating a core file.
2066 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2067 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2068 to_done_generating_core.
2070 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2072 * target.h (target_ops) <to_prepare_to_generate_core>
2073 <to_done_generating_core>: New.
2074 (target_prepare_to_generate_core, target_done_generating_core): New.
2075 * target.c (target_prepare_to_generate_core)
2076 (target_done_generating_core): New.
2077 * target-delegates.c: Regenerate.
2078 * gcore.c: (write_gcore_file): Rename to ...
2079 (write_gcore_file_1): ...this.
2080 (write_gcore_file): Call target_prepare_to_generate_core
2081 and target_done_generating_core.
2083 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2085 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2086 * gcore.c (write_gcore_file): Free memory returned from
2087 make_corefile_notes.
2088 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2089 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2091 2014-06-24 Yao Qi <yao@codesourcery.com>
2093 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2094 (arm_linux_init_abi): Set skip_trampoline_code with
2095 gdbarch_skip_trampoline_code instead of
2096 find_solib_trampoline_target.
2098 2014-06-24 Yao Qi <yao@codesourcery.com>
2100 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2101 arm_skip_bx_reg returns non-zero.
2103 2014-06-24 Yao Qi <yao@codesourcery.com>
2105 * arm-tdep.c (arm_skip_bx_reg): New function.
2106 (arm_skip_stub): Call arm_skip_bx_reg.
2108 2014-06-23 Don Breazeal <donb@codesourcery.com>
2110 * MAINTAINERS: Add myself as write-after-approval maintainer.
2112 2014-06-23 Pedro Alves <palves@redhat.com>
2114 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2115 DR_CONTROL before setting DR0..DR3.
2116 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2117 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2118 bits of DR_CONTROL related to the debug register slot being
2119 disabled. If all slots are vacant, clear local slowdown as well,
2120 and assert DR_CONTROL is 0.
2122 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2124 * python/lib/gdb/command/xmethods.py
2125 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2126 current progspace only if the string "progspace" matches LOCUS_RE.
2128 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 Fix --with-system-readline with readline-6.3 patch 5.
2131 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2132 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2135 2014-06-20 Tom Tromey <tromey@redhat.com>
2137 * dwarf2read.c (dw2_get_real_path): Use correct type in
2139 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2141 2014-06-20 Gary Benson <gbenson@redhat.com>
2143 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2144 * common/glibc_thread_db.h: Likewise.
2145 * common/i386-cpuid.h: Likewise.
2146 * common/i386-gcc-cpuid.h: Likewise.
2147 * common/linux-btrace.h: Likewise.
2148 * common/linux-osdata.h: Likewise.
2149 * common/linux-procfs.h: Likewise.
2150 * common/linux-ptrace.h: Likewise.
2151 * common/mips-linux-watch.h: Likewise.
2152 * common/linux-btrace.c: Moved to nat.
2153 * common/linux-osdata.c: Likewise.
2154 * common/linux-procfs.c: Likewise.
2155 * common/linux-ptrace.c: Likewise.
2156 * common/mips-linux-watch.c: Likewise.
2157 * nat/gdb_thread_db.h: Moved from common.
2158 * nat/glibc_thread_db.h: Likewise.
2159 * nat/i386-cpuid.h: Likewise.
2160 * nat/i386-gcc-cpuid.h: Likewise.
2161 * nat/linux-btrace.c: Likewise.
2162 * nat/linux-btrace.h: Likewise.
2163 * nat/linux-osdata.c: Likewise.
2164 * nat/linux-osdata.h: Likewise.
2165 * nat/linux-procfs.c: Likewise.
2166 * nat/linux-procfs.h: Likewise.
2167 * nat/linux-ptrace.c: Likewise.
2168 * nat/linux-ptrace.h: Likewise.
2169 * nat/mips-linux-watch.c: Likewise.
2170 * nat/mips-linux-watch.h: Likewise.
2171 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2172 (object file files): Reordered.
2173 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2174 of glibc_thread_db.h.
2176 2014-06-20 Gary Benson <gbenson@redhat.com>
2178 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2179 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2180 (i386_dr_low): Likewise.
2181 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2182 (i386_dr_low_set_addr): Likewise.
2183 (i386_dr_low_get_addr): Likewise.
2184 (i386_dr_low_can_set_control): Likewise.
2185 (i386_dr_low_set_control): Likewise.
2186 (i386_dr_low_get_control): Likewise.
2187 (i386_dr_low_get_status): Likewise.
2188 (i386_get_debug_register_length): Likewise.
2189 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2190 (i386_dr_low): Likewise.
2191 * nat/i386-dregs.c (i386-low.h): Remove include.
2192 (i386-nat.h): Likewise.
2193 (nat/i386-dregs.h): New include.
2194 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2195 (i386_dr_low_set_addr): Likewise.
2196 (i386_dr_low_get_addr): Likewise.
2197 (i386_dr_low_can_set_control): Likewise.
2198 (i386_dr_low_set_control): Likewise.
2199 (i386_dr_low_get_control): Likewise.
2200 (i386_dr_low_get_status): Likewise.
2201 (i386_get_debug_register_length): Likewise.
2202 (debug_hw_points): Likewise.
2204 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2206 * Makefile.in (SFILES): Add d-exp.y.
2207 (YYFILES): Add d-exp.c.
2208 (YYOBJ): Add d-exp.o.
2209 (local-maintainer-clean): Delete d-exp.c.
2210 * d-exp.y: New file.
2211 * d-lang.h (d_parse): New declaration.
2212 (d_error): New declaration.
2213 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2214 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2215 PREC_ORDER operators.
2216 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2218 2014-06-19 Yao Qi <yao@codesourcery.com>
2220 * gdbthread.h (any_running): Remove the declaration.
2221 * thread.c (any_running): Remove.
2223 2014-06-19 Yao Qi <yao@codesourcery.com>
2225 * gdbthread.h (struct thread_info) <state>: Change its type to
2226 'enum thread_state'. Update comments.
2228 2014-06-19 Pedro Alves <palves@redhat.com>
2230 * gdbthread.h (ALL_THREADS): Delete.
2231 (ALL_NON_EXITED_THREADS): New macro.
2232 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2233 instead of ALL_THREADS.
2234 * infrun.c (find_thread_needs_step_over)
2235 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2236 instead of ALL_THREADS.
2237 * record-btrace.c (record_btrace_open)
2238 (record_btrace_stop_recording, record_btrace_close)
2239 (record_btrace_is_replaying, record_btrace_resume)
2240 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2241 * remote.c (append_pending_thread_resumptions): Likewise.
2242 * thread.c (thread_apply_all_command): Likewise.
2244 2014-06-19 Gary Benson <gbenson@redhat.com>
2246 * i386-nat.c (i386_stopped_by_watchpoint):
2247 Use i386_dr_stopped_by_watchpoint.
2248 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2249 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2251 2014-06-19 Gary Benson <gbenson@redhat.com>
2253 * nat/i386-dregs.c: New file.
2254 * Makefile.in (i386-dregs.o): New rule.
2255 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2256 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2257 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2258 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2259 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2260 * config/i386/go32.mh (NATDEPFILES): Likewise.
2261 * config/i386/linux.mh (NATDEPFILES): Likewise.
2262 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2263 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2264 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2265 * i386-nat.h (debug_hw_points): New declaration.
2266 * i386-nat.c (breakpoint.h): Remove include.
2267 (command.h): Likewise.
2268 (target.h): Likewise.
2269 (gdb_assert.h): Likewise.
2270 (debug_hw_points): Made nonstatic.
2271 (debug_printf): Now in i386-dregs.c.
2272 (TARGET_HAS_DR_LEN_8): Likewise.
2273 (DR_CONTROL_SHIFT): Likewise.
2274 (DR_CONTROL_SIZE): Likewise.
2275 (DR_RW_EXECUTE): Likewise.
2276 (DR_RW_WRITE): Likewise.
2277 (DR_RW_READ): Likewise.
2278 (DR_RW_IORW): Likewise.
2279 (DR_LEN_1): Likewise.
2280 (DR_LEN_2): Likewise.
2281 (DR_LEN_4): Likewise.
2282 (DR_LEN_8): Likewise.
2283 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2284 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2285 (DR_ENABLE_SIZE): Likewise.
2286 (DR_LOCAL_SLOWDOWN): Likewise.
2287 (DR_GLOBAL_SLOWDOWN): Likewise.
2288 (DR_CONTROL_RESERVED): Likewise.
2289 (I386_DR_CONTROL_MASK): Likewise.
2290 (I386_DR_VACANT): Likewise.
2291 (I386_DR_LOCAL_ENABLE): Likewise.
2292 (I386_DR_GLOBAL_ENABLE): Likewise.
2293 (I386_DR_DISABLE): Likewise.
2294 (I386_DR_SET_RW_LEN): Likewise.
2295 (I386_DR_GET_RW_LEN): Likewise.
2296 (I386_DR_WATCH_HIT): Likewise.
2297 (i386_wp_op_t): Likewise.
2298 (i386_show_dr): Likewise.
2299 (i386_length_and_rw_bits): Likewise.
2300 (i386_insert_aligned_watchpoint): Likewise.
2301 (i386_remove_aligned_watchpoint): Likewise.
2302 (i386_handle_nonaligned_watchpoint): Likewise.
2303 (i386_update_inferior_debug_regs): Likewise.
2304 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2305 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2306 (i386_region_ok_for_watchpoint):
2307 Use i386_dr_region_ok_for_watchpoint.
2308 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2310 2014-06-19 Gary Benson <gbenson@redhat.com>
2312 * i386-nat.c (i386_insert_hw_breakpoint): Use
2313 i386_insert_watchpoint.
2314 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2316 2014-06-19 Gary Benson <gbenson@redhat.com>
2318 * i386-nat.c (i386_dr_show): Renamed to
2319 i386_show_dr and made static. All uses updated.
2320 (i386_dr_length_and_rw_bits): Renamed to
2321 i386_length_and_rw_bits and made static.
2323 (i386_dr_insert_aligned_watchpoint): Renamed to
2324 i386_insert_aligned_watchpoint and made static.
2326 (i386_dr_remove_aligned_watchpoint): Renamed to
2327 i386_remove_aligned_watchpoint and made static.
2329 (i386_dr_update_inferior_debug_regs): Renamed to
2330 i386_update_inferior_debug_regs and made static.
2332 * nat/i386-dregs.h (i386_dr_show): Removed.
2333 (i386_dr_length_and_rw_bits): Likewise.
2334 (i386_dr_insert_aligned_watchpoint): Likewise.
2335 (i386_dr_remove_aligned_watchpoint): Likewise.
2336 (i386_dr_update_inferior_debug_regs): Likewise.
2338 2014-06-19 Gary Benson <gbenson@redhat.com>
2340 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2341 * configure: Regenerate.
2342 * config.in: Likewise.
2343 * main.c (signal.h): New include.
2344 (setup_alternate_signal_stack): New function.
2345 (captured_main): Call the above.
2346 * cp-support.c (signal.h): New include.
2347 (catch_demangler_crashes): New flag.
2348 (SIGJMP_BUF): New define.
2349 (SIGSETJMP): Likewise.
2350 (SIGLONGJMP): Likewise.
2351 (gdb_demangle_jmp_buf): New static global.
2352 (gdb_demangle_attempt_core_dump): Likewise.
2353 (gdb_demangle_signal_handler): New function.
2354 (gdb_demangle): If catch_demangler_crashes is set, install the
2355 above signal handler before calling bfd_demangle, and restore
2356 the original signal handler afterwards. Display the offending
2357 symbol and call demangler_warning the first time a segmentation
2359 (_initialize_cp_support): New maint set/show command.
2361 2014-06-19 Gary Benson <gbenson@redhat.com>
2363 * utils.h (resource_limit_kind): New enum.
2364 (can_dump_core): New declaration.
2365 (warn_cant_dump_core): Likewise.
2366 (dump_core): Likewise.
2367 * utils.c (dump_core): Made nonstatic. Added new
2368 parameter "limit_kind".
2369 (can_dump_core): Made nonstatic. Moved printing code to...
2370 (warn_cant_dump_core): New function.
2371 (can_dump_core_warn): Likewise.
2372 (internal_vproblem): Replace calls to can_dump_core with
2373 calls to can_dump_core_warn. Supply new argument to each.
2375 2014-06-19 Gary Benson <gbenson@redhat.com>
2377 * utils.h (demangler_vwarning): New declaration.
2378 (demangler_warning): Likewise.
2379 * utils.c (struct internal_problem)
2380 <user_settable_should_quit>: New field.
2381 <user_settable_should_dump_core>: Likewise
2382 (internal_error_problem): Add values for above new fields.
2383 (internal_warning_problem): Likewise.
2384 (demangler_warning_problem): New static global.
2385 (demangler_vwarning): New function.
2386 (demangler_warning): Likewise.
2387 (add_internal_problem_command): Selectively add commands.
2388 (_initialize_utils): New internal problem command.
2389 * maint.c (maintenance_demangler_warning): New function.
2390 (_initialize_maint_cmds): New command.
2392 2014-06-18 Tom Tromey <tromey@redhat.com>
2394 * f-valprint.c (info_common_command_for_block): Update.
2395 * symtab.h (struct general_symbol_info) <common_block>: Now
2398 2014-06-18 Tom Tromey <tromey@redhat.com>
2400 * symtab.h (struct symtab) <blockvector>: Now const.
2401 * ada-lang.c (ada_add_global_exceptions): Update.
2402 * buildsym.c (augment_type_symtab): Update.
2403 * dwarf2read.c (dw2_lookup_symbol): Update.
2404 * jit.c (finalize_symtab): Update.
2405 * jv-lang.c (add_class_symtab_symbol): Update.
2406 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2408 * objfiles.c (objfile_relocate1): Update.
2409 * psymtab.c (lookup_symbol_aux_psymtabs)
2410 (maintenance_check_psymtabs): Update.
2411 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2413 * spu-tdep.c (spu_catch_start): Update.
2414 * symmisc.c (dump_symtab_1): Update.
2415 * symtab.c (lookup_global_symbol_from_objfile)
2416 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2417 (basic_lookup_transparent_type_quick)
2418 (basic_lookup_transparent_type, find_pc_sect_symtab)
2419 (find_pc_sect_line, search_symbols): Update.
2420 * block.c (find_block_in_blockvector): Make "bl" const.
2421 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2423 (blockvector_contains_pc): Make "bv" const.
2424 (block_for_pc_sect): Update.
2425 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2426 (blockvector_contains_pc): Update.
2427 * breakpoint.c (resolve_sal_pc): Update.
2428 * inline-frame.c (block_starting_point_at): Update.
2430 2014-06-18 Tom Tromey <tromey@redhat.com>
2432 * completer.c (complete_line): Make "line_buffer" const.
2433 * completer.h (complete_line): Update.
2435 2014-06-18 Tom Tromey <tromey@redhat.com>
2437 * symtab.c (add_macro_name): Remove unneeded cast.
2439 2014-06-18 Tom Tromey <tromey@redhat.com>
2441 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2442 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2444 2014-06-18 Tom Tromey <tromey@redhat.com>
2446 * probe.c (info_probes_for_ops): Make "arg" const.
2447 * probe.h (info_probes_for_ops): Update.
2449 2014-06-18 Tom Tromey <tromey@redhat.com>
2451 * varobj.c (varobj_create): Update.
2452 * valops.c (value_of_this): Update.
2453 * tracepoint.c (add_local_symbols, scope_info): Update.
2454 * symtab.h (struct general_symbol_info) <block>: Now const.
2455 * symtab.c (skip_prologue_sal)
2456 (default_make_symbol_completion_list_break_on)
2457 (skip_prologue_using_sal): Update.
2458 * stack.h (iterate_over_block_locals)
2459 (iterate_over_block_local_vars): Update.
2460 * stack.c (print_frame_args): Update.
2461 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2463 (get_selected_block): Make return type const.
2464 * python/py-frame.c (frapy_block): Update.
2465 * python/py-block.c (gdbpy_block_for_pc): Update.
2466 * p-exp.y (%union) <bval>: Now const.
2467 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2468 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2469 * m2-exp.y (%union) <bval>: Now const.
2470 * linespec.c (get_current_search_block): Make return type const.
2471 (create_sals_line_offset, find_label_symbols): Update.
2472 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2474 (block_starting_point_at): Make "block" const.
2475 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2476 (check_exception_resume): Update.
2477 * guile/scm-frame.c (gdbscm_frame_block): Update.
2478 * guile/scm-block.c (gdbscm_lookup_block): Update.
2479 * frame.h (get_frame_block): Update.
2480 (get_selected_block): Make return type const.
2481 * frame.c (frame_id_inner): Update.
2482 * f-valprint.c (info_common_command_for_block)
2483 (info_common_command): Update.
2484 * dwarf2loc.c (dwarf2_find_location_expression)
2485 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2486 (locexpr_describe_location_piece): Update.
2487 * c-exp.y (%union) <bval>: Now const.
2488 * breakpoint.c (resolve_sal_pc): Update.
2489 * blockframe.c (get_frame_block):Make return type const.
2490 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2491 (block_innermost_frame): Update.
2492 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2493 (block_for_pc, block_for_pc_sect): Update.
2494 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2496 (block_for_pc_sect, block_for_pc): Make return type const.
2497 * ax-gdb.c (gen_expr): Update.
2498 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2499 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2500 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2501 (ada_read_var_value): Update.
2502 * ada-exp.y (struct name_info) <block>: Now const.
2504 (block_lookup): Constify.
2506 2014-06-18 Gary Benson <gbenson@redhat.com>
2508 * nat/i386-dregs.h: New file.
2509 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2510 * i386-nat.h (i386-dregs.h): New include.
2511 (DR_FIRSTADDR): Now in i386-dregs.h.
2512 (DR_LASTADDR): Likewise.
2513 (DR_NADDR): Likewise.
2514 (DR_STATUS): Likewise.
2515 (DR_CONTROL): Likewise.
2516 (i386_debug_reg_state): Likewise.
2517 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2519 2014-06-18 Don Breazeal <donb@codesourcery.com>
2521 * breakpoint.c (set_longjmp_breakpoint): Call
2522 momentary_breakpoint_from_master with additional argument.
2523 (set_longjmp_breakpoint_for_call_dummy): Call
2524 momentary_breakpoint_from_master with additional argument.
2525 (set_std_terminate_breakpoint): Call
2526 momentary_breakpoint_from_master with additional argument.
2527 (momentary_breakpoint_from_master): Add argument to function
2528 definition and use it to initialize structure member flag.
2529 (clone_momentary_breakpoint): Call
2530 momentary_breakpoint_from_master with additional argument.
2531 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2532 member flags set in momentary_breakpoint_from_master.
2534 2014-06-18 Gary Benson <gbenson@redhat.com>
2536 * i386-nat.c (i386_show_dr): Renamed to
2537 i386_dr_show and made nonstatic. All uses updated.
2538 (i386_length_and_rw_bits): Renamed to
2539 i386_dr_length_and_rw_bits and made nonstatic.
2541 (i386_insert_aligned_watchpoint): Renamed to
2542 i386_dr_insert_aligned_watchpoint and made nonstatic.
2544 (i386_remove_aligned_watchpoint): Renamed to
2545 i386_dr_remove_aligned_watchpoint and made nonstatic.
2547 (i386_update_inferior_debug_regs): Renamed to
2548 i386_dr_update_inferior_debug_regs and made nonstatic.
2551 2014-06-18 Gary Benson <gbenson@redhat.com>
2553 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2554 (i386_dr_low_can_set_control): Likewise.
2555 (i386_dr_low_set_addr): Likewise.
2556 (i386_dr_low_set_control): Likewise.
2557 (i386_dr_low_get_addr): Likewise.
2558 (i386_dr_low_get_status): Likewise.
2559 (i386_dr_low_get_control): Likewise.
2560 (i386_insert_aligned_watchpoint): Use new macros.
2561 (i386_update_inferior_debug_regs): Likewise.
2562 (i386_stopped_data_address): Likewise.
2564 2014-06-18 Gary Benson <gbenson@redhat.com>
2566 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2567 New parameter. All uses updated.
2569 2014-06-18 Gary Benson <gbenson@redhat.com>
2571 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2574 2014-06-18 Gary Benson <gbenson@redhat.com>
2576 * i386-nat.c (debug_printf): New macro.
2577 (i386_get_debug_register_length): Likewise.
2578 (TARGET_HAS_DR_LEN_8): Use above macro.
2579 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2580 and printf_unfiltered. Use phex to format values.
2582 2014-06-18 Gary Benson <gbenson@redhat.com>
2584 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2587 2014-06-18 Gary Benson <gbenson@redhat.com>
2589 * i386-nat.c: Comment changes.
2591 2014-06-18 Gary Benson <gbenson@redhat.com>
2593 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2595 2014-06-18 Gary Benson <gbenson@redhat.com>
2597 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2598 (i386_insert_aligned_watchpoint): Likewise.
2599 (i386_remove_aligned_watchpoint): Likewise.
2600 (i386_handle_nonaligned_watchpoint): Likewise.
2602 2014-06-18 Gary Benson <gbenson@redhat.com>
2604 * i386-nat.c: Whitespace changes.
2606 2014-06-17 Samuel Bronson <naesten@gmail.com>
2608 * MAINTAINERS: Update Roland McGrath's email address.
2609 Thanks to Sergio Durigan Junior for pointing out that he left
2610 Red Hat a while ago, and giving me a current address.
2612 2014-06-17 Tom Tromey <tromey@redhat.com>
2614 * utils.h (savestring): Remove declaration.
2616 2014-06-17 Tom Tromey <tromey@redhat.com>
2618 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2620 2014-06-16 Keith Seitz <keiths@redhat.com>
2623 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2624 to update the varobj if inferior_ptid is null_ptid.
2626 2014-06-16 Tom Tromey <tromey@redhat.com>
2628 * target.h (struct target_ops) <to_info_proc>: Make parameter
2630 (target_info_proc): Update.
2631 * target.c (target_info_proc): Make "args" const.
2632 * procfs.c (procfs_info_proc): Update.
2633 * linux-tdep.c (linux_info_proc): Update.
2634 (linux_core_info_proc_mappings): Make "args" const.
2635 (linux_core_info_proc): Update.
2636 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2637 * gdbarch.c: Rebuild.
2638 * gdbarch.h: Rebuild.
2639 * corelow.c (core_info_proc): Update.
2641 2014-06-16 Tom Tromey <tromey@redhat.com>
2643 * target.h (struct target_ops) <to_disconnect>: Make parameter
2645 (target_disconnect): Update.
2646 * target.c (target_disconnect): Make "args" const.
2647 * target-delegates.c: Rebuild.
2648 * remote.c (remote_disconnect): Update.
2649 * record.h (record_disconnect): Update.
2650 * record.c (record_disconnect): Update.
2651 * inf-child.c (inf_child_disconnect): Update.
2653 2014-06-16 Tom Tromey <tromey@redhat.com>
2655 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2656 * target.c (debug_to_rcmd, default_rcmd): Update.
2657 * target-delegates.c: Rebuild.
2658 * remote.c (remote_rcmd): Update.
2659 * monitor.c (monitor_rcmd): Update.
2661 2014-06-16 Pedro Alves <palves@redhat.com>
2663 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2664 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2665 have OBJF_SHARED set.
2666 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2667 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2668 instead of OBJF_USERLOADED.
2669 * objfiles.h (OBJF_SHARED): Update comment.
2670 (userloaded_objfile_contains_address_p): Rename to ...
2671 (shared_objfile_contains_address_p): ... this, and update
2673 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2675 (remove_symbol_file_command): Skip objfiles that don't have
2678 2014-06-16 Tom Tromey <tromey@redhat.com>
2680 * minsyms.h (prim_record_minimal_symbol)
2681 (prim_record_minimal_symbol_and_info): Update comments.
2683 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2685 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2686 or --without-guile, according to how GDB was built.
2688 2014-06-13 Tom Tromey <tromey@redhat.com>
2690 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2692 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2694 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2696 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2697 help_list.Pass all_commands, not -1, to help_list.
2698 * cli/cli-dump.c (dump_command, append_command)
2699 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2700 (binary_dump_command, binary_append_command): Pass all_commands,
2701 not -1, to help_list.
2702 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2704 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2706 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2708 * top.c (set_history): Pass all_commands, not -1, to help_list.
2709 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2710 all_commands, not -1, to help_list.
2711 * symfile.c (overlay_command): Pass all_commands, not -1, to
2713 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2715 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2717 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2719 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2720 not -1, to help_list.
2721 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2722 not -1, to help_list.
2723 * maint.c (maintenance_command, maintenance_info_command)
2724 (maintenance_print_command, maintenance_set_cmd): Pass
2725 all_commands, not -1, to help_list.
2726 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2728 * language.c (set_check): Pass all_commands, not -1, to help_list.
2729 * infcmd.c (unset_command): Pass all_commands, not -1, to
2731 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2733 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2735 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2737 * breakpoint.c (save_command): Pass all_commands, not -1, to
2739 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2740 all_commands, not -1, to help_list.
2742 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2744 * regcache.c (struct register_to_invalidate): New structure.
2745 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2747 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2749 2014-06-12 Yao Qi <yao@codesourcery.com>
2751 * varobj.c (varobj_get_num_children): Call
2752 varobj_is_dynamic_p.
2753 (varobj_list_children): Likewise.
2754 (varobj_update): Likewise. Update comments.
2756 2014-06-12 Yao Qi <yao@codesourcery.com>
2758 * varobj.c (varobj_pretty_printed_p): Rename to ...
2759 (varobj_is_dynamic_p): ... this. New function.
2760 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2761 (varobj_is_dynamic_p): Declare.
2762 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2763 (mi_print_value_p, varobj_update_one): Likewise.
2765 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2766 Yao Qi <yao@codesourcery.com>
2768 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2769 (varobj_get_iterator): Wrap up code for pretty-printer by
2770 "#if HAVE_PYTHON" and "#endif".
2771 (update_dynamic_varobj_children): Likewise.
2773 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2774 Yao Qi <yao@codesourcery.com>
2776 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2777 gdb_python_initialized is false. Move some code from varobj.c.
2778 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2779 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2780 (struct varobj_item): Moved to varobj-iter.h".
2781 (varobj_clear_saved_item): New function.
2782 (update_dynamic_varobj_children): Move python-related code to
2784 (free_variable): Call varobj_clear_saved_item and
2787 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2788 Yao Qi <yao@codesourcery.com>
2790 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2791 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2792 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2793 (py-varobj.o): New rule.
2794 * python/py-varobj.c: New file.
2795 * python/python-internal.h (py_varobj_get_iterator): Declare.
2796 * varobj-iter.h: New file.
2797 * varobj.c: Include "varobj-iter.h"
2798 (struct varobj) <child_iter>: Change its type from "PyObject *"
2799 to "struct varobj_iter *".
2800 <saved_item>: Likewise.
2801 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2802 [HAVE_PYTHON] (varobj_get_iterator): New function.
2803 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2804 python-specific code to python/py-varobj.c.
2805 (install_visualizer): Call varobj_iter_delete instead of
2807 * varobj.h (varobj_ensure_python_env): Declare.
2809 2014-06-12 Yao Qi <yao@codesourcery.com>
2811 * varobj.c (struct varobj_item): New structure.
2812 (create_child_with_value): Update declaration.
2813 (varobj_add_child): Replace arguments 'name' and 'value' with
2814 'item'. All callers updated.
2815 (install_dynamic_child): Likewise.
2816 (update_dynamic_varobj_children): Likewise.
2817 (varobj_add_child): Likewise.
2818 (create_child_with_value): Likewise.
2820 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2822 * NEWS: Create a new section for the next release branch.
2823 Rename the section of the current branch, now that it has
2826 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2828 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2829 * version.in: Bump version to 7.8.50.DATE-cvs.
2831 2014-06-11 Pedro Alves <palves@redhat.com>
2834 * ser-mingw.c (net_windows_socket_check_pending): New function.
2835 (net_windows_select_thread): Ignore spurious wakeups. Use
2836 net_windows_socket_check_pending.
2837 (net_windows_wait_handle): Check for pending events with
2838 ioctlsocket, through net_windows_socket_check_pending, instead of
2839 checking the socket's event.
2841 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2843 * python/python-internal.h (gdb_PyObject_GetAttrString)
2844 (gdb_PyObject_HasAttrString): New inline function definitions.
2845 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2846 char * of the second argument to PyObject_GetAttrString.
2848 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2850 * serial.c (serial_write): Fix index of character to be printed
2851 in call to serial_logchar when serial debug traces are enabled.
2853 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2855 * gdbtypes (resolve_dynamic_range): Add function description.
2857 2014-06-09 Pedro Alves <palves@redhat.com>
2859 * linux-nat.c (linux_child_follow_fork): Initialize status with
2860 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2861 inner block. Only pass the signal to PTRACE_DETACH if in pass
2864 2014-06-09 Gary Benson <gbenson@redhat.com>
2866 * common/signals.c (gdb_signal_from_host): Reorder to separate
2867 the always-available ANSI-standard signals from the signals that
2869 (do_gdb_signal_to_host): Likewise.
2870 * proc-events.c (signal_table): Likewise.
2872 2014-06-08 Hui Zhu <hui@codesourcery.com>
2874 * common/linux-ptrace.c (linux_disable_event_reporting): New
2876 * common/linux-ptrace.h (linux_disable_event_reporting): New
2878 * linux-nat.c (linux_child_follow_fork): Do a single step before
2881 2014-06-07 Keith Seitz <keiths@redhat.com>
2885 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2886 from symbol_matches_domain in symtab.c. All local callers
2887 of symbol_matches_domain updated.
2888 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2889 search STRUCT_DOMAIN.
2890 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2891 independently. standard_lookup will do that automatically.
2892 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2893 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2894 (cp_lookup_symbol_in_namespace): Likewise.
2895 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2896 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2897 may return a STRUCT_DOMAIN match.
2898 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2899 * cp-support.c: Include language.h.
2900 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2902 * psymtab.c (match_partial_symbol): Compare the requested
2903 domain with the symbol's domain directly.
2904 (lookup_partial_symbol): Likewise.
2905 * symtab.c (lookup_symbol_in_language): Explain when/why
2906 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2907 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2908 appropriate languages.
2909 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2910 and moved to ada-lang.c
2911 (lookup_block_symbol): Explain that this function only returns
2912 symbol matching the requested DOMAIN.
2913 Compare the requested domain with the symbol's domain directly.
2914 (iterate_over_symbols): Compare the requested domain with the
2915 symbol's domain directly.
2916 * symtab.h (symbol_matches_domain): Remove.
2918 2014-06-06 Doug Evans <xdje42@gmail.com>
2920 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2921 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2922 (gdbscm_guile_version_is_at_least): Declare.
2923 (gdbscm_scm_string_to_int): Declare.
2924 * guile/guile.c (gdbscm_guile_major_version): New global.
2925 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2926 (guile_datadir): New static global.
2927 (gdbscm_guile_data_directory): New function.
2928 (initialize_scheme_side): Update.
2929 (misc_guile_functions): Add guile-data-directory.
2930 (initialize_gdb_module): Fetch guile version number.
2931 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2932 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2933 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2934 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2936 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2937 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2938 * guile/scm-value.c (gdbscm_value_to_string): Only call
2939 scm_port_conversion_strategy if Guile version >= 2.0.6.
2941 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2943 * main.c (print_gdb_help): Add -q and --silent.
2945 2014-06-06 Gary Benson <gbenson@redhat.com>
2947 * common/signals.c: Remove preprocessor conditionals for
2948 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2949 SIGSEGV and SIGTERM.
2950 * proc-events.c: Likewise.
2952 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2954 * symfile.c (symfile_free_objfile): Remove restriction to
2956 * symfile-mem.c (symbol_file_add_from_memory): Call
2957 add_target_sections_of_objfile.
2959 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2961 * guile/scm-value.c (gdbscm_history_append_x): Use
2962 'vlscm_get_value_smob_arg_unsafe' instead of
2963 'vlscm_scm_to_value'.
2965 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2968 * utils.c (printchar): Don't escape at all if quoter is NUL.
2969 Update function documentation to clarify effect of parameter
2971 * remote.c (escape_buffer): Pass '\\' as the quoter to
2972 fputstrn_unfiltered.
2973 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2974 generate the output.
2975 (mi_solib_unloaded): Same.
2977 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2979 * development.sh: Delete.
2980 * Makefile.in (config.status): Adjust dependency on development.sh.
2981 * configure.ac: Adjust development.sh source call.
2982 * configure: Regenerate.
2984 2014-06-04 Doug Evans <xdje42@gmail.com>
2986 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2987 is_scheme_bkpt, spec.
2988 (bpscm_make_breakpoint_smob): Initialize new members.
2989 (gdbscm_create_breakpoint_x): Split into two ...
2990 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2991 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2992 (scheme_function breakpoint_functions): Update.
2993 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2994 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2995 register-breakpoint!.
2997 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3000 * mem-break.c (z_type_supported): Return zero if
3001 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3003 2014-06-04 Tom Tromey <tromey@redhat.com>
3005 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3006 value_from_contents_and_address_unresolved.
3007 (ada_template_to_fixed_record_type_1): Likewise.
3008 (ada_which_variant_applies): Likewise.
3009 * value.h (value_from_contents_and_address_unresolved): Declare.
3010 * value.c (value_from_contents_and_address_unresolved): New
3012 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3013 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3014 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3016 2014-06-04 Tom Tromey <tromey@redhat.com>
3018 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3020 2014-06-04 Tom Tromey <tromey@redhat.com>
3022 * procfs.c (procfs_attach): Make "args" const.
3023 * windows-nat.c (windows_attach): Make "args" const.
3024 * nto-procfs.c (procfs_attach): Make "args" const.
3025 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3026 * go32-nat.c (go32_attach): Make "args" const.
3027 * gnu-nat.c (gnu_attach): Make "args" const.
3028 * darwin-nat.c (darwin_attach): Make "args" const.
3029 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3030 * linux-nat.c (linux_nat_attach): Make "args" const.
3031 * remote.c (extended_remote_attach_1, extended_remote_attach):
3033 * target.h (struct target_ops) <to_attach>: Make "args" const.
3034 (find_default_attach): Likewise.
3035 * utils.c (parse_pid_to_attach): Make "args" const.
3036 * utils.h (parse_pid_to_attach): Update.
3038 2014-06-04 Tom Tromey <tromey@redhat.com>
3040 * target-delegates.c: Rebuild.
3041 * target.c (default_thread_address_space): New function.
3042 (target_thread_address_space): Simplify.
3043 * target.h (struct target_ops) <to_thread_address_space>: Add
3044 TARGET_DEFAULT_FUNC.
3046 2014-06-04 Doug Evans <xdje42@gmail.com>
3048 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3050 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3052 * record-btrace.c: Include event-loop.h and inf-loop.h.
3053 (record_btrace_resume_exec_dir)
3054 (record_btrace_async_inferior_event_handler)
3055 (record_btrace_handle_async_inferior_event): New.
3056 (record_btrace_open): Create async event handler.
3057 (record_btrace_close): Delete async event handler.
3058 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3059 Mark async event handler.
3060 (record_btrace_execution_direction): New.
3061 (init_record_btrace_ops): Initialize to_execution_direction.
3063 2014-06-03 Doug Evans <xdje42@gmail.com>
3065 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3066 (gdbscm_make_parameter): Ditto.
3068 2014-06-03 Doug Evans <dje@google.com>
3070 * exec.c (exec_close_1): Call clear_section_table instead of
3071 resize_section_table.
3072 (clear_section_table): New function.
3073 (resize_section_table): Make static. Rename arg num_added to
3075 * exec.h (clear_section_table): Declare.
3076 (resize_section_table): Delete.
3077 * progspace.c (release_program_space): Call clear_section_table
3078 instead of resize_section_table.
3080 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3082 * NEWS (Python Scripting): Add entry about the new xmethods
3085 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3087 * python/py-xmethods.c: New file.
3088 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3089 (objfpy_dealloc): XDECREF on the new xmethods field.
3090 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3092 (objfpy_get_xmethods): New function.
3093 (objfile_getset): New entry 'xmethods'.
3094 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3095 (pspy_dealloc): XDECREF on the new xmethods field.
3096 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3098 (pspy_get_xmethods): New function.
3099 (pspace_getset): New entry 'xmethods'.
3100 * python/python-internal.h: Add declarations for new functions.
3101 * python/python.c (_initialize_python): Invoke
3102 gdbpy_initialize_xmethods.
3103 * python/lib/gdb/__init__.py (xmethods): New
3105 * python/lib/gdb/xmethod.py: New file.
3106 * python/lib/gdb/command/xmethods.py: New file.
3108 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3110 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3111 best match method returned by find_overload_match is an xmethod.
3112 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3113 the best matching operator returned by find_overload_match is an
3115 * valops.c: #include "extension.h".
3116 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3117 Return void. The list of matching source methods is returned in
3118 "fn_list" and a vector of matching debug method workers is
3119 returned in "xm_worker_vec". Update all callers.
3120 (value_find_oload_method_list): Likewise.
3121 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3122 non-NULL, then the index of the best matching method in this
3123 vector is returned. Update all callers.
3124 (find_overload_match): Include xmethods while performing overload
3127 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3129 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3130 * extension-priv.h (struct extension_language_ops): Add the
3132 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3133 get_matching_xmethod_workers, get_xmethod_argtypes,
3134 invoke_xmethod, free_xmethod_worker,
3135 free_xmethod_worker_vec): New functions.
3136 * extension.h: #include "common/vec.h".
3137 New function declarations.
3138 (struct xmethod_worker): New struct.
3139 (VEC (xmethod_worker_ptr)): New vector type.
3140 (xmethod_worker_ptr): New typedef.
3141 (xmethod_worker_vec): Likewise.
3142 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3144 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3145 (struct builtin_type): New field "xmethod".
3146 * valarith.c (value_ptradd): Assert that the value argument is not
3148 * valops.c (value_must_coerce_to_target): Return 0 for
3149 lval_xcallable values.
3150 * value.c (struct value): New field XM_WORKER in the field
3152 (value_address, value_raw_address): Return 0 for lval_xcallable
3154 (set_value_address): Assert that the value is not an
3156 (value_free): Free the associated xmethod worker when freeing
3157 lval_xcallable values.
3158 (set_value_component_location): Assert that the WHOLE value is not
3160 (value_of_xmethod, call_xmethod): New functions.
3161 * value.h: Declare "struct xmethod_worker".
3162 Declare new functions value_of_xmethod, call_xmethod.
3164 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3165 Pedro Alves <palves@redhat.com>
3167 PR breakpoints/17000
3168 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3169 New function, extracted from software_breakpoint_inserted_here_p.
3170 (software_breakpoint_inserted_here_p): Replace factored out code
3171 by call to find_non_raw_software_breakpoint_inserted_here.
3172 (bp_target_info_copy_insertion_state): New function.
3173 (bkpt_insert_location): Handle the case of a single-step
3174 breakpoint already inserted at the same address.
3175 (bkpt_remove_location): Handle the case of a single-step
3176 breakpoint still inserted at the same address.
3177 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3178 breakpoint already inserted at the same address.
3179 (deprecated_remove_raw_breakpoint): Handle the case of a
3180 non-raw breakpoint still inserted at the same address.
3181 (find_single_step_breakpoint): New function, extracted from
3182 single_step_breakpoint_inserted_here_p.
3183 (find_single_step_breakpoint): New function,
3184 factored out from single_step_breakpoint_inserted_here_p.
3185 (single_step_breakpoint_inserted_here_p): Reimplement.
3187 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3189 Pushed by Joel Brobecker <brobecker@adacore.com>
3190 * source.c (show_substitute_path_command): Fix display of matching
3193 2014-06-03 Gary Benson <gbenson@redhat.com>
3195 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3197 2014-06-02 Doug Evans <xdje42@gmail.com>
3199 Add parameter support for Guile.
3200 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3201 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3202 (scm-param.o): New rule.
3203 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3204 (gdbscm_misc_error): Declare.
3205 (gdbscm_canonicalize_command_name): Declare.
3206 (gdbscm_scm_to_host_string): Declare.
3207 (gdbscm_scm_from_host_string): Declare.
3208 (gdbscm_initialize_parameters): Declare.
3209 * guile/guile.c (initialize_gdb_module): Call
3210 gdbscm_initialize_parameters.
3211 * guile/lib/gdb.scm: Export parameter symbols.
3212 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3213 cmdscm_canonicalize_name and made public. All callers updated.
3214 * guile/scm-exception.c (gdbscm_misc_error): New function.
3215 * guile/scm-param.c: New file.
3216 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3217 (gdbscm_scm_to_host_string): New function.
3218 (gdbscm_scm_from_host_string): New function.
3219 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3221 2014-06-02 Doug Evans <xdje42@gmail.com>
3223 Add command support for Guile.
3224 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3225 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3226 (scm-cmd.o): New rule.
3227 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3228 (gdbscm_user_error_p): Declare.
3229 (gdbscm_parse_command_name): Declare.
3230 (gdbscm_valid_command_class_p): Declare.
3231 (gdbscm_initialize_commands): Declare.
3232 * guile/guile.c (initialize_gdb_module): Call
3233 gdbscm_initialize_commands.
3234 * guile/lib/gdb.scm: Export command symbols.
3235 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3236 (throw-user-error): New function.
3237 * guile/scm-cmd.c: New file.
3238 * guile/scm-exception.c (user_error_symbol): New static global.
3239 (gdbscm_user_error_p): New function.
3240 (gdbscm_initialize_exceptions): Set user_error_symbol.
3241 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3243 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3245 * top.c (command_loop): Handle comments here...
3246 (command_line_input): ... not here.
3248 2014-06-02 Doug Evans <xdje42@gmail.com>
3250 Add progspace support for Guile.
3251 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3252 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3253 (scm-progspace.o): New rule.
3254 * guile/guile-internal.h (pspace_smob): New typedef.
3255 (psscm_pspace_smob_pretty_printers): Declare.
3256 (psscm_pspace_smob_from_pspace): Declare.
3257 (psscm_scm_from_pspace): Declare.
3258 * guile/guile.c (initialize_gdb_module): Call
3259 gdbscm_initialize_pspaces.
3260 * guile/lib/gdb.scm: Export progspace symbols.
3261 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3263 (append-pretty-printer!): Ditto.
3264 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3266 * guile/scm-progspace.c: New file.
3268 2014-06-03 Alan Modra <amodra@gmail.com>
3270 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3271 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3273 2014-06-02 Doug Evans <dje@google.com>
3275 Add support for skeletonless type units.
3276 * dwarf2read.c (struct dwarf2_per_objfile): New member
3277 n_allocated_type_units.
3278 (struct dwarf2_per_objfile) <tu_stats>: New member
3279 nr_all_type_units_reallocs.
3280 (create_signatured_type_table_from_index): Initialize
3281 n_allocated_type_units
3282 (create_all_type_units): Ditto.
3283 (add_type_unit): Move up in file. New arg slot.
3284 All callers updated. Increase space for all_type_units more
3286 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3287 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3288 (lookup_dwp_signatured_type): Ditto.
3289 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3290 All callers updated.
3291 (build_type_psymtabs_1): Leave type_unit_groups as
3292 NULL if no TUs present.
3293 (print_tu_stats): New function.
3294 (process_skeletonless_type_unit): New function.
3295 (process_dwo_file_for_skeletonless_type_units): New
3297 (process_skeletonless_type_units): New function.
3298 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3299 Call print tu_stats if debugging enabled.
3301 2014-06-02 Pedro Alves <palves@redhat.com>
3303 * breakpoint.c (build_target_command_list): Don't build a command
3304 list if we have any duplicate location that isn't a dprintf.
3306 2014-06-02 Pedro Alves <palves@redhat.com>
3308 * breakpoint.c (dprintf_breakpoint_hit): New function.
3309 (initialize_breakpoint_ops): Install it as dprintf's
3310 breakpoint_hit method.
3312 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3314 * source.c (substitute_path_rule_matches): Simplify using
3315 filename_ncmp instead of FILENAME_CMP.
3317 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3319 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3321 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3323 * configure.ac: When Guile is available, check for the
3324 availability of 'scm_new_smob'.
3325 * configure, config.h.in: Regenerate.
3326 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3329 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3331 * frame.c (struct frame_info): Add stop_string field.
3332 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3333 (get_prev_frame_always): Old content moved into
3334 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3335 TRY_CATCH, handle MEMORY_ERROR exceptions.
3336 (frame_stop_reason_string): New function definition.
3337 * frame.h (unwind_stop_reason_to_string): Extend comment to
3338 mention frame_stop_reason_string.
3339 (frame_stop_reason_string): New function declaration.
3340 * stack.c (frame_info): Switch to frame_stop_reason_string.
3341 (backtrace_command_1): Switch to frame_stop_reason_string.
3342 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3343 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3344 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3346 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3348 * frame.c (frame_stop_reason_string): Rename to ...
3349 (unwind_stop_reason_to_string): this.
3350 * frame.h (frame_stop_reason_string): Rename to ...
3351 (unwind_stop_reason_to_string): this.
3352 * stack.c (frame_info): Update call to frame_stop_reason_string.
3353 (backtrace_command_1): Likewise.
3354 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3355 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3357 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3359 * frame.c (remove_prev_frame): New function.
3360 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3363 2014-05-29 Pedro Alves <palves@redhat.com>
3365 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3366 and make it const. When a single-step decays to a continue,
3367 clear 'step', not 'hw_step'. Pass whether the caller wanted
3368 to step to user_visible_resume_ptid, not what we ask the
3371 2014-05-29 Pedro Alves <palves@redhat.com>
3373 * infrun.c (process_event_stop_test, handle_step_into_function)
3374 (handle_step_into_function_backward): Adjust.
3375 Don't set the even thread's stop_step and call stop_waiting before
3376 calling end_stepping_range. Instead do that ...
3377 (end_stepping_range): ... here. Take an ecs pointer parameter.
3379 2014-05-29 Pedro Alves <palves@redhat.com>
3381 * infrun.c (stop_stepping): Rename to ...
3382 (stop_waiting): ... this.
3383 (proceed): Update comment.
3384 (process_event_stop_test, handle_inferior_event)
3385 (handle_signal_stop, handle_step_into_function)
3386 (handle_step_into_function_backward): Update.
3388 2014-05-29 Pedro Alves <palves@redhat.com>
3390 * infcall.c (run_inferior_call): Don't check whether the current
3391 thread is running after the proceed call.
3393 2014-05-29 Pedro Alves <palves@redhat.com>
3394 Tom Tromey <tromey@redhat.com>
3396 * NEWS: Mention "maint set target-async", "set mi-async", and that
3397 background execution commands are now always available.
3398 * target.h (target_async_permitted): Update comment.
3399 * target.c (target_async_permitted, target_async_permitted_1):
3401 (set_target_async_command): Rename to ...
3402 (maint_set_target_async_command): ... this.
3403 (show_target_async_command): Rename to ...
3404 (maint_show_target_async_command): ... this.
3405 (_initialize_target): Adjust.
3406 * infcmd.c (prepare_execution_command): Make extern.
3407 * inferior.h (prepare_execution_command): Declare.
3408 * infrun.c (set_observer_mode): Leave target async alone.
3409 * mi/mi-interp.c (mi_interpreter_init): Install
3410 mi_on_sync_execution_done as sync_execution_done observer.
3411 (mi_on_sync_execution_done): New function.
3412 (mi_execute_command_input_handler): Don't print the prompt if we
3413 just started a synchronous command with an async target.
3414 (mi_on_resume): Check sync_execution before printing prompt.
3415 * mi/mi-main.h (mi_async_p): Declare.
3416 * mi/mi-main.c: Include gdbcmd.h.
3417 (mi_async_p): New function.
3418 (mi_async, mi_async_1): New globals.
3419 (set_mi_async_command, show_mi_async_command, mi_async): New
3421 (exec_continue): Call prepare_execution_command.
3422 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3423 (mi_execute_async_cli_command): Use mi_async_p.
3424 (_initialize_mi_main): Install "set mi-async". Make
3425 "target-async" a deprecated alias.
3427 2014-05-29 Pedro Alves <palves@redhat.com>
3429 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3430 (_initialize_cli_interp): Adjust.
3431 * event-loop.c: Include "observer.h".
3432 (start_event_loop): Notify 'command_error' observers instead of
3433 calling display_gdb_prompt. Remove FIXME comment.
3434 * event-top.c (display_gdb_prompt): Remove call into the
3436 * inf-loop.c: Include "observer.h".
3437 (inferior_event_handler): Notify 'command_error' observers instead
3438 of calling display_gdb_prompt.
3439 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3440 observers instead of calling display_gdb_prompt.
3441 * interps.c (interp_set): Don't call display_gdb_prompt.
3442 (current_interp_display_prompt_p): Delete.
3443 * interps.h (interp_prompt_p): Delete declaration.
3444 (interp_prompt_p_ftype): Delete.
3445 (struct interp_procs) <prompt_proc_p>: Delete field.
3446 (current_interp_display_prompt_p): Delete declaration.
3447 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3448 (_initialize_mi_interp): Adjust.
3449 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3450 'command_error' observers.
3451 (tui_on_sync_execution_done, tui_on_command_error): New
3453 (tui_display_prompt_p): Delete.
3454 (_initialize_tui_interp): Adjust.
3456 2014-05-29 Pedro Alves <palves@redhat.com>
3459 * cli/cli-interp.c: Include infrun.h and observer.h.
3460 (cli_uiout, cli_interp): New globals.
3461 (cli_on_signal_received, cli_on_end_stepping_range)
3462 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3464 (cli_interpreter_init): Install them as 'end_stepping_range',
3465 'signal_received' 'signal_exited', 'exited' and 'no_history'
3467 (_initialize_cli_interp): Remove cli_interp local.
3468 * infrun.c (handle_inferior_event): Call the several stop reason
3469 observers instead of printing the stop reason directly.
3470 (end_stepping_range): New function.
3471 (print_end_stepping_range_reason, print_signal_exited_reason)
3472 (print_exited_reason, print_signal_received_reason)
3473 (print_no_history_reason): Make static, and add an uiout
3474 parameter. Print to that instead of to CURRENT_UIOUT.
3475 * infrun.h (print_end_stepping_range_reason)
3476 (print_signal_exited_reason, print_exited_reason)
3477 (print_signal_received_reason print_no_history_reason): New
3479 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3481 <cli_uiout>: New field.
3482 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3483 uiout for CLI output. Install 'signal_received',
3484 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3486 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3487 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3488 (mi_on_no_history): New functions.
3489 (ui_out_free_cleanup): Delete function.
3490 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3491 instead use the one already stored in the MI interpreter data.
3492 (mi_ui_out): Adjust.
3493 * tui/tui-interp.c: Include infrun.h and observer.h.
3494 (tui_interp): New global.
3495 (tui_on_signal_received, tui_on_end_stepping_range)
3496 (tui_on_signal_exited, tui_on_exited)
3497 (tui_on_no_history): New functions.
3498 (tui_init): Install them as 'end_stepping_range',
3499 'signal_received' 'signal_exited', 'exited' and 'no_history'
3501 (_initialize_tui_interp): Delete tui_interp local.
3503 2014-05-29 Pedro Alves <palves@redhat.com>
3506 * linux-nat.c (linux_nat_resume_callback): Rename the second
3507 parameter to 'except'. Skip LP if it points to EXCEPT.
3508 (linux_nat_resume): Don't mark the event lwp as not stopped
3509 before resuming sibling lwps. Instead ask
3510 linux_nat_resume_callback to skip the event lwp. Mark it as not
3511 stopped after actually resuming it.
3512 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3514 (wait_lwp): Mark the lwp as stopped here.
3515 (stop_wait_callback): Mark the lwp as not stopped right after
3516 resuming it. Don't mark lwps as stopped here.
3517 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3518 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3520 2014-05-29 Pedro Alves <palves@redhat.com>
3523 * infrun.c (resume): Determine how much to resume depending on
3524 whether the caller wanted a step, not whether we can hardware step
3525 the target. Mark all threads that we intend to run as running,
3526 unless we're calling an inferior function.
3527 (normal_stop): If the thread is running an infcall, don't finish
3529 * target.c (target_resume): Don't mark threads as running here.
3531 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3533 * serial.c (_initialize_serial): Remove support for
3534 the "set remotebaud" and "show remotebaud" commands.
3535 * NEWS: Add entry documenting the removal of that command.
3537 2014-05-28 Yao Qi <yao@codesourcery.com>
3539 * charset.c: Fix typo in comments.
3541 2014-05-27 Gary Benson <gbenson@redhat.com>
3543 * utils.c (internal_vproblem): Prompt for a bug report.
3545 2014-05-26 Andy Wingo <wingo@igalia.com>
3547 * guile/scm-arch.c (arscm_mark_arch_smob):
3548 * guile/scm-block.c (bkscm_mark_block_smob)
3549 (bkscm_mark_block_syms_progress_smob):
3550 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3551 * guile/scm-exception.c (exscm_mark_exception_smob):
3552 * guile/scm-frame.c (frscm_mark_frame_smob):
3553 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3554 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3555 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3556 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3557 (ppscm_mark_pretty_printer_worker_smob):
3558 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3559 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3560 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3561 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3563 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3566 2014-05-26 Andy Wingo <wingo@igalia.com>
3567 Doug Evans <xdje42@gmail.com>
3569 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3570 empty_base_class. All uses updated.
3571 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3572 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3574 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3575 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3576 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3577 (gdbscm_gsmob_has_property_p, add_property_name)
3578 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3579 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3580 (gdb-object-has-property?, gdb-object-properties): Remove.
3581 (gdb-object-kind): Renamed from gsmob-kind.
3583 2014-05-26 Andy Wingo <wingo@igalia.com>
3585 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3586 * configure: Regenerate.
3588 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3590 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3592 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3594 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3595 (replay_memory_access_read_only, replay_memory_access_read_write)
3596 (replay_memory_access_types, replay_memory_access)
3597 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3598 (cmd_set_record_btrace, cmd_show_record_btrace)
3599 (cmd_show_replay_memory_access): New.
3600 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3601 (record_btrace_remove_breakpoint): Replace
3602 record_btrace_allow_memory_access with replay_memory_access.
3603 (_initialize_record_btrace): Add commands.
3604 * NEWS: Announce it.
3606 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3608 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3610 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3612 * MAINTAINERS (Write After Approval): Move self back from
3615 2014-05-22 Pedro Alves <palves@redhat.com>
3617 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3618 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3619 (disable_randomization, enum exec_direction_kind)
3620 (execution_direction, stop_registers, start_remote)
3621 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3622 (wait_for_inferior, normal_stop, get_last_target_status)
3623 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3624 (insert_step_resume_breakpoint_at_sal)
3625 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3626 (set_step_info, print_stop_event, signal_stop_state)
3627 (signal_print_state, signal_pass_state, signal_stop_update)
3628 (signal_print_update, signal_pass_update)
3629 (update_signals_program_target, clear_exit_convenience_vars)
3630 (displaced_step_dump_bytes, update_observer_mode)
3631 (signal_catch_update, gdb_signal_from_command): Move
3633 * infrun.h: ... to this new file.
3634 * amd64-tdep.c: Include infrun.h.
3635 * annotate.c: Include infrun.h.
3636 * arch-utils.c: Include infrun.h.
3637 * arm-linux-tdep.c: Include infrun.h.
3638 * arm-tdep.c: Include infrun.h.
3639 * break-catch-sig.c: Include infrun.h.
3640 * breakpoint.c: Include infrun.h.
3641 * common/agent.c: Include infrun.h instead of inferior.h.
3642 * corelow.c: Include infrun.h.
3643 * event-top.c: Include infrun.h.
3644 * go32-nat.c: Include infrun.h.
3645 * i386-tdep.c: Include infrun.h.
3646 * inf-loop.c: Include infrun.h.
3647 * infcall.c: Include infrun.h.
3648 * infcmd.c: Include infrun.h.
3649 * infrun.c: Include infrun.h.
3650 * linux-fork.c: Include infrun.h.
3651 * linux-nat.c: Include infrun.h.
3652 * linux-thread-db.c: Include infrun.h.
3653 * monitor.c: Include infrun.h.
3654 * nto-tdep.c: Include infrun.h.
3655 * procfs.c: Include infrun.h.
3656 * record-btrace.c: Include infrun.h.
3657 * record-full.c: Include infrun.h.
3658 * remote-m32r-sdi.c: Include infrun.h.
3659 * remote-mips.c: Include infrun.h.
3660 * remote-notif.c: Include infrun.h.
3661 * remote-sim.c: Include infrun.h.
3662 * remote.c: Include infrun.h.
3663 * reverse.c: Include infrun.h.
3664 * rs6000-tdep.c: Include infrun.h.
3665 * s390-linux-tdep.c: Include infrun.h.
3666 * solib-irix.c: Include infrun.h.
3667 * solib-osf.c: Include infrun.h.
3668 * solib-svr4.c: Include infrun.h.
3669 * target.c: Include infrun.h.
3670 * top.c: Include infrun.h.
3671 * windows-nat.c: Include infrun.h.
3672 * mi/mi-interp.c: Include infrun.h.
3673 * mi/mi-main.c: Include infrun.h.
3674 * python/py-threadevent.c: Include infrun.h.
3676 2014-05-22 Pedro Alves <palves@redhat.com>
3678 * infrun.c (handle_inferior_event): Store the exit code for
3679 --return-child-result here, instead of ...
3680 (print_exited_reason): ... here.
3682 2014-05-21 Pedro Alves <palves@redhat.com>
3685 * gdbthread.h (struct thread_control_state): New field
3687 * infrun.c (follow_fork): Copy the new thread control field to the
3689 (clear_proceed_status_thread): Clear the new thread control field.
3690 (proceed): Set the new thread control field.
3691 * interps.h (command_interp): Declare.
3692 * interps.c (command_interpreter): New global.
3693 (command_interp): New function.
3694 (interp_exec): Set `command_interpreter' while here.
3695 * cli-out.c (cli_uiout_dtor): New function.
3696 (cli_ui_out_impl): Install it.
3697 * mi/mi-interp.c: Include cli-out.h.
3698 (mi_cmd_interpreter_exec): Add comment.
3699 (restore_current_uiout_cleanup): New function.
3700 (ui_out_free_cleanup): New function.
3701 (mi_on_normal_stop): If finishing an execution command started by
3702 a CLI command, or any kind of breakpoint-like event triggered,
3703 print the stop event to the output (CLI) stream.
3704 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3706 2014-05-21 Pedro Alves <palves@redhat.com>
3708 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3709 current source line having changed.
3710 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3711 * infrun.c (normal_stop): Adjust call to
3712 set_current_sal_from_frame.
3713 * source.c (clear_lines_listed_range): New function.
3714 (set_current_source_symtab_and_line, identify_source_line): Clear
3715 the lines listed range.
3716 (line_info): Handle the first "info line" after the current source
3717 line having changed.
3718 * stack.c (print_stack_frame): Remove center handling.
3719 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3722 2014-05-21 Pedro Alves <palves@redhat.com>
3724 * inf-child.c (inf_child_mourn_inferior): New function.
3725 * inf-child.h (inf_child_mourn_inferior): New declaration.
3726 * darwin-nat.c (darwin_mourn_inferior): Use
3727 inf_child_mourn_inferior.
3728 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3729 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3730 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3731 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3732 * windows-nat.c (windows_mourn_inferior): Likewise.
3734 2014-05-21 Doug Evans <xdje42@gmail.com>
3736 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3738 2014-05-21 Doug Evans <xdje42@gmail.com>
3740 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3741 (gdbscm_out_of_range_error): Ditto.
3742 (gdbscm_memory_error): Ditto.
3743 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3744 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3745 (gdbscm_out_of_range_error): Update.
3746 (gdbscm_memory_error): Update.
3747 (gdbscm_scm_to_target_string_unsafe): Delete.
3749 2014-05-21 Pedro Alves <palves@redhat.com>
3751 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3753 (inf_child_open_target): New function.
3754 (inf_child_open): Use inf_child_open_target to push the target
3755 instead of erroring out.
3756 (inf_child_disconnect, inf_child_close)
3757 (inf_child_maybe_unpush_target): New functions.
3758 (inf_child_target): Install inf_child_disconnect and
3759 inf_child_close. Store a pointer to the returned object.
3760 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3762 * target.c (auto_connect_native_target): New global.
3763 (show_default_run_target): New function.
3764 (find_default_run_target): Return NULL if automatically connecting
3765 to the native target is disabled.
3766 (_initialize_target): Install set/show auto-connect-native-target.
3767 * NEWS: Mention "set auto-connect-native-target", and "target
3769 * linux-nat.c (super_close): New global.
3770 (linux_nat_close): Call super_close.
3771 (linux_nat_add_target): Store a pointer to the base class's
3773 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3774 inf_child_maybe_unpush.
3775 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3777 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3778 the inferior. Use inf_child_maybe_unpush_target.
3779 (inf_ttrace_attach): Don't push the target if it is already
3781 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3782 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3783 after mourning the inferior. Use inf_child_maybe_unpush_target.
3784 (darwin_attach_pid): Don't push the target if it is already
3786 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3787 mourning the inferior. Use inf_child_maybe_unpush_target.
3788 (gnu_detach): Use inf_child_maybe_unpush_target.
3789 * go32-nat.c (go32_create_inferior): Don't push the target if it
3791 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3792 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3793 (procfs_open): Rename to ...
3794 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3795 comments. Can target_preopen before changing node. Call
3796 inf_child_open_target to push the target explicitly.
3797 (procfs_attach): Don't push the target if it is already pushed.
3798 (procfs_detach): Use inf_child_maybe_unpush_target.
3799 (procfs_create_inferior): Don't push the target if it is already
3801 (nto_native_ops): New global.
3802 (procfs_open): Reimplement.
3803 (procfs_native_open): New function.
3804 (init_procfs_targets): Install procfs_native_open as to_open of
3805 "target native". Store a pointer to the "native" target in
3807 * procfs.c (procfs_attach): Don't push the target if it is already
3809 (procfs_detach): Use inf_child_maybe_unpush_target.
3810 (procfs_mourn_inferior): Only unpush the target after mourning the
3811 inferior. Use inf_child_maybe_unpush_target.
3812 (procfs_init_inferior): Don't push the target if it is already
3814 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3815 if it is already pushed.
3817 2014-05-21 Pedro Alves <palves@redhat.com>
3819 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3820 and "procfs" targets are now called "native" instead.
3822 2014-05-21 Pedro Alves <palves@redhat.com>
3824 * go32-nat.c (go32_open): Delete.
3825 (go32_target): Don't override the to_open method.
3827 2014-05-21 Pedro Alves <palves@redhat.com>
3829 * nto-procfs.c (procfs_can_run): New function.
3830 (nto_procfs_ops): New global.
3831 (init_procfs_targets): New, based on procfs_target. Install
3832 "target native" in addition to "target procfs".
3833 (_initialize_procfs): Call init_procfs_targets instead of adding
3836 2014-05-21 Pedro Alves <palves@redhat.com>
3838 * windows-nat.c (windows_target): Don't override to_shortname,
3839 to_longname or to_doc.
3841 2014-05-21 Pedro Alves <palves@redhat.com>
3843 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3846 2014-05-21 Pedro Alves <palves@redhat.com>
3848 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3849 to_shortname, to_longname or to_doc.
3851 2014-05-21 Pedro Alves <palves@redhat.com>
3853 * go32-nat.c (go32_target): Don't override to_shortname,
3854 to_longname or to_doc.
3856 2014-05-21 Pedro Alves <palves@redhat.com>
3858 * inf-child.c (inf_child_open): Remove mention of "child".
3859 (inf_child_target): Rename target to "native" instead of "child".
3861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3863 * Makefile.in (SFILES): Delete "regset.c".
3864 (COMMON_OBS): Delete "regset.o".
3866 * regset.h (regset_alloc): Delete prototype.
3868 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3870 * sparc-linux-tdep.c (sparc32_linux_gregset)
3871 (sparc32_linux_fpregset): New static regset structures.
3872 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3873 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3875 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3876 (sparc64_linux_fpregset): New static regset structures.
3877 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3878 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3879 New static regset structures.
3880 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3881 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3882 New static regset structures.
3883 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3884 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3885 New static regset structures.
3886 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3887 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3888 New static regset structures.
3889 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3891 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3893 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3894 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3895 register maps ("regmaps") from "*regset" to "*regmap". Do this
3896 for all regmap types and variables.
3897 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3898 (sparc32_linux_supply_core_gregset)
3899 (sparc32_linux_collect_core_gregset)
3900 (sparc32_linux_supply_core_fpregset)
3901 (sparc32_linux_collect_core_fpregset): Likewise.
3902 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3903 (sparc_gregmap, sparc_fpregmap): ... these.
3904 (sparc_supply_gregset, sparc_collect_gregset)
3905 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3906 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3907 (_initialize_sparc_nat): Rename regmaps.
3908 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3909 (sparc_gregmap, sparc_fpregmap): ... these.
3910 (sparc_supply_gregset, sparc_collect_gregset)
3911 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3912 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3914 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3915 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3917 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3919 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3920 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3921 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3923 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3924 (sparc32_bsd_fpregset): Rename to...
3925 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3926 (sparc32_bsd_fpregmap): ... these.
3927 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3928 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3929 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3930 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3931 (struct sparc_gregmap, struct sparc_fpregmap)
3932 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3933 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3934 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3935 (sparc32_supply_regset, sparc32_collect_gregset)
3936 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3938 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3939 (sparc64_linux_ptrace_gregmap): ... this.
3940 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3941 (_initialize_sparc64_linux_nat): Rename regmaps.
3942 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3943 (sparc64_linux_core_gregmap): ... this.
3944 (sparc64_linux_supply_core_gregset)
3945 (sparc64_linux_collect_core_gregset)
3946 (sparc64_linux_supply_core_fpregset)
3947 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3948 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3949 (sparc64_sol2_fpregset): Rename to...
3950 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3951 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3952 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3954 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3955 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3956 (sparc64_bsd_fpregset): Rename to...
3957 (struct sparc_gregmap, sparc64_sol2_gregmap)
3958 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3959 (sparc64_bsd_fpregmap): ... these.
3960 (sparc64_supply_gregset, sparc64_collect_gregset)
3961 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3963 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3964 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3965 (sparc64fbsd_gregmap): ... this.
3966 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3967 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3969 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3970 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3971 (sparc64nbsd_collect_fpregset): Likewise.
3972 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3973 (sparc64nbsd_gregmap): ... this.
3974 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3976 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3977 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3978 (sparc64obsd_gregmap): ... this.
3979 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3981 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3982 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3983 (sparc32nbsd_gregmap): ... this.
3984 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3987 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3989 * score-tdep.c (score7_linux_gregset): New static regset
3991 (score7_linux_regset_from_core_section): Remove dynamic regset
3993 (score_gdbarch_init): Drop allocation of tdep structure.
3994 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3996 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3998 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4000 (am33_regset_from_core_section): Remove dynamic regset
4003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4005 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4006 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4008 (mips_linux_regset_from_core_section): Remove dynamic regset
4010 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4011 'gregset64', 'fpregset', and 'fpregset64'.
4012 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4013 deleted tdep fields.
4015 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4017 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4019 (amd64_regset_from_core_section): Remove dynamic regset
4021 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4023 (amd64obsd_regset_from_core_section): Remove dynamic regset
4025 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4027 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4028 x86-common regset supply function.
4029 * i386-tdep.c (i386_collect_gregset): Make static.
4030 (i386_gregset): New global regset structure.
4031 (i386_fpregset, i386_xstateregset): New static regset structures.
4032 (i386_regset_from_core_section): Remove dynamic regset
4034 (i386_gdbarch_init): Remove initialization of tdep fields
4035 'gregset', 'fpregset', and 'xstateregset'.
4036 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4037 'fpregset', and 'xstateregset'.
4038 (i386_collect_gregset): Remove prototype.
4039 (i386_gregset): New declaration.
4040 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4042 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4047 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4048 (arm_linux_vfpregset): New static regset structures.
4049 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4051 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4052 and 'vfpregset' fields.
4054 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4056 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4057 (aarch64_linux_fpregset): New static regset structures.
4058 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4059 of regset structures.
4060 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4063 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4065 * regset.h (struct regset): Remove gdbarch field.
4066 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4067 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4068 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4070 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4071 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4072 (ppc32_linux_vsxregset): Likewise.
4073 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4074 via the regcache instead of the regset.
4075 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4076 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4077 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4078 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4081 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4083 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4084 Constify structures.
4085 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4086 (alphanbsd_aout_gregset): Likewise.
4087 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4088 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4090 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4091 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4093 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4094 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4095 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4096 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4097 * m88k-tdep.c (m88k_gregset): Likewise.
4098 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4099 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4100 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4101 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4102 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4103 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4104 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4105 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4106 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4108 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4109 * sh-tdep.h (sh_corefile_gregset): Likewise.
4110 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4111 * vax-tdep.c (vax_gregset): Likewise.
4113 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4115 Fix TLS access for -static -pthread.
4116 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4117 (try_thread_db_load_1): Initialize it.
4118 (thread_db_get_thread_local_address): Call it if LM is zero.
4119 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4120 * target.h (struct target_ops) (to_get_thread_local_address): Add
4121 load_module_addr comment.
4123 2014-05-21 Pedro Alves <palves@redhat.com>
4125 * dcache.c (dcache_read_memory_partial): If reading the cache line
4126 fails, fallback to reading just the memory the caller wanted.
4128 2014-05-20 Doug Evans <dje@google.com>
4130 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4131 instead of get_current_arch.
4133 2014-05-20 Pedro Alves <palves@redhat.com>
4135 * NEWS: Mention that compare-sections now works with all targets.
4137 * remote.c (PACKET_qCRC): New enum value.
4138 (remote_verify_memory): Don't send qCRC if the target has no
4139 execution. Use packet_support/packet_ok. If the target doesn't
4140 support the qCRC packet, fallback to a deep memory copy.
4141 (compare_sections_command): Say "target image" instead of "remote
4143 (_initialize_remote): Add PACKET_qCRC to the list of config
4144 packets that have no associated command. Extend comment.
4145 * target.c (simple_verify_memory, default_verify_memory): New
4147 * target.h (struct target_ops) <to_verify_memory>: Default to
4148 default_verify_memory.
4149 (simple_verify_memory): New declaration.
4150 * target-delegates.c: Regenerate.
4152 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4154 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4156 2014-05-20 Hui Zhu <hui@codesourcery.com>
4157 Yao Qi <yao@codesourcery.com>
4160 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4161 and change address of sp and pc.
4163 2014-05-19 Tom Tromey <tromey@redhat.com>
4165 * gdbtypes.c (rank_function): Use XNEWVEC.
4166 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4168 2014-05-19 Doug Evans <dje@google.com>
4170 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4171 build_type_unit_groups and moved closer to only caller. Remove
4172 arguments. All references updated. Remove outdated .gdb_index
4174 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4175 build_type_psymtabs_1.
4177 2014-05-19 Doug Evans <dje@google.com>
4179 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4180 n_type_unit_groups, all_type_unit_groups. All uses removed.
4181 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4182 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4183 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4184 (add_type_unit_group_to_table): Delete.
4186 2014-05-19 Doug Evans <dje@google.com>
4188 * eval.c (evaluate_subexp_standard): Add some comments.
4190 2014-05-17 Doug Evans <xdje42@gmail.com>
4192 * progspace.c (remove_program_space): Delete, unused.
4193 * progspace.h (remove_program_space): Ditto.
4195 2014-05-17 Doug Evans <xdje42@gmail.com>
4197 * inferior.c (prune_inferiors): Fix comment.
4198 (remove_inferior_command): Call prune_program_spaces.
4200 2014-05-16 Doug Evans <dje@google.com>
4202 New command line option -D.
4204 * main.c (set_gdb_data_directory): New function.
4205 (captured_main): Recognize -D. Flag error for --data-directory "".
4206 Call set_gdb_data_directory.
4207 (print_gdb_help): Print --data-directory, -D.
4208 * main.h (set_gdb_data_directory): Declare.
4209 * top.c (staged_gdb_datadir): New static global.
4210 (set_gdb_datadir): Call set_gdb_data_directory
4211 (show_gdb_datadir): New function.
4212 (init_main): Update init of data-directory parameter.
4214 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4216 Import the "dirfd" gnulib module.
4217 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4218 * gnulib/aclocal.m4: Update.
4219 * gnulib/config.in: Update.
4220 * gnulib/configure: Update.
4221 * gnulib/import/Makefile.am: Update.
4222 * gnulib/import/Makefile.in: Update.
4223 * gnulib/import/dirfd.c: New.
4224 * gnulib/import/m4/dirfd.m4: New.
4225 * gnulib/import/m4/gnulib-cache.m4: Update.
4226 * gnulib/import/m4/gnulib-comp.m4: Update.
4228 2014-05-16 Pierre Muller <muller@sourceware.org>
4229 Yao Qi <yao@codesourcery.com>
4231 * valprint.c (print_wchar): Move the code on checking whether
4232 W is a printable wide char to the default branch of switch
4233 statement below. Call wchar_printable instead of gdb_iswprint.
4235 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4237 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4238 ldr.w and ldrd instructions.
4240 2014-05-15 Doug Evans <dje@google.com>
4242 * dwarf2read.c (read_structure_type): Delete outdated comments.
4244 2014-05-14 Tom Tromey <tromey@redhat.com>
4246 * macrocmd.c (print_macro_definition): Reindent.
4248 2014-05-13 Doug Evans <xdje42@gmail.com>
4250 * python/py-cmd.c (cmdpy_completer): Add comment.
4251 (completers): Make const.
4253 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4255 * infrun.c (resume): Remove should_resume (unused). Move up
4256 declaration of resume_ptid.
4258 2014-05-13 Tom Tromey <tromey@redhat.com>
4260 * language.h (unop_type_check): Remove.
4261 (binop_type_check): Don't declare.
4263 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4265 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4266 call to regcache_raw_collect.
4268 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4270 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4271 mi_console->quote as the quoting character.
4273 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4275 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4277 2014-04-29 Tom Tromey <tromey@redhat.com>
4279 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4280 "show debug varobj".
4282 2014-05-07 Kyle McMartin <kyle@redhat.com>
4284 Pushed by Joel Brobecker <brobecker@adacore.com>.
4285 * aarch64-tdep.c (aarch64_software_single_step): New function.
4286 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4287 with aarch64_software_single_step.
4289 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4293 2014-05-05 Keith Seitz <keiths@redhat.com>
4295 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4296 variable or history value is successfully parsed.
4298 2014-05-05 Yao Qi <yao@codesourcery.com>
4299 Pedro Alves <palves@redhat.com>
4301 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4302 address of blocks that intersects the requested range. Trim
4303 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4305 * ctf.c (ctf_xfer_partial): Likewise.
4307 2014-05-05 Yao Qi <yao@codesourcery.com>
4309 * printcmd.c (display_command): Remove the check to
4310 target_has_execution.
4312 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4314 * ppcobsd-nat.c: Include "obsd-nat.h".
4315 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4317 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4319 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4321 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4322 and 16-bit signed and unsigned arguments. Update comment.
4323 (stap_parse_probe_arguments): Extend code to handle such
4324 arguments. Use warning instead of complaint to notify about
4325 unrecognized bitness.
4327 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4329 PR breakpoints/16889
4330 * stap-probe.c (stap_parse_probe_arguments): Simplify
4331 check for non-prefixed probes (i.e., probes whose
4332 arguments do not start with "N@"). Always set the
4333 argument type to a sane value.
4335 2014-05-01 David Taylor <dtaylor@emc.com>
4337 * remote.c (compare_sections_command): Add -r option to compare
4338 all loadable read-only sections.
4340 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4342 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4343 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4345 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4346 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4347 Remove unused CORE_ADDR argument. Update all callers.
4349 2014-04-29 Pedro Alves <palves@redhat.com>
4351 * remote.c (struct packet_config) <detect>: Extend comment.
4352 (add_packet_config_cmd): Don't set the config's detect or support
4354 (init_all_packet_configs): Also initialize the config's 'detect'
4356 (reset_all_packet_configs_support): New function.
4357 (remote_open_1): Call reset_all_packet_configs_support instead of
4358 init_all_packet_configs.
4359 (_initialize_remote): Initialize all packet configs. Assert that
4360 all packets have an associated command, except a few known
4363 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4365 * dwarf2read.c (read_subrange_type): Handle dynamic
4366 DW_AT_lower_bound attributes.
4368 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4370 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4371 dynamic bounds before computing its upper bound.
4372 (ada_discrete_type_low_bound): Same as above with the lower bound.
4374 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4376 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4377 range types. Adjust the array handling implementation to
4378 take advantage of this change.
4379 (resolve_dynamic_range): New function, mostly extracted from
4380 resolve_dynamic_bounds.
4381 (resolve_dynamic_array): New function, mostly extracted from
4382 resolve_dynamic_bounds.
4383 (resolve_dynamic_bounds): Delete.
4384 (resolve_dynamic_type): Reimplement. Add handling of
4385 TYPE_CODE_RANGE types.
4387 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4389 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4390 handling of parallel ___XA types.
4392 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4394 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4395 unnecessary second call to static_unwrap_type.
4397 2014-04-27 Hui Zhu <hui@codesourcery.com>
4399 * stack.c (print_frame_info): Call do_gdb_disassembly with
4400 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4402 2014-04-26 Doug Evans <xdje42@gmail.com>
4404 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4406 2014-04-25 Pedro Alves <palves@redhat.com>
4409 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4410 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4411 and newline from built string.
4412 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4413 (linux_ptrace_attach_fail_reason): ... this.
4414 * linux-nat.c (linux_nat_attach): Adjust to use
4415 linux_ptrace_attach_fail_reason.
4417 2014-04-25 Pedro Alves <palves@redhat.com>
4419 * remote.c (struct remote_state): Remove multi_process_aware,
4420 non_stop_aware, cond_tracepoints, cond_breakpoints,
4421 breakpoint_commands, fast_tracepoints, static_tracepoints,
4422 install_in_trace, disconnected_tracing,
4423 enable_disable_tracepoints, string_tracing, and
4424 augmented_libraries_svr4_read fields.
4425 (remote_multi_process_p): Move further below in the file.
4426 (struct packet_config): Add comments.
4427 (update_packet_config): Delete function.
4428 (show_packet_config_cmd): Use packet_config_support.
4429 (add_packet_config_cmd): Use NULL as set callback.
4430 (packet_ok): "set remote foo-packet"-style commands no longer
4431 change config->supported -- adjust.
4432 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4433 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4434 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4435 (PACKET_QNonStop, PACKET_multiprocess_feature)
4436 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4437 (PACKET_DisconnectedTracing_feature)
4438 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4439 (set_remote_protocol_packet_cmd): Delete function.
4440 (packet_config_support, packet_support): New functions.
4441 (set_remote_protocol_Z_packet_cmd): Don't call
4442 update_packet_config.
4443 (remote_query_attached, remote_pass_signals)
4444 (remote_program_signals, remote_threads_info)
4445 (remote_threads_extra_info, remote_start_remote): Use
4447 (remote_start_remote): Use packet_config_support and
4449 (init_all_packet_configs): Set all packets to unknown support,
4450 instead of calling update_packet_config.
4451 (remote_check_symbols): Use packet_support.
4452 (remote_supported_packet): Unconditionally set the packet config's
4454 (remote_multi_process_feature, remote_non_stop_feature)
4455 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4456 (remote_breakpoint_commands_feature)
4457 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4458 (remote_install_in_trace_feature)
4459 (remote_disconnected_tracing_feature)
4460 (remote_enable_disable_tracepoint_feature)
4461 (remote_string_tracing_feature)
4462 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4463 (remote_protocol_features): Adjust to use remote_supported_packet
4464 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4465 "ConditionalTracepoints", "ConditionalBreakpoints",
4466 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4467 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4468 "EnableDisableTracepoints", and "tracenz".
4469 (remote_query_supported): Use packet_support.
4470 (remote_open_1): Adjust.
4471 (extended_remote_attach_1): Use packet_support. Switch on the
4472 result of packet_ok instead of checking whether the packet ended
4474 (remote_vcont_resume): Use packet_support.
4475 (remote_resume, remote_stop_ns, fetch_register_using_p)
4476 (remote_prepare_to_store, store_register_using_P)
4477 (check_binary_download, remote_write_bytes): Use packet_support.
4478 (remote_vkill): Use packet_support. Switch on the result of
4479 packet_ok instead of checking whether the packet ended up
4481 (extended_remote_supports_disable_randomization): Use
4483 (extended_remote_run): Switch on the result of packet_ok instead
4484 of checking whether the packet ended up disabled.
4485 (remote_insert_breakpoint, remote_remove_breakpoint)
4486 (remote_insert_watchpoint, remote_remove_watchpoint)
4487 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4489 (remote_search_memory): Use packet_config_support.
4490 (remote_get_thread_local_address, remote_get_tib_address)
4491 (remote_hostio_send_command, remote_can_execute_reverse): Use
4493 (remote_supports_cond_tracepoints)
4494 (remote_supports_cond_breakpoints)
4495 (remote_supports_fast_tracepoints)
4496 (remote_supports_static_tracepoints)
4497 (remote_supports_install_in_trace)
4498 (remote_supports_enable_disable_tracepoint)
4499 (remote_supports_string_tracing)
4500 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4501 the packet config says the feature is enabled or disabled.
4502 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4503 (remote_get_trace_status): Use packet_support.
4504 (remote_set_disconnected_tracing): Adjust to check whether the
4505 feature is enabled with packet_support.
4506 (remote_set_trace_buffer_size, remote_use_agent)
4507 (remote_can_use_agent, remote_supports_btrace): Use
4509 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4510 Use packet_config_support.
4511 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4512 the packet config says the feature is enabled or disabled.
4513 (set_range_stepping): Use packet_support.
4515 2014-04-25 Tom Tromey <tromey@redhat.com>
4517 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4520 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4522 * NEWS: Mention support for C99 variable length arrays.
4524 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4526 * ada-lang.c (standard_exc): Expand introductory comment.
4528 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4529 Walfred Tedeschi <walfred.tedeschi@intel.com>
4531 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4533 (amd64_linux_read_description): Add code to handle AVX512 xstate
4534 mask and return respective tdesc.
4535 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4536 and features/i386/x32-avx512-linux.c.
4537 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4538 (amd64_linux_core_read_description): Add code to handle AVX512
4539 xstate mask and return respective tdesc.
4540 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4541 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4543 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4544 (tdesc_amd64_avx512_linux): New prototype.
4545 (tdesc_x32_avx512_linux): Likewise.
4546 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4547 features/i386/x32-avx512.c.
4548 (amd64_ymm_avx512_names): New register names for pseudo
4550 (amd64_ymmh_avx512_names): New register names for raw registers
4552 (amd64_k_names): New register names for K registers.
4553 (amd64_zmmh_names): New register names for ZMM raw registers.
4554 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4555 (amd64_xmm_avx512_names): New register names for XMM16-31
4557 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4559 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4560 if feature is present.
4561 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4562 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4563 (AMD64_NUM_REGS): Adjust to new number of registers.
4564 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4565 registers supplied via XSTATE by AVX512 registers.
4566 (i386_linux_read_description): Add case for AVX512.
4567 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4568 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4569 (i386_linux_core_read_description): Add case for AVX512.
4570 (i386_linux_init_abi): Install supported register note section
4572 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4574 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4575 registers to be number of zmm7h + 1.
4576 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4577 * i386-tdep.c: Include features/i386/i386-avx512.c.
4578 (i386_zmm_names): Add ZMM pseudo register names array.
4579 (i386_zmmh_names): Add ZMM raw register names array.
4580 (i386_k_names): Add K raw register names array.
4581 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4582 registers. AVX512 has 16 more ZMM registers than there are YMM
4584 (i386_zmmh_regnum_p): Add function to look up register number of
4586 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4587 (i386_k_regnum_p): Likewise for K raw registers.
4588 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4589 registers added by AVX512.
4590 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4591 registers added by AVX512.
4592 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4594 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4595 (i386_pseudo_register_name): Add ZMM pseudo registers.
4596 (i386_zmm_type): Construct and return vector registers type for ZMM
4598 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4599 ZMM0-31 pseudo registers and K registers.
4600 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4601 and YMM16-31 registers from register cache.
4602 (i386_pseudo_register_write): Add code to write K, ZMM and
4604 (i386_register_reggroup_p): Add code to include/exclude AVX512
4605 registers in/from respective register groups.
4606 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4607 registers if feature is present in xcr0.
4608 (i386_gdbarch_init): Add code to initialize AVX512 feature
4609 variables in tdep structure, wire in pseudo registers and call
4610 initialize_tdesc_i386_avx512.
4611 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4613 (i386_regnum): Add AVX512 registers.
4614 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4615 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4616 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4617 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4619 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4620 (i386_ymm_avx512_regnum_p): Likewise.
4621 (i386_k_regnum_p): Likewise.
4622 (i386_zmm_regnum_p): Likewise.
4623 (i386_zmmh_regnum_p): Likewise.
4624 * i387-tdep.c : Update year in copyright notice.
4625 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4627 (XSAVE_YMM_AVX512_ADDR): New macro.
4628 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4630 (XSAVE_XMM_AVX512_ADDR): New macro.
4631 (xsave_avx512_k_offset): New table for K register offsets in
4633 (XSAVE_AVX512_K_ADDR): New macro.
4634 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4636 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4637 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4639 (i387_collect_xsave): Add code to collect AVX512 registers from
4641 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4642 of XMM16-31 registers.
4643 (I387_NUM_K_REGS): New define for number of K registers.
4644 (I387_K0_REGNUM): New define for K0 register number.
4645 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4646 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4647 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4649 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4650 (I387_XMM16_REGNUM): New define for XMM16 register number.
4651 (I387_YMM0_REGNUM): New define for YMM0 register number.
4652 (I387_KEND_REGNUM): New define for last K register number.
4653 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4654 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4656 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4658 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4660 * features/Makefile: Add AVX512 related files.
4661 * features/i386/32bit-avx512.xml: New file.
4662 * features/i386/64bit-avx512.xml: Likewise.
4663 * features/i386/amd64-avx512-linux.c: Likewise.
4664 * features/i386/amd64-avx512-linux.xml: Likewise.
4665 * features/i386/amd64-avx512.c: Likewise.
4666 * features/i386/amd64-avx512.xml: Likewise.
4667 * features/i386/i386-avx512-linux.c: Likewise.
4668 * features/i386/i386-avx512-linux.xml: Likewise.
4669 * features/i386/i386-avx512.c: Likewise.
4670 * features/i386/i386-avx512.xml: Likewise.
4671 * features/i386/x32-avx512-linux.c: Likewise.
4672 * features/i386/x32-avx512-linux.xml: Likewise.
4673 * features/i386/x32-avx512.c: Likewise.
4674 * features/i386/x32-avx512.xml: Likewise.
4675 * regformats/i386/amd64-avx512-linux.dat: New file.
4676 * regformats/i386/amd64-avx512.dat: Likewise.
4677 * regformats/i386/i386-avx512-linux.dat: Likewise.
4678 * regformats/i386/i386-avx512.dat: Likewise.
4679 * regformats/i386/x32-avx512-linux.dat: Likewise.
4680 * regformats/i386/x32-avx512.dat: Likewise.
4681 * NEWS: Add note about new support for AVX512.
4684 2014-04-23 Pedro Alves <palves@redhat.com>
4686 * breakpoint.c (insert_bp_location): Tolerate errors if the
4687 breakpoint is set in a user-loaded objfile.
4688 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4689 location is marked shlib_disabled. If the breakpoint is set in a
4690 user-loaded objfile is a GDB-side memory breakpoint, validate it
4691 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4692 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4694 * mem-break.c (memory_validate_breakpoint): New function.
4695 * objfiles.c (userloaded_objfile_contains_address_p): New
4697 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4698 * target.h (memory_validate_breakpoint): New declaration.
4700 2014-04-23 Pedro Alves <palves@redhat.com>
4702 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4703 the breakpoint is set in a shared library, only suppress
4704 errors for software breakpoints, not hardware breakpoints.
4706 2014-04-22 Pedro Alves <palves@redhat.com>
4708 * infrun.c (schedlock_applies): New function, factored out from
4709 find_thread_needs_step_over.
4710 (find_thread_needs_step_over): Use it.
4711 (switch_back_to_stepped_thread): Always clear trap_expected if the
4712 step over is finished. Return early if scheduler locking applies.
4713 Look for the stepping thread and a potential step-over thread with
4715 (currently_stepping_or_nexting_callback): Delete.
4717 2014-04-22 Nick Clifton <nickc@redhat.com>
4719 * NEWS: Mention that ARM sim now supports tracing.
4721 2014-04-22 Yao Qi <yao@codesourcery.com>
4723 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4725 * tracefile.c (tracefile_fetch_registers): ... it. New
4727 * tracefile.h (tracefile_fetch_registers): Declare.
4728 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4729 tracefile_fetch_registers.
4731 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4734 * windows-nat.c (thread_rec): Don't display a warning when
4735 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4736 fails for any reason, set th->suspended to -1, so that we don't
4737 try to resume such a thread. Also, don't return NULL in these
4738 cases, to avoid completely ruin the session due to "PC register is
4739 not available" error.
4740 (do_windows_fetch_inferior_registers): Check errors in
4741 GetThreadContext call.
4742 (windows_continue): Accept an additional argument KILLED; if not
4743 zero, ignore errors in the SetThreadContext call, since the
4744 inferior was killed and is shutting down.
4745 (windows_resume, get_windows_debug_event)
4746 (windows_create_inferior, windows_mourn_inferior)
4747 (windows_kill_inferior): All callers of windows_continue changed
4748 to adjust to its new calling sequence.
4750 2014-04-19 Yao Qi <yao@codesourcery.com>
4752 * ctf.c (ctf_open): Call post_create_inferior.
4754 2014-04-19 Yao Qi <yao@codesourcery.com>
4756 * ctf.c (handle_id): New static variable.
4757 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4758 value. Get the declaration of event "register" and get length
4759 of field "contents".
4761 2014-04-19 Yao Qi <yao@codesourcery.com>
4763 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4765 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4767 * valops.c (oload_method_static): Remove unnecessary argument
4768 METHOD. Update all callers.
4770 2014-04-18 Pedro alves <palves@redhat.com>
4771 Tom Tromey <tromey@redhat.com>
4774 * frame.c (get_prev_frame_1): Rename to ...
4775 (get_prev_frame_always): ... this, and make extern. Adjust.
4776 (skip_artificial_frames): Use get_prev_frame_always.
4777 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4778 (get_frame_unwind_stop_reason): Adjust to rename.
4779 * frame.h (get_prev_frame_always): Declare.
4780 * inline-frame.c: Include frame.h.
4781 (inline_frame_this_id): Use get_prev_frame_always.
4783 2014-04-18 Tristan Gingold <gingold@adacore.com>
4785 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4786 code by using bfd_mach_o_get_base_address.
4788 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4790 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4791 (spu_ax_pseudo_register_collect): New function.
4792 (spu_ax_pseudo_register_push_stack): Likewise.
4793 (spu_dwarf_reg_to_regnum): Likewise.
4794 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4796 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4798 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4799 Replace FRAME argument with FRAME_ID.
4800 * gdbarch.c, gdbarch.h: Regenerate.
4801 * findvar.c (default_value_from_register): Add GDBARCH argument;
4802 replace FRAME by FRAME_ID. No longer call get_frame_id.
4803 (value_from_register): Update call to gdbarch_value_from_register.
4804 * value.h (default_value_from_register): Update prototype.
4805 * s390-linux-tdep.c (s390_value_from_register): Update interface
4806 and call to default_value_from_register.
4807 * spu-tdep.c (spu_value_from_register): Likewise.
4809 * findvar.c (address_from_register): Remove TYPE argument.
4810 Do not call value_from_register; use gdbarch_value_from_register
4811 with null_frame_id instead.
4812 * value.h (address_from_register): Update prototype.
4813 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4814 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4815 address_from_register interface change.
4817 2014-04-17 Yao Qi <yao@codesourcery.com>
4819 * gdbtypes.h: Update comments to link to types and macros'
4822 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4824 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4826 2014-04-16 Keith Seitz <keiths@redhat.com>
4829 * dwarf2read.c (skip_one_die): Check that all relative-offset
4830 sibling DIEs fall within range of the current reader's buffer.
4831 (read_partial_die): Likewise.
4833 2014-04-16 Keith Seitz <keiths@redhat.com>
4836 * cp-namespace.c (lookup_symbol_file): If the type name of
4837 `this' is NULL, return immediately.
4839 2014-04-14 Keith Seitz <keiths@redhat.com>
4842 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4843 from symbol_matches_domain in symtab.c. All local callers
4844 of symbol_matches_domain updated.
4845 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4846 search STRUCT_DOMAIN.
4847 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4848 independently. standard_lookup will do that automatically.
4849 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4850 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4851 (cp_lookup_symbol_in_namespace): Likewise.
4852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4853 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4854 may return a STRUCT_DOMAIN match.
4855 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4856 * cp-support.c: Include language.h.
4857 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4859 * psymtab.c (match_partial_symbol): Compare the requested
4860 domain with the symbol's domain directly.
4861 (lookup_partial_symbol): Likewise.
4862 * symtab.c (lookup_symbol_in_language): Explain when/why
4863 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4864 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4865 appropriate languages.
4866 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4867 and moved to ada-lang.c
4868 (lookup_block_symbol): Explain that this function only returns
4869 symbol matching the requested DOMAIN.
4870 Compare the requested domain with the symbol's domain directly.
4871 (iterate_over_symbols): Compare the requested domain with the
4872 symbol's domain directly.
4873 * symtab.h (symbol_matches_domain): Remove.
4875 2014-04-14 Tom Tromey <tromey@redhat.com>
4878 * c-exp.y (type_aggregate_p): New function.
4879 (qualified_name, classify_inner_name): Use it.
4880 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4881 and TYPE_TARGET_TYPE of an enum type.
4882 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4884 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4885 handle TYPE_DECLARED_CLASS.
4886 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4888 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4889 * valops.c (enum_constant_from_type): New function.
4890 (value_aggregate_elt): Use it.
4891 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4894 2014-04-14 Tom Tromey <tromey@redhat.com>
4896 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4897 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4899 * value.h (value_aggregate_elt): Update.
4901 2014-04-14 Tom Tromey <tromey@redhat.com>
4903 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4905 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4907 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4908 (evaluate_subexp_standard): Pass noside argument.
4909 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4910 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4911 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4912 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4913 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4915 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4917 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4918 points to a constant blob.
4920 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4922 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4923 property and store it as the high bound and flag the range accordingly.
4924 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4925 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4926 * gdbtypes.h (enum range_flags): New enum.
4927 (struct range_bounds): Add flags member.
4929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4931 * c-typeprint.c (c_type_print_varspec_suffix): Added
4932 check for not yet resolved high bound. If unresolved, print
4933 "variable length" string to the console instead of random
4936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4938 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4940 (ada_template_to_fixed_record_type_1): Likewise.
4941 (ada_to_fixed_type_1): Likewise.
4942 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4943 (cp_print_value): Likewise.
4944 * d-valprint.c (dynamic_array_type): Likewise.
4945 * findvar.c (address_of_variable): Likewise.
4946 * jv-valprint.c (java_value_print): Likewise.
4947 * valops.c (value_ind): Likewise.
4948 * value.c (coerce_ref): Likewise.
4950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4952 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4953 value and retrieve the dynamic type size.
4955 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4957 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4958 passed to sizeof is dynamic evaluate the argument to compute the length.
4960 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4961 Joel Brobecker <brobecker@adacore.com>
4963 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4964 (dwarf2_evaluate_property): New function.
4965 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4966 * dwarf2read.c (attr_to_dynamic_prop): New function.
4967 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4969 * gdbtypes.c: Include dwarf2loc.h.
4970 (is_dynamic_type): New function.
4971 (resolve_dynamic_type): New function.
4972 (resolve_dynamic_bounds): New function.
4973 (get_type_length): New function.
4974 (check_typedef): Use get_type_length to compute type length.
4975 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4976 (TYPE_LOW_BOUND_KIND): New macro.
4977 (is_dynamic_type): New function prototype.
4978 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4979 to resolve dynamic properties of the type. Update comment.
4980 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4982 2014-04-14 Richard Henderson <rth@redhat.com>
4984 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4986 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4987 Doug Evans <xdje42@gmail.com>
4989 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4990 dereference TYPE_CODE_REF values.
4992 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4994 Revert the following changes due to regressions:
4996 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4997 (dwarf2_evaluate_property): New function.
4998 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4999 * dwarf2read.c (attr_to_dynamic_prop): New function.
5000 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5002 * gdbtypes.c: Include dwarf2loc.h.
5003 (is_dynamic_type): New function.
5004 (resolve_dynamic_type): New function.
5005 (resolve_dynamic_bounds): New function.
5006 (get_type_length): New function.
5007 (check_typedef): Use get_type_length to compute type length.
5008 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5009 (TYPE_LOW_BOUND_KIND): New macro.
5010 (is_dynamic_type): New function prototype.
5011 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5012 to resolve dynamic properties of the type. Update comment.
5013 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5015 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5016 passed to sizeof is dynamic evaluate the argument to compute the length.
5018 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5019 value and retrieve the dynamic type size.
5021 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5022 (ada_template_to_fixed_record_type_1): Likewise.
5023 (ada_to_fixed_type_1): Likewise.
5024 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5025 (cp_print_value): Likewise.
5026 * d-valprint.c (dynamic_array_type): Likewise.
5027 * eval.c (evaluate_subexp_with_coercion): Likewise.
5028 * findvar.c (address_of_variable): Likewise.
5029 * jv-valprint.c (java_value_print): Likewise.
5030 * valops.c (value_ind): Likewise.
5031 * value.c (coerce_ref): Likewise.
5033 * c-typeprint.c (c_type_print_varspec_suffix): Added
5034 check for not yet resolved high bound. If unresolved, print
5035 "variable length" string to the console instead of random
5038 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5039 property and store it as the high bound and flag the range accordingly.
5040 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5041 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5042 * gdbtypes.h (enum range_flags): New enum.
5043 (struct range_bounds): Add flags member.
5045 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5046 points to a constant blob.
5048 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5049 (evaluate_subexp_standard): Pass noside argument.
5050 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5051 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5052 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5053 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5054 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5056 2014-04-11 Keith Seitz <keiths@redhat.com>
5059 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5060 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5063 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5065 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5066 (evaluate_subexp_standard): Pass noside argument.
5067 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5068 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5069 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5070 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5071 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5073 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5075 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5076 points to a constant blob.
5078 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5080 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5081 property and store it as the high bound and flag the range accordingly.
5082 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5083 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5084 * gdbtypes.h (enum range_flags): New enum.
5085 (struct range_bounds): Add flags member.
5087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5089 * c-typeprint.c (c_type_print_varspec_suffix): Added
5090 check for not yet resolved high bound. If unresolved, print
5091 "variable length" string to the console instead of random
5094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5096 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5097 (ada_template_to_fixed_record_type_1): Likewise.
5098 (ada_to_fixed_type_1): Likewise.
5099 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5100 (cp_print_value): Likewise.
5101 * d-valprint.c (dynamic_array_type): Likewise.
5102 * eval.c (evaluate_subexp_with_coercion): Likewise.
5103 * findvar.c (address_of_variable): Likewise.
5104 * jv-valprint.c (java_value_print): Likewise.
5105 * valops.c (value_ind): Likewise.
5106 * value.c (coerce_ref): Likewise.
5108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5110 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5111 value and retrieve the dynamic type size.
5113 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5115 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5116 passed to sizeof is dynamic evaluate the argument to compute the length.
5118 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5120 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5121 (dwarf2_evaluate_property): New function.
5122 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5123 * dwarf2read.c (attr_to_dynamic_prop): New function.
5124 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5126 * gdbtypes.c: Include dwarf2loc.h.
5127 (is_dynamic_type): New function.
5128 (resolve_dynamic_type): New function.
5129 (resolve_dynamic_bounds): New function.
5130 (get_type_length): New function.
5131 (check_typedef): Use get_type_length to compute type length.
5132 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5133 (TYPE_LOW_BOUND_KIND): New macro.
5134 (is_dynamic_type): New function prototype.
5135 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5136 to resolve dynamic properties of the type. Update comment.
5137 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5139 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5141 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5142 declaring high/low bounds and change uses accordingly. Call
5143 create_range_type instead of create_static_range_type.
5144 * gdbtypes.c (create_range_type): New function.
5145 (create_range_type): Convert bounds into struct bound_prop and pass
5146 them to create_range_type.
5147 * gdbtypes.h (struct bound_prop): New struct.
5148 (create_range_type): New function prototype.
5149 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5150 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5151 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5153 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5157 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5158 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5159 * ada-lang.c: All uses of create_range_type updated.
5160 * coffread.c: All uses of create_range_type updated.
5161 * dwarf2read.c: All uses of create_range_type updated.
5162 * f-exp.y: All uses of create_range_type updated.
5163 * m2-valprint.c: All uses of create_range_type updated.
5164 * mdebugread.c: All uses of create_range_type updated.
5165 * stabsread.c: All uses of create_range_type updated.
5166 * valops.c: All uses of create_range_type updated.
5167 * valprint.c: All uses of create_range_type updated.
5169 2014-04-10 Pedro Alves <palves@redhat.com>
5171 * breakpoint.c (single_step_breakpoints)
5172 (single_step_gdbarch): Move up in the file.
5173 (one_breakpoint_xfer_memory): New function, factored out from ...
5174 (breakpoint_xfer_memory): ... here. Also process single-step
5177 2014-04-09 Tristan Gingold <gingold@adacore.com>
5179 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5181 (darwin_decode_exception_message): Free port only after use.
5183 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5185 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5186 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5187 when setting the size of call_length.
5189 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5191 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5192 dereference TYPE_CODE_REF values.
5194 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5196 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5197 end of warning message.
5199 2014-04-03 Doug Evans <dje@google.com>
5201 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5202 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5204 2014-04-02 Alan Modra <amodra@gmail.com>
5206 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5207 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5208 (struct symbol_file_add_from_memory_args): Add size field.
5209 (find_vdso_size): New function.
5210 (add_vsyscall_page): Attempt to find vdso size.
5212 2014-04-01 Doug Evans <dje@google.com>
5214 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5216 2014-04-01 Tristan Gingold <gingold@adacore.com>
5218 * darwin-nat.c (darwin_encode_reply): Add prototype.
5219 (darwin_decode_exception_message): Reply to unknown inferiors.
5220 (darwin_decode_message): Handle message by id. Ignore message
5221 to unknown inferior.
5222 (darwin_wait): Discard unknown messages, add debug trace.
5224 2014-03-31 Doug Evans <dje@google.com>
5226 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5229 2014-03-31 Doug Evans <dje@google.com>
5231 New option "set print symbol-loading".
5233 * solib.c (solib_read_symbols): Only print symbol loading messages
5235 (solib_add): If symbol loading is in "brief" mode, notify user
5236 symbols are being loaded.
5237 (reload_shared_libraries_1): Ditto.
5238 * symfile.c (print_symbol_loading_off): New static global.
5239 (print_symbol_loading_brief): New static global.
5240 (print_symbol_loading_full): New static global.
5241 (print_symbol_loading_enums): New static global.
5242 (print_symbol_loading): New static global.
5243 (print_symbol_loading_p): New function.
5244 (symbol_file_add_with_addrs): Only print symbol loading messages
5246 (_initialize_symfile): Register "print symbol-loading" set/show
5248 * symfile.h (print_symbol_loading_p): Declare.
5250 2014-03-30 Doug Evans <xdje42@gmail.com>
5252 * infrun.c (set_last_target_status): New function.
5253 (handle_inferior_event): Call it.
5255 2014-03-30 Doug Evans <xdje42@gmail.com>
5257 * inferior.h (enum stop_kind): Improve comment.
5259 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5261 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5262 a reference, strip the reference layer before calling
5263 the lang_ops value_has_mutated callback.
5265 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5267 Remove some globals from our parser.
5268 * language.c (unk_lang_parser): Add "struct parser_state"
5270 * language.h (struct language_defn) <la_parser>: Likewise.
5271 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5272 (initialize_expout): Add "struct parser_state" argument.
5273 Rewrite function to use the parser state.
5274 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5275 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5276 write_exp_elt_longcst, write_exp_elt_dblcst,
5277 write_exp_elt_decfloatcst, write_exp_elt_type,
5278 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5279 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5280 write_dollar_variable): Likewise.
5281 (parse_exp_in_context_1): Use parser state.
5282 (insert_type_address_space): Add "struct parser_state" argument.
5284 (increase_expout_size): New function.
5285 * parser-defs.h: Forward declare "struct language_defn" and
5286 "struct parser_state".
5287 (expout, expout_size, expout_ptr): Remove extern declarations.
5288 (parse_gdbarch, parse_language): Rewrite macro declarations to
5289 accept the parser state.
5290 (struct parser_state): New struct.
5291 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5292 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5293 write_exp_elt_decfloatcst, write_exp_elt_type,
5294 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5295 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5296 write_exp_msymbol, write_dollar_variable,
5297 mark_struct_expression, insert_type_address_space): Add "struct
5298 parser_state" argument.
5299 (increase_expout_size): New function.
5300 * utils.c (do_clear_parser_state): New function.
5301 (make_cleanup_clear_parser_state): Likewise.
5302 * utils.h (make_cleanup_clear_parser_state): New function
5304 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5305 Update calls to write_exp* in order to pass the parser state.
5306 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5307 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5308 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5309 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5310 * stap-probe.c (stap_parse_register_operand): Likewise.
5311 (stap_parse_single_operand): Likewise.
5312 (stap_parse_argument_1): Likewise.
5313 (stap_parse_argument): Use parser state.
5314 * stap-probe.h: Include "parser-defs.h".
5315 (struct stap_parse_info) <pstate>: New field.
5316 * c-exp.y (parse_type): Rewrite to use parser state.
5317 (yyparse): Redefine to c_parse_internal.
5318 (pstate): New global variable.
5319 (parse_number): Add "struct parser_state" argument.
5320 (write_destructor_name): Likewise.
5321 (type_exp): Update calls to write_exp* and similars in order to
5323 (exp1, exp, variable, qualified_name, space_identifier,
5324 typename, typebase): Likewise.
5325 (write_destructor_name, parse_number, lex_one_token,
5326 classify_name, classify_inner_name, c_parse): Add "struct
5327 parser_state" argument. Update function to use parser state.
5328 * c-lang.h: Forward declare "struct parser_state".
5329 (c_parse): Add "struct parser_state" argument.
5330 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5331 (yyparse): Redefine macro to ada_parse_internal.
5332 (pstate): New variable.
5333 (write_int, write_object_renaming, write_var_or_type,
5334 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5335 type_int, type_long, type_long_long, type_float, type_double,
5336 type_long_double, type_char, type_boolean, type_system_address):
5337 Add "struct parser_state" argument.
5338 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5339 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5340 var_or_type, aggregate, aggregate_component_list,
5341 positional_list, others, component_group,
5342 component_associations): Update calls to write_exp* and similar
5343 functions in order to use parser state.
5344 (ada_parse, write_var_from_sym, write_int,
5345 write_exp_op_with_string, write_object_renaming,
5346 find_primitive_type, write_selectors, write_ambiguous_var,
5347 write_var_or_type, write_name_assoc, type_int, type_long,
5348 type_long_long, type_float, type_double, type_long_double,
5349 type_char, type_boolean, type_system_address): Add "struct
5350 parser_state" argument. Adjust function to use parser state.
5351 * ada-lang.c (parse): Likewise.
5352 * ada-lang.h: Forward declare "struct parser_state".
5353 (ada_parse): Add "struct parser_state" argument.
5354 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5355 calls to both functions.
5356 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5358 (yyparse): Redefine macro to f_parse_internal.
5359 (pstate): New variable.
5360 (parse_number): Add "struct parser_state" argument.
5361 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5362 and similars in order to use parser state.
5363 (parse_number): Adjust code to use parser state.
5365 (f_parse): New function.
5366 * f-lang.h: Forward declare "struct parser_state".
5367 (f_parse): Add "struct parser_state" argument.
5368 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5370 (yyparse): Redefine macro for java_parse_internal.
5371 (pstate): New variable.
5372 (push_expression_name, push_expression_name, insert_exp): Add
5373 "struct parser_state" argument.
5374 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5375 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5376 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5377 PostIncrementExpression, PostDecrementExpression,
5378 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5379 UnaryExpressionNotPlusMinus, CastExpression,
5380 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5381 RelationalExpression, EqualityExpression, AndExpression,
5382 ExclusiveOrExpression, InclusiveOrExpression,
5383 ConditionalAndExpression, ConditionalOrExpression,
5384 ConditionalExpression, Assignment, LeftHandSide): Update
5385 calls to write_exp* and similars in order to use parser state.
5386 (parse_number): Ajust code to use parser state.
5388 (java_parse): New function.
5389 (push_variable): Add "struct parser_state" argument. Adjust
5390 code to user parser state.
5391 (push_fieldnames, push_qualified_expression_name,
5392 push_expression_name, insert_exp): Likewise.
5393 * jv-lang.h: Forward declare "struct parser_state".
5394 (java_parse): Add "struct parser_state" argument.
5395 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5397 (yyparse): Redefine macro to m2_parse_internal.
5398 (pstate): New variable.
5399 (type_exp, exp, fblock, variable, type): Update calls to
5400 write_exp* and similars to use parser state.
5402 (m2_parse): New function.
5403 * m2-lang.h: Forward declare "struct parser_state".
5404 (m2_parse): Add "struct parser_state" argument.
5405 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5406 * objc-lang.h: Forward declare "struct parser_state".
5407 (end_msglist): Add "struct parser_state" argument.
5408 * p-exp.y (parse_type): Rewrite macro to use parser state.
5409 (yyparse): Redefine macro to pascal_parse_internal.
5410 (pstate): New variable.
5411 (parse_number): Add "struct parser_state" argument.
5412 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5413 write_exp* and similars in order to use parser state.
5414 (parse_number, yylex): Adjust code to use parser state.
5415 (pascal_parse): New function.
5416 * p-lang.h: Forward declare "struct parser_state".
5417 (pascal_parse): Add "struct parser_state" argument.
5418 * go-exp.y (parse_type): Rewrite macro to use parser state.
5419 (yyparse): Redefine macro to go_parse_internal.
5420 (pstate): New variable.
5421 (parse_number): Add "struct parser_state" argument.
5422 (type_exp, exp1, exp, variable, type): Update calls to
5423 write_exp* and similars in order to use parser state.
5424 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5425 to use parser state.
5426 (go_parse): Likewise.
5427 * go-lang.h: Forward declare "struct parser_state".
5428 (go_parse): Add "struct parser_state" argument.
5430 2014-03-27 Doug Evans <dje@google.com>
5432 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5434 2014-03-27 Doug Evans <dje@google.com>
5436 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5437 Remove argument abbrev_section. All callers updated.
5439 2014-03-27 Doug Evans <dje@google.com>
5441 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5442 addr_base, ranges_base.
5444 2014-03-26 Keith Seitz <keiths@redhat.com>
5446 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5447 types, not VAR_DOMAIN.
5449 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5451 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5453 * features/nios2-linux.c: Regenerated.
5454 * features/nios2.c: Regenerated.
5456 2014-03-25 Pedro Alves <palves@redhat.com>
5458 * cli/cli-script.c (script_from_file): Force the interpreter to
5461 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5463 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5464 small stack allocation.
5466 2014-03-24 Tristan Gingold <gingold@adacore.com>
5468 * darwin-nat.c (exc_server): Remove unused prototype.
5469 (darwin_dump_message): Correctly display data on x86_64.
5470 (darwin_encode_reply): Fix style.
5471 Add comments and fix indentation.
5473 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5475 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5477 2014-03-22 Doug Evans <xdje42@gmail.com>
5479 * infcmd.c: Whitespace fixes.
5480 (interrupt_command): Merge two function comments into one.
5482 2014-03-22 Doug Evans <xdje42@gmail.com>
5484 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5487 2014-03-22 Yao Qi <yao@codesourcery.com>
5489 * remote.c (target_read_live_memory): Remove.
5490 (memory_xfer_live_readonly_partial): Rename it to
5491 remote_xfer_live_readonly_partial. Remove argument 'object'.
5492 All callers updated. Call remote_read_bytes_1
5493 instead of target_read_live_memory.
5494 * tracepoint.c (set_traceframe_number): Remove.
5495 (make_cleanup_restore_traceframe_number): Likewise .
5496 * tracepoint.h (set_traceframe_number): Remove declaration.
5497 (make_cleanup_restore_traceframe_number): Likewise.
5499 2014-03-22 Yao Qi <yao@codesourcery.com>
5501 * remote.c (remote_read_bytes): Move code on reading from the
5503 (remote_read_bytes_1): ... here. New function.
5505 2014-03-22 Yao Qi <yao@codesourcery.com>
5507 * ctf.c (ctf_xfer_partial): Check the return value of
5508 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5509 return TARGET_XFER_UNAVAILABLE.
5510 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5511 * target.c (target_read_live_memory): Move it to remote.c.
5512 (memory_xfer_live_readonly_partial): Likewise.
5513 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5514 * remote.c (target_read_live_memory): Moved from target.c.
5515 (memory_xfer_live_readonly_partial): Likewise.
5516 (remote_read_bytes): Factored out from
5517 memory_xfer_partial_1.
5519 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5521 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5524 2014-03-21 Pedro Alves <palves@redhat.com>
5526 * infrun.c (normal_stop): Extend comment.
5528 2014-03-21 Hui Zhu <hui@codesourcery.com>
5529 Pedro Alves <palves@redhat.com>
5531 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5533 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5534 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5535 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5537 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5539 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5540 `z' formatted output modifier.
5542 2014-03-20 Tom Tromey <tromey@redhat.com>
5543 Sergio Durigan Junior <sergiodj@redhat.com>
5545 * probe.c (parse_probes): Turn assert into an ordinary error.
5546 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5547 exceptions when parsing probes. Rearrange the code for clarity.
5549 2014-03-20 Tom Tromey <tromey@redhat.com>
5552 * top.c (execute_command): Only dispatch events if the command
5555 2014-03-20 Tom Tromey <tromey@redhat.com>
5558 * infcall.c: Include event-top.h.
5559 (run_inferior_call): Call async_disable_stdin if needed.
5561 2014-03-20 Pedro Alves <palves@redhat.com>
5563 * infrun.c (prepare_to_proceed): Delete.
5564 (thread_still_needs_step_over): New function.
5565 (find_thread_needs_step_over): New function.
5566 (proceed): If the current thread needs a step-over, set its
5567 steping_over_breakpoint flag. Adjust to use
5568 find_thread_needs_step_over instead of prepare_to_proceed.
5569 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5570 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5572 (switch_back_to_stepped_thread): Step over breakpoints of all
5573 threads not the stepping thread, before switching back to the
5576 2014-03-20 Pedro Alves <palves@redhat.com>
5578 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5580 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5581 * infrun.c (saved_singlestep_ptid)
5582 (stepping_past_singlestep_breakpoint): Delete.
5583 (resume): Remove stepping_past_singlestep_breakpoint handling.
5584 (proceed): Store the prev_pc of the stepping thread too.
5585 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5587 (enum infwait_states): Delete infwait_thread_hop_state.
5588 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5590 (handle_inferior_event): Adjust.
5591 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5592 handling and the thread-hop code. Before removing single-step
5593 breakpoints, check whether the thread hit a single-step breakpoint
5594 of another thread. If it did, the trap is not a random signal.
5595 (switch_back_to_stepped_thread): If the event thread hit a
5596 single-step breakpoint, unblock it before switching to the
5597 stepping thread. Handle the case of the stepped thread having
5599 (keep_going): Handle the case of the current thread moving past a
5600 single-step breakpoint.
5602 2014-03-20 Pedro Alves <palves@redhat.com>
5605 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5606 are being stepped over.
5607 (breakpoint_address_match): Make extern.
5608 * breakpoint.h (breakpoint_address_match): New declaration.
5609 * inferior.h (stepping_past_instruction_at): New declaration.
5610 * infrun.c (struct step_over_info): New type.
5611 (step_over_info): New global.
5612 (set_step_over_info, clear_step_over_info)
5613 (stepping_past_instruction_at): New functions.
5614 (handle_inferior_event): Clear the step-over info when
5615 trap_expected is cleared.
5616 (resume): Remove now stale comment.
5617 (clear_proceed_status): Clear step-over info.
5618 (proceed): Adjust step-over handling to set or clear the step-over
5619 info instead of removing all breakpoints.
5620 (handle_signal_stop): When setting up a thread-hop, don't remove
5622 (stop_stepping): Clear step-over info.
5623 (keep_going): Adjust step-over handling to set or clear step-over
5624 info and then always inserting breakpoints, instead of removing
5625 all breakpoints when stepping over one.
5627 2014-03-20 Pedro Alves <palves@redhat.com>
5629 * infrun.c (previous_inferior_ptid): Adjust comment.
5630 (deferred_step_ptid): Delete.
5631 (infrun_thread_ptid_changed, prepare_to_proceed)
5632 (init_wait_for_inferior): Adjust.
5633 (handle_signal_stop): Delete deferred_step_ptid handling.
5635 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 * defs.h (sync_quit_force_run): New declaration.
5639 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5640 * event-top.c (async_sigterm_handler): New declaration.
5641 (async_sigterm_token): New variable.
5642 (async_init_signals): Create also async_sigterm_token.
5643 (async_sigterm_handler): New function.
5644 (sync_quit_force_run): New variable.
5645 (handle_sigterm): Replace quit_force call by other calls.
5646 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5648 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5650 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5651 offset into SPE pseudo registers.
5653 2014-03-18 Pedro Alves <palves@redhat.com>
5656 * inferior.h (print_stop_event): Declare.
5657 * infrun.c (print_stop_event): New, factored out from ...
5658 (normal_stop): ... this.
5659 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5660 of bpstat_print/print_stack_frame.
5662 2014-03-17 Tom Tromey <tromey@redhat.com>
5664 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5666 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5668 * ada-lang.c (decode_constrained_packed_array): Perform a
5669 minimal coercion for reference with coerce_ref instead of
5672 2014-03-17 Tristan Gingold <gingold@adacore.com>
5674 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5675 (darwin_solib_create_inferior_hook): Emit a warning if version
5678 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5680 * python/py-value.c (get_field_flag): Cast flag_name argument to
5681 PyObject_GetAttrString to support Python 2.4.
5683 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5685 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5686 (Global Maintainers): Remove Jan Kratochvil.
5688 2014-03-14 Pedro Alves <palves@redhat.com>
5690 * inferior.h (terminal_ours_for_output): Rename to ...
5691 (child_terminal_ours_for_output): ... this.
5692 (terminal_save_ours): Rename to ...
5693 (child_terminal_save_ours): ... this.
5694 (terminal_ours): Rename to ...
5695 (child_terminal_ours): ... this.
5696 (terminal_inferior): Rename to ...
5697 (child_terminal_inferior): ... this.
5698 (terminal_init_inferior): Rename to ...
5699 (child_terminal_init_inferior): ... this.
5700 (terminal_init_inferior_with_pgrp): Rename to ...
5701 (child_terminal_init_inferior_with_pgrp): ... this.
5702 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5703 (child_terminal_init_with_pgrp): ... this.
5704 (terminal_save_ours): Rename to ...
5705 (child_terminal_save_ours): ... this.
5706 (terminal_init_inferior): Rename to ...
5707 (child_terminal_init): ... this. Adjust.
5708 (terminal_inferior): Rename to ...
5709 (child_terminal_inferior): ... this.
5710 (terminal_ours_for_output): Rename to ...
5711 (child_terminal_ours_for_output): ... this. Adjust.
5712 (terminal_ours): Rename to ...
5713 (child_terminal_ours): ... this.
5714 (terminal_ours_1): Rename to ...
5715 (child_terminal_ours_1): ... this. Adjust.
5716 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5717 * windows-nat.c (do_initial_windows_stuff): Adjust.
5718 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5719 (gnu_terminal_init): ... this. Adjust.
5720 (gnu_target): Adjust.
5721 * inf-child.c (inf_child_target): Adjust.
5723 2014-03-13 Doug Evans <xdje42@gmail.com>
5726 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5729 2014-03-13 Doug Evans <xdje42@gmail.com>
5731 * value.c (record_latest_value): Call release_value_or_incref
5732 instead of release_value.
5734 2014-03-13 Pedro Alves <palves@redhat.com>
5736 * procfs.c (procfs_target): Don't override to_shortname,
5737 to_longname or to_doc.
5739 2014-03-13 Pedro Alves <palves@redhat.com>
5741 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5742 Unix in user visible strings.
5744 2014-03-12 Stan Shebs <stan@codesourcery.com>
5746 * gdbtypes.h: Annotate comments for Doxygen, add a page
5747 block comment with some general info.
5749 2014-03-12 Pedro Alves <palves@redhat.com>
5751 * infcmd.c (prepare_execution_command): New function, factored out
5752 from several execution commands.
5753 (run_command_1, continue_command, step_1, jump_command)
5754 (signal_command, until_command, advance_command, finish_command)
5755 (attach_command): Use prepare_execution_command.
5757 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5759 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5762 (struct arm_linux_thread_points): Removed.
5763 (struct arm_linux_process_info): New.
5764 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5765 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5766 (arm_linux_find_breakpoints_by_tid): Removed.
5767 (struct arch_lwp_info): New.
5768 (arm_linux_find_process_pid): New functions.
5769 (arm_linux_add_process): New functions.
5770 (arm_linux_process_info_get): New functions.
5771 (arm_linux_forget_process): New function.
5772 (arm_linux_get_debug_reg_state): New function.
5773 (struct update_registers_data): New.
5774 (update_registers_callback): New function.
5775 (arm_linux_insert_hw_breakpoint1): Updated.
5776 (arm_linux_remove_hw_breakpoint1): Updated.
5777 (arm_linux_insert_hw_breakpoint): Updated.
5778 (arm_linux_remove_hw_breakpoint): Updated.
5779 (arm_linux_insert_watchpoint): Updated.
5780 (arm_linux_remove_watchpoint): Updated.
5781 (arm_linux_new_thread): Updated.
5782 (arm_linux_prepare_to_resume): New function.
5783 (arm_linux_new_fork): New function.
5784 (_initialize_arm_linux_nat): Updated.
5786 2014-03-12 Pedro Alves <palves@redhat.com>
5788 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5790 2014-03-12 Tom Tromey <tromey@redhat.com>
5792 * inf-child.c (return_zero): New function.
5793 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5794 * aix-thread.c (aix_thread_inferior_created): New function.
5795 (aix_thread_attach): Remove.
5796 (init_aix_thread_ops): Don't set to_attach.
5797 (_initialize_aix_thread): Register inferior_created observer.
5798 * corelow.c (init_core_ops): Don't set to_attach or
5800 * exec.c (init_exec_ops): Don't set to_attach or
5802 * infcmd.c (run_command_1): Use find_run_target. Make direct
5804 (attach_command): Use find_attach_target. Make direct target
5806 * record-btrace.c (init_record_btrace_ops): Don't set
5808 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5810 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5811 set to_create_inferior.
5812 * target.c (complete_target_initialization): Add assertion.
5813 (target_create_inferior): Remove.
5814 (find_default_attach, find_default_create_inferior): Remove.
5815 (find_attach_target, find_run_target): New functions.
5816 (find_default_is_async_p, find_default_can_async_p)
5817 (target_supports_non_stop, target_attach): Remove.
5818 (init_dummy_target): Don't set to_create_inferior or
5819 to_supports_non_stop.
5820 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5821 TARGET_DEFAULT_FUNC.
5822 <to_create_inferior>: Add comment.
5823 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5824 TARGET_DEFAULT_RETURN.
5825 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5826 (find_attach_target, find_run_target): Declare.
5827 (target_create_inferior): Remove.
5828 (target_has_execution_1): Update comment.
5829 (target_supports_non_stop): Remove.
5830 * target-delegates.c: Rebuild.
5832 2014-03-12 Pedro Alves <palves@redhat.com>
5834 * inf-child.h: Update comment to not mention Unix.
5836 2014-03-12 Pedro Alves <palves@redhat.com>
5838 * inf-child.c: Update top comment to not mention Unix. Add
5839 generic comment describing how this target is meant to be used.
5840 (inf_child_post_attach, inf_child_post_startup_inferior)
5841 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5844 2014-03-12 Pedro Alves <palves@redhat.com>
5846 * nto-procfs.c: Include inf-child.h.
5847 (procfs_ops): Delete global.
5848 (procfs_can_run): Delete method.
5849 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5850 target pointer instead of referencing procfs_ops.
5851 (procfs_prepare_to_store): Delete.
5852 (init_procfs_ops): Delete function.
5853 (procfs_target): New function, based on init_procfs_ops, but
5854 inherit inf_child_target.
5855 (_initialize_procfs): Use procfs_target.
5857 2014-03-12 Pedro Alves <palves@redhat.com>
5859 * windows-nat.c: Include inf-child.h.
5860 (windows_ops): Delete global.
5861 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5863 (init_windows_ops): Delete function.
5864 (windows_target): New function, based on init_windows_ops, but
5865 inherit inf_child_target.
5866 (_initialize_windows_nat): Use windows_target. Install x86
5867 specific target methods here.
5869 2014-03-10 Doug Evans <xdje42@gmail.com>
5871 * guile/guile.c (call_initialize_gdb_module): New function.
5872 (initialize_guile): Replace call to scm_init_guile with call to
5875 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5877 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5878 in call to TYPE_CODE macro.
5880 2014-03-10 Jerome Guitton <guitton@adacore.com>
5882 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5883 Resolve tagged types to full view.
5885 2014-03-10 Hui Zhu <hui@codesourcery.com>
5887 * target.h (target_insert_breakpoint): Remove "hardware" from its
5890 2014-03-07 Doug Evans <dje@google.com>
5892 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5894 2014-03-07 Doug Evans <dje@google.com>
5896 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5897 Remove unused local comp_dir_attr. Assert exactly one of
5898 stub_comp_unit_die, stub_comp_dir is non-NULL.
5900 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5902 * target.h (complete_target_initialization, add_target):
5905 2014-03-07 Pedro Alves <palves@redhat.com>
5907 * go32-nat.c: Include inf-child.h.
5908 (go32_ops): Delete global.
5909 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5911 (go32_create_inferior): Push the passed in target pointer instead
5912 of referencing go32_ops.
5913 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5914 (go32_target): New function, based on init_go32_ops, but inherit
5916 (_initialize_go32_nat): Use go32_target. Move parts of
5919 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5921 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5922 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5923 SYMBOL_VALUE_ADDRESS.
5924 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5926 2014-03-06 Yao Qi <yao@codesourcery.com>
5928 * breakpoint.c (get_tracepoint_by_number): Remove argument
5929 optional_p. All callers updated. Adjust comments. Update
5931 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5933 2014-03-06 Yao Qi <yao@codesourcery.com>
5935 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5936 early if get_number returns zero. Use 'p' instead of 'args'.
5938 2014-03-06 Yao Qi <yao@codesourcery.com>
5940 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5943 2014-03-06 Yao Qi <yao@codesourcery.com>
5945 PR breakpoints/16508
5946 * tracepoint.c (check_trace_running): New function.
5947 (trace_find_command): Move code to check_trace_running and
5948 call check_trace_running.
5949 (trace_find_pc_command): Likewise.
5950 (trace_find_tracepoint_command): Likewise.
5951 (trace_find_line_command): Likewise.
5952 (trace_find_range_command): Likewise.
5953 * tracepoint.h (check_trace_running): Likewise.
5954 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5956 2014-03-06 Yao Qi <yao@codesourcery.com>
5958 * target.h (struct target_ops) <to_traceframe_info>: Use
5959 TARGET_DEFAULT_NORETURN (tcomplain ()).
5960 * target-delegates.c: Regenerated.
5962 2014-03-05 Pedro Alves <palves@redhat.com>
5965 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5966 void. Update comment.
5967 (dcache_xfer_memory): Delete.
5968 (dcache_read_memory_partial): New, based on the read bits of
5970 (dcache_update): Add status parameter. Use ULONGEST for len, and
5971 adjust. Discard cache lines if the reason for the update was
5973 * dcache.h (dcache_xfer_memory): Delete declaration.
5974 (dcache_read_memory_partial): New declaration.
5975 (dcache_update): Update prototype.
5976 * target.c (raw_memory_xfer_partial): Update the dcache here.
5977 (memory_xfer_partial_1): Don't handle dcache writes here.
5979 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5981 * remote-sim.c (gdbsim_load): Add const to prog.
5983 2014-03-03 Tom Tromey <tromey@redhat.com>
5985 * elfread.c (probe_key): Change to bfd_data.
5986 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5987 now per-BFD, not per-objfile.
5988 * stap-probe.c (stap_probe_destroy): Update comment.
5989 (handle_stap_probe): Allocate on the per-BFD obstack.
5991 2014-03-03 Tom Tromey <tromey@redhat.com>
5993 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5994 * breakpoint.c (create_longjmp_master_breakpoint): Use
5996 (add_location_to_breakpoint, bkpt_probe_insert_location)
5997 (bkpt_probe_remove_location): Update.
5998 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5999 * elfread.c (elf_symfile_relocate_probe): Remove.
6000 (elf_probe_fns): Update.
6001 (insert_exception_resume_breakpoint): Change type of "probe"
6002 parameter to bound_probe.
6003 (check_exception_resume): Update.
6004 * objfiles.c (objfile_relocate1): Don't relocate probes.
6005 * probe.c (bound_probe_s): New typedef.
6006 (parse_probes): Use get_probe_address. Set sal's objfile.
6007 (find_probe_by_pc): Return a bound_probe.
6008 (collect_probes): Return a VEC(bound_probe_s).
6009 (compare_probes): Update.
6010 (gen_ui_out_table_header_info): Change type of "probes"
6012 (info_probes_for_ops): Update.
6013 (get_probe_address): New function.
6014 (probe_safe_evaluate_at_pc): Update.
6015 * probe.h (struct probe_ops) <get_probe_address>: New field.
6016 <set_semaphore, clear_semaphore>: Add objfile parameter.
6017 (struct probe) <objfile>: Remove field.
6019 <address>: Update comment.
6020 (struct bound_probe): New.
6021 (find_probe_by_pc): Return a bound_probe.
6022 (get_probe_address): Declare.
6023 * solib-svr4.c (struct probe_and_action) <address>: New field.
6024 (hash_probe_and_action, equal_probe_and_action): Update.
6025 (register_solib_event_probe): Add address parameter.
6026 (solib_event_probe_at): Update.
6027 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6029 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6030 (stap_get_probe_address): New function.
6031 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6032 (compile_probe_arg): Update.
6033 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6035 (handle_stap_probe): Don't relocate the probe.
6036 (stap_relocate): Remove.
6037 (stap_gen_info_probes_table_values): Update.
6038 (stap_probe_ops): Remove stap_relocate.
6039 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6040 (debug_sym_probe_fns): Update.
6041 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6042 * symtab.c (init_sal): Use memset.
6043 * symtab.h (struct symtab_and_line) <objfile>: New field.
6044 * tracepoint.c (start_tracing, stop_tracing): Update.
6046 2014-03-03 Tom Tromey <tromey@redhat.com>
6048 * probe.h (parse_probes, find_probe_by_pc)
6049 (find_probes_in_objfile): Fix comments.
6051 2014-03-02 Doug Evans <xdje42@gmail.com>
6053 * infrun.c (handle_signal_stop): Replace test for
6054 TARGET_WAITKIND_STOPPED with an assert.
6056 2014-03-02 Doug Evans <xdje42@gmail.com>
6058 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6060 2014-03-02 Doug Evans <xdje42@gmail.com>
6062 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6064 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6066 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6070 * i386obsd-nat.c: Include "obsd-nat.h".
6071 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6073 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6075 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6077 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6079 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6081 * mips64obsd-nat.c: Include "obsd-nath".
6082 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6084 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6086 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6088 * amd64obsd-nat.c: Include "obsd-nat,h.
6089 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6091 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6093 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6095 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6096 (find_overload_match): Update call to find_oload_champ.
6097 (find_oload_champ_namespace_loop): Likewise
6099 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6101 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6103 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6104 * config/sparc/obsd64.mh: New file.
6105 * sparc64obsd-nat.c: New file.
6107 * obsd-nat.h: New file.
6108 * obsd-nat.c: New file.
6109 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6110 (ALLDEPFILES): Add obsd-nat.c.
6112 2014-02-28 Tom Tromey <tromey@redhat.com>
6114 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6115 * cli-out.h (cli_ui_out_impl): Now const.
6116 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6117 * ui-out.c (struct ui_out) <impl>: Now const.
6118 (default_ui_out_impl): Now const.
6119 (ui_out_new): Make 'impl' parameter const.
6120 * ui-out.h (ui_out_new): Update.
6122 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6124 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6126 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6128 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6130 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 Additional PR 8882 fix.
6133 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6135 2014-02-27 Pedro Alves <palves@redhat.com>
6137 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6140 2014-02-27 Pedro Alves <palves@redhat.com>
6143 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6144 * nat/linux-waitpid.c: Include string.h.
6145 (status_to_str): Moved here and made extern.
6146 * nat/linux-waitpid.h (status_to_str): New declaration.
6148 2014-02-27 Hui Zhu <hui@codesourcery.com>
6151 * infrun.c (ptid_match): Move ...
6152 * common/ptid.c (ptid_match): ... here.
6153 * inferior.h (ptid_match): Move ...
6154 * common/ptid.h (ptid_match): ... here.
6156 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6158 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6159 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6162 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6164 * obsd-tdep.c (obsd_auxv_parse): New function.
6165 (obsd_init_abi): Set auxv_parse.
6167 * gdbarch.sh (auxv_parse): New.
6168 * gdbarch.h: Regenerated.
6169 * gdbarch.c: Regenerated.
6170 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6172 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6174 * guile/scm-value.c (gdbscm_history_append_x): New function.
6175 (value_functions): Add it.
6177 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6179 * dwarf2read.c (attr_value_as_address): New function.
6180 (dwarf2_find_base_address, read_call_site_scope): Use
6181 attr_value_as_address in place of DW_ADDR.
6182 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6183 the low and high addresses. Slight rework of the handling
6184 of the high pc being a constant form, and limit it to
6185 DWARF verson 4 or higher.
6186 (dwarf2_record_block_ranges): Likewise.
6187 (read_partial_die): Likewise.
6188 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6190 2014-02-26 Tom Tromey <tromey@redhat.com>
6192 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6194 2014-02-26 Tom Tromey <tromey@redhat.com>
6196 * elfread.c (elf_read_minimal_symbols): Return early if
6197 minimal symbols have already been read. Add "ei" parameter.
6198 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6199 * minsyms.c (prim_record_minimal_symbol_full): Update.
6200 * objfiles.h (struct objstats) <n_minsyms>: Move...
6201 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6202 * symmisc.c (print_objfile_statistics): Update.
6204 2014-02-26 Tom Tromey <tromey@redhat.com>
6206 * elfread.c (elf_read_minimal_symbols): New function, from
6208 (elf_symfile_read): Call it.
6210 2014-02-26 Tom Tromey <tromey@redhat.com>
6212 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6213 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6214 (lookup_minimal_symbol_solib_trampoline)
6215 (lookup_minimal_symbol_by_pc_section_1)
6216 (lookup_minimal_symbol_and_objfile): Update.
6217 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6218 Don't allocate a minimal symbol if minsyms have already been read.
6219 (build_minimal_symbol_hash_tables): Update.
6220 (install_minimal_symbols): Do nothing if minsyms already read.
6221 Use the per-BFD obstack.
6222 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6223 * objfiles.c (allocate_objfile): Call
6224 terminate_minimal_symbol_table later.
6225 (have_minimal_symbols): Update.
6226 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6227 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6228 Move from struct objfile.
6229 <minsyms_read>: New field.
6230 (struct objfile) <msymbols, minimal_symbol_count,
6231 msymbol_hash, msymbol_demangled_hash>: Move.
6232 (ALL_OBJFILE_MSYMBOLS): Update.
6233 * symfile.c (read_symbols): Set minsyms_read.
6234 (reread_symbols): Update.
6235 * symmisc.c (dump_objfile, dump_msymbols): Update.
6237 2014-02-26 Tom Tromey <tromey@redhat.com>
6239 * minsyms.c (msymbols_sort): Remove.
6240 * minsyms.h (msymbols_sort): Remove.
6241 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6242 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6243 * elfread.c (elf_symtab_read): Don't add section offsets.
6244 * xcoffread.c (record_minimal_symbol): Don't add section offset
6245 to minimal symbol address.
6246 * somread.c (text_offset, data_offset): Remove.
6247 (som_symtab_read): Don't add section offsets to minimal symbol
6249 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6250 Don't add section offsets to minimal symbols.
6251 * coffread.c (coff_symtab_read): Don't add section offsets
6252 to minimal symbol addresses.
6253 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6254 to minimal symbol addresses.
6255 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6256 section offset to minimal symbol addresses.
6257 * mdebugread.c (parse_partial_symbols): Don't add section
6258 offset to minimal symbol addresses.
6259 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6260 offset to minimal symbol addresses.
6262 2014-02-26 Tom Tromey <tromey@redhat.com>
6264 * ada-lang.c (ada_main_name): Update.
6265 (ada_add_standard_exceptions): Update.
6266 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6267 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6268 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6269 * auxv.c (ld_so_xfer_auxv): Update.
6270 * avr-tdep.c (avr_scan_prologue): Update.
6271 * ax-gdb.c (gen_var_ref): Update.
6272 * blockframe.c (get_pc_function_start)
6273 (find_pc_partial_function_gnu_ifunc): Update.
6274 * breakpoint.c (create_overlay_event_breakpoint)
6275 (create_longjmp_master_breakpoint)
6276 (create_std_terminate_master_breakpoint)
6277 (create_exception_master_breakpoint): Update.
6278 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6279 * c-valprint.c (c_val_print): Update.
6280 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6281 * common/agent.c (agent_look_up_symbols): Update.
6282 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6283 * dwarf2loc.c (call_site_to_target_addr): Update.
6284 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6285 * elfread.c (elf_gnu_ifunc_record_cache)
6286 (elf_gnu_ifunc_resolve_by_got): Update.
6287 * findvar.c (default_read_var_value): Update.
6288 * frame.c (inside_main_func): Update.
6289 * frv-tdep.c (frv_frame_this_id): Update.
6290 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6291 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6293 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6294 (hppa_hpux_find_dummy_bpaddr): Update.
6295 * hppa-tdep.c (hppa_symbol_address): Update.
6296 * infcmd.c (until_next_command): Update.
6297 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6299 * linespec.c (minsym_found, add_minsym): Update.
6300 * linux-nat.c (get_signo): Update.
6301 * linux-thread-db.c (inferior_has_bug): Update.
6302 * m32c-tdep.c (m32c_return_value)
6303 (m32c_m16c_address_to_pointer): Update.
6304 * m32r-tdep.c (m32r_frame_this_id): Update.
6305 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6306 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6307 * maint.c (maintenance_translate_address): Update.
6308 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6309 (frob_address): New function.
6310 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6311 frob_address. Rename parameter to "pc_in".
6312 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6314 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6316 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6317 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6318 * objc-lang.c (find_objc_msgsend): Update.
6319 * objfiles.c (objfile_relocate1): Update.
6320 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6321 * p-valprint.c (pascal_val_print): Update.
6322 * parse.c (write_exp_msymbol): Update.
6323 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6324 (ppc_elfv2_skip_entrypoint): Update.
6325 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6326 * printcmd.c (build_address_symbolic, msym_info)
6327 (address_info): Update.
6328 * proc-service.c (ps_pglobal_lookup): Update.
6329 * psymtab.c (find_pc_sect_psymtab_closer)
6330 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6331 Change msymbol parameter to bound_minimal_symbol.
6332 * ravenscar-thread.c (get_running_thread_id): Update.
6333 * remote.c (remote_check_symbols): Update.
6334 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6336 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6337 * solib-dsbt.c (lm_base): Update.
6338 * solib-frv.c (lm_base, main_got): Update.
6339 * solib-irix.c (locate_base): Update.
6340 * solib-som.c (som_solib_create_inferior_hook)
6341 (link_map_start): Update.
6342 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6343 * solib-svr4.c (elf_locate_base, enable_break): Update.
6344 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6345 (flush_ea_cache): Update.
6346 * stabsread.c (define_symbol, scan_file_globals): Update.
6347 * stack.c (find_frame_funname): Update.
6348 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6349 (debug_qf_find_pc_sect_symtab): Update.
6350 * symfile.c (simple_read_overlay_table)
6351 (simple_overlay_update): Update.
6352 * symfile.h (struct quick_symbol_functions)
6353 <find_pc_sect_symtab>: Change type of msymbol to
6354 bound_minimal_symbol.
6355 * symmisc.c (dump_msymbols): Update.
6356 * symtab.c (find_pc_sect_symtab_via_partial)
6357 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6358 (search_symbols, print_msymbol_info): Update.
6359 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6360 (MSYMBOL_VALUE_ADDRESS): Redefine.
6361 (BMSYMBOL_VALUE_ADDRESS): New macro.
6362 * tracepoint.c (scope_info): Update.
6363 * tui/tui-disasm.c (tui_find_disassembly_address)
6364 (tui_get_begin_asm_address): Update.
6365 * valops.c (find_function_in_inferior): Update.
6366 * value.c (value_static_field, value_fn_field): Update.
6368 2014-02-26 Tom Tromey <tromey@redhat.com>
6370 * ada-lang.c (ada_update_initial_language): Update.
6371 (ada_main_name, ada_has_this_exception_support): Update.
6372 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6373 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6374 * arm-tdep.c (arm_skip_stub): Update.
6375 * auxv.c (ld_so_xfer_auxv): Update.
6376 * avr-tdep.c (avr_scan_prologue): Update.
6377 * ax-gdb.c (gen_var_ref): Update.
6378 * breakpoint.c (struct breakpoint_objfile_data)
6379 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6380 type to bound_minimal_symbol.
6381 (create_overlay_event_breakpoint)
6382 (create_longjmp_master_breakpoint)
6383 (create_std_terminate_master_breakpoint)
6384 (create_exception_master_breakpoint): Update.
6385 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6386 * c-exp.y (classify_name): Update.
6387 * coffread.c (coff_symfile_read): Update.
6388 * common/agent.c (agent_look_up_symbols): Update.
6389 * d-lang.c (d_main_name): Update.
6390 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6391 * dec-thread.c (enable_dec_thread): Update.
6392 * dwarf2loc.c (call_site_to_target_addr): Update.
6393 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6394 * eval.c (evaluate_subexp_standard): Update.
6395 * findvar.c (struct minsym_lookup_data) <result>: Change type
6396 to bound_minimal_symbol.
6398 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6399 * frame.c (inside_main_func): Update.
6400 * frv-tdep.c (frv_frame_this_id): Update.
6401 * gcore.c (call_target_sbrk): Update.
6402 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6403 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6405 * go-lang.c (go_main_name): Update.
6406 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6407 (hppa_hpux_find_import_stub_for_addr): Update.
6408 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6409 Update. Change return type.
6410 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6412 * jit.c (jit_breakpoint_re_set_internal): Update.
6413 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6415 * linux-nat.c (get_signo): Update.
6416 * linux-thread-db.c (inferior_has_bug): Update
6417 * m32c-tdep.c (m32c_return_value)
6418 (m32c_m16c_address_to_pointer): Update.
6419 * m32r-tdep.c (m32r_frame_this_id): Update.
6420 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6421 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6422 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6423 lookup_minimal_symbol. Change return type.
6424 (lookup_minimal_symbol): Remove.
6425 (lookup_bound_minimal_symbol): Update.
6426 (lookup_minimal_symbol_text): Change return type.
6427 (lookup_minimal_symbol_solib_trampoline): Change return type.
6428 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6429 (lookup_minimal_symbol_solib_trampoline): Change return type.
6430 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6431 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6432 (value_nsstring, find_imps): Update.
6433 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6434 * p-lang.c (pascal_main_name): Update.
6435 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6436 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6437 * proc-service.c (ps_pglobal_lookup): Update.
6438 * ravenscar-thread.c (get_running_thread_msymbol): Change
6440 (has_ravenscar_runtime, get_running_thread_id): Update.
6441 * remote.c (remote_check_symbols): Update.
6442 * sol-thread.c (ps_pglobal_lookup): Update.
6443 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6444 * solib-dsbt.c (lm_base): Update.
6445 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6447 * solib-irix.c (locate_base): Update.
6448 * solib-som.c (som_solib_create_inferior_hook)
6449 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6451 * solib-spu.c (spu_enable_break): Update.
6452 * solib-svr4.c (elf_locate_base, enable_break): Update.
6453 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6454 (flush_ea_cache): Update.
6455 * stabsread.c (define_symbol): Update.
6456 * symfile.c (simple_read_overlay_table): Update.
6457 * symtab.c (find_pc_sect_line): Update.
6458 * tracepoint.c (scope_info): Update.
6459 * tui-disasm.c (tui_get_begin_asm_address): Update.
6460 * value.c (value_static_field): Update.
6462 2014-02-26 Tom Tromey <tromey@redhat.com>
6464 * minsyms.c (prim_record_minimal_symbol_full): Use
6465 SET_MSYMBOL_VALUE_ADDRESS.
6466 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6467 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6468 SET_MSYMBOL_VALUE_ADDRESS.
6469 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6470 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6472 2014-02-26 Tom Tromey <tromey@redhat.com>
6474 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6475 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6476 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6477 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6478 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6479 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6480 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6481 * ada-lang.c (ada_main_name): Update.
6482 (ada_lookup_simple_minsym): Update.
6483 (ada_make_symbol_completion_list): Update.
6484 (ada_add_standard_exceptions): Update.
6485 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6486 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6487 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6488 * arm-tdep.c (skip_prologue_function): Update.
6489 (arm_skip_stack_protector, arm_skip_stub): Update.
6490 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6491 (arm_wince_skip_main_prologue): Update.
6492 * auxv.c (ld_so_xfer_auxv): Update.
6493 * avr-tdep.c (avr_scan_prologue): Update.
6494 * ax-gdb.c (gen_var_ref): Update.
6495 * block.c (call_site_for_pc): Update.
6496 * blockframe.c (get_pc_function_start): Update.
6497 (find_pc_partial_function_gnu_ifunc): Update.
6498 * breakpoint.c (create_overlay_event_breakpoint): Update.
6499 (create_longjmp_master_breakpoint): Update.
6500 (create_std_terminate_master_breakpoint): Update.
6501 (create_exception_master_breakpoint): Update.
6502 (resolve_sal_pc): Update.
6503 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6504 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6506 * c-valprint.c (c_val_print): Update.
6507 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6508 * coffread.c (coff_symfile_read): Update.
6509 * common/agent.c (agent_look_up_symbols): Update.
6510 * dbxread.c (find_stab_function_addr): Update.
6511 (end_psymtab): Update.
6512 * dwarf2loc.c (call_site_to_target_addr): Update.
6513 (func_verify_no_selftailcall): Update.
6514 (tailcall_dump): Update.
6515 (call_site_find_chain_1): Update.
6516 (dwarf_expr_reg_to_entry_parameter): Update.
6517 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6518 (elf_gnu_ifunc_resolve_by_got): Update.
6519 * f-valprint.c (info_common_command): Update.
6520 * findvar.c (read_var_value): Update.
6521 * frame.c (get_prev_frame_1): Update.
6522 (inside_main_func): Update.
6523 * frv-tdep.c (frv_skip_main_prologue): Update.
6524 (frv_frame_this_id): Update.
6525 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6526 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6527 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6528 (gnuv3_skip_trampoline): Update.
6529 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6530 (hppa64_hpux_in_solib_call_trampoline): Update.
6531 (hppa_hpux_skip_trampoline_code): Update.
6532 (hppa64_hpux_search_dummy_call_sequence): Update.
6533 (hppa_hpux_find_import_stub_for_addr): Update.
6534 (hppa_hpux_find_dummy_bpaddr): Update.
6535 * hppa-tdep.c (hppa_symbol_address)
6536 (hppa_lookup_stub_minimal_symbol): Update.
6537 * i386-tdep.c (i386_skip_main_prologue): Update.
6538 (i386_pe_skip_trampoline_code): Update.
6539 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6540 * infcall.c (get_function_name): Update.
6541 * infcmd.c (until_next_command): Update.
6542 * jit.c (jit_breakpoint_re_set_internal): Update.
6543 (jit_inferior_init): Update.
6544 * linespec.c (minsym_found): Update.
6545 (add_minsym): Update.
6546 * linux-fork.c (info_checkpoints_command): Update.
6547 * linux-nat.c (get_signo): Update.
6548 * linux-thread-db.c (inferior_has_bug): Update.
6549 * m32c-tdep.c (m32c_return_value): Update.
6550 (m32c_m16c_address_to_pointer): Update.
6551 (m32c_m16c_pointer_to_address): Update.
6552 * m32r-tdep.c (m32r_frame_this_id): Update.
6553 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6554 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6555 * maint.c (maintenance_translate_address): Update.
6556 * minsyms.c (add_minsym_to_hash_table): Update.
6557 (add_minsym_to_demangled_hash_table): Update.
6558 (msymbol_objfile): Update.
6559 (lookup_minimal_symbol): Update.
6560 (iterate_over_minimal_symbols): Update.
6561 (lookup_minimal_symbol_text): Update.
6562 (lookup_minimal_symbol_by_pc_name): Update.
6563 (lookup_minimal_symbol_solib_trampoline): Update.
6564 (lookup_minimal_symbol_by_pc_section_1): Update.
6565 (lookup_minimal_symbol_and_objfile): Update.
6566 (prim_record_minimal_symbol_full): Update.
6567 (compare_minimal_symbols): Update.
6568 (compact_minimal_symbols): Update.
6569 (build_minimal_symbol_hash_tables): Update.
6570 (install_minimal_symbols): Update.
6571 (terminate_minimal_symbol_table): Update.
6572 (find_solib_trampoline_target): Update.
6573 (minimal_symbol_upper_bound): Update.
6574 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6575 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6576 (mips_skip_pic_trampoline_code): Update.
6577 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6578 * objc-lang.c (selectors_info): Update.
6579 (classes_info): Update.
6580 (find_methods): Update.
6581 (find_imps): Update.
6582 (find_objc_msgsend): Update.
6583 * objfiles.c (objfile_relocate1): Update.
6584 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6585 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6586 * p-valprint.c (pascal_val_print): Update.
6587 * parse.c (write_exp_msymbol): Update.
6588 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6589 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6590 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6591 * printcmd.c (build_address_symbolic): Update.
6593 (address_info): Update.
6594 * proc-service.c (ps_pglobal_lookup): Update.
6595 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6596 (find_pc_sect_psymtab): Update.
6597 * python/py-framefilter.c (py_print_frame): Update.
6598 * ravenscar-thread.c (get_running_thread_id): Update.
6599 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6601 * remote.c (remote_check_symbols): Update.
6602 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6603 (rs6000_skip_trampoline_code): Update.
6604 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6605 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6606 * solib-dsbt.c (lm_base): Update.
6607 * solib-frv.c (lm_base): Update.
6609 * solib-irix.c (locate_base): Update.
6610 * solib-som.c (som_solib_create_inferior_hook): Update.
6611 (som_solib_desire_dynamic_linker_symbols): Update.
6612 (link_map_start): Update.
6613 * solib-spu.c (spu_enable_break): Update.
6614 (ocl_enable_break): Update.
6615 * solib-svr4.c (elf_locate_base): Update.
6616 (enable_break): Update.
6617 * spu-tdep.c (spu_get_overlay_table): Update.
6618 (spu_catch_start): Update.
6619 (flush_ea_cache): Update.
6620 * stabsread.c (define_symbol): Update.
6621 (scan_file_globals): Update.
6622 * stack.c (find_frame_funname): Update.
6623 (frame_info): Update.
6624 * symfile.c (simple_read_overlay_table): Update.
6625 (simple_overlay_update): Update.
6626 * symmisc.c (dump_msymbols): Update.
6627 * symtab.c (fixup_section): Update.
6628 (find_pc_sect_line): Update.
6629 (skip_prologue_sal): Update.
6630 (search_symbols): Update.
6631 (print_msymbol_info): Update.
6632 (rbreak_command): Update.
6633 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6634 (completion_list_objc_symbol): Update.
6635 (default_make_symbol_completion_list_break_on): Update.
6636 * tracepoint.c (scope_info): Update.
6637 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6638 (tui_get_begin_asm_address): Update.
6639 * valops.c (find_function_in_inferior): Update.
6640 * value.c (value_static_field): Update.
6641 (value_fn_field): Update.
6643 2014-02-26 Tom Tromey <tromey@redhat.com>
6645 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6646 bound minimal symbols. Move code that knows about minsym
6648 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6650 * minsyms.h (minimal_symbol_upper_bound): Declare.
6651 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6652 minimal_symbol_upper_bound.
6654 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6656 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6657 Use the type's name if its basic type does not have a tag.
6659 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6661 * dwarf2read.c (read_subrange_type): Add comment.
6663 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6665 * dwarf2read.c (update_enumeration_type_from_children): New
6666 function, mostly extracted from process_structure_scope.
6667 (read_enumeration_type): Call update_enumeration_type_from_children.
6668 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6669 and flag_flag_enum fields.
6671 2014-02-26 Pedro Alves <palves@redhat.com>
6673 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6674 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6675 to_xfer_partial method.
6677 2014-02-26 Pedro Alves <palves@redhat.com>
6679 * target.c (complete_target_initialization): Don't install
6680 default_xfer_partial as to_xfer_partial hook.
6682 (update_current_target): Don't INHERIT nor de_fault
6683 deprecated_xfer_memory. Delete de_fault macro.
6684 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6685 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6686 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6689 2014-02-26 Pedro Alves <palves@redhat.com>
6691 * go32-nat.c (my_write_child): New function.
6692 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6693 (go32_xfer_partial): New function.
6694 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6695 Instead install a to_xfer_partial hook.
6697 2014-02-26 Pedro Alves <palves@redhat.com>
6699 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6700 to_xfer_partial helper. Rewrite.
6701 (procfs_xfer_partial): New function.
6702 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6703 Install a to_xfer_partial hook.
6705 2014-02-26 Pedro Alves <palves@redhat.com>
6707 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6708 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6709 (m32r_xfer_partial): New function.
6710 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6711 Install a to_xfer_partial hook.
6713 2014-02-26 Pedro Alves <palves@redhat.com>
6715 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6717 (mips_xfer_partial): New function.
6718 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6719 hook. Install a to_xfer_partial hook.
6721 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6723 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6724 * gdbtypes.c (create_array_type_with_stride): New function,
6725 renaming create_array_type, but with an added parameter
6726 called "bit_stride".
6727 (create_array_type): Re-implement using
6728 create_array_type_with_stride.
6729 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6730 and DW_AT_bit_stride attributes.
6732 2014-02-26 Pedro Alves <palves@redhat.com>
6734 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6735 task-specific breakpoints.
6737 2014-02-25 Pedro Alves <palves@redhat.com>
6739 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6740 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6742 2014-02-25 Stan Shebs <stan@codesourcery.com>
6744 * defs.h: Annotate comments for Doxygen.
6746 2014-02-25 Tom Tromey <tromey@redhat.com>
6748 * target.h (target_ignore): Don't declare.
6749 * target.c (target_ignore): Remove.
6751 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6754 * auto-load.c (auto_load_objfile_script_1): Change filename to
6757 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6759 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6760 documentation. Adjust prototype to match the target_ops
6761 to_xfer_partial method. Adjust implementation accordingly.
6763 2014-02-25 Hui Zhu <hui@codesourcery.com>
6765 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6768 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6770 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6771 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6772 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6773 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6774 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6775 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6776 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6777 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6779 (rl78_register_type): Use a data pointer type for SP and
6780 new pseudo registers mentioned above. Use a 16 bit integer
6781 type for all other register pairs.
6782 (rl78_register_name, rl78_g10_register_name): Update for
6783 new pseudo registers.
6784 (rl78_pseudo_register_read): Likewise.
6785 (rl78_pseudo_register_write): Likewise.
6786 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6787 to the newly added pseudo registers.
6789 2014-02-24 Doug Evans <dje@google.com>
6791 * value.c (record_latest_value): Fix comment.
6792 * printcmd.c (print_command_1): Remove code to handle -1 return from
6793 record_latest_value.
6795 2014-02-24 Pedro Alves <palves@redhat.com>
6797 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6798 deprecated_xfer_memory hook.
6799 (procfs_xfer_partial): Call procfs_xfer_memory instead
6800 of the deprecated_xfer_memory target hook.
6801 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6804 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6806 * windows-nat.c (windows_xfer_shared_libraries): Return
6807 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6808 requested object is TARGET_OBJECT_LIBRARIES.
6810 2014-02-24 Yao Qi <yao@codesourcery.com>
6812 * target.h (enum target_xfer_status)
6813 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6814 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6816 * corefile.c (memory_error_message): User updated.
6817 * exec.c (section_table_read_available_memory): Likewise.
6818 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6819 * target.c (target_xfer_status_to_string): Likewise.
6820 (raw_memory_xfer_partial): Likewise.
6821 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6822 * valops.c (read_value_memory): Likewise.
6823 * exec.h: Update comments.
6825 2014-02-24 Yao Qi <yao@codesourcery.com>
6827 * target.c (target_xfer_status_to_string): Rename argument err
6829 * target.h (target_xfer_status_to_string): Update declaration.
6830 Replace target_xfer_error_to_string with
6831 target_xfer_status_to_string in comment.
6833 2014-02-24 Yao Qi <yao@codesourcery.com>
6835 * mips-linux-nat.c (super_close): Update its type.
6836 (mips_linux_close): Pass 'self' to super_close.
6838 2014-02-24 Yao Qi <yao@codesourcery.com>
6840 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6841 * corefile.c (read_memory): Adjusted.
6842 * target.c (target_write_with_progress): Adjusted.
6844 2014-02-23 Yao Qi <yao@codesourcery.com>
6848 2013-10-25 Yao Qi <yao@codesourcery.com>
6850 * remote.c (remote_traceframe_info): Return early if
6851 traceframe is not selected.
6853 2013-07-19 Yao Qi <yao@codesourcery.com>
6855 * target.c (update_current_target): Change the default action
6856 of 'to_traceframe_info' from tcomplain to return_zero.
6857 * target.h (struct target_ops) <to_traceframe_info>: Add more
6860 2014-02-23 Yao Qi <yao@codesourcery.com>
6862 * valops.c (read_value_memory): Rewrite it. Call
6863 target_xfer_partial in a loop.
6864 * exec.h (section_table_available_memory): Remove declaration.
6865 Move comments to ...
6866 * exec.c (section_table_available_memory): ... here. Make it
6869 2014-02-23 Yao Qi <yao@codesourcery.com>
6871 * exec.c (section_table_read_available_memory): New function.
6872 * exec.h (section_table_read_available_memory): Declare.
6873 * ctf.c (ctf_xfer_partial): Call
6874 section_table_read_available_memory.
6875 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6877 2014-02-23 Yao Qi <yao@codesourcery.com>
6879 * ctf.c (ctf_xfer_partial): Move code to ...
6880 * exec.c (exec_read_partial_read_only): ... it. New function.
6881 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6882 * tracefile.c: Include "exec.h".
6883 * exec.h (exec_read_partial_read_only): Declare.
6885 2014-02-23 Yao Qi <yao@codesourcery.com>
6887 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6888 (tfile_has_memory): Remove.
6889 (init_tfile_ops): Don't set fields to_has_all_memory and
6890 to_has_memory of tfile_ops.
6891 * tracefile.c (tracefile_has_all_memory): New function.
6892 (tracefile_has_memory): New function.
6893 (init_tracefile_ops): Initialize fields to_has_all_memory and
6894 to_has_memory of 'ops'.
6896 2014-02-23 Yao Qi <yao@codesourcery.com>
6898 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6899 (ctf_thread_alive, ctf_get_trace_status): Remove.
6900 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6902 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6903 (tfile_has_stack, tfile_has_registers): Remove.
6904 (tfile_thread_alive): Remove.
6905 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6907 * tracefile.c (tracefile_has_stack): New function.
6908 (tracefile_has_registers): New function.
6909 (tracefile_thread_alive): New function.
6910 (tracefile_get_trace_status): New function.
6911 (init_tracefile_ops): New function.
6912 * tracefile.h (init_tracefile_ops): Declare.
6914 2014-02-23 Yao Qi <yao@codesourcery.com>
6916 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6917 (O_LARGEFILE): Likewise.
6918 (tfile_ops): Likewise.
6919 (TRACE_HEADER_SIZE): Likewise.
6920 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6921 (cur_data_size): Likewise.
6922 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6923 (tfile_close, tfile_files_info): Likewise.
6924 (tfile_get_trace_status): Likewise.
6925 (tfile_get_tracepoint_status): Likewise.
6926 (tfile_get_traceframe_address): Likewise.
6927 (tfile_trace_find, match_blocktype): Likewise.
6928 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6929 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6930 (tfile_get_trace_state_variable_value): Likewise.
6931 (tfile_has_all_memory, tfile_has_memory): Likewise.
6932 (tfile_has_stack, tfile_has_registers): Likewise.
6933 (tfile_thread_alive, build_traceframe_info): Likewise.
6934 (tfile_traceframe_info, init_tfile_ops): Likewise.
6935 (_initialize_tracepoint): Don't call init_tfile_ops
6936 and add_target_with_completer.
6937 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6938 exec.h, completer.h and filenames.h.
6939 (_initialize_tracefile_tfile): New function.
6941 2014-02-23 Yao Qi <yao@codesourcery.com>
6943 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6945 (HFILES_NO_SRCDIR): Add tracefile.h.
6946 * ctf.c: Include "tracefile.h".
6947 * tracefile.h: New file.
6948 * tracefile.c: New file
6949 * tracefile-tfile.c: New file.
6950 * tracepoint.c: Include "tracefile.h".
6951 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6952 (stop_reason_names): Add const.
6953 (trace_file_writer_xfree): Move it to tracefile.c.
6954 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6955 (trace_save_ctf): Likewise.
6956 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6957 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6958 (tfile_write_header, tfile_write_regblock_type): Likewise.
6959 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6960 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6961 (tfile_write_raw_data, tfile_end): Likewise.
6962 (tfile_trace_file_writer_new): Likewise.
6963 (free_uploaded_tp): Make it extern.
6964 (free_uploaded_tsv): Make it extern.
6965 (_initialize_tracepoint): Move code to register command 'tsave'
6967 * tracepoint.h (stop_reason_names): Declare.
6968 (struct trace_frame_write_ops): Move it to tracefile.h.
6969 (struct trace_file_write_ops): Likewise.
6970 (struct trace_file_writer): Likewise.
6971 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6973 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6976 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6978 (get_cores_used_by_process): New parameter num_cores, use it.
6979 (linux_xfer_osdata_processes): Pass num_cores to it.
6980 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6983 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6985 * target.c (memory_xfer_partial): Fix length arg in call to
6986 breakpoint_xfer_memory.
6988 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6991 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6992 number comes after the + or - signs. Adjust length of register
6993 name to be extracted.
6995 2014-02-20 Tom Tromey <tromey@redhat.com>
6997 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6998 (ada_varobj_ops): Mark "extern".
7000 2014-02-20 Tom Tromey <tromey@redhat.com>
7002 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7004 2014-02-20 Doug Evans <xdje42@gmail.com>
7006 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7007 All callers updated.
7008 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7009 All callers updated.
7010 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7011 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7013 2014-02-20 lin zuojian <manjian2006@gmail.com>
7014 Joel Brobecker <brobecker@adacore.com>
7015 Doug Evans <xdje42@gmail.com>
7018 * dwarf2read.c (struct die_info): New member in_process.
7019 (reset_die_in_process): New function.
7020 (process_die): Set it at the start, reset when returning.
7021 (inherit_abstract_dies): Only call process_die if origin_child_die
7022 not already being processed.
7024 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7026 * windows-nat.c (handle_unload_dll): Add function documentation.
7027 (do_initial_windows_stuff): Add comment explaining why we wait
7028 until after inferior initialization has finished before
7029 processing all DLLs.
7031 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7033 * windows-nat.c (get_module_name): Delete.
7034 (windows_get_exec_module_filename): New function, mostly
7035 inspired from get_module_name.
7036 (windows_pid_to_exec_file): Replace call to get_module_name
7037 by call to windows_get_exec_module_filename.
7039 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7041 * windows-nat.c (handle_load_dll): Rewrite this function's
7042 introductory comment. Remove code using get_module_name
7043 to get the DLL's name.
7045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7047 * windows-nat.c (get_windows_debug_event): Ignore
7048 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7049 if windows_initialization_done == 0.
7050 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7051 Adjust implementation to always load all DLLs.
7052 (do_initial_windows_stuff): Replace call to
7053 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7055 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7057 * windows-nat.c (_initialize_windows_nat): Deprecate the
7058 "dll-symbols" command. Turn the "add-shared-symbol-files"
7059 and "assf" aliases into commands, and deprecate them as well.
7060 * NEWS: Add entry explaining that "dll-symbols" and its two
7061 aliases are now deprecated.
7063 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7065 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7066 new-line in debug string. Remove trailing spaces.
7068 2014-02-19 Stan Shebs <stan@codesourcery.com>
7070 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7072 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7074 * NEWS: Add entry for the new feature
7075 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7078 2014-02-19 Stan Shebs <stan@codesourcery.com>
7080 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7082 2014-02-19 Pedro Alves <palves@redhat.com>
7084 * common/ptid.h (struct ptid): Mention that process_stratum
7085 targets should prefer ptid.lwp.
7087 2014-02-19 Pedro Alves <palves@redhat.com>
7089 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7090 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7091 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7092 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7093 store remote thread ids rather than ptid.tid.
7094 (_initialize_remote): Adjust.
7096 2014-02-19 Tom Tromey <tromey@redhat.com>
7098 * target.c (target_get_unwinder): Rewrite.
7099 (target_get_tailcall_unwinder): Rewrite.
7100 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7101 (record_btrace_to_get_tailcall_unwinder): New function.
7102 (init_record_btrace_ops): Update.
7103 * target.h (struct target_ops) <to_get_unwinder,
7104 to_get_tailcall_unwinder>: Now function pointers. Use
7105 TARGET_DEFAULT_RETURN.
7107 2014-02-19 Tom Tromey <tromey@redhat.com>
7109 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7111 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7113 2014-02-19 Tom Tromey <tromey@redhat.com>
7115 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7117 * target-delegates.c: Rebuild.
7118 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7119 TARGET_DEFAULT_FUNC.
7120 * target.c (default_target_decr_pc_after_break): Rename from
7121 forward_target_decr_pc_after_break. Simplify.
7122 (target_decr_pc_after_break): Rely on delegation.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target.c (update_current_target): Do not INHERIT to_doc or
7127 to_magic. Do not de_fault to_open or to_close.
7129 2014-02-19 Tom Tromey <tromey@redhat.com>
7131 * gcore.h (objfile_find_memory_regions): Declare.
7132 * gcore.c (objfile_find_memory_regions): No longer static. Add
7134 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7135 * exec.c: Include gcore.h.
7136 (exec_set_find_memory_regions): Remove.
7137 (exec_find_memory_regions): Remove.
7138 (exec_do_find_memory_regions): Remove.
7139 (init_exec_ops): Update.
7140 * defs.h (exec_set_find_memory_regions): Remove.
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * target-delegates.c: Rebuild.
7145 * target.h (struct target_ops) <to_extra_thread_info,
7146 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7147 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7148 not 0, in TARGET_DEFAULT_RETURN.
7150 2014-02-19 Tom Tromey <tromey@redhat.com>
7152 * target.c (complete_target_initialization): Remove casts. Use
7153 return_zero_has_execution.
7154 (return_zero): Add "ignore" argument.
7155 (return_zero_has_execution): New function.
7156 (init_dummy_target): Remove casts. Use
7157 return_zero_has_execution.
7159 2014-02-19 Tom Tromey <tromey@redhat.com>
7161 * target.c (update_current_target): Update comments. Do not
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7168 * corelow.c (core_read_description): Delegate when needed.
7169 * remote.c (remote_read_description): Delegate when needed.
7170 * target-delegates.c: Rebuild.
7171 * target.c (target_read_description): Rewrite.
7172 * target.h (struct target_ops) <to_read_description>: Update
7173 comment. Use TARGET_DEFAULT_RETURN.
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * target-delegates.c: Rebuild.
7178 * target.c (update_current_target): Don't inherit or default
7180 (find_default_run_target): Check against delegate_can_run.
7181 * target.h (struct target_ops) <to_can_run>: Use
7182 TARGET_DEFAULT_RETURN.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target-delegates.c: Rebuild.
7187 * target.c (target_disconnect): Unconditionally delegate.
7188 * target.h (struct target_ops) <to_disconnect>: Use
7189 TARGET_DEFAULT_NORETURN.
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * record.c (record_stop): Unconditionally delegate.
7194 * target-delegates.c: Rebuild.
7195 * target.c (target_stop_recording): Unconditionally delegate.
7196 * target.h (struct target_ops) <to_stop_recording>: Use
7197 TARGET_DEFAULT_IGNORE.
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target-delegates.c: Rebuild.
7202 * target.c (target_enable_btrace): Unconditionally delegate.
7203 * target.h (struct target_ops) <to_enable_btrace>: Use
7204 TARGET_DEFAULT_NORETURN.
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * target-delegates.c: Rebuild.
7209 * target.c (target_read_btrace): Unconditionally delegate.
7210 * target.h (struct target_ops) <to_read_btrace>: Use
7211 TARGET_DEFAULT_NORETURN.
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target-delegates.c: Rebuild.
7216 * target.c (target_teardown_btrace): Unconditionally delegate.
7217 * target.h (struct target_ops) <to_teardown_btrace>: Use
7218 TARGET_DEFAULT_NORETURN.
7220 2014-02-19 Tom Tromey <tromey@redhat.com>
7222 * target-delegates.c: Rebuild.
7223 * target.c (target_disable_btrace): Unconditionally delegate.
7224 * target.h (struct target_ops) <to_disable_btrace>: Use
7225 TARGET_DEFAULT_NORETURN.
7227 2014-02-19 Tom Tromey <tromey@redhat.com>
7229 * target-delegates.c: Rebuild.
7230 * target.c (default_search_memory): New function.
7231 (simple_search_memory): Update comment.
7232 (target_search_memory): Unconditionally delegate.
7233 * target.h (struct target_ops) <to_search_memory>: Use
7234 TARGET_DEFAULT_FUNC.
7236 2014-02-19 Tom Tromey <tromey@redhat.com>
7238 * auxv.c (default_auxv_parse): No longer static.
7239 (target_auxv_parse): Unconditionally delegate.
7240 * auxv.h (default_auxv_parse): Declare.
7241 * target-delegates.c: Rebuild.
7242 * target.c: Include auxv.h.
7243 * target.h (struct target_ops) <to_auxv_parse>: Use
7244 TARGET_DEFAULT_FUNC.
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * target-delegates.c: Rebuild.
7249 * target.c (target_memory_map): Unconditionally delegate.
7250 * target.h (struct target_ops) <to_memory_map>: Use
7251 TARGET_DEFAULT_RETURN.
7253 2014-02-19 Tom Tromey <tromey@redhat.com>
7255 * target-delegates.c: Rebuild.
7256 * target.c (target_thread_alive): Unconditionally delegate.
7257 * target.h (struct target_ops) <to_thread_alive>: Use
7258 TARGET_DEFAULT_RETURN.
7260 2014-02-19 Tom Tromey <tromey@redhat.com>
7262 * target-delegates.c: Rebuild.
7263 * target.c (target_save_record): Unconditionally delegate.
7264 * target.h (struct target_ops) <to_save_record>: Use
7265 TARGET_DEFAULT_NORETURN.
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7269 * target-delegates.c: Rebuild.
7270 * target.c (target_delete_record): Unconditionally delegate.
7271 * target.h (struct target_ops) <to_delete_record>: Use
7272 TARGET_DEFAULT_NORETURN.
7274 2014-02-19 Tom Tromey <tromey@redhat.com>
7276 * target-delegates.c: Rebuild.
7277 * target.c (target_record_is_replaying): Unconditionally
7279 * target.h (struct target_ops) <to_record_is_replaying>: Use
7280 TARGET_DEFAULT_RETURN.
7282 2014-02-19 Tom Tromey <tromey@redhat.com>
7284 * target-delegates.c: Rebuild.
7285 * target.c (target_goto_record_begin): Unconditionally delegate.
7286 * target.h (struct target_ops) <to_goto_record_begin>: Use
7287 TARGET_DEFAULT_NORETURN.
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target-delegates.c: Rebuild.
7292 * target.c (target_goto_record_end): Unconditionally delegate.
7293 * target.h (struct target_ops) <to_goto_record_end>: Use
7294 TARGET_DEFAULT_NORETURN.
7296 2014-02-19 Tom Tromey <tromey@redhat.com>
7298 * target-delegates.c: Rebuild.
7299 * target.c (target_goto_record): Unconditionally delegate.
7300 * target.h (struct target_ops) <to_goto_record>: Use
7301 TARGET_DEFAULT_NORETURN.
7303 2014-02-19 Tom Tromey <tromey@redhat.com>
7305 * target-delegates.c: Rebuild.
7306 * target.c (target_insn_history): Unconditionally delegate.
7307 * target.h (struct target_ops) <to_insn_history>: Use
7308 TARGET_DEFAULT_NORETURN.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target-delegates.c: Rebuild.
7313 * target.c (target_insn_history_from): Unconditionally delegate.
7314 * target.h (struct target_ops) <to_insn_history_from>: Use
7315 TARGET_DEFAULT_NORETURN.
7317 2014-02-19 Tom Tromey <tromey@redhat.com>
7319 * target-delegates.c: Rebuild.
7320 * target.c (target_insn_history_range): Unconditionally delegate.
7321 * target.h (struct target_ops) <to_insn_history_range>: Use
7322 TARGET_DEFAULT_NORETURN.
7324 2014-02-19 Tom Tromey <tromey@redhat.com>
7326 * target-delegates.c: Rebuild.
7327 * target.c (target_call_history): Unconditionally delegate.
7328 * target.h (struct target_ops) <to_call_history>: Use
7329 TARGET_DEFAULT_NORETURN.
7331 2014-02-19 Tom Tromey <tromey@redhat.com>
7333 * target-delegates.c: Rebuild.
7334 * target.c (target_call_history_from): Unconditionally delegate.
7335 * target.h (struct target_ops) <to_call_history_from>: Use
7336 TARGET_DEFAULT_NORETURN.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * target-delegates.c: Rebuild.
7341 * target.c (target_call_history_range): Unconditionally delegate.
7342 * target.h (struct target_ops) <to_call_history_range>: Use
7343 TARGET_DEFAULT_NORETURN.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target-delegates.c: Rebuild.
7348 * target.c (target_verify_memory): Unconditionally delegate.
7349 * target.h (struct target_ops) <to_verify_memory>: Use
7350 TARGET_DEFAULT_NORETURN.
7352 2014-02-19 Tom Tromey <tromey@redhat.com>
7354 * target-delegates.c: Rebuild.
7355 * target.c (target_core_of_thread): Unconditionally delegate.
7356 * target.h (struct target_ops) <to_core_of_thread>: Use
7357 TARGET_DEFAULT_RETURN.
7359 2014-02-19 Tom Tromey <tromey@redhat.com>
7361 * target-delegates.c: Rebuild.
7362 * target.c (target_flash_done): Unconditionally delegate.
7363 * target.h (struct target_ops) <to_flash_done>: Use
7364 TARGET_DEFAULT_NORETURN.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target-delegates.c: Rebuild.
7369 * target.c (target_flash_erase): Unconditionally delegate.
7370 * target.h (struct target_ops) <to_flash_erase>: Use
7371 TARGET_DEFAULT_NORETURN.
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target-delegates.c: Rebuild.
7376 * target.c (target_get_section_table): Unconditionally delegate.
7377 * target.h (struct target_ops) <to_get_section_table>: Use
7378 TARGET_DEFAULT_RETURN.
7380 2014-02-19 Tom Tromey <tromey@redhat.com>
7382 * target-delegates.c: Rebuild.
7383 * target.c (target_pid_to_str): Unconditionally delegate.
7384 (init_dummy_target): Don't initialize to_pid_to_str.
7385 (default_pid_to_str): Rename from dummy_pid_to_str.
7386 * target.h (struct target_ops) <to_pid_to_str>: Use
7387 TARGET_DEFAULT_FUNC.
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * target-delegates.c: Rebuild.
7392 * target.c (target_find_new_threads): Unconditionally delegate.
7393 * target.h (struct target_ops) <to_find_new_threads>: Use
7394 TARGET_DEFAULT_RETURN.
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * target-delegates.c: Rebuild.
7399 * target.c (target_program_signals): Unconditionally delegate.
7400 * target.h (struct target_ops) <to_program_signals>: Use
7401 TARGET_DEFAULT_IGNORE.
7403 2014-02-19 Tom Tromey <tromey@redhat.com>
7405 * target-delegates.c: Rebuild.
7406 * target.c (target_pass_signals): Unconditionally delegate.
7407 * target.h (struct target_ops) <to_pass_signals>: Use
7408 TARGET_DEFAULT_IGNORE.
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * target-delegates.c: Rebuild.
7413 * target.c (default_mourn_inferior): New function.
7414 (target_mourn_inferior): Unconditionally delegate.
7415 * target.h (struct target_ops) <to_mourn_inferior>: Use
7416 TARGET_DEFAULT_FUNC.
7418 2014-02-19 Tom Tromey <tromey@redhat.com>
7420 * target-delegates.c: Rebuild.
7421 * target.c (default_follow_fork): New function.
7422 (target_follow_fork): Unconditionally delegate.
7423 * target.h (struct target_ops) <to_follow_fork>: Use
7424 TARGET_DEFAULT_FUNC.
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7428 * target-delegates.c: Rebuild.
7429 * target.c (target_kill): Unconditionally delegate.
7430 * target.h (struct target_ops) <to_kill>: Use
7431 TARGET_DEFAULT_NORETURN.
7433 2014-02-19 Tom Tromey <tromey@redhat.com>
7435 * target-delegates.c: Rebuild.
7436 * target.c (target_masked_watch_num_registers): Unconditionally
7438 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7439 Use TARGET_DEFAULT_RETURN.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target-delegates.c: Rebuild.
7444 * target.c (target_remove_mask_watchpoint): Unconditionally
7446 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7447 TARGET_DEFAULT_RETURN.
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target-delegates.c: Rebuild.
7452 * target.c (target_insert_mask_watchpoint): Unconditionally
7454 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7455 TARGET_DEFAULT_RETURN.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target-delegates.c: Rebuild.
7460 * target.c (target_ranged_break_num_registers): Unconditionally
7462 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7463 Use TARGET_DEFAULT_RETURN.
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7467 * target-delegates.c: Rebuild.
7468 * target.c (target_fetch_registers): Unconditionally delegate.
7469 * target.h (struct target_ops) <to_fetch_registers>: Use
7470 TARGET_DEFAULT_NORETURN.
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7474 * target-delegates.c: Rebuild.
7475 * target.c (update_current_target): Don't inherit or default
7477 * target.h (struct target_ops) <to_stop>: Use
7478 TARGET_DEFAULT_IGNORE.
7480 2014-02-19 Tom Tromey <tromey@redhat.com>
7482 * target-delegates.c: Rebuild.
7483 * target.c (update_current_target): Don't inherit or default
7484 to_can_run_breakpoint_commands.
7485 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7486 Use TARGET_DEFAULT_RETURN.
7488 2014-02-19 Tom Tromey <tromey@redhat.com>
7490 * target-delegates.c: Rebuild.
7491 * target.c (update_current_target): Don't inherit or default
7492 to_supports_evaluation_of_breakpoint_conditions.
7493 * target.h (struct target_ops)
7494 <to_supports_evaluation_of_breakpoint_conditions>: Use
7495 TARGET_DEFAULT_RETURN.
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7499 * target-delegates.c: Rebuild.
7500 * target.c (update_current_target): Don't inherit or default
7501 to_augmented_libraries_svr4_read.
7502 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7503 Use TARGET_DEFAULT_RETURN.
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target-delegates.c: Rebuild.
7508 * target.c (update_current_target): Don't inherit or default
7510 * target.h (struct target_ops) <to_can_use_agent>: Use
7511 TARGET_DEFAULT_RETURN.
7513 2014-02-19 Tom Tromey <tromey@redhat.com>
7515 * target-delegates.c: Rebuild.
7516 * target.c (update_current_target): Don't inherit or default
7518 * target.h (struct target_ops) <to_use_agent>: Use
7519 TARGET_DEFAULT_NORETURN.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target-delegates.c: Rebuild.
7524 * target.c (update_current_target): Don't inherit or default
7526 (return_null): Remove.
7527 * target.h (struct target_ops) <to_traceframe_info>: Use
7528 TARGET_DEFAULT_RETURN.
7530 2014-02-19 Tom Tromey <tromey@redhat.com>
7532 * target-delegates.c: Rebuild.
7533 * target.c (update_current_target): Don't inherit or default
7534 to_static_tracepoint_markers_by_strid.
7535 * target.h (struct target_ops)
7536 <to_static_tracepoint_markers_by_strid>: Use
7537 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
7544 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7545 Use TARGET_DEFAULT_RETURN.
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
7552 * target.h (struct target_ops) <to_set_permissions>: 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
7560 * target.h (struct target_ops) <to_get_tib_address>: Use
7561 TARGET_DEFAULT_NORETURN.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * target-delegates.c: Rebuild.
7566 * target.c (update_current_target): Don't inherit or default
7568 * target.h (struct target_ops) <to_set_trace_notes>: Use
7569 TARGET_DEFAULT_RETURN.
7571 2014-02-19 Tom Tromey <tromey@redhat.com>
7573 * target-delegates.c: Rebuild.
7574 * target.c (update_current_target): Don't initialize
7575 to_set_trace_buffer_size.
7576 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7577 TARGET_DEFAULT_IGNORE.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * target-delegates.c: Rebuild.
7582 * target.c (update_current_target): Don't inherit or default
7583 to_set_circular_trace_buffer.
7584 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7585 TARGET_DEFAULT_IGNORE.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target-delegates.c: Rebuild.
7590 * target.c (update_current_target): Don't inherit or default
7591 to_set_disconnected_tracing.
7592 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7593 TARGET_DEFAULT_IGNORE.
7595 2014-02-19 Tom Tromey <tromey@redhat.com>
7597 * target-delegates.c: Rebuild.
7598 * target.c (update_current_target): Don't inherit or default
7599 to_get_min_fast_tracepoint_insn_len.
7600 (return_minus_one): Remove.
7601 * target.h (struct target_ops)
7602 <to_get_min_fast_tracepoint_insn_len>: 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
7608 to_get_raw_trace_data.
7609 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7610 TARGET_DEFAULT_NORETURN.
7612 2014-02-19 Tom Tromey <tromey@redhat.com>
7614 * target-delegates.c: Rebuild.
7615 * target.c (update_current_target): Don't inherit or default
7616 to_upload_trace_state_variables.
7617 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7618 Use TARGET_DEFAULT_RETURN.
7620 2014-02-19 Tom Tromey <tromey@redhat.com>
7622 * target-delegates.c: Rebuild.
7623 * target.c (update_current_target): Don't inherit or default
7624 to_upload_tracepoints.
7625 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7626 TARGET_DEFAULT_RETURN.
7628 2014-02-19 Tom Tromey <tromey@redhat.com>
7630 * target-delegates.c: Rebuild.
7631 * target.c (update_current_target): Don't inherit or default
7633 * target.h (struct target_ops) <to_save_trace_data>: Use
7634 TARGET_DEFAULT_NORETURN.
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target-delegates.c: Rebuild.
7639 * target.c (update_current_target): Don't inherit or default
7640 to_get_trace_state_variable_value.
7641 * target.h (struct target_ops)
7642 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target-delegates.c: Rebuild.
7647 * target.c (update_current_target): Don't inherit or default
7649 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
7656 * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
7664 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
7672 * target.h (struct target_ops) <to_get_trace_status>: Use
7673 TARGET_DEFAULT_RETURN.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't inherit or default
7680 * target.h (struct target_ops) <to_trace_start>: Use
7681 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
7688 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7689 Use 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
7695 to_disable_tracepoint.
7696 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7697 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
7704 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7705 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
7712 * target.h (struct target_ops) <to_download_trace_state_variable>:
7713 Use TARGET_DEFAULT_NORETURN.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * target-delegates.c: Rebuild.
7718 * target.c (update_current_target): Don't inherit or default
7719 to_can_download_tracepoint.
7720 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7721 TARGET_DEFAULT_RETURN.
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target-delegates.c: Rebuild.
7726 * target.c (update_current_target): Don't inherit or default
7727 to_download_tracepoint.
7728 * target.h (struct target_ops) <to_download_tracepoint>: Use
7729 TARGET_DEFAULT_NORETURN.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * target-delegates.c: Rebuild.
7734 * target.c (update_current_target): Don't inherit or default
7736 * target.h (struct target_ops) <to_trace_init>: Use
7737 TARGET_DEFAULT_RETURN.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't inherit or default
7743 to_supports_string_tracing.
7744 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7745 TARGET_DEFAULT_RETURN.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7751 to_supports_enable_disable_tracepoint.
7752 * target.h (struct target_ops)
7753 <to_supports_enable_disable_tracepoint>: Use
7754 TARGET_DEFAULT_RETURN.
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * target-delegates.c: Rebuild.
7759 * target.c (update_current_target): Don't inherit or default
7760 to_supports_multi_process.
7761 * target.h (struct target_ops) <to_supports_multi_process>: Use
7762 TARGET_DEFAULT_RETURN.
7764 2014-02-19 Tom Tromey <tromey@redhat.com>
7766 * target-delegates.c: Rebuild.
7767 * target.c (update_current_target): Don't inherit or default
7768 to_get_ada_task_ptid.
7769 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7770 TARGET_DEFAULT_FUNC.
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7774 * target-delegates.c: Rebuild.
7775 * target.c (update_current_target): Don't inherit or default
7776 to_thread_architecture.
7777 * target.h (struct target_ops) <to_thread_architecture>: Use
7778 TARGET_DEFAULT_FUNC.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.c (update_current_target): Don't inherit or default
7784 to_execution_direction.
7785 * target.h (struct target_ops) <to_execution_direction>: Use
7786 TARGET_DEFAULT_FUNC.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target-delegates.c: Rebuild.
7791 * target.c (update_current_target): Don't inherit or default
7792 to_can_execute_reverse.
7793 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7794 TARGET_DEFAULT_RETURN.
7795 (target_can_execute_reverse): Unconditionally delegate.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target-delegates.c: Rebuild.
7800 * target.c (update_current_target): Don't inherit or default
7802 (dummy_goto_bookmark): Remove.
7803 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7804 * target.h (struct target_ops) <to_goto_bookmark>: Use
7805 TARGET_DEFAULT_NORETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (update_current_target): Don't inherit or default
7812 (dummy_get_bookmark): Remove.
7813 (init_dummy_target): Don't inherit or default to_get_bookmark.
7814 * target.h (struct target_ops) <to_get_bookmark>: Use
7815 TARGET_DEFAULT_NORETURN
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7819 * target-delegates.c: Rebuild.
7820 * target.c (update_current_target): Don't inherit or default
7821 to_make_corefile_notes.
7822 (init_dummy_target): Don't initialize to_make_corefile_notes.
7823 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7824 TARGET_DEFAULT_FUNC.
7826 2014-02-19 Tom Tromey <tromey@redhat.com>
7828 * target-delegates.c: Rebuild.
7829 * target.c (update_current_target): Don't inherit or default
7830 to_find_memory_regions.
7831 (init_dummy_target): Don't initialize to_find_memory_regions.
7832 * target.h (struct target_ops) <to_find_memory_regions>: Use
7833 TARGET_DEFAULT_FUNC.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * target-delegates.c: Rebuild.
7838 * target.c (update_current_target): Don't inherit or default
7840 * target.h (struct target_ops) <to_log_command>: Use
7841 TARGET_DEFAULT_IGNORE.
7842 (target_log_command): Unconditionally delegate.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (update_current_target): Don't inherit or default
7848 to_pid_to_exec_file.
7849 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7850 TARGET_DEFAULT_RETURN.
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7857 (target_thread_name): Unconditionally delegate.
7858 * target.h (struct target_ops) <to_thread_name>: Use
7859 TARGET_DEFAULT_RETURN.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (update_current_target): Don't inherit or default
7865 to_extra_thread_info.
7866 * target.h (struct target_ops) <to_extra_thread_info>: Use
7867 TARGET_DEFAULT_RETURN.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * target-delegates.c: Rebuild.
7872 * target.c (update_current_target): Don't inherit or default
7874 * target.h (struct target_ops) <to_has_exited>: Use
7875 TARGET_DEFAULT_RETURN..
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7881 to_set_syscall_catchpoint.
7882 (return_one): Remove.
7883 * target.h (struct target_ops) <to_set_syscall_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_exec_catchpoint.
7891 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7892 TARGET_DEFAULT_RETURN.
7894 2014-01-08 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (update_current_target): Don't inherit or default
7898 to_insert_exec_catchpoint.
7899 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7900 TARGET_DEFAULT_RETURN.
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
7906 to_remove_vfork_catchpoint.
7907 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7908 TARGET_DEFAULT_RETURN.
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
7914 to_insert_vfork_catchpoint.
7915 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7916 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
7923 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7924 TARGET_DEFAULT_RETURN.
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
7930 to_insert_fork_catchpoint.
7931 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7932 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
7939 * target.h (struct target_ops) <to_post_startup_inferior>: 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
7947 * target.h (struct target_ops) <to_load>: Use
7948 TARGET_DEFAULT_NORETURN.
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_info>: Use
7956 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
7963 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7964 TARGET_DEFAULT_IGNORE.
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
7971 * target.h (struct target_ops) <to_terminal_ours>: Use
7972 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
7979 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7980 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
7987 * target.h (struct target_ops) <to_terminal_inferior>: Use
7988 TARGET_DEFAULT_IGNORE.
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
7995 * target.h (struct target_ops) <to_terminal_init>: Use
7996 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
8003 * target.h (struct target_ops)
8004 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
8011 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8012 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
8019 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8020 Use TARGET_DEFAULT_FUNC.
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
8026 to_remove_watchpoint.
8027 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8028 TARGET_DEFAULT_NORETURN.
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
8034 to_insert_watchpoint.
8035 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8036 TARGET_DEFAULT_RETURN.
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
8042 to_remove_hw_breakpoint.
8043 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8044 TARGET_DEFAULT_RETURN.
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
8050 to_insert_hw_breakpoint.
8051 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8052 TARGET_DEFAULT_RETURN.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target-delegates.c: Rebuild.
8057 * target.c (update_current_target): Don't inherit or default
8058 to_can_use_hw_breakpoint.
8059 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8060 TARGET_DEFAULT_RETURN.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't inherit or default
8067 * target.h (struct target_ops) <to_files_info>: Use
8068 TARGET_DEFAULT_IGNORE.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8075 * target.h (struct target_ops) <to_store>: Use
8076 TARGET_DEFAULT_NORETURN.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8083 * target.h (struct target_ops) <to_post_attach>: Use
8084 TARGET_DEFAULT_IGNORE.
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target-delegates.c: Rebuild.
8089 * target.c (update_current_target): Don't inherit or default
8091 (default_rcmd): New function.
8092 (do_monitor_command): Unconditionally delegate.
8093 * target.h (struct target_ops) <to_rmcd>: Use
8094 TARGET_DEFAULT_FUNC.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (init_dummy_target): Don't initialize to_attach.
8100 (target_attach): Unconditionally delegate.
8101 * target.h (struct target_ops) <to_attach>: Use
8102 TARGET_DEFAULT_FUNC.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (target_detach): Unconditionally delegate.
8108 (init_dummy_target): Don't initialize to_detach.
8109 * target.h (struct target_ops) <to_detach>: Use
8110 TARGET_DEFAULT_IGNORE.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8116 (target_augmented_libraries_svr4_read): Add argument.
8117 * target.c (update_current_target): Update.
8118 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target.h (struct target_ops) <to_call_history_range>: Add
8125 * target.c (target_call_history_range): Add argument.
8126 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8128 (record_btrace_call_history_from): Update.
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target.h (struct target_ops) <to_call_history_from>: Add
8134 * target.c (target_call_history_from): Add argument.
8135 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target.h (struct target_ops) <to_call_history>: Add argument.
8141 * target.c (target_call_history): Add argument.
8142 * record-btrace.c (record_btrace_call_history): Add 'self'
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target.h (struct target_ops) <to_insn_history_range>: Add
8149 * target.c (target_insn_history_range): Add argument.
8150 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8152 (record_btrace_insn_history_from): Update.
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target.h (struct target_ops) <to_insn_history_from>: Add
8158 * target.c (target_insn_history_from): Add argument.
8159 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target.h (struct target_ops) <to_insn_history>: Add argument.
8165 * target.c (target_insn_history): Add argument.
8166 * record-btrace.c (record_btrace_insn_history): Add 'self'
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target.h (struct target_ops) <to_goto_record>: Add argument.
8172 * target.c (target_goto_record): Add argument.
8173 * record-full.c (record_full_goto): Add 'self' argument.
8174 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8179 * target.c (target_goto_record_end): Add argument.
8180 * record-full.c (record_full_goto_end): Add 'self' argument.
8181 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8185 * target.h (struct target_ops) <to_goto_record_begin>: Add
8187 * target.c (target_goto_record_begin): Add argument.
8188 * record-full.c (record_full_goto_begin): Add 'self' argument.
8189 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target.h (struct target_ops) <to_record_is_replaying>: Add
8196 * target.c (target_record_is_replaying): Add argument.
8197 * record-full.c (record_full_is_replaying): Add 'self' argument.
8198 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8200 (record_btrace_xfer_partial, record_btrace_store_registers)
8201 (record_btrace_prepare_to_store, record_btrace_resume)
8202 (record_btrace_wait, record_btrace_decr_pc_after_break)
8203 (record_btrace_find_new_threads, record_btrace_thread_alive):
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target.h (struct target_ops) <to_delete_record>: Add argument.
8209 * target.c (target_delete_record): Add argument.
8210 * record-full.c (record_full_delete): Add 'self' argument.
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8214 * target.h (struct target_ops) <to_save_record>: Add argument.
8215 * target.c (target_save_record): Add argument.
8216 * record-full.c (record_full_save): Add 'self' argument.
8217 (record_full_save): Add 'self' argument.
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8221 * target.h (struct target_ops) <to_info_record>: Add argument.
8222 * target.c (target_info_record): Add argument.
8223 * record.c (info_record_command): Add argument.
8224 * record-full.c (record_full_info): Add 'self' argument.
8225 * record-btrace.c (record_btrace_info): Add 'self' argument.
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8230 * target.c (target_stop_recording): Add argument.
8231 * record.c (record_stop): Add argument.
8232 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8238 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8239 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8241 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8242 (_initialize_amd64_linux_nat): Use it.
8243 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8244 (_initialize_i386_linux_nat): Use it.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8249 * target.c (target_teardown_btrace): Add argument.
8250 * remote.c (remote_teardown_btrace): Add 'self' argument.
8251 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8253 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8259 * target.c (target_disable_btrace): Add argument.
8260 * remote.c (remote_disable_btrace): Add 'self' argument.
8261 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8263 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8269 * target.c (target_enable_btrace): Add argument.
8270 * remote.c (remote_enable_btrace): Add 'self' argument.
8271 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8273 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8276 2014-02-19 Tom Tromey <tromey@redhat.com>
8278 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8279 (target_can_use_agent): Add argument.
8280 * target.c (update_current_target): Update.
8281 * remote.c (remote_can_use_agent): Add 'self' argument.
8282 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8284 2014-02-19 Tom Tromey <tromey@redhat.com>
8286 * target.h (struct target_ops) <to_use_agent>: Add argument.
8287 (target_use_agent): Add argument.
8288 * target.c (update_current_target): Update.
8289 * remote.c (remote_use_agent): Add 'self' argument.
8290 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8295 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8296 (target_traceframe_info): Add argument.
8297 * target.c (update_current_target): Update.
8298 * remote.c (remote_traceframe_info): Add 'self' argument.
8299 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target.h (target_static_tracepoint_markers_by_strid): Add
8305 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8307 * target.c (update_current_target): Update.
8308 * remote.c (struct target_ops)
8309 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8310 * linux-nat.c (struct target_ops)
8311 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8317 (target_static_tracepoint_marker_at): Add argument.
8318 * target.c (update_current_target): Update.
8319 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8325 (target_set_permissions): Add argument.
8326 * target.c (update_current_target): Update.
8327 * remote.c (remote_set_permissions): Add 'self' argument.
8328 (remote_start_remote): Update.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8333 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8334 (target_get_tib_address): Add argument.
8335 * target.c (update_current_target): Update.
8336 * remote.c (remote_get_tib_address): Add 'self' argument.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8341 (target_set_trace_notes): Add argument.
8342 * target.c (update_current_target): Update.
8343 * remote.c (remote_set_trace_notes): Add 'self' argument.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8349 (target_set_trace_buffer_size): Add argument.
8350 * target.c (update_current_target): Update.
8351 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8355 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8357 (target_set_circular_trace_buffer): Add argument.
8358 * target.c (update_current_target): Update.
8359 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8366 (target_set_disconnected_tracing): Add argument.
8367 * target.c (update_current_target): Update.
8368 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target.h (struct target_ops)
8373 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8374 (target_get_min_fast_tracepoint_insn_len): Add argument.
8375 * target.c (update_current_target): Update.
8376 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8383 (target_get_raw_trace_data): Add argument.
8384 * target.c (update_current_target): Update.
8385 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8391 (target_upload_trace_state_variables): Add argument.
8392 * target.c (update_current_target): Update.
8393 * remote.c (remote_upload_trace_state_variables): Add 'self'
8395 (remote_start_remote): Update.
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8399 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8401 (target_upload_tracepoints): Add argument.
8402 * target.c (update_current_target): Update.
8403 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8404 (remote_start_remote): Update.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8409 (target_save_trace_data): Add argument.
8410 * target.c (update_current_target): Update.
8411 * remote.c (remote_save_trace_data): Add 'self' argument.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8417 * target.h (struct target_ops)
8418 <to_get_trace_state_variable_value>: Add argument.
8419 (target_get_trace_state_variable_value): Add argument.
8420 * target.c (update_current_target): Update.
8421 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8423 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8425 2014-02-19 Tom Tromey <tromey@redhat.com>
8427 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8428 * target.h (struct target_ops) <to_trace_find>: Add argument.
8429 (target_trace_find): Add argument.
8430 * target.c (update_current_target): Update.
8431 * remote.c (remote_trace_find): Add 'self' argument.
8432 * ctf.c (ctf_trace_find): Add 'self' argument.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8437 (target_trace_stop): Add argument.
8438 * target.c (update_current_target): Update.
8439 * remote.c (remote_trace_stop): Add 'self' argument.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8444 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8446 (target_get_tracepoint_status): Add argument.
8447 * target.c (update_current_target): Update.
8448 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8453 * target.h (struct target_ops) <to_get_trace_status>: Add
8455 (target_get_trace_status): Add argument.
8456 * target.c (update_current_target): Update.
8457 * remote.c (remote_get_trace_status): Add 'self' argument.
8458 (remote_start_remote, remote_can_download_tracepoint): Update.
8459 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target.h (struct target_ops) <to_trace_start>: Add argument.
8464 (target_trace_start): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_trace_start): Add 'self' argument.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8472 (target_trace_set_readonly_regions): Add argument.
8473 * target.c (update_current_target): Update.
8474 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8481 (target_disable_tracepoint): Add argument.
8482 * target.c (update_current_target): Update.
8483 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8489 (target_enable_tracepoint): Add argument.
8490 * target.c (update_current_target): Update.
8491 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8495 * target.h (struct target_ops) <to_download_trace_state_variable>:
8497 (target_download_trace_state_variable): Add argument.
8498 * target.c (update_current_target): Update.
8499 * remote.c (remote_download_trace_state_variable): Add 'self'
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8506 (target_can_download_tracepoint): Add argument.
8507 * target.c (update_current_target): Update.
8508 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target.h (struct target_ops) <to_download_tracepoint>: Add
8514 (target_download_tracepoint): Add argument.
8515 * target.c (update_current_target): Update.
8516 * remote.c (remote_download_tracepoint): Add 'self' argument.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target.h (struct target_ops) <to_trace_init>: Add argument.
8521 (target_trace_init): Add argument.
8522 * target.c (update_current_target): Update.
8523 * remote.c (remote_trace_init): Add 'self' argument.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8528 * target.c (target_fileio_readlink): Add argument.
8529 * remote.c (remote_hostio_readlink): Add 'self' argument.
8530 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8535 * target.c (target_fileio_unlink): Add argument.
8536 * remote.c (remote_hostio_unlink): Add 'self' argument.
8537 (remote_file_delete): Update.
8538 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8543 * target.c (target_fileio_close): Add argument.
8544 * remote.c (remote_hostio_close): Add 'self' argument.
8545 (remote_hostio_close_cleanup): Update.
8546 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8548 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8553 * target.c (target_fileio_pread): Add argument.
8554 * remote.c (remote_hostio_pread): Add 'self' argument.
8555 (remote_bfd_iovec_pread, remote_file_get): Update.
8556 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8561 * target.c (target_fileio_pwrite): Add argument.
8562 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8563 (remote_file_put): Update.
8564 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8569 * target.c (target_fileio_open): Add argument.
8570 * remote.c (remote_hostio_open): Add 'self' argument.
8571 (remote_bfd_iovec_open): Add 'self' argument.
8572 (remote_file_put): Add 'self' argument.
8573 (remote_file_get): Add 'self' argument.
8574 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8580 (target_can_run_breakpoint_commands): Add argument.
8581 * target.c (update_current_target): Update.
8582 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8584 (remote_insert_breakpoint): Add 'self' argument.
8585 (remote_insert_hw_breakpoint): Add 'self' argument.
8586 (remote_can_run_breakpoint_commands): Add 'self' argument.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target.h (struct target_ops)
8591 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8592 (target_supports_evaluation_of_breakpoint_conditions): Add
8594 * target.c (update_current_target): Update.
8595 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8597 (remote_insert_breakpoint): Add 'self' argument.
8598 (remote_insert_hw_breakpoint): Add 'self' argument.
8599 (remote_supports_cond_breakpoints): Add 'self' argument.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8605 (target_supports_string_tracing): Add argument.
8606 * target.c (update_current_target): Update.
8607 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target.h (struct target_ops)
8612 <to_supports_disable_randomization>: Add argument.
8613 * target.c (find_default_supports_disable_randomization): Add
8615 (target_supports_disable_randomization): Add argument.
8616 (find_default_supports_disable_randomization): Add 'self'
8618 * remote.c (extended_remote_supports_disable_randomization): Add
8620 (remote_supports_disable_randomization): Add 'self' argument.
8621 (extended_remote_create_inferior): Update.
8622 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target.h (struct target_ops)
8628 <to_supports_enable_disable_tracepoint>: Add argument.
8629 (target_supports_enable_disable_tracepoint): Add argument.
8630 * target.c (update_current_target): Update.
8631 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * target.h (struct target_ops) <to_supports_multi_process>: Add
8638 (target_supports_multi_process): Add argument.
8639 * target.c (update_current_target): Update.
8640 * remote.c (remote_supports_multi_process): Add 'self' argument.
8641 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8643 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target.h (struct target_ops) <to_execution_direction>: Add
8650 (target_execution_direction): Add argument.
8651 * target.c (default_execution_direction): Add 'self' argument.
8652 * record-full.c (record_full_execution_direction): Add 'self'
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8659 (target_can_execute_reverse): Add argument.
8660 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8661 * record-full.c (record_full_can_execute_reverse): Add 'self'
8663 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8669 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8671 (target_get_ada_task_ptid): Add argument.
8672 * target.c (update_current_target): Update.
8673 (default_get_ada_task_ptid): Add 'self' argument.
8674 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8675 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8676 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8678 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8680 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8682 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8684 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8685 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8688 2014-02-19 Tom Tromey <tromey@redhat.com>
8690 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8691 (target_goto_bookmark): Add argument.
8692 * target.c (dummy_goto_bookmark): Add 'self' argument.
8693 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8697 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8698 (target_get_bookmark): Add argument.
8699 * target.c (dummy_get_bookmark): Add 'self' argument.
8700 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8706 (target_make_corefile_notes): Add argument.
8707 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8708 * procfs.c (procfs_make_note_section): Add 'self' argument.
8709 (procfs_make_note_section): Add 'self' argument.
8710 (procfs_make_note_section): Add 'self' argument.
8711 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8713 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8714 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8715 * exec.c (exec_make_note_section): Add 'self' argument.
8716 (exec_make_note_section): Add 'self' argument.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target.h (struct target_ops) <to_find_memory_regions>: Add
8722 (target_find_memory_regions): Add argument.
8723 * target.c (dummy_find_memory_regions): Add 'self' argument.
8724 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8725 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8726 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8727 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8728 * exec. (exec_do_find_memory_regions): New global.
8729 (exec_set_find_memory_regions): Rewrite.
8730 (exec_find_memory_regions): New function.
8731 (init_exec_ops): Use exec_find_memory_regions.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target.h (struct target_ops) <to_supports_non_stop>: Add
8737 * target.c (find_default_supports_non_stop): Add argument.
8738 (target_supports_non_stop): Add argument.
8739 (find_default_supports_non_stop): Add 'self' argument.
8740 * remote.c (remote_supports_non_stop): Add 'self' argument.
8741 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target.h (struct target_ops) <to_log_command>: Add argument.
8746 (target_log_command): Add argument.
8747 * serial.h (serial_log_command): Add 'self' argument.
8748 * serial.c (serial_log_command): Add 'self' argument.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8753 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8755 (target_pid_to_exec_file): Add argument.
8756 * target.c (debug_to_pid_to_exec_file): Add argument.
8757 (update_current_target): Update.
8758 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8759 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8760 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8761 (linux_handle_extended_wait): Update.
8762 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8763 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8764 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8765 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target.h (struct target_ops) <to_rcmd>: Add argument.
8770 (target_rcmd): Add argument.
8771 * target.c (debug_to_rcmd): Add argument.
8772 (update_current_target, do_monitor_command): Update.
8773 * remote.c (remote_rcmd): Add 'self' argument.
8774 * monitor.c (monitor_rcmd): Add 'self' argument.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * windows-nat.c (windows_stop): Add 'self' argument.
8779 * target.h (struct target_ops) <to_stop>: Add argument.
8780 * target.c (target_stop): Add argument.
8781 (debug_to_stop): Add argument.
8782 (update_current_target): Update.
8783 * remote.c (remote_stop): Add 'self' argument.
8784 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8785 (gdbsim_cntrl_c): Update.
8786 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8787 * procfs.c (procfs_stop): Add 'self' argument.
8788 * nto-procfs.c (procfs_stop): Add 'self' argument.
8789 * monitor.c (monitor_stop): Add 'self' argument.
8790 (monitor_open): Update.
8791 * linux-nat.c (linux_nat_stop): Add argument.
8792 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8793 * gnu-nat.c (gnu_stop): Add 'self' argument.
8794 * darwin-nat.c (darwin_stop): Add 'self' argument.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_thread_name>: Add argument.
8799 * target.c (target_thread_name): Add argument.
8800 (update_current_target): Update.
8801 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target.h (struct target_ops) <to_extra_thread_info>: Add
8807 (target_extra_thread_info): Add argument.
8808 * target.c (update_current_target): Update.
8809 * remote.c (remote_threads_extra_info): Add 'self' argument.
8810 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8812 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8813 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8814 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8816 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8818 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8820 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target.h (struct target_ops) <to_program_signals>: Add argument.
8826 * target.c (target_program_signals): Add argument.
8827 * remote.c (remote_program_signals): Add 'self' argument.
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8831 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8832 * target.c (target_pass_signals): Add argument.
8833 * remote.c (remote_pass_signals): Add 'self' argument.
8834 (remote_start_remote): Update.
8835 * procfs.c (procfs_pass_signals): Add 'self' argument.
8836 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8837 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8838 (linux_nat_create_inferior, linux_nat_attach): Update.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * windows-nat.c (windows_can_run): Add 'self' argument.
8843 * target.h (struct target_ops) <to_can_run>: Add argument.
8844 (target_can_run): Add argument.
8845 * target.c (debug_to_can_run): Add argument.
8846 (update_current_target): Update.
8847 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8848 * inf-child.c (inf_child_can_run): Add 'self' argument.
8849 * go32-nat.c (go32_can_run): Add 'self' argument.
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target.h (struct target_ops) <to_has_exited>: Add argument.
8854 (target_has_exited): Add argument.
8855 * target.c (debug_to_has_exited): Add argument.
8856 (update_current_target): Update.
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8862 (target_set_syscall_catchpoint): Add argument.
8863 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8865 * target.c (update_current_target): Update.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8871 (target_remove_exec_catchpoint): Add argument.
8872 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8873 (update_current_target): Update.
8874 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8881 (target_insert_exec_catchpoint): Add argument.
8882 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8883 (update_current_target): Update.
8884 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8891 (target_remove_vfork_catchpoint): Add argument.
8892 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8893 (update_current_target): Update.
8894 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8901 (target_insert_vfork_catchpoint): Add argument.
8902 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8903 (update_current_target): Update.
8904 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8911 (target_remove_fork_catchpoint): Add argument.
8912 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8913 (update_current_target): Update.
8914 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8921 (target_insert_fork_catchpoint): Add argument.
8922 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8923 (update_current_target): Update.
8924 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8931 (target_post_startup_inferior): Add argument.
8932 * target.c (debug_to_post_startup_inferior): Add argument.
8933 (update_current_target): Update.
8934 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8936 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8938 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8940 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8942 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8944 (super_post_startup_inferior): Likewise.
8945 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8947 (super_post_startup_inferior): Likewise.
8948 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8949 Add 'self' argument.
8950 (super_post_startup_inferior): Likewise.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target.h (struct target_ops) <to_load>: Add argument.
8955 * target.c (target_load): Add argument.
8956 (debug_to_load): Add argument.
8957 (update_current_target): Update.
8958 * remote.c (remote_load): Add 'self' argument.
8959 * remote-sim.c (gdbsim_load): Add 'self' argument.
8960 * remote-mips.c (mips_load): Add 'self' argument.
8961 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8962 * monitor.c (monitor_load): Add 'self' argument.
8963 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8968 (target_terminal_info): Add argument.
8969 * target.c (debug_to_terminal_info): Add argument.
8970 (default_terminal_info): Likewise.
8971 * inflow.c (child_terminal_info): Add 'self' argument.
8972 * inferior.h (child_terminal_info): Add 'self' argument.
8973 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8979 (target_terminal_save_ours): Add argument.
8980 * target.c (debug_to_terminal_save_ours): Add argument.
8981 (update_current_target): Update.
8982 * inflow.c (terminal_save_ours): Add 'self' argument.
8983 * inferior.h (terminal_save_ours): Add 'self' argument.
8985 2014-02-19 Tom Tromey <tromey@redhat.com>
8987 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8988 (target_terminal_ours): Add argument.
8989 * target.c (debug_to_terminal_ours): Add argument.
8990 (update_current_target): Update.
8991 * remote.c (remote_terminal_ours): Add 'self' argument.
8992 (remote_close): Update.
8993 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8994 * inflow.c (terminal_ours): Add 'self' argument.
8995 * inferior.h (terminal_ours): Add 'self' argument.
8996 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8998 2014-02-19 Pedro Alves <palves@redhat.com>
8999 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9003 (target_terminal_ours_for_output): Add argument.
9004 * target.c (debug_to_terminal_ours_for_output): Add argument.
9005 (update_current_target): Update.
9006 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9007 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9008 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9012 * target.h (struct target_ops) <to_terminal_inferior>: Add
9014 * target.c (target_terminal_inferior): Add argument.
9015 (update_current_target): Update.
9016 * remote.c (remote_terminal_inferior): Add 'self' argument.
9017 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9018 * inflow.c (terminal_inferior): Add 'self' argument.
9019 * inferior.h (terminal_inferior): Add 'self' argument.
9020 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9021 (go32_terminal_inferior): Add 'self' argument.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9026 (target_terminal_init): Add argument.
9027 * target.c (debug_to_terminal_init): Add argument.
9028 (update_current_target): Update.
9029 * inflow.c (terminal_init_inferior): Add 'self' argument.
9030 * inferior.h (terminal_init_inferior): Add 'self' argument.
9031 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9032 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9036 * target.h (struct target_ops)
9037 <to_can_accel_watchpoint_condition>: Add argument.
9038 (target_can_accel_watchpoint_condition): Add argument.
9039 * target.c (debug_to_can_accel_watchpoint_condition): Add
9041 (update_current_target): Update.
9042 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9049 (target_region_ok_for_hw_watchpoint): Add argument.
9050 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9051 (default_region_ok_for_hw_watchpoint): Add argument.
9052 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9053 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9055 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9057 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9059 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9061 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9063 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9065 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9066 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9068 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9069 Add 'self' argument.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9075 (target_insert_watchpoint): Add argument.
9076 * target.c (debug_to_insert_watchpoint): Add argument.
9077 (update_current_target): Update.
9078 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9079 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9080 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9081 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9082 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9083 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9085 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9086 (procfs_insert_hw_watchpoint): Add 'self' argument.
9087 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9089 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9091 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9093 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9094 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9096 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9103 (target_remove_watchpoint): Add argument.
9104 * target.c (debug_to_remove_watchpoint): Add argument.
9105 (update_current_target): Update.
9106 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9107 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9108 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9109 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9110 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9111 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9113 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9114 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9116 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9118 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9120 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9121 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9123 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9130 (target_remove_hw_breakpoint): Add argument.
9131 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9132 (update_current_target): Update.
9133 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9134 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9136 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9137 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9139 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9144 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9146 (target_insert_hw_breakpoint): Add argument.
9147 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9148 (update_current_target): Update.
9149 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9150 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9152 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9153 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9154 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9156 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9163 (target_can_use_hardware_watchpoint): Add argument.
9164 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9165 (update_current_target): Update.
9166 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9168 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9170 * remote.c (remote_check_watch_resources): Add 'self' argument.
9171 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9172 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9174 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9175 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9177 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9179 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9181 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9183 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9185 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9187 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9188 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9190 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target.h (struct target_ops) <to_post_attach>: Add argument.
9196 (target_post_attach): Add argument.
9197 * target.c (debug_to_post_attach): Add argument.
9198 (update_current_target): Update.
9199 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9200 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9201 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9202 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9203 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * windows-nat.c (windows_close): Add 'self' argument.
9208 * tracepoint.c (tfile_close): Add 'self' argument.
9209 * target.h (struct target_ops) <to_close>: Add argument.
9210 * target.c (target_close): Add argument.
9211 (update_current_target): Update.
9212 * remote.c (remote_close): Add 'self' argument.
9213 * remote-sim.c (gdbsim_close): Add 'self' argument.
9214 * remote-mips.c (mips_close): Add 'self' argument.
9215 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9216 * record-full.c (record_full_close): Add 'self' argument.
9217 * record-btrace.c (record_btrace_close): Add 'self' argument.
9218 * monitor.h (monitor_close): Add 'self' argument.
9219 * monitor.c (monitor_close): Add 'self' argument.
9220 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9221 * linux-nat.c (linux_nat_close): Add argument.
9222 * go32-nat.c (go32_close): Add 'self' argument.
9223 * exec.c (exec_close_1): Add 'self' argument.
9224 * ctf.c (ctf_close): Add 'self' argument.
9225 * corelow.c (core_close): Add 'self' argument.
9226 (core_close_cleanup): Update.
9227 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9228 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * remote.c (remote_load): New function.
9233 (init_remote_ops): Use it.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9239 * common/linux-btrace.h (linux_supports_btrace): Update.
9240 * remote.c (remote_supports_btrace): Add "self" argument.
9241 * target-delegates.c: Rebuild.
9242 * target.c (target_supports_btrace): Remove.
9243 * target.h (struct target_ops) <to_supports_btrace>: Add
9244 target_ops argument.
9245 (target_supports_btrace): New define.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * record-full.c (record_full_beneath_to_resume_ops)
9250 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9251 (record_full_beneath_to_wait)
9252 (record_full_beneath_to_store_registers_ops)
9253 (record_full_beneath_to_store_registers)
9254 (record_full_beneath_to_xfer_partial_ops)
9255 (record_full_beneath_to_xfer_partial)
9256 (record_full_beneath_to_insert_breakpoint_ops)
9257 (record_full_beneath_to_insert_breakpoint)
9258 (record_full_beneath_to_remove_breakpoint_ops)
9259 (record_full_beneath_to_remove_breakpoint)
9260 (record_full_beneath_to_stopped_by_watchpoint)
9261 (record_full_beneath_to_stopped_data_address)
9262 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9263 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9264 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9265 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9266 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9267 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9268 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9269 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9270 (record_full_resume, record_full_wait_1)
9271 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9272 (record_full_store_registers, record_full_xfer_partial)
9273 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9274 (record_full_async, record_full_core_xfer_partial): Use target
9276 * target-delegates.c: Rebuild.
9277 * target.c (current_xfer_partial): Remove.
9278 (update_current_target): Do not INHERIT or de_fault
9279 to_insert_breakpoint, to_remove_breakpoint,
9280 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9281 to_is_async_p, to_async. Do not set to_xfer_partial field.
9282 (default_xfer_partial): Simplify.
9283 (current_xfer_partial): Remove.
9284 (target_wait, target_resume): Simplify.
9285 (find_default_can_async_p, find_default_is_async_p): Update.
9286 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9287 to_xfer_partial, to_stopped_by_watchpoint,
9288 to_stopped_data_address.
9289 (target_store_registers): Simplify.
9290 (forward_target_remove_breakpoint)
9291 (forward_target_insert_breakpoint): Remove.
9292 (target_remove_breakpoint, target_insert_breakpoint)
9293 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9294 * target.h (struct target_ops) <to_resume, to_wait,
9295 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9296 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9297 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9299 (forward_target_remove_breakpoint)
9300 (forward_target_insert_breakpoint): Remove.
9301 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9303 (record_btrace_insert_breakpoint): Delegate directly.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target-delegates.c: New file.
9309 * target.c: Include target-delegates.c.
9310 (init_dummy_target): Call install_dummy_methods.
9311 (complete_target_initialization): Call install_delegators.
9312 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9313 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9314 * make-target-delegates: New file.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * record.c (find_record_target): Use find_target_at.
9319 * target.c (find_target_at): New function.
9320 * target.h (find_target_at): Declare.
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9324 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9326 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9328 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9329 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9331 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9333 * linux-nat.c (save_sigtrap): Update.
9334 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9335 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9336 (linux_nat_close): Update.
9337 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9339 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9341 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9342 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9343 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9344 (tmp_to_async): Add 'ops' argument.
9345 (record_full_stopped_by_watchpoint, record_full_async)
9346 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9348 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9349 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9350 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9351 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9352 (remote_is_async_p, remote_async): Add 'ops' argument.
9353 (remote_stopped_data_address): Update.
9354 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9355 * target.c (update_current_target)
9356 (find_default_can_async_p, find_default_is_async_p): Update.
9357 (init_dummy_target): Update.
9358 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9359 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9360 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9361 (target_can_async_p, target_is_async_p, target_async)
9362 (target_stopped_by_watchpoint): Update.
9364 2014-02-19 Yao Qi <yao@codesourcery.com>
9367 * gdbarch.sh: Remove startup_gdbarch.
9368 * gdbarch.c: Regenerated.
9369 * gdbarch.h: Likewise.
9371 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9373 * rl78-tdep.c (rl78_g10_register_name): New function.
9374 (rl78_return_value): Add g10 support.
9375 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9378 2014-02-17 Doug Evans <xdje42@gmail.com>
9380 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9381 (SUBDIR_GUILE_SRCS): Ditto.
9382 (scm-gsmob.o): Ditto.
9384 2014-02-17 Yao Qi <yao@codesourcery.com>
9386 * gnu-nat.c (ILL_RPC): Declare defined function.
9388 2014-02-17 Yao Qi <yao@codesourcery.com>
9390 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9391 mach_msg_type_number_t.
9392 (gnu_write_inferior): Likewise.
9394 2014-02-17 Yao Qi <yao@codesourcery.com>
9396 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9398 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9399 (inf_validate_procs, inf_signal): Likewise.
9400 (S_exception_raise_request): Likewise.
9401 (do_mach_notify_dead_name): Likewise.
9402 (steal_exc_port): Likewise.
9403 (gnu_read_inferior): Change 'copy_count''s type to
9404 mach_msg_type_number_t.
9405 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9408 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9410 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9411 flag. Adjust all users; in particular...
9412 (gnu_wait): ..., don't decrement its value in here...
9413 (gnu_create_inferior): ..., and instead set the flag in here,
9414 around the startup_inferior call, and call that one with
9415 START_INFERIOR_TRAPS_EXPECTED.
9417 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9418 (ILL_RPC): ... new macro.
9419 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9420 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9421 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9422 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9423 functions with ILL_RPC macro.
9424 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9425 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9426 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9427 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9428 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9429 (S_proc_getlogin_reply, S_proc_getsid_reply)
9430 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9431 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9432 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9433 (S_proc_getnports_reply, S_proc_is_important_reply)
9434 (S_proc_get_code_reply): New stub functions, generated with
9437 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9438 collected the type check structures.
9440 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9442 2014-02-14 Doug Evans <dje@google.com>
9444 * target.c (target_write_partial): Fix result type.
9446 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9448 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9449 the proper offsets to access fpregset_t.
9451 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9453 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9454 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9455 * h8300-tdep.c (setmachinelist): Remove global.
9456 * hppa-tdep.c (hppa_sigtramp): Remove global.
9457 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9458 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9459 * ravenscar-thread.c (update_target_observer): Remove global.
9460 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9462 2014-02-12 Tom Tromey <tromey@redhat.com>
9464 * common/rsp-low.c: Update comments.
9465 * common/rsp-low.h: Update comments.
9467 2014-02-12 Tom Tromey <tromey@redhat.com>
9469 * common/rsp-low.c (convert_ascii_to_int): Remove.
9470 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9472 2014-02-12 Tom Tromey <tromey@redhat.com>
9474 * common/rsp-low.h (unhexify): Don't declare.
9475 * common/rsp-low.c (unhexify): Remove.
9477 2014-02-12 Tom Tromey <tromey@redhat.com>
9479 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9480 * common/rsp-low.c (convert_int_to_ascii): Remove.
9482 2014-02-12 Tom Tromey <tromey@redhat.com>
9484 * common/rsp-low.h (hexify): Don't declare.
9485 * common/rsp-low.c (hexify): Remove.
9487 2014-02-12 Tom Tromey <tromey@redhat.com>
9489 * common/rsp-low.c (hexify): Never take strlen of argument.
9491 2014-02-12 Tom Tromey <tromey@redhat.com>
9493 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9494 * remote.c (extended_remote_run, remote_rcmd)
9495 (remote_download_trace_state_variable, remote_save_trace_data)
9496 (remote_set_trace_notes): Update.
9497 * tracepoint.c (encode_source_string, tfile_write_status)
9498 (tfile_write_uploaded_tsv): Update.
9500 2014-02-12 Tom Tromey <tromey@redhat.com>
9502 * tracepoint.c: Include rsp-low.h.
9503 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9504 * remote.c: Include rsp-low.h.
9505 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9506 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9507 (remote_unescape_input): Move to common/rsp-low.c.
9508 * common/rsp-low.h: New file.
9509 * common/rsp-low.c: New file.
9510 * Makefile.in (SFILES): Add common/rsp-low.c.
9511 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9512 (COMMON_OBS): Add rsp-low.o.
9513 (rsp-low.o): New target.
9515 2014-02-12 Tom Tromey <tromey@redhat.com>
9517 * utils.h: Include print-utils.h.
9518 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9519 (int_string, core_addr_to_string, core_addr_to_string_nz)
9520 (hex_string, hex_string_custom): Don't declare.
9521 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9522 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9523 (hex_string_custom, int_string, core_addr_to_string)
9524 (core_addr_to_string_nz, host_address_to_string): Move to
9525 common/print-utils.c.
9526 * common/print-utils.h: New file.
9527 * common/print-utils.c: New file
9528 * Makefile.in (SFILES): Add common/print-utils.c.
9529 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9530 (COMMON_OBS): Add print-utils.o.
9531 (print-utils.o): New target.
9533 2014-02-12 Tom Tromey <tromey@redhat.com>
9535 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9537 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9539 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9541 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9543 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9544 if a PT_IO ptrace request returns sucessfully but indicates that 0
9545 bytes were transferred.
9547 2014-02-12 Pedro Alves <palves@redhat.com>
9548 Kevin Buettner <kevinb@redhat.com>
9550 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9551 TYPE_INSTANCE_FLAG_CODE_SPACE.
9553 2014-02-12 Pedro Alves <palves@redhat.com>
9555 * h8300-tdep.c (pseudo_from_raw_register)
9556 (raw_from_pseudo_register): New functions.
9557 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9560 2014-02-12 Pedro Alves <palves@redhat.com>
9562 * h8300-tdep.c (h8300_register_sim_regno): New function.
9563 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9564 gdbarch_register_sim_regno hook.
9566 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9568 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9570 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9572 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9574 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9576 * obsd-tdep.h (obsd_init_abi): New prototype.
9577 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9578 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9579 (obsd_init_abi): New functions.
9580 * i386obsd-tdep.c: Include "obsd-tdep.h".
9581 (i386obsd_init_abi): Call obsd_init_abi.
9582 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9583 (amd64obsd_init_abi): Call obsd_init_abi.
9584 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9585 obsd-tdep.c to gdb_target_obs.
9587 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9589 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9590 double float arguments to 16-byte in the argument slots.
9592 2014-02-11 Doug Evans <xdje42@gmail.com>
9594 * configure.ac: Don't crash if pkg-config is not found and guile
9595 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9597 * configure: Regenerate.
9599 2014-02-11 Yao Qi <yao@codesourcery.com>
9601 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9602 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9603 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9604 * gnu-nat.c (gnu_xfer_memory): Likewise.
9605 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9606 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9607 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9608 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9610 2014-02-11 Yao Qi <yao@codesourcery.com>
9612 * target.h (enum target_xfer_error): Rename to ...
9613 (enum target_xfer_status): ... it. New. All users updated.
9614 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9616 (TARGET_XFER_STATUS_ERROR_P): New macro.
9617 (target_xfer_error_to_string): Remove declaration.
9618 (target_xfer_status_to_string): Declare.
9619 (target_xfer_partial_ftype): Adjust it.
9620 (struct target_ops) <to_xfer_partial>: Return
9621 target_xfer_status. Add argument xfered_len. Update
9623 * target.c (target_xfer_error_to_string): Rename to ...
9624 (target_xfer_status_to_string): ... it. New. All callers
9626 (target_read_live_memory): Likewise. Call target_xfer_partial
9627 instead of target_read.
9628 (memory_xfer_live_readonly_partial): Return
9629 target_xfer_status. Add argument xfered_len.
9630 (raw_memory_xfer_partial): Likewise.
9631 (memory_xfer_partial_1): Likewise.
9632 (memory_xfer_partial): Likewise.
9633 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9634 properly. Update debug message.
9635 (default_xfer_partial, current_xfer_partial): Likewise.
9636 (target_write_partial): Likewise.
9637 (target_read_partial): Likewise. All callers updated.
9638 (read_whatever_is_readable): Likewise.
9639 (target_write_with_progress): Likewise.
9640 (target_read_alloc_1): Likewise.
9642 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9643 * auxv.c (procfs_xfer_auxv): Likewise.
9644 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9645 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9646 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9647 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9648 * corefile.c (read_memory): Adjust.
9649 * corelow.c (core_xfer_partial): Likewise.
9650 * ctf.c (ctf_xfer_partial): Likewise.
9651 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9653 (darwin_xfer_partial): Likewise.
9654 * exec.c (section_table_xfer_memory_partial): Likewise. All
9656 (exec_xfer_partial): Likewise.
9657 * exec.h (section_table_xfer_memory_partial): Update
9659 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9661 (gnu_xfer_partial): Likewise.
9662 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9663 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9664 (ia64_hpux_xfer_solib_got): Likewise.
9665 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9666 type of 'partial_len' to ULONGEST.
9667 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9668 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9669 (linux_nat_xfer_partial): Likewise.
9670 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9671 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9672 * monitor.c (monitor_xfer_memory): Likewise.
9673 (monitor_xfer_partial): Likewise.
9674 * procfs.c (procfs_xfer_partial): Likewise.
9675 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9676 * record-full.c (record_full_xfer_partial): Likewise.
9677 (record_full_core_xfer_partial): Likewise.
9678 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9679 (gdbsim_xfer_partial): Likewise.
9680 * remote.c (remote_write_bytes_aux): Likewise. All callers
9682 (remote_write_bytes, remote_read_bytes): Likewise. All
9684 (remote_flash_erase): Likewise. All callers updated.
9685 (remote_write_qxfer): Likewise. All callers updated.
9686 (remote_read_qxfer): Likewise. All callers updated.
9687 (remote_xfer_partial): Likewise.
9688 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9689 (rs6000_xfer_shared_libraries): Likewise.
9690 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9691 (sol_thread_xfer_partial): Likewise.
9692 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9693 (sparc_xfer_partial): Likewise.
9694 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9696 (spu_xfer_partial): Likewise.
9697 * spu-multiarch.c (spu_xfer_partial): Likewise.
9698 * tracepoint.c (tfile_xfer_partial): Likewise.
9699 * windows-nat.c (windows_xfer_memory): Likewise.
9700 (windows_xfer_shared_libraries): Likewise.
9701 (windows_xfer_partial): Likewise.
9702 * valprint.c: Replace 'target_xfer_error' with
9703 'target_xfer_status' in comments.
9705 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9707 Checked in by Joel Brobecker <brobecker@adacore.com>.
9708 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9710 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9712 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9713 function parameters.
9715 2014-02-10 Will Newton <will.newton@linaro.org>
9717 * elfread.c (elf_rel_plt_read): Look for a .got section if
9718 looking up .got.plt fails.
9719 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9720 on address passed to elf_gnu_ifunc_record_cache.
9721 (elf_gnu_ifunc_resolve_addr): Likewise.
9722 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9724 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9726 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9727 (X_RETTURN): New macro.
9728 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9730 * sparc64-tdep.c (sparc64_init_abi): Hook
9731 sparc_in_function_epilogue_p.
9733 2014-02-10 Gary Benson <gbenson@redhat.com>
9735 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9736 Rename name_matcher to symbol_matcher.
9738 2014-02-10 Gary Benson <gbenson@redhat.com>
9740 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9741 Use expand_symtabs_file_matcher_ftype and
9742 expand_symtabs_symbol_matcher_ftype.
9744 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9746 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9747 (struct ada_symbol_cache): New.
9748 (ada_free_symbol_cache): Forward declare.
9749 (struct ada_pspace_data): New.
9750 (ada_pspace_data_handle): New static global.
9751 (get_ada_pspace_data, ada_pspace_data_cleanup)
9752 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9753 (cache_space, cache): Delete, now folded inside struct
9755 (ada_get_symbol_cache): New function.
9756 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9758 (_initialize_ada_language): Remove initialization of cache_space.
9759 Move call to observer_attach_inferior_exit up, grouping it
9760 with the other observer registrations inside this function.
9761 Rename command to be more general. Add call to
9762 register_program_space_data_with_cleanup.
9764 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9766 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9767 ada_new_objfile_observer.
9768 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9769 (_initialize_tasks): Update uses of ada_new_objfile_observer
9770 and ada_tasks_normal_stop_observer.
9772 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9774 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9775 returned by the 'Length attribute to integer.
9777 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9779 * ada-lang.c (_initialize_ada_language): Initialize
9780 cache_space obstack.
9782 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9784 * ada-lang.c (HASH_SIZE): New macro.
9785 (struct cache_entry): New type.
9786 (cache_space, cache): New static globals.
9787 (ada_clear_symbol_cache, find_entry): New functions.
9788 (lookup_cached_symbol, cache_symbol): Implement.
9789 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9790 (_initialize_ada_language): Attach ada_new_objfile_observer
9791 and ada_free_objfile_observer.
9793 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9795 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9796 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9797 struct block * parameter.
9798 (ada_lookup_symbol_list_worker): Constify local variable "block".
9799 Remove cast which is no longer necessary.
9801 2014-02-10 Doug Evans <xdje42@gmail.com>
9803 Add Guile as an extension language.
9804 * NEWS: Mention Guile scripting.
9805 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9806 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9807 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9808 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9809 (CLIBS): Add GUILE_LIBS.
9810 (install-guile): New rule.
9811 (guile.o): New rule.
9812 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9813 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9814 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9815 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9816 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9817 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9818 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9819 * configure.ac: New option --with-guile.
9820 * configure: Regenerate.
9821 * config.in: Regenerate.
9822 * auto-load.c: Remove #include "python/python.h". Add #include
9823 "gdb/section-scripts.h".
9824 (source_section_scripts): Handle Guile scripts.
9825 (_initialize_auto_load): Add name of Guile objfile script to
9826 scripts-directory help text.
9827 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9828 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9829 (struct breakpoint): New member scm_bp_object.
9830 * defs.h (enum command_control_type): New value guile_control.
9831 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9833 (show_user): Update comment.
9834 (_initialize_cli_cmds): Update help text for "show user". Update help
9835 text for max-user-call-depth.
9836 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9838 (multi_line_command_p): Add guile_control.
9839 (print_command_lines): Handle guile_control.
9840 (execute_control_command, recurse_read_control_structure): Ditto.
9841 (process_next_line): Recognize "guile" commands.
9842 * disasm.c (gdb_disassemble_info): Make non-static.
9843 * disasm.h: #include "dis-asm.h".
9844 (struct gdbarch): Add forward decl.
9845 (gdb_disassemble_info): Declare.
9846 * extension.c: #include "guile/guile.h".
9847 (extension_languages): Add guile.
9848 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9849 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9850 * gdbtypes.c (get_unsigned_type_max): New function.
9851 (get_signed_type_minmax): New function.
9852 * gdbtypes.h (get_unsigned_type_max): Declare.
9853 (get_signed_type_minmax): Declare.
9854 * guile/README: New file.
9855 * guile/guile-internal.h: New file.
9856 * guile/guile.c: New file.
9857 * guile/guile.h: New file.
9858 * guile/scm-arch.c: New file.
9859 * guile/scm-auto-load.c: New file.
9860 * guile/scm-block.c: New file.
9861 * guile/scm-breakpoint.c: New file.
9862 * guile/scm-disasm.c: New file.
9863 * guile/scm-exception.c: New file.
9864 * guile/scm-frame.c: New file.
9865 * guile/scm-gsmob.c: New file.
9866 * guile/scm-iterator.c: New file.
9867 * guile/scm-lazy-string.c: New file.
9868 * guile/scm-math.c: New file.
9869 * guile/scm-objfile.c: New file.
9870 * guile/scm-ports.c: New file.
9871 * guile/scm-pretty-print.c: New file.
9872 * guile/scm-safe-call.c: New file.
9873 * guile/scm-string.c: New file.
9874 * guile/scm-symbol.c: New file.
9875 * guile/scm-symtab.c: New file.
9876 * guile/scm-type.c: New file.
9877 * guile/scm-utils.c: New file.
9878 * guile/scm-value.c: New file.
9879 * guile/lib/gdb.scm: New file.
9880 * guile/lib/gdb/boot.scm: New file.
9881 * guile/lib/gdb/experimental.scm: New file.
9882 * guile/lib/gdb/init.scm: New file.
9883 * guile/lib/gdb/iterator.scm: New file.
9884 * guile/lib/gdb/printing.scm: New file.
9885 * guile/lib/gdb/types.scm: New file.
9886 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9887 (VPATH): Add $(GUILE_SRCDIR).
9888 (GUILE_DIR): New variable.
9889 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9890 (all): Add stamp-guile dependency.
9891 (stamp-guile): New rule.
9892 (clean-guile, install-guile, uninstall-guile): New rules.
9893 (install-only): Add install-guile dependency.
9894 (uninstall): Add uninstall-guile dependency.
9895 (clean): Add clean-guile dependency.
9897 2014-02-09 Doug Evans <xdje42@gmail.com>
9899 Revert this patch (which I approved, mea culpa).
9901 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9903 * Makefile.in (all-lib): Remove.
9904 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9906 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9908 Fix Python stack corruption.
9909 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9912 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9914 * Makefile.in (all-lib): Remove.
9915 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9917 2014-02-07 Doug Evans <dje@google.com>
9919 * extension-priv.h (extension_language_script_ops): Add comment.
9920 (extension_language_ops): Add comment.
9921 (active_ext_lang_state): Fix typo in comment.
9923 2014-02-07 Pedro Alves <palves@redhat.com>
9925 PR breakpoints/16292
9926 * infrun.c (handle_signal_stop) <signal arrives while stepping
9927 over a breakpoint>: Switch back to the stepping thread.
9929 2014-02-07 Yao Qi <yao@codesourcery.com>
9931 * target.c (target_xfer_partial): Return zero if LEN is zero.
9933 2014-02-07 Yao Qi <yao@codesourcery.com>
9935 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9936 (ld_so_xfer_auxv): Likewise.
9937 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9938 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9939 * corelow.c (core_xfer_partial): Likewise.
9940 * ctf.c (ctf_xfer_partial): Likewise.
9941 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9942 (darwin_xfer_partial): Likewise.
9943 * exec.c (exec_xfer_partial): Likewise.
9944 * gnu-nat.c (gnu_xfer_partial): Likewise.
9945 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9946 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9947 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9948 * linux-nat.c (linux_xfer_siginfo): Likewise.
9949 (linux_proc_xfer_spu): Likewise.
9950 * procfs.c (procfs_xfer_partial): Likewise.
9951 * record-full.c (record_full_xfer_partial): Likewise.
9952 (record_full_core_xfer_partial): Likewise.
9953 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9954 * remote.c (remote_write_qxfer): Likewise.
9955 (remote_write_qxfer, remote_read_qxfer): Likewise.
9956 (remote_xfer_partial): Likewise.
9957 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9958 (rs6000_xfer_shared_libraries): Likewise.
9959 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9960 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9961 (spu_xfer_partial): Likewise.
9962 * target.c (memory_xfer_partial_1): Likewise.
9963 * tracepoint.c (tfile_xfer_partial): Likewise.
9964 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9965 (windows_xfer_partial): Likewise.
9967 2014-02-07 Yao Qi <yao@codesourcery.com>
9969 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9971 (core_xfer_shared_libraries_aix): Likewise.
9972 * gdbarch.c, gdbarch.h: Regenerated.
9973 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9974 ULONGEST. Change 'len_avail' type to ULONGEST.
9975 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9976 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9978 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9980 2014-02-07 Yao Qi <yao@codesourcery.com>
9982 * corefile.c (memory_error): Get 'exception' from ERR and pass
9983 'exception' to throw_error.
9985 2014-02-06 Doug Evans <xdje42@gmail.com>
9987 * configure.ac (libpython checking): Remove all but python.o from
9988 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9989 * configure: Regenerate.
9991 * Makefile.in (SFILES): Add extension.c.
9992 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9993 (COMMON_OBS): Add extension.o.
9994 * extension.h: New file.
9995 * extension-priv.h: New file.
9996 * extension.c: New file.
9998 * python/python-internal.h: #include "extension.h".
9999 (gdbpy_auto_load_enabled): Declare.
10000 (gdbpy_apply_val_pretty_printer): Declare.
10001 (gdbpy_apply_frame_filter): Declare.
10002 (gdbpy_preserve_values): Declare.
10003 (gdbpy_breakpoint_cond_says_stop): Declare.
10004 (gdbpy_breakpoint_has_cond): Declare.
10005 (void source_python_script_for_objfile): Delete.
10006 * python/python.c: #include "extension-priv.h".
10007 Delete inclusion of "observer.h".
10008 (extension_language_python): Moved here and renamed from
10009 script_language_python in py-auto-load.c.
10010 Redefined to be of type extension_language_defn.
10011 (python_extension_script_ops): New global.
10012 (python_extension_ops): New global.
10013 (struct python_env): New member previous_active.
10014 (restore_python_env): Call restore_active_ext_lang.
10015 (ensure_python_env): Call set_active_ext_lang.
10016 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10018 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10020 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10022 (gdbpy_eval_from_control_command): Renamed from
10023 eval_python_from_control_command, made static. New arg extlang.
10024 (gdbpy_source_script) Renamed from source_python_script, made static.
10026 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10027 result to int. New arg extlang.
10028 (gdbpy_source_objfile_script): Renamed from
10029 source_python_script_for_objfile, made static. New arg extlang.
10030 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10031 static. New args extlang, extlang_printers. Change result type to
10033 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10034 static. New arg extlang. Rename arg printers to extlang_printers
10035 and change type to ext_lang_type_printers *.
10036 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10037 static. Replace argument arg with extlang, extlang_printers.
10038 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10039 (!HAVE_PYTHON, source_python_script): Delete.
10040 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10041 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10042 (!HAVE_PYTHON, start_type_printers): Delete.
10043 (!HAVE_PYTHON, apply_type_printers): Delete.
10044 (!HAVE_PYTHON, free_type_printers): Delete.
10045 (_initialize_python): Delete call to observer_attach_before_prompt.
10046 (finalize_python): Set/restore active extension language.
10047 (gdbpy_finish_initialization) Renamed from
10048 finish_python_initialization, made static. New arg extlang.
10049 (gdbpy_initialized): New function.
10050 * python/python.h: #include "extension.h". Delete #include
10051 "value.h", "mi/mi-cmds.h".
10052 (extension_language_python): Declare.
10053 (GDBPY_AUTO_FILE_NAME): Delete.
10054 (enum py_bt_status): Moved to extension.h and renamed to
10055 ext_lang_bt_status.
10056 (enum frame_filter_flags): Moved to extension.h.
10057 (enum py_frame_args): Moved to extension.h and renamed to
10058 ext_lang_frame_args.
10059 (finish_python_initialization): Delete.
10060 (eval_python_from_control_command): Delete.
10061 (source_python_script): Delete.
10062 (apply_val_pretty_printer): Delete.
10063 (apply_frame_filter): Delete.
10064 (preserve_python_values): Delete.
10065 (gdbpy_script_language_defn): Delete.
10066 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10067 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10069 * auto-load.c: #include "extension.h".
10070 (GDB_AUTO_FILE_NAME): Delete.
10071 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10072 (script_language_gdb): Delete, moved to extension.c and renamed to
10073 extension_language_gdb.
10074 (source_gdb_script_for_objfile): Delete.
10075 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10076 (loaded_script): Change type of language member to
10077 struct extension_language_defn *.
10078 (init_loaded_scripts_info): Initialize
10079 unsupported_script_warning_printed.
10080 (maybe_add_script): Make static. Change type of language arg to
10081 struct extension_language_defn *.
10082 (clear_section_scripts): Reset unsupported_script_warning_printed.
10083 (auto_load_objfile_script_1): Rewrite to use extension language API.
10084 (auto_load_objfile_script): Make public. Remove support-compiled-in
10085 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10086 (source_section_scripts): Rewrite to use extension language API.
10087 (load_auto_scripts_for_objfile): Rewrite to use
10088 auto_load_scripts_for_objfile.
10089 (collect_matching_scripts_data): Change type of language member to
10090 struct extension_language_defn *.
10091 (auto_load_info_scripts): Change type of language arg to
10092 struct extension_language_defn *.
10093 (unsupported_script_warning_print): New function.
10094 (script_not_found_warning_print): Make static.
10095 (_initialize_auto_load): Rewrite construction of scripts-directory
10097 * auto-load.h (struct objfile): Add forward decl.
10098 (struct script_language): Delete.
10099 (struct auto_load_pspace_info): Add forward decl.
10100 (struct extension_language_defn): Add forward decl.
10101 (maybe_add_script): Delete.
10102 (auto_load_objfile_script): Declare.
10103 (script_not_found_warning_print): Delete.
10104 (auto_load_info_scripts): Update prototype.
10105 (auto_load_gdb_scripts_enabled): Declare.
10106 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10107 auto_load_python_scripts_enabled and made public.
10108 (script_language_python): Delete, moved to python.c.
10109 (gdbpy_script_language_defn): Delete.
10110 (info_auto_load_python_scripts): Update to use
10111 extension_language_python.
10113 * breakpoint.c (condition_command): Replace call to
10114 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10115 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10116 with call to breakpoint_ext_lang_cond_says_stop.
10117 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10118 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10119 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10120 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10122 (local_setattro): Print name of extension language with existing
10125 * valprint.c (val_print, value_print): Update to call
10126 apply_ext_lang_val_pretty_printer.
10127 * cp-valprint.c (cp_print_value): Update call to
10128 apply_ext_lang_val_pretty_printer.
10129 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10130 (gdbpy_apply_val_pretty_printer): Renamed from
10131 apply_val_pretty_printer. New arg extlang.
10132 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10134 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10135 extension language API.
10136 * cli/cli-script.c (execute_control_command): Update to call
10137 eval_ext_lang_from_control_command.
10139 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10140 enum ext_lang_bt_status values. Update call to
10141 apply_ext_lang_frame_filter.
10142 (mi_cmd_stack_list_locals): Ditto.
10143 (mi_cmd_stack_list_args): Ditto.
10144 (mi_cmd_stack_list_variables): Ditto.
10145 * mi/mi-main.c: Delete #include "python/python-internal.h".
10146 Add #include "extension.h".
10147 (mi_cmd_list_features): Replace reference to python internal variable
10148 gdb_python_initialized with call to ext_lang_initialized_p.
10150 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10151 Update to use enum ext_lang_frame_args. Update to call
10152 apply_ext_lang_frame_filter.
10153 * python/py-framefilter.c (extract_sym): Update to use enum
10154 ext_lang_bt_status.
10155 (extract_value, py_print_type, py_print_value): Ditto.
10156 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10157 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10158 (py_print_frame): Ditto.
10159 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10160 New arg extlang. Update to use enum ext_lang_bt_status.
10162 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10163 finish_python_initialization. Replace with call to
10164 finish_ext_lang_initialization.
10166 * typeprint.c (do_free_global_table): Update to call
10167 free_ext_lang_type_printers.
10168 (create_global_typedef_table): Update to call
10169 start_ext_lang_type_printers.
10170 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10171 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10172 (type_print_options): Change type of global_printers from "void *"
10173 to "struct ext_lang_type_printers *".
10175 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10176 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10177 (gdbpy_preserve_values): Renamed from preserve_python_values.
10179 (!HAVE_PYTHON, preserve_python_values): Delete.
10181 * utils.c (quit_flag): Delete, moved to extension.c.
10182 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10185 * eval.c: Delete #include "python/python.h".
10186 * main.c: Delete #include "python/python.h".
10188 * defs.h: Update comment.
10190 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10194 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10196 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10199 2014-02-05 Yao Qi <yao@codesourcery.com>
10201 * remote.c (remote_pass_signals): Remove local 'buf' and use
10203 (remote_program_signals): Likewise.
10205 2014-02-05 Yao Qi <yao@codesourcery.com>
10207 * ctf.c: Include "inferior.h" and "gdbthread.h".
10208 (CTF_PID): A new macro.
10209 (ctf_open): Call inferior_appeared and add_thread_silent.
10210 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10211 (ctf_thread_alive): New function.
10212 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10214 2014-02-05 Yao Qi <yao@codesourcery.com>
10218 2013-05-24 Yao Qi <yao@codesourcery.com>
10220 * tracepoint.c (TFILE_PID): Remove.
10221 (tfile_open): Don't add thread and inferior.
10222 (tfile_close): Don't set 'inferior_ptid'. Don't call
10223 exit_inferior_silent.
10224 (tfile_thread_alive): Remove.
10225 (init_tfile_ops): Don't set field 'to_thread_alive' of
10228 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10230 * remote.c (remote_start_remote): Call remote_check_symbols even
10231 if only symbol-file (not file) has been given.
10233 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10235 * gdbarch.sh (skip_entrypoint): New callback.
10236 * gdbarch.c, gdbarch.h: Regenerate.
10237 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10238 * infrun.c (fill_in_stop_func): Likewise.
10239 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10240 (ppc_elfv2_elf_make_msymbol_special): New function.
10241 (ppc_elfv2_skip_entrypoint): Likewise.
10242 (ppc_linux_init_abi): Install them for ELFv2.
10244 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10246 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10247 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10248 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10249 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10250 structures returned in GPRs.
10252 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10254 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10255 offset to the stack parameter list for the ELFv2 ABI.
10257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10259 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10260 set_gdbarch_convert_from_func_ptr_addr and
10261 set_gdbarch_elf_make_msymbol_special for ELFv1.
10262 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10263 function descriptors on ELFv1.
10264 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10265 set up r12 at function entry.
10267 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10269 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10270 (struct gdbarch_tdep): New member elf_abi.
10272 * rs6000-tdep.c: Include "elf/ppc64.h".
10273 (rs6000_gdbarch_init): Detect ELF ABI version.
10275 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10277 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10278 within a register pair holding a DFP 128-bit value on little-endian.
10279 (ppc64_sysv_abi_return_value_base): Likewise.
10280 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10281 (dfp_pseudo_register_write): Likewise.
10283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10285 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10286 offset on little-endian when passing _Decimal32.
10287 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10291 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10292 of the overlapped FP register within the VSX register on little-
10294 (efpr_pseudo_register_write): Likewise.
10296 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10298 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10299 offset on little-endian when passing small structures.
10301 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10303 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10304 (struct ppc64_sysv_argpos): New data structure.
10305 (ppc64_sysv_abi_push_float): Remove.
10306 (ppc64_sysv_abi_push_val): New function.
10307 (ppc64_sysv_abi_push_integer): Likewise.
10308 (ppc64_sysv_abi_push_freg): Likewise.
10309 (ppc64_sysv_abi_push_vreg): Likewise.
10310 (ppc64_sysv_abi_push_param): Likewise.
10311 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10312 (ppc64_sysv_abi_return_value_base): New function.
10313 (ppc64_sysv_abi_return_value): Refactor to use it.
10315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10317 * NEWS: Document new target powerpc64le-*-linux*.
10319 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10321 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10322 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10324 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10325 register set used in ELF core dumps. Add floating-point register set.
10327 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10329 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10330 dwarf2_to_gdb[] table using symbolic constants. Adjust
10331 penultimate entry from number representing the PC register
10332 to symbolic constant representing the MDR register. Add
10333 constant for the PC register to the end of the table.
10335 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10337 * bsd-kvm.c: Include <sys/param.h>
10339 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10341 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10343 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10345 * ada-lang.h (clear_ada_sym_cache): Delete.
10347 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10349 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10351 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10353 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10354 the sigreturn register save area only if the syscall is
10357 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10359 * valops.c (value_slice): Minor reformatting.
10361 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10363 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10365 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10367 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10368 New static globals.
10369 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10370 (ada_ignore_descriptive_types_p): New static global.
10371 (find_parallel_type_by_descriptive_type): Return immediately
10372 if ada_ignore_descriptive_types_p is set.
10373 (_initialize_ada_language): Register new commands "maintenance
10374 set ada", "maintenance show ada", "maintenance set ada
10375 ignore-descriptive-types" and "maintenance show ada
10376 ignore-descriptive-types".
10377 * NEWS: Add entry for new "maint ada set/show
10378 ignore-descriptive-types" commands.
10380 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10382 * record-btrace.c (record_btrace_close): Call btrace_teardown
10385 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10387 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10390 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10392 * ada-typeprint (type_is_full_subrange_of_target_type):
10394 (print_range): Add parameter bounds_prefered_p. If not set,
10395 try printing range types using the name of their base type.
10396 (print_range_type): Add parameter bounds_prefered_p.
10397 Use it in call to print_range.
10398 (print_array_type, ada_print_type): Update calls to print_range
10399 and print_range_type.
10401 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10403 * ada-typeprint.c (print_array_type, print_choices, print_range)
10404 (print_range_bound, print_dynamic_range_bound, print_range_type):
10405 Remove declaration.
10407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10409 * ada-typeprint.c (print_range): Add missing empty line
10410 after local declaration.
10412 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10414 * ada-valprint.c (print_optional_low_bound): Get index_type's
10415 target type for as long as it is a TYPE_CODE_RANGE.
10417 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10419 * procfs.c (procfs_make_note_section): Remove assertion and
10420 associated comment.
10422 2014-01-24 Yao Qi <yao@codesourcery.com>
10424 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10425 * corelow.c (get_core_siginfo): Likewise.
10427 2014-01-24 Yao Qi <yao@codesourcery.com>
10429 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10430 ULONGEST. Don't check 'len' is negative.
10431 (remote_write_bytes): Change type of 'len' to ULONGEST.
10433 2014-01-23 Tom Tromey <tromey@redhat.com>
10436 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10437 Handle exception from frame.block.
10438 (FrameVars.fetch_frame_locals): Likewise.
10440 2014-01-23 Tom Tromey <tromey@redhat.com>
10443 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10444 on a NULL pointer. Move "goto error" to correct place.
10446 2014-01-23 Tom Tromey <tromey@redhat.com>
10449 * python/py-framefilter.c (apply_frame_filter): Call
10450 ensure_python_env after computing gdbarch.
10452 2014-01-23 Yao Qi <yao@codesourcery.com>
10454 * target.c (raw_memory_xfer_partial): Change argument type
10455 from void * to gdb_byte *.
10456 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10458 2014-01-22 Doug Evans <dje@google.com>
10460 New gdbserver option --debug-format=timestamp.
10461 * NEWS: Mention it.
10463 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10465 * syscalls/s390x-linux.xml: New file.
10466 * syscalls/s390-linux.xml: New file.
10467 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10468 (XML_SYSCALL_FILENAME_S390X): Likewise.
10469 (op_svc): New enum value for SVC opcode.
10470 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10471 (s390_linux_get_syscall_number): New function.
10472 (s390_gdbarch_init): Register '*get_syscall_number' and the
10473 syscall xml file name.
10474 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10475 "s390-linux.xml" and "s390x-linux.xml".
10476 * NEWS: Announce new feature.
10478 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10480 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10482 2014-01-22 Pedro Alves <palves@redhat.com>
10484 * xtensa-config.c: Include defs.h.
10486 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10488 * common/common-utils.h: Add "ARI:" comment beside __func__
10491 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10493 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10494 documentation a bit.
10496 2014-01-21 Roland McGrath <mcgrathr@google.com>
10498 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10499 * configure: Regenerate.
10500 * aclocal.m4: Regenerate.
10501 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10502 New substituted variables.
10503 (install-strip): New target.
10504 (INSTALL_SCRIPT): New substituted variable.
10505 (FLAGS_TO_PASS): Add it.
10506 (install-only): Use $(INSTALL_SCRIPT) rather than
10507 $(INSTALL_PROGRAM) for gcore.
10509 2014-01-20 Tom Tromey <tromey@redhat.com>
10511 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10514 2014-01-20 Tom Tromey <tromey@redhat.com>
10516 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10517 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10518 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10519 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10520 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10521 (struct cmd_list_element) <flags>: Remove.
10522 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10523 doc_allocated>: New fields.
10524 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10526 * maint.c (maintenance_do_deprecate): Update.
10527 * top.c (execute_command): Update.
10529 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10531 * xtensa-linux-nat.c: Include asm/ptrace.h.
10533 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10535 * Makefile.in (SFILES): Add d-support.c.
10536 (COMMON_OBS): Add d-support.o.
10537 * d-lang.h (d_parse_symbol): Add comment, now defined in
10539 * d-lang.c (parse_call_convention)
10540 (parse_attributes, parse_function_types)
10541 (parse_function_args, parse_type, parse_identifier)
10542 (call_convention_p, d_parse_symbol): Move functions to ...
10543 * d-support.c: ... New file.
10545 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10547 * d-lang.h (d_parse_symbol): Add declaration.
10548 * d-lang.c (extract_identifiers)
10549 (extract_type_info): Remove functions.
10550 (parse_call_convention, parse_attributes)
10551 (parse_function_types, parse_function_args)
10552 (parse_type, parse_identifier, call_convention_p)
10553 (d_parse_symbol): New functions.
10554 (d_demangle): Use d_parse_symbol to demangle D symbols.
10556 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10558 * d-lang.h (struct builtin_d_type): New data type.
10559 (builtin_d_type): Add declaration.
10560 * d-lang.c (d_language_arch_info, build_d_types)
10561 (builtin_d_type): New functions.
10562 (enum d_primitive_types): New data type.
10563 (d_language_defn): Change c_language_arch_info to
10564 d_language_arch_info.
10565 (d_type_data): New static variable.
10566 (_initialize_d_language): Initialize d_type_data.
10568 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10570 * d-lang.h (d_main_name): Add declaration.
10571 * d-lang.c (d_main_name): New function.
10572 * symtab.c (find_main_name): Add call to d_main_name.
10574 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10576 * d-lang.c (d_language_defn): Change macro_expansion_c to
10577 macro_expansion_no.
10579 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10581 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10583 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10585 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10586 gdb_exception" declaration.
10587 * remote.c (getpkt_or_notif_sane): Likewise.
10589 2014-01-17 Doug Evans <dje@google.com>
10591 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10592 function, contents of dirnames_to_char_ptr_vec_append moved here.
10593 (delim_string_to_char_ptr_vec): New function.
10594 (dirnames_to_char_ptr_vec_append): Rewrite.
10595 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10597 2014-01-17 Doug Evans <dje@google.com>
10599 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10601 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10602 #include "common-utils.h".
10603 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10604 * common/vec.h (VEC_ASSERT_PASS): Update.
10605 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10606 (MACH_CHECK_ERROR): Update.
10608 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10610 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10612 * gdbarch.h: Regenerate.
10614 2014-01-16 Tom Tromey <tromey@redhat.com>
10616 * value.c (struct value) <regnum>: Move earlier.
10618 2014-01-16 Tom Tromey <tromey@redhat.com>
10620 * remote.c (extended_remote_create_inferior): Rename from
10621 extended_remote_create_inferior_1. Add "ops" argument. Remove
10622 old implementation.
10624 2014-01-16 Pedro Alves <palves@redhat.com>
10626 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10627 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10630 2014-01-16 Doug Evans <dje@google.com>
10632 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10636 * btrace.h (btrace_thread_flag): New.
10637 (struct btrace_thread_info) <flags>: New.
10638 * record-btrace.c (record_btrace_resume_thread)
10639 (record_btrace_find_thread_to_move, btrace_step_no_history)
10640 (btrace_step_stopped, record_btrace_start_replaying)
10641 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10642 (record_btrace_find_resume_thread): New.
10643 (record_btrace_resume, record_btrace_wait): Extend.
10644 (record_btrace_can_execute_reverse): New.
10645 (record_btrace_open): Fail in non-stop mode.
10646 (record_btrace_set_replay): Split into this, ...
10647 (record_btrace_stop_replaying): ... this, ...
10648 (record_btrace_clear_histories): ... and this.
10649 (init_record_btrace_ops): Init to_can_execute_reverse.
10650 * NEWS: Announce it.
10652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10654 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10655 (forward_target_decr_pc_after_break)
10656 (target_decr_pc_after_break): New.
10657 * target.c (forward_target_decr_pc_after_break)
10658 (target_decr_pc_after_break): New.
10659 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10660 instead of gdbarch_decr_pc_after_break.
10661 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10662 instead of gdbarch_decr_pc_after_break.
10663 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10664 instead of gdbarch_decr_pc_after_break.
10665 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10666 instead of gdbarch_decr_pc_after_break.
10667 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10668 instead of gdbarch_decr_pc_after_break.
10669 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10670 instead of gdbarch_decr_pc_after_break.
10672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10674 * btrace.c: Include regcache.h.
10675 (btrace_add_pc): New.
10676 (btrace_enable): Call btrace_add_pc.
10677 (btrace_is_empty): New.
10678 * btrace.h (btrace_is_empty): New.
10679 * record-btrace.c (require_btrace, record_btrace_info): Call
10682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10684 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10685 Support delta reads.
10686 (linux_disable_btrace): Change return type.
10687 * common/linux-btrace.h (linux_read_btrace): Change parameters
10688 and return type to allow error reporting. Update users.
10689 (linux_disable_btrace): Change return type. Update users.
10690 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10692 (btrace_error): New.
10693 (btrace_block) <begin>: Comment on BEGIN == 0.
10694 * btrace.c (btrace_compute_ftrace): Start from the end of
10696 (btrace_stitch_trace, btrace_clear_history): New.
10697 (btrace_fetch): Read delta trace, return if replaying.
10698 (btrace_clear): Move clear history code to btrace_clear_history.
10699 (parse_xml_btrace): Throw an error if parsing failed.
10700 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10701 and return type to allow error reporting.
10702 (target_read_btrace): Change parameters and return type to allow
10704 * target.c (target_read_btrace): Update.
10705 * remote.c (remote_read_btrace): Support delta reads. Pass
10707 * NEWS: Announce it.
10709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10711 * record.h (record_btrace_frame_unwind)
10712 (record_btrace_tailcall_frame_unwind): New declarations.
10713 * dwarf2-frame: Include record.h
10714 (dwarf2_frame_cfa): Throw an error for btrace frames.
10715 * record-btrace.c: Include hashtab.h.
10716 (btrace_get_bfun_name): New.
10717 (btrace_call_history): Call btrace_get_bfun_name.
10718 (struct btrace_frame_cache): New.
10720 (bfcache_hash, bfcache_eq, bfcache_new): New.
10721 (btrace_get_frame_function): New.
10722 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10723 (record_btrace_frame_this_id): Compute own id.
10724 (record_btrace_frame_prev_register): Provide PC, throw_error
10725 for all other registers.
10726 (record_btrace_frame_sniffer): Detect btrace frames.
10727 (record_btrace_tailcall_frame_sniffer): New.
10728 (record_btrace_frame_dealloc_cache): New.
10729 (record_btrace_frame_unwind): Add new functions.
10730 (record_btrace_tailcall_frame_unwind): New.
10731 (_initialize_record_btrace): Allocate cache.
10732 * btrace.c (btrace_clear): Call reinit_frame_cache.
10733 * NEWS: Announce it.
10735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10737 * record-btrace.c (record_btrace_set_replay)
10738 (record_btrace_goto_begin, record_btrace_goto_end)
10739 (record_btrace_goto): New.
10740 (init_record_btrace_ops): Initialize them.
10741 * NEWS: Announce it.
10743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10745 * record-btrace.c (record_btrace_find_new_threads)
10746 (record_btrace_thread_alive): New.
10747 (init_record_btrace_ops): Initialize to_find_new_threads and
10750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10752 * record-btrace.c (record_btrace_resume): New.
10753 (record_btrace_wait): New.
10754 (init_record_btrace_ops): Initialize to_wait and to_resume.
10756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10758 * record-btrace.c (record_btrace_xfer_partial)
10759 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10760 (record_btrace_allow_memory_access): New.
10761 (init_record_btrace_ops): Initialize new methods.
10762 * target.c (raw_memory_xfer_partial): Bail out if target reports
10763 that this memory is not available.
10765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10767 * target.h (target_ops) <to_insert_breakpoint>
10768 <to_remove_breakpoint>: Add target_ops parameter.
10769 (forward_target_insert_breakpoint): New.
10770 (forward_target_remove_breakpoint): New.
10771 (memory_remove_breakpoint, memory_insert_breakpoint):
10772 Add target_ops parameter.
10773 * target.c (target_insert_breakpoint): Split into this and ...
10774 (forward_target_insert_breakpoint): ... this.
10775 (target_remove_breakpoint): Split into this and ...
10776 (forward_target_remove_breakpoint): ... this.
10777 (debug_to_insert_breakpoint): Add target_ops parameter.
10778 Call forward_target_insert_breakpoint.
10779 (debug_to_remove_breakpoint): Add target_ops parameter.
10780 Call forward_target_remove_breakpoint.
10781 (update_current_target): Do not inherit or default to_insert_breakpoint
10782 and to_remove_breakpoint.
10783 * corelow.c (ignore): Add target_ops parameter.
10784 * exec.c (ignore): Add target_ops parameter.
10785 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10786 Add target_ops parameter.
10787 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10788 Add target_ops parameter.
10789 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10790 Add target_ops parameter.
10791 * record-full.c (record_full_beneath_to_insert_breakpoint)
10792 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10793 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10794 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10795 (record_full_core_remove_breakpoint): Add target_ops parameter.
10797 (record_full_beneath_to_insert_breakpoint_ops)
10798 (record_full_beneath_to_remove_breakpoint_ops)
10799 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10800 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10801 tmp_to_remove_breakpoint_ops,
10802 record_full_beneath_to_insert_breakpoint_ops, and
10803 record_full_beneath_to_remove_breakpoint_ops.
10804 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10805 (m32r_remove_breakpoint): Add target_ops parameter.
10806 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10807 Add target_ops parameter.
10808 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10809 Add target_ops parameter.
10811 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10812 Markus Metzger <markus.t.metzger@intel.com>
10814 * record-btrace.c: Include frame-unwind.h.
10815 (record_btrace_frame_unwind_stop_reason)
10816 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10817 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10819 (init_record_btrace_ops): Install it.
10821 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10823 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10826 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10828 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10831 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10833 * frame-unwind.c: Include target.h.
10834 (frame_unwind_try_unwinder): New function with code from ...
10835 (frame_unwind_find_by_frame): ... here. New variable
10836 unwinder_from_target, call also target_get_unwinder)
10837 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10838 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10839 * target.h (struct target_ops): New fields to_get_unwinder and
10840 to_get_tailcall_unwinder.
10841 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10845 * record-btrace.c (record_btrace_fetch_registers)
10846 (record_btrace_store_registers)
10847 (record_btrace_to_prepare_to_store): New.
10848 (init_record_btrace_ops): Add the above.
10850 2014-01-16 Tom Tromey <tromey@redhat.com>
10852 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10853 * target.h (struct target_ops) <to_prepare_to_store>: Add
10855 (target_prepare_to_store): Add argument.
10856 * target.c (debug_to_prepare_to_store): Add argument.
10857 (update_current_target): Update.
10858 * remote.c (remote_prepare_to_store): Add 'self' argument.
10859 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10860 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10861 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10862 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10864 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10865 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10866 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10867 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10868 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10872 * btrace.h (replay) <replay>: New.
10873 (btrace_is_replaying): New.
10874 * btrace.c (btrace_clear): Free replay iterator.
10875 (btrace_is_replaying): New.
10876 * record-btrace.c (record_btrace_is_replaying): New.
10877 (record_btrace_info): Print insn number if replaying.
10878 (record_btrace_insn_history): Start at replay position.
10879 (record_btrace_call_history): Start at replay position.
10880 (init_record_btrace_ops): Init to_record_is_replaying.
10882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10884 * record-btrace.c (record_btrace_insn_history_range): Include
10886 (record_btrace_insn_history_from): Adjust range.
10887 (record_btrace_call_history_range): Include
10889 (record_btrace_call_history_from): Adjust range.
10890 * NEWS: Announce changes.
10892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10894 * record.h (enum record_print_flag)
10895 <record_print_indent_calls>: New.
10896 * record.c (get_call_history_modifiers): Recognize /c modifier.
10897 (_initialize_record): Document /c modifier.
10898 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10899 Reorder fields. Optionally indent the function name. Update
10901 * NEWS: Announce changes.
10903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10905 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10909 * btrace.c (ftrace_new_function): Start counting at one.
10910 * record-btrace.c (record_btrace_info): Adjust number of calls
10912 * NEWS: Announce it.
10914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10916 * record-btrace.c (btrace_call_history_insn_range): Print
10917 insn range as [begin, end].
10919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10921 * btrace.h (struct btrace_func_link): New.
10922 (enum btrace_function_flag): New.
10923 (struct btrace_inst): Rename to ...
10924 (struct btrace_insn): ...this. Update all users.
10925 (struct btrace_func) <ibegin, iend>: Remove.
10926 (struct btrace_func_link): New.
10927 (struct btrace_func): Rename to ...
10928 (struct btrace_function): ...this. Update all users.
10929 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10930 (number, level, flags>: New.
10931 (struct btrace_insn_iterator): Rename to ...
10932 (struct btrace_insn_history): ...this.
10934 (struct btrace_insn_iterator, btrace_call_iterator): New.
10935 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10936 (struct btrace_target_info) <begin, end, level>
10937 <insn_history, call_history>: New.
10938 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10939 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10940 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10941 (btrace_call_number, btrace_call_begin, btrace_call_end)
10942 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10943 (btrace_find_function_by_number, btrace_set_insn_history)
10944 (btrace_set_call_history): New.
10945 * btrace.c (btrace_init_insn_iterator)
10946 (btrace_init_func_iterator, compute_itrace): Remove.
10947 (ftrace_print_function_name, ftrace_print_filename)
10948 (ftrace_skip_file): Change
10949 parameter to const.
10950 (ftrace_init_func): Remove.
10951 (ftrace_debug): Use new btrace_function fields.
10952 (ftrace_function_switched): Also consider gaining and
10953 losing symbol information).
10954 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10955 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10956 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10958 (ftrace_new_function): Move. Remove debug print.
10959 (ftrace_update_lines, ftrace_update_insns): New.
10960 (ftrace_update_function): Check for call, ret, and jump.
10961 (compute_ftrace): Renamed to ...
10962 (btrace_compute_ftrace): ...this. Rewritten to compute call
10964 (btrace_fetch, btrace_clear): Updated.
10965 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10966 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10967 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10968 (btrace_call_number, btrace_call_begin, btrace_call_end)
10969 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10970 (btrace_find_function_by_number, btrace_set_insn_history)
10971 (btrace_set_call_history): New.
10972 * record-btrace.c (require_btrace): Use new btrace thread
10974 (record_btrace_info, btrace_insn_history)
10975 (record_btrace_insn_history, record_btrace_insn_history_range):
10976 Use new btrace thread info fields and new iterator.
10977 (btrace_func_history_src_line): Rename to ...
10978 (btrace_call_history_src_line): ...this. Use new btrace
10979 thread info fields.
10980 (btrace_func_history): Rename to ...
10981 (btrace_call_history): ...this. Use new btrace thread info
10982 fields and new iterator.
10983 (record_btrace_call_history, record_btrace_call_history_range):
10984 Use new btrace thread info fields and new iterator.
10986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10988 * frame.h (frame_id_build_unavailable_stack_special): New.
10989 * frame.c (frame_id_build_unavailable_stack_special): New.
10991 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10993 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10994 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10995 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10997 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10998 (i386_insn_is_jump, i386_jmp_p): New.
10999 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11000 insn_is_jump to gdbarch.
11001 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11002 * gdbarch.h: Regenerated.
11003 * gdbarch.c: Regenerated.
11004 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11005 (default_insn_is_jump): New.
11006 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11007 (default_insn_is_jump): New.
11009 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11011 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11013 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11014 (btrace_read_type) <btrace_read_new>: Change to ...
11015 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11019 * common/linux-btrace.c (linux_read_btrace): Free trace from
11020 previous iteration.
11022 2014-01-15 Doug Evans <dje@google.com>
11024 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11027 2014-01-15 Tom Tromey <tromey@redhat.com>
11029 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11030 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11031 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11032 (set_objfile_main_name): New function.
11033 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11034 language_of_main>: New fields.
11035 (set_objfile_main_name): Declare.
11036 * symtab.c (find_main_name): Loop over objfiles to find the main
11038 (set_main_name): Now static.
11039 (get_main_info): Add comment.
11040 * symtab.h (set_main_name): Don't declare.
11042 2014-01-15 Tom Tromey <tromey@redhat.com>
11044 * symtab.c (main_progspace_key): New global.
11045 (struct main_info): New.
11046 (name_of_main, language_of_main): Remove.
11047 (get_main_info, main_info_cleanup): New function.
11048 (set_main_name, main_name, main_language): Use get_main_info.
11049 (_initialize_symtab): Initialize main_progspace_key.
11051 2014-01-15 Tom Tromey <tromey@redhat.com>
11053 * dbxread.c (process_one_symbol): Update.
11054 * dwarf2read.c (read_partial_die): Update.
11055 * symfile.c (set_initial_language): Call main_language.
11056 * symtab.c (language_of_main): Now static.
11057 (set_main_name): Add 'lang' parameter.
11058 (find_main_name): Update.
11059 (main_language): New function.
11060 (symtab_observer_executable_changed): Update.
11061 * symtab.h (set_main_name): Update.
11062 (language_of_main): Remove.
11063 (main_language): Declare.
11065 2014-01-15 Tom Tromey <tromey@redhat.com>
11067 * symfile.c (init_entry_point_info): Use new "initialized" field.
11069 * objfiles.h (struct entry_point) <initialized>: New field.
11070 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11071 (struct objfile) <ei>: ...here. Remove.
11072 * objfiles.c (entry_point_address_query): Update.
11074 2014-01-15 Tom Tromey <tromey@redhat.com>
11076 * objfiles.c (entry_point_address_query): Relocate entry point
11078 (objfile_relocate1): Do not relocate entry point address.
11079 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11080 <the_bfd_section_index>: New field.
11081 * symfile.c (init_entry_point_info): Find the entry point's
11084 2014-01-15 Tom Tromey <tromey@redhat.com>
11086 * solib-frv.c (enable_break): Use entry_point_address_query.
11088 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11090 * NEWS: Add note on improved process record-replay on
11091 arm*-linux* targets.
11093 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11095 * arm-tdep.c (enum arm_record_result): New enum.
11096 (arm_record_unsupported_insn): New function.
11097 (arm_record_coproc_data_proc): Removed.
11098 (thumb2_record_ld_st_multiple): New function.
11099 (thumb2_record_ld_st_dual_ex_tbb): New function.
11100 (thumb2_record_data_proc_sreg_mimm): New function.
11101 (thumb2_record_ps_dest_generic): New function.
11102 (thumb2_record_branch_misc_cntrl): New function.
11103 (thumb2_record_str_single_data): New function.
11104 (thumb2_record_ld_mem_hints): New function.
11105 (thumb2_record_ld_word): New function.
11106 (thumb2_record_lmul_lmla_div): New function.
11107 (thumb2_record_decode_insn_handler): New function.
11108 (decode_insn): Add thumb32 instruction handlers.
11110 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11112 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11113 (struct arm_linux_record_tdep): Declare.
11114 (arm_canonicalize_syscall): New function.
11115 (arm_all_but_pc_registers_record): New function.
11116 (arm_linux_syscall_record): New function.
11117 (arm_linux_init_abi): Add syscall recording constructs.
11118 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11119 decoding. (arm_record_coproc_data_proc): Update arm syscall
11121 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11122 <arm_syscall_record>: New field.
11123 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11128 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11129 register for push instruction recording.
11131 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11133 * arm-tdep.c (thumb_record_misc): Update to correct logical
11134 error while recording ldm, ldmia and pop instructions.
11136 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11138 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11140 2014-01-15 Pedro Alves <palves@redhat.com>
11142 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11143 (go32_resume, go32_fetch_registers, store_register)
11144 (go32_store_registers, go32_prepare_to_store)
11145 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11146 (go32_create_inferior, go32_can_run, go32_terminal_init)
11147 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11150 2014-01-15 Tom Tromey <tromey@redhat.com>
11152 * target.h (async_callback_ftype): New typedef.
11153 (struct target_ops) <to_async>: Use it.
11155 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11157 * python/py-value.c (get_field_type): Remove unnecessary curly
11158 braces for single-statement if block.
11160 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11162 * python/py-type.c (convert_field): Add missing empty line
11163 after declarations.
11165 2014-01-14 Doug Evans <dje@google.com>
11167 * symfile.h (expand_symtabs_matching): Renamed from
11168 expand_partial_symbol_names. Update prototype.
11169 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11170 * symfile.c (expand_symtabs_matching): Renamed from
11171 expand_partial_symbol_names. New args file_matcher, kind.
11172 Rename arg fun to symbol_matcher.
11173 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11174 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11175 ada_expand_partial_symbol_name.
11176 (ada_make_symbol_completion_list): Update to call
11177 expand_symtabs_matching.
11178 (ada_add_global_exceptions): Call expand_symtabs_matching.
11179 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11180 call map_symbol_filenames.
11181 * symtab.c (sources_info): Update to call map_symbol_filenames.
11182 (search_symbols): Call expand_symtabs_matching.
11183 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11184 (default_make_symbol_completion_list_break_on): Update to call
11185 expand_symtabs_matching.
11186 (make_source_files_completion_list): Update to call
11187 map_symbol_filenames.
11189 2014-01-14 Doug Evans <dje@google.com>
11191 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11192 (expand_symtabs_symbol_matcher_ftype): New typedef.
11193 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11194 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11195 * symfile.c (expand_partial_symbol_names): Update to use
11196 expand_symtabs_symbol_matcher_ftype.
11197 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11198 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11199 Arg name_matcher renamed to symbol_matcher.
11200 * psymtab.c (recursively_search_psymtabs): Update to use
11201 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11203 (expand_symtabs_matching_via_partial): Update to use
11204 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11205 Arg name_matcher renamed to symbol_matcher.
11207 2014-01-14 Doug Evans <dje@google.com>
11209 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11210 (map_partial_symbol_filenames): Ditto.
11211 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11212 (map_partial_symbol_filenames): Ditto.
11213 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11214 (map_partial_symbol_filenames): Ditto.
11215 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11216 (map_partial_symbol_filenames): Ditto.
11217 * symtab.c: Delete #include "psymtab.h".
11219 2014-01-14 Pedro Alves <palves@redhat.com>
11220 Tom Tromey <tromey@redhat.com>
11222 * infrun.c (use_displaced_stepping): Use find_record_target
11223 instead of RECORD_IS_USED.
11224 (adjust_pc_after_break): Use record_full_is_used instead of
11226 * record-btrace.c (record_btrace_open): Call record_preopen
11227 instead of checking RECORD_IS_USED.
11228 * record-full.c (record_full_shortname)
11229 (record_full_core_shortname): New globals.
11230 (record_full_is_used): New function.
11231 (find_full_open): Call record_preopen instead of checking
11233 (init_record_full_ops): Set the target's shortname to
11234 record_full_shortname.
11235 (init_record_full_core_ops): Set the target's shortname to
11236 record_full_core_shortname.
11237 * record-full.h (record_full_is_used): Declare.
11238 * record.c (find_record_target): Make extern.
11239 (record_preopen): New function.
11240 * record.h (RECORD_IS_USED): Delete macro.
11241 (find_record_target, record_preopen): Declare functions.
11243 2014-01-14 Yao Qi <yao@codesourcery.com>
11245 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11246 'len''s type to ULONGEST.
11247 (core_xfer_shared_libraries_aix): Likewise.
11248 * gdbarch.c, gdbarch.h: Regenerated.
11249 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11250 Change type of 'len' to ULONGEST.
11251 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11252 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11254 2014-01-14 Yao Qi <yao@codesourcery.com>
11256 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11257 type of 'len' to ULONGEST.
11258 (linux_xfer_osdata_processgroups): Likewise.
11259 (linux_xfer_osdata_threads): Likewise.
11260 (linux_xfer_osdata_fds): Likewise.
11261 (linux_xfer_osdata_isockets): Likewise.
11262 (linux_xfer_osdata_shm): Likewise.
11263 (linux_xfer_osdata_sem): Likewise.
11264 (linux_xfer_osdata_msg): Likewise.
11265 (linux_common_xfer_osdata): Likewise.
11266 (struct osdata_type) <getter>: Likewise.
11267 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11270 2014-01-14 Yao Qi <yao@codesourcery.com>
11272 * target.h (target_xfer_partial_ftype): Update.
11273 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11275 * aix-thread.c (aix_thread_xfer_partial): Change type of
11276 argument 'len' to ULONGEST.
11277 * auxv.c (procfs_xfer_auxv): Likewise.
11278 (ld_so_xfer_auxv): Likewise.
11279 (memory_xfer_auxv): Likewise.
11280 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11281 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11282 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11283 * corelow.c (core_xfer_partial): Likewise.
11284 * ctf.c (ctf_xfer_partial): Likewise.
11285 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11287 (darwin_read_dyld_info): Likewise.
11288 (darwin_xfer_partial): Likewise.
11289 * exec.c (section_table_xfer_memory_partial): Likewise.
11290 (exec_xfer_partial): Likewise.
11291 * exec.h (section_table_xfer_memory_partial): Update
11293 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11294 instead of plongest.
11295 (gnu_xfer_partial): Likewise.
11296 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11297 (ia64_hpux_xfer_solib_got): Likewise.
11298 (ia64_hpux_xfer_partial): Likewise.
11299 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11300 * inf-ptrace.c (inf_ptrace_xfer_partial):
11301 * inf-ttrace.c (inf_ttrace_xfer_partial):
11302 * linux-nat.c (linux_xfer_siginfo): Likewise.
11303 (linux_nat_xfer_partial): Likewise.
11304 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11305 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11306 * monitor.c (monitor_xfer_memory): Likewise.
11307 (monitor_xfer_partial): Likewise.
11308 * procfs.c (procfs_xfer_partial): Likewise.
11309 * record-full.c (record_full_xfer_partial): Likewise.
11310 (record_full_core_xfer_partial): Likewise.
11311 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11312 instead of plongest.
11313 (gdbsim_xfer_partial): Likewise.
11314 * remote.c (remote_xfer_partial): Likewise.
11315 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11316 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11318 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11319 (rs6000_xfer_shared_libraries): Likewise.
11320 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11321 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11322 (sparc_xfer_partial): Likewise.
11323 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11324 (spu_xfer_partial): Likewise.
11325 * spu-multiarch.c (spu_xfer_partial): Likewise.
11326 * target.c (target_read_live_memory): Likewise.
11327 (memory_xfer_live_readonly_partial): Likewise.
11328 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11329 (target_xfer_partial, default_xfer_partial): Likewise.
11330 (current_xfer_partial): Likewise.
11331 * tracepoint.c (tfile_xfer_partial): Likewise.
11332 * windows-nat.c (windows_xfer_memory): Likewise. Call
11333 pulongest instead of plongest.
11334 (windows_xfer_partial): Likewise.
11335 (windows_xfer_shared_libraries): Likewise.
11337 2014-01-14 Yao Qi <yao@codesourcery.com>
11339 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11340 target_xfer_partial_ftype.
11342 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11346 * valops.c (value_struct_elt_bitpos): New function
11347 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11348 object to 'None' if the field name is an empty string ("").
11349 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11350 attribute to look for a field when 'name' is 'None'.
11351 (get_field_type): New function
11353 2014-01-13 Doug Evans <dje@google.com>
11356 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11357 (try_open_dwop_file): Ditto.
11358 * gdb_bfd.c: #include "vec.h".
11359 (bfdp): New typedef.
11360 (struct gdb_bfd_data): New member included_bfds.
11361 (gdb_bfd_unref): Unref all included bfds.
11362 (gdb_bfd_record_inclusion): New function.
11363 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11365 2014-01-13 Tom Tromey <tromey@redhat.com>
11367 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11369 2014-01-13 Tom Tromey <tromey@redhat.com>
11371 * defs.h (use_windows): Remove.
11372 * gdb.c (main): Update.
11373 * main.c (captured_main, gdb_main): Update.
11374 * main.h (struct captured_main_args) <use_windows>: Remove.
11375 * top.c (use_windows): Remove.
11377 2014-01-13 Tom Tromey <tromey@redhat.com>
11379 * defs.h (deprecated_flush_hook): Remove.
11381 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11384 * linux-thread-db.c (try_thread_db_load): Add parameter
11385 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11386 (try_thread_db_load_from_pdir_1): Move it there from here.
11387 (try_thread_db_load_from_sdir): Update caller.
11388 (try_thread_db_load_from_dir): Move it there from here.
11390 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11392 * regformats/regdat.sh: Always rewrite the register file.
11394 2014-01-13 Pedro Alves <palves@redhat.com>
11396 * Makefile.in (CHECK_HEADERS): New variable.
11397 (check-headers:): New rule.
11399 2014-01-13 Tom Tromey <tromey@redhat.com>
11401 * cli/cli-setshow.c (do_set_command): Update.
11402 * defs.h (deprecated_set_hook): Remove.
11403 * top.c (deprecated_set_hook): Remove.
11405 2014-01-13 Pedro Alves <palves@redhat.com>
11407 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11408 the tracepoint if the PC is a pseudo-register.
11410 2014-01-13 Tom Tromey <tromey@redhat.com>
11412 * defs.h (XCALLOC): Remove.
11413 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11414 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11415 * dwarf2loc.c (allocate_piece_closure): Likewise.
11416 * elfread.c (elf_symfile_segments): Likewise.
11417 (elf_symfile_segments): Likewise.
11418 * gdbtypes.c (copy_type_recursive): Likewise.
11419 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11420 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11421 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11423 * mt-tdep.c (mt_gdbarch_init): Likewise.
11424 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11426 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11427 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11428 * registry.c (registry_alloc_data): Likewise.
11429 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11430 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11431 * serial.c (serial_fdopen_ops): Likewise.
11432 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11434 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11435 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11438 2014-01-13 Tom Tromey <tromey@redhat.com>
11440 * defs.h (XMALLOC): Remove.
11441 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11442 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11443 * cli-out.c (struct ui_out *): Likewise.
11444 * cli/cli-dump.c (add_dump_command): Likewise.
11445 (add_dump_command): Likewise.
11446 * complaints.c (get_complaints): Likewise.
11447 (find_complaint): Likewise.
11448 * dwarf2-frame.c (execute_cfa_program): Likewise.
11449 * dwarf2read.c (abbrev_table_read_table): Likewise.
11450 * gdbarch.sh: Likewise.
11451 * gdbarch.c: Rebuild.
11452 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11453 * interps.c (interp_new): Likewise.
11454 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11455 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11456 * mi/mi-console.c (mi_console_file_new): Likewise.
11457 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11458 * mi/mi-out.c (mi_out_new): Likewise.
11459 * mi/mi-parse.c (mi_parse): Likewise.
11460 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11461 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11462 * observer.c (xalloc_observer_list_node): Likewise.
11463 * regcache.c (regcache_xmalloc_1): Likewise.
11464 * reggroups.c (reggroup_new): Likewise.
11465 (_initialize_reggroup): Likewise.
11466 * registry.c (register_data_with_cleanup): Likewise.
11467 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11468 * ser-base.c (serial_ttystate): Likewise.
11469 * ser-mingw.c (make_pipe_state): Likewise.
11470 * ser-pipe.c (pipe_open): Likewise.
11471 * serial.c (serial_open): Likewise.
11472 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11473 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11474 (tui_alloc_win_info): Likewise.
11475 (tui_add_content_elements): Likewise.
11476 * tui/tui-file.c (tui_file_new): Likewise.
11477 * tui/tui-out.c (tui_out_new): Likewise.
11478 * ui-file.c (mem_file_new): Likewise.
11479 * ui-out.c (push_level): Likewise.
11480 (make_cleanup_ui_out_end): Likewise.
11481 (append_header_to_list): Likewise.
11482 (ui_out_new): Likewise.
11483 * user-regs.c (user_reg_add_builtin): Likewise.
11485 2014-01-13 Tom Tromey <tromey@redhat.com>
11487 * defs.h (XZALLOC): Remove.
11488 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11489 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11490 (get_ada_tasks_inferior_data): Likewise.
11491 * auto-load.c (get_auto_load_pspace_data): Likewise.
11492 * auxv.c (get_auxv_inferior_data): Likewise.
11493 * bfd-target.c (target_bfd_reopen): Likewise.
11494 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11495 (deprecated_insert_raw_breakpoint): Likewise.
11496 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11497 * corelow.c (core_open): Likewise.
11498 * darwin-nat.c (darwin_check_new_threads): Likewise.
11499 (darwin_attach_pid): Likewise.
11500 * dummy-frame.c (dummy_frame_push): Likewise.
11501 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11502 * dwarf2loc.c (allocate_piece_closure): Likewise.
11503 * elfread.c (elf_symfile_segments): Likewise.
11504 * eval.c (ptrmath_type_p): Likewise.
11505 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11506 * gdbtypes.c (alloc_type_arch): Likewise.
11507 (alloc_type_instance): Likewise.
11508 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11509 * inf-child.c (inf_child_can_use_agent): Likewise.
11510 * inflow.c (get_inflow_inferior_data): Likewise.
11511 * infrun.c (save_infcall_suspend_state): Likewise.
11512 * jit.c (jit_reader_load): Likewise.
11513 (get_jit_objfile_data): Likewise.
11514 (get_jit_program_space_data): Likewise.
11515 (jit_object_open_impl): Likewise.
11516 (jit_symtab_open_impl): Likewise.
11517 (jit_block_open_impl): Likewise.
11518 (jit_frame_sniffer): Likewise.
11519 * linux-fork.c (add_fork): Likewise.
11520 * maint.c (make_command_stats_cleanup): Likewise.
11521 * objfiles.c (get_objfile_pspace_data): Likewise.
11522 * opencl-lang.c (struct lval_closure): Likewise.
11523 * osdata.c (osdata_start_osdata): Likewise.
11524 * progspace.c (new_address_space): Likewise.
11525 (add_program_space): Likewise.
11526 * remote-sim.c (get_sim_inferior_data): Likewise.
11527 * sh-tdep.c (sh_gdbarch_init): Likewise.
11528 * skip.c (Ignore): Likewise.
11529 (skip_delete_command): Likewise.
11530 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11531 (library_list_start_library): Likewise.
11532 (solib_aix_current_sos): Likewise.
11533 * solib-darwin.c (get_darwin_info): Likewise.
11534 (darwin_current_sos): Likewise.
11535 * solib-dsbt.c (get_dsbt_info): Likewise.
11536 * solib-ia64-hpux.c (new_so_list): Likewise.
11537 (ia64_hpux_get_solib_linkage_addr): Likewise.
11538 * solib-spu.c (append_ocl_sos): Likewise.
11539 (spu_current_sos): Likewise.
11540 * solib-svr4.c (get_svr4_info): Likewise.
11541 (svr4_keep_data_in_core): Likewise.
11542 (library_list_start_library): Likewise.
11543 (svr4_default_sos): Likewise.
11544 (svr4_read_so_list): Likewise.
11545 * solib-target.c (library_list_start_library): Likewise.
11546 (solib_target_current_sos): Likewise.
11547 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11548 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11549 * symfile.c (default_symfile_segments): Likewise.
11550 * target-descriptions.c (tdesc_data_init): Likewise.
11551 (tdesc_create_reg): Likewise.
11552 (struct tdesc_type *): Likewise.
11553 (tdesc_create_vector): Likewise.
11554 (tdesc_set_struct_size): Likewise.
11555 (struct tdesc_type *): Likewise.
11556 (tdesc_free_feature): Likewise.
11557 (tdesc_create_feature): Likewise.
11558 * windows-nat.c (windows_add_thread): Likewise.
11559 (windows_make_so): Likewise.
11560 * xml-support.c (gdb_xml_body_text): Likewise.
11561 (gdb_xml_create_parser_and_cleanup): Likewise.
11562 (xml_process_xincludes): Likewise.
11563 * xml-syscall.c (allocate_syscalls_info): Likewise.
11564 (syscall_create_syscall_desc): Likewise.
11566 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11568 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11569 function, with code from i386_stap_parse_special_token.
11570 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11571 (i386_stap_parse_special_token): Move code to the two functions
11572 above; simplify it.
11574 2014-01-09 Pedro Alves <palves@redhat.com>
11575 Hui Zhu <hui@codesourcery.com>
11578 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11579 bp_err_string. Don't mark the location shlib_disabled if the
11580 error thrown wasn't a generic or memory error. Catch errors
11581 thrown while inserting breakpoints in overlayed code. Output
11582 error message of software breakpoints.
11583 * remote.c (remote_insert_breakpoint): If this breakpoint has
11584 target-side commands but this stub doesn't support Z0 packets,
11585 throw NOT_SUPPORTED_ERROR error.
11586 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11587 * target.h (target_insert_breakpoint): Extend comment.
11588 (target_insert_hw_breakpoint): Add comment.
11590 2014-01-08 Pedro Alves <palves@redhat.com>
11592 * remote.c (remote_add_thread): Add threads silently if starting
11594 (remote_notice_new_inferior): If in all-stop, and starting up,
11595 don't call notice_new_inferior.
11596 (get_current_thread): New function, factored out from ...
11597 (add_current_inferior_and_thread): ... this. Adjust.
11598 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11599 found any thread, then select the remote's current thread as GDB's
11600 current thread too.
11602 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11604 * NEWS: Create a new section for the next release branch.
11605 Rename the section of the current branch, now that it has
11608 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11610 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11611 * version.in: Bump version to 7.7.50.DATE-cvs.
11613 2014-01-08 Yao Qi <yao@codesourcery.com>
11615 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11616 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11617 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11619 2014-01-08 Yao Qi <yao@codesourcery.com>
11621 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11622 return value of bfd_get_filename to symbol_file_add_from_bfd.
11624 2014-01-08 Pierre Muller <muller@sourceware.org>
11627 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11628 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11629 to prim_record_mininal_symbol_and_info.
11630 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11631 in call to prim_record_minimal_symbol_and_info.
11632 (read_pe_exported_syms): Set index field of section_data.
11634 2014-01-07 Andrew Pinski <apinski@cavium.com>
11636 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11637 * features/aarch64.c: Regenerate.
11639 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11641 * target.c (return_null): Define.
11642 (update_current_target): Use it instead of return_zero for
11643 functions that return a pointer.
11645 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11647 * source.c (add_path): Fix check for duplicated paths in the previously
11650 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11652 * ada-lang.c: Remove duplicated include statements.
11653 * alphabsd-nat.c: Ditto.
11654 * amd64-darwin-tdep.c: Ditto.
11655 * amd64fbsd-nat.c: Ditto.
11656 * auto-load.c: Ditto.
11658 * breakpoint.c: Ditto.
11659 * dbxread.c: Ditto.
11660 * fork-child.c: Ditto.
11661 * gdb_usleep.c: Ditto.
11662 * i386-darwin-tdep.c: Ditto.
11663 * i386fbsd-nat.c: Ditto.
11665 * inferior.c: Ditto.
11666 * jv-lang.c: Ditto.
11667 * linux-nat.c: Ditto.
11668 * linux-tdep.c: Ditto.
11669 * m68kbsd-nat.c: Ditto.
11670 * m68klinux-nat.c: Ditto.
11671 * microblaze-tdep.c: Ditto.
11672 * mips-linux-tdep.c: Ditto.
11673 * mn10300-tdep.c: Ditto.
11674 * nto-tdep.c: Ditto.
11675 * opencl-lang.c: Ditto.
11677 * printcmd.c: Ditto.
11678 * regcache.c: Ditto.
11679 * remote-m32r-sdi.c: Ditto.
11681 * symfile.c: Ditto.
11683 * tilegx-linux-nat.c: Ditto.
11684 * tilegx-tdep.c: Ditto.
11685 * tracepoint.c: Ditto.
11687 * vaxbsd-nat.c: Ditto.
11688 * windows-nat.c: Ditto.
11689 * xtensa-tdep.c: Ditto.
11691 2014-01-07 Yao Qi <yao@codesourcery.com>
11693 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11695 2014-01-07 Yao Qi <yao@codesourcery.com>
11696 Joel Brobecker <brobecker@adacore.com>
11698 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11699 (pdc_write_regs): Likewise.
11700 (fetch_regs_kernel_thread): Likewise.
11701 (store_regs_kernel_thread): Likewise.
11703 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11705 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11706 tagged type objects to their actual type.
11708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11710 * ada-valprint.c (print_field_values): Add "language" parameter.
11711 Update calls to print_field_values and print_variant_part.
11712 Pass new parameter "language" in call to val_print instead
11713 of "current_language". Replace call to ada_val_print by call
11715 (print_variant_part): Add "language" parameter.
11716 (ada_val_print_struct_union): Update call to print_field_values.
11718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11720 * ada-valprint.c (ui_memcpy): Delete.
11721 (ada_print_floating): Update documentation. Add empty line
11722 between between function documentation and implementation.
11723 Delete variable "buffer". Use ui_file_xstrdup in place of
11724 ui_file_put. Minor adjustments following this change.
11726 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11728 * ada-valprint.c (ada_val_print_string): New function,
11729 extracted from ada_val_print_array.
11730 (ada_val_print_array): Replace extracted code by call
11731 to ada_val_print_string followed by a return. Move
11732 "else" branch to the function's top block.
11734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11736 * ada-valprint.c (ada_val_print_array): Move implementation
11737 down. Rename parameter "offset" and "val" into "offset_aligned"
11738 and "original_value" respectively. Add parameter "offset".
11740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11742 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11743 re-organizing the code. Change the "???" message printed
11744 when target type is a TYPE_CODE_UNDEF into
11745 "<ref to undefined type>".
11747 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11749 * ada-valprint.c (print_record): Delete, implementation inlined...
11750 (ada_val_print_struct_union): ... here. Remove call to
11751 ada_check_typedef in inlined implementation.
11753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11755 * ada-valprint.c (ada_val_print_gnat_array): New function,
11756 extracted from ada_val_print_1;
11757 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11758 (ada_val_print_flt, ada_val_print_struct_union)
11759 (ada_val_print_ref): Likewise.
11760 (ada_val_print_1): Delete variables i and elttype.
11761 Replace extracted-out code by call to corresponding
11764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11766 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11770 * ada-valprint.c (ada_val_print_1): Replace calls to
11771 ada_val_print_1 by calls to val_print.
11773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11775 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11776 Update calls to self accordingly. Replace calls to c_val_print
11777 by calls to val_print.
11779 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11781 * ada-valprint.c (print_record): Delete declaration.
11782 (adjust_type_signedness, ada_val_print_1): Likewise.
11783 (ada_val_print): Move function implementation down.
11784 (print_variant_part, print_field_values, print_record):
11785 Move function implementation up.
11787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11789 * python/py-type.c (typy_get_name): New function.
11790 (type_object_getset): Add entry for attribute "name".
11791 * NEWS: Add entry mentioning this new attribute.
11793 2014-01-07 Yao Qi <yao@codesourcery.com>
11795 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11798 2014-01-07 Yao Qi <yao@codesourcery.com>
11800 * gnu-nat.c (info_port_rights): Add qualifier const to
11803 2014-01-07 Yao Qi <yao@codesourcery.com>
11805 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11807 2014-01-07 Yao Qi <yao@codesourcery.com>
11809 * gnu-nat.c (make_inf) Update declaration.
11810 (make_inf): Make it static.
11811 (inf_set_traced): Likewise.
11812 (inf_port_to_thread, inf_task_died_status): Likewise.
11814 2014-01-07 Yao Qi <yao@codesourcery.com>
11816 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11818 2014-01-07 Yao Qi <yao@codesourcery.com>
11820 * gnu-nat.c (_initialize_gnu_nat): Declare.
11822 2014-01-07 Yao Qi <yao@codesourcery.com>
11824 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11826 (struct gdbarch_info) <byte_order>: Change type to
11828 <byte_order_for_code>: Likewise.
11829 * gdbarch.c, gdbarch.h: Regenerated.
11831 2014-01-06 Sasha Smundak <asmundak@google.com>
11833 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11835 2014-01-06 Tom Tromey <tromey@redhat.com>
11837 * doublest.c (convert_doublest_to_floatformat): Use const, not
11839 * somread.c (som_symtab_read): Likewise.
11841 2014-01-07 Hui Zhu <hui@codesourcery.com>
11843 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11844 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11845 (gdb_bfd_fopen): Ditto.
11846 (gdb_bfd_openr): Ditto.
11847 (gdb_bfd_openw): Ditto.
11848 (gdb_bfd_openr_iovec): Ditto.
11849 (gdb_bfd_fdopenr): Ditto.
11850 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11851 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11853 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11855 * symfile-mem.c (symbol_file_add_from_memory): Removed
11856 gdb_bfd_stash_filename.
11858 2014-01-03 Doug Evans <dje@google.com>
11860 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11863 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11865 Update year range in copyright notice of all files.
11867 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11869 * top.c (print_gdb_version): Set copyright year to 2014.
11871 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11873 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11875 For older changes see ChangeLog-2013.
11881 version-control: never