1 2014-08-09 Yao Qi <yao@codesourcery.com>
4 * remote.c (remote_xfer_partial): Remove dead code.
6 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8 * ia64-linux-tdep.c: Include "regset.h".
9 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
10 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
11 (ia64_linux_supply_fpregset): New function.
12 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
13 (ia64_linux_regset_from_core_section): New function.
14 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
17 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
19 * m68klinux-tdep.c: Include "regset.h".
20 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
21 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
22 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
23 (m68k_linux_regset_from_core_section): New function.
24 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
27 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
29 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
30 function. Move logic to...
31 (tilegx_linux_regmap): ... this new register map.
32 (tilegx_linux_regset): Refer to register map, replace supply
33 method by regcache_supply_regset, and add collect method.
34 * tilegx-tdep.h (enum tilegx_regnum): New enum value
35 TILEGX_FIRST_EASY_REGNUM.
37 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
39 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
40 that calls regcache_supply_regset and handles the EPC register
41 separately. Move main logic to...
42 (score7_linux_gregmap): ... this new register map.
43 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
44 (score7_linux_gregset): Refer to register map. Add collect method.
45 (score7_linux_regset_from_core_section): Replace
46 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
47 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
48 (struct regset): Delete unused forward declaraction.
49 (struct pt_regs): Delete structure definition.
50 (elf_gregset_t): Delete typedef.
52 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
54 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
55 (nios2_core_regset): Add collect method.
57 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
59 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
60 platform-independent and don't write to read-only input buffer.
61 (m32r_linux_collect_gregset): New function.
62 (m32r_linux_gregset): Add collect method.
64 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
66 * hppa-linux-tdep.c (greg_map): Rename to...
67 (hppa_linux_gregmap): ... this. Also convert to
68 regcache_map_entry format.
69 (hppa_linux_supply_regset): Delete function.
70 (hppa_linux_supply_fpregset): Delete function. Move logic to...
71 (hppa_linux_fpregmap): ... this new register map.
72 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
73 register map, replace supply method by regcache_supply_regset, and
74 add collect method regcache_collect_regset.
76 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
78 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
79 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
80 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
81 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
82 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
83 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
84 (frv_linux_supply_gregset): Replace main logic by call to
85 regcache_supply_regset, but keep clearing gr32-gr63.
86 (frv_linux_supply_fpregset): Delete function.
87 (frv_linux_gregset): Refer to appropriate register map and add
88 regcache_collect_regset as the collect method.
89 (frv_linux_fpregset): Likewise. Also exchange the supply method
90 by regcache_supply_regset.
92 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
94 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
95 by call to alpha_supply_int_regs.
96 (alpha_linux_collect_gregset): New function.
97 (alpha_linux_supply_fpregset): Replace logic by call to
99 (alpha_linux_collect_fpregset): New function.
100 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
102 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
104 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
105 by call to regcache_collect_regset.
106 (supply_gregset, supply_fpregset): Call regcache_supply_regset
107 instead of aarch64_linux_supply_gregset/_fpregset.
108 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
109 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
111 (aarch64_linux_supply_gregset, supply_gregset_from_core)
112 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
113 functions. Move logic to ...
114 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
116 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
117 refer to new register maps, replace *_regset_from_core by
118 regcache_supply_regset, and also use regcache_collect_regset.
119 * aarch64-linux-tdep.h: Include "regset.h".
120 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
122 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
123 macros, moved from C source file.
124 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
125 variable declarations.
127 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
129 * s390-linux-nat.c: Include "regset.h".
130 (regmap_gregset): Delete macro.
131 (s390_64_regmap_gregset): New register map for
132 regcache_supply/_collect_regset.
133 (s390_64_gregset): New regset.
134 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
135 (regmap_fpregset): Delete macro.
136 (s390_native_supply, s390_native_collect): Delete functions.
137 (supply_gregset, fill_gregset): Replace s390-specific regmap
138 handling by a call to regcache_supply/_collect_regset.
139 (supply_fpregset, fill_fpregset): Call regcache_supply/
140 _collect_regset instead of s390_native_supply/_collect.
141 (fetch_regset, store_regset): Likewise. Also change the last
142 parameter to a regset instead of a regmap.
143 (s390_linux_fetch_inferior_registers)
144 (390_linux_store_inferior_registers): Adjust last parameter in
145 calls to fetch_regset and store_regset.
146 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
147 (s390_gregmap): ... this. Also make static const and convert to
148 regcache_map_entry format.
149 (s390x_regmap_gregset): Delete.
150 (s390_regmap_fpregset): Rename to...
151 (s390_fpregmap): ... this. Make static const and convert to
152 regcache_map_entry format.
153 (s390_regmap_upper, s390_regmap_last_break)
154 (s390x_regmap_last_break, s390_regmap_system_call)
155 (s390_regmap_tdb): Likewise.
156 (s390_supply_regset, s390_collect_regset): Remove functions.
157 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
159 (s390_gregset, s390_fpregset, s390_upper_regset)
160 (s390_last_break_regset, s390x_last_break_regset)
161 (s390_system_call_regset, s390_tdb_regset): Make global and
162 replace s390_supply/_collect_regset by regcache_supply/
164 (s390x_gregset): Delete.
165 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
166 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
167 (s390_regmap_fpregset, s390_regmap_last_break)
168 (s390x_regmap_last_break, s390_regmap_system_call)
169 (s390_regmap_tdb): Delete global variable declarations.
170 (s390_gregset, s390_fpregset, s390_last_break_regset)
171 (s390x_last_break_regset, s390_system_call_regset)
172 (s390_tdb_regset): New global variable declarations.
174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
176 * regcache.c: Include "regset.h".
177 (regcache_transfer_regset): New local function.
178 (regcache_supply_regset, regcache_collect_regset): New functions.
179 * regcache.h (struct regcache_map_entry): New structure.
180 (REGCACHE_MAP_SKIP): New enum value.
181 (regcache_supply_regset, regcache_collect_regset): New prototypes.
183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
185 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
186 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
187 (ppc_linux_collect_gregset ): Likewise.
188 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
189 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
190 (ppc_collect_vrregset): Likewise.
191 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
194 2014-08-07 Yao Qi <yao@codesourcery.com>
196 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
197 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
198 * remote.c (remote_read_bytes): Likewise.
200 2014-08-07 Yao Qi <yao@codesourcery.com>
202 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
204 2014-08-07 Yao Qi <yao@codesourcery.com>
207 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
208 TARGET_XFER_OK instead of 0.
210 2014-08-07 Gary Benson <gbenson@redhat.com>
212 * common/common-defs.h: Include errno.h.
213 * defs.h: Do not include errno.h.
214 * ada-typeprint.c: Likewise.
215 * c-typeprint.c: Likewise.
216 * core-regset.c: Likewise.
217 * corefile.c: Likewise.
218 * corelow.c: Likewise.
219 * event-loop.c: Likewise.
220 * f-typeprint.c: Likewise.
221 * gnu-nat.c: Likewise.
222 * go32-nat.c: Likewise.
223 * i386gnu-nat.c: Likewise.
224 * m2-typeprint.c: Likewise.
225 * nat/linux-btrace.c: Likewise.
226 * p-typeprint.c: Likewise.
227 * procfs.c: Likewise.
228 * remote-sim.c: Likewise.
229 * rs6000-nat.c: Likewise.
230 * target.c: Likewise.
231 * typeprint.c: Likewise.
232 * ui-file.c: Likewise.
233 * valops.c: Likewise.
234 * valprint.c: Likewise.
236 2014-08-07 Gary Benson <gbenson@redhat.com>
238 * common/common-defs.h: Include string.h.
239 * aarch64-tdep.c: Do not include string.h.
240 * ada-exp.y: Likewise.
241 * ada-lang.c: Likewise.
242 * ada-lex.l: Likewise.
243 * ada-typeprint.c: Likewise.
244 * ada-valprint.c: Likewise.
245 * aix-thread.c: Likewise.
246 * alpha-linux-tdep.c: Likewise.
247 * alpha-mdebug-tdep.c: Likewise.
248 * alpha-nat.c: Likewise.
249 * alpha-osf1-tdep.c: Likewise.
250 * alpha-tdep.c: Likewise.
251 * alphanbsd-tdep.c: Likewise.
252 * amd64-dicos-tdep.c: Likewise.
253 * amd64-linux-tdep.c: Likewise.
254 * amd64-nat.c: Likewise.
255 * amd64-sol2-tdep.c: Likewise.
256 * amd64fbsd-tdep.c: Likewise.
257 * amd64obsd-tdep.c: Likewise.
258 * arch-utils.c: Likewise.
259 * arm-linux-nat.c: Likewise.
260 * arm-linux-tdep.c: Likewise.
261 * arm-tdep.c: Likewise.
262 * arm-wince-tdep.c: Likewise.
263 * armbsd-tdep.c: Likewise.
264 * armnbsd-nat.c: Likewise.
265 * armnbsd-tdep.c: Likewise.
266 * armobsd-tdep.c: Likewise.
267 * avr-tdep.c: Likewise.
268 * ax-gdb.c: Likewise.
269 * ax-general.c: Likewise.
270 * bcache.c: Likewise.
271 * bfin-tdep.c: Likewise.
272 * breakpoint.c: Likewise.
273 * build-id.c: Likewise.
274 * buildsym.c: Likewise.
276 * c-lang.c: Likewise.
277 * c-typeprint.c: Likewise.
278 * c-valprint.c: Likewise.
279 * charset.c: Likewise.
280 * cli-out.c: Likewise.
281 * cli/cli-cmds.c: Likewise.
282 * cli/cli-decode.c: Likewise.
283 * cli/cli-dump.c: Likewise.
284 * cli/cli-interp.c: Likewise.
285 * cli/cli-logging.c: Likewise.
286 * cli/cli-script.c: Likewise.
287 * cli/cli-setshow.c: Likewise.
288 * cli/cli-utils.c: Likewise.
289 * coffread.c: Likewise.
290 * common/agent.c: Likewise.
291 * common/buffer.c: Likewise.
292 * common/buffer.h: Likewise.
293 * common/common-utils.c: Likewise.
294 * common/filestuff.c: Likewise.
295 * common/filestuff.c: Likewise.
296 * common/format.c: Likewise.
297 * common/print-utils.c: Likewise.
298 * common/rsp-low.c: Likewise.
299 * common/signals.c: Likewise.
300 * common/vec.h: Likewise.
301 * common/xml-utils.c: Likewise.
302 * core-regset.c: Likewise.
303 * corefile.c: Likewise.
304 * corelow.c: Likewise.
305 * cp-abi.c: Likewise.
306 * cp-name-parser.y: Likewise.
307 * cp-support.c: Likewise.
308 * cp-valprint.c: Likewise.
309 * cris-tdep.c: Likewise.
311 * darwin-nat.c: Likewise.
312 * dbxread.c: Likewise.
313 * dcache.c: Likewise.
314 * demangle.c: Likewise.
315 * dicos-tdep.c: Likewise.
316 * disasm.c: Likewise.
317 * doublest.c: Likewise.
319 * dummy-frame.c: Likewise.
320 * dwarf2-frame.c: Likewise.
321 * dwarf2loc.c: Likewise.
322 * dwarf2read.c: Likewise.
323 * elfread.c: Likewise.
324 * environ.c: Likewise.
326 * event-loop.c: Likewise.
327 * exceptions.c: Likewise.
329 * expprint.c: Likewise.
331 * f-lang.c: Likewise.
332 * f-typeprint.c: Likewise.
333 * f-valprint.c: Likewise.
334 * fbsd-nat.c: Likewise.
335 * findcmd.c: Likewise.
336 * findvar.c: Likewise.
337 * fork-child.c: Likewise.
339 * frv-linux-tdep.c: Likewise.
340 * frv-tdep.c: Likewise.
342 * gdb_bfd.c: Likewise.
343 * gdbarch.c: Likewise.
344 * gdbarch.sh: Likewise.
345 * gdbtypes.c: Likewise.
346 * gnu-nat.c: Likewise.
347 * gnu-v2-abi.c: Likewise.
348 * gnu-v3-abi.c: Likewise.
349 * go-exp.y: Likewise.
350 * go-lang.c: Likewise.
351 * go32-nat.c: Likewise.
352 * guile/guile.c: Likewise.
353 * guile/scm-auto-load.c: Likewise.
354 * hppa-hpux-tdep.c: Likewise.
355 * hppa-linux-nat.c: Likewise.
356 * hppanbsd-tdep.c: Likewise.
357 * hppaobsd-tdep.c: Likewise.
358 * i386-cygwin-tdep.c: Likewise.
359 * i386-dicos-tdep.c: Likewise.
360 * i386-linux-tdep.c: Likewise.
361 * i386-nto-tdep.c: Likewise.
362 * i386-sol2-tdep.c: Likewise.
363 * i386-tdep.c: Likewise.
364 * i386bsd-tdep.c: Likewise.
365 * i386gnu-nat.c: Likewise.
366 * i386nbsd-tdep.c: Likewise.
367 * i386obsd-tdep.c: Likewise.
368 * i387-tdep.c: Likewise.
369 * ia64-libunwind-tdep.c: Likewise.
370 * ia64-linux-nat.c: Likewise.
371 * inf-child.c: Likewise.
372 * inf-ptrace.c: Likewise.
373 * inf-ttrace.c: Likewise.
374 * infcall.c: Likewise.
375 * infcmd.c: Likewise.
376 * inflow.c: Likewise.
377 * infrun.c: Likewise.
378 * interps.c: Likewise.
379 * iq2000-tdep.c: Likewise.
380 * irix5-nat.c: Likewise.
381 * jv-exp.y: Likewise.
382 * jv-lang.c: Likewise.
383 * jv-typeprint.c: Likewise.
384 * jv-valprint.c: Likewise.
385 * language.c: Likewise.
386 * linux-fork.c: Likewise.
387 * linux-nat.c: Likewise.
388 * lm32-tdep.c: Likewise.
389 * m2-exp.y: Likewise.
390 * m2-typeprint.c: Likewise.
391 * m32c-tdep.c: Likewise.
392 * m32r-linux-nat.c: Likewise.
393 * m32r-linux-tdep.c: Likewise.
394 * m32r-rom.c: Likewise.
395 * m32r-tdep.c: Likewise.
396 * m68hc11-tdep.c: Likewise.
397 * m68k-tdep.c: Likewise.
398 * m68kbsd-tdep.c: Likewise.
399 * m68klinux-nat.c: Likewise.
400 * m68klinux-tdep.c: Likewise.
401 * m88k-tdep.c: Likewise.
402 * machoread.c: Likewise.
403 * macrocmd.c: Likewise.
405 * mdebugread.c: Likewise.
406 * mem-break.c: Likewise.
407 * memattr.c: Likewise.
408 * memory-map.c: Likewise.
409 * mep-tdep.c: Likewise.
410 * mi/mi-cmd-break.c: Likewise.
411 * mi/mi-cmd-disas.c: Likewise.
412 * mi/mi-cmd-env.c: Likewise.
413 * mi/mi-cmd-stack.c: Likewise.
414 * mi/mi-cmd-var.c: Likewise.
415 * mi/mi-cmds.c: Likewise.
416 * mi/mi-console.c: Likewise.
417 * mi/mi-getopt.c: Likewise.
418 * mi/mi-interp.c: Likewise.
419 * mi/mi-main.c: Likewise.
420 * mi/mi-parse.c: Likewise.
421 * microblaze-rom.c: Likewise.
422 * microblaze-tdep.c: Likewise.
423 * mingw-hdep.c: Likewise.
424 * minidebug.c: Likewise.
425 * minsyms.c: Likewise.
426 * mips-irix-tdep.c: Likewise.
427 * mips-linux-tdep.c: Likewise.
428 * mips-tdep.c: Likewise.
429 * mips64obsd-tdep.c: Likewise.
430 * mipsnbsd-tdep.c: Likewise.
431 * mipsread.c: Likewise.
432 * mn10300-linux-tdep.c: Likewise.
433 * mn10300-tdep.c: Likewise.
434 * monitor.c: Likewise.
435 * moxie-tdep.c: Likewise.
436 * mt-tdep.c: Likewise.
437 * nat/linux-btrace.c: Likewise.
438 * nat/linux-osdata.c: Likewise.
439 * nat/linux-procfs.c: Likewise.
440 * nat/linux-ptrace.c: Likewise.
441 * nat/linux-waitpid.c: Likewise.
442 * nbsd-tdep.c: Likewise.
443 * nios2-linux-tdep.c: Likewise.
444 * nto-procfs.c: Likewise.
445 * nto-tdep.c: Likewise.
446 * objc-lang.c: Likewise.
447 * objfiles.c: Likewise.
448 * opencl-lang.c: Likewise.
450 * osdata.c: Likewise.
452 * p-lang.c: Likewise.
453 * p-typeprint.c: Likewise.
455 * posix-hdep.c: Likewise.
456 * ppc-linux-nat.c: Likewise.
457 * ppc-sysv-tdep.c: Likewise.
458 * ppcfbsd-tdep.c: Likewise.
459 * ppcnbsd-tdep.c: Likewise.
460 * ppcobsd-tdep.c: Likewise.
461 * printcmd.c: Likewise.
462 * procfs.c: Likewise.
463 * prologue-value.c: Likewise.
464 * python/py-auto-load.c: Likewise.
465 * python/py-gdb-readline.c: Likewise.
466 * ravenscar-thread.c: Likewise.
467 * regcache.c: Likewise.
468 * registry.c: Likewise.
469 * remote-fileio.c: Likewise.
470 * remote-m32r-sdi.c: Likewise.
471 * remote-mips.c: Likewise.
472 * remote-notif.c: Likewise.
473 * remote-sim.c: Likewise.
474 * remote.c: Likewise.
475 * reverse.c: Likewise.
476 * rs6000-aix-tdep.c: Likewise.
477 * ser-base.c: Likewise.
478 * ser-go32.c: Likewise.
479 * ser-mingw.c: Likewise.
480 * ser-pipe.c: Likewise.
481 * ser-tcp.c: Likewise.
482 * ser-unix.c: Likewise.
483 * serial.c: Likewise.
484 * sh-tdep.c: Likewise.
485 * sh64-tdep.c: Likewise.
486 * shnbsd-tdep.c: Likewise.
488 * sol-thread.c: Likewise.
489 * solib-dsbt.c: Likewise.
490 * solib-frv.c: Likewise.
491 * solib-osf.c: Likewise.
492 * solib-som.c: Likewise.
493 * solib-spu.c: Likewise.
494 * solib-target.c: Likewise.
496 * somread.c: Likewise.
497 * source.c: Likewise.
498 * sparc-nat.c: Likewise.
499 * sparc-sol2-tdep.c: Likewise.
500 * sparc-tdep.c: Likewise.
501 * sparc64-tdep.c: Likewise.
502 * sparc64fbsd-tdep.c: Likewise.
503 * sparc64nbsd-tdep.c: Likewise.
504 * sparcnbsd-tdep.c: Likewise.
505 * spu-linux-nat.c: Likewise.
506 * spu-multiarch.c: Likewise.
507 * spu-tdep.c: Likewise.
508 * stabsread.c: Likewise.
510 * std-regs.c: Likewise.
511 * symfile.c: Likewise.
512 * symmisc.c: Likewise.
513 * symtab.c: Likewise.
514 * target.c: Likewise.
515 * thread.c: Likewise.
516 * tilegx-linux-nat.c: Likewise.
517 * tilegx-tdep.c: Likewise.
519 * tracepoint.c: Likewise.
520 * tui/tui-command.c: Likewise.
521 * tui/tui-data.c: Likewise.
522 * tui/tui-disasm.c: Likewise.
523 * tui/tui-file.c: Likewise.
524 * tui/tui-layout.c: Likewise.
525 * tui/tui-out.c: Likewise.
526 * tui/tui-regs.c: Likewise.
527 * tui/tui-source.c: Likewise.
528 * tui/tui-stack.c: Likewise.
529 * tui/tui-win.c: Likewise.
530 * tui/tui-windata.c: Likewise.
531 * tui/tui-winsource.c: Likewise.
532 * typeprint.c: Likewise.
533 * ui-file.c: Likewise.
534 * ui-out.c: Likewise.
535 * user-regs.c: Likewise.
537 * v850-tdep.c: Likewise.
538 * valarith.c: Likewise.
539 * valops.c: Likewise.
540 * valprint.c: Likewise.
542 * varobj.c: Likewise.
543 * vax-tdep.c: Likewise.
544 * vaxnbsd-tdep.c: Likewise.
545 * vaxobsd-tdep.c: Likewise.
546 * windows-nat.c: Likewise.
547 * xcoffread.c: Likewise.
548 * xml-support.c: Likewise.
549 * xstormy16-tdep.c: Likewise.
550 * xtensa-linux-nat.c: Likewise.
552 2014-08-07 Gary Benson <gbenson@redhat.com>
554 * common/common-defs.h: Include gdb_assert.h.
555 * aarch64-tdep.c: Do not include gdb_assert.h.
556 * addrmap.c: Likewise.
557 * aix-thread.c: Likewise.
558 * alpha-linux-tdep.c: Likewise.
559 * alpha-mdebug-tdep.c: Likewise.
560 * alphanbsd-tdep.c: Likewise.
561 * amd64-nat.c: Likewise.
562 * amd64-tdep.c: Likewise.
563 * amd64bsd-nat.c: Likewise.
564 * amd64fbsd-nat.c: Likewise.
565 * amd64fbsd-tdep.c: Likewise.
566 * amd64nbsd-nat.c: Likewise.
567 * amd64nbsd-tdep.c: Likewise.
568 * amd64obsd-nat.c: Likewise.
569 * amd64obsd-tdep.c: Likewise.
570 * arch-utils.c: Likewise.
571 * arm-tdep.c: Likewise.
572 * armbsd-tdep.c: Likewise.
574 * bcache.c: Likewise.
575 * bfin-tdep.c: Likewise.
576 * blockframe.c: Likewise.
577 * breakpoint.c: Likewise.
578 * bsd-kvm.c: Likewise.
579 * bsd-uthread.c: Likewise.
580 * buildsym.c: Likewise.
582 * c-lang.c: Likewise.
583 * charset.c: Likewise.
584 * cleanups.c: Likewise.
585 * cli-out.c: Likewise.
586 * cli/cli-decode.c: Likewise.
587 * cli/cli-dump.c: Likewise.
588 * cli/cli-logging.c: Likewise.
589 * cli/cli-script.c: Likewise.
590 * cli/cli-utils.c: Likewise.
591 * coffread.c: Likewise.
592 * common/common-utils.c: Likewise.
593 * common/queue.h: Likewise.
594 * common/signals.c: Likewise.
595 * common/vec.h: Likewise.
596 * complaints.c: Likewise.
597 * completer.c: Likewise.
598 * corelow.c: Likewise.
599 * cp-abi.c: Likewise.
600 * cp-name-parser.y: Likewise.
601 * cp-namespace.c: Likewise.
602 * cp-support.c: Likewise.
603 * cris-tdep.c: Likewise.
604 * dbxread.c: Likewise.
605 * dictionary.c: Likewise.
606 * doublest.c: Likewise.
608 * dummy-frame.c: Likewise.
609 * dwarf2-frame-tailcall.c: Likewise.
610 * dwarf2-frame.c: Likewise.
611 * dwarf2expr.c: Likewise.
612 * dwarf2loc.c: Likewise.
613 * dwarf2read.c: Likewise.
615 * event-loop.c: Likewise.
616 * exceptions.c: Likewise.
617 * expprint.c: Likewise.
618 * f-valprint.c: Likewise.
619 * fbsd-nat.c: Likewise.
620 * findvar.c: Likewise.
621 * frame-unwind.c: Likewise.
623 * frv-tdep.c: Likewise.
625 * gdb-dlfcn.c: Likewise.
626 * gdb_bfd.c: Likewise.
627 * gdbarch.c: Likewise.
628 * gdbarch.sh: Likewise.
629 * gdbtypes.c: Likewise.
630 * gnu-nat.c: Likewise.
631 * gnu-v3-abi.c: Likewise.
632 * go-lang.c: Likewise.
633 * guile/scm-exception.c: Likewise.
634 * guile/scm-gsmob.c: Likewise.
635 * guile/scm-lazy-string.c: Likewise.
636 * guile/scm-math.c: Likewise.
637 * guile/scm-pretty-print.c: Likewise.
638 * guile/scm-safe-call.c: Likewise.
639 * guile/scm-utils.c: Likewise.
640 * guile/scm-value.c: Likewise.
641 * h8300-tdep.c: Likewise.
642 * hppa-hpux-nat.c: Likewise.
643 * hppa-tdep.c: Likewise.
644 * hppanbsd-tdep.c: Likewise.
645 * hppaobsd-tdep.c: Likewise.
646 * i386-darwin-nat.c: Likewise.
647 * i386-darwin-tdep.c: Likewise.
648 * i386-nto-tdep.c: Likewise.
649 * i386-tdep.c: Likewise.
650 * i386bsd-nat.c: Likewise.
651 * i386fbsd-tdep.c: Likewise.
652 * i386gnu-nat.c: Likewise.
653 * i386nbsd-tdep.c: Likewise.
654 * i386obsd-tdep.c: Likewise.
655 * i387-tdep.c: Likewise.
656 * ia64-libunwind-tdep.c: Likewise.
657 * ia64-tdep.c: Likewise.
658 * inf-ptrace.c: Likewise.
659 * inf-ttrace.c: Likewise.
660 * infcall.c: Likewise.
661 * infcmd.c: Likewise.
662 * infrun.c: Likewise.
663 * inline-frame.c: Likewise.
664 * interps.c: Likewise.
665 * jv-lang.c: Likewise.
666 * jv-typeprint.c: Likewise.
667 * linux-fork.c: Likewise.
668 * linux-nat.c: Likewise.
669 * linux-thread-db.c: Likewise.
670 * m32c-tdep.c: Likewise.
671 * m32r-linux-nat.c: Likewise.
672 * m32r-tdep.c: Likewise.
673 * m68k-tdep.c: Likewise.
674 * m68kbsd-nat.c: Likewise.
675 * m68kbsd-tdep.c: Likewise.
676 * m88k-tdep.c: Likewise.
677 * machoread.c: Likewise.
678 * macroexp.c: Likewise.
679 * macrotab.c: Likewise.
681 * mdebugread.c: Likewise.
682 * memory-map.c: Likewise.
683 * mep-tdep.c: Likewise.
684 * mi/mi-common.c: Likewise.
685 * microblaze-tdep.c: Likewise.
686 * mingw-hdep.c: Likewise.
687 * mips-linux-nat.c: Likewise.
688 * mips-linux-tdep.c: Likewise.
689 * mips-tdep.c: Likewise.
690 * mips64obsd-tdep.c: Likewise.
691 * mipsnbsd-tdep.c: Likewise.
692 * mn10300-linux-tdep.c: Likewise.
693 * mn10300-tdep.c: Likewise.
694 * moxie-tdep.c: Likewise.
695 * mt-tdep.c: Likewise.
696 * nat/linux-btrace.c: Likewise.
697 * nat/linux-osdata.c: Likewise.
698 * nat/linux-ptrace.c: Likewise.
699 * nat/mips-linux-watch.c: Likewise.
700 * nios2-linux-tdep.c: Likewise.
701 * nios2-tdep.c: Likewise.
702 * objc-lang.c: Likewise.
703 * objfiles.c: Likewise.
704 * obsd-nat.c: Likewise.
705 * opencl-lang.c: Likewise.
708 * ppc-linux-nat.c: Likewise.
709 * ppc-sysv-tdep.c: Likewise.
710 * ppcfbsd-nat.c: Likewise.
711 * ppcfbsd-tdep.c: Likewise.
712 * ppcnbsd-nat.c: Likewise.
713 * ppcnbsd-tdep.c: Likewise.
714 * ppcobsd-nat.c: Likewise.
715 * ppcobsd-tdep.c: Likewise.
716 * printcmd.c: Likewise.
717 * procfs.c: Likewise.
718 * prologue-value.c: Likewise.
719 * psymtab.c: Likewise.
720 * python/py-lazy-string.c: Likewise.
721 * python/py-value.c: Likewise.
722 * regcache.c: Likewise.
723 * reggroups.c: Likewise.
724 * registry.c: Likewise.
725 * remote-sim.c: Likewise.
726 * remote.c: Likewise.
727 * rs6000-aix-tdep.c: Likewise.
728 * rs6000-tdep.c: Likewise.
729 * s390-linux-tdep.c: Likewise.
730 * score-tdep.c: Likewise.
731 * ser-base.c: Likewise.
732 * ser-mingw.c: Likewise.
733 * sh-tdep.c: Likewise.
734 * sh64-tdep.c: Likewise.
735 * solib-darwin.c: Likewise.
736 * solib-spu.c: Likewise.
737 * solib-svr4.c: Likewise.
738 * source.c: Likewise.
739 * sparc-nat.c: Likewise.
740 * sparc-sol2-tdep.c: Likewise.
741 * sparc-tdep.c: Likewise.
742 * sparc64-sol2-tdep.c: Likewise.
743 * sparc64-tdep.c: Likewise.
744 * sparc64fbsd-tdep.c: Likewise.
745 * sparc64nbsd-tdep.c: Likewise.
746 * sparc64obsd-tdep.c: Likewise.
747 * sparcnbsd-tdep.c: Likewise.
748 * sparcobsd-tdep.c: Likewise.
749 * spu-multiarch.c: Likewise.
750 * spu-tdep.c: Likewise.
751 * stabsread.c: Likewise.
753 * symfile.c: Likewise.
754 * symtab.c: Likewise.
755 * target-descriptions.c: Likewise.
756 * target-memory.c: Likewise.
757 * target.c: Likewise.
758 * tic6x-linux-tdep.c: Likewise.
759 * tic6x-tdep.c: Likewise.
760 * tilegx-linux-nat.c: Likewise.
761 * tilegx-tdep.c: Likewise.
763 * tramp-frame.c: Likewise.
764 * tui/tui-out.c: Likewise.
765 * tui/tui-winsource.c: Likewise.
766 * ui-out.c: Likewise.
767 * user-regs.c: Likewise.
769 * v850-tdep.c: Likewise.
770 * valops.c: Likewise.
772 * varobj.c: Likewise.
773 * vax-nat.c: Likewise.
774 * xml-syscall.c: Likewise.
775 * xml-tdesc.c: Likewise.
776 * xstormy16-tdep.c: Likewise.
777 * xtensa-linux-nat.c: Likewise.
778 * xtensa-tdep.c: Likewise.
780 2014-08-07 Gary Benson <gbenson@redhat.com>
782 * common/common-defs.h: Include common-utils.h.
783 * defs.h: Do not include common-utils.h.
784 * common/gdb_assert.h: Likewise.
785 * darwin-nat.h: Likewise.
786 * nat/linux-btrace.c: Likewise.
787 * target/waitstatus.h: Likewise.
789 2014-08-07 Gary Benson <gbenson@redhat.com>
791 * common/common-defs.h: Include ptid.h.
792 * defs.h: Do not include ptid.h.
793 * inferior.h: Likewise.
794 * infrun.h: Likewise.
795 * nat/linux-btrace.h: Likewise.
796 * nat/linux-osdata.h: Likewise.
797 * target/waitstatus.h: Likewise.
799 2014-08-07 Gary Benson <gbenson@redhat.com>
801 * common/common-defs.h: Include gdb_locale.h.
802 * defs.h: Do not include gdb_locale.h.
804 2014-08-07 Gary Benson <gbenson@redhat.com>
806 * common/common-defs.h: Include gdb/signals.h.
807 * defs.h: Do not include gdb/signals.h.
809 2014-08-07 Gary Benson <gbenson@redhat.com>
811 * common/common-defs.h: Include pathmax.h.
812 * defs.h: Do not include pathmax.h.
814 2014-08-07 Gary Benson <gbenson@redhat.com>
816 * common/common-defs.h: Include libiberty.h.
817 * defs.h: Do not include libiberty.h.
818 * common/queue.h: Likewise.
819 * cp-name-parser.y: Likewise.
820 * mi/mi-cmd-catch.c: Likewise.
821 * python/python.c: Likewise.
823 2014-08-07 Gary Benson <gbenson@redhat.com>
825 * common/common-defs.h: Include ansidecl.h.
826 * defs.h: Do not include ansidecl.h.
827 * common/buffer.h: Likewise.
828 * common/common-utils.h: Likewise.
830 2014-08-07 Gary Benson <gbenson@redhat.com>
832 * common/common-defs.h: Include stddef.h.
833 * defs.h: Do not include stddef.h.
834 * common/common-utils.h: Likewise.
835 * amd64fbsd-nat.c: Likewise.
836 * bcache.c: Likewise.
837 * charset.c: Likewise.
838 * common/buffer.h: Likewise.
839 * common/vec.h: Likewise.
840 * i386bsd-nat.c: Likewise.
841 * nat/linux-btrace.h: Likewise.
842 * ppcfbsd-nat.c: Likewise.
843 * ppcnbsd-tdep.h: Likewise.
844 * ppcobsd-nat.c: Likewise.
845 * ppcobsd-tdep.h: Likewise.
846 * python/py-gdb-readline.c: Likewise.
848 2014-08-07 Gary Benson <gbenson@redhat.com>
850 * common/common-defs.h: Include stdarg.h.
851 * defs.h: Do not include stdarg.h.
852 * ada-lang.c: Likewise.
853 * common/common-utils.h: Likewise.
854 * guile/scm-string.c: Likewise.
855 * guile/scm-utils.c: Likewise.
856 * m32c-tdep.c: Likewise.
858 2014-08-07 Gary Benson <gbenson@redhat.com>
860 * common/common-defs.h: Include stdlib.h.
861 * defs.h: Do not include stdlib.h.
862 * addrmap.c: Likewise.
863 * bcache.c: Likewise.
864 * common/buffer.c: Likewise.
865 * common/common-utils.c: Likewise.
866 * cp-name-parser.y: Likewise.
867 * go32-nat.c: Likewise.
868 * mn10300-linux-tdep.c: Likewise.
869 * nat/linux-osdata.c: Likewise.
870 * tui/tui.c: Likewise.
871 * windows-nat.c: Likewise.
873 2014-08-07 Gary Benson <gbenson@redhat.com>
875 * common/common-defs.h: Include stdio.h.
876 * defs.h: Do not include stdio.h.
877 * ada-lang.c: Likewise.
878 * common/buffer.c: Likewise.
879 * common/common-utils.c: Likewise.
880 * cp-name-parser.y: Likewise.
881 * gnu-nat.c: Likewise.
882 * go32-nat.c: Likewise.
883 * i386gnu-nat.c: Likewise.
884 * proc-api.c: Likewise.
885 * proc-events.c: Likewise.
886 * proc-flags.c: Likewise.
887 * proc-why.c: Likewise.
888 * python/python-internal.h: Likewise.
889 * target-memory.c: Likewise.
890 * tui/tui-io.c: Likewise.
891 * tui/tui.c: Likewise.
893 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
895 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
896 (scan_dyntag_auxv): Same.
898 2014-08-06 Yao Qi <yao@codesourcery.com>
900 * amd64-linux-nat.c: Remove duplicated include
902 * i386-linux-nat.c: Likewise.
904 2014-08-06 Yao Qi <yao@codesourcery.com>
906 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
907 operand" with "Special opcode" in comments.
909 2014-08-05 Gary Benson <gbenson@redhat.com>
911 * interps.c (initialize_interps): Remove prototype.
912 (interpreter_initialized): Remove static global.
913 (interp_add): Do not call initialize_interps.
914 (initialize_interps): Remove function.
916 2014-08-05 Gary Benson <gbenson@redhat.com>
918 * utils.c (vwarning): Remove spurious va_end.
920 2014-08-05 Alan Modra <amodra@gmail.com>
922 * charset.c (convert_between_encodings): Cast result of obstack_base.
923 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
924 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
925 (read_unwind_info): Use size_t for some locals.
926 * jit.c (finalize_symtab): Likewise.
927 * utils.c (hashtab_obstack_allocate): Likewise.
928 * symmisc.c (print_objfile_statistics): Update format strings.
930 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
933 (Changes in GDB 7.8): ... here.
935 2014-08-04 Tom Tromey <tromey@redhat.com>
937 * target.c (set_targetdebug): New function.
938 (initialize_targets): Pass set_targetdebug when creating "set
941 2014-08-01 Joel Brobecker <brobecker@adacore.com>
943 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
944 if detecting a variable-sized field that is not the last field.
945 Fix struct type length computation.
947 2014-08-01 Joel Brobecker <brobecker@adacore.com>
949 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
952 2014-08-01 Joel Brobecker <brobecker@adacore.com>
954 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
955 Remove "+ 8" offset in computation of CHAIN_VMA.
957 2014-07-31 Doug Evans <dje@google.com>
959 * inflow.c (child_terminal_inferior): Add comment.
960 (child_terminal_ours_for_output): Add comment.
961 (child_terminal_ours): Add comment.
962 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
963 (linux_nat_terminal_ours): Add comment.
965 2014-07-31 Gary Benson <gbenson@redhat.com>
967 * common/btrace-common.h: Do not include defs.h or server.h.
968 * nat/mips-linux-watch.h: Likewise.
969 * gdb-dlfcn.h: Do not include defs.h.
970 * tracefile.h: Likewise.
972 2014-07-30 Roland McGrath <mcgrathr@google.com>
974 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
976 2014-07-30 Tom Tromey <tromey@redhat.com>
978 * bsd-kvm.c (bsd_kvm_open): Constify.
979 * corelow.c (core_open): Constify.
980 * ctf.c (ctf_open): Constify.
981 * dbug-rom.c (dbug_open): Constify.
982 * exec.c (exec_open): Constify.
983 * m32r-rom.c (m32r_open, mon2000_open): Constify.
984 * microblaze-rom.c (picobug_open): Constify.
985 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
987 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
988 * record-btrace.c (record_btrace_open): Constify.
989 * record-full.c (record_full_core_open_1, record_full_open_1)
990 (record_full_open): Constify.
991 * remote-m32r-sdi.c (m32r_open): Constify.
992 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
993 (rockhopper_open, lsi_open): Constify.
994 * remote-sim.c (gdbsim_open): Constify.
995 * remote.c (remote_open, extended_remote_open, remote_open_1):
997 * target.h (struct target_ops) <to_open>: Make "arg" const.
998 * tracefile-tfile.c (tfile_open): Constify.
1000 2014-07-30 Tom Tromey <tromey@redhat.com>
1002 * breakpoint.c (map_breakpoint_numbers): Update.
1003 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1004 (get_number_const): New function.
1005 (get_number): Rewrite using get_number_const.
1006 (init_number_or_range): Make "string" const.
1007 (number_is_in_list): Make "list" const.
1008 * cli/cli-utils.h (get_number_const): Declare.
1009 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1010 (init_number_or_range, number_is_in_list): Update.
1011 * printcmd.c (map_display_numbers): Update.
1012 * value.c (value_from_history_ref): Constify.
1013 * value.h (value_from_history_ref): Update.
1015 2014-07-30 Tom Tromey <tromey@redhat.com>
1017 * corefile.c (hook_type, call_extra_exec_file_hooks)
1018 (specify_exec_file_hook): Constify.
1019 * exec.c (exec_file_attach): Make "filename" const.
1020 * gdbcore.h (deprecated_exec_file_display_hook)
1021 (specify_exec_file_hook, exec_file_attach): Constify.
1022 * main.c (captured_main): Use catch_command_errors_const.
1024 2014-07-30 Tom Tromey <tromey@redhat.com>
1026 * target.c (open_target): New function.
1027 (add_target_with_completer, add_deprecated_target_alias): Use
1028 set_cmd_sfunc, set_cmd_context.
1029 (debug_to_open): Remove.
1030 (setup_target_debug): Update.
1032 2014-07-30 Yao Qi <yao@codesourcery.com>
1034 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1036 * parse.c (exp_iterate): Update comments.
1038 2014-07-30 Gary Benson <gbenson@redhat.com>
1040 * common/common-defs.h: New file.
1041 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1042 * defs.h: Include common-defs.h.
1043 Do not include config.h or build-gnulib/config.h.
1045 2014-07-30 Gary Benson <gbenson@redhat.com>
1047 * common/common-utils.h: Do not include config.h.
1048 * nat/linux-btrace.h: Likewise.
1050 2014-07-30 Gary Benson <gbenson@redhat.com>
1052 * btrace.c: Include defs.h.
1053 * common/ptid.c: Include defs.h or server.h as appropriate.
1054 * nat/mips-linux-watch.c: Likewise.
1056 2014-07-29 Tom Tromey <tromey@redhat.com>
1058 * target.c (target_is_pushed): Simplify.
1060 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1064 2014-07-29 Yao Qi <yao@codesourcery.com>
1067 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1069 2014-07-28 Doug Evans <xdje42@gmail.com>
1072 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1073 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1076 2014-07-28 Will Newton <will.newton@linaro.org>
1078 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1079 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1080 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1081 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1082 (THUMB2_EABI_SYSCALL): Likewise.
1083 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1085 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1086 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1088 2014-07-27 Doug Evans <xdje42@gmail.com>
1090 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1092 2014-07-27 Doug Evans <xdje42@gmail.com>
1094 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1096 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1097 Doug Evans <xdje42@gmail.com>
1100 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1101 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1102 * configure.ac: Try to use guild to compile an scm file, if it fails
1103 then disable guile support.
1104 * configure: Regenerate.
1105 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1107 (GUILE_COMPILED_FILES): New variable.
1108 (GUILE_FILES) Update.
1109 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1110 (stamp-guile): Compile scm files.
1111 * guile/guile.c (boot_guile_support): New function.
1112 (standard_throw_args_p): New function.
1113 (print_standard_throw_error, print_throw_error): New functions.
1114 (handle_boot_error): New function.
1115 (initialize_scheme_side): Rewrite to call boot_guile_support.
1116 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1117 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1119 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1120 Doug Evans <xdje42@gmail.com>
1123 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1124 * guile/lib/gdb/support.scm: New file.
1125 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1126 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1128 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1130 (%assert-type): Ditto, and renamed to assert-type.
1131 (%exception-print-style): Delete.
1133 2014-07-26 Doug Evans <xdje42@gmail.com>
1136 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1137 * configure: Regenerate.
1138 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1140 (PYTHON_FILES): New variable.
1141 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1142 (GUILE_FILES): New variable.
1143 (stamp-python, install-python, uninstall-python): Handle empty
1145 (stamp-guile, install-guile, uninstall-guile): Ditto.
1147 2014-07-26 Doug Evans <xdje42@gmail.com>
1150 * guile/lib/gdb.scm (pretty-printers): Export.
1151 (set-pretty-printers!): Export.
1152 * guile/lib/gdb/printing.scm (gdb module): Update.
1153 (prepend-pretty-printer!, append-pretty-printer!): Update.
1154 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1155 (pretty_printer_list_var): Delete.
1156 (pretty_printer_list): New static global.
1157 (gdbscm_pretty_printers): New function.
1158 (gdbscm_set_pretty_printers_x): New function.
1159 (ppscm_find_pretty_printer_from_gdb): Update.
1160 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1161 (gdbscm_initialize_pretty_printers): Update.
1163 2014-07-26 Doug Evans <xdje42@gmail.com>
1166 * configure.ac: Add check for header gc/gc.h.
1167 Add check for function setenv.
1168 * configure: Regenerate.
1169 * config.in: Regenerate.
1170 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1172 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1174 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1175 variation in gdbarch matching.
1177 2014-07-25 Tom Tromey <tromey@redhat.com>
1179 * exec.c (using_exec_ops): Remove.
1180 (exec_close_1): Update. Remove extraneous block, reindent.
1181 (add_target_sections): Use target_is_pushed.
1183 2014-07-25 Pedro Alves <palves@redhat.com>
1185 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1186 * monitor.c (monitor_create_inferior): Likewise.
1187 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1188 * remote-sim.c (gdbsim_create_inferior): Likewise.
1189 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1190 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1191 * windows-nat.c (do_initial_windows_stuff): Likewise.
1193 2014-07-25 Pedro Alves <palves@redhat.com>
1195 * NEWS: Mention signal passing and "signal" command changes.
1196 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1198 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1200 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1201 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1202 (jump_command): Adjust clear_proceed_status call.
1203 (signal_command): Warn if other thread that are resumed have
1204 signals that will be delivered. Adjust clear_proceed_status call.
1205 (until_next_command, finish_command)
1206 (proceed_after_attach_callback, attach_command_post_wait)
1207 (attach_command): Adjust clear_proceed_status call.
1208 * infrun.c (proceed_after_vfork_done): Likewise.
1209 (proceed_after_attach_callback): Adjust comment.
1210 (clear_proceed_status_thread): Clear stop_signal if not in pass
1212 (clear_proceed_status_callback): Delete.
1213 (clear_proceed_status): New 'step' parameter. Only clear the
1214 proceed status of threads the command being prepared is about to
1216 (proceed): If passed in an explicit signal, override stop_signal
1217 with it. Don't pass the last stop signal to the thread we're
1219 (init_wait_for_inferior): Adjust clear_proceed_status call.
1220 (switch_back_to_stepped_thread): Clear the signal if it should not
1222 * infrun.h (clear_proceed_status): New 'step' parameter.
1223 (user_visible_resume_ptid): Add comment.
1224 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1225 signal is in pass state.
1226 * remote.c (append_pending_thread_resumptions): Likewise.
1227 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1229 2014-07-25 Tom Tromey <tromey@redhat.com>
1231 * target.h (target_stopped_data_address)
1232 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1235 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1237 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1239 (avr_pointer_to_address): Likewise.
1241 2014-07-24 Tom Tromey <tromey@redhat.com>
1243 * monitor.c (compile_pattern): Update.
1244 * target.h (struct target_ops) <to_shortname, to_longname,
1247 2014-07-24 Tom Tromey <tromey@redhat.com>
1249 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1250 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1251 (add_info_alias, add_com): Make "doc" const.
1252 (print_doc_line): Make "str" const.
1253 (delete_cmd): Update.
1254 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1255 (print_doc_line): Update.
1256 * cli/cli-script.c (document_command): Update.
1257 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1258 (add_com, add_info, add_info_alias): Update.
1259 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1260 * python/py-cmd.c (cmdpy_destroyer): Update.
1262 2014-07-24 Tom Tromey <tromey@redhat.com>
1264 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1265 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1266 (help_cmd_list): Constify.
1267 (lookup_cmd): Update.
1268 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1270 (help_cmd_list, apropos_cmd): Update.
1271 * cli/cli-script.c (show_user): Update.
1272 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1273 * cli/cli-setshow.h (cmd_show_list): Update.
1274 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1275 (cmd_show_list): Update.
1276 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1277 * python/py-cmd.c (cmdpy_destroyer): Update.
1279 2014-07-24 Tom Tromey <tromey@redhat.com>
1281 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1282 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1284 * command.h (deprecate_cmd): Update.
1285 * maint.c (maintenance_do_deprecate): Add casts.
1287 2014-07-24 Tom Tromey <tromey@redhat.com>
1289 * cli/cli-decode.c (help_cmd): Make parameter "const".
1290 * cli/cli-decode.h (help_cmd): Update.
1292 2014-07-24 Tom Tromey <tromey@redhat.com>
1294 * stack.c (up_silently_base, down_silently_base): Make argument
1297 2014-07-24 Tom Tromey <tromey@redhat.com>
1299 * solib.c (solib_add): Make "pattern" const.
1300 * solib.h (solib_add): Update.
1302 2014-07-24 Tom Tromey <tromey@redhat.com>
1304 * remote.c (remote_serial_open, print_packet, putpkt)
1305 (putpkt_binary): Constify.
1306 * remote.h (putpkt): Update.
1308 2014-07-24 Tom Tromey <tromey@redhat.com>
1310 * monitor.c (monitor_open): Make "args" const.
1311 * monitor.h (monitor_open): Update.
1313 2014-07-24 Tom Tromey <tromey@redhat.com>
1315 * maint.c (match_bfd_flags): Make "string" const.
1316 (print_bfd_section_info): Remove casts.
1317 (print_objfile_section_info): Make "string" const.
1319 2014-07-24 Tom Tromey <tromey@redhat.com>
1321 * inf-child.c (inf_child_open_target): Make "arg" const.
1322 * inf-child.h (inf_child_open_target): Update.
1324 2014-07-24 Tom Tromey <tromey@redhat.com>
1326 * environ.c (unset_in_environ): Make "var" const.
1327 * environ.h (unset_in_environ): Update.
1329 2014-07-24 Tom Tromey <tromey@redhat.com>
1331 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1333 (scan_filename_with_cleanup): Likewise.
1334 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1335 Make arguments const.
1336 (restore_command): Update.
1338 2014-07-24 Pedro Alves <palves@redhat.com>
1340 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1342 2014-07-24 Tom Tromey <tromey@redhat.com>
1343 Gary Benson <gbenson@redhat.com>
1345 * nat/linux-ptrace.c (additional_flags): New global.
1346 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1347 additional_flags; don't check GDBSERVER.
1348 (linux_ptrace_set_additional_flags): New function.
1349 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1351 * linux-nat.c (_initialize_linux_nat): Call
1352 linux_ptrace_set_additional_flags.
1354 2014-07-24 Tom Tromey <tromey@redhat.com>
1356 * make-target-delegates (munge_type, write_debugmethod): New
1358 (debug_names): New global.
1359 ($TARGET_DEBUG_PRINTER): New global.
1360 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1362 Write debug methods. Generate init_debug_target.
1363 * target-debug.h: New file.
1364 * target-delegates.c: Rebuild.
1365 * target.c: Include target-debug.h.
1366 (debug_target): Hoist definition.
1367 (target_kill, target_get_section_table, target_memory_map)
1368 (target_flash_erase, target_flash_done, target_detach)
1369 (target_disconnect, target_wait, target_resume)
1370 (target_pass_signals, target_program_signals, target_follow_fork)
1371 (target_mourn_inferior, target_search_memory)
1372 (target_thread_address_space, target_close)
1373 (target_find_new_threads, target_core_of_thread)
1374 (target_verify_memory, target_insert_mask_watchpoint)
1375 (target_remove_mask_watchpoint): Remove targetdebug code.
1376 (debug_to_post_attach, debug_to_prepare_to_store)
1377 (debug_to_files_info, debug_to_insert_breakpoint)
1378 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1379 (debug_to_region_ok_for_hw_watchpoint)
1380 (debug_to_can_accel_watchpoint_condition)
1381 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1382 (debug_to_watchpoint_addr_within_range)
1383 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1384 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1385 (debug_to_terminal_init, debug_to_terminal_inferior)
1386 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1387 (debug_to_terminal_save_ours, debug_to_terminal_info)
1388 (debug_to_load, debug_to_post_startup_inferior)
1389 (debug_to_insert_fork_catchpoint)
1390 (debug_to_remove_fork_catchpoint)
1391 (debug_to_insert_vfork_catchpoint)
1392 (debug_to_remove_vfork_catchpoint)
1393 (debug_to_insert_exec_catchpoint)
1394 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1395 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1396 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1397 (setup_target_debug): Call init_debug_target.
1398 * target.h (TARGET_DEBUG_PRINTER): New macro.
1399 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1400 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1402 2014-07-24 Gary Benson <gbenson@redhat.com>
1404 * exceptions.h (throw_vfatal): Renamed to...
1405 (throw_vquit): New declaration.
1406 (throw_quit): Likewise.
1407 * exceptions.c (throw_vfatal): Renamed to...
1408 (throw_vquit): New function.
1409 (throw_quit): Likewise.
1410 (throw_error): Call throw_verror rather than throw_it.
1411 * utils.h (vfatal): Removed.
1413 * utils.c (vfatal): Removed.
1415 (internal_verror): Replaced call to fatal with call to throw_quit.
1416 (quit): Replaced calls to fatal with calls to throw_quit.
1418 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1420 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1423 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1425 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1426 less than zero in conditional expression.
1428 2014-07-23 Tom Tromey <tromey@redhat.com>
1430 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1431 ($INTRO_PART): Don't match whitespace.
1432 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1434 ($METHOD): Add $METHOD_TRAILER.
1436 (scan_target_h): New sub.
1437 Change main loop not to collect state.
1438 * target-delegates.c: Rebuild.
1440 2014-07-23 Gary Benson <gbenson@redhat.com>
1442 * cp-support.c (gdb_demangle): Fix build on systems without
1445 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1447 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1448 for reference entry value target data value.
1450 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1453 value_available_contents_eq.
1455 2014-07-22 Pedro Alves <palves@redhat.com>
1457 * value.c (allocate_optimized_out_value): Don't mark value as
1460 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1462 * MAINTAINERS (Write After Approval): Update my email address.
1464 2014-07-20 Doug Evans <dje@google.com>
1467 * remote.c (putpkt_binary): Add text to error message.
1469 2014-07-20 Yao Qi <yao@codesourcery.com>
1471 * eval.c: Remove "Chill" from comments.
1472 * gdbtypes.h: Likewise.
1473 * symtab.h: Likewise.
1475 2014-07-20 Yao Qi <yao@codesourcery.com>
1477 * std-operator.def: Update comments to TERNOP_SLICE.
1479 2014-07-20 Yao Qi <yao@codesourcery.com>
1481 * std-operator.def: Remove BINOP_RANGE.
1482 * breakpoint.c (watchpoint_exp_is_const): Update.
1483 * expprint.c (dump_subexp_body_standard): Likewise.
1484 * eval.c (init_array_element): Remove dead code.
1485 (evaluate_subexp_standard): Likewise.
1487 2014-07-20 Yao Qi <yao@codesourcery.com>
1489 * std-operator.def: Remove BINOP_IN.
1490 * breakpoint.c (watchpoint_exp_is_const): Update.
1491 * eval.c (evaluate_subexp_standard): Likewise.
1492 * expprint.c (dump_subexp_body_standard): Likewise.
1494 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1496 * microblaze-tdep.c (microblaze_register_names): Add
1497 the rshr and rslr register names.
1498 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1499 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1500 Use of tdesc_numbered_register. Use of
1501 microblaze_register_g_packet_guesses. Use of
1502 tdesc_use_registers. Use of set_gdbarch_register_type.
1503 (microblaze_register_g_packet_guesses): New.
1504 * microblaze-tdep.h (microblaze_reg_num): Add
1505 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1506 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1507 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1508 * features/microblaze-core.xml: New file.
1509 * features/microblaze-stack-protect.xml: New file.
1510 * features/microblaze-with-stack-protect.c: New file.
1511 * features/microblaze-with-stack-protect.xml: New file.
1512 * features/microblaze.xml: New file.
1513 * features/microblaze.c: New file.
1514 * features/Makefile (microblaze-with-stack-protect): Add
1515 microblaze-with-stack-protect microblaze and microblaze-expedite.
1516 * regformats/microblaze-with-stack-protect.dat: New file.
1517 * regformats/microblaze.dat: New file.
1518 * doc/gdb.texinfo (MicroBlaze Features): Added.
1520 2014-07-18 Tom Tromey <tromey@redhat.com>
1522 * exec.c (exec_ops): Now static.
1523 * exec.h (exec_ops): Don't declare.
1525 2014-07-18 Tom Tromey <tromey@redhat.com>
1527 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1528 to find_target_beneath.
1529 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1530 find_target_beneath.
1531 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1533 2014-07-18 Tom Tromey <tromey@redhat.com>
1536 * utils.c (quit): Use target_supports_terminal_ours.
1537 * target.h (target_supports_terminal_ours): Declare.
1538 * target.c (target_supports_delete_record): Don't check
1539 to_delete_record against NULL.
1540 (target_supports_terminal_ours): New function.
1542 2014-07-18 Tom Tromey <tromey@redhat.com>
1545 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1546 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1547 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1548 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1549 * windows-nat.c (windows_xfer_partial): Always delegate.
1550 * record-btrace.c (record_btrace_xfer_partial): Simplify
1552 (record_btrace_fetch_registers, record_btrace_store_registers)
1553 (record_btrace_prepare_to_store, record_btrace_resume)
1554 (record_btrace_wait, record_btrace_find_new_threads)
1555 (record_btrace_thread_alive): Likewise.
1556 * procfs.c (procfs_xfer_partial): Always delegate.
1557 * corelow.c (core_xfer_partial): Always delegate.
1558 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1560 2014-07-18 Tom Tromey <tromey@redhat.com>
1562 * exec.c (exec_make_note_section): Move earlier.
1564 2014-07-17 Doug Evans <dje@google.com>
1567 * maint.c (count_symtabs_and_blocks): Handle NULL
1568 current_program_space.
1569 (report_command_stats): Check global enabled flag in addition to
1570 recorded enabled flag.
1571 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1573 2014-07-16 Pedro Alves <palves@redhat.com>
1575 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1577 2014-07-16 Tom Tromey <tromey@redhat.com>
1579 * target.h (struct target_ops) <to_delete_record>: Reformat
1582 2014-07-16 Tom Tromey <tromey@redhat.com>
1584 * target-delegates.c: Rebuild.
1586 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1588 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1589 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1590 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1591 (avr_pointer_to_address): Likewise.
1592 (avr_address_class_type_flags): New function.
1593 (avr_address_class_type_flags_to_name): Likewise.
1594 (avr_address_class_name_to_type_flags): Likewise.
1595 (avr_gdbarch_init): Set address_class_type_flags,
1596 address_class_type_flags_to_name and
1597 address_class_name_to_type_flags.
1599 2014-07-15 Pedro Alves <palves@redhat.com>
1601 * linux-nat.c (kill_callback): Save errno and work with saved
1604 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1606 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1608 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1610 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1611 breakpoint support correctly.
1613 2014-07-14 Pedro Alves <palves@redhat.com>
1615 * utils.c (prompt_for_continue): Call target_terminal_ours.
1617 2014-07-14 Pedro Alves <palves@redhat.com>
1619 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1620 catch_errors. Don't re-enable stdin or notify observers where,
1622 (fetch_inferior_event_wrapper): Delete.
1624 2014-07-14 Pedro Alves <palves@redhat.com>
1627 * top.c: Include "inf-loop.h".
1628 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1630 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1632 (gdb_readline_wrapper): Store whether the target is async, and
1635 2014-07-14 Pedro Alves <palves@redhat.com>
1638 * top.c (gdb_readline_wrapper_line): Tweak comment.
1639 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1640 the input handler callback.
1642 2014-07-14 Pedro Alves <palves@redhat.com>
1645 * main.c: Include event-top.h.
1646 (handle_command_errors): New function.
1647 (catch_command_errors, catch_command_errors_const): Use it.
1649 2014-07-14 Pedro Alves <palves@redhat.com>
1651 * exceptions.c (catch_command_errors, catch_command_errors_const):
1653 * exceptions.h (catch_command_errors_ftype)
1654 (catch_command_errors_const_ftype): Moved to main.c.
1655 (catch_command_errors, catch_command_errors_const): Delete
1657 * main.c (catch_command_errors_ftype)
1658 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1659 (catch_command_errors, catch_command_errors_const)): Moved here
1660 from exceptions.c and make static.
1662 2014-07-14 Pedro Alves <palves@redhat.com>
1664 * exceptions.c (print_any_exception): Delete.
1665 (catch_exceptions_with_msg): Use exception_print instead of
1666 print_any_exception.
1667 (catch_errors): Use exception_fprintf instead of
1668 print_any_exception.
1669 (catch_command_errors, catch_command_errors_const): Use
1670 exception_print instead of print_any_exception.
1672 2014-07-14 Pedro Alves <palves@redhat.com>
1674 * infcall.c (run_inferior_call): Set 'sync_execution' while
1675 running the inferior call.
1677 2014-07-14 Pedro Alves <palves@redhat.com>
1679 * value.c (value_contents_equal): Delete function.
1680 * value.h (value_contents_equal): Delete declaration.
1682 2014-07-14 Tom Tromey <tromey@redhat.com>
1685 * gdbtypes.c (is_dynamic_type_internal): New function, from
1687 (is_dynamic_type): Rewrite.
1688 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1689 (resolve_dynamic_struct): Likewise.
1690 (resolve_dynamic_type_internal): New function, from
1691 resolve_dynamic_type.
1692 (resolve_dynamic_type): Rewrite.
1694 2014-07-14 Tom Tromey <tromey@redhat.com>
1696 * target.c (target_require_runnable): Also check record_stratum.
1699 2014-07-11 Yao Qi <yao@codesourcery.com>
1701 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1702 thumb_instruction_restores_sp return true.
1704 2014-07-11 Yao Qi <yao@codesourcery.com>
1706 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1707 (thumb_in_function_epilogue_p): Call
1708 thumb_instruction_restores_sp.
1710 2014-07-11 Yao Qi <yao@codesourcery.com>
1712 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1714 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1716 2014-07-11 Gary Benson <gbenson@redhat.com>
1718 * amd64-linux-nat.c (gdbcore.h): Remove include.
1719 (regset.h): Likewise.
1720 (nat/linux-btrace.h): Likewise.
1721 (btrace.h): Likewise.
1722 (gdb_assert.h): Likewise.
1723 (string.h): Likewise.
1724 (sys/uio.h): Likewise.
1725 (sys/debugreg.h): Likewise.
1726 (sys/syscall.h): Likewise.
1727 (sys/procfs.h): Likewise.
1728 (sys/user.h): Likewise.
1729 (asm/ptrace.h): Likewise.
1730 (i386-nat.h): Likewise.
1731 * i386-linux-nat.c (i386-nat.h): Likewise.
1732 (regset.h): Likewise.
1733 (target.h): Likewise.
1734 (linux-nat.h): Likewise.
1735 (nat/linux-btrace.h): Likewise.
1736 (btrace.h): Likewise.
1737 (gdb_assert.h): Likewise.
1738 (string.h): Likewise.
1739 (sys/uio.h): Likewise.
1740 (sys/user.h): Likewise.
1741 (sys/procfs.h): Likewise.
1742 (sys/reg.h): Likewise.
1743 (sys/debugreg.h): Likewise.
1744 (ORIG_EAX): Remove definition.
1746 2014-07-11 Gary Benson <gbenson@redhat.com>
1748 * i386-linux-nat.h: New file.
1749 * x86-linux-nat.h: Likewise.
1750 * x86-linux-nat.c: Likewise.
1751 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1752 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1753 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1754 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1755 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1756 (PTRACE_SETREGSET): Likewise.
1757 (arch_lwp_info): Now in x86-linux-nat.c.
1758 (have_ptrace_getregset): Now in x86-linux-nat.h.
1759 (x86_linux_dr_get): Now in x86-linux-nat.c.
1760 (x86_linux_dr_set): Likewise.
1761 (x86_linux_dr_get_addr): Likewise.
1762 (x86_linux_dr_get_control): Likewise.
1763 (x86_linux_dr_get_status): Likewise.
1764 (update_debug_registers_callback): Likewise.
1765 (x86_linux_dr_set_control): Likewise.
1766 (x86_linux_dr_set_addr): Likewise.
1767 (x86_linux_prepare_to_resume): Likewise.
1768 (x86_linux_new_thread): Likewise.
1769 (x86_linux_new_fork): Likewise.
1770 (x86_linux_get_thread_area): Likewise.
1771 (super_post_startup_inferior): Likewise.
1772 (x86_linux_child_post_startup_inferior): Likewise.
1773 (AMD64_LINUX_USER64_CS): Likewise.
1774 (AMD64_LINUX_X32_DS): Likewise.
1775 (x86_linux_read_description): Likewise.
1776 (x86_linux_enable_btrace): Likewise.
1777 (x86_linux_disable_btrace): Likewise.
1778 (x86_linux_teardown_btrace): Likewise.
1779 (x86_linux_read_btrace): Likewise.
1780 (x86_linux_create_target): Likewise.
1781 (x86_linux_add_target): Likewise.
1782 * i386-linux-nat.c (x86-linux-nat.h): New include.
1783 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1784 (PTRACE_SETREGSET): Likewise.
1785 (arch_lwp_info): Now in x86-linux-nat.c.
1786 (have_ptrace_getregset): Now in x86-linux-nat.h.
1787 (x86_linux_dr_get): Now in x86-linux-nat.c.
1788 (x86_linux_dr_set): Likewise.
1789 (x86_linux_dr_get_addr): Likewise.
1790 (x86_linux_dr_get_control): Likewise.
1791 (x86_linux_dr_get_status): Likewise.
1792 (update_debug_registers_callback): Likewise.
1793 (x86_linux_dr_set_control): Likewise.
1794 (x86_linux_dr_set_addr): Likewise.
1795 (x86_linux_prepare_to_resume): Likewise.
1796 (x86_linux_new_thread): Likewise.
1797 (x86_linux_new_fork): Likewise.
1798 (x86_linux_get_thread_area): Likewise.
1799 (super_post_startup_inferior): Likewise.
1800 (x86_linux_child_post_startup_inferior): Likewise.
1801 (AMD64_LINUX_USER64_CS): Likewise.
1802 (AMD64_LINUX_X32_DS): Likewise.
1803 (x86_linux_read_description): Likewise.
1804 (x86_linux_enable_btrace): Likewise.
1805 (x86_linux_disable_btrace): Likewise.
1806 (x86_linux_teardown_btrace): Likewise.
1807 (x86_linux_read_btrace): Likewise.
1808 (x86_linux_create_target): Likewise.
1809 (x86_linux_add_target): Likewise.
1811 2014-07-11 Gary Benson <gbenson@redhat.com>
1813 * amd64-linux-nat.c: Comment and whitespace changes.
1814 * i386-linux-nat.c: Comment and whitespace changes.
1816 2014-07-11 Gary Benson <gbenson@redhat.com>
1818 * amd64-linux-nat.c (x86_linux_create_target): New function.
1819 (x86_linux_add_target): Likewise.
1820 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1821 * i386-linux-nat.c (x86_linux_create_target): New function.
1822 (x86_linux_add_target): Likewise.
1823 (_initialize_i386_linux_nat): Delegate to the above new functions.
1825 2014-07-11 Gary Benson <gbenson@redhat.com>
1827 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1828 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1829 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1830 (ps_get_thread_area): Delegate to the above.
1832 2014-07-11 Gary Benson <gbenson@redhat.com>
1834 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1835 x86_linux_read_description. All uses updated. amd64-specific
1836 code conditionalized. Conditionalized i386-specific code added.
1837 Redundant cast removed.
1838 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1839 x86_linux_read_description. All uses updated. i386-specific
1840 code conditionalized. Conditionalized amd64-specific code added.
1841 One sizeof replaced with the actual type it is describing.
1843 2014-07-11 Gary Benson <gbenson@redhat.com>
1845 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1846 x86_linux_dr_get. All uses updated.
1847 (amd64_linux_dr_set): Renamed to
1848 x86_linux_dr_set. All uses updated.
1849 (amd64_linux_dr_get_addr): Renamed to
1850 x86_linux_dr_get_addr. All uses updated.
1851 (amd64_linux_dr_get_control): Renamed to
1852 x86_linux_dr_get_control. All uses updated.
1853 (amd64_linux_dr_get_status): Renamed to
1854 x86_linux_dr_get_status. All uses updated.
1855 (amd64_linux_dr_set_control): Renamed to
1856 x86_linux_dr_set_control. All uses updated.
1857 (amd64_linux_dr_set_addr): Renamed to
1858 x86_linux_dr_set_addr. All uses updated.
1859 (amd64_linux_prepare_to_resume): Renamed to
1860 x86_linux_prepare_to_resume. All uses updated.
1861 (amd64_linux_new_thread): Renamed to
1862 x86_linux_new_thread. All uses updated.
1863 (amd64_linux_new_fork): Renamed to
1864 x86_linux_new_fork. All uses updated.
1865 (amd64_linux_child_post_startup_inferior): Renamed to
1866 x86_linux_child_post_startup_inferior. All uses updated.
1867 (amd64_linux_enable_btrace): Renamed to
1868 x86_linux_enable_btrace. All uses updated.
1869 (amd64_linux_disable_btrace): Renamed to
1870 x86_linux_disable_btrace. All uses updated.
1871 (amd64_linux_teardown_btrace): Renamed to
1872 x86_linux_teardown_btrace. All uses updated.
1873 (amd64_linux_read_btrace): Renamed to
1874 x86_linux_read_btrace. All uses updated.
1875 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1876 x86_linux_dr_get. All uses updated.
1877 (i386_linux_dr_set): Renamed to
1878 x86_linux_dr_set. All uses updated.
1879 (i386_linux_dr_get_addr): Renamed to
1880 x86_linux_dr_get_addr. All uses updated.
1881 (i386_linux_dr_get_control): Renamed to
1882 x86_linux_dr_get_control. All uses updated.
1883 (i386_linux_dr_get_status): Renamed to
1884 x86_linux_dr_get_status. All uses updated.
1885 (i386_linux_dr_set_control): Renamed to
1886 x86_linux_dr_set_control. All uses updated.
1887 (i386_linux_dr_set_addr): Renamed to
1888 x86_linux_dr_set_addr. All uses updated.
1889 (i386_linux_prepare_to_resume): Renamed to
1890 x86_linux_prepare_to_resume. All uses updated.
1891 (i386_linux_new_thread): Renamed to
1892 x86_linux_new_thread. All uses updated.
1893 (i386_linux_new_fork): Renamed to
1894 x86_linux_new_fork. All uses updated.
1895 (i386_linux_child_post_startup_inferior): Renamed to
1896 x86_linux_child_post_startup_inferior. All uses updated.
1897 (i386_linux_enable_btrace): Renamed to
1898 x86_linux_enable_btrace. All uses updated.
1899 (i386_linux_disable_btrace): Renamed to
1900 x86_linux_disable_btrace. All uses updated.
1901 (i386_linux_teardown_btrace): Renamed to
1902 x86_linux_teardown_btrace. All uses updated.
1903 (i386_linux_read_btrace): Renamed to
1904 x86_linux_read_btrace. All uses updated.
1906 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1908 * remote.c (extended_remote_post_attach): New function.
1909 (init_extended_remote_ops): Install it as to_post_attach method.
1911 2014-07-09 Pedro Alves <palves@redhat.com>
1913 * infcmd.c (attach_command_post_wait): Don't call
1914 target_terminal_inferior here.
1915 (attach_command): Call it here instead.
1917 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1919 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1921 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1922 from varobj.c, with additional checks.
1923 (c_varobj_ops): Fill in is_path_expr_parent field.
1924 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1925 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1927 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1929 (varobj_default_is_path_expr_parent): New function.
1930 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1931 (varobj_default_is_path_expr_parent): Declare new function.
1933 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1935 * infcmd.c (finish_backward): Turn internal error into normal error.
1937 2014-07-07 Pedro Alves <palves@redhat.com>
1940 * remote.c (async_handle_remote_sigint)
1941 (async_handle_remote_sigint_twice): Call
1942 gdb_call_async_signal_handler instead of
1943 mark_async_signal_handler.
1945 2014-07-07 Tom Tromey <tromey@redhat.com>
1947 * target-delegates.c: Rebuild.
1948 * target.c (target_info_record): Remove.
1949 * record.c (info_record_command): Unconditionally call
1951 * target.h (struct target_ops) <to_info_record>: Use
1952 TARGET_DEFAULT_IGNORE.
1953 (target_info_record): Remove.
1955 2014-07-07 Tom Tromey <tromey@redhat.com>
1957 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1958 TARGET_DEFAULT_NORETURN.
1959 * target.c (generic_tls_error): New function.
1960 (target_translate_tls_address): Don't search target stack.
1961 * target-delegates.c: Rebuild.
1962 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1964 * linux-thread-db.c (thread_db_get_thread_local_address):
1965 Unconditionally call beneath target.
1967 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1969 * cli/cli-logging.c (pop_output_files): Assign targerr to
1972 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1974 * MAINTAINERS (Write After Approval): Update my email address.
1976 2014-07-02 Gary Benson <gbenson@redhat.com>
1978 * proc-service.c (ps_xfer_memory): Update comment.
1979 (ps_pstop): Remove unused function.
1980 (ps_pcontinue): Likewise.
1981 (ps_lstop): Likewise.
1982 (ps_lcontinue): Likewise.
1983 (ps_lgetxregsize): Likewise.
1984 (ps_lgetxregs): Likewise.
1985 (ps_lsetxregs): Likewise.
1986 (ps_plog): Likewise.
1987 (ps_ptread): Likewise.
1988 (ps_ptwrite): Likewise.
1990 2014-07-01 Mark Wielaard <mjw@redhat.com>
1992 * dwarf2read.c (add_array_cv_type): New function.
1993 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1994 (read_tag_volatile_type): Likewise.
1996 2014-07-01 Tom Tromey <tromey@redhat.com>
1998 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1999 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2000 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2001 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2002 * command.h (cmd_cfunc_ftype): Move earlier.
2003 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2004 (add_com, add_info): Use cmd_cfunc_ftype.
2006 2014-06-30 Tom Tromey <tromey@redhat.com>
2008 * symtab.c (operator_chars): Make parameters and return type
2010 (file_matches): Make "files" const.
2011 (struct search_symbols_data) <files>: Now const.
2012 (search_symbols): Make "regexp" and "files" parameters const.
2014 (symtab_symbol_info): Remove cast.
2015 (rbreak_command): Update.
2016 * symtab.h (search_symbols): Update.
2018 2014-06-27 Yao Qi <yao@codesourcery.com>
2020 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2021 Change parameter type to 'struct thread_info *'. Caller
2023 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2025 * dummy-frame.c (struct dummy_frame_id): New.
2026 (dummy_frame_id_eq): New function.
2027 (struct dummy_frame) <id>: Change its type to 'struct
2029 (dummy_frame_push): Add parameter ptid and save it in
2031 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2033 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2035 (lookup_dummy_frame): Change parameter type to 'struct
2036 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2037 instead of frame_id_eq.
2038 (dummy_frame_pop): Add parameter ptid. Callers updated.
2039 Update comments. Compose dummy_frame_id and pass it to
2041 (dummy_frame_discard): Add parameter ptid.
2042 (dummy_frame_sniffer): Compose dummy_frame_id and call
2043 dummy_frame_id_eq instead of frame_id_eq.
2044 (fprint_dummy_frames): Print ptid.
2045 * dummy-frame.h: Remove comments.
2046 (dummy_frame_push): Add ptid in declaration.
2047 (dummy_frame_pop, dummy_frame_discard): Likewise.
2049 2014-06-26 Tom Tromey <tromey@redhat.com>
2051 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2052 * command.h (error_no_arg): Update.
2054 2014-06-26 Tom Tromey <tromey@redhat.com>
2056 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2057 (do_show_command): Make "arg" const.
2058 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2060 2014-06-26 Tom Tromey <tromey@redhat.com>
2062 * record-full.c (record_full_get_bookmark): Make "args" const.
2063 (record_full_goto_bookmark): Make "raw_bookmark" const.
2064 * record.c (record_goto): New function.
2065 (cmd_record_goto): Use it. Now static.
2066 * record.h (record_goto): Declare.
2067 (cmd_record_goto): Remove declaration.
2068 * target-delegates.c: Rebuild.
2069 * target.h (struct target_ops) <to_get_bookmark,
2070 to_goto_bookmark>: Make parameter const.
2072 2014-06-26 Tom Tromey <tromey@redhat.com>
2074 * defs.h (generic_load): Update.
2075 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2076 * monitor.c (monitor_load): Make "args" const.
2077 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2078 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2080 (mips_load): Make "file" const.
2081 * remote-sim.c (gdbsim_load): Make "args" const.
2082 * remote.c (remote_load): Make "name" const.
2083 * symfile.c (generic_load): Make "args" const.
2084 * target-delegates.c: Rebuild.
2085 * target.c (target_load): Make "arg" const.
2086 (debug_to_load): Make "args" const.
2087 * target.h (struct target_ops) <to_load>: Make parameter const.
2088 (target_load): Update.
2090 2014-06-26 Tom Tromey <tromey@redhat.com>
2093 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2094 (dwarf2_physname, read_partial_die)
2095 (guess_partial_die_structure_name, fixup_partial_die)
2096 (guess_full_die_structure_name, anonymous_struct_prefix)
2097 (dwarf2_name): Use per-BFD obstack.
2099 2014-06-26 Yao Qi <yao@codesourcery.com>
2101 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2102 dummyframe and this_id into inner block below.
2104 2014-06-26 Yao Qi <yao@codesourcery.com>
2106 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2107 with "signal_pass[0]" in the initialization of signal_pass.
2109 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2111 * record-btrace.c (record_btrace_generating_corefile)
2112 (record_btrace_prepare_to_generate_core)
2113 (record_btrace_done_generating_core): New.
2114 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2115 (record_btrace_store_registers, record_btrace_prepare_to_store):
2116 Forward request when generating a core file.
2117 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2118 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2119 to_done_generating_core.
2121 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2123 * target.h (target_ops) <to_prepare_to_generate_core>
2124 <to_done_generating_core>: New.
2125 (target_prepare_to_generate_core, target_done_generating_core): New.
2126 * target.c (target_prepare_to_generate_core)
2127 (target_done_generating_core): New.
2128 * target-delegates.c: Regenerate.
2129 * gcore.c: (write_gcore_file): Rename to ...
2130 (write_gcore_file_1): ...this.
2131 (write_gcore_file): Call target_prepare_to_generate_core
2132 and target_done_generating_core.
2134 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2136 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2137 * gcore.c (write_gcore_file): Free memory returned from
2138 make_corefile_notes.
2139 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2140 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2142 2014-06-24 Yao Qi <yao@codesourcery.com>
2144 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2145 (arm_linux_init_abi): Set skip_trampoline_code with
2146 gdbarch_skip_trampoline_code instead of
2147 find_solib_trampoline_target.
2149 2014-06-24 Yao Qi <yao@codesourcery.com>
2151 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2152 arm_skip_bx_reg returns non-zero.
2154 2014-06-24 Yao Qi <yao@codesourcery.com>
2156 * arm-tdep.c (arm_skip_bx_reg): New function.
2157 (arm_skip_stub): Call arm_skip_bx_reg.
2159 2014-06-23 Don Breazeal <donb@codesourcery.com>
2161 * MAINTAINERS: Add myself as write-after-approval maintainer.
2163 2014-06-23 Pedro Alves <palves@redhat.com>
2165 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2166 DR_CONTROL before setting DR0..DR3.
2167 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2168 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2169 bits of DR_CONTROL related to the debug register slot being
2170 disabled. If all slots are vacant, clear local slowdown as well,
2171 and assert DR_CONTROL is 0.
2173 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2175 * python/lib/gdb/command/xmethods.py
2176 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2177 current progspace only if the string "progspace" matches LOCUS_RE.
2179 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2181 Fix --with-system-readline with readline-6.3 patch 5.
2182 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2183 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2186 2014-06-20 Tom Tromey <tromey@redhat.com>
2188 * dwarf2read.c (dw2_get_real_path): Use correct type in
2190 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2192 2014-06-20 Gary Benson <gbenson@redhat.com>
2194 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2195 * common/glibc_thread_db.h: Likewise.
2196 * common/i386-cpuid.h: Likewise.
2197 * common/i386-gcc-cpuid.h: Likewise.
2198 * common/linux-btrace.h: Likewise.
2199 * common/linux-osdata.h: Likewise.
2200 * common/linux-procfs.h: Likewise.
2201 * common/linux-ptrace.h: Likewise.
2202 * common/mips-linux-watch.h: Likewise.
2203 * common/linux-btrace.c: Moved to nat.
2204 * common/linux-osdata.c: Likewise.
2205 * common/linux-procfs.c: Likewise.
2206 * common/linux-ptrace.c: Likewise.
2207 * common/mips-linux-watch.c: Likewise.
2208 * nat/gdb_thread_db.h: Moved from common.
2209 * nat/glibc_thread_db.h: Likewise.
2210 * nat/i386-cpuid.h: Likewise.
2211 * nat/i386-gcc-cpuid.h: Likewise.
2212 * nat/linux-btrace.c: Likewise.
2213 * nat/linux-btrace.h: Likewise.
2214 * nat/linux-osdata.c: Likewise.
2215 * nat/linux-osdata.h: Likewise.
2216 * nat/linux-procfs.c: Likewise.
2217 * nat/linux-procfs.h: Likewise.
2218 * nat/linux-ptrace.c: Likewise.
2219 * nat/linux-ptrace.h: Likewise.
2220 * nat/mips-linux-watch.c: Likewise.
2221 * nat/mips-linux-watch.h: Likewise.
2222 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2223 (object file files): Reordered.
2224 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2225 of glibc_thread_db.h.
2227 2014-06-20 Gary Benson <gbenson@redhat.com>
2229 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2230 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2231 (i386_dr_low): Likewise.
2232 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2233 (i386_dr_low_set_addr): Likewise.
2234 (i386_dr_low_get_addr): Likewise.
2235 (i386_dr_low_can_set_control): Likewise.
2236 (i386_dr_low_set_control): Likewise.
2237 (i386_dr_low_get_control): Likewise.
2238 (i386_dr_low_get_status): Likewise.
2239 (i386_get_debug_register_length): Likewise.
2240 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2241 (i386_dr_low): Likewise.
2242 * nat/i386-dregs.c (i386-low.h): Remove include.
2243 (i386-nat.h): Likewise.
2244 (nat/i386-dregs.h): New include.
2245 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2246 (i386_dr_low_set_addr): Likewise.
2247 (i386_dr_low_get_addr): Likewise.
2248 (i386_dr_low_can_set_control): Likewise.
2249 (i386_dr_low_set_control): Likewise.
2250 (i386_dr_low_get_control): Likewise.
2251 (i386_dr_low_get_status): Likewise.
2252 (i386_get_debug_register_length): Likewise.
2253 (debug_hw_points): Likewise.
2255 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2257 * Makefile.in (SFILES): Add d-exp.y.
2258 (YYFILES): Add d-exp.c.
2259 (YYOBJ): Add d-exp.o.
2260 (local-maintainer-clean): Delete d-exp.c.
2261 * d-exp.y: New file.
2262 * d-lang.h (d_parse): New declaration.
2263 (d_error): New declaration.
2264 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2265 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2266 PREC_ORDER operators.
2267 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2269 2014-06-19 Yao Qi <yao@codesourcery.com>
2271 * gdbthread.h (any_running): Remove the declaration.
2272 * thread.c (any_running): Remove.
2274 2014-06-19 Yao Qi <yao@codesourcery.com>
2276 * gdbthread.h (struct thread_info) <state>: Change its type to
2277 'enum thread_state'. Update comments.
2279 2014-06-19 Pedro Alves <palves@redhat.com>
2281 * gdbthread.h (ALL_THREADS): Delete.
2282 (ALL_NON_EXITED_THREADS): New macro.
2283 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2284 instead of ALL_THREADS.
2285 * infrun.c (find_thread_needs_step_over)
2286 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2287 instead of ALL_THREADS.
2288 * record-btrace.c (record_btrace_open)
2289 (record_btrace_stop_recording, record_btrace_close)
2290 (record_btrace_is_replaying, record_btrace_resume)
2291 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2292 * remote.c (append_pending_thread_resumptions): Likewise.
2293 * thread.c (thread_apply_all_command): Likewise.
2295 2014-06-19 Gary Benson <gbenson@redhat.com>
2297 * i386-nat.c (i386_stopped_by_watchpoint):
2298 Use i386_dr_stopped_by_watchpoint.
2299 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2300 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2302 2014-06-19 Gary Benson <gbenson@redhat.com>
2304 * nat/i386-dregs.c: New file.
2305 * Makefile.in (i386-dregs.o): New rule.
2306 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2307 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2308 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2309 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2310 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2311 * config/i386/go32.mh (NATDEPFILES): Likewise.
2312 * config/i386/linux.mh (NATDEPFILES): Likewise.
2313 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2314 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2315 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2316 * i386-nat.h (debug_hw_points): New declaration.
2317 * i386-nat.c (breakpoint.h): Remove include.
2318 (command.h): Likewise.
2319 (target.h): Likewise.
2320 (gdb_assert.h): Likewise.
2321 (debug_hw_points): Made nonstatic.
2322 (debug_printf): Now in i386-dregs.c.
2323 (TARGET_HAS_DR_LEN_8): Likewise.
2324 (DR_CONTROL_SHIFT): Likewise.
2325 (DR_CONTROL_SIZE): Likewise.
2326 (DR_RW_EXECUTE): Likewise.
2327 (DR_RW_WRITE): Likewise.
2328 (DR_RW_READ): Likewise.
2329 (DR_RW_IORW): Likewise.
2330 (DR_LEN_1): Likewise.
2331 (DR_LEN_2): Likewise.
2332 (DR_LEN_4): Likewise.
2333 (DR_LEN_8): Likewise.
2334 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2335 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2336 (DR_ENABLE_SIZE): Likewise.
2337 (DR_LOCAL_SLOWDOWN): Likewise.
2338 (DR_GLOBAL_SLOWDOWN): Likewise.
2339 (DR_CONTROL_RESERVED): Likewise.
2340 (I386_DR_CONTROL_MASK): Likewise.
2341 (I386_DR_VACANT): Likewise.
2342 (I386_DR_LOCAL_ENABLE): Likewise.
2343 (I386_DR_GLOBAL_ENABLE): Likewise.
2344 (I386_DR_DISABLE): Likewise.
2345 (I386_DR_SET_RW_LEN): Likewise.
2346 (I386_DR_GET_RW_LEN): Likewise.
2347 (I386_DR_WATCH_HIT): Likewise.
2348 (i386_wp_op_t): Likewise.
2349 (i386_show_dr): Likewise.
2350 (i386_length_and_rw_bits): Likewise.
2351 (i386_insert_aligned_watchpoint): Likewise.
2352 (i386_remove_aligned_watchpoint): Likewise.
2353 (i386_handle_nonaligned_watchpoint): Likewise.
2354 (i386_update_inferior_debug_regs): Likewise.
2355 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2356 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2357 (i386_region_ok_for_watchpoint):
2358 Use i386_dr_region_ok_for_watchpoint.
2359 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2361 2014-06-19 Gary Benson <gbenson@redhat.com>
2363 * i386-nat.c (i386_insert_hw_breakpoint): Use
2364 i386_insert_watchpoint.
2365 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2367 2014-06-19 Gary Benson <gbenson@redhat.com>
2369 * i386-nat.c (i386_dr_show): Renamed to
2370 i386_show_dr and made static. All uses updated.
2371 (i386_dr_length_and_rw_bits): Renamed to
2372 i386_length_and_rw_bits and made static.
2374 (i386_dr_insert_aligned_watchpoint): Renamed to
2375 i386_insert_aligned_watchpoint and made static.
2377 (i386_dr_remove_aligned_watchpoint): Renamed to
2378 i386_remove_aligned_watchpoint and made static.
2380 (i386_dr_update_inferior_debug_regs): Renamed to
2381 i386_update_inferior_debug_regs and made static.
2383 * nat/i386-dregs.h (i386_dr_show): Removed.
2384 (i386_dr_length_and_rw_bits): Likewise.
2385 (i386_dr_insert_aligned_watchpoint): Likewise.
2386 (i386_dr_remove_aligned_watchpoint): Likewise.
2387 (i386_dr_update_inferior_debug_regs): Likewise.
2389 2014-06-19 Gary Benson <gbenson@redhat.com>
2391 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2392 * configure: Regenerate.
2393 * config.in: Likewise.
2394 * main.c (signal.h): New include.
2395 (setup_alternate_signal_stack): New function.
2396 (captured_main): Call the above.
2397 * cp-support.c (signal.h): New include.
2398 (catch_demangler_crashes): New flag.
2399 (SIGJMP_BUF): New define.
2400 (SIGSETJMP): Likewise.
2401 (SIGLONGJMP): Likewise.
2402 (gdb_demangle_jmp_buf): New static global.
2403 (gdb_demangle_attempt_core_dump): Likewise.
2404 (gdb_demangle_signal_handler): New function.
2405 (gdb_demangle): If catch_demangler_crashes is set, install the
2406 above signal handler before calling bfd_demangle, and restore
2407 the original signal handler afterwards. Display the offending
2408 symbol and call demangler_warning the first time a segmentation
2410 (_initialize_cp_support): New maint set/show command.
2412 2014-06-19 Gary Benson <gbenson@redhat.com>
2414 * utils.h (resource_limit_kind): New enum.
2415 (can_dump_core): New declaration.
2416 (warn_cant_dump_core): Likewise.
2417 (dump_core): Likewise.
2418 * utils.c (dump_core): Made nonstatic. Added new
2419 parameter "limit_kind".
2420 (can_dump_core): Made nonstatic. Moved printing code to...
2421 (warn_cant_dump_core): New function.
2422 (can_dump_core_warn): Likewise.
2423 (internal_vproblem): Replace calls to can_dump_core with
2424 calls to can_dump_core_warn. Supply new argument to each.
2426 2014-06-19 Gary Benson <gbenson@redhat.com>
2428 * utils.h (demangler_vwarning): New declaration.
2429 (demangler_warning): Likewise.
2430 * utils.c (struct internal_problem)
2431 <user_settable_should_quit>: New field.
2432 <user_settable_should_dump_core>: Likewise
2433 (internal_error_problem): Add values for above new fields.
2434 (internal_warning_problem): Likewise.
2435 (demangler_warning_problem): New static global.
2436 (demangler_vwarning): New function.
2437 (demangler_warning): Likewise.
2438 (add_internal_problem_command): Selectively add commands.
2439 (_initialize_utils): New internal problem command.
2440 * maint.c (maintenance_demangler_warning): New function.
2441 (_initialize_maint_cmds): New command.
2443 2014-06-18 Tom Tromey <tromey@redhat.com>
2445 * f-valprint.c (info_common_command_for_block): Update.
2446 * symtab.h (struct general_symbol_info) <common_block>: Now
2449 2014-06-18 Tom Tromey <tromey@redhat.com>
2451 * symtab.h (struct symtab) <blockvector>: Now const.
2452 * ada-lang.c (ada_add_global_exceptions): Update.
2453 * buildsym.c (augment_type_symtab): Update.
2454 * dwarf2read.c (dw2_lookup_symbol): Update.
2455 * jit.c (finalize_symtab): Update.
2456 * jv-lang.c (add_class_symtab_symbol): Update.
2457 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2459 * objfiles.c (objfile_relocate1): Update.
2460 * psymtab.c (lookup_symbol_aux_psymtabs)
2461 (maintenance_check_psymtabs): Update.
2462 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2464 * spu-tdep.c (spu_catch_start): Update.
2465 * symmisc.c (dump_symtab_1): Update.
2466 * symtab.c (lookup_global_symbol_from_objfile)
2467 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2468 (basic_lookup_transparent_type_quick)
2469 (basic_lookup_transparent_type, find_pc_sect_symtab)
2470 (find_pc_sect_line, search_symbols): Update.
2471 * block.c (find_block_in_blockvector): Make "bl" const.
2472 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2474 (blockvector_contains_pc): Make "bv" const.
2475 (block_for_pc_sect): Update.
2476 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2477 (blockvector_contains_pc): Update.
2478 * breakpoint.c (resolve_sal_pc): Update.
2479 * inline-frame.c (block_starting_point_at): Update.
2481 2014-06-18 Tom Tromey <tromey@redhat.com>
2483 * completer.c (complete_line): Make "line_buffer" const.
2484 * completer.h (complete_line): Update.
2486 2014-06-18 Tom Tromey <tromey@redhat.com>
2488 * symtab.c (add_macro_name): Remove unneeded cast.
2490 2014-06-18 Tom Tromey <tromey@redhat.com>
2492 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2493 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2495 2014-06-18 Tom Tromey <tromey@redhat.com>
2497 * probe.c (info_probes_for_ops): Make "arg" const.
2498 * probe.h (info_probes_for_ops): Update.
2500 2014-06-18 Tom Tromey <tromey@redhat.com>
2502 * varobj.c (varobj_create): Update.
2503 * valops.c (value_of_this): Update.
2504 * tracepoint.c (add_local_symbols, scope_info): Update.
2505 * symtab.h (struct general_symbol_info) <block>: Now const.
2506 * symtab.c (skip_prologue_sal)
2507 (default_make_symbol_completion_list_break_on)
2508 (skip_prologue_using_sal): Update.
2509 * stack.h (iterate_over_block_locals)
2510 (iterate_over_block_local_vars): Update.
2511 * stack.c (print_frame_args): Update.
2512 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2514 (get_selected_block): Make return type const.
2515 * python/py-frame.c (frapy_block): Update.
2516 * python/py-block.c (gdbpy_block_for_pc): Update.
2517 * p-exp.y (%union) <bval>: Now const.
2518 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2519 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2520 * m2-exp.y (%union) <bval>: Now const.
2521 * linespec.c (get_current_search_block): Make return type const.
2522 (create_sals_line_offset, find_label_symbols): Update.
2523 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2525 (block_starting_point_at): Make "block" const.
2526 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2527 (check_exception_resume): Update.
2528 * guile/scm-frame.c (gdbscm_frame_block): Update.
2529 * guile/scm-block.c (gdbscm_lookup_block): Update.
2530 * frame.h (get_frame_block): Update.
2531 (get_selected_block): Make return type const.
2532 * frame.c (frame_id_inner): Update.
2533 * f-valprint.c (info_common_command_for_block)
2534 (info_common_command): Update.
2535 * dwarf2loc.c (dwarf2_find_location_expression)
2536 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2537 (locexpr_describe_location_piece): Update.
2538 * c-exp.y (%union) <bval>: Now const.
2539 * breakpoint.c (resolve_sal_pc): Update.
2540 * blockframe.c (get_frame_block):Make return type const.
2541 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2542 (block_innermost_frame): Update.
2543 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2544 (block_for_pc, block_for_pc_sect): Update.
2545 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2547 (block_for_pc_sect, block_for_pc): Make return type const.
2548 * ax-gdb.c (gen_expr): Update.
2549 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2550 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2551 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2552 (ada_read_var_value): Update.
2553 * ada-exp.y (struct name_info) <block>: Now const.
2555 (block_lookup): Constify.
2557 2014-06-18 Gary Benson <gbenson@redhat.com>
2559 * nat/i386-dregs.h: New file.
2560 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2561 * i386-nat.h (i386-dregs.h): New include.
2562 (DR_FIRSTADDR): Now in i386-dregs.h.
2563 (DR_LASTADDR): Likewise.
2564 (DR_NADDR): Likewise.
2565 (DR_STATUS): Likewise.
2566 (DR_CONTROL): Likewise.
2567 (i386_debug_reg_state): Likewise.
2568 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2570 2014-06-18 Don Breazeal <donb@codesourcery.com>
2572 * breakpoint.c (set_longjmp_breakpoint): Call
2573 momentary_breakpoint_from_master with additional argument.
2574 (set_longjmp_breakpoint_for_call_dummy): Call
2575 momentary_breakpoint_from_master with additional argument.
2576 (set_std_terminate_breakpoint): Call
2577 momentary_breakpoint_from_master with additional argument.
2578 (momentary_breakpoint_from_master): Add argument to function
2579 definition and use it to initialize structure member flag.
2580 (clone_momentary_breakpoint): Call
2581 momentary_breakpoint_from_master with additional argument.
2582 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2583 member flags set in momentary_breakpoint_from_master.
2585 2014-06-18 Gary Benson <gbenson@redhat.com>
2587 * i386-nat.c (i386_show_dr): Renamed to
2588 i386_dr_show and made nonstatic. All uses updated.
2589 (i386_length_and_rw_bits): Renamed to
2590 i386_dr_length_and_rw_bits and made nonstatic.
2592 (i386_insert_aligned_watchpoint): Renamed to
2593 i386_dr_insert_aligned_watchpoint and made nonstatic.
2595 (i386_remove_aligned_watchpoint): Renamed to
2596 i386_dr_remove_aligned_watchpoint and made nonstatic.
2598 (i386_update_inferior_debug_regs): Renamed to
2599 i386_dr_update_inferior_debug_regs and made nonstatic.
2602 2014-06-18 Gary Benson <gbenson@redhat.com>
2604 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2605 (i386_dr_low_can_set_control): Likewise.
2606 (i386_dr_low_set_addr): Likewise.
2607 (i386_dr_low_set_control): Likewise.
2608 (i386_dr_low_get_addr): Likewise.
2609 (i386_dr_low_get_status): Likewise.
2610 (i386_dr_low_get_control): Likewise.
2611 (i386_insert_aligned_watchpoint): Use new macros.
2612 (i386_update_inferior_debug_regs): Likewise.
2613 (i386_stopped_data_address): Likewise.
2615 2014-06-18 Gary Benson <gbenson@redhat.com>
2617 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2618 New parameter. All uses updated.
2620 2014-06-18 Gary Benson <gbenson@redhat.com>
2622 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2625 2014-06-18 Gary Benson <gbenson@redhat.com>
2627 * i386-nat.c (debug_printf): New macro.
2628 (i386_get_debug_register_length): Likewise.
2629 (TARGET_HAS_DR_LEN_8): Use above macro.
2630 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2631 and printf_unfiltered. Use phex to format values.
2633 2014-06-18 Gary Benson <gbenson@redhat.com>
2635 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2638 2014-06-18 Gary Benson <gbenson@redhat.com>
2640 * i386-nat.c: Comment changes.
2642 2014-06-18 Gary Benson <gbenson@redhat.com>
2644 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2646 2014-06-18 Gary Benson <gbenson@redhat.com>
2648 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2649 (i386_insert_aligned_watchpoint): Likewise.
2650 (i386_remove_aligned_watchpoint): Likewise.
2651 (i386_handle_nonaligned_watchpoint): Likewise.
2653 2014-06-18 Gary Benson <gbenson@redhat.com>
2655 * i386-nat.c: Whitespace changes.
2657 2014-06-17 Samuel Bronson <naesten@gmail.com>
2659 * MAINTAINERS: Update Roland McGrath's email address.
2660 Thanks to Sergio Durigan Junior for pointing out that he left
2661 Red Hat a while ago, and giving me a current address.
2663 2014-06-17 Tom Tromey <tromey@redhat.com>
2665 * utils.h (savestring): Remove declaration.
2667 2014-06-17 Tom Tromey <tromey@redhat.com>
2669 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2671 2014-06-16 Keith Seitz <keiths@redhat.com>
2674 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2675 to update the varobj if inferior_ptid is null_ptid.
2677 2014-06-16 Tom Tromey <tromey@redhat.com>
2679 * target.h (struct target_ops) <to_info_proc>: Make parameter
2681 (target_info_proc): Update.
2682 * target.c (target_info_proc): Make "args" const.
2683 * procfs.c (procfs_info_proc): Update.
2684 * linux-tdep.c (linux_info_proc): Update.
2685 (linux_core_info_proc_mappings): Make "args" const.
2686 (linux_core_info_proc): Update.
2687 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2688 * gdbarch.c: Rebuild.
2689 * gdbarch.h: Rebuild.
2690 * corelow.c (core_info_proc): Update.
2692 2014-06-16 Tom Tromey <tromey@redhat.com>
2694 * target.h (struct target_ops) <to_disconnect>: Make parameter
2696 (target_disconnect): Update.
2697 * target.c (target_disconnect): Make "args" const.
2698 * target-delegates.c: Rebuild.
2699 * remote.c (remote_disconnect): Update.
2700 * record.h (record_disconnect): Update.
2701 * record.c (record_disconnect): Update.
2702 * inf-child.c (inf_child_disconnect): Update.
2704 2014-06-16 Tom Tromey <tromey@redhat.com>
2706 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2707 * target.c (debug_to_rcmd, default_rcmd): Update.
2708 * target-delegates.c: Rebuild.
2709 * remote.c (remote_rcmd): Update.
2710 * monitor.c (monitor_rcmd): Update.
2712 2014-06-16 Pedro Alves <palves@redhat.com>
2714 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2715 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2716 have OBJF_SHARED set.
2717 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2718 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2719 instead of OBJF_USERLOADED.
2720 * objfiles.h (OBJF_SHARED): Update comment.
2721 (userloaded_objfile_contains_address_p): Rename to ...
2722 (shared_objfile_contains_address_p): ... this, and update
2724 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2726 (remove_symbol_file_command): Skip objfiles that don't have
2729 2014-06-16 Tom Tromey <tromey@redhat.com>
2731 * minsyms.h (prim_record_minimal_symbol)
2732 (prim_record_minimal_symbol_and_info): Update comments.
2734 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2736 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2737 or --without-guile, according to how GDB was built.
2739 2014-06-13 Tom Tromey <tromey@redhat.com>
2741 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2743 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2745 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2747 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2748 help_list.Pass all_commands, not -1, to help_list.
2749 * cli/cli-dump.c (dump_command, append_command)
2750 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2751 (binary_dump_command, binary_append_command): Pass all_commands,
2752 not -1, to help_list.
2753 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2755 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2757 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2759 * top.c (set_history): Pass all_commands, not -1, to help_list.
2760 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2761 all_commands, not -1, to help_list.
2762 * symfile.c (overlay_command): Pass all_commands, not -1, to
2764 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2766 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2768 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2770 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2771 not -1, to help_list.
2772 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2773 not -1, to help_list.
2774 * maint.c (maintenance_command, maintenance_info_command)
2775 (maintenance_print_command, maintenance_set_cmd): Pass
2776 all_commands, not -1, to help_list.
2777 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2779 * language.c (set_check): Pass all_commands, not -1, to help_list.
2780 * infcmd.c (unset_command): Pass all_commands, not -1, to
2782 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2784 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2786 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2788 * breakpoint.c (save_command): Pass all_commands, not -1, to
2790 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2791 all_commands, not -1, to help_list.
2793 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2795 * regcache.c (struct register_to_invalidate): New structure.
2796 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2798 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2800 2014-06-12 Yao Qi <yao@codesourcery.com>
2802 * varobj.c (varobj_get_num_children): Call
2803 varobj_is_dynamic_p.
2804 (varobj_list_children): Likewise.
2805 (varobj_update): Likewise. Update comments.
2807 2014-06-12 Yao Qi <yao@codesourcery.com>
2809 * varobj.c (varobj_pretty_printed_p): Rename to ...
2810 (varobj_is_dynamic_p): ... this. New function.
2811 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2812 (varobj_is_dynamic_p): Declare.
2813 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2814 (mi_print_value_p, varobj_update_one): Likewise.
2816 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2817 Yao Qi <yao@codesourcery.com>
2819 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2820 (varobj_get_iterator): Wrap up code for pretty-printer by
2821 "#if HAVE_PYTHON" and "#endif".
2822 (update_dynamic_varobj_children): Likewise.
2824 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2825 Yao Qi <yao@codesourcery.com>
2827 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2828 gdb_python_initialized is false. Move some code from varobj.c.
2829 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2830 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2831 (struct varobj_item): Moved to varobj-iter.h".
2832 (varobj_clear_saved_item): New function.
2833 (update_dynamic_varobj_children): Move python-related code to
2835 (free_variable): Call varobj_clear_saved_item and
2838 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2839 Yao Qi <yao@codesourcery.com>
2841 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2842 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2843 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2844 (py-varobj.o): New rule.
2845 * python/py-varobj.c: New file.
2846 * python/python-internal.h (py_varobj_get_iterator): Declare.
2847 * varobj-iter.h: New file.
2848 * varobj.c: Include "varobj-iter.h"
2849 (struct varobj) <child_iter>: Change its type from "PyObject *"
2850 to "struct varobj_iter *".
2851 <saved_item>: Likewise.
2852 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2853 [HAVE_PYTHON] (varobj_get_iterator): New function.
2854 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2855 python-specific code to python/py-varobj.c.
2856 (install_visualizer): Call varobj_iter_delete instead of
2858 * varobj.h (varobj_ensure_python_env): Declare.
2860 2014-06-12 Yao Qi <yao@codesourcery.com>
2862 * varobj.c (struct varobj_item): New structure.
2863 (create_child_with_value): Update declaration.
2864 (varobj_add_child): Replace arguments 'name' and 'value' with
2865 'item'. All callers updated.
2866 (install_dynamic_child): Likewise.
2867 (update_dynamic_varobj_children): Likewise.
2868 (varobj_add_child): Likewise.
2869 (create_child_with_value): Likewise.
2871 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2873 * NEWS: Create a new section for the next release branch.
2874 Rename the section of the current branch, now that it has
2877 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2879 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2880 * version.in: Bump version to 7.8.50.DATE-cvs.
2882 2014-06-11 Pedro Alves <palves@redhat.com>
2885 * ser-mingw.c (net_windows_socket_check_pending): New function.
2886 (net_windows_select_thread): Ignore spurious wakeups. Use
2887 net_windows_socket_check_pending.
2888 (net_windows_wait_handle): Check for pending events with
2889 ioctlsocket, through net_windows_socket_check_pending, instead of
2890 checking the socket's event.
2892 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2894 * python/python-internal.h (gdb_PyObject_GetAttrString)
2895 (gdb_PyObject_HasAttrString): New inline function definitions.
2896 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2897 char * of the second argument to PyObject_GetAttrString.
2899 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2901 * serial.c (serial_write): Fix index of character to be printed
2902 in call to serial_logchar when serial debug traces are enabled.
2904 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2906 * gdbtypes (resolve_dynamic_range): Add function description.
2908 2014-06-09 Pedro Alves <palves@redhat.com>
2910 * linux-nat.c (linux_child_follow_fork): Initialize status with
2911 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2912 inner block. Only pass the signal to PTRACE_DETACH if in pass
2915 2014-06-09 Gary Benson <gbenson@redhat.com>
2917 * common/signals.c (gdb_signal_from_host): Reorder to separate
2918 the always-available ANSI-standard signals from the signals that
2920 (do_gdb_signal_to_host): Likewise.
2921 * proc-events.c (signal_table): Likewise.
2923 2014-06-08 Hui Zhu <hui@codesourcery.com>
2925 * common/linux-ptrace.c (linux_disable_event_reporting): New
2927 * common/linux-ptrace.h (linux_disable_event_reporting): New
2929 * linux-nat.c (linux_child_follow_fork): Do a single step before
2932 2014-06-07 Keith Seitz <keiths@redhat.com>
2936 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2937 from symbol_matches_domain in symtab.c. All local callers
2938 of symbol_matches_domain updated.
2939 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2940 search STRUCT_DOMAIN.
2941 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2942 independently. standard_lookup will do that automatically.
2943 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2944 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2945 (cp_lookup_symbol_in_namespace): Likewise.
2946 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2947 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2948 may return a STRUCT_DOMAIN match.
2949 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2950 * cp-support.c: Include language.h.
2951 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2953 * psymtab.c (match_partial_symbol): Compare the requested
2954 domain with the symbol's domain directly.
2955 (lookup_partial_symbol): Likewise.
2956 * symtab.c (lookup_symbol_in_language): Explain when/why
2957 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2958 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2959 appropriate languages.
2960 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2961 and moved to ada-lang.c
2962 (lookup_block_symbol): Explain that this function only returns
2963 symbol matching the requested DOMAIN.
2964 Compare the requested domain with the symbol's domain directly.
2965 (iterate_over_symbols): Compare the requested domain with the
2966 symbol's domain directly.
2967 * symtab.h (symbol_matches_domain): Remove.
2969 2014-06-06 Doug Evans <xdje42@gmail.com>
2971 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2972 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2973 (gdbscm_guile_version_is_at_least): Declare.
2974 (gdbscm_scm_string_to_int): Declare.
2975 * guile/guile.c (gdbscm_guile_major_version): New global.
2976 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2977 (guile_datadir): New static global.
2978 (gdbscm_guile_data_directory): New function.
2979 (initialize_scheme_side): Update.
2980 (misc_guile_functions): Add guile-data-directory.
2981 (initialize_gdb_module): Fetch guile version number.
2982 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2983 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2984 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2985 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2987 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2988 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2989 * guile/scm-value.c (gdbscm_value_to_string): Only call
2990 scm_port_conversion_strategy if Guile version >= 2.0.6.
2992 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2994 * main.c (print_gdb_help): Add -q and --silent.
2996 2014-06-06 Gary Benson <gbenson@redhat.com>
2998 * common/signals.c: Remove preprocessor conditionals for
2999 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3000 SIGSEGV and SIGTERM.
3001 * proc-events.c: Likewise.
3003 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3005 * symfile.c (symfile_free_objfile): Remove restriction to
3007 * symfile-mem.c (symbol_file_add_from_memory): Call
3008 add_target_sections_of_objfile.
3010 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3012 * guile/scm-value.c (gdbscm_history_append_x): Use
3013 'vlscm_get_value_smob_arg_unsafe' instead of
3014 'vlscm_scm_to_value'.
3016 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3019 * utils.c (printchar): Don't escape at all if quoter is NUL.
3020 Update function documentation to clarify effect of parameter
3022 * remote.c (escape_buffer): Pass '\\' as the quoter to
3023 fputstrn_unfiltered.
3024 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3025 generate the output.
3026 (mi_solib_unloaded): Same.
3028 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3030 * development.sh: Delete.
3031 * Makefile.in (config.status): Adjust dependency on development.sh.
3032 * configure.ac: Adjust development.sh source call.
3033 * configure: Regenerate.
3035 2014-06-04 Doug Evans <xdje42@gmail.com>
3037 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3038 is_scheme_bkpt, spec.
3039 (bpscm_make_breakpoint_smob): Initialize new members.
3040 (gdbscm_create_breakpoint_x): Split into two ...
3041 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3042 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3043 (scheme_function breakpoint_functions): Update.
3044 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3045 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3046 register-breakpoint!.
3048 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3051 * mem-break.c (z_type_supported): Return zero if
3052 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3054 2014-06-04 Tom Tromey <tromey@redhat.com>
3056 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3057 value_from_contents_and_address_unresolved.
3058 (ada_template_to_fixed_record_type_1): Likewise.
3059 (ada_which_variant_applies): Likewise.
3060 * value.h (value_from_contents_and_address_unresolved): Declare.
3061 * value.c (value_from_contents_and_address_unresolved): New
3063 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3064 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3065 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3067 2014-06-04 Tom Tromey <tromey@redhat.com>
3069 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3071 2014-06-04 Tom Tromey <tromey@redhat.com>
3073 * procfs.c (procfs_attach): Make "args" const.
3074 * windows-nat.c (windows_attach): Make "args" const.
3075 * nto-procfs.c (procfs_attach): Make "args" const.
3076 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3077 * go32-nat.c (go32_attach): Make "args" const.
3078 * gnu-nat.c (gnu_attach): Make "args" const.
3079 * darwin-nat.c (darwin_attach): Make "args" const.
3080 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3081 * linux-nat.c (linux_nat_attach): Make "args" const.
3082 * remote.c (extended_remote_attach_1, extended_remote_attach):
3084 * target.h (struct target_ops) <to_attach>: Make "args" const.
3085 (find_default_attach): Likewise.
3086 * utils.c (parse_pid_to_attach): Make "args" const.
3087 * utils.h (parse_pid_to_attach): Update.
3089 2014-06-04 Tom Tromey <tromey@redhat.com>
3091 * target-delegates.c: Rebuild.
3092 * target.c (default_thread_address_space): New function.
3093 (target_thread_address_space): Simplify.
3094 * target.h (struct target_ops) <to_thread_address_space>: Add
3095 TARGET_DEFAULT_FUNC.
3097 2014-06-04 Doug Evans <xdje42@gmail.com>
3099 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3101 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3103 * record-btrace.c: Include event-loop.h and inf-loop.h.
3104 (record_btrace_resume_exec_dir)
3105 (record_btrace_async_inferior_event_handler)
3106 (record_btrace_handle_async_inferior_event): New.
3107 (record_btrace_open): Create async event handler.
3108 (record_btrace_close): Delete async event handler.
3109 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3110 Mark async event handler.
3111 (record_btrace_execution_direction): New.
3112 (init_record_btrace_ops): Initialize to_execution_direction.
3114 2014-06-03 Doug Evans <xdje42@gmail.com>
3116 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3117 (gdbscm_make_parameter): Ditto.
3119 2014-06-03 Doug Evans <dje@google.com>
3121 * exec.c (exec_close_1): Call clear_section_table instead of
3122 resize_section_table.
3123 (clear_section_table): New function.
3124 (resize_section_table): Make static. Rename arg num_added to
3126 * exec.h (clear_section_table): Declare.
3127 (resize_section_table): Delete.
3128 * progspace.c (release_program_space): Call clear_section_table
3129 instead of resize_section_table.
3131 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3133 * NEWS (Python Scripting): Add entry about the new xmethods
3136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3138 * python/py-xmethods.c: New file.
3139 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3140 (objfpy_dealloc): XDECREF on the new xmethods field.
3141 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3143 (objfpy_get_xmethods): New function.
3144 (objfile_getset): New entry 'xmethods'.
3145 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3146 (pspy_dealloc): XDECREF on the new xmethods field.
3147 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3149 (pspy_get_xmethods): New function.
3150 (pspace_getset): New entry 'xmethods'.
3151 * python/python-internal.h: Add declarations for new functions.
3152 * python/python.c (_initialize_python): Invoke
3153 gdbpy_initialize_xmethods.
3154 * python/lib/gdb/__init__.py (xmethods): New
3156 * python/lib/gdb/xmethod.py: New file.
3157 * python/lib/gdb/command/xmethods.py: New file.
3159 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3161 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3162 best match method returned by find_overload_match is an xmethod.
3163 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3164 the best matching operator returned by find_overload_match is an
3166 * valops.c: #include "extension.h".
3167 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3168 Return void. The list of matching source methods is returned in
3169 "fn_list" and a vector of matching debug method workers is
3170 returned in "xm_worker_vec". Update all callers.
3171 (value_find_oload_method_list): Likewise.
3172 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3173 non-NULL, then the index of the best matching method in this
3174 vector is returned. Update all callers.
3175 (find_overload_match): Include xmethods while performing overload
3178 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3180 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3181 * extension-priv.h (struct extension_language_ops): Add the
3183 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3184 get_matching_xmethod_workers, get_xmethod_argtypes,
3185 invoke_xmethod, free_xmethod_worker,
3186 free_xmethod_worker_vec): New functions.
3187 * extension.h: #include "common/vec.h".
3188 New function declarations.
3189 (struct xmethod_worker): New struct.
3190 (VEC (xmethod_worker_ptr)): New vector type.
3191 (xmethod_worker_ptr): New typedef.
3192 (xmethod_worker_vec): Likewise.
3193 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3195 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3196 (struct builtin_type): New field "xmethod".
3197 * valarith.c (value_ptradd): Assert that the value argument is not
3199 * valops.c (value_must_coerce_to_target): Return 0 for
3200 lval_xcallable values.
3201 * value.c (struct value): New field XM_WORKER in the field
3203 (value_address, value_raw_address): Return 0 for lval_xcallable
3205 (set_value_address): Assert that the value is not an
3207 (value_free): Free the associated xmethod worker when freeing
3208 lval_xcallable values.
3209 (set_value_component_location): Assert that the WHOLE value is not
3211 (value_of_xmethod, call_xmethod): New functions.
3212 * value.h: Declare "struct xmethod_worker".
3213 Declare new functions value_of_xmethod, call_xmethod.
3215 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3216 Pedro Alves <palves@redhat.com>
3218 PR breakpoints/17000
3219 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3220 New function, extracted from software_breakpoint_inserted_here_p.
3221 (software_breakpoint_inserted_here_p): Replace factored out code
3222 by call to find_non_raw_software_breakpoint_inserted_here.
3223 (bp_target_info_copy_insertion_state): New function.
3224 (bkpt_insert_location): Handle the case of a single-step
3225 breakpoint already inserted at the same address.
3226 (bkpt_remove_location): Handle the case of a single-step
3227 breakpoint still inserted at the same address.
3228 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3229 breakpoint already inserted at the same address.
3230 (deprecated_remove_raw_breakpoint): Handle the case of a
3231 non-raw breakpoint still inserted at the same address.
3232 (find_single_step_breakpoint): New function, extracted from
3233 single_step_breakpoint_inserted_here_p.
3234 (find_single_step_breakpoint): New function,
3235 factored out from single_step_breakpoint_inserted_here_p.
3236 (single_step_breakpoint_inserted_here_p): Reimplement.
3238 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3240 Pushed by Joel Brobecker <brobecker@adacore.com>
3241 * source.c (show_substitute_path_command): Fix display of matching
3244 2014-06-03 Gary Benson <gbenson@redhat.com>
3246 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3248 2014-06-02 Doug Evans <xdje42@gmail.com>
3250 Add parameter support for Guile.
3251 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3252 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3253 (scm-param.o): New rule.
3254 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3255 (gdbscm_misc_error): Declare.
3256 (gdbscm_canonicalize_command_name): Declare.
3257 (gdbscm_scm_to_host_string): Declare.
3258 (gdbscm_scm_from_host_string): Declare.
3259 (gdbscm_initialize_parameters): Declare.
3260 * guile/guile.c (initialize_gdb_module): Call
3261 gdbscm_initialize_parameters.
3262 * guile/lib/gdb.scm: Export parameter symbols.
3263 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3264 cmdscm_canonicalize_name and made public. All callers updated.
3265 * guile/scm-exception.c (gdbscm_misc_error): New function.
3266 * guile/scm-param.c: New file.
3267 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3268 (gdbscm_scm_to_host_string): New function.
3269 (gdbscm_scm_from_host_string): New function.
3270 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3272 2014-06-02 Doug Evans <xdje42@gmail.com>
3274 Add command support for Guile.
3275 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3276 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3277 (scm-cmd.o): New rule.
3278 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3279 (gdbscm_user_error_p): Declare.
3280 (gdbscm_parse_command_name): Declare.
3281 (gdbscm_valid_command_class_p): Declare.
3282 (gdbscm_initialize_commands): Declare.
3283 * guile/guile.c (initialize_gdb_module): Call
3284 gdbscm_initialize_commands.
3285 * guile/lib/gdb.scm: Export command symbols.
3286 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3287 (throw-user-error): New function.
3288 * guile/scm-cmd.c: New file.
3289 * guile/scm-exception.c (user_error_symbol): New static global.
3290 (gdbscm_user_error_p): New function.
3291 (gdbscm_initialize_exceptions): Set user_error_symbol.
3292 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3294 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3296 * top.c (command_loop): Handle comments here...
3297 (command_line_input): ... not here.
3299 2014-06-02 Doug Evans <xdje42@gmail.com>
3301 Add progspace support for Guile.
3302 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3303 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3304 (scm-progspace.o): New rule.
3305 * guile/guile-internal.h (pspace_smob): New typedef.
3306 (psscm_pspace_smob_pretty_printers): Declare.
3307 (psscm_pspace_smob_from_pspace): Declare.
3308 (psscm_scm_from_pspace): Declare.
3309 * guile/guile.c (initialize_gdb_module): Call
3310 gdbscm_initialize_pspaces.
3311 * guile/lib/gdb.scm: Export progspace symbols.
3312 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3314 (append-pretty-printer!): Ditto.
3315 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3317 * guile/scm-progspace.c: New file.
3319 2014-06-03 Alan Modra <amodra@gmail.com>
3321 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3322 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3324 2014-06-02 Doug Evans <dje@google.com>
3326 Add support for skeletonless type units.
3327 * dwarf2read.c (struct dwarf2_per_objfile): New member
3328 n_allocated_type_units.
3329 (struct dwarf2_per_objfile) <tu_stats>: New member
3330 nr_all_type_units_reallocs.
3331 (create_signatured_type_table_from_index): Initialize
3332 n_allocated_type_units
3333 (create_all_type_units): Ditto.
3334 (add_type_unit): Move up in file. New arg slot.
3335 All callers updated. Increase space for all_type_units more
3337 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3338 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3339 (lookup_dwp_signatured_type): Ditto.
3340 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3341 All callers updated.
3342 (build_type_psymtabs_1): Leave type_unit_groups as
3343 NULL if no TUs present.
3344 (print_tu_stats): New function.
3345 (process_skeletonless_type_unit): New function.
3346 (process_dwo_file_for_skeletonless_type_units): New
3348 (process_skeletonless_type_units): New function.
3349 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3350 Call print tu_stats if debugging enabled.
3352 2014-06-02 Pedro Alves <palves@redhat.com>
3354 * breakpoint.c (build_target_command_list): Don't build a command
3355 list if we have any duplicate location that isn't a dprintf.
3357 2014-06-02 Pedro Alves <palves@redhat.com>
3359 * breakpoint.c (dprintf_breakpoint_hit): New function.
3360 (initialize_breakpoint_ops): Install it as dprintf's
3361 breakpoint_hit method.
3363 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3365 * source.c (substitute_path_rule_matches): Simplify using
3366 filename_ncmp instead of FILENAME_CMP.
3368 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3370 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3372 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3374 * configure.ac: When Guile is available, check for the
3375 availability of 'scm_new_smob'.
3376 * configure, config.h.in: Regenerate.
3377 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3380 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3382 * frame.c (struct frame_info): Add stop_string field.
3383 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3384 (get_prev_frame_always): Old content moved into
3385 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3386 TRY_CATCH, handle MEMORY_ERROR exceptions.
3387 (frame_stop_reason_string): New function definition.
3388 * frame.h (unwind_stop_reason_to_string): Extend comment to
3389 mention frame_stop_reason_string.
3390 (frame_stop_reason_string): New function declaration.
3391 * stack.c (frame_info): Switch to frame_stop_reason_string.
3392 (backtrace_command_1): Switch to frame_stop_reason_string.
3393 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3394 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3395 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3397 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3399 * frame.c (frame_stop_reason_string): Rename to ...
3400 (unwind_stop_reason_to_string): this.
3401 * frame.h (frame_stop_reason_string): Rename to ...
3402 (unwind_stop_reason_to_string): this.
3403 * stack.c (frame_info): Update call to frame_stop_reason_string.
3404 (backtrace_command_1): Likewise.
3405 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3406 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3408 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3410 * frame.c (remove_prev_frame): New function.
3411 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3414 2014-05-29 Pedro Alves <palves@redhat.com>
3416 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3417 and make it const. When a single-step decays to a continue,
3418 clear 'step', not 'hw_step'. Pass whether the caller wanted
3419 to step to user_visible_resume_ptid, not what we ask the
3422 2014-05-29 Pedro Alves <palves@redhat.com>
3424 * infrun.c (process_event_stop_test, handle_step_into_function)
3425 (handle_step_into_function_backward): Adjust.
3426 Don't set the even thread's stop_step and call stop_waiting before
3427 calling end_stepping_range. Instead do that ...
3428 (end_stepping_range): ... here. Take an ecs pointer parameter.
3430 2014-05-29 Pedro Alves <palves@redhat.com>
3432 * infrun.c (stop_stepping): Rename to ...
3433 (stop_waiting): ... this.
3434 (proceed): Update comment.
3435 (process_event_stop_test, handle_inferior_event)
3436 (handle_signal_stop, handle_step_into_function)
3437 (handle_step_into_function_backward): Update.
3439 2014-05-29 Pedro Alves <palves@redhat.com>
3441 * infcall.c (run_inferior_call): Don't check whether the current
3442 thread is running after the proceed call.
3444 2014-05-29 Pedro Alves <palves@redhat.com>
3445 Tom Tromey <tromey@redhat.com>
3447 * NEWS: Mention "maint set target-async", "set mi-async", and that
3448 background execution commands are now always available.
3449 * target.h (target_async_permitted): Update comment.
3450 * target.c (target_async_permitted, target_async_permitted_1):
3452 (set_target_async_command): Rename to ...
3453 (maint_set_target_async_command): ... this.
3454 (show_target_async_command): Rename to ...
3455 (maint_show_target_async_command): ... this.
3456 (_initialize_target): Adjust.
3457 * infcmd.c (prepare_execution_command): Make extern.
3458 * inferior.h (prepare_execution_command): Declare.
3459 * infrun.c (set_observer_mode): Leave target async alone.
3460 * mi/mi-interp.c (mi_interpreter_init): Install
3461 mi_on_sync_execution_done as sync_execution_done observer.
3462 (mi_on_sync_execution_done): New function.
3463 (mi_execute_command_input_handler): Don't print the prompt if we
3464 just started a synchronous command with an async target.
3465 (mi_on_resume): Check sync_execution before printing prompt.
3466 * mi/mi-main.h (mi_async_p): Declare.
3467 * mi/mi-main.c: Include gdbcmd.h.
3468 (mi_async_p): New function.
3469 (mi_async, mi_async_1): New globals.
3470 (set_mi_async_command, show_mi_async_command, mi_async): New
3472 (exec_continue): Call prepare_execution_command.
3473 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3474 (mi_execute_async_cli_command): Use mi_async_p.
3475 (_initialize_mi_main): Install "set mi-async". Make
3476 "target-async" a deprecated alias.
3478 2014-05-29 Pedro Alves <palves@redhat.com>
3480 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3481 (_initialize_cli_interp): Adjust.
3482 * event-loop.c: Include "observer.h".
3483 (start_event_loop): Notify 'command_error' observers instead of
3484 calling display_gdb_prompt. Remove FIXME comment.
3485 * event-top.c (display_gdb_prompt): Remove call into the
3487 * inf-loop.c: Include "observer.h".
3488 (inferior_event_handler): Notify 'command_error' observers instead
3489 of calling display_gdb_prompt.
3490 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3491 observers instead of calling display_gdb_prompt.
3492 * interps.c (interp_set): Don't call display_gdb_prompt.
3493 (current_interp_display_prompt_p): Delete.
3494 * interps.h (interp_prompt_p): Delete declaration.
3495 (interp_prompt_p_ftype): Delete.
3496 (struct interp_procs) <prompt_proc_p>: Delete field.
3497 (current_interp_display_prompt_p): Delete declaration.
3498 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3499 (_initialize_mi_interp): Adjust.
3500 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3501 'command_error' observers.
3502 (tui_on_sync_execution_done, tui_on_command_error): New
3504 (tui_display_prompt_p): Delete.
3505 (_initialize_tui_interp): Adjust.
3507 2014-05-29 Pedro Alves <palves@redhat.com>
3510 * cli/cli-interp.c: Include infrun.h and observer.h.
3511 (cli_uiout, cli_interp): New globals.
3512 (cli_on_signal_received, cli_on_end_stepping_range)
3513 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3515 (cli_interpreter_init): Install them as 'end_stepping_range',
3516 'signal_received' 'signal_exited', 'exited' and 'no_history'
3518 (_initialize_cli_interp): Remove cli_interp local.
3519 * infrun.c (handle_inferior_event): Call the several stop reason
3520 observers instead of printing the stop reason directly.
3521 (end_stepping_range): New function.
3522 (print_end_stepping_range_reason, print_signal_exited_reason)
3523 (print_exited_reason, print_signal_received_reason)
3524 (print_no_history_reason): Make static, and add an uiout
3525 parameter. Print to that instead of to CURRENT_UIOUT.
3526 * infrun.h (print_end_stepping_range_reason)
3527 (print_signal_exited_reason, print_exited_reason)
3528 (print_signal_received_reason print_no_history_reason): New
3530 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3532 <cli_uiout>: New field.
3533 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3534 uiout for CLI output. Install 'signal_received',
3535 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3537 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3538 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3539 (mi_on_no_history): New functions.
3540 (ui_out_free_cleanup): Delete function.
3541 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3542 instead use the one already stored in the MI interpreter data.
3543 (mi_ui_out): Adjust.
3544 * tui/tui-interp.c: Include infrun.h and observer.h.
3545 (tui_interp): New global.
3546 (tui_on_signal_received, tui_on_end_stepping_range)
3547 (tui_on_signal_exited, tui_on_exited)
3548 (tui_on_no_history): New functions.
3549 (tui_init): Install them as 'end_stepping_range',
3550 'signal_received' 'signal_exited', 'exited' and 'no_history'
3552 (_initialize_tui_interp): Delete tui_interp local.
3554 2014-05-29 Pedro Alves <palves@redhat.com>
3557 * linux-nat.c (linux_nat_resume_callback): Rename the second
3558 parameter to 'except'. Skip LP if it points to EXCEPT.
3559 (linux_nat_resume): Don't mark the event lwp as not stopped
3560 before resuming sibling lwps. Instead ask
3561 linux_nat_resume_callback to skip the event lwp. Mark it as not
3562 stopped after actually resuming it.
3563 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3565 (wait_lwp): Mark the lwp as stopped here.
3566 (stop_wait_callback): Mark the lwp as not stopped right after
3567 resuming it. Don't mark lwps as stopped here.
3568 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3569 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3571 2014-05-29 Pedro Alves <palves@redhat.com>
3574 * infrun.c (resume): Determine how much to resume depending on
3575 whether the caller wanted a step, not whether we can hardware step
3576 the target. Mark all threads that we intend to run as running,
3577 unless we're calling an inferior function.
3578 (normal_stop): If the thread is running an infcall, don't finish
3580 * target.c (target_resume): Don't mark threads as running here.
3582 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3584 * serial.c (_initialize_serial): Remove support for
3585 the "set remotebaud" and "show remotebaud" commands.
3586 * NEWS: Add entry documenting the removal of that command.
3588 2014-05-28 Yao Qi <yao@codesourcery.com>
3590 * charset.c: Fix typo in comments.
3592 2014-05-27 Gary Benson <gbenson@redhat.com>
3594 * utils.c (internal_vproblem): Prompt for a bug report.
3596 2014-05-26 Andy Wingo <wingo@igalia.com>
3598 * guile/scm-arch.c (arscm_mark_arch_smob):
3599 * guile/scm-block.c (bkscm_mark_block_smob)
3600 (bkscm_mark_block_syms_progress_smob):
3601 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3602 * guile/scm-exception.c (exscm_mark_exception_smob):
3603 * guile/scm-frame.c (frscm_mark_frame_smob):
3604 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3605 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3606 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3607 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3608 (ppscm_mark_pretty_printer_worker_smob):
3609 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3610 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3611 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3612 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3614 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3617 2014-05-26 Andy Wingo <wingo@igalia.com>
3618 Doug Evans <xdje42@gmail.com>
3620 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3621 empty_base_class. All uses updated.
3622 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3623 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3625 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3626 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3627 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3628 (gdbscm_gsmob_has_property_p, add_property_name)
3629 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3630 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3631 (gdb-object-has-property?, gdb-object-properties): Remove.
3632 (gdb-object-kind): Renamed from gsmob-kind.
3634 2014-05-26 Andy Wingo <wingo@igalia.com>
3636 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3637 * configure: Regenerate.
3639 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3641 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3643 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3645 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3646 (replay_memory_access_read_only, replay_memory_access_read_write)
3647 (replay_memory_access_types, replay_memory_access)
3648 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3649 (cmd_set_record_btrace, cmd_show_record_btrace)
3650 (cmd_show_replay_memory_access): New.
3651 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3652 (record_btrace_remove_breakpoint): Replace
3653 record_btrace_allow_memory_access with replay_memory_access.
3654 (_initialize_record_btrace): Add commands.
3655 * NEWS: Announce it.
3657 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3659 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3661 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3663 * MAINTAINERS (Write After Approval): Move self back from
3666 2014-05-22 Pedro Alves <palves@redhat.com>
3668 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3669 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3670 (disable_randomization, enum exec_direction_kind)
3671 (execution_direction, stop_registers, start_remote)
3672 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3673 (wait_for_inferior, normal_stop, get_last_target_status)
3674 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3675 (insert_step_resume_breakpoint_at_sal)
3676 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3677 (set_step_info, print_stop_event, signal_stop_state)
3678 (signal_print_state, signal_pass_state, signal_stop_update)
3679 (signal_print_update, signal_pass_update)
3680 (update_signals_program_target, clear_exit_convenience_vars)
3681 (displaced_step_dump_bytes, update_observer_mode)
3682 (signal_catch_update, gdb_signal_from_command): Move
3684 * infrun.h: ... to this new file.
3685 * amd64-tdep.c: Include infrun.h.
3686 * annotate.c: Include infrun.h.
3687 * arch-utils.c: Include infrun.h.
3688 * arm-linux-tdep.c: Include infrun.h.
3689 * arm-tdep.c: Include infrun.h.
3690 * break-catch-sig.c: Include infrun.h.
3691 * breakpoint.c: Include infrun.h.
3692 * common/agent.c: Include infrun.h instead of inferior.h.
3693 * corelow.c: Include infrun.h.
3694 * event-top.c: Include infrun.h.
3695 * go32-nat.c: Include infrun.h.
3696 * i386-tdep.c: Include infrun.h.
3697 * inf-loop.c: Include infrun.h.
3698 * infcall.c: Include infrun.h.
3699 * infcmd.c: Include infrun.h.
3700 * infrun.c: Include infrun.h.
3701 * linux-fork.c: Include infrun.h.
3702 * linux-nat.c: Include infrun.h.
3703 * linux-thread-db.c: Include infrun.h.
3704 * monitor.c: Include infrun.h.
3705 * nto-tdep.c: Include infrun.h.
3706 * procfs.c: Include infrun.h.
3707 * record-btrace.c: Include infrun.h.
3708 * record-full.c: Include infrun.h.
3709 * remote-m32r-sdi.c: Include infrun.h.
3710 * remote-mips.c: Include infrun.h.
3711 * remote-notif.c: Include infrun.h.
3712 * remote-sim.c: Include infrun.h.
3713 * remote.c: Include infrun.h.
3714 * reverse.c: Include infrun.h.
3715 * rs6000-tdep.c: Include infrun.h.
3716 * s390-linux-tdep.c: Include infrun.h.
3717 * solib-irix.c: Include infrun.h.
3718 * solib-osf.c: Include infrun.h.
3719 * solib-svr4.c: Include infrun.h.
3720 * target.c: Include infrun.h.
3721 * top.c: Include infrun.h.
3722 * windows-nat.c: Include infrun.h.
3723 * mi/mi-interp.c: Include infrun.h.
3724 * mi/mi-main.c: Include infrun.h.
3725 * python/py-threadevent.c: Include infrun.h.
3727 2014-05-22 Pedro Alves <palves@redhat.com>
3729 * infrun.c (handle_inferior_event): Store the exit code for
3730 --return-child-result here, instead of ...
3731 (print_exited_reason): ... here.
3733 2014-05-21 Pedro Alves <palves@redhat.com>
3736 * gdbthread.h (struct thread_control_state): New field
3738 * infrun.c (follow_fork): Copy the new thread control field to the
3740 (clear_proceed_status_thread): Clear the new thread control field.
3741 (proceed): Set the new thread control field.
3742 * interps.h (command_interp): Declare.
3743 * interps.c (command_interpreter): New global.
3744 (command_interp): New function.
3745 (interp_exec): Set `command_interpreter' while here.
3746 * cli-out.c (cli_uiout_dtor): New function.
3747 (cli_ui_out_impl): Install it.
3748 * mi/mi-interp.c: Include cli-out.h.
3749 (mi_cmd_interpreter_exec): Add comment.
3750 (restore_current_uiout_cleanup): New function.
3751 (ui_out_free_cleanup): New function.
3752 (mi_on_normal_stop): If finishing an execution command started by
3753 a CLI command, or any kind of breakpoint-like event triggered,
3754 print the stop event to the output (CLI) stream.
3755 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3757 2014-05-21 Pedro Alves <palves@redhat.com>
3759 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3760 current source line having changed.
3761 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3762 * infrun.c (normal_stop): Adjust call to
3763 set_current_sal_from_frame.
3764 * source.c (clear_lines_listed_range): New function.
3765 (set_current_source_symtab_and_line, identify_source_line): Clear
3766 the lines listed range.
3767 (line_info): Handle the first "info line" after the current source
3768 line having changed.
3769 * stack.c (print_stack_frame): Remove center handling.
3770 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3773 2014-05-21 Pedro Alves <palves@redhat.com>
3775 * inf-child.c (inf_child_mourn_inferior): New function.
3776 * inf-child.h (inf_child_mourn_inferior): New declaration.
3777 * darwin-nat.c (darwin_mourn_inferior): Use
3778 inf_child_mourn_inferior.
3779 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3780 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3781 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3782 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3783 * windows-nat.c (windows_mourn_inferior): Likewise.
3785 2014-05-21 Doug Evans <xdje42@gmail.com>
3787 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3789 2014-05-21 Doug Evans <xdje42@gmail.com>
3791 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3792 (gdbscm_out_of_range_error): Ditto.
3793 (gdbscm_memory_error): Ditto.
3794 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3795 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3796 (gdbscm_out_of_range_error): Update.
3797 (gdbscm_memory_error): Update.
3798 (gdbscm_scm_to_target_string_unsafe): Delete.
3800 2014-05-21 Pedro Alves <palves@redhat.com>
3802 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3804 (inf_child_open_target): New function.
3805 (inf_child_open): Use inf_child_open_target to push the target
3806 instead of erroring out.
3807 (inf_child_disconnect, inf_child_close)
3808 (inf_child_maybe_unpush_target): New functions.
3809 (inf_child_target): Install inf_child_disconnect and
3810 inf_child_close. Store a pointer to the returned object.
3811 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3813 * target.c (auto_connect_native_target): New global.
3814 (show_default_run_target): New function.
3815 (find_default_run_target): Return NULL if automatically connecting
3816 to the native target is disabled.
3817 (_initialize_target): Install set/show auto-connect-native-target.
3818 * NEWS: Mention "set auto-connect-native-target", and "target
3820 * linux-nat.c (super_close): New global.
3821 (linux_nat_close): Call super_close.
3822 (linux_nat_add_target): Store a pointer to the base class's
3824 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3825 inf_child_maybe_unpush.
3826 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3828 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3829 the inferior. Use inf_child_maybe_unpush_target.
3830 (inf_ttrace_attach): Don't push the target if it is already
3832 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3833 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3834 after mourning the inferior. Use inf_child_maybe_unpush_target.
3835 (darwin_attach_pid): Don't push the target if it is already
3837 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3838 mourning the inferior. Use inf_child_maybe_unpush_target.
3839 (gnu_detach): Use inf_child_maybe_unpush_target.
3840 * go32-nat.c (go32_create_inferior): Don't push the target if it
3842 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3843 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3844 (procfs_open): Rename to ...
3845 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3846 comments. Can target_preopen before changing node. Call
3847 inf_child_open_target to push the target explicitly.
3848 (procfs_attach): Don't push the target if it is already pushed.
3849 (procfs_detach): Use inf_child_maybe_unpush_target.
3850 (procfs_create_inferior): Don't push the target if it is already
3852 (nto_native_ops): New global.
3853 (procfs_open): Reimplement.
3854 (procfs_native_open): New function.
3855 (init_procfs_targets): Install procfs_native_open as to_open of
3856 "target native". Store a pointer to the "native" target in
3858 * procfs.c (procfs_attach): Don't push the target if it is already
3860 (procfs_detach): Use inf_child_maybe_unpush_target.
3861 (procfs_mourn_inferior): Only unpush the target after mourning the
3862 inferior. Use inf_child_maybe_unpush_target.
3863 (procfs_init_inferior): Don't push the target if it is already
3865 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3866 if it is already pushed.
3868 2014-05-21 Pedro Alves <palves@redhat.com>
3870 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3871 and "procfs" targets are now called "native" instead.
3873 2014-05-21 Pedro Alves <palves@redhat.com>
3875 * go32-nat.c (go32_open): Delete.
3876 (go32_target): Don't override the to_open method.
3878 2014-05-21 Pedro Alves <palves@redhat.com>
3880 * nto-procfs.c (procfs_can_run): New function.
3881 (nto_procfs_ops): New global.
3882 (init_procfs_targets): New, based on procfs_target. Install
3883 "target native" in addition to "target procfs".
3884 (_initialize_procfs): Call init_procfs_targets instead of adding
3887 2014-05-21 Pedro Alves <palves@redhat.com>
3889 * windows-nat.c (windows_target): Don't override to_shortname,
3890 to_longname or to_doc.
3892 2014-05-21 Pedro Alves <palves@redhat.com>
3894 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3897 2014-05-21 Pedro Alves <palves@redhat.com>
3899 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3900 to_shortname, to_longname or to_doc.
3902 2014-05-21 Pedro Alves <palves@redhat.com>
3904 * go32-nat.c (go32_target): Don't override to_shortname,
3905 to_longname or to_doc.
3907 2014-05-21 Pedro Alves <palves@redhat.com>
3909 * inf-child.c (inf_child_open): Remove mention of "child".
3910 (inf_child_target): Rename target to "native" instead of "child".
3912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3914 * Makefile.in (SFILES): Delete "regset.c".
3915 (COMMON_OBS): Delete "regset.o".
3917 * regset.h (regset_alloc): Delete prototype.
3919 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3921 * sparc-linux-tdep.c (sparc32_linux_gregset)
3922 (sparc32_linux_fpregset): New static regset structures.
3923 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3924 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3926 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3927 (sparc64_linux_fpregset): New static regset structures.
3928 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3929 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3930 New static regset structures.
3931 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3932 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3933 New static regset structures.
3934 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3935 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3936 New static regset structures.
3937 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3938 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3939 New static regset structures.
3940 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3942 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3944 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3945 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3946 register maps ("regmaps") from "*regset" to "*regmap". Do this
3947 for all regmap types and variables.
3948 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3949 (sparc32_linux_supply_core_gregset)
3950 (sparc32_linux_collect_core_gregset)
3951 (sparc32_linux_supply_core_fpregset)
3952 (sparc32_linux_collect_core_fpregset): Likewise.
3953 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3954 (sparc_gregmap, sparc_fpregmap): ... these.
3955 (sparc_supply_gregset, sparc_collect_gregset)
3956 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3957 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3958 (_initialize_sparc_nat): Rename regmaps.
3959 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3960 (sparc_gregmap, sparc_fpregmap): ... these.
3961 (sparc_supply_gregset, sparc_collect_gregset)
3962 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3963 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3965 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3966 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3968 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3970 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3971 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3972 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3974 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3975 (sparc32_bsd_fpregset): Rename to...
3976 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3977 (sparc32_bsd_fpregmap): ... these.
3978 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3979 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3980 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3981 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3982 (struct sparc_gregmap, struct sparc_fpregmap)
3983 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3984 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3985 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3986 (sparc32_supply_regset, sparc32_collect_gregset)
3987 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3989 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3990 (sparc64_linux_ptrace_gregmap): ... this.
3991 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3992 (_initialize_sparc64_linux_nat): Rename regmaps.
3993 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3994 (sparc64_linux_core_gregmap): ... this.
3995 (sparc64_linux_supply_core_gregset)
3996 (sparc64_linux_collect_core_gregset)
3997 (sparc64_linux_supply_core_fpregset)
3998 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3999 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4000 (sparc64_sol2_fpregset): Rename to...
4001 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4002 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4003 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4005 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4006 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4007 (sparc64_bsd_fpregset): Rename to...
4008 (struct sparc_gregmap, sparc64_sol2_gregmap)
4009 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4010 (sparc64_bsd_fpregmap): ... these.
4011 (sparc64_supply_gregset, sparc64_collect_gregset)
4012 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4014 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4015 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4016 (sparc64fbsd_gregmap): ... this.
4017 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4018 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4020 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4021 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4022 (sparc64nbsd_collect_fpregset): Likewise.
4023 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4024 (sparc64nbsd_gregmap): ... this.
4025 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4027 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4028 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4029 (sparc64obsd_gregmap): ... this.
4030 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4032 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4033 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4034 (sparc32nbsd_gregmap): ... this.
4035 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4040 * score-tdep.c (score7_linux_gregset): New static regset
4042 (score7_linux_regset_from_core_section): Remove dynamic regset
4044 (score_gdbarch_init): Drop allocation of tdep structure.
4045 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4049 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4051 (am33_regset_from_core_section): Remove dynamic regset
4054 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4056 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4057 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4059 (mips_linux_regset_from_core_section): Remove dynamic regset
4061 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4062 'gregset64', 'fpregset', and 'fpregset64'.
4063 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4064 deleted tdep fields.
4066 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4068 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4070 (amd64_regset_from_core_section): Remove dynamic regset
4072 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4074 (amd64obsd_regset_from_core_section): Remove dynamic regset
4076 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4078 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4079 x86-common regset supply function.
4080 * i386-tdep.c (i386_collect_gregset): Make static.
4081 (i386_gregset): New global regset structure.
4082 (i386_fpregset, i386_xstateregset): New static regset structures.
4083 (i386_regset_from_core_section): Remove dynamic regset
4085 (i386_gdbarch_init): Remove initialization of tdep fields
4086 'gregset', 'fpregset', and 'xstateregset'.
4087 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4088 'fpregset', and 'xstateregset'.
4089 (i386_collect_gregset): Remove prototype.
4090 (i386_gregset): New declaration.
4091 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4093 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4098 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4099 (arm_linux_vfpregset): New static regset structures.
4100 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4102 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4103 and 'vfpregset' fields.
4105 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4107 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4108 (aarch64_linux_fpregset): New static regset structures.
4109 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4110 of regset structures.
4111 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4114 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116 * regset.h (struct regset): Remove gdbarch field.
4117 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4118 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4119 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4121 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4122 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4123 (ppc32_linux_vsxregset): Likewise.
4124 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4125 via the regcache instead of the regset.
4126 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4127 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4128 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4129 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4134 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4135 Constify structures.
4136 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4137 (alphanbsd_aout_gregset): Likewise.
4138 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4139 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4141 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4142 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4144 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4145 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4146 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4147 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4148 * m88k-tdep.c (m88k_gregset): Likewise.
4149 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4150 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4151 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4152 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4153 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4154 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4155 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4156 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4157 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4159 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4160 * sh-tdep.h (sh_corefile_gregset): Likewise.
4161 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4162 * vax-tdep.c (vax_gregset): Likewise.
4164 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4166 Fix TLS access for -static -pthread.
4167 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4168 (try_thread_db_load_1): Initialize it.
4169 (thread_db_get_thread_local_address): Call it if LM is zero.
4170 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4171 * target.h (struct target_ops) (to_get_thread_local_address): Add
4172 load_module_addr comment.
4174 2014-05-21 Pedro Alves <palves@redhat.com>
4176 * dcache.c (dcache_read_memory_partial): If reading the cache line
4177 fails, fallback to reading just the memory the caller wanted.
4179 2014-05-20 Doug Evans <dje@google.com>
4181 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4182 instead of get_current_arch.
4184 2014-05-20 Pedro Alves <palves@redhat.com>
4186 * NEWS: Mention that compare-sections now works with all targets.
4188 * remote.c (PACKET_qCRC): New enum value.
4189 (remote_verify_memory): Don't send qCRC if the target has no
4190 execution. Use packet_support/packet_ok. If the target doesn't
4191 support the qCRC packet, fallback to a deep memory copy.
4192 (compare_sections_command): Say "target image" instead of "remote
4194 (_initialize_remote): Add PACKET_qCRC to the list of config
4195 packets that have no associated command. Extend comment.
4196 * target.c (simple_verify_memory, default_verify_memory): New
4198 * target.h (struct target_ops) <to_verify_memory>: Default to
4199 default_verify_memory.
4200 (simple_verify_memory): New declaration.
4201 * target-delegates.c: Regenerate.
4203 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4205 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4207 2014-05-20 Hui Zhu <hui@codesourcery.com>
4208 Yao Qi <yao@codesourcery.com>
4211 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4212 and change address of sp and pc.
4214 2014-05-19 Tom Tromey <tromey@redhat.com>
4216 * gdbtypes.c (rank_function): Use XNEWVEC.
4217 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4219 2014-05-19 Doug Evans <dje@google.com>
4221 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4222 build_type_unit_groups and moved closer to only caller. Remove
4223 arguments. All references updated. Remove outdated .gdb_index
4225 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4226 build_type_psymtabs_1.
4228 2014-05-19 Doug Evans <dje@google.com>
4230 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4231 n_type_unit_groups, all_type_unit_groups. All uses removed.
4232 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4233 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4234 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4235 (add_type_unit_group_to_table): Delete.
4237 2014-05-19 Doug Evans <dje@google.com>
4239 * eval.c (evaluate_subexp_standard): Add some comments.
4241 2014-05-17 Doug Evans <xdje42@gmail.com>
4243 * progspace.c (remove_program_space): Delete, unused.
4244 * progspace.h (remove_program_space): Ditto.
4246 2014-05-17 Doug Evans <xdje42@gmail.com>
4248 * inferior.c (prune_inferiors): Fix comment.
4249 (remove_inferior_command): Call prune_program_spaces.
4251 2014-05-16 Doug Evans <dje@google.com>
4253 New command line option -D.
4255 * main.c (set_gdb_data_directory): New function.
4256 (captured_main): Recognize -D. Flag error for --data-directory "".
4257 Call set_gdb_data_directory.
4258 (print_gdb_help): Print --data-directory, -D.
4259 * main.h (set_gdb_data_directory): Declare.
4260 * top.c (staged_gdb_datadir): New static global.
4261 (set_gdb_datadir): Call set_gdb_data_directory
4262 (show_gdb_datadir): New function.
4263 (init_main): Update init of data-directory parameter.
4265 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4267 Import the "dirfd" gnulib module.
4268 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4269 * gnulib/aclocal.m4: Update.
4270 * gnulib/config.in: Update.
4271 * gnulib/configure: Update.
4272 * gnulib/import/Makefile.am: Update.
4273 * gnulib/import/Makefile.in: Update.
4274 * gnulib/import/dirfd.c: New.
4275 * gnulib/import/m4/dirfd.m4: New.
4276 * gnulib/import/m4/gnulib-cache.m4: Update.
4277 * gnulib/import/m4/gnulib-comp.m4: Update.
4279 2014-05-16 Pierre Muller <muller@sourceware.org>
4280 Yao Qi <yao@codesourcery.com>
4282 * valprint.c (print_wchar): Move the code on checking whether
4283 W is a printable wide char to the default branch of switch
4284 statement below. Call wchar_printable instead of gdb_iswprint.
4286 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4288 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4289 ldr.w and ldrd instructions.
4291 2014-05-15 Doug Evans <dje@google.com>
4293 * dwarf2read.c (read_structure_type): Delete outdated comments.
4295 2014-05-14 Tom Tromey <tromey@redhat.com>
4297 * macrocmd.c (print_macro_definition): Reindent.
4299 2014-05-13 Doug Evans <xdje42@gmail.com>
4301 * python/py-cmd.c (cmdpy_completer): Add comment.
4302 (completers): Make const.
4304 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4306 * infrun.c (resume): Remove should_resume (unused). Move up
4307 declaration of resume_ptid.
4309 2014-05-13 Tom Tromey <tromey@redhat.com>
4311 * language.h (unop_type_check): Remove.
4312 (binop_type_check): Don't declare.
4314 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4316 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4317 call to regcache_raw_collect.
4319 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4321 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4322 mi_console->quote as the quoting character.
4324 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4326 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4328 2014-04-29 Tom Tromey <tromey@redhat.com>
4330 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4331 "show debug varobj".
4333 2014-05-07 Kyle McMartin <kyle@redhat.com>
4335 Pushed by Joel Brobecker <brobecker@adacore.com>.
4336 * aarch64-tdep.c (aarch64_software_single_step): New function.
4337 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4338 with aarch64_software_single_step.
4340 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4344 2014-05-05 Keith Seitz <keiths@redhat.com>
4346 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4347 variable or history value is successfully parsed.
4349 2014-05-05 Yao Qi <yao@codesourcery.com>
4350 Pedro Alves <palves@redhat.com>
4352 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4353 address of blocks that intersects the requested range. Trim
4354 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4356 * ctf.c (ctf_xfer_partial): Likewise.
4358 2014-05-05 Yao Qi <yao@codesourcery.com>
4360 * printcmd.c (display_command): Remove the check to
4361 target_has_execution.
4363 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4365 * ppcobsd-nat.c: Include "obsd-nat.h".
4366 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4368 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4370 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4372 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4373 and 16-bit signed and unsigned arguments. Update comment.
4374 (stap_parse_probe_arguments): Extend code to handle such
4375 arguments. Use warning instead of complaint to notify about
4376 unrecognized bitness.
4378 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4380 PR breakpoints/16889
4381 * stap-probe.c (stap_parse_probe_arguments): Simplify
4382 check for non-prefixed probes (i.e., probes whose
4383 arguments do not start with "N@"). Always set the
4384 argument type to a sane value.
4386 2014-05-01 David Taylor <dtaylor@emc.com>
4388 * remote.c (compare_sections_command): Add -r option to compare
4389 all loadable read-only sections.
4391 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4393 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4394 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4396 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4397 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4398 Remove unused CORE_ADDR argument. Update all callers.
4400 2014-04-29 Pedro Alves <palves@redhat.com>
4402 * remote.c (struct packet_config) <detect>: Extend comment.
4403 (add_packet_config_cmd): Don't set the config's detect or support
4405 (init_all_packet_configs): Also initialize the config's 'detect'
4407 (reset_all_packet_configs_support): New function.
4408 (remote_open_1): Call reset_all_packet_configs_support instead of
4409 init_all_packet_configs.
4410 (_initialize_remote): Initialize all packet configs. Assert that
4411 all packets have an associated command, except a few known
4414 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4416 * dwarf2read.c (read_subrange_type): Handle dynamic
4417 DW_AT_lower_bound attributes.
4419 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4421 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4422 dynamic bounds before computing its upper bound.
4423 (ada_discrete_type_low_bound): Same as above with the lower bound.
4425 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4427 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4428 range types. Adjust the array handling implementation to
4429 take advantage of this change.
4430 (resolve_dynamic_range): New function, mostly extracted from
4431 resolve_dynamic_bounds.
4432 (resolve_dynamic_array): New function, mostly extracted from
4433 resolve_dynamic_bounds.
4434 (resolve_dynamic_bounds): Delete.
4435 (resolve_dynamic_type): Reimplement. Add handling of
4436 TYPE_CODE_RANGE types.
4438 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4440 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4441 handling of parallel ___XA types.
4443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4445 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4446 unnecessary second call to static_unwrap_type.
4448 2014-04-27 Hui Zhu <hui@codesourcery.com>
4450 * stack.c (print_frame_info): Call do_gdb_disassembly with
4451 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4453 2014-04-26 Doug Evans <xdje42@gmail.com>
4455 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4457 2014-04-25 Pedro Alves <palves@redhat.com>
4460 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4461 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4462 and newline from built string.
4463 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4464 (linux_ptrace_attach_fail_reason): ... this.
4465 * linux-nat.c (linux_nat_attach): Adjust to use
4466 linux_ptrace_attach_fail_reason.
4468 2014-04-25 Pedro Alves <palves@redhat.com>
4470 * remote.c (struct remote_state): Remove multi_process_aware,
4471 non_stop_aware, cond_tracepoints, cond_breakpoints,
4472 breakpoint_commands, fast_tracepoints, static_tracepoints,
4473 install_in_trace, disconnected_tracing,
4474 enable_disable_tracepoints, string_tracing, and
4475 augmented_libraries_svr4_read fields.
4476 (remote_multi_process_p): Move further below in the file.
4477 (struct packet_config): Add comments.
4478 (update_packet_config): Delete function.
4479 (show_packet_config_cmd): Use packet_config_support.
4480 (add_packet_config_cmd): Use NULL as set callback.
4481 (packet_ok): "set remote foo-packet"-style commands no longer
4482 change config->supported -- adjust.
4483 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4484 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4485 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4486 (PACKET_QNonStop, PACKET_multiprocess_feature)
4487 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4488 (PACKET_DisconnectedTracing_feature)
4489 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4490 (set_remote_protocol_packet_cmd): Delete function.
4491 (packet_config_support, packet_support): New functions.
4492 (set_remote_protocol_Z_packet_cmd): Don't call
4493 update_packet_config.
4494 (remote_query_attached, remote_pass_signals)
4495 (remote_program_signals, remote_threads_info)
4496 (remote_threads_extra_info, remote_start_remote): Use
4498 (remote_start_remote): Use packet_config_support and
4500 (init_all_packet_configs): Set all packets to unknown support,
4501 instead of calling update_packet_config.
4502 (remote_check_symbols): Use packet_support.
4503 (remote_supported_packet): Unconditionally set the packet config's
4505 (remote_multi_process_feature, remote_non_stop_feature)
4506 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4507 (remote_breakpoint_commands_feature)
4508 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4509 (remote_install_in_trace_feature)
4510 (remote_disconnected_tracing_feature)
4511 (remote_enable_disable_tracepoint_feature)
4512 (remote_string_tracing_feature)
4513 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4514 (remote_protocol_features): Adjust to use remote_supported_packet
4515 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4516 "ConditionalTracepoints", "ConditionalBreakpoints",
4517 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4518 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4519 "EnableDisableTracepoints", and "tracenz".
4520 (remote_query_supported): Use packet_support.
4521 (remote_open_1): Adjust.
4522 (extended_remote_attach_1): Use packet_support. Switch on the
4523 result of packet_ok instead of checking whether the packet ended
4525 (remote_vcont_resume): Use packet_support.
4526 (remote_resume, remote_stop_ns, fetch_register_using_p)
4527 (remote_prepare_to_store, store_register_using_P)
4528 (check_binary_download, remote_write_bytes): Use packet_support.
4529 (remote_vkill): Use packet_support. Switch on the result of
4530 packet_ok instead of checking whether the packet ended up
4532 (extended_remote_supports_disable_randomization): Use
4534 (extended_remote_run): Switch on the result of packet_ok instead
4535 of checking whether the packet ended up disabled.
4536 (remote_insert_breakpoint, remote_remove_breakpoint)
4537 (remote_insert_watchpoint, remote_remove_watchpoint)
4538 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4540 (remote_search_memory): Use packet_config_support.
4541 (remote_get_thread_local_address, remote_get_tib_address)
4542 (remote_hostio_send_command, remote_can_execute_reverse): Use
4544 (remote_supports_cond_tracepoints)
4545 (remote_supports_cond_breakpoints)
4546 (remote_supports_fast_tracepoints)
4547 (remote_supports_static_tracepoints)
4548 (remote_supports_install_in_trace)
4549 (remote_supports_enable_disable_tracepoint)
4550 (remote_supports_string_tracing)
4551 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4552 the packet config says the feature is enabled or disabled.
4553 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4554 (remote_get_trace_status): Use packet_support.
4555 (remote_set_disconnected_tracing): Adjust to check whether the
4556 feature is enabled with packet_support.
4557 (remote_set_trace_buffer_size, remote_use_agent)
4558 (remote_can_use_agent, remote_supports_btrace): Use
4560 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4561 Use packet_config_support.
4562 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4563 the packet config says the feature is enabled or disabled.
4564 (set_range_stepping): Use packet_support.
4566 2014-04-25 Tom Tromey <tromey@redhat.com>
4568 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4571 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4573 * NEWS: Mention support for C99 variable length arrays.
4575 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4577 * ada-lang.c (standard_exc): Expand introductory comment.
4579 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4580 Walfred Tedeschi <walfred.tedeschi@intel.com>
4582 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4584 (amd64_linux_read_description): Add code to handle AVX512 xstate
4585 mask and return respective tdesc.
4586 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4587 and features/i386/x32-avx512-linux.c.
4588 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4589 (amd64_linux_core_read_description): Add code to handle AVX512
4590 xstate mask and return respective tdesc.
4591 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4592 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4594 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4595 (tdesc_amd64_avx512_linux): New prototype.
4596 (tdesc_x32_avx512_linux): Likewise.
4597 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4598 features/i386/x32-avx512.c.
4599 (amd64_ymm_avx512_names): New register names for pseudo
4601 (amd64_ymmh_avx512_names): New register names for raw registers
4603 (amd64_k_names): New register names for K registers.
4604 (amd64_zmmh_names): New register names for ZMM raw registers.
4605 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4606 (amd64_xmm_avx512_names): New register names for XMM16-31
4608 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4610 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4611 if feature is present.
4612 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4613 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4614 (AMD64_NUM_REGS): Adjust to new number of registers.
4615 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4616 registers supplied via XSTATE by AVX512 registers.
4617 (i386_linux_read_description): Add case for AVX512.
4618 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4619 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4620 (i386_linux_core_read_description): Add case for AVX512.
4621 (i386_linux_init_abi): Install supported register note section
4623 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4625 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4626 registers to be number of zmm7h + 1.
4627 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4628 * i386-tdep.c: Include features/i386/i386-avx512.c.
4629 (i386_zmm_names): Add ZMM pseudo register names array.
4630 (i386_zmmh_names): Add ZMM raw register names array.
4631 (i386_k_names): Add K raw register names array.
4632 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4633 registers. AVX512 has 16 more ZMM registers than there are YMM
4635 (i386_zmmh_regnum_p): Add function to look up register number of
4637 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4638 (i386_k_regnum_p): Likewise for K raw registers.
4639 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4640 registers added by AVX512.
4641 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4642 registers added by AVX512.
4643 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4645 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4646 (i386_pseudo_register_name): Add ZMM pseudo registers.
4647 (i386_zmm_type): Construct and return vector registers type for ZMM
4649 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4650 ZMM0-31 pseudo registers and K registers.
4651 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4652 and YMM16-31 registers from register cache.
4653 (i386_pseudo_register_write): Add code to write K, ZMM and
4655 (i386_register_reggroup_p): Add code to include/exclude AVX512
4656 registers in/from respective register groups.
4657 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4658 registers if feature is present in xcr0.
4659 (i386_gdbarch_init): Add code to initialize AVX512 feature
4660 variables in tdep structure, wire in pseudo registers and call
4661 initialize_tdesc_i386_avx512.
4662 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4664 (i386_regnum): Add AVX512 registers.
4665 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4666 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4667 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4668 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4670 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4671 (i386_ymm_avx512_regnum_p): Likewise.
4672 (i386_k_regnum_p): Likewise.
4673 (i386_zmm_regnum_p): Likewise.
4674 (i386_zmmh_regnum_p): Likewise.
4675 * i387-tdep.c : Update year in copyright notice.
4676 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4678 (XSAVE_YMM_AVX512_ADDR): New macro.
4679 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4681 (XSAVE_XMM_AVX512_ADDR): New macro.
4682 (xsave_avx512_k_offset): New table for K register offsets in
4684 (XSAVE_AVX512_K_ADDR): New macro.
4685 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4687 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4688 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4690 (i387_collect_xsave): Add code to collect AVX512 registers from
4692 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4693 of XMM16-31 registers.
4694 (I387_NUM_K_REGS): New define for number of K registers.
4695 (I387_K0_REGNUM): New define for K0 register number.
4696 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4697 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4698 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4700 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4701 (I387_XMM16_REGNUM): New define for XMM16 register number.
4702 (I387_YMM0_REGNUM): New define for YMM0 register number.
4703 (I387_KEND_REGNUM): New define for last K register number.
4704 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4705 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4707 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4709 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4711 * features/Makefile: Add AVX512 related files.
4712 * features/i386/32bit-avx512.xml: New file.
4713 * features/i386/64bit-avx512.xml: Likewise.
4714 * features/i386/amd64-avx512-linux.c: Likewise.
4715 * features/i386/amd64-avx512-linux.xml: Likewise.
4716 * features/i386/amd64-avx512.c: Likewise.
4717 * features/i386/amd64-avx512.xml: Likewise.
4718 * features/i386/i386-avx512-linux.c: Likewise.
4719 * features/i386/i386-avx512-linux.xml: Likewise.
4720 * features/i386/i386-avx512.c: Likewise.
4721 * features/i386/i386-avx512.xml: Likewise.
4722 * features/i386/x32-avx512-linux.c: Likewise.
4723 * features/i386/x32-avx512-linux.xml: Likewise.
4724 * features/i386/x32-avx512.c: Likewise.
4725 * features/i386/x32-avx512.xml: Likewise.
4726 * regformats/i386/amd64-avx512-linux.dat: New file.
4727 * regformats/i386/amd64-avx512.dat: Likewise.
4728 * regformats/i386/i386-avx512-linux.dat: Likewise.
4729 * regformats/i386/i386-avx512.dat: Likewise.
4730 * regformats/i386/x32-avx512-linux.dat: Likewise.
4731 * regformats/i386/x32-avx512.dat: Likewise.
4732 * NEWS: Add note about new support for AVX512.
4735 2014-04-23 Pedro Alves <palves@redhat.com>
4737 * breakpoint.c (insert_bp_location): Tolerate errors if the
4738 breakpoint is set in a user-loaded objfile.
4739 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4740 location is marked shlib_disabled. If the breakpoint is set in a
4741 user-loaded objfile is a GDB-side memory breakpoint, validate it
4742 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4743 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4745 * mem-break.c (memory_validate_breakpoint): New function.
4746 * objfiles.c (userloaded_objfile_contains_address_p): New
4748 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4749 * target.h (memory_validate_breakpoint): New declaration.
4751 2014-04-23 Pedro Alves <palves@redhat.com>
4753 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4754 the breakpoint is set in a shared library, only suppress
4755 errors for software breakpoints, not hardware breakpoints.
4757 2014-04-22 Pedro Alves <palves@redhat.com>
4759 * infrun.c (schedlock_applies): New function, factored out from
4760 find_thread_needs_step_over.
4761 (find_thread_needs_step_over): Use it.
4762 (switch_back_to_stepped_thread): Always clear trap_expected if the
4763 step over is finished. Return early if scheduler locking applies.
4764 Look for the stepping thread and a potential step-over thread with
4766 (currently_stepping_or_nexting_callback): Delete.
4768 2014-04-22 Nick Clifton <nickc@redhat.com>
4770 * NEWS: Mention that ARM sim now supports tracing.
4772 2014-04-22 Yao Qi <yao@codesourcery.com>
4774 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4776 * tracefile.c (tracefile_fetch_registers): ... it. New
4778 * tracefile.h (tracefile_fetch_registers): Declare.
4779 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4780 tracefile_fetch_registers.
4782 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4785 * windows-nat.c (thread_rec): Don't display a warning when
4786 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4787 fails for any reason, set th->suspended to -1, so that we don't
4788 try to resume such a thread. Also, don't return NULL in these
4789 cases, to avoid completely ruin the session due to "PC register is
4790 not available" error.
4791 (do_windows_fetch_inferior_registers): Check errors in
4792 GetThreadContext call.
4793 (windows_continue): Accept an additional argument KILLED; if not
4794 zero, ignore errors in the SetThreadContext call, since the
4795 inferior was killed and is shutting down.
4796 (windows_resume, get_windows_debug_event)
4797 (windows_create_inferior, windows_mourn_inferior)
4798 (windows_kill_inferior): All callers of windows_continue changed
4799 to adjust to its new calling sequence.
4801 2014-04-19 Yao Qi <yao@codesourcery.com>
4803 * ctf.c (ctf_open): Call post_create_inferior.
4805 2014-04-19 Yao Qi <yao@codesourcery.com>
4807 * ctf.c (handle_id): New static variable.
4808 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4809 value. Get the declaration of event "register" and get length
4810 of field "contents".
4812 2014-04-19 Yao Qi <yao@codesourcery.com>
4814 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4816 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4818 * valops.c (oload_method_static): Remove unnecessary argument
4819 METHOD. Update all callers.
4821 2014-04-18 Pedro alves <palves@redhat.com>
4822 Tom Tromey <tromey@redhat.com>
4825 * frame.c (get_prev_frame_1): Rename to ...
4826 (get_prev_frame_always): ... this, and make extern. Adjust.
4827 (skip_artificial_frames): Use get_prev_frame_always.
4828 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4829 (get_frame_unwind_stop_reason): Adjust to rename.
4830 * frame.h (get_prev_frame_always): Declare.
4831 * inline-frame.c: Include frame.h.
4832 (inline_frame_this_id): Use get_prev_frame_always.
4834 2014-04-18 Tristan Gingold <gingold@adacore.com>
4836 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4837 code by using bfd_mach_o_get_base_address.
4839 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4841 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4842 (spu_ax_pseudo_register_collect): New function.
4843 (spu_ax_pseudo_register_push_stack): Likewise.
4844 (spu_dwarf_reg_to_regnum): Likewise.
4845 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4847 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4849 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4850 Replace FRAME argument with FRAME_ID.
4851 * gdbarch.c, gdbarch.h: Regenerate.
4852 * findvar.c (default_value_from_register): Add GDBARCH argument;
4853 replace FRAME by FRAME_ID. No longer call get_frame_id.
4854 (value_from_register): Update call to gdbarch_value_from_register.
4855 * value.h (default_value_from_register): Update prototype.
4856 * s390-linux-tdep.c (s390_value_from_register): Update interface
4857 and call to default_value_from_register.
4858 * spu-tdep.c (spu_value_from_register): Likewise.
4860 * findvar.c (address_from_register): Remove TYPE argument.
4861 Do not call value_from_register; use gdbarch_value_from_register
4862 with null_frame_id instead.
4863 * value.h (address_from_register): Update prototype.
4864 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4865 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4866 address_from_register interface change.
4868 2014-04-17 Yao Qi <yao@codesourcery.com>
4870 * gdbtypes.h: Update comments to link to types and macros'
4873 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4875 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4877 2014-04-16 Keith Seitz <keiths@redhat.com>
4880 * dwarf2read.c (skip_one_die): Check that all relative-offset
4881 sibling DIEs fall within range of the current reader's buffer.
4882 (read_partial_die): Likewise.
4884 2014-04-16 Keith Seitz <keiths@redhat.com>
4887 * cp-namespace.c (lookup_symbol_file): If the type name of
4888 `this' is NULL, return immediately.
4890 2014-04-14 Keith Seitz <keiths@redhat.com>
4893 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4894 from symbol_matches_domain in symtab.c. All local callers
4895 of symbol_matches_domain updated.
4896 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4897 search STRUCT_DOMAIN.
4898 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4899 independently. standard_lookup will do that automatically.
4900 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4901 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4902 (cp_lookup_symbol_in_namespace): Likewise.
4903 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4904 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4905 may return a STRUCT_DOMAIN match.
4906 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4907 * cp-support.c: Include language.h.
4908 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4910 * psymtab.c (match_partial_symbol): Compare the requested
4911 domain with the symbol's domain directly.
4912 (lookup_partial_symbol): Likewise.
4913 * symtab.c (lookup_symbol_in_language): Explain when/why
4914 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4915 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4916 appropriate languages.
4917 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4918 and moved to ada-lang.c
4919 (lookup_block_symbol): Explain that this function only returns
4920 symbol matching the requested DOMAIN.
4921 Compare the requested domain with the symbol's domain directly.
4922 (iterate_over_symbols): Compare the requested domain with the
4923 symbol's domain directly.
4924 * symtab.h (symbol_matches_domain): Remove.
4926 2014-04-14 Tom Tromey <tromey@redhat.com>
4929 * c-exp.y (type_aggregate_p): New function.
4930 (qualified_name, classify_inner_name): Use it.
4931 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4932 and TYPE_TARGET_TYPE of an enum type.
4933 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4935 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4936 handle TYPE_DECLARED_CLASS.
4937 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4939 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4940 * valops.c (enum_constant_from_type): New function.
4941 (value_aggregate_elt): Use it.
4942 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4945 2014-04-14 Tom Tromey <tromey@redhat.com>
4947 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4948 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4950 * value.h (value_aggregate_elt): Update.
4952 2014-04-14 Tom Tromey <tromey@redhat.com>
4954 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4956 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4958 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4959 (evaluate_subexp_standard): Pass noside argument.
4960 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4961 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4962 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4963 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4964 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4968 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4969 points to a constant blob.
4971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4973 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4974 property and store it as the high bound and flag the range accordingly.
4975 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4976 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4977 * gdbtypes.h (enum range_flags): New enum.
4978 (struct range_bounds): Add flags member.
4980 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4982 * c-typeprint.c (c_type_print_varspec_suffix): Added
4983 check for not yet resolved high bound. If unresolved, print
4984 "variable length" string to the console instead of random
4987 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4989 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4991 (ada_template_to_fixed_record_type_1): Likewise.
4992 (ada_to_fixed_type_1): Likewise.
4993 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4994 (cp_print_value): Likewise.
4995 * d-valprint.c (dynamic_array_type): Likewise.
4996 * findvar.c (address_of_variable): Likewise.
4997 * jv-valprint.c (java_value_print): Likewise.
4998 * valops.c (value_ind): Likewise.
4999 * value.c (coerce_ref): Likewise.
5001 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5003 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5004 value and retrieve the dynamic type size.
5006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5009 passed to sizeof is dynamic evaluate the argument to compute the length.
5011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5012 Joel Brobecker <brobecker@adacore.com>
5014 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5015 (dwarf2_evaluate_property): New function.
5016 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5017 * dwarf2read.c (attr_to_dynamic_prop): New function.
5018 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5020 * gdbtypes.c: Include dwarf2loc.h.
5021 (is_dynamic_type): New function.
5022 (resolve_dynamic_type): New function.
5023 (resolve_dynamic_bounds): New function.
5024 (get_type_length): New function.
5025 (check_typedef): Use get_type_length to compute type length.
5026 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5027 (TYPE_LOW_BOUND_KIND): New macro.
5028 (is_dynamic_type): New function prototype.
5029 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5030 to resolve dynamic properties of the type. Update comment.
5031 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5033 2014-04-14 Richard Henderson <rth@redhat.com>
5035 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5037 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5038 Doug Evans <xdje42@gmail.com>
5040 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5041 dereference TYPE_CODE_REF values.
5043 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5045 Revert the following changes due to regressions:
5047 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5048 (dwarf2_evaluate_property): New function.
5049 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5050 * dwarf2read.c (attr_to_dynamic_prop): New function.
5051 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5053 * gdbtypes.c: Include dwarf2loc.h.
5054 (is_dynamic_type): New function.
5055 (resolve_dynamic_type): New function.
5056 (resolve_dynamic_bounds): New function.
5057 (get_type_length): New function.
5058 (check_typedef): Use get_type_length to compute type length.
5059 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5060 (TYPE_LOW_BOUND_KIND): New macro.
5061 (is_dynamic_type): New function prototype.
5062 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5063 to resolve dynamic properties of the type. Update comment.
5064 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5066 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5067 passed to sizeof is dynamic evaluate the argument to compute the length.
5069 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5070 value and retrieve the dynamic type size.
5072 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5073 (ada_template_to_fixed_record_type_1): Likewise.
5074 (ada_to_fixed_type_1): Likewise.
5075 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5076 (cp_print_value): Likewise.
5077 * d-valprint.c (dynamic_array_type): Likewise.
5078 * eval.c (evaluate_subexp_with_coercion): Likewise.
5079 * findvar.c (address_of_variable): Likewise.
5080 * jv-valprint.c (java_value_print): Likewise.
5081 * valops.c (value_ind): Likewise.
5082 * value.c (coerce_ref): Likewise.
5084 * c-typeprint.c (c_type_print_varspec_suffix): Added
5085 check for not yet resolved high bound. If unresolved, print
5086 "variable length" string to the console instead of random
5089 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5090 property and store it as the high bound and flag the range accordingly.
5091 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5092 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5093 * gdbtypes.h (enum range_flags): New enum.
5094 (struct range_bounds): Add flags member.
5096 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5097 points to a constant blob.
5099 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5100 (evaluate_subexp_standard): Pass noside argument.
5101 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5102 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5103 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5104 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5105 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5107 2014-04-11 Keith Seitz <keiths@redhat.com>
5110 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5111 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5114 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5116 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5117 (evaluate_subexp_standard): Pass noside argument.
5118 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5119 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5120 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5121 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5122 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5126 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5127 points to a constant blob.
5129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5131 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5132 property and store it as the high bound and flag the range accordingly.
5133 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5134 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5135 * gdbtypes.h (enum range_flags): New enum.
5136 (struct range_bounds): Add flags member.
5138 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5140 * c-typeprint.c (c_type_print_varspec_suffix): Added
5141 check for not yet resolved high bound. If unresolved, print
5142 "variable length" string to the console instead of random
5145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5147 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5148 (ada_template_to_fixed_record_type_1): Likewise.
5149 (ada_to_fixed_type_1): Likewise.
5150 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5151 (cp_print_value): Likewise.
5152 * d-valprint.c (dynamic_array_type): Likewise.
5153 * eval.c (evaluate_subexp_with_coercion): Likewise.
5154 * findvar.c (address_of_variable): Likewise.
5155 * jv-valprint.c (java_value_print): Likewise.
5156 * valops.c (value_ind): Likewise.
5157 * value.c (coerce_ref): Likewise.
5159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5161 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5162 value and retrieve the dynamic type size.
5164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5166 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5167 passed to sizeof is dynamic evaluate the argument to compute the length.
5169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5171 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5172 (dwarf2_evaluate_property): New function.
5173 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5174 * dwarf2read.c (attr_to_dynamic_prop): New function.
5175 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5177 * gdbtypes.c: Include dwarf2loc.h.
5178 (is_dynamic_type): New function.
5179 (resolve_dynamic_type): New function.
5180 (resolve_dynamic_bounds): New function.
5181 (get_type_length): New function.
5182 (check_typedef): Use get_type_length to compute type length.
5183 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5184 (TYPE_LOW_BOUND_KIND): New macro.
5185 (is_dynamic_type): New function prototype.
5186 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5187 to resolve dynamic properties of the type. Update comment.
5188 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5190 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5192 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5193 declaring high/low bounds and change uses accordingly. Call
5194 create_range_type instead of create_static_range_type.
5195 * gdbtypes.c (create_range_type): New function.
5196 (create_range_type): Convert bounds into struct bound_prop and pass
5197 them to create_range_type.
5198 * gdbtypes.h (struct bound_prop): New struct.
5199 (create_range_type): New function prototype.
5200 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5201 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5202 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5204 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5206 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5208 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5209 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5210 * ada-lang.c: All uses of create_range_type updated.
5211 * coffread.c: All uses of create_range_type updated.
5212 * dwarf2read.c: All uses of create_range_type updated.
5213 * f-exp.y: All uses of create_range_type updated.
5214 * m2-valprint.c: All uses of create_range_type updated.
5215 * mdebugread.c: All uses of create_range_type updated.
5216 * stabsread.c: All uses of create_range_type updated.
5217 * valops.c: All uses of create_range_type updated.
5218 * valprint.c: All uses of create_range_type updated.
5220 2014-04-10 Pedro Alves <palves@redhat.com>
5222 * breakpoint.c (single_step_breakpoints)
5223 (single_step_gdbarch): Move up in the file.
5224 (one_breakpoint_xfer_memory): New function, factored out from ...
5225 (breakpoint_xfer_memory): ... here. Also process single-step
5228 2014-04-09 Tristan Gingold <gingold@adacore.com>
5230 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5232 (darwin_decode_exception_message): Free port only after use.
5234 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5236 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5237 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5238 when setting the size of call_length.
5240 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5242 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5243 dereference TYPE_CODE_REF values.
5245 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5247 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5248 end of warning message.
5250 2014-04-03 Doug Evans <dje@google.com>
5252 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5253 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5255 2014-04-02 Alan Modra <amodra@gmail.com>
5257 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5258 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5259 (struct symbol_file_add_from_memory_args): Add size field.
5260 (find_vdso_size): New function.
5261 (add_vsyscall_page): Attempt to find vdso size.
5263 2014-04-01 Doug Evans <dje@google.com>
5265 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5267 2014-04-01 Tristan Gingold <gingold@adacore.com>
5269 * darwin-nat.c (darwin_encode_reply): Add prototype.
5270 (darwin_decode_exception_message): Reply to unknown inferiors.
5271 (darwin_decode_message): Handle message by id. Ignore message
5272 to unknown inferior.
5273 (darwin_wait): Discard unknown messages, add debug trace.
5275 2014-03-31 Doug Evans <dje@google.com>
5277 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5280 2014-03-31 Doug Evans <dje@google.com>
5282 New option "set print symbol-loading".
5284 * solib.c (solib_read_symbols): Only print symbol loading messages
5286 (solib_add): If symbol loading is in "brief" mode, notify user
5287 symbols are being loaded.
5288 (reload_shared_libraries_1): Ditto.
5289 * symfile.c (print_symbol_loading_off): New static global.
5290 (print_symbol_loading_brief): New static global.
5291 (print_symbol_loading_full): New static global.
5292 (print_symbol_loading_enums): New static global.
5293 (print_symbol_loading): New static global.
5294 (print_symbol_loading_p): New function.
5295 (symbol_file_add_with_addrs): Only print symbol loading messages
5297 (_initialize_symfile): Register "print symbol-loading" set/show
5299 * symfile.h (print_symbol_loading_p): Declare.
5301 2014-03-30 Doug Evans <xdje42@gmail.com>
5303 * infrun.c (set_last_target_status): New function.
5304 (handle_inferior_event): Call it.
5306 2014-03-30 Doug Evans <xdje42@gmail.com>
5308 * inferior.h (enum stop_kind): Improve comment.
5310 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5312 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5313 a reference, strip the reference layer before calling
5314 the lang_ops value_has_mutated callback.
5316 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5318 Remove some globals from our parser.
5319 * language.c (unk_lang_parser): Add "struct parser_state"
5321 * language.h (struct language_defn) <la_parser>: Likewise.
5322 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5323 (initialize_expout): Add "struct parser_state" argument.
5324 Rewrite function to use the parser state.
5325 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5326 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5327 write_exp_elt_longcst, write_exp_elt_dblcst,
5328 write_exp_elt_decfloatcst, write_exp_elt_type,
5329 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5330 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5331 write_dollar_variable): Likewise.
5332 (parse_exp_in_context_1): Use parser state.
5333 (insert_type_address_space): Add "struct parser_state" argument.
5335 (increase_expout_size): New function.
5336 * parser-defs.h: Forward declare "struct language_defn" and
5337 "struct parser_state".
5338 (expout, expout_size, expout_ptr): Remove extern declarations.
5339 (parse_gdbarch, parse_language): Rewrite macro declarations to
5340 accept the parser state.
5341 (struct parser_state): New struct.
5342 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5343 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5344 write_exp_elt_decfloatcst, write_exp_elt_type,
5345 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5346 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5347 write_exp_msymbol, write_dollar_variable,
5348 mark_struct_expression, insert_type_address_space): Add "struct
5349 parser_state" argument.
5350 (increase_expout_size): New function.
5351 * utils.c (do_clear_parser_state): New function.
5352 (make_cleanup_clear_parser_state): Likewise.
5353 * utils.h (make_cleanup_clear_parser_state): New function
5355 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5356 Update calls to write_exp* in order to pass the parser state.
5357 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5358 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5359 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5360 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5361 * stap-probe.c (stap_parse_register_operand): Likewise.
5362 (stap_parse_single_operand): Likewise.
5363 (stap_parse_argument_1): Likewise.
5364 (stap_parse_argument): Use parser state.
5365 * stap-probe.h: Include "parser-defs.h".
5366 (struct stap_parse_info) <pstate>: New field.
5367 * c-exp.y (parse_type): Rewrite to use parser state.
5368 (yyparse): Redefine to c_parse_internal.
5369 (pstate): New global variable.
5370 (parse_number): Add "struct parser_state" argument.
5371 (write_destructor_name): Likewise.
5372 (type_exp): Update calls to write_exp* and similars in order to
5374 (exp1, exp, variable, qualified_name, space_identifier,
5375 typename, typebase): Likewise.
5376 (write_destructor_name, parse_number, lex_one_token,
5377 classify_name, classify_inner_name, c_parse): Add "struct
5378 parser_state" argument. Update function to use parser state.
5379 * c-lang.h: Forward declare "struct parser_state".
5380 (c_parse): Add "struct parser_state" argument.
5381 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5382 (yyparse): Redefine macro to ada_parse_internal.
5383 (pstate): New variable.
5384 (write_int, write_object_renaming, write_var_or_type,
5385 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5386 type_int, type_long, type_long_long, type_float, type_double,
5387 type_long_double, type_char, type_boolean, type_system_address):
5388 Add "struct parser_state" argument.
5389 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5390 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5391 var_or_type, aggregate, aggregate_component_list,
5392 positional_list, others, component_group,
5393 component_associations): Update calls to write_exp* and similar
5394 functions in order to use parser state.
5395 (ada_parse, write_var_from_sym, write_int,
5396 write_exp_op_with_string, write_object_renaming,
5397 find_primitive_type, write_selectors, write_ambiguous_var,
5398 write_var_or_type, write_name_assoc, type_int, type_long,
5399 type_long_long, type_float, type_double, type_long_double,
5400 type_char, type_boolean, type_system_address): Add "struct
5401 parser_state" argument. Adjust function to use parser state.
5402 * ada-lang.c (parse): Likewise.
5403 * ada-lang.h: Forward declare "struct parser_state".
5404 (ada_parse): Add "struct parser_state" argument.
5405 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5406 calls to both functions.
5407 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5409 (yyparse): Redefine macro to f_parse_internal.
5410 (pstate): New variable.
5411 (parse_number): Add "struct parser_state" argument.
5412 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5413 and similars in order to use parser state.
5414 (parse_number): Adjust code to use parser state.
5416 (f_parse): New function.
5417 * f-lang.h: Forward declare "struct parser_state".
5418 (f_parse): Add "struct parser_state" argument.
5419 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5421 (yyparse): Redefine macro for java_parse_internal.
5422 (pstate): New variable.
5423 (push_expression_name, push_expression_name, insert_exp): Add
5424 "struct parser_state" argument.
5425 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5426 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5427 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5428 PostIncrementExpression, PostDecrementExpression,
5429 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5430 UnaryExpressionNotPlusMinus, CastExpression,
5431 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5432 RelationalExpression, EqualityExpression, AndExpression,
5433 ExclusiveOrExpression, InclusiveOrExpression,
5434 ConditionalAndExpression, ConditionalOrExpression,
5435 ConditionalExpression, Assignment, LeftHandSide): Update
5436 calls to write_exp* and similars in order to use parser state.
5437 (parse_number): Ajust code to use parser state.
5439 (java_parse): New function.
5440 (push_variable): Add "struct parser_state" argument. Adjust
5441 code to user parser state.
5442 (push_fieldnames, push_qualified_expression_name,
5443 push_expression_name, insert_exp): Likewise.
5444 * jv-lang.h: Forward declare "struct parser_state".
5445 (java_parse): Add "struct parser_state" argument.
5446 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5448 (yyparse): Redefine macro to m2_parse_internal.
5449 (pstate): New variable.
5450 (type_exp, exp, fblock, variable, type): Update calls to
5451 write_exp* and similars to use parser state.
5453 (m2_parse): New function.
5454 * m2-lang.h: Forward declare "struct parser_state".
5455 (m2_parse): Add "struct parser_state" argument.
5456 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5457 * objc-lang.h: Forward declare "struct parser_state".
5458 (end_msglist): Add "struct parser_state" argument.
5459 * p-exp.y (parse_type): Rewrite macro to use parser state.
5460 (yyparse): Redefine macro to pascal_parse_internal.
5461 (pstate): New variable.
5462 (parse_number): Add "struct parser_state" argument.
5463 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5464 write_exp* and similars in order to use parser state.
5465 (parse_number, yylex): Adjust code to use parser state.
5466 (pascal_parse): New function.
5467 * p-lang.h: Forward declare "struct parser_state".
5468 (pascal_parse): Add "struct parser_state" argument.
5469 * go-exp.y (parse_type): Rewrite macro to use parser state.
5470 (yyparse): Redefine macro to go_parse_internal.
5471 (pstate): New variable.
5472 (parse_number): Add "struct parser_state" argument.
5473 (type_exp, exp1, exp, variable, type): Update calls to
5474 write_exp* and similars in order to use parser state.
5475 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5476 to use parser state.
5477 (go_parse): Likewise.
5478 * go-lang.h: Forward declare "struct parser_state".
5479 (go_parse): Add "struct parser_state" argument.
5481 2014-03-27 Doug Evans <dje@google.com>
5483 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5485 2014-03-27 Doug Evans <dje@google.com>
5487 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5488 Remove argument abbrev_section. All callers updated.
5490 2014-03-27 Doug Evans <dje@google.com>
5492 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5493 addr_base, ranges_base.
5495 2014-03-26 Keith Seitz <keiths@redhat.com>
5497 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5498 types, not VAR_DOMAIN.
5500 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5502 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5504 * features/nios2-linux.c: Regenerated.
5505 * features/nios2.c: Regenerated.
5507 2014-03-25 Pedro Alves <palves@redhat.com>
5509 * cli/cli-script.c (script_from_file): Force the interpreter to
5512 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5514 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5515 small stack allocation.
5517 2014-03-24 Tristan Gingold <gingold@adacore.com>
5519 * darwin-nat.c (exc_server): Remove unused prototype.
5520 (darwin_dump_message): Correctly display data on x86_64.
5521 (darwin_encode_reply): Fix style.
5522 Add comments and fix indentation.
5524 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5526 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5528 2014-03-22 Doug Evans <xdje42@gmail.com>
5530 * infcmd.c: Whitespace fixes.
5531 (interrupt_command): Merge two function comments into one.
5533 2014-03-22 Doug Evans <xdje42@gmail.com>
5535 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5538 2014-03-22 Yao Qi <yao@codesourcery.com>
5540 * remote.c (target_read_live_memory): Remove.
5541 (memory_xfer_live_readonly_partial): Rename it to
5542 remote_xfer_live_readonly_partial. Remove argument 'object'.
5543 All callers updated. Call remote_read_bytes_1
5544 instead of target_read_live_memory.
5545 * tracepoint.c (set_traceframe_number): Remove.
5546 (make_cleanup_restore_traceframe_number): Likewise .
5547 * tracepoint.h (set_traceframe_number): Remove declaration.
5548 (make_cleanup_restore_traceframe_number): Likewise.
5550 2014-03-22 Yao Qi <yao@codesourcery.com>
5552 * remote.c (remote_read_bytes): Move code on reading from the
5554 (remote_read_bytes_1): ... here. New function.
5556 2014-03-22 Yao Qi <yao@codesourcery.com>
5558 * ctf.c (ctf_xfer_partial): Check the return value of
5559 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5560 return TARGET_XFER_UNAVAILABLE.
5561 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5562 * target.c (target_read_live_memory): Move it to remote.c.
5563 (memory_xfer_live_readonly_partial): Likewise.
5564 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5565 * remote.c (target_read_live_memory): Moved from target.c.
5566 (memory_xfer_live_readonly_partial): Likewise.
5567 (remote_read_bytes): Factored out from
5568 memory_xfer_partial_1.
5570 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5572 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5575 2014-03-21 Pedro Alves <palves@redhat.com>
5577 * infrun.c (normal_stop): Extend comment.
5579 2014-03-21 Hui Zhu <hui@codesourcery.com>
5580 Pedro Alves <palves@redhat.com>
5582 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5584 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5585 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5586 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5588 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5590 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5591 `z' formatted output modifier.
5593 2014-03-20 Tom Tromey <tromey@redhat.com>
5594 Sergio Durigan Junior <sergiodj@redhat.com>
5596 * probe.c (parse_probes): Turn assert into an ordinary error.
5597 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5598 exceptions when parsing probes. Rearrange the code for clarity.
5600 2014-03-20 Tom Tromey <tromey@redhat.com>
5603 * top.c (execute_command): Only dispatch events if the command
5606 2014-03-20 Tom Tromey <tromey@redhat.com>
5609 * infcall.c: Include event-top.h.
5610 (run_inferior_call): Call async_disable_stdin if needed.
5612 2014-03-20 Pedro Alves <palves@redhat.com>
5614 * infrun.c (prepare_to_proceed): Delete.
5615 (thread_still_needs_step_over): New function.
5616 (find_thread_needs_step_over): New function.
5617 (proceed): If the current thread needs a step-over, set its
5618 steping_over_breakpoint flag. Adjust to use
5619 find_thread_needs_step_over instead of prepare_to_proceed.
5620 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5621 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5623 (switch_back_to_stepped_thread): Step over breakpoints of all
5624 threads not the stepping thread, before switching back to the
5627 2014-03-20 Pedro Alves <palves@redhat.com>
5629 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5631 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5632 * infrun.c (saved_singlestep_ptid)
5633 (stepping_past_singlestep_breakpoint): Delete.
5634 (resume): Remove stepping_past_singlestep_breakpoint handling.
5635 (proceed): Store the prev_pc of the stepping thread too.
5636 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5638 (enum infwait_states): Delete infwait_thread_hop_state.
5639 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5641 (handle_inferior_event): Adjust.
5642 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5643 handling and the thread-hop code. Before removing single-step
5644 breakpoints, check whether the thread hit a single-step breakpoint
5645 of another thread. If it did, the trap is not a random signal.
5646 (switch_back_to_stepped_thread): If the event thread hit a
5647 single-step breakpoint, unblock it before switching to the
5648 stepping thread. Handle the case of the stepped thread having
5650 (keep_going): Handle the case of the current thread moving past a
5651 single-step breakpoint.
5653 2014-03-20 Pedro Alves <palves@redhat.com>
5656 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5657 are being stepped over.
5658 (breakpoint_address_match): Make extern.
5659 * breakpoint.h (breakpoint_address_match): New declaration.
5660 * inferior.h (stepping_past_instruction_at): New declaration.
5661 * infrun.c (struct step_over_info): New type.
5662 (step_over_info): New global.
5663 (set_step_over_info, clear_step_over_info)
5664 (stepping_past_instruction_at): New functions.
5665 (handle_inferior_event): Clear the step-over info when
5666 trap_expected is cleared.
5667 (resume): Remove now stale comment.
5668 (clear_proceed_status): Clear step-over info.
5669 (proceed): Adjust step-over handling to set or clear the step-over
5670 info instead of removing all breakpoints.
5671 (handle_signal_stop): When setting up a thread-hop, don't remove
5673 (stop_stepping): Clear step-over info.
5674 (keep_going): Adjust step-over handling to set or clear step-over
5675 info and then always inserting breakpoints, instead of removing
5676 all breakpoints when stepping over one.
5678 2014-03-20 Pedro Alves <palves@redhat.com>
5680 * infrun.c (previous_inferior_ptid): Adjust comment.
5681 (deferred_step_ptid): Delete.
5682 (infrun_thread_ptid_changed, prepare_to_proceed)
5683 (init_wait_for_inferior): Adjust.
5684 (handle_signal_stop): Delete deferred_step_ptid handling.
5686 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5689 * defs.h (sync_quit_force_run): New declaration.
5690 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5691 * event-top.c (async_sigterm_handler): New declaration.
5692 (async_sigterm_token): New variable.
5693 (async_init_signals): Create also async_sigterm_token.
5694 (async_sigterm_handler): New function.
5695 (sync_quit_force_run): New variable.
5696 (handle_sigterm): Replace quit_force call by other calls.
5697 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5699 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5701 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5702 offset into SPE pseudo registers.
5704 2014-03-18 Pedro Alves <palves@redhat.com>
5707 * inferior.h (print_stop_event): Declare.
5708 * infrun.c (print_stop_event): New, factored out from ...
5709 (normal_stop): ... this.
5710 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5711 of bpstat_print/print_stack_frame.
5713 2014-03-17 Tom Tromey <tromey@redhat.com>
5715 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5717 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5719 * ada-lang.c (decode_constrained_packed_array): Perform a
5720 minimal coercion for reference with coerce_ref instead of
5723 2014-03-17 Tristan Gingold <gingold@adacore.com>
5725 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5726 (darwin_solib_create_inferior_hook): Emit a warning if version
5729 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5731 * python/py-value.c (get_field_flag): Cast flag_name argument to
5732 PyObject_GetAttrString to support Python 2.4.
5734 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5737 (Global Maintainers): Remove Jan Kratochvil.
5739 2014-03-14 Pedro Alves <palves@redhat.com>
5741 * inferior.h (terminal_ours_for_output): Rename to ...
5742 (child_terminal_ours_for_output): ... this.
5743 (terminal_save_ours): Rename to ...
5744 (child_terminal_save_ours): ... this.
5745 (terminal_ours): Rename to ...
5746 (child_terminal_ours): ... this.
5747 (terminal_inferior): Rename to ...
5748 (child_terminal_inferior): ... this.
5749 (terminal_init_inferior): Rename to ...
5750 (child_terminal_init_inferior): ... this.
5751 (terminal_init_inferior_with_pgrp): Rename to ...
5752 (child_terminal_init_inferior_with_pgrp): ... this.
5753 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5754 (child_terminal_init_with_pgrp): ... this.
5755 (terminal_save_ours): Rename to ...
5756 (child_terminal_save_ours): ... this.
5757 (terminal_init_inferior): Rename to ...
5758 (child_terminal_init): ... this. Adjust.
5759 (terminal_inferior): Rename to ...
5760 (child_terminal_inferior): ... this.
5761 (terminal_ours_for_output): Rename to ...
5762 (child_terminal_ours_for_output): ... this. Adjust.
5763 (terminal_ours): Rename to ...
5764 (child_terminal_ours): ... this.
5765 (terminal_ours_1): Rename to ...
5766 (child_terminal_ours_1): ... this. Adjust.
5767 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5768 * windows-nat.c (do_initial_windows_stuff): Adjust.
5769 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5770 (gnu_terminal_init): ... this. Adjust.
5771 (gnu_target): Adjust.
5772 * inf-child.c (inf_child_target): Adjust.
5774 2014-03-13 Doug Evans <xdje42@gmail.com>
5777 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5780 2014-03-13 Doug Evans <xdje42@gmail.com>
5782 * value.c (record_latest_value): Call release_value_or_incref
5783 instead of release_value.
5785 2014-03-13 Pedro Alves <palves@redhat.com>
5787 * procfs.c (procfs_target): Don't override to_shortname,
5788 to_longname or to_doc.
5790 2014-03-13 Pedro Alves <palves@redhat.com>
5792 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5793 Unix in user visible strings.
5795 2014-03-12 Stan Shebs <stan@codesourcery.com>
5797 * gdbtypes.h: Annotate comments for Doxygen, add a page
5798 block comment with some general info.
5800 2014-03-12 Pedro Alves <palves@redhat.com>
5802 * infcmd.c (prepare_execution_command): New function, factored out
5803 from several execution commands.
5804 (run_command_1, continue_command, step_1, jump_command)
5805 (signal_command, until_command, advance_command, finish_command)
5806 (attach_command): Use prepare_execution_command.
5808 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5810 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5813 (struct arm_linux_thread_points): Removed.
5814 (struct arm_linux_process_info): New.
5815 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5816 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5817 (arm_linux_find_breakpoints_by_tid): Removed.
5818 (struct arch_lwp_info): New.
5819 (arm_linux_find_process_pid): New functions.
5820 (arm_linux_add_process): New functions.
5821 (arm_linux_process_info_get): New functions.
5822 (arm_linux_forget_process): New function.
5823 (arm_linux_get_debug_reg_state): New function.
5824 (struct update_registers_data): New.
5825 (update_registers_callback): New function.
5826 (arm_linux_insert_hw_breakpoint1): Updated.
5827 (arm_linux_remove_hw_breakpoint1): Updated.
5828 (arm_linux_insert_hw_breakpoint): Updated.
5829 (arm_linux_remove_hw_breakpoint): Updated.
5830 (arm_linux_insert_watchpoint): Updated.
5831 (arm_linux_remove_watchpoint): Updated.
5832 (arm_linux_new_thread): Updated.
5833 (arm_linux_prepare_to_resume): New function.
5834 (arm_linux_new_fork): New function.
5835 (_initialize_arm_linux_nat): Updated.
5837 2014-03-12 Pedro Alves <palves@redhat.com>
5839 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5841 2014-03-12 Tom Tromey <tromey@redhat.com>
5843 * inf-child.c (return_zero): New function.
5844 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5845 * aix-thread.c (aix_thread_inferior_created): New function.
5846 (aix_thread_attach): Remove.
5847 (init_aix_thread_ops): Don't set to_attach.
5848 (_initialize_aix_thread): Register inferior_created observer.
5849 * corelow.c (init_core_ops): Don't set to_attach or
5851 * exec.c (init_exec_ops): Don't set to_attach or
5853 * infcmd.c (run_command_1): Use find_run_target. Make direct
5855 (attach_command): Use find_attach_target. Make direct target
5857 * record-btrace.c (init_record_btrace_ops): Don't set
5859 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5861 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5862 set to_create_inferior.
5863 * target.c (complete_target_initialization): Add assertion.
5864 (target_create_inferior): Remove.
5865 (find_default_attach, find_default_create_inferior): Remove.
5866 (find_attach_target, find_run_target): New functions.
5867 (find_default_is_async_p, find_default_can_async_p)
5868 (target_supports_non_stop, target_attach): Remove.
5869 (init_dummy_target): Don't set to_create_inferior or
5870 to_supports_non_stop.
5871 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5872 TARGET_DEFAULT_FUNC.
5873 <to_create_inferior>: Add comment.
5874 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5875 TARGET_DEFAULT_RETURN.
5876 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5877 (find_attach_target, find_run_target): Declare.
5878 (target_create_inferior): Remove.
5879 (target_has_execution_1): Update comment.
5880 (target_supports_non_stop): Remove.
5881 * target-delegates.c: Rebuild.
5883 2014-03-12 Pedro Alves <palves@redhat.com>
5885 * inf-child.h: Update comment to not mention Unix.
5887 2014-03-12 Pedro Alves <palves@redhat.com>
5889 * inf-child.c: Update top comment to not mention Unix. Add
5890 generic comment describing how this target is meant to be used.
5891 (inf_child_post_attach, inf_child_post_startup_inferior)
5892 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5895 2014-03-12 Pedro Alves <palves@redhat.com>
5897 * nto-procfs.c: Include inf-child.h.
5898 (procfs_ops): Delete global.
5899 (procfs_can_run): Delete method.
5900 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5901 target pointer instead of referencing procfs_ops.
5902 (procfs_prepare_to_store): Delete.
5903 (init_procfs_ops): Delete function.
5904 (procfs_target): New function, based on init_procfs_ops, but
5905 inherit inf_child_target.
5906 (_initialize_procfs): Use procfs_target.
5908 2014-03-12 Pedro Alves <palves@redhat.com>
5910 * windows-nat.c: Include inf-child.h.
5911 (windows_ops): Delete global.
5912 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5914 (init_windows_ops): Delete function.
5915 (windows_target): New function, based on init_windows_ops, but
5916 inherit inf_child_target.
5917 (_initialize_windows_nat): Use windows_target. Install x86
5918 specific target methods here.
5920 2014-03-10 Doug Evans <xdje42@gmail.com>
5922 * guile/guile.c (call_initialize_gdb_module): New function.
5923 (initialize_guile): Replace call to scm_init_guile with call to
5926 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5928 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5929 in call to TYPE_CODE macro.
5931 2014-03-10 Jerome Guitton <guitton@adacore.com>
5933 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5934 Resolve tagged types to full view.
5936 2014-03-10 Hui Zhu <hui@codesourcery.com>
5938 * target.h (target_insert_breakpoint): Remove "hardware" from its
5941 2014-03-07 Doug Evans <dje@google.com>
5943 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5945 2014-03-07 Doug Evans <dje@google.com>
5947 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5948 Remove unused local comp_dir_attr. Assert exactly one of
5949 stub_comp_unit_die, stub_comp_dir is non-NULL.
5951 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5953 * target.h (complete_target_initialization, add_target):
5956 2014-03-07 Pedro Alves <palves@redhat.com>
5958 * go32-nat.c: Include inf-child.h.
5959 (go32_ops): Delete global.
5960 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5962 (go32_create_inferior): Push the passed in target pointer instead
5963 of referencing go32_ops.
5964 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5965 (go32_target): New function, based on init_go32_ops, but inherit
5967 (_initialize_go32_nat): Use go32_target. Move parts of
5970 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5972 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5973 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5974 SYMBOL_VALUE_ADDRESS.
5975 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5977 2014-03-06 Yao Qi <yao@codesourcery.com>
5979 * breakpoint.c (get_tracepoint_by_number): Remove argument
5980 optional_p. All callers updated. Adjust comments. Update
5982 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5984 2014-03-06 Yao Qi <yao@codesourcery.com>
5986 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5987 early if get_number returns zero. Use 'p' instead of 'args'.
5989 2014-03-06 Yao Qi <yao@codesourcery.com>
5991 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5994 2014-03-06 Yao Qi <yao@codesourcery.com>
5996 PR breakpoints/16508
5997 * tracepoint.c (check_trace_running): New function.
5998 (trace_find_command): Move code to check_trace_running and
5999 call check_trace_running.
6000 (trace_find_pc_command): Likewise.
6001 (trace_find_tracepoint_command): Likewise.
6002 (trace_find_line_command): Likewise.
6003 (trace_find_range_command): Likewise.
6004 * tracepoint.h (check_trace_running): Likewise.
6005 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6007 2014-03-06 Yao Qi <yao@codesourcery.com>
6009 * target.h (struct target_ops) <to_traceframe_info>: Use
6010 TARGET_DEFAULT_NORETURN (tcomplain ()).
6011 * target-delegates.c: Regenerated.
6013 2014-03-05 Pedro Alves <palves@redhat.com>
6016 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6017 void. Update comment.
6018 (dcache_xfer_memory): Delete.
6019 (dcache_read_memory_partial): New, based on the read bits of
6021 (dcache_update): Add status parameter. Use ULONGEST for len, and
6022 adjust. Discard cache lines if the reason for the update was
6024 * dcache.h (dcache_xfer_memory): Delete declaration.
6025 (dcache_read_memory_partial): New declaration.
6026 (dcache_update): Update prototype.
6027 * target.c (raw_memory_xfer_partial): Update the dcache here.
6028 (memory_xfer_partial_1): Don't handle dcache writes here.
6030 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6032 * remote-sim.c (gdbsim_load): Add const to prog.
6034 2014-03-03 Tom Tromey <tromey@redhat.com>
6036 * elfread.c (probe_key): Change to bfd_data.
6037 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6038 now per-BFD, not per-objfile.
6039 * stap-probe.c (stap_probe_destroy): Update comment.
6040 (handle_stap_probe): Allocate on the per-BFD obstack.
6042 2014-03-03 Tom Tromey <tromey@redhat.com>
6044 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6045 * breakpoint.c (create_longjmp_master_breakpoint): Use
6047 (add_location_to_breakpoint, bkpt_probe_insert_location)
6048 (bkpt_probe_remove_location): Update.
6049 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6050 * elfread.c (elf_symfile_relocate_probe): Remove.
6051 (elf_probe_fns): Update.
6052 (insert_exception_resume_breakpoint): Change type of "probe"
6053 parameter to bound_probe.
6054 (check_exception_resume): Update.
6055 * objfiles.c (objfile_relocate1): Don't relocate probes.
6056 * probe.c (bound_probe_s): New typedef.
6057 (parse_probes): Use get_probe_address. Set sal's objfile.
6058 (find_probe_by_pc): Return a bound_probe.
6059 (collect_probes): Return a VEC(bound_probe_s).
6060 (compare_probes): Update.
6061 (gen_ui_out_table_header_info): Change type of "probes"
6063 (info_probes_for_ops): Update.
6064 (get_probe_address): New function.
6065 (probe_safe_evaluate_at_pc): Update.
6066 * probe.h (struct probe_ops) <get_probe_address>: New field.
6067 <set_semaphore, clear_semaphore>: Add objfile parameter.
6068 (struct probe) <objfile>: Remove field.
6070 <address>: Update comment.
6071 (struct bound_probe): New.
6072 (find_probe_by_pc): Return a bound_probe.
6073 (get_probe_address): Declare.
6074 * solib-svr4.c (struct probe_and_action) <address>: New field.
6075 (hash_probe_and_action, equal_probe_and_action): Update.
6076 (register_solib_event_probe): Add address parameter.
6077 (solib_event_probe_at): Update.
6078 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6080 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6081 (stap_get_probe_address): New function.
6082 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6083 (compile_probe_arg): Update.
6084 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6086 (handle_stap_probe): Don't relocate the probe.
6087 (stap_relocate): Remove.
6088 (stap_gen_info_probes_table_values): Update.
6089 (stap_probe_ops): Remove stap_relocate.
6090 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6091 (debug_sym_probe_fns): Update.
6092 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6093 * symtab.c (init_sal): Use memset.
6094 * symtab.h (struct symtab_and_line) <objfile>: New field.
6095 * tracepoint.c (start_tracing, stop_tracing): Update.
6097 2014-03-03 Tom Tromey <tromey@redhat.com>
6099 * probe.h (parse_probes, find_probe_by_pc)
6100 (find_probes_in_objfile): Fix comments.
6102 2014-03-02 Doug Evans <xdje42@gmail.com>
6104 * infrun.c (handle_signal_stop): Replace test for
6105 TARGET_WAITKIND_STOPPED with an assert.
6107 2014-03-02 Doug Evans <xdje42@gmail.com>
6109 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6111 2014-03-02 Doug Evans <xdje42@gmail.com>
6113 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6115 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6117 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6119 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6121 * i386obsd-nat.c: Include "obsd-nat.h".
6122 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6124 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6126 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6128 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6130 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6132 * mips64obsd-nat.c: Include "obsd-nath".
6133 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6135 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6137 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6139 * amd64obsd-nat.c: Include "obsd-nat,h.
6140 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6142 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6144 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6146 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6147 (find_overload_match): Update call to find_oload_champ.
6148 (find_oload_champ_namespace_loop): Likewise
6150 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6152 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6154 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6155 * config/sparc/obsd64.mh: New file.
6156 * sparc64obsd-nat.c: New file.
6158 * obsd-nat.h: New file.
6159 * obsd-nat.c: New file.
6160 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6161 (ALLDEPFILES): Add obsd-nat.c.
6163 2014-02-28 Tom Tromey <tromey@redhat.com>
6165 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6166 * cli-out.h (cli_ui_out_impl): Now const.
6167 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6168 * ui-out.c (struct ui_out) <impl>: Now const.
6169 (default_ui_out_impl): Now const.
6170 (ui_out_new): Make 'impl' parameter const.
6171 * ui-out.h (ui_out_new): Update.
6173 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6175 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6177 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6179 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6181 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6183 Additional PR 8882 fix.
6184 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6186 2014-02-27 Pedro Alves <palves@redhat.com>
6188 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6191 2014-02-27 Pedro Alves <palves@redhat.com>
6194 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6195 * nat/linux-waitpid.c: Include string.h.
6196 (status_to_str): Moved here and made extern.
6197 * nat/linux-waitpid.h (status_to_str): New declaration.
6199 2014-02-27 Hui Zhu <hui@codesourcery.com>
6202 * infrun.c (ptid_match): Move ...
6203 * common/ptid.c (ptid_match): ... here.
6204 * inferior.h (ptid_match): Move ...
6205 * common/ptid.h (ptid_match): ... here.
6207 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6209 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6210 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6213 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6215 * obsd-tdep.c (obsd_auxv_parse): New function.
6216 (obsd_init_abi): Set auxv_parse.
6218 * gdbarch.sh (auxv_parse): New.
6219 * gdbarch.h: Regenerated.
6220 * gdbarch.c: Regenerated.
6221 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6223 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6225 * guile/scm-value.c (gdbscm_history_append_x): New function.
6226 (value_functions): Add it.
6228 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6230 * dwarf2read.c (attr_value_as_address): New function.
6231 (dwarf2_find_base_address, read_call_site_scope): Use
6232 attr_value_as_address in place of DW_ADDR.
6233 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6234 the low and high addresses. Slight rework of the handling
6235 of the high pc being a constant form, and limit it to
6236 DWARF verson 4 or higher.
6237 (dwarf2_record_block_ranges): Likewise.
6238 (read_partial_die): Likewise.
6239 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6241 2014-02-26 Tom Tromey <tromey@redhat.com>
6243 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6245 2014-02-26 Tom Tromey <tromey@redhat.com>
6247 * elfread.c (elf_read_minimal_symbols): Return early if
6248 minimal symbols have already been read. Add "ei" parameter.
6249 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6250 * minsyms.c (prim_record_minimal_symbol_full): Update.
6251 * objfiles.h (struct objstats) <n_minsyms>: Move...
6252 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6253 * symmisc.c (print_objfile_statistics): Update.
6255 2014-02-26 Tom Tromey <tromey@redhat.com>
6257 * elfread.c (elf_read_minimal_symbols): New function, from
6259 (elf_symfile_read): Call it.
6261 2014-02-26 Tom Tromey <tromey@redhat.com>
6263 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6264 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6265 (lookup_minimal_symbol_solib_trampoline)
6266 (lookup_minimal_symbol_by_pc_section_1)
6267 (lookup_minimal_symbol_and_objfile): Update.
6268 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6269 Don't allocate a minimal symbol if minsyms have already been read.
6270 (build_minimal_symbol_hash_tables): Update.
6271 (install_minimal_symbols): Do nothing if minsyms already read.
6272 Use the per-BFD obstack.
6273 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6274 * objfiles.c (allocate_objfile): Call
6275 terminate_minimal_symbol_table later.
6276 (have_minimal_symbols): Update.
6277 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6278 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6279 Move from struct objfile.
6280 <minsyms_read>: New field.
6281 (struct objfile) <msymbols, minimal_symbol_count,
6282 msymbol_hash, msymbol_demangled_hash>: Move.
6283 (ALL_OBJFILE_MSYMBOLS): Update.
6284 * symfile.c (read_symbols): Set minsyms_read.
6285 (reread_symbols): Update.
6286 * symmisc.c (dump_objfile, dump_msymbols): Update.
6288 2014-02-26 Tom Tromey <tromey@redhat.com>
6290 * minsyms.c (msymbols_sort): Remove.
6291 * minsyms.h (msymbols_sort): Remove.
6292 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6293 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6294 * elfread.c (elf_symtab_read): Don't add section offsets.
6295 * xcoffread.c (record_minimal_symbol): Don't add section offset
6296 to minimal symbol address.
6297 * somread.c (text_offset, data_offset): Remove.
6298 (som_symtab_read): Don't add section offsets to minimal symbol
6300 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6301 Don't add section offsets to minimal symbols.
6302 * coffread.c (coff_symtab_read): Don't add section offsets
6303 to minimal symbol addresses.
6304 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6305 to minimal symbol addresses.
6306 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6307 section offset to minimal symbol addresses.
6308 * mdebugread.c (parse_partial_symbols): Don't add section
6309 offset to minimal symbol addresses.
6310 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6311 offset to minimal symbol addresses.
6313 2014-02-26 Tom Tromey <tromey@redhat.com>
6315 * ada-lang.c (ada_main_name): Update.
6316 (ada_add_standard_exceptions): Update.
6317 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6318 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6319 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6320 * auxv.c (ld_so_xfer_auxv): Update.
6321 * avr-tdep.c (avr_scan_prologue): Update.
6322 * ax-gdb.c (gen_var_ref): Update.
6323 * blockframe.c (get_pc_function_start)
6324 (find_pc_partial_function_gnu_ifunc): Update.
6325 * breakpoint.c (create_overlay_event_breakpoint)
6326 (create_longjmp_master_breakpoint)
6327 (create_std_terminate_master_breakpoint)
6328 (create_exception_master_breakpoint): Update.
6329 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6330 * c-valprint.c (c_val_print): Update.
6331 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6332 * common/agent.c (agent_look_up_symbols): Update.
6333 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6334 * dwarf2loc.c (call_site_to_target_addr): Update.
6335 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6336 * elfread.c (elf_gnu_ifunc_record_cache)
6337 (elf_gnu_ifunc_resolve_by_got): Update.
6338 * findvar.c (default_read_var_value): Update.
6339 * frame.c (inside_main_func): Update.
6340 * frv-tdep.c (frv_frame_this_id): Update.
6341 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6342 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6344 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6345 (hppa_hpux_find_dummy_bpaddr): Update.
6346 * hppa-tdep.c (hppa_symbol_address): Update.
6347 * infcmd.c (until_next_command): Update.
6348 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6350 * linespec.c (minsym_found, add_minsym): Update.
6351 * linux-nat.c (get_signo): Update.
6352 * linux-thread-db.c (inferior_has_bug): Update.
6353 * m32c-tdep.c (m32c_return_value)
6354 (m32c_m16c_address_to_pointer): Update.
6355 * m32r-tdep.c (m32r_frame_this_id): Update.
6356 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6357 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6358 * maint.c (maintenance_translate_address): Update.
6359 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6360 (frob_address): New function.
6361 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6362 frob_address. Rename parameter to "pc_in".
6363 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6365 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6367 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6368 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6369 * objc-lang.c (find_objc_msgsend): Update.
6370 * objfiles.c (objfile_relocate1): Update.
6371 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6372 * p-valprint.c (pascal_val_print): Update.
6373 * parse.c (write_exp_msymbol): Update.
6374 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6375 (ppc_elfv2_skip_entrypoint): Update.
6376 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6377 * printcmd.c (build_address_symbolic, msym_info)
6378 (address_info): Update.
6379 * proc-service.c (ps_pglobal_lookup): Update.
6380 * psymtab.c (find_pc_sect_psymtab_closer)
6381 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6382 Change msymbol parameter to bound_minimal_symbol.
6383 * ravenscar-thread.c (get_running_thread_id): Update.
6384 * remote.c (remote_check_symbols): Update.
6385 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6387 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6388 * solib-dsbt.c (lm_base): Update.
6389 * solib-frv.c (lm_base, main_got): Update.
6390 * solib-irix.c (locate_base): Update.
6391 * solib-som.c (som_solib_create_inferior_hook)
6392 (link_map_start): Update.
6393 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6394 * solib-svr4.c (elf_locate_base, enable_break): Update.
6395 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6396 (flush_ea_cache): Update.
6397 * stabsread.c (define_symbol, scan_file_globals): Update.
6398 * stack.c (find_frame_funname): Update.
6399 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6400 (debug_qf_find_pc_sect_symtab): Update.
6401 * symfile.c (simple_read_overlay_table)
6402 (simple_overlay_update): Update.
6403 * symfile.h (struct quick_symbol_functions)
6404 <find_pc_sect_symtab>: Change type of msymbol to
6405 bound_minimal_symbol.
6406 * symmisc.c (dump_msymbols): Update.
6407 * symtab.c (find_pc_sect_symtab_via_partial)
6408 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6409 (search_symbols, print_msymbol_info): Update.
6410 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6411 (MSYMBOL_VALUE_ADDRESS): Redefine.
6412 (BMSYMBOL_VALUE_ADDRESS): New macro.
6413 * tracepoint.c (scope_info): Update.
6414 * tui/tui-disasm.c (tui_find_disassembly_address)
6415 (tui_get_begin_asm_address): Update.
6416 * valops.c (find_function_in_inferior): Update.
6417 * value.c (value_static_field, value_fn_field): Update.
6419 2014-02-26 Tom Tromey <tromey@redhat.com>
6421 * ada-lang.c (ada_update_initial_language): Update.
6422 (ada_main_name, ada_has_this_exception_support): Update.
6423 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6424 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6425 * arm-tdep.c (arm_skip_stub): Update.
6426 * auxv.c (ld_so_xfer_auxv): Update.
6427 * avr-tdep.c (avr_scan_prologue): Update.
6428 * ax-gdb.c (gen_var_ref): Update.
6429 * breakpoint.c (struct breakpoint_objfile_data)
6430 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6431 type to bound_minimal_symbol.
6432 (create_overlay_event_breakpoint)
6433 (create_longjmp_master_breakpoint)
6434 (create_std_terminate_master_breakpoint)
6435 (create_exception_master_breakpoint): Update.
6436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6437 * c-exp.y (classify_name): Update.
6438 * coffread.c (coff_symfile_read): Update.
6439 * common/agent.c (agent_look_up_symbols): Update.
6440 * d-lang.c (d_main_name): Update.
6441 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6442 * dec-thread.c (enable_dec_thread): Update.
6443 * dwarf2loc.c (call_site_to_target_addr): Update.
6444 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6445 * eval.c (evaluate_subexp_standard): Update.
6446 * findvar.c (struct minsym_lookup_data) <result>: Change type
6447 to bound_minimal_symbol.
6449 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6450 * frame.c (inside_main_func): Update.
6451 * frv-tdep.c (frv_frame_this_id): Update.
6452 * gcore.c (call_target_sbrk): Update.
6453 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6454 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6456 * go-lang.c (go_main_name): Update.
6457 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6458 (hppa_hpux_find_import_stub_for_addr): Update.
6459 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6460 Update. Change return type.
6461 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6463 * jit.c (jit_breakpoint_re_set_internal): Update.
6464 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6466 * linux-nat.c (get_signo): Update.
6467 * linux-thread-db.c (inferior_has_bug): Update
6468 * m32c-tdep.c (m32c_return_value)
6469 (m32c_m16c_address_to_pointer): Update.
6470 * m32r-tdep.c (m32r_frame_this_id): Update.
6471 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6472 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6473 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6474 lookup_minimal_symbol. Change return type.
6475 (lookup_minimal_symbol): Remove.
6476 (lookup_bound_minimal_symbol): Update.
6477 (lookup_minimal_symbol_text): Change return type.
6478 (lookup_minimal_symbol_solib_trampoline): Change return type.
6479 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6480 (lookup_minimal_symbol_solib_trampoline): Change return type.
6481 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6482 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6483 (value_nsstring, find_imps): Update.
6484 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6485 * p-lang.c (pascal_main_name): Update.
6486 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6487 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6488 * proc-service.c (ps_pglobal_lookup): Update.
6489 * ravenscar-thread.c (get_running_thread_msymbol): Change
6491 (has_ravenscar_runtime, get_running_thread_id): Update.
6492 * remote.c (remote_check_symbols): Update.
6493 * sol-thread.c (ps_pglobal_lookup): Update.
6494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6495 * solib-dsbt.c (lm_base): Update.
6496 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6498 * solib-irix.c (locate_base): Update.
6499 * solib-som.c (som_solib_create_inferior_hook)
6500 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6502 * solib-spu.c (spu_enable_break): Update.
6503 * solib-svr4.c (elf_locate_base, enable_break): Update.
6504 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6505 (flush_ea_cache): Update.
6506 * stabsread.c (define_symbol): Update.
6507 * symfile.c (simple_read_overlay_table): Update.
6508 * symtab.c (find_pc_sect_line): Update.
6509 * tracepoint.c (scope_info): Update.
6510 * tui-disasm.c (tui_get_begin_asm_address): Update.
6511 * value.c (value_static_field): Update.
6513 2014-02-26 Tom Tromey <tromey@redhat.com>
6515 * minsyms.c (prim_record_minimal_symbol_full): Use
6516 SET_MSYMBOL_VALUE_ADDRESS.
6517 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6518 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6519 SET_MSYMBOL_VALUE_ADDRESS.
6520 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6521 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6523 2014-02-26 Tom Tromey <tromey@redhat.com>
6525 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6526 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6527 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6528 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6529 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6530 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6531 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6532 * ada-lang.c (ada_main_name): Update.
6533 (ada_lookup_simple_minsym): Update.
6534 (ada_make_symbol_completion_list): Update.
6535 (ada_add_standard_exceptions): Update.
6536 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6537 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6538 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6539 * arm-tdep.c (skip_prologue_function): Update.
6540 (arm_skip_stack_protector, arm_skip_stub): Update.
6541 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6542 (arm_wince_skip_main_prologue): Update.
6543 * auxv.c (ld_so_xfer_auxv): Update.
6544 * avr-tdep.c (avr_scan_prologue): Update.
6545 * ax-gdb.c (gen_var_ref): Update.
6546 * block.c (call_site_for_pc): Update.
6547 * blockframe.c (get_pc_function_start): Update.
6548 (find_pc_partial_function_gnu_ifunc): Update.
6549 * breakpoint.c (create_overlay_event_breakpoint): Update.
6550 (create_longjmp_master_breakpoint): Update.
6551 (create_std_terminate_master_breakpoint): Update.
6552 (create_exception_master_breakpoint): Update.
6553 (resolve_sal_pc): Update.
6554 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6555 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6557 * c-valprint.c (c_val_print): Update.
6558 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6559 * coffread.c (coff_symfile_read): Update.
6560 * common/agent.c (agent_look_up_symbols): Update.
6561 * dbxread.c (find_stab_function_addr): Update.
6562 (end_psymtab): Update.
6563 * dwarf2loc.c (call_site_to_target_addr): Update.
6564 (func_verify_no_selftailcall): Update.
6565 (tailcall_dump): Update.
6566 (call_site_find_chain_1): Update.
6567 (dwarf_expr_reg_to_entry_parameter): Update.
6568 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6569 (elf_gnu_ifunc_resolve_by_got): Update.
6570 * f-valprint.c (info_common_command): Update.
6571 * findvar.c (read_var_value): Update.
6572 * frame.c (get_prev_frame_1): Update.
6573 (inside_main_func): Update.
6574 * frv-tdep.c (frv_skip_main_prologue): Update.
6575 (frv_frame_this_id): Update.
6576 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6577 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6578 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6579 (gnuv3_skip_trampoline): Update.
6580 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6581 (hppa64_hpux_in_solib_call_trampoline): Update.
6582 (hppa_hpux_skip_trampoline_code): Update.
6583 (hppa64_hpux_search_dummy_call_sequence): Update.
6584 (hppa_hpux_find_import_stub_for_addr): Update.
6585 (hppa_hpux_find_dummy_bpaddr): Update.
6586 * hppa-tdep.c (hppa_symbol_address)
6587 (hppa_lookup_stub_minimal_symbol): Update.
6588 * i386-tdep.c (i386_skip_main_prologue): Update.
6589 (i386_pe_skip_trampoline_code): Update.
6590 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6591 * infcall.c (get_function_name): Update.
6592 * infcmd.c (until_next_command): Update.
6593 * jit.c (jit_breakpoint_re_set_internal): Update.
6594 (jit_inferior_init): Update.
6595 * linespec.c (minsym_found): Update.
6596 (add_minsym): Update.
6597 * linux-fork.c (info_checkpoints_command): Update.
6598 * linux-nat.c (get_signo): Update.
6599 * linux-thread-db.c (inferior_has_bug): Update.
6600 * m32c-tdep.c (m32c_return_value): Update.
6601 (m32c_m16c_address_to_pointer): Update.
6602 (m32c_m16c_pointer_to_address): Update.
6603 * m32r-tdep.c (m32r_frame_this_id): Update.
6604 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6605 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6606 * maint.c (maintenance_translate_address): Update.
6607 * minsyms.c (add_minsym_to_hash_table): Update.
6608 (add_minsym_to_demangled_hash_table): Update.
6609 (msymbol_objfile): Update.
6610 (lookup_minimal_symbol): Update.
6611 (iterate_over_minimal_symbols): Update.
6612 (lookup_minimal_symbol_text): Update.
6613 (lookup_minimal_symbol_by_pc_name): Update.
6614 (lookup_minimal_symbol_solib_trampoline): Update.
6615 (lookup_minimal_symbol_by_pc_section_1): Update.
6616 (lookup_minimal_symbol_and_objfile): Update.
6617 (prim_record_minimal_symbol_full): Update.
6618 (compare_minimal_symbols): Update.
6619 (compact_minimal_symbols): Update.
6620 (build_minimal_symbol_hash_tables): Update.
6621 (install_minimal_symbols): Update.
6622 (terminate_minimal_symbol_table): Update.
6623 (find_solib_trampoline_target): Update.
6624 (minimal_symbol_upper_bound): Update.
6625 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6626 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6627 (mips_skip_pic_trampoline_code): Update.
6628 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6629 * objc-lang.c (selectors_info): Update.
6630 (classes_info): Update.
6631 (find_methods): Update.
6632 (find_imps): Update.
6633 (find_objc_msgsend): Update.
6634 * objfiles.c (objfile_relocate1): Update.
6635 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6636 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6637 * p-valprint.c (pascal_val_print): Update.
6638 * parse.c (write_exp_msymbol): Update.
6639 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6640 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6641 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6642 * printcmd.c (build_address_symbolic): Update.
6644 (address_info): Update.
6645 * proc-service.c (ps_pglobal_lookup): Update.
6646 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6647 (find_pc_sect_psymtab): Update.
6648 * python/py-framefilter.c (py_print_frame): Update.
6649 * ravenscar-thread.c (get_running_thread_id): Update.
6650 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6652 * remote.c (remote_check_symbols): Update.
6653 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6654 (rs6000_skip_trampoline_code): Update.
6655 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6656 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6657 * solib-dsbt.c (lm_base): Update.
6658 * solib-frv.c (lm_base): Update.
6660 * solib-irix.c (locate_base): Update.
6661 * solib-som.c (som_solib_create_inferior_hook): Update.
6662 (som_solib_desire_dynamic_linker_symbols): Update.
6663 (link_map_start): Update.
6664 * solib-spu.c (spu_enable_break): Update.
6665 (ocl_enable_break): Update.
6666 * solib-svr4.c (elf_locate_base): Update.
6667 (enable_break): Update.
6668 * spu-tdep.c (spu_get_overlay_table): Update.
6669 (spu_catch_start): Update.
6670 (flush_ea_cache): Update.
6671 * stabsread.c (define_symbol): Update.
6672 (scan_file_globals): Update.
6673 * stack.c (find_frame_funname): Update.
6674 (frame_info): Update.
6675 * symfile.c (simple_read_overlay_table): Update.
6676 (simple_overlay_update): Update.
6677 * symmisc.c (dump_msymbols): Update.
6678 * symtab.c (fixup_section): Update.
6679 (find_pc_sect_line): Update.
6680 (skip_prologue_sal): Update.
6681 (search_symbols): Update.
6682 (print_msymbol_info): Update.
6683 (rbreak_command): Update.
6684 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6685 (completion_list_objc_symbol): Update.
6686 (default_make_symbol_completion_list_break_on): Update.
6687 * tracepoint.c (scope_info): Update.
6688 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6689 (tui_get_begin_asm_address): Update.
6690 * valops.c (find_function_in_inferior): Update.
6691 * value.c (value_static_field): Update.
6692 (value_fn_field): Update.
6694 2014-02-26 Tom Tromey <tromey@redhat.com>
6696 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6697 bound minimal symbols. Move code that knows about minsym
6699 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6701 * minsyms.h (minimal_symbol_upper_bound): Declare.
6702 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6703 minimal_symbol_upper_bound.
6705 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6707 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6708 Use the type's name if its basic type does not have a tag.
6710 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6712 * dwarf2read.c (read_subrange_type): Add comment.
6714 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6716 * dwarf2read.c (update_enumeration_type_from_children): New
6717 function, mostly extracted from process_structure_scope.
6718 (read_enumeration_type): Call update_enumeration_type_from_children.
6719 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6720 and flag_flag_enum fields.
6722 2014-02-26 Pedro Alves <palves@redhat.com>
6724 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6725 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6726 to_xfer_partial method.
6728 2014-02-26 Pedro Alves <palves@redhat.com>
6730 * target.c (complete_target_initialization): Don't install
6731 default_xfer_partial as to_xfer_partial hook.
6733 (update_current_target): Don't INHERIT nor de_fault
6734 deprecated_xfer_memory. Delete de_fault macro.
6735 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6736 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6737 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6740 2014-02-26 Pedro Alves <palves@redhat.com>
6742 * go32-nat.c (my_write_child): New function.
6743 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6744 (go32_xfer_partial): New function.
6745 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6746 Instead install a to_xfer_partial hook.
6748 2014-02-26 Pedro Alves <palves@redhat.com>
6750 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6751 to_xfer_partial helper. Rewrite.
6752 (procfs_xfer_partial): New function.
6753 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6754 Install a to_xfer_partial hook.
6756 2014-02-26 Pedro Alves <palves@redhat.com>
6758 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6759 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6760 (m32r_xfer_partial): New function.
6761 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6762 Install a to_xfer_partial hook.
6764 2014-02-26 Pedro Alves <palves@redhat.com>
6766 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6768 (mips_xfer_partial): New function.
6769 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6770 hook. Install a to_xfer_partial hook.
6772 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6774 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6775 * gdbtypes.c (create_array_type_with_stride): New function,
6776 renaming create_array_type, but with an added parameter
6777 called "bit_stride".
6778 (create_array_type): Re-implement using
6779 create_array_type_with_stride.
6780 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6781 and DW_AT_bit_stride attributes.
6783 2014-02-26 Pedro Alves <palves@redhat.com>
6785 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6786 task-specific breakpoints.
6788 2014-02-25 Pedro Alves <palves@redhat.com>
6790 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6791 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6793 2014-02-25 Stan Shebs <stan@codesourcery.com>
6795 * defs.h: Annotate comments for Doxygen.
6797 2014-02-25 Tom Tromey <tromey@redhat.com>
6799 * target.h (target_ignore): Don't declare.
6800 * target.c (target_ignore): Remove.
6802 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6805 * auto-load.c (auto_load_objfile_script_1): Change filename to
6808 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6810 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6811 documentation. Adjust prototype to match the target_ops
6812 to_xfer_partial method. Adjust implementation accordingly.
6814 2014-02-25 Hui Zhu <hui@codesourcery.com>
6816 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6819 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6821 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6822 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6823 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6824 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6825 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6826 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6827 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6828 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6830 (rl78_register_type): Use a data pointer type for SP and
6831 new pseudo registers mentioned above. Use a 16 bit integer
6832 type for all other register pairs.
6833 (rl78_register_name, rl78_g10_register_name): Update for
6834 new pseudo registers.
6835 (rl78_pseudo_register_read): Likewise.
6836 (rl78_pseudo_register_write): Likewise.
6837 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6838 to the newly added pseudo registers.
6840 2014-02-24 Doug Evans <dje@google.com>
6842 * value.c (record_latest_value): Fix comment.
6843 * printcmd.c (print_command_1): Remove code to handle -1 return from
6844 record_latest_value.
6846 2014-02-24 Pedro Alves <palves@redhat.com>
6848 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6849 deprecated_xfer_memory hook.
6850 (procfs_xfer_partial): Call procfs_xfer_memory instead
6851 of the deprecated_xfer_memory target hook.
6852 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6855 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6857 * windows-nat.c (windows_xfer_shared_libraries): Return
6858 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6859 requested object is TARGET_OBJECT_LIBRARIES.
6861 2014-02-24 Yao Qi <yao@codesourcery.com>
6863 * target.h (enum target_xfer_status)
6864 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6865 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6867 * corefile.c (memory_error_message): User updated.
6868 * exec.c (section_table_read_available_memory): Likewise.
6869 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6870 * target.c (target_xfer_status_to_string): Likewise.
6871 (raw_memory_xfer_partial): Likewise.
6872 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6873 * valops.c (read_value_memory): Likewise.
6874 * exec.h: Update comments.
6876 2014-02-24 Yao Qi <yao@codesourcery.com>
6878 * target.c (target_xfer_status_to_string): Rename argument err
6880 * target.h (target_xfer_status_to_string): Update declaration.
6881 Replace target_xfer_error_to_string with
6882 target_xfer_status_to_string in comment.
6884 2014-02-24 Yao Qi <yao@codesourcery.com>
6886 * mips-linux-nat.c (super_close): Update its type.
6887 (mips_linux_close): Pass 'self' to super_close.
6889 2014-02-24 Yao Qi <yao@codesourcery.com>
6891 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6892 * corefile.c (read_memory): Adjusted.
6893 * target.c (target_write_with_progress): Adjusted.
6895 2014-02-23 Yao Qi <yao@codesourcery.com>
6899 2013-10-25 Yao Qi <yao@codesourcery.com>
6901 * remote.c (remote_traceframe_info): Return early if
6902 traceframe is not selected.
6904 2013-07-19 Yao Qi <yao@codesourcery.com>
6906 * target.c (update_current_target): Change the default action
6907 of 'to_traceframe_info' from tcomplain to return_zero.
6908 * target.h (struct target_ops) <to_traceframe_info>: Add more
6911 2014-02-23 Yao Qi <yao@codesourcery.com>
6913 * valops.c (read_value_memory): Rewrite it. Call
6914 target_xfer_partial in a loop.
6915 * exec.h (section_table_available_memory): Remove declaration.
6916 Move comments to ...
6917 * exec.c (section_table_available_memory): ... here. Make it
6920 2014-02-23 Yao Qi <yao@codesourcery.com>
6922 * exec.c (section_table_read_available_memory): New function.
6923 * exec.h (section_table_read_available_memory): Declare.
6924 * ctf.c (ctf_xfer_partial): Call
6925 section_table_read_available_memory.
6926 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6928 2014-02-23 Yao Qi <yao@codesourcery.com>
6930 * ctf.c (ctf_xfer_partial): Move code to ...
6931 * exec.c (exec_read_partial_read_only): ... it. New function.
6932 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6933 * tracefile.c: Include "exec.h".
6934 * exec.h (exec_read_partial_read_only): Declare.
6936 2014-02-23 Yao Qi <yao@codesourcery.com>
6938 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6939 (tfile_has_memory): Remove.
6940 (init_tfile_ops): Don't set fields to_has_all_memory and
6941 to_has_memory of tfile_ops.
6942 * tracefile.c (tracefile_has_all_memory): New function.
6943 (tracefile_has_memory): New function.
6944 (init_tracefile_ops): Initialize fields to_has_all_memory and
6945 to_has_memory of 'ops'.
6947 2014-02-23 Yao Qi <yao@codesourcery.com>
6949 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6950 (ctf_thread_alive, ctf_get_trace_status): Remove.
6951 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6953 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6954 (tfile_has_stack, tfile_has_registers): Remove.
6955 (tfile_thread_alive): Remove.
6956 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6958 * tracefile.c (tracefile_has_stack): New function.
6959 (tracefile_has_registers): New function.
6960 (tracefile_thread_alive): New function.
6961 (tracefile_get_trace_status): New function.
6962 (init_tracefile_ops): New function.
6963 * tracefile.h (init_tracefile_ops): Declare.
6965 2014-02-23 Yao Qi <yao@codesourcery.com>
6967 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6968 (O_LARGEFILE): Likewise.
6969 (tfile_ops): Likewise.
6970 (TRACE_HEADER_SIZE): Likewise.
6971 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6972 (cur_data_size): Likewise.
6973 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6974 (tfile_close, tfile_files_info): Likewise.
6975 (tfile_get_trace_status): Likewise.
6976 (tfile_get_tracepoint_status): Likewise.
6977 (tfile_get_traceframe_address): Likewise.
6978 (tfile_trace_find, match_blocktype): Likewise.
6979 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6980 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6981 (tfile_get_trace_state_variable_value): Likewise.
6982 (tfile_has_all_memory, tfile_has_memory): Likewise.
6983 (tfile_has_stack, tfile_has_registers): Likewise.
6984 (tfile_thread_alive, build_traceframe_info): Likewise.
6985 (tfile_traceframe_info, init_tfile_ops): Likewise.
6986 (_initialize_tracepoint): Don't call init_tfile_ops
6987 and add_target_with_completer.
6988 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6989 exec.h, completer.h and filenames.h.
6990 (_initialize_tracefile_tfile): New function.
6992 2014-02-23 Yao Qi <yao@codesourcery.com>
6994 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6996 (HFILES_NO_SRCDIR): Add tracefile.h.
6997 * ctf.c: Include "tracefile.h".
6998 * tracefile.h: New file.
6999 * tracefile.c: New file
7000 * tracefile-tfile.c: New file.
7001 * tracepoint.c: Include "tracefile.h".
7002 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7003 (stop_reason_names): Add const.
7004 (trace_file_writer_xfree): Move it to tracefile.c.
7005 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7006 (trace_save_ctf): Likewise.
7007 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7008 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7009 (tfile_write_header, tfile_write_regblock_type): Likewise.
7010 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7011 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7012 (tfile_write_raw_data, tfile_end): Likewise.
7013 (tfile_trace_file_writer_new): Likewise.
7014 (free_uploaded_tp): Make it extern.
7015 (free_uploaded_tsv): Make it extern.
7016 (_initialize_tracepoint): Move code to register command 'tsave'
7018 * tracepoint.h (stop_reason_names): Declare.
7019 (struct trace_frame_write_ops): Move it to tracefile.h.
7020 (struct trace_file_write_ops): Likewise.
7021 (struct trace_file_writer): Likewise.
7022 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7024 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7027 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7029 (get_cores_used_by_process): New parameter num_cores, use it.
7030 (linux_xfer_osdata_processes): Pass num_cores to it.
7031 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7034 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7036 * target.c (memory_xfer_partial): Fix length arg in call to
7037 breakpoint_xfer_memory.
7039 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7042 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7043 number comes after the + or - signs. Adjust length of register
7044 name to be extracted.
7046 2014-02-20 Tom Tromey <tromey@redhat.com>
7048 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7049 (ada_varobj_ops): Mark "extern".
7051 2014-02-20 Tom Tromey <tromey@redhat.com>
7053 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7055 2014-02-20 Doug Evans <xdje42@gmail.com>
7057 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7058 All callers updated.
7059 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7060 All callers updated.
7061 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7062 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7064 2014-02-20 lin zuojian <manjian2006@gmail.com>
7065 Joel Brobecker <brobecker@adacore.com>
7066 Doug Evans <xdje42@gmail.com>
7069 * dwarf2read.c (struct die_info): New member in_process.
7070 (reset_die_in_process): New function.
7071 (process_die): Set it at the start, reset when returning.
7072 (inherit_abstract_dies): Only call process_die if origin_child_die
7073 not already being processed.
7075 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7077 * windows-nat.c (handle_unload_dll): Add function documentation.
7078 (do_initial_windows_stuff): Add comment explaining why we wait
7079 until after inferior initialization has finished before
7080 processing all DLLs.
7082 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7084 * windows-nat.c (get_module_name): Delete.
7085 (windows_get_exec_module_filename): New function, mostly
7086 inspired from get_module_name.
7087 (windows_pid_to_exec_file): Replace call to get_module_name
7088 by call to windows_get_exec_module_filename.
7090 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7092 * windows-nat.c (handle_load_dll): Rewrite this function's
7093 introductory comment. Remove code using get_module_name
7094 to get the DLL's name.
7096 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7098 * windows-nat.c (get_windows_debug_event): Ignore
7099 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7100 if windows_initialization_done == 0.
7101 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7102 Adjust implementation to always load all DLLs.
7103 (do_initial_windows_stuff): Replace call to
7104 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7106 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7108 * windows-nat.c (_initialize_windows_nat): Deprecate the
7109 "dll-symbols" command. Turn the "add-shared-symbol-files"
7110 and "assf" aliases into commands, and deprecate them as well.
7111 * NEWS: Add entry explaining that "dll-symbols" and its two
7112 aliases are now deprecated.
7114 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7116 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7117 new-line in debug string. Remove trailing spaces.
7119 2014-02-19 Stan Shebs <stan@codesourcery.com>
7121 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7123 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7125 * NEWS: Add entry for the new feature
7126 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7129 2014-02-19 Stan Shebs <stan@codesourcery.com>
7131 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7133 2014-02-19 Pedro Alves <palves@redhat.com>
7135 * common/ptid.h (struct ptid): Mention that process_stratum
7136 targets should prefer ptid.lwp.
7138 2014-02-19 Pedro Alves <palves@redhat.com>
7140 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7141 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7142 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7143 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7144 store remote thread ids rather than ptid.tid.
7145 (_initialize_remote): Adjust.
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * target.c (target_get_unwinder): Rewrite.
7150 (target_get_tailcall_unwinder): Rewrite.
7151 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7152 (record_btrace_to_get_tailcall_unwinder): New function.
7153 (init_record_btrace_ops): Update.
7154 * target.h (struct target_ops) <to_get_unwinder,
7155 to_get_tailcall_unwinder>: Now function pointers. Use
7156 TARGET_DEFAULT_RETURN.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7162 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7168 * target-delegates.c: Rebuild.
7169 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7170 TARGET_DEFAULT_FUNC.
7171 * target.c (default_target_decr_pc_after_break): Rename from
7172 forward_target_decr_pc_after_break. Simplify.
7173 (target_decr_pc_after_break): Rely on delegation.
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * target.c (update_current_target): Do not INHERIT to_doc or
7178 to_magic. Do not de_fault to_open or to_close.
7180 2014-02-19 Tom Tromey <tromey@redhat.com>
7182 * gcore.h (objfile_find_memory_regions): Declare.
7183 * gcore.c (objfile_find_memory_regions): No longer static. Add
7185 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7186 * exec.c: Include gcore.h.
7187 (exec_set_find_memory_regions): Remove.
7188 (exec_find_memory_regions): Remove.
7189 (exec_do_find_memory_regions): Remove.
7190 (init_exec_ops): Update.
7191 * defs.h (exec_set_find_memory_regions): Remove.
7193 2014-02-19 Tom Tromey <tromey@redhat.com>
7195 * target-delegates.c: Rebuild.
7196 * target.h (struct target_ops) <to_extra_thread_info,
7197 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7198 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7199 not 0, in TARGET_DEFAULT_RETURN.
7201 2014-02-19 Tom Tromey <tromey@redhat.com>
7203 * target.c (complete_target_initialization): Remove casts. Use
7204 return_zero_has_execution.
7205 (return_zero): Add "ignore" argument.
7206 (return_zero_has_execution): New function.
7207 (init_dummy_target): Remove casts. Use
7208 return_zero_has_execution.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target.c (update_current_target): Update comments. Do not
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7217 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7219 * corelow.c (core_read_description): Delegate when needed.
7220 * remote.c (remote_read_description): Delegate when needed.
7221 * target-delegates.c: Rebuild.
7222 * target.c (target_read_description): Rewrite.
7223 * target.h (struct target_ops) <to_read_description>: Update
7224 comment. Use TARGET_DEFAULT_RETURN.
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * target-delegates.c: Rebuild.
7229 * target.c (update_current_target): Don't inherit or default
7231 (find_default_run_target): Check against delegate_can_run.
7232 * target.h (struct target_ops) <to_can_run>: Use
7233 TARGET_DEFAULT_RETURN.
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target-delegates.c: Rebuild.
7238 * target.c (target_disconnect): Unconditionally delegate.
7239 * target.h (struct target_ops) <to_disconnect>: Use
7240 TARGET_DEFAULT_NORETURN.
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * record.c (record_stop): Unconditionally delegate.
7245 * target-delegates.c: Rebuild.
7246 * target.c (target_stop_recording): Unconditionally delegate.
7247 * target.h (struct target_ops) <to_stop_recording>: Use
7248 TARGET_DEFAULT_IGNORE.
7250 2014-02-19 Tom Tromey <tromey@redhat.com>
7252 * target-delegates.c: Rebuild.
7253 * target.c (target_enable_btrace): Unconditionally delegate.
7254 * target.h (struct target_ops) <to_enable_btrace>: Use
7255 TARGET_DEFAULT_NORETURN.
7257 2014-02-19 Tom Tromey <tromey@redhat.com>
7259 * target-delegates.c: Rebuild.
7260 * target.c (target_read_btrace): Unconditionally delegate.
7261 * target.h (struct target_ops) <to_read_btrace>: Use
7262 TARGET_DEFAULT_NORETURN.
7264 2014-02-19 Tom Tromey <tromey@redhat.com>
7266 * target-delegates.c: Rebuild.
7267 * target.c (target_teardown_btrace): Unconditionally delegate.
7268 * target.h (struct target_ops) <to_teardown_btrace>: Use
7269 TARGET_DEFAULT_NORETURN.
7271 2014-02-19 Tom Tromey <tromey@redhat.com>
7273 * target-delegates.c: Rebuild.
7274 * target.c (target_disable_btrace): Unconditionally delegate.
7275 * target.h (struct target_ops) <to_disable_btrace>: Use
7276 TARGET_DEFAULT_NORETURN.
7278 2014-02-19 Tom Tromey <tromey@redhat.com>
7280 * target-delegates.c: Rebuild.
7281 * target.c (default_search_memory): New function.
7282 (simple_search_memory): Update comment.
7283 (target_search_memory): Unconditionally delegate.
7284 * target.h (struct target_ops) <to_search_memory>: Use
7285 TARGET_DEFAULT_FUNC.
7287 2014-02-19 Tom Tromey <tromey@redhat.com>
7289 * auxv.c (default_auxv_parse): No longer static.
7290 (target_auxv_parse): Unconditionally delegate.
7291 * auxv.h (default_auxv_parse): Declare.
7292 * target-delegates.c: Rebuild.
7293 * target.c: Include auxv.h.
7294 * target.h (struct target_ops) <to_auxv_parse>: Use
7295 TARGET_DEFAULT_FUNC.
7297 2014-02-19 Tom Tromey <tromey@redhat.com>
7299 * target-delegates.c: Rebuild.
7300 * target.c (target_memory_map): Unconditionally delegate.
7301 * target.h (struct target_ops) <to_memory_map>: Use
7302 TARGET_DEFAULT_RETURN.
7304 2014-02-19 Tom Tromey <tromey@redhat.com>
7306 * target-delegates.c: Rebuild.
7307 * target.c (target_thread_alive): Unconditionally delegate.
7308 * target.h (struct target_ops) <to_thread_alive>: Use
7309 TARGET_DEFAULT_RETURN.
7311 2014-02-19 Tom Tromey <tromey@redhat.com>
7313 * target-delegates.c: Rebuild.
7314 * target.c (target_save_record): Unconditionally delegate.
7315 * target.h (struct target_ops) <to_save_record>: Use
7316 TARGET_DEFAULT_NORETURN.
7318 2014-02-19 Tom Tromey <tromey@redhat.com>
7320 * target-delegates.c: Rebuild.
7321 * target.c (target_delete_record): Unconditionally delegate.
7322 * target.h (struct target_ops) <to_delete_record>: Use
7323 TARGET_DEFAULT_NORETURN.
7325 2014-02-19 Tom Tromey <tromey@redhat.com>
7327 * target-delegates.c: Rebuild.
7328 * target.c (target_record_is_replaying): Unconditionally
7330 * target.h (struct target_ops) <to_record_is_replaying>: Use
7331 TARGET_DEFAULT_RETURN.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target-delegates.c: Rebuild.
7336 * target.c (target_goto_record_begin): Unconditionally delegate.
7337 * target.h (struct target_ops) <to_goto_record_begin>: Use
7338 TARGET_DEFAULT_NORETURN.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target-delegates.c: Rebuild.
7343 * target.c (target_goto_record_end): Unconditionally delegate.
7344 * target.h (struct target_ops) <to_goto_record_end>: Use
7345 TARGET_DEFAULT_NORETURN.
7347 2014-02-19 Tom Tromey <tromey@redhat.com>
7349 * target-delegates.c: Rebuild.
7350 * target.c (target_goto_record): Unconditionally delegate.
7351 * target.h (struct target_ops) <to_goto_record>: Use
7352 TARGET_DEFAULT_NORETURN.
7354 2014-02-19 Tom Tromey <tromey@redhat.com>
7356 * target-delegates.c: Rebuild.
7357 * target.c (target_insn_history): Unconditionally delegate.
7358 * target.h (struct target_ops) <to_insn_history>: Use
7359 TARGET_DEFAULT_NORETURN.
7361 2014-02-19 Tom Tromey <tromey@redhat.com>
7363 * target-delegates.c: Rebuild.
7364 * target.c (target_insn_history_from): Unconditionally delegate.
7365 * target.h (struct target_ops) <to_insn_history_from>: Use
7366 TARGET_DEFAULT_NORETURN.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * target-delegates.c: Rebuild.
7371 * target.c (target_insn_history_range): Unconditionally delegate.
7372 * target.h (struct target_ops) <to_insn_history_range>: Use
7373 TARGET_DEFAULT_NORETURN.
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7377 * target-delegates.c: Rebuild.
7378 * target.c (target_call_history): Unconditionally delegate.
7379 * target.h (struct target_ops) <to_call_history>: Use
7380 TARGET_DEFAULT_NORETURN.
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7384 * target-delegates.c: Rebuild.
7385 * target.c (target_call_history_from): Unconditionally delegate.
7386 * target.h (struct target_ops) <to_call_history_from>: Use
7387 TARGET_DEFAULT_NORETURN.
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * target-delegates.c: Rebuild.
7392 * target.c (target_call_history_range): Unconditionally delegate.
7393 * target.h (struct target_ops) <to_call_history_range>: Use
7394 TARGET_DEFAULT_NORETURN.
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * target-delegates.c: Rebuild.
7399 * target.c (target_verify_memory): Unconditionally delegate.
7400 * target.h (struct target_ops) <to_verify_memory>: Use
7401 TARGET_DEFAULT_NORETURN.
7403 2014-02-19 Tom Tromey <tromey@redhat.com>
7405 * target-delegates.c: Rebuild.
7406 * target.c (target_core_of_thread): Unconditionally delegate.
7407 * target.h (struct target_ops) <to_core_of_thread>: Use
7408 TARGET_DEFAULT_RETURN.
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * target-delegates.c: Rebuild.
7413 * target.c (target_flash_done): Unconditionally delegate.
7414 * target.h (struct target_ops) <to_flash_done>: Use
7415 TARGET_DEFAULT_NORETURN.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target-delegates.c: Rebuild.
7420 * target.c (target_flash_erase): Unconditionally delegate.
7421 * target.h (struct target_ops) <to_flash_erase>: Use
7422 TARGET_DEFAULT_NORETURN.
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_get_section_table): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_get_section_table>: Use
7429 TARGET_DEFAULT_RETURN.
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_pid_to_str): Unconditionally delegate.
7435 (init_dummy_target): Don't initialize to_pid_to_str.
7436 (default_pid_to_str): Rename from dummy_pid_to_str.
7437 * target.h (struct target_ops) <to_pid_to_str>: Use
7438 TARGET_DEFAULT_FUNC.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target-delegates.c: Rebuild.
7443 * target.c (target_find_new_threads): Unconditionally delegate.
7444 * target.h (struct target_ops) <to_find_new_threads>: Use
7445 TARGET_DEFAULT_RETURN.
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7449 * target-delegates.c: Rebuild.
7450 * target.c (target_program_signals): Unconditionally delegate.
7451 * target.h (struct target_ops) <to_program_signals>: Use
7452 TARGET_DEFAULT_IGNORE.
7454 2014-02-19 Tom Tromey <tromey@redhat.com>
7456 * target-delegates.c: Rebuild.
7457 * target.c (target_pass_signals): Unconditionally delegate.
7458 * target.h (struct target_ops) <to_pass_signals>: Use
7459 TARGET_DEFAULT_IGNORE.
7461 2014-02-19 Tom Tromey <tromey@redhat.com>
7463 * target-delegates.c: Rebuild.
7464 * target.c (default_mourn_inferior): New function.
7465 (target_mourn_inferior): Unconditionally delegate.
7466 * target.h (struct target_ops) <to_mourn_inferior>: Use
7467 TARGET_DEFAULT_FUNC.
7469 2014-02-19 Tom Tromey <tromey@redhat.com>
7471 * target-delegates.c: Rebuild.
7472 * target.c (default_follow_fork): New function.
7473 (target_follow_fork): Unconditionally delegate.
7474 * target.h (struct target_ops) <to_follow_fork>: Use
7475 TARGET_DEFAULT_FUNC.
7477 2014-02-19 Tom Tromey <tromey@redhat.com>
7479 * target-delegates.c: Rebuild.
7480 * target.c (target_kill): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_kill>: Use
7482 TARGET_DEFAULT_NORETURN.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_masked_watch_num_registers): Unconditionally
7489 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7490 Use TARGET_DEFAULT_RETURN.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_remove_mask_watchpoint): Unconditionally
7497 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7498 TARGET_DEFAULT_RETURN.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_insert_mask_watchpoint): Unconditionally
7505 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7506 TARGET_DEFAULT_RETURN.
7508 2014-02-19 Tom Tromey <tromey@redhat.com>
7510 * target-delegates.c: Rebuild.
7511 * target.c (target_ranged_break_num_registers): Unconditionally
7513 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7514 Use TARGET_DEFAULT_RETURN.
7516 2014-02-19 Tom Tromey <tromey@redhat.com>
7518 * target-delegates.c: Rebuild.
7519 * target.c (target_fetch_registers): Unconditionally delegate.
7520 * target.h (struct target_ops) <to_fetch_registers>: Use
7521 TARGET_DEFAULT_NORETURN.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target-delegates.c: Rebuild.
7526 * target.c (update_current_target): Don't inherit or default
7528 * target.h (struct target_ops) <to_stop>: Use
7529 TARGET_DEFAULT_IGNORE.
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target-delegates.c: Rebuild.
7534 * target.c (update_current_target): Don't inherit or default
7535 to_can_run_breakpoint_commands.
7536 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7537 Use TARGET_DEFAULT_RETURN.
7539 2014-02-19 Tom Tromey <tromey@redhat.com>
7541 * target-delegates.c: Rebuild.
7542 * target.c (update_current_target): Don't inherit or default
7543 to_supports_evaluation_of_breakpoint_conditions.
7544 * target.h (struct target_ops)
7545 <to_supports_evaluation_of_breakpoint_conditions>: Use
7546 TARGET_DEFAULT_RETURN.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target-delegates.c: Rebuild.
7551 * target.c (update_current_target): Don't inherit or default
7552 to_augmented_libraries_svr4_read.
7553 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7554 Use TARGET_DEFAULT_RETURN.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target-delegates.c: Rebuild.
7559 * target.c (update_current_target): Don't inherit or default
7561 * target.h (struct target_ops) <to_can_use_agent>: Use
7562 TARGET_DEFAULT_RETURN.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target-delegates.c: Rebuild.
7567 * target.c (update_current_target): Don't inherit or default
7569 * target.h (struct target_ops) <to_use_agent>: Use
7570 TARGET_DEFAULT_NORETURN.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * target-delegates.c: Rebuild.
7575 * target.c (update_current_target): Don't inherit or default
7577 (return_null): Remove.
7578 * target.h (struct target_ops) <to_traceframe_info>: Use
7579 TARGET_DEFAULT_RETURN.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * target-delegates.c: Rebuild.
7584 * target.c (update_current_target): Don't inherit or default
7585 to_static_tracepoint_markers_by_strid.
7586 * target.h (struct target_ops)
7587 <to_static_tracepoint_markers_by_strid>: Use
7588 TARGET_DEFAULT_NORETURN.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target-delegates.c: Rebuild.
7593 * target.c (update_current_target): Don't inherit or default
7594 to_static_tracepoint_marker_at.
7595 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7596 Use TARGET_DEFAULT_RETURN.
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * target-delegates.c: Rebuild.
7601 * target.c (update_current_target): Don't inherit or default
7603 * target.h (struct target_ops) <to_set_permissions>: Use
7604 TARGET_DEFAULT_IGNORE.
7606 2014-02-19 Tom Tromey <tromey@redhat.com>
7608 * target-delegates.c: Rebuild.
7609 * target.c (update_current_target): Don't inherit or default
7611 * target.h (struct target_ops) <to_get_tib_address>: Use
7612 TARGET_DEFAULT_NORETURN.
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7616 * target-delegates.c: Rebuild.
7617 * target.c (update_current_target): Don't inherit or default
7619 * target.h (struct target_ops) <to_set_trace_notes>: Use
7620 TARGET_DEFAULT_RETURN.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target-delegates.c: Rebuild.
7625 * target.c (update_current_target): Don't initialize
7626 to_set_trace_buffer_size.
7627 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7628 TARGET_DEFAULT_IGNORE.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7634 to_set_circular_trace_buffer.
7635 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7636 TARGET_DEFAULT_IGNORE.
7638 2014-02-19 Tom Tromey <tromey@redhat.com>
7640 * target-delegates.c: Rebuild.
7641 * target.c (update_current_target): Don't inherit or default
7642 to_set_disconnected_tracing.
7643 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7644 TARGET_DEFAULT_IGNORE.
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * target-delegates.c: Rebuild.
7649 * target.c (update_current_target): Don't inherit or default
7650 to_get_min_fast_tracepoint_insn_len.
7651 (return_minus_one): Remove.
7652 * target.h (struct target_ops)
7653 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7659 to_get_raw_trace_data.
7660 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7661 TARGET_DEFAULT_NORETURN.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target-delegates.c: Rebuild.
7666 * target.c (update_current_target): Don't inherit or default
7667 to_upload_trace_state_variables.
7668 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7669 Use TARGET_DEFAULT_RETURN.
7671 2014-02-19 Tom Tromey <tromey@redhat.com>
7673 * target-delegates.c: Rebuild.
7674 * target.c (update_current_target): Don't inherit or default
7675 to_upload_tracepoints.
7676 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7677 TARGET_DEFAULT_RETURN.
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target-delegates.c: Rebuild.
7682 * target.c (update_current_target): Don't inherit or default
7684 * target.h (struct target_ops) <to_save_trace_data>: Use
7685 TARGET_DEFAULT_NORETURN.
7687 2014-02-19 Tom Tromey <tromey@redhat.com>
7689 * target-delegates.c: Rebuild.
7690 * target.c (update_current_target): Don't inherit or default
7691 to_get_trace_state_variable_value.
7692 * target.h (struct target_ops)
7693 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7700 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7707 * target.h (struct target_ops) <to_trace_stop>: Use
7708 TARGET_DEFAULT_NORETURN.
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7714 to_get_tracepoint_status.
7715 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7716 TARGET_DEFAULT_NORETURN.
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7720 * target-delegates.c: Rebuild.
7721 * target.c (update_current_target): Don't inherit or default
7722 to_get_trace_status.
7723 * target.h (struct target_ops) <to_get_trace_status>: Use
7724 TARGET_DEFAULT_RETURN.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target-delegates.c: Rebuild.
7729 * target.c (update_current_target): Don't inherit or default
7731 * target.h (struct target_ops) <to_trace_start>: Use
7732 TARGET_DEFAULT_NORETURN.
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target-delegates.c: Rebuild.
7737 * target.c (update_current_target): Don't inherit or default
7738 to_trace_set_readonly_regions.
7739 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7740 Use TARGET_DEFAULT_NORETURN.
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_disable_tracepoint.
7747 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7748 TARGET_DEFAULT_NORETURN.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target-delegates.c: Rebuild.
7753 * target.c (update_current_target): Don't inherit or default
7754 to_enable_tracepoint.
7755 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7756 TARGET_DEFAULT_NORETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target-delegates.c: Rebuild.
7761 * target.c (update_current_target): Don't inherit or default
7762 to_download_trace_state_variable.
7763 * target.h (struct target_ops) <to_download_trace_state_variable>:
7764 Use TARGET_DEFAULT_NORETURN.
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target-delegates.c: Rebuild.
7769 * target.c (update_current_target): Don't inherit or default
7770 to_can_download_tracepoint.
7771 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7772 TARGET_DEFAULT_RETURN.
7774 2014-02-19 Tom Tromey <tromey@redhat.com>
7776 * target-delegates.c: Rebuild.
7777 * target.c (update_current_target): Don't inherit or default
7778 to_download_tracepoint.
7779 * target.h (struct target_ops) <to_download_tracepoint>: Use
7780 TARGET_DEFAULT_NORETURN.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * target-delegates.c: Rebuild.
7785 * target.c (update_current_target): Don't inherit or default
7787 * target.h (struct target_ops) <to_trace_init>: Use
7788 TARGET_DEFAULT_RETURN.
7790 2014-02-19 Tom Tromey <tromey@redhat.com>
7792 * target-delegates.c: Rebuild.
7793 * target.c (update_current_target): Don't inherit or default
7794 to_supports_string_tracing.
7795 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7796 TARGET_DEFAULT_RETURN.
7798 2014-02-19 Tom Tromey <tromey@redhat.com>
7800 * target-delegates.c: Rebuild.
7801 * target.c (update_current_target): Don't inherit or default
7802 to_supports_enable_disable_tracepoint.
7803 * target.h (struct target_ops)
7804 <to_supports_enable_disable_tracepoint>: Use
7805 TARGET_DEFAULT_RETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (update_current_target): Don't inherit or default
7811 to_supports_multi_process.
7812 * target.h (struct target_ops) <to_supports_multi_process>: Use
7813 TARGET_DEFAULT_RETURN.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7817 * target-delegates.c: Rebuild.
7818 * target.c (update_current_target): Don't inherit or default
7819 to_get_ada_task_ptid.
7820 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7821 TARGET_DEFAULT_FUNC.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * target-delegates.c: Rebuild.
7826 * target.c (update_current_target): Don't inherit or default
7827 to_thread_architecture.
7828 * target.h (struct target_ops) <to_thread_architecture>: Use
7829 TARGET_DEFAULT_FUNC.
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7833 * target-delegates.c: Rebuild.
7834 * target.c (update_current_target): Don't inherit or default
7835 to_execution_direction.
7836 * target.h (struct target_ops) <to_execution_direction>: Use
7837 TARGET_DEFAULT_FUNC.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target-delegates.c: Rebuild.
7842 * target.c (update_current_target): Don't inherit or default
7843 to_can_execute_reverse.
7844 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7845 TARGET_DEFAULT_RETURN.
7846 (target_can_execute_reverse): Unconditionally delegate.
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7850 * target-delegates.c: Rebuild.
7851 * target.c (update_current_target): Don't inherit or default
7853 (dummy_goto_bookmark): Remove.
7854 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7855 * target.h (struct target_ops) <to_goto_bookmark>: Use
7856 TARGET_DEFAULT_NORETURN.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (update_current_target): Don't inherit or default
7863 (dummy_get_bookmark): Remove.
7864 (init_dummy_target): Don't inherit or default to_get_bookmark.
7865 * target.h (struct target_ops) <to_get_bookmark>: Use
7866 TARGET_DEFAULT_NORETURN
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7872 to_make_corefile_notes.
7873 (init_dummy_target): Don't initialize to_make_corefile_notes.
7874 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7875 TARGET_DEFAULT_FUNC.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7881 to_find_memory_regions.
7882 (init_dummy_target): Don't initialize to_find_memory_regions.
7883 * target.h (struct target_ops) <to_find_memory_regions>: Use
7884 TARGET_DEFAULT_FUNC.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7891 * target.h (struct target_ops) <to_log_command>: Use
7892 TARGET_DEFAULT_IGNORE.
7893 (target_log_command): Unconditionally delegate.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.c (update_current_target): Don't inherit or default
7899 to_pid_to_exec_file.
7900 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7901 TARGET_DEFAULT_RETURN.
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7905 * target-delegates.c: Rebuild.
7906 * target.c (update_current_target): Don't inherit or default
7908 (target_thread_name): Unconditionally delegate.
7909 * target.h (struct target_ops) <to_thread_name>: Use
7910 TARGET_DEFAULT_RETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7916 to_extra_thread_info.
7917 * target.h (struct target_ops) <to_extra_thread_info>: Use
7918 TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (update_current_target): Don't inherit or default
7925 * target.h (struct target_ops) <to_has_exited>: Use
7926 TARGET_DEFAULT_RETURN..
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7932 to_set_syscall_catchpoint.
7933 (return_one): Remove.
7934 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7935 TARGET_DEFAULT_RETURN.
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_insert_exec_catchpoint.
7942 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7943 TARGET_DEFAULT_RETURN.
7945 2014-01-08 Tom Tromey <tromey@redhat.com>
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_insert_exec_catchpoint.
7950 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7951 TARGET_DEFAULT_RETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_remove_vfork_catchpoint.
7958 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7959 TARGET_DEFAULT_RETURN.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_insert_vfork_catchpoint.
7966 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7967 TARGET_DEFAULT_RETURN.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_remove_fork_catchpoint.
7974 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7975 TARGET_DEFAULT_RETURN.
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7981 to_insert_fork_catchpoint.
7982 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7983 TARGET_DEFAULT_RETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_post_startup_inferior.
7990 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7991 TARGET_DEFAULT_IGNORE.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7998 * target.h (struct target_ops) <to_load>: Use
7999 TARGET_DEFAULT_NORETURN.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8006 * target.h (struct target_ops) <to_terminal_info>: Use
8007 TARGET_DEFAULT_FUNC.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_terminal_save_ours.
8014 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8015 TARGET_DEFAULT_IGNORE.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8022 * target.h (struct target_ops) <to_terminal_ours>: Use
8023 TARGET_DEFAULT_IGNORE.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8029 to_terminal_ours_for_output.
8030 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8031 TARGET_DEFAULT_IGNORE.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_terminal_inferior.
8038 * target.h (struct target_ops) <to_terminal_inferior>: Use
8039 TARGET_DEFAULT_IGNORE.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8046 * target.h (struct target_ops) <to_terminal_init>: Use
8047 TARGET_DEFAULT_IGNORE.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_can_accel_watchpoint_condition.
8054 * target.h (struct target_ops)
8055 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_region_ok_for_hw_watchpoint.
8062 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8063 Use TARGET_DEFAULT_FUNC.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_watchpoint_addr_within_range.
8070 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8071 Use TARGET_DEFAULT_FUNC.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_remove_watchpoint.
8078 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8079 TARGET_DEFAULT_NORETURN.
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target-delegates.c: Rebuild.
8084 * target.c (update_current_target): Don't inherit or default
8085 to_insert_watchpoint.
8086 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8087 TARGET_DEFAULT_RETURN.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * target-delegates.c: Rebuild.
8092 * target.c (update_current_target): Don't inherit or default
8093 to_remove_hw_breakpoint.
8094 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8095 TARGET_DEFAULT_RETURN.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target-delegates.c: Rebuild.
8100 * target.c (update_current_target): Don't inherit or default
8101 to_insert_hw_breakpoint.
8102 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8103 TARGET_DEFAULT_RETURN.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_can_use_hw_breakpoint.
8110 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8111 TARGET_DEFAULT_RETURN.
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8118 * target.h (struct target_ops) <to_files_info>: Use
8119 TARGET_DEFAULT_IGNORE.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8126 * target.h (struct target_ops) <to_store>: Use
8127 TARGET_DEFAULT_NORETURN.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8134 * target.h (struct target_ops) <to_post_attach>: Use
8135 TARGET_DEFAULT_IGNORE.
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8142 (default_rcmd): New function.
8143 (do_monitor_command): Unconditionally delegate.
8144 * target.h (struct target_ops) <to_rmcd>: Use
8145 TARGET_DEFAULT_FUNC.
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target-delegates.c: Rebuild.
8150 * target.c (init_dummy_target): Don't initialize to_attach.
8151 (target_attach): Unconditionally delegate.
8152 * target.h (struct target_ops) <to_attach>: Use
8153 TARGET_DEFAULT_FUNC.
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8157 * target-delegates.c: Rebuild.
8158 * target.c (target_detach): Unconditionally delegate.
8159 (init_dummy_target): Don't initialize to_detach.
8160 * target.h (struct target_ops) <to_detach>: Use
8161 TARGET_DEFAULT_IGNORE.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8167 (target_augmented_libraries_svr4_read): Add argument.
8168 * target.c (update_current_target): Update.
8169 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8174 * target.h (struct target_ops) <to_call_history_range>: Add
8176 * target.c (target_call_history_range): Add argument.
8177 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8179 (record_btrace_call_history_from): Update.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target.h (struct target_ops) <to_call_history_from>: Add
8185 * target.c (target_call_history_from): Add argument.
8186 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target.h (struct target_ops) <to_call_history>: Add argument.
8192 * target.c (target_call_history): Add argument.
8193 * record-btrace.c (record_btrace_call_history): Add 'self'
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target.h (struct target_ops) <to_insn_history_range>: Add
8200 * target.c (target_insn_history_range): Add argument.
8201 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8203 (record_btrace_insn_history_from): Update.
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target.h (struct target_ops) <to_insn_history_from>: Add
8209 * target.c (target_insn_history_from): Add argument.
8210 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target.h (struct target_ops) <to_insn_history>: Add argument.
8216 * target.c (target_insn_history): Add argument.
8217 * record-btrace.c (record_btrace_insn_history): Add 'self'
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target.h (struct target_ops) <to_goto_record>: Add argument.
8223 * target.c (target_goto_record): Add argument.
8224 * record-full.c (record_full_goto): Add 'self' argument.
8225 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8230 * target.c (target_goto_record_end): Add argument.
8231 * record-full.c (record_full_goto_end): Add 'self' argument.
8232 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8234 2014-02-19 Tom Tromey <tromey@redhat.com>
8236 * target.h (struct target_ops) <to_goto_record_begin>: Add
8238 * target.c (target_goto_record_begin): Add argument.
8239 * record-full.c (record_full_goto_begin): Add 'self' argument.
8240 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target.h (struct target_ops) <to_record_is_replaying>: Add
8247 * target.c (target_record_is_replaying): Add argument.
8248 * record-full.c (record_full_is_replaying): Add 'self' argument.
8249 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8251 (record_btrace_xfer_partial, record_btrace_store_registers)
8252 (record_btrace_prepare_to_store, record_btrace_resume)
8253 (record_btrace_wait, record_btrace_decr_pc_after_break)
8254 (record_btrace_find_new_threads, record_btrace_thread_alive):
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target.h (struct target_ops) <to_delete_record>: Add argument.
8260 * target.c (target_delete_record): Add argument.
8261 * record-full.c (record_full_delete): Add 'self' argument.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target.h (struct target_ops) <to_save_record>: Add argument.
8266 * target.c (target_save_record): Add argument.
8267 * record-full.c (record_full_save): Add 'self' argument.
8268 (record_full_save): Add 'self' argument.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target.h (struct target_ops) <to_info_record>: Add argument.
8273 * target.c (target_info_record): Add argument.
8274 * record.c (info_record_command): Add argument.
8275 * record-full.c (record_full_info): Add 'self' argument.
8276 * record-btrace.c (record_btrace_info): Add 'self' argument.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8281 * target.c (target_stop_recording): Add argument.
8282 * record.c (record_stop): Add argument.
8283 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8289 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8290 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8292 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8293 (_initialize_amd64_linux_nat): Use it.
8294 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8295 (_initialize_i386_linux_nat): Use it.
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8299 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8300 * target.c (target_teardown_btrace): Add argument.
8301 * remote.c (remote_teardown_btrace): Add 'self' argument.
8302 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8304 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8310 * target.c (target_disable_btrace): Add argument.
8311 * remote.c (remote_disable_btrace): Add 'self' argument.
8312 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8314 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8320 * target.c (target_enable_btrace): Add argument.
8321 * remote.c (remote_enable_btrace): Add 'self' argument.
8322 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8324 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8330 (target_can_use_agent): Add argument.
8331 * target.c (update_current_target): Update.
8332 * remote.c (remote_can_use_agent): Add 'self' argument.
8333 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target.h (struct target_ops) <to_use_agent>: Add argument.
8338 (target_use_agent): Add argument.
8339 * target.c (update_current_target): Update.
8340 * remote.c (remote_use_agent): Add 'self' argument.
8341 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8346 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8347 (target_traceframe_info): Add argument.
8348 * target.c (update_current_target): Update.
8349 * remote.c (remote_traceframe_info): Add 'self' argument.
8350 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target.h (target_static_tracepoint_markers_by_strid): Add
8356 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8358 * target.c (update_current_target): Update.
8359 * remote.c (struct target_ops)
8360 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8361 * linux-nat.c (struct target_ops)
8362 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8368 (target_static_tracepoint_marker_at): Add argument.
8369 * target.c (update_current_target): Update.
8370 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8376 (target_set_permissions): Add argument.
8377 * target.c (update_current_target): Update.
8378 * remote.c (remote_set_permissions): Add 'self' argument.
8379 (remote_start_remote): Update.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8384 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8385 (target_get_tib_address): Add argument.
8386 * target.c (update_current_target): Update.
8387 * remote.c (remote_get_tib_address): Add 'self' argument.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8392 (target_set_trace_notes): Add argument.
8393 * target.c (update_current_target): Update.
8394 * remote.c (remote_set_trace_notes): Add 'self' argument.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8400 (target_set_trace_buffer_size): Add argument.
8401 * target.c (update_current_target): Update.
8402 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8408 (target_set_circular_trace_buffer): Add argument.
8409 * target.c (update_current_target): Update.
8410 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8417 (target_set_disconnected_tracing): Add argument.
8418 * target.c (update_current_target): Update.
8419 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8423 * target.h (struct target_ops)
8424 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8425 (target_get_min_fast_tracepoint_insn_len): Add argument.
8426 * target.c (update_current_target): Update.
8427 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8432 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8434 (target_get_raw_trace_data): Add argument.
8435 * target.c (update_current_target): Update.
8436 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8442 (target_upload_trace_state_variables): Add argument.
8443 * target.c (update_current_target): Update.
8444 * remote.c (remote_upload_trace_state_variables): Add 'self'
8446 (remote_start_remote): Update.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8452 (target_upload_tracepoints): Add argument.
8453 * target.c (update_current_target): Update.
8454 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8455 (remote_start_remote): Update.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8460 (target_save_trace_data): Add argument.
8461 * target.c (update_current_target): Update.
8462 * remote.c (remote_save_trace_data): Add 'self' argument.
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8466 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8468 * target.h (struct target_ops)
8469 <to_get_trace_state_variable_value>: Add argument.
8470 (target_get_trace_state_variable_value): Add argument.
8471 * target.c (update_current_target): Update.
8472 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8474 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8479 * target.h (struct target_ops) <to_trace_find>: Add argument.
8480 (target_trace_find): Add argument.
8481 * target.c (update_current_target): Update.
8482 * remote.c (remote_trace_find): Add 'self' argument.
8483 * ctf.c (ctf_trace_find): Add 'self' argument.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8488 (target_trace_stop): Add argument.
8489 * target.c (update_current_target): Update.
8490 * remote.c (remote_trace_stop): Add 'self' argument.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8495 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8497 (target_get_tracepoint_status): Add argument.
8498 * target.c (update_current_target): Update.
8499 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8504 * target.h (struct target_ops) <to_get_trace_status>: Add
8506 (target_get_trace_status): Add argument.
8507 * target.c (update_current_target): Update.
8508 * remote.c (remote_get_trace_status): Add 'self' argument.
8509 (remote_start_remote, remote_can_download_tracepoint): Update.
8510 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target.h (struct target_ops) <to_trace_start>: Add argument.
8515 (target_trace_start): Add argument.
8516 * target.c (update_current_target): Update.
8517 * remote.c (remote_trace_start): Add 'self' argument.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8523 (target_trace_set_readonly_regions): Add argument.
8524 * target.c (update_current_target): Update.
8525 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8532 (target_disable_tracepoint): Add argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8540 (target_enable_tracepoint): Add argument.
8541 * target.c (update_current_target): Update.
8542 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target.h (struct target_ops) <to_download_trace_state_variable>:
8548 (target_download_trace_state_variable): Add argument.
8549 * target.c (update_current_target): Update.
8550 * remote.c (remote_download_trace_state_variable): Add 'self'
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8557 (target_can_download_tracepoint): Add argument.
8558 * target.c (update_current_target): Update.
8559 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target.h (struct target_ops) <to_download_tracepoint>: Add
8565 (target_download_tracepoint): Add argument.
8566 * target.c (update_current_target): Update.
8567 * remote.c (remote_download_tracepoint): Add 'self' argument.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target.h (struct target_ops) <to_trace_init>: Add argument.
8572 (target_trace_init): Add argument.
8573 * target.c (update_current_target): Update.
8574 * remote.c (remote_trace_init): Add 'self' argument.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8579 * target.c (target_fileio_readlink): Add argument.
8580 * remote.c (remote_hostio_readlink): Add 'self' argument.
8581 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8586 * target.c (target_fileio_unlink): Add argument.
8587 * remote.c (remote_hostio_unlink): Add 'self' argument.
8588 (remote_file_delete): Update.
8589 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8594 * target.c (target_fileio_close): Add argument.
8595 * remote.c (remote_hostio_close): Add 'self' argument.
8596 (remote_hostio_close_cleanup): Update.
8597 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8599 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8604 * target.c (target_fileio_pread): Add argument.
8605 * remote.c (remote_hostio_pread): Add 'self' argument.
8606 (remote_bfd_iovec_pread, remote_file_get): Update.
8607 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8612 * target.c (target_fileio_pwrite): Add argument.
8613 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8614 (remote_file_put): Update.
8615 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8620 * target.c (target_fileio_open): Add argument.
8621 * remote.c (remote_hostio_open): Add 'self' argument.
8622 (remote_bfd_iovec_open): Add 'self' argument.
8623 (remote_file_put): Add 'self' argument.
8624 (remote_file_get): Add 'self' argument.
8625 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8631 (target_can_run_breakpoint_commands): Add argument.
8632 * target.c (update_current_target): Update.
8633 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8635 (remote_insert_breakpoint): Add 'self' argument.
8636 (remote_insert_hw_breakpoint): Add 'self' argument.
8637 (remote_can_run_breakpoint_commands): Add 'self' argument.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target.h (struct target_ops)
8642 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8643 (target_supports_evaluation_of_breakpoint_conditions): Add
8645 * target.c (update_current_target): Update.
8646 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8648 (remote_insert_breakpoint): Add 'self' argument.
8649 (remote_insert_hw_breakpoint): Add 'self' argument.
8650 (remote_supports_cond_breakpoints): Add 'self' argument.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8656 (target_supports_string_tracing): Add argument.
8657 * target.c (update_current_target): Update.
8658 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target.h (struct target_ops)
8663 <to_supports_disable_randomization>: Add argument.
8664 * target.c (find_default_supports_disable_randomization): Add
8666 (target_supports_disable_randomization): Add argument.
8667 (find_default_supports_disable_randomization): Add 'self'
8669 * remote.c (extended_remote_supports_disable_randomization): Add
8671 (remote_supports_disable_randomization): Add 'self' argument.
8672 (extended_remote_create_inferior): Update.
8673 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target.h (struct target_ops)
8679 <to_supports_enable_disable_tracepoint>: Add argument.
8680 (target_supports_enable_disable_tracepoint): Add argument.
8681 * target.c (update_current_target): Update.
8682 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target.h (struct target_ops) <to_supports_multi_process>: Add
8689 (target_supports_multi_process): Add argument.
8690 * target.c (update_current_target): Update.
8691 * remote.c (remote_supports_multi_process): Add 'self' argument.
8692 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8694 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target.h (struct target_ops) <to_execution_direction>: Add
8701 (target_execution_direction): Add argument.
8702 * target.c (default_execution_direction): Add 'self' argument.
8703 * record-full.c (record_full_execution_direction): Add 'self'
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8710 (target_can_execute_reverse): Add argument.
8711 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8712 * record-full.c (record_full_can_execute_reverse): Add 'self'
8714 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8720 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8722 (target_get_ada_task_ptid): Add argument.
8723 * target.c (update_current_target): Update.
8724 (default_get_ada_task_ptid): Add 'self' argument.
8725 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8726 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8727 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8729 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8731 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8733 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8735 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8736 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8742 (target_goto_bookmark): Add argument.
8743 * target.c (dummy_goto_bookmark): Add 'self' argument.
8744 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8749 (target_get_bookmark): Add argument.
8750 * target.c (dummy_get_bookmark): Add 'self' argument.
8751 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8755 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8757 (target_make_corefile_notes): Add argument.
8758 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8759 * procfs.c (procfs_make_note_section): Add 'self' argument.
8760 (procfs_make_note_section): Add 'self' argument.
8761 (procfs_make_note_section): Add 'self' argument.
8762 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8764 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8765 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8766 * exec.c (exec_make_note_section): Add 'self' argument.
8767 (exec_make_note_section): Add 'self' argument.
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target.h (struct target_ops) <to_find_memory_regions>: Add
8773 (target_find_memory_regions): Add argument.
8774 * target.c (dummy_find_memory_regions): Add 'self' argument.
8775 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8776 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8777 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8778 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8779 * exec. (exec_do_find_memory_regions): New global.
8780 (exec_set_find_memory_regions): Rewrite.
8781 (exec_find_memory_regions): New function.
8782 (init_exec_ops): Use exec_find_memory_regions.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target.h (struct target_ops) <to_supports_non_stop>: Add
8788 * target.c (find_default_supports_non_stop): Add argument.
8789 (target_supports_non_stop): Add argument.
8790 (find_default_supports_non_stop): Add 'self' argument.
8791 * remote.c (remote_supports_non_stop): Add 'self' argument.
8792 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * target.h (struct target_ops) <to_log_command>: Add argument.
8797 (target_log_command): Add argument.
8798 * serial.h (serial_log_command): Add 'self' argument.
8799 * serial.c (serial_log_command): Add 'self' argument.
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8803 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8804 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8806 (target_pid_to_exec_file): Add argument.
8807 * target.c (debug_to_pid_to_exec_file): Add argument.
8808 (update_current_target): Update.
8809 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8810 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8811 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8812 (linux_handle_extended_wait): Update.
8813 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8814 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8815 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8816 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8818 2014-02-19 Tom Tromey <tromey@redhat.com>
8820 * target.h (struct target_ops) <to_rcmd>: Add argument.
8821 (target_rcmd): Add argument.
8822 * target.c (debug_to_rcmd): Add argument.
8823 (update_current_target, do_monitor_command): Update.
8824 * remote.c (remote_rcmd): Add 'self' argument.
8825 * monitor.c (monitor_rcmd): Add 'self' argument.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * windows-nat.c (windows_stop): Add 'self' argument.
8830 * target.h (struct target_ops) <to_stop>: Add argument.
8831 * target.c (target_stop): Add argument.
8832 (debug_to_stop): Add argument.
8833 (update_current_target): Update.
8834 * remote.c (remote_stop): Add 'self' argument.
8835 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8836 (gdbsim_cntrl_c): Update.
8837 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8838 * procfs.c (procfs_stop): Add 'self' argument.
8839 * nto-procfs.c (procfs_stop): Add 'self' argument.
8840 * monitor.c (monitor_stop): Add 'self' argument.
8841 (monitor_open): Update.
8842 * linux-nat.c (linux_nat_stop): Add argument.
8843 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8844 * gnu-nat.c (gnu_stop): Add 'self' argument.
8845 * darwin-nat.c (darwin_stop): Add 'self' argument.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target.h (struct target_ops) <to_thread_name>: Add argument.
8850 * target.c (target_thread_name): Add argument.
8851 (update_current_target): Update.
8852 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target.h (struct target_ops) <to_extra_thread_info>: Add
8858 (target_extra_thread_info): Add argument.
8859 * target.c (update_current_target): Update.
8860 * remote.c (remote_threads_extra_info): Add 'self' argument.
8861 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8863 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8864 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8865 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8867 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8869 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8871 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_program_signals>: Add argument.
8877 * target.c (target_program_signals): Add argument.
8878 * remote.c (remote_program_signals): Add 'self' argument.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8883 * target.c (target_pass_signals): Add argument.
8884 * remote.c (remote_pass_signals): Add 'self' argument.
8885 (remote_start_remote): Update.
8886 * procfs.c (procfs_pass_signals): Add 'self' argument.
8887 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8888 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8889 (linux_nat_create_inferior, linux_nat_attach): Update.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * windows-nat.c (windows_can_run): Add 'self' argument.
8894 * target.h (struct target_ops) <to_can_run>: Add argument.
8895 (target_can_run): Add argument.
8896 * target.c (debug_to_can_run): Add argument.
8897 (update_current_target): Update.
8898 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8899 * inf-child.c (inf_child_can_run): Add 'self' argument.
8900 * go32-nat.c (go32_can_run): Add 'self' argument.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target.h (struct target_ops) <to_has_exited>: Add argument.
8905 (target_has_exited): Add argument.
8906 * target.c (debug_to_has_exited): Add argument.
8907 (update_current_target): Update.
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8913 (target_set_syscall_catchpoint): Add argument.
8914 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8916 * target.c (update_current_target): Update.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8922 (target_remove_exec_catchpoint): Add argument.
8923 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8924 (update_current_target): Update.
8925 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8932 (target_insert_exec_catchpoint): Add argument.
8933 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8934 (update_current_target): Update.
8935 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8942 (target_remove_vfork_catchpoint): Add argument.
8943 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8944 (update_current_target): Update.
8945 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8952 (target_insert_vfork_catchpoint): Add argument.
8953 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8954 (update_current_target): Update.
8955 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8962 (target_remove_fork_catchpoint): Add argument.
8963 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8964 (update_current_target): Update.
8965 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8972 (target_insert_fork_catchpoint): Add argument.
8973 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8974 (update_current_target): Update.
8975 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8982 (target_post_startup_inferior): Add argument.
8983 * target.c (debug_to_post_startup_inferior): Add argument.
8984 (update_current_target): Update.
8985 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8987 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8989 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8991 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8993 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8995 (super_post_startup_inferior): Likewise.
8996 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8998 (super_post_startup_inferior): Likewise.
8999 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9000 Add 'self' argument.
9001 (super_post_startup_inferior): Likewise.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target.h (struct target_ops) <to_load>: Add argument.
9006 * target.c (target_load): Add argument.
9007 (debug_to_load): Add argument.
9008 (update_current_target): Update.
9009 * remote.c (remote_load): Add 'self' argument.
9010 * remote-sim.c (gdbsim_load): Add 'self' argument.
9011 * remote-mips.c (mips_load): Add 'self' argument.
9012 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9013 * monitor.c (monitor_load): Add 'self' argument.
9014 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9019 (target_terminal_info): Add argument.
9020 * target.c (debug_to_terminal_info): Add argument.
9021 (default_terminal_info): Likewise.
9022 * inflow.c (child_terminal_info): Add 'self' argument.
9023 * inferior.h (child_terminal_info): Add 'self' argument.
9024 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9030 (target_terminal_save_ours): Add argument.
9031 * target.c (debug_to_terminal_save_ours): Add argument.
9032 (update_current_target): Update.
9033 * inflow.c (terminal_save_ours): Add 'self' argument.
9034 * inferior.h (terminal_save_ours): Add 'self' argument.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9039 (target_terminal_ours): Add argument.
9040 * target.c (debug_to_terminal_ours): Add argument.
9041 (update_current_target): Update.
9042 * remote.c (remote_terminal_ours): Add 'self' argument.
9043 (remote_close): Update.
9044 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9045 * inflow.c (terminal_ours): Add 'self' argument.
9046 * inferior.h (terminal_ours): Add 'self' argument.
9047 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9049 2014-02-19 Pedro Alves <palves@redhat.com>
9050 Tom Tromey <tromey@redhat.com>
9052 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9054 (target_terminal_ours_for_output): Add argument.
9055 * target.c (debug_to_terminal_ours_for_output): Add argument.
9056 (update_current_target): Update.
9057 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9058 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9059 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target.h (struct target_ops) <to_terminal_inferior>: Add
9065 * target.c (target_terminal_inferior): Add argument.
9066 (update_current_target): Update.
9067 * remote.c (remote_terminal_inferior): Add 'self' argument.
9068 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9069 * inflow.c (terminal_inferior): Add 'self' argument.
9070 * inferior.h (terminal_inferior): Add 'self' argument.
9071 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9072 (go32_terminal_inferior): Add 'self' argument.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9077 (target_terminal_init): Add argument.
9078 * target.c (debug_to_terminal_init): Add argument.
9079 (update_current_target): Update.
9080 * inflow.c (terminal_init_inferior): Add 'self' argument.
9081 * inferior.h (terminal_init_inferior): Add 'self' argument.
9082 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9083 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target.h (struct target_ops)
9088 <to_can_accel_watchpoint_condition>: Add argument.
9089 (target_can_accel_watchpoint_condition): Add argument.
9090 * target.c (debug_to_can_accel_watchpoint_condition): Add
9092 (update_current_target): Update.
9093 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9100 (target_region_ok_for_hw_watchpoint): Add argument.
9101 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9102 (default_region_ok_for_hw_watchpoint): Add argument.
9103 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9104 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9106 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9108 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9110 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9112 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9114 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9116 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9117 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9119 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9120 Add 'self' argument.
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9124 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9126 (target_insert_watchpoint): Add argument.
9127 * target.c (debug_to_insert_watchpoint): Add argument.
9128 (update_current_target): Update.
9129 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9130 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9131 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9132 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9133 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9134 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9136 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9137 (procfs_insert_hw_watchpoint): Add 'self' argument.
9138 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9140 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9142 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9144 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9145 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9147 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9154 (target_remove_watchpoint): Add argument.
9155 * target.c (debug_to_remove_watchpoint): Add argument.
9156 (update_current_target): Update.
9157 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9158 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9159 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9160 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9161 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9162 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9164 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9165 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9167 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9169 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9171 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9172 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9174 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9181 (target_remove_hw_breakpoint): Add argument.
9182 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9185 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9187 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9188 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9190 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9197 (target_insert_hw_breakpoint): Add argument.
9198 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9199 (update_current_target): Update.
9200 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9201 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9203 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9204 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9205 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9207 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9214 (target_can_use_hardware_watchpoint): Add argument.
9215 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9216 (update_current_target): Update.
9217 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9219 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9221 * remote.c (remote_check_watch_resources): Add 'self' argument.
9222 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9223 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9225 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9226 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9228 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9230 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9232 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9234 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9236 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9238 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9239 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9241 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_post_attach>: Add argument.
9247 (target_post_attach): Add argument.
9248 * target.c (debug_to_post_attach): Add argument.
9249 (update_current_target): Update.
9250 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9251 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9252 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9253 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9254 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * windows-nat.c (windows_close): Add 'self' argument.
9259 * tracepoint.c (tfile_close): Add 'self' argument.
9260 * target.h (struct target_ops) <to_close>: Add argument.
9261 * target.c (target_close): Add argument.
9262 (update_current_target): Update.
9263 * remote.c (remote_close): Add 'self' argument.
9264 * remote-sim.c (gdbsim_close): Add 'self' argument.
9265 * remote-mips.c (mips_close): Add 'self' argument.
9266 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9267 * record-full.c (record_full_close): Add 'self' argument.
9268 * record-btrace.c (record_btrace_close): Add 'self' argument.
9269 * monitor.h (monitor_close): Add 'self' argument.
9270 * monitor.c (monitor_close): Add 'self' argument.
9271 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9272 * linux-nat.c (linux_nat_close): Add argument.
9273 * go32-nat.c (go32_close): Add 'self' argument.
9274 * exec.c (exec_close_1): Add 'self' argument.
9275 * ctf.c (ctf_close): Add 'self' argument.
9276 * corelow.c (core_close): Add 'self' argument.
9277 (core_close_cleanup): Update.
9278 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9279 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * remote.c (remote_load): New function.
9284 (init_remote_ops): Use it.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9290 * common/linux-btrace.h (linux_supports_btrace): Update.
9291 * remote.c (remote_supports_btrace): Add "self" argument.
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_supports_btrace): Remove.
9294 * target.h (struct target_ops) <to_supports_btrace>: Add
9295 target_ops argument.
9296 (target_supports_btrace): New define.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * record-full.c (record_full_beneath_to_resume_ops)
9301 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9302 (record_full_beneath_to_wait)
9303 (record_full_beneath_to_store_registers_ops)
9304 (record_full_beneath_to_store_registers)
9305 (record_full_beneath_to_xfer_partial_ops)
9306 (record_full_beneath_to_xfer_partial)
9307 (record_full_beneath_to_insert_breakpoint_ops)
9308 (record_full_beneath_to_insert_breakpoint)
9309 (record_full_beneath_to_remove_breakpoint_ops)
9310 (record_full_beneath_to_remove_breakpoint)
9311 (record_full_beneath_to_stopped_by_watchpoint)
9312 (record_full_beneath_to_stopped_data_address)
9313 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9314 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9315 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9316 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9317 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9318 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9319 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9320 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9321 (record_full_resume, record_full_wait_1)
9322 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9323 (record_full_store_registers, record_full_xfer_partial)
9324 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9325 (record_full_async, record_full_core_xfer_partial): Use target
9327 * target-delegates.c: Rebuild.
9328 * target.c (current_xfer_partial): Remove.
9329 (update_current_target): Do not INHERIT or de_fault
9330 to_insert_breakpoint, to_remove_breakpoint,
9331 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9332 to_is_async_p, to_async. Do not set to_xfer_partial field.
9333 (default_xfer_partial): Simplify.
9334 (current_xfer_partial): Remove.
9335 (target_wait, target_resume): Simplify.
9336 (find_default_can_async_p, find_default_is_async_p): Update.
9337 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9338 to_xfer_partial, to_stopped_by_watchpoint,
9339 to_stopped_data_address.
9340 (target_store_registers): Simplify.
9341 (forward_target_remove_breakpoint)
9342 (forward_target_insert_breakpoint): Remove.
9343 (target_remove_breakpoint, target_insert_breakpoint)
9344 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9345 * target.h (struct target_ops) <to_resume, to_wait,
9346 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9347 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9348 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9350 (forward_target_remove_breakpoint)
9351 (forward_target_insert_breakpoint): Remove.
9352 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9354 (record_btrace_insert_breakpoint): Delegate directly.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target-delegates.c: New file.
9360 * target.c: Include target-delegates.c.
9361 (init_dummy_target): Call install_dummy_methods.
9362 (complete_target_initialization): Call install_delegators.
9363 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9364 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9365 * make-target-delegates: New file.
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * record.c (find_record_target): Use find_target_at.
9370 * target.c (find_target_at): New function.
9371 * target.h (find_target_at): Declare.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9377 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9379 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9380 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9382 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9384 * linux-nat.c (save_sigtrap): Update.
9385 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9386 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9387 (linux_nat_close): Update.
9388 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9390 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9392 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9393 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9394 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9395 (tmp_to_async): Add 'ops' argument.
9396 (record_full_stopped_by_watchpoint, record_full_async)
9397 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9399 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9400 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9401 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9402 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9403 (remote_is_async_p, remote_async): Add 'ops' argument.
9404 (remote_stopped_data_address): Update.
9405 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9406 * target.c (update_current_target)
9407 (find_default_can_async_p, find_default_is_async_p): Update.
9408 (init_dummy_target): Update.
9409 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9410 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9411 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9412 (target_can_async_p, target_is_async_p, target_async)
9413 (target_stopped_by_watchpoint): Update.
9415 2014-02-19 Yao Qi <yao@codesourcery.com>
9418 * gdbarch.sh: Remove startup_gdbarch.
9419 * gdbarch.c: Regenerated.
9420 * gdbarch.h: Likewise.
9422 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9424 * rl78-tdep.c (rl78_g10_register_name): New function.
9425 (rl78_return_value): Add g10 support.
9426 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9429 2014-02-17 Doug Evans <xdje42@gmail.com>
9431 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9432 (SUBDIR_GUILE_SRCS): Ditto.
9433 (scm-gsmob.o): Ditto.
9435 2014-02-17 Yao Qi <yao@codesourcery.com>
9437 * gnu-nat.c (ILL_RPC): Declare defined function.
9439 2014-02-17 Yao Qi <yao@codesourcery.com>
9441 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9442 mach_msg_type_number_t.
9443 (gnu_write_inferior): Likewise.
9445 2014-02-17 Yao Qi <yao@codesourcery.com>
9447 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9449 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9450 (inf_validate_procs, inf_signal): Likewise.
9451 (S_exception_raise_request): Likewise.
9452 (do_mach_notify_dead_name): Likewise.
9453 (steal_exc_port): Likewise.
9454 (gnu_read_inferior): Change 'copy_count''s type to
9455 mach_msg_type_number_t.
9456 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9459 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9461 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9462 flag. Adjust all users; in particular...
9463 (gnu_wait): ..., don't decrement its value in here...
9464 (gnu_create_inferior): ..., and instead set the flag in here,
9465 around the startup_inferior call, and call that one with
9466 START_INFERIOR_TRAPS_EXPECTED.
9468 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9469 (ILL_RPC): ... new macro.
9470 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9471 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9472 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9473 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9474 functions with ILL_RPC macro.
9475 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9476 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9477 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9478 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9479 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9480 (S_proc_getlogin_reply, S_proc_getsid_reply)
9481 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9482 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9483 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9484 (S_proc_getnports_reply, S_proc_is_important_reply)
9485 (S_proc_get_code_reply): New stub functions, generated with
9488 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9489 collected the type check structures.
9491 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9493 2014-02-14 Doug Evans <dje@google.com>
9495 * target.c (target_write_partial): Fix result type.
9497 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9499 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9500 the proper offsets to access fpregset_t.
9502 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9504 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9505 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9506 * h8300-tdep.c (setmachinelist): Remove global.
9507 * hppa-tdep.c (hppa_sigtramp): Remove global.
9508 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9509 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9510 * ravenscar-thread.c (update_target_observer): Remove global.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9513 2014-02-12 Tom Tromey <tromey@redhat.com>
9515 * common/rsp-low.c: Update comments.
9516 * common/rsp-low.h: Update comments.
9518 2014-02-12 Tom Tromey <tromey@redhat.com>
9520 * common/rsp-low.c (convert_ascii_to_int): Remove.
9521 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9523 2014-02-12 Tom Tromey <tromey@redhat.com>
9525 * common/rsp-low.h (unhexify): Don't declare.
9526 * common/rsp-low.c (unhexify): Remove.
9528 2014-02-12 Tom Tromey <tromey@redhat.com>
9530 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9531 * common/rsp-low.c (convert_int_to_ascii): Remove.
9533 2014-02-12 Tom Tromey <tromey@redhat.com>
9535 * common/rsp-low.h (hexify): Don't declare.
9536 * common/rsp-low.c (hexify): Remove.
9538 2014-02-12 Tom Tromey <tromey@redhat.com>
9540 * common/rsp-low.c (hexify): Never take strlen of argument.
9542 2014-02-12 Tom Tromey <tromey@redhat.com>
9544 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9545 * remote.c (extended_remote_run, remote_rcmd)
9546 (remote_download_trace_state_variable, remote_save_trace_data)
9547 (remote_set_trace_notes): Update.
9548 * tracepoint.c (encode_source_string, tfile_write_status)
9549 (tfile_write_uploaded_tsv): Update.
9551 2014-02-12 Tom Tromey <tromey@redhat.com>
9553 * tracepoint.c: Include rsp-low.h.
9554 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9555 * remote.c: Include rsp-low.h.
9556 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9557 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9558 (remote_unescape_input): Move to common/rsp-low.c.
9559 * common/rsp-low.h: New file.
9560 * common/rsp-low.c: New file.
9561 * Makefile.in (SFILES): Add common/rsp-low.c.
9562 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9563 (COMMON_OBS): Add rsp-low.o.
9564 (rsp-low.o): New target.
9566 2014-02-12 Tom Tromey <tromey@redhat.com>
9568 * utils.h: Include print-utils.h.
9569 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9570 (int_string, core_addr_to_string, core_addr_to_string_nz)
9571 (hex_string, hex_string_custom): Don't declare.
9572 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9573 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9574 (hex_string_custom, int_string, core_addr_to_string)
9575 (core_addr_to_string_nz, host_address_to_string): Move to
9576 common/print-utils.c.
9577 * common/print-utils.h: New file.
9578 * common/print-utils.c: New file
9579 * Makefile.in (SFILES): Add common/print-utils.c.
9580 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9581 (COMMON_OBS): Add print-utils.o.
9582 (print-utils.o): New target.
9584 2014-02-12 Tom Tromey <tromey@redhat.com>
9586 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9588 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9590 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9592 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9594 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9595 if a PT_IO ptrace request returns sucessfully but indicates that 0
9596 bytes were transferred.
9598 2014-02-12 Pedro Alves <palves@redhat.com>
9599 Kevin Buettner <kevinb@redhat.com>
9601 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9602 TYPE_INSTANCE_FLAG_CODE_SPACE.
9604 2014-02-12 Pedro Alves <palves@redhat.com>
9606 * h8300-tdep.c (pseudo_from_raw_register)
9607 (raw_from_pseudo_register): New functions.
9608 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9611 2014-02-12 Pedro Alves <palves@redhat.com>
9613 * h8300-tdep.c (h8300_register_sim_regno): New function.
9614 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9615 gdbarch_register_sim_regno hook.
9617 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9619 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9621 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9623 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9625 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9627 * obsd-tdep.h (obsd_init_abi): New prototype.
9628 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9629 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9630 (obsd_init_abi): New functions.
9631 * i386obsd-tdep.c: Include "obsd-tdep.h".
9632 (i386obsd_init_abi): Call obsd_init_abi.
9633 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9634 (amd64obsd_init_abi): Call obsd_init_abi.
9635 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9636 obsd-tdep.c to gdb_target_obs.
9638 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9640 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9641 double float arguments to 16-byte in the argument slots.
9643 2014-02-11 Doug Evans <xdje42@gmail.com>
9645 * configure.ac: Don't crash if pkg-config is not found and guile
9646 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9648 * configure: Regenerate.
9650 2014-02-11 Yao Qi <yao@codesourcery.com>
9652 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9653 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9654 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9655 * gnu-nat.c (gnu_xfer_memory): Likewise.
9656 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9657 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9658 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9659 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9661 2014-02-11 Yao Qi <yao@codesourcery.com>
9663 * target.h (enum target_xfer_error): Rename to ...
9664 (enum target_xfer_status): ... it. New. All users updated.
9665 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9667 (TARGET_XFER_STATUS_ERROR_P): New macro.
9668 (target_xfer_error_to_string): Remove declaration.
9669 (target_xfer_status_to_string): Declare.
9670 (target_xfer_partial_ftype): Adjust it.
9671 (struct target_ops) <to_xfer_partial>: Return
9672 target_xfer_status. Add argument xfered_len. Update
9674 * target.c (target_xfer_error_to_string): Rename to ...
9675 (target_xfer_status_to_string): ... it. New. All callers
9677 (target_read_live_memory): Likewise. Call target_xfer_partial
9678 instead of target_read.
9679 (memory_xfer_live_readonly_partial): Return
9680 target_xfer_status. Add argument xfered_len.
9681 (raw_memory_xfer_partial): Likewise.
9682 (memory_xfer_partial_1): Likewise.
9683 (memory_xfer_partial): Likewise.
9684 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9685 properly. Update debug message.
9686 (default_xfer_partial, current_xfer_partial): Likewise.
9687 (target_write_partial): Likewise.
9688 (target_read_partial): Likewise. All callers updated.
9689 (read_whatever_is_readable): Likewise.
9690 (target_write_with_progress): Likewise.
9691 (target_read_alloc_1): Likewise.
9693 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9694 * auxv.c (procfs_xfer_auxv): Likewise.
9695 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9696 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9697 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9698 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9699 * corefile.c (read_memory): Adjust.
9700 * corelow.c (core_xfer_partial): Likewise.
9701 * ctf.c (ctf_xfer_partial): Likewise.
9702 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9704 (darwin_xfer_partial): Likewise.
9705 * exec.c (section_table_xfer_memory_partial): Likewise. All
9707 (exec_xfer_partial): Likewise.
9708 * exec.h (section_table_xfer_memory_partial): Update
9710 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9712 (gnu_xfer_partial): Likewise.
9713 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9714 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9715 (ia64_hpux_xfer_solib_got): Likewise.
9716 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9717 type of 'partial_len' to ULONGEST.
9718 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9719 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9720 (linux_nat_xfer_partial): Likewise.
9721 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9722 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9723 * monitor.c (monitor_xfer_memory): Likewise.
9724 (monitor_xfer_partial): Likewise.
9725 * procfs.c (procfs_xfer_partial): Likewise.
9726 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9727 * record-full.c (record_full_xfer_partial): Likewise.
9728 (record_full_core_xfer_partial): Likewise.
9729 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9730 (gdbsim_xfer_partial): Likewise.
9731 * remote.c (remote_write_bytes_aux): Likewise. All callers
9733 (remote_write_bytes, remote_read_bytes): Likewise. All
9735 (remote_flash_erase): Likewise. All callers updated.
9736 (remote_write_qxfer): Likewise. All callers updated.
9737 (remote_read_qxfer): Likewise. All callers updated.
9738 (remote_xfer_partial): Likewise.
9739 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9740 (rs6000_xfer_shared_libraries): Likewise.
9741 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9742 (sol_thread_xfer_partial): Likewise.
9743 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9744 (sparc_xfer_partial): Likewise.
9745 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9747 (spu_xfer_partial): Likewise.
9748 * spu-multiarch.c (spu_xfer_partial): Likewise.
9749 * tracepoint.c (tfile_xfer_partial): Likewise.
9750 * windows-nat.c (windows_xfer_memory): Likewise.
9751 (windows_xfer_shared_libraries): Likewise.
9752 (windows_xfer_partial): Likewise.
9753 * valprint.c: Replace 'target_xfer_error' with
9754 'target_xfer_status' in comments.
9756 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9758 Checked in by Joel Brobecker <brobecker@adacore.com>.
9759 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9761 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9763 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9764 function parameters.
9766 2014-02-10 Will Newton <will.newton@linaro.org>
9768 * elfread.c (elf_rel_plt_read): Look for a .got section if
9769 looking up .got.plt fails.
9770 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9771 on address passed to elf_gnu_ifunc_record_cache.
9772 (elf_gnu_ifunc_resolve_addr): Likewise.
9773 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9775 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9777 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9778 (X_RETTURN): New macro.
9779 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9781 * sparc64-tdep.c (sparc64_init_abi): Hook
9782 sparc_in_function_epilogue_p.
9784 2014-02-10 Gary Benson <gbenson@redhat.com>
9786 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9787 Rename name_matcher to symbol_matcher.
9789 2014-02-10 Gary Benson <gbenson@redhat.com>
9791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9792 Use expand_symtabs_file_matcher_ftype and
9793 expand_symtabs_symbol_matcher_ftype.
9795 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9797 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9798 (struct ada_symbol_cache): New.
9799 (ada_free_symbol_cache): Forward declare.
9800 (struct ada_pspace_data): New.
9801 (ada_pspace_data_handle): New static global.
9802 (get_ada_pspace_data, ada_pspace_data_cleanup)
9803 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9804 (cache_space, cache): Delete, now folded inside struct
9806 (ada_get_symbol_cache): New function.
9807 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9809 (_initialize_ada_language): Remove initialization of cache_space.
9810 Move call to observer_attach_inferior_exit up, grouping it
9811 with the other observer registrations inside this function.
9812 Rename command to be more general. Add call to
9813 register_program_space_data_with_cleanup.
9815 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9817 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9818 ada_new_objfile_observer.
9819 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9820 (_initialize_tasks): Update uses of ada_new_objfile_observer
9821 and ada_tasks_normal_stop_observer.
9823 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9825 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9826 returned by the 'Length attribute to integer.
9828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9830 * ada-lang.c (_initialize_ada_language): Initialize
9831 cache_space obstack.
9833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9835 * ada-lang.c (HASH_SIZE): New macro.
9836 (struct cache_entry): New type.
9837 (cache_space, cache): New static globals.
9838 (ada_clear_symbol_cache, find_entry): New functions.
9839 (lookup_cached_symbol, cache_symbol): Implement.
9840 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9841 (_initialize_ada_language): Attach ada_new_objfile_observer
9842 and ada_free_objfile_observer.
9844 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9846 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9847 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9848 struct block * parameter.
9849 (ada_lookup_symbol_list_worker): Constify local variable "block".
9850 Remove cast which is no longer necessary.
9852 2014-02-10 Doug Evans <xdje42@gmail.com>
9854 Add Guile as an extension language.
9855 * NEWS: Mention Guile scripting.
9856 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9857 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9858 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9859 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9860 (CLIBS): Add GUILE_LIBS.
9861 (install-guile): New rule.
9862 (guile.o): New rule.
9863 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9864 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9865 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9866 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9867 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9868 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9869 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9870 * configure.ac: New option --with-guile.
9871 * configure: Regenerate.
9872 * config.in: Regenerate.
9873 * auto-load.c: Remove #include "python/python.h". Add #include
9874 "gdb/section-scripts.h".
9875 (source_section_scripts): Handle Guile scripts.
9876 (_initialize_auto_load): Add name of Guile objfile script to
9877 scripts-directory help text.
9878 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9879 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9880 (struct breakpoint): New member scm_bp_object.
9881 * defs.h (enum command_control_type): New value guile_control.
9882 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9884 (show_user): Update comment.
9885 (_initialize_cli_cmds): Update help text for "show user". Update help
9886 text for max-user-call-depth.
9887 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9889 (multi_line_command_p): Add guile_control.
9890 (print_command_lines): Handle guile_control.
9891 (execute_control_command, recurse_read_control_structure): Ditto.
9892 (process_next_line): Recognize "guile" commands.
9893 * disasm.c (gdb_disassemble_info): Make non-static.
9894 * disasm.h: #include "dis-asm.h".
9895 (struct gdbarch): Add forward decl.
9896 (gdb_disassemble_info): Declare.
9897 * extension.c: #include "guile/guile.h".
9898 (extension_languages): Add guile.
9899 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9900 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9901 * gdbtypes.c (get_unsigned_type_max): New function.
9902 (get_signed_type_minmax): New function.
9903 * gdbtypes.h (get_unsigned_type_max): Declare.
9904 (get_signed_type_minmax): Declare.
9905 * guile/README: New file.
9906 * guile/guile-internal.h: New file.
9907 * guile/guile.c: New file.
9908 * guile/guile.h: New file.
9909 * guile/scm-arch.c: New file.
9910 * guile/scm-auto-load.c: New file.
9911 * guile/scm-block.c: New file.
9912 * guile/scm-breakpoint.c: New file.
9913 * guile/scm-disasm.c: New file.
9914 * guile/scm-exception.c: New file.
9915 * guile/scm-frame.c: New file.
9916 * guile/scm-gsmob.c: New file.
9917 * guile/scm-iterator.c: New file.
9918 * guile/scm-lazy-string.c: New file.
9919 * guile/scm-math.c: New file.
9920 * guile/scm-objfile.c: New file.
9921 * guile/scm-ports.c: New file.
9922 * guile/scm-pretty-print.c: New file.
9923 * guile/scm-safe-call.c: New file.
9924 * guile/scm-string.c: New file.
9925 * guile/scm-symbol.c: New file.
9926 * guile/scm-symtab.c: New file.
9927 * guile/scm-type.c: New file.
9928 * guile/scm-utils.c: New file.
9929 * guile/scm-value.c: New file.
9930 * guile/lib/gdb.scm: New file.
9931 * guile/lib/gdb/boot.scm: New file.
9932 * guile/lib/gdb/experimental.scm: New file.
9933 * guile/lib/gdb/init.scm: New file.
9934 * guile/lib/gdb/iterator.scm: New file.
9935 * guile/lib/gdb/printing.scm: New file.
9936 * guile/lib/gdb/types.scm: New file.
9937 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9938 (VPATH): Add $(GUILE_SRCDIR).
9939 (GUILE_DIR): New variable.
9940 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9941 (all): Add stamp-guile dependency.
9942 (stamp-guile): New rule.
9943 (clean-guile, install-guile, uninstall-guile): New rules.
9944 (install-only): Add install-guile dependency.
9945 (uninstall): Add uninstall-guile dependency.
9946 (clean): Add clean-guile dependency.
9948 2014-02-09 Doug Evans <xdje42@gmail.com>
9950 Revert this patch (which I approved, mea culpa).
9952 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9954 * Makefile.in (all-lib): Remove.
9955 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9957 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9959 Fix Python stack corruption.
9960 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9963 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9965 * Makefile.in (all-lib): Remove.
9966 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9968 2014-02-07 Doug Evans <dje@google.com>
9970 * extension-priv.h (extension_language_script_ops): Add comment.
9971 (extension_language_ops): Add comment.
9972 (active_ext_lang_state): Fix typo in comment.
9974 2014-02-07 Pedro Alves <palves@redhat.com>
9976 PR breakpoints/16292
9977 * infrun.c (handle_signal_stop) <signal arrives while stepping
9978 over a breakpoint>: Switch back to the stepping thread.
9980 2014-02-07 Yao Qi <yao@codesourcery.com>
9982 * target.c (target_xfer_partial): Return zero if LEN is zero.
9984 2014-02-07 Yao Qi <yao@codesourcery.com>
9986 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9987 (ld_so_xfer_auxv): Likewise.
9988 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9989 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9990 * corelow.c (core_xfer_partial): Likewise.
9991 * ctf.c (ctf_xfer_partial): Likewise.
9992 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9993 (darwin_xfer_partial): Likewise.
9994 * exec.c (exec_xfer_partial): Likewise.
9995 * gnu-nat.c (gnu_xfer_partial): Likewise.
9996 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9997 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9998 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9999 * linux-nat.c (linux_xfer_siginfo): Likewise.
10000 (linux_proc_xfer_spu): Likewise.
10001 * procfs.c (procfs_xfer_partial): Likewise.
10002 * record-full.c (record_full_xfer_partial): Likewise.
10003 (record_full_core_xfer_partial): Likewise.
10004 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10005 * remote.c (remote_write_qxfer): Likewise.
10006 (remote_write_qxfer, remote_read_qxfer): Likewise.
10007 (remote_xfer_partial): Likewise.
10008 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10009 (rs6000_xfer_shared_libraries): Likewise.
10010 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10011 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10012 (spu_xfer_partial): Likewise.
10013 * target.c (memory_xfer_partial_1): Likewise.
10014 * tracepoint.c (tfile_xfer_partial): Likewise.
10015 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10016 (windows_xfer_partial): Likewise.
10018 2014-02-07 Yao Qi <yao@codesourcery.com>
10020 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10022 (core_xfer_shared_libraries_aix): Likewise.
10023 * gdbarch.c, gdbarch.h: Regenerated.
10024 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10025 ULONGEST. Change 'len_avail' type to ULONGEST.
10026 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10027 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10029 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10031 2014-02-07 Yao Qi <yao@codesourcery.com>
10033 * corefile.c (memory_error): Get 'exception' from ERR and pass
10034 'exception' to throw_error.
10036 2014-02-06 Doug Evans <xdje42@gmail.com>
10038 * configure.ac (libpython checking): Remove all but python.o from
10039 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10040 * configure: Regenerate.
10042 * Makefile.in (SFILES): Add extension.c.
10043 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10044 (COMMON_OBS): Add extension.o.
10045 * extension.h: New file.
10046 * extension-priv.h: New file.
10047 * extension.c: New file.
10049 * python/python-internal.h: #include "extension.h".
10050 (gdbpy_auto_load_enabled): Declare.
10051 (gdbpy_apply_val_pretty_printer): Declare.
10052 (gdbpy_apply_frame_filter): Declare.
10053 (gdbpy_preserve_values): Declare.
10054 (gdbpy_breakpoint_cond_says_stop): Declare.
10055 (gdbpy_breakpoint_has_cond): Declare.
10056 (void source_python_script_for_objfile): Delete.
10057 * python/python.c: #include "extension-priv.h".
10058 Delete inclusion of "observer.h".
10059 (extension_language_python): Moved here and renamed from
10060 script_language_python in py-auto-load.c.
10061 Redefined to be of type extension_language_defn.
10062 (python_extension_script_ops): New global.
10063 (python_extension_ops): New global.
10064 (struct python_env): New member previous_active.
10065 (restore_python_env): Call restore_active_ext_lang.
10066 (ensure_python_env): Call set_active_ext_lang.
10067 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10069 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10071 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10073 (gdbpy_eval_from_control_command): Renamed from
10074 eval_python_from_control_command, made static. New arg extlang.
10075 (gdbpy_source_script) Renamed from source_python_script, made static.
10077 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10078 result to int. New arg extlang.
10079 (gdbpy_source_objfile_script): Renamed from
10080 source_python_script_for_objfile, made static. New arg extlang.
10081 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10082 static. New args extlang, extlang_printers. Change result type to
10084 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10085 static. New arg extlang. Rename arg printers to extlang_printers
10086 and change type to ext_lang_type_printers *.
10087 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10088 static. Replace argument arg with extlang, extlang_printers.
10089 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10090 (!HAVE_PYTHON, source_python_script): Delete.
10091 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10092 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10093 (!HAVE_PYTHON, start_type_printers): Delete.
10094 (!HAVE_PYTHON, apply_type_printers): Delete.
10095 (!HAVE_PYTHON, free_type_printers): Delete.
10096 (_initialize_python): Delete call to observer_attach_before_prompt.
10097 (finalize_python): Set/restore active extension language.
10098 (gdbpy_finish_initialization) Renamed from
10099 finish_python_initialization, made static. New arg extlang.
10100 (gdbpy_initialized): New function.
10101 * python/python.h: #include "extension.h". Delete #include
10102 "value.h", "mi/mi-cmds.h".
10103 (extension_language_python): Declare.
10104 (GDBPY_AUTO_FILE_NAME): Delete.
10105 (enum py_bt_status): Moved to extension.h and renamed to
10106 ext_lang_bt_status.
10107 (enum frame_filter_flags): Moved to extension.h.
10108 (enum py_frame_args): Moved to extension.h and renamed to
10109 ext_lang_frame_args.
10110 (finish_python_initialization): Delete.
10111 (eval_python_from_control_command): Delete.
10112 (source_python_script): Delete.
10113 (apply_val_pretty_printer): Delete.
10114 (apply_frame_filter): Delete.
10115 (preserve_python_values): Delete.
10116 (gdbpy_script_language_defn): Delete.
10117 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10118 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10120 * auto-load.c: #include "extension.h".
10121 (GDB_AUTO_FILE_NAME): Delete.
10122 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10123 (script_language_gdb): Delete, moved to extension.c and renamed to
10124 extension_language_gdb.
10125 (source_gdb_script_for_objfile): Delete.
10126 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10127 (loaded_script): Change type of language member to
10128 struct extension_language_defn *.
10129 (init_loaded_scripts_info): Initialize
10130 unsupported_script_warning_printed.
10131 (maybe_add_script): Make static. Change type of language arg to
10132 struct extension_language_defn *.
10133 (clear_section_scripts): Reset unsupported_script_warning_printed.
10134 (auto_load_objfile_script_1): Rewrite to use extension language API.
10135 (auto_load_objfile_script): Make public. Remove support-compiled-in
10136 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10137 (source_section_scripts): Rewrite to use extension language API.
10138 (load_auto_scripts_for_objfile): Rewrite to use
10139 auto_load_scripts_for_objfile.
10140 (collect_matching_scripts_data): Change type of language member to
10141 struct extension_language_defn *.
10142 (auto_load_info_scripts): Change type of language arg to
10143 struct extension_language_defn *.
10144 (unsupported_script_warning_print): New function.
10145 (script_not_found_warning_print): Make static.
10146 (_initialize_auto_load): Rewrite construction of scripts-directory
10148 * auto-load.h (struct objfile): Add forward decl.
10149 (struct script_language): Delete.
10150 (struct auto_load_pspace_info): Add forward decl.
10151 (struct extension_language_defn): Add forward decl.
10152 (maybe_add_script): Delete.
10153 (auto_load_objfile_script): Declare.
10154 (script_not_found_warning_print): Delete.
10155 (auto_load_info_scripts): Update prototype.
10156 (auto_load_gdb_scripts_enabled): Declare.
10157 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10158 auto_load_python_scripts_enabled and made public.
10159 (script_language_python): Delete, moved to python.c.
10160 (gdbpy_script_language_defn): Delete.
10161 (info_auto_load_python_scripts): Update to use
10162 extension_language_python.
10164 * breakpoint.c (condition_command): Replace call to
10165 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10166 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10167 with call to breakpoint_ext_lang_cond_says_stop.
10168 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10169 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10170 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10171 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10173 (local_setattro): Print name of extension language with existing
10176 * valprint.c (val_print, value_print): Update to call
10177 apply_ext_lang_val_pretty_printer.
10178 * cp-valprint.c (cp_print_value): Update call to
10179 apply_ext_lang_val_pretty_printer.
10180 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10181 (gdbpy_apply_val_pretty_printer): Renamed from
10182 apply_val_pretty_printer. New arg extlang.
10183 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10185 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10186 extension language API.
10187 * cli/cli-script.c (execute_control_command): Update to call
10188 eval_ext_lang_from_control_command.
10190 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10191 enum ext_lang_bt_status values. Update call to
10192 apply_ext_lang_frame_filter.
10193 (mi_cmd_stack_list_locals): Ditto.
10194 (mi_cmd_stack_list_args): Ditto.
10195 (mi_cmd_stack_list_variables): Ditto.
10196 * mi/mi-main.c: Delete #include "python/python-internal.h".
10197 Add #include "extension.h".
10198 (mi_cmd_list_features): Replace reference to python internal variable
10199 gdb_python_initialized with call to ext_lang_initialized_p.
10201 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10202 Update to use enum ext_lang_frame_args. Update to call
10203 apply_ext_lang_frame_filter.
10204 * python/py-framefilter.c (extract_sym): Update to use enum
10205 ext_lang_bt_status.
10206 (extract_value, py_print_type, py_print_value): Ditto.
10207 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10208 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10209 (py_print_frame): Ditto.
10210 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10211 New arg extlang. Update to use enum ext_lang_bt_status.
10213 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10214 finish_python_initialization. Replace with call to
10215 finish_ext_lang_initialization.
10217 * typeprint.c (do_free_global_table): Update to call
10218 free_ext_lang_type_printers.
10219 (create_global_typedef_table): Update to call
10220 start_ext_lang_type_printers.
10221 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10222 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10223 (type_print_options): Change type of global_printers from "void *"
10224 to "struct ext_lang_type_printers *".
10226 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10227 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10228 (gdbpy_preserve_values): Renamed from preserve_python_values.
10230 (!HAVE_PYTHON, preserve_python_values): Delete.
10232 * utils.c (quit_flag): Delete, moved to extension.c.
10233 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10236 * eval.c: Delete #include "python/python.h".
10237 * main.c: Delete #include "python/python.h".
10239 * defs.h: Update comment.
10241 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10245 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10247 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10250 2014-02-05 Yao Qi <yao@codesourcery.com>
10252 * remote.c (remote_pass_signals): Remove local 'buf' and use
10254 (remote_program_signals): Likewise.
10256 2014-02-05 Yao Qi <yao@codesourcery.com>
10258 * ctf.c: Include "inferior.h" and "gdbthread.h".
10259 (CTF_PID): A new macro.
10260 (ctf_open): Call inferior_appeared and add_thread_silent.
10261 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10262 (ctf_thread_alive): New function.
10263 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10265 2014-02-05 Yao Qi <yao@codesourcery.com>
10269 2013-05-24 Yao Qi <yao@codesourcery.com>
10271 * tracepoint.c (TFILE_PID): Remove.
10272 (tfile_open): Don't add thread and inferior.
10273 (tfile_close): Don't set 'inferior_ptid'. Don't call
10274 exit_inferior_silent.
10275 (tfile_thread_alive): Remove.
10276 (init_tfile_ops): Don't set field 'to_thread_alive' of
10279 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10281 * remote.c (remote_start_remote): Call remote_check_symbols even
10282 if only symbol-file (not file) has been given.
10284 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10286 * gdbarch.sh (skip_entrypoint): New callback.
10287 * gdbarch.c, gdbarch.h: Regenerate.
10288 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10289 * infrun.c (fill_in_stop_func): Likewise.
10290 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10291 (ppc_elfv2_elf_make_msymbol_special): New function.
10292 (ppc_elfv2_skip_entrypoint): Likewise.
10293 (ppc_linux_init_abi): Install them for ELFv2.
10295 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10297 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10298 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10299 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10300 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10301 structures returned in GPRs.
10303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10305 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10306 offset to the stack parameter list for the ELFv2 ABI.
10308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10310 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10311 set_gdbarch_convert_from_func_ptr_addr and
10312 set_gdbarch_elf_make_msymbol_special for ELFv1.
10313 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10314 function descriptors on ELFv1.
10315 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10316 set up r12 at function entry.
10318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10320 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10321 (struct gdbarch_tdep): New member elf_abi.
10323 * rs6000-tdep.c: Include "elf/ppc64.h".
10324 (rs6000_gdbarch_init): Detect ELF ABI version.
10326 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10329 within a register pair holding a DFP 128-bit value on little-endian.
10330 (ppc64_sysv_abi_return_value_base): Likewise.
10331 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10332 (dfp_pseudo_register_write): Likewise.
10334 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10337 offset on little-endian when passing _Decimal32.
10338 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10340 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10342 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10343 of the overlapped FP register within the VSX register on little-
10345 (efpr_pseudo_register_write): Likewise.
10347 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10349 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10350 offset on little-endian when passing small structures.
10352 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10354 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10355 (struct ppc64_sysv_argpos): New data structure.
10356 (ppc64_sysv_abi_push_float): Remove.
10357 (ppc64_sysv_abi_push_val): New function.
10358 (ppc64_sysv_abi_push_integer): Likewise.
10359 (ppc64_sysv_abi_push_freg): Likewise.
10360 (ppc64_sysv_abi_push_vreg): Likewise.
10361 (ppc64_sysv_abi_push_param): Likewise.
10362 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10363 (ppc64_sysv_abi_return_value_base): New function.
10364 (ppc64_sysv_abi_return_value): Refactor to use it.
10366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10368 * NEWS: Document new target powerpc64le-*-linux*.
10370 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10372 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10373 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10375 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10376 register set used in ELF core dumps. Add floating-point register set.
10378 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10380 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10381 dwarf2_to_gdb[] table using symbolic constants. Adjust
10382 penultimate entry from number representing the PC register
10383 to symbolic constant representing the MDR register. Add
10384 constant for the PC register to the end of the table.
10386 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10388 * bsd-kvm.c: Include <sys/param.h>
10390 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10392 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10394 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10396 * ada-lang.h (clear_ada_sym_cache): Delete.
10398 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10400 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10402 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10404 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10405 the sigreturn register save area only if the syscall is
10408 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10410 * valops.c (value_slice): Minor reformatting.
10412 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10414 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10416 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10418 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10419 New static globals.
10420 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10421 (ada_ignore_descriptive_types_p): New static global.
10422 (find_parallel_type_by_descriptive_type): Return immediately
10423 if ada_ignore_descriptive_types_p is set.
10424 (_initialize_ada_language): Register new commands "maintenance
10425 set ada", "maintenance show ada", "maintenance set ada
10426 ignore-descriptive-types" and "maintenance show ada
10427 ignore-descriptive-types".
10428 * NEWS: Add entry for new "maint ada set/show
10429 ignore-descriptive-types" commands.
10431 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10433 * record-btrace.c (record_btrace_close): Call btrace_teardown
10436 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10438 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10443 * ada-typeprint (type_is_full_subrange_of_target_type):
10445 (print_range): Add parameter bounds_prefered_p. If not set,
10446 try printing range types using the name of their base type.
10447 (print_range_type): Add parameter bounds_prefered_p.
10448 Use it in call to print_range.
10449 (print_array_type, ada_print_type): Update calls to print_range
10450 and print_range_type.
10452 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10454 * ada-typeprint.c (print_array_type, print_choices, print_range)
10455 (print_range_bound, print_dynamic_range_bound, print_range_type):
10456 Remove declaration.
10458 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10460 * ada-typeprint.c (print_range): Add missing empty line
10461 after local declaration.
10463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10465 * ada-valprint.c (print_optional_low_bound): Get index_type's
10466 target type for as long as it is a TYPE_CODE_RANGE.
10468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10470 * procfs.c (procfs_make_note_section): Remove assertion and
10471 associated comment.
10473 2014-01-24 Yao Qi <yao@codesourcery.com>
10475 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10476 * corelow.c (get_core_siginfo): Likewise.
10478 2014-01-24 Yao Qi <yao@codesourcery.com>
10480 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10481 ULONGEST. Don't check 'len' is negative.
10482 (remote_write_bytes): Change type of 'len' to ULONGEST.
10484 2014-01-23 Tom Tromey <tromey@redhat.com>
10487 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10488 Handle exception from frame.block.
10489 (FrameVars.fetch_frame_locals): Likewise.
10491 2014-01-23 Tom Tromey <tromey@redhat.com>
10494 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10495 on a NULL pointer. Move "goto error" to correct place.
10497 2014-01-23 Tom Tromey <tromey@redhat.com>
10500 * python/py-framefilter.c (apply_frame_filter): Call
10501 ensure_python_env after computing gdbarch.
10503 2014-01-23 Yao Qi <yao@codesourcery.com>
10505 * target.c (raw_memory_xfer_partial): Change argument type
10506 from void * to gdb_byte *.
10507 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10509 2014-01-22 Doug Evans <dje@google.com>
10511 New gdbserver option --debug-format=timestamp.
10512 * NEWS: Mention it.
10514 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10516 * syscalls/s390x-linux.xml: New file.
10517 * syscalls/s390-linux.xml: New file.
10518 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10519 (XML_SYSCALL_FILENAME_S390X): Likewise.
10520 (op_svc): New enum value for SVC opcode.
10521 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10522 (s390_linux_get_syscall_number): New function.
10523 (s390_gdbarch_init): Register '*get_syscall_number' and the
10524 syscall xml file name.
10525 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10526 "s390-linux.xml" and "s390x-linux.xml".
10527 * NEWS: Announce new feature.
10529 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10531 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10533 2014-01-22 Pedro Alves <palves@redhat.com>
10535 * xtensa-config.c: Include defs.h.
10537 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10539 * common/common-utils.h: Add "ARI:" comment beside __func__
10542 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10544 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10545 documentation a bit.
10547 2014-01-21 Roland McGrath <mcgrathr@google.com>
10549 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10550 * configure: Regenerate.
10551 * aclocal.m4: Regenerate.
10552 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10553 New substituted variables.
10554 (install-strip): New target.
10555 (INSTALL_SCRIPT): New substituted variable.
10556 (FLAGS_TO_PASS): Add it.
10557 (install-only): Use $(INSTALL_SCRIPT) rather than
10558 $(INSTALL_PROGRAM) for gcore.
10560 2014-01-20 Tom Tromey <tromey@redhat.com>
10562 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10565 2014-01-20 Tom Tromey <tromey@redhat.com>
10567 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10568 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10569 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10570 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10571 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10572 (struct cmd_list_element) <flags>: Remove.
10573 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10574 doc_allocated>: New fields.
10575 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10577 * maint.c (maintenance_do_deprecate): Update.
10578 * top.c (execute_command): Update.
10580 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10582 * xtensa-linux-nat.c: Include asm/ptrace.h.
10584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10586 * Makefile.in (SFILES): Add d-support.c.
10587 (COMMON_OBS): Add d-support.o.
10588 * d-lang.h (d_parse_symbol): Add comment, now defined in
10590 * d-lang.c (parse_call_convention)
10591 (parse_attributes, parse_function_types)
10592 (parse_function_args, parse_type, parse_identifier)
10593 (call_convention_p, d_parse_symbol): Move functions to ...
10594 * d-support.c: ... New file.
10596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10598 * d-lang.h (d_parse_symbol): Add declaration.
10599 * d-lang.c (extract_identifiers)
10600 (extract_type_info): Remove functions.
10601 (parse_call_convention, parse_attributes)
10602 (parse_function_types, parse_function_args)
10603 (parse_type, parse_identifier, call_convention_p)
10604 (d_parse_symbol): New functions.
10605 (d_demangle): Use d_parse_symbol to demangle D symbols.
10607 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10609 * d-lang.h (struct builtin_d_type): New data type.
10610 (builtin_d_type): Add declaration.
10611 * d-lang.c (d_language_arch_info, build_d_types)
10612 (builtin_d_type): New functions.
10613 (enum d_primitive_types): New data type.
10614 (d_language_defn): Change c_language_arch_info to
10615 d_language_arch_info.
10616 (d_type_data): New static variable.
10617 (_initialize_d_language): Initialize d_type_data.
10619 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10621 * d-lang.h (d_main_name): Add declaration.
10622 * d-lang.c (d_main_name): New function.
10623 * symtab.c (find_main_name): Add call to d_main_name.
10625 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10627 * d-lang.c (d_language_defn): Change macro_expansion_c to
10628 macro_expansion_no.
10630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10632 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10634 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10636 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10637 gdb_exception" declaration.
10638 * remote.c (getpkt_or_notif_sane): Likewise.
10640 2014-01-17 Doug Evans <dje@google.com>
10642 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10643 function, contents of dirnames_to_char_ptr_vec_append moved here.
10644 (delim_string_to_char_ptr_vec): New function.
10645 (dirnames_to_char_ptr_vec_append): Rewrite.
10646 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10648 2014-01-17 Doug Evans <dje@google.com>
10650 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10652 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10653 #include "common-utils.h".
10654 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10655 * common/vec.h (VEC_ASSERT_PASS): Update.
10656 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10657 (MACH_CHECK_ERROR): Update.
10659 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10661 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10663 * gdbarch.h: Regenerate.
10665 2014-01-16 Tom Tromey <tromey@redhat.com>
10667 * value.c (struct value) <regnum>: Move earlier.
10669 2014-01-16 Tom Tromey <tromey@redhat.com>
10671 * remote.c (extended_remote_create_inferior): Rename from
10672 extended_remote_create_inferior_1. Add "ops" argument. Remove
10673 old implementation.
10675 2014-01-16 Pedro Alves <palves@redhat.com>
10677 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10678 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10681 2014-01-16 Doug Evans <dje@google.com>
10683 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10687 * btrace.h (btrace_thread_flag): New.
10688 (struct btrace_thread_info) <flags>: New.
10689 * record-btrace.c (record_btrace_resume_thread)
10690 (record_btrace_find_thread_to_move, btrace_step_no_history)
10691 (btrace_step_stopped, record_btrace_start_replaying)
10692 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10693 (record_btrace_find_resume_thread): New.
10694 (record_btrace_resume, record_btrace_wait): Extend.
10695 (record_btrace_can_execute_reverse): New.
10696 (record_btrace_open): Fail in non-stop mode.
10697 (record_btrace_set_replay): Split into this, ...
10698 (record_btrace_stop_replaying): ... this, ...
10699 (record_btrace_clear_histories): ... and this.
10700 (init_record_btrace_ops): Init to_can_execute_reverse.
10701 * NEWS: Announce it.
10703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10705 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10706 (forward_target_decr_pc_after_break)
10707 (target_decr_pc_after_break): New.
10708 * target.c (forward_target_decr_pc_after_break)
10709 (target_decr_pc_after_break): New.
10710 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10711 instead of gdbarch_decr_pc_after_break.
10712 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10713 instead of gdbarch_decr_pc_after_break.
10714 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10715 instead of gdbarch_decr_pc_after_break.
10716 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10717 instead of gdbarch_decr_pc_after_break.
10718 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10719 instead of gdbarch_decr_pc_after_break.
10720 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10721 instead of gdbarch_decr_pc_after_break.
10723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10725 * btrace.c: Include regcache.h.
10726 (btrace_add_pc): New.
10727 (btrace_enable): Call btrace_add_pc.
10728 (btrace_is_empty): New.
10729 * btrace.h (btrace_is_empty): New.
10730 * record-btrace.c (require_btrace, record_btrace_info): Call
10733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10735 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10736 Support delta reads.
10737 (linux_disable_btrace): Change return type.
10738 * common/linux-btrace.h (linux_read_btrace): Change parameters
10739 and return type to allow error reporting. Update users.
10740 (linux_disable_btrace): Change return type. Update users.
10741 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10743 (btrace_error): New.
10744 (btrace_block) <begin>: Comment on BEGIN == 0.
10745 * btrace.c (btrace_compute_ftrace): Start from the end of
10747 (btrace_stitch_trace, btrace_clear_history): New.
10748 (btrace_fetch): Read delta trace, return if replaying.
10749 (btrace_clear): Move clear history code to btrace_clear_history.
10750 (parse_xml_btrace): Throw an error if parsing failed.
10751 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10752 and return type to allow error reporting.
10753 (target_read_btrace): Change parameters and return type to allow
10755 * target.c (target_read_btrace): Update.
10756 * remote.c (remote_read_btrace): Support delta reads. Pass
10758 * NEWS: Announce it.
10760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10762 * record.h (record_btrace_frame_unwind)
10763 (record_btrace_tailcall_frame_unwind): New declarations.
10764 * dwarf2-frame: Include record.h
10765 (dwarf2_frame_cfa): Throw an error for btrace frames.
10766 * record-btrace.c: Include hashtab.h.
10767 (btrace_get_bfun_name): New.
10768 (btrace_call_history): Call btrace_get_bfun_name.
10769 (struct btrace_frame_cache): New.
10771 (bfcache_hash, bfcache_eq, bfcache_new): New.
10772 (btrace_get_frame_function): New.
10773 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10774 (record_btrace_frame_this_id): Compute own id.
10775 (record_btrace_frame_prev_register): Provide PC, throw_error
10776 for all other registers.
10777 (record_btrace_frame_sniffer): Detect btrace frames.
10778 (record_btrace_tailcall_frame_sniffer): New.
10779 (record_btrace_frame_dealloc_cache): New.
10780 (record_btrace_frame_unwind): Add new functions.
10781 (record_btrace_tailcall_frame_unwind): New.
10782 (_initialize_record_btrace): Allocate cache.
10783 * btrace.c (btrace_clear): Call reinit_frame_cache.
10784 * NEWS: Announce it.
10786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10788 * record-btrace.c (record_btrace_set_replay)
10789 (record_btrace_goto_begin, record_btrace_goto_end)
10790 (record_btrace_goto): New.
10791 (init_record_btrace_ops): Initialize them.
10792 * NEWS: Announce it.
10794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10796 * record-btrace.c (record_btrace_find_new_threads)
10797 (record_btrace_thread_alive): New.
10798 (init_record_btrace_ops): Initialize to_find_new_threads and
10801 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10803 * record-btrace.c (record_btrace_resume): New.
10804 (record_btrace_wait): New.
10805 (init_record_btrace_ops): Initialize to_wait and to_resume.
10807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10809 * record-btrace.c (record_btrace_xfer_partial)
10810 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10811 (record_btrace_allow_memory_access): New.
10812 (init_record_btrace_ops): Initialize new methods.
10813 * target.c (raw_memory_xfer_partial): Bail out if target reports
10814 that this memory is not available.
10816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10818 * target.h (target_ops) <to_insert_breakpoint>
10819 <to_remove_breakpoint>: Add target_ops parameter.
10820 (forward_target_insert_breakpoint): New.
10821 (forward_target_remove_breakpoint): New.
10822 (memory_remove_breakpoint, memory_insert_breakpoint):
10823 Add target_ops parameter.
10824 * target.c (target_insert_breakpoint): Split into this and ...
10825 (forward_target_insert_breakpoint): ... this.
10826 (target_remove_breakpoint): Split into this and ...
10827 (forward_target_remove_breakpoint): ... this.
10828 (debug_to_insert_breakpoint): Add target_ops parameter.
10829 Call forward_target_insert_breakpoint.
10830 (debug_to_remove_breakpoint): Add target_ops parameter.
10831 Call forward_target_remove_breakpoint.
10832 (update_current_target): Do not inherit or default to_insert_breakpoint
10833 and to_remove_breakpoint.
10834 * corelow.c (ignore): Add target_ops parameter.
10835 * exec.c (ignore): Add target_ops parameter.
10836 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10837 Add target_ops parameter.
10838 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10839 Add target_ops parameter.
10840 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10841 Add target_ops parameter.
10842 * record-full.c (record_full_beneath_to_insert_breakpoint)
10843 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10844 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10845 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10846 (record_full_core_remove_breakpoint): Add target_ops parameter.
10848 (record_full_beneath_to_insert_breakpoint_ops)
10849 (record_full_beneath_to_remove_breakpoint_ops)
10850 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10851 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10852 tmp_to_remove_breakpoint_ops,
10853 record_full_beneath_to_insert_breakpoint_ops, and
10854 record_full_beneath_to_remove_breakpoint_ops.
10855 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10856 (m32r_remove_breakpoint): Add target_ops parameter.
10857 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10858 Add target_ops parameter.
10859 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10860 Add target_ops parameter.
10862 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10863 Markus Metzger <markus.t.metzger@intel.com>
10865 * record-btrace.c: Include frame-unwind.h.
10866 (record_btrace_frame_unwind_stop_reason)
10867 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10868 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10870 (init_record_btrace_ops): Install it.
10872 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10874 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10879 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10882 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10884 * frame-unwind.c: Include target.h.
10885 (frame_unwind_try_unwinder): New function with code from ...
10886 (frame_unwind_find_by_frame): ... here. New variable
10887 unwinder_from_target, call also target_get_unwinder)
10888 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10889 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10890 * target.h (struct target_ops): New fields to_get_unwinder and
10891 to_get_tailcall_unwinder.
10892 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10894 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10896 * record-btrace.c (record_btrace_fetch_registers)
10897 (record_btrace_store_registers)
10898 (record_btrace_to_prepare_to_store): New.
10899 (init_record_btrace_ops): Add the above.
10901 2014-01-16 Tom Tromey <tromey@redhat.com>
10903 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10904 * target.h (struct target_ops) <to_prepare_to_store>: Add
10906 (target_prepare_to_store): Add argument.
10907 * target.c (debug_to_prepare_to_store): Add argument.
10908 (update_current_target): Update.
10909 * remote.c (remote_prepare_to_store): Add 'self' argument.
10910 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10911 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10912 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10913 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10915 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10916 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10917 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10918 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10919 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10923 * btrace.h (replay) <replay>: New.
10924 (btrace_is_replaying): New.
10925 * btrace.c (btrace_clear): Free replay iterator.
10926 (btrace_is_replaying): New.
10927 * record-btrace.c (record_btrace_is_replaying): New.
10928 (record_btrace_info): Print insn number if replaying.
10929 (record_btrace_insn_history): Start at replay position.
10930 (record_btrace_call_history): Start at replay position.
10931 (init_record_btrace_ops): Init to_record_is_replaying.
10933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10935 * record-btrace.c (record_btrace_insn_history_range): Include
10937 (record_btrace_insn_history_from): Adjust range.
10938 (record_btrace_call_history_range): Include
10940 (record_btrace_call_history_from): Adjust range.
10941 * NEWS: Announce changes.
10943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10945 * record.h (enum record_print_flag)
10946 <record_print_indent_calls>: New.
10947 * record.c (get_call_history_modifiers): Recognize /c modifier.
10948 (_initialize_record): Document /c modifier.
10949 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10950 Reorder fields. Optionally indent the function name. Update
10952 * NEWS: Announce changes.
10954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10956 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10960 * btrace.c (ftrace_new_function): Start counting at one.
10961 * record-btrace.c (record_btrace_info): Adjust number of calls
10963 * NEWS: Announce it.
10965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10967 * record-btrace.c (btrace_call_history_insn_range): Print
10968 insn range as [begin, end].
10970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10972 * btrace.h (struct btrace_func_link): New.
10973 (enum btrace_function_flag): New.
10974 (struct btrace_inst): Rename to ...
10975 (struct btrace_insn): ...this. Update all users.
10976 (struct btrace_func) <ibegin, iend>: Remove.
10977 (struct btrace_func_link): New.
10978 (struct btrace_func): Rename to ...
10979 (struct btrace_function): ...this. Update all users.
10980 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10981 (number, level, flags>: New.
10982 (struct btrace_insn_iterator): Rename to ...
10983 (struct btrace_insn_history): ...this.
10985 (struct btrace_insn_iterator, btrace_call_iterator): New.
10986 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10987 (struct btrace_target_info) <begin, end, level>
10988 <insn_history, call_history>: New.
10989 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10990 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10991 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10992 (btrace_call_number, btrace_call_begin, btrace_call_end)
10993 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10994 (btrace_find_function_by_number, btrace_set_insn_history)
10995 (btrace_set_call_history): New.
10996 * btrace.c (btrace_init_insn_iterator)
10997 (btrace_init_func_iterator, compute_itrace): Remove.
10998 (ftrace_print_function_name, ftrace_print_filename)
10999 (ftrace_skip_file): Change
11000 parameter to const.
11001 (ftrace_init_func): Remove.
11002 (ftrace_debug): Use new btrace_function fields.
11003 (ftrace_function_switched): Also consider gaining and
11004 losing symbol information).
11005 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11006 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11007 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11009 (ftrace_new_function): Move. Remove debug print.
11010 (ftrace_update_lines, ftrace_update_insns): New.
11011 (ftrace_update_function): Check for call, ret, and jump.
11012 (compute_ftrace): Renamed to ...
11013 (btrace_compute_ftrace): ...this. Rewritten to compute call
11015 (btrace_fetch, btrace_clear): Updated.
11016 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11017 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11018 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11019 (btrace_call_number, btrace_call_begin, btrace_call_end)
11020 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11021 (btrace_find_function_by_number, btrace_set_insn_history)
11022 (btrace_set_call_history): New.
11023 * record-btrace.c (require_btrace): Use new btrace thread
11025 (record_btrace_info, btrace_insn_history)
11026 (record_btrace_insn_history, record_btrace_insn_history_range):
11027 Use new btrace thread info fields and new iterator.
11028 (btrace_func_history_src_line): Rename to ...
11029 (btrace_call_history_src_line): ...this. Use new btrace
11030 thread info fields.
11031 (btrace_func_history): Rename to ...
11032 (btrace_call_history): ...this. Use new btrace thread info
11033 fields and new iterator.
11034 (record_btrace_call_history, record_btrace_call_history_range):
11035 Use new btrace thread info fields and new iterator.
11037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11039 * frame.h (frame_id_build_unavailable_stack_special): New.
11040 * frame.c (frame_id_build_unavailable_stack_special): New.
11042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11044 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11045 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11046 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11048 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11049 (i386_insn_is_jump, i386_jmp_p): New.
11050 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11051 insn_is_jump to gdbarch.
11052 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11053 * gdbarch.h: Regenerated.
11054 * gdbarch.c: Regenerated.
11055 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11056 (default_insn_is_jump): New.
11057 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11058 (default_insn_is_jump): New.
11060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11062 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11064 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11065 (btrace_read_type) <btrace_read_new>: Change to ...
11066 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11070 * common/linux-btrace.c (linux_read_btrace): Free trace from
11071 previous iteration.
11073 2014-01-15 Doug Evans <dje@google.com>
11075 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11078 2014-01-15 Tom Tromey <tromey@redhat.com>
11080 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11081 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11082 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11083 (set_objfile_main_name): New function.
11084 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11085 language_of_main>: New fields.
11086 (set_objfile_main_name): Declare.
11087 * symtab.c (find_main_name): Loop over objfiles to find the main
11089 (set_main_name): Now static.
11090 (get_main_info): Add comment.
11091 * symtab.h (set_main_name): Don't declare.
11093 2014-01-15 Tom Tromey <tromey@redhat.com>
11095 * symtab.c (main_progspace_key): New global.
11096 (struct main_info): New.
11097 (name_of_main, language_of_main): Remove.
11098 (get_main_info, main_info_cleanup): New function.
11099 (set_main_name, main_name, main_language): Use get_main_info.
11100 (_initialize_symtab): Initialize main_progspace_key.
11102 2014-01-15 Tom Tromey <tromey@redhat.com>
11104 * dbxread.c (process_one_symbol): Update.
11105 * dwarf2read.c (read_partial_die): Update.
11106 * symfile.c (set_initial_language): Call main_language.
11107 * symtab.c (language_of_main): Now static.
11108 (set_main_name): Add 'lang' parameter.
11109 (find_main_name): Update.
11110 (main_language): New function.
11111 (symtab_observer_executable_changed): Update.
11112 * symtab.h (set_main_name): Update.
11113 (language_of_main): Remove.
11114 (main_language): Declare.
11116 2014-01-15 Tom Tromey <tromey@redhat.com>
11118 * symfile.c (init_entry_point_info): Use new "initialized" field.
11120 * objfiles.h (struct entry_point) <initialized>: New field.
11121 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11122 (struct objfile) <ei>: ...here. Remove.
11123 * objfiles.c (entry_point_address_query): Update.
11125 2014-01-15 Tom Tromey <tromey@redhat.com>
11127 * objfiles.c (entry_point_address_query): Relocate entry point
11129 (objfile_relocate1): Do not relocate entry point address.
11130 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11131 <the_bfd_section_index>: New field.
11132 * symfile.c (init_entry_point_info): Find the entry point's
11135 2014-01-15 Tom Tromey <tromey@redhat.com>
11137 * solib-frv.c (enable_break): Use entry_point_address_query.
11139 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11141 * NEWS: Add note on improved process record-replay on
11142 arm*-linux* targets.
11144 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11146 * arm-tdep.c (enum arm_record_result): New enum.
11147 (arm_record_unsupported_insn): New function.
11148 (arm_record_coproc_data_proc): Removed.
11149 (thumb2_record_ld_st_multiple): New function.
11150 (thumb2_record_ld_st_dual_ex_tbb): New function.
11151 (thumb2_record_data_proc_sreg_mimm): New function.
11152 (thumb2_record_ps_dest_generic): New function.
11153 (thumb2_record_branch_misc_cntrl): New function.
11154 (thumb2_record_str_single_data): New function.
11155 (thumb2_record_ld_mem_hints): New function.
11156 (thumb2_record_ld_word): New function.
11157 (thumb2_record_lmul_lmla_div): New function.
11158 (thumb2_record_decode_insn_handler): New function.
11159 (decode_insn): Add thumb32 instruction handlers.
11161 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11163 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11164 (struct arm_linux_record_tdep): Declare.
11165 (arm_canonicalize_syscall): New function.
11166 (arm_all_but_pc_registers_record): New function.
11167 (arm_linux_syscall_record): New function.
11168 (arm_linux_init_abi): Add syscall recording constructs.
11169 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11170 decoding. (arm_record_coproc_data_proc): Update arm syscall
11172 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11173 <arm_syscall_record>: New field.
11174 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11177 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11179 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11180 register for push instruction recording.
11182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11184 * arm-tdep.c (thumb_record_misc): Update to correct logical
11185 error while recording ldm, ldmia and pop instructions.
11187 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11189 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11191 2014-01-15 Pedro Alves <palves@redhat.com>
11193 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11194 (go32_resume, go32_fetch_registers, store_register)
11195 (go32_store_registers, go32_prepare_to_store)
11196 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11197 (go32_create_inferior, go32_can_run, go32_terminal_init)
11198 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11201 2014-01-15 Tom Tromey <tromey@redhat.com>
11203 * target.h (async_callback_ftype): New typedef.
11204 (struct target_ops) <to_async>: Use it.
11206 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11208 * python/py-value.c (get_field_type): Remove unnecessary curly
11209 braces for single-statement if block.
11211 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11213 * python/py-type.c (convert_field): Add missing empty line
11214 after declarations.
11216 2014-01-14 Doug Evans <dje@google.com>
11218 * symfile.h (expand_symtabs_matching): Renamed from
11219 expand_partial_symbol_names. Update prototype.
11220 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11221 * symfile.c (expand_symtabs_matching): Renamed from
11222 expand_partial_symbol_names. New args file_matcher, kind.
11223 Rename arg fun to symbol_matcher.
11224 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11225 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11226 ada_expand_partial_symbol_name.
11227 (ada_make_symbol_completion_list): Update to call
11228 expand_symtabs_matching.
11229 (ada_add_global_exceptions): Call expand_symtabs_matching.
11230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11231 call map_symbol_filenames.
11232 * symtab.c (sources_info): Update to call map_symbol_filenames.
11233 (search_symbols): Call expand_symtabs_matching.
11234 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11235 (default_make_symbol_completion_list_break_on): Update to call
11236 expand_symtabs_matching.
11237 (make_source_files_completion_list): Update to call
11238 map_symbol_filenames.
11240 2014-01-14 Doug Evans <dje@google.com>
11242 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11243 (expand_symtabs_symbol_matcher_ftype): New typedef.
11244 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11245 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11246 * symfile.c (expand_partial_symbol_names): Update to use
11247 expand_symtabs_symbol_matcher_ftype.
11248 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11249 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11250 Arg name_matcher renamed to symbol_matcher.
11251 * psymtab.c (recursively_search_psymtabs): Update to use
11252 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11254 (expand_symtabs_matching_via_partial): Update to use
11255 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11256 Arg name_matcher renamed to symbol_matcher.
11258 2014-01-14 Doug Evans <dje@google.com>
11260 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11261 (map_partial_symbol_filenames): Ditto.
11262 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11263 (map_partial_symbol_filenames): Ditto.
11264 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11265 (map_partial_symbol_filenames): Ditto.
11266 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11267 (map_partial_symbol_filenames): Ditto.
11268 * symtab.c: Delete #include "psymtab.h".
11270 2014-01-14 Pedro Alves <palves@redhat.com>
11271 Tom Tromey <tromey@redhat.com>
11273 * infrun.c (use_displaced_stepping): Use find_record_target
11274 instead of RECORD_IS_USED.
11275 (adjust_pc_after_break): Use record_full_is_used instead of
11277 * record-btrace.c (record_btrace_open): Call record_preopen
11278 instead of checking RECORD_IS_USED.
11279 * record-full.c (record_full_shortname)
11280 (record_full_core_shortname): New globals.
11281 (record_full_is_used): New function.
11282 (find_full_open): Call record_preopen instead of checking
11284 (init_record_full_ops): Set the target's shortname to
11285 record_full_shortname.
11286 (init_record_full_core_ops): Set the target's shortname to
11287 record_full_core_shortname.
11288 * record-full.h (record_full_is_used): Declare.
11289 * record.c (find_record_target): Make extern.
11290 (record_preopen): New function.
11291 * record.h (RECORD_IS_USED): Delete macro.
11292 (find_record_target, record_preopen): Declare functions.
11294 2014-01-14 Yao Qi <yao@codesourcery.com>
11296 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11297 'len''s type to ULONGEST.
11298 (core_xfer_shared_libraries_aix): Likewise.
11299 * gdbarch.c, gdbarch.h: Regenerated.
11300 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11301 Change type of 'len' to ULONGEST.
11302 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11303 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11305 2014-01-14 Yao Qi <yao@codesourcery.com>
11307 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11308 type of 'len' to ULONGEST.
11309 (linux_xfer_osdata_processgroups): Likewise.
11310 (linux_xfer_osdata_threads): Likewise.
11311 (linux_xfer_osdata_fds): Likewise.
11312 (linux_xfer_osdata_isockets): Likewise.
11313 (linux_xfer_osdata_shm): Likewise.
11314 (linux_xfer_osdata_sem): Likewise.
11315 (linux_xfer_osdata_msg): Likewise.
11316 (linux_common_xfer_osdata): Likewise.
11317 (struct osdata_type) <getter>: Likewise.
11318 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11321 2014-01-14 Yao Qi <yao@codesourcery.com>
11323 * target.h (target_xfer_partial_ftype): Update.
11324 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11326 * aix-thread.c (aix_thread_xfer_partial): Change type of
11327 argument 'len' to ULONGEST.
11328 * auxv.c (procfs_xfer_auxv): Likewise.
11329 (ld_so_xfer_auxv): Likewise.
11330 (memory_xfer_auxv): Likewise.
11331 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11332 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11333 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11334 * corelow.c (core_xfer_partial): Likewise.
11335 * ctf.c (ctf_xfer_partial): Likewise.
11336 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11338 (darwin_read_dyld_info): Likewise.
11339 (darwin_xfer_partial): Likewise.
11340 * exec.c (section_table_xfer_memory_partial): Likewise.
11341 (exec_xfer_partial): Likewise.
11342 * exec.h (section_table_xfer_memory_partial): Update
11344 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11345 instead of plongest.
11346 (gnu_xfer_partial): Likewise.
11347 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11348 (ia64_hpux_xfer_solib_got): Likewise.
11349 (ia64_hpux_xfer_partial): Likewise.
11350 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11351 * inf-ptrace.c (inf_ptrace_xfer_partial):
11352 * inf-ttrace.c (inf_ttrace_xfer_partial):
11353 * linux-nat.c (linux_xfer_siginfo): Likewise.
11354 (linux_nat_xfer_partial): Likewise.
11355 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11356 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11357 * monitor.c (monitor_xfer_memory): Likewise.
11358 (monitor_xfer_partial): Likewise.
11359 * procfs.c (procfs_xfer_partial): Likewise.
11360 * record-full.c (record_full_xfer_partial): Likewise.
11361 (record_full_core_xfer_partial): Likewise.
11362 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11363 instead of plongest.
11364 (gdbsim_xfer_partial): Likewise.
11365 * remote.c (remote_xfer_partial): Likewise.
11366 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11367 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11369 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11370 (rs6000_xfer_shared_libraries): Likewise.
11371 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11372 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11373 (sparc_xfer_partial): Likewise.
11374 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11375 (spu_xfer_partial): Likewise.
11376 * spu-multiarch.c (spu_xfer_partial): Likewise.
11377 * target.c (target_read_live_memory): Likewise.
11378 (memory_xfer_live_readonly_partial): Likewise.
11379 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11380 (target_xfer_partial, default_xfer_partial): Likewise.
11381 (current_xfer_partial): Likewise.
11382 * tracepoint.c (tfile_xfer_partial): Likewise.
11383 * windows-nat.c (windows_xfer_memory): Likewise. Call
11384 pulongest instead of plongest.
11385 (windows_xfer_partial): Likewise.
11386 (windows_xfer_shared_libraries): Likewise.
11388 2014-01-14 Yao Qi <yao@codesourcery.com>
11390 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11391 target_xfer_partial_ftype.
11393 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11397 * valops.c (value_struct_elt_bitpos): New function
11398 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11399 object to 'None' if the field name is an empty string ("").
11400 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11401 attribute to look for a field when 'name' is 'None'.
11402 (get_field_type): New function
11404 2014-01-13 Doug Evans <dje@google.com>
11407 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11408 (try_open_dwop_file): Ditto.
11409 * gdb_bfd.c: #include "vec.h".
11410 (bfdp): New typedef.
11411 (struct gdb_bfd_data): New member included_bfds.
11412 (gdb_bfd_unref): Unref all included bfds.
11413 (gdb_bfd_record_inclusion): New function.
11414 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11416 2014-01-13 Tom Tromey <tromey@redhat.com>
11418 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11420 2014-01-13 Tom Tromey <tromey@redhat.com>
11422 * defs.h (use_windows): Remove.
11423 * gdb.c (main): Update.
11424 * main.c (captured_main, gdb_main): Update.
11425 * main.h (struct captured_main_args) <use_windows>: Remove.
11426 * top.c (use_windows): Remove.
11428 2014-01-13 Tom Tromey <tromey@redhat.com>
11430 * defs.h (deprecated_flush_hook): Remove.
11432 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11435 * linux-thread-db.c (try_thread_db_load): Add parameter
11436 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11437 (try_thread_db_load_from_pdir_1): Move it there from here.
11438 (try_thread_db_load_from_sdir): Update caller.
11439 (try_thread_db_load_from_dir): Move it there from here.
11441 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11443 * regformats/regdat.sh: Always rewrite the register file.
11445 2014-01-13 Pedro Alves <palves@redhat.com>
11447 * Makefile.in (CHECK_HEADERS): New variable.
11448 (check-headers:): New rule.
11450 2014-01-13 Tom Tromey <tromey@redhat.com>
11452 * cli/cli-setshow.c (do_set_command): Update.
11453 * defs.h (deprecated_set_hook): Remove.
11454 * top.c (deprecated_set_hook): Remove.
11456 2014-01-13 Pedro Alves <palves@redhat.com>
11458 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11459 the tracepoint if the PC is a pseudo-register.
11461 2014-01-13 Tom Tromey <tromey@redhat.com>
11463 * defs.h (XCALLOC): Remove.
11464 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11465 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11466 * dwarf2loc.c (allocate_piece_closure): Likewise.
11467 * elfread.c (elf_symfile_segments): Likewise.
11468 (elf_symfile_segments): Likewise.
11469 * gdbtypes.c (copy_type_recursive): Likewise.
11470 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11471 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11472 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11474 * mt-tdep.c (mt_gdbarch_init): Likewise.
11475 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11477 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11478 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11479 * registry.c (registry_alloc_data): Likewise.
11480 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11481 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11482 * serial.c (serial_fdopen_ops): Likewise.
11483 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11485 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11486 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11489 2014-01-13 Tom Tromey <tromey@redhat.com>
11491 * defs.h (XMALLOC): Remove.
11492 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11493 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11494 * cli-out.c (struct ui_out *): Likewise.
11495 * cli/cli-dump.c (add_dump_command): Likewise.
11496 (add_dump_command): Likewise.
11497 * complaints.c (get_complaints): Likewise.
11498 (find_complaint): Likewise.
11499 * dwarf2-frame.c (execute_cfa_program): Likewise.
11500 * dwarf2read.c (abbrev_table_read_table): Likewise.
11501 * gdbarch.sh: Likewise.
11502 * gdbarch.c: Rebuild.
11503 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11504 * interps.c (interp_new): Likewise.
11505 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11506 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11507 * mi/mi-console.c (mi_console_file_new): Likewise.
11508 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11509 * mi/mi-out.c (mi_out_new): Likewise.
11510 * mi/mi-parse.c (mi_parse): Likewise.
11511 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11512 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11513 * observer.c (xalloc_observer_list_node): Likewise.
11514 * regcache.c (regcache_xmalloc_1): Likewise.
11515 * reggroups.c (reggroup_new): Likewise.
11516 (_initialize_reggroup): Likewise.
11517 * registry.c (register_data_with_cleanup): Likewise.
11518 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11519 * ser-base.c (serial_ttystate): Likewise.
11520 * ser-mingw.c (make_pipe_state): Likewise.
11521 * ser-pipe.c (pipe_open): Likewise.
11522 * serial.c (serial_open): Likewise.
11523 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11524 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11525 (tui_alloc_win_info): Likewise.
11526 (tui_add_content_elements): Likewise.
11527 * tui/tui-file.c (tui_file_new): Likewise.
11528 * tui/tui-out.c (tui_out_new): Likewise.
11529 * ui-file.c (mem_file_new): Likewise.
11530 * ui-out.c (push_level): Likewise.
11531 (make_cleanup_ui_out_end): Likewise.
11532 (append_header_to_list): Likewise.
11533 (ui_out_new): Likewise.
11534 * user-regs.c (user_reg_add_builtin): Likewise.
11536 2014-01-13 Tom Tromey <tromey@redhat.com>
11538 * defs.h (XZALLOC): Remove.
11539 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11540 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11541 (get_ada_tasks_inferior_data): Likewise.
11542 * auto-load.c (get_auto_load_pspace_data): Likewise.
11543 * auxv.c (get_auxv_inferior_data): Likewise.
11544 * bfd-target.c (target_bfd_reopen): Likewise.
11545 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11546 (deprecated_insert_raw_breakpoint): Likewise.
11547 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11548 * corelow.c (core_open): Likewise.
11549 * darwin-nat.c (darwin_check_new_threads): Likewise.
11550 (darwin_attach_pid): Likewise.
11551 * dummy-frame.c (dummy_frame_push): Likewise.
11552 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11553 * dwarf2loc.c (allocate_piece_closure): Likewise.
11554 * elfread.c (elf_symfile_segments): Likewise.
11555 * eval.c (ptrmath_type_p): Likewise.
11556 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11557 * gdbtypes.c (alloc_type_arch): Likewise.
11558 (alloc_type_instance): Likewise.
11559 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11560 * inf-child.c (inf_child_can_use_agent): Likewise.
11561 * inflow.c (get_inflow_inferior_data): Likewise.
11562 * infrun.c (save_infcall_suspend_state): Likewise.
11563 * jit.c (jit_reader_load): Likewise.
11564 (get_jit_objfile_data): Likewise.
11565 (get_jit_program_space_data): Likewise.
11566 (jit_object_open_impl): Likewise.
11567 (jit_symtab_open_impl): Likewise.
11568 (jit_block_open_impl): Likewise.
11569 (jit_frame_sniffer): Likewise.
11570 * linux-fork.c (add_fork): Likewise.
11571 * maint.c (make_command_stats_cleanup): Likewise.
11572 * objfiles.c (get_objfile_pspace_data): Likewise.
11573 * opencl-lang.c (struct lval_closure): Likewise.
11574 * osdata.c (osdata_start_osdata): Likewise.
11575 * progspace.c (new_address_space): Likewise.
11576 (add_program_space): Likewise.
11577 * remote-sim.c (get_sim_inferior_data): Likewise.
11578 * sh-tdep.c (sh_gdbarch_init): Likewise.
11579 * skip.c (Ignore): Likewise.
11580 (skip_delete_command): Likewise.
11581 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11582 (library_list_start_library): Likewise.
11583 (solib_aix_current_sos): Likewise.
11584 * solib-darwin.c (get_darwin_info): Likewise.
11585 (darwin_current_sos): Likewise.
11586 * solib-dsbt.c (get_dsbt_info): Likewise.
11587 * solib-ia64-hpux.c (new_so_list): Likewise.
11588 (ia64_hpux_get_solib_linkage_addr): Likewise.
11589 * solib-spu.c (append_ocl_sos): Likewise.
11590 (spu_current_sos): Likewise.
11591 * solib-svr4.c (get_svr4_info): Likewise.
11592 (svr4_keep_data_in_core): Likewise.
11593 (library_list_start_library): Likewise.
11594 (svr4_default_sos): Likewise.
11595 (svr4_read_so_list): Likewise.
11596 * solib-target.c (library_list_start_library): Likewise.
11597 (solib_target_current_sos): Likewise.
11598 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11599 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11600 * symfile.c (default_symfile_segments): Likewise.
11601 * target-descriptions.c (tdesc_data_init): Likewise.
11602 (tdesc_create_reg): Likewise.
11603 (struct tdesc_type *): Likewise.
11604 (tdesc_create_vector): Likewise.
11605 (tdesc_set_struct_size): Likewise.
11606 (struct tdesc_type *): Likewise.
11607 (tdesc_free_feature): Likewise.
11608 (tdesc_create_feature): Likewise.
11609 * windows-nat.c (windows_add_thread): Likewise.
11610 (windows_make_so): Likewise.
11611 * xml-support.c (gdb_xml_body_text): Likewise.
11612 (gdb_xml_create_parser_and_cleanup): Likewise.
11613 (xml_process_xincludes): Likewise.
11614 * xml-syscall.c (allocate_syscalls_info): Likewise.
11615 (syscall_create_syscall_desc): Likewise.
11617 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11619 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11620 function, with code from i386_stap_parse_special_token.
11621 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11622 (i386_stap_parse_special_token): Move code to the two functions
11623 above; simplify it.
11625 2014-01-09 Pedro Alves <palves@redhat.com>
11626 Hui Zhu <hui@codesourcery.com>
11629 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11630 bp_err_string. Don't mark the location shlib_disabled if the
11631 error thrown wasn't a generic or memory error. Catch errors
11632 thrown while inserting breakpoints in overlayed code. Output
11633 error message of software breakpoints.
11634 * remote.c (remote_insert_breakpoint): If this breakpoint has
11635 target-side commands but this stub doesn't support Z0 packets,
11636 throw NOT_SUPPORTED_ERROR error.
11637 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11638 * target.h (target_insert_breakpoint): Extend comment.
11639 (target_insert_hw_breakpoint): Add comment.
11641 2014-01-08 Pedro Alves <palves@redhat.com>
11643 * remote.c (remote_add_thread): Add threads silently if starting
11645 (remote_notice_new_inferior): If in all-stop, and starting up,
11646 don't call notice_new_inferior.
11647 (get_current_thread): New function, factored out from ...
11648 (add_current_inferior_and_thread): ... this. Adjust.
11649 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11650 found any thread, then select the remote's current thread as GDB's
11651 current thread too.
11653 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11655 * NEWS: Create a new section for the next release branch.
11656 Rename the section of the current branch, now that it has
11659 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11661 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11662 * version.in: Bump version to 7.7.50.DATE-cvs.
11664 2014-01-08 Yao Qi <yao@codesourcery.com>
11666 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11667 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11668 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11670 2014-01-08 Yao Qi <yao@codesourcery.com>
11672 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11673 return value of bfd_get_filename to symbol_file_add_from_bfd.
11675 2014-01-08 Pierre Muller <muller@sourceware.org>
11678 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11679 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11680 to prim_record_mininal_symbol_and_info.
11681 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11682 in call to prim_record_minimal_symbol_and_info.
11683 (read_pe_exported_syms): Set index field of section_data.
11685 2014-01-07 Andrew Pinski <apinski@cavium.com>
11687 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11688 * features/aarch64.c: Regenerate.
11690 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11692 * target.c (return_null): Define.
11693 (update_current_target): Use it instead of return_zero for
11694 functions that return a pointer.
11696 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11698 * source.c (add_path): Fix check for duplicated paths in the previously
11701 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11703 * ada-lang.c: Remove duplicated include statements.
11704 * alphabsd-nat.c: Ditto.
11705 * amd64-darwin-tdep.c: Ditto.
11706 * amd64fbsd-nat.c: Ditto.
11707 * auto-load.c: Ditto.
11709 * breakpoint.c: Ditto.
11710 * dbxread.c: Ditto.
11711 * fork-child.c: Ditto.
11712 * gdb_usleep.c: Ditto.
11713 * i386-darwin-tdep.c: Ditto.
11714 * i386fbsd-nat.c: Ditto.
11716 * inferior.c: Ditto.
11717 * jv-lang.c: Ditto.
11718 * linux-nat.c: Ditto.
11719 * linux-tdep.c: Ditto.
11720 * m68kbsd-nat.c: Ditto.
11721 * m68klinux-nat.c: Ditto.
11722 * microblaze-tdep.c: Ditto.
11723 * mips-linux-tdep.c: Ditto.
11724 * mn10300-tdep.c: Ditto.
11725 * nto-tdep.c: Ditto.
11726 * opencl-lang.c: Ditto.
11728 * printcmd.c: Ditto.
11729 * regcache.c: Ditto.
11730 * remote-m32r-sdi.c: Ditto.
11732 * symfile.c: Ditto.
11734 * tilegx-linux-nat.c: Ditto.
11735 * tilegx-tdep.c: Ditto.
11736 * tracepoint.c: Ditto.
11738 * vaxbsd-nat.c: Ditto.
11739 * windows-nat.c: Ditto.
11740 * xtensa-tdep.c: Ditto.
11742 2014-01-07 Yao Qi <yao@codesourcery.com>
11744 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11746 2014-01-07 Yao Qi <yao@codesourcery.com>
11747 Joel Brobecker <brobecker@adacore.com>
11749 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11750 (pdc_write_regs): Likewise.
11751 (fetch_regs_kernel_thread): Likewise.
11752 (store_regs_kernel_thread): Likewise.
11754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11756 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11757 tagged type objects to their actual type.
11759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11761 * ada-valprint.c (print_field_values): Add "language" parameter.
11762 Update calls to print_field_values and print_variant_part.
11763 Pass new parameter "language" in call to val_print instead
11764 of "current_language". Replace call to ada_val_print by call
11766 (print_variant_part): Add "language" parameter.
11767 (ada_val_print_struct_union): Update call to print_field_values.
11769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11771 * ada-valprint.c (ui_memcpy): Delete.
11772 (ada_print_floating): Update documentation. Add empty line
11773 between between function documentation and implementation.
11774 Delete variable "buffer". Use ui_file_xstrdup in place of
11775 ui_file_put. Minor adjustments following this change.
11777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11779 * ada-valprint.c (ada_val_print_string): New function,
11780 extracted from ada_val_print_array.
11781 (ada_val_print_array): Replace extracted code by call
11782 to ada_val_print_string followed by a return. Move
11783 "else" branch to the function's top block.
11785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11787 * ada-valprint.c (ada_val_print_array): Move implementation
11788 down. Rename parameter "offset" and "val" into "offset_aligned"
11789 and "original_value" respectively. Add parameter "offset".
11791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11793 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11794 re-organizing the code. Change the "???" message printed
11795 when target type is a TYPE_CODE_UNDEF into
11796 "<ref to undefined type>".
11798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11800 * ada-valprint.c (print_record): Delete, implementation inlined...
11801 (ada_val_print_struct_union): ... here. Remove call to
11802 ada_check_typedef in inlined implementation.
11804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11806 * ada-valprint.c (ada_val_print_gnat_array): New function,
11807 extracted from ada_val_print_1;
11808 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11809 (ada_val_print_flt, ada_val_print_struct_union)
11810 (ada_val_print_ref): Likewise.
11811 (ada_val_print_1): Delete variables i and elttype.
11812 Replace extracted-out code by call to corresponding
11815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11817 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11821 * ada-valprint.c (ada_val_print_1): Replace calls to
11822 ada_val_print_1 by calls to val_print.
11824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11826 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11827 Update calls to self accordingly. Replace calls to c_val_print
11828 by calls to val_print.
11830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11832 * ada-valprint.c (print_record): Delete declaration.
11833 (adjust_type_signedness, ada_val_print_1): Likewise.
11834 (ada_val_print): Move function implementation down.
11835 (print_variant_part, print_field_values, print_record):
11836 Move function implementation up.
11838 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11840 * python/py-type.c (typy_get_name): New function.
11841 (type_object_getset): Add entry for attribute "name".
11842 * NEWS: Add entry mentioning this new attribute.
11844 2014-01-07 Yao Qi <yao@codesourcery.com>
11846 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11849 2014-01-07 Yao Qi <yao@codesourcery.com>
11851 * gnu-nat.c (info_port_rights): Add qualifier const to
11854 2014-01-07 Yao Qi <yao@codesourcery.com>
11856 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11858 2014-01-07 Yao Qi <yao@codesourcery.com>
11860 * gnu-nat.c (make_inf) Update declaration.
11861 (make_inf): Make it static.
11862 (inf_set_traced): Likewise.
11863 (inf_port_to_thread, inf_task_died_status): Likewise.
11865 2014-01-07 Yao Qi <yao@codesourcery.com>
11867 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11869 2014-01-07 Yao Qi <yao@codesourcery.com>
11871 * gnu-nat.c (_initialize_gnu_nat): Declare.
11873 2014-01-07 Yao Qi <yao@codesourcery.com>
11875 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11877 (struct gdbarch_info) <byte_order>: Change type to
11879 <byte_order_for_code>: Likewise.
11880 * gdbarch.c, gdbarch.h: Regenerated.
11882 2014-01-06 Sasha Smundak <asmundak@google.com>
11884 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11886 2014-01-06 Tom Tromey <tromey@redhat.com>
11888 * doublest.c (convert_doublest_to_floatformat): Use const, not
11890 * somread.c (som_symtab_read): Likewise.
11892 2014-01-07 Hui Zhu <hui@codesourcery.com>
11894 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11895 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11896 (gdb_bfd_fopen): Ditto.
11897 (gdb_bfd_openr): Ditto.
11898 (gdb_bfd_openw): Ditto.
11899 (gdb_bfd_openr_iovec): Ditto.
11900 (gdb_bfd_fdopenr): Ditto.
11901 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11902 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11904 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11906 * symfile-mem.c (symbol_file_add_from_memory): Removed
11907 gdb_bfd_stash_filename.
11909 2014-01-03 Doug Evans <dje@google.com>
11911 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11914 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11916 Update year range in copyright notice of all files.
11918 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11920 * top.c (print_gdb_version): Set copyright year to 2014.
11922 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11924 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11926 For older changes see ChangeLog-2013.
11932 version-control: never