1 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3 * dcache.h: Include target.h, to avoid compile time warnings.
5 2014-08-15 Joel Brobecker <brobecker@adacore.com>
7 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
8 frame_info" partial declaration.
9 * gdbarch.h: Regenerate.
11 2014-08-15 Yao Qi <yao@codesourcery.com>
13 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
14 Add parameter 'decode_for_pst_p'. Callers update.
16 2014-08-13 Yao Qi <yao@codesourcery.com>
19 * configure.ac: Use local variable 'pos'.
20 * configure: Regenerated.
22 2014-08-11 Doug Evans <dje@google.com>
24 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
25 message, it is redundant with "Reading symbols from ..." message.
27 2014-08-10 Doug Evans <xdje42@gmail.com>
29 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
31 2014-08-09 Yao Qi <yao@codesourcery.com>
34 * remote.c (remote_xfer_partial): Remove dead code.
36 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
38 * ia64-linux-tdep.c: Include "regset.h".
39 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
40 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
41 (ia64_linux_supply_fpregset): New function.
42 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
43 (ia64_linux_regset_from_core_section): New function.
44 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
47 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
49 * m68klinux-tdep.c: Include "regset.h".
50 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
51 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
52 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
53 (m68k_linux_regset_from_core_section): New function.
54 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
57 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
59 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
60 function. Move logic to...
61 (tilegx_linux_regmap): ... this new register map.
62 (tilegx_linux_regset): Refer to register map, replace supply
63 method by regcache_supply_regset, and add collect method.
64 * tilegx-tdep.h (enum tilegx_regnum): New enum value
65 TILEGX_FIRST_EASY_REGNUM.
67 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
69 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
70 that calls regcache_supply_regset and handles the EPC register
71 separately. Move main logic to...
72 (score7_linux_gregmap): ... this new register map.
73 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
74 (score7_linux_gregset): Refer to register map. Add collect method.
75 (score7_linux_regset_from_core_section): Replace
76 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
77 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
78 (struct regset): Delete unused forward declaraction.
79 (struct pt_regs): Delete structure definition.
80 (elf_gregset_t): Delete typedef.
82 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
84 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
85 (nios2_core_regset): Add collect method.
87 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
89 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
90 platform-independent and don't write to read-only input buffer.
91 (m32r_linux_collect_gregset): New function.
92 (m32r_linux_gregset): Add collect method.
94 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
96 * hppa-linux-tdep.c (greg_map): Rename to...
97 (hppa_linux_gregmap): ... this. Also convert to
98 regcache_map_entry format.
99 (hppa_linux_supply_regset): Delete function.
100 (hppa_linux_supply_fpregset): Delete function. Move logic to...
101 (hppa_linux_fpregmap): ... this new register map.
102 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
103 register map, replace supply method by regcache_supply_regset, and
104 add collect method regcache_collect_regset.
106 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
108 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
109 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
110 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
111 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
112 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
113 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
114 (frv_linux_supply_gregset): Replace main logic by call to
115 regcache_supply_regset, but keep clearing gr32-gr63.
116 (frv_linux_supply_fpregset): Delete function.
117 (frv_linux_gregset): Refer to appropriate register map and add
118 regcache_collect_regset as the collect method.
119 (frv_linux_fpregset): Likewise. Also exchange the supply method
120 by regcache_supply_regset.
122 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
124 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
125 by call to alpha_supply_int_regs.
126 (alpha_linux_collect_gregset): New function.
127 (alpha_linux_supply_fpregset): Replace logic by call to
128 alpha_supply_fp_regs.
129 (alpha_linux_collect_fpregset): New function.
130 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
134 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
135 by call to regcache_collect_regset.
136 (supply_gregset, supply_fpregset): Call regcache_supply_regset
137 instead of aarch64_linux_supply_gregset/_fpregset.
138 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
139 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
141 (aarch64_linux_supply_gregset, supply_gregset_from_core)
142 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
143 functions. Move logic to ...
144 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
146 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
147 refer to new register maps, replace *_regset_from_core by
148 regcache_supply_regset, and also use regcache_collect_regset.
149 * aarch64-linux-tdep.h: Include "regset.h".
150 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
152 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
153 macros, moved from C source file.
154 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
155 variable declarations.
157 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
159 * s390-linux-nat.c: Include "regset.h".
160 (regmap_gregset): Delete macro.
161 (s390_64_regmap_gregset): New register map for
162 regcache_supply/_collect_regset.
163 (s390_64_gregset): New regset.
164 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
165 (regmap_fpregset): Delete macro.
166 (s390_native_supply, s390_native_collect): Delete functions.
167 (supply_gregset, fill_gregset): Replace s390-specific regmap
168 handling by a call to regcache_supply/_collect_regset.
169 (supply_fpregset, fill_fpregset): Call regcache_supply/
170 _collect_regset instead of s390_native_supply/_collect.
171 (fetch_regset, store_regset): Likewise. Also change the last
172 parameter to a regset instead of a regmap.
173 (s390_linux_fetch_inferior_registers)
174 (390_linux_store_inferior_registers): Adjust last parameter in
175 calls to fetch_regset and store_regset.
176 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
177 (s390_gregmap): ... this. Also make static const and convert to
178 regcache_map_entry format.
179 (s390x_regmap_gregset): Delete.
180 (s390_regmap_fpregset): Rename to...
181 (s390_fpregmap): ... this. Make static const and convert to
182 regcache_map_entry format.
183 (s390_regmap_upper, s390_regmap_last_break)
184 (s390x_regmap_last_break, s390_regmap_system_call)
185 (s390_regmap_tdb): Likewise.
186 (s390_supply_regset, s390_collect_regset): Remove functions.
187 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
189 (s390_gregset, s390_fpregset, s390_upper_regset)
190 (s390_last_break_regset, s390x_last_break_regset)
191 (s390_system_call_regset, s390_tdb_regset): Make global and
192 replace s390_supply/_collect_regset by regcache_supply/
194 (s390x_gregset): Delete.
195 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
196 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
197 (s390_regmap_fpregset, s390_regmap_last_break)
198 (s390x_regmap_last_break, s390_regmap_system_call)
199 (s390_regmap_tdb): Delete global variable declarations.
200 (s390_gregset, s390_fpregset, s390_last_break_regset)
201 (s390x_last_break_regset, s390_system_call_regset)
202 (s390_tdb_regset): New global variable declarations.
204 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
206 * regcache.c: Include "regset.h".
207 (regcache_transfer_regset): New local function.
208 (regcache_supply_regset, regcache_collect_regset): New functions.
209 * regcache.h (struct regcache_map_entry): New structure.
210 (REGCACHE_MAP_SKIP): New enum value.
211 (regcache_supply_regset, regcache_collect_regset): New prototypes.
213 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
215 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
216 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
217 (ppc_linux_collect_gregset ): Likewise.
218 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
219 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
220 (ppc_collect_vrregset): Likewise.
221 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
224 2014-08-07 Yao Qi <yao@codesourcery.com>
226 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
227 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
228 * remote.c (remote_read_bytes): Likewise.
230 2014-08-07 Yao Qi <yao@codesourcery.com>
232 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
234 2014-08-07 Yao Qi <yao@codesourcery.com>
237 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
238 TARGET_XFER_OK instead of 0.
240 2014-08-07 Gary Benson <gbenson@redhat.com>
242 * common/common-defs.h: Include errno.h.
243 * defs.h: Do not include errno.h.
244 * ada-typeprint.c: Likewise.
245 * c-typeprint.c: Likewise.
246 * core-regset.c: Likewise.
247 * corefile.c: Likewise.
248 * corelow.c: Likewise.
249 * event-loop.c: Likewise.
250 * f-typeprint.c: Likewise.
251 * gnu-nat.c: Likewise.
252 * go32-nat.c: Likewise.
253 * i386gnu-nat.c: Likewise.
254 * m2-typeprint.c: Likewise.
255 * nat/linux-btrace.c: Likewise.
256 * p-typeprint.c: Likewise.
257 * procfs.c: Likewise.
258 * remote-sim.c: Likewise.
259 * rs6000-nat.c: Likewise.
260 * target.c: Likewise.
261 * typeprint.c: Likewise.
262 * ui-file.c: Likewise.
263 * valops.c: Likewise.
264 * valprint.c: Likewise.
266 2014-08-07 Gary Benson <gbenson@redhat.com>
268 * common/common-defs.h: Include string.h.
269 * aarch64-tdep.c: Do not include string.h.
270 * ada-exp.y: Likewise.
271 * ada-lang.c: Likewise.
272 * ada-lex.l: Likewise.
273 * ada-typeprint.c: Likewise.
274 * ada-valprint.c: Likewise.
275 * aix-thread.c: Likewise.
276 * alpha-linux-tdep.c: Likewise.
277 * alpha-mdebug-tdep.c: Likewise.
278 * alpha-nat.c: Likewise.
279 * alpha-osf1-tdep.c: Likewise.
280 * alpha-tdep.c: Likewise.
281 * alphanbsd-tdep.c: Likewise.
282 * amd64-dicos-tdep.c: Likewise.
283 * amd64-linux-tdep.c: Likewise.
284 * amd64-nat.c: Likewise.
285 * amd64-sol2-tdep.c: Likewise.
286 * amd64fbsd-tdep.c: Likewise.
287 * amd64obsd-tdep.c: Likewise.
288 * arch-utils.c: Likewise.
289 * arm-linux-nat.c: Likewise.
290 * arm-linux-tdep.c: Likewise.
291 * arm-tdep.c: Likewise.
292 * arm-wince-tdep.c: Likewise.
293 * armbsd-tdep.c: Likewise.
294 * armnbsd-nat.c: Likewise.
295 * armnbsd-tdep.c: Likewise.
296 * armobsd-tdep.c: Likewise.
297 * avr-tdep.c: Likewise.
298 * ax-gdb.c: Likewise.
299 * ax-general.c: Likewise.
300 * bcache.c: Likewise.
301 * bfin-tdep.c: Likewise.
302 * breakpoint.c: Likewise.
303 * build-id.c: Likewise.
304 * buildsym.c: Likewise.
306 * c-lang.c: Likewise.
307 * c-typeprint.c: Likewise.
308 * c-valprint.c: Likewise.
309 * charset.c: Likewise.
310 * cli-out.c: Likewise.
311 * cli/cli-cmds.c: Likewise.
312 * cli/cli-decode.c: Likewise.
313 * cli/cli-dump.c: Likewise.
314 * cli/cli-interp.c: Likewise.
315 * cli/cli-logging.c: Likewise.
316 * cli/cli-script.c: Likewise.
317 * cli/cli-setshow.c: Likewise.
318 * cli/cli-utils.c: Likewise.
319 * coffread.c: Likewise.
320 * common/agent.c: Likewise.
321 * common/buffer.c: Likewise.
322 * common/buffer.h: Likewise.
323 * common/common-utils.c: Likewise.
324 * common/filestuff.c: Likewise.
325 * common/filestuff.c: Likewise.
326 * common/format.c: Likewise.
327 * common/print-utils.c: Likewise.
328 * common/rsp-low.c: Likewise.
329 * common/signals.c: Likewise.
330 * common/vec.h: Likewise.
331 * common/xml-utils.c: Likewise.
332 * core-regset.c: Likewise.
333 * corefile.c: Likewise.
334 * corelow.c: Likewise.
335 * cp-abi.c: Likewise.
336 * cp-name-parser.y: Likewise.
337 * cp-support.c: Likewise.
338 * cp-valprint.c: Likewise.
339 * cris-tdep.c: Likewise.
341 * darwin-nat.c: Likewise.
342 * dbxread.c: Likewise.
343 * dcache.c: Likewise.
344 * demangle.c: Likewise.
345 * dicos-tdep.c: Likewise.
346 * disasm.c: Likewise.
347 * doublest.c: Likewise.
349 * dummy-frame.c: Likewise.
350 * dwarf2-frame.c: Likewise.
351 * dwarf2loc.c: Likewise.
352 * dwarf2read.c: Likewise.
353 * elfread.c: Likewise.
354 * environ.c: Likewise.
356 * event-loop.c: Likewise.
357 * exceptions.c: Likewise.
359 * expprint.c: Likewise.
361 * f-lang.c: Likewise.
362 * f-typeprint.c: Likewise.
363 * f-valprint.c: Likewise.
364 * fbsd-nat.c: Likewise.
365 * findcmd.c: Likewise.
366 * findvar.c: Likewise.
367 * fork-child.c: Likewise.
369 * frv-linux-tdep.c: Likewise.
370 * frv-tdep.c: Likewise.
372 * gdb_bfd.c: Likewise.
373 * gdbarch.c: Likewise.
374 * gdbarch.sh: Likewise.
375 * gdbtypes.c: Likewise.
376 * gnu-nat.c: Likewise.
377 * gnu-v2-abi.c: Likewise.
378 * gnu-v3-abi.c: Likewise.
379 * go-exp.y: Likewise.
380 * go-lang.c: Likewise.
381 * go32-nat.c: Likewise.
382 * guile/guile.c: Likewise.
383 * guile/scm-auto-load.c: Likewise.
384 * hppa-hpux-tdep.c: Likewise.
385 * hppa-linux-nat.c: Likewise.
386 * hppanbsd-tdep.c: Likewise.
387 * hppaobsd-tdep.c: Likewise.
388 * i386-cygwin-tdep.c: Likewise.
389 * i386-dicos-tdep.c: Likewise.
390 * i386-linux-tdep.c: Likewise.
391 * i386-nto-tdep.c: Likewise.
392 * i386-sol2-tdep.c: Likewise.
393 * i386-tdep.c: Likewise.
394 * i386bsd-tdep.c: Likewise.
395 * i386gnu-nat.c: Likewise.
396 * i386nbsd-tdep.c: Likewise.
397 * i386obsd-tdep.c: Likewise.
398 * i387-tdep.c: Likewise.
399 * ia64-libunwind-tdep.c: Likewise.
400 * ia64-linux-nat.c: Likewise.
401 * inf-child.c: Likewise.
402 * inf-ptrace.c: Likewise.
403 * inf-ttrace.c: Likewise.
404 * infcall.c: Likewise.
405 * infcmd.c: Likewise.
406 * inflow.c: Likewise.
407 * infrun.c: Likewise.
408 * interps.c: Likewise.
409 * iq2000-tdep.c: Likewise.
410 * irix5-nat.c: Likewise.
411 * jv-exp.y: Likewise.
412 * jv-lang.c: Likewise.
413 * jv-typeprint.c: Likewise.
414 * jv-valprint.c: Likewise.
415 * language.c: Likewise.
416 * linux-fork.c: Likewise.
417 * linux-nat.c: Likewise.
418 * lm32-tdep.c: Likewise.
419 * m2-exp.y: Likewise.
420 * m2-typeprint.c: Likewise.
421 * m32c-tdep.c: Likewise.
422 * m32r-linux-nat.c: Likewise.
423 * m32r-linux-tdep.c: Likewise.
424 * m32r-rom.c: Likewise.
425 * m32r-tdep.c: Likewise.
426 * m68hc11-tdep.c: Likewise.
427 * m68k-tdep.c: Likewise.
428 * m68kbsd-tdep.c: Likewise.
429 * m68klinux-nat.c: Likewise.
430 * m68klinux-tdep.c: Likewise.
431 * m88k-tdep.c: Likewise.
432 * machoread.c: Likewise.
433 * macrocmd.c: Likewise.
435 * mdebugread.c: Likewise.
436 * mem-break.c: Likewise.
437 * memattr.c: Likewise.
438 * memory-map.c: Likewise.
439 * mep-tdep.c: Likewise.
440 * mi/mi-cmd-break.c: Likewise.
441 * mi/mi-cmd-disas.c: Likewise.
442 * mi/mi-cmd-env.c: Likewise.
443 * mi/mi-cmd-stack.c: Likewise.
444 * mi/mi-cmd-var.c: Likewise.
445 * mi/mi-cmds.c: Likewise.
446 * mi/mi-console.c: Likewise.
447 * mi/mi-getopt.c: Likewise.
448 * mi/mi-interp.c: Likewise.
449 * mi/mi-main.c: Likewise.
450 * mi/mi-parse.c: Likewise.
451 * microblaze-rom.c: Likewise.
452 * microblaze-tdep.c: Likewise.
453 * mingw-hdep.c: Likewise.
454 * minidebug.c: Likewise.
455 * minsyms.c: Likewise.
456 * mips-irix-tdep.c: Likewise.
457 * mips-linux-tdep.c: Likewise.
458 * mips-tdep.c: Likewise.
459 * mips64obsd-tdep.c: Likewise.
460 * mipsnbsd-tdep.c: Likewise.
461 * mipsread.c: Likewise.
462 * mn10300-linux-tdep.c: Likewise.
463 * mn10300-tdep.c: Likewise.
464 * monitor.c: Likewise.
465 * moxie-tdep.c: Likewise.
466 * mt-tdep.c: Likewise.
467 * nat/linux-btrace.c: Likewise.
468 * nat/linux-osdata.c: Likewise.
469 * nat/linux-procfs.c: Likewise.
470 * nat/linux-ptrace.c: Likewise.
471 * nat/linux-waitpid.c: Likewise.
472 * nbsd-tdep.c: Likewise.
473 * nios2-linux-tdep.c: Likewise.
474 * nto-procfs.c: Likewise.
475 * nto-tdep.c: Likewise.
476 * objc-lang.c: Likewise.
477 * objfiles.c: Likewise.
478 * opencl-lang.c: Likewise.
480 * osdata.c: Likewise.
482 * p-lang.c: Likewise.
483 * p-typeprint.c: Likewise.
485 * posix-hdep.c: Likewise.
486 * ppc-linux-nat.c: Likewise.
487 * ppc-sysv-tdep.c: Likewise.
488 * ppcfbsd-tdep.c: Likewise.
489 * ppcnbsd-tdep.c: Likewise.
490 * ppcobsd-tdep.c: Likewise.
491 * printcmd.c: Likewise.
492 * procfs.c: Likewise.
493 * prologue-value.c: Likewise.
494 * python/py-auto-load.c: Likewise.
495 * python/py-gdb-readline.c: Likewise.
496 * ravenscar-thread.c: Likewise.
497 * regcache.c: Likewise.
498 * registry.c: Likewise.
499 * remote-fileio.c: Likewise.
500 * remote-m32r-sdi.c: Likewise.
501 * remote-mips.c: Likewise.
502 * remote-notif.c: Likewise.
503 * remote-sim.c: Likewise.
504 * remote.c: Likewise.
505 * reverse.c: Likewise.
506 * rs6000-aix-tdep.c: Likewise.
507 * ser-base.c: Likewise.
508 * ser-go32.c: Likewise.
509 * ser-mingw.c: Likewise.
510 * ser-pipe.c: Likewise.
511 * ser-tcp.c: Likewise.
512 * ser-unix.c: Likewise.
513 * serial.c: Likewise.
514 * sh-tdep.c: Likewise.
515 * sh64-tdep.c: Likewise.
516 * shnbsd-tdep.c: Likewise.
518 * sol-thread.c: Likewise.
519 * solib-dsbt.c: Likewise.
520 * solib-frv.c: Likewise.
521 * solib-osf.c: Likewise.
522 * solib-som.c: Likewise.
523 * solib-spu.c: Likewise.
524 * solib-target.c: Likewise.
526 * somread.c: Likewise.
527 * source.c: Likewise.
528 * sparc-nat.c: Likewise.
529 * sparc-sol2-tdep.c: Likewise.
530 * sparc-tdep.c: Likewise.
531 * sparc64-tdep.c: Likewise.
532 * sparc64fbsd-tdep.c: Likewise.
533 * sparc64nbsd-tdep.c: Likewise.
534 * sparcnbsd-tdep.c: Likewise.
535 * spu-linux-nat.c: Likewise.
536 * spu-multiarch.c: Likewise.
537 * spu-tdep.c: Likewise.
538 * stabsread.c: Likewise.
540 * std-regs.c: Likewise.
541 * symfile.c: Likewise.
542 * symmisc.c: Likewise.
543 * symtab.c: Likewise.
544 * target.c: Likewise.
545 * thread.c: Likewise.
546 * tilegx-linux-nat.c: Likewise.
547 * tilegx-tdep.c: Likewise.
549 * tracepoint.c: Likewise.
550 * tui/tui-command.c: Likewise.
551 * tui/tui-data.c: Likewise.
552 * tui/tui-disasm.c: Likewise.
553 * tui/tui-file.c: Likewise.
554 * tui/tui-layout.c: Likewise.
555 * tui/tui-out.c: Likewise.
556 * tui/tui-regs.c: Likewise.
557 * tui/tui-source.c: Likewise.
558 * tui/tui-stack.c: Likewise.
559 * tui/tui-win.c: Likewise.
560 * tui/tui-windata.c: Likewise.
561 * tui/tui-winsource.c: Likewise.
562 * typeprint.c: Likewise.
563 * ui-file.c: Likewise.
564 * ui-out.c: Likewise.
565 * user-regs.c: Likewise.
567 * v850-tdep.c: Likewise.
568 * valarith.c: Likewise.
569 * valops.c: Likewise.
570 * valprint.c: Likewise.
572 * varobj.c: Likewise.
573 * vax-tdep.c: Likewise.
574 * vaxnbsd-tdep.c: Likewise.
575 * vaxobsd-tdep.c: Likewise.
576 * windows-nat.c: Likewise.
577 * xcoffread.c: Likewise.
578 * xml-support.c: Likewise.
579 * xstormy16-tdep.c: Likewise.
580 * xtensa-linux-nat.c: Likewise.
582 2014-08-07 Gary Benson <gbenson@redhat.com>
584 * common/common-defs.h: Include gdb_assert.h.
585 * aarch64-tdep.c: Do not include gdb_assert.h.
586 * addrmap.c: Likewise.
587 * aix-thread.c: Likewise.
588 * alpha-linux-tdep.c: Likewise.
589 * alpha-mdebug-tdep.c: Likewise.
590 * alphanbsd-tdep.c: Likewise.
591 * amd64-nat.c: Likewise.
592 * amd64-tdep.c: Likewise.
593 * amd64bsd-nat.c: Likewise.
594 * amd64fbsd-nat.c: Likewise.
595 * amd64fbsd-tdep.c: Likewise.
596 * amd64nbsd-nat.c: Likewise.
597 * amd64nbsd-tdep.c: Likewise.
598 * amd64obsd-nat.c: Likewise.
599 * amd64obsd-tdep.c: Likewise.
600 * arch-utils.c: Likewise.
601 * arm-tdep.c: Likewise.
602 * armbsd-tdep.c: Likewise.
604 * bcache.c: Likewise.
605 * bfin-tdep.c: Likewise.
606 * blockframe.c: Likewise.
607 * breakpoint.c: Likewise.
608 * bsd-kvm.c: Likewise.
609 * bsd-uthread.c: Likewise.
610 * buildsym.c: Likewise.
612 * c-lang.c: Likewise.
613 * charset.c: Likewise.
614 * cleanups.c: Likewise.
615 * cli-out.c: Likewise.
616 * cli/cli-decode.c: Likewise.
617 * cli/cli-dump.c: Likewise.
618 * cli/cli-logging.c: Likewise.
619 * cli/cli-script.c: Likewise.
620 * cli/cli-utils.c: Likewise.
621 * coffread.c: Likewise.
622 * common/common-utils.c: Likewise.
623 * common/queue.h: Likewise.
624 * common/signals.c: Likewise.
625 * common/vec.h: Likewise.
626 * complaints.c: Likewise.
627 * completer.c: Likewise.
628 * corelow.c: Likewise.
629 * cp-abi.c: Likewise.
630 * cp-name-parser.y: Likewise.
631 * cp-namespace.c: Likewise.
632 * cp-support.c: Likewise.
633 * cris-tdep.c: Likewise.
634 * dbxread.c: Likewise.
635 * dictionary.c: Likewise.
636 * doublest.c: Likewise.
638 * dummy-frame.c: Likewise.
639 * dwarf2-frame-tailcall.c: Likewise.
640 * dwarf2-frame.c: Likewise.
641 * dwarf2expr.c: Likewise.
642 * dwarf2loc.c: Likewise.
643 * dwarf2read.c: Likewise.
645 * event-loop.c: Likewise.
646 * exceptions.c: Likewise.
647 * expprint.c: Likewise.
648 * f-valprint.c: Likewise.
649 * fbsd-nat.c: Likewise.
650 * findvar.c: Likewise.
651 * frame-unwind.c: Likewise.
653 * frv-tdep.c: Likewise.
655 * gdb-dlfcn.c: Likewise.
656 * gdb_bfd.c: Likewise.
657 * gdbarch.c: Likewise.
658 * gdbarch.sh: Likewise.
659 * gdbtypes.c: Likewise.
660 * gnu-nat.c: Likewise.
661 * gnu-v3-abi.c: Likewise.
662 * go-lang.c: Likewise.
663 * guile/scm-exception.c: Likewise.
664 * guile/scm-gsmob.c: Likewise.
665 * guile/scm-lazy-string.c: Likewise.
666 * guile/scm-math.c: Likewise.
667 * guile/scm-pretty-print.c: Likewise.
668 * guile/scm-safe-call.c: Likewise.
669 * guile/scm-utils.c: Likewise.
670 * guile/scm-value.c: Likewise.
671 * h8300-tdep.c: Likewise.
672 * hppa-hpux-nat.c: Likewise.
673 * hppa-tdep.c: Likewise.
674 * hppanbsd-tdep.c: Likewise.
675 * hppaobsd-tdep.c: Likewise.
676 * i386-darwin-nat.c: Likewise.
677 * i386-darwin-tdep.c: Likewise.
678 * i386-nto-tdep.c: Likewise.
679 * i386-tdep.c: Likewise.
680 * i386bsd-nat.c: Likewise.
681 * i386fbsd-tdep.c: Likewise.
682 * i386gnu-nat.c: Likewise.
683 * i386nbsd-tdep.c: Likewise.
684 * i386obsd-tdep.c: Likewise.
685 * i387-tdep.c: Likewise.
686 * ia64-libunwind-tdep.c: Likewise.
687 * ia64-tdep.c: Likewise.
688 * inf-ptrace.c: Likewise.
689 * inf-ttrace.c: Likewise.
690 * infcall.c: Likewise.
691 * infcmd.c: Likewise.
692 * infrun.c: Likewise.
693 * inline-frame.c: Likewise.
694 * interps.c: Likewise.
695 * jv-lang.c: Likewise.
696 * jv-typeprint.c: Likewise.
697 * linux-fork.c: Likewise.
698 * linux-nat.c: Likewise.
699 * linux-thread-db.c: Likewise.
700 * m32c-tdep.c: Likewise.
701 * m32r-linux-nat.c: Likewise.
702 * m32r-tdep.c: Likewise.
703 * m68k-tdep.c: Likewise.
704 * m68kbsd-nat.c: Likewise.
705 * m68kbsd-tdep.c: Likewise.
706 * m88k-tdep.c: Likewise.
707 * machoread.c: Likewise.
708 * macroexp.c: Likewise.
709 * macrotab.c: Likewise.
711 * mdebugread.c: Likewise.
712 * memory-map.c: Likewise.
713 * mep-tdep.c: Likewise.
714 * mi/mi-common.c: Likewise.
715 * microblaze-tdep.c: Likewise.
716 * mingw-hdep.c: Likewise.
717 * mips-linux-nat.c: Likewise.
718 * mips-linux-tdep.c: Likewise.
719 * mips-tdep.c: Likewise.
720 * mips64obsd-tdep.c: Likewise.
721 * mipsnbsd-tdep.c: Likewise.
722 * mn10300-linux-tdep.c: Likewise.
723 * mn10300-tdep.c: Likewise.
724 * moxie-tdep.c: Likewise.
725 * mt-tdep.c: Likewise.
726 * nat/linux-btrace.c: Likewise.
727 * nat/linux-osdata.c: Likewise.
728 * nat/linux-ptrace.c: Likewise.
729 * nat/mips-linux-watch.c: Likewise.
730 * nios2-linux-tdep.c: Likewise.
731 * nios2-tdep.c: Likewise.
732 * objc-lang.c: Likewise.
733 * objfiles.c: Likewise.
734 * obsd-nat.c: Likewise.
735 * opencl-lang.c: Likewise.
738 * ppc-linux-nat.c: Likewise.
739 * ppc-sysv-tdep.c: Likewise.
740 * ppcfbsd-nat.c: Likewise.
741 * ppcfbsd-tdep.c: Likewise.
742 * ppcnbsd-nat.c: Likewise.
743 * ppcnbsd-tdep.c: Likewise.
744 * ppcobsd-nat.c: Likewise.
745 * ppcobsd-tdep.c: Likewise.
746 * printcmd.c: Likewise.
747 * procfs.c: Likewise.
748 * prologue-value.c: Likewise.
749 * psymtab.c: Likewise.
750 * python/py-lazy-string.c: Likewise.
751 * python/py-value.c: Likewise.
752 * regcache.c: Likewise.
753 * reggroups.c: Likewise.
754 * registry.c: Likewise.
755 * remote-sim.c: Likewise.
756 * remote.c: Likewise.
757 * rs6000-aix-tdep.c: Likewise.
758 * rs6000-tdep.c: Likewise.
759 * s390-linux-tdep.c: Likewise.
760 * score-tdep.c: Likewise.
761 * ser-base.c: Likewise.
762 * ser-mingw.c: Likewise.
763 * sh-tdep.c: Likewise.
764 * sh64-tdep.c: Likewise.
765 * solib-darwin.c: Likewise.
766 * solib-spu.c: Likewise.
767 * solib-svr4.c: Likewise.
768 * source.c: Likewise.
769 * sparc-nat.c: Likewise.
770 * sparc-sol2-tdep.c: Likewise.
771 * sparc-tdep.c: Likewise.
772 * sparc64-sol2-tdep.c: Likewise.
773 * sparc64-tdep.c: Likewise.
774 * sparc64fbsd-tdep.c: Likewise.
775 * sparc64nbsd-tdep.c: Likewise.
776 * sparc64obsd-tdep.c: Likewise.
777 * sparcnbsd-tdep.c: Likewise.
778 * sparcobsd-tdep.c: Likewise.
779 * spu-multiarch.c: Likewise.
780 * spu-tdep.c: Likewise.
781 * stabsread.c: Likewise.
783 * symfile.c: Likewise.
784 * symtab.c: Likewise.
785 * target-descriptions.c: Likewise.
786 * target-memory.c: Likewise.
787 * target.c: Likewise.
788 * tic6x-linux-tdep.c: Likewise.
789 * tic6x-tdep.c: Likewise.
790 * tilegx-linux-nat.c: Likewise.
791 * tilegx-tdep.c: Likewise.
793 * tramp-frame.c: Likewise.
794 * tui/tui-out.c: Likewise.
795 * tui/tui-winsource.c: Likewise.
796 * ui-out.c: Likewise.
797 * user-regs.c: Likewise.
799 * v850-tdep.c: Likewise.
800 * valops.c: Likewise.
802 * varobj.c: Likewise.
803 * vax-nat.c: Likewise.
804 * xml-syscall.c: Likewise.
805 * xml-tdesc.c: Likewise.
806 * xstormy16-tdep.c: Likewise.
807 * xtensa-linux-nat.c: Likewise.
808 * xtensa-tdep.c: Likewise.
810 2014-08-07 Gary Benson <gbenson@redhat.com>
812 * common/common-defs.h: Include common-utils.h.
813 * defs.h: Do not include common-utils.h.
814 * common/gdb_assert.h: Likewise.
815 * darwin-nat.h: Likewise.
816 * nat/linux-btrace.c: Likewise.
817 * target/waitstatus.h: Likewise.
819 2014-08-07 Gary Benson <gbenson@redhat.com>
821 * common/common-defs.h: Include ptid.h.
822 * defs.h: Do not include ptid.h.
823 * inferior.h: Likewise.
824 * infrun.h: Likewise.
825 * nat/linux-btrace.h: Likewise.
826 * nat/linux-osdata.h: Likewise.
827 * target/waitstatus.h: Likewise.
829 2014-08-07 Gary Benson <gbenson@redhat.com>
831 * common/common-defs.h: Include gdb_locale.h.
832 * defs.h: Do not include gdb_locale.h.
834 2014-08-07 Gary Benson <gbenson@redhat.com>
836 * common/common-defs.h: Include gdb/signals.h.
837 * defs.h: Do not include gdb/signals.h.
839 2014-08-07 Gary Benson <gbenson@redhat.com>
841 * common/common-defs.h: Include pathmax.h.
842 * defs.h: Do not include pathmax.h.
844 2014-08-07 Gary Benson <gbenson@redhat.com>
846 * common/common-defs.h: Include libiberty.h.
847 * defs.h: Do not include libiberty.h.
848 * common/queue.h: Likewise.
849 * cp-name-parser.y: Likewise.
850 * mi/mi-cmd-catch.c: Likewise.
851 * python/python.c: Likewise.
853 2014-08-07 Gary Benson <gbenson@redhat.com>
855 * common/common-defs.h: Include ansidecl.h.
856 * defs.h: Do not include ansidecl.h.
857 * common/buffer.h: Likewise.
858 * common/common-utils.h: Likewise.
860 2014-08-07 Gary Benson <gbenson@redhat.com>
862 * common/common-defs.h: Include stddef.h.
863 * defs.h: Do not include stddef.h.
864 * common/common-utils.h: Likewise.
865 * amd64fbsd-nat.c: Likewise.
866 * bcache.c: Likewise.
867 * charset.c: Likewise.
868 * common/buffer.h: Likewise.
869 * common/vec.h: Likewise.
870 * i386bsd-nat.c: Likewise.
871 * nat/linux-btrace.h: Likewise.
872 * ppcfbsd-nat.c: Likewise.
873 * ppcnbsd-tdep.h: Likewise.
874 * ppcobsd-nat.c: Likewise.
875 * ppcobsd-tdep.h: Likewise.
876 * python/py-gdb-readline.c: Likewise.
878 2014-08-07 Gary Benson <gbenson@redhat.com>
880 * common/common-defs.h: Include stdarg.h.
881 * defs.h: Do not include stdarg.h.
882 * ada-lang.c: Likewise.
883 * common/common-utils.h: Likewise.
884 * guile/scm-string.c: Likewise.
885 * guile/scm-utils.c: Likewise.
886 * m32c-tdep.c: Likewise.
888 2014-08-07 Gary Benson <gbenson@redhat.com>
890 * common/common-defs.h: Include stdlib.h.
891 * defs.h: Do not include stdlib.h.
892 * addrmap.c: Likewise.
893 * bcache.c: Likewise.
894 * common/buffer.c: Likewise.
895 * common/common-utils.c: Likewise.
896 * cp-name-parser.y: Likewise.
897 * go32-nat.c: Likewise.
898 * mn10300-linux-tdep.c: Likewise.
899 * nat/linux-osdata.c: Likewise.
900 * tui/tui.c: Likewise.
901 * windows-nat.c: Likewise.
903 2014-08-07 Gary Benson <gbenson@redhat.com>
905 * common/common-defs.h: Include stdio.h.
906 * defs.h: Do not include stdio.h.
907 * ada-lang.c: Likewise.
908 * common/buffer.c: Likewise.
909 * common/common-utils.c: Likewise.
910 * cp-name-parser.y: Likewise.
911 * gnu-nat.c: Likewise.
912 * go32-nat.c: Likewise.
913 * i386gnu-nat.c: Likewise.
914 * proc-api.c: Likewise.
915 * proc-events.c: Likewise.
916 * proc-flags.c: Likewise.
917 * proc-why.c: Likewise.
918 * python/python-internal.h: Likewise.
919 * target-memory.c: Likewise.
920 * tui/tui-io.c: Likewise.
921 * tui/tui.c: Likewise.
923 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
925 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
926 (scan_dyntag_auxv): Same.
928 2014-08-06 Yao Qi <yao@codesourcery.com>
930 * amd64-linux-nat.c: Remove duplicated include
932 * i386-linux-nat.c: Likewise.
934 2014-08-06 Yao Qi <yao@codesourcery.com>
936 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
937 operand" with "Special opcode" in comments.
939 2014-08-05 Gary Benson <gbenson@redhat.com>
941 * interps.c (initialize_interps): Remove prototype.
942 (interpreter_initialized): Remove static global.
943 (interp_add): Do not call initialize_interps.
944 (initialize_interps): Remove function.
946 2014-08-05 Gary Benson <gbenson@redhat.com>
948 * utils.c (vwarning): Remove spurious va_end.
950 2014-08-05 Alan Modra <amodra@gmail.com>
952 * charset.c (convert_between_encodings): Cast result of obstack_base.
953 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
954 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
955 (read_unwind_info): Use size_t for some locals.
956 * jit.c (finalize_symtab): Likewise.
957 * utils.c (hashtab_obstack_allocate): Likewise.
958 * symmisc.c (print_objfile_statistics): Update format strings.
960 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
962 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
963 (Changes in GDB 7.8): ... here.
965 2014-08-04 Tom Tromey <tromey@redhat.com>
967 * target.c (set_targetdebug): New function.
968 (initialize_targets): Pass set_targetdebug when creating "set
971 2014-08-01 Joel Brobecker <brobecker@adacore.com>
973 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
974 if detecting a variable-sized field that is not the last field.
975 Fix struct type length computation.
977 2014-08-01 Joel Brobecker <brobecker@adacore.com>
979 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
982 2014-08-01 Joel Brobecker <brobecker@adacore.com>
984 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
985 Remove "+ 8" offset in computation of CHAIN_VMA.
987 2014-07-31 Doug Evans <dje@google.com>
989 * inflow.c (child_terminal_inferior): Add comment.
990 (child_terminal_ours_for_output): Add comment.
991 (child_terminal_ours): Add comment.
992 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
993 (linux_nat_terminal_ours): Add comment.
995 2014-07-31 Gary Benson <gbenson@redhat.com>
997 * common/btrace-common.h: Do not include defs.h or server.h.
998 * nat/mips-linux-watch.h: Likewise.
999 * gdb-dlfcn.h: Do not include defs.h.
1000 * tracefile.h: Likewise.
1002 2014-07-30 Roland McGrath <mcgrathr@google.com>
1004 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1006 2014-07-30 Tom Tromey <tromey@redhat.com>
1008 * bsd-kvm.c (bsd_kvm_open): Constify.
1009 * corelow.c (core_open): Constify.
1010 * ctf.c (ctf_open): Constify.
1011 * dbug-rom.c (dbug_open): Constify.
1012 * exec.c (exec_open): Constify.
1013 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1014 * microblaze-rom.c (picobug_open): Constify.
1015 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1017 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1018 * record-btrace.c (record_btrace_open): Constify.
1019 * record-full.c (record_full_core_open_1, record_full_open_1)
1020 (record_full_open): Constify.
1021 * remote-m32r-sdi.c (m32r_open): Constify.
1022 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1023 (rockhopper_open, lsi_open): Constify.
1024 * remote-sim.c (gdbsim_open): Constify.
1025 * remote.c (remote_open, extended_remote_open, remote_open_1):
1027 * target.h (struct target_ops) <to_open>: Make "arg" const.
1028 * tracefile-tfile.c (tfile_open): Constify.
1030 2014-07-30 Tom Tromey <tromey@redhat.com>
1032 * breakpoint.c (map_breakpoint_numbers): Update.
1033 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1034 (get_number_const): New function.
1035 (get_number): Rewrite using get_number_const.
1036 (init_number_or_range): Make "string" const.
1037 (number_is_in_list): Make "list" const.
1038 * cli/cli-utils.h (get_number_const): Declare.
1039 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1040 (init_number_or_range, number_is_in_list): Update.
1041 * printcmd.c (map_display_numbers): Update.
1042 * value.c (value_from_history_ref): Constify.
1043 * value.h (value_from_history_ref): Update.
1045 2014-07-30 Tom Tromey <tromey@redhat.com>
1047 * corefile.c (hook_type, call_extra_exec_file_hooks)
1048 (specify_exec_file_hook): Constify.
1049 * exec.c (exec_file_attach): Make "filename" const.
1050 * gdbcore.h (deprecated_exec_file_display_hook)
1051 (specify_exec_file_hook, exec_file_attach): Constify.
1052 * main.c (captured_main): Use catch_command_errors_const.
1054 2014-07-30 Tom Tromey <tromey@redhat.com>
1056 * target.c (open_target): New function.
1057 (add_target_with_completer, add_deprecated_target_alias): Use
1058 set_cmd_sfunc, set_cmd_context.
1059 (debug_to_open): Remove.
1060 (setup_target_debug): Update.
1062 2014-07-30 Yao Qi <yao@codesourcery.com>
1064 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1066 * parse.c (exp_iterate): Update comments.
1068 2014-07-30 Gary Benson <gbenson@redhat.com>
1070 * common/common-defs.h: New file.
1071 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1072 * defs.h: Include common-defs.h.
1073 Do not include config.h or build-gnulib/config.h.
1075 2014-07-30 Gary Benson <gbenson@redhat.com>
1077 * common/common-utils.h: Do not include config.h.
1078 * nat/linux-btrace.h: Likewise.
1080 2014-07-30 Gary Benson <gbenson@redhat.com>
1082 * btrace.c: Include defs.h.
1083 * common/ptid.c: Include defs.h or server.h as appropriate.
1084 * nat/mips-linux-watch.c: Likewise.
1086 2014-07-29 Tom Tromey <tromey@redhat.com>
1088 * target.c (target_is_pushed): Simplify.
1090 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1094 2014-07-29 Yao Qi <yao@codesourcery.com>
1097 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1099 2014-07-28 Doug Evans <xdje42@gmail.com>
1102 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1103 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1106 2014-07-28 Will Newton <will.newton@linaro.org>
1108 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1109 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1110 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1111 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1112 (THUMB2_EABI_SYSCALL): Likewise.
1113 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1115 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1116 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1118 2014-07-27 Doug Evans <xdje42@gmail.com>
1120 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1122 2014-07-27 Doug Evans <xdje42@gmail.com>
1124 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1126 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1127 Doug Evans <xdje42@gmail.com>
1130 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1131 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1132 * configure.ac: Try to use guild to compile an scm file, if it fails
1133 then disable guile support.
1134 * configure: Regenerate.
1135 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1137 (GUILE_COMPILED_FILES): New variable.
1138 (GUILE_FILES) Update.
1139 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1140 (stamp-guile): Compile scm files.
1141 * guile/guile.c (boot_guile_support): New function.
1142 (standard_throw_args_p): New function.
1143 (print_standard_throw_error, print_throw_error): New functions.
1144 (handle_boot_error): New function.
1145 (initialize_scheme_side): Rewrite to call boot_guile_support.
1146 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1147 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1149 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1150 Doug Evans <xdje42@gmail.com>
1153 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1154 * guile/lib/gdb/support.scm: New file.
1155 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1156 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1158 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1160 (%assert-type): Ditto, and renamed to assert-type.
1161 (%exception-print-style): Delete.
1163 2014-07-26 Doug Evans <xdje42@gmail.com>
1166 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1167 * configure: Regenerate.
1168 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1170 (PYTHON_FILES): New variable.
1171 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1172 (GUILE_FILES): New variable.
1173 (stamp-python, install-python, uninstall-python): Handle empty
1175 (stamp-guile, install-guile, uninstall-guile): Ditto.
1177 2014-07-26 Doug Evans <xdje42@gmail.com>
1180 * guile/lib/gdb.scm (pretty-printers): Export.
1181 (set-pretty-printers!): Export.
1182 * guile/lib/gdb/printing.scm (gdb module): Update.
1183 (prepend-pretty-printer!, append-pretty-printer!): Update.
1184 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1185 (pretty_printer_list_var): Delete.
1186 (pretty_printer_list): New static global.
1187 (gdbscm_pretty_printers): New function.
1188 (gdbscm_set_pretty_printers_x): New function.
1189 (ppscm_find_pretty_printer_from_gdb): Update.
1190 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1191 (gdbscm_initialize_pretty_printers): Update.
1193 2014-07-26 Doug Evans <xdje42@gmail.com>
1196 * configure.ac: Add check for header gc/gc.h.
1197 Add check for function setenv.
1198 * configure: Regenerate.
1199 * config.in: Regenerate.
1200 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1202 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1204 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1205 variation in gdbarch matching.
1207 2014-07-25 Tom Tromey <tromey@redhat.com>
1209 * exec.c (using_exec_ops): Remove.
1210 (exec_close_1): Update. Remove extraneous block, reindent.
1211 (add_target_sections): Use target_is_pushed.
1213 2014-07-25 Pedro Alves <palves@redhat.com>
1215 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1216 * monitor.c (monitor_create_inferior): Likewise.
1217 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1218 * remote-sim.c (gdbsim_create_inferior): Likewise.
1219 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1220 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1221 * windows-nat.c (do_initial_windows_stuff): Likewise.
1223 2014-07-25 Pedro Alves <palves@redhat.com>
1225 * NEWS: Mention signal passing and "signal" command changes.
1226 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1228 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1230 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1231 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1232 (jump_command): Adjust clear_proceed_status call.
1233 (signal_command): Warn if other thread that are resumed have
1234 signals that will be delivered. Adjust clear_proceed_status call.
1235 (until_next_command, finish_command)
1236 (proceed_after_attach_callback, attach_command_post_wait)
1237 (attach_command): Adjust clear_proceed_status call.
1238 * infrun.c (proceed_after_vfork_done): Likewise.
1239 (proceed_after_attach_callback): Adjust comment.
1240 (clear_proceed_status_thread): Clear stop_signal if not in pass
1242 (clear_proceed_status_callback): Delete.
1243 (clear_proceed_status): New 'step' parameter. Only clear the
1244 proceed status of threads the command being prepared is about to
1246 (proceed): If passed in an explicit signal, override stop_signal
1247 with it. Don't pass the last stop signal to the thread we're
1249 (init_wait_for_inferior): Adjust clear_proceed_status call.
1250 (switch_back_to_stepped_thread): Clear the signal if it should not
1252 * infrun.h (clear_proceed_status): New 'step' parameter.
1253 (user_visible_resume_ptid): Add comment.
1254 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1255 signal is in pass state.
1256 * remote.c (append_pending_thread_resumptions): Likewise.
1257 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1259 2014-07-25 Tom Tromey <tromey@redhat.com>
1261 * target.h (target_stopped_data_address)
1262 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1265 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1267 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1269 (avr_pointer_to_address): Likewise.
1271 2014-07-24 Tom Tromey <tromey@redhat.com>
1273 * monitor.c (compile_pattern): Update.
1274 * target.h (struct target_ops) <to_shortname, to_longname,
1277 2014-07-24 Tom Tromey <tromey@redhat.com>
1279 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1280 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1281 (add_info_alias, add_com): Make "doc" const.
1282 (print_doc_line): Make "str" const.
1283 (delete_cmd): Update.
1284 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1285 (print_doc_line): Update.
1286 * cli/cli-script.c (document_command): Update.
1287 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1288 (add_com, add_info, add_info_alias): Update.
1289 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1290 * python/py-cmd.c (cmdpy_destroyer): Update.
1292 2014-07-24 Tom Tromey <tromey@redhat.com>
1294 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1295 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1296 (help_cmd_list): Constify.
1297 (lookup_cmd): Update.
1298 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1300 (help_cmd_list, apropos_cmd): Update.
1301 * cli/cli-script.c (show_user): Update.
1302 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1303 * cli/cli-setshow.h (cmd_show_list): Update.
1304 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1305 (cmd_show_list): Update.
1306 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1307 * python/py-cmd.c (cmdpy_destroyer): Update.
1309 2014-07-24 Tom Tromey <tromey@redhat.com>
1311 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1312 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1314 * command.h (deprecate_cmd): Update.
1315 * maint.c (maintenance_do_deprecate): Add casts.
1317 2014-07-24 Tom Tromey <tromey@redhat.com>
1319 * cli/cli-decode.c (help_cmd): Make parameter "const".
1320 * cli/cli-decode.h (help_cmd): Update.
1322 2014-07-24 Tom Tromey <tromey@redhat.com>
1324 * stack.c (up_silently_base, down_silently_base): Make argument
1327 2014-07-24 Tom Tromey <tromey@redhat.com>
1329 * solib.c (solib_add): Make "pattern" const.
1330 * solib.h (solib_add): Update.
1332 2014-07-24 Tom Tromey <tromey@redhat.com>
1334 * remote.c (remote_serial_open, print_packet, putpkt)
1335 (putpkt_binary): Constify.
1336 * remote.h (putpkt): Update.
1338 2014-07-24 Tom Tromey <tromey@redhat.com>
1340 * monitor.c (monitor_open): Make "args" const.
1341 * monitor.h (monitor_open): Update.
1343 2014-07-24 Tom Tromey <tromey@redhat.com>
1345 * maint.c (match_bfd_flags): Make "string" const.
1346 (print_bfd_section_info): Remove casts.
1347 (print_objfile_section_info): Make "string" const.
1349 2014-07-24 Tom Tromey <tromey@redhat.com>
1351 * inf-child.c (inf_child_open_target): Make "arg" const.
1352 * inf-child.h (inf_child_open_target): Update.
1354 2014-07-24 Tom Tromey <tromey@redhat.com>
1356 * environ.c (unset_in_environ): Make "var" const.
1357 * environ.h (unset_in_environ): Update.
1359 2014-07-24 Tom Tromey <tromey@redhat.com>
1361 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1363 (scan_filename_with_cleanup): Likewise.
1364 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1365 Make arguments const.
1366 (restore_command): Update.
1368 2014-07-24 Pedro Alves <palves@redhat.com>
1370 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1372 2014-07-24 Tom Tromey <tromey@redhat.com>
1373 Gary Benson <gbenson@redhat.com>
1375 * nat/linux-ptrace.c (additional_flags): New global.
1376 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1377 additional_flags; don't check GDBSERVER.
1378 (linux_ptrace_set_additional_flags): New function.
1379 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1381 * linux-nat.c (_initialize_linux_nat): Call
1382 linux_ptrace_set_additional_flags.
1384 2014-07-24 Tom Tromey <tromey@redhat.com>
1386 * make-target-delegates (munge_type, write_debugmethod): New
1388 (debug_names): New global.
1389 ($TARGET_DEBUG_PRINTER): New global.
1390 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1392 Write debug methods. Generate init_debug_target.
1393 * target-debug.h: New file.
1394 * target-delegates.c: Rebuild.
1395 * target.c: Include target-debug.h.
1396 (debug_target): Hoist definition.
1397 (target_kill, target_get_section_table, target_memory_map)
1398 (target_flash_erase, target_flash_done, target_detach)
1399 (target_disconnect, target_wait, target_resume)
1400 (target_pass_signals, target_program_signals, target_follow_fork)
1401 (target_mourn_inferior, target_search_memory)
1402 (target_thread_address_space, target_close)
1403 (target_find_new_threads, target_core_of_thread)
1404 (target_verify_memory, target_insert_mask_watchpoint)
1405 (target_remove_mask_watchpoint): Remove targetdebug code.
1406 (debug_to_post_attach, debug_to_prepare_to_store)
1407 (debug_to_files_info, debug_to_insert_breakpoint)
1408 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1409 (debug_to_region_ok_for_hw_watchpoint)
1410 (debug_to_can_accel_watchpoint_condition)
1411 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1412 (debug_to_watchpoint_addr_within_range)
1413 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1414 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1415 (debug_to_terminal_init, debug_to_terminal_inferior)
1416 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1417 (debug_to_terminal_save_ours, debug_to_terminal_info)
1418 (debug_to_load, debug_to_post_startup_inferior)
1419 (debug_to_insert_fork_catchpoint)
1420 (debug_to_remove_fork_catchpoint)
1421 (debug_to_insert_vfork_catchpoint)
1422 (debug_to_remove_vfork_catchpoint)
1423 (debug_to_insert_exec_catchpoint)
1424 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1425 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1426 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1427 (setup_target_debug): Call init_debug_target.
1428 * target.h (TARGET_DEBUG_PRINTER): New macro.
1429 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1430 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1432 2014-07-24 Gary Benson <gbenson@redhat.com>
1434 * exceptions.h (throw_vfatal): Renamed to...
1435 (throw_vquit): New declaration.
1436 (throw_quit): Likewise.
1437 * exceptions.c (throw_vfatal): Renamed to...
1438 (throw_vquit): New function.
1439 (throw_quit): Likewise.
1440 (throw_error): Call throw_verror rather than throw_it.
1441 * utils.h (vfatal): Removed.
1443 * utils.c (vfatal): Removed.
1445 (internal_verror): Replaced call to fatal with call to throw_quit.
1446 (quit): Replaced calls to fatal with calls to throw_quit.
1448 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1450 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1453 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1455 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1456 less than zero in conditional expression.
1458 2014-07-23 Tom Tromey <tromey@redhat.com>
1460 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1461 ($INTRO_PART): Don't match whitespace.
1462 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1464 ($METHOD): Add $METHOD_TRAILER.
1466 (scan_target_h): New sub.
1467 Change main loop not to collect state.
1468 * target-delegates.c: Rebuild.
1470 2014-07-23 Gary Benson <gbenson@redhat.com>
1472 * cp-support.c (gdb_demangle): Fix build on systems without
1475 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1477 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1478 for reference entry value target data value.
1480 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1483 value_available_contents_eq.
1485 2014-07-22 Pedro Alves <palves@redhat.com>
1487 * value.c (allocate_optimized_out_value): Don't mark value as
1490 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1492 * MAINTAINERS (Write After Approval): Update my email address.
1494 2014-07-20 Doug Evans <dje@google.com>
1497 * remote.c (putpkt_binary): Add text to error message.
1499 2014-07-20 Yao Qi <yao@codesourcery.com>
1501 * eval.c: Remove "Chill" from comments.
1502 * gdbtypes.h: Likewise.
1503 * symtab.h: Likewise.
1505 2014-07-20 Yao Qi <yao@codesourcery.com>
1507 * std-operator.def: Update comments to TERNOP_SLICE.
1509 2014-07-20 Yao Qi <yao@codesourcery.com>
1511 * std-operator.def: Remove BINOP_RANGE.
1512 * breakpoint.c (watchpoint_exp_is_const): Update.
1513 * expprint.c (dump_subexp_body_standard): Likewise.
1514 * eval.c (init_array_element): Remove dead code.
1515 (evaluate_subexp_standard): Likewise.
1517 2014-07-20 Yao Qi <yao@codesourcery.com>
1519 * std-operator.def: Remove BINOP_IN.
1520 * breakpoint.c (watchpoint_exp_is_const): Update.
1521 * eval.c (evaluate_subexp_standard): Likewise.
1522 * expprint.c (dump_subexp_body_standard): Likewise.
1524 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1526 * microblaze-tdep.c (microblaze_register_names): Add
1527 the rshr and rslr register names.
1528 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1529 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1530 Use of tdesc_numbered_register. Use of
1531 microblaze_register_g_packet_guesses. Use of
1532 tdesc_use_registers. Use of set_gdbarch_register_type.
1533 (microblaze_register_g_packet_guesses): New.
1534 * microblaze-tdep.h (microblaze_reg_num): Add
1535 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1536 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1537 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1538 * features/microblaze-core.xml: New file.
1539 * features/microblaze-stack-protect.xml: New file.
1540 * features/microblaze-with-stack-protect.c: New file.
1541 * features/microblaze-with-stack-protect.xml: New file.
1542 * features/microblaze.xml: New file.
1543 * features/microblaze.c: New file.
1544 * features/Makefile (microblaze-with-stack-protect): Add
1545 microblaze-with-stack-protect microblaze and microblaze-expedite.
1546 * regformats/microblaze-with-stack-protect.dat: New file.
1547 * regformats/microblaze.dat: New file.
1548 * doc/gdb.texinfo (MicroBlaze Features): Added.
1550 2014-07-18 Tom Tromey <tromey@redhat.com>
1552 * exec.c (exec_ops): Now static.
1553 * exec.h (exec_ops): Don't declare.
1555 2014-07-18 Tom Tromey <tromey@redhat.com>
1557 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1558 to find_target_beneath.
1559 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1560 find_target_beneath.
1561 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1563 2014-07-18 Tom Tromey <tromey@redhat.com>
1566 * utils.c (quit): Use target_supports_terminal_ours.
1567 * target.h (target_supports_terminal_ours): Declare.
1568 * target.c (target_supports_delete_record): Don't check
1569 to_delete_record against NULL.
1570 (target_supports_terminal_ours): New function.
1572 2014-07-18 Tom Tromey <tromey@redhat.com>
1575 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1576 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1577 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1578 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1579 * windows-nat.c (windows_xfer_partial): Always delegate.
1580 * record-btrace.c (record_btrace_xfer_partial): Simplify
1582 (record_btrace_fetch_registers, record_btrace_store_registers)
1583 (record_btrace_prepare_to_store, record_btrace_resume)
1584 (record_btrace_wait, record_btrace_find_new_threads)
1585 (record_btrace_thread_alive): Likewise.
1586 * procfs.c (procfs_xfer_partial): Always delegate.
1587 * corelow.c (core_xfer_partial): Always delegate.
1588 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1590 2014-07-18 Tom Tromey <tromey@redhat.com>
1592 * exec.c (exec_make_note_section): Move earlier.
1594 2014-07-17 Doug Evans <dje@google.com>
1597 * maint.c (count_symtabs_and_blocks): Handle NULL
1598 current_program_space.
1599 (report_command_stats): Check global enabled flag in addition to
1600 recorded enabled flag.
1601 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1603 2014-07-16 Pedro Alves <palves@redhat.com>
1605 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1607 2014-07-16 Tom Tromey <tromey@redhat.com>
1609 * target.h (struct target_ops) <to_delete_record>: Reformat
1612 2014-07-16 Tom Tromey <tromey@redhat.com>
1614 * target-delegates.c: Rebuild.
1616 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1618 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1619 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1620 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1621 (avr_pointer_to_address): Likewise.
1622 (avr_address_class_type_flags): New function.
1623 (avr_address_class_type_flags_to_name): Likewise.
1624 (avr_address_class_name_to_type_flags): Likewise.
1625 (avr_gdbarch_init): Set address_class_type_flags,
1626 address_class_type_flags_to_name and
1627 address_class_name_to_type_flags.
1629 2014-07-15 Pedro Alves <palves@redhat.com>
1631 * linux-nat.c (kill_callback): Save errno and work with saved
1634 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1636 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1638 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1640 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1641 breakpoint support correctly.
1643 2014-07-14 Pedro Alves <palves@redhat.com>
1645 * utils.c (prompt_for_continue): Call target_terminal_ours.
1647 2014-07-14 Pedro Alves <palves@redhat.com>
1649 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1650 catch_errors. Don't re-enable stdin or notify observers where,
1652 (fetch_inferior_event_wrapper): Delete.
1654 2014-07-14 Pedro Alves <palves@redhat.com>
1657 * top.c: Include "inf-loop.h".
1658 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1660 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1662 (gdb_readline_wrapper): Store whether the target is async, and
1665 2014-07-14 Pedro Alves <palves@redhat.com>
1668 * top.c (gdb_readline_wrapper_line): Tweak comment.
1669 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1670 the input handler callback.
1672 2014-07-14 Pedro Alves <palves@redhat.com>
1675 * main.c: Include event-top.h.
1676 (handle_command_errors): New function.
1677 (catch_command_errors, catch_command_errors_const): Use it.
1679 2014-07-14 Pedro Alves <palves@redhat.com>
1681 * exceptions.c (catch_command_errors, catch_command_errors_const):
1683 * exceptions.h (catch_command_errors_ftype)
1684 (catch_command_errors_const_ftype): Moved to main.c.
1685 (catch_command_errors, catch_command_errors_const): Delete
1687 * main.c (catch_command_errors_ftype)
1688 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1689 (catch_command_errors, catch_command_errors_const)): Moved here
1690 from exceptions.c and make static.
1692 2014-07-14 Pedro Alves <palves@redhat.com>
1694 * exceptions.c (print_any_exception): Delete.
1695 (catch_exceptions_with_msg): Use exception_print instead of
1696 print_any_exception.
1697 (catch_errors): Use exception_fprintf instead of
1698 print_any_exception.
1699 (catch_command_errors, catch_command_errors_const): Use
1700 exception_print instead of print_any_exception.
1702 2014-07-14 Pedro Alves <palves@redhat.com>
1704 * infcall.c (run_inferior_call): Set 'sync_execution' while
1705 running the inferior call.
1707 2014-07-14 Pedro Alves <palves@redhat.com>
1709 * value.c (value_contents_equal): Delete function.
1710 * value.h (value_contents_equal): Delete declaration.
1712 2014-07-14 Tom Tromey <tromey@redhat.com>
1715 * gdbtypes.c (is_dynamic_type_internal): New function, from
1717 (is_dynamic_type): Rewrite.
1718 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1719 (resolve_dynamic_struct): Likewise.
1720 (resolve_dynamic_type_internal): New function, from
1721 resolve_dynamic_type.
1722 (resolve_dynamic_type): Rewrite.
1724 2014-07-14 Tom Tromey <tromey@redhat.com>
1726 * target.c (target_require_runnable): Also check record_stratum.
1729 2014-07-11 Yao Qi <yao@codesourcery.com>
1731 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1732 thumb_instruction_restores_sp return true.
1734 2014-07-11 Yao Qi <yao@codesourcery.com>
1736 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1737 (thumb_in_function_epilogue_p): Call
1738 thumb_instruction_restores_sp.
1740 2014-07-11 Yao Qi <yao@codesourcery.com>
1742 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1744 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1746 2014-07-11 Gary Benson <gbenson@redhat.com>
1748 * amd64-linux-nat.c (gdbcore.h): Remove include.
1749 (regset.h): Likewise.
1750 (nat/linux-btrace.h): Likewise.
1751 (btrace.h): Likewise.
1752 (gdb_assert.h): Likewise.
1753 (string.h): Likewise.
1754 (sys/uio.h): Likewise.
1755 (sys/debugreg.h): Likewise.
1756 (sys/syscall.h): Likewise.
1757 (sys/procfs.h): Likewise.
1758 (sys/user.h): Likewise.
1759 (asm/ptrace.h): Likewise.
1760 (i386-nat.h): Likewise.
1761 * i386-linux-nat.c (i386-nat.h): Likewise.
1762 (regset.h): Likewise.
1763 (target.h): Likewise.
1764 (linux-nat.h): Likewise.
1765 (nat/linux-btrace.h): Likewise.
1766 (btrace.h): Likewise.
1767 (gdb_assert.h): Likewise.
1768 (string.h): Likewise.
1769 (sys/uio.h): Likewise.
1770 (sys/user.h): Likewise.
1771 (sys/procfs.h): Likewise.
1772 (sys/reg.h): Likewise.
1773 (sys/debugreg.h): Likewise.
1774 (ORIG_EAX): Remove definition.
1776 2014-07-11 Gary Benson <gbenson@redhat.com>
1778 * i386-linux-nat.h: New file.
1779 * x86-linux-nat.h: Likewise.
1780 * x86-linux-nat.c: Likewise.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1782 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1783 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1784 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1785 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1786 (PTRACE_SETREGSET): Likewise.
1787 (arch_lwp_info): Now in x86-linux-nat.c.
1788 (have_ptrace_getregset): Now in x86-linux-nat.h.
1789 (x86_linux_dr_get): Now in x86-linux-nat.c.
1790 (x86_linux_dr_set): Likewise.
1791 (x86_linux_dr_get_addr): Likewise.
1792 (x86_linux_dr_get_control): Likewise.
1793 (x86_linux_dr_get_status): Likewise.
1794 (update_debug_registers_callback): Likewise.
1795 (x86_linux_dr_set_control): Likewise.
1796 (x86_linux_dr_set_addr): Likewise.
1797 (x86_linux_prepare_to_resume): Likewise.
1798 (x86_linux_new_thread): Likewise.
1799 (x86_linux_new_fork): Likewise.
1800 (x86_linux_get_thread_area): Likewise.
1801 (super_post_startup_inferior): Likewise.
1802 (x86_linux_child_post_startup_inferior): Likewise.
1803 (AMD64_LINUX_USER64_CS): Likewise.
1804 (AMD64_LINUX_X32_DS): Likewise.
1805 (x86_linux_read_description): Likewise.
1806 (x86_linux_enable_btrace): Likewise.
1807 (x86_linux_disable_btrace): Likewise.
1808 (x86_linux_teardown_btrace): Likewise.
1809 (x86_linux_read_btrace): Likewise.
1810 (x86_linux_create_target): Likewise.
1811 (x86_linux_add_target): Likewise.
1812 * i386-linux-nat.c (x86-linux-nat.h): New include.
1813 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1814 (PTRACE_SETREGSET): Likewise.
1815 (arch_lwp_info): Now in x86-linux-nat.c.
1816 (have_ptrace_getregset): Now in x86-linux-nat.h.
1817 (x86_linux_dr_get): Now in x86-linux-nat.c.
1818 (x86_linux_dr_set): Likewise.
1819 (x86_linux_dr_get_addr): Likewise.
1820 (x86_linux_dr_get_control): Likewise.
1821 (x86_linux_dr_get_status): Likewise.
1822 (update_debug_registers_callback): Likewise.
1823 (x86_linux_dr_set_control): Likewise.
1824 (x86_linux_dr_set_addr): Likewise.
1825 (x86_linux_prepare_to_resume): Likewise.
1826 (x86_linux_new_thread): Likewise.
1827 (x86_linux_new_fork): Likewise.
1828 (x86_linux_get_thread_area): Likewise.
1829 (super_post_startup_inferior): Likewise.
1830 (x86_linux_child_post_startup_inferior): Likewise.
1831 (AMD64_LINUX_USER64_CS): Likewise.
1832 (AMD64_LINUX_X32_DS): Likewise.
1833 (x86_linux_read_description): Likewise.
1834 (x86_linux_enable_btrace): Likewise.
1835 (x86_linux_disable_btrace): Likewise.
1836 (x86_linux_teardown_btrace): Likewise.
1837 (x86_linux_read_btrace): Likewise.
1838 (x86_linux_create_target): Likewise.
1839 (x86_linux_add_target): Likewise.
1841 2014-07-11 Gary Benson <gbenson@redhat.com>
1843 * amd64-linux-nat.c: Comment and whitespace changes.
1844 * i386-linux-nat.c: Comment and whitespace changes.
1846 2014-07-11 Gary Benson <gbenson@redhat.com>
1848 * amd64-linux-nat.c (x86_linux_create_target): New function.
1849 (x86_linux_add_target): Likewise.
1850 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1851 * i386-linux-nat.c (x86_linux_create_target): New function.
1852 (x86_linux_add_target): Likewise.
1853 (_initialize_i386_linux_nat): Delegate to the above new functions.
1855 2014-07-11 Gary Benson <gbenson@redhat.com>
1857 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1858 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1859 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1860 (ps_get_thread_area): Delegate to the above.
1862 2014-07-11 Gary Benson <gbenson@redhat.com>
1864 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1865 x86_linux_read_description. All uses updated. amd64-specific
1866 code conditionalized. Conditionalized i386-specific code added.
1867 Redundant cast removed.
1868 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1869 x86_linux_read_description. All uses updated. i386-specific
1870 code conditionalized. Conditionalized amd64-specific code added.
1871 One sizeof replaced with the actual type it is describing.
1873 2014-07-11 Gary Benson <gbenson@redhat.com>
1875 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1876 x86_linux_dr_get. All uses updated.
1877 (amd64_linux_dr_set): Renamed to
1878 x86_linux_dr_set. All uses updated.
1879 (amd64_linux_dr_get_addr): Renamed to
1880 x86_linux_dr_get_addr. All uses updated.
1881 (amd64_linux_dr_get_control): Renamed to
1882 x86_linux_dr_get_control. All uses updated.
1883 (amd64_linux_dr_get_status): Renamed to
1884 x86_linux_dr_get_status. All uses updated.
1885 (amd64_linux_dr_set_control): Renamed to
1886 x86_linux_dr_set_control. All uses updated.
1887 (amd64_linux_dr_set_addr): Renamed to
1888 x86_linux_dr_set_addr. All uses updated.
1889 (amd64_linux_prepare_to_resume): Renamed to
1890 x86_linux_prepare_to_resume. All uses updated.
1891 (amd64_linux_new_thread): Renamed to
1892 x86_linux_new_thread. All uses updated.
1893 (amd64_linux_new_fork): Renamed to
1894 x86_linux_new_fork. All uses updated.
1895 (amd64_linux_child_post_startup_inferior): Renamed to
1896 x86_linux_child_post_startup_inferior. All uses updated.
1897 (amd64_linux_enable_btrace): Renamed to
1898 x86_linux_enable_btrace. All uses updated.
1899 (amd64_linux_disable_btrace): Renamed to
1900 x86_linux_disable_btrace. All uses updated.
1901 (amd64_linux_teardown_btrace): Renamed to
1902 x86_linux_teardown_btrace. All uses updated.
1903 (amd64_linux_read_btrace): Renamed to
1904 x86_linux_read_btrace. All uses updated.
1905 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1906 x86_linux_dr_get. All uses updated.
1907 (i386_linux_dr_set): Renamed to
1908 x86_linux_dr_set. All uses updated.
1909 (i386_linux_dr_get_addr): Renamed to
1910 x86_linux_dr_get_addr. All uses updated.
1911 (i386_linux_dr_get_control): Renamed to
1912 x86_linux_dr_get_control. All uses updated.
1913 (i386_linux_dr_get_status): Renamed to
1914 x86_linux_dr_get_status. All uses updated.
1915 (i386_linux_dr_set_control): Renamed to
1916 x86_linux_dr_set_control. All uses updated.
1917 (i386_linux_dr_set_addr): Renamed to
1918 x86_linux_dr_set_addr. All uses updated.
1919 (i386_linux_prepare_to_resume): Renamed to
1920 x86_linux_prepare_to_resume. All uses updated.
1921 (i386_linux_new_thread): Renamed to
1922 x86_linux_new_thread. All uses updated.
1923 (i386_linux_new_fork): Renamed to
1924 x86_linux_new_fork. All uses updated.
1925 (i386_linux_child_post_startup_inferior): Renamed to
1926 x86_linux_child_post_startup_inferior. All uses updated.
1927 (i386_linux_enable_btrace): Renamed to
1928 x86_linux_enable_btrace. All uses updated.
1929 (i386_linux_disable_btrace): Renamed to
1930 x86_linux_disable_btrace. All uses updated.
1931 (i386_linux_teardown_btrace): Renamed to
1932 x86_linux_teardown_btrace. All uses updated.
1933 (i386_linux_read_btrace): Renamed to
1934 x86_linux_read_btrace. All uses updated.
1936 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1938 * remote.c (extended_remote_post_attach): New function.
1939 (init_extended_remote_ops): Install it as to_post_attach method.
1941 2014-07-09 Pedro Alves <palves@redhat.com>
1943 * infcmd.c (attach_command_post_wait): Don't call
1944 target_terminal_inferior here.
1945 (attach_command): Call it here instead.
1947 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1949 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1951 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1952 from varobj.c, with additional checks.
1953 (c_varobj_ops): Fill in is_path_expr_parent field.
1954 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1955 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1957 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1959 (varobj_default_is_path_expr_parent): New function.
1960 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1961 (varobj_default_is_path_expr_parent): Declare new function.
1963 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1965 * infcmd.c (finish_backward): Turn internal error into normal error.
1967 2014-07-07 Pedro Alves <palves@redhat.com>
1970 * remote.c (async_handle_remote_sigint)
1971 (async_handle_remote_sigint_twice): Call
1972 gdb_call_async_signal_handler instead of
1973 mark_async_signal_handler.
1975 2014-07-07 Tom Tromey <tromey@redhat.com>
1977 * target-delegates.c: Rebuild.
1978 * target.c (target_info_record): Remove.
1979 * record.c (info_record_command): Unconditionally call
1981 * target.h (struct target_ops) <to_info_record>: Use
1982 TARGET_DEFAULT_IGNORE.
1983 (target_info_record): Remove.
1985 2014-07-07 Tom Tromey <tromey@redhat.com>
1987 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1988 TARGET_DEFAULT_NORETURN.
1989 * target.c (generic_tls_error): New function.
1990 (target_translate_tls_address): Don't search target stack.
1991 * target-delegates.c: Rebuild.
1992 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1994 * linux-thread-db.c (thread_db_get_thread_local_address):
1995 Unconditionally call beneath target.
1997 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1999 * cli/cli-logging.c (pop_output_files): Assign targerr to
2002 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2004 * MAINTAINERS (Write After Approval): Update my email address.
2006 2014-07-02 Gary Benson <gbenson@redhat.com>
2008 * proc-service.c (ps_xfer_memory): Update comment.
2009 (ps_pstop): Remove unused function.
2010 (ps_pcontinue): Likewise.
2011 (ps_lstop): Likewise.
2012 (ps_lcontinue): Likewise.
2013 (ps_lgetxregsize): Likewise.
2014 (ps_lgetxregs): Likewise.
2015 (ps_lsetxregs): Likewise.
2016 (ps_plog): Likewise.
2017 (ps_ptread): Likewise.
2018 (ps_ptwrite): Likewise.
2020 2014-07-01 Mark Wielaard <mjw@redhat.com>
2022 * dwarf2read.c (add_array_cv_type): New function.
2023 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2024 (read_tag_volatile_type): Likewise.
2026 2014-07-01 Tom Tromey <tromey@redhat.com>
2028 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2029 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2030 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2031 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2032 * command.h (cmd_cfunc_ftype): Move earlier.
2033 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2034 (add_com, add_info): Use cmd_cfunc_ftype.
2036 2014-06-30 Tom Tromey <tromey@redhat.com>
2038 * symtab.c (operator_chars): Make parameters and return type
2040 (file_matches): Make "files" const.
2041 (struct search_symbols_data) <files>: Now const.
2042 (search_symbols): Make "regexp" and "files" parameters const.
2044 (symtab_symbol_info): Remove cast.
2045 (rbreak_command): Update.
2046 * symtab.h (search_symbols): Update.
2048 2014-06-27 Yao Qi <yao@codesourcery.com>
2050 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2051 Change parameter type to 'struct thread_info *'. Caller
2053 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2055 * dummy-frame.c (struct dummy_frame_id): New.
2056 (dummy_frame_id_eq): New function.
2057 (struct dummy_frame) <id>: Change its type to 'struct
2059 (dummy_frame_push): Add parameter ptid and save it in
2061 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2063 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2065 (lookup_dummy_frame): Change parameter type to 'struct
2066 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2067 instead of frame_id_eq.
2068 (dummy_frame_pop): Add parameter ptid. Callers updated.
2069 Update comments. Compose dummy_frame_id and pass it to
2071 (dummy_frame_discard): Add parameter ptid.
2072 (dummy_frame_sniffer): Compose dummy_frame_id and call
2073 dummy_frame_id_eq instead of frame_id_eq.
2074 (fprint_dummy_frames): Print ptid.
2075 * dummy-frame.h: Remove comments.
2076 (dummy_frame_push): Add ptid in declaration.
2077 (dummy_frame_pop, dummy_frame_discard): Likewise.
2079 2014-06-26 Tom Tromey <tromey@redhat.com>
2081 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2082 * command.h (error_no_arg): Update.
2084 2014-06-26 Tom Tromey <tromey@redhat.com>
2086 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2087 (do_show_command): Make "arg" const.
2088 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2090 2014-06-26 Tom Tromey <tromey@redhat.com>
2092 * record-full.c (record_full_get_bookmark): Make "args" const.
2093 (record_full_goto_bookmark): Make "raw_bookmark" const.
2094 * record.c (record_goto): New function.
2095 (cmd_record_goto): Use it. Now static.
2096 * record.h (record_goto): Declare.
2097 (cmd_record_goto): Remove declaration.
2098 * target-delegates.c: Rebuild.
2099 * target.h (struct target_ops) <to_get_bookmark,
2100 to_goto_bookmark>: Make parameter const.
2102 2014-06-26 Tom Tromey <tromey@redhat.com>
2104 * defs.h (generic_load): Update.
2105 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2106 * monitor.c (monitor_load): Make "args" const.
2107 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2108 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2110 (mips_load): Make "file" const.
2111 * remote-sim.c (gdbsim_load): Make "args" const.
2112 * remote.c (remote_load): Make "name" const.
2113 * symfile.c (generic_load): Make "args" const.
2114 * target-delegates.c: Rebuild.
2115 * target.c (target_load): Make "arg" const.
2116 (debug_to_load): Make "args" const.
2117 * target.h (struct target_ops) <to_load>: Make parameter const.
2118 (target_load): Update.
2120 2014-06-26 Tom Tromey <tromey@redhat.com>
2123 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2124 (dwarf2_physname, read_partial_die)
2125 (guess_partial_die_structure_name, fixup_partial_die)
2126 (guess_full_die_structure_name, anonymous_struct_prefix)
2127 (dwarf2_name): Use per-BFD obstack.
2129 2014-06-26 Yao Qi <yao@codesourcery.com>
2131 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2132 dummyframe and this_id into inner block below.
2134 2014-06-26 Yao Qi <yao@codesourcery.com>
2136 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2137 with "signal_pass[0]" in the initialization of signal_pass.
2139 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2141 * record-btrace.c (record_btrace_generating_corefile)
2142 (record_btrace_prepare_to_generate_core)
2143 (record_btrace_done_generating_core): New.
2144 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2145 (record_btrace_store_registers, record_btrace_prepare_to_store):
2146 Forward request when generating a core file.
2147 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2148 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2149 to_done_generating_core.
2151 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2153 * target.h (target_ops) <to_prepare_to_generate_core>
2154 <to_done_generating_core>: New.
2155 (target_prepare_to_generate_core, target_done_generating_core): New.
2156 * target.c (target_prepare_to_generate_core)
2157 (target_done_generating_core): New.
2158 * target-delegates.c: Regenerate.
2159 * gcore.c: (write_gcore_file): Rename to ...
2160 (write_gcore_file_1): ...this.
2161 (write_gcore_file): Call target_prepare_to_generate_core
2162 and target_done_generating_core.
2164 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2166 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2167 * gcore.c (write_gcore_file): Free memory returned from
2168 make_corefile_notes.
2169 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2170 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2172 2014-06-24 Yao Qi <yao@codesourcery.com>
2174 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2175 (arm_linux_init_abi): Set skip_trampoline_code with
2176 gdbarch_skip_trampoline_code instead of
2177 find_solib_trampoline_target.
2179 2014-06-24 Yao Qi <yao@codesourcery.com>
2181 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2182 arm_skip_bx_reg returns non-zero.
2184 2014-06-24 Yao Qi <yao@codesourcery.com>
2186 * arm-tdep.c (arm_skip_bx_reg): New function.
2187 (arm_skip_stub): Call arm_skip_bx_reg.
2189 2014-06-23 Don Breazeal <donb@codesourcery.com>
2191 * MAINTAINERS: Add myself as write-after-approval maintainer.
2193 2014-06-23 Pedro Alves <palves@redhat.com>
2195 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2196 DR_CONTROL before setting DR0..DR3.
2197 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2198 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2199 bits of DR_CONTROL related to the debug register slot being
2200 disabled. If all slots are vacant, clear local slowdown as well,
2201 and assert DR_CONTROL is 0.
2203 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2205 * python/lib/gdb/command/xmethods.py
2206 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2207 current progspace only if the string "progspace" matches LOCUS_RE.
2209 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 Fix --with-system-readline with readline-6.3 patch 5.
2212 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2213 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2216 2014-06-20 Tom Tromey <tromey@redhat.com>
2218 * dwarf2read.c (dw2_get_real_path): Use correct type in
2220 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2222 2014-06-20 Gary Benson <gbenson@redhat.com>
2224 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2225 * common/glibc_thread_db.h: Likewise.
2226 * common/i386-cpuid.h: Likewise.
2227 * common/i386-gcc-cpuid.h: Likewise.
2228 * common/linux-btrace.h: Likewise.
2229 * common/linux-osdata.h: Likewise.
2230 * common/linux-procfs.h: Likewise.
2231 * common/linux-ptrace.h: Likewise.
2232 * common/mips-linux-watch.h: Likewise.
2233 * common/linux-btrace.c: Moved to nat.
2234 * common/linux-osdata.c: Likewise.
2235 * common/linux-procfs.c: Likewise.
2236 * common/linux-ptrace.c: Likewise.
2237 * common/mips-linux-watch.c: Likewise.
2238 * nat/gdb_thread_db.h: Moved from common.
2239 * nat/glibc_thread_db.h: Likewise.
2240 * nat/i386-cpuid.h: Likewise.
2241 * nat/i386-gcc-cpuid.h: Likewise.
2242 * nat/linux-btrace.c: Likewise.
2243 * nat/linux-btrace.h: Likewise.
2244 * nat/linux-osdata.c: Likewise.
2245 * nat/linux-osdata.h: Likewise.
2246 * nat/linux-procfs.c: Likewise.
2247 * nat/linux-procfs.h: Likewise.
2248 * nat/linux-ptrace.c: Likewise.
2249 * nat/linux-ptrace.h: Likewise.
2250 * nat/mips-linux-watch.c: Likewise.
2251 * nat/mips-linux-watch.h: Likewise.
2252 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2253 (object file files): Reordered.
2254 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2255 of glibc_thread_db.h.
2257 2014-06-20 Gary Benson <gbenson@redhat.com>
2259 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2260 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2261 (i386_dr_low): Likewise.
2262 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2263 (i386_dr_low_set_addr): Likewise.
2264 (i386_dr_low_get_addr): Likewise.
2265 (i386_dr_low_can_set_control): Likewise.
2266 (i386_dr_low_set_control): Likewise.
2267 (i386_dr_low_get_control): Likewise.
2268 (i386_dr_low_get_status): Likewise.
2269 (i386_get_debug_register_length): Likewise.
2270 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2271 (i386_dr_low): Likewise.
2272 * nat/i386-dregs.c (i386-low.h): Remove include.
2273 (i386-nat.h): Likewise.
2274 (nat/i386-dregs.h): New include.
2275 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2276 (i386_dr_low_set_addr): Likewise.
2277 (i386_dr_low_get_addr): Likewise.
2278 (i386_dr_low_can_set_control): Likewise.
2279 (i386_dr_low_set_control): Likewise.
2280 (i386_dr_low_get_control): Likewise.
2281 (i386_dr_low_get_status): Likewise.
2282 (i386_get_debug_register_length): Likewise.
2283 (debug_hw_points): Likewise.
2285 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2287 * Makefile.in (SFILES): Add d-exp.y.
2288 (YYFILES): Add d-exp.c.
2289 (YYOBJ): Add d-exp.o.
2290 (local-maintainer-clean): Delete d-exp.c.
2291 * d-exp.y: New file.
2292 * d-lang.h (d_parse): New declaration.
2293 (d_error): New declaration.
2294 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2295 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2296 PREC_ORDER operators.
2297 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2299 2014-06-19 Yao Qi <yao@codesourcery.com>
2301 * gdbthread.h (any_running): Remove the declaration.
2302 * thread.c (any_running): Remove.
2304 2014-06-19 Yao Qi <yao@codesourcery.com>
2306 * gdbthread.h (struct thread_info) <state>: Change its type to
2307 'enum thread_state'. Update comments.
2309 2014-06-19 Pedro Alves <palves@redhat.com>
2311 * gdbthread.h (ALL_THREADS): Delete.
2312 (ALL_NON_EXITED_THREADS): New macro.
2313 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2314 instead of ALL_THREADS.
2315 * infrun.c (find_thread_needs_step_over)
2316 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2317 instead of ALL_THREADS.
2318 * record-btrace.c (record_btrace_open)
2319 (record_btrace_stop_recording, record_btrace_close)
2320 (record_btrace_is_replaying, record_btrace_resume)
2321 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2322 * remote.c (append_pending_thread_resumptions): Likewise.
2323 * thread.c (thread_apply_all_command): Likewise.
2325 2014-06-19 Gary Benson <gbenson@redhat.com>
2327 * i386-nat.c (i386_stopped_by_watchpoint):
2328 Use i386_dr_stopped_by_watchpoint.
2329 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2330 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2332 2014-06-19 Gary Benson <gbenson@redhat.com>
2334 * nat/i386-dregs.c: New file.
2335 * Makefile.in (i386-dregs.o): New rule.
2336 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2337 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2338 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2339 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2340 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2341 * config/i386/go32.mh (NATDEPFILES): Likewise.
2342 * config/i386/linux.mh (NATDEPFILES): Likewise.
2343 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2344 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2345 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2346 * i386-nat.h (debug_hw_points): New declaration.
2347 * i386-nat.c (breakpoint.h): Remove include.
2348 (command.h): Likewise.
2349 (target.h): Likewise.
2350 (gdb_assert.h): Likewise.
2351 (debug_hw_points): Made nonstatic.
2352 (debug_printf): Now in i386-dregs.c.
2353 (TARGET_HAS_DR_LEN_8): Likewise.
2354 (DR_CONTROL_SHIFT): Likewise.
2355 (DR_CONTROL_SIZE): Likewise.
2356 (DR_RW_EXECUTE): Likewise.
2357 (DR_RW_WRITE): Likewise.
2358 (DR_RW_READ): Likewise.
2359 (DR_RW_IORW): Likewise.
2360 (DR_LEN_1): Likewise.
2361 (DR_LEN_2): Likewise.
2362 (DR_LEN_4): Likewise.
2363 (DR_LEN_8): Likewise.
2364 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2365 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2366 (DR_ENABLE_SIZE): Likewise.
2367 (DR_LOCAL_SLOWDOWN): Likewise.
2368 (DR_GLOBAL_SLOWDOWN): Likewise.
2369 (DR_CONTROL_RESERVED): Likewise.
2370 (I386_DR_CONTROL_MASK): Likewise.
2371 (I386_DR_VACANT): Likewise.
2372 (I386_DR_LOCAL_ENABLE): Likewise.
2373 (I386_DR_GLOBAL_ENABLE): Likewise.
2374 (I386_DR_DISABLE): Likewise.
2375 (I386_DR_SET_RW_LEN): Likewise.
2376 (I386_DR_GET_RW_LEN): Likewise.
2377 (I386_DR_WATCH_HIT): Likewise.
2378 (i386_wp_op_t): Likewise.
2379 (i386_show_dr): Likewise.
2380 (i386_length_and_rw_bits): Likewise.
2381 (i386_insert_aligned_watchpoint): Likewise.
2382 (i386_remove_aligned_watchpoint): Likewise.
2383 (i386_handle_nonaligned_watchpoint): Likewise.
2384 (i386_update_inferior_debug_regs): Likewise.
2385 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2386 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2387 (i386_region_ok_for_watchpoint):
2388 Use i386_dr_region_ok_for_watchpoint.
2389 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2391 2014-06-19 Gary Benson <gbenson@redhat.com>
2393 * i386-nat.c (i386_insert_hw_breakpoint): Use
2394 i386_insert_watchpoint.
2395 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2397 2014-06-19 Gary Benson <gbenson@redhat.com>
2399 * i386-nat.c (i386_dr_show): Renamed to
2400 i386_show_dr and made static. All uses updated.
2401 (i386_dr_length_and_rw_bits): Renamed to
2402 i386_length_and_rw_bits and made static.
2404 (i386_dr_insert_aligned_watchpoint): Renamed to
2405 i386_insert_aligned_watchpoint and made static.
2407 (i386_dr_remove_aligned_watchpoint): Renamed to
2408 i386_remove_aligned_watchpoint and made static.
2410 (i386_dr_update_inferior_debug_regs): Renamed to
2411 i386_update_inferior_debug_regs and made static.
2413 * nat/i386-dregs.h (i386_dr_show): Removed.
2414 (i386_dr_length_and_rw_bits): Likewise.
2415 (i386_dr_insert_aligned_watchpoint): Likewise.
2416 (i386_dr_remove_aligned_watchpoint): Likewise.
2417 (i386_dr_update_inferior_debug_regs): Likewise.
2419 2014-06-19 Gary Benson <gbenson@redhat.com>
2421 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2422 * configure: Regenerate.
2423 * config.in: Likewise.
2424 * main.c (signal.h): New include.
2425 (setup_alternate_signal_stack): New function.
2426 (captured_main): Call the above.
2427 * cp-support.c (signal.h): New include.
2428 (catch_demangler_crashes): New flag.
2429 (SIGJMP_BUF): New define.
2430 (SIGSETJMP): Likewise.
2431 (SIGLONGJMP): Likewise.
2432 (gdb_demangle_jmp_buf): New static global.
2433 (gdb_demangle_attempt_core_dump): Likewise.
2434 (gdb_demangle_signal_handler): New function.
2435 (gdb_demangle): If catch_demangler_crashes is set, install the
2436 above signal handler before calling bfd_demangle, and restore
2437 the original signal handler afterwards. Display the offending
2438 symbol and call demangler_warning the first time a segmentation
2440 (_initialize_cp_support): New maint set/show command.
2442 2014-06-19 Gary Benson <gbenson@redhat.com>
2444 * utils.h (resource_limit_kind): New enum.
2445 (can_dump_core): New declaration.
2446 (warn_cant_dump_core): Likewise.
2447 (dump_core): Likewise.
2448 * utils.c (dump_core): Made nonstatic. Added new
2449 parameter "limit_kind".
2450 (can_dump_core): Made nonstatic. Moved printing code to...
2451 (warn_cant_dump_core): New function.
2452 (can_dump_core_warn): Likewise.
2453 (internal_vproblem): Replace calls to can_dump_core with
2454 calls to can_dump_core_warn. Supply new argument to each.
2456 2014-06-19 Gary Benson <gbenson@redhat.com>
2458 * utils.h (demangler_vwarning): New declaration.
2459 (demangler_warning): Likewise.
2460 * utils.c (struct internal_problem)
2461 <user_settable_should_quit>: New field.
2462 <user_settable_should_dump_core>: Likewise
2463 (internal_error_problem): Add values for above new fields.
2464 (internal_warning_problem): Likewise.
2465 (demangler_warning_problem): New static global.
2466 (demangler_vwarning): New function.
2467 (demangler_warning): Likewise.
2468 (add_internal_problem_command): Selectively add commands.
2469 (_initialize_utils): New internal problem command.
2470 * maint.c (maintenance_demangler_warning): New function.
2471 (_initialize_maint_cmds): New command.
2473 2014-06-18 Tom Tromey <tromey@redhat.com>
2475 * f-valprint.c (info_common_command_for_block): Update.
2476 * symtab.h (struct general_symbol_info) <common_block>: Now
2479 2014-06-18 Tom Tromey <tromey@redhat.com>
2481 * symtab.h (struct symtab) <blockvector>: Now const.
2482 * ada-lang.c (ada_add_global_exceptions): Update.
2483 * buildsym.c (augment_type_symtab): Update.
2484 * dwarf2read.c (dw2_lookup_symbol): Update.
2485 * jit.c (finalize_symtab): Update.
2486 * jv-lang.c (add_class_symtab_symbol): Update.
2487 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2489 * objfiles.c (objfile_relocate1): Update.
2490 * psymtab.c (lookup_symbol_aux_psymtabs)
2491 (maintenance_check_psymtabs): Update.
2492 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2494 * spu-tdep.c (spu_catch_start): Update.
2495 * symmisc.c (dump_symtab_1): Update.
2496 * symtab.c (lookup_global_symbol_from_objfile)
2497 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2498 (basic_lookup_transparent_type_quick)
2499 (basic_lookup_transparent_type, find_pc_sect_symtab)
2500 (find_pc_sect_line, search_symbols): Update.
2501 * block.c (find_block_in_blockvector): Make "bl" const.
2502 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2504 (blockvector_contains_pc): Make "bv" const.
2505 (block_for_pc_sect): Update.
2506 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2507 (blockvector_contains_pc): Update.
2508 * breakpoint.c (resolve_sal_pc): Update.
2509 * inline-frame.c (block_starting_point_at): Update.
2511 2014-06-18 Tom Tromey <tromey@redhat.com>
2513 * completer.c (complete_line): Make "line_buffer" const.
2514 * completer.h (complete_line): Update.
2516 2014-06-18 Tom Tromey <tromey@redhat.com>
2518 * symtab.c (add_macro_name): Remove unneeded cast.
2520 2014-06-18 Tom Tromey <tromey@redhat.com>
2522 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2523 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2525 2014-06-18 Tom Tromey <tromey@redhat.com>
2527 * probe.c (info_probes_for_ops): Make "arg" const.
2528 * probe.h (info_probes_for_ops): Update.
2530 2014-06-18 Tom Tromey <tromey@redhat.com>
2532 * varobj.c (varobj_create): Update.
2533 * valops.c (value_of_this): Update.
2534 * tracepoint.c (add_local_symbols, scope_info): Update.
2535 * symtab.h (struct general_symbol_info) <block>: Now const.
2536 * symtab.c (skip_prologue_sal)
2537 (default_make_symbol_completion_list_break_on)
2538 (skip_prologue_using_sal): Update.
2539 * stack.h (iterate_over_block_locals)
2540 (iterate_over_block_local_vars): Update.
2541 * stack.c (print_frame_args): Update.
2542 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2544 (get_selected_block): Make return type const.
2545 * python/py-frame.c (frapy_block): Update.
2546 * python/py-block.c (gdbpy_block_for_pc): Update.
2547 * p-exp.y (%union) <bval>: Now const.
2548 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2549 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2550 * m2-exp.y (%union) <bval>: Now const.
2551 * linespec.c (get_current_search_block): Make return type const.
2552 (create_sals_line_offset, find_label_symbols): Update.
2553 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2555 (block_starting_point_at): Make "block" const.
2556 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2557 (check_exception_resume): Update.
2558 * guile/scm-frame.c (gdbscm_frame_block): Update.
2559 * guile/scm-block.c (gdbscm_lookup_block): Update.
2560 * frame.h (get_frame_block): Update.
2561 (get_selected_block): Make return type const.
2562 * frame.c (frame_id_inner): Update.
2563 * f-valprint.c (info_common_command_for_block)
2564 (info_common_command): Update.
2565 * dwarf2loc.c (dwarf2_find_location_expression)
2566 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2567 (locexpr_describe_location_piece): Update.
2568 * c-exp.y (%union) <bval>: Now const.
2569 * breakpoint.c (resolve_sal_pc): Update.
2570 * blockframe.c (get_frame_block):Make return type const.
2571 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2572 (block_innermost_frame): Update.
2573 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2574 (block_for_pc, block_for_pc_sect): Update.
2575 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2577 (block_for_pc_sect, block_for_pc): Make return type const.
2578 * ax-gdb.c (gen_expr): Update.
2579 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2580 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2581 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2582 (ada_read_var_value): Update.
2583 * ada-exp.y (struct name_info) <block>: Now const.
2585 (block_lookup): Constify.
2587 2014-06-18 Gary Benson <gbenson@redhat.com>
2589 * nat/i386-dregs.h: New file.
2590 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2591 * i386-nat.h (i386-dregs.h): New include.
2592 (DR_FIRSTADDR): Now in i386-dregs.h.
2593 (DR_LASTADDR): Likewise.
2594 (DR_NADDR): Likewise.
2595 (DR_STATUS): Likewise.
2596 (DR_CONTROL): Likewise.
2597 (i386_debug_reg_state): Likewise.
2598 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2600 2014-06-18 Don Breazeal <donb@codesourcery.com>
2602 * breakpoint.c (set_longjmp_breakpoint): Call
2603 momentary_breakpoint_from_master with additional argument.
2604 (set_longjmp_breakpoint_for_call_dummy): Call
2605 momentary_breakpoint_from_master with additional argument.
2606 (set_std_terminate_breakpoint): Call
2607 momentary_breakpoint_from_master with additional argument.
2608 (momentary_breakpoint_from_master): Add argument to function
2609 definition and use it to initialize structure member flag.
2610 (clone_momentary_breakpoint): Call
2611 momentary_breakpoint_from_master with additional argument.
2612 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2613 member flags set in momentary_breakpoint_from_master.
2615 2014-06-18 Gary Benson <gbenson@redhat.com>
2617 * i386-nat.c (i386_show_dr): Renamed to
2618 i386_dr_show and made nonstatic. All uses updated.
2619 (i386_length_and_rw_bits): Renamed to
2620 i386_dr_length_and_rw_bits and made nonstatic.
2622 (i386_insert_aligned_watchpoint): Renamed to
2623 i386_dr_insert_aligned_watchpoint and made nonstatic.
2625 (i386_remove_aligned_watchpoint): Renamed to
2626 i386_dr_remove_aligned_watchpoint and made nonstatic.
2628 (i386_update_inferior_debug_regs): Renamed to
2629 i386_dr_update_inferior_debug_regs and made nonstatic.
2632 2014-06-18 Gary Benson <gbenson@redhat.com>
2634 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2635 (i386_dr_low_can_set_control): Likewise.
2636 (i386_dr_low_set_addr): Likewise.
2637 (i386_dr_low_set_control): Likewise.
2638 (i386_dr_low_get_addr): Likewise.
2639 (i386_dr_low_get_status): Likewise.
2640 (i386_dr_low_get_control): Likewise.
2641 (i386_insert_aligned_watchpoint): Use new macros.
2642 (i386_update_inferior_debug_regs): Likewise.
2643 (i386_stopped_data_address): Likewise.
2645 2014-06-18 Gary Benson <gbenson@redhat.com>
2647 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2648 New parameter. All uses updated.
2650 2014-06-18 Gary Benson <gbenson@redhat.com>
2652 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2655 2014-06-18 Gary Benson <gbenson@redhat.com>
2657 * i386-nat.c (debug_printf): New macro.
2658 (i386_get_debug_register_length): Likewise.
2659 (TARGET_HAS_DR_LEN_8): Use above macro.
2660 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2661 and printf_unfiltered. Use phex to format values.
2663 2014-06-18 Gary Benson <gbenson@redhat.com>
2665 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2668 2014-06-18 Gary Benson <gbenson@redhat.com>
2670 * i386-nat.c: Comment changes.
2672 2014-06-18 Gary Benson <gbenson@redhat.com>
2674 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2676 2014-06-18 Gary Benson <gbenson@redhat.com>
2678 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2679 (i386_insert_aligned_watchpoint): Likewise.
2680 (i386_remove_aligned_watchpoint): Likewise.
2681 (i386_handle_nonaligned_watchpoint): Likewise.
2683 2014-06-18 Gary Benson <gbenson@redhat.com>
2685 * i386-nat.c: Whitespace changes.
2687 2014-06-17 Samuel Bronson <naesten@gmail.com>
2689 * MAINTAINERS: Update Roland McGrath's email address.
2690 Thanks to Sergio Durigan Junior for pointing out that he left
2691 Red Hat a while ago, and giving me a current address.
2693 2014-06-17 Tom Tromey <tromey@redhat.com>
2695 * utils.h (savestring): Remove declaration.
2697 2014-06-17 Tom Tromey <tromey@redhat.com>
2699 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2701 2014-06-16 Keith Seitz <keiths@redhat.com>
2704 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2705 to update the varobj if inferior_ptid is null_ptid.
2707 2014-06-16 Tom Tromey <tromey@redhat.com>
2709 * target.h (struct target_ops) <to_info_proc>: Make parameter
2711 (target_info_proc): Update.
2712 * target.c (target_info_proc): Make "args" const.
2713 * procfs.c (procfs_info_proc): Update.
2714 * linux-tdep.c (linux_info_proc): Update.
2715 (linux_core_info_proc_mappings): Make "args" const.
2716 (linux_core_info_proc): Update.
2717 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2718 * gdbarch.c: Rebuild.
2719 * gdbarch.h: Rebuild.
2720 * corelow.c (core_info_proc): Update.
2722 2014-06-16 Tom Tromey <tromey@redhat.com>
2724 * target.h (struct target_ops) <to_disconnect>: Make parameter
2726 (target_disconnect): Update.
2727 * target.c (target_disconnect): Make "args" const.
2728 * target-delegates.c: Rebuild.
2729 * remote.c (remote_disconnect): Update.
2730 * record.h (record_disconnect): Update.
2731 * record.c (record_disconnect): Update.
2732 * inf-child.c (inf_child_disconnect): Update.
2734 2014-06-16 Tom Tromey <tromey@redhat.com>
2736 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2737 * target.c (debug_to_rcmd, default_rcmd): Update.
2738 * target-delegates.c: Rebuild.
2739 * remote.c (remote_rcmd): Update.
2740 * monitor.c (monitor_rcmd): Update.
2742 2014-06-16 Pedro Alves <palves@redhat.com>
2744 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2745 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2746 have OBJF_SHARED set.
2747 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2748 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2749 instead of OBJF_USERLOADED.
2750 * objfiles.h (OBJF_SHARED): Update comment.
2751 (userloaded_objfile_contains_address_p): Rename to ...
2752 (shared_objfile_contains_address_p): ... this, and update
2754 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2756 (remove_symbol_file_command): Skip objfiles that don't have
2759 2014-06-16 Tom Tromey <tromey@redhat.com>
2761 * minsyms.h (prim_record_minimal_symbol)
2762 (prim_record_minimal_symbol_and_info): Update comments.
2764 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2766 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2767 or --without-guile, according to how GDB was built.
2769 2014-06-13 Tom Tromey <tromey@redhat.com>
2771 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2773 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2775 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2777 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2778 help_list.Pass all_commands, not -1, to help_list.
2779 * cli/cli-dump.c (dump_command, append_command)
2780 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2781 (binary_dump_command, binary_append_command): Pass all_commands,
2782 not -1, to help_list.
2783 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2785 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2787 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2789 * top.c (set_history): Pass all_commands, not -1, to help_list.
2790 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2791 all_commands, not -1, to help_list.
2792 * symfile.c (overlay_command): Pass all_commands, not -1, to
2794 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2796 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2798 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2800 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2801 not -1, to help_list.
2802 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2803 not -1, to help_list.
2804 * maint.c (maintenance_command, maintenance_info_command)
2805 (maintenance_print_command, maintenance_set_cmd): Pass
2806 all_commands, not -1, to help_list.
2807 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2809 * language.c (set_check): Pass all_commands, not -1, to help_list.
2810 * infcmd.c (unset_command): Pass all_commands, not -1, to
2812 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2814 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2816 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2818 * breakpoint.c (save_command): Pass all_commands, not -1, to
2820 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2821 all_commands, not -1, to help_list.
2823 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2825 * regcache.c (struct register_to_invalidate): New structure.
2826 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2828 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2830 2014-06-12 Yao Qi <yao@codesourcery.com>
2832 * varobj.c (varobj_get_num_children): Call
2833 varobj_is_dynamic_p.
2834 (varobj_list_children): Likewise.
2835 (varobj_update): Likewise. Update comments.
2837 2014-06-12 Yao Qi <yao@codesourcery.com>
2839 * varobj.c (varobj_pretty_printed_p): Rename to ...
2840 (varobj_is_dynamic_p): ... this. New function.
2841 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2842 (varobj_is_dynamic_p): Declare.
2843 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2844 (mi_print_value_p, varobj_update_one): Likewise.
2846 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2847 Yao Qi <yao@codesourcery.com>
2849 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2850 (varobj_get_iterator): Wrap up code for pretty-printer by
2851 "#if HAVE_PYTHON" and "#endif".
2852 (update_dynamic_varobj_children): Likewise.
2854 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2855 Yao Qi <yao@codesourcery.com>
2857 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2858 gdb_python_initialized is false. Move some code from varobj.c.
2859 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2860 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2861 (struct varobj_item): Moved to varobj-iter.h".
2862 (varobj_clear_saved_item): New function.
2863 (update_dynamic_varobj_children): Move python-related code to
2865 (free_variable): Call varobj_clear_saved_item and
2868 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2869 Yao Qi <yao@codesourcery.com>
2871 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2872 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2873 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2874 (py-varobj.o): New rule.
2875 * python/py-varobj.c: New file.
2876 * python/python-internal.h (py_varobj_get_iterator): Declare.
2877 * varobj-iter.h: New file.
2878 * varobj.c: Include "varobj-iter.h"
2879 (struct varobj) <child_iter>: Change its type from "PyObject *"
2880 to "struct varobj_iter *".
2881 <saved_item>: Likewise.
2882 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2883 [HAVE_PYTHON] (varobj_get_iterator): New function.
2884 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2885 python-specific code to python/py-varobj.c.
2886 (install_visualizer): Call varobj_iter_delete instead of
2888 * varobj.h (varobj_ensure_python_env): Declare.
2890 2014-06-12 Yao Qi <yao@codesourcery.com>
2892 * varobj.c (struct varobj_item): New structure.
2893 (create_child_with_value): Update declaration.
2894 (varobj_add_child): Replace arguments 'name' and 'value' with
2895 'item'. All callers updated.
2896 (install_dynamic_child): Likewise.
2897 (update_dynamic_varobj_children): Likewise.
2898 (varobj_add_child): Likewise.
2899 (create_child_with_value): Likewise.
2901 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2903 * NEWS: Create a new section for the next release branch.
2904 Rename the section of the current branch, now that it has
2907 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2909 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2910 * version.in: Bump version to 7.8.50.DATE-cvs.
2912 2014-06-11 Pedro Alves <palves@redhat.com>
2915 * ser-mingw.c (net_windows_socket_check_pending): New function.
2916 (net_windows_select_thread): Ignore spurious wakeups. Use
2917 net_windows_socket_check_pending.
2918 (net_windows_wait_handle): Check for pending events with
2919 ioctlsocket, through net_windows_socket_check_pending, instead of
2920 checking the socket's event.
2922 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2924 * python/python-internal.h (gdb_PyObject_GetAttrString)
2925 (gdb_PyObject_HasAttrString): New inline function definitions.
2926 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2927 char * of the second argument to PyObject_GetAttrString.
2929 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2931 * serial.c (serial_write): Fix index of character to be printed
2932 in call to serial_logchar when serial debug traces are enabled.
2934 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2936 * gdbtypes (resolve_dynamic_range): Add function description.
2938 2014-06-09 Pedro Alves <palves@redhat.com>
2940 * linux-nat.c (linux_child_follow_fork): Initialize status with
2941 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2942 inner block. Only pass the signal to PTRACE_DETACH if in pass
2945 2014-06-09 Gary Benson <gbenson@redhat.com>
2947 * common/signals.c (gdb_signal_from_host): Reorder to separate
2948 the always-available ANSI-standard signals from the signals that
2950 (do_gdb_signal_to_host): Likewise.
2951 * proc-events.c (signal_table): Likewise.
2953 2014-06-08 Hui Zhu <hui@codesourcery.com>
2955 * common/linux-ptrace.c (linux_disable_event_reporting): New
2957 * common/linux-ptrace.h (linux_disable_event_reporting): New
2959 * linux-nat.c (linux_child_follow_fork): Do a single step before
2962 2014-06-07 Keith Seitz <keiths@redhat.com>
2966 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2967 from symbol_matches_domain in symtab.c. All local callers
2968 of symbol_matches_domain updated.
2969 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2970 search STRUCT_DOMAIN.
2971 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2972 independently. standard_lookup will do that automatically.
2973 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2974 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2975 (cp_lookup_symbol_in_namespace): Likewise.
2976 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2977 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2978 may return a STRUCT_DOMAIN match.
2979 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2980 * cp-support.c: Include language.h.
2981 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2983 * psymtab.c (match_partial_symbol): Compare the requested
2984 domain with the symbol's domain directly.
2985 (lookup_partial_symbol): Likewise.
2986 * symtab.c (lookup_symbol_in_language): Explain when/why
2987 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2988 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2989 appropriate languages.
2990 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2991 and moved to ada-lang.c
2992 (lookup_block_symbol): Explain that this function only returns
2993 symbol matching the requested DOMAIN.
2994 Compare the requested domain with the symbol's domain directly.
2995 (iterate_over_symbols): Compare the requested domain with the
2996 symbol's domain directly.
2997 * symtab.h (symbol_matches_domain): Remove.
2999 2014-06-06 Doug Evans <xdje42@gmail.com>
3001 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3002 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3003 (gdbscm_guile_version_is_at_least): Declare.
3004 (gdbscm_scm_string_to_int): Declare.
3005 * guile/guile.c (gdbscm_guile_major_version): New global.
3006 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3007 (guile_datadir): New static global.
3008 (gdbscm_guile_data_directory): New function.
3009 (initialize_scheme_side): Update.
3010 (misc_guile_functions): Add guile-data-directory.
3011 (initialize_gdb_module): Fetch guile version number.
3012 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3013 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3014 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3015 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3017 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3018 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3019 * guile/scm-value.c (gdbscm_value_to_string): Only call
3020 scm_port_conversion_strategy if Guile version >= 2.0.6.
3022 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3024 * main.c (print_gdb_help): Add -q and --silent.
3026 2014-06-06 Gary Benson <gbenson@redhat.com>
3028 * common/signals.c: Remove preprocessor conditionals for
3029 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3030 SIGSEGV and SIGTERM.
3031 * proc-events.c: Likewise.
3033 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3035 * symfile.c (symfile_free_objfile): Remove restriction to
3037 * symfile-mem.c (symbol_file_add_from_memory): Call
3038 add_target_sections_of_objfile.
3040 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3042 * guile/scm-value.c (gdbscm_history_append_x): Use
3043 'vlscm_get_value_smob_arg_unsafe' instead of
3044 'vlscm_scm_to_value'.
3046 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3049 * utils.c (printchar): Don't escape at all if quoter is NUL.
3050 Update function documentation to clarify effect of parameter
3052 * remote.c (escape_buffer): Pass '\\' as the quoter to
3053 fputstrn_unfiltered.
3054 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3055 generate the output.
3056 (mi_solib_unloaded): Same.
3058 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3060 * development.sh: Delete.
3061 * Makefile.in (config.status): Adjust dependency on development.sh.
3062 * configure.ac: Adjust development.sh source call.
3063 * configure: Regenerate.
3065 2014-06-04 Doug Evans <xdje42@gmail.com>
3067 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3068 is_scheme_bkpt, spec.
3069 (bpscm_make_breakpoint_smob): Initialize new members.
3070 (gdbscm_create_breakpoint_x): Split into two ...
3071 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3072 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3073 (scheme_function breakpoint_functions): Update.
3074 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3075 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3076 register-breakpoint!.
3078 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3081 * mem-break.c (z_type_supported): Return zero if
3082 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3084 2014-06-04 Tom Tromey <tromey@redhat.com>
3086 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3087 value_from_contents_and_address_unresolved.
3088 (ada_template_to_fixed_record_type_1): Likewise.
3089 (ada_which_variant_applies): Likewise.
3090 * value.h (value_from_contents_and_address_unresolved): Declare.
3091 * value.c (value_from_contents_and_address_unresolved): New
3093 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3094 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3095 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3097 2014-06-04 Tom Tromey <tromey@redhat.com>
3099 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3101 2014-06-04 Tom Tromey <tromey@redhat.com>
3103 * procfs.c (procfs_attach): Make "args" const.
3104 * windows-nat.c (windows_attach): Make "args" const.
3105 * nto-procfs.c (procfs_attach): Make "args" const.
3106 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3107 * go32-nat.c (go32_attach): Make "args" const.
3108 * gnu-nat.c (gnu_attach): Make "args" const.
3109 * darwin-nat.c (darwin_attach): Make "args" const.
3110 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3111 * linux-nat.c (linux_nat_attach): Make "args" const.
3112 * remote.c (extended_remote_attach_1, extended_remote_attach):
3114 * target.h (struct target_ops) <to_attach>: Make "args" const.
3115 (find_default_attach): Likewise.
3116 * utils.c (parse_pid_to_attach): Make "args" const.
3117 * utils.h (parse_pid_to_attach): Update.
3119 2014-06-04 Tom Tromey <tromey@redhat.com>
3121 * target-delegates.c: Rebuild.
3122 * target.c (default_thread_address_space): New function.
3123 (target_thread_address_space): Simplify.
3124 * target.h (struct target_ops) <to_thread_address_space>: Add
3125 TARGET_DEFAULT_FUNC.
3127 2014-06-04 Doug Evans <xdje42@gmail.com>
3129 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3131 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3133 * record-btrace.c: Include event-loop.h and inf-loop.h.
3134 (record_btrace_resume_exec_dir)
3135 (record_btrace_async_inferior_event_handler)
3136 (record_btrace_handle_async_inferior_event): New.
3137 (record_btrace_open): Create async event handler.
3138 (record_btrace_close): Delete async event handler.
3139 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3140 Mark async event handler.
3141 (record_btrace_execution_direction): New.
3142 (init_record_btrace_ops): Initialize to_execution_direction.
3144 2014-06-03 Doug Evans <xdje42@gmail.com>
3146 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3147 (gdbscm_make_parameter): Ditto.
3149 2014-06-03 Doug Evans <dje@google.com>
3151 * exec.c (exec_close_1): Call clear_section_table instead of
3152 resize_section_table.
3153 (clear_section_table): New function.
3154 (resize_section_table): Make static. Rename arg num_added to
3156 * exec.h (clear_section_table): Declare.
3157 (resize_section_table): Delete.
3158 * progspace.c (release_program_space): Call clear_section_table
3159 instead of resize_section_table.
3161 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3163 * NEWS (Python Scripting): Add entry about the new xmethods
3166 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3168 * python/py-xmethods.c: New file.
3169 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3170 (objfpy_dealloc): XDECREF on the new xmethods field.
3171 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3173 (objfpy_get_xmethods): New function.
3174 (objfile_getset): New entry 'xmethods'.
3175 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3176 (pspy_dealloc): XDECREF on the new xmethods field.
3177 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3179 (pspy_get_xmethods): New function.
3180 (pspace_getset): New entry 'xmethods'.
3181 * python/python-internal.h: Add declarations for new functions.
3182 * python/python.c (_initialize_python): Invoke
3183 gdbpy_initialize_xmethods.
3184 * python/lib/gdb/__init__.py (xmethods): New
3186 * python/lib/gdb/xmethod.py: New file.
3187 * python/lib/gdb/command/xmethods.py: New file.
3189 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3191 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3192 best match method returned by find_overload_match is an xmethod.
3193 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3194 the best matching operator returned by find_overload_match is an
3196 * valops.c: #include "extension.h".
3197 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3198 Return void. The list of matching source methods is returned in
3199 "fn_list" and a vector of matching debug method workers is
3200 returned in "xm_worker_vec". Update all callers.
3201 (value_find_oload_method_list): Likewise.
3202 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3203 non-NULL, then the index of the best matching method in this
3204 vector is returned. Update all callers.
3205 (find_overload_match): Include xmethods while performing overload
3208 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3210 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3211 * extension-priv.h (struct extension_language_ops): Add the
3213 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3214 get_matching_xmethod_workers, get_xmethod_argtypes,
3215 invoke_xmethod, free_xmethod_worker,
3216 free_xmethod_worker_vec): New functions.
3217 * extension.h: #include "common/vec.h".
3218 New function declarations.
3219 (struct xmethod_worker): New struct.
3220 (VEC (xmethod_worker_ptr)): New vector type.
3221 (xmethod_worker_ptr): New typedef.
3222 (xmethod_worker_vec): Likewise.
3223 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3225 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3226 (struct builtin_type): New field "xmethod".
3227 * valarith.c (value_ptradd): Assert that the value argument is not
3229 * valops.c (value_must_coerce_to_target): Return 0 for
3230 lval_xcallable values.
3231 * value.c (struct value): New field XM_WORKER in the field
3233 (value_address, value_raw_address): Return 0 for lval_xcallable
3235 (set_value_address): Assert that the value is not an
3237 (value_free): Free the associated xmethod worker when freeing
3238 lval_xcallable values.
3239 (set_value_component_location): Assert that the WHOLE value is not
3241 (value_of_xmethod, call_xmethod): New functions.
3242 * value.h: Declare "struct xmethod_worker".
3243 Declare new functions value_of_xmethod, call_xmethod.
3245 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3246 Pedro Alves <palves@redhat.com>
3248 PR breakpoints/17000
3249 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3250 New function, extracted from software_breakpoint_inserted_here_p.
3251 (software_breakpoint_inserted_here_p): Replace factored out code
3252 by call to find_non_raw_software_breakpoint_inserted_here.
3253 (bp_target_info_copy_insertion_state): New function.
3254 (bkpt_insert_location): Handle the case of a single-step
3255 breakpoint already inserted at the same address.
3256 (bkpt_remove_location): Handle the case of a single-step
3257 breakpoint still inserted at the same address.
3258 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3259 breakpoint already inserted at the same address.
3260 (deprecated_remove_raw_breakpoint): Handle the case of a
3261 non-raw breakpoint still inserted at the same address.
3262 (find_single_step_breakpoint): New function, extracted from
3263 single_step_breakpoint_inserted_here_p.
3264 (find_single_step_breakpoint): New function,
3265 factored out from single_step_breakpoint_inserted_here_p.
3266 (single_step_breakpoint_inserted_here_p): Reimplement.
3268 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3270 Pushed by Joel Brobecker <brobecker@adacore.com>
3271 * source.c (show_substitute_path_command): Fix display of matching
3274 2014-06-03 Gary Benson <gbenson@redhat.com>
3276 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3278 2014-06-02 Doug Evans <xdje42@gmail.com>
3280 Add parameter support for Guile.
3281 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3282 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3283 (scm-param.o): New rule.
3284 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3285 (gdbscm_misc_error): Declare.
3286 (gdbscm_canonicalize_command_name): Declare.
3287 (gdbscm_scm_to_host_string): Declare.
3288 (gdbscm_scm_from_host_string): Declare.
3289 (gdbscm_initialize_parameters): Declare.
3290 * guile/guile.c (initialize_gdb_module): Call
3291 gdbscm_initialize_parameters.
3292 * guile/lib/gdb.scm: Export parameter symbols.
3293 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3294 cmdscm_canonicalize_name and made public. All callers updated.
3295 * guile/scm-exception.c (gdbscm_misc_error): New function.
3296 * guile/scm-param.c: New file.
3297 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3298 (gdbscm_scm_to_host_string): New function.
3299 (gdbscm_scm_from_host_string): New function.
3300 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3302 2014-06-02 Doug Evans <xdje42@gmail.com>
3304 Add command support for Guile.
3305 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3306 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3307 (scm-cmd.o): New rule.
3308 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3309 (gdbscm_user_error_p): Declare.
3310 (gdbscm_parse_command_name): Declare.
3311 (gdbscm_valid_command_class_p): Declare.
3312 (gdbscm_initialize_commands): Declare.
3313 * guile/guile.c (initialize_gdb_module): Call
3314 gdbscm_initialize_commands.
3315 * guile/lib/gdb.scm: Export command symbols.
3316 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3317 (throw-user-error): New function.
3318 * guile/scm-cmd.c: New file.
3319 * guile/scm-exception.c (user_error_symbol): New static global.
3320 (gdbscm_user_error_p): New function.
3321 (gdbscm_initialize_exceptions): Set user_error_symbol.
3322 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3324 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3326 * top.c (command_loop): Handle comments here...
3327 (command_line_input): ... not here.
3329 2014-06-02 Doug Evans <xdje42@gmail.com>
3331 Add progspace support for Guile.
3332 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3333 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3334 (scm-progspace.o): New rule.
3335 * guile/guile-internal.h (pspace_smob): New typedef.
3336 (psscm_pspace_smob_pretty_printers): Declare.
3337 (psscm_pspace_smob_from_pspace): Declare.
3338 (psscm_scm_from_pspace): Declare.
3339 * guile/guile.c (initialize_gdb_module): Call
3340 gdbscm_initialize_pspaces.
3341 * guile/lib/gdb.scm: Export progspace symbols.
3342 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3344 (append-pretty-printer!): Ditto.
3345 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3347 * guile/scm-progspace.c: New file.
3349 2014-06-03 Alan Modra <amodra@gmail.com>
3351 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3352 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3354 2014-06-02 Doug Evans <dje@google.com>
3356 Add support for skeletonless type units.
3357 * dwarf2read.c (struct dwarf2_per_objfile): New member
3358 n_allocated_type_units.
3359 (struct dwarf2_per_objfile) <tu_stats>: New member
3360 nr_all_type_units_reallocs.
3361 (create_signatured_type_table_from_index): Initialize
3362 n_allocated_type_units
3363 (create_all_type_units): Ditto.
3364 (add_type_unit): Move up in file. New arg slot.
3365 All callers updated. Increase space for all_type_units more
3367 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3368 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3369 (lookup_dwp_signatured_type): Ditto.
3370 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3371 All callers updated.
3372 (build_type_psymtabs_1): Leave type_unit_groups as
3373 NULL if no TUs present.
3374 (print_tu_stats): New function.
3375 (process_skeletonless_type_unit): New function.
3376 (process_dwo_file_for_skeletonless_type_units): New
3378 (process_skeletonless_type_units): New function.
3379 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3380 Call print tu_stats if debugging enabled.
3382 2014-06-02 Pedro Alves <palves@redhat.com>
3384 * breakpoint.c (build_target_command_list): Don't build a command
3385 list if we have any duplicate location that isn't a dprintf.
3387 2014-06-02 Pedro Alves <palves@redhat.com>
3389 * breakpoint.c (dprintf_breakpoint_hit): New function.
3390 (initialize_breakpoint_ops): Install it as dprintf's
3391 breakpoint_hit method.
3393 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3395 * source.c (substitute_path_rule_matches): Simplify using
3396 filename_ncmp instead of FILENAME_CMP.
3398 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3400 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3402 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3404 * configure.ac: When Guile is available, check for the
3405 availability of 'scm_new_smob'.
3406 * configure, config.h.in: Regenerate.
3407 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3410 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3412 * frame.c (struct frame_info): Add stop_string field.
3413 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3414 (get_prev_frame_always): Old content moved into
3415 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3416 TRY_CATCH, handle MEMORY_ERROR exceptions.
3417 (frame_stop_reason_string): New function definition.
3418 * frame.h (unwind_stop_reason_to_string): Extend comment to
3419 mention frame_stop_reason_string.
3420 (frame_stop_reason_string): New function declaration.
3421 * stack.c (frame_info): Switch to frame_stop_reason_string.
3422 (backtrace_command_1): Switch to frame_stop_reason_string.
3423 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3424 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3425 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3427 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3429 * frame.c (frame_stop_reason_string): Rename to ...
3430 (unwind_stop_reason_to_string): this.
3431 * frame.h (frame_stop_reason_string): Rename to ...
3432 (unwind_stop_reason_to_string): this.
3433 * stack.c (frame_info): Update call to frame_stop_reason_string.
3434 (backtrace_command_1): Likewise.
3435 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3436 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3438 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3440 * frame.c (remove_prev_frame): New function.
3441 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3444 2014-05-29 Pedro Alves <palves@redhat.com>
3446 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3447 and make it const. When a single-step decays to a continue,
3448 clear 'step', not 'hw_step'. Pass whether the caller wanted
3449 to step to user_visible_resume_ptid, not what we ask the
3452 2014-05-29 Pedro Alves <palves@redhat.com>
3454 * infrun.c (process_event_stop_test, handle_step_into_function)
3455 (handle_step_into_function_backward): Adjust.
3456 Don't set the even thread's stop_step and call stop_waiting before
3457 calling end_stepping_range. Instead do that ...
3458 (end_stepping_range): ... here. Take an ecs pointer parameter.
3460 2014-05-29 Pedro Alves <palves@redhat.com>
3462 * infrun.c (stop_stepping): Rename to ...
3463 (stop_waiting): ... this.
3464 (proceed): Update comment.
3465 (process_event_stop_test, handle_inferior_event)
3466 (handle_signal_stop, handle_step_into_function)
3467 (handle_step_into_function_backward): Update.
3469 2014-05-29 Pedro Alves <palves@redhat.com>
3471 * infcall.c (run_inferior_call): Don't check whether the current
3472 thread is running after the proceed call.
3474 2014-05-29 Pedro Alves <palves@redhat.com>
3475 Tom Tromey <tromey@redhat.com>
3477 * NEWS: Mention "maint set target-async", "set mi-async", and that
3478 background execution commands are now always available.
3479 * target.h (target_async_permitted): Update comment.
3480 * target.c (target_async_permitted, target_async_permitted_1):
3482 (set_target_async_command): Rename to ...
3483 (maint_set_target_async_command): ... this.
3484 (show_target_async_command): Rename to ...
3485 (maint_show_target_async_command): ... this.
3486 (_initialize_target): Adjust.
3487 * infcmd.c (prepare_execution_command): Make extern.
3488 * inferior.h (prepare_execution_command): Declare.
3489 * infrun.c (set_observer_mode): Leave target async alone.
3490 * mi/mi-interp.c (mi_interpreter_init): Install
3491 mi_on_sync_execution_done as sync_execution_done observer.
3492 (mi_on_sync_execution_done): New function.
3493 (mi_execute_command_input_handler): Don't print the prompt if we
3494 just started a synchronous command with an async target.
3495 (mi_on_resume): Check sync_execution before printing prompt.
3496 * mi/mi-main.h (mi_async_p): Declare.
3497 * mi/mi-main.c: Include gdbcmd.h.
3498 (mi_async_p): New function.
3499 (mi_async, mi_async_1): New globals.
3500 (set_mi_async_command, show_mi_async_command, mi_async): New
3502 (exec_continue): Call prepare_execution_command.
3503 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3504 (mi_execute_async_cli_command): Use mi_async_p.
3505 (_initialize_mi_main): Install "set mi-async". Make
3506 "target-async" a deprecated alias.
3508 2014-05-29 Pedro Alves <palves@redhat.com>
3510 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3511 (_initialize_cli_interp): Adjust.
3512 * event-loop.c: Include "observer.h".
3513 (start_event_loop): Notify 'command_error' observers instead of
3514 calling display_gdb_prompt. Remove FIXME comment.
3515 * event-top.c (display_gdb_prompt): Remove call into the
3517 * inf-loop.c: Include "observer.h".
3518 (inferior_event_handler): Notify 'command_error' observers instead
3519 of calling display_gdb_prompt.
3520 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3521 observers instead of calling display_gdb_prompt.
3522 * interps.c (interp_set): Don't call display_gdb_prompt.
3523 (current_interp_display_prompt_p): Delete.
3524 * interps.h (interp_prompt_p): Delete declaration.
3525 (interp_prompt_p_ftype): Delete.
3526 (struct interp_procs) <prompt_proc_p>: Delete field.
3527 (current_interp_display_prompt_p): Delete declaration.
3528 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3529 (_initialize_mi_interp): Adjust.
3530 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3531 'command_error' observers.
3532 (tui_on_sync_execution_done, tui_on_command_error): New
3534 (tui_display_prompt_p): Delete.
3535 (_initialize_tui_interp): Adjust.
3537 2014-05-29 Pedro Alves <palves@redhat.com>
3540 * cli/cli-interp.c: Include infrun.h and observer.h.
3541 (cli_uiout, cli_interp): New globals.
3542 (cli_on_signal_received, cli_on_end_stepping_range)
3543 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3545 (cli_interpreter_init): Install them as 'end_stepping_range',
3546 'signal_received' 'signal_exited', 'exited' and 'no_history'
3548 (_initialize_cli_interp): Remove cli_interp local.
3549 * infrun.c (handle_inferior_event): Call the several stop reason
3550 observers instead of printing the stop reason directly.
3551 (end_stepping_range): New function.
3552 (print_end_stepping_range_reason, print_signal_exited_reason)
3553 (print_exited_reason, print_signal_received_reason)
3554 (print_no_history_reason): Make static, and add an uiout
3555 parameter. Print to that instead of to CURRENT_UIOUT.
3556 * infrun.h (print_end_stepping_range_reason)
3557 (print_signal_exited_reason, print_exited_reason)
3558 (print_signal_received_reason print_no_history_reason): New
3560 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3562 <cli_uiout>: New field.
3563 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3564 uiout for CLI output. Install 'signal_received',
3565 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3567 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3568 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3569 (mi_on_no_history): New functions.
3570 (ui_out_free_cleanup): Delete function.
3571 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3572 instead use the one already stored in the MI interpreter data.
3573 (mi_ui_out): Adjust.
3574 * tui/tui-interp.c: Include infrun.h and observer.h.
3575 (tui_interp): New global.
3576 (tui_on_signal_received, tui_on_end_stepping_range)
3577 (tui_on_signal_exited, tui_on_exited)
3578 (tui_on_no_history): New functions.
3579 (tui_init): Install them as 'end_stepping_range',
3580 'signal_received' 'signal_exited', 'exited' and 'no_history'
3582 (_initialize_tui_interp): Delete tui_interp local.
3584 2014-05-29 Pedro Alves <palves@redhat.com>
3587 * linux-nat.c (linux_nat_resume_callback): Rename the second
3588 parameter to 'except'. Skip LP if it points to EXCEPT.
3589 (linux_nat_resume): Don't mark the event lwp as not stopped
3590 before resuming sibling lwps. Instead ask
3591 linux_nat_resume_callback to skip the event lwp. Mark it as not
3592 stopped after actually resuming it.
3593 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3595 (wait_lwp): Mark the lwp as stopped here.
3596 (stop_wait_callback): Mark the lwp as not stopped right after
3597 resuming it. Don't mark lwps as stopped here.
3598 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3599 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3601 2014-05-29 Pedro Alves <palves@redhat.com>
3604 * infrun.c (resume): Determine how much to resume depending on
3605 whether the caller wanted a step, not whether we can hardware step
3606 the target. Mark all threads that we intend to run as running,
3607 unless we're calling an inferior function.
3608 (normal_stop): If the thread is running an infcall, don't finish
3610 * target.c (target_resume): Don't mark threads as running here.
3612 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3614 * serial.c (_initialize_serial): Remove support for
3615 the "set remotebaud" and "show remotebaud" commands.
3616 * NEWS: Add entry documenting the removal of that command.
3618 2014-05-28 Yao Qi <yao@codesourcery.com>
3620 * charset.c: Fix typo in comments.
3622 2014-05-27 Gary Benson <gbenson@redhat.com>
3624 * utils.c (internal_vproblem): Prompt for a bug report.
3626 2014-05-26 Andy Wingo <wingo@igalia.com>
3628 * guile/scm-arch.c (arscm_mark_arch_smob):
3629 * guile/scm-block.c (bkscm_mark_block_smob)
3630 (bkscm_mark_block_syms_progress_smob):
3631 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3632 * guile/scm-exception.c (exscm_mark_exception_smob):
3633 * guile/scm-frame.c (frscm_mark_frame_smob):
3634 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3635 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3636 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3637 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3638 (ppscm_mark_pretty_printer_worker_smob):
3639 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3640 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3641 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3642 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3644 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3647 2014-05-26 Andy Wingo <wingo@igalia.com>
3648 Doug Evans <xdje42@gmail.com>
3650 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3651 empty_base_class. All uses updated.
3652 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3653 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3655 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3656 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3657 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3658 (gdbscm_gsmob_has_property_p, add_property_name)
3659 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3660 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3661 (gdb-object-has-property?, gdb-object-properties): Remove.
3662 (gdb-object-kind): Renamed from gsmob-kind.
3664 2014-05-26 Andy Wingo <wingo@igalia.com>
3666 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3667 * configure: Regenerate.
3669 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3671 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3673 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3675 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3676 (replay_memory_access_read_only, replay_memory_access_read_write)
3677 (replay_memory_access_types, replay_memory_access)
3678 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3679 (cmd_set_record_btrace, cmd_show_record_btrace)
3680 (cmd_show_replay_memory_access): New.
3681 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3682 (record_btrace_remove_breakpoint): Replace
3683 record_btrace_allow_memory_access with replay_memory_access.
3684 (_initialize_record_btrace): Add commands.
3685 * NEWS: Announce it.
3687 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3689 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3691 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3693 * MAINTAINERS (Write After Approval): Move self back from
3696 2014-05-22 Pedro Alves <palves@redhat.com>
3698 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3699 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3700 (disable_randomization, enum exec_direction_kind)
3701 (execution_direction, stop_registers, start_remote)
3702 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3703 (wait_for_inferior, normal_stop, get_last_target_status)
3704 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3705 (insert_step_resume_breakpoint_at_sal)
3706 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3707 (set_step_info, print_stop_event, signal_stop_state)
3708 (signal_print_state, signal_pass_state, signal_stop_update)
3709 (signal_print_update, signal_pass_update)
3710 (update_signals_program_target, clear_exit_convenience_vars)
3711 (displaced_step_dump_bytes, update_observer_mode)
3712 (signal_catch_update, gdb_signal_from_command): Move
3714 * infrun.h: ... to this new file.
3715 * amd64-tdep.c: Include infrun.h.
3716 * annotate.c: Include infrun.h.
3717 * arch-utils.c: Include infrun.h.
3718 * arm-linux-tdep.c: Include infrun.h.
3719 * arm-tdep.c: Include infrun.h.
3720 * break-catch-sig.c: Include infrun.h.
3721 * breakpoint.c: Include infrun.h.
3722 * common/agent.c: Include infrun.h instead of inferior.h.
3723 * corelow.c: Include infrun.h.
3724 * event-top.c: Include infrun.h.
3725 * go32-nat.c: Include infrun.h.
3726 * i386-tdep.c: Include infrun.h.
3727 * inf-loop.c: Include infrun.h.
3728 * infcall.c: Include infrun.h.
3729 * infcmd.c: Include infrun.h.
3730 * infrun.c: Include infrun.h.
3731 * linux-fork.c: Include infrun.h.
3732 * linux-nat.c: Include infrun.h.
3733 * linux-thread-db.c: Include infrun.h.
3734 * monitor.c: Include infrun.h.
3735 * nto-tdep.c: Include infrun.h.
3736 * procfs.c: Include infrun.h.
3737 * record-btrace.c: Include infrun.h.
3738 * record-full.c: Include infrun.h.
3739 * remote-m32r-sdi.c: Include infrun.h.
3740 * remote-mips.c: Include infrun.h.
3741 * remote-notif.c: Include infrun.h.
3742 * remote-sim.c: Include infrun.h.
3743 * remote.c: Include infrun.h.
3744 * reverse.c: Include infrun.h.
3745 * rs6000-tdep.c: Include infrun.h.
3746 * s390-linux-tdep.c: Include infrun.h.
3747 * solib-irix.c: Include infrun.h.
3748 * solib-osf.c: Include infrun.h.
3749 * solib-svr4.c: Include infrun.h.
3750 * target.c: Include infrun.h.
3751 * top.c: Include infrun.h.
3752 * windows-nat.c: Include infrun.h.
3753 * mi/mi-interp.c: Include infrun.h.
3754 * mi/mi-main.c: Include infrun.h.
3755 * python/py-threadevent.c: Include infrun.h.
3757 2014-05-22 Pedro Alves <palves@redhat.com>
3759 * infrun.c (handle_inferior_event): Store the exit code for
3760 --return-child-result here, instead of ...
3761 (print_exited_reason): ... here.
3763 2014-05-21 Pedro Alves <palves@redhat.com>
3766 * gdbthread.h (struct thread_control_state): New field
3768 * infrun.c (follow_fork): Copy the new thread control field to the
3770 (clear_proceed_status_thread): Clear the new thread control field.
3771 (proceed): Set the new thread control field.
3772 * interps.h (command_interp): Declare.
3773 * interps.c (command_interpreter): New global.
3774 (command_interp): New function.
3775 (interp_exec): Set `command_interpreter' while here.
3776 * cli-out.c (cli_uiout_dtor): New function.
3777 (cli_ui_out_impl): Install it.
3778 * mi/mi-interp.c: Include cli-out.h.
3779 (mi_cmd_interpreter_exec): Add comment.
3780 (restore_current_uiout_cleanup): New function.
3781 (ui_out_free_cleanup): New function.
3782 (mi_on_normal_stop): If finishing an execution command started by
3783 a CLI command, or any kind of breakpoint-like event triggered,
3784 print the stop event to the output (CLI) stream.
3785 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3787 2014-05-21 Pedro Alves <palves@redhat.com>
3789 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3790 current source line having changed.
3791 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3792 * infrun.c (normal_stop): Adjust call to
3793 set_current_sal_from_frame.
3794 * source.c (clear_lines_listed_range): New function.
3795 (set_current_source_symtab_and_line, identify_source_line): Clear
3796 the lines listed range.
3797 (line_info): Handle the first "info line" after the current source
3798 line having changed.
3799 * stack.c (print_stack_frame): Remove center handling.
3800 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3803 2014-05-21 Pedro Alves <palves@redhat.com>
3805 * inf-child.c (inf_child_mourn_inferior): New function.
3806 * inf-child.h (inf_child_mourn_inferior): New declaration.
3807 * darwin-nat.c (darwin_mourn_inferior): Use
3808 inf_child_mourn_inferior.
3809 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3810 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3811 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3812 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3813 * windows-nat.c (windows_mourn_inferior): Likewise.
3815 2014-05-21 Doug Evans <xdje42@gmail.com>
3817 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3819 2014-05-21 Doug Evans <xdje42@gmail.com>
3821 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3822 (gdbscm_out_of_range_error): Ditto.
3823 (gdbscm_memory_error): Ditto.
3824 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3825 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3826 (gdbscm_out_of_range_error): Update.
3827 (gdbscm_memory_error): Update.
3828 (gdbscm_scm_to_target_string_unsafe): Delete.
3830 2014-05-21 Pedro Alves <palves@redhat.com>
3832 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3834 (inf_child_open_target): New function.
3835 (inf_child_open): Use inf_child_open_target to push the target
3836 instead of erroring out.
3837 (inf_child_disconnect, inf_child_close)
3838 (inf_child_maybe_unpush_target): New functions.
3839 (inf_child_target): Install inf_child_disconnect and
3840 inf_child_close. Store a pointer to the returned object.
3841 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3843 * target.c (auto_connect_native_target): New global.
3844 (show_default_run_target): New function.
3845 (find_default_run_target): Return NULL if automatically connecting
3846 to the native target is disabled.
3847 (_initialize_target): Install set/show auto-connect-native-target.
3848 * NEWS: Mention "set auto-connect-native-target", and "target
3850 * linux-nat.c (super_close): New global.
3851 (linux_nat_close): Call super_close.
3852 (linux_nat_add_target): Store a pointer to the base class's
3854 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3855 inf_child_maybe_unpush.
3856 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3858 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3859 the inferior. Use inf_child_maybe_unpush_target.
3860 (inf_ttrace_attach): Don't push the target if it is already
3862 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3863 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3864 after mourning the inferior. Use inf_child_maybe_unpush_target.
3865 (darwin_attach_pid): Don't push the target if it is already
3867 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3868 mourning the inferior. Use inf_child_maybe_unpush_target.
3869 (gnu_detach): Use inf_child_maybe_unpush_target.
3870 * go32-nat.c (go32_create_inferior): Don't push the target if it
3872 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3873 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3874 (procfs_open): Rename to ...
3875 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3876 comments. Can target_preopen before changing node. Call
3877 inf_child_open_target to push the target explicitly.
3878 (procfs_attach): Don't push the target if it is already pushed.
3879 (procfs_detach): Use inf_child_maybe_unpush_target.
3880 (procfs_create_inferior): Don't push the target if it is already
3882 (nto_native_ops): New global.
3883 (procfs_open): Reimplement.
3884 (procfs_native_open): New function.
3885 (init_procfs_targets): Install procfs_native_open as to_open of
3886 "target native". Store a pointer to the "native" target in
3888 * procfs.c (procfs_attach): Don't push the target if it is already
3890 (procfs_detach): Use inf_child_maybe_unpush_target.
3891 (procfs_mourn_inferior): Only unpush the target after mourning the
3892 inferior. Use inf_child_maybe_unpush_target.
3893 (procfs_init_inferior): Don't push the target if it is already
3895 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3896 if it is already pushed.
3898 2014-05-21 Pedro Alves <palves@redhat.com>
3900 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3901 and "procfs" targets are now called "native" instead.
3903 2014-05-21 Pedro Alves <palves@redhat.com>
3905 * go32-nat.c (go32_open): Delete.
3906 (go32_target): Don't override the to_open method.
3908 2014-05-21 Pedro Alves <palves@redhat.com>
3910 * nto-procfs.c (procfs_can_run): New function.
3911 (nto_procfs_ops): New global.
3912 (init_procfs_targets): New, based on procfs_target. Install
3913 "target native" in addition to "target procfs".
3914 (_initialize_procfs): Call init_procfs_targets instead of adding
3917 2014-05-21 Pedro Alves <palves@redhat.com>
3919 * windows-nat.c (windows_target): Don't override to_shortname,
3920 to_longname or to_doc.
3922 2014-05-21 Pedro Alves <palves@redhat.com>
3924 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3927 2014-05-21 Pedro Alves <palves@redhat.com>
3929 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3930 to_shortname, to_longname or to_doc.
3932 2014-05-21 Pedro Alves <palves@redhat.com>
3934 * go32-nat.c (go32_target): Don't override to_shortname,
3935 to_longname or to_doc.
3937 2014-05-21 Pedro Alves <palves@redhat.com>
3939 * inf-child.c (inf_child_open): Remove mention of "child".
3940 (inf_child_target): Rename target to "native" instead of "child".
3942 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3944 * Makefile.in (SFILES): Delete "regset.c".
3945 (COMMON_OBS): Delete "regset.o".
3947 * regset.h (regset_alloc): Delete prototype.
3949 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3951 * sparc-linux-tdep.c (sparc32_linux_gregset)
3952 (sparc32_linux_fpregset): New static regset structures.
3953 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3954 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3956 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3957 (sparc64_linux_fpregset): New static regset structures.
3958 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3959 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3960 New static regset structures.
3961 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3962 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3963 New static regset structures.
3964 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3965 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3966 New static regset structures.
3967 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3968 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3969 New static regset structures.
3970 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3972 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3974 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3975 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3976 register maps ("regmaps") from "*regset" to "*regmap". Do this
3977 for all regmap types and variables.
3978 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3979 (sparc32_linux_supply_core_gregset)
3980 (sparc32_linux_collect_core_gregset)
3981 (sparc32_linux_supply_core_fpregset)
3982 (sparc32_linux_collect_core_fpregset): Likewise.
3983 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3984 (sparc_gregmap, sparc_fpregmap): ... these.
3985 (sparc_supply_gregset, sparc_collect_gregset)
3986 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3987 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3988 (_initialize_sparc_nat): Rename regmaps.
3989 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3990 (sparc_gregmap, sparc_fpregmap): ... these.
3991 (sparc_supply_gregset, sparc_collect_gregset)
3992 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3993 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3995 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3996 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3998 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4000 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4001 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4002 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4004 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4005 (sparc32_bsd_fpregset): Rename to...
4006 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4007 (sparc32_bsd_fpregmap): ... these.
4008 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4009 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4010 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4011 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4012 (struct sparc_gregmap, struct sparc_fpregmap)
4013 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4014 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4015 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4016 (sparc32_supply_regset, sparc32_collect_gregset)
4017 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4019 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4020 (sparc64_linux_ptrace_gregmap): ... this.
4021 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4022 (_initialize_sparc64_linux_nat): Rename regmaps.
4023 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4024 (sparc64_linux_core_gregmap): ... this.
4025 (sparc64_linux_supply_core_gregset)
4026 (sparc64_linux_collect_core_gregset)
4027 (sparc64_linux_supply_core_fpregset)
4028 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4029 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4030 (sparc64_sol2_fpregset): Rename to...
4031 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4032 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4033 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4035 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4036 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4037 (sparc64_bsd_fpregset): Rename to...
4038 (struct sparc_gregmap, sparc64_sol2_gregmap)
4039 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4040 (sparc64_bsd_fpregmap): ... these.
4041 (sparc64_supply_gregset, sparc64_collect_gregset)
4042 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4044 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4045 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4046 (sparc64fbsd_gregmap): ... this.
4047 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4048 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4050 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4051 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4052 (sparc64nbsd_collect_fpregset): Likewise.
4053 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4054 (sparc64nbsd_gregmap): ... this.
4055 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4057 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4058 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4059 (sparc64obsd_gregmap): ... this.
4060 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4062 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4063 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4064 (sparc32nbsd_gregmap): ... this.
4065 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4068 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4070 * score-tdep.c (score7_linux_gregset): New static regset
4072 (score7_linux_regset_from_core_section): Remove dynamic regset
4074 (score_gdbarch_init): Drop allocation of tdep structure.
4075 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4079 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4081 (am33_regset_from_core_section): Remove dynamic regset
4084 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4086 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4087 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4089 (mips_linux_regset_from_core_section): Remove dynamic regset
4091 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4092 'gregset64', 'fpregset', and 'fpregset64'.
4093 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4094 deleted tdep fields.
4096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4098 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4100 (amd64_regset_from_core_section): Remove dynamic regset
4102 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4104 (amd64obsd_regset_from_core_section): Remove dynamic regset
4106 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4108 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4109 x86-common regset supply function.
4110 * i386-tdep.c (i386_collect_gregset): Make static.
4111 (i386_gregset): New global regset structure.
4112 (i386_fpregset, i386_xstateregset): New static regset structures.
4113 (i386_regset_from_core_section): Remove dynamic regset
4115 (i386_gdbarch_init): Remove initialization of tdep fields
4116 'gregset', 'fpregset', and 'xstateregset'.
4117 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4118 'fpregset', and 'xstateregset'.
4119 (i386_collect_gregset): Remove prototype.
4120 (i386_gregset): New declaration.
4121 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4123 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4126 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4128 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4129 (arm_linux_vfpregset): New static regset structures.
4130 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4132 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4133 and 'vfpregset' fields.
4135 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4137 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4138 (aarch64_linux_fpregset): New static regset structures.
4139 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4140 of regset structures.
4141 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4144 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4146 * regset.h (struct regset): Remove gdbarch field.
4147 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4148 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4149 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4151 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4152 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4153 (ppc32_linux_vsxregset): Likewise.
4154 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4155 via the regcache instead of the regset.
4156 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4157 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4158 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4159 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4162 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4164 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4165 Constify structures.
4166 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4167 (alphanbsd_aout_gregset): Likewise.
4168 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4169 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4171 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4172 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4174 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4175 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4176 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4177 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4178 * m88k-tdep.c (m88k_gregset): Likewise.
4179 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4180 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4181 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4182 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4183 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4184 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4185 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4186 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4187 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4189 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4190 * sh-tdep.h (sh_corefile_gregset): Likewise.
4191 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4192 * vax-tdep.c (vax_gregset): Likewise.
4194 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4196 Fix TLS access for -static -pthread.
4197 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4198 (try_thread_db_load_1): Initialize it.
4199 (thread_db_get_thread_local_address): Call it if LM is zero.
4200 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4201 * target.h (struct target_ops) (to_get_thread_local_address): Add
4202 load_module_addr comment.
4204 2014-05-21 Pedro Alves <palves@redhat.com>
4206 * dcache.c (dcache_read_memory_partial): If reading the cache line
4207 fails, fallback to reading just the memory the caller wanted.
4209 2014-05-20 Doug Evans <dje@google.com>
4211 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4212 instead of get_current_arch.
4214 2014-05-20 Pedro Alves <palves@redhat.com>
4216 * NEWS: Mention that compare-sections now works with all targets.
4218 * remote.c (PACKET_qCRC): New enum value.
4219 (remote_verify_memory): Don't send qCRC if the target has no
4220 execution. Use packet_support/packet_ok. If the target doesn't
4221 support the qCRC packet, fallback to a deep memory copy.
4222 (compare_sections_command): Say "target image" instead of "remote
4224 (_initialize_remote): Add PACKET_qCRC to the list of config
4225 packets that have no associated command. Extend comment.
4226 * target.c (simple_verify_memory, default_verify_memory): New
4228 * target.h (struct target_ops) <to_verify_memory>: Default to
4229 default_verify_memory.
4230 (simple_verify_memory): New declaration.
4231 * target-delegates.c: Regenerate.
4233 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4235 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4237 2014-05-20 Hui Zhu <hui@codesourcery.com>
4238 Yao Qi <yao@codesourcery.com>
4241 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4242 and change address of sp and pc.
4244 2014-05-19 Tom Tromey <tromey@redhat.com>
4246 * gdbtypes.c (rank_function): Use XNEWVEC.
4247 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4249 2014-05-19 Doug Evans <dje@google.com>
4251 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4252 build_type_unit_groups and moved closer to only caller. Remove
4253 arguments. All references updated. Remove outdated .gdb_index
4255 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4256 build_type_psymtabs_1.
4258 2014-05-19 Doug Evans <dje@google.com>
4260 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4261 n_type_unit_groups, all_type_unit_groups. All uses removed.
4262 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4263 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4264 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4265 (add_type_unit_group_to_table): Delete.
4267 2014-05-19 Doug Evans <dje@google.com>
4269 * eval.c (evaluate_subexp_standard): Add some comments.
4271 2014-05-17 Doug Evans <xdje42@gmail.com>
4273 * progspace.c (remove_program_space): Delete, unused.
4274 * progspace.h (remove_program_space): Ditto.
4276 2014-05-17 Doug Evans <xdje42@gmail.com>
4278 * inferior.c (prune_inferiors): Fix comment.
4279 (remove_inferior_command): Call prune_program_spaces.
4281 2014-05-16 Doug Evans <dje@google.com>
4283 New command line option -D.
4285 * main.c (set_gdb_data_directory): New function.
4286 (captured_main): Recognize -D. Flag error for --data-directory "".
4287 Call set_gdb_data_directory.
4288 (print_gdb_help): Print --data-directory, -D.
4289 * main.h (set_gdb_data_directory): Declare.
4290 * top.c (staged_gdb_datadir): New static global.
4291 (set_gdb_datadir): Call set_gdb_data_directory
4292 (show_gdb_datadir): New function.
4293 (init_main): Update init of data-directory parameter.
4295 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4297 Import the "dirfd" gnulib module.
4298 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4299 * gnulib/aclocal.m4: Update.
4300 * gnulib/config.in: Update.
4301 * gnulib/configure: Update.
4302 * gnulib/import/Makefile.am: Update.
4303 * gnulib/import/Makefile.in: Update.
4304 * gnulib/import/dirfd.c: New.
4305 * gnulib/import/m4/dirfd.m4: New.
4306 * gnulib/import/m4/gnulib-cache.m4: Update.
4307 * gnulib/import/m4/gnulib-comp.m4: Update.
4309 2014-05-16 Pierre Muller <muller@sourceware.org>
4310 Yao Qi <yao@codesourcery.com>
4312 * valprint.c (print_wchar): Move the code on checking whether
4313 W is a printable wide char to the default branch of switch
4314 statement below. Call wchar_printable instead of gdb_iswprint.
4316 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4318 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4319 ldr.w and ldrd instructions.
4321 2014-05-15 Doug Evans <dje@google.com>
4323 * dwarf2read.c (read_structure_type): Delete outdated comments.
4325 2014-05-14 Tom Tromey <tromey@redhat.com>
4327 * macrocmd.c (print_macro_definition): Reindent.
4329 2014-05-13 Doug Evans <xdje42@gmail.com>
4331 * python/py-cmd.c (cmdpy_completer): Add comment.
4332 (completers): Make const.
4334 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4336 * infrun.c (resume): Remove should_resume (unused). Move up
4337 declaration of resume_ptid.
4339 2014-05-13 Tom Tromey <tromey@redhat.com>
4341 * language.h (unop_type_check): Remove.
4342 (binop_type_check): Don't declare.
4344 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4346 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4347 call to regcache_raw_collect.
4349 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4351 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4352 mi_console->quote as the quoting character.
4354 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4356 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4358 2014-04-29 Tom Tromey <tromey@redhat.com>
4360 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4361 "show debug varobj".
4363 2014-05-07 Kyle McMartin <kyle@redhat.com>
4365 Pushed by Joel Brobecker <brobecker@adacore.com>.
4366 * aarch64-tdep.c (aarch64_software_single_step): New function.
4367 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4368 with aarch64_software_single_step.
4370 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4374 2014-05-05 Keith Seitz <keiths@redhat.com>
4376 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4377 variable or history value is successfully parsed.
4379 2014-05-05 Yao Qi <yao@codesourcery.com>
4380 Pedro Alves <palves@redhat.com>
4382 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4383 address of blocks that intersects the requested range. Trim
4384 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4386 * ctf.c (ctf_xfer_partial): Likewise.
4388 2014-05-05 Yao Qi <yao@codesourcery.com>
4390 * printcmd.c (display_command): Remove the check to
4391 target_has_execution.
4393 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4395 * ppcobsd-nat.c: Include "obsd-nat.h".
4396 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4398 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4400 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4402 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4403 and 16-bit signed and unsigned arguments. Update comment.
4404 (stap_parse_probe_arguments): Extend code to handle such
4405 arguments. Use warning instead of complaint to notify about
4406 unrecognized bitness.
4408 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4410 PR breakpoints/16889
4411 * stap-probe.c (stap_parse_probe_arguments): Simplify
4412 check for non-prefixed probes (i.e., probes whose
4413 arguments do not start with "N@"). Always set the
4414 argument type to a sane value.
4416 2014-05-01 David Taylor <dtaylor@emc.com>
4418 * remote.c (compare_sections_command): Add -r option to compare
4419 all loadable read-only sections.
4421 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4423 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4424 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4426 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4427 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4428 Remove unused CORE_ADDR argument. Update all callers.
4430 2014-04-29 Pedro Alves <palves@redhat.com>
4432 * remote.c (struct packet_config) <detect>: Extend comment.
4433 (add_packet_config_cmd): Don't set the config's detect or support
4435 (init_all_packet_configs): Also initialize the config's 'detect'
4437 (reset_all_packet_configs_support): New function.
4438 (remote_open_1): Call reset_all_packet_configs_support instead of
4439 init_all_packet_configs.
4440 (_initialize_remote): Initialize all packet configs. Assert that
4441 all packets have an associated command, except a few known
4444 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4446 * dwarf2read.c (read_subrange_type): Handle dynamic
4447 DW_AT_lower_bound attributes.
4449 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4451 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4452 dynamic bounds before computing its upper bound.
4453 (ada_discrete_type_low_bound): Same as above with the lower bound.
4455 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4457 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4458 range types. Adjust the array handling implementation to
4459 take advantage of this change.
4460 (resolve_dynamic_range): New function, mostly extracted from
4461 resolve_dynamic_bounds.
4462 (resolve_dynamic_array): New function, mostly extracted from
4463 resolve_dynamic_bounds.
4464 (resolve_dynamic_bounds): Delete.
4465 (resolve_dynamic_type): Reimplement. Add handling of
4466 TYPE_CODE_RANGE types.
4468 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4470 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4471 handling of parallel ___XA types.
4473 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4475 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4476 unnecessary second call to static_unwrap_type.
4478 2014-04-27 Hui Zhu <hui@codesourcery.com>
4480 * stack.c (print_frame_info): Call do_gdb_disassembly with
4481 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4483 2014-04-26 Doug Evans <xdje42@gmail.com>
4485 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4487 2014-04-25 Pedro Alves <palves@redhat.com>
4490 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4491 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4492 and newline from built string.
4493 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4494 (linux_ptrace_attach_fail_reason): ... this.
4495 * linux-nat.c (linux_nat_attach): Adjust to use
4496 linux_ptrace_attach_fail_reason.
4498 2014-04-25 Pedro Alves <palves@redhat.com>
4500 * remote.c (struct remote_state): Remove multi_process_aware,
4501 non_stop_aware, cond_tracepoints, cond_breakpoints,
4502 breakpoint_commands, fast_tracepoints, static_tracepoints,
4503 install_in_trace, disconnected_tracing,
4504 enable_disable_tracepoints, string_tracing, and
4505 augmented_libraries_svr4_read fields.
4506 (remote_multi_process_p): Move further below in the file.
4507 (struct packet_config): Add comments.
4508 (update_packet_config): Delete function.
4509 (show_packet_config_cmd): Use packet_config_support.
4510 (add_packet_config_cmd): Use NULL as set callback.
4511 (packet_ok): "set remote foo-packet"-style commands no longer
4512 change config->supported -- adjust.
4513 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4514 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4515 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4516 (PACKET_QNonStop, PACKET_multiprocess_feature)
4517 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4518 (PACKET_DisconnectedTracing_feature)
4519 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4520 (set_remote_protocol_packet_cmd): Delete function.
4521 (packet_config_support, packet_support): New functions.
4522 (set_remote_protocol_Z_packet_cmd): Don't call
4523 update_packet_config.
4524 (remote_query_attached, remote_pass_signals)
4525 (remote_program_signals, remote_threads_info)
4526 (remote_threads_extra_info, remote_start_remote): Use
4528 (remote_start_remote): Use packet_config_support and
4530 (init_all_packet_configs): Set all packets to unknown support,
4531 instead of calling update_packet_config.
4532 (remote_check_symbols): Use packet_support.
4533 (remote_supported_packet): Unconditionally set the packet config's
4535 (remote_multi_process_feature, remote_non_stop_feature)
4536 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4537 (remote_breakpoint_commands_feature)
4538 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4539 (remote_install_in_trace_feature)
4540 (remote_disconnected_tracing_feature)
4541 (remote_enable_disable_tracepoint_feature)
4542 (remote_string_tracing_feature)
4543 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4544 (remote_protocol_features): Adjust to use remote_supported_packet
4545 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4546 "ConditionalTracepoints", "ConditionalBreakpoints",
4547 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4548 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4549 "EnableDisableTracepoints", and "tracenz".
4550 (remote_query_supported): Use packet_support.
4551 (remote_open_1): Adjust.
4552 (extended_remote_attach_1): Use packet_support. Switch on the
4553 result of packet_ok instead of checking whether the packet ended
4555 (remote_vcont_resume): Use packet_support.
4556 (remote_resume, remote_stop_ns, fetch_register_using_p)
4557 (remote_prepare_to_store, store_register_using_P)
4558 (check_binary_download, remote_write_bytes): Use packet_support.
4559 (remote_vkill): Use packet_support. Switch on the result of
4560 packet_ok instead of checking whether the packet ended up
4562 (extended_remote_supports_disable_randomization): Use
4564 (extended_remote_run): Switch on the result of packet_ok instead
4565 of checking whether the packet ended up disabled.
4566 (remote_insert_breakpoint, remote_remove_breakpoint)
4567 (remote_insert_watchpoint, remote_remove_watchpoint)
4568 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4570 (remote_search_memory): Use packet_config_support.
4571 (remote_get_thread_local_address, remote_get_tib_address)
4572 (remote_hostio_send_command, remote_can_execute_reverse): Use
4574 (remote_supports_cond_tracepoints)
4575 (remote_supports_cond_breakpoints)
4576 (remote_supports_fast_tracepoints)
4577 (remote_supports_static_tracepoints)
4578 (remote_supports_install_in_trace)
4579 (remote_supports_enable_disable_tracepoint)
4580 (remote_supports_string_tracing)
4581 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4582 the packet config says the feature is enabled or disabled.
4583 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4584 (remote_get_trace_status): Use packet_support.
4585 (remote_set_disconnected_tracing): Adjust to check whether the
4586 feature is enabled with packet_support.
4587 (remote_set_trace_buffer_size, remote_use_agent)
4588 (remote_can_use_agent, remote_supports_btrace): Use
4590 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4591 Use packet_config_support.
4592 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4593 the packet config says the feature is enabled or disabled.
4594 (set_range_stepping): Use packet_support.
4596 2014-04-25 Tom Tromey <tromey@redhat.com>
4598 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4601 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4603 * NEWS: Mention support for C99 variable length arrays.
4605 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4607 * ada-lang.c (standard_exc): Expand introductory comment.
4609 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4610 Walfred Tedeschi <walfred.tedeschi@intel.com>
4612 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4614 (amd64_linux_read_description): Add code to handle AVX512 xstate
4615 mask and return respective tdesc.
4616 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4617 and features/i386/x32-avx512-linux.c.
4618 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4619 (amd64_linux_core_read_description): Add code to handle AVX512
4620 xstate mask and return respective tdesc.
4621 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4622 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4624 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4625 (tdesc_amd64_avx512_linux): New prototype.
4626 (tdesc_x32_avx512_linux): Likewise.
4627 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4628 features/i386/x32-avx512.c.
4629 (amd64_ymm_avx512_names): New register names for pseudo
4631 (amd64_ymmh_avx512_names): New register names for raw registers
4633 (amd64_k_names): New register names for K registers.
4634 (amd64_zmmh_names): New register names for ZMM raw registers.
4635 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4636 (amd64_xmm_avx512_names): New register names for XMM16-31
4638 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4640 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4641 if feature is present.
4642 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4643 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4644 (AMD64_NUM_REGS): Adjust to new number of registers.
4645 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4646 registers supplied via XSTATE by AVX512 registers.
4647 (i386_linux_read_description): Add case for AVX512.
4648 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4649 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4650 (i386_linux_core_read_description): Add case for AVX512.
4651 (i386_linux_init_abi): Install supported register note section
4653 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4655 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4656 registers to be number of zmm7h + 1.
4657 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4658 * i386-tdep.c: Include features/i386/i386-avx512.c.
4659 (i386_zmm_names): Add ZMM pseudo register names array.
4660 (i386_zmmh_names): Add ZMM raw register names array.
4661 (i386_k_names): Add K raw register names array.
4662 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4663 registers. AVX512 has 16 more ZMM registers than there are YMM
4665 (i386_zmmh_regnum_p): Add function to look up register number of
4667 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4668 (i386_k_regnum_p): Likewise for K raw registers.
4669 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4670 registers added by AVX512.
4671 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4672 registers added by AVX512.
4673 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4675 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4676 (i386_pseudo_register_name): Add ZMM pseudo registers.
4677 (i386_zmm_type): Construct and return vector registers type for ZMM
4679 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4680 ZMM0-31 pseudo registers and K registers.
4681 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4682 and YMM16-31 registers from register cache.
4683 (i386_pseudo_register_write): Add code to write K, ZMM and
4685 (i386_register_reggroup_p): Add code to include/exclude AVX512
4686 registers in/from respective register groups.
4687 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4688 registers if feature is present in xcr0.
4689 (i386_gdbarch_init): Add code to initialize AVX512 feature
4690 variables in tdep structure, wire in pseudo registers and call
4691 initialize_tdesc_i386_avx512.
4692 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4694 (i386_regnum): Add AVX512 registers.
4695 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4696 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4697 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4698 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4700 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4701 (i386_ymm_avx512_regnum_p): Likewise.
4702 (i386_k_regnum_p): Likewise.
4703 (i386_zmm_regnum_p): Likewise.
4704 (i386_zmmh_regnum_p): Likewise.
4705 * i387-tdep.c : Update year in copyright notice.
4706 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4708 (XSAVE_YMM_AVX512_ADDR): New macro.
4709 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4711 (XSAVE_XMM_AVX512_ADDR): New macro.
4712 (xsave_avx512_k_offset): New table for K register offsets in
4714 (XSAVE_AVX512_K_ADDR): New macro.
4715 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4717 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4718 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4720 (i387_collect_xsave): Add code to collect AVX512 registers from
4722 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4723 of XMM16-31 registers.
4724 (I387_NUM_K_REGS): New define for number of K registers.
4725 (I387_K0_REGNUM): New define for K0 register number.
4726 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4727 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4728 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4730 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4731 (I387_XMM16_REGNUM): New define for XMM16 register number.
4732 (I387_YMM0_REGNUM): New define for YMM0 register number.
4733 (I387_KEND_REGNUM): New define for last K register number.
4734 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4735 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4737 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4739 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4741 * features/Makefile: Add AVX512 related files.
4742 * features/i386/32bit-avx512.xml: New file.
4743 * features/i386/64bit-avx512.xml: Likewise.
4744 * features/i386/amd64-avx512-linux.c: Likewise.
4745 * features/i386/amd64-avx512-linux.xml: Likewise.
4746 * features/i386/amd64-avx512.c: Likewise.
4747 * features/i386/amd64-avx512.xml: Likewise.
4748 * features/i386/i386-avx512-linux.c: Likewise.
4749 * features/i386/i386-avx512-linux.xml: Likewise.
4750 * features/i386/i386-avx512.c: Likewise.
4751 * features/i386/i386-avx512.xml: Likewise.
4752 * features/i386/x32-avx512-linux.c: Likewise.
4753 * features/i386/x32-avx512-linux.xml: Likewise.
4754 * features/i386/x32-avx512.c: Likewise.
4755 * features/i386/x32-avx512.xml: Likewise.
4756 * regformats/i386/amd64-avx512-linux.dat: New file.
4757 * regformats/i386/amd64-avx512.dat: Likewise.
4758 * regformats/i386/i386-avx512-linux.dat: Likewise.
4759 * regformats/i386/i386-avx512.dat: Likewise.
4760 * regformats/i386/x32-avx512-linux.dat: Likewise.
4761 * regformats/i386/x32-avx512.dat: Likewise.
4762 * NEWS: Add note about new support for AVX512.
4765 2014-04-23 Pedro Alves <palves@redhat.com>
4767 * breakpoint.c (insert_bp_location): Tolerate errors if the
4768 breakpoint is set in a user-loaded objfile.
4769 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4770 location is marked shlib_disabled. If the breakpoint is set in a
4771 user-loaded objfile is a GDB-side memory breakpoint, validate it
4772 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4773 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4775 * mem-break.c (memory_validate_breakpoint): New function.
4776 * objfiles.c (userloaded_objfile_contains_address_p): New
4778 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4779 * target.h (memory_validate_breakpoint): New declaration.
4781 2014-04-23 Pedro Alves <palves@redhat.com>
4783 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4784 the breakpoint is set in a shared library, only suppress
4785 errors for software breakpoints, not hardware breakpoints.
4787 2014-04-22 Pedro Alves <palves@redhat.com>
4789 * infrun.c (schedlock_applies): New function, factored out from
4790 find_thread_needs_step_over.
4791 (find_thread_needs_step_over): Use it.
4792 (switch_back_to_stepped_thread): Always clear trap_expected if the
4793 step over is finished. Return early if scheduler locking applies.
4794 Look for the stepping thread and a potential step-over thread with
4796 (currently_stepping_or_nexting_callback): Delete.
4798 2014-04-22 Nick Clifton <nickc@redhat.com>
4800 * NEWS: Mention that ARM sim now supports tracing.
4802 2014-04-22 Yao Qi <yao@codesourcery.com>
4804 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4806 * tracefile.c (tracefile_fetch_registers): ... it. New
4808 * tracefile.h (tracefile_fetch_registers): Declare.
4809 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4810 tracefile_fetch_registers.
4812 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4815 * windows-nat.c (thread_rec): Don't display a warning when
4816 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4817 fails for any reason, set th->suspended to -1, so that we don't
4818 try to resume such a thread. Also, don't return NULL in these
4819 cases, to avoid completely ruin the session due to "PC register is
4820 not available" error.
4821 (do_windows_fetch_inferior_registers): Check errors in
4822 GetThreadContext call.
4823 (windows_continue): Accept an additional argument KILLED; if not
4824 zero, ignore errors in the SetThreadContext call, since the
4825 inferior was killed and is shutting down.
4826 (windows_resume, get_windows_debug_event)
4827 (windows_create_inferior, windows_mourn_inferior)
4828 (windows_kill_inferior): All callers of windows_continue changed
4829 to adjust to its new calling sequence.
4831 2014-04-19 Yao Qi <yao@codesourcery.com>
4833 * ctf.c (ctf_open): Call post_create_inferior.
4835 2014-04-19 Yao Qi <yao@codesourcery.com>
4837 * ctf.c (handle_id): New static variable.
4838 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4839 value. Get the declaration of event "register" and get length
4840 of field "contents".
4842 2014-04-19 Yao Qi <yao@codesourcery.com>
4844 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4846 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4848 * valops.c (oload_method_static): Remove unnecessary argument
4849 METHOD. Update all callers.
4851 2014-04-18 Pedro alves <palves@redhat.com>
4852 Tom Tromey <tromey@redhat.com>
4855 * frame.c (get_prev_frame_1): Rename to ...
4856 (get_prev_frame_always): ... this, and make extern. Adjust.
4857 (skip_artificial_frames): Use get_prev_frame_always.
4858 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4859 (get_frame_unwind_stop_reason): Adjust to rename.
4860 * frame.h (get_prev_frame_always): Declare.
4861 * inline-frame.c: Include frame.h.
4862 (inline_frame_this_id): Use get_prev_frame_always.
4864 2014-04-18 Tristan Gingold <gingold@adacore.com>
4866 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4867 code by using bfd_mach_o_get_base_address.
4869 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4871 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4872 (spu_ax_pseudo_register_collect): New function.
4873 (spu_ax_pseudo_register_push_stack): Likewise.
4874 (spu_dwarf_reg_to_regnum): Likewise.
4875 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4877 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4879 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4880 Replace FRAME argument with FRAME_ID.
4881 * gdbarch.c, gdbarch.h: Regenerate.
4882 * findvar.c (default_value_from_register): Add GDBARCH argument;
4883 replace FRAME by FRAME_ID. No longer call get_frame_id.
4884 (value_from_register): Update call to gdbarch_value_from_register.
4885 * value.h (default_value_from_register): Update prototype.
4886 * s390-linux-tdep.c (s390_value_from_register): Update interface
4887 and call to default_value_from_register.
4888 * spu-tdep.c (spu_value_from_register): Likewise.
4890 * findvar.c (address_from_register): Remove TYPE argument.
4891 Do not call value_from_register; use gdbarch_value_from_register
4892 with null_frame_id instead.
4893 * value.h (address_from_register): Update prototype.
4894 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4895 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4896 address_from_register interface change.
4898 2014-04-17 Yao Qi <yao@codesourcery.com>
4900 * gdbtypes.h: Update comments to link to types and macros'
4903 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4905 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4907 2014-04-16 Keith Seitz <keiths@redhat.com>
4910 * dwarf2read.c (skip_one_die): Check that all relative-offset
4911 sibling DIEs fall within range of the current reader's buffer.
4912 (read_partial_die): Likewise.
4914 2014-04-16 Keith Seitz <keiths@redhat.com>
4917 * cp-namespace.c (lookup_symbol_file): If the type name of
4918 `this' is NULL, return immediately.
4920 2014-04-14 Keith Seitz <keiths@redhat.com>
4923 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4924 from symbol_matches_domain in symtab.c. All local callers
4925 of symbol_matches_domain updated.
4926 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4927 search STRUCT_DOMAIN.
4928 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4929 independently. standard_lookup will do that automatically.
4930 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4931 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4932 (cp_lookup_symbol_in_namespace): Likewise.
4933 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4934 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4935 may return a STRUCT_DOMAIN match.
4936 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4937 * cp-support.c: Include language.h.
4938 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4940 * psymtab.c (match_partial_symbol): Compare the requested
4941 domain with the symbol's domain directly.
4942 (lookup_partial_symbol): Likewise.
4943 * symtab.c (lookup_symbol_in_language): Explain when/why
4944 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4945 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4946 appropriate languages.
4947 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4948 and moved to ada-lang.c
4949 (lookup_block_symbol): Explain that this function only returns
4950 symbol matching the requested DOMAIN.
4951 Compare the requested domain with the symbol's domain directly.
4952 (iterate_over_symbols): Compare the requested domain with the
4953 symbol's domain directly.
4954 * symtab.h (symbol_matches_domain): Remove.
4956 2014-04-14 Tom Tromey <tromey@redhat.com>
4959 * c-exp.y (type_aggregate_p): New function.
4960 (qualified_name, classify_inner_name): Use it.
4961 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4962 and TYPE_TARGET_TYPE of an enum type.
4963 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4965 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4966 handle TYPE_DECLARED_CLASS.
4967 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4969 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4970 * valops.c (enum_constant_from_type): New function.
4971 (value_aggregate_elt): Use it.
4972 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4975 2014-04-14 Tom Tromey <tromey@redhat.com>
4977 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4978 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4980 * value.h (value_aggregate_elt): Update.
4982 2014-04-14 Tom Tromey <tromey@redhat.com>
4984 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4986 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4988 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4989 (evaluate_subexp_standard): Pass noside argument.
4990 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4991 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4992 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4993 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4994 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4996 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4998 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4999 points to a constant blob.
5001 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5003 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5004 property and store it as the high bound and flag the range accordingly.
5005 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5006 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5007 * gdbtypes.h (enum range_flags): New enum.
5008 (struct range_bounds): Add flags member.
5010 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5012 * c-typeprint.c (c_type_print_varspec_suffix): Added
5013 check for not yet resolved high bound. If unresolved, print
5014 "variable length" string to the console instead of random
5017 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5021 (ada_template_to_fixed_record_type_1): Likewise.
5022 (ada_to_fixed_type_1): Likewise.
5023 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5024 (cp_print_value): Likewise.
5025 * d-valprint.c (dynamic_array_type): Likewise.
5026 * findvar.c (address_of_variable): Likewise.
5027 * jv-valprint.c (java_value_print): Likewise.
5028 * valops.c (value_ind): Likewise.
5029 * value.c (coerce_ref): Likewise.
5031 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5033 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5034 value and retrieve the dynamic type size.
5036 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5038 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5039 passed to sizeof is dynamic evaluate the argument to compute the length.
5041 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5042 Joel Brobecker <brobecker@adacore.com>
5044 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5045 (dwarf2_evaluate_property): New function.
5046 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5047 * dwarf2read.c (attr_to_dynamic_prop): New function.
5048 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5050 * gdbtypes.c: Include dwarf2loc.h.
5051 (is_dynamic_type): New function.
5052 (resolve_dynamic_type): New function.
5053 (resolve_dynamic_bounds): New function.
5054 (get_type_length): New function.
5055 (check_typedef): Use get_type_length to compute type length.
5056 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5057 (TYPE_LOW_BOUND_KIND): New macro.
5058 (is_dynamic_type): New function prototype.
5059 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5060 to resolve dynamic properties of the type. Update comment.
5061 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5063 2014-04-14 Richard Henderson <rth@redhat.com>
5065 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5067 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5068 Doug Evans <xdje42@gmail.com>
5070 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5071 dereference TYPE_CODE_REF values.
5073 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5075 Revert the following changes due to regressions:
5077 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5078 (dwarf2_evaluate_property): New function.
5079 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5080 * dwarf2read.c (attr_to_dynamic_prop): New function.
5081 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5083 * gdbtypes.c: Include dwarf2loc.h.
5084 (is_dynamic_type): New function.
5085 (resolve_dynamic_type): New function.
5086 (resolve_dynamic_bounds): New function.
5087 (get_type_length): New function.
5088 (check_typedef): Use get_type_length to compute type length.
5089 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5090 (TYPE_LOW_BOUND_KIND): New macro.
5091 (is_dynamic_type): New function prototype.
5092 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5093 to resolve dynamic properties of the type. Update comment.
5094 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5096 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5097 passed to sizeof is dynamic evaluate the argument to compute the length.
5099 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5100 value and retrieve the dynamic type size.
5102 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5103 (ada_template_to_fixed_record_type_1): Likewise.
5104 (ada_to_fixed_type_1): Likewise.
5105 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5106 (cp_print_value): Likewise.
5107 * d-valprint.c (dynamic_array_type): Likewise.
5108 * eval.c (evaluate_subexp_with_coercion): Likewise.
5109 * findvar.c (address_of_variable): Likewise.
5110 * jv-valprint.c (java_value_print): Likewise.
5111 * valops.c (value_ind): Likewise.
5112 * value.c (coerce_ref): Likewise.
5114 * c-typeprint.c (c_type_print_varspec_suffix): Added
5115 check for not yet resolved high bound. If unresolved, print
5116 "variable length" string to the console instead of random
5119 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5120 property and store it as the high bound and flag the range accordingly.
5121 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5122 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5123 * gdbtypes.h (enum range_flags): New enum.
5124 (struct range_bounds): Add flags member.
5126 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5127 points to a constant blob.
5129 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5130 (evaluate_subexp_standard): Pass noside argument.
5131 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5132 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5133 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5134 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5135 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5137 2014-04-11 Keith Seitz <keiths@redhat.com>
5140 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5141 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5144 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5146 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5147 (evaluate_subexp_standard): Pass noside argument.
5148 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5149 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5150 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5151 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5152 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5154 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5156 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5157 points to a constant blob.
5159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5161 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5162 property and store it as the high bound and flag the range accordingly.
5163 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5164 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5165 * gdbtypes.h (enum range_flags): New enum.
5166 (struct range_bounds): Add flags member.
5168 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5170 * c-typeprint.c (c_type_print_varspec_suffix): Added
5171 check for not yet resolved high bound. If unresolved, print
5172 "variable length" string to the console instead of random
5175 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5177 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5178 (ada_template_to_fixed_record_type_1): Likewise.
5179 (ada_to_fixed_type_1): Likewise.
5180 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5181 (cp_print_value): Likewise.
5182 * d-valprint.c (dynamic_array_type): Likewise.
5183 * eval.c (evaluate_subexp_with_coercion): Likewise.
5184 * findvar.c (address_of_variable): Likewise.
5185 * jv-valprint.c (java_value_print): Likewise.
5186 * valops.c (value_ind): Likewise.
5187 * value.c (coerce_ref): Likewise.
5189 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5191 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5192 value and retrieve the dynamic type size.
5194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5196 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5197 passed to sizeof is dynamic evaluate the argument to compute the length.
5199 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5201 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5202 (dwarf2_evaluate_property): New function.
5203 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5204 * dwarf2read.c (attr_to_dynamic_prop): New function.
5205 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5207 * gdbtypes.c: Include dwarf2loc.h.
5208 (is_dynamic_type): New function.
5209 (resolve_dynamic_type): New function.
5210 (resolve_dynamic_bounds): New function.
5211 (get_type_length): New function.
5212 (check_typedef): Use get_type_length to compute type length.
5213 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5214 (TYPE_LOW_BOUND_KIND): New macro.
5215 (is_dynamic_type): New function prototype.
5216 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5217 to resolve dynamic properties of the type. Update comment.
5218 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5220 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5222 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5223 declaring high/low bounds and change uses accordingly. Call
5224 create_range_type instead of create_static_range_type.
5225 * gdbtypes.c (create_range_type): New function.
5226 (create_range_type): Convert bounds into struct bound_prop and pass
5227 them to create_range_type.
5228 * gdbtypes.h (struct bound_prop): New struct.
5229 (create_range_type): New function prototype.
5230 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5231 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5232 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5234 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5236 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5238 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5239 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5240 * ada-lang.c: All uses of create_range_type updated.
5241 * coffread.c: All uses of create_range_type updated.
5242 * dwarf2read.c: All uses of create_range_type updated.
5243 * f-exp.y: All uses of create_range_type updated.
5244 * m2-valprint.c: All uses of create_range_type updated.
5245 * mdebugread.c: All uses of create_range_type updated.
5246 * stabsread.c: All uses of create_range_type updated.
5247 * valops.c: All uses of create_range_type updated.
5248 * valprint.c: All uses of create_range_type updated.
5250 2014-04-10 Pedro Alves <palves@redhat.com>
5252 * breakpoint.c (single_step_breakpoints)
5253 (single_step_gdbarch): Move up in the file.
5254 (one_breakpoint_xfer_memory): New function, factored out from ...
5255 (breakpoint_xfer_memory): ... here. Also process single-step
5258 2014-04-09 Tristan Gingold <gingold@adacore.com>
5260 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5262 (darwin_decode_exception_message): Free port only after use.
5264 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5266 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5267 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5268 when setting the size of call_length.
5270 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5272 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5273 dereference TYPE_CODE_REF values.
5275 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5277 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5278 end of warning message.
5280 2014-04-03 Doug Evans <dje@google.com>
5282 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5283 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5285 2014-04-02 Alan Modra <amodra@gmail.com>
5287 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5288 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5289 (struct symbol_file_add_from_memory_args): Add size field.
5290 (find_vdso_size): New function.
5291 (add_vsyscall_page): Attempt to find vdso size.
5293 2014-04-01 Doug Evans <dje@google.com>
5295 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5297 2014-04-01 Tristan Gingold <gingold@adacore.com>
5299 * darwin-nat.c (darwin_encode_reply): Add prototype.
5300 (darwin_decode_exception_message): Reply to unknown inferiors.
5301 (darwin_decode_message): Handle message by id. Ignore message
5302 to unknown inferior.
5303 (darwin_wait): Discard unknown messages, add debug trace.
5305 2014-03-31 Doug Evans <dje@google.com>
5307 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5310 2014-03-31 Doug Evans <dje@google.com>
5312 New option "set print symbol-loading".
5314 * solib.c (solib_read_symbols): Only print symbol loading messages
5316 (solib_add): If symbol loading is in "brief" mode, notify user
5317 symbols are being loaded.
5318 (reload_shared_libraries_1): Ditto.
5319 * symfile.c (print_symbol_loading_off): New static global.
5320 (print_symbol_loading_brief): New static global.
5321 (print_symbol_loading_full): New static global.
5322 (print_symbol_loading_enums): New static global.
5323 (print_symbol_loading): New static global.
5324 (print_symbol_loading_p): New function.
5325 (symbol_file_add_with_addrs): Only print symbol loading messages
5327 (_initialize_symfile): Register "print symbol-loading" set/show
5329 * symfile.h (print_symbol_loading_p): Declare.
5331 2014-03-30 Doug Evans <xdje42@gmail.com>
5333 * infrun.c (set_last_target_status): New function.
5334 (handle_inferior_event): Call it.
5336 2014-03-30 Doug Evans <xdje42@gmail.com>
5338 * inferior.h (enum stop_kind): Improve comment.
5340 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5342 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5343 a reference, strip the reference layer before calling
5344 the lang_ops value_has_mutated callback.
5346 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5348 Remove some globals from our parser.
5349 * language.c (unk_lang_parser): Add "struct parser_state"
5351 * language.h (struct language_defn) <la_parser>: Likewise.
5352 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5353 (initialize_expout): Add "struct parser_state" argument.
5354 Rewrite function to use the parser state.
5355 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5356 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5357 write_exp_elt_longcst, write_exp_elt_dblcst,
5358 write_exp_elt_decfloatcst, write_exp_elt_type,
5359 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5360 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5361 write_dollar_variable): Likewise.
5362 (parse_exp_in_context_1): Use parser state.
5363 (insert_type_address_space): Add "struct parser_state" argument.
5365 (increase_expout_size): New function.
5366 * parser-defs.h: Forward declare "struct language_defn" and
5367 "struct parser_state".
5368 (expout, expout_size, expout_ptr): Remove extern declarations.
5369 (parse_gdbarch, parse_language): Rewrite macro declarations to
5370 accept the parser state.
5371 (struct parser_state): New struct.
5372 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5373 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5374 write_exp_elt_decfloatcst, write_exp_elt_type,
5375 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5376 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5377 write_exp_msymbol, write_dollar_variable,
5378 mark_struct_expression, insert_type_address_space): Add "struct
5379 parser_state" argument.
5380 (increase_expout_size): New function.
5381 * utils.c (do_clear_parser_state): New function.
5382 (make_cleanup_clear_parser_state): Likewise.
5383 * utils.h (make_cleanup_clear_parser_state): New function
5385 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5386 Update calls to write_exp* in order to pass the parser state.
5387 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5388 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5389 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5390 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5391 * stap-probe.c (stap_parse_register_operand): Likewise.
5392 (stap_parse_single_operand): Likewise.
5393 (stap_parse_argument_1): Likewise.
5394 (stap_parse_argument): Use parser state.
5395 * stap-probe.h: Include "parser-defs.h".
5396 (struct stap_parse_info) <pstate>: New field.
5397 * c-exp.y (parse_type): Rewrite to use parser state.
5398 (yyparse): Redefine to c_parse_internal.
5399 (pstate): New global variable.
5400 (parse_number): Add "struct parser_state" argument.
5401 (write_destructor_name): Likewise.
5402 (type_exp): Update calls to write_exp* and similars in order to
5404 (exp1, exp, variable, qualified_name, space_identifier,
5405 typename, typebase): Likewise.
5406 (write_destructor_name, parse_number, lex_one_token,
5407 classify_name, classify_inner_name, c_parse): Add "struct
5408 parser_state" argument. Update function to use parser state.
5409 * c-lang.h: Forward declare "struct parser_state".
5410 (c_parse): Add "struct parser_state" argument.
5411 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5412 (yyparse): Redefine macro to ada_parse_internal.
5413 (pstate): New variable.
5414 (write_int, write_object_renaming, write_var_or_type,
5415 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5416 type_int, type_long, type_long_long, type_float, type_double,
5417 type_long_double, type_char, type_boolean, type_system_address):
5418 Add "struct parser_state" argument.
5419 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5420 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5421 var_or_type, aggregate, aggregate_component_list,
5422 positional_list, others, component_group,
5423 component_associations): Update calls to write_exp* and similar
5424 functions in order to use parser state.
5425 (ada_parse, write_var_from_sym, write_int,
5426 write_exp_op_with_string, write_object_renaming,
5427 find_primitive_type, write_selectors, write_ambiguous_var,
5428 write_var_or_type, write_name_assoc, type_int, type_long,
5429 type_long_long, type_float, type_double, type_long_double,
5430 type_char, type_boolean, type_system_address): Add "struct
5431 parser_state" argument. Adjust function to use parser state.
5432 * ada-lang.c (parse): Likewise.
5433 * ada-lang.h: Forward declare "struct parser_state".
5434 (ada_parse): Add "struct parser_state" argument.
5435 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5436 calls to both functions.
5437 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5439 (yyparse): Redefine macro to f_parse_internal.
5440 (pstate): New variable.
5441 (parse_number): Add "struct parser_state" argument.
5442 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5443 and similars in order to use parser state.
5444 (parse_number): Adjust code to use parser state.
5446 (f_parse): New function.
5447 * f-lang.h: Forward declare "struct parser_state".
5448 (f_parse): Add "struct parser_state" argument.
5449 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5451 (yyparse): Redefine macro for java_parse_internal.
5452 (pstate): New variable.
5453 (push_expression_name, push_expression_name, insert_exp): Add
5454 "struct parser_state" argument.
5455 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5456 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5457 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5458 PostIncrementExpression, PostDecrementExpression,
5459 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5460 UnaryExpressionNotPlusMinus, CastExpression,
5461 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5462 RelationalExpression, EqualityExpression, AndExpression,
5463 ExclusiveOrExpression, InclusiveOrExpression,
5464 ConditionalAndExpression, ConditionalOrExpression,
5465 ConditionalExpression, Assignment, LeftHandSide): Update
5466 calls to write_exp* and similars in order to use parser state.
5467 (parse_number): Ajust code to use parser state.
5469 (java_parse): New function.
5470 (push_variable): Add "struct parser_state" argument. Adjust
5471 code to user parser state.
5472 (push_fieldnames, push_qualified_expression_name,
5473 push_expression_name, insert_exp): Likewise.
5474 * jv-lang.h: Forward declare "struct parser_state".
5475 (java_parse): Add "struct parser_state" argument.
5476 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5478 (yyparse): Redefine macro to m2_parse_internal.
5479 (pstate): New variable.
5480 (type_exp, exp, fblock, variable, type): Update calls to
5481 write_exp* and similars to use parser state.
5483 (m2_parse): New function.
5484 * m2-lang.h: Forward declare "struct parser_state".
5485 (m2_parse): Add "struct parser_state" argument.
5486 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5487 * objc-lang.h: Forward declare "struct parser_state".
5488 (end_msglist): Add "struct parser_state" argument.
5489 * p-exp.y (parse_type): Rewrite macro to use parser state.
5490 (yyparse): Redefine macro to pascal_parse_internal.
5491 (pstate): New variable.
5492 (parse_number): Add "struct parser_state" argument.
5493 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5494 write_exp* and similars in order to use parser state.
5495 (parse_number, yylex): Adjust code to use parser state.
5496 (pascal_parse): New function.
5497 * p-lang.h: Forward declare "struct parser_state".
5498 (pascal_parse): Add "struct parser_state" argument.
5499 * go-exp.y (parse_type): Rewrite macro to use parser state.
5500 (yyparse): Redefine macro to go_parse_internal.
5501 (pstate): New variable.
5502 (parse_number): Add "struct parser_state" argument.
5503 (type_exp, exp1, exp, variable, type): Update calls to
5504 write_exp* and similars in order to use parser state.
5505 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5506 to use parser state.
5507 (go_parse): Likewise.
5508 * go-lang.h: Forward declare "struct parser_state".
5509 (go_parse): Add "struct parser_state" argument.
5511 2014-03-27 Doug Evans <dje@google.com>
5513 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5515 2014-03-27 Doug Evans <dje@google.com>
5517 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5518 Remove argument abbrev_section. All callers updated.
5520 2014-03-27 Doug Evans <dje@google.com>
5522 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5523 addr_base, ranges_base.
5525 2014-03-26 Keith Seitz <keiths@redhat.com>
5527 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5528 types, not VAR_DOMAIN.
5530 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5532 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5534 * features/nios2-linux.c: Regenerated.
5535 * features/nios2.c: Regenerated.
5537 2014-03-25 Pedro Alves <palves@redhat.com>
5539 * cli/cli-script.c (script_from_file): Force the interpreter to
5542 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5544 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5545 small stack allocation.
5547 2014-03-24 Tristan Gingold <gingold@adacore.com>
5549 * darwin-nat.c (exc_server): Remove unused prototype.
5550 (darwin_dump_message): Correctly display data on x86_64.
5551 (darwin_encode_reply): Fix style.
5552 Add comments and fix indentation.
5554 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5556 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5558 2014-03-22 Doug Evans <xdje42@gmail.com>
5560 * infcmd.c: Whitespace fixes.
5561 (interrupt_command): Merge two function comments into one.
5563 2014-03-22 Doug Evans <xdje42@gmail.com>
5565 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5568 2014-03-22 Yao Qi <yao@codesourcery.com>
5570 * remote.c (target_read_live_memory): Remove.
5571 (memory_xfer_live_readonly_partial): Rename it to
5572 remote_xfer_live_readonly_partial. Remove argument 'object'.
5573 All callers updated. Call remote_read_bytes_1
5574 instead of target_read_live_memory.
5575 * tracepoint.c (set_traceframe_number): Remove.
5576 (make_cleanup_restore_traceframe_number): Likewise .
5577 * tracepoint.h (set_traceframe_number): Remove declaration.
5578 (make_cleanup_restore_traceframe_number): Likewise.
5580 2014-03-22 Yao Qi <yao@codesourcery.com>
5582 * remote.c (remote_read_bytes): Move code on reading from the
5584 (remote_read_bytes_1): ... here. New function.
5586 2014-03-22 Yao Qi <yao@codesourcery.com>
5588 * ctf.c (ctf_xfer_partial): Check the return value of
5589 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5590 return TARGET_XFER_UNAVAILABLE.
5591 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5592 * target.c (target_read_live_memory): Move it to remote.c.
5593 (memory_xfer_live_readonly_partial): Likewise.
5594 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5595 * remote.c (target_read_live_memory): Moved from target.c.
5596 (memory_xfer_live_readonly_partial): Likewise.
5597 (remote_read_bytes): Factored out from
5598 memory_xfer_partial_1.
5600 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5602 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5605 2014-03-21 Pedro Alves <palves@redhat.com>
5607 * infrun.c (normal_stop): Extend comment.
5609 2014-03-21 Hui Zhu <hui@codesourcery.com>
5610 Pedro Alves <palves@redhat.com>
5612 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5614 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5615 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5616 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5618 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5620 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5621 `z' formatted output modifier.
5623 2014-03-20 Tom Tromey <tromey@redhat.com>
5624 Sergio Durigan Junior <sergiodj@redhat.com>
5626 * probe.c (parse_probes): Turn assert into an ordinary error.
5627 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5628 exceptions when parsing probes. Rearrange the code for clarity.
5630 2014-03-20 Tom Tromey <tromey@redhat.com>
5633 * top.c (execute_command): Only dispatch events if the command
5636 2014-03-20 Tom Tromey <tromey@redhat.com>
5639 * infcall.c: Include event-top.h.
5640 (run_inferior_call): Call async_disable_stdin if needed.
5642 2014-03-20 Pedro Alves <palves@redhat.com>
5644 * infrun.c (prepare_to_proceed): Delete.
5645 (thread_still_needs_step_over): New function.
5646 (find_thread_needs_step_over): New function.
5647 (proceed): If the current thread needs a step-over, set its
5648 steping_over_breakpoint flag. Adjust to use
5649 find_thread_needs_step_over instead of prepare_to_proceed.
5650 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5651 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5653 (switch_back_to_stepped_thread): Step over breakpoints of all
5654 threads not the stepping thread, before switching back to the
5657 2014-03-20 Pedro Alves <palves@redhat.com>
5659 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5661 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5662 * infrun.c (saved_singlestep_ptid)
5663 (stepping_past_singlestep_breakpoint): Delete.
5664 (resume): Remove stepping_past_singlestep_breakpoint handling.
5665 (proceed): Store the prev_pc of the stepping thread too.
5666 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5668 (enum infwait_states): Delete infwait_thread_hop_state.
5669 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5671 (handle_inferior_event): Adjust.
5672 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5673 handling and the thread-hop code. Before removing single-step
5674 breakpoints, check whether the thread hit a single-step breakpoint
5675 of another thread. If it did, the trap is not a random signal.
5676 (switch_back_to_stepped_thread): If the event thread hit a
5677 single-step breakpoint, unblock it before switching to the
5678 stepping thread. Handle the case of the stepped thread having
5680 (keep_going): Handle the case of the current thread moving past a
5681 single-step breakpoint.
5683 2014-03-20 Pedro Alves <palves@redhat.com>
5686 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5687 are being stepped over.
5688 (breakpoint_address_match): Make extern.
5689 * breakpoint.h (breakpoint_address_match): New declaration.
5690 * inferior.h (stepping_past_instruction_at): New declaration.
5691 * infrun.c (struct step_over_info): New type.
5692 (step_over_info): New global.
5693 (set_step_over_info, clear_step_over_info)
5694 (stepping_past_instruction_at): New functions.
5695 (handle_inferior_event): Clear the step-over info when
5696 trap_expected is cleared.
5697 (resume): Remove now stale comment.
5698 (clear_proceed_status): Clear step-over info.
5699 (proceed): Adjust step-over handling to set or clear the step-over
5700 info instead of removing all breakpoints.
5701 (handle_signal_stop): When setting up a thread-hop, don't remove
5703 (stop_stepping): Clear step-over info.
5704 (keep_going): Adjust step-over handling to set or clear step-over
5705 info and then always inserting breakpoints, instead of removing
5706 all breakpoints when stepping over one.
5708 2014-03-20 Pedro Alves <palves@redhat.com>
5710 * infrun.c (previous_inferior_ptid): Adjust comment.
5711 (deferred_step_ptid): Delete.
5712 (infrun_thread_ptid_changed, prepare_to_proceed)
5713 (init_wait_for_inferior): Adjust.
5714 (handle_signal_stop): Delete deferred_step_ptid handling.
5716 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5719 * defs.h (sync_quit_force_run): New declaration.
5720 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5721 * event-top.c (async_sigterm_handler): New declaration.
5722 (async_sigterm_token): New variable.
5723 (async_init_signals): Create also async_sigterm_token.
5724 (async_sigterm_handler): New function.
5725 (sync_quit_force_run): New variable.
5726 (handle_sigterm): Replace quit_force call by other calls.
5727 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5729 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5731 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5732 offset into SPE pseudo registers.
5734 2014-03-18 Pedro Alves <palves@redhat.com>
5737 * inferior.h (print_stop_event): Declare.
5738 * infrun.c (print_stop_event): New, factored out from ...
5739 (normal_stop): ... this.
5740 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5741 of bpstat_print/print_stack_frame.
5743 2014-03-17 Tom Tromey <tromey@redhat.com>
5745 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5747 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5749 * ada-lang.c (decode_constrained_packed_array): Perform a
5750 minimal coercion for reference with coerce_ref instead of
5753 2014-03-17 Tristan Gingold <gingold@adacore.com>
5755 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5756 (darwin_solib_create_inferior_hook): Emit a warning if version
5759 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5761 * python/py-value.c (get_field_flag): Cast flag_name argument to
5762 PyObject_GetAttrString to support Python 2.4.
5764 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5766 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5767 (Global Maintainers): Remove Jan Kratochvil.
5769 2014-03-14 Pedro Alves <palves@redhat.com>
5771 * inferior.h (terminal_ours_for_output): Rename to ...
5772 (child_terminal_ours_for_output): ... this.
5773 (terminal_save_ours): Rename to ...
5774 (child_terminal_save_ours): ... this.
5775 (terminal_ours): Rename to ...
5776 (child_terminal_ours): ... this.
5777 (terminal_inferior): Rename to ...
5778 (child_terminal_inferior): ... this.
5779 (terminal_init_inferior): Rename to ...
5780 (child_terminal_init_inferior): ... this.
5781 (terminal_init_inferior_with_pgrp): Rename to ...
5782 (child_terminal_init_inferior_with_pgrp): ... this.
5783 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5784 (child_terminal_init_with_pgrp): ... this.
5785 (terminal_save_ours): Rename to ...
5786 (child_terminal_save_ours): ... this.
5787 (terminal_init_inferior): Rename to ...
5788 (child_terminal_init): ... this. Adjust.
5789 (terminal_inferior): Rename to ...
5790 (child_terminal_inferior): ... this.
5791 (terminal_ours_for_output): Rename to ...
5792 (child_terminal_ours_for_output): ... this. Adjust.
5793 (terminal_ours): Rename to ...
5794 (child_terminal_ours): ... this.
5795 (terminal_ours_1): Rename to ...
5796 (child_terminal_ours_1): ... this. Adjust.
5797 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5798 * windows-nat.c (do_initial_windows_stuff): Adjust.
5799 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5800 (gnu_terminal_init): ... this. Adjust.
5801 (gnu_target): Adjust.
5802 * inf-child.c (inf_child_target): Adjust.
5804 2014-03-13 Doug Evans <xdje42@gmail.com>
5807 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5810 2014-03-13 Doug Evans <xdje42@gmail.com>
5812 * value.c (record_latest_value): Call release_value_or_incref
5813 instead of release_value.
5815 2014-03-13 Pedro Alves <palves@redhat.com>
5817 * procfs.c (procfs_target): Don't override to_shortname,
5818 to_longname or to_doc.
5820 2014-03-13 Pedro Alves <palves@redhat.com>
5822 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5823 Unix in user visible strings.
5825 2014-03-12 Stan Shebs <stan@codesourcery.com>
5827 * gdbtypes.h: Annotate comments for Doxygen, add a page
5828 block comment with some general info.
5830 2014-03-12 Pedro Alves <palves@redhat.com>
5832 * infcmd.c (prepare_execution_command): New function, factored out
5833 from several execution commands.
5834 (run_command_1, continue_command, step_1, jump_command)
5835 (signal_command, until_command, advance_command, finish_command)
5836 (attach_command): Use prepare_execution_command.
5838 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5840 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5843 (struct arm_linux_thread_points): Removed.
5844 (struct arm_linux_process_info): New.
5845 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5846 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5847 (arm_linux_find_breakpoints_by_tid): Removed.
5848 (struct arch_lwp_info): New.
5849 (arm_linux_find_process_pid): New functions.
5850 (arm_linux_add_process): New functions.
5851 (arm_linux_process_info_get): New functions.
5852 (arm_linux_forget_process): New function.
5853 (arm_linux_get_debug_reg_state): New function.
5854 (struct update_registers_data): New.
5855 (update_registers_callback): New function.
5856 (arm_linux_insert_hw_breakpoint1): Updated.
5857 (arm_linux_remove_hw_breakpoint1): Updated.
5858 (arm_linux_insert_hw_breakpoint): Updated.
5859 (arm_linux_remove_hw_breakpoint): Updated.
5860 (arm_linux_insert_watchpoint): Updated.
5861 (arm_linux_remove_watchpoint): Updated.
5862 (arm_linux_new_thread): Updated.
5863 (arm_linux_prepare_to_resume): New function.
5864 (arm_linux_new_fork): New function.
5865 (_initialize_arm_linux_nat): Updated.
5867 2014-03-12 Pedro Alves <palves@redhat.com>
5869 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5871 2014-03-12 Tom Tromey <tromey@redhat.com>
5873 * inf-child.c (return_zero): New function.
5874 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5875 * aix-thread.c (aix_thread_inferior_created): New function.
5876 (aix_thread_attach): Remove.
5877 (init_aix_thread_ops): Don't set to_attach.
5878 (_initialize_aix_thread): Register inferior_created observer.
5879 * corelow.c (init_core_ops): Don't set to_attach or
5881 * exec.c (init_exec_ops): Don't set to_attach or
5883 * infcmd.c (run_command_1): Use find_run_target. Make direct
5885 (attach_command): Use find_attach_target. Make direct target
5887 * record-btrace.c (init_record_btrace_ops): Don't set
5889 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5891 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5892 set to_create_inferior.
5893 * target.c (complete_target_initialization): Add assertion.
5894 (target_create_inferior): Remove.
5895 (find_default_attach, find_default_create_inferior): Remove.
5896 (find_attach_target, find_run_target): New functions.
5897 (find_default_is_async_p, find_default_can_async_p)
5898 (target_supports_non_stop, target_attach): Remove.
5899 (init_dummy_target): Don't set to_create_inferior or
5900 to_supports_non_stop.
5901 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5902 TARGET_DEFAULT_FUNC.
5903 <to_create_inferior>: Add comment.
5904 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5905 TARGET_DEFAULT_RETURN.
5906 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5907 (find_attach_target, find_run_target): Declare.
5908 (target_create_inferior): Remove.
5909 (target_has_execution_1): Update comment.
5910 (target_supports_non_stop): Remove.
5911 * target-delegates.c: Rebuild.
5913 2014-03-12 Pedro Alves <palves@redhat.com>
5915 * inf-child.h: Update comment to not mention Unix.
5917 2014-03-12 Pedro Alves <palves@redhat.com>
5919 * inf-child.c: Update top comment to not mention Unix. Add
5920 generic comment describing how this target is meant to be used.
5921 (inf_child_post_attach, inf_child_post_startup_inferior)
5922 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5925 2014-03-12 Pedro Alves <palves@redhat.com>
5927 * nto-procfs.c: Include inf-child.h.
5928 (procfs_ops): Delete global.
5929 (procfs_can_run): Delete method.
5930 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5931 target pointer instead of referencing procfs_ops.
5932 (procfs_prepare_to_store): Delete.
5933 (init_procfs_ops): Delete function.
5934 (procfs_target): New function, based on init_procfs_ops, but
5935 inherit inf_child_target.
5936 (_initialize_procfs): Use procfs_target.
5938 2014-03-12 Pedro Alves <palves@redhat.com>
5940 * windows-nat.c: Include inf-child.h.
5941 (windows_ops): Delete global.
5942 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5944 (init_windows_ops): Delete function.
5945 (windows_target): New function, based on init_windows_ops, but
5946 inherit inf_child_target.
5947 (_initialize_windows_nat): Use windows_target. Install x86
5948 specific target methods here.
5950 2014-03-10 Doug Evans <xdje42@gmail.com>
5952 * guile/guile.c (call_initialize_gdb_module): New function.
5953 (initialize_guile): Replace call to scm_init_guile with call to
5956 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5958 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5959 in call to TYPE_CODE macro.
5961 2014-03-10 Jerome Guitton <guitton@adacore.com>
5963 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5964 Resolve tagged types to full view.
5966 2014-03-10 Hui Zhu <hui@codesourcery.com>
5968 * target.h (target_insert_breakpoint): Remove "hardware" from its
5971 2014-03-07 Doug Evans <dje@google.com>
5973 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5975 2014-03-07 Doug Evans <dje@google.com>
5977 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5978 Remove unused local comp_dir_attr. Assert exactly one of
5979 stub_comp_unit_die, stub_comp_dir is non-NULL.
5981 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5983 * target.h (complete_target_initialization, add_target):
5986 2014-03-07 Pedro Alves <palves@redhat.com>
5988 * go32-nat.c: Include inf-child.h.
5989 (go32_ops): Delete global.
5990 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5992 (go32_create_inferior): Push the passed in target pointer instead
5993 of referencing go32_ops.
5994 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5995 (go32_target): New function, based on init_go32_ops, but inherit
5997 (_initialize_go32_nat): Use go32_target. Move parts of
6000 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6002 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6003 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6004 SYMBOL_VALUE_ADDRESS.
6005 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6007 2014-03-06 Yao Qi <yao@codesourcery.com>
6009 * breakpoint.c (get_tracepoint_by_number): Remove argument
6010 optional_p. All callers updated. Adjust comments. Update
6012 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6014 2014-03-06 Yao Qi <yao@codesourcery.com>
6016 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6017 early if get_number returns zero. Use 'p' instead of 'args'.
6019 2014-03-06 Yao Qi <yao@codesourcery.com>
6021 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6024 2014-03-06 Yao Qi <yao@codesourcery.com>
6026 PR breakpoints/16508
6027 * tracepoint.c (check_trace_running): New function.
6028 (trace_find_command): Move code to check_trace_running and
6029 call check_trace_running.
6030 (trace_find_pc_command): Likewise.
6031 (trace_find_tracepoint_command): Likewise.
6032 (trace_find_line_command): Likewise.
6033 (trace_find_range_command): Likewise.
6034 * tracepoint.h (check_trace_running): Likewise.
6035 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6037 2014-03-06 Yao Qi <yao@codesourcery.com>
6039 * target.h (struct target_ops) <to_traceframe_info>: Use
6040 TARGET_DEFAULT_NORETURN (tcomplain ()).
6041 * target-delegates.c: Regenerated.
6043 2014-03-05 Pedro Alves <palves@redhat.com>
6046 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6047 void. Update comment.
6048 (dcache_xfer_memory): Delete.
6049 (dcache_read_memory_partial): New, based on the read bits of
6051 (dcache_update): Add status parameter. Use ULONGEST for len, and
6052 adjust. Discard cache lines if the reason for the update was
6054 * dcache.h (dcache_xfer_memory): Delete declaration.
6055 (dcache_read_memory_partial): New declaration.
6056 (dcache_update): Update prototype.
6057 * target.c (raw_memory_xfer_partial): Update the dcache here.
6058 (memory_xfer_partial_1): Don't handle dcache writes here.
6060 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6062 * remote-sim.c (gdbsim_load): Add const to prog.
6064 2014-03-03 Tom Tromey <tromey@redhat.com>
6066 * elfread.c (probe_key): Change to bfd_data.
6067 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6068 now per-BFD, not per-objfile.
6069 * stap-probe.c (stap_probe_destroy): Update comment.
6070 (handle_stap_probe): Allocate on the per-BFD obstack.
6072 2014-03-03 Tom Tromey <tromey@redhat.com>
6074 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6075 * breakpoint.c (create_longjmp_master_breakpoint): Use
6077 (add_location_to_breakpoint, bkpt_probe_insert_location)
6078 (bkpt_probe_remove_location): Update.
6079 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6080 * elfread.c (elf_symfile_relocate_probe): Remove.
6081 (elf_probe_fns): Update.
6082 (insert_exception_resume_breakpoint): Change type of "probe"
6083 parameter to bound_probe.
6084 (check_exception_resume): Update.
6085 * objfiles.c (objfile_relocate1): Don't relocate probes.
6086 * probe.c (bound_probe_s): New typedef.
6087 (parse_probes): Use get_probe_address. Set sal's objfile.
6088 (find_probe_by_pc): Return a bound_probe.
6089 (collect_probes): Return a VEC(bound_probe_s).
6090 (compare_probes): Update.
6091 (gen_ui_out_table_header_info): Change type of "probes"
6093 (info_probes_for_ops): Update.
6094 (get_probe_address): New function.
6095 (probe_safe_evaluate_at_pc): Update.
6096 * probe.h (struct probe_ops) <get_probe_address>: New field.
6097 <set_semaphore, clear_semaphore>: Add objfile parameter.
6098 (struct probe) <objfile>: Remove field.
6100 <address>: Update comment.
6101 (struct bound_probe): New.
6102 (find_probe_by_pc): Return a bound_probe.
6103 (get_probe_address): Declare.
6104 * solib-svr4.c (struct probe_and_action) <address>: New field.
6105 (hash_probe_and_action, equal_probe_and_action): Update.
6106 (register_solib_event_probe): Add address parameter.
6107 (solib_event_probe_at): Update.
6108 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6110 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6111 (stap_get_probe_address): New function.
6112 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6113 (compile_probe_arg): Update.
6114 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6116 (handle_stap_probe): Don't relocate the probe.
6117 (stap_relocate): Remove.
6118 (stap_gen_info_probes_table_values): Update.
6119 (stap_probe_ops): Remove stap_relocate.
6120 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6121 (debug_sym_probe_fns): Update.
6122 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6123 * symtab.c (init_sal): Use memset.
6124 * symtab.h (struct symtab_and_line) <objfile>: New field.
6125 * tracepoint.c (start_tracing, stop_tracing): Update.
6127 2014-03-03 Tom Tromey <tromey@redhat.com>
6129 * probe.h (parse_probes, find_probe_by_pc)
6130 (find_probes_in_objfile): Fix comments.
6132 2014-03-02 Doug Evans <xdje42@gmail.com>
6134 * infrun.c (handle_signal_stop): Replace test for
6135 TARGET_WAITKIND_STOPPED with an assert.
6137 2014-03-02 Doug Evans <xdje42@gmail.com>
6139 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6141 2014-03-02 Doug Evans <xdje42@gmail.com>
6143 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6145 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6147 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6149 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6151 * i386obsd-nat.c: Include "obsd-nat.h".
6152 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6154 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6156 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6158 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6160 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6162 * mips64obsd-nat.c: Include "obsd-nath".
6163 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6165 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6167 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6169 * amd64obsd-nat.c: Include "obsd-nat,h.
6170 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6172 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6174 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6176 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6177 (find_overload_match): Update call to find_oload_champ.
6178 (find_oload_champ_namespace_loop): Likewise
6180 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6182 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6184 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6185 * config/sparc/obsd64.mh: New file.
6186 * sparc64obsd-nat.c: New file.
6188 * obsd-nat.h: New file.
6189 * obsd-nat.c: New file.
6190 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6191 (ALLDEPFILES): Add obsd-nat.c.
6193 2014-02-28 Tom Tromey <tromey@redhat.com>
6195 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6196 * cli-out.h (cli_ui_out_impl): Now const.
6197 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6198 * ui-out.c (struct ui_out) <impl>: Now const.
6199 (default_ui_out_impl): Now const.
6200 (ui_out_new): Make 'impl' parameter const.
6201 * ui-out.h (ui_out_new): Update.
6203 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6205 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6207 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6209 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6211 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6213 Additional PR 8882 fix.
6214 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6216 2014-02-27 Pedro Alves <palves@redhat.com>
6218 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6221 2014-02-27 Pedro Alves <palves@redhat.com>
6224 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6225 * nat/linux-waitpid.c: Include string.h.
6226 (status_to_str): Moved here and made extern.
6227 * nat/linux-waitpid.h (status_to_str): New declaration.
6229 2014-02-27 Hui Zhu <hui@codesourcery.com>
6232 * infrun.c (ptid_match): Move ...
6233 * common/ptid.c (ptid_match): ... here.
6234 * inferior.h (ptid_match): Move ...
6235 * common/ptid.h (ptid_match): ... here.
6237 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6239 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6240 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6243 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6245 * obsd-tdep.c (obsd_auxv_parse): New function.
6246 (obsd_init_abi): Set auxv_parse.
6248 * gdbarch.sh (auxv_parse): New.
6249 * gdbarch.h: Regenerated.
6250 * gdbarch.c: Regenerated.
6251 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6253 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6255 * guile/scm-value.c (gdbscm_history_append_x): New function.
6256 (value_functions): Add it.
6258 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6260 * dwarf2read.c (attr_value_as_address): New function.
6261 (dwarf2_find_base_address, read_call_site_scope): Use
6262 attr_value_as_address in place of DW_ADDR.
6263 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6264 the low and high addresses. Slight rework of the handling
6265 of the high pc being a constant form, and limit it to
6266 DWARF verson 4 or higher.
6267 (dwarf2_record_block_ranges): Likewise.
6268 (read_partial_die): Likewise.
6269 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6271 2014-02-26 Tom Tromey <tromey@redhat.com>
6273 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6275 2014-02-26 Tom Tromey <tromey@redhat.com>
6277 * elfread.c (elf_read_minimal_symbols): Return early if
6278 minimal symbols have already been read. Add "ei" parameter.
6279 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6280 * minsyms.c (prim_record_minimal_symbol_full): Update.
6281 * objfiles.h (struct objstats) <n_minsyms>: Move...
6282 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6283 * symmisc.c (print_objfile_statistics): Update.
6285 2014-02-26 Tom Tromey <tromey@redhat.com>
6287 * elfread.c (elf_read_minimal_symbols): New function, from
6289 (elf_symfile_read): Call it.
6291 2014-02-26 Tom Tromey <tromey@redhat.com>
6293 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6294 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6295 (lookup_minimal_symbol_solib_trampoline)
6296 (lookup_minimal_symbol_by_pc_section_1)
6297 (lookup_minimal_symbol_and_objfile): Update.
6298 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6299 Don't allocate a minimal symbol if minsyms have already been read.
6300 (build_minimal_symbol_hash_tables): Update.
6301 (install_minimal_symbols): Do nothing if minsyms already read.
6302 Use the per-BFD obstack.
6303 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6304 * objfiles.c (allocate_objfile): Call
6305 terminate_minimal_symbol_table later.
6306 (have_minimal_symbols): Update.
6307 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6308 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6309 Move from struct objfile.
6310 <minsyms_read>: New field.
6311 (struct objfile) <msymbols, minimal_symbol_count,
6312 msymbol_hash, msymbol_demangled_hash>: Move.
6313 (ALL_OBJFILE_MSYMBOLS): Update.
6314 * symfile.c (read_symbols): Set minsyms_read.
6315 (reread_symbols): Update.
6316 * symmisc.c (dump_objfile, dump_msymbols): Update.
6318 2014-02-26 Tom Tromey <tromey@redhat.com>
6320 * minsyms.c (msymbols_sort): Remove.
6321 * minsyms.h (msymbols_sort): Remove.
6322 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6323 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6324 * elfread.c (elf_symtab_read): Don't add section offsets.
6325 * xcoffread.c (record_minimal_symbol): Don't add section offset
6326 to minimal symbol address.
6327 * somread.c (text_offset, data_offset): Remove.
6328 (som_symtab_read): Don't add section offsets to minimal symbol
6330 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6331 Don't add section offsets to minimal symbols.
6332 * coffread.c (coff_symtab_read): Don't add section offsets
6333 to minimal symbol addresses.
6334 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6335 to minimal symbol addresses.
6336 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6337 section offset to minimal symbol addresses.
6338 * mdebugread.c (parse_partial_symbols): Don't add section
6339 offset to minimal symbol addresses.
6340 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6341 offset to minimal symbol addresses.
6343 2014-02-26 Tom Tromey <tromey@redhat.com>
6345 * ada-lang.c (ada_main_name): Update.
6346 (ada_add_standard_exceptions): Update.
6347 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6348 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6349 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6350 * auxv.c (ld_so_xfer_auxv): Update.
6351 * avr-tdep.c (avr_scan_prologue): Update.
6352 * ax-gdb.c (gen_var_ref): Update.
6353 * blockframe.c (get_pc_function_start)
6354 (find_pc_partial_function_gnu_ifunc): Update.
6355 * breakpoint.c (create_overlay_event_breakpoint)
6356 (create_longjmp_master_breakpoint)
6357 (create_std_terminate_master_breakpoint)
6358 (create_exception_master_breakpoint): Update.
6359 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6360 * c-valprint.c (c_val_print): Update.
6361 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6362 * common/agent.c (agent_look_up_symbols): Update.
6363 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6364 * dwarf2loc.c (call_site_to_target_addr): Update.
6365 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6366 * elfread.c (elf_gnu_ifunc_record_cache)
6367 (elf_gnu_ifunc_resolve_by_got): Update.
6368 * findvar.c (default_read_var_value): Update.
6369 * frame.c (inside_main_func): Update.
6370 * frv-tdep.c (frv_frame_this_id): Update.
6371 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6372 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6374 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6375 (hppa_hpux_find_dummy_bpaddr): Update.
6376 * hppa-tdep.c (hppa_symbol_address): Update.
6377 * infcmd.c (until_next_command): Update.
6378 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6380 * linespec.c (minsym_found, add_minsym): Update.
6381 * linux-nat.c (get_signo): Update.
6382 * linux-thread-db.c (inferior_has_bug): Update.
6383 * m32c-tdep.c (m32c_return_value)
6384 (m32c_m16c_address_to_pointer): Update.
6385 * m32r-tdep.c (m32r_frame_this_id): Update.
6386 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6387 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6388 * maint.c (maintenance_translate_address): Update.
6389 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6390 (frob_address): New function.
6391 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6392 frob_address. Rename parameter to "pc_in".
6393 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6395 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6397 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6398 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6399 * objc-lang.c (find_objc_msgsend): Update.
6400 * objfiles.c (objfile_relocate1): Update.
6401 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6402 * p-valprint.c (pascal_val_print): Update.
6403 * parse.c (write_exp_msymbol): Update.
6404 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6405 (ppc_elfv2_skip_entrypoint): Update.
6406 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6407 * printcmd.c (build_address_symbolic, msym_info)
6408 (address_info): Update.
6409 * proc-service.c (ps_pglobal_lookup): Update.
6410 * psymtab.c (find_pc_sect_psymtab_closer)
6411 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6412 Change msymbol parameter to bound_minimal_symbol.
6413 * ravenscar-thread.c (get_running_thread_id): Update.
6414 * remote.c (remote_check_symbols): Update.
6415 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6417 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6418 * solib-dsbt.c (lm_base): Update.
6419 * solib-frv.c (lm_base, main_got): Update.
6420 * solib-irix.c (locate_base): Update.
6421 * solib-som.c (som_solib_create_inferior_hook)
6422 (link_map_start): Update.
6423 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6424 * solib-svr4.c (elf_locate_base, enable_break): Update.
6425 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6426 (flush_ea_cache): Update.
6427 * stabsread.c (define_symbol, scan_file_globals): Update.
6428 * stack.c (find_frame_funname): Update.
6429 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6430 (debug_qf_find_pc_sect_symtab): Update.
6431 * symfile.c (simple_read_overlay_table)
6432 (simple_overlay_update): Update.
6433 * symfile.h (struct quick_symbol_functions)
6434 <find_pc_sect_symtab>: Change type of msymbol to
6435 bound_minimal_symbol.
6436 * symmisc.c (dump_msymbols): Update.
6437 * symtab.c (find_pc_sect_symtab_via_partial)
6438 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6439 (search_symbols, print_msymbol_info): Update.
6440 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6441 (MSYMBOL_VALUE_ADDRESS): Redefine.
6442 (BMSYMBOL_VALUE_ADDRESS): New macro.
6443 * tracepoint.c (scope_info): Update.
6444 * tui/tui-disasm.c (tui_find_disassembly_address)
6445 (tui_get_begin_asm_address): Update.
6446 * valops.c (find_function_in_inferior): Update.
6447 * value.c (value_static_field, value_fn_field): Update.
6449 2014-02-26 Tom Tromey <tromey@redhat.com>
6451 * ada-lang.c (ada_update_initial_language): Update.
6452 (ada_main_name, ada_has_this_exception_support): Update.
6453 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6454 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6455 * arm-tdep.c (arm_skip_stub): Update.
6456 * auxv.c (ld_so_xfer_auxv): Update.
6457 * avr-tdep.c (avr_scan_prologue): Update.
6458 * ax-gdb.c (gen_var_ref): Update.
6459 * breakpoint.c (struct breakpoint_objfile_data)
6460 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6461 type to bound_minimal_symbol.
6462 (create_overlay_event_breakpoint)
6463 (create_longjmp_master_breakpoint)
6464 (create_std_terminate_master_breakpoint)
6465 (create_exception_master_breakpoint): Update.
6466 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6467 * c-exp.y (classify_name): Update.
6468 * coffread.c (coff_symfile_read): Update.
6469 * common/agent.c (agent_look_up_symbols): Update.
6470 * d-lang.c (d_main_name): Update.
6471 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6472 * dec-thread.c (enable_dec_thread): Update.
6473 * dwarf2loc.c (call_site_to_target_addr): Update.
6474 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6475 * eval.c (evaluate_subexp_standard): Update.
6476 * findvar.c (struct minsym_lookup_data) <result>: Change type
6477 to bound_minimal_symbol.
6479 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6480 * frame.c (inside_main_func): Update.
6481 * frv-tdep.c (frv_frame_this_id): Update.
6482 * gcore.c (call_target_sbrk): Update.
6483 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6484 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6486 * go-lang.c (go_main_name): Update.
6487 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6488 (hppa_hpux_find_import_stub_for_addr): Update.
6489 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6490 Update. Change return type.
6491 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6493 * jit.c (jit_breakpoint_re_set_internal): Update.
6494 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6496 * linux-nat.c (get_signo): Update.
6497 * linux-thread-db.c (inferior_has_bug): Update
6498 * m32c-tdep.c (m32c_return_value)
6499 (m32c_m16c_address_to_pointer): Update.
6500 * m32r-tdep.c (m32r_frame_this_id): Update.
6501 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6502 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6503 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6504 lookup_minimal_symbol. Change return type.
6505 (lookup_minimal_symbol): Remove.
6506 (lookup_bound_minimal_symbol): Update.
6507 (lookup_minimal_symbol_text): Change return type.
6508 (lookup_minimal_symbol_solib_trampoline): Change return type.
6509 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6510 (lookup_minimal_symbol_solib_trampoline): Change return type.
6511 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6512 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6513 (value_nsstring, find_imps): Update.
6514 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6515 * p-lang.c (pascal_main_name): Update.
6516 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6517 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6518 * proc-service.c (ps_pglobal_lookup): Update.
6519 * ravenscar-thread.c (get_running_thread_msymbol): Change
6521 (has_ravenscar_runtime, get_running_thread_id): Update.
6522 * remote.c (remote_check_symbols): Update.
6523 * sol-thread.c (ps_pglobal_lookup): Update.
6524 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6525 * solib-dsbt.c (lm_base): Update.
6526 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6528 * solib-irix.c (locate_base): Update.
6529 * solib-som.c (som_solib_create_inferior_hook)
6530 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6532 * solib-spu.c (spu_enable_break): Update.
6533 * solib-svr4.c (elf_locate_base, enable_break): Update.
6534 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6535 (flush_ea_cache): Update.
6536 * stabsread.c (define_symbol): Update.
6537 * symfile.c (simple_read_overlay_table): Update.
6538 * symtab.c (find_pc_sect_line): Update.
6539 * tracepoint.c (scope_info): Update.
6540 * tui-disasm.c (tui_get_begin_asm_address): Update.
6541 * value.c (value_static_field): Update.
6543 2014-02-26 Tom Tromey <tromey@redhat.com>
6545 * minsyms.c (prim_record_minimal_symbol_full): Use
6546 SET_MSYMBOL_VALUE_ADDRESS.
6547 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6548 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6549 SET_MSYMBOL_VALUE_ADDRESS.
6550 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6551 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6553 2014-02-26 Tom Tromey <tromey@redhat.com>
6555 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6556 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6557 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6558 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6559 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6560 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6561 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6562 * ada-lang.c (ada_main_name): Update.
6563 (ada_lookup_simple_minsym): Update.
6564 (ada_make_symbol_completion_list): Update.
6565 (ada_add_standard_exceptions): Update.
6566 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6567 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6568 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6569 * arm-tdep.c (skip_prologue_function): Update.
6570 (arm_skip_stack_protector, arm_skip_stub): Update.
6571 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6572 (arm_wince_skip_main_prologue): Update.
6573 * auxv.c (ld_so_xfer_auxv): Update.
6574 * avr-tdep.c (avr_scan_prologue): Update.
6575 * ax-gdb.c (gen_var_ref): Update.
6576 * block.c (call_site_for_pc): Update.
6577 * blockframe.c (get_pc_function_start): Update.
6578 (find_pc_partial_function_gnu_ifunc): Update.
6579 * breakpoint.c (create_overlay_event_breakpoint): Update.
6580 (create_longjmp_master_breakpoint): Update.
6581 (create_std_terminate_master_breakpoint): Update.
6582 (create_exception_master_breakpoint): Update.
6583 (resolve_sal_pc): Update.
6584 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6585 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6587 * c-valprint.c (c_val_print): Update.
6588 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6589 * coffread.c (coff_symfile_read): Update.
6590 * common/agent.c (agent_look_up_symbols): Update.
6591 * dbxread.c (find_stab_function_addr): Update.
6592 (end_psymtab): Update.
6593 * dwarf2loc.c (call_site_to_target_addr): Update.
6594 (func_verify_no_selftailcall): Update.
6595 (tailcall_dump): Update.
6596 (call_site_find_chain_1): Update.
6597 (dwarf_expr_reg_to_entry_parameter): Update.
6598 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6599 (elf_gnu_ifunc_resolve_by_got): Update.
6600 * f-valprint.c (info_common_command): Update.
6601 * findvar.c (read_var_value): Update.
6602 * frame.c (get_prev_frame_1): Update.
6603 (inside_main_func): Update.
6604 * frv-tdep.c (frv_skip_main_prologue): Update.
6605 (frv_frame_this_id): Update.
6606 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6607 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6608 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6609 (gnuv3_skip_trampoline): Update.
6610 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6611 (hppa64_hpux_in_solib_call_trampoline): Update.
6612 (hppa_hpux_skip_trampoline_code): Update.
6613 (hppa64_hpux_search_dummy_call_sequence): Update.
6614 (hppa_hpux_find_import_stub_for_addr): Update.
6615 (hppa_hpux_find_dummy_bpaddr): Update.
6616 * hppa-tdep.c (hppa_symbol_address)
6617 (hppa_lookup_stub_minimal_symbol): Update.
6618 * i386-tdep.c (i386_skip_main_prologue): Update.
6619 (i386_pe_skip_trampoline_code): Update.
6620 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6621 * infcall.c (get_function_name): Update.
6622 * infcmd.c (until_next_command): Update.
6623 * jit.c (jit_breakpoint_re_set_internal): Update.
6624 (jit_inferior_init): Update.
6625 * linespec.c (minsym_found): Update.
6626 (add_minsym): Update.
6627 * linux-fork.c (info_checkpoints_command): Update.
6628 * linux-nat.c (get_signo): Update.
6629 * linux-thread-db.c (inferior_has_bug): Update.
6630 * m32c-tdep.c (m32c_return_value): Update.
6631 (m32c_m16c_address_to_pointer): Update.
6632 (m32c_m16c_pointer_to_address): Update.
6633 * m32r-tdep.c (m32r_frame_this_id): Update.
6634 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6635 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6636 * maint.c (maintenance_translate_address): Update.
6637 * minsyms.c (add_minsym_to_hash_table): Update.
6638 (add_minsym_to_demangled_hash_table): Update.
6639 (msymbol_objfile): Update.
6640 (lookup_minimal_symbol): Update.
6641 (iterate_over_minimal_symbols): Update.
6642 (lookup_minimal_symbol_text): Update.
6643 (lookup_minimal_symbol_by_pc_name): Update.
6644 (lookup_minimal_symbol_solib_trampoline): Update.
6645 (lookup_minimal_symbol_by_pc_section_1): Update.
6646 (lookup_minimal_symbol_and_objfile): Update.
6647 (prim_record_minimal_symbol_full): Update.
6648 (compare_minimal_symbols): Update.
6649 (compact_minimal_symbols): Update.
6650 (build_minimal_symbol_hash_tables): Update.
6651 (install_minimal_symbols): Update.
6652 (terminate_minimal_symbol_table): Update.
6653 (find_solib_trampoline_target): Update.
6654 (minimal_symbol_upper_bound): Update.
6655 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6656 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6657 (mips_skip_pic_trampoline_code): Update.
6658 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6659 * objc-lang.c (selectors_info): Update.
6660 (classes_info): Update.
6661 (find_methods): Update.
6662 (find_imps): Update.
6663 (find_objc_msgsend): Update.
6664 * objfiles.c (objfile_relocate1): Update.
6665 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6666 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6667 * p-valprint.c (pascal_val_print): Update.
6668 * parse.c (write_exp_msymbol): Update.
6669 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6670 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6671 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6672 * printcmd.c (build_address_symbolic): Update.
6674 (address_info): Update.
6675 * proc-service.c (ps_pglobal_lookup): Update.
6676 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6677 (find_pc_sect_psymtab): Update.
6678 * python/py-framefilter.c (py_print_frame): Update.
6679 * ravenscar-thread.c (get_running_thread_id): Update.
6680 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6682 * remote.c (remote_check_symbols): Update.
6683 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6684 (rs6000_skip_trampoline_code): Update.
6685 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6686 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6687 * solib-dsbt.c (lm_base): Update.
6688 * solib-frv.c (lm_base): Update.
6690 * solib-irix.c (locate_base): Update.
6691 * solib-som.c (som_solib_create_inferior_hook): Update.
6692 (som_solib_desire_dynamic_linker_symbols): Update.
6693 (link_map_start): Update.
6694 * solib-spu.c (spu_enable_break): Update.
6695 (ocl_enable_break): Update.
6696 * solib-svr4.c (elf_locate_base): Update.
6697 (enable_break): Update.
6698 * spu-tdep.c (spu_get_overlay_table): Update.
6699 (spu_catch_start): Update.
6700 (flush_ea_cache): Update.
6701 * stabsread.c (define_symbol): Update.
6702 (scan_file_globals): Update.
6703 * stack.c (find_frame_funname): Update.
6704 (frame_info): Update.
6705 * symfile.c (simple_read_overlay_table): Update.
6706 (simple_overlay_update): Update.
6707 * symmisc.c (dump_msymbols): Update.
6708 * symtab.c (fixup_section): Update.
6709 (find_pc_sect_line): Update.
6710 (skip_prologue_sal): Update.
6711 (search_symbols): Update.
6712 (print_msymbol_info): Update.
6713 (rbreak_command): Update.
6714 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6715 (completion_list_objc_symbol): Update.
6716 (default_make_symbol_completion_list_break_on): Update.
6717 * tracepoint.c (scope_info): Update.
6718 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6719 (tui_get_begin_asm_address): Update.
6720 * valops.c (find_function_in_inferior): Update.
6721 * value.c (value_static_field): Update.
6722 (value_fn_field): Update.
6724 2014-02-26 Tom Tromey <tromey@redhat.com>
6726 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6727 bound minimal symbols. Move code that knows about minsym
6729 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6731 * minsyms.h (minimal_symbol_upper_bound): Declare.
6732 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6733 minimal_symbol_upper_bound.
6735 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6737 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6738 Use the type's name if its basic type does not have a tag.
6740 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6742 * dwarf2read.c (read_subrange_type): Add comment.
6744 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6746 * dwarf2read.c (update_enumeration_type_from_children): New
6747 function, mostly extracted from process_structure_scope.
6748 (read_enumeration_type): Call update_enumeration_type_from_children.
6749 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6750 and flag_flag_enum fields.
6752 2014-02-26 Pedro Alves <palves@redhat.com>
6754 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6755 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6756 to_xfer_partial method.
6758 2014-02-26 Pedro Alves <palves@redhat.com>
6760 * target.c (complete_target_initialization): Don't install
6761 default_xfer_partial as to_xfer_partial hook.
6763 (update_current_target): Don't INHERIT nor de_fault
6764 deprecated_xfer_memory. Delete de_fault macro.
6765 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6766 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6767 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6770 2014-02-26 Pedro Alves <palves@redhat.com>
6772 * go32-nat.c (my_write_child): New function.
6773 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6774 (go32_xfer_partial): New function.
6775 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6776 Instead install a to_xfer_partial hook.
6778 2014-02-26 Pedro Alves <palves@redhat.com>
6780 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6781 to_xfer_partial helper. Rewrite.
6782 (procfs_xfer_partial): New function.
6783 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6784 Install a to_xfer_partial hook.
6786 2014-02-26 Pedro Alves <palves@redhat.com>
6788 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6789 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6790 (m32r_xfer_partial): New function.
6791 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6792 Install a to_xfer_partial hook.
6794 2014-02-26 Pedro Alves <palves@redhat.com>
6796 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6798 (mips_xfer_partial): New function.
6799 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6800 hook. Install a to_xfer_partial hook.
6802 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6804 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6805 * gdbtypes.c (create_array_type_with_stride): New function,
6806 renaming create_array_type, but with an added parameter
6807 called "bit_stride".
6808 (create_array_type): Re-implement using
6809 create_array_type_with_stride.
6810 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6811 and DW_AT_bit_stride attributes.
6813 2014-02-26 Pedro Alves <palves@redhat.com>
6815 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6816 task-specific breakpoints.
6818 2014-02-25 Pedro Alves <palves@redhat.com>
6820 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6821 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6823 2014-02-25 Stan Shebs <stan@codesourcery.com>
6825 * defs.h: Annotate comments for Doxygen.
6827 2014-02-25 Tom Tromey <tromey@redhat.com>
6829 * target.h (target_ignore): Don't declare.
6830 * target.c (target_ignore): Remove.
6832 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6835 * auto-load.c (auto_load_objfile_script_1): Change filename to
6838 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6840 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6841 documentation. Adjust prototype to match the target_ops
6842 to_xfer_partial method. Adjust implementation accordingly.
6844 2014-02-25 Hui Zhu <hui@codesourcery.com>
6846 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6849 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6851 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6852 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6853 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6854 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6855 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6856 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6857 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6858 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6860 (rl78_register_type): Use a data pointer type for SP and
6861 new pseudo registers mentioned above. Use a 16 bit integer
6862 type for all other register pairs.
6863 (rl78_register_name, rl78_g10_register_name): Update for
6864 new pseudo registers.
6865 (rl78_pseudo_register_read): Likewise.
6866 (rl78_pseudo_register_write): Likewise.
6867 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6868 to the newly added pseudo registers.
6870 2014-02-24 Doug Evans <dje@google.com>
6872 * value.c (record_latest_value): Fix comment.
6873 * printcmd.c (print_command_1): Remove code to handle -1 return from
6874 record_latest_value.
6876 2014-02-24 Pedro Alves <palves@redhat.com>
6878 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6879 deprecated_xfer_memory hook.
6880 (procfs_xfer_partial): Call procfs_xfer_memory instead
6881 of the deprecated_xfer_memory target hook.
6882 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6885 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6887 * windows-nat.c (windows_xfer_shared_libraries): Return
6888 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6889 requested object is TARGET_OBJECT_LIBRARIES.
6891 2014-02-24 Yao Qi <yao@codesourcery.com>
6893 * target.h (enum target_xfer_status)
6894 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6895 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6897 * corefile.c (memory_error_message): User updated.
6898 * exec.c (section_table_read_available_memory): Likewise.
6899 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6900 * target.c (target_xfer_status_to_string): Likewise.
6901 (raw_memory_xfer_partial): Likewise.
6902 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6903 * valops.c (read_value_memory): Likewise.
6904 * exec.h: Update comments.
6906 2014-02-24 Yao Qi <yao@codesourcery.com>
6908 * target.c (target_xfer_status_to_string): Rename argument err
6910 * target.h (target_xfer_status_to_string): Update declaration.
6911 Replace target_xfer_error_to_string with
6912 target_xfer_status_to_string in comment.
6914 2014-02-24 Yao Qi <yao@codesourcery.com>
6916 * mips-linux-nat.c (super_close): Update its type.
6917 (mips_linux_close): Pass 'self' to super_close.
6919 2014-02-24 Yao Qi <yao@codesourcery.com>
6921 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6922 * corefile.c (read_memory): Adjusted.
6923 * target.c (target_write_with_progress): Adjusted.
6925 2014-02-23 Yao Qi <yao@codesourcery.com>
6929 2013-10-25 Yao Qi <yao@codesourcery.com>
6931 * remote.c (remote_traceframe_info): Return early if
6932 traceframe is not selected.
6934 2013-07-19 Yao Qi <yao@codesourcery.com>
6936 * target.c (update_current_target): Change the default action
6937 of 'to_traceframe_info' from tcomplain to return_zero.
6938 * target.h (struct target_ops) <to_traceframe_info>: Add more
6941 2014-02-23 Yao Qi <yao@codesourcery.com>
6943 * valops.c (read_value_memory): Rewrite it. Call
6944 target_xfer_partial in a loop.
6945 * exec.h (section_table_available_memory): Remove declaration.
6946 Move comments to ...
6947 * exec.c (section_table_available_memory): ... here. Make it
6950 2014-02-23 Yao Qi <yao@codesourcery.com>
6952 * exec.c (section_table_read_available_memory): New function.
6953 * exec.h (section_table_read_available_memory): Declare.
6954 * ctf.c (ctf_xfer_partial): Call
6955 section_table_read_available_memory.
6956 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6958 2014-02-23 Yao Qi <yao@codesourcery.com>
6960 * ctf.c (ctf_xfer_partial): Move code to ...
6961 * exec.c (exec_read_partial_read_only): ... it. New function.
6962 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6963 * tracefile.c: Include "exec.h".
6964 * exec.h (exec_read_partial_read_only): Declare.
6966 2014-02-23 Yao Qi <yao@codesourcery.com>
6968 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6969 (tfile_has_memory): Remove.
6970 (init_tfile_ops): Don't set fields to_has_all_memory and
6971 to_has_memory of tfile_ops.
6972 * tracefile.c (tracefile_has_all_memory): New function.
6973 (tracefile_has_memory): New function.
6974 (init_tracefile_ops): Initialize fields to_has_all_memory and
6975 to_has_memory of 'ops'.
6977 2014-02-23 Yao Qi <yao@codesourcery.com>
6979 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6980 (ctf_thread_alive, ctf_get_trace_status): Remove.
6981 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6983 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6984 (tfile_has_stack, tfile_has_registers): Remove.
6985 (tfile_thread_alive): Remove.
6986 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6988 * tracefile.c (tracefile_has_stack): New function.
6989 (tracefile_has_registers): New function.
6990 (tracefile_thread_alive): New function.
6991 (tracefile_get_trace_status): New function.
6992 (init_tracefile_ops): New function.
6993 * tracefile.h (init_tracefile_ops): Declare.
6995 2014-02-23 Yao Qi <yao@codesourcery.com>
6997 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6998 (O_LARGEFILE): Likewise.
6999 (tfile_ops): Likewise.
7000 (TRACE_HEADER_SIZE): Likewise.
7001 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7002 (cur_data_size): Likewise.
7003 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7004 (tfile_close, tfile_files_info): Likewise.
7005 (tfile_get_trace_status): Likewise.
7006 (tfile_get_tracepoint_status): Likewise.
7007 (tfile_get_traceframe_address): Likewise.
7008 (tfile_trace_find, match_blocktype): Likewise.
7009 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7010 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7011 (tfile_get_trace_state_variable_value): Likewise.
7012 (tfile_has_all_memory, tfile_has_memory): Likewise.
7013 (tfile_has_stack, tfile_has_registers): Likewise.
7014 (tfile_thread_alive, build_traceframe_info): Likewise.
7015 (tfile_traceframe_info, init_tfile_ops): Likewise.
7016 (_initialize_tracepoint): Don't call init_tfile_ops
7017 and add_target_with_completer.
7018 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7019 exec.h, completer.h and filenames.h.
7020 (_initialize_tracefile_tfile): New function.
7022 2014-02-23 Yao Qi <yao@codesourcery.com>
7024 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7026 (HFILES_NO_SRCDIR): Add tracefile.h.
7027 * ctf.c: Include "tracefile.h".
7028 * tracefile.h: New file.
7029 * tracefile.c: New file
7030 * tracefile-tfile.c: New file.
7031 * tracepoint.c: Include "tracefile.h".
7032 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7033 (stop_reason_names): Add const.
7034 (trace_file_writer_xfree): Move it to tracefile.c.
7035 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7036 (trace_save_ctf): Likewise.
7037 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7038 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7039 (tfile_write_header, tfile_write_regblock_type): Likewise.
7040 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7041 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7042 (tfile_write_raw_data, tfile_end): Likewise.
7043 (tfile_trace_file_writer_new): Likewise.
7044 (free_uploaded_tp): Make it extern.
7045 (free_uploaded_tsv): Make it extern.
7046 (_initialize_tracepoint): Move code to register command 'tsave'
7048 * tracepoint.h (stop_reason_names): Declare.
7049 (struct trace_frame_write_ops): Move it to tracefile.h.
7050 (struct trace_file_write_ops): Likewise.
7051 (struct trace_file_writer): Likewise.
7052 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7054 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7057 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7059 (get_cores_used_by_process): New parameter num_cores, use it.
7060 (linux_xfer_osdata_processes): Pass num_cores to it.
7061 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7064 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7066 * target.c (memory_xfer_partial): Fix length arg in call to
7067 breakpoint_xfer_memory.
7069 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7072 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7073 number comes after the + or - signs. Adjust length of register
7074 name to be extracted.
7076 2014-02-20 Tom Tromey <tromey@redhat.com>
7078 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7079 (ada_varobj_ops): Mark "extern".
7081 2014-02-20 Tom Tromey <tromey@redhat.com>
7083 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7085 2014-02-20 Doug Evans <xdje42@gmail.com>
7087 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7088 All callers updated.
7089 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7090 All callers updated.
7091 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7092 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7094 2014-02-20 lin zuojian <manjian2006@gmail.com>
7095 Joel Brobecker <brobecker@adacore.com>
7096 Doug Evans <xdje42@gmail.com>
7099 * dwarf2read.c (struct die_info): New member in_process.
7100 (reset_die_in_process): New function.
7101 (process_die): Set it at the start, reset when returning.
7102 (inherit_abstract_dies): Only call process_die if origin_child_die
7103 not already being processed.
7105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7107 * windows-nat.c (handle_unload_dll): Add function documentation.
7108 (do_initial_windows_stuff): Add comment explaining why we wait
7109 until after inferior initialization has finished before
7110 processing all DLLs.
7112 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7114 * windows-nat.c (get_module_name): Delete.
7115 (windows_get_exec_module_filename): New function, mostly
7116 inspired from get_module_name.
7117 (windows_pid_to_exec_file): Replace call to get_module_name
7118 by call to windows_get_exec_module_filename.
7120 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7122 * windows-nat.c (handle_load_dll): Rewrite this function's
7123 introductory comment. Remove code using get_module_name
7124 to get the DLL's name.
7126 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7128 * windows-nat.c (get_windows_debug_event): Ignore
7129 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7130 if windows_initialization_done == 0.
7131 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7132 Adjust implementation to always load all DLLs.
7133 (do_initial_windows_stuff): Replace call to
7134 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7136 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7138 * windows-nat.c (_initialize_windows_nat): Deprecate the
7139 "dll-symbols" command. Turn the "add-shared-symbol-files"
7140 and "assf" aliases into commands, and deprecate them as well.
7141 * NEWS: Add entry explaining that "dll-symbols" and its two
7142 aliases are now deprecated.
7144 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7146 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7147 new-line in debug string. Remove trailing spaces.
7149 2014-02-19 Stan Shebs <stan@codesourcery.com>
7151 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7153 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7155 * NEWS: Add entry for the new feature
7156 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7159 2014-02-19 Stan Shebs <stan@codesourcery.com>
7161 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7163 2014-02-19 Pedro Alves <palves@redhat.com>
7165 * common/ptid.h (struct ptid): Mention that process_stratum
7166 targets should prefer ptid.lwp.
7168 2014-02-19 Pedro Alves <palves@redhat.com>
7170 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7171 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7172 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7173 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7174 store remote thread ids rather than ptid.tid.
7175 (_initialize_remote): Adjust.
7177 2014-02-19 Tom Tromey <tromey@redhat.com>
7179 * target.c (target_get_unwinder): Rewrite.
7180 (target_get_tailcall_unwinder): Rewrite.
7181 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7182 (record_btrace_to_get_tailcall_unwinder): New function.
7183 (init_record_btrace_ops): Update.
7184 * target.h (struct target_ops) <to_get_unwinder,
7185 to_get_tailcall_unwinder>: Now function pointers. Use
7186 TARGET_DEFAULT_RETURN.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7192 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7194 2014-02-19 Tom Tromey <tromey@redhat.com>
7196 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7198 * target-delegates.c: Rebuild.
7199 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7200 TARGET_DEFAULT_FUNC.
7201 * target.c (default_target_decr_pc_after_break): Rename from
7202 forward_target_decr_pc_after_break. Simplify.
7203 (target_decr_pc_after_break): Rely on delegation.
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7207 * target.c (update_current_target): Do not INHERIT to_doc or
7208 to_magic. Do not de_fault to_open or to_close.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * gcore.h (objfile_find_memory_regions): Declare.
7213 * gcore.c (objfile_find_memory_regions): No longer static. Add
7215 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7216 * exec.c: Include gcore.h.
7217 (exec_set_find_memory_regions): Remove.
7218 (exec_find_memory_regions): Remove.
7219 (exec_do_find_memory_regions): Remove.
7220 (init_exec_ops): Update.
7221 * defs.h (exec_set_find_memory_regions): Remove.
7223 2014-02-19 Tom Tromey <tromey@redhat.com>
7225 * target-delegates.c: Rebuild.
7226 * target.h (struct target_ops) <to_extra_thread_info,
7227 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7228 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7229 not 0, in TARGET_DEFAULT_RETURN.
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7233 * target.c (complete_target_initialization): Remove casts. Use
7234 return_zero_has_execution.
7235 (return_zero): Add "ignore" argument.
7236 (return_zero_has_execution): New function.
7237 (init_dummy_target): Remove casts. Use
7238 return_zero_has_execution.
7240 2014-02-19 Tom Tromey <tromey@redhat.com>
7242 * target.c (update_current_target): Update comments. Do not
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7247 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7249 * corelow.c (core_read_description): Delegate when needed.
7250 * remote.c (remote_read_description): Delegate when needed.
7251 * target-delegates.c: Rebuild.
7252 * target.c (target_read_description): Rewrite.
7253 * target.h (struct target_ops) <to_read_description>: Update
7254 comment. Use TARGET_DEFAULT_RETURN.
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7258 * target-delegates.c: Rebuild.
7259 * target.c (update_current_target): Don't inherit or default
7261 (find_default_run_target): Check against delegate_can_run.
7262 * target.h (struct target_ops) <to_can_run>: Use
7263 TARGET_DEFAULT_RETURN.
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target-delegates.c: Rebuild.
7268 * target.c (target_disconnect): Unconditionally delegate.
7269 * target.h (struct target_ops) <to_disconnect>: Use
7270 TARGET_DEFAULT_NORETURN.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * record.c (record_stop): Unconditionally delegate.
7275 * target-delegates.c: Rebuild.
7276 * target.c (target_stop_recording): Unconditionally delegate.
7277 * target.h (struct target_ops) <to_stop_recording>: Use
7278 TARGET_DEFAULT_IGNORE.
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target-delegates.c: Rebuild.
7283 * target.c (target_enable_btrace): Unconditionally delegate.
7284 * target.h (struct target_ops) <to_enable_btrace>: Use
7285 TARGET_DEFAULT_NORETURN.
7287 2014-02-19 Tom Tromey <tromey@redhat.com>
7289 * target-delegates.c: Rebuild.
7290 * target.c (target_read_btrace): Unconditionally delegate.
7291 * target.h (struct target_ops) <to_read_btrace>: Use
7292 TARGET_DEFAULT_NORETURN.
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * target-delegates.c: Rebuild.
7297 * target.c (target_teardown_btrace): Unconditionally delegate.
7298 * target.h (struct target_ops) <to_teardown_btrace>: Use
7299 TARGET_DEFAULT_NORETURN.
7301 2014-02-19 Tom Tromey <tromey@redhat.com>
7303 * target-delegates.c: Rebuild.
7304 * target.c (target_disable_btrace): Unconditionally delegate.
7305 * target.h (struct target_ops) <to_disable_btrace>: Use
7306 TARGET_DEFAULT_NORETURN.
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7310 * target-delegates.c: Rebuild.
7311 * target.c (default_search_memory): New function.
7312 (simple_search_memory): Update comment.
7313 (target_search_memory): Unconditionally delegate.
7314 * target.h (struct target_ops) <to_search_memory>: Use
7315 TARGET_DEFAULT_FUNC.
7317 2014-02-19 Tom Tromey <tromey@redhat.com>
7319 * auxv.c (default_auxv_parse): No longer static.
7320 (target_auxv_parse): Unconditionally delegate.
7321 * auxv.h (default_auxv_parse): Declare.
7322 * target-delegates.c: Rebuild.
7323 * target.c: Include auxv.h.
7324 * target.h (struct target_ops) <to_auxv_parse>: Use
7325 TARGET_DEFAULT_FUNC.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target-delegates.c: Rebuild.
7330 * target.c (target_memory_map): Unconditionally delegate.
7331 * target.h (struct target_ops) <to_memory_map>: Use
7332 TARGET_DEFAULT_RETURN.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target-delegates.c: Rebuild.
7337 * target.c (target_thread_alive): Unconditionally delegate.
7338 * target.h (struct target_ops) <to_thread_alive>: Use
7339 TARGET_DEFAULT_RETURN.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target-delegates.c: Rebuild.
7344 * target.c (target_save_record): Unconditionally delegate.
7345 * target.h (struct target_ops) <to_save_record>: Use
7346 TARGET_DEFAULT_NORETURN.
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7350 * target-delegates.c: Rebuild.
7351 * target.c (target_delete_record): Unconditionally delegate.
7352 * target.h (struct target_ops) <to_delete_record>: Use
7353 TARGET_DEFAULT_NORETURN.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target-delegates.c: Rebuild.
7358 * target.c (target_record_is_replaying): Unconditionally
7360 * target.h (struct target_ops) <to_record_is_replaying>: Use
7361 TARGET_DEFAULT_RETURN.
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_goto_record_begin): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_goto_record_begin>: Use
7368 TARGET_DEFAULT_NORETURN.
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7372 * target-delegates.c: Rebuild.
7373 * target.c (target_goto_record_end): Unconditionally delegate.
7374 * target.h (struct target_ops) <to_goto_record_end>: Use
7375 TARGET_DEFAULT_NORETURN.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target-delegates.c: Rebuild.
7380 * target.c (target_goto_record): Unconditionally delegate.
7381 * target.h (struct target_ops) <to_goto_record>: Use
7382 TARGET_DEFAULT_NORETURN.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_insn_history): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_insn_history>: Use
7389 TARGET_DEFAULT_NORETURN.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_insn_history_from): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_insn_history_from>: Use
7396 TARGET_DEFAULT_NORETURN.
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_insn_history_range): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_insn_history_range>: Use
7403 TARGET_DEFAULT_NORETURN.
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * target-delegates.c: Rebuild.
7408 * target.c (target_call_history): Unconditionally delegate.
7409 * target.h (struct target_ops) <to_call_history>: Use
7410 TARGET_DEFAULT_NORETURN.
7412 2014-02-19 Tom Tromey <tromey@redhat.com>
7414 * target-delegates.c: Rebuild.
7415 * target.c (target_call_history_from): Unconditionally delegate.
7416 * target.h (struct target_ops) <to_call_history_from>: Use
7417 TARGET_DEFAULT_NORETURN.
7419 2014-02-19 Tom Tromey <tromey@redhat.com>
7421 * target-delegates.c: Rebuild.
7422 * target.c (target_call_history_range): Unconditionally delegate.
7423 * target.h (struct target_ops) <to_call_history_range>: Use
7424 TARGET_DEFAULT_NORETURN.
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7428 * target-delegates.c: Rebuild.
7429 * target.c (target_verify_memory): Unconditionally delegate.
7430 * target.h (struct target_ops) <to_verify_memory>: Use
7431 TARGET_DEFAULT_NORETURN.
7433 2014-02-19 Tom Tromey <tromey@redhat.com>
7435 * target-delegates.c: Rebuild.
7436 * target.c (target_core_of_thread): Unconditionally delegate.
7437 * target.h (struct target_ops) <to_core_of_thread>: Use
7438 TARGET_DEFAULT_RETURN.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target-delegates.c: Rebuild.
7443 * target.c (target_flash_done): Unconditionally delegate.
7444 * target.h (struct target_ops) <to_flash_done>: Use
7445 TARGET_DEFAULT_NORETURN.
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7449 * target-delegates.c: Rebuild.
7450 * target.c (target_flash_erase): Unconditionally delegate.
7451 * target.h (struct target_ops) <to_flash_erase>: Use
7452 TARGET_DEFAULT_NORETURN.
7454 2014-02-19 Tom Tromey <tromey@redhat.com>
7456 * target-delegates.c: Rebuild.
7457 * target.c (target_get_section_table): Unconditionally delegate.
7458 * target.h (struct target_ops) <to_get_section_table>: Use
7459 TARGET_DEFAULT_RETURN.
7461 2014-02-19 Tom Tromey <tromey@redhat.com>
7463 * target-delegates.c: Rebuild.
7464 * target.c (target_pid_to_str): Unconditionally delegate.
7465 (init_dummy_target): Don't initialize to_pid_to_str.
7466 (default_pid_to_str): Rename from dummy_pid_to_str.
7467 * target.h (struct target_ops) <to_pid_to_str>: Use
7468 TARGET_DEFAULT_FUNC.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target-delegates.c: Rebuild.
7473 * target.c (target_find_new_threads): Unconditionally delegate.
7474 * target.h (struct target_ops) <to_find_new_threads>: Use
7475 TARGET_DEFAULT_RETURN.
7477 2014-02-19 Tom Tromey <tromey@redhat.com>
7479 * target-delegates.c: Rebuild.
7480 * target.c (target_program_signals): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_program_signals>: Use
7482 TARGET_DEFAULT_IGNORE.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_pass_signals): Unconditionally delegate.
7488 * target.h (struct target_ops) <to_pass_signals>: Use
7489 TARGET_DEFAULT_IGNORE.
7491 2014-02-19 Tom Tromey <tromey@redhat.com>
7493 * target-delegates.c: Rebuild.
7494 * target.c (default_mourn_inferior): New function.
7495 (target_mourn_inferior): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_mourn_inferior>: Use
7497 TARGET_DEFAULT_FUNC.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target-delegates.c: Rebuild.
7502 * target.c (default_follow_fork): New function.
7503 (target_follow_fork): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_follow_fork>: Use
7505 TARGET_DEFAULT_FUNC.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_kill): Unconditionally delegate.
7511 * target.h (struct target_ops) <to_kill>: Use
7512 TARGET_DEFAULT_NORETURN.
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target-delegates.c: Rebuild.
7517 * target.c (target_masked_watch_num_registers): Unconditionally
7519 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7520 Use TARGET_DEFAULT_RETURN.
7522 2014-02-19 Tom Tromey <tromey@redhat.com>
7524 * target-delegates.c: Rebuild.
7525 * target.c (target_remove_mask_watchpoint): Unconditionally
7527 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7528 TARGET_DEFAULT_RETURN.
7530 2014-02-19 Tom Tromey <tromey@redhat.com>
7532 * target-delegates.c: Rebuild.
7533 * target.c (target_insert_mask_watchpoint): Unconditionally
7535 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7536 TARGET_DEFAULT_RETURN.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target-delegates.c: Rebuild.
7541 * target.c (target_ranged_break_num_registers): Unconditionally
7543 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7544 Use TARGET_DEFAULT_RETURN.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target-delegates.c: Rebuild.
7549 * target.c (target_fetch_registers): Unconditionally delegate.
7550 * target.h (struct target_ops) <to_fetch_registers>: Use
7551 TARGET_DEFAULT_NORETURN.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target-delegates.c: Rebuild.
7556 * target.c (update_current_target): Don't inherit or default
7558 * target.h (struct target_ops) <to_stop>: Use
7559 TARGET_DEFAULT_IGNORE.
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target-delegates.c: Rebuild.
7564 * target.c (update_current_target): Don't inherit or default
7565 to_can_run_breakpoint_commands.
7566 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7567 Use TARGET_DEFAULT_RETURN.
7569 2014-02-19 Tom Tromey <tromey@redhat.com>
7571 * target-delegates.c: Rebuild.
7572 * target.c (update_current_target): Don't inherit or default
7573 to_supports_evaluation_of_breakpoint_conditions.
7574 * target.h (struct target_ops)
7575 <to_supports_evaluation_of_breakpoint_conditions>: Use
7576 TARGET_DEFAULT_RETURN.
7578 2014-02-19 Tom Tromey <tromey@redhat.com>
7580 * target-delegates.c: Rebuild.
7581 * target.c (update_current_target): Don't inherit or default
7582 to_augmented_libraries_svr4_read.
7583 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7584 Use TARGET_DEFAULT_RETURN.
7586 2014-02-19 Tom Tromey <tromey@redhat.com>
7588 * target-delegates.c: Rebuild.
7589 * target.c (update_current_target): Don't inherit or default
7591 * target.h (struct target_ops) <to_can_use_agent>: Use
7592 TARGET_DEFAULT_RETURN.
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7596 * target-delegates.c: Rebuild.
7597 * target.c (update_current_target): Don't inherit or default
7599 * target.h (struct target_ops) <to_use_agent>: Use
7600 TARGET_DEFAULT_NORETURN.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target-delegates.c: Rebuild.
7605 * target.c (update_current_target): Don't inherit or default
7607 (return_null): Remove.
7608 * target.h (struct target_ops) <to_traceframe_info>: Use
7609 TARGET_DEFAULT_RETURN.
7611 2014-02-19 Tom Tromey <tromey@redhat.com>
7613 * target-delegates.c: Rebuild.
7614 * target.c (update_current_target): Don't inherit or default
7615 to_static_tracepoint_markers_by_strid.
7616 * target.h (struct target_ops)
7617 <to_static_tracepoint_markers_by_strid>: Use
7618 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
7625 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7626 Use 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_set_permissions>: Use
7634 TARGET_DEFAULT_IGNORE.
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
7641 * target.h (struct target_ops) <to_get_tib_address>: Use
7642 TARGET_DEFAULT_NORETURN.
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) <to_set_trace_notes>: Use
7650 TARGET_DEFAULT_RETURN.
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target-delegates.c: Rebuild.
7655 * target.c (update_current_target): Don't initialize
7656 to_set_trace_buffer_size.
7657 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7658 TARGET_DEFAULT_IGNORE.
7660 2014-02-19 Tom Tromey <tromey@redhat.com>
7662 * target-delegates.c: Rebuild.
7663 * target.c (update_current_target): Don't inherit or default
7664 to_set_circular_trace_buffer.
7665 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7666 TARGET_DEFAULT_IGNORE.
7668 2014-02-19 Tom Tromey <tromey@redhat.com>
7670 * target-delegates.c: Rebuild.
7671 * target.c (update_current_target): Don't inherit or default
7672 to_set_disconnected_tracing.
7673 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7674 TARGET_DEFAULT_IGNORE.
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target-delegates.c: Rebuild.
7679 * target.c (update_current_target): Don't inherit or default
7680 to_get_min_fast_tracepoint_insn_len.
7681 (return_minus_one): Remove.
7682 * target.h (struct target_ops)
7683 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7687 * target-delegates.c: Rebuild.
7688 * target.c (update_current_target): Don't inherit or default
7689 to_get_raw_trace_data.
7690 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7691 TARGET_DEFAULT_NORETURN.
7693 2014-02-19 Tom Tromey <tromey@redhat.com>
7695 * target-delegates.c: Rebuild.
7696 * target.c (update_current_target): Don't inherit or default
7697 to_upload_trace_state_variables.
7698 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7699 Use TARGET_DEFAULT_RETURN.
7701 2014-02-19 Tom Tromey <tromey@redhat.com>
7703 * target-delegates.c: Rebuild.
7704 * target.c (update_current_target): Don't inherit or default
7705 to_upload_tracepoints.
7706 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7707 TARGET_DEFAULT_RETURN.
7709 2014-02-19 Tom Tromey <tromey@redhat.com>
7711 * target-delegates.c: Rebuild.
7712 * target.c (update_current_target): Don't inherit or default
7714 * target.h (struct target_ops) <to_save_trace_data>: Use
7715 TARGET_DEFAULT_NORETURN.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * target-delegates.c: Rebuild.
7720 * target.c (update_current_target): Don't inherit or default
7721 to_get_trace_state_variable_value.
7722 * target.h (struct target_ops)
7723 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target-delegates.c: Rebuild.
7728 * target.c (update_current_target): Don't inherit or default
7730 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7737 * target.h (struct target_ops) <to_trace_stop>: Use
7738 TARGET_DEFAULT_NORETURN.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target-delegates.c: Rebuild.
7743 * target.c (update_current_target): Don't inherit or default
7744 to_get_tracepoint_status.
7745 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7746 TARGET_DEFAULT_NORETURN.
7748 2014-02-19 Tom Tromey <tromey@redhat.com>
7750 * target-delegates.c: Rebuild.
7751 * target.c (update_current_target): Don't inherit or default
7752 to_get_trace_status.
7753 * target.h (struct target_ops) <to_get_trace_status>: 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
7761 * target.h (struct target_ops) <to_trace_start>: Use
7762 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
7769 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7770 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
7777 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7778 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
7785 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7786 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
7793 * target.h (struct target_ops) <to_download_trace_state_variable>:
7794 Use TARGET_DEFAULT_NORETURN.
7796 2014-02-19 Tom Tromey <tromey@redhat.com>
7798 * target-delegates.c: Rebuild.
7799 * target.c (update_current_target): Don't inherit or default
7800 to_can_download_tracepoint.
7801 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7802 TARGET_DEFAULT_RETURN.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * target-delegates.c: Rebuild.
7807 * target.c (update_current_target): Don't inherit or default
7808 to_download_tracepoint.
7809 * target.h (struct target_ops) <to_download_tracepoint>: Use
7810 TARGET_DEFAULT_NORETURN.
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7814 * target-delegates.c: Rebuild.
7815 * target.c (update_current_target): Don't inherit or default
7817 * target.h (struct target_ops) <to_trace_init>: Use
7818 TARGET_DEFAULT_RETURN.
7820 2014-02-19 Tom Tromey <tromey@redhat.com>
7822 * target-delegates.c: Rebuild.
7823 * target.c (update_current_target): Don't inherit or default
7824 to_supports_string_tracing.
7825 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7826 TARGET_DEFAULT_RETURN.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * target-delegates.c: Rebuild.
7831 * target.c (update_current_target): Don't inherit or default
7832 to_supports_enable_disable_tracepoint.
7833 * target.h (struct target_ops)
7834 <to_supports_enable_disable_tracepoint>: Use
7835 TARGET_DEFAULT_RETURN.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (update_current_target): Don't inherit or default
7841 to_supports_multi_process.
7842 * target.h (struct target_ops) <to_supports_multi_process>: Use
7843 TARGET_DEFAULT_RETURN.
7845 2014-02-19 Tom Tromey <tromey@redhat.com>
7847 * target-delegates.c: Rebuild.
7848 * target.c (update_current_target): Don't inherit or default
7849 to_get_ada_task_ptid.
7850 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7851 TARGET_DEFAULT_FUNC.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.c (update_current_target): Don't inherit or default
7857 to_thread_architecture.
7858 * target.h (struct target_ops) <to_thread_architecture>: Use
7859 TARGET_DEFAULT_FUNC.
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_execution_direction.
7866 * target.h (struct target_ops) <to_execution_direction>: Use
7867 TARGET_DEFAULT_FUNC.
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
7873 to_can_execute_reverse.
7874 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7875 TARGET_DEFAULT_RETURN.
7876 (target_can_execute_reverse): Unconditionally delegate.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7883 (dummy_goto_bookmark): Remove.
7884 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7885 * target.h (struct target_ops) <to_goto_bookmark>: Use
7886 TARGET_DEFAULT_NORETURN.
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7890 * target-delegates.c: Rebuild.
7891 * target.c (update_current_target): Don't inherit or default
7893 (dummy_get_bookmark): Remove.
7894 (init_dummy_target): Don't inherit or default to_get_bookmark.
7895 * target.h (struct target_ops) <to_get_bookmark>: Use
7896 TARGET_DEFAULT_NORETURN
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7902 to_make_corefile_notes.
7903 (init_dummy_target): Don't initialize to_make_corefile_notes.
7904 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7905 TARGET_DEFAULT_FUNC.
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_find_memory_regions.
7912 (init_dummy_target): Don't initialize to_find_memory_regions.
7913 * target.h (struct target_ops) <to_find_memory_regions>: Use
7914 TARGET_DEFAULT_FUNC.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7921 * target.h (struct target_ops) <to_log_command>: Use
7922 TARGET_DEFAULT_IGNORE.
7923 (target_log_command): Unconditionally delegate.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_pid_to_exec_file.
7930 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7931 TARGET_DEFAULT_RETURN.
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7938 (target_thread_name): Unconditionally delegate.
7939 * target.h (struct target_ops) <to_thread_name>: Use
7940 TARGET_DEFAULT_RETURN.
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7944 * target-delegates.c: Rebuild.
7945 * target.c (update_current_target): Don't inherit or default
7946 to_extra_thread_info.
7947 * target.h (struct target_ops) <to_extra_thread_info>: Use
7948 TARGET_DEFAULT_RETURN.
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_has_exited>: Use
7956 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
7963 (return_one): Remove.
7964 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7965 TARGET_DEFAULT_RETURN.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target-delegates.c: Rebuild.
7970 * target.c (update_current_target): Don't inherit or default
7971 to_insert_exec_catchpoint.
7972 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7973 TARGET_DEFAULT_RETURN.
7975 2014-01-08 Tom Tromey <tromey@redhat.com>
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_insert_exec_catchpoint.
7980 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7981 TARGET_DEFAULT_RETURN.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_remove_vfork_catchpoint.
7988 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7989 TARGET_DEFAULT_RETURN.
7991 2014-02-19 Tom Tromey <tromey@redhat.com>
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_insert_vfork_catchpoint.
7996 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7997 TARGET_DEFAULT_RETURN.
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target-delegates.c: Rebuild.
8002 * target.c (update_current_target): Don't inherit or default
8003 to_remove_fork_catchpoint.
8004 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8005 TARGET_DEFAULT_RETURN.
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target-delegates.c: Rebuild.
8010 * target.c (update_current_target): Don't inherit or default
8011 to_insert_fork_catchpoint.
8012 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8013 TARGET_DEFAULT_RETURN.
8015 2014-02-19 Tom Tromey <tromey@redhat.com>
8017 * target-delegates.c: Rebuild.
8018 * target.c (update_current_target): Don't inherit or default
8019 to_post_startup_inferior.
8020 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8021 TARGET_DEFAULT_IGNORE.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target-delegates.c: Rebuild.
8026 * target.c (update_current_target): Don't inherit or default
8028 * target.h (struct target_ops) <to_load>: Use
8029 TARGET_DEFAULT_NORETURN.
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target-delegates.c: Rebuild.
8034 * target.c (update_current_target): Don't inherit or default
8036 * target.h (struct target_ops) <to_terminal_info>: Use
8037 TARGET_DEFAULT_FUNC.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target-delegates.c: Rebuild.
8042 * target.c (update_current_target): Don't inherit or default
8043 to_terminal_save_ours.
8044 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8045 TARGET_DEFAULT_IGNORE.
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target-delegates.c: Rebuild.
8050 * target.c (update_current_target): Don't inherit or default
8052 * target.h (struct target_ops) <to_terminal_ours>: Use
8053 TARGET_DEFAULT_IGNORE.
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8057 * target-delegates.c: Rebuild.
8058 * target.c (update_current_target): Don't inherit or default
8059 to_terminal_ours_for_output.
8060 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8061 TARGET_DEFAULT_IGNORE.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target-delegates.c: Rebuild.
8066 * target.c (update_current_target): Don't inherit or default
8067 to_terminal_inferior.
8068 * target.h (struct target_ops) <to_terminal_inferior>: Use
8069 TARGET_DEFAULT_IGNORE.
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: Rebuild.
8074 * target.c (update_current_target): Don't inherit or default
8076 * target.h (struct target_ops) <to_terminal_init>: Use
8077 TARGET_DEFAULT_IGNORE.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (update_current_target): Don't inherit or default
8083 to_can_accel_watchpoint_condition.
8084 * target.h (struct target_ops)
8085 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_region_ok_for_hw_watchpoint.
8092 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8093 Use TARGET_DEFAULT_FUNC.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_watchpoint_addr_within_range.
8100 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8101 Use TARGET_DEFAULT_FUNC.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_remove_watchpoint.
8108 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8109 TARGET_DEFAULT_NORETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't inherit or default
8115 to_insert_watchpoint.
8116 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8117 TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_remove_hw_breakpoint.
8124 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8125 TARGET_DEFAULT_RETURN.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8131 to_insert_hw_breakpoint.
8132 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8133 TARGET_DEFAULT_RETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_can_use_hw_breakpoint.
8140 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8141 TARGET_DEFAULT_RETURN.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target-delegates.c: Rebuild.
8146 * target.c (update_current_target): Don't inherit or default
8148 * target.h (struct target_ops) <to_files_info>: Use
8149 TARGET_DEFAULT_IGNORE.
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8153 * target-delegates.c: Rebuild.
8154 * target.c (update_current_target): Don't inherit or default
8156 * target.h (struct target_ops) <to_store>: Use
8157 TARGET_DEFAULT_NORETURN.
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8161 * target-delegates.c: Rebuild.
8162 * target.c (update_current_target): Don't inherit or default
8164 * target.h (struct target_ops) <to_post_attach>: Use
8165 TARGET_DEFAULT_IGNORE.
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8169 * target-delegates.c: Rebuild.
8170 * target.c (update_current_target): Don't inherit or default
8172 (default_rcmd): New function.
8173 (do_monitor_command): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_rmcd>: Use
8175 TARGET_DEFAULT_FUNC.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (init_dummy_target): Don't initialize to_attach.
8181 (target_attach): Unconditionally delegate.
8182 * target.h (struct target_ops) <to_attach>: Use
8183 TARGET_DEFAULT_FUNC.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_detach): Unconditionally delegate.
8189 (init_dummy_target): Don't initialize to_detach.
8190 * target.h (struct target_ops) <to_detach>: Use
8191 TARGET_DEFAULT_IGNORE.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8197 (target_augmented_libraries_svr4_read): Add argument.
8198 * target.c (update_current_target): Update.
8199 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target.h (struct target_ops) <to_call_history_range>: Add
8206 * target.c (target_call_history_range): Add argument.
8207 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8209 (record_btrace_call_history_from): Update.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target.h (struct target_ops) <to_call_history_from>: Add
8215 * target.c (target_call_history_from): Add argument.
8216 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8221 * target.h (struct target_ops) <to_call_history>: Add argument.
8222 * target.c (target_call_history): Add argument.
8223 * record-btrace.c (record_btrace_call_history): Add 'self'
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target.h (struct target_ops) <to_insn_history_range>: Add
8230 * target.c (target_insn_history_range): Add argument.
8231 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8233 (record_btrace_insn_history_from): Update.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target.h (struct target_ops) <to_insn_history_from>: Add
8239 * target.c (target_insn_history_from): Add argument.
8240 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target.h (struct target_ops) <to_insn_history>: Add argument.
8246 * target.c (target_insn_history): Add argument.
8247 * record-btrace.c (record_btrace_insn_history): Add 'self'
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target.h (struct target_ops) <to_goto_record>: Add argument.
8253 * target.c (target_goto_record): Add argument.
8254 * record-full.c (record_full_goto): Add 'self' argument.
8255 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8260 * target.c (target_goto_record_end): Add argument.
8261 * record-full.c (record_full_goto_end): Add 'self' argument.
8262 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target.h (struct target_ops) <to_goto_record_begin>: Add
8268 * target.c (target_goto_record_begin): Add argument.
8269 * record-full.c (record_full_goto_begin): Add 'self' argument.
8270 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target.h (struct target_ops) <to_record_is_replaying>: Add
8277 * target.c (target_record_is_replaying): Add argument.
8278 * record-full.c (record_full_is_replaying): Add 'self' argument.
8279 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8281 (record_btrace_xfer_partial, record_btrace_store_registers)
8282 (record_btrace_prepare_to_store, record_btrace_resume)
8283 (record_btrace_wait, record_btrace_decr_pc_after_break)
8284 (record_btrace_find_new_threads, record_btrace_thread_alive):
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target.h (struct target_ops) <to_delete_record>: Add argument.
8290 * target.c (target_delete_record): Add argument.
8291 * record-full.c (record_full_delete): Add 'self' argument.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target.h (struct target_ops) <to_save_record>: Add argument.
8296 * target.c (target_save_record): Add argument.
8297 * record-full.c (record_full_save): Add 'self' argument.
8298 (record_full_save): Add 'self' argument.
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8302 * target.h (struct target_ops) <to_info_record>: Add argument.
8303 * target.c (target_info_record): Add argument.
8304 * record.c (info_record_command): Add argument.
8305 * record-full.c (record_full_info): Add 'self' argument.
8306 * record-btrace.c (record_btrace_info): Add 'self' argument.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8311 * target.c (target_stop_recording): Add argument.
8312 * record.c (record_stop): Add argument.
8313 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8319 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8320 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8322 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8323 (_initialize_amd64_linux_nat): Use it.
8324 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8325 (_initialize_i386_linux_nat): Use it.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8330 * target.c (target_teardown_btrace): Add argument.
8331 * remote.c (remote_teardown_btrace): Add 'self' argument.
8332 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8334 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8340 * target.c (target_disable_btrace): Add argument.
8341 * remote.c (remote_disable_btrace): Add 'self' argument.
8342 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8344 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8350 * target.c (target_enable_btrace): Add argument.
8351 * remote.c (remote_enable_btrace): Add 'self' argument.
8352 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8354 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8360 (target_can_use_agent): Add argument.
8361 * target.c (update_current_target): Update.
8362 * remote.c (remote_can_use_agent): Add 'self' argument.
8363 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * target.h (struct target_ops) <to_use_agent>: Add argument.
8368 (target_use_agent): Add argument.
8369 * target.c (update_current_target): Update.
8370 * remote.c (remote_use_agent): Add 'self' argument.
8371 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8376 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8377 (target_traceframe_info): Add argument.
8378 * target.c (update_current_target): Update.
8379 * remote.c (remote_traceframe_info): Add 'self' argument.
8380 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target.h (target_static_tracepoint_markers_by_strid): Add
8386 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8388 * target.c (update_current_target): Update.
8389 * remote.c (struct target_ops)
8390 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8391 * linux-nat.c (struct target_ops)
8392 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8398 (target_static_tracepoint_marker_at): Add argument.
8399 * target.c (update_current_target): Update.
8400 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8406 (target_set_permissions): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_set_permissions): Add 'self' argument.
8409 (remote_start_remote): Update.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8414 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8415 (target_get_tib_address): Add argument.
8416 * target.c (update_current_target): Update.
8417 * remote.c (remote_get_tib_address): Add 'self' argument.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8422 (target_set_trace_notes): Add argument.
8423 * target.c (update_current_target): Update.
8424 * remote.c (remote_set_trace_notes): Add 'self' argument.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8430 (target_set_trace_buffer_size): Add argument.
8431 * target.c (update_current_target): Update.
8432 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8438 (target_set_circular_trace_buffer): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8447 (target_set_disconnected_tracing): Add argument.
8448 * target.c (update_current_target): Update.
8449 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target.h (struct target_ops)
8454 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8455 (target_get_min_fast_tracepoint_insn_len): Add argument.
8456 * target.c (update_current_target): Update.
8457 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8464 (target_get_raw_trace_data): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8472 (target_upload_trace_state_variables): Add argument.
8473 * target.c (update_current_target): Update.
8474 * remote.c (remote_upload_trace_state_variables): Add 'self'
8476 (remote_start_remote): Update.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8482 (target_upload_tracepoints): Add argument.
8483 * target.c (update_current_target): Update.
8484 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8485 (remote_start_remote): Update.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8490 (target_save_trace_data): Add argument.
8491 * target.c (update_current_target): Update.
8492 * remote.c (remote_save_trace_data): Add 'self' argument.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8498 * target.h (struct target_ops)
8499 <to_get_trace_state_variable_value>: Add argument.
8500 (target_get_trace_state_variable_value): Add argument.
8501 * target.c (update_current_target): Update.
8502 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8504 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8508 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8509 * target.h (struct target_ops) <to_trace_find>: Add argument.
8510 (target_trace_find): Add argument.
8511 * target.c (update_current_target): Update.
8512 * remote.c (remote_trace_find): Add 'self' argument.
8513 * ctf.c (ctf_trace_find): Add 'self' argument.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8518 (target_trace_stop): Add argument.
8519 * target.c (update_current_target): Update.
8520 * remote.c (remote_trace_stop): Add 'self' argument.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8525 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8527 (target_get_tracepoint_status): Add argument.
8528 * target.c (update_current_target): Update.
8529 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8534 * target.h (struct target_ops) <to_get_trace_status>: Add
8536 (target_get_trace_status): Add argument.
8537 * target.c (update_current_target): Update.
8538 * remote.c (remote_get_trace_status): Add 'self' argument.
8539 (remote_start_remote, remote_can_download_tracepoint): Update.
8540 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8542 2014-02-19 Tom Tromey <tromey@redhat.com>
8544 * target.h (struct target_ops) <to_trace_start>: Add argument.
8545 (target_trace_start): Add argument.
8546 * target.c (update_current_target): Update.
8547 * remote.c (remote_trace_start): Add 'self' argument.
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8551 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8553 (target_trace_set_readonly_regions): Add argument.
8554 * target.c (update_current_target): Update.
8555 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8562 (target_disable_tracepoint): Add argument.
8563 * target.c (update_current_target): Update.
8564 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8570 (target_enable_tracepoint): Add argument.
8571 * target.c (update_current_target): Update.
8572 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target.h (struct target_ops) <to_download_trace_state_variable>:
8578 (target_download_trace_state_variable): Add argument.
8579 * target.c (update_current_target): Update.
8580 * remote.c (remote_download_trace_state_variable): Add 'self'
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8587 (target_can_download_tracepoint): Add argument.
8588 * target.c (update_current_target): Update.
8589 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target.h (struct target_ops) <to_download_tracepoint>: Add
8595 (target_download_tracepoint): Add argument.
8596 * target.c (update_current_target): Update.
8597 * remote.c (remote_download_tracepoint): Add 'self' argument.
8599 2014-02-19 Tom Tromey <tromey@redhat.com>
8601 * target.h (struct target_ops) <to_trace_init>: Add argument.
8602 (target_trace_init): Add argument.
8603 * target.c (update_current_target): Update.
8604 * remote.c (remote_trace_init): Add 'self' argument.
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8609 * target.c (target_fileio_readlink): Add argument.
8610 * remote.c (remote_hostio_readlink): Add 'self' argument.
8611 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8616 * target.c (target_fileio_unlink): Add argument.
8617 * remote.c (remote_hostio_unlink): Add 'self' argument.
8618 (remote_file_delete): Update.
8619 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8624 * target.c (target_fileio_close): Add argument.
8625 * remote.c (remote_hostio_close): Add 'self' argument.
8626 (remote_hostio_close_cleanup): Update.
8627 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8629 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8634 * target.c (target_fileio_pread): Add argument.
8635 * remote.c (remote_hostio_pread): Add 'self' argument.
8636 (remote_bfd_iovec_pread, remote_file_get): Update.
8637 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8642 * target.c (target_fileio_pwrite): Add argument.
8643 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8644 (remote_file_put): Update.
8645 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8650 * target.c (target_fileio_open): Add argument.
8651 * remote.c (remote_hostio_open): Add 'self' argument.
8652 (remote_bfd_iovec_open): Add 'self' argument.
8653 (remote_file_put): Add 'self' argument.
8654 (remote_file_get): Add 'self' argument.
8655 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8661 (target_can_run_breakpoint_commands): Add argument.
8662 * target.c (update_current_target): Update.
8663 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8665 (remote_insert_breakpoint): Add 'self' argument.
8666 (remote_insert_hw_breakpoint): Add 'self' argument.
8667 (remote_can_run_breakpoint_commands): Add 'self' argument.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target.h (struct target_ops)
8672 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8673 (target_supports_evaluation_of_breakpoint_conditions): Add
8675 * target.c (update_current_target): Update.
8676 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8678 (remote_insert_breakpoint): Add 'self' argument.
8679 (remote_insert_hw_breakpoint): Add 'self' argument.
8680 (remote_supports_cond_breakpoints): Add 'self' argument.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8686 (target_supports_string_tracing): Add argument.
8687 * target.c (update_current_target): Update.
8688 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target.h (struct target_ops)
8693 <to_supports_disable_randomization>: Add argument.
8694 * target.c (find_default_supports_disable_randomization): Add
8696 (target_supports_disable_randomization): Add argument.
8697 (find_default_supports_disable_randomization): Add 'self'
8699 * remote.c (extended_remote_supports_disable_randomization): Add
8701 (remote_supports_disable_randomization): Add 'self' argument.
8702 (extended_remote_create_inferior): Update.
8703 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target.h (struct target_ops)
8709 <to_supports_enable_disable_tracepoint>: Add argument.
8710 (target_supports_enable_disable_tracepoint): Add argument.
8711 * target.c (update_current_target): Update.
8712 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target.h (struct target_ops) <to_supports_multi_process>: Add
8719 (target_supports_multi_process): Add argument.
8720 * target.c (update_current_target): Update.
8721 * remote.c (remote_supports_multi_process): Add 'self' argument.
8722 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8724 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target.h (struct target_ops) <to_execution_direction>: Add
8731 (target_execution_direction): Add argument.
8732 * target.c (default_execution_direction): Add 'self' argument.
8733 * record-full.c (record_full_execution_direction): Add 'self'
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8740 (target_can_execute_reverse): Add argument.
8741 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8742 * record-full.c (record_full_can_execute_reverse): Add 'self'
8744 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8750 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8752 (target_get_ada_task_ptid): Add argument.
8753 * target.c (update_current_target): Update.
8754 (default_get_ada_task_ptid): Add 'self' argument.
8755 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8756 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8757 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8759 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8761 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8763 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8765 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8766 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8772 (target_goto_bookmark): Add argument.
8773 * target.c (dummy_goto_bookmark): Add 'self' argument.
8774 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8779 (target_get_bookmark): Add argument.
8780 * target.c (dummy_get_bookmark): Add 'self' argument.
8781 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8787 (target_make_corefile_notes): Add argument.
8788 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8789 * procfs.c (procfs_make_note_section): Add 'self' argument.
8790 (procfs_make_note_section): Add 'self' argument.
8791 (procfs_make_note_section): Add 'self' argument.
8792 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8794 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8795 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8796 * exec.c (exec_make_note_section): Add 'self' argument.
8797 (exec_make_note_section): Add 'self' argument.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target.h (struct target_ops) <to_find_memory_regions>: Add
8803 (target_find_memory_regions): Add argument.
8804 * target.c (dummy_find_memory_regions): Add 'self' argument.
8805 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8806 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8807 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8808 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8809 * exec. (exec_do_find_memory_regions): New global.
8810 (exec_set_find_memory_regions): Rewrite.
8811 (exec_find_memory_regions): New function.
8812 (init_exec_ops): Use exec_find_memory_regions.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops) <to_supports_non_stop>: Add
8818 * target.c (find_default_supports_non_stop): Add argument.
8819 (target_supports_non_stop): Add argument.
8820 (find_default_supports_non_stop): Add 'self' argument.
8821 * remote.c (remote_supports_non_stop): Add 'self' argument.
8822 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target.h (struct target_ops) <to_log_command>: Add argument.
8827 (target_log_command): Add argument.
8828 * serial.h (serial_log_command): Add 'self' argument.
8829 * serial.c (serial_log_command): Add 'self' argument.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8834 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8836 (target_pid_to_exec_file): Add argument.
8837 * target.c (debug_to_pid_to_exec_file): Add argument.
8838 (update_current_target): Update.
8839 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8840 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8841 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8842 (linux_handle_extended_wait): Update.
8843 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8844 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8845 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8846 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target.h (struct target_ops) <to_rcmd>: Add argument.
8851 (target_rcmd): Add argument.
8852 * target.c (debug_to_rcmd): Add argument.
8853 (update_current_target, do_monitor_command): Update.
8854 * remote.c (remote_rcmd): Add 'self' argument.
8855 * monitor.c (monitor_rcmd): Add 'self' argument.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * windows-nat.c (windows_stop): Add 'self' argument.
8860 * target.h (struct target_ops) <to_stop>: Add argument.
8861 * target.c (target_stop): Add argument.
8862 (debug_to_stop): Add argument.
8863 (update_current_target): Update.
8864 * remote.c (remote_stop): Add 'self' argument.
8865 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8866 (gdbsim_cntrl_c): Update.
8867 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8868 * procfs.c (procfs_stop): Add 'self' argument.
8869 * nto-procfs.c (procfs_stop): Add 'self' argument.
8870 * monitor.c (monitor_stop): Add 'self' argument.
8871 (monitor_open): Update.
8872 * linux-nat.c (linux_nat_stop): Add argument.
8873 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8874 * gnu-nat.c (gnu_stop): Add 'self' argument.
8875 * darwin-nat.c (darwin_stop): Add 'self' argument.
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target.h (struct target_ops) <to_thread_name>: Add argument.
8880 * target.c (target_thread_name): Add argument.
8881 (update_current_target): Update.
8882 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target.h (struct target_ops) <to_extra_thread_info>: Add
8888 (target_extra_thread_info): Add argument.
8889 * target.c (update_current_target): Update.
8890 * remote.c (remote_threads_extra_info): Add 'self' argument.
8891 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8893 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8894 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8895 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8897 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8899 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8901 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * target.h (struct target_ops) <to_program_signals>: Add argument.
8907 * target.c (target_program_signals): Add argument.
8908 * remote.c (remote_program_signals): Add 'self' argument.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8913 * target.c (target_pass_signals): Add argument.
8914 * remote.c (remote_pass_signals): Add 'self' argument.
8915 (remote_start_remote): Update.
8916 * procfs.c (procfs_pass_signals): Add 'self' argument.
8917 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8918 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8919 (linux_nat_create_inferior, linux_nat_attach): Update.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * windows-nat.c (windows_can_run): Add 'self' argument.
8924 * target.h (struct target_ops) <to_can_run>: Add argument.
8925 (target_can_run): Add argument.
8926 * target.c (debug_to_can_run): Add argument.
8927 (update_current_target): Update.
8928 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8929 * inf-child.c (inf_child_can_run): Add 'self' argument.
8930 * go32-nat.c (go32_can_run): Add 'self' argument.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target.h (struct target_ops) <to_has_exited>: Add argument.
8935 (target_has_exited): Add argument.
8936 * target.c (debug_to_has_exited): Add argument.
8937 (update_current_target): Update.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8943 (target_set_syscall_catchpoint): Add argument.
8944 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8946 * target.c (update_current_target): Update.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8952 (target_remove_exec_catchpoint): Add argument.
8953 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8954 (update_current_target): Update.
8955 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8962 (target_insert_exec_catchpoint): Add argument.
8963 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8964 (update_current_target): Update.
8965 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8972 (target_remove_vfork_catchpoint): Add argument.
8973 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8974 (update_current_target): Update.
8975 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8982 (target_insert_vfork_catchpoint): Add argument.
8983 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8984 (update_current_target): Update.
8985 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8992 (target_remove_fork_catchpoint): Add argument.
8993 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8994 (update_current_target): Update.
8995 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
9000 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9002 (target_insert_fork_catchpoint): Add argument.
9003 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9004 (update_current_target): Update.
9005 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9012 (target_post_startup_inferior): Add argument.
9013 * target.c (debug_to_post_startup_inferior): Add argument.
9014 (update_current_target): Update.
9015 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9017 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9019 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9021 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9023 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9025 (super_post_startup_inferior): Likewise.
9026 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9028 (super_post_startup_inferior): Likewise.
9029 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9030 Add 'self' argument.
9031 (super_post_startup_inferior): Likewise.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target.h (struct target_ops) <to_load>: Add argument.
9036 * target.c (target_load): Add argument.
9037 (debug_to_load): Add argument.
9038 (update_current_target): Update.
9039 * remote.c (remote_load): Add 'self' argument.
9040 * remote-sim.c (gdbsim_load): Add 'self' argument.
9041 * remote-mips.c (mips_load): Add 'self' argument.
9042 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9043 * monitor.c (monitor_load): Add 'self' argument.
9044 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9049 (target_terminal_info): Add argument.
9050 * target.c (debug_to_terminal_info): Add argument.
9051 (default_terminal_info): Likewise.
9052 * inflow.c (child_terminal_info): Add 'self' argument.
9053 * inferior.h (child_terminal_info): Add 'self' argument.
9054 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9060 (target_terminal_save_ours): Add argument.
9061 * target.c (debug_to_terminal_save_ours): Add argument.
9062 (update_current_target): Update.
9063 * inflow.c (terminal_save_ours): Add 'self' argument.
9064 * inferior.h (terminal_save_ours): Add 'self' argument.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9069 (target_terminal_ours): Add argument.
9070 * target.c (debug_to_terminal_ours): Add argument.
9071 (update_current_target): Update.
9072 * remote.c (remote_terminal_ours): Add 'self' argument.
9073 (remote_close): Update.
9074 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9075 * inflow.c (terminal_ours): Add 'self' argument.
9076 * inferior.h (terminal_ours): Add 'self' argument.
9077 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9079 2014-02-19 Pedro Alves <palves@redhat.com>
9080 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9084 (target_terminal_ours_for_output): Add argument.
9085 * target.c (debug_to_terminal_ours_for_output): Add argument.
9086 (update_current_target): Update.
9087 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9088 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9089 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target.h (struct target_ops) <to_terminal_inferior>: Add
9095 * target.c (target_terminal_inferior): Add argument.
9096 (update_current_target): Update.
9097 * remote.c (remote_terminal_inferior): Add 'self' argument.
9098 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9099 * inflow.c (terminal_inferior): Add 'self' argument.
9100 * inferior.h (terminal_inferior): Add 'self' argument.
9101 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9102 (go32_terminal_inferior): Add 'self' argument.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9107 (target_terminal_init): Add argument.
9108 * target.c (debug_to_terminal_init): Add argument.
9109 (update_current_target): Update.
9110 * inflow.c (terminal_init_inferior): Add 'self' argument.
9111 * inferior.h (terminal_init_inferior): Add 'self' argument.
9112 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9113 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target.h (struct target_ops)
9118 <to_can_accel_watchpoint_condition>: Add argument.
9119 (target_can_accel_watchpoint_condition): Add argument.
9120 * target.c (debug_to_can_accel_watchpoint_condition): Add
9122 (update_current_target): Update.
9123 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9130 (target_region_ok_for_hw_watchpoint): Add argument.
9131 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9132 (default_region_ok_for_hw_watchpoint): Add argument.
9133 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9134 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9136 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9138 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9140 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9142 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9144 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9146 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9147 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9149 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9150 Add 'self' argument.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9156 (target_insert_watchpoint): Add argument.
9157 * target.c (debug_to_insert_watchpoint): Add argument.
9158 (update_current_target): Update.
9159 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9160 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9161 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9162 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9163 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9164 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9166 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9167 (procfs_insert_hw_watchpoint): Add 'self' argument.
9168 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9170 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9172 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9174 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9175 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9177 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9184 (target_remove_watchpoint): Add argument.
9185 * target.c (debug_to_remove_watchpoint): Add argument.
9186 (update_current_target): Update.
9187 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9188 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9189 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9190 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9191 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9192 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9194 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9195 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9197 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9199 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9201 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9202 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9204 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9211 (target_remove_hw_breakpoint): Add argument.
9212 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9213 (update_current_target): Update.
9214 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9215 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9217 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9218 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9220 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9225 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9227 (target_insert_hw_breakpoint): Add argument.
9228 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9229 (update_current_target): Update.
9230 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9231 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9233 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9234 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9235 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9237 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9244 (target_can_use_hardware_watchpoint): Add argument.
9245 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9246 (update_current_target): Update.
9247 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9249 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9251 * remote.c (remote_check_watch_resources): Add 'self' argument.
9252 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9253 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9255 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9256 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9258 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9260 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9262 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9264 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9266 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9268 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9269 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9271 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * target.h (struct target_ops) <to_post_attach>: Add argument.
9277 (target_post_attach): Add argument.
9278 * target.c (debug_to_post_attach): Add argument.
9279 (update_current_target): Update.
9280 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9281 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9282 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9283 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9284 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * windows-nat.c (windows_close): Add 'self' argument.
9289 * tracepoint.c (tfile_close): Add 'self' argument.
9290 * target.h (struct target_ops) <to_close>: Add argument.
9291 * target.c (target_close): Add argument.
9292 (update_current_target): Update.
9293 * remote.c (remote_close): Add 'self' argument.
9294 * remote-sim.c (gdbsim_close): Add 'self' argument.
9295 * remote-mips.c (mips_close): Add 'self' argument.
9296 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9297 * record-full.c (record_full_close): Add 'self' argument.
9298 * record-btrace.c (record_btrace_close): Add 'self' argument.
9299 * monitor.h (monitor_close): Add 'self' argument.
9300 * monitor.c (monitor_close): Add 'self' argument.
9301 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9302 * linux-nat.c (linux_nat_close): Add argument.
9303 * go32-nat.c (go32_close): Add 'self' argument.
9304 * exec.c (exec_close_1): Add 'self' argument.
9305 * ctf.c (ctf_close): Add 'self' argument.
9306 * corelow.c (core_close): Add 'self' argument.
9307 (core_close_cleanup): Update.
9308 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9309 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * remote.c (remote_load): New function.
9314 (init_remote_ops): Use it.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9320 * common/linux-btrace.h (linux_supports_btrace): Update.
9321 * remote.c (remote_supports_btrace): Add "self" argument.
9322 * target-delegates.c: Rebuild.
9323 * target.c (target_supports_btrace): Remove.
9324 * target.h (struct target_ops) <to_supports_btrace>: Add
9325 target_ops argument.
9326 (target_supports_btrace): New define.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * record-full.c (record_full_beneath_to_resume_ops)
9331 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9332 (record_full_beneath_to_wait)
9333 (record_full_beneath_to_store_registers_ops)
9334 (record_full_beneath_to_store_registers)
9335 (record_full_beneath_to_xfer_partial_ops)
9336 (record_full_beneath_to_xfer_partial)
9337 (record_full_beneath_to_insert_breakpoint_ops)
9338 (record_full_beneath_to_insert_breakpoint)
9339 (record_full_beneath_to_remove_breakpoint_ops)
9340 (record_full_beneath_to_remove_breakpoint)
9341 (record_full_beneath_to_stopped_by_watchpoint)
9342 (record_full_beneath_to_stopped_data_address)
9343 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9344 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9345 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9346 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9347 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9348 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9349 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9350 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9351 (record_full_resume, record_full_wait_1)
9352 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9353 (record_full_store_registers, record_full_xfer_partial)
9354 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9355 (record_full_async, record_full_core_xfer_partial): Use target
9357 * target-delegates.c: Rebuild.
9358 * target.c (current_xfer_partial): Remove.
9359 (update_current_target): Do not INHERIT or de_fault
9360 to_insert_breakpoint, to_remove_breakpoint,
9361 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9362 to_is_async_p, to_async. Do not set to_xfer_partial field.
9363 (default_xfer_partial): Simplify.
9364 (current_xfer_partial): Remove.
9365 (target_wait, target_resume): Simplify.
9366 (find_default_can_async_p, find_default_is_async_p): Update.
9367 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9368 to_xfer_partial, to_stopped_by_watchpoint,
9369 to_stopped_data_address.
9370 (target_store_registers): Simplify.
9371 (forward_target_remove_breakpoint)
9372 (forward_target_insert_breakpoint): Remove.
9373 (target_remove_breakpoint, target_insert_breakpoint)
9374 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9375 * target.h (struct target_ops) <to_resume, to_wait,
9376 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9377 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9378 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9380 (forward_target_remove_breakpoint)
9381 (forward_target_insert_breakpoint): Remove.
9382 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9384 (record_btrace_insert_breakpoint): Delegate directly.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target-delegates.c: New file.
9390 * target.c: Include target-delegates.c.
9391 (init_dummy_target): Call install_dummy_methods.
9392 (complete_target_initialization): Call install_delegators.
9393 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9394 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9395 * make-target-delegates: New file.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * record.c (find_record_target): Use find_target_at.
9400 * target.c (find_target_at): New function.
9401 * target.h (find_target_at): Declare.
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9405 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9407 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9409 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9410 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9412 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9414 * linux-nat.c (save_sigtrap): Update.
9415 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9416 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9417 (linux_nat_close): Update.
9418 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9420 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9422 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9423 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9424 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9425 (tmp_to_async): Add 'ops' argument.
9426 (record_full_stopped_by_watchpoint, record_full_async)
9427 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9429 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9430 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9431 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9432 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9433 (remote_is_async_p, remote_async): Add 'ops' argument.
9434 (remote_stopped_data_address): Update.
9435 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9436 * target.c (update_current_target)
9437 (find_default_can_async_p, find_default_is_async_p): Update.
9438 (init_dummy_target): Update.
9439 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9440 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9441 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9442 (target_can_async_p, target_is_async_p, target_async)
9443 (target_stopped_by_watchpoint): Update.
9445 2014-02-19 Yao Qi <yao@codesourcery.com>
9448 * gdbarch.sh: Remove startup_gdbarch.
9449 * gdbarch.c: Regenerated.
9450 * gdbarch.h: Likewise.
9452 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9454 * rl78-tdep.c (rl78_g10_register_name): New function.
9455 (rl78_return_value): Add g10 support.
9456 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9459 2014-02-17 Doug Evans <xdje42@gmail.com>
9461 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9462 (SUBDIR_GUILE_SRCS): Ditto.
9463 (scm-gsmob.o): Ditto.
9465 2014-02-17 Yao Qi <yao@codesourcery.com>
9467 * gnu-nat.c (ILL_RPC): Declare defined function.
9469 2014-02-17 Yao Qi <yao@codesourcery.com>
9471 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9472 mach_msg_type_number_t.
9473 (gnu_write_inferior): Likewise.
9475 2014-02-17 Yao Qi <yao@codesourcery.com>
9477 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9479 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9480 (inf_validate_procs, inf_signal): Likewise.
9481 (S_exception_raise_request): Likewise.
9482 (do_mach_notify_dead_name): Likewise.
9483 (steal_exc_port): Likewise.
9484 (gnu_read_inferior): Change 'copy_count''s type to
9485 mach_msg_type_number_t.
9486 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9489 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9491 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9492 flag. Adjust all users; in particular...
9493 (gnu_wait): ..., don't decrement its value in here...
9494 (gnu_create_inferior): ..., and instead set the flag in here,
9495 around the startup_inferior call, and call that one with
9496 START_INFERIOR_TRAPS_EXPECTED.
9498 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9499 (ILL_RPC): ... new macro.
9500 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9501 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9502 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9503 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9504 functions with ILL_RPC macro.
9505 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9506 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9507 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9508 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9509 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9510 (S_proc_getlogin_reply, S_proc_getsid_reply)
9511 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9512 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9513 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9514 (S_proc_getnports_reply, S_proc_is_important_reply)
9515 (S_proc_get_code_reply): New stub functions, generated with
9518 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9519 collected the type check structures.
9521 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9523 2014-02-14 Doug Evans <dje@google.com>
9525 * target.c (target_write_partial): Fix result type.
9527 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9529 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9530 the proper offsets to access fpregset_t.
9532 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9534 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9535 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9536 * h8300-tdep.c (setmachinelist): Remove global.
9537 * hppa-tdep.c (hppa_sigtramp): Remove global.
9538 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9539 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9540 * ravenscar-thread.c (update_target_observer): Remove global.
9541 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9543 2014-02-12 Tom Tromey <tromey@redhat.com>
9545 * common/rsp-low.c: Update comments.
9546 * common/rsp-low.h: Update comments.
9548 2014-02-12 Tom Tromey <tromey@redhat.com>
9550 * common/rsp-low.c (convert_ascii_to_int): Remove.
9551 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9553 2014-02-12 Tom Tromey <tromey@redhat.com>
9555 * common/rsp-low.h (unhexify): Don't declare.
9556 * common/rsp-low.c (unhexify): Remove.
9558 2014-02-12 Tom Tromey <tromey@redhat.com>
9560 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9561 * common/rsp-low.c (convert_int_to_ascii): Remove.
9563 2014-02-12 Tom Tromey <tromey@redhat.com>
9565 * common/rsp-low.h (hexify): Don't declare.
9566 * common/rsp-low.c (hexify): Remove.
9568 2014-02-12 Tom Tromey <tromey@redhat.com>
9570 * common/rsp-low.c (hexify): Never take strlen of argument.
9572 2014-02-12 Tom Tromey <tromey@redhat.com>
9574 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9575 * remote.c (extended_remote_run, remote_rcmd)
9576 (remote_download_trace_state_variable, remote_save_trace_data)
9577 (remote_set_trace_notes): Update.
9578 * tracepoint.c (encode_source_string, tfile_write_status)
9579 (tfile_write_uploaded_tsv): Update.
9581 2014-02-12 Tom Tromey <tromey@redhat.com>
9583 * tracepoint.c: Include rsp-low.h.
9584 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9585 * remote.c: Include rsp-low.h.
9586 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9587 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9588 (remote_unescape_input): Move to common/rsp-low.c.
9589 * common/rsp-low.h: New file.
9590 * common/rsp-low.c: New file.
9591 * Makefile.in (SFILES): Add common/rsp-low.c.
9592 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9593 (COMMON_OBS): Add rsp-low.o.
9594 (rsp-low.o): New target.
9596 2014-02-12 Tom Tromey <tromey@redhat.com>
9598 * utils.h: Include print-utils.h.
9599 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9600 (int_string, core_addr_to_string, core_addr_to_string_nz)
9601 (hex_string, hex_string_custom): Don't declare.
9602 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9603 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9604 (hex_string_custom, int_string, core_addr_to_string)
9605 (core_addr_to_string_nz, host_address_to_string): Move to
9606 common/print-utils.c.
9607 * common/print-utils.h: New file.
9608 * common/print-utils.c: New file
9609 * Makefile.in (SFILES): Add common/print-utils.c.
9610 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9611 (COMMON_OBS): Add print-utils.o.
9612 (print-utils.o): New target.
9614 2014-02-12 Tom Tromey <tromey@redhat.com>
9616 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9618 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9620 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9622 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9624 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9625 if a PT_IO ptrace request returns sucessfully but indicates that 0
9626 bytes were transferred.
9628 2014-02-12 Pedro Alves <palves@redhat.com>
9629 Kevin Buettner <kevinb@redhat.com>
9631 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9632 TYPE_INSTANCE_FLAG_CODE_SPACE.
9634 2014-02-12 Pedro Alves <palves@redhat.com>
9636 * h8300-tdep.c (pseudo_from_raw_register)
9637 (raw_from_pseudo_register): New functions.
9638 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9641 2014-02-12 Pedro Alves <palves@redhat.com>
9643 * h8300-tdep.c (h8300_register_sim_regno): New function.
9644 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9645 gdbarch_register_sim_regno hook.
9647 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9649 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9651 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9653 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9655 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9657 * obsd-tdep.h (obsd_init_abi): New prototype.
9658 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9659 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9660 (obsd_init_abi): New functions.
9661 * i386obsd-tdep.c: Include "obsd-tdep.h".
9662 (i386obsd_init_abi): Call obsd_init_abi.
9663 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9664 (amd64obsd_init_abi): Call obsd_init_abi.
9665 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9666 obsd-tdep.c to gdb_target_obs.
9668 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9670 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9671 double float arguments to 16-byte in the argument slots.
9673 2014-02-11 Doug Evans <xdje42@gmail.com>
9675 * configure.ac: Don't crash if pkg-config is not found and guile
9676 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9678 * configure: Regenerate.
9680 2014-02-11 Yao Qi <yao@codesourcery.com>
9682 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9683 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9684 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9685 * gnu-nat.c (gnu_xfer_memory): Likewise.
9686 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9687 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9688 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9689 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9691 2014-02-11 Yao Qi <yao@codesourcery.com>
9693 * target.h (enum target_xfer_error): Rename to ...
9694 (enum target_xfer_status): ... it. New. All users updated.
9695 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9697 (TARGET_XFER_STATUS_ERROR_P): New macro.
9698 (target_xfer_error_to_string): Remove declaration.
9699 (target_xfer_status_to_string): Declare.
9700 (target_xfer_partial_ftype): Adjust it.
9701 (struct target_ops) <to_xfer_partial>: Return
9702 target_xfer_status. Add argument xfered_len. Update
9704 * target.c (target_xfer_error_to_string): Rename to ...
9705 (target_xfer_status_to_string): ... it. New. All callers
9707 (target_read_live_memory): Likewise. Call target_xfer_partial
9708 instead of target_read.
9709 (memory_xfer_live_readonly_partial): Return
9710 target_xfer_status. Add argument xfered_len.
9711 (raw_memory_xfer_partial): Likewise.
9712 (memory_xfer_partial_1): Likewise.
9713 (memory_xfer_partial): Likewise.
9714 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9715 properly. Update debug message.
9716 (default_xfer_partial, current_xfer_partial): Likewise.
9717 (target_write_partial): Likewise.
9718 (target_read_partial): Likewise. All callers updated.
9719 (read_whatever_is_readable): Likewise.
9720 (target_write_with_progress): Likewise.
9721 (target_read_alloc_1): Likewise.
9723 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9724 * auxv.c (procfs_xfer_auxv): Likewise.
9725 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9726 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9727 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9728 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9729 * corefile.c (read_memory): Adjust.
9730 * corelow.c (core_xfer_partial): Likewise.
9731 * ctf.c (ctf_xfer_partial): Likewise.
9732 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9734 (darwin_xfer_partial): Likewise.
9735 * exec.c (section_table_xfer_memory_partial): Likewise. All
9737 (exec_xfer_partial): Likewise.
9738 * exec.h (section_table_xfer_memory_partial): Update
9740 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9742 (gnu_xfer_partial): Likewise.
9743 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9744 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9745 (ia64_hpux_xfer_solib_got): Likewise.
9746 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9747 type of 'partial_len' to ULONGEST.
9748 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9749 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9750 (linux_nat_xfer_partial): Likewise.
9751 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9752 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9753 * monitor.c (monitor_xfer_memory): Likewise.
9754 (monitor_xfer_partial): Likewise.
9755 * procfs.c (procfs_xfer_partial): Likewise.
9756 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9757 * record-full.c (record_full_xfer_partial): Likewise.
9758 (record_full_core_xfer_partial): Likewise.
9759 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9760 (gdbsim_xfer_partial): Likewise.
9761 * remote.c (remote_write_bytes_aux): Likewise. All callers
9763 (remote_write_bytes, remote_read_bytes): Likewise. All
9765 (remote_flash_erase): Likewise. All callers updated.
9766 (remote_write_qxfer): Likewise. All callers updated.
9767 (remote_read_qxfer): Likewise. All callers updated.
9768 (remote_xfer_partial): Likewise.
9769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9770 (rs6000_xfer_shared_libraries): Likewise.
9771 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9772 (sol_thread_xfer_partial): Likewise.
9773 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9774 (sparc_xfer_partial): Likewise.
9775 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9777 (spu_xfer_partial): Likewise.
9778 * spu-multiarch.c (spu_xfer_partial): Likewise.
9779 * tracepoint.c (tfile_xfer_partial): Likewise.
9780 * windows-nat.c (windows_xfer_memory): Likewise.
9781 (windows_xfer_shared_libraries): Likewise.
9782 (windows_xfer_partial): Likewise.
9783 * valprint.c: Replace 'target_xfer_error' with
9784 'target_xfer_status' in comments.
9786 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9788 Checked in by Joel Brobecker <brobecker@adacore.com>.
9789 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9791 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9793 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9794 function parameters.
9796 2014-02-10 Will Newton <will.newton@linaro.org>
9798 * elfread.c (elf_rel_plt_read): Look for a .got section if
9799 looking up .got.plt fails.
9800 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9801 on address passed to elf_gnu_ifunc_record_cache.
9802 (elf_gnu_ifunc_resolve_addr): Likewise.
9803 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9805 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9807 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9808 (X_RETTURN): New macro.
9809 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9811 * sparc64-tdep.c (sparc64_init_abi): Hook
9812 sparc_in_function_epilogue_p.
9814 2014-02-10 Gary Benson <gbenson@redhat.com>
9816 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9817 Rename name_matcher to symbol_matcher.
9819 2014-02-10 Gary Benson <gbenson@redhat.com>
9821 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9822 Use expand_symtabs_file_matcher_ftype and
9823 expand_symtabs_symbol_matcher_ftype.
9825 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9827 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9828 (struct ada_symbol_cache): New.
9829 (ada_free_symbol_cache): Forward declare.
9830 (struct ada_pspace_data): New.
9831 (ada_pspace_data_handle): New static global.
9832 (get_ada_pspace_data, ada_pspace_data_cleanup)
9833 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9834 (cache_space, cache): Delete, now folded inside struct
9836 (ada_get_symbol_cache): New function.
9837 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9839 (_initialize_ada_language): Remove initialization of cache_space.
9840 Move call to observer_attach_inferior_exit up, grouping it
9841 with the other observer registrations inside this function.
9842 Rename command to be more general. Add call to
9843 register_program_space_data_with_cleanup.
9845 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9847 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9848 ada_new_objfile_observer.
9849 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9850 (_initialize_tasks): Update uses of ada_new_objfile_observer
9851 and ada_tasks_normal_stop_observer.
9853 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9855 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9856 returned by the 'Length attribute to integer.
9858 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9860 * ada-lang.c (_initialize_ada_language): Initialize
9861 cache_space obstack.
9863 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9865 * ada-lang.c (HASH_SIZE): New macro.
9866 (struct cache_entry): New type.
9867 (cache_space, cache): New static globals.
9868 (ada_clear_symbol_cache, find_entry): New functions.
9869 (lookup_cached_symbol, cache_symbol): Implement.
9870 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9871 (_initialize_ada_language): Attach ada_new_objfile_observer
9872 and ada_free_objfile_observer.
9874 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9876 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9877 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9878 struct block * parameter.
9879 (ada_lookup_symbol_list_worker): Constify local variable "block".
9880 Remove cast which is no longer necessary.
9882 2014-02-10 Doug Evans <xdje42@gmail.com>
9884 Add Guile as an extension language.
9885 * NEWS: Mention Guile scripting.
9886 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9887 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9888 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9889 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9890 (CLIBS): Add GUILE_LIBS.
9891 (install-guile): New rule.
9892 (guile.o): New rule.
9893 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9894 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9895 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9896 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9897 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9898 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9899 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9900 * configure.ac: New option --with-guile.
9901 * configure: Regenerate.
9902 * config.in: Regenerate.
9903 * auto-load.c: Remove #include "python/python.h". Add #include
9904 "gdb/section-scripts.h".
9905 (source_section_scripts): Handle Guile scripts.
9906 (_initialize_auto_load): Add name of Guile objfile script to
9907 scripts-directory help text.
9908 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9909 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9910 (struct breakpoint): New member scm_bp_object.
9911 * defs.h (enum command_control_type): New value guile_control.
9912 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9914 (show_user): Update comment.
9915 (_initialize_cli_cmds): Update help text for "show user". Update help
9916 text for max-user-call-depth.
9917 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9919 (multi_line_command_p): Add guile_control.
9920 (print_command_lines): Handle guile_control.
9921 (execute_control_command, recurse_read_control_structure): Ditto.
9922 (process_next_line): Recognize "guile" commands.
9923 * disasm.c (gdb_disassemble_info): Make non-static.
9924 * disasm.h: #include "dis-asm.h".
9925 (struct gdbarch): Add forward decl.
9926 (gdb_disassemble_info): Declare.
9927 * extension.c: #include "guile/guile.h".
9928 (extension_languages): Add guile.
9929 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9930 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9931 * gdbtypes.c (get_unsigned_type_max): New function.
9932 (get_signed_type_minmax): New function.
9933 * gdbtypes.h (get_unsigned_type_max): Declare.
9934 (get_signed_type_minmax): Declare.
9935 * guile/README: New file.
9936 * guile/guile-internal.h: New file.
9937 * guile/guile.c: New file.
9938 * guile/guile.h: New file.
9939 * guile/scm-arch.c: New file.
9940 * guile/scm-auto-load.c: New file.
9941 * guile/scm-block.c: New file.
9942 * guile/scm-breakpoint.c: New file.
9943 * guile/scm-disasm.c: New file.
9944 * guile/scm-exception.c: New file.
9945 * guile/scm-frame.c: New file.
9946 * guile/scm-gsmob.c: New file.
9947 * guile/scm-iterator.c: New file.
9948 * guile/scm-lazy-string.c: New file.
9949 * guile/scm-math.c: New file.
9950 * guile/scm-objfile.c: New file.
9951 * guile/scm-ports.c: New file.
9952 * guile/scm-pretty-print.c: New file.
9953 * guile/scm-safe-call.c: New file.
9954 * guile/scm-string.c: New file.
9955 * guile/scm-symbol.c: New file.
9956 * guile/scm-symtab.c: New file.
9957 * guile/scm-type.c: New file.
9958 * guile/scm-utils.c: New file.
9959 * guile/scm-value.c: New file.
9960 * guile/lib/gdb.scm: New file.
9961 * guile/lib/gdb/boot.scm: New file.
9962 * guile/lib/gdb/experimental.scm: New file.
9963 * guile/lib/gdb/init.scm: New file.
9964 * guile/lib/gdb/iterator.scm: New file.
9965 * guile/lib/gdb/printing.scm: New file.
9966 * guile/lib/gdb/types.scm: New file.
9967 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9968 (VPATH): Add $(GUILE_SRCDIR).
9969 (GUILE_DIR): New variable.
9970 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9971 (all): Add stamp-guile dependency.
9972 (stamp-guile): New rule.
9973 (clean-guile, install-guile, uninstall-guile): New rules.
9974 (install-only): Add install-guile dependency.
9975 (uninstall): Add uninstall-guile dependency.
9976 (clean): Add clean-guile dependency.
9978 2014-02-09 Doug Evans <xdje42@gmail.com>
9980 Revert this patch (which I approved, mea culpa).
9982 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9984 * Makefile.in (all-lib): Remove.
9985 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9987 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9989 Fix Python stack corruption.
9990 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9993 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9995 * Makefile.in (all-lib): Remove.
9996 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9998 2014-02-07 Doug Evans <dje@google.com>
10000 * extension-priv.h (extension_language_script_ops): Add comment.
10001 (extension_language_ops): Add comment.
10002 (active_ext_lang_state): Fix typo in comment.
10004 2014-02-07 Pedro Alves <palves@redhat.com>
10006 PR breakpoints/16292
10007 * infrun.c (handle_signal_stop) <signal arrives while stepping
10008 over a breakpoint>: Switch back to the stepping thread.
10010 2014-02-07 Yao Qi <yao@codesourcery.com>
10012 * target.c (target_xfer_partial): Return zero if LEN is zero.
10014 2014-02-07 Yao Qi <yao@codesourcery.com>
10016 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10017 (ld_so_xfer_auxv): Likewise.
10018 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10019 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10020 * corelow.c (core_xfer_partial): Likewise.
10021 * ctf.c (ctf_xfer_partial): Likewise.
10022 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10023 (darwin_xfer_partial): Likewise.
10024 * exec.c (exec_xfer_partial): Likewise.
10025 * gnu-nat.c (gnu_xfer_partial): Likewise.
10026 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10027 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10028 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10029 * linux-nat.c (linux_xfer_siginfo): Likewise.
10030 (linux_proc_xfer_spu): Likewise.
10031 * procfs.c (procfs_xfer_partial): Likewise.
10032 * record-full.c (record_full_xfer_partial): Likewise.
10033 (record_full_core_xfer_partial): Likewise.
10034 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10035 * remote.c (remote_write_qxfer): Likewise.
10036 (remote_write_qxfer, remote_read_qxfer): Likewise.
10037 (remote_xfer_partial): Likewise.
10038 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10039 (rs6000_xfer_shared_libraries): Likewise.
10040 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10041 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10042 (spu_xfer_partial): Likewise.
10043 * target.c (memory_xfer_partial_1): Likewise.
10044 * tracepoint.c (tfile_xfer_partial): Likewise.
10045 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10046 (windows_xfer_partial): Likewise.
10048 2014-02-07 Yao Qi <yao@codesourcery.com>
10050 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10052 (core_xfer_shared_libraries_aix): Likewise.
10053 * gdbarch.c, gdbarch.h: Regenerated.
10054 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10055 ULONGEST. Change 'len_avail' type to ULONGEST.
10056 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10057 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10059 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10061 2014-02-07 Yao Qi <yao@codesourcery.com>
10063 * corefile.c (memory_error): Get 'exception' from ERR and pass
10064 'exception' to throw_error.
10066 2014-02-06 Doug Evans <xdje42@gmail.com>
10068 * configure.ac (libpython checking): Remove all but python.o from
10069 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10070 * configure: Regenerate.
10072 * Makefile.in (SFILES): Add extension.c.
10073 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10074 (COMMON_OBS): Add extension.o.
10075 * extension.h: New file.
10076 * extension-priv.h: New file.
10077 * extension.c: New file.
10079 * python/python-internal.h: #include "extension.h".
10080 (gdbpy_auto_load_enabled): Declare.
10081 (gdbpy_apply_val_pretty_printer): Declare.
10082 (gdbpy_apply_frame_filter): Declare.
10083 (gdbpy_preserve_values): Declare.
10084 (gdbpy_breakpoint_cond_says_stop): Declare.
10085 (gdbpy_breakpoint_has_cond): Declare.
10086 (void source_python_script_for_objfile): Delete.
10087 * python/python.c: #include "extension-priv.h".
10088 Delete inclusion of "observer.h".
10089 (extension_language_python): Moved here and renamed from
10090 script_language_python in py-auto-load.c.
10091 Redefined to be of type extension_language_defn.
10092 (python_extension_script_ops): New global.
10093 (python_extension_ops): New global.
10094 (struct python_env): New member previous_active.
10095 (restore_python_env): Call restore_active_ext_lang.
10096 (ensure_python_env): Call set_active_ext_lang.
10097 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10099 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10101 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10103 (gdbpy_eval_from_control_command): Renamed from
10104 eval_python_from_control_command, made static. New arg extlang.
10105 (gdbpy_source_script) Renamed from source_python_script, made static.
10107 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10108 result to int. New arg extlang.
10109 (gdbpy_source_objfile_script): Renamed from
10110 source_python_script_for_objfile, made static. New arg extlang.
10111 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10112 static. New args extlang, extlang_printers. Change result type to
10114 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10115 static. New arg extlang. Rename arg printers to extlang_printers
10116 and change type to ext_lang_type_printers *.
10117 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10118 static. Replace argument arg with extlang, extlang_printers.
10119 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10120 (!HAVE_PYTHON, source_python_script): Delete.
10121 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10122 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10123 (!HAVE_PYTHON, start_type_printers): Delete.
10124 (!HAVE_PYTHON, apply_type_printers): Delete.
10125 (!HAVE_PYTHON, free_type_printers): Delete.
10126 (_initialize_python): Delete call to observer_attach_before_prompt.
10127 (finalize_python): Set/restore active extension language.
10128 (gdbpy_finish_initialization) Renamed from
10129 finish_python_initialization, made static. New arg extlang.
10130 (gdbpy_initialized): New function.
10131 * python/python.h: #include "extension.h". Delete #include
10132 "value.h", "mi/mi-cmds.h".
10133 (extension_language_python): Declare.
10134 (GDBPY_AUTO_FILE_NAME): Delete.
10135 (enum py_bt_status): Moved to extension.h and renamed to
10136 ext_lang_bt_status.
10137 (enum frame_filter_flags): Moved to extension.h.
10138 (enum py_frame_args): Moved to extension.h and renamed to
10139 ext_lang_frame_args.
10140 (finish_python_initialization): Delete.
10141 (eval_python_from_control_command): Delete.
10142 (source_python_script): Delete.
10143 (apply_val_pretty_printer): Delete.
10144 (apply_frame_filter): Delete.
10145 (preserve_python_values): Delete.
10146 (gdbpy_script_language_defn): Delete.
10147 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10148 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10150 * auto-load.c: #include "extension.h".
10151 (GDB_AUTO_FILE_NAME): Delete.
10152 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10153 (script_language_gdb): Delete, moved to extension.c and renamed to
10154 extension_language_gdb.
10155 (source_gdb_script_for_objfile): Delete.
10156 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10157 (loaded_script): Change type of language member to
10158 struct extension_language_defn *.
10159 (init_loaded_scripts_info): Initialize
10160 unsupported_script_warning_printed.
10161 (maybe_add_script): Make static. Change type of language arg to
10162 struct extension_language_defn *.
10163 (clear_section_scripts): Reset unsupported_script_warning_printed.
10164 (auto_load_objfile_script_1): Rewrite to use extension language API.
10165 (auto_load_objfile_script): Make public. Remove support-compiled-in
10166 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10167 (source_section_scripts): Rewrite to use extension language API.
10168 (load_auto_scripts_for_objfile): Rewrite to use
10169 auto_load_scripts_for_objfile.
10170 (collect_matching_scripts_data): Change type of language member to
10171 struct extension_language_defn *.
10172 (auto_load_info_scripts): Change type of language arg to
10173 struct extension_language_defn *.
10174 (unsupported_script_warning_print): New function.
10175 (script_not_found_warning_print): Make static.
10176 (_initialize_auto_load): Rewrite construction of scripts-directory
10178 * auto-load.h (struct objfile): Add forward decl.
10179 (struct script_language): Delete.
10180 (struct auto_load_pspace_info): Add forward decl.
10181 (struct extension_language_defn): Add forward decl.
10182 (maybe_add_script): Delete.
10183 (auto_load_objfile_script): Declare.
10184 (script_not_found_warning_print): Delete.
10185 (auto_load_info_scripts): Update prototype.
10186 (auto_load_gdb_scripts_enabled): Declare.
10187 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10188 auto_load_python_scripts_enabled and made public.
10189 (script_language_python): Delete, moved to python.c.
10190 (gdbpy_script_language_defn): Delete.
10191 (info_auto_load_python_scripts): Update to use
10192 extension_language_python.
10194 * breakpoint.c (condition_command): Replace call to
10195 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10196 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10197 with call to breakpoint_ext_lang_cond_says_stop.
10198 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10199 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10200 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10201 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10203 (local_setattro): Print name of extension language with existing
10206 * valprint.c (val_print, value_print): Update to call
10207 apply_ext_lang_val_pretty_printer.
10208 * cp-valprint.c (cp_print_value): Update call to
10209 apply_ext_lang_val_pretty_printer.
10210 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10211 (gdbpy_apply_val_pretty_printer): Renamed from
10212 apply_val_pretty_printer. New arg extlang.
10213 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10215 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10216 extension language API.
10217 * cli/cli-script.c (execute_control_command): Update to call
10218 eval_ext_lang_from_control_command.
10220 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10221 enum ext_lang_bt_status values. Update call to
10222 apply_ext_lang_frame_filter.
10223 (mi_cmd_stack_list_locals): Ditto.
10224 (mi_cmd_stack_list_args): Ditto.
10225 (mi_cmd_stack_list_variables): Ditto.
10226 * mi/mi-main.c: Delete #include "python/python-internal.h".
10227 Add #include "extension.h".
10228 (mi_cmd_list_features): Replace reference to python internal variable
10229 gdb_python_initialized with call to ext_lang_initialized_p.
10231 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10232 Update to use enum ext_lang_frame_args. Update to call
10233 apply_ext_lang_frame_filter.
10234 * python/py-framefilter.c (extract_sym): Update to use enum
10235 ext_lang_bt_status.
10236 (extract_value, py_print_type, py_print_value): Ditto.
10237 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10238 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10239 (py_print_frame): Ditto.
10240 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10241 New arg extlang. Update to use enum ext_lang_bt_status.
10243 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10244 finish_python_initialization. Replace with call to
10245 finish_ext_lang_initialization.
10247 * typeprint.c (do_free_global_table): Update to call
10248 free_ext_lang_type_printers.
10249 (create_global_typedef_table): Update to call
10250 start_ext_lang_type_printers.
10251 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10252 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10253 (type_print_options): Change type of global_printers from "void *"
10254 to "struct ext_lang_type_printers *".
10256 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10257 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10258 (gdbpy_preserve_values): Renamed from preserve_python_values.
10260 (!HAVE_PYTHON, preserve_python_values): Delete.
10262 * utils.c (quit_flag): Delete, moved to extension.c.
10263 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10266 * eval.c: Delete #include "python/python.h".
10267 * main.c: Delete #include "python/python.h".
10269 * defs.h: Update comment.
10271 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10275 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10277 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10280 2014-02-05 Yao Qi <yao@codesourcery.com>
10282 * remote.c (remote_pass_signals): Remove local 'buf' and use
10284 (remote_program_signals): Likewise.
10286 2014-02-05 Yao Qi <yao@codesourcery.com>
10288 * ctf.c: Include "inferior.h" and "gdbthread.h".
10289 (CTF_PID): A new macro.
10290 (ctf_open): Call inferior_appeared and add_thread_silent.
10291 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10292 (ctf_thread_alive): New function.
10293 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10295 2014-02-05 Yao Qi <yao@codesourcery.com>
10299 2013-05-24 Yao Qi <yao@codesourcery.com>
10301 * tracepoint.c (TFILE_PID): Remove.
10302 (tfile_open): Don't add thread and inferior.
10303 (tfile_close): Don't set 'inferior_ptid'. Don't call
10304 exit_inferior_silent.
10305 (tfile_thread_alive): Remove.
10306 (init_tfile_ops): Don't set field 'to_thread_alive' of
10309 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10311 * remote.c (remote_start_remote): Call remote_check_symbols even
10312 if only symbol-file (not file) has been given.
10314 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10316 * gdbarch.sh (skip_entrypoint): New callback.
10317 * gdbarch.c, gdbarch.h: Regenerate.
10318 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10319 * infrun.c (fill_in_stop_func): Likewise.
10320 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10321 (ppc_elfv2_elf_make_msymbol_special): New function.
10322 (ppc_elfv2_skip_entrypoint): Likewise.
10323 (ppc_linux_init_abi): Install them for ELFv2.
10325 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10327 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10328 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10329 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10330 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10331 structures returned in GPRs.
10333 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10335 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10336 offset to the stack parameter list for the ELFv2 ABI.
10338 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10340 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10341 set_gdbarch_convert_from_func_ptr_addr and
10342 set_gdbarch_elf_make_msymbol_special for ELFv1.
10343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10344 function descriptors on ELFv1.
10345 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10346 set up r12 at function entry.
10348 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10350 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10351 (struct gdbarch_tdep): New member elf_abi.
10353 * rs6000-tdep.c: Include "elf/ppc64.h".
10354 (rs6000_gdbarch_init): Detect ELF ABI version.
10356 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10358 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10359 within a register pair holding a DFP 128-bit value on little-endian.
10360 (ppc64_sysv_abi_return_value_base): Likewise.
10361 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10362 (dfp_pseudo_register_write): Likewise.
10364 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10366 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10367 offset on little-endian when passing _Decimal32.
10368 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10370 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10372 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10373 of the overlapped FP register within the VSX register on little-
10375 (efpr_pseudo_register_write): Likewise.
10377 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10380 offset on little-endian when passing small structures.
10382 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10384 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10385 (struct ppc64_sysv_argpos): New data structure.
10386 (ppc64_sysv_abi_push_float): Remove.
10387 (ppc64_sysv_abi_push_val): New function.
10388 (ppc64_sysv_abi_push_integer): Likewise.
10389 (ppc64_sysv_abi_push_freg): Likewise.
10390 (ppc64_sysv_abi_push_vreg): Likewise.
10391 (ppc64_sysv_abi_push_param): Likewise.
10392 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10393 (ppc64_sysv_abi_return_value_base): New function.
10394 (ppc64_sysv_abi_return_value): Refactor to use it.
10396 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10398 * NEWS: Document new target powerpc64le-*-linux*.
10400 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10402 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10403 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10405 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10406 register set used in ELF core dumps. Add floating-point register set.
10408 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10410 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10411 dwarf2_to_gdb[] table using symbolic constants. Adjust
10412 penultimate entry from number representing the PC register
10413 to symbolic constant representing the MDR register. Add
10414 constant for the PC register to the end of the table.
10416 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10418 * bsd-kvm.c: Include <sys/param.h>
10420 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10422 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10424 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10426 * ada-lang.h (clear_ada_sym_cache): Delete.
10428 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10430 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10432 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10434 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10435 the sigreturn register save area only if the syscall is
10438 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10440 * valops.c (value_slice): Minor reformatting.
10442 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10444 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10446 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10448 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10449 New static globals.
10450 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10451 (ada_ignore_descriptive_types_p): New static global.
10452 (find_parallel_type_by_descriptive_type): Return immediately
10453 if ada_ignore_descriptive_types_p is set.
10454 (_initialize_ada_language): Register new commands "maintenance
10455 set ada", "maintenance show ada", "maintenance set ada
10456 ignore-descriptive-types" and "maintenance show ada
10457 ignore-descriptive-types".
10458 * NEWS: Add entry for new "maint ada set/show
10459 ignore-descriptive-types" commands.
10461 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10463 * record-btrace.c (record_btrace_close): Call btrace_teardown
10466 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10468 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10471 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10473 * ada-typeprint (type_is_full_subrange_of_target_type):
10475 (print_range): Add parameter bounds_prefered_p. If not set,
10476 try printing range types using the name of their base type.
10477 (print_range_type): Add parameter bounds_prefered_p.
10478 Use it in call to print_range.
10479 (print_array_type, ada_print_type): Update calls to print_range
10480 and print_range_type.
10482 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10484 * ada-typeprint.c (print_array_type, print_choices, print_range)
10485 (print_range_bound, print_dynamic_range_bound, print_range_type):
10486 Remove declaration.
10488 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10490 * ada-typeprint.c (print_range): Add missing empty line
10491 after local declaration.
10493 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10495 * ada-valprint.c (print_optional_low_bound): Get index_type's
10496 target type for as long as it is a TYPE_CODE_RANGE.
10498 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10500 * procfs.c (procfs_make_note_section): Remove assertion and
10501 associated comment.
10503 2014-01-24 Yao Qi <yao@codesourcery.com>
10505 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10506 * corelow.c (get_core_siginfo): Likewise.
10508 2014-01-24 Yao Qi <yao@codesourcery.com>
10510 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10511 ULONGEST. Don't check 'len' is negative.
10512 (remote_write_bytes): Change type of 'len' to ULONGEST.
10514 2014-01-23 Tom Tromey <tromey@redhat.com>
10517 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10518 Handle exception from frame.block.
10519 (FrameVars.fetch_frame_locals): Likewise.
10521 2014-01-23 Tom Tromey <tromey@redhat.com>
10524 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10525 on a NULL pointer. Move "goto error" to correct place.
10527 2014-01-23 Tom Tromey <tromey@redhat.com>
10530 * python/py-framefilter.c (apply_frame_filter): Call
10531 ensure_python_env after computing gdbarch.
10533 2014-01-23 Yao Qi <yao@codesourcery.com>
10535 * target.c (raw_memory_xfer_partial): Change argument type
10536 from void * to gdb_byte *.
10537 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10539 2014-01-22 Doug Evans <dje@google.com>
10541 New gdbserver option --debug-format=timestamp.
10542 * NEWS: Mention it.
10544 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10546 * syscalls/s390x-linux.xml: New file.
10547 * syscalls/s390-linux.xml: New file.
10548 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10549 (XML_SYSCALL_FILENAME_S390X): Likewise.
10550 (op_svc): New enum value for SVC opcode.
10551 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10552 (s390_linux_get_syscall_number): New function.
10553 (s390_gdbarch_init): Register '*get_syscall_number' and the
10554 syscall xml file name.
10555 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10556 "s390-linux.xml" and "s390x-linux.xml".
10557 * NEWS: Announce new feature.
10559 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10561 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10563 2014-01-22 Pedro Alves <palves@redhat.com>
10565 * xtensa-config.c: Include defs.h.
10567 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10569 * common/common-utils.h: Add "ARI:" comment beside __func__
10572 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10574 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10575 documentation a bit.
10577 2014-01-21 Roland McGrath <mcgrathr@google.com>
10579 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10580 * configure: Regenerate.
10581 * aclocal.m4: Regenerate.
10582 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10583 New substituted variables.
10584 (install-strip): New target.
10585 (INSTALL_SCRIPT): New substituted variable.
10586 (FLAGS_TO_PASS): Add it.
10587 (install-only): Use $(INSTALL_SCRIPT) rather than
10588 $(INSTALL_PROGRAM) for gcore.
10590 2014-01-20 Tom Tromey <tromey@redhat.com>
10592 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10595 2014-01-20 Tom Tromey <tromey@redhat.com>
10597 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10598 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10599 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10600 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10601 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10602 (struct cmd_list_element) <flags>: Remove.
10603 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10604 doc_allocated>: New fields.
10605 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10607 * maint.c (maintenance_do_deprecate): Update.
10608 * top.c (execute_command): Update.
10610 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10612 * xtensa-linux-nat.c: Include asm/ptrace.h.
10614 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10616 * Makefile.in (SFILES): Add d-support.c.
10617 (COMMON_OBS): Add d-support.o.
10618 * d-lang.h (d_parse_symbol): Add comment, now defined in
10620 * d-lang.c (parse_call_convention)
10621 (parse_attributes, parse_function_types)
10622 (parse_function_args, parse_type, parse_identifier)
10623 (call_convention_p, d_parse_symbol): Move functions to ...
10624 * d-support.c: ... New file.
10626 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10628 * d-lang.h (d_parse_symbol): Add declaration.
10629 * d-lang.c (extract_identifiers)
10630 (extract_type_info): Remove functions.
10631 (parse_call_convention, parse_attributes)
10632 (parse_function_types, parse_function_args)
10633 (parse_type, parse_identifier, call_convention_p)
10634 (d_parse_symbol): New functions.
10635 (d_demangle): Use d_parse_symbol to demangle D symbols.
10637 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10639 * d-lang.h (struct builtin_d_type): New data type.
10640 (builtin_d_type): Add declaration.
10641 * d-lang.c (d_language_arch_info, build_d_types)
10642 (builtin_d_type): New functions.
10643 (enum d_primitive_types): New data type.
10644 (d_language_defn): Change c_language_arch_info to
10645 d_language_arch_info.
10646 (d_type_data): New static variable.
10647 (_initialize_d_language): Initialize d_type_data.
10649 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10651 * d-lang.h (d_main_name): Add declaration.
10652 * d-lang.c (d_main_name): New function.
10653 * symtab.c (find_main_name): Add call to d_main_name.
10655 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10657 * d-lang.c (d_language_defn): Change macro_expansion_c to
10658 macro_expansion_no.
10660 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10662 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10664 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10666 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10667 gdb_exception" declaration.
10668 * remote.c (getpkt_or_notif_sane): Likewise.
10670 2014-01-17 Doug Evans <dje@google.com>
10672 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10673 function, contents of dirnames_to_char_ptr_vec_append moved here.
10674 (delim_string_to_char_ptr_vec): New function.
10675 (dirnames_to_char_ptr_vec_append): Rewrite.
10676 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10678 2014-01-17 Doug Evans <dje@google.com>
10680 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10682 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10683 #include "common-utils.h".
10684 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10685 * common/vec.h (VEC_ASSERT_PASS): Update.
10686 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10687 (MACH_CHECK_ERROR): Update.
10689 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10691 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10693 * gdbarch.h: Regenerate.
10695 2014-01-16 Tom Tromey <tromey@redhat.com>
10697 * value.c (struct value) <regnum>: Move earlier.
10699 2014-01-16 Tom Tromey <tromey@redhat.com>
10701 * remote.c (extended_remote_create_inferior): Rename from
10702 extended_remote_create_inferior_1. Add "ops" argument. Remove
10703 old implementation.
10705 2014-01-16 Pedro Alves <palves@redhat.com>
10707 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10708 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10711 2014-01-16 Doug Evans <dje@google.com>
10713 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10717 * btrace.h (btrace_thread_flag): New.
10718 (struct btrace_thread_info) <flags>: New.
10719 * record-btrace.c (record_btrace_resume_thread)
10720 (record_btrace_find_thread_to_move, btrace_step_no_history)
10721 (btrace_step_stopped, record_btrace_start_replaying)
10722 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10723 (record_btrace_find_resume_thread): New.
10724 (record_btrace_resume, record_btrace_wait): Extend.
10725 (record_btrace_can_execute_reverse): New.
10726 (record_btrace_open): Fail in non-stop mode.
10727 (record_btrace_set_replay): Split into this, ...
10728 (record_btrace_stop_replaying): ... this, ...
10729 (record_btrace_clear_histories): ... and this.
10730 (init_record_btrace_ops): Init to_can_execute_reverse.
10731 * NEWS: Announce it.
10733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10735 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10736 (forward_target_decr_pc_after_break)
10737 (target_decr_pc_after_break): New.
10738 * target.c (forward_target_decr_pc_after_break)
10739 (target_decr_pc_after_break): New.
10740 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10741 instead of gdbarch_decr_pc_after_break.
10742 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10743 instead of gdbarch_decr_pc_after_break.
10744 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10745 instead of gdbarch_decr_pc_after_break.
10746 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10747 instead of gdbarch_decr_pc_after_break.
10748 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10749 instead of gdbarch_decr_pc_after_break.
10750 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10751 instead of gdbarch_decr_pc_after_break.
10753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10755 * btrace.c: Include regcache.h.
10756 (btrace_add_pc): New.
10757 (btrace_enable): Call btrace_add_pc.
10758 (btrace_is_empty): New.
10759 * btrace.h (btrace_is_empty): New.
10760 * record-btrace.c (require_btrace, record_btrace_info): Call
10763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10765 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10766 Support delta reads.
10767 (linux_disable_btrace): Change return type.
10768 * common/linux-btrace.h (linux_read_btrace): Change parameters
10769 and return type to allow error reporting. Update users.
10770 (linux_disable_btrace): Change return type. Update users.
10771 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10773 (btrace_error): New.
10774 (btrace_block) <begin>: Comment on BEGIN == 0.
10775 * btrace.c (btrace_compute_ftrace): Start from the end of
10777 (btrace_stitch_trace, btrace_clear_history): New.
10778 (btrace_fetch): Read delta trace, return if replaying.
10779 (btrace_clear): Move clear history code to btrace_clear_history.
10780 (parse_xml_btrace): Throw an error if parsing failed.
10781 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10782 and return type to allow error reporting.
10783 (target_read_btrace): Change parameters and return type to allow
10785 * target.c (target_read_btrace): Update.
10786 * remote.c (remote_read_btrace): Support delta reads. Pass
10788 * NEWS: Announce it.
10790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10792 * record.h (record_btrace_frame_unwind)
10793 (record_btrace_tailcall_frame_unwind): New declarations.
10794 * dwarf2-frame: Include record.h
10795 (dwarf2_frame_cfa): Throw an error for btrace frames.
10796 * record-btrace.c: Include hashtab.h.
10797 (btrace_get_bfun_name): New.
10798 (btrace_call_history): Call btrace_get_bfun_name.
10799 (struct btrace_frame_cache): New.
10801 (bfcache_hash, bfcache_eq, bfcache_new): New.
10802 (btrace_get_frame_function): New.
10803 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10804 (record_btrace_frame_this_id): Compute own id.
10805 (record_btrace_frame_prev_register): Provide PC, throw_error
10806 for all other registers.
10807 (record_btrace_frame_sniffer): Detect btrace frames.
10808 (record_btrace_tailcall_frame_sniffer): New.
10809 (record_btrace_frame_dealloc_cache): New.
10810 (record_btrace_frame_unwind): Add new functions.
10811 (record_btrace_tailcall_frame_unwind): New.
10812 (_initialize_record_btrace): Allocate cache.
10813 * btrace.c (btrace_clear): Call reinit_frame_cache.
10814 * NEWS: Announce it.
10816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10818 * record-btrace.c (record_btrace_set_replay)
10819 (record_btrace_goto_begin, record_btrace_goto_end)
10820 (record_btrace_goto): New.
10821 (init_record_btrace_ops): Initialize them.
10822 * NEWS: Announce it.
10824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10826 * record-btrace.c (record_btrace_find_new_threads)
10827 (record_btrace_thread_alive): New.
10828 (init_record_btrace_ops): Initialize to_find_new_threads and
10831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10833 * record-btrace.c (record_btrace_resume): New.
10834 (record_btrace_wait): New.
10835 (init_record_btrace_ops): Initialize to_wait and to_resume.
10837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10839 * record-btrace.c (record_btrace_xfer_partial)
10840 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10841 (record_btrace_allow_memory_access): New.
10842 (init_record_btrace_ops): Initialize new methods.
10843 * target.c (raw_memory_xfer_partial): Bail out if target reports
10844 that this memory is not available.
10846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10848 * target.h (target_ops) <to_insert_breakpoint>
10849 <to_remove_breakpoint>: Add target_ops parameter.
10850 (forward_target_insert_breakpoint): New.
10851 (forward_target_remove_breakpoint): New.
10852 (memory_remove_breakpoint, memory_insert_breakpoint):
10853 Add target_ops parameter.
10854 * target.c (target_insert_breakpoint): Split into this and ...
10855 (forward_target_insert_breakpoint): ... this.
10856 (target_remove_breakpoint): Split into this and ...
10857 (forward_target_remove_breakpoint): ... this.
10858 (debug_to_insert_breakpoint): Add target_ops parameter.
10859 Call forward_target_insert_breakpoint.
10860 (debug_to_remove_breakpoint): Add target_ops parameter.
10861 Call forward_target_remove_breakpoint.
10862 (update_current_target): Do not inherit or default to_insert_breakpoint
10863 and to_remove_breakpoint.
10864 * corelow.c (ignore): Add target_ops parameter.
10865 * exec.c (ignore): Add target_ops parameter.
10866 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10867 Add target_ops parameter.
10868 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10869 Add target_ops parameter.
10870 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10871 Add target_ops parameter.
10872 * record-full.c (record_full_beneath_to_insert_breakpoint)
10873 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10874 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10875 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10876 (record_full_core_remove_breakpoint): Add target_ops parameter.
10878 (record_full_beneath_to_insert_breakpoint_ops)
10879 (record_full_beneath_to_remove_breakpoint_ops)
10880 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10881 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10882 tmp_to_remove_breakpoint_ops,
10883 record_full_beneath_to_insert_breakpoint_ops, and
10884 record_full_beneath_to_remove_breakpoint_ops.
10885 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10886 (m32r_remove_breakpoint): Add target_ops parameter.
10887 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10888 Add target_ops parameter.
10889 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10890 Add target_ops parameter.
10892 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10893 Markus Metzger <markus.t.metzger@intel.com>
10895 * record-btrace.c: Include frame-unwind.h.
10896 (record_btrace_frame_unwind_stop_reason)
10897 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10898 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10900 (init_record_btrace_ops): Install it.
10902 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10904 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10907 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10909 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10912 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10914 * frame-unwind.c: Include target.h.
10915 (frame_unwind_try_unwinder): New function with code from ...
10916 (frame_unwind_find_by_frame): ... here. New variable
10917 unwinder_from_target, call also target_get_unwinder)
10918 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10919 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10920 * target.h (struct target_ops): New fields to_get_unwinder and
10921 to_get_tailcall_unwinder.
10922 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10926 * record-btrace.c (record_btrace_fetch_registers)
10927 (record_btrace_store_registers)
10928 (record_btrace_to_prepare_to_store): New.
10929 (init_record_btrace_ops): Add the above.
10931 2014-01-16 Tom Tromey <tromey@redhat.com>
10933 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10934 * target.h (struct target_ops) <to_prepare_to_store>: Add
10936 (target_prepare_to_store): Add argument.
10937 * target.c (debug_to_prepare_to_store): Add argument.
10938 (update_current_target): Update.
10939 * remote.c (remote_prepare_to_store): Add 'self' argument.
10940 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10941 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10942 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10943 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10945 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10946 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10947 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10948 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10949 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10953 * btrace.h (replay) <replay>: New.
10954 (btrace_is_replaying): New.
10955 * btrace.c (btrace_clear): Free replay iterator.
10956 (btrace_is_replaying): New.
10957 * record-btrace.c (record_btrace_is_replaying): New.
10958 (record_btrace_info): Print insn number if replaying.
10959 (record_btrace_insn_history): Start at replay position.
10960 (record_btrace_call_history): Start at replay position.
10961 (init_record_btrace_ops): Init to_record_is_replaying.
10963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10965 * record-btrace.c (record_btrace_insn_history_range): Include
10967 (record_btrace_insn_history_from): Adjust range.
10968 (record_btrace_call_history_range): Include
10970 (record_btrace_call_history_from): Adjust range.
10971 * NEWS: Announce changes.
10973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10975 * record.h (enum record_print_flag)
10976 <record_print_indent_calls>: New.
10977 * record.c (get_call_history_modifiers): Recognize /c modifier.
10978 (_initialize_record): Document /c modifier.
10979 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10980 Reorder fields. Optionally indent the function name. Update
10982 * NEWS: Announce changes.
10984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10986 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10990 * btrace.c (ftrace_new_function): Start counting at one.
10991 * record-btrace.c (record_btrace_info): Adjust number of calls
10993 * NEWS: Announce it.
10995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10997 * record-btrace.c (btrace_call_history_insn_range): Print
10998 insn range as [begin, end].
11000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11002 * btrace.h (struct btrace_func_link): New.
11003 (enum btrace_function_flag): New.
11004 (struct btrace_inst): Rename to ...
11005 (struct btrace_insn): ...this. Update all users.
11006 (struct btrace_func) <ibegin, iend>: Remove.
11007 (struct btrace_func_link): New.
11008 (struct btrace_func): Rename to ...
11009 (struct btrace_function): ...this. Update all users.
11010 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11011 (number, level, flags>: New.
11012 (struct btrace_insn_iterator): Rename to ...
11013 (struct btrace_insn_history): ...this.
11015 (struct btrace_insn_iterator, btrace_call_iterator): New.
11016 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11017 (struct btrace_target_info) <begin, end, level>
11018 <insn_history, call_history>: New.
11019 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11020 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11021 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11022 (btrace_call_number, btrace_call_begin, btrace_call_end)
11023 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11024 (btrace_find_function_by_number, btrace_set_insn_history)
11025 (btrace_set_call_history): New.
11026 * btrace.c (btrace_init_insn_iterator)
11027 (btrace_init_func_iterator, compute_itrace): Remove.
11028 (ftrace_print_function_name, ftrace_print_filename)
11029 (ftrace_skip_file): Change
11030 parameter to const.
11031 (ftrace_init_func): Remove.
11032 (ftrace_debug): Use new btrace_function fields.
11033 (ftrace_function_switched): Also consider gaining and
11034 losing symbol information).
11035 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11036 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11037 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11039 (ftrace_new_function): Move. Remove debug print.
11040 (ftrace_update_lines, ftrace_update_insns): New.
11041 (ftrace_update_function): Check for call, ret, and jump.
11042 (compute_ftrace): Renamed to ...
11043 (btrace_compute_ftrace): ...this. Rewritten to compute call
11045 (btrace_fetch, btrace_clear): Updated.
11046 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11047 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11048 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11049 (btrace_call_number, btrace_call_begin, btrace_call_end)
11050 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11051 (btrace_find_function_by_number, btrace_set_insn_history)
11052 (btrace_set_call_history): New.
11053 * record-btrace.c (require_btrace): Use new btrace thread
11055 (record_btrace_info, btrace_insn_history)
11056 (record_btrace_insn_history, record_btrace_insn_history_range):
11057 Use new btrace thread info fields and new iterator.
11058 (btrace_func_history_src_line): Rename to ...
11059 (btrace_call_history_src_line): ...this. Use new btrace
11060 thread info fields.
11061 (btrace_func_history): Rename to ...
11062 (btrace_call_history): ...this. Use new btrace thread info
11063 fields and new iterator.
11064 (record_btrace_call_history, record_btrace_call_history_range):
11065 Use new btrace thread info fields and new iterator.
11067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11069 * frame.h (frame_id_build_unavailable_stack_special): New.
11070 * frame.c (frame_id_build_unavailable_stack_special): New.
11072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11074 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11075 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11076 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11078 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11079 (i386_insn_is_jump, i386_jmp_p): New.
11080 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11081 insn_is_jump to gdbarch.
11082 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11083 * gdbarch.h: Regenerated.
11084 * gdbarch.c: Regenerated.
11085 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11086 (default_insn_is_jump): New.
11087 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11088 (default_insn_is_jump): New.
11090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11092 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11094 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11095 (btrace_read_type) <btrace_read_new>: Change to ...
11096 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11100 * common/linux-btrace.c (linux_read_btrace): Free trace from
11101 previous iteration.
11103 2014-01-15 Doug Evans <dje@google.com>
11105 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11108 2014-01-15 Tom Tromey <tromey@redhat.com>
11110 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11111 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11112 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11113 (set_objfile_main_name): New function.
11114 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11115 language_of_main>: New fields.
11116 (set_objfile_main_name): Declare.
11117 * symtab.c (find_main_name): Loop over objfiles to find the main
11119 (set_main_name): Now static.
11120 (get_main_info): Add comment.
11121 * symtab.h (set_main_name): Don't declare.
11123 2014-01-15 Tom Tromey <tromey@redhat.com>
11125 * symtab.c (main_progspace_key): New global.
11126 (struct main_info): New.
11127 (name_of_main, language_of_main): Remove.
11128 (get_main_info, main_info_cleanup): New function.
11129 (set_main_name, main_name, main_language): Use get_main_info.
11130 (_initialize_symtab): Initialize main_progspace_key.
11132 2014-01-15 Tom Tromey <tromey@redhat.com>
11134 * dbxread.c (process_one_symbol): Update.
11135 * dwarf2read.c (read_partial_die): Update.
11136 * symfile.c (set_initial_language): Call main_language.
11137 * symtab.c (language_of_main): Now static.
11138 (set_main_name): Add 'lang' parameter.
11139 (find_main_name): Update.
11140 (main_language): New function.
11141 (symtab_observer_executable_changed): Update.
11142 * symtab.h (set_main_name): Update.
11143 (language_of_main): Remove.
11144 (main_language): Declare.
11146 2014-01-15 Tom Tromey <tromey@redhat.com>
11148 * symfile.c (init_entry_point_info): Use new "initialized" field.
11150 * objfiles.h (struct entry_point) <initialized>: New field.
11151 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11152 (struct objfile) <ei>: ...here. Remove.
11153 * objfiles.c (entry_point_address_query): Update.
11155 2014-01-15 Tom Tromey <tromey@redhat.com>
11157 * objfiles.c (entry_point_address_query): Relocate entry point
11159 (objfile_relocate1): Do not relocate entry point address.
11160 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11161 <the_bfd_section_index>: New field.
11162 * symfile.c (init_entry_point_info): Find the entry point's
11165 2014-01-15 Tom Tromey <tromey@redhat.com>
11167 * solib-frv.c (enable_break): Use entry_point_address_query.
11169 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11171 * NEWS: Add note on improved process record-replay on
11172 arm*-linux* targets.
11174 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11176 * arm-tdep.c (enum arm_record_result): New enum.
11177 (arm_record_unsupported_insn): New function.
11178 (arm_record_coproc_data_proc): Removed.
11179 (thumb2_record_ld_st_multiple): New function.
11180 (thumb2_record_ld_st_dual_ex_tbb): New function.
11181 (thumb2_record_data_proc_sreg_mimm): New function.
11182 (thumb2_record_ps_dest_generic): New function.
11183 (thumb2_record_branch_misc_cntrl): New function.
11184 (thumb2_record_str_single_data): New function.
11185 (thumb2_record_ld_mem_hints): New function.
11186 (thumb2_record_ld_word): New function.
11187 (thumb2_record_lmul_lmla_div): New function.
11188 (thumb2_record_decode_insn_handler): New function.
11189 (decode_insn): Add thumb32 instruction handlers.
11191 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11193 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11194 (struct arm_linux_record_tdep): Declare.
11195 (arm_canonicalize_syscall): New function.
11196 (arm_all_but_pc_registers_record): New function.
11197 (arm_linux_syscall_record): New function.
11198 (arm_linux_init_abi): Add syscall recording constructs.
11199 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11200 decoding. (arm_record_coproc_data_proc): Update arm syscall
11202 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11203 <arm_syscall_record>: New field.
11204 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11207 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11209 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11210 register for push instruction recording.
11212 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11214 * arm-tdep.c (thumb_record_misc): Update to correct logical
11215 error while recording ldm, ldmia and pop instructions.
11217 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11219 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11221 2014-01-15 Pedro Alves <palves@redhat.com>
11223 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11224 (go32_resume, go32_fetch_registers, store_register)
11225 (go32_store_registers, go32_prepare_to_store)
11226 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11227 (go32_create_inferior, go32_can_run, go32_terminal_init)
11228 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11231 2014-01-15 Tom Tromey <tromey@redhat.com>
11233 * target.h (async_callback_ftype): New typedef.
11234 (struct target_ops) <to_async>: Use it.
11236 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11238 * python/py-value.c (get_field_type): Remove unnecessary curly
11239 braces for single-statement if block.
11241 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11243 * python/py-type.c (convert_field): Add missing empty line
11244 after declarations.
11246 2014-01-14 Doug Evans <dje@google.com>
11248 * symfile.h (expand_symtabs_matching): Renamed from
11249 expand_partial_symbol_names. Update prototype.
11250 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11251 * symfile.c (expand_symtabs_matching): Renamed from
11252 expand_partial_symbol_names. New args file_matcher, kind.
11253 Rename arg fun to symbol_matcher.
11254 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11255 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11256 ada_expand_partial_symbol_name.
11257 (ada_make_symbol_completion_list): Update to call
11258 expand_symtabs_matching.
11259 (ada_add_global_exceptions): Call expand_symtabs_matching.
11260 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11261 call map_symbol_filenames.
11262 * symtab.c (sources_info): Update to call map_symbol_filenames.
11263 (search_symbols): Call expand_symtabs_matching.
11264 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11265 (default_make_symbol_completion_list_break_on): Update to call
11266 expand_symtabs_matching.
11267 (make_source_files_completion_list): Update to call
11268 map_symbol_filenames.
11270 2014-01-14 Doug Evans <dje@google.com>
11272 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11273 (expand_symtabs_symbol_matcher_ftype): New typedef.
11274 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11275 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11276 * symfile.c (expand_partial_symbol_names): Update to use
11277 expand_symtabs_symbol_matcher_ftype.
11278 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11279 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11280 Arg name_matcher renamed to symbol_matcher.
11281 * psymtab.c (recursively_search_psymtabs): Update to use
11282 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11284 (expand_symtabs_matching_via_partial): Update to use
11285 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11286 Arg name_matcher renamed to symbol_matcher.
11288 2014-01-14 Doug Evans <dje@google.com>
11290 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11291 (map_partial_symbol_filenames): Ditto.
11292 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11293 (map_partial_symbol_filenames): Ditto.
11294 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11295 (map_partial_symbol_filenames): Ditto.
11296 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11297 (map_partial_symbol_filenames): Ditto.
11298 * symtab.c: Delete #include "psymtab.h".
11300 2014-01-14 Pedro Alves <palves@redhat.com>
11301 Tom Tromey <tromey@redhat.com>
11303 * infrun.c (use_displaced_stepping): Use find_record_target
11304 instead of RECORD_IS_USED.
11305 (adjust_pc_after_break): Use record_full_is_used instead of
11307 * record-btrace.c (record_btrace_open): Call record_preopen
11308 instead of checking RECORD_IS_USED.
11309 * record-full.c (record_full_shortname)
11310 (record_full_core_shortname): New globals.
11311 (record_full_is_used): New function.
11312 (find_full_open): Call record_preopen instead of checking
11314 (init_record_full_ops): Set the target's shortname to
11315 record_full_shortname.
11316 (init_record_full_core_ops): Set the target's shortname to
11317 record_full_core_shortname.
11318 * record-full.h (record_full_is_used): Declare.
11319 * record.c (find_record_target): Make extern.
11320 (record_preopen): New function.
11321 * record.h (RECORD_IS_USED): Delete macro.
11322 (find_record_target, record_preopen): Declare functions.
11324 2014-01-14 Yao Qi <yao@codesourcery.com>
11326 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11327 'len''s type to ULONGEST.
11328 (core_xfer_shared_libraries_aix): Likewise.
11329 * gdbarch.c, gdbarch.h: Regenerated.
11330 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11331 Change type of 'len' to ULONGEST.
11332 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11333 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11335 2014-01-14 Yao Qi <yao@codesourcery.com>
11337 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11338 type of 'len' to ULONGEST.
11339 (linux_xfer_osdata_processgroups): Likewise.
11340 (linux_xfer_osdata_threads): Likewise.
11341 (linux_xfer_osdata_fds): Likewise.
11342 (linux_xfer_osdata_isockets): Likewise.
11343 (linux_xfer_osdata_shm): Likewise.
11344 (linux_xfer_osdata_sem): Likewise.
11345 (linux_xfer_osdata_msg): Likewise.
11346 (linux_common_xfer_osdata): Likewise.
11347 (struct osdata_type) <getter>: Likewise.
11348 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11351 2014-01-14 Yao Qi <yao@codesourcery.com>
11353 * target.h (target_xfer_partial_ftype): Update.
11354 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11356 * aix-thread.c (aix_thread_xfer_partial): Change type of
11357 argument 'len' to ULONGEST.
11358 * auxv.c (procfs_xfer_auxv): Likewise.
11359 (ld_so_xfer_auxv): Likewise.
11360 (memory_xfer_auxv): Likewise.
11361 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11362 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11363 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11364 * corelow.c (core_xfer_partial): Likewise.
11365 * ctf.c (ctf_xfer_partial): Likewise.
11366 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11368 (darwin_read_dyld_info): Likewise.
11369 (darwin_xfer_partial): Likewise.
11370 * exec.c (section_table_xfer_memory_partial): Likewise.
11371 (exec_xfer_partial): Likewise.
11372 * exec.h (section_table_xfer_memory_partial): Update
11374 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11375 instead of plongest.
11376 (gnu_xfer_partial): Likewise.
11377 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11378 (ia64_hpux_xfer_solib_got): Likewise.
11379 (ia64_hpux_xfer_partial): Likewise.
11380 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11381 * inf-ptrace.c (inf_ptrace_xfer_partial):
11382 * inf-ttrace.c (inf_ttrace_xfer_partial):
11383 * linux-nat.c (linux_xfer_siginfo): Likewise.
11384 (linux_nat_xfer_partial): Likewise.
11385 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11386 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11387 * monitor.c (monitor_xfer_memory): Likewise.
11388 (monitor_xfer_partial): Likewise.
11389 * procfs.c (procfs_xfer_partial): Likewise.
11390 * record-full.c (record_full_xfer_partial): Likewise.
11391 (record_full_core_xfer_partial): Likewise.
11392 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11393 instead of plongest.
11394 (gdbsim_xfer_partial): Likewise.
11395 * remote.c (remote_xfer_partial): Likewise.
11396 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11397 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11399 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11400 (rs6000_xfer_shared_libraries): Likewise.
11401 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11402 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11403 (sparc_xfer_partial): Likewise.
11404 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11405 (spu_xfer_partial): Likewise.
11406 * spu-multiarch.c (spu_xfer_partial): Likewise.
11407 * target.c (target_read_live_memory): Likewise.
11408 (memory_xfer_live_readonly_partial): Likewise.
11409 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11410 (target_xfer_partial, default_xfer_partial): Likewise.
11411 (current_xfer_partial): Likewise.
11412 * tracepoint.c (tfile_xfer_partial): Likewise.
11413 * windows-nat.c (windows_xfer_memory): Likewise. Call
11414 pulongest instead of plongest.
11415 (windows_xfer_partial): Likewise.
11416 (windows_xfer_shared_libraries): Likewise.
11418 2014-01-14 Yao Qi <yao@codesourcery.com>
11420 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11421 target_xfer_partial_ftype.
11423 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11427 * valops.c (value_struct_elt_bitpos): New function
11428 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11429 object to 'None' if the field name is an empty string ("").
11430 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11431 attribute to look for a field when 'name' is 'None'.
11432 (get_field_type): New function
11434 2014-01-13 Doug Evans <dje@google.com>
11437 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11438 (try_open_dwop_file): Ditto.
11439 * gdb_bfd.c: #include "vec.h".
11440 (bfdp): New typedef.
11441 (struct gdb_bfd_data): New member included_bfds.
11442 (gdb_bfd_unref): Unref all included bfds.
11443 (gdb_bfd_record_inclusion): New function.
11444 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11446 2014-01-13 Tom Tromey <tromey@redhat.com>
11448 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11450 2014-01-13 Tom Tromey <tromey@redhat.com>
11452 * defs.h (use_windows): Remove.
11453 * gdb.c (main): Update.
11454 * main.c (captured_main, gdb_main): Update.
11455 * main.h (struct captured_main_args) <use_windows>: Remove.
11456 * top.c (use_windows): Remove.
11458 2014-01-13 Tom Tromey <tromey@redhat.com>
11460 * defs.h (deprecated_flush_hook): Remove.
11462 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11465 * linux-thread-db.c (try_thread_db_load): Add parameter
11466 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11467 (try_thread_db_load_from_pdir_1): Move it there from here.
11468 (try_thread_db_load_from_sdir): Update caller.
11469 (try_thread_db_load_from_dir): Move it there from here.
11471 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11473 * regformats/regdat.sh: Always rewrite the register file.
11475 2014-01-13 Pedro Alves <palves@redhat.com>
11477 * Makefile.in (CHECK_HEADERS): New variable.
11478 (check-headers:): New rule.
11480 2014-01-13 Tom Tromey <tromey@redhat.com>
11482 * cli/cli-setshow.c (do_set_command): Update.
11483 * defs.h (deprecated_set_hook): Remove.
11484 * top.c (deprecated_set_hook): Remove.
11486 2014-01-13 Pedro Alves <palves@redhat.com>
11488 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11489 the tracepoint if the PC is a pseudo-register.
11491 2014-01-13 Tom Tromey <tromey@redhat.com>
11493 * defs.h (XCALLOC): Remove.
11494 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11495 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11496 * dwarf2loc.c (allocate_piece_closure): Likewise.
11497 * elfread.c (elf_symfile_segments): Likewise.
11498 (elf_symfile_segments): Likewise.
11499 * gdbtypes.c (copy_type_recursive): Likewise.
11500 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11501 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11502 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11504 * mt-tdep.c (mt_gdbarch_init): Likewise.
11505 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11507 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11508 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11509 * registry.c (registry_alloc_data): Likewise.
11510 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11511 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11512 * serial.c (serial_fdopen_ops): Likewise.
11513 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11515 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11516 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11519 2014-01-13 Tom Tromey <tromey@redhat.com>
11521 * defs.h (XMALLOC): Remove.
11522 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11523 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11524 * cli-out.c (struct ui_out *): Likewise.
11525 * cli/cli-dump.c (add_dump_command): Likewise.
11526 (add_dump_command): Likewise.
11527 * complaints.c (get_complaints): Likewise.
11528 (find_complaint): Likewise.
11529 * dwarf2-frame.c (execute_cfa_program): Likewise.
11530 * dwarf2read.c (abbrev_table_read_table): Likewise.
11531 * gdbarch.sh: Likewise.
11532 * gdbarch.c: Rebuild.
11533 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11534 * interps.c (interp_new): Likewise.
11535 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11536 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11537 * mi/mi-console.c (mi_console_file_new): Likewise.
11538 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11539 * mi/mi-out.c (mi_out_new): Likewise.
11540 * mi/mi-parse.c (mi_parse): Likewise.
11541 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11542 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11543 * observer.c (xalloc_observer_list_node): Likewise.
11544 * regcache.c (regcache_xmalloc_1): Likewise.
11545 * reggroups.c (reggroup_new): Likewise.
11546 (_initialize_reggroup): Likewise.
11547 * registry.c (register_data_with_cleanup): Likewise.
11548 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11549 * ser-base.c (serial_ttystate): Likewise.
11550 * ser-mingw.c (make_pipe_state): Likewise.
11551 * ser-pipe.c (pipe_open): Likewise.
11552 * serial.c (serial_open): Likewise.
11553 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11554 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11555 (tui_alloc_win_info): Likewise.
11556 (tui_add_content_elements): Likewise.
11557 * tui/tui-file.c (tui_file_new): Likewise.
11558 * tui/tui-out.c (tui_out_new): Likewise.
11559 * ui-file.c (mem_file_new): Likewise.
11560 * ui-out.c (push_level): Likewise.
11561 (make_cleanup_ui_out_end): Likewise.
11562 (append_header_to_list): Likewise.
11563 (ui_out_new): Likewise.
11564 * user-regs.c (user_reg_add_builtin): Likewise.
11566 2014-01-13 Tom Tromey <tromey@redhat.com>
11568 * defs.h (XZALLOC): Remove.
11569 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11570 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11571 (get_ada_tasks_inferior_data): Likewise.
11572 * auto-load.c (get_auto_load_pspace_data): Likewise.
11573 * auxv.c (get_auxv_inferior_data): Likewise.
11574 * bfd-target.c (target_bfd_reopen): Likewise.
11575 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11576 (deprecated_insert_raw_breakpoint): Likewise.
11577 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11578 * corelow.c (core_open): Likewise.
11579 * darwin-nat.c (darwin_check_new_threads): Likewise.
11580 (darwin_attach_pid): Likewise.
11581 * dummy-frame.c (dummy_frame_push): Likewise.
11582 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11583 * dwarf2loc.c (allocate_piece_closure): Likewise.
11584 * elfread.c (elf_symfile_segments): Likewise.
11585 * eval.c (ptrmath_type_p): Likewise.
11586 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11587 * gdbtypes.c (alloc_type_arch): Likewise.
11588 (alloc_type_instance): Likewise.
11589 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11590 * inf-child.c (inf_child_can_use_agent): Likewise.
11591 * inflow.c (get_inflow_inferior_data): Likewise.
11592 * infrun.c (save_infcall_suspend_state): Likewise.
11593 * jit.c (jit_reader_load): Likewise.
11594 (get_jit_objfile_data): Likewise.
11595 (get_jit_program_space_data): Likewise.
11596 (jit_object_open_impl): Likewise.
11597 (jit_symtab_open_impl): Likewise.
11598 (jit_block_open_impl): Likewise.
11599 (jit_frame_sniffer): Likewise.
11600 * linux-fork.c (add_fork): Likewise.
11601 * maint.c (make_command_stats_cleanup): Likewise.
11602 * objfiles.c (get_objfile_pspace_data): Likewise.
11603 * opencl-lang.c (struct lval_closure): Likewise.
11604 * osdata.c (osdata_start_osdata): Likewise.
11605 * progspace.c (new_address_space): Likewise.
11606 (add_program_space): Likewise.
11607 * remote-sim.c (get_sim_inferior_data): Likewise.
11608 * sh-tdep.c (sh_gdbarch_init): Likewise.
11609 * skip.c (Ignore): Likewise.
11610 (skip_delete_command): Likewise.
11611 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11612 (library_list_start_library): Likewise.
11613 (solib_aix_current_sos): Likewise.
11614 * solib-darwin.c (get_darwin_info): Likewise.
11615 (darwin_current_sos): Likewise.
11616 * solib-dsbt.c (get_dsbt_info): Likewise.
11617 * solib-ia64-hpux.c (new_so_list): Likewise.
11618 (ia64_hpux_get_solib_linkage_addr): Likewise.
11619 * solib-spu.c (append_ocl_sos): Likewise.
11620 (spu_current_sos): Likewise.
11621 * solib-svr4.c (get_svr4_info): Likewise.
11622 (svr4_keep_data_in_core): Likewise.
11623 (library_list_start_library): Likewise.
11624 (svr4_default_sos): Likewise.
11625 (svr4_read_so_list): Likewise.
11626 * solib-target.c (library_list_start_library): Likewise.
11627 (solib_target_current_sos): Likewise.
11628 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11629 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11630 * symfile.c (default_symfile_segments): Likewise.
11631 * target-descriptions.c (tdesc_data_init): Likewise.
11632 (tdesc_create_reg): Likewise.
11633 (struct tdesc_type *): Likewise.
11634 (tdesc_create_vector): Likewise.
11635 (tdesc_set_struct_size): Likewise.
11636 (struct tdesc_type *): Likewise.
11637 (tdesc_free_feature): Likewise.
11638 (tdesc_create_feature): Likewise.
11639 * windows-nat.c (windows_add_thread): Likewise.
11640 (windows_make_so): Likewise.
11641 * xml-support.c (gdb_xml_body_text): Likewise.
11642 (gdb_xml_create_parser_and_cleanup): Likewise.
11643 (xml_process_xincludes): Likewise.
11644 * xml-syscall.c (allocate_syscalls_info): Likewise.
11645 (syscall_create_syscall_desc): Likewise.
11647 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11649 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11650 function, with code from i386_stap_parse_special_token.
11651 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11652 (i386_stap_parse_special_token): Move code to the two functions
11653 above; simplify it.
11655 2014-01-09 Pedro Alves <palves@redhat.com>
11656 Hui Zhu <hui@codesourcery.com>
11659 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11660 bp_err_string. Don't mark the location shlib_disabled if the
11661 error thrown wasn't a generic or memory error. Catch errors
11662 thrown while inserting breakpoints in overlayed code. Output
11663 error message of software breakpoints.
11664 * remote.c (remote_insert_breakpoint): If this breakpoint has
11665 target-side commands but this stub doesn't support Z0 packets,
11666 throw NOT_SUPPORTED_ERROR error.
11667 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11668 * target.h (target_insert_breakpoint): Extend comment.
11669 (target_insert_hw_breakpoint): Add comment.
11671 2014-01-08 Pedro Alves <palves@redhat.com>
11673 * remote.c (remote_add_thread): Add threads silently if starting
11675 (remote_notice_new_inferior): If in all-stop, and starting up,
11676 don't call notice_new_inferior.
11677 (get_current_thread): New function, factored out from ...
11678 (add_current_inferior_and_thread): ... this. Adjust.
11679 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11680 found any thread, then select the remote's current thread as GDB's
11681 current thread too.
11683 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11685 * NEWS: Create a new section for the next release branch.
11686 Rename the section of the current branch, now that it has
11689 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11691 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11692 * version.in: Bump version to 7.7.50.DATE-cvs.
11694 2014-01-08 Yao Qi <yao@codesourcery.com>
11696 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11697 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11698 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11700 2014-01-08 Yao Qi <yao@codesourcery.com>
11702 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11703 return value of bfd_get_filename to symbol_file_add_from_bfd.
11705 2014-01-08 Pierre Muller <muller@sourceware.org>
11708 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11709 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11710 to prim_record_mininal_symbol_and_info.
11711 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11712 in call to prim_record_minimal_symbol_and_info.
11713 (read_pe_exported_syms): Set index field of section_data.
11715 2014-01-07 Andrew Pinski <apinski@cavium.com>
11717 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11718 * features/aarch64.c: Regenerate.
11720 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11722 * target.c (return_null): Define.
11723 (update_current_target): Use it instead of return_zero for
11724 functions that return a pointer.
11726 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11728 * source.c (add_path): Fix check for duplicated paths in the previously
11731 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11733 * ada-lang.c: Remove duplicated include statements.
11734 * alphabsd-nat.c: Ditto.
11735 * amd64-darwin-tdep.c: Ditto.
11736 * amd64fbsd-nat.c: Ditto.
11737 * auto-load.c: Ditto.
11739 * breakpoint.c: Ditto.
11740 * dbxread.c: Ditto.
11741 * fork-child.c: Ditto.
11742 * gdb_usleep.c: Ditto.
11743 * i386-darwin-tdep.c: Ditto.
11744 * i386fbsd-nat.c: Ditto.
11746 * inferior.c: Ditto.
11747 * jv-lang.c: Ditto.
11748 * linux-nat.c: Ditto.
11749 * linux-tdep.c: Ditto.
11750 * m68kbsd-nat.c: Ditto.
11751 * m68klinux-nat.c: Ditto.
11752 * microblaze-tdep.c: Ditto.
11753 * mips-linux-tdep.c: Ditto.
11754 * mn10300-tdep.c: Ditto.
11755 * nto-tdep.c: Ditto.
11756 * opencl-lang.c: Ditto.
11758 * printcmd.c: Ditto.
11759 * regcache.c: Ditto.
11760 * remote-m32r-sdi.c: Ditto.
11762 * symfile.c: Ditto.
11764 * tilegx-linux-nat.c: Ditto.
11765 * tilegx-tdep.c: Ditto.
11766 * tracepoint.c: Ditto.
11768 * vaxbsd-nat.c: Ditto.
11769 * windows-nat.c: Ditto.
11770 * xtensa-tdep.c: Ditto.
11772 2014-01-07 Yao Qi <yao@codesourcery.com>
11774 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11776 2014-01-07 Yao Qi <yao@codesourcery.com>
11777 Joel Brobecker <brobecker@adacore.com>
11779 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11780 (pdc_write_regs): Likewise.
11781 (fetch_regs_kernel_thread): Likewise.
11782 (store_regs_kernel_thread): Likewise.
11784 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11786 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11787 tagged type objects to their actual type.
11789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11791 * ada-valprint.c (print_field_values): Add "language" parameter.
11792 Update calls to print_field_values and print_variant_part.
11793 Pass new parameter "language" in call to val_print instead
11794 of "current_language". Replace call to ada_val_print by call
11796 (print_variant_part): Add "language" parameter.
11797 (ada_val_print_struct_union): Update call to print_field_values.
11799 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11801 * ada-valprint.c (ui_memcpy): Delete.
11802 (ada_print_floating): Update documentation. Add empty line
11803 between between function documentation and implementation.
11804 Delete variable "buffer". Use ui_file_xstrdup in place of
11805 ui_file_put. Minor adjustments following this change.
11807 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11809 * ada-valprint.c (ada_val_print_string): New function,
11810 extracted from ada_val_print_array.
11811 (ada_val_print_array): Replace extracted code by call
11812 to ada_val_print_string followed by a return. Move
11813 "else" branch to the function's top block.
11815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11817 * ada-valprint.c (ada_val_print_array): Move implementation
11818 down. Rename parameter "offset" and "val" into "offset_aligned"
11819 and "original_value" respectively. Add parameter "offset".
11821 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11823 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11824 re-organizing the code. Change the "???" message printed
11825 when target type is a TYPE_CODE_UNDEF into
11826 "<ref to undefined type>".
11828 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11830 * ada-valprint.c (print_record): Delete, implementation inlined...
11831 (ada_val_print_struct_union): ... here. Remove call to
11832 ada_check_typedef in inlined implementation.
11834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11836 * ada-valprint.c (ada_val_print_gnat_array): New function,
11837 extracted from ada_val_print_1;
11838 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11839 (ada_val_print_flt, ada_val_print_struct_union)
11840 (ada_val_print_ref): Likewise.
11841 (ada_val_print_1): Delete variables i and elttype.
11842 Replace extracted-out code by call to corresponding
11845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11847 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11849 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11851 * ada-valprint.c (ada_val_print_1): Replace calls to
11852 ada_val_print_1 by calls to val_print.
11854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11856 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11857 Update calls to self accordingly. Replace calls to c_val_print
11858 by calls to val_print.
11860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11862 * ada-valprint.c (print_record): Delete declaration.
11863 (adjust_type_signedness, ada_val_print_1): Likewise.
11864 (ada_val_print): Move function implementation down.
11865 (print_variant_part, print_field_values, print_record):
11866 Move function implementation up.
11868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11870 * python/py-type.c (typy_get_name): New function.
11871 (type_object_getset): Add entry for attribute "name".
11872 * NEWS: Add entry mentioning this new attribute.
11874 2014-01-07 Yao Qi <yao@codesourcery.com>
11876 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11879 2014-01-07 Yao Qi <yao@codesourcery.com>
11881 * gnu-nat.c (info_port_rights): Add qualifier const to
11884 2014-01-07 Yao Qi <yao@codesourcery.com>
11886 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11888 2014-01-07 Yao Qi <yao@codesourcery.com>
11890 * gnu-nat.c (make_inf) Update declaration.
11891 (make_inf): Make it static.
11892 (inf_set_traced): Likewise.
11893 (inf_port_to_thread, inf_task_died_status): Likewise.
11895 2014-01-07 Yao Qi <yao@codesourcery.com>
11897 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11899 2014-01-07 Yao Qi <yao@codesourcery.com>
11901 * gnu-nat.c (_initialize_gnu_nat): Declare.
11903 2014-01-07 Yao Qi <yao@codesourcery.com>
11905 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11907 (struct gdbarch_info) <byte_order>: Change type to
11909 <byte_order_for_code>: Likewise.
11910 * gdbarch.c, gdbarch.h: Regenerated.
11912 2014-01-06 Sasha Smundak <asmundak@google.com>
11914 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11916 2014-01-06 Tom Tromey <tromey@redhat.com>
11918 * doublest.c (convert_doublest_to_floatformat): Use const, not
11920 * somread.c (som_symtab_read): Likewise.
11922 2014-01-07 Hui Zhu <hui@codesourcery.com>
11924 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11925 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11926 (gdb_bfd_fopen): Ditto.
11927 (gdb_bfd_openr): Ditto.
11928 (gdb_bfd_openw): Ditto.
11929 (gdb_bfd_openr_iovec): Ditto.
11930 (gdb_bfd_fdopenr): Ditto.
11931 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11932 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11934 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11936 * symfile-mem.c (symbol_file_add_from_memory): Removed
11937 gdb_bfd_stash_filename.
11939 2014-01-03 Doug Evans <dje@google.com>
11941 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11944 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11946 Update year range in copyright notice of all files.
11948 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11950 * top.c (print_gdb_version): Set copyright year to 2014.
11952 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11954 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11956 For older changes see ChangeLog-2013.
11962 version-control: never