7dd366b63c0690317e273e7bcd13825f9a37e48c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * ia64-linux-tdep.c: Include "regset.h".
4 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
5 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
6 (ia64_linux_supply_fpregset): New function.
7 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
8 (ia64_linux_regset_from_core_section): New function.
9 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
10 method.
11
12 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13
14 * m68klinux-tdep.c: Include "regset.h".
15 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
16 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
17 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
18 (m68k_linux_regset_from_core_section): New function.
19 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
20 method.
21
22 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
23
24 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
25 function. Move logic to...
26 (tilegx_linux_regmap): ... this new register map.
27 (tilegx_linux_regset): Refer to register map, replace supply
28 method by regcache_supply_regset, and add collect method.
29 * tilegx-tdep.h (enum tilegx_regnum): New enum value
30 TILEGX_FIRST_EASY_REGNUM.
31
32 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
33
34 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
35 that calls regcache_supply_regset and handles the EPC register
36 separately. Move main logic to...
37 (score7_linux_gregmap): ... this new register map.
38 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
39 (score7_linux_gregset): Refer to register map. Add collect method.
40 (score7_linux_regset_from_core_section): Replace
41 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
42 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
43 (struct regset): Delete unused forward declaraction.
44 (struct pt_regs): Delete structure definition.
45 (elf_gregset_t): Delete typedef.
46
47 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
48
49 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
50 (nios2_core_regset): Add collect method.
51
52 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
53
54 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
55 platform-independent and don't write to read-only input buffer.
56 (m32r_linux_collect_gregset): New function.
57 (m32r_linux_gregset): Add collect method.
58
59 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * hppa-linux-tdep.c (greg_map): Rename to...
62 (hppa_linux_gregmap): ... this. Also convert to
63 regcache_map_entry format.
64 (hppa_linux_supply_regset): Delete function.
65 (hppa_linux_supply_fpregset): Delete function. Move logic to...
66 (hppa_linux_fpregmap): ... this new register map.
67 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
68 register map, replace supply method by regcache_supply_regset, and
69 add collect method regcache_collect_regset.
70
71 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
72
73 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
74 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
75 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
76 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
77 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
78 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
79 (frv_linux_supply_gregset): Replace main logic by call to
80 regcache_supply_regset, but keep clearing gr32-gr63.
81 (frv_linux_supply_fpregset): Delete function.
82 (frv_linux_gregset): Refer to appropriate register map and add
83 regcache_collect_regset as the collect method.
84 (frv_linux_fpregset): Likewise. Also exchange the supply method
85 by regcache_supply_regset.
86
87 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
88
89 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
90 by call to alpha_supply_int_regs.
91 (alpha_linux_collect_gregset): New function.
92 (alpha_linux_supply_fpregset): Replace logic by call to
93 alpha_supply_fp_regs.
94 (alpha_linux_collect_fpregset): New function.
95 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
96
97 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
100 by call to regcache_collect_regset.
101 (supply_gregset, supply_fpregset): Call regcache_supply_regset
102 instead of aarch64_linux_supply_gregset/_fpregset.
103 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
104 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
105 header file instead.
106 (aarch64_linux_supply_gregset, supply_gregset_from_core)
107 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
108 functions. Move logic to ...
109 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
110 register maps.
111 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
112 refer to new register maps, replace *_regset_from_core by
113 regcache_supply_regset, and also use regcache_collect_regset.
114 * aarch64-linux-tdep.h: Include "regset.h".
115 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
116 Delete prototypes.
117 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
118 macros, moved from C source file.
119 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
120 variable declarations.
121
122 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
123
124 * s390-linux-nat.c: Include "regset.h".
125 (regmap_gregset): Delete macro.
126 (s390_64_regmap_gregset): New register map for
127 regcache_supply/_collect_regset.
128 (s390_64_gregset): New regset.
129 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
130 (regmap_fpregset): Delete macro.
131 (s390_native_supply, s390_native_collect): Delete functions.
132 (supply_gregset, fill_gregset): Replace s390-specific regmap
133 handling by a call to regcache_supply/_collect_regset.
134 (supply_fpregset, fill_fpregset): Call regcache_supply/
135 _collect_regset instead of s390_native_supply/_collect.
136 (fetch_regset, store_regset): Likewise. Also change the last
137 parameter to a regset instead of a regmap.
138 (s390_linux_fetch_inferior_registers)
139 (390_linux_store_inferior_registers): Adjust last parameter in
140 calls to fetch_regset and store_regset.
141 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
142 (s390_gregmap): ... this. Also make static const and convert to
143 regcache_map_entry format.
144 (s390x_regmap_gregset): Delete.
145 (s390_regmap_fpregset): Rename to...
146 (s390_fpregmap): ... this. Make static const and convert to
147 regcache_map_entry format.
148 (s390_regmap_upper, s390_regmap_last_break)
149 (s390x_regmap_last_break, s390_regmap_system_call)
150 (s390_regmap_tdb): Likewise.
151 (s390_supply_regset, s390_collect_regset): Remove functions.
152 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
153 s390_supply_regset.
154 (s390_gregset, s390_fpregset, s390_upper_regset)
155 (s390_last_break_regset, s390x_last_break_regset)
156 (s390_system_call_regset, s390_tdb_regset): Make global and
157 replace s390_supply/_collect_regset by regcache_supply/
158 _collect_regset.
159 (s390x_gregset): Delete.
160 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
161 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
162 (s390_regmap_fpregset, s390_regmap_last_break)
163 (s390x_regmap_last_break, s390_regmap_system_call)
164 (s390_regmap_tdb): Delete global variable declarations.
165 (s390_gregset, s390_fpregset, s390_last_break_regset)
166 (s390x_last_break_regset, s390_system_call_regset)
167 (s390_tdb_regset): New global variable declarations.
168
169 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
170
171 * regcache.c: Include "regset.h".
172 (regcache_transfer_regset): New local function.
173 (regcache_supply_regset, regcache_collect_regset): New functions.
174 * regcache.h (struct regcache_map_entry): New structure.
175 (REGCACHE_MAP_SKIP): New enum value.
176 (regcache_supply_regset, regcache_collect_regset): New prototypes.
177
178 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
179
180 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
181 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
182 (ppc_linux_collect_gregset ): Likewise.
183 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
184 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
185 (ppc_collect_vrregset): Likewise.
186 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
187 Likewise.
188
189 2014-08-07 Yao Qi <yao@codesourcery.com>
190
191 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
192 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
193 * remote.c (remote_read_bytes): Likewise.
194
195 2014-08-07 Yao Qi <yao@codesourcery.com>
196
197 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
198
199 2014-08-07 Yao Qi <yao@codesourcery.com>
200
201 PR remote/17230
202 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
203 TARGET_XFER_OK instead of 0.
204
205 2014-08-07 Gary Benson <gbenson@redhat.com>
206
207 * common/common-defs.h: Include errno.h.
208 * defs.h: Do not include errno.h.
209 * ada-typeprint.c: Likewise.
210 * c-typeprint.c: Likewise.
211 * core-regset.c: Likewise.
212 * corefile.c: Likewise.
213 * corelow.c: Likewise.
214 * event-loop.c: Likewise.
215 * f-typeprint.c: Likewise.
216 * gnu-nat.c: Likewise.
217 * go32-nat.c: Likewise.
218 * i386gnu-nat.c: Likewise.
219 * m2-typeprint.c: Likewise.
220 * nat/linux-btrace.c: Likewise.
221 * p-typeprint.c: Likewise.
222 * procfs.c: Likewise.
223 * remote-sim.c: Likewise.
224 * rs6000-nat.c: Likewise.
225 * target.c: Likewise.
226 * typeprint.c: Likewise.
227 * ui-file.c: Likewise.
228 * valops.c: Likewise.
229 * valprint.c: Likewise.
230
231 2014-08-07 Gary Benson <gbenson@redhat.com>
232
233 * common/common-defs.h: Include string.h.
234 * aarch64-tdep.c: Do not include string.h.
235 * ada-exp.y: Likewise.
236 * ada-lang.c: Likewise.
237 * ada-lex.l: Likewise.
238 * ada-typeprint.c: Likewise.
239 * ada-valprint.c: Likewise.
240 * aix-thread.c: Likewise.
241 * alpha-linux-tdep.c: Likewise.
242 * alpha-mdebug-tdep.c: Likewise.
243 * alpha-nat.c: Likewise.
244 * alpha-osf1-tdep.c: Likewise.
245 * alpha-tdep.c: Likewise.
246 * alphanbsd-tdep.c: Likewise.
247 * amd64-dicos-tdep.c: Likewise.
248 * amd64-linux-tdep.c: Likewise.
249 * amd64-nat.c: Likewise.
250 * amd64-sol2-tdep.c: Likewise.
251 * amd64fbsd-tdep.c: Likewise.
252 * amd64obsd-tdep.c: Likewise.
253 * arch-utils.c: Likewise.
254 * arm-linux-nat.c: Likewise.
255 * arm-linux-tdep.c: Likewise.
256 * arm-tdep.c: Likewise.
257 * arm-wince-tdep.c: Likewise.
258 * armbsd-tdep.c: Likewise.
259 * armnbsd-nat.c: Likewise.
260 * armnbsd-tdep.c: Likewise.
261 * armobsd-tdep.c: Likewise.
262 * avr-tdep.c: Likewise.
263 * ax-gdb.c: Likewise.
264 * ax-general.c: Likewise.
265 * bcache.c: Likewise.
266 * bfin-tdep.c: Likewise.
267 * breakpoint.c: Likewise.
268 * build-id.c: Likewise.
269 * buildsym.c: Likewise.
270 * c-exp.y: Likewise.
271 * c-lang.c: Likewise.
272 * c-typeprint.c: Likewise.
273 * c-valprint.c: Likewise.
274 * charset.c: Likewise.
275 * cli-out.c: Likewise.
276 * cli/cli-cmds.c: Likewise.
277 * cli/cli-decode.c: Likewise.
278 * cli/cli-dump.c: Likewise.
279 * cli/cli-interp.c: Likewise.
280 * cli/cli-logging.c: Likewise.
281 * cli/cli-script.c: Likewise.
282 * cli/cli-setshow.c: Likewise.
283 * cli/cli-utils.c: Likewise.
284 * coffread.c: Likewise.
285 * common/agent.c: Likewise.
286 * common/buffer.c: Likewise.
287 * common/buffer.h: Likewise.
288 * common/common-utils.c: Likewise.
289 * common/filestuff.c: Likewise.
290 * common/filestuff.c: Likewise.
291 * common/format.c: Likewise.
292 * common/print-utils.c: Likewise.
293 * common/rsp-low.c: Likewise.
294 * common/signals.c: Likewise.
295 * common/vec.h: Likewise.
296 * common/xml-utils.c: Likewise.
297 * core-regset.c: Likewise.
298 * corefile.c: Likewise.
299 * corelow.c: Likewise.
300 * cp-abi.c: Likewise.
301 * cp-name-parser.y: Likewise.
302 * cp-support.c: Likewise.
303 * cp-valprint.c: Likewise.
304 * cris-tdep.c: Likewise.
305 * d-exp.y: Likewise.
306 * darwin-nat.c: Likewise.
307 * dbxread.c: Likewise.
308 * dcache.c: Likewise.
309 * demangle.c: Likewise.
310 * dicos-tdep.c: Likewise.
311 * disasm.c: Likewise.
312 * doublest.c: Likewise.
313 * dsrec.c: Likewise.
314 * dummy-frame.c: Likewise.
315 * dwarf2-frame.c: Likewise.
316 * dwarf2loc.c: Likewise.
317 * dwarf2read.c: Likewise.
318 * elfread.c: Likewise.
319 * environ.c: Likewise.
320 * eval.c: Likewise.
321 * event-loop.c: Likewise.
322 * exceptions.c: Likewise.
323 * exec.c: Likewise.
324 * expprint.c: Likewise.
325 * f-exp.y: Likewise.
326 * f-lang.c: Likewise.
327 * f-typeprint.c: Likewise.
328 * f-valprint.c: Likewise.
329 * fbsd-nat.c: Likewise.
330 * findcmd.c: Likewise.
331 * findvar.c: Likewise.
332 * fork-child.c: Likewise.
333 * frame.c: Likewise.
334 * frv-linux-tdep.c: Likewise.
335 * frv-tdep.c: Likewise.
336 * gdb.c: Likewise.
337 * gdb_bfd.c: Likewise.
338 * gdbarch.c: Likewise.
339 * gdbarch.sh: Likewise.
340 * gdbtypes.c: Likewise.
341 * gnu-nat.c: Likewise.
342 * gnu-v2-abi.c: Likewise.
343 * gnu-v3-abi.c: Likewise.
344 * go-exp.y: Likewise.
345 * go-lang.c: Likewise.
346 * go32-nat.c: Likewise.
347 * guile/guile.c: Likewise.
348 * guile/scm-auto-load.c: Likewise.
349 * hppa-hpux-tdep.c: Likewise.
350 * hppa-linux-nat.c: Likewise.
351 * hppanbsd-tdep.c: Likewise.
352 * hppaobsd-tdep.c: Likewise.
353 * i386-cygwin-tdep.c: Likewise.
354 * i386-dicos-tdep.c: Likewise.
355 * i386-linux-tdep.c: Likewise.
356 * i386-nto-tdep.c: Likewise.
357 * i386-sol2-tdep.c: Likewise.
358 * i386-tdep.c: Likewise.
359 * i386bsd-tdep.c: Likewise.
360 * i386gnu-nat.c: Likewise.
361 * i386nbsd-tdep.c: Likewise.
362 * i386obsd-tdep.c: Likewise.
363 * i387-tdep.c: Likewise.
364 * ia64-libunwind-tdep.c: Likewise.
365 * ia64-linux-nat.c: Likewise.
366 * inf-child.c: Likewise.
367 * inf-ptrace.c: Likewise.
368 * inf-ttrace.c: Likewise.
369 * infcall.c: Likewise.
370 * infcmd.c: Likewise.
371 * inflow.c: Likewise.
372 * infrun.c: Likewise.
373 * interps.c: Likewise.
374 * iq2000-tdep.c: Likewise.
375 * irix5-nat.c: Likewise.
376 * jv-exp.y: Likewise.
377 * jv-lang.c: Likewise.
378 * jv-typeprint.c: Likewise.
379 * jv-valprint.c: Likewise.
380 * language.c: Likewise.
381 * linux-fork.c: Likewise.
382 * linux-nat.c: Likewise.
383 * lm32-tdep.c: Likewise.
384 * m2-exp.y: Likewise.
385 * m2-typeprint.c: Likewise.
386 * m32c-tdep.c: Likewise.
387 * m32r-linux-nat.c: Likewise.
388 * m32r-linux-tdep.c: Likewise.
389 * m32r-rom.c: Likewise.
390 * m32r-tdep.c: Likewise.
391 * m68hc11-tdep.c: Likewise.
392 * m68k-tdep.c: Likewise.
393 * m68kbsd-tdep.c: Likewise.
394 * m68klinux-nat.c: Likewise.
395 * m68klinux-tdep.c: Likewise.
396 * m88k-tdep.c: Likewise.
397 * machoread.c: Likewise.
398 * macrocmd.c: Likewise.
399 * main.c: Likewise.
400 * mdebugread.c: Likewise.
401 * mem-break.c: Likewise.
402 * memattr.c: Likewise.
403 * memory-map.c: Likewise.
404 * mep-tdep.c: Likewise.
405 * mi/mi-cmd-break.c: Likewise.
406 * mi/mi-cmd-disas.c: Likewise.
407 * mi/mi-cmd-env.c: Likewise.
408 * mi/mi-cmd-stack.c: Likewise.
409 * mi/mi-cmd-var.c: Likewise.
410 * mi/mi-cmds.c: Likewise.
411 * mi/mi-console.c: Likewise.
412 * mi/mi-getopt.c: Likewise.
413 * mi/mi-interp.c: Likewise.
414 * mi/mi-main.c: Likewise.
415 * mi/mi-parse.c: Likewise.
416 * microblaze-rom.c: Likewise.
417 * microblaze-tdep.c: Likewise.
418 * mingw-hdep.c: Likewise.
419 * minidebug.c: Likewise.
420 * minsyms.c: Likewise.
421 * mips-irix-tdep.c: Likewise.
422 * mips-linux-tdep.c: Likewise.
423 * mips-tdep.c: Likewise.
424 * mips64obsd-tdep.c: Likewise.
425 * mipsnbsd-tdep.c: Likewise.
426 * mipsread.c: Likewise.
427 * mn10300-linux-tdep.c: Likewise.
428 * mn10300-tdep.c: Likewise.
429 * monitor.c: Likewise.
430 * moxie-tdep.c: Likewise.
431 * mt-tdep.c: Likewise.
432 * nat/linux-btrace.c: Likewise.
433 * nat/linux-osdata.c: Likewise.
434 * nat/linux-procfs.c: Likewise.
435 * nat/linux-ptrace.c: Likewise.
436 * nat/linux-waitpid.c: Likewise.
437 * nbsd-tdep.c: Likewise.
438 * nios2-linux-tdep.c: Likewise.
439 * nto-procfs.c: Likewise.
440 * nto-tdep.c: Likewise.
441 * objc-lang.c: Likewise.
442 * objfiles.c: Likewise.
443 * opencl-lang.c: Likewise.
444 * osabi.c: Likewise.
445 * osdata.c: Likewise.
446 * p-exp.y: Likewise.
447 * p-lang.c: Likewise.
448 * p-typeprint.c: Likewise.
449 * parse.c: Likewise.
450 * posix-hdep.c: Likewise.
451 * ppc-linux-nat.c: Likewise.
452 * ppc-sysv-tdep.c: Likewise.
453 * ppcfbsd-tdep.c: Likewise.
454 * ppcnbsd-tdep.c: Likewise.
455 * ppcobsd-tdep.c: Likewise.
456 * printcmd.c: Likewise.
457 * procfs.c: Likewise.
458 * prologue-value.c: Likewise.
459 * python/py-auto-load.c: Likewise.
460 * python/py-gdb-readline.c: Likewise.
461 * ravenscar-thread.c: Likewise.
462 * regcache.c: Likewise.
463 * registry.c: Likewise.
464 * remote-fileio.c: Likewise.
465 * remote-m32r-sdi.c: Likewise.
466 * remote-mips.c: Likewise.
467 * remote-notif.c: Likewise.
468 * remote-sim.c: Likewise.
469 * remote.c: Likewise.
470 * reverse.c: Likewise.
471 * rs6000-aix-tdep.c: Likewise.
472 * ser-base.c: Likewise.
473 * ser-go32.c: Likewise.
474 * ser-mingw.c: Likewise.
475 * ser-pipe.c: Likewise.
476 * ser-tcp.c: Likewise.
477 * ser-unix.c: Likewise.
478 * serial.c: Likewise.
479 * sh-tdep.c: Likewise.
480 * sh64-tdep.c: Likewise.
481 * shnbsd-tdep.c: Likewise.
482 * skip.c: Likewise.
483 * sol-thread.c: Likewise.
484 * solib-dsbt.c: Likewise.
485 * solib-frv.c: Likewise.
486 * solib-osf.c: Likewise.
487 * solib-som.c: Likewise.
488 * solib-spu.c: Likewise.
489 * solib-target.c: Likewise.
490 * solib.c: Likewise.
491 * somread.c: Likewise.
492 * source.c: Likewise.
493 * sparc-nat.c: Likewise.
494 * sparc-sol2-tdep.c: Likewise.
495 * sparc-tdep.c: Likewise.
496 * sparc64-tdep.c: Likewise.
497 * sparc64fbsd-tdep.c: Likewise.
498 * sparc64nbsd-tdep.c: Likewise.
499 * sparcnbsd-tdep.c: Likewise.
500 * spu-linux-nat.c: Likewise.
501 * spu-multiarch.c: Likewise.
502 * spu-tdep.c: Likewise.
503 * stabsread.c: Likewise.
504 * stack.c: Likewise.
505 * std-regs.c: Likewise.
506 * symfile.c: Likewise.
507 * symmisc.c: Likewise.
508 * symtab.c: Likewise.
509 * target.c: Likewise.
510 * thread.c: Likewise.
511 * tilegx-linux-nat.c: Likewise.
512 * tilegx-tdep.c: Likewise.
513 * top.c: Likewise.
514 * tracepoint.c: Likewise.
515 * tui/tui-command.c: Likewise.
516 * tui/tui-data.c: Likewise.
517 * tui/tui-disasm.c: Likewise.
518 * tui/tui-file.c: Likewise.
519 * tui/tui-layout.c: Likewise.
520 * tui/tui-out.c: Likewise.
521 * tui/tui-regs.c: Likewise.
522 * tui/tui-source.c: Likewise.
523 * tui/tui-stack.c: Likewise.
524 * tui/tui-win.c: Likewise.
525 * tui/tui-windata.c: Likewise.
526 * tui/tui-winsource.c: Likewise.
527 * typeprint.c: Likewise.
528 * ui-file.c: Likewise.
529 * ui-out.c: Likewise.
530 * user-regs.c: Likewise.
531 * utils.c: Likewise.
532 * v850-tdep.c: Likewise.
533 * valarith.c: Likewise.
534 * valops.c: Likewise.
535 * valprint.c: Likewise.
536 * value.c: Likewise.
537 * varobj.c: Likewise.
538 * vax-tdep.c: Likewise.
539 * vaxnbsd-tdep.c: Likewise.
540 * vaxobsd-tdep.c: Likewise.
541 * windows-nat.c: Likewise.
542 * xcoffread.c: Likewise.
543 * xml-support.c: Likewise.
544 * xstormy16-tdep.c: Likewise.
545 * xtensa-linux-nat.c: Likewise.
546
547 2014-08-07 Gary Benson <gbenson@redhat.com>
548
549 * common/common-defs.h: Include gdb_assert.h.
550 * aarch64-tdep.c: Do not include gdb_assert.h.
551 * addrmap.c: Likewise.
552 * aix-thread.c: Likewise.
553 * alpha-linux-tdep.c: Likewise.
554 * alpha-mdebug-tdep.c: Likewise.
555 * alphanbsd-tdep.c: Likewise.
556 * amd64-nat.c: Likewise.
557 * amd64-tdep.c: Likewise.
558 * amd64bsd-nat.c: Likewise.
559 * amd64fbsd-nat.c: Likewise.
560 * amd64fbsd-tdep.c: Likewise.
561 * amd64nbsd-nat.c: Likewise.
562 * amd64nbsd-tdep.c: Likewise.
563 * amd64obsd-nat.c: Likewise.
564 * amd64obsd-tdep.c: Likewise.
565 * arch-utils.c: Likewise.
566 * arm-tdep.c: Likewise.
567 * armbsd-tdep.c: Likewise.
568 * auxv.c: Likewise.
569 * bcache.c: Likewise.
570 * bfin-tdep.c: Likewise.
571 * blockframe.c: Likewise.
572 * breakpoint.c: Likewise.
573 * bsd-kvm.c: Likewise.
574 * bsd-uthread.c: Likewise.
575 * buildsym.c: Likewise.
576 * c-exp.y: Likewise.
577 * c-lang.c: Likewise.
578 * charset.c: Likewise.
579 * cleanups.c: Likewise.
580 * cli-out.c: Likewise.
581 * cli/cli-decode.c: Likewise.
582 * cli/cli-dump.c: Likewise.
583 * cli/cli-logging.c: Likewise.
584 * cli/cli-script.c: Likewise.
585 * cli/cli-utils.c: Likewise.
586 * coffread.c: Likewise.
587 * common/common-utils.c: Likewise.
588 * common/queue.h: Likewise.
589 * common/signals.c: Likewise.
590 * common/vec.h: Likewise.
591 * complaints.c: Likewise.
592 * completer.c: Likewise.
593 * corelow.c: Likewise.
594 * cp-abi.c: Likewise.
595 * cp-name-parser.y: Likewise.
596 * cp-namespace.c: Likewise.
597 * cp-support.c: Likewise.
598 * cris-tdep.c: Likewise.
599 * dbxread.c: Likewise.
600 * dictionary.c: Likewise.
601 * doublest.c: Likewise.
602 * dsrec.c: Likewise.
603 * dummy-frame.c: Likewise.
604 * dwarf2-frame-tailcall.c: Likewise.
605 * dwarf2-frame.c: Likewise.
606 * dwarf2expr.c: Likewise.
607 * dwarf2loc.c: Likewise.
608 * dwarf2read.c: Likewise.
609 * eval.c: Likewise.
610 * event-loop.c: Likewise.
611 * exceptions.c: Likewise.
612 * expprint.c: Likewise.
613 * f-valprint.c: Likewise.
614 * fbsd-nat.c: Likewise.
615 * findvar.c: Likewise.
616 * frame-unwind.c: Likewise.
617 * frame.c: Likewise.
618 * frv-tdep.c: Likewise.
619 * gcore.c: Likewise.
620 * gdb-dlfcn.c: Likewise.
621 * gdb_bfd.c: Likewise.
622 * gdbarch.c: Likewise.
623 * gdbarch.sh: Likewise.
624 * gdbtypes.c: Likewise.
625 * gnu-nat.c: Likewise.
626 * gnu-v3-abi.c: Likewise.
627 * go-lang.c: Likewise.
628 * guile/scm-exception.c: Likewise.
629 * guile/scm-gsmob.c: Likewise.
630 * guile/scm-lazy-string.c: Likewise.
631 * guile/scm-math.c: Likewise.
632 * guile/scm-pretty-print.c: Likewise.
633 * guile/scm-safe-call.c: Likewise.
634 * guile/scm-utils.c: Likewise.
635 * guile/scm-value.c: Likewise.
636 * h8300-tdep.c: Likewise.
637 * hppa-hpux-nat.c: Likewise.
638 * hppa-tdep.c: Likewise.
639 * hppanbsd-tdep.c: Likewise.
640 * hppaobsd-tdep.c: Likewise.
641 * i386-darwin-nat.c: Likewise.
642 * i386-darwin-tdep.c: Likewise.
643 * i386-nto-tdep.c: Likewise.
644 * i386-tdep.c: Likewise.
645 * i386bsd-nat.c: Likewise.
646 * i386fbsd-tdep.c: Likewise.
647 * i386gnu-nat.c: Likewise.
648 * i386nbsd-tdep.c: Likewise.
649 * i386obsd-tdep.c: Likewise.
650 * i387-tdep.c: Likewise.
651 * ia64-libunwind-tdep.c: Likewise.
652 * ia64-tdep.c: Likewise.
653 * inf-ptrace.c: Likewise.
654 * inf-ttrace.c: Likewise.
655 * infcall.c: Likewise.
656 * infcmd.c: Likewise.
657 * infrun.c: Likewise.
658 * inline-frame.c: Likewise.
659 * interps.c: Likewise.
660 * jv-lang.c: Likewise.
661 * jv-typeprint.c: Likewise.
662 * linux-fork.c: Likewise.
663 * linux-nat.c: Likewise.
664 * linux-thread-db.c: Likewise.
665 * m32c-tdep.c: Likewise.
666 * m32r-linux-nat.c: Likewise.
667 * m32r-tdep.c: Likewise.
668 * m68k-tdep.c: Likewise.
669 * m68kbsd-nat.c: Likewise.
670 * m68kbsd-tdep.c: Likewise.
671 * m88k-tdep.c: Likewise.
672 * machoread.c: Likewise.
673 * macroexp.c: Likewise.
674 * macrotab.c: Likewise.
675 * maint.c: Likewise.
676 * mdebugread.c: Likewise.
677 * memory-map.c: Likewise.
678 * mep-tdep.c: Likewise.
679 * mi/mi-common.c: Likewise.
680 * microblaze-tdep.c: Likewise.
681 * mingw-hdep.c: Likewise.
682 * mips-linux-nat.c: Likewise.
683 * mips-linux-tdep.c: Likewise.
684 * mips-tdep.c: Likewise.
685 * mips64obsd-tdep.c: Likewise.
686 * mipsnbsd-tdep.c: Likewise.
687 * mn10300-linux-tdep.c: Likewise.
688 * mn10300-tdep.c: Likewise.
689 * moxie-tdep.c: Likewise.
690 * mt-tdep.c: Likewise.
691 * nat/linux-btrace.c: Likewise.
692 * nat/linux-osdata.c: Likewise.
693 * nat/linux-ptrace.c: Likewise.
694 * nat/mips-linux-watch.c: Likewise.
695 * nios2-linux-tdep.c: Likewise.
696 * nios2-tdep.c: Likewise.
697 * objc-lang.c: Likewise.
698 * objfiles.c: Likewise.
699 * obsd-nat.c: Likewise.
700 * opencl-lang.c: Likewise.
701 * osabi.c: Likewise.
702 * parse.c: Likewise.
703 * ppc-linux-nat.c: Likewise.
704 * ppc-sysv-tdep.c: Likewise.
705 * ppcfbsd-nat.c: Likewise.
706 * ppcfbsd-tdep.c: Likewise.
707 * ppcnbsd-nat.c: Likewise.
708 * ppcnbsd-tdep.c: Likewise.
709 * ppcobsd-nat.c: Likewise.
710 * ppcobsd-tdep.c: Likewise.
711 * printcmd.c: Likewise.
712 * procfs.c: Likewise.
713 * prologue-value.c: Likewise.
714 * psymtab.c: Likewise.
715 * python/py-lazy-string.c: Likewise.
716 * python/py-value.c: Likewise.
717 * regcache.c: Likewise.
718 * reggroups.c: Likewise.
719 * registry.c: Likewise.
720 * remote-sim.c: Likewise.
721 * remote.c: Likewise.
722 * rs6000-aix-tdep.c: Likewise.
723 * rs6000-tdep.c: Likewise.
724 * s390-linux-tdep.c: Likewise.
725 * score-tdep.c: Likewise.
726 * ser-base.c: Likewise.
727 * ser-mingw.c: Likewise.
728 * sh-tdep.c: Likewise.
729 * sh64-tdep.c: Likewise.
730 * solib-darwin.c: Likewise.
731 * solib-spu.c: Likewise.
732 * solib-svr4.c: Likewise.
733 * source.c: Likewise.
734 * sparc-nat.c: Likewise.
735 * sparc-sol2-tdep.c: Likewise.
736 * sparc-tdep.c: Likewise.
737 * sparc64-sol2-tdep.c: Likewise.
738 * sparc64-tdep.c: Likewise.
739 * sparc64fbsd-tdep.c: Likewise.
740 * sparc64nbsd-tdep.c: Likewise.
741 * sparc64obsd-tdep.c: Likewise.
742 * sparcnbsd-tdep.c: Likewise.
743 * sparcobsd-tdep.c: Likewise.
744 * spu-multiarch.c: Likewise.
745 * spu-tdep.c: Likewise.
746 * stabsread.c: Likewise.
747 * stack.c: Likewise.
748 * symfile.c: Likewise.
749 * symtab.c: Likewise.
750 * target-descriptions.c: Likewise.
751 * target-memory.c: Likewise.
752 * target.c: Likewise.
753 * tic6x-linux-tdep.c: Likewise.
754 * tic6x-tdep.c: Likewise.
755 * tilegx-linux-nat.c: Likewise.
756 * tilegx-tdep.c: Likewise.
757 * top.c: Likewise.
758 * tramp-frame.c: Likewise.
759 * tui/tui-out.c: Likewise.
760 * tui/tui-winsource.c: Likewise.
761 * ui-out.c: Likewise.
762 * user-regs.c: Likewise.
763 * utils.c: Likewise.
764 * v850-tdep.c: Likewise.
765 * valops.c: Likewise.
766 * value.c: Likewise.
767 * varobj.c: Likewise.
768 * vax-nat.c: Likewise.
769 * xml-syscall.c: Likewise.
770 * xml-tdesc.c: Likewise.
771 * xstormy16-tdep.c: Likewise.
772 * xtensa-linux-nat.c: Likewise.
773 * xtensa-tdep.c: Likewise.
774
775 2014-08-07 Gary Benson <gbenson@redhat.com>
776
777 * common/common-defs.h: Include common-utils.h.
778 * defs.h: Do not include common-utils.h.
779 * common/gdb_assert.h: Likewise.
780 * darwin-nat.h: Likewise.
781 * nat/linux-btrace.c: Likewise.
782 * target/waitstatus.h: Likewise.
783
784 2014-08-07 Gary Benson <gbenson@redhat.com>
785
786 * common/common-defs.h: Include ptid.h.
787 * defs.h: Do not include ptid.h.
788 * inferior.h: Likewise.
789 * infrun.h: Likewise.
790 * nat/linux-btrace.h: Likewise.
791 * nat/linux-osdata.h: Likewise.
792 * target/waitstatus.h: Likewise.
793
794 2014-08-07 Gary Benson <gbenson@redhat.com>
795
796 * common/common-defs.h: Include gdb_locale.h.
797 * defs.h: Do not include gdb_locale.h.
798
799 2014-08-07 Gary Benson <gbenson@redhat.com>
800
801 * common/common-defs.h: Include gdb/signals.h.
802 * defs.h: Do not include gdb/signals.h.
803
804 2014-08-07 Gary Benson <gbenson@redhat.com>
805
806 * common/common-defs.h: Include pathmax.h.
807 * defs.h: Do not include pathmax.h.
808
809 2014-08-07 Gary Benson <gbenson@redhat.com>
810
811 * common/common-defs.h: Include libiberty.h.
812 * defs.h: Do not include libiberty.h.
813 * common/queue.h: Likewise.
814 * cp-name-parser.y: Likewise.
815 * mi/mi-cmd-catch.c: Likewise.
816 * python/python.c: Likewise.
817
818 2014-08-07 Gary Benson <gbenson@redhat.com>
819
820 * common/common-defs.h: Include ansidecl.h.
821 * defs.h: Do not include ansidecl.h.
822 * common/buffer.h: Likewise.
823 * common/common-utils.h: Likewise.
824
825 2014-08-07 Gary Benson <gbenson@redhat.com>
826
827 * common/common-defs.h: Include stddef.h.
828 * defs.h: Do not include stddef.h.
829 * common/common-utils.h: Likewise.
830 * amd64fbsd-nat.c: Likewise.
831 * bcache.c: Likewise.
832 * charset.c: Likewise.
833 * common/buffer.h: Likewise.
834 * common/vec.h: Likewise.
835 * i386bsd-nat.c: Likewise.
836 * nat/linux-btrace.h: Likewise.
837 * ppcfbsd-nat.c: Likewise.
838 * ppcnbsd-tdep.h: Likewise.
839 * ppcobsd-nat.c: Likewise.
840 * ppcobsd-tdep.h: Likewise.
841 * python/py-gdb-readline.c: Likewise.
842
843 2014-08-07 Gary Benson <gbenson@redhat.com>
844
845 * common/common-defs.h: Include stdarg.h.
846 * defs.h: Do not include stdarg.h.
847 * ada-lang.c: Likewise.
848 * common/common-utils.h: Likewise.
849 * guile/scm-string.c: Likewise.
850 * guile/scm-utils.c: Likewise.
851 * m32c-tdep.c: Likewise.
852
853 2014-08-07 Gary Benson <gbenson@redhat.com>
854
855 * common/common-defs.h: Include stdlib.h.
856 * defs.h: Do not include stdlib.h.
857 * addrmap.c: Likewise.
858 * bcache.c: Likewise.
859 * common/buffer.c: Likewise.
860 * common/common-utils.c: Likewise.
861 * cp-name-parser.y: Likewise.
862 * go32-nat.c: Likewise.
863 * mn10300-linux-tdep.c: Likewise.
864 * nat/linux-osdata.c: Likewise.
865 * tui/tui.c: Likewise.
866 * windows-nat.c: Likewise.
867
868 2014-08-07 Gary Benson <gbenson@redhat.com>
869
870 * common/common-defs.h: Include stdio.h.
871 * defs.h: Do not include stdio.h.
872 * ada-lang.c: Likewise.
873 * common/buffer.c: Likewise.
874 * common/common-utils.c: Likewise.
875 * cp-name-parser.y: Likewise.
876 * gnu-nat.c: Likewise.
877 * go32-nat.c: Likewise.
878 * i386gnu-nat.c: Likewise.
879 * proc-api.c: Likewise.
880 * proc-events.c: Likewise.
881 * proc-flags.c: Likewise.
882 * proc-why.c: Likewise.
883 * python/python-internal.h: Likewise.
884 * target-memory.c: Likewise.
885 * tui/tui-io.c: Likewise.
886 * tui/tui.c: Likewise.
887
888 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
889
890 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
891 (scan_dyntag_auxv): Same.
892
893 2014-08-06 Yao Qi <yao@codesourcery.com>
894
895 * amd64-linux-nat.c: Remove duplicated include
896 "x86-linux-nat.h".
897 * i386-linux-nat.c: Likewise.
898
899 2014-08-06 Yao Qi <yao@codesourcery.com>
900
901 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
902 operand" with "Special opcode" in comments.
903
904 2014-08-05 Gary Benson <gbenson@redhat.com>
905
906 * interps.c (initialize_interps): Remove prototype.
907 (interpreter_initialized): Remove static global.
908 (interp_add): Do not call initialize_interps.
909 (initialize_interps): Remove function.
910
911 2014-08-05 Gary Benson <gbenson@redhat.com>
912
913 * utils.c (vwarning): Remove spurious va_end.
914
915 2014-08-05 Alan Modra <amodra@gmail.com>
916
917 * charset.c (convert_between_encodings): Cast result of obstack_base.
918 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
919 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
920 (read_unwind_info): Use size_t for some locals.
921 * jit.c (finalize_symtab): Likewise.
922 * utils.c (hashtab_obstack_allocate): Likewise.
923 * symmisc.c (print_objfile_statistics): Update format strings.
924
925 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
928 (Changes in GDB 7.8): ... here.
929
930 2014-08-04 Tom Tromey <tromey@redhat.com>
931
932 * target.c (set_targetdebug): New function.
933 (initialize_targets): Pass set_targetdebug when creating "set
934 debug target".
935
936 2014-08-01 Joel Brobecker <brobecker@adacore.com>
937
938 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
939 if detecting a variable-sized field that is not the last field.
940 Fix struct type length computation.
941
942 2014-08-01 Joel Brobecker <brobecker@adacore.com>
943
944 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
945 Add debug trace.
946
947 2014-08-01 Joel Brobecker <brobecker@adacore.com>
948
949 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
950 Remove "+ 8" offset in computation of CHAIN_VMA.
951
952 2014-07-31 Doug Evans <dje@google.com>
953
954 * inflow.c (child_terminal_inferior): Add comment.
955 (child_terminal_ours_for_output): Add comment.
956 (child_terminal_ours): Add comment.
957 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
958 (linux_nat_terminal_ours): Add comment.
959
960 2014-07-31 Gary Benson <gbenson@redhat.com>
961
962 * common/btrace-common.h: Do not include defs.h or server.h.
963 * nat/mips-linux-watch.h: Likewise.
964 * gdb-dlfcn.h: Do not include defs.h.
965 * tracefile.h: Likewise.
966
967 2014-07-30 Roland McGrath <mcgrathr@google.com>
968
969 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
970
971 2014-07-30 Tom Tromey <tromey@redhat.com>
972
973 * bsd-kvm.c (bsd_kvm_open): Constify.
974 * corelow.c (core_open): Constify.
975 * ctf.c (ctf_open): Constify.
976 * dbug-rom.c (dbug_open): Constify.
977 * exec.c (exec_open): Constify.
978 * m32r-rom.c (m32r_open, mon2000_open): Constify.
979 * microblaze-rom.c (picobug_open): Constify.
980 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
981 Constify.
982 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
983 * record-btrace.c (record_btrace_open): Constify.
984 * record-full.c (record_full_core_open_1, record_full_open_1)
985 (record_full_open): Constify.
986 * remote-m32r-sdi.c (m32r_open): Constify.
987 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
988 (rockhopper_open, lsi_open): Constify.
989 * remote-sim.c (gdbsim_open): Constify.
990 * remote.c (remote_open, extended_remote_open, remote_open_1):
991 Constify.
992 * target.h (struct target_ops) <to_open>: Make "arg" const.
993 * tracefile-tfile.c (tfile_open): Constify.
994
995 2014-07-30 Tom Tromey <tromey@redhat.com>
996
997 * breakpoint.c (map_breakpoint_numbers): Update.
998 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
999 (get_number_const): New function.
1000 (get_number): Rewrite using get_number_const.
1001 (init_number_or_range): Make "string" const.
1002 (number_is_in_list): Make "list" const.
1003 * cli/cli-utils.h (get_number_const): Declare.
1004 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1005 (init_number_or_range, number_is_in_list): Update.
1006 * printcmd.c (map_display_numbers): Update.
1007 * value.c (value_from_history_ref): Constify.
1008 * value.h (value_from_history_ref): Update.
1009
1010 2014-07-30 Tom Tromey <tromey@redhat.com>
1011
1012 * corefile.c (hook_type, call_extra_exec_file_hooks)
1013 (specify_exec_file_hook): Constify.
1014 * exec.c (exec_file_attach): Make "filename" const.
1015 * gdbcore.h (deprecated_exec_file_display_hook)
1016 (specify_exec_file_hook, exec_file_attach): Constify.
1017 * main.c (captured_main): Use catch_command_errors_const.
1018
1019 2014-07-30 Tom Tromey <tromey@redhat.com>
1020
1021 * target.c (open_target): New function.
1022 (add_target_with_completer, add_deprecated_target_alias): Use
1023 set_cmd_sfunc, set_cmd_context.
1024 (debug_to_open): Remove.
1025 (setup_target_debug): Update.
1026
1027 2014-07-30 Yao Qi <yao@codesourcery.com>
1028
1029 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1030 comments.
1031 * parse.c (exp_iterate): Update comments.
1032
1033 2014-07-30 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: New file.
1036 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1037 * defs.h: Include common-defs.h.
1038 Do not include config.h or build-gnulib/config.h.
1039
1040 2014-07-30 Gary Benson <gbenson@redhat.com>
1041
1042 * common/common-utils.h: Do not include config.h.
1043 * nat/linux-btrace.h: Likewise.
1044
1045 2014-07-30 Gary Benson <gbenson@redhat.com>
1046
1047 * btrace.c: Include defs.h.
1048 * common/ptid.c: Include defs.h or server.h as appropriate.
1049 * nat/mips-linux-watch.c: Likewise.
1050
1051 2014-07-29 Tom Tromey <tromey@redhat.com>
1052
1053 * target.c (target_is_pushed): Simplify.
1054
1055 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1056
1057 GDB 7.8 released.
1058
1059 2014-07-29 Yao Qi <yao@codesourcery.com>
1060
1061 PR gdb/17206
1062 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1063
1064 2014-07-28 Doug Evans <xdje42@gmail.com>
1065
1066 PR guile/17203
1067 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1068 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1069 parameters.
1070
1071 2014-07-28 Will Newton <will.newton@linaro.org>
1072
1073 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1074 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1075 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1076 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1077 (THUMB2_EABI_SYSCALL): Likewise.
1078 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1079 struct tramp_frame.
1080 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1081 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1082
1083 2014-07-27 Doug Evans <xdje42@gmail.com>
1084
1085 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1086
1087 2014-07-27 Doug Evans <xdje42@gmail.com>
1088
1089 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1090
1091 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1092 Doug Evans <xdje42@gmail.com>
1093
1094 PR guile/17146
1095 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1096 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1097 * configure.ac: Try to use guild to compile an scm file, if it fails
1098 then disable guile support.
1099 * configure: Regenerate.
1100 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1101 GUILE_FILE_LIST.
1102 (GUILE_COMPILED_FILES): New variable.
1103 (GUILE_FILES) Update.
1104 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1105 (stamp-guile): Compile scm files.
1106 * guile/guile.c (boot_guile_support): New function.
1107 (standard_throw_args_p): New function.
1108 (print_standard_throw_error, print_throw_error): New functions.
1109 (handle_boot_error): New function.
1110 (initialize_scheme_side): Rewrite to call boot_guile_support.
1111 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1112 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1113
1114 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1115 Doug Evans <xdje42@gmail.com>
1116
1117 PR guile/17146
1118 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1119 * guile/lib/gdb/support.scm: New file.
1120 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1121 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1122 All uses updated.
1123 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1124 All uses updated.
1125 (%assert-type): Ditto, and renamed to assert-type.
1126 (%exception-print-style): Delete.
1127
1128 2014-07-26 Doug Evans <xdje42@gmail.com>
1129
1130 PR build/17105
1131 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1132 * configure: Regenerate.
1133 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1134 PYTHON_FILES.
1135 (PYTHON_FILES): New variable.
1136 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1137 (GUILE_FILES): New variable.
1138 (stamp-python, install-python, uninstall-python): Handle empty
1139 file list.
1140 (stamp-guile, install-guile, uninstall-guile): Ditto.
1141
1142 2014-07-26 Doug Evans <xdje42@gmail.com>
1143
1144 PR guile/17177
1145 * guile/lib/gdb.scm (pretty-printers): Export.
1146 (set-pretty-printers!): Export.
1147 * guile/lib/gdb/printing.scm (gdb module): Update.
1148 (prepend-pretty-printer!, append-pretty-printer!): Update.
1149 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1150 (pretty_printer_list_var): Delete.
1151 (pretty_printer_list): New static global.
1152 (gdbscm_pretty_printers): New function.
1153 (gdbscm_set_pretty_printers_x): New function.
1154 (ppscm_find_pretty_printer_from_gdb): Update.
1155 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1156 (gdbscm_initialize_pretty_printers): Update.
1157
1158 2014-07-26 Doug Evans <xdje42@gmail.com>
1159
1160 PR 17185
1161 * configure.ac: Add check for header gc/gc.h.
1162 Add check for function setenv.
1163 * configure: Regenerate.
1164 * config.in: Regenerate.
1165 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1166
1167 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1168
1169 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1170 variation in gdbarch matching.
1171
1172 2014-07-25 Tom Tromey <tromey@redhat.com>
1173
1174 * exec.c (using_exec_ops): Remove.
1175 (exec_close_1): Update. Remove extraneous block, reindent.
1176 (add_target_sections): Use target_is_pushed.
1177
1178 2014-07-25 Pedro Alves <palves@redhat.com>
1179
1180 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1181 * monitor.c (monitor_create_inferior): Likewise.
1182 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1183 * remote-sim.c (gdbsim_create_inferior): Likewise.
1184 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1185 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1186 * windows-nat.c (do_initial_windows_stuff): Likewise.
1187
1188 2014-07-25 Pedro Alves <palves@redhat.com>
1189
1190 * NEWS: Mention signal passing and "signal" command changes.
1191 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1192 comment.
1193 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1194 call.
1195 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1196 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1197 (jump_command): Adjust clear_proceed_status call.
1198 (signal_command): Warn if other thread that are resumed have
1199 signals that will be delivered. Adjust clear_proceed_status call.
1200 (until_next_command, finish_command)
1201 (proceed_after_attach_callback, attach_command_post_wait)
1202 (attach_command): Adjust clear_proceed_status call.
1203 * infrun.c (proceed_after_vfork_done): Likewise.
1204 (proceed_after_attach_callback): Adjust comment.
1205 (clear_proceed_status_thread): Clear stop_signal if not in pass
1206 state.
1207 (clear_proceed_status_callback): Delete.
1208 (clear_proceed_status): New 'step' parameter. Only clear the
1209 proceed status of threads the command being prepared is about to
1210 resume.
1211 (proceed): If passed in an explicit signal, override stop_signal
1212 with it. Don't pass the last stop signal to the thread we're
1213 resuming.
1214 (init_wait_for_inferior): Adjust clear_proceed_status call.
1215 (switch_back_to_stepped_thread): Clear the signal if it should not
1216 be passed.
1217 * infrun.h (clear_proceed_status): New 'step' parameter.
1218 (user_visible_resume_ptid): Add comment.
1219 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1220 signal is in pass state.
1221 * remote.c (append_pending_thread_resumptions): Likewise.
1222 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1223
1224 2014-07-25 Tom Tromey <tromey@redhat.com>
1225
1226 * target.h (target_stopped_data_address)
1227 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1228 parentheses.
1229
1230 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1231
1232 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1233 comments.
1234 (avr_pointer_to_address): Likewise.
1235
1236 2014-07-24 Tom Tromey <tromey@redhat.com>
1237
1238 * monitor.c (compile_pattern): Update.
1239 * target.h (struct target_ops) <to_shortname, to_longname,
1240 to_doc>: Now const.
1241
1242 2014-07-24 Tom Tromey <tromey@redhat.com>
1243
1244 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1245 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1246 (add_info_alias, add_com): Make "doc" const.
1247 (print_doc_line): Make "str" const.
1248 (delete_cmd): Update.
1249 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1250 (print_doc_line): Update.
1251 * cli/cli-script.c (document_command): Update.
1252 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1253 (add_com, add_info, add_info_alias): Update.
1254 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1255 * python/py-cmd.c (cmdpy_destroyer): Update.
1256
1257 2014-07-24 Tom Tromey <tromey@redhat.com>
1258
1259 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1260 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1261 (help_cmd_list): Constify.
1262 (lookup_cmd): Update.
1263 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1264 const.
1265 (help_cmd_list, apropos_cmd): Update.
1266 * cli/cli-script.c (show_user): Update.
1267 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1268 * cli/cli-setshow.h (cmd_show_list): Update.
1269 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1270 (cmd_show_list): Update.
1271 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1272 * python/py-cmd.c (cmdpy_destroyer): Update.
1273
1274 2014-07-24 Tom Tromey <tromey@redhat.com>
1275
1276 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1277 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1278 const.
1279 * command.h (deprecate_cmd): Update.
1280 * maint.c (maintenance_do_deprecate): Add casts.
1281
1282 2014-07-24 Tom Tromey <tromey@redhat.com>
1283
1284 * cli/cli-decode.c (help_cmd): Make parameter "const".
1285 * cli/cli-decode.h (help_cmd): Update.
1286
1287 2014-07-24 Tom Tromey <tromey@redhat.com>
1288
1289 * stack.c (up_silently_base, down_silently_base): Make argument
1290 const.
1291
1292 2014-07-24 Tom Tromey <tromey@redhat.com>
1293
1294 * solib.c (solib_add): Make "pattern" const.
1295 * solib.h (solib_add): Update.
1296
1297 2014-07-24 Tom Tromey <tromey@redhat.com>
1298
1299 * remote.c (remote_serial_open, print_packet, putpkt)
1300 (putpkt_binary): Constify.
1301 * remote.h (putpkt): Update.
1302
1303 2014-07-24 Tom Tromey <tromey@redhat.com>
1304
1305 * monitor.c (monitor_open): Make "args" const.
1306 * monitor.h (monitor_open): Update.
1307
1308 2014-07-24 Tom Tromey <tromey@redhat.com>
1309
1310 * maint.c (match_bfd_flags): Make "string" const.
1311 (print_bfd_section_info): Remove casts.
1312 (print_objfile_section_info): Make "string" const.
1313
1314 2014-07-24 Tom Tromey <tromey@redhat.com>
1315
1316 * inf-child.c (inf_child_open_target): Make "arg" const.
1317 * inf-child.h (inf_child_open_target): Update.
1318
1319 2014-07-24 Tom Tromey <tromey@redhat.com>
1320
1321 * environ.c (unset_in_environ): Make "var" const.
1322 * environ.h (unset_in_environ): Update.
1323
1324 2014-07-24 Tom Tromey <tromey@redhat.com>
1325
1326 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1327 Make "cmd" const.
1328 (scan_filename_with_cleanup): Likewise.
1329 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1330 Make arguments const.
1331 (restore_command): Update.
1332
1333 2014-07-24 Pedro Alves <palves@redhat.com>
1334
1335 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1336
1337 2014-07-24 Tom Tromey <tromey@redhat.com>
1338 Gary Benson <gbenson@redhat.com>
1339
1340 * nat/linux-ptrace.c (additional_flags): New global.
1341 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1342 additional_flags; don't check GDBSERVER.
1343 (linux_ptrace_set_additional_flags): New function.
1344 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1345 Declare.
1346 * linux-nat.c (_initialize_linux_nat): Call
1347 linux_ptrace_set_additional_flags.
1348
1349 2014-07-24 Tom Tromey <tromey@redhat.com>
1350
1351 * make-target-delegates (munge_type, write_debugmethod): New
1352 functions.
1353 (debug_names): New global.
1354 ($TARGET_DEBUG_PRINTER): New global.
1355 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1356 name.
1357 Write debug methods. Generate init_debug_target.
1358 * target-debug.h: New file.
1359 * target-delegates.c: Rebuild.
1360 * target.c: Include target-debug.h.
1361 (debug_target): Hoist definition.
1362 (target_kill, target_get_section_table, target_memory_map)
1363 (target_flash_erase, target_flash_done, target_detach)
1364 (target_disconnect, target_wait, target_resume)
1365 (target_pass_signals, target_program_signals, target_follow_fork)
1366 (target_mourn_inferior, target_search_memory)
1367 (target_thread_address_space, target_close)
1368 (target_find_new_threads, target_core_of_thread)
1369 (target_verify_memory, target_insert_mask_watchpoint)
1370 (target_remove_mask_watchpoint): Remove targetdebug code.
1371 (debug_to_post_attach, debug_to_prepare_to_store)
1372 (debug_to_files_info, debug_to_insert_breakpoint)
1373 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1374 (debug_to_region_ok_for_hw_watchpoint)
1375 (debug_to_can_accel_watchpoint_condition)
1376 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1377 (debug_to_watchpoint_addr_within_range)
1378 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1379 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1380 (debug_to_terminal_init, debug_to_terminal_inferior)
1381 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1382 (debug_to_terminal_save_ours, debug_to_terminal_info)
1383 (debug_to_load, debug_to_post_startup_inferior)
1384 (debug_to_insert_fork_catchpoint)
1385 (debug_to_remove_fork_catchpoint)
1386 (debug_to_insert_vfork_catchpoint)
1387 (debug_to_remove_vfork_catchpoint)
1388 (debug_to_insert_exec_catchpoint)
1389 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1390 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1391 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1392 (setup_target_debug): Call init_debug_target.
1393 * target.h (TARGET_DEBUG_PRINTER): New macro.
1394 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1395 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1396
1397 2014-07-24 Gary Benson <gbenson@redhat.com>
1398
1399 * exceptions.h (throw_vfatal): Renamed to...
1400 (throw_vquit): New declaration.
1401 (throw_quit): Likewise.
1402 * exceptions.c (throw_vfatal): Renamed to...
1403 (throw_vquit): New function.
1404 (throw_quit): Likewise.
1405 (throw_error): Call throw_verror rather than throw_it.
1406 * utils.h (vfatal): Removed.
1407 (fatal): Likewise.
1408 * utils.c (vfatal): Removed.
1409 (fatal): Likewise.
1410 (internal_verror): Replaced call to fatal with call to throw_quit.
1411 (quit): Replaced calls to fatal with calls to throw_quit.
1412
1413 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1414
1415 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1416 target_read_code.
1417
1418 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1419
1420 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1421 less than zero in conditional expression.
1422
1423 2014-07-23 Tom Tromey <tromey@redhat.com>
1424
1425 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1426 ($INTRO_PART): Don't match whitespace.
1427 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1428 argument matching.
1429 ($METHOD): Add $METHOD_TRAILER.
1430 (trim): Rewrite.
1431 (scan_target_h): New sub.
1432 Change main loop not to collect state.
1433 * target-delegates.c: Rebuild.
1434
1435 2014-07-23 Gary Benson <gbenson@redhat.com>
1436
1437 * cp-support.c (gdb_demangle): Fix build on systems without
1438 sigaltstack.
1439
1440 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1441
1442 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1443 for reference entry value target data value.
1444
1445 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1446
1447 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1448 value_available_contents_eq.
1449
1450 2014-07-22 Pedro Alves <palves@redhat.com>
1451
1452 * value.c (allocate_optimized_out_value): Don't mark value as
1453 non-lazy.
1454
1455 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1456
1457 * MAINTAINERS (Write After Approval): Update my email address.
1458
1459 2014-07-20 Doug Evans <dje@google.com>
1460
1461 PR server/17147
1462 * remote.c (putpkt_binary): Add text to error message.
1463
1464 2014-07-20 Yao Qi <yao@codesourcery.com>
1465
1466 * eval.c: Remove "Chill" from comments.
1467 * gdbtypes.h: Likewise.
1468 * symtab.h: Likewise.
1469
1470 2014-07-20 Yao Qi <yao@codesourcery.com>
1471
1472 * std-operator.def: Update comments to TERNOP_SLICE.
1473
1474 2014-07-20 Yao Qi <yao@codesourcery.com>
1475
1476 * std-operator.def: Remove BINOP_RANGE.
1477 * breakpoint.c (watchpoint_exp_is_const): Update.
1478 * expprint.c (dump_subexp_body_standard): Likewise.
1479 * eval.c (init_array_element): Remove dead code.
1480 (evaluate_subexp_standard): Likewise.
1481
1482 2014-07-20 Yao Qi <yao@codesourcery.com>
1483
1484 * std-operator.def: Remove BINOP_IN.
1485 * breakpoint.c (watchpoint_exp_is_const): Update.
1486 * eval.c (evaluate_subexp_standard): Likewise.
1487 * expprint.c (dump_subexp_body_standard): Likewise.
1488
1489 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1490
1491 * microblaze-tdep.c (microblaze_register_names): Add
1492 the rshr and rslr register names.
1493 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1494 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1495 Use of tdesc_numbered_register. Use of
1496 microblaze_register_g_packet_guesses. Use of
1497 tdesc_use_registers. Use of set_gdbarch_register_type.
1498 (microblaze_register_g_packet_guesses): New.
1499 * microblaze-tdep.h (microblaze_reg_num): Add
1500 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1501 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1502 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1503 * features/microblaze-core.xml: New file.
1504 * features/microblaze-stack-protect.xml: New file.
1505 * features/microblaze-with-stack-protect.c: New file.
1506 * features/microblaze-with-stack-protect.xml: New file.
1507 * features/microblaze.xml: New file.
1508 * features/microblaze.c: New file.
1509 * features/Makefile (microblaze-with-stack-protect): Add
1510 microblaze-with-stack-protect microblaze and microblaze-expedite.
1511 * regformats/microblaze-with-stack-protect.dat: New file.
1512 * regformats/microblaze.dat: New file.
1513 * doc/gdb.texinfo (MicroBlaze Features): Added.
1514
1515 2014-07-18 Tom Tromey <tromey@redhat.com>
1516
1517 * exec.c (exec_ops): Now static.
1518 * exec.h (exec_ops): Don't declare.
1519
1520 2014-07-18 Tom Tromey <tromey@redhat.com>
1521
1522 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1523 to find_target_beneath.
1524 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1525 find_target_beneath.
1526 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1527
1528 2014-07-18 Tom Tromey <tromey@redhat.com>
1529
1530 PR gdb/17130:
1531 * utils.c (quit): Use target_supports_terminal_ours.
1532 * target.h (target_supports_terminal_ours): Declare.
1533 * target.c (target_supports_delete_record): Don't check
1534 to_delete_record against NULL.
1535 (target_supports_terminal_ours): New function.
1536
1537 2014-07-18 Tom Tromey <tromey@redhat.com>
1538
1539 PR gdb/17130:
1540 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1541 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1542 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1543 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1544 * windows-nat.c (windows_xfer_partial): Always delegate.
1545 * record-btrace.c (record_btrace_xfer_partial): Simplify
1546 delegation.
1547 (record_btrace_fetch_registers, record_btrace_store_registers)
1548 (record_btrace_prepare_to_store, record_btrace_resume)
1549 (record_btrace_wait, record_btrace_find_new_threads)
1550 (record_btrace_thread_alive): Likewise.
1551 * procfs.c (procfs_xfer_partial): Always delegate.
1552 * corelow.c (core_xfer_partial): Always delegate.
1553 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1554
1555 2014-07-18 Tom Tromey <tromey@redhat.com>
1556
1557 * exec.c (exec_make_note_section): Move earlier.
1558
1559 2014-07-17 Doug Evans <dje@google.com>
1560
1561 PR gdb/17170
1562 * maint.c (count_symtabs_and_blocks): Handle NULL
1563 current_program_space.
1564 (report_command_stats): Check global enabled flag in addition to
1565 recorded enabled flag.
1566 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1567
1568 2014-07-16 Pedro Alves <palves@redhat.com>
1569
1570 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1571
1572 2014-07-16 Tom Tromey <tromey@redhat.com>
1573
1574 * target.h (struct target_ops) <to_delete_record>: Reformat
1575 comment.
1576
1577 2014-07-16 Tom Tromey <tromey@redhat.com>
1578
1579 * target-delegates.c: Rebuild.
1580
1581 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1582
1583 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1584 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1585 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1586 (avr_pointer_to_address): Likewise.
1587 (avr_address_class_type_flags): New function.
1588 (avr_address_class_type_flags_to_name): Likewise.
1589 (avr_address_class_name_to_type_flags): Likewise.
1590 (avr_gdbarch_init): Set address_class_type_flags,
1591 address_class_type_flags_to_name and
1592 address_class_name_to_type_flags.
1593
1594 2014-07-15 Pedro Alves <palves@redhat.com>
1595
1596 * linux-nat.c (kill_callback): Save errno and work with saved
1597 copy.
1598
1599 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1600
1601 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1602
1603 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1604
1605 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1606 breakpoint support correctly.
1607
1608 2014-07-14 Pedro Alves <palves@redhat.com>
1609
1610 * utils.c (prompt_for_continue): Call target_terminal_ours.
1611
1612 2014-07-14 Pedro Alves <palves@redhat.com>
1613
1614 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1615 catch_errors. Don't re-enable stdin or notify observers where,
1616 and rethrow error.
1617 (fetch_inferior_event_wrapper): Delete.
1618
1619 2014-07-14 Pedro Alves <palves@redhat.com>
1620
1621 PR gdb/17072
1622 * top.c: Include "inf-loop.h".
1623 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1624 field.
1625 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1626 was async before.
1627 (gdb_readline_wrapper): Store whether the target is async, and
1628 make it sync.
1629
1630 2014-07-14 Pedro Alves <palves@redhat.com>
1631
1632 PR gdb/17072
1633 * top.c (gdb_readline_wrapper_line): Tweak comment.
1634 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1635 the input handler callback.
1636
1637 2014-07-14 Pedro Alves <palves@redhat.com>
1638
1639 PR gdb/17072
1640 * main.c: Include event-top.h.
1641 (handle_command_errors): New function.
1642 (catch_command_errors, catch_command_errors_const): Use it.
1643
1644 2014-07-14 Pedro Alves <palves@redhat.com>
1645
1646 * exceptions.c (catch_command_errors, catch_command_errors_const):
1647 Moved to main.c.
1648 * exceptions.h (catch_command_errors_ftype)
1649 (catch_command_errors_const_ftype): Moved to main.c.
1650 (catch_command_errors, catch_command_errors_const): Delete
1651 declarations.
1652 * main.c (catch_command_errors_ftype)
1653 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1654 (catch_command_errors, catch_command_errors_const)): Moved here
1655 from exceptions.c and make static.
1656
1657 2014-07-14 Pedro Alves <palves@redhat.com>
1658
1659 * exceptions.c (print_any_exception): Delete.
1660 (catch_exceptions_with_msg): Use exception_print instead of
1661 print_any_exception.
1662 (catch_errors): Use exception_fprintf instead of
1663 print_any_exception.
1664 (catch_command_errors, catch_command_errors_const): Use
1665 exception_print instead of print_any_exception.
1666
1667 2014-07-14 Pedro Alves <palves@redhat.com>
1668
1669 * infcall.c (run_inferior_call): Set 'sync_execution' while
1670 running the inferior call.
1671
1672 2014-07-14 Pedro Alves <palves@redhat.com>
1673
1674 * value.c (value_contents_equal): Delete function.
1675 * value.h (value_contents_equal): Delete declaration.
1676
1677 2014-07-14 Tom Tromey <tromey@redhat.com>
1678
1679 PR exp/17106:
1680 * gdbtypes.c (is_dynamic_type_internal): New function, from
1681 is_dynamic_type.
1682 (is_dynamic_type): Rewrite.
1683 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1684 (resolve_dynamic_struct): Likewise.
1685 (resolve_dynamic_type_internal): New function, from
1686 resolve_dynamic_type.
1687 (resolve_dynamic_type): Rewrite.
1688
1689 2014-07-14 Tom Tromey <tromey@redhat.com>
1690
1691 * target.c (target_require_runnable): Also check record_stratum.
1692 Update comment.
1693
1694 2014-07-11 Yao Qi <yao@codesourcery.com>
1695
1696 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1697 thumb_instruction_restores_sp return true.
1698
1699 2014-07-11 Yao Qi <yao@codesourcery.com>
1700
1701 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1702 (thumb_in_function_epilogue_p): Call
1703 thumb_instruction_restores_sp.
1704
1705 2014-07-11 Yao Qi <yao@codesourcery.com>
1706
1707 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1708 'add sp, #imm'.
1709 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1710
1711 2014-07-11 Gary Benson <gbenson@redhat.com>
1712
1713 * amd64-linux-nat.c (gdbcore.h): Remove include.
1714 (regset.h): Likewise.
1715 (nat/linux-btrace.h): Likewise.
1716 (btrace.h): Likewise.
1717 (gdb_assert.h): Likewise.
1718 (string.h): Likewise.
1719 (sys/uio.h): Likewise.
1720 (sys/debugreg.h): Likewise.
1721 (sys/syscall.h): Likewise.
1722 (sys/procfs.h): Likewise.
1723 (sys/user.h): Likewise.
1724 (asm/ptrace.h): Likewise.
1725 (i386-nat.h): Likewise.
1726 * i386-linux-nat.c (i386-nat.h): Likewise.
1727 (regset.h): Likewise.
1728 (target.h): Likewise.
1729 (linux-nat.h): Likewise.
1730 (nat/linux-btrace.h): Likewise.
1731 (btrace.h): Likewise.
1732 (gdb_assert.h): Likewise.
1733 (string.h): Likewise.
1734 (sys/uio.h): Likewise.
1735 (sys/user.h): Likewise.
1736 (sys/procfs.h): Likewise.
1737 (sys/reg.h): Likewise.
1738 (sys/debugreg.h): Likewise.
1739 (ORIG_EAX): Remove definition.
1740
1741 2014-07-11 Gary Benson <gbenson@redhat.com>
1742
1743 * i386-linux-nat.h: New file.
1744 * x86-linux-nat.h: Likewise.
1745 * x86-linux-nat.c: Likewise.
1746 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1747 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1748 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1749 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1750 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1751 (PTRACE_SETREGSET): Likewise.
1752 (arch_lwp_info): Now in x86-linux-nat.c.
1753 (have_ptrace_getregset): Now in x86-linux-nat.h.
1754 (x86_linux_dr_get): Now in x86-linux-nat.c.
1755 (x86_linux_dr_set): Likewise.
1756 (x86_linux_dr_get_addr): Likewise.
1757 (x86_linux_dr_get_control): Likewise.
1758 (x86_linux_dr_get_status): Likewise.
1759 (update_debug_registers_callback): Likewise.
1760 (x86_linux_dr_set_control): Likewise.
1761 (x86_linux_dr_set_addr): Likewise.
1762 (x86_linux_prepare_to_resume): Likewise.
1763 (x86_linux_new_thread): Likewise.
1764 (x86_linux_new_fork): Likewise.
1765 (x86_linux_get_thread_area): Likewise.
1766 (super_post_startup_inferior): Likewise.
1767 (x86_linux_child_post_startup_inferior): Likewise.
1768 (AMD64_LINUX_USER64_CS): Likewise.
1769 (AMD64_LINUX_X32_DS): Likewise.
1770 (x86_linux_read_description): Likewise.
1771 (x86_linux_enable_btrace): Likewise.
1772 (x86_linux_disable_btrace): Likewise.
1773 (x86_linux_teardown_btrace): Likewise.
1774 (x86_linux_read_btrace): Likewise.
1775 (x86_linux_create_target): Likewise.
1776 (x86_linux_add_target): Likewise.
1777 * i386-linux-nat.c (x86-linux-nat.h): New include.
1778 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1779 (PTRACE_SETREGSET): Likewise.
1780 (arch_lwp_info): Now in x86-linux-nat.c.
1781 (have_ptrace_getregset): Now in x86-linux-nat.h.
1782 (x86_linux_dr_get): Now in x86-linux-nat.c.
1783 (x86_linux_dr_set): Likewise.
1784 (x86_linux_dr_get_addr): Likewise.
1785 (x86_linux_dr_get_control): Likewise.
1786 (x86_linux_dr_get_status): Likewise.
1787 (update_debug_registers_callback): Likewise.
1788 (x86_linux_dr_set_control): Likewise.
1789 (x86_linux_dr_set_addr): Likewise.
1790 (x86_linux_prepare_to_resume): Likewise.
1791 (x86_linux_new_thread): Likewise.
1792 (x86_linux_new_fork): Likewise.
1793 (x86_linux_get_thread_area): Likewise.
1794 (super_post_startup_inferior): Likewise.
1795 (x86_linux_child_post_startup_inferior): Likewise.
1796 (AMD64_LINUX_USER64_CS): Likewise.
1797 (AMD64_LINUX_X32_DS): Likewise.
1798 (x86_linux_read_description): Likewise.
1799 (x86_linux_enable_btrace): Likewise.
1800 (x86_linux_disable_btrace): Likewise.
1801 (x86_linux_teardown_btrace): Likewise.
1802 (x86_linux_read_btrace): Likewise.
1803 (x86_linux_create_target): Likewise.
1804 (x86_linux_add_target): Likewise.
1805
1806 2014-07-11 Gary Benson <gbenson@redhat.com>
1807
1808 * amd64-linux-nat.c: Comment and whitespace changes.
1809 * i386-linux-nat.c: Comment and whitespace changes.
1810
1811 2014-07-11 Gary Benson <gbenson@redhat.com>
1812
1813 * amd64-linux-nat.c (x86_linux_create_target): New function.
1814 (x86_linux_add_target): Likewise.
1815 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1816 * i386-linux-nat.c (x86_linux_create_target): New function.
1817 (x86_linux_add_target): Likewise.
1818 (_initialize_i386_linux_nat): Delegate to the above new functions.
1819
1820 2014-07-11 Gary Benson <gbenson@redhat.com>
1821
1822 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1823 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1824 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1825 (ps_get_thread_area): Delegate to the above.
1826
1827 2014-07-11 Gary Benson <gbenson@redhat.com>
1828
1829 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1830 x86_linux_read_description. All uses updated. amd64-specific
1831 code conditionalized. Conditionalized i386-specific code added.
1832 Redundant cast removed.
1833 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1834 x86_linux_read_description. All uses updated. i386-specific
1835 code conditionalized. Conditionalized amd64-specific code added.
1836 One sizeof replaced with the actual type it is describing.
1837
1838 2014-07-11 Gary Benson <gbenson@redhat.com>
1839
1840 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1841 x86_linux_dr_get. All uses updated.
1842 (amd64_linux_dr_set): Renamed to
1843 x86_linux_dr_set. All uses updated.
1844 (amd64_linux_dr_get_addr): Renamed to
1845 x86_linux_dr_get_addr. All uses updated.
1846 (amd64_linux_dr_get_control): Renamed to
1847 x86_linux_dr_get_control. All uses updated.
1848 (amd64_linux_dr_get_status): Renamed to
1849 x86_linux_dr_get_status. All uses updated.
1850 (amd64_linux_dr_set_control): Renamed to
1851 x86_linux_dr_set_control. All uses updated.
1852 (amd64_linux_dr_set_addr): Renamed to
1853 x86_linux_dr_set_addr. All uses updated.
1854 (amd64_linux_prepare_to_resume): Renamed to
1855 x86_linux_prepare_to_resume. All uses updated.
1856 (amd64_linux_new_thread): Renamed to
1857 x86_linux_new_thread. All uses updated.
1858 (amd64_linux_new_fork): Renamed to
1859 x86_linux_new_fork. All uses updated.
1860 (amd64_linux_child_post_startup_inferior): Renamed to
1861 x86_linux_child_post_startup_inferior. All uses updated.
1862 (amd64_linux_enable_btrace): Renamed to
1863 x86_linux_enable_btrace. All uses updated.
1864 (amd64_linux_disable_btrace): Renamed to
1865 x86_linux_disable_btrace. All uses updated.
1866 (amd64_linux_teardown_btrace): Renamed to
1867 x86_linux_teardown_btrace. All uses updated.
1868 (amd64_linux_read_btrace): Renamed to
1869 x86_linux_read_btrace. All uses updated.
1870 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1871 x86_linux_dr_get. All uses updated.
1872 (i386_linux_dr_set): Renamed to
1873 x86_linux_dr_set. All uses updated.
1874 (i386_linux_dr_get_addr): Renamed to
1875 x86_linux_dr_get_addr. All uses updated.
1876 (i386_linux_dr_get_control): Renamed to
1877 x86_linux_dr_get_control. All uses updated.
1878 (i386_linux_dr_get_status): Renamed to
1879 x86_linux_dr_get_status. All uses updated.
1880 (i386_linux_dr_set_control): Renamed to
1881 x86_linux_dr_set_control. All uses updated.
1882 (i386_linux_dr_set_addr): Renamed to
1883 x86_linux_dr_set_addr. All uses updated.
1884 (i386_linux_prepare_to_resume): Renamed to
1885 x86_linux_prepare_to_resume. All uses updated.
1886 (i386_linux_new_thread): Renamed to
1887 x86_linux_new_thread. All uses updated.
1888 (i386_linux_new_fork): Renamed to
1889 x86_linux_new_fork. All uses updated.
1890 (i386_linux_child_post_startup_inferior): Renamed to
1891 x86_linux_child_post_startup_inferior. All uses updated.
1892 (i386_linux_enable_btrace): Renamed to
1893 x86_linux_enable_btrace. All uses updated.
1894 (i386_linux_disable_btrace): Renamed to
1895 x86_linux_disable_btrace. All uses updated.
1896 (i386_linux_teardown_btrace): Renamed to
1897 x86_linux_teardown_btrace. All uses updated.
1898 (i386_linux_read_btrace): Renamed to
1899 x86_linux_read_btrace. All uses updated.
1900
1901 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1902
1903 * remote.c (extended_remote_post_attach): New function.
1904 (init_extended_remote_ops): Install it as to_post_attach method.
1905
1906 2014-07-09 Pedro Alves <palves@redhat.com>
1907
1908 * infcmd.c (attach_command_post_wait): Don't call
1909 target_terminal_inferior here.
1910 (attach_command): Call it here instead.
1911
1912 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1915 field.
1916 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1917 from varobj.c, with additional checks.
1918 (c_varobj_ops): Fill in is_path_expr_parent field.
1919 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1920 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1921 field.
1922 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1923 ops method.
1924 (varobj_default_is_path_expr_parent): New function.
1925 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1926 (varobj_default_is_path_expr_parent): Declare new function.
1927
1928 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1929
1930 * infcmd.c (finish_backward): Turn internal error into normal error.
1931
1932 2014-07-07 Pedro Alves <palves@redhat.com>
1933
1934 PR gdb/17096
1935 * remote.c (async_handle_remote_sigint)
1936 (async_handle_remote_sigint_twice): Call
1937 gdb_call_async_signal_handler instead of
1938 mark_async_signal_handler.
1939
1940 2014-07-07 Tom Tromey <tromey@redhat.com>
1941
1942 * target-delegates.c: Rebuild.
1943 * target.c (target_info_record): Remove.
1944 * record.c (info_record_command): Unconditionally call
1945 to_info_record.
1946 * target.h (struct target_ops) <to_info_record>: Use
1947 TARGET_DEFAULT_IGNORE.
1948 (target_info_record): Remove.
1949
1950 2014-07-07 Tom Tromey <tromey@redhat.com>
1951
1952 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1953 TARGET_DEFAULT_NORETURN.
1954 * target.c (generic_tls_error): New function.
1955 (target_translate_tls_address): Don't search target stack.
1956 * target-delegates.c: Rebuild.
1957 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1958 stack.
1959 * linux-thread-db.c (thread_db_get_thread_local_address):
1960 Unconditionally call beneath target.
1961
1962 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1963
1964 * cli/cli-logging.c (pop_output_files): Assign targerr to
1965 gdb_stdtargerr.
1966
1967 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * MAINTAINERS (Write After Approval): Update my email address.
1970
1971 2014-07-02 Gary Benson <gbenson@redhat.com>
1972
1973 * proc-service.c (ps_xfer_memory): Update comment.
1974 (ps_pstop): Remove unused function.
1975 (ps_pcontinue): Likewise.
1976 (ps_lstop): Likewise.
1977 (ps_lcontinue): Likewise.
1978 (ps_lgetxregsize): Likewise.
1979 (ps_lgetxregs): Likewise.
1980 (ps_lsetxregs): Likewise.
1981 (ps_plog): Likewise.
1982 (ps_ptread): Likewise.
1983 (ps_ptwrite): Likewise.
1984
1985 2014-07-01 Mark Wielaard <mjw@redhat.com>
1986
1987 * dwarf2read.c (add_array_cv_type): New function.
1988 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1989 (read_tag_volatile_type): Likewise.
1990
1991 2014-07-01 Tom Tromey <tromey@redhat.com>
1992
1993 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1994 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1995 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1996 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1997 * command.h (cmd_cfunc_ftype): Move earlier.
1998 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1999 (add_com, add_info): Use cmd_cfunc_ftype.
2000
2001 2014-06-30 Tom Tromey <tromey@redhat.com>
2002
2003 * symtab.c (operator_chars): Make parameters and return type
2004 const.
2005 (file_matches): Make "files" const.
2006 (struct search_symbols_data) <files>: Now const.
2007 (search_symbols): Make "regexp" and "files" parameters const.
2008 Update.
2009 (symtab_symbol_info): Remove cast.
2010 (rbreak_command): Update.
2011 * symtab.h (search_symbols): Update.
2012
2013 2014-06-27 Yao Qi <yao@codesourcery.com>
2014
2015 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2016 Change parameter type to 'struct thread_info *'. Caller
2017 updated.
2018 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2019 Update declaration.
2020 * dummy-frame.c (struct dummy_frame_id): New.
2021 (dummy_frame_id_eq): New function.
2022 (struct dummy_frame) <id>: Change its type to 'struct
2023 dummy_frame_id'.
2024 (dummy_frame_push): Add parameter ptid and save it in
2025 dummy_frame_id.
2026 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2027 inferior_ptid.
2028 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2029 to inferior_ptid.
2030 (lookup_dummy_frame): Change parameter type to 'struct
2031 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2032 instead of frame_id_eq.
2033 (dummy_frame_pop): Add parameter ptid. Callers updated.
2034 Update comments. Compose dummy_frame_id and pass it to
2035 lookup_dummy_frame.
2036 (dummy_frame_discard): Add parameter ptid.
2037 (dummy_frame_sniffer): Compose dummy_frame_id and call
2038 dummy_frame_id_eq instead of frame_id_eq.
2039 (fprint_dummy_frames): Print ptid.
2040 * dummy-frame.h: Remove comments.
2041 (dummy_frame_push): Add ptid in declaration.
2042 (dummy_frame_pop, dummy_frame_discard): Likewise.
2043
2044 2014-06-26 Tom Tromey <tromey@redhat.com>
2045
2046 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2047 * command.h (error_no_arg): Update.
2048
2049 2014-06-26 Tom Tromey <tromey@redhat.com>
2050
2051 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2052 (do_show_command): Make "arg" const.
2053 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2054
2055 2014-06-26 Tom Tromey <tromey@redhat.com>
2056
2057 * record-full.c (record_full_get_bookmark): Make "args" const.
2058 (record_full_goto_bookmark): Make "raw_bookmark" const.
2059 * record.c (record_goto): New function.
2060 (cmd_record_goto): Use it. Now static.
2061 * record.h (record_goto): Declare.
2062 (cmd_record_goto): Remove declaration.
2063 * target-delegates.c: Rebuild.
2064 * target.h (struct target_ops) <to_get_bookmark,
2065 to_goto_bookmark>: Make parameter const.
2066
2067 2014-06-26 Tom Tromey <tromey@redhat.com>
2068
2069 * defs.h (generic_load): Update.
2070 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2071 * monitor.c (monitor_load): Make "args" const.
2072 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2073 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2074 const.
2075 (mips_load): Make "file" const.
2076 * remote-sim.c (gdbsim_load): Make "args" const.
2077 * remote.c (remote_load): Make "name" const.
2078 * symfile.c (generic_load): Make "args" const.
2079 * target-delegates.c: Rebuild.
2080 * target.c (target_load): Make "arg" const.
2081 (debug_to_load): Make "args" const.
2082 * target.h (struct target_ops) <to_load>: Make parameter const.
2083 (target_load): Update.
2084
2085 2014-06-26 Tom Tromey <tromey@redhat.com>
2086
2087 PR symtab/16902:
2088 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2089 (dwarf2_physname, read_partial_die)
2090 (guess_partial_die_structure_name, fixup_partial_die)
2091 (guess_full_die_structure_name, anonymous_struct_prefix)
2092 (dwarf2_name): Use per-BFD obstack.
2093
2094 2014-06-26 Yao Qi <yao@codesourcery.com>
2095
2096 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2097 dummyframe and this_id into inner block below.
2098
2099 2014-06-26 Yao Qi <yao@codesourcery.com>
2100
2101 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2102 with "signal_pass[0]" in the initialization of signal_pass.
2103
2104 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2105
2106 * record-btrace.c (record_btrace_generating_corefile)
2107 (record_btrace_prepare_to_generate_core)
2108 (record_btrace_done_generating_core): New.
2109 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2110 (record_btrace_store_registers, record_btrace_prepare_to_store):
2111 Forward request when generating a core file.
2112 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2113 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2114 to_done_generating_core.
2115
2116 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2117
2118 * target.h (target_ops) <to_prepare_to_generate_core>
2119 <to_done_generating_core>: New.
2120 (target_prepare_to_generate_core, target_done_generating_core): New.
2121 * target.c (target_prepare_to_generate_core)
2122 (target_done_generating_core): New.
2123 * target-delegates.c: Regenerate.
2124 * gcore.c: (write_gcore_file): Rename to ...
2125 (write_gcore_file_1): ...this.
2126 (write_gcore_file): Call target_prepare_to_generate_core
2127 and target_done_generating_core.
2128
2129 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2130
2131 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2132 * gcore.c (write_gcore_file): Free memory returned from
2133 make_corefile_notes.
2134 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2135 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2136
2137 2014-06-24 Yao Qi <yao@codesourcery.com>
2138
2139 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2140 (arm_linux_init_abi): Set skip_trampoline_code with
2141 gdbarch_skip_trampoline_code instead of
2142 find_solib_trampoline_target.
2143
2144 2014-06-24 Yao Qi <yao@codesourcery.com>
2145
2146 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2147 arm_skip_bx_reg returns non-zero.
2148
2149 2014-06-24 Yao Qi <yao@codesourcery.com>
2150
2151 * arm-tdep.c (arm_skip_bx_reg): New function.
2152 (arm_skip_stub): Call arm_skip_bx_reg.
2153
2154 2014-06-23 Don Breazeal <donb@codesourcery.com>
2155
2156 * MAINTAINERS: Add myself as write-after-approval maintainer.
2157
2158 2014-06-23 Pedro Alves <palves@redhat.com>
2159
2160 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2161 DR_CONTROL before setting DR0..DR3.
2162 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2163 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2164 bits of DR_CONTROL related to the debug register slot being
2165 disabled. If all slots are vacant, clear local slowdown as well,
2166 and assert DR_CONTROL is 0.
2167
2168 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2169
2170 * python/lib/gdb/command/xmethods.py
2171 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2172 current progspace only if the string "progspace" matches LOCUS_RE.
2173
2174 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2175
2176 Fix --with-system-readline with readline-6.3 patch 5.
2177 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2178 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2179 types.
2180
2181 2014-06-20 Tom Tromey <tromey@redhat.com>
2182
2183 * dwarf2read.c (dw2_get_real_path): Use correct type in
2184 OBSTACK_CALLOC.
2185 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2186
2187 2014-06-20 Gary Benson <gbenson@redhat.com>
2188
2189 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2190 * common/glibc_thread_db.h: Likewise.
2191 * common/i386-cpuid.h: Likewise.
2192 * common/i386-gcc-cpuid.h: Likewise.
2193 * common/linux-btrace.h: Likewise.
2194 * common/linux-osdata.h: Likewise.
2195 * common/linux-procfs.h: Likewise.
2196 * common/linux-ptrace.h: Likewise.
2197 * common/mips-linux-watch.h: Likewise.
2198 * common/linux-btrace.c: Moved to nat.
2199 * common/linux-osdata.c: Likewise.
2200 * common/linux-procfs.c: Likewise.
2201 * common/linux-ptrace.c: Likewise.
2202 * common/mips-linux-watch.c: Likewise.
2203 * nat/gdb_thread_db.h: Moved from common.
2204 * nat/glibc_thread_db.h: Likewise.
2205 * nat/i386-cpuid.h: Likewise.
2206 * nat/i386-gcc-cpuid.h: Likewise.
2207 * nat/linux-btrace.c: Likewise.
2208 * nat/linux-btrace.h: Likewise.
2209 * nat/linux-osdata.c: Likewise.
2210 * nat/linux-osdata.h: Likewise.
2211 * nat/linux-procfs.c: Likewise.
2212 * nat/linux-procfs.h: Likewise.
2213 * nat/linux-ptrace.c: Likewise.
2214 * nat/linux-ptrace.h: Likewise.
2215 * nat/mips-linux-watch.c: Likewise.
2216 * nat/mips-linux-watch.h: Likewise.
2217 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2218 (object file files): Reordered.
2219 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2220 of glibc_thread_db.h.
2221
2222 2014-06-20 Gary Benson <gbenson@redhat.com>
2223
2224 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2225 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2226 (i386_dr_low): Likewise.
2227 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2228 (i386_dr_low_set_addr): Likewise.
2229 (i386_dr_low_get_addr): Likewise.
2230 (i386_dr_low_can_set_control): Likewise.
2231 (i386_dr_low_set_control): Likewise.
2232 (i386_dr_low_get_control): Likewise.
2233 (i386_dr_low_get_status): Likewise.
2234 (i386_get_debug_register_length): Likewise.
2235 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2236 (i386_dr_low): Likewise.
2237 * nat/i386-dregs.c (i386-low.h): Remove include.
2238 (i386-nat.h): Likewise.
2239 (nat/i386-dregs.h): New include.
2240 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2241 (i386_dr_low_set_addr): Likewise.
2242 (i386_dr_low_get_addr): Likewise.
2243 (i386_dr_low_can_set_control): Likewise.
2244 (i386_dr_low_set_control): Likewise.
2245 (i386_dr_low_get_control): Likewise.
2246 (i386_dr_low_get_status): Likewise.
2247 (i386_get_debug_register_length): Likewise.
2248 (debug_hw_points): Likewise.
2249
2250 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2251
2252 * Makefile.in (SFILES): Add d-exp.y.
2253 (YYFILES): Add d-exp.c.
2254 (YYOBJ): Add d-exp.o.
2255 (local-maintainer-clean): Delete d-exp.c.
2256 * d-exp.y: New file.
2257 * d-lang.h (d_parse): New declaration.
2258 (d_error): New declaration.
2259 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2260 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2261 PREC_ORDER operators.
2262 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2263
2264 2014-06-19 Yao Qi <yao@codesourcery.com>
2265
2266 * gdbthread.h (any_running): Remove the declaration.
2267 * thread.c (any_running): Remove.
2268
2269 2014-06-19 Yao Qi <yao@codesourcery.com>
2270
2271 * gdbthread.h (struct thread_info) <state>: Change its type to
2272 'enum thread_state'. Update comments.
2273
2274 2014-06-19 Pedro Alves <palves@redhat.com>
2275
2276 * gdbthread.h (ALL_THREADS): Delete.
2277 (ALL_NON_EXITED_THREADS): New macro.
2278 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2279 instead of ALL_THREADS.
2280 * infrun.c (find_thread_needs_step_over)
2281 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2282 instead of ALL_THREADS.
2283 * record-btrace.c (record_btrace_open)
2284 (record_btrace_stop_recording, record_btrace_close)
2285 (record_btrace_is_replaying, record_btrace_resume)
2286 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2287 * remote.c (append_pending_thread_resumptions): Likewise.
2288 * thread.c (thread_apply_all_command): Likewise.
2289
2290 2014-06-19 Gary Benson <gbenson@redhat.com>
2291
2292 * i386-nat.c (i386_stopped_by_watchpoint):
2293 Use i386_dr_stopped_by_watchpoint.
2294 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2295 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2296
2297 2014-06-19 Gary Benson <gbenson@redhat.com>
2298
2299 * nat/i386-dregs.c: New file.
2300 * Makefile.in (i386-dregs.o): New rule.
2301 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2302 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2303 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2304 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2305 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2306 * config/i386/go32.mh (NATDEPFILES): Likewise.
2307 * config/i386/linux.mh (NATDEPFILES): Likewise.
2308 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2309 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2310 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2311 * i386-nat.h (debug_hw_points): New declaration.
2312 * i386-nat.c (breakpoint.h): Remove include.
2313 (command.h): Likewise.
2314 (target.h): Likewise.
2315 (gdb_assert.h): Likewise.
2316 (debug_hw_points): Made nonstatic.
2317 (debug_printf): Now in i386-dregs.c.
2318 (TARGET_HAS_DR_LEN_8): Likewise.
2319 (DR_CONTROL_SHIFT): Likewise.
2320 (DR_CONTROL_SIZE): Likewise.
2321 (DR_RW_EXECUTE): Likewise.
2322 (DR_RW_WRITE): Likewise.
2323 (DR_RW_READ): Likewise.
2324 (DR_RW_IORW): Likewise.
2325 (DR_LEN_1): Likewise.
2326 (DR_LEN_2): Likewise.
2327 (DR_LEN_4): Likewise.
2328 (DR_LEN_8): Likewise.
2329 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2330 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2331 (DR_ENABLE_SIZE): Likewise.
2332 (DR_LOCAL_SLOWDOWN): Likewise.
2333 (DR_GLOBAL_SLOWDOWN): Likewise.
2334 (DR_CONTROL_RESERVED): Likewise.
2335 (I386_DR_CONTROL_MASK): Likewise.
2336 (I386_DR_VACANT): Likewise.
2337 (I386_DR_LOCAL_ENABLE): Likewise.
2338 (I386_DR_GLOBAL_ENABLE): Likewise.
2339 (I386_DR_DISABLE): Likewise.
2340 (I386_DR_SET_RW_LEN): Likewise.
2341 (I386_DR_GET_RW_LEN): Likewise.
2342 (I386_DR_WATCH_HIT): Likewise.
2343 (i386_wp_op_t): Likewise.
2344 (i386_show_dr): Likewise.
2345 (i386_length_and_rw_bits): Likewise.
2346 (i386_insert_aligned_watchpoint): Likewise.
2347 (i386_remove_aligned_watchpoint): Likewise.
2348 (i386_handle_nonaligned_watchpoint): Likewise.
2349 (i386_update_inferior_debug_regs): Likewise.
2350 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2351 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2352 (i386_region_ok_for_watchpoint):
2353 Use i386_dr_region_ok_for_watchpoint.
2354 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2355
2356 2014-06-19 Gary Benson <gbenson@redhat.com>
2357
2358 * i386-nat.c (i386_insert_hw_breakpoint): Use
2359 i386_insert_watchpoint.
2360 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2361
2362 2014-06-19 Gary Benson <gbenson@redhat.com>
2363
2364 * i386-nat.c (i386_dr_show): Renamed to
2365 i386_show_dr and made static. All uses updated.
2366 (i386_dr_length_and_rw_bits): Renamed to
2367 i386_length_and_rw_bits and made static.
2368 All uses updated.
2369 (i386_dr_insert_aligned_watchpoint): Renamed to
2370 i386_insert_aligned_watchpoint and made static.
2371 All uses updated.
2372 (i386_dr_remove_aligned_watchpoint): Renamed to
2373 i386_remove_aligned_watchpoint and made static.
2374 All uses updated.
2375 (i386_dr_update_inferior_debug_regs): Renamed to
2376 i386_update_inferior_debug_regs and made static.
2377 All uses updated.
2378 * nat/i386-dregs.h (i386_dr_show): Removed.
2379 (i386_dr_length_and_rw_bits): Likewise.
2380 (i386_dr_insert_aligned_watchpoint): Likewise.
2381 (i386_dr_remove_aligned_watchpoint): Likewise.
2382 (i386_dr_update_inferior_debug_regs): Likewise.
2383
2384 2014-06-19 Gary Benson <gbenson@redhat.com>
2385
2386 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2387 * configure: Regenerate.
2388 * config.in: Likewise.
2389 * main.c (signal.h): New include.
2390 (setup_alternate_signal_stack): New function.
2391 (captured_main): Call the above.
2392 * cp-support.c (signal.h): New include.
2393 (catch_demangler_crashes): New flag.
2394 (SIGJMP_BUF): New define.
2395 (SIGSETJMP): Likewise.
2396 (SIGLONGJMP): Likewise.
2397 (gdb_demangle_jmp_buf): New static global.
2398 (gdb_demangle_attempt_core_dump): Likewise.
2399 (gdb_demangle_signal_handler): New function.
2400 (gdb_demangle): If catch_demangler_crashes is set, install the
2401 above signal handler before calling bfd_demangle, and restore
2402 the original signal handler afterwards. Display the offending
2403 symbol and call demangler_warning the first time a segmentation
2404 fault is caught.
2405 (_initialize_cp_support): New maint set/show command.
2406
2407 2014-06-19 Gary Benson <gbenson@redhat.com>
2408
2409 * utils.h (resource_limit_kind): New enum.
2410 (can_dump_core): New declaration.
2411 (warn_cant_dump_core): Likewise.
2412 (dump_core): Likewise.
2413 * utils.c (dump_core): Made nonstatic. Added new
2414 parameter "limit_kind".
2415 (can_dump_core): Made nonstatic. Moved printing code to...
2416 (warn_cant_dump_core): New function.
2417 (can_dump_core_warn): Likewise.
2418 (internal_vproblem): Replace calls to can_dump_core with
2419 calls to can_dump_core_warn. Supply new argument to each.
2420
2421 2014-06-19 Gary Benson <gbenson@redhat.com>
2422
2423 * utils.h (demangler_vwarning): New declaration.
2424 (demangler_warning): Likewise.
2425 * utils.c (struct internal_problem)
2426 <user_settable_should_quit>: New field.
2427 <user_settable_should_dump_core>: Likewise
2428 (internal_error_problem): Add values for above new fields.
2429 (internal_warning_problem): Likewise.
2430 (demangler_warning_problem): New static global.
2431 (demangler_vwarning): New function.
2432 (demangler_warning): Likewise.
2433 (add_internal_problem_command): Selectively add commands.
2434 (_initialize_utils): New internal problem command.
2435 * maint.c (maintenance_demangler_warning): New function.
2436 (_initialize_maint_cmds): New command.
2437
2438 2014-06-18 Tom Tromey <tromey@redhat.com>
2439
2440 * f-valprint.c (info_common_command_for_block): Update.
2441 * symtab.h (struct general_symbol_info) <common_block>: Now
2442 const.
2443
2444 2014-06-18 Tom Tromey <tromey@redhat.com>
2445
2446 * symtab.h (struct symtab) <blockvector>: Now const.
2447 * ada-lang.c (ada_add_global_exceptions): Update.
2448 * buildsym.c (augment_type_symtab): Update.
2449 * dwarf2read.c (dw2_lookup_symbol): Update.
2450 * jit.c (finalize_symtab): Update.
2451 * jv-lang.c (add_class_symtab_symbol): Update.
2452 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2453 Update.
2454 * objfiles.c (objfile_relocate1): Update.
2455 * psymtab.c (lookup_symbol_aux_psymtabs)
2456 (maintenance_check_psymtabs): Update.
2457 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2458 Update.
2459 * spu-tdep.c (spu_catch_start): Update.
2460 * symmisc.c (dump_symtab_1): Update.
2461 * symtab.c (lookup_global_symbol_from_objfile)
2462 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2463 (basic_lookup_transparent_type_quick)
2464 (basic_lookup_transparent_type, find_pc_sect_symtab)
2465 (find_pc_sect_line, search_symbols): Update.
2466 * block.c (find_block_in_blockvector): Make "bl" const.
2467 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2468 const.
2469 (blockvector_contains_pc): Make "bv" const.
2470 (block_for_pc_sect): Update.
2471 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2472 (blockvector_contains_pc): Update.
2473 * breakpoint.c (resolve_sal_pc): Update.
2474 * inline-frame.c (block_starting_point_at): Update.
2475
2476 2014-06-18 Tom Tromey <tromey@redhat.com>
2477
2478 * completer.c (complete_line): Make "line_buffer" const.
2479 * completer.h (complete_line): Update.
2480
2481 2014-06-18 Tom Tromey <tromey@redhat.com>
2482
2483 * symtab.c (add_macro_name): Remove unneeded cast.
2484
2485 2014-06-18 Tom Tromey <tromey@redhat.com>
2486
2487 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2488 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2489
2490 2014-06-18 Tom Tromey <tromey@redhat.com>
2491
2492 * probe.c (info_probes_for_ops): Make "arg" const.
2493 * probe.h (info_probes_for_ops): Update.
2494
2495 2014-06-18 Tom Tromey <tromey@redhat.com>
2496
2497 * varobj.c (varobj_create): Update.
2498 * valops.c (value_of_this): Update.
2499 * tracepoint.c (add_local_symbols, scope_info): Update.
2500 * symtab.h (struct general_symbol_info) <block>: Now const.
2501 * symtab.c (skip_prologue_sal)
2502 (default_make_symbol_completion_list_break_on)
2503 (skip_prologue_using_sal): Update.
2504 * stack.h (iterate_over_block_locals)
2505 (iterate_over_block_local_vars): Update.
2506 * stack.c (print_frame_args): Update.
2507 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2508 parameter const.
2509 (get_selected_block): Make return type const.
2510 * python/py-frame.c (frapy_block): Update.
2511 * python/py-block.c (gdbpy_block_for_pc): Update.
2512 * p-exp.y (%union) <bval>: Now const.
2513 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2514 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2515 * m2-exp.y (%union) <bval>: Now const.
2516 * linespec.c (get_current_search_block): Make return type const.
2517 (create_sals_line_offset, find_label_symbols): Update.
2518 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2519 Update.
2520 (block_starting_point_at): Make "block" const.
2521 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2522 (check_exception_resume): Update.
2523 * guile/scm-frame.c (gdbscm_frame_block): Update.
2524 * guile/scm-block.c (gdbscm_lookup_block): Update.
2525 * frame.h (get_frame_block): Update.
2526 (get_selected_block): Make return type const.
2527 * frame.c (frame_id_inner): Update.
2528 * f-valprint.c (info_common_command_for_block)
2529 (info_common_command): Update.
2530 * dwarf2loc.c (dwarf2_find_location_expression)
2531 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2532 (locexpr_describe_location_piece): Update.
2533 * c-exp.y (%union) <bval>: Now const.
2534 * breakpoint.c (resolve_sal_pc): Update.
2535 * blockframe.c (get_frame_block):Make return type const.
2536 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2537 (block_innermost_frame): Update.
2538 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2539 (block_for_pc, block_for_pc_sect): Update.
2540 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2541 'pblock' const.
2542 (block_for_pc_sect, block_for_pc): Make return type const.
2543 * ax-gdb.c (gen_expr): Update.
2544 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2545 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2546 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2547 (ada_read_var_value): Update.
2548 * ada-exp.y (struct name_info) <block>: Now const.
2549 (%union): Likewise.
2550 (block_lookup): Constify.
2551
2552 2014-06-18 Gary Benson <gbenson@redhat.com>
2553
2554 * nat/i386-dregs.h: New file.
2555 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2556 * i386-nat.h (i386-dregs.h): New include.
2557 (DR_FIRSTADDR): Now in i386-dregs.h.
2558 (DR_LASTADDR): Likewise.
2559 (DR_NADDR): Likewise.
2560 (DR_STATUS): Likewise.
2561 (DR_CONTROL): Likewise.
2562 (i386_debug_reg_state): Likewise.
2563 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2564
2565 2014-06-18 Don Breazeal <donb@codesourcery.com>
2566
2567 * breakpoint.c (set_longjmp_breakpoint): Call
2568 momentary_breakpoint_from_master with additional argument.
2569 (set_longjmp_breakpoint_for_call_dummy): Call
2570 momentary_breakpoint_from_master with additional argument.
2571 (set_std_terminate_breakpoint): Call
2572 momentary_breakpoint_from_master with additional argument.
2573 (momentary_breakpoint_from_master): Add argument to function
2574 definition and use it to initialize structure member flag.
2575 (clone_momentary_breakpoint): Call
2576 momentary_breakpoint_from_master with additional argument.
2577 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2578 member flags set in momentary_breakpoint_from_master.
2579
2580 2014-06-18 Gary Benson <gbenson@redhat.com>
2581
2582 * i386-nat.c (i386_show_dr): Renamed to
2583 i386_dr_show and made nonstatic. All uses updated.
2584 (i386_length_and_rw_bits): Renamed to
2585 i386_dr_length_and_rw_bits and made nonstatic.
2586 All uses updated.
2587 (i386_insert_aligned_watchpoint): Renamed to
2588 i386_dr_insert_aligned_watchpoint and made nonstatic.
2589 All uses updated.
2590 (i386_remove_aligned_watchpoint): Renamed to
2591 i386_dr_remove_aligned_watchpoint and made nonstatic.
2592 All uses updated.
2593 (i386_update_inferior_debug_regs): Renamed to
2594 i386_dr_update_inferior_debug_regs and made nonstatic.
2595 All uses updated.
2596
2597 2014-06-18 Gary Benson <gbenson@redhat.com>
2598
2599 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2600 (i386_dr_low_can_set_control): Likewise.
2601 (i386_dr_low_set_addr): Likewise.
2602 (i386_dr_low_set_control): Likewise.
2603 (i386_dr_low_get_addr): Likewise.
2604 (i386_dr_low_get_status): Likewise.
2605 (i386_dr_low_get_control): Likewise.
2606 (i386_insert_aligned_watchpoint): Use new macros.
2607 (i386_update_inferior_debug_regs): Likewise.
2608 (i386_stopped_data_address): Likewise.
2609
2610 2014-06-18 Gary Benson <gbenson@redhat.com>
2611
2612 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2613 New parameter. All uses updated.
2614
2615 2014-06-18 Gary Benson <gbenson@redhat.com>
2616
2617 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2618 All uses updated.
2619
2620 2014-06-18 Gary Benson <gbenson@redhat.com>
2621
2622 * i386-nat.c (debug_printf): New macro.
2623 (i386_get_debug_register_length): Likewise.
2624 (TARGET_HAS_DR_LEN_8): Use above macro.
2625 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2626 and printf_unfiltered. Use phex to format values.
2627
2628 2014-06-18 Gary Benson <gbenson@redhat.com>
2629
2630 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2631 Make const.
2632
2633 2014-06-18 Gary Benson <gbenson@redhat.com>
2634
2635 * i386-nat.c: Comment changes.
2636
2637 2014-06-18 Gary Benson <gbenson@redhat.com>
2638
2639 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2640
2641 2014-06-18 Gary Benson <gbenson@redhat.com>
2642
2643 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2644 (i386_insert_aligned_watchpoint): Likewise.
2645 (i386_remove_aligned_watchpoint): Likewise.
2646 (i386_handle_nonaligned_watchpoint): Likewise.
2647
2648 2014-06-18 Gary Benson <gbenson@redhat.com>
2649
2650 * i386-nat.c: Whitespace changes.
2651
2652 2014-06-17 Samuel Bronson <naesten@gmail.com>
2653
2654 * MAINTAINERS: Update Roland McGrath's email address.
2655 Thanks to Sergio Durigan Junior for pointing out that he left
2656 Red Hat a while ago, and giving me a current address.
2657
2658 2014-06-17 Tom Tromey <tromey@redhat.com>
2659
2660 * utils.h (savestring): Remove declaration.
2661
2662 2014-06-17 Tom Tromey <tromey@redhat.com>
2663
2664 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2665
2666 2014-06-16 Keith Seitz <keiths@redhat.com>
2667
2668 PR mi/15863
2669 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2670 to update the varobj if inferior_ptid is null_ptid.
2671
2672 2014-06-16 Tom Tromey <tromey@redhat.com>
2673
2674 * target.h (struct target_ops) <to_info_proc>: Make parameter
2675 const.
2676 (target_info_proc): Update.
2677 * target.c (target_info_proc): Make "args" const.
2678 * procfs.c (procfs_info_proc): Update.
2679 * linux-tdep.c (linux_info_proc): Update.
2680 (linux_core_info_proc_mappings): Make "args" const.
2681 (linux_core_info_proc): Update.
2682 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2683 * gdbarch.c: Rebuild.
2684 * gdbarch.h: Rebuild.
2685 * corelow.c (core_info_proc): Update.
2686
2687 2014-06-16 Tom Tromey <tromey@redhat.com>
2688
2689 * target.h (struct target_ops) <to_disconnect>: Make parameter
2690 const.
2691 (target_disconnect): Update.
2692 * target.c (target_disconnect): Make "args" const.
2693 * target-delegates.c: Rebuild.
2694 * remote.c (remote_disconnect): Update.
2695 * record.h (record_disconnect): Update.
2696 * record.c (record_disconnect): Update.
2697 * inf-child.c (inf_child_disconnect): Update.
2698
2699 2014-06-16 Tom Tromey <tromey@redhat.com>
2700
2701 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2702 * target.c (debug_to_rcmd, default_rcmd): Update.
2703 * target-delegates.c: Rebuild.
2704 * remote.c (remote_rcmd): Update.
2705 * monitor.c (monitor_rcmd): Update.
2706
2707 2014-06-16 Pedro Alves <palves@redhat.com>
2708
2709 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2710 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2711 have OBJF_SHARED set.
2712 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2713 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2714 instead of OBJF_USERLOADED.
2715 * objfiles.h (OBJF_SHARED): Update comment.
2716 (userloaded_objfile_contains_address_p): Rename to ...
2717 (shared_objfile_contains_address_p): ... this, and update
2718 comments.
2719 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2720 new objfile.
2721 (remove_symbol_file_command): Skip objfiles that don't have
2722 OBJF_SHARED set.
2723
2724 2014-06-16 Tom Tromey <tromey@redhat.com>
2725
2726 * minsyms.h (prim_record_minimal_symbol)
2727 (prim_record_minimal_symbol_and_info): Update comments.
2728
2729 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2730
2731 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2732 or --without-guile, according to how GDB was built.
2733
2734 2014-06-13 Tom Tromey <tromey@redhat.com>
2735
2736 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2737 to help_list.
2738 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2739 to help_list.
2740 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2741 help_list.
2742 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2743 help_list.Pass all_commands, not -1, to help_list.
2744 * cli/cli-dump.c (dump_command, append_command)
2745 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2746 (binary_dump_command, binary_append_command): Pass all_commands,
2747 not -1, to help_list.
2748 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2749 -1, to help_list.
2750 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2751 -1, to help_list.
2752 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2753 help_list.
2754 * top.c (set_history): Pass all_commands, not -1, to help_list.
2755 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2756 all_commands, not -1, to help_list.
2757 * symfile.c (overlay_command): Pass all_commands, not -1, to
2758 help_list.
2759 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2760 help_list.
2761 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2762 help_list.
2763 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2764 -1, to help_list.
2765 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2766 not -1, to help_list.
2767 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2768 not -1, to help_list.
2769 * maint.c (maintenance_command, maintenance_info_command)
2770 (maintenance_print_command, maintenance_set_cmd): Pass
2771 all_commands, not -1, to help_list.
2772 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2773 help_list.
2774 * language.c (set_check): Pass all_commands, not -1, to help_list.
2775 * infcmd.c (unset_command): Pass all_commands, not -1, to
2776 help_list.
2777 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2778 help_list.
2779 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2780 help_list.
2781 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2782 help_list.
2783 * breakpoint.c (save_command): Pass all_commands, not -1, to
2784 help_list.
2785 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2786 all_commands, not -1, to help_list.
2787
2788 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2789
2790 * regcache.c (struct register_to_invalidate): New structure.
2791 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2792 functions.
2793 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2794
2795 2014-06-12 Yao Qi <yao@codesourcery.com>
2796
2797 * varobj.c (varobj_get_num_children): Call
2798 varobj_is_dynamic_p.
2799 (varobj_list_children): Likewise.
2800 (varobj_update): Likewise. Update comments.
2801
2802 2014-06-12 Yao Qi <yao@codesourcery.com>
2803
2804 * varobj.c (varobj_pretty_printed_p): Rename to ...
2805 (varobj_is_dynamic_p): ... this. New function.
2806 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2807 (varobj_is_dynamic_p): Declare.
2808 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2809 (mi_print_value_p, varobj_update_one): Likewise.
2810
2811 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2812 Yao Qi <yao@codesourcery.com>
2813
2814 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2815 (varobj_get_iterator): Wrap up code for pretty-printer by
2816 "#if HAVE_PYTHON" and "#endif".
2817 (update_dynamic_varobj_children): Likewise.
2818
2819 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2820 Yao Qi <yao@codesourcery.com>
2821
2822 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2823 gdb_python_initialized is false. Move some code from varobj.c.
2824 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2825 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2826 (struct varobj_item): Moved to varobj-iter.h".
2827 (varobj_clear_saved_item): New function.
2828 (update_dynamic_varobj_children): Move python-related code to
2829 py-varobj.c.
2830 (free_variable): Call varobj_clear_saved_item and
2831 varobj_iter_delete.
2832
2833 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2834 Yao Qi <yao@codesourcery.com>
2835
2836 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2837 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2838 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2839 (py-varobj.o): New rule.
2840 * python/py-varobj.c: New file.
2841 * python/python-internal.h (py_varobj_get_iterator): Declare.
2842 * varobj-iter.h: New file.
2843 * varobj.c: Include "varobj-iter.h"
2844 (struct varobj) <child_iter>: Change its type from "PyObject *"
2845 to "struct varobj_iter *".
2846 <saved_item>: Likewise.
2847 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2848 [HAVE_PYTHON] (varobj_get_iterator): New function.
2849 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2850 python-specific code to python/py-varobj.c.
2851 (install_visualizer): Call varobj_iter_delete instead of
2852 Py_XDECREF.
2853 * varobj.h (varobj_ensure_python_env): Declare.
2854
2855 2014-06-12 Yao Qi <yao@codesourcery.com>
2856
2857 * varobj.c (struct varobj_item): New structure.
2858 (create_child_with_value): Update declaration.
2859 (varobj_add_child): Replace arguments 'name' and 'value' with
2860 'item'. All callers updated.
2861 (install_dynamic_child): Likewise.
2862 (update_dynamic_varobj_children): Likewise.
2863 (varobj_add_child): Likewise.
2864 (create_child_with_value): Likewise.
2865
2866 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2867
2868 * NEWS: Create a new section for the next release branch.
2869 Rename the section of the current branch, now that it has
2870 been cut.
2871
2872 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2873
2874 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2875 * version.in: Bump version to 7.8.50.DATE-cvs.
2876
2877 2014-06-11 Pedro Alves <palves@redhat.com>
2878
2879 PR remote/17028
2880 * ser-mingw.c (net_windows_socket_check_pending): New function.
2881 (net_windows_select_thread): Ignore spurious wakeups. Use
2882 net_windows_socket_check_pending.
2883 (net_windows_wait_handle): Check for pending events with
2884 ioctlsocket, through net_windows_socket_check_pending, instead of
2885 checking the socket's event.
2886
2887 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2888
2889 * python/python-internal.h (gdb_PyObject_GetAttrString)
2890 (gdb_PyObject_HasAttrString): New inline function definitions.
2891 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2892 char * of the second argument to PyObject_GetAttrString.
2893
2894 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2895
2896 * serial.c (serial_write): Fix index of character to be printed
2897 in call to serial_logchar when serial debug traces are enabled.
2898
2899 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2900
2901 * gdbtypes (resolve_dynamic_range): Add function description.
2902
2903 2014-06-09 Pedro Alves <palves@redhat.com>
2904
2905 * linux-nat.c (linux_child_follow_fork): Initialize status with
2906 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2907 inner block. Only pass the signal to PTRACE_DETACH if in pass
2908 state.
2909
2910 2014-06-09 Gary Benson <gbenson@redhat.com>
2911
2912 * common/signals.c (gdb_signal_from_host): Reorder to separate
2913 the always-available ANSI-standard signals from the signals that
2914 require checking.
2915 (do_gdb_signal_to_host): Likewise.
2916 * proc-events.c (signal_table): Likewise.
2917
2918 2014-06-08 Hui Zhu <hui@codesourcery.com>
2919
2920 * common/linux-ptrace.c (linux_disable_event_reporting): New
2921 function.
2922 * common/linux-ptrace.h (linux_disable_event_reporting): New
2923 declaration.
2924 * linux-nat.c (linux_child_follow_fork): Do a single step before
2925 detach.
2926
2927 2014-06-07 Keith Seitz <keiths@redhat.com>
2928
2929 Revert:
2930 PR c++/16253
2931 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2932 from symbol_matches_domain in symtab.c. All local callers
2933 of symbol_matches_domain updated.
2934 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2935 search STRUCT_DOMAIN.
2936 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2937 independently. standard_lookup will do that automatically.
2938 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2939 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2940 (cp_lookup_symbol_in_namespace): Likewise.
2941 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2942 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2943 may return a STRUCT_DOMAIN match.
2944 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2945 * cp-support.c: Include language.h.
2946 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2947 VAR_DOMAIN.
2948 * psymtab.c (match_partial_symbol): Compare the requested
2949 domain with the symbol's domain directly.
2950 (lookup_partial_symbol): Likewise.
2951 * symtab.c (lookup_symbol_in_language): Explain when/why
2952 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2953 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2954 appropriate languages.
2955 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2956 and moved to ada-lang.c
2957 (lookup_block_symbol): Explain that this function only returns
2958 symbol matching the requested DOMAIN.
2959 Compare the requested domain with the symbol's domain directly.
2960 (iterate_over_symbols): Compare the requested domain with the
2961 symbol's domain directly.
2962 * symtab.h (symbol_matches_domain): Remove.
2963
2964 2014-06-06 Doug Evans <xdje42@gmail.com>
2965
2966 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2967 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2968 (gdbscm_guile_version_is_at_least): Declare.
2969 (gdbscm_scm_string_to_int): Declare.
2970 * guile/guile.c (gdbscm_guile_major_version): New global.
2971 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2972 (guile_datadir): New static global.
2973 (gdbscm_guile_data_directory): New function.
2974 (initialize_scheme_side): Update.
2975 (misc_guile_functions): Add guile-data-directory.
2976 (initialize_gdb_module): Fetch guile version number.
2977 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2978 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2979 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2980 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2981 comments.
2982 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2983 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2984 * guile/scm-value.c (gdbscm_value_to_string): Only call
2985 scm_port_conversion_strategy if Guile version >= 2.0.6.
2986
2987 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2988
2989 * main.c (print_gdb_help): Add -q and --silent.
2990
2991 2014-06-06 Gary Benson <gbenson@redhat.com>
2992
2993 * common/signals.c: Remove preprocessor conditionals for
2994 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2995 SIGSEGV and SIGTERM.
2996 * proc-events.c: Likewise.
2997
2998 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2999
3000 * symfile.c (symfile_free_objfile): Remove restriction to
3001 OBJF_USERLOADED.
3002 * symfile-mem.c (symbol_file_add_from_memory): Call
3003 add_target_sections_of_objfile.
3004
3005 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3006
3007 * guile/scm-value.c (gdbscm_history_append_x): Use
3008 'vlscm_get_value_smob_arg_unsafe' instead of
3009 'vlscm_scm_to_value'.
3010
3011 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3012
3013 PR mi/15806
3014 * utils.c (printchar): Don't escape at all if quoter is NUL.
3015 Update function documentation to clarify effect of parameter
3016 QUOTER.
3017 * remote.c (escape_buffer): Pass '\\' as the quoter to
3018 fputstrn_unfiltered.
3019 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3020 generate the output.
3021 (mi_solib_unloaded): Same.
3022
3023 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3024
3025 * development.sh: Delete.
3026 * Makefile.in (config.status): Adjust dependency on development.sh.
3027 * configure.ac: Adjust development.sh source call.
3028 * configure: Regenerate.
3029
3030 2014-06-04 Doug Evans <xdje42@gmail.com>
3031
3032 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3033 is_scheme_bkpt, spec.
3034 (bpscm_make_breakpoint_smob): Initialize new members.
3035 (gdbscm_create_breakpoint_x): Split into two ...
3036 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3037 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3038 (scheme_function breakpoint_functions): Update.
3039 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3040 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3041 register-breakpoint!.
3042
3043 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3044
3045 PR server/17023
3046 * mem-break.c (z_type_supported): Return zero if
3047 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3048
3049 2014-06-04 Tom Tromey <tromey@redhat.com>
3050
3051 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3052 value_from_contents_and_address_unresolved.
3053 (ada_template_to_fixed_record_type_1): Likewise.
3054 (ada_which_variant_applies): Likewise.
3055 * value.h (value_from_contents_and_address_unresolved): Declare.
3056 * value.c (value_from_contents_and_address_unresolved): New
3057 function.
3058 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3059 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3060 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3061
3062 2014-06-04 Tom Tromey <tromey@redhat.com>
3063
3064 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3065
3066 2014-06-04 Tom Tromey <tromey@redhat.com>
3067
3068 * procfs.c (procfs_attach): Make "args" const.
3069 * windows-nat.c (windows_attach): Make "args" const.
3070 * nto-procfs.c (procfs_attach): Make "args" const.
3071 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3072 * go32-nat.c (go32_attach): Make "args" const.
3073 * gnu-nat.c (gnu_attach): Make "args" const.
3074 * darwin-nat.c (darwin_attach): Make "args" const.
3075 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3076 * linux-nat.c (linux_nat_attach): Make "args" const.
3077 * remote.c (extended_remote_attach_1, extended_remote_attach):
3078 Make "args" const.
3079 * target.h (struct target_ops) <to_attach>: Make "args" const.
3080 (find_default_attach): Likewise.
3081 * utils.c (parse_pid_to_attach): Make "args" const.
3082 * utils.h (parse_pid_to_attach): Update.
3083
3084 2014-06-04 Tom Tromey <tromey@redhat.com>
3085
3086 * target-delegates.c: Rebuild.
3087 * target.c (default_thread_address_space): New function.
3088 (target_thread_address_space): Simplify.
3089 * target.h (struct target_ops) <to_thread_address_space>: Add
3090 TARGET_DEFAULT_FUNC.
3091
3092 2014-06-04 Doug Evans <xdje42@gmail.com>
3093
3094 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3095
3096 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3097
3098 * record-btrace.c: Include event-loop.h and inf-loop.h.
3099 (record_btrace_resume_exec_dir)
3100 (record_btrace_async_inferior_event_handler)
3101 (record_btrace_handle_async_inferior_event): New.
3102 (record_btrace_open): Create async event handler.
3103 (record_btrace_close): Delete async event handler.
3104 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3105 Mark async event handler.
3106 (record_btrace_execution_direction): New.
3107 (init_record_btrace_ops): Initialize to_execution_direction.
3108
3109 2014-06-03 Doug Evans <xdje42@gmail.com>
3110
3111 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3112 (gdbscm_make_parameter): Ditto.
3113
3114 2014-06-03 Doug Evans <dje@google.com>
3115
3116 * exec.c (exec_close_1): Call clear_section_table instead of
3117 resize_section_table.
3118 (clear_section_table): New function.
3119 (resize_section_table): Make static. Rename arg num_added to
3120 adjustment.
3121 * exec.h (clear_section_table): Declare.
3122 (resize_section_table): Delete.
3123 * progspace.c (release_program_space): Call clear_section_table
3124 instead of resize_section_table.
3125
3126 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3127
3128 * NEWS (Python Scripting): Add entry about the new xmethods
3129 feature.
3130
3131 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3132
3133 * python/py-xmethods.c: New file.
3134 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3135 (objfpy_dealloc): XDECREF on the new xmethods field.
3136 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3137 field.
3138 (objfpy_get_xmethods): New function.
3139 (objfile_getset): New entry 'xmethods'.
3140 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3141 (pspy_dealloc): XDECREF on the new xmethods field.
3142 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3143 field.
3144 (pspy_get_xmethods): New function.
3145 (pspace_getset): New entry 'xmethods'.
3146 * python/python-internal.h: Add declarations for new functions.
3147 * python/python.c (_initialize_python): Invoke
3148 gdbpy_initialize_xmethods.
3149 * python/lib/gdb/__init__.py (xmethods): New
3150 attribute.
3151 * python/lib/gdb/xmethod.py: New file.
3152 * python/lib/gdb/command/xmethods.py: New file.
3153
3154 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3155
3156 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3157 best match method returned by find_overload_match is an xmethod.
3158 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3159 the best matching operator returned by find_overload_match is an
3160 xmethod.
3161 * valops.c: #include "extension.h".
3162 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3163 Return void. The list of matching source methods is returned in
3164 "fn_list" and a vector of matching debug method workers is
3165 returned in "xm_worker_vec". Update all callers.
3166 (value_find_oload_method_list): Likewise.
3167 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3168 non-NULL, then the index of the best matching method in this
3169 vector is returned. Update all callers.
3170 (find_overload_match): Include xmethods while performing overload
3171 resolution.
3172
3173 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3174
3175 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3176 * extension-priv.h (struct extension_language_ops): Add the
3177 xmethod interface.
3178 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3179 get_matching_xmethod_workers, get_xmethod_argtypes,
3180 invoke_xmethod, free_xmethod_worker,
3181 free_xmethod_worker_vec): New functions.
3182 * extension.h: #include "common/vec.h".
3183 New function declarations.
3184 (struct xmethod_worker): New struct.
3185 (VEC (xmethod_worker_ptr)): New vector type.
3186 (xmethod_worker_ptr): New typedef.
3187 (xmethod_worker_vec): Likewise.
3188 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3189 builtin_type.
3190 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3191 (struct builtin_type): New field "xmethod".
3192 * valarith.c (value_ptradd): Assert that the value argument is not
3193 lval_xcallable.
3194 * valops.c (value_must_coerce_to_target): Return 0 for
3195 lval_xcallable values.
3196 * value.c (struct value): New field XM_WORKER in the field
3197 LOCATION.
3198 (value_address, value_raw_address): Return 0 for lval_xcallable
3199 values.
3200 (set_value_address): Assert that the value is not an
3201 lval_xcallable.
3202 (value_free): Free the associated xmethod worker when freeing
3203 lval_xcallable values.
3204 (set_value_component_location): Assert that the WHOLE value is not
3205 lval_xcallable.
3206 (value_of_xmethod, call_xmethod): New functions.
3207 * value.h: Declare "struct xmethod_worker".
3208 Declare new functions value_of_xmethod, call_xmethod.
3209
3210 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3211 Pedro Alves <palves@redhat.com>
3212
3213 PR breakpoints/17000
3214 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3215 New function, extracted from software_breakpoint_inserted_here_p.
3216 (software_breakpoint_inserted_here_p): Replace factored out code
3217 by call to find_non_raw_software_breakpoint_inserted_here.
3218 (bp_target_info_copy_insertion_state): New function.
3219 (bkpt_insert_location): Handle the case of a single-step
3220 breakpoint already inserted at the same address.
3221 (bkpt_remove_location): Handle the case of a single-step
3222 breakpoint still inserted at the same address.
3223 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3224 breakpoint already inserted at the same address.
3225 (deprecated_remove_raw_breakpoint): Handle the case of a
3226 non-raw breakpoint still inserted at the same address.
3227 (find_single_step_breakpoint): New function, extracted from
3228 single_step_breakpoint_inserted_here_p.
3229 (find_single_step_breakpoint): New function,
3230 factored out from single_step_breakpoint_inserted_here_p.
3231 (single_step_breakpoint_inserted_here_p): Reimplement.
3232
3233 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3234
3235 Pushed by Joel Brobecker <brobecker@adacore.com>
3236 * source.c (show_substitute_path_command): Fix display of matching
3237 substitution rules.
3238
3239 2014-06-03 Gary Benson <gbenson@redhat.com>
3240
3241 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3242
3243 2014-06-02 Doug Evans <xdje42@gmail.com>
3244
3245 Add parameter support for Guile.
3246 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3247 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3248 (scm-param.o): New rule.
3249 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3250 (gdbscm_misc_error): Declare.
3251 (gdbscm_canonicalize_command_name): Declare.
3252 (gdbscm_scm_to_host_string): Declare.
3253 (gdbscm_scm_from_host_string): Declare.
3254 (gdbscm_initialize_parameters): Declare.
3255 * guile/guile.c (initialize_gdb_module): Call
3256 gdbscm_initialize_parameters.
3257 * guile/lib/gdb.scm: Export parameter symbols.
3258 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3259 cmdscm_canonicalize_name and made public. All callers updated.
3260 * guile/scm-exception.c (gdbscm_misc_error): New function.
3261 * guile/scm-param.c: New file.
3262 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3263 (gdbscm_scm_to_host_string): New function.
3264 (gdbscm_scm_from_host_string): New function.
3265 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3266
3267 2014-06-02 Doug Evans <xdje42@gmail.com>
3268
3269 Add command support for Guile.
3270 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3271 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3272 (scm-cmd.o): New rule.
3273 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3274 (gdbscm_user_error_p): Declare.
3275 (gdbscm_parse_command_name): Declare.
3276 (gdbscm_valid_command_class_p): Declare.
3277 (gdbscm_initialize_commands): Declare.
3278 * guile/guile.c (initialize_gdb_module): Call
3279 gdbscm_initialize_commands.
3280 * guile/lib/gdb.scm: Export command symbols.
3281 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3282 (throw-user-error): New function.
3283 * guile/scm-cmd.c: New file.
3284 * guile/scm-exception.c (user_error_symbol): New static global.
3285 (gdbscm_user_error_p): New function.
3286 (gdbscm_initialize_exceptions): Set user_error_symbol.
3287 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3288
3289 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3290
3291 * top.c (command_loop): Handle comments here...
3292 (command_line_input): ... not here.
3293
3294 2014-06-02 Doug Evans <xdje42@gmail.com>
3295
3296 Add progspace support for Guile.
3297 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3298 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3299 (scm-progspace.o): New rule.
3300 * guile/guile-internal.h (pspace_smob): New typedef.
3301 (psscm_pspace_smob_pretty_printers): Declare.
3302 (psscm_pspace_smob_from_pspace): Declare.
3303 (psscm_scm_from_pspace): Declare.
3304 * guile/guile.c (initialize_gdb_module): Call
3305 gdbscm_initialize_pspaces.
3306 * guile/lib/gdb.scm: Export progspace symbols.
3307 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3308 support.
3309 (append-pretty-printer!): Ditto.
3310 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3311 Implement.
3312 * guile/scm-progspace.c: New file.
3313
3314 2014-06-03 Alan Modra <amodra@gmail.com>
3315
3316 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3317 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3318
3319 2014-06-02 Doug Evans <dje@google.com>
3320
3321 Add support for skeletonless type units.
3322 * dwarf2read.c (struct dwarf2_per_objfile): New member
3323 n_allocated_type_units.
3324 (struct dwarf2_per_objfile) <tu_stats>: New member
3325 nr_all_type_units_reallocs.
3326 (create_signatured_type_table_from_index): Initialize
3327 n_allocated_type_units
3328 (create_all_type_units): Ditto.
3329 (add_type_unit): Move up in file. New arg slot.
3330 All callers updated. Increase space for all_type_units more
3331 efficiently.
3332 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3333 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3334 (lookup_dwp_signatured_type): Ditto.
3335 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3336 All callers updated.
3337 (build_type_psymtabs_1): Leave type_unit_groups as
3338 NULL if no TUs present.
3339 (print_tu_stats): New function.
3340 (process_skeletonless_type_unit): New function.
3341 (process_dwo_file_for_skeletonless_type_units): New
3342 function.
3343 (process_skeletonless_type_units): New function.
3344 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3345 Call print tu_stats if debugging enabled.
3346
3347 2014-06-02 Pedro Alves <palves@redhat.com>
3348
3349 * breakpoint.c (build_target_command_list): Don't build a command
3350 list if we have any duplicate location that isn't a dprintf.
3351
3352 2014-06-02 Pedro Alves <palves@redhat.com>
3353
3354 * breakpoint.c (dprintf_breakpoint_hit): New function.
3355 (initialize_breakpoint_ops): Install it as dprintf's
3356 breakpoint_hit method.
3357
3358 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3359
3360 * source.c (substitute_path_rule_matches): Simplify using
3361 filename_ncmp instead of FILENAME_CMP.
3362
3363 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3364
3365 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3366
3367 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3368
3369 * configure.ac: When Guile is available, check for the
3370 availability of 'scm_new_smob'.
3371 * configure, config.h.in: Regenerate.
3372 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3373 function.
3374
3375 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3376
3377 * frame.c (struct frame_info): Add stop_string field.
3378 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3379 (get_prev_frame_always): Old content moved into
3380 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3381 TRY_CATCH, handle MEMORY_ERROR exceptions.
3382 (frame_stop_reason_string): New function definition.
3383 * frame.h (unwind_stop_reason_to_string): Extend comment to
3384 mention frame_stop_reason_string.
3385 (frame_stop_reason_string): New function declaration.
3386 * stack.c (frame_info): Switch to frame_stop_reason_string.
3387 (backtrace_command_1): Switch to frame_stop_reason_string.
3388 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3389 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3390 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3391
3392 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3393
3394 * frame.c (frame_stop_reason_string): Rename to ...
3395 (unwind_stop_reason_to_string): this.
3396 * frame.h (frame_stop_reason_string): Rename to ...
3397 (unwind_stop_reason_to_string): this.
3398 * stack.c (frame_info): Update call to frame_stop_reason_string.
3399 (backtrace_command_1): Likewise.
3400 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3401 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3402
3403 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3404
3405 * frame.c (remove_prev_frame): New function.
3406 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3407 remove_prev_frame.
3408
3409 2014-05-29 Pedro Alves <palves@redhat.com>
3410
3411 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3412 and make it const. When a single-step decays to a continue,
3413 clear 'step', not 'hw_step'. Pass whether the caller wanted
3414 to step to user_visible_resume_ptid, not what we ask the
3415 target to do.
3416
3417 2014-05-29 Pedro Alves <palves@redhat.com>
3418
3419 * infrun.c (process_event_stop_test, handle_step_into_function)
3420 (handle_step_into_function_backward): Adjust.
3421 Don't set the even thread's stop_step and call stop_waiting before
3422 calling end_stepping_range. Instead do that ...
3423 (end_stepping_range): ... here. Take an ecs pointer parameter.
3424
3425 2014-05-29 Pedro Alves <palves@redhat.com>
3426
3427 * infrun.c (stop_stepping): Rename to ...
3428 (stop_waiting): ... this.
3429 (proceed): Update comment.
3430 (process_event_stop_test, handle_inferior_event)
3431 (handle_signal_stop, handle_step_into_function)
3432 (handle_step_into_function_backward): Update.
3433
3434 2014-05-29 Pedro Alves <palves@redhat.com>
3435
3436 * infcall.c (run_inferior_call): Don't check whether the current
3437 thread is running after the proceed call.
3438
3439 2014-05-29 Pedro Alves <palves@redhat.com>
3440 Tom Tromey <tromey@redhat.com>
3441
3442 * NEWS: Mention "maint set target-async", "set mi-async", and that
3443 background execution commands are now always available.
3444 * target.h (target_async_permitted): Update comment.
3445 * target.c (target_async_permitted, target_async_permitted_1):
3446 Default to 1.
3447 (set_target_async_command): Rename to ...
3448 (maint_set_target_async_command): ... this.
3449 (show_target_async_command): Rename to ...
3450 (maint_show_target_async_command): ... this.
3451 (_initialize_target): Adjust.
3452 * infcmd.c (prepare_execution_command): Make extern.
3453 * inferior.h (prepare_execution_command): Declare.
3454 * infrun.c (set_observer_mode): Leave target async alone.
3455 * mi/mi-interp.c (mi_interpreter_init): Install
3456 mi_on_sync_execution_done as sync_execution_done observer.
3457 (mi_on_sync_execution_done): New function.
3458 (mi_execute_command_input_handler): Don't print the prompt if we
3459 just started a synchronous command with an async target.
3460 (mi_on_resume): Check sync_execution before printing prompt.
3461 * mi/mi-main.h (mi_async_p): Declare.
3462 * mi/mi-main.c: Include gdbcmd.h.
3463 (mi_async_p): New function.
3464 (mi_async, mi_async_1): New globals.
3465 (set_mi_async_command, show_mi_async_command, mi_async): New
3466 functions.
3467 (exec_continue): Call prepare_execution_command.
3468 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3469 (mi_execute_async_cli_command): Use mi_async_p.
3470 (_initialize_mi_main): Install "set mi-async". Make
3471 "target-async" a deprecated alias.
3472
3473 2014-05-29 Pedro Alves <palves@redhat.com>
3474
3475 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3476 (_initialize_cli_interp): Adjust.
3477 * event-loop.c: Include "observer.h".
3478 (start_event_loop): Notify 'command_error' observers instead of
3479 calling display_gdb_prompt. Remove FIXME comment.
3480 * event-top.c (display_gdb_prompt): Remove call into the
3481 interpreters.
3482 * inf-loop.c: Include "observer.h".
3483 (inferior_event_handler): Notify 'command_error' observers instead
3484 of calling display_gdb_prompt.
3485 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3486 observers instead of calling display_gdb_prompt.
3487 * interps.c (interp_set): Don't call display_gdb_prompt.
3488 (current_interp_display_prompt_p): Delete.
3489 * interps.h (interp_prompt_p): Delete declaration.
3490 (interp_prompt_p_ftype): Delete.
3491 (struct interp_procs) <prompt_proc_p>: Delete field.
3492 (current_interp_display_prompt_p): Delete declaration.
3493 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3494 (_initialize_mi_interp): Adjust.
3495 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3496 'command_error' observers.
3497 (tui_on_sync_execution_done, tui_on_command_error): New
3498 functions.
3499 (tui_display_prompt_p): Delete.
3500 (_initialize_tui_interp): Adjust.
3501
3502 2014-05-29 Pedro Alves <palves@redhat.com>
3503
3504 PR gdb/13860
3505 * cli/cli-interp.c: Include infrun.h and observer.h.
3506 (cli_uiout, cli_interp): New globals.
3507 (cli_on_signal_received, cli_on_end_stepping_range)
3508 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3509 functions.
3510 (cli_interpreter_init): Install them as 'end_stepping_range',
3511 'signal_received' 'signal_exited', 'exited' and 'no_history'
3512 observers.
3513 (_initialize_cli_interp): Remove cli_interp local.
3514 * infrun.c (handle_inferior_event): Call the several stop reason
3515 observers instead of printing the stop reason directly.
3516 (end_stepping_range): New function.
3517 (print_end_stepping_range_reason, print_signal_exited_reason)
3518 (print_exited_reason, print_signal_received_reason)
3519 (print_no_history_reason): Make static, and add an uiout
3520 parameter. Print to that instead of to CURRENT_UIOUT.
3521 * infrun.h (print_end_stepping_range_reason)
3522 (print_signal_exited_reason, print_exited_reason)
3523 (print_signal_received_reason print_no_history_reason): New
3524 declarations.
3525 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3526 'mi_uiout'.
3527 <cli_uiout>: New field.
3528 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3529 uiout for CLI output. Install 'signal_received',
3530 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3531 observers.
3532 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3533 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3534 (mi_on_no_history): New functions.
3535 (ui_out_free_cleanup): Delete function.
3536 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3537 instead use the one already stored in the MI interpreter data.
3538 (mi_ui_out): Adjust.
3539 * tui/tui-interp.c: Include infrun.h and observer.h.
3540 (tui_interp): New global.
3541 (tui_on_signal_received, tui_on_end_stepping_range)
3542 (tui_on_signal_exited, tui_on_exited)
3543 (tui_on_no_history): New functions.
3544 (tui_init): Install them as 'end_stepping_range',
3545 'signal_received' 'signal_exited', 'exited' and 'no_history'
3546 observers.
3547 (_initialize_tui_interp): Delete tui_interp local.
3548
3549 2014-05-29 Pedro Alves <palves@redhat.com>
3550
3551 PR gdb/15713
3552 * linux-nat.c (linux_nat_resume_callback): Rename the second
3553 parameter to 'except'. Skip LP if it points to EXCEPT.
3554 (linux_nat_resume): Don't mark the event lwp as not stopped
3555 before resuming sibling lwps. Instead ask
3556 linux_nat_resume_callback to skip the event lwp. Mark it as not
3557 stopped after actually resuming it.
3558 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3559 resuming it.
3560 (wait_lwp): Mark the lwp as stopped here.
3561 (stop_wait_callback): Mark the lwp as not stopped right after
3562 resuming it. Don't mark lwps as stopped here.
3563 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3564 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3565
3566 2014-05-29 Pedro Alves <palves@redhat.com>
3567
3568 PR PR15693
3569 * infrun.c (resume): Determine how much to resume depending on
3570 whether the caller wanted a step, not whether we can hardware step
3571 the target. Mark all threads that we intend to run as running,
3572 unless we're calling an inferior function.
3573 (normal_stop): If the thread is running an infcall, don't finish
3574 thread state.
3575 * target.c (target_resume): Don't mark threads as running here.
3576
3577 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3578
3579 * serial.c (_initialize_serial): Remove support for
3580 the "set remotebaud" and "show remotebaud" commands.
3581 * NEWS: Add entry documenting the removal of that command.
3582
3583 2014-05-28 Yao Qi <yao@codesourcery.com>
3584
3585 * charset.c: Fix typo in comments.
3586
3587 2014-05-27 Gary Benson <gbenson@redhat.com>
3588
3589 * utils.c (internal_vproblem): Prompt for a bug report.
3590
3591 2014-05-26 Andy Wingo <wingo@igalia.com>
3592
3593 * guile/scm-arch.c (arscm_mark_arch_smob):
3594 * guile/scm-block.c (bkscm_mark_block_smob)
3595 (bkscm_mark_block_syms_progress_smob):
3596 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3597 * guile/scm-exception.c (exscm_mark_exception_smob):
3598 * guile/scm-frame.c (frscm_mark_frame_smob):
3599 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3600 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3601 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3602 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3603 (ppscm_mark_pretty_printer_worker_smob):
3604 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3605 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3606 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3607 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3608 mark functions.
3609 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3610 function.
3611
3612 2014-05-26 Andy Wingo <wingo@igalia.com>
3613 Doug Evans <xdje42@gmail.com>
3614
3615 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3616 empty_base_class. All uses updated.
3617 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3618 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3619 Adapt all callers.
3620 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3621 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3622 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3623 (gdbscm_gsmob_has_property_p, add_property_name)
3624 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3625 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3626 (gdb-object-has-property?, gdb-object-properties): Remove.
3627 (gdb-object-kind): Renamed from gsmob-kind.
3628
3629 2014-05-26 Andy Wingo <wingo@igalia.com>
3630
3631 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3632 * configure: Regenerate.
3633
3634 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3635
3636 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3637
3638 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3639
3640 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3641 (replay_memory_access_read_only, replay_memory_access_read_write)
3642 (replay_memory_access_types, replay_memory_access)
3643 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3644 (cmd_set_record_btrace, cmd_show_record_btrace)
3645 (cmd_show_replay_memory_access): New.
3646 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3647 (record_btrace_remove_breakpoint): Replace
3648 record_btrace_allow_memory_access with replay_memory_access.
3649 (_initialize_record_btrace): Add commands.
3650 * NEWS: Announce it.
3651
3652 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3653
3654 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3655
3656 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3657
3658 * MAINTAINERS (Write After Approval): Move self back from
3659 paper trail.
3660
3661 2014-05-22 Pedro Alves <palves@redhat.com>
3662
3663 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3664 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3665 (disable_randomization, enum exec_direction_kind)
3666 (execution_direction, stop_registers, start_remote)
3667 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3668 (wait_for_inferior, normal_stop, get_last_target_status)
3669 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3670 (insert_step_resume_breakpoint_at_sal)
3671 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3672 (set_step_info, print_stop_event, signal_stop_state)
3673 (signal_print_state, signal_pass_state, signal_stop_update)
3674 (signal_print_update, signal_pass_update)
3675 (update_signals_program_target, clear_exit_convenience_vars)
3676 (displaced_step_dump_bytes, update_observer_mode)
3677 (signal_catch_update, gdb_signal_from_command): Move
3678 declarations ...
3679 * infrun.h: ... to this new file.
3680 * amd64-tdep.c: Include infrun.h.
3681 * annotate.c: Include infrun.h.
3682 * arch-utils.c: Include infrun.h.
3683 * arm-linux-tdep.c: Include infrun.h.
3684 * arm-tdep.c: Include infrun.h.
3685 * break-catch-sig.c: Include infrun.h.
3686 * breakpoint.c: Include infrun.h.
3687 * common/agent.c: Include infrun.h instead of inferior.h.
3688 * corelow.c: Include infrun.h.
3689 * event-top.c: Include infrun.h.
3690 * go32-nat.c: Include infrun.h.
3691 * i386-tdep.c: Include infrun.h.
3692 * inf-loop.c: Include infrun.h.
3693 * infcall.c: Include infrun.h.
3694 * infcmd.c: Include infrun.h.
3695 * infrun.c: Include infrun.h.
3696 * linux-fork.c: Include infrun.h.
3697 * linux-nat.c: Include infrun.h.
3698 * linux-thread-db.c: Include infrun.h.
3699 * monitor.c: Include infrun.h.
3700 * nto-tdep.c: Include infrun.h.
3701 * procfs.c: Include infrun.h.
3702 * record-btrace.c: Include infrun.h.
3703 * record-full.c: Include infrun.h.
3704 * remote-m32r-sdi.c: Include infrun.h.
3705 * remote-mips.c: Include infrun.h.
3706 * remote-notif.c: Include infrun.h.
3707 * remote-sim.c: Include infrun.h.
3708 * remote.c: Include infrun.h.
3709 * reverse.c: Include infrun.h.
3710 * rs6000-tdep.c: Include infrun.h.
3711 * s390-linux-tdep.c: Include infrun.h.
3712 * solib-irix.c: Include infrun.h.
3713 * solib-osf.c: Include infrun.h.
3714 * solib-svr4.c: Include infrun.h.
3715 * target.c: Include infrun.h.
3716 * top.c: Include infrun.h.
3717 * windows-nat.c: Include infrun.h.
3718 * mi/mi-interp.c: Include infrun.h.
3719 * mi/mi-main.c: Include infrun.h.
3720 * python/py-threadevent.c: Include infrun.h.
3721
3722 2014-05-22 Pedro Alves <palves@redhat.com>
3723
3724 * infrun.c (handle_inferior_event): Store the exit code for
3725 --return-child-result here, instead of ...
3726 (print_exited_reason): ... here.
3727
3728 2014-05-21 Pedro Alves <palves@redhat.com>
3729
3730 PR gdb/13860
3731 * gdbthread.h (struct thread_control_state): New field
3732 `command_interp'.
3733 * infrun.c (follow_fork): Copy the new thread control field to the
3734 child fork thread.
3735 (clear_proceed_status_thread): Clear the new thread control field.
3736 (proceed): Set the new thread control field.
3737 * interps.h (command_interp): Declare.
3738 * interps.c (command_interpreter): New global.
3739 (command_interp): New function.
3740 (interp_exec): Set `command_interpreter' while here.
3741 * cli-out.c (cli_uiout_dtor): New function.
3742 (cli_ui_out_impl): Install it.
3743 * mi/mi-interp.c: Include cli-out.h.
3744 (mi_cmd_interpreter_exec): Add comment.
3745 (restore_current_uiout_cleanup): New function.
3746 (ui_out_free_cleanup): New function.
3747 (mi_on_normal_stop): If finishing an execution command started by
3748 a CLI command, or any kind of breakpoint-like event triggered,
3749 print the stop event to the output (CLI) stream.
3750 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3751
3752 2014-05-21 Pedro Alves <palves@redhat.com>
3753
3754 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3755 current source line having changed.
3756 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3757 * infrun.c (normal_stop): Adjust call to
3758 set_current_sal_from_frame.
3759 * source.c (clear_lines_listed_range): New function.
3760 (set_current_source_symtab_and_line, identify_source_line): Clear
3761 the lines listed range.
3762 (line_info): Handle the first "info line" after the current source
3763 line having changed.
3764 * stack.c (print_stack_frame): Remove center handling.
3765 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3766 center sal.line.
3767
3768 2014-05-21 Pedro Alves <palves@redhat.com>
3769
3770 * inf-child.c (inf_child_mourn_inferior): New function.
3771 * inf-child.h (inf_child_mourn_inferior): New declaration.
3772 * darwin-nat.c (darwin_mourn_inferior): Use
3773 inf_child_mourn_inferior.
3774 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3775 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3776 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3777 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3778 * windows-nat.c (windows_mourn_inferior): Likewise.
3779
3780 2014-05-21 Doug Evans <xdje42@gmail.com>
3781
3782 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3783
3784 2014-05-21 Doug Evans <xdje42@gmail.com>
3785
3786 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3787 (gdbscm_out_of_range_error): Ditto.
3788 (gdbscm_memory_error): Ditto.
3789 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3790 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3791 (gdbscm_out_of_range_error): Update.
3792 (gdbscm_memory_error): Update.
3793 (gdbscm_scm_to_target_string_unsafe): Delete.
3794
3795 2014-05-21 Pedro Alves <palves@redhat.com>
3796
3797 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3798 globals.
3799 (inf_child_open_target): New function.
3800 (inf_child_open): Use inf_child_open_target to push the target
3801 instead of erroring out.
3802 (inf_child_disconnect, inf_child_close)
3803 (inf_child_maybe_unpush_target): New functions.
3804 (inf_child_target): Install inf_child_disconnect and
3805 inf_child_close. Store a pointer to the returned object.
3806 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3807 declarations.
3808 * target.c (auto_connect_native_target): New global.
3809 (show_default_run_target): New function.
3810 (find_default_run_target): Return NULL if automatically connecting
3811 to the native target is disabled.
3812 (_initialize_target): Install set/show auto-connect-native-target.
3813 * NEWS: Mention "set auto-connect-native-target", and "target
3814 native".
3815 * linux-nat.c (super_close): New global.
3816 (linux_nat_close): Call super_close.
3817 (linux_nat_add_target): Store a pointer to the base class's
3818 to_close method.
3819 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3820 inf_child_maybe_unpush.
3821 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3822 already pushed.
3823 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3824 the inferior. Use inf_child_maybe_unpush_target.
3825 (inf_ttrace_attach): Don't push the target if it is already
3826 pushed.
3827 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3828 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3829 after mourning the inferior. Use inf_child_maybe_unpush_target.
3830 (darwin_attach_pid): Don't push the target if it is already
3831 pushed.
3832 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3833 mourning the inferior. Use inf_child_maybe_unpush_target.
3834 (gnu_detach): Use inf_child_maybe_unpush_target.
3835 * go32-nat.c (go32_create_inferior): Don't push the target if it
3836 is already pushed.
3837 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3838 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3839 (procfs_open): Rename to ...
3840 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3841 comments. Can target_preopen before changing node. Call
3842 inf_child_open_target to push the target explicitly.
3843 (procfs_attach): Don't push the target if it is already pushed.
3844 (procfs_detach): Use inf_child_maybe_unpush_target.
3845 (procfs_create_inferior): Don't push the target if it is already
3846 pushed.
3847 (nto_native_ops): New global.
3848 (procfs_open): Reimplement.
3849 (procfs_native_open): New function.
3850 (init_procfs_targets): Install procfs_native_open as to_open of
3851 "target native". Store a pointer to the "native" target in
3852 nto_native_ops.
3853 * procfs.c (procfs_attach): Don't push the target if it is already
3854 pushed.
3855 (procfs_detach): Use inf_child_maybe_unpush_target.
3856 (procfs_mourn_inferior): Only unpush the target after mourning the
3857 inferior. Use inf_child_maybe_unpush_target.
3858 (procfs_init_inferior): Don't push the target if it is already
3859 pushed.
3860 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3861 if it is already pushed.
3862
3863 2014-05-21 Pedro Alves <palves@redhat.com>
3864
3865 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3866 and "procfs" targets are now called "native" instead.
3867
3868 2014-05-21 Pedro Alves <palves@redhat.com>
3869
3870 * go32-nat.c (go32_open): Delete.
3871 (go32_target): Don't override the to_open method.
3872
3873 2014-05-21 Pedro Alves <palves@redhat.com>
3874
3875 * nto-procfs.c (procfs_can_run): New function.
3876 (nto_procfs_ops): New global.
3877 (init_procfs_targets): New, based on procfs_target. Install
3878 "target native" in addition to "target procfs".
3879 (_initialize_procfs): Call init_procfs_targets instead of adding
3880 the target here.
3881
3882 2014-05-21 Pedro Alves <palves@redhat.com>
3883
3884 * windows-nat.c (windows_target): Don't override to_shortname,
3885 to_longname or to_doc.
3886
3887 2014-05-21 Pedro Alves <palves@redhat.com>
3888
3889 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3890 to_doc.
3891
3892 2014-05-21 Pedro Alves <palves@redhat.com>
3893
3894 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3895 to_shortname, to_longname or to_doc.
3896
3897 2014-05-21 Pedro Alves <palves@redhat.com>
3898
3899 * go32-nat.c (go32_target): Don't override to_shortname,
3900 to_longname or to_doc.
3901
3902 2014-05-21 Pedro Alves <palves@redhat.com>
3903
3904 * inf-child.c (inf_child_open): Remove mention of "child".
3905 (inf_child_target): Rename target to "native" instead of "child".
3906
3907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3908
3909 * Makefile.in (SFILES): Delete "regset.c".
3910 (COMMON_OBS): Delete "regset.o".
3911 * regset.c: Remove.
3912 * regset.h (regset_alloc): Delete prototype.
3913
3914 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3915
3916 * sparc-linux-tdep.c (sparc32_linux_gregset)
3917 (sparc32_linux_fpregset): New static regset structures.
3918 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3919 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3920 'fpregset' fields.
3921 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3922 (sparc64_linux_fpregset): New static regset structures.
3923 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3924 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3925 New static regset structures.
3926 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3927 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3928 New static regset structures.
3929 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3930 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3931 New static regset structures.
3932 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3933 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3934 New static regset structures.
3935 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3936
3937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3938
3939 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3940 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3941 register maps ("regmaps") from "*regset" to "*regmap". Do this
3942 for all regmap types and variables.
3943 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3944 (sparc32_linux_supply_core_gregset)
3945 (sparc32_linux_collect_core_gregset)
3946 (sparc32_linux_supply_core_fpregset)
3947 (sparc32_linux_collect_core_fpregset): Likewise.
3948 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3949 (sparc_gregmap, sparc_fpregmap): ... these.
3950 (sparc_supply_gregset, sparc_collect_gregset)
3951 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3952 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3953 (_initialize_sparc_nat): Rename regmaps.
3954 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3955 (sparc_gregmap, sparc_fpregmap): ... these.
3956 (sparc_supply_gregset, sparc_collect_gregset)
3957 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3958 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3959 Rename macros to...
3960 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3961 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3962 Likewise.
3963 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3964 Rename to...
3965 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3966 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3967 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3968 regmaps.
3969 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3970 (sparc32_bsd_fpregset): Rename to...
3971 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3972 (sparc32_bsd_fpregmap): ... these.
3973 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3974 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3975 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3976 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3977 (struct sparc_gregmap, struct sparc_fpregmap)
3978 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3979 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3980 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3981 (sparc32_supply_regset, sparc32_collect_gregset)
3982 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3983 prototypes.
3984 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3985 (sparc64_linux_ptrace_gregmap): ... this.
3986 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3987 (_initialize_sparc64_linux_nat): Rename regmaps.
3988 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3989 (sparc64_linux_core_gregmap): ... this.
3990 (sparc64_linux_supply_core_gregset)
3991 (sparc64_linux_collect_core_gregset)
3992 (sparc64_linux_supply_core_fpregset)
3993 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3994 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3995 (sparc64_sol2_fpregset): Rename to...
3996 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3997 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3998 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3999 regmaps.
4000 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4001 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4002 (sparc64_bsd_fpregset): Rename to...
4003 (struct sparc_gregmap, sparc64_sol2_gregmap)
4004 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4005 (sparc64_bsd_fpregmap): ... these.
4006 (sparc64_supply_gregset, sparc64_collect_gregset)
4007 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4008 prototypes.
4009 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4010 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4011 (sparc64fbsd_gregmap): ... this.
4012 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4013 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4014 Rename regmaps.
4015 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4016 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4017 (sparc64nbsd_collect_fpregset): Likewise.
4018 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4019 (sparc64nbsd_gregmap): ... this.
4020 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4021 regmaps.
4022 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4023 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4024 (sparc64obsd_gregmap): ... this.
4025 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4026 regmaps.
4027 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4028 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4029 (sparc32nbsd_gregmap): ... this.
4030 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4031 regmaps.
4032
4033 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4034
4035 * score-tdep.c (score7_linux_gregset): New static regset
4036 structure.
4037 (score7_linux_regset_from_core_section): Remove dynamic regset
4038 allocation.
4039 (score_gdbarch_init): Drop allocation of tdep structure.
4040 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4041
4042 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4043
4044 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4045 regset structures.
4046 (am33_regset_from_core_section): Remove dynamic regset
4047 allocations.
4048
4049 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4050
4051 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4052 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4053 structures.
4054 (mips_linux_regset_from_core_section): Remove dynamic regset
4055 allocations.
4056 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4057 'gregset64', 'fpregset', and 'fpregset64'.
4058 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4059 deleted tdep fields.
4060
4061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4062
4063 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4064 regset structures.
4065 (amd64_regset_from_core_section): Remove dynamic regset
4066 allocations.
4067 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4068 structure.
4069 (amd64obsd_regset_from_core_section): Remove dynamic regset
4070 allocation.
4071 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4072 Likewise.
4073 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4074 x86-common regset supply function.
4075 * i386-tdep.c (i386_collect_gregset): Make static.
4076 (i386_gregset): New global regset structure.
4077 (i386_fpregset, i386_xstateregset): New static regset structures.
4078 (i386_regset_from_core_section): Remove dynamic regset
4079 allocations.
4080 (i386_gdbarch_init): Remove initialization of tdep fields
4081 'gregset', 'fpregset', and 'xstateregset'.
4082 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4083 'fpregset', and 'xstateregset'.
4084 (i386_collect_gregset): Remove prototype.
4085 (i386_gregset): New declaration.
4086 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4087 structure.
4088 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4089 allocation.
4090
4091 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4092
4093 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4094 (arm_linux_vfpregset): New static regset structures.
4095 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4096 regset structures.
4097 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4098 and 'vfpregset' fields.
4099
4100 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4101
4102 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4103 (aarch64_linux_fpregset): New static regset structures.
4104 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4105 of regset structures.
4106 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4107 'fpregset' fields.
4108
4109 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4110
4111 * regset.h (struct regset): Remove gdbarch field.
4112 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4113 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4114 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4115 Likewise.
4116 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4117 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4118 (ppc32_linux_vsxregset): Likewise.
4119 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4120 via the regcache instead of the regset.
4121 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4122 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4123 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4124 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4125 Likewise.
4126
4127 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4128
4129 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4130 Constify structures.
4131 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4132 (alphanbsd_aout_gregset): Likewise.
4133 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4134 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4135 Likewise.
4136 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4137 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4138 Likewise.
4139 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4140 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4141 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4142 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4143 * m88k-tdep.c (m88k_gregset): Likewise.
4144 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4145 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4146 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4147 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4148 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4149 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4150 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4151 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4152 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4153 Likewise.
4154 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4155 * sh-tdep.h (sh_corefile_gregset): Likewise.
4156 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4157 * vax-tdep.c (vax_gregset): Likewise.
4158
4159 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 Fix TLS access for -static -pthread.
4162 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4163 (try_thread_db_load_1): Initialize it.
4164 (thread_db_get_thread_local_address): Call it if LM is zero.
4165 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4166 * target.h (struct target_ops) (to_get_thread_local_address): Add
4167 load_module_addr comment.
4168
4169 2014-05-21 Pedro Alves <palves@redhat.com>
4170
4171 * dcache.c (dcache_read_memory_partial): If reading the cache line
4172 fails, fallback to reading just the memory the caller wanted.
4173
4174 2014-05-20 Doug Evans <dje@google.com>
4175
4176 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4177 instead of get_current_arch.
4178
4179 2014-05-20 Pedro Alves <palves@redhat.com>
4180
4181 * NEWS: Mention that compare-sections now works with all targets.
4182
4183 * remote.c (PACKET_qCRC): New enum value.
4184 (remote_verify_memory): Don't send qCRC if the target has no
4185 execution. Use packet_support/packet_ok. If the target doesn't
4186 support the qCRC packet, fallback to a deep memory copy.
4187 (compare_sections_command): Say "target image" instead of "remote
4188 executable".
4189 (_initialize_remote): Add PACKET_qCRC to the list of config
4190 packets that have no associated command. Extend comment.
4191 * target.c (simple_verify_memory, default_verify_memory): New
4192 function.
4193 * target.h (struct target_ops) <to_verify_memory>: Default to
4194 default_verify_memory.
4195 (simple_verify_memory): New declaration.
4196 * target-delegates.c: Regenerate.
4197
4198 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4199
4200 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4201
4202 2014-05-20 Hui Zhu <hui@codesourcery.com>
4203 Yao Qi <yao@codesourcery.com>
4204
4205 PR backtrace/16558
4206 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4207 and change address of sp and pc.
4208
4209 2014-05-19 Tom Tromey <tromey@redhat.com>
4210
4211 * gdbtypes.c (rank_function): Use XNEWVEC.
4212 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4213
4214 2014-05-19 Doug Evans <dje@google.com>
4215
4216 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4217 build_type_unit_groups and moved closer to only caller. Remove
4218 arguments. All references updated. Remove outdated .gdb_index
4219 comment.
4220 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4221 build_type_psymtabs_1.
4222
4223 2014-05-19 Doug Evans <dje@google.com>
4224
4225 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4226 n_type_unit_groups, all_type_unit_groups. All uses removed.
4227 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4228 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4229 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4230 (add_type_unit_group_to_table): Delete.
4231
4232 2014-05-19 Doug Evans <dje@google.com>
4233
4234 * eval.c (evaluate_subexp_standard): Add some comments.
4235
4236 2014-05-17 Doug Evans <xdje42@gmail.com>
4237
4238 * progspace.c (remove_program_space): Delete, unused.
4239 * progspace.h (remove_program_space): Ditto.
4240
4241 2014-05-17 Doug Evans <xdje42@gmail.com>
4242
4243 * inferior.c (prune_inferiors): Fix comment.
4244 (remove_inferior_command): Call prune_program_spaces.
4245
4246 2014-05-16 Doug Evans <dje@google.com>
4247
4248 New command line option -D.
4249 * NEWS: Mention it.
4250 * main.c (set_gdb_data_directory): New function.
4251 (captured_main): Recognize -D. Flag error for --data-directory "".
4252 Call set_gdb_data_directory.
4253 (print_gdb_help): Print --data-directory, -D.
4254 * main.h (set_gdb_data_directory): Declare.
4255 * top.c (staged_gdb_datadir): New static global.
4256 (set_gdb_datadir): Call set_gdb_data_directory
4257 (show_gdb_datadir): New function.
4258 (init_main): Update init of data-directory parameter.
4259
4260 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4261
4262 Import the "dirfd" gnulib module.
4263 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4264 * gnulib/aclocal.m4: Update.
4265 * gnulib/config.in: Update.
4266 * gnulib/configure: Update.
4267 * gnulib/import/Makefile.am: Update.
4268 * gnulib/import/Makefile.in: Update.
4269 * gnulib/import/dirfd.c: New.
4270 * gnulib/import/m4/dirfd.m4: New.
4271 * gnulib/import/m4/gnulib-cache.m4: Update.
4272 * gnulib/import/m4/gnulib-comp.m4: Update.
4273
4274 2014-05-16 Pierre Muller <muller@sourceware.org>
4275 Yao Qi <yao@codesourcery.com>
4276
4277 * valprint.c (print_wchar): Move the code on checking whether
4278 W is a printable wide char to the default branch of switch
4279 statement below. Call wchar_printable instead of gdb_iswprint.
4280
4281 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4282
4283 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4284 ldr.w and ldrd instructions.
4285
4286 2014-05-15 Doug Evans <dje@google.com>
4287
4288 * dwarf2read.c (read_structure_type): Delete outdated comments.
4289
4290 2014-05-14 Tom Tromey <tromey@redhat.com>
4291
4292 * macrocmd.c (print_macro_definition): Reindent.
4293
4294 2014-05-13 Doug Evans <xdje42@gmail.com>
4295
4296 * python/py-cmd.c (cmdpy_completer): Add comment.
4297 (completers): Make const.
4298
4299 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4300
4301 * infrun.c (resume): Remove should_resume (unused). Move up
4302 declaration of resume_ptid.
4303
4304 2014-05-13 Tom Tromey <tromey@redhat.com>
4305
4306 * language.h (unop_type_check): Remove.
4307 (binop_type_check): Don't declare.
4308
4309 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4310
4311 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4312 call to regcache_raw_collect.
4313
4314 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4315
4316 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4317 mi_console->quote as the quoting character.
4318
4319 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4320
4321 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4322
4323 2014-04-29 Tom Tromey <tromey@redhat.com>
4324
4325 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4326 "show debug varobj".
4327
4328 2014-05-07 Kyle McMartin <kyle@redhat.com>
4329
4330 Pushed by Joel Brobecker <brobecker@adacore.com>.
4331 * aarch64-tdep.c (aarch64_software_single_step): New function.
4332 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4333 with aarch64_software_single_step.
4334
4335 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4336
4337 GDB 7.7.1 released.
4338
4339 2014-05-05 Keith Seitz <keiths@redhat.com>
4340
4341 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4342 variable or history value is successfully parsed.
4343
4344 2014-05-05 Yao Qi <yao@codesourcery.com>
4345 Pedro Alves <palves@redhat.com>
4346
4347 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4348 address of blocks that intersects the requested range. Trim
4349 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4350 sections.
4351 * ctf.c (ctf_xfer_partial): Likewise.
4352
4353 2014-05-05 Yao Qi <yao@codesourcery.com>
4354
4355 * printcmd.c (display_command): Remove the check to
4356 target_has_execution.
4357
4358 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4359
4360 * ppcobsd-nat.c: Include "obsd-nat.h".
4361 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4362 add_target.
4363 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4364
4365 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4366
4367 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4368 and 16-bit signed and unsigned arguments. Update comment.
4369 (stap_parse_probe_arguments): Extend code to handle such
4370 arguments. Use warning instead of complaint to notify about
4371 unrecognized bitness.
4372
4373 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4374
4375 PR breakpoints/16889
4376 * stap-probe.c (stap_parse_probe_arguments): Simplify
4377 check for non-prefixed probes (i.e., probes whose
4378 arguments do not start with "N@"). Always set the
4379 argument type to a sane value.
4380
4381 2014-05-01 David Taylor <dtaylor@emc.com>
4382
4383 * remote.c (compare_sections_command): Add -r option to compare
4384 all loadable read-only sections.
4385
4386 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4387
4388 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4389 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4390 Update all callers.
4391 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4392 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4393 Remove unused CORE_ADDR argument. Update all callers.
4394
4395 2014-04-29 Pedro Alves <palves@redhat.com>
4396
4397 * remote.c (struct packet_config) <detect>: Extend comment.
4398 (add_packet_config_cmd): Don't set the config's detect or support
4399 fields here.
4400 (init_all_packet_configs): Also initialize the config's 'detect'
4401 field.
4402 (reset_all_packet_configs_support): New function.
4403 (remote_open_1): Call reset_all_packet_configs_support instead of
4404 init_all_packet_configs.
4405 (_initialize_remote): Initialize all packet configs. Assert that
4406 all packets have an associated command, except a few known
4407 outliers.
4408
4409 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4410
4411 * dwarf2read.c (read_subrange_type): Handle dynamic
4412 DW_AT_lower_bound attributes.
4413
4414 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4415
4416 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4417 dynamic bounds before computing its upper bound.
4418 (ada_discrete_type_low_bound): Same as above with the lower bound.
4419
4420 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4421
4422 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4423 range types. Adjust the array handling implementation to
4424 take advantage of this change.
4425 (resolve_dynamic_range): New function, mostly extracted from
4426 resolve_dynamic_bounds.
4427 (resolve_dynamic_array): New function, mostly extracted from
4428 resolve_dynamic_bounds.
4429 (resolve_dynamic_bounds): Delete.
4430 (resolve_dynamic_type): Reimplement. Add handling of
4431 TYPE_CODE_RANGE types.
4432
4433 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4434
4435 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4436 handling of parallel ___XA types.
4437
4438 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4439
4440 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4441 unnecessary second call to static_unwrap_type.
4442
4443 2014-04-27 Hui Zhu <hui@codesourcery.com>
4444
4445 * stack.c (print_frame_info): Call do_gdb_disassembly with
4446 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4447
4448 2014-04-26 Doug Evans <xdje42@gmail.com>
4449
4450 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4451
4452 2014-04-25 Pedro Alves <palves@redhat.com>
4453
4454 PR server/16255
4455 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4456 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4457 and newline from built string.
4458 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4459 (linux_ptrace_attach_fail_reason): ... this.
4460 * linux-nat.c (linux_nat_attach): Adjust to use
4461 linux_ptrace_attach_fail_reason.
4462
4463 2014-04-25 Pedro Alves <palves@redhat.com>
4464
4465 * remote.c (struct remote_state): Remove multi_process_aware,
4466 non_stop_aware, cond_tracepoints, cond_breakpoints,
4467 breakpoint_commands, fast_tracepoints, static_tracepoints,
4468 install_in_trace, disconnected_tracing,
4469 enable_disable_tracepoints, string_tracing, and
4470 augmented_libraries_svr4_read fields.
4471 (remote_multi_process_p): Move further below in the file.
4472 (struct packet_config): Add comments.
4473 (update_packet_config): Delete function.
4474 (show_packet_config_cmd): Use packet_config_support.
4475 (add_packet_config_cmd): Use NULL as set callback.
4476 (packet_ok): "set remote foo-packet"-style commands no longer
4477 change config->supported -- adjust.
4478 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4479 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4480 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4481 (PACKET_QNonStop, PACKET_multiprocess_feature)
4482 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4483 (PACKET_DisconnectedTracing_feature)
4484 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4485 (set_remote_protocol_packet_cmd): Delete function.
4486 (packet_config_support, packet_support): New functions.
4487 (set_remote_protocol_Z_packet_cmd): Don't call
4488 update_packet_config.
4489 (remote_query_attached, remote_pass_signals)
4490 (remote_program_signals, remote_threads_info)
4491 (remote_threads_extra_info, remote_start_remote): Use
4492 packet_support.
4493 (remote_start_remote): Use packet_config_support and
4494 packet_support.
4495 (init_all_packet_configs): Set all packets to unknown support,
4496 instead of calling update_packet_config.
4497 (remote_check_symbols): Use packet_support.
4498 (remote_supported_packet): Unconditionally set the packet config's
4499 support status.
4500 (remote_multi_process_feature, remote_non_stop_feature)
4501 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4502 (remote_breakpoint_commands_feature)
4503 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4504 (remote_install_in_trace_feature)
4505 (remote_disconnected_tracing_feature)
4506 (remote_enable_disable_tracepoint_feature)
4507 (remote_string_tracing_feature)
4508 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4509 (remote_protocol_features): Adjust to use remote_supported_packet
4510 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4511 "ConditionalTracepoints", "ConditionalBreakpoints",
4512 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4513 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4514 "EnableDisableTracepoints", and "tracenz".
4515 (remote_query_supported): Use packet_support.
4516 (remote_open_1): Adjust.
4517 (extended_remote_attach_1): Use packet_support. Switch on the
4518 result of packet_ok instead of checking whether the packet ended
4519 up disabled.
4520 (remote_vcont_resume): Use packet_support.
4521 (remote_resume, remote_stop_ns, fetch_register_using_p)
4522 (remote_prepare_to_store, store_register_using_P)
4523 (check_binary_download, remote_write_bytes): Use packet_support.
4524 (remote_vkill): Use packet_support. Switch on the result of
4525 packet_ok instead of checking whether the packet ended up
4526 disabled.
4527 (extended_remote_supports_disable_randomization): Use
4528 packet_support.
4529 (extended_remote_run): Switch on the result of packet_ok instead
4530 of checking whether the packet ended up disabled.
4531 (remote_insert_breakpoint, remote_remove_breakpoint)
4532 (remote_insert_watchpoint, remote_remove_watchpoint)
4533 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4534 packet_support.
4535 (remote_search_memory): Use packet_config_support.
4536 (remote_get_thread_local_address, remote_get_tib_address)
4537 (remote_hostio_send_command, remote_can_execute_reverse): Use
4538 packet_support.
4539 (remote_supports_cond_tracepoints)
4540 (remote_supports_cond_breakpoints)
4541 (remote_supports_fast_tracepoints)
4542 (remote_supports_static_tracepoints)
4543 (remote_supports_install_in_trace)
4544 (remote_supports_enable_disable_tracepoint)
4545 (remote_supports_string_tracing)
4546 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4547 the packet config says the feature is enabled or disabled.
4548 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4549 (remote_get_trace_status): Use packet_support.
4550 (remote_set_disconnected_tracing): Adjust to check whether the
4551 feature is enabled with packet_support.
4552 (remote_set_trace_buffer_size, remote_use_agent)
4553 (remote_can_use_agent, remote_supports_btrace): Use
4554 packet_support.
4555 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4556 Use packet_config_support.
4557 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4558 the packet config says the feature is enabled or disabled.
4559 (set_range_stepping): Use packet_support.
4560
4561 2014-04-25 Tom Tromey <tromey@redhat.com>
4562
4563 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4564 argument.
4565
4566 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4567
4568 * NEWS: Mention support for C99 variable length arrays.
4569
4570 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4571
4572 * ada-lang.c (standard_exc): Expand introductory comment.
4573
4574 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4575 Walfred Tedeschi <walfred.tedeschi@intel.com>
4576
4577 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4578 AVX512 registers.
4579 (amd64_linux_read_description): Add code to handle AVX512 xstate
4580 mask and return respective tdesc.
4581 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4582 and features/i386/x32-avx512-linux.c.
4583 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4584 (amd64_linux_core_read_description): Add code to handle AVX512
4585 xstate mask and return respective tdesc.
4586 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4587 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4588 calculation.
4589 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4590 (tdesc_amd64_avx512_linux): New prototype.
4591 (tdesc_x32_avx512_linux): Likewise.
4592 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4593 features/i386/x32-avx512.c.
4594 (amd64_ymm_avx512_names): New register names for pseudo
4595 registers YMM16-31.
4596 (amd64_ymmh_avx512_names): New register names for raw registers
4597 YMMH16-31.
4598 (amd64_k_names): New register names for K registers.
4599 (amd64_zmmh_names): New register names for ZMM raw registers.
4600 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4601 (amd64_xmm_avx512_names): New register names for XMM16-31
4602 registers.
4603 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4604 registers.
4605 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4606 if feature is present.
4607 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4608 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4609 (AMD64_NUM_REGS): Adjust to new number of registers.
4610 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4611 registers supplied via XSTATE by AVX512 registers.
4612 (i386_linux_read_description): Add case for AVX512.
4613 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4614 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4615 (i386_linux_core_read_description): Add case for AVX512.
4616 (i386_linux_init_abi): Install supported register note section
4617 for AVX512.
4618 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4619 AVX512.
4620 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4621 registers to be number of zmm7h + 1.
4622 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4623 * i386-tdep.c: Include features/i386/i386-avx512.c.
4624 (i386_zmm_names): Add ZMM pseudo register names array.
4625 (i386_zmmh_names): Add ZMM raw register names array.
4626 (i386_k_names): Add K raw register names array.
4627 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4628 registers. AVX512 has 16 more ZMM registers than there are YMM
4629 registers.
4630 (i386_zmmh_regnum_p): Add function to look up register number of
4631 ZMM raw registers.
4632 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4633 (i386_k_regnum_p): Likewise for K raw registers.
4634 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4635 registers added by AVX512.
4636 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4637 registers added by AVX512.
4638 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4639 added by AVX512.
4640 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4641 (i386_pseudo_register_name): Add ZMM pseudo registers.
4642 (i386_zmm_type): Construct and return vector registers type for ZMM
4643 registers.
4644 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4645 ZMM0-31 pseudo registers and K registers.
4646 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4647 and YMM16-31 registers from register cache.
4648 (i386_pseudo_register_write): Add code to write K, ZMM and
4649 YMM16-31 registers.
4650 (i386_register_reggroup_p): Add code to include/exclude AVX512
4651 registers in/from respective register groups.
4652 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4653 registers if feature is present in xcr0.
4654 (i386_gdbarch_init): Add code to initialize AVX512 feature
4655 variables in tdep structure, wire in pseudo registers and call
4656 initialize_tdesc_i386_avx512.
4657 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4658 variables.
4659 (i386_regnum): Add AVX512 registers.
4660 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4661 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4662 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4663 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4664 512 bits wide.
4665 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4666 (i386_ymm_avx512_regnum_p): Likewise.
4667 (i386_k_regnum_p): Likewise.
4668 (i386_zmm_regnum_p): Likewise.
4669 (i386_zmmh_regnum_p): Likewise.
4670 * i387-tdep.c : Update year in copyright notice.
4671 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4672 XSAVE buffer.
4673 (XSAVE_YMM_AVX512_ADDR): New macro.
4674 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4675 XSAVE buffer.
4676 (XSAVE_XMM_AVX512_ADDR): New macro.
4677 (xsave_avx512_k_offset): New table for K register offsets in
4678 XSAVE buffer.
4679 (XSAVE_AVX512_K_ADDR): New macro.
4680 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4681 in XSAVE buffer.
4682 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4683 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4684 buffer.
4685 (i387_collect_xsave): Add code to collect AVX512 registers from
4686 XSAVE buffer.
4687 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4688 of XMM16-31 registers.
4689 (I387_NUM_K_REGS): New define for number of K registers.
4690 (I387_K0_REGNUM): New define for K0 register number.
4691 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4692 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4693 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4694 registers.
4695 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4696 (I387_XMM16_REGNUM): New define for XMM16 register number.
4697 (I387_YMM0_REGNUM): New define for YMM0 register number.
4698 (I387_KEND_REGNUM): New define for last K register number.
4699 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4700 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4701 number.
4702 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4703 number.
4704 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4705 size.
4706 * features/Makefile: Add AVX512 related files.
4707 * features/i386/32bit-avx512.xml: New file.
4708 * features/i386/64bit-avx512.xml: Likewise.
4709 * features/i386/amd64-avx512-linux.c: Likewise.
4710 * features/i386/amd64-avx512-linux.xml: Likewise.
4711 * features/i386/amd64-avx512.c: Likewise.
4712 * features/i386/amd64-avx512.xml: Likewise.
4713 * features/i386/i386-avx512-linux.c: Likewise.
4714 * features/i386/i386-avx512-linux.xml: Likewise.
4715 * features/i386/i386-avx512.c: Likewise.
4716 * features/i386/i386-avx512.xml: Likewise.
4717 * features/i386/x32-avx512-linux.c: Likewise.
4718 * features/i386/x32-avx512-linux.xml: Likewise.
4719 * features/i386/x32-avx512.c: Likewise.
4720 * features/i386/x32-avx512.xml: Likewise.
4721 * regformats/i386/amd64-avx512-linux.dat: New file.
4722 * regformats/i386/amd64-avx512.dat: Likewise.
4723 * regformats/i386/i386-avx512-linux.dat: Likewise.
4724 * regformats/i386/i386-avx512.dat: Likewise.
4725 * regformats/i386/x32-avx512-linux.dat: Likewise.
4726 * regformats/i386/x32-avx512.dat: Likewise.
4727 * NEWS: Add note about new support for AVX512.
4728
4729
4730 2014-04-23 Pedro Alves <palves@redhat.com>
4731
4732 * breakpoint.c (insert_bp_location): Tolerate errors if the
4733 breakpoint is set in a user-loaded objfile.
4734 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4735 location is marked shlib_disabled. If the breakpoint is set in a
4736 user-loaded objfile is a GDB-side memory breakpoint, validate it
4737 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4738 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4739 flag.
4740 * mem-break.c (memory_validate_breakpoint): New function.
4741 * objfiles.c (userloaded_objfile_contains_address_p): New
4742 function.
4743 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4744 * target.h (memory_validate_breakpoint): New declaration.
4745
4746 2014-04-23 Pedro Alves <palves@redhat.com>
4747
4748 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4749 the breakpoint is set in a shared library, only suppress
4750 errors for software breakpoints, not hardware breakpoints.
4751
4752 2014-04-22 Pedro Alves <palves@redhat.com>
4753
4754 * infrun.c (schedlock_applies): New function, factored out from
4755 find_thread_needs_step_over.
4756 (find_thread_needs_step_over): Use it.
4757 (switch_back_to_stepped_thread): Always clear trap_expected if the
4758 step over is finished. Return early if scheduler locking applies.
4759 Look for the stepping thread and a potential step-over thread with
4760 a single loop.
4761 (currently_stepping_or_nexting_callback): Delete.
4762
4763 2014-04-22 Nick Clifton <nickc@redhat.com>
4764
4765 * NEWS: Mention that ARM sim now supports tracing.
4766
4767 2014-04-22 Yao Qi <yao@codesourcery.com>
4768
4769 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4770 to ...
4771 * tracefile.c (tracefile_fetch_registers): ... it. New
4772 function.
4773 * tracefile.h (tracefile_fetch_registers): Declare.
4774 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4775 tracefile_fetch_registers.
4776
4777 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4778
4779 PR gdb/14018
4780 * windows-nat.c (thread_rec): Don't display a warning when
4781 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4782 fails for any reason, set th->suspended to -1, so that we don't
4783 try to resume such a thread. Also, don't return NULL in these
4784 cases, to avoid completely ruin the session due to "PC register is
4785 not available" error.
4786 (do_windows_fetch_inferior_registers): Check errors in
4787 GetThreadContext call.
4788 (windows_continue): Accept an additional argument KILLED; if not
4789 zero, ignore errors in the SetThreadContext call, since the
4790 inferior was killed and is shutting down.
4791 (windows_resume, get_windows_debug_event)
4792 (windows_create_inferior, windows_mourn_inferior)
4793 (windows_kill_inferior): All callers of windows_continue changed
4794 to adjust to its new calling sequence.
4795
4796 2014-04-19 Yao Qi <yao@codesourcery.com>
4797
4798 * ctf.c (ctf_open): Call post_create_inferior.
4799
4800 2014-04-19 Yao Qi <yao@codesourcery.com>
4801
4802 * ctf.c (handle_id): New static variable.
4803 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4804 value. Get the declaration of event "register" and get length
4805 of field "contents".
4806
4807 2014-04-19 Yao Qi <yao@codesourcery.com>
4808
4809 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4810
4811 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4812
4813 * valops.c (oload_method_static): Remove unnecessary argument
4814 METHOD. Update all callers.
4815
4816 2014-04-18 Pedro alves <palves@redhat.com>
4817 Tom Tromey <tromey@redhat.com>
4818
4819 PR backtrace/15558
4820 * frame.c (get_prev_frame_1): Rename to ...
4821 (get_prev_frame_always): ... this, and make extern. Adjust.
4822 (skip_artificial_frames): Use get_prev_frame_always.
4823 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4824 (get_frame_unwind_stop_reason): Adjust to rename.
4825 * frame.h (get_prev_frame_always): Declare.
4826 * inline-frame.c: Include frame.h.
4827 (inline_frame_this_id): Use get_prev_frame_always.
4828
4829 2014-04-18 Tristan Gingold <gingold@adacore.com>
4830
4831 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4832 code by using bfd_mach_o_get_base_address.
4833
4834 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4835
4836 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4837 (spu_ax_pseudo_register_collect): New function.
4838 (spu_ax_pseudo_register_push_stack): Likewise.
4839 (spu_dwarf_reg_to_regnum): Likewise.
4840 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4841
4842 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4843
4844 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4845 Replace FRAME argument with FRAME_ID.
4846 * gdbarch.c, gdbarch.h: Regenerate.
4847 * findvar.c (default_value_from_register): Add GDBARCH argument;
4848 replace FRAME by FRAME_ID. No longer call get_frame_id.
4849 (value_from_register): Update call to gdbarch_value_from_register.
4850 * value.h (default_value_from_register): Update prototype.
4851 * s390-linux-tdep.c (s390_value_from_register): Update interface
4852 and call to default_value_from_register.
4853 * spu-tdep.c (spu_value_from_register): Likewise.
4854
4855 * findvar.c (address_from_register): Remove TYPE argument.
4856 Do not call value_from_register; use gdbarch_value_from_register
4857 with null_frame_id instead.
4858 * value.h (address_from_register): Update prototype.
4859 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4860 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4861 address_from_register interface change.
4862
4863 2014-04-17 Yao Qi <yao@codesourcery.com>
4864
4865 * gdbtypes.h: Update comments to link to types and macros'
4866 definitions.
4867
4868 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4869
4870 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4871
4872 2014-04-16 Keith Seitz <keiths@redhat.com>
4873
4874 PR gdb/15827
4875 * dwarf2read.c (skip_one_die): Check that all relative-offset
4876 sibling DIEs fall within range of the current reader's buffer.
4877 (read_partial_die): Likewise.
4878
4879 2014-04-16 Keith Seitz <keiths@redhat.com>
4880
4881 PR c++/16597
4882 * cp-namespace.c (lookup_symbol_file): If the type name of
4883 `this' is NULL, return immediately.
4884
4885 2014-04-14 Keith Seitz <keiths@redhat.com>
4886
4887 PR c++/16253
4888 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4889 from symbol_matches_domain in symtab.c. All local callers
4890 of symbol_matches_domain updated.
4891 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4892 search STRUCT_DOMAIN.
4893 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4894 independently. standard_lookup will do that automatically.
4895 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4896 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4897 (cp_lookup_symbol_in_namespace): Likewise.
4898 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4899 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4900 may return a STRUCT_DOMAIN match.
4901 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4902 * cp-support.c: Include language.h.
4903 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4904 VAR_DOMAIN.
4905 * psymtab.c (match_partial_symbol): Compare the requested
4906 domain with the symbol's domain directly.
4907 (lookup_partial_symbol): Likewise.
4908 * symtab.c (lookup_symbol_in_language): Explain when/why
4909 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4910 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4911 appropriate languages.
4912 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4913 and moved to ada-lang.c
4914 (lookup_block_symbol): Explain that this function only returns
4915 symbol matching the requested DOMAIN.
4916 Compare the requested domain with the symbol's domain directly.
4917 (iterate_over_symbols): Compare the requested domain with the
4918 symbol's domain directly.
4919 * symtab.h (symbol_matches_domain): Remove.
4920
4921 2014-04-14 Tom Tromey <tromey@redhat.com>
4922
4923 PR c++/15246:
4924 * c-exp.y (type_aggregate_p): New function.
4925 (qualified_name, classify_inner_name): Use it.
4926 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4927 and TYPE_TARGET_TYPE of an enum type.
4928 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4929 an enum type.
4930 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4931 handle TYPE_DECLARED_CLASS.
4932 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4933 types.
4934 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4935 * valops.c (enum_constant_from_type): New function.
4936 (value_aggregate_elt): Use it.
4937 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4938 TYPE_CODE_ENUM.
4939
4940 2014-04-14 Tom Tromey <tromey@redhat.com>
4941
4942 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4943 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4944 const.
4945 * value.h (value_aggregate_elt): Update.
4946
4947 2014-04-14 Tom Tromey <tromey@redhat.com>
4948
4949 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4950
4951 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4952
4953 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4954 (evaluate_subexp_standard): Pass noside argument.
4955 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4956 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4957 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4958 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4959 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4960
4961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4962
4963 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4964 points to a constant blob.
4965
4966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4967
4968 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4969 property and store it as the high bound and flag the range accordingly.
4970 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4971 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4972 * gdbtypes.h (enum range_flags): New enum.
4973 (struct range_bounds): Add flags member.
4974
4975 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4976
4977 * c-typeprint.c (c_type_print_varspec_suffix): Added
4978 check for not yet resolved high bound. If unresolved, print
4979 "variable length" string to the console instead of random
4980 length.
4981
4982 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4983
4984 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4985 value.
4986 (ada_template_to_fixed_record_type_1): Likewise.
4987 (ada_to_fixed_type_1): Likewise.
4988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4989 (cp_print_value): Likewise.
4990 * d-valprint.c (dynamic_array_type): Likewise.
4991 * findvar.c (address_of_variable): Likewise.
4992 * jv-valprint.c (java_value_print): Likewise.
4993 * valops.c (value_ind): Likewise.
4994 * value.c (coerce_ref): Likewise.
4995
4996 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4997
4998 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4999 value and retrieve the dynamic type size.
5000
5001 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5002
5003 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5004 passed to sizeof is dynamic evaluate the argument to compute the length.
5005
5006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5007 Joel Brobecker <brobecker@adacore.com>
5008
5009 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5010 (dwarf2_evaluate_property): New function.
5011 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5012 * dwarf2read.c (attr_to_dynamic_prop): New function.
5013 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5014 attribute.
5015 * gdbtypes.c: Include dwarf2loc.h.
5016 (is_dynamic_type): New function.
5017 (resolve_dynamic_type): New function.
5018 (resolve_dynamic_bounds): New function.
5019 (get_type_length): New function.
5020 (check_typedef): Use get_type_length to compute type length.
5021 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5022 (TYPE_LOW_BOUND_KIND): New macro.
5023 (is_dynamic_type): New function prototype.
5024 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5025 to resolve dynamic properties of the type. Update comment.
5026 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5027
5028 2014-04-14 Richard Henderson <rth@redhat.com>
5029
5030 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5031
5032 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5033 Doug Evans <xdje42@gmail.com>
5034
5035 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5036 dereference TYPE_CODE_REF values.
5037
5038 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5039
5040 Revert the following changes due to regressions:
5041
5042 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5043 (dwarf2_evaluate_property): New function.
5044 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5045 * dwarf2read.c (attr_to_dynamic_prop): New function.
5046 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5047 attribute.
5048 * gdbtypes.c: Include dwarf2loc.h.
5049 (is_dynamic_type): New function.
5050 (resolve_dynamic_type): New function.
5051 (resolve_dynamic_bounds): New function.
5052 (get_type_length): New function.
5053 (check_typedef): Use get_type_length to compute type length.
5054 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5055 (TYPE_LOW_BOUND_KIND): New macro.
5056 (is_dynamic_type): New function prototype.
5057 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5058 to resolve dynamic properties of the type. Update comment.
5059 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5060
5061 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5062 passed to sizeof is dynamic evaluate the argument to compute the length.
5063
5064 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5065 value and retrieve the dynamic type size.
5066
5067 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5068 (ada_template_to_fixed_record_type_1): Likewise.
5069 (ada_to_fixed_type_1): Likewise.
5070 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5071 (cp_print_value): Likewise.
5072 * d-valprint.c (dynamic_array_type): Likewise.
5073 * eval.c (evaluate_subexp_with_coercion): Likewise.
5074 * findvar.c (address_of_variable): Likewise.
5075 * jv-valprint.c (java_value_print): Likewise.
5076 * valops.c (value_ind): Likewise.
5077 * value.c (coerce_ref): Likewise.
5078
5079 * c-typeprint.c (c_type_print_varspec_suffix): Added
5080 check for not yet resolved high bound. If unresolved, print
5081 "variable length" string to the console instead of random
5082 length.
5083
5084 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5085 property and store it as the high bound and flag the range accordingly.
5086 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5087 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5088 * gdbtypes.h (enum range_flags): New enum.
5089 (struct range_bounds): Add flags member.
5090
5091 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5092 points to a constant blob.
5093
5094 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5095 (evaluate_subexp_standard): Pass noside argument.
5096 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5097 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5098 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5099 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5100 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5101
5102 2014-04-11 Keith Seitz <keiths@redhat.com>
5103
5104 PR c++/16675
5105 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5106 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5107 reference types.
5108
5109 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5110
5111 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5112 (evaluate_subexp_standard): Pass noside argument.
5113 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5114 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5115 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5116 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5117 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5118
5119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5120
5121 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5122 points to a constant blob.
5123
5124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5125
5126 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5127 property and store it as the high bound and flag the range accordingly.
5128 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5129 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5130 * gdbtypes.h (enum range_flags): New enum.
5131 (struct range_bounds): Add flags member.
5132
5133 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5134
5135 * c-typeprint.c (c_type_print_varspec_suffix): Added
5136 check for not yet resolved high bound. If unresolved, print
5137 "variable length" string to the console instead of random
5138 length.
5139
5140 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5141
5142 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5143 (ada_template_to_fixed_record_type_1): Likewise.
5144 (ada_to_fixed_type_1): Likewise.
5145 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5146 (cp_print_value): Likewise.
5147 * d-valprint.c (dynamic_array_type): Likewise.
5148 * eval.c (evaluate_subexp_with_coercion): Likewise.
5149 * findvar.c (address_of_variable): Likewise.
5150 * jv-valprint.c (java_value_print): Likewise.
5151 * valops.c (value_ind): Likewise.
5152 * value.c (coerce_ref): Likewise.
5153
5154 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5155
5156 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5157 value and retrieve the dynamic type size.
5158
5159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5160
5161 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5162 passed to sizeof is dynamic evaluate the argument to compute the length.
5163
5164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5165
5166 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5167 (dwarf2_evaluate_property): New function.
5168 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5169 * dwarf2read.c (attr_to_dynamic_prop): New function.
5170 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5171 attribute.
5172 * gdbtypes.c: Include dwarf2loc.h.
5173 (is_dynamic_type): New function.
5174 (resolve_dynamic_type): New function.
5175 (resolve_dynamic_bounds): New function.
5176 (get_type_length): New function.
5177 (check_typedef): Use get_type_length to compute type length.
5178 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5179 (TYPE_LOW_BOUND_KIND): New macro.
5180 (is_dynamic_type): New function prototype.
5181 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5182 to resolve dynamic properties of the type. Update comment.
5183 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5184
5185 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5186
5187 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5188 declaring high/low bounds and change uses accordingly. Call
5189 create_range_type instead of create_static_range_type.
5190 * gdbtypes.c (create_range_type): New function.
5191 (create_range_type): Convert bounds into struct bound_prop and pass
5192 them to create_range_type.
5193 * gdbtypes.h (struct bound_prop): New struct.
5194 (create_range_type): New function prototype.
5195 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5196 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5197 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5198 part of the bound.
5199 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5200
5201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5202
5203 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5204 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5205 * ada-lang.c: All uses of create_range_type updated.
5206 * coffread.c: All uses of create_range_type updated.
5207 * dwarf2read.c: All uses of create_range_type updated.
5208 * f-exp.y: All uses of create_range_type updated.
5209 * m2-valprint.c: All uses of create_range_type updated.
5210 * mdebugread.c: All uses of create_range_type updated.
5211 * stabsread.c: All uses of create_range_type updated.
5212 * valops.c: All uses of create_range_type updated.
5213 * valprint.c: All uses of create_range_type updated.
5214
5215 2014-04-10 Pedro Alves <palves@redhat.com>
5216
5217 * breakpoint.c (single_step_breakpoints)
5218 (single_step_gdbarch): Move up in the file.
5219 (one_breakpoint_xfer_memory): New function, factored out from ...
5220 (breakpoint_xfer_memory): ... here. Also process single-step
5221 breakpoints.
5222
5223 2014-04-09 Tristan Gingold <gingold@adacore.com>
5224
5225 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5226 comments.
5227 (darwin_decode_exception_message): Free port only after use.
5228
5229 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5230
5231 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5232 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5233 when setting the size of call_length.
5234
5235 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5236
5237 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5238 dereference TYPE_CODE_REF values.
5239
5240 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5241
5242 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5243 end of warning message.
5244
5245 2014-04-03 Doug Evans <dje@google.com>
5246
5247 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5248 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5249
5250 2014-04-02 Alan Modra <amodra@gmail.com>
5251
5252 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5253 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5254 (struct symbol_file_add_from_memory_args): Add size field.
5255 (find_vdso_size): New function.
5256 (add_vsyscall_page): Attempt to find vdso size.
5257
5258 2014-04-01 Doug Evans <dje@google.com>
5259
5260 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5261
5262 2014-04-01 Tristan Gingold <gingold@adacore.com>
5263
5264 * darwin-nat.c (darwin_encode_reply): Add prototype.
5265 (darwin_decode_exception_message): Reply to unknown inferiors.
5266 (darwin_decode_message): Handle message by id. Ignore message
5267 to unknown inferior.
5268 (darwin_wait): Discard unknown messages, add debug trace.
5269
5270 2014-03-31 Doug Evans <dje@google.com>
5271
5272 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5273 comp_dir_string.
5274
5275 2014-03-31 Doug Evans <dje@google.com>
5276
5277 New option "set print symbol-loading".
5278 * NEWS: Mention it.
5279 * solib.c (solib_read_symbols): Only print symbol loading messages
5280 if requested.
5281 (solib_add): If symbol loading is in "brief" mode, notify user
5282 symbols are being loaded.
5283 (reload_shared_libraries_1): Ditto.
5284 * symfile.c (print_symbol_loading_off): New static global.
5285 (print_symbol_loading_brief): New static global.
5286 (print_symbol_loading_full): New static global.
5287 (print_symbol_loading_enums): New static global.
5288 (print_symbol_loading): New static global.
5289 (print_symbol_loading_p): New function.
5290 (symbol_file_add_with_addrs): Only print symbol loading messages
5291 if requested.
5292 (_initialize_symfile): Register "print symbol-loading" set/show
5293 command.
5294 * symfile.h (print_symbol_loading_p): Declare.
5295
5296 2014-03-30 Doug Evans <xdje42@gmail.com>
5297
5298 * infrun.c (set_last_target_status): New function.
5299 (handle_inferior_event): Call it.
5300
5301 2014-03-30 Doug Evans <xdje42@gmail.com>
5302
5303 * inferior.h (enum stop_kind): Improve comment.
5304
5305 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5306
5307 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5308 a reference, strip the reference layer before calling
5309 the lang_ops value_has_mutated callback.
5310
5311 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5312
5313 Remove some globals from our parser.
5314 * language.c (unk_lang_parser): Add "struct parser_state"
5315 argument.
5316 * language.h (struct language_defn) <la_parser>: Likewise.
5317 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5318 (initialize_expout): Add "struct parser_state" argument.
5319 Rewrite function to use the parser state.
5320 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5321 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5322 write_exp_elt_longcst, write_exp_elt_dblcst,
5323 write_exp_elt_decfloatcst, write_exp_elt_type,
5324 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5325 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5326 write_dollar_variable): Likewise.
5327 (parse_exp_in_context_1): Use parser state.
5328 (insert_type_address_space): Add "struct parser_state" argument.
5329 Use parser state.
5330 (increase_expout_size): New function.
5331 * parser-defs.h: Forward declare "struct language_defn" and
5332 "struct parser_state".
5333 (expout, expout_size, expout_ptr): Remove extern declarations.
5334 (parse_gdbarch, parse_language): Rewrite macro declarations to
5335 accept the parser state.
5336 (struct parser_state): New struct.
5337 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5338 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5339 write_exp_elt_decfloatcst, write_exp_elt_type,
5340 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5341 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5342 write_exp_msymbol, write_dollar_variable,
5343 mark_struct_expression, insert_type_address_space): Add "struct
5344 parser_state" argument.
5345 (increase_expout_size): New function.
5346 * utils.c (do_clear_parser_state): New function.
5347 (make_cleanup_clear_parser_state): Likewise.
5348 * utils.h (make_cleanup_clear_parser_state): New function
5349 prototype.
5350 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5351 Update calls to write_exp* in order to pass the parser state.
5352 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5353 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5354 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5355 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5356 * stap-probe.c (stap_parse_register_operand): Likewise.
5357 (stap_parse_single_operand): Likewise.
5358 (stap_parse_argument_1): Likewise.
5359 (stap_parse_argument): Use parser state.
5360 * stap-probe.h: Include "parser-defs.h".
5361 (struct stap_parse_info) <pstate>: New field.
5362 * c-exp.y (parse_type): Rewrite to use parser state.
5363 (yyparse): Redefine to c_parse_internal.
5364 (pstate): New global variable.
5365 (parse_number): Add "struct parser_state" argument.
5366 (write_destructor_name): Likewise.
5367 (type_exp): Update calls to write_exp* and similars in order to
5368 use parser state.
5369 (exp1, exp, variable, qualified_name, space_identifier,
5370 typename, typebase): Likewise.
5371 (write_destructor_name, parse_number, lex_one_token,
5372 classify_name, classify_inner_name, c_parse): Add "struct
5373 parser_state" argument. Update function to use parser state.
5374 * c-lang.h: Forward declare "struct parser_state".
5375 (c_parse): Add "struct parser_state" argument.
5376 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5377 (yyparse): Redefine macro to ada_parse_internal.
5378 (pstate): New variable.
5379 (write_int, write_object_renaming, write_var_or_type,
5380 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5381 type_int, type_long, type_long_long, type_float, type_double,
5382 type_long_double, type_char, type_boolean, type_system_address):
5383 Add "struct parser_state" argument.
5384 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5385 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5386 var_or_type, aggregate, aggregate_component_list,
5387 positional_list, others, component_group,
5388 component_associations): Update calls to write_exp* and similar
5389 functions in order to use parser state.
5390 (ada_parse, write_var_from_sym, write_int,
5391 write_exp_op_with_string, write_object_renaming,
5392 find_primitive_type, write_selectors, write_ambiguous_var,
5393 write_var_or_type, write_name_assoc, type_int, type_long,
5394 type_long_long, type_float, type_double, type_long_double,
5395 type_char, type_boolean, type_system_address): Add "struct
5396 parser_state" argument. Adjust function to use parser state.
5397 * ada-lang.c (parse): Likewise.
5398 * ada-lang.h: Forward declare "struct parser_state".
5399 (ada_parse): Add "struct parser_state" argument.
5400 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5401 calls to both functions.
5402 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5403 parser state.
5404 (yyparse): Redefine macro to f_parse_internal.
5405 (pstate): New variable.
5406 (parse_number): Add "struct parser_state" argument.
5407 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5408 and similars in order to use parser state.
5409 (parse_number): Adjust code to use parser state.
5410 (yylex): Likewise.
5411 (f_parse): New function.
5412 * f-lang.h: Forward declare "struct parser_state".
5413 (f_parse): Add "struct parser_state" argument.
5414 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5415 parser state.
5416 (yyparse): Redefine macro for java_parse_internal.
5417 (pstate): New variable.
5418 (push_expression_name, push_expression_name, insert_exp): Add
5419 "struct parser_state" argument.
5420 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5421 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5422 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5423 PostIncrementExpression, PostDecrementExpression,
5424 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5425 UnaryExpressionNotPlusMinus, CastExpression,
5426 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5427 RelationalExpression, EqualityExpression, AndExpression,
5428 ExclusiveOrExpression, InclusiveOrExpression,
5429 ConditionalAndExpression, ConditionalOrExpression,
5430 ConditionalExpression, Assignment, LeftHandSide): Update
5431 calls to write_exp* and similars in order to use parser state.
5432 (parse_number): Ajust code to use parser state.
5433 (yylex): Likewise.
5434 (java_parse): New function.
5435 (push_variable): Add "struct parser_state" argument. Adjust
5436 code to user parser state.
5437 (push_fieldnames, push_qualified_expression_name,
5438 push_expression_name, insert_exp): Likewise.
5439 * jv-lang.h: Forward declare "struct parser_state".
5440 (java_parse): Add "struct parser_state" argument.
5441 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5442 parser state.
5443 (yyparse): Redefine macro to m2_parse_internal.
5444 (pstate): New variable.
5445 (type_exp, exp, fblock, variable, type): Update calls to
5446 write_exp* and similars to use parser state.
5447 (yylex): Likewise.
5448 (m2_parse): New function.
5449 * m2-lang.h: Forward declare "struct parser_state".
5450 (m2_parse): Add "struct parser_state" argument.
5451 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5452 * objc-lang.h: Forward declare "struct parser_state".
5453 (end_msglist): Add "struct parser_state" argument.
5454 * p-exp.y (parse_type): Rewrite macro to use parser state.
5455 (yyparse): Redefine macro to pascal_parse_internal.
5456 (pstate): New variable.
5457 (parse_number): Add "struct parser_state" argument.
5458 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5459 write_exp* and similars in order to use parser state.
5460 (parse_number, yylex): Adjust code to use parser state.
5461 (pascal_parse): New function.
5462 * p-lang.h: Forward declare "struct parser_state".
5463 (pascal_parse): Add "struct parser_state" argument.
5464 * go-exp.y (parse_type): Rewrite macro to use parser state.
5465 (yyparse): Redefine macro to go_parse_internal.
5466 (pstate): New variable.
5467 (parse_number): Add "struct parser_state" argument.
5468 (type_exp, exp1, exp, variable, type): Update calls to
5469 write_exp* and similars in order to use parser state.
5470 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5471 to use parser state.
5472 (go_parse): Likewise.
5473 * go-lang.h: Forward declare "struct parser_state".
5474 (go_parse): Add "struct parser_state" argument.
5475
5476 2014-03-27 Doug Evans <dje@google.com>
5477
5478 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5479
5480 2014-03-27 Doug Evans <dje@google.com>
5481
5482 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5483 Remove argument abbrev_section. All callers updated.
5484
5485 2014-03-27 Doug Evans <dje@google.com>
5486
5487 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5488 addr_base, ranges_base.
5489
5490 2014-03-26 Keith Seitz <keiths@redhat.com>
5491
5492 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5493 types, not VAR_DOMAIN.
5494
5495 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5496
5497 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5498 "ra" registers.
5499 * features/nios2-linux.c: Regenerated.
5500 * features/nios2.c: Regenerated.
5501
5502 2014-03-25 Pedro Alves <palves@redhat.com>
5503
5504 * cli/cli-script.c (script_from_file): Force the interpreter to
5505 sync mode.
5506
5507 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5508
5509 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5510 small stack allocation.
5511
5512 2014-03-24 Tristan Gingold <gingold@adacore.com>
5513
5514 * darwin-nat.c (exc_server): Remove unused prototype.
5515 (darwin_dump_message): Correctly display data on x86_64.
5516 (darwin_encode_reply): Fix style.
5517 Add comments and fix indentation.
5518
5519 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5520
5521 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5522
5523 2014-03-22 Doug Evans <xdje42@gmail.com>
5524
5525 * infcmd.c: Whitespace fixes.
5526 (interrupt_command): Merge two function comments into one.
5527
5528 2014-03-22 Doug Evans <xdje42@gmail.com>
5529
5530 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5531 All uses updated.
5532
5533 2014-03-22 Yao Qi <yao@codesourcery.com>
5534
5535 * remote.c (target_read_live_memory): Remove.
5536 (memory_xfer_live_readonly_partial): Rename it to
5537 remote_xfer_live_readonly_partial. Remove argument 'object'.
5538 All callers updated. Call remote_read_bytes_1
5539 instead of target_read_live_memory.
5540 * tracepoint.c (set_traceframe_number): Remove.
5541 (make_cleanup_restore_traceframe_number): Likewise .
5542 * tracepoint.h (set_traceframe_number): Remove declaration.
5543 (make_cleanup_restore_traceframe_number): Likewise.
5544
5545 2014-03-22 Yao Qi <yao@codesourcery.com>
5546
5547 * remote.c (remote_read_bytes): Move code on reading from the
5548 remote stub to ...
5549 (remote_read_bytes_1): ... here. New function.
5550
5551 2014-03-22 Yao Qi <yao@codesourcery.com>
5552
5553 * ctf.c (ctf_xfer_partial): Check the return value of
5554 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5555 return TARGET_XFER_UNAVAILABLE.
5556 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5557 * target.c (target_read_live_memory): Move it to remote.c.
5558 (memory_xfer_live_readonly_partial): Likewise.
5559 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5560 * remote.c (target_read_live_memory): Moved from target.c.
5561 (memory_xfer_live_readonly_partial): Likewise.
5562 (remote_read_bytes): Factored out from
5563 memory_xfer_partial_1.
5564
5565 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5566
5567 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5568 NULL pointer.
5569
5570 2014-03-21 Pedro Alves <palves@redhat.com>
5571
5572 * infrun.c (normal_stop): Extend comment.
5573
5574 2014-03-21 Hui Zhu <hui@codesourcery.com>
5575 Pedro Alves <palves@redhat.com>
5576
5577 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5578 static buffer.
5579 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5580 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5581 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5582
5583 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5584
5585 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5586 `z' formatted output modifier.
5587
5588 2014-03-20 Tom Tromey <tromey@redhat.com>
5589 Sergio Durigan Junior <sergiodj@redhat.com>
5590
5591 * probe.c (parse_probes): Turn assert into an ordinary error.
5592 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5593 exceptions when parsing probes. Rearrange the code for clarity.
5594
5595 2014-03-20 Tom Tromey <tromey@redhat.com>
5596
5597 PR gdb/14135
5598 * top.c (execute_command): Only dispatch events if the command
5599 started the target.
5600
5601 2014-03-20 Tom Tromey <tromey@redhat.com>
5602
5603 PR cli/15718
5604 * infcall.c: Include event-top.h.
5605 (run_inferior_call): Call async_disable_stdin if needed.
5606
5607 2014-03-20 Pedro Alves <palves@redhat.com>
5608
5609 * infrun.c (prepare_to_proceed): Delete.
5610 (thread_still_needs_step_over): New function.
5611 (find_thread_needs_step_over): New function.
5612 (proceed): If the current thread needs a step-over, set its
5613 steping_over_breakpoint flag. Adjust to use
5614 find_thread_needs_step_over instead of prepare_to_proceed.
5615 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5616 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5617 breakpoint.
5618 (switch_back_to_stepped_thread): Step over breakpoints of all
5619 threads not the stepping thread, before switching back to the
5620 stepping thread.
5621
5622 2014-03-20 Pedro Alves <palves@redhat.com>
5623
5624 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5625 extern.
5626 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5627 * infrun.c (saved_singlestep_ptid)
5628 (stepping_past_singlestep_breakpoint): Delete.
5629 (resume): Remove stepping_past_singlestep_breakpoint handling.
5630 (proceed): Store the prev_pc of the stepping thread too.
5631 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5632 singlestep_pc.
5633 (enum infwait_states): Delete infwait_thread_hop_state.
5634 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5635 field.
5636 (handle_inferior_event): Adjust.
5637 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5638 handling and the thread-hop code. Before removing single-step
5639 breakpoints, check whether the thread hit a single-step breakpoint
5640 of another thread. If it did, the trap is not a random signal.
5641 (switch_back_to_stepped_thread): If the event thread hit a
5642 single-step breakpoint, unblock it before switching to the
5643 stepping thread. Handle the case of the stepped thread having
5644 advanced already.
5645 (keep_going): Handle the case of the current thread moving past a
5646 single-step breakpoint.
5647
5648 2014-03-20 Pedro Alves <palves@redhat.com>
5649
5650 PR breakpoints/7143
5651 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5652 are being stepped over.
5653 (breakpoint_address_match): Make extern.
5654 * breakpoint.h (breakpoint_address_match): New declaration.
5655 * inferior.h (stepping_past_instruction_at): New declaration.
5656 * infrun.c (struct step_over_info): New type.
5657 (step_over_info): New global.
5658 (set_step_over_info, clear_step_over_info)
5659 (stepping_past_instruction_at): New functions.
5660 (handle_inferior_event): Clear the step-over info when
5661 trap_expected is cleared.
5662 (resume): Remove now stale comment.
5663 (clear_proceed_status): Clear step-over info.
5664 (proceed): Adjust step-over handling to set or clear the step-over
5665 info instead of removing all breakpoints.
5666 (handle_signal_stop): When setting up a thread-hop, don't remove
5667 breakpoints here.
5668 (stop_stepping): Clear step-over info.
5669 (keep_going): Adjust step-over handling to set or clear step-over
5670 info and then always inserting breakpoints, instead of removing
5671 all breakpoints when stepping over one.
5672
5673 2014-03-20 Pedro Alves <palves@redhat.com>
5674
5675 * infrun.c (previous_inferior_ptid): Adjust comment.
5676 (deferred_step_ptid): Delete.
5677 (infrun_thread_ptid_changed, prepare_to_proceed)
5678 (init_wait_for_inferior): Adjust.
5679 (handle_signal_stop): Delete deferred_step_ptid handling.
5680
5681 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5682
5683 PR gdb/15358
5684 * defs.h (sync_quit_force_run): New declaration.
5685 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5686 * event-top.c (async_sigterm_handler): New declaration.
5687 (async_sigterm_token): New variable.
5688 (async_init_signals): Create also async_sigterm_token.
5689 (async_sigterm_handler): New function.
5690 (sync_quit_force_run): New variable.
5691 (handle_sigterm): Replace quit_force call by other calls.
5692 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5693
5694 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5695
5696 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5697 offset into SPE pseudo registers.
5698
5699 2014-03-18 Pedro Alves <palves@redhat.com>
5700
5701 PR gdb/13860
5702 * inferior.h (print_stop_event): Declare.
5703 * infrun.c (print_stop_event): New, factored out from ...
5704 (normal_stop): ... this.
5705 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5706 of bpstat_print/print_stack_frame.
5707
5708 2014-03-17 Tom Tromey <tromey@redhat.com>
5709
5710 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5711
5712 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5713
5714 * ada-lang.c (decode_constrained_packed_array): Perform a
5715 minimal coercion for reference with coerce_ref instead of
5716 ada_coerce_ref.
5717
5718 2014-03-17 Tristan Gingold <gingold@adacore.com>
5719
5720 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5721 (darwin_solib_create_inferior_hook): Emit a warning if version
5722 is unhandled.
5723
5724 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5725
5726 * python/py-value.c (get_field_flag): Cast flag_name argument to
5727 PyObject_GetAttrString to support Python 2.4.
5728
5729 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5732 (Global Maintainers): Remove Jan Kratochvil.
5733
5734 2014-03-14 Pedro Alves <palves@redhat.com>
5735
5736 * inferior.h (terminal_ours_for_output): Rename to ...
5737 (child_terminal_ours_for_output): ... this.
5738 (terminal_save_ours): Rename to ...
5739 (child_terminal_save_ours): ... this.
5740 (terminal_ours): Rename to ...
5741 (child_terminal_ours): ... this.
5742 (terminal_inferior): Rename to ...
5743 (child_terminal_inferior): ... this.
5744 (terminal_init_inferior): Rename to ...
5745 (child_terminal_init_inferior): ... this.
5746 (terminal_init_inferior_with_pgrp): Rename to ...
5747 (child_terminal_init_inferior_with_pgrp): ... this.
5748 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5749 (child_terminal_init_with_pgrp): ... this.
5750 (terminal_save_ours): Rename to ...
5751 (child_terminal_save_ours): ... this.
5752 (terminal_init_inferior): Rename to ...
5753 (child_terminal_init): ... this. Adjust.
5754 (terminal_inferior): Rename to ...
5755 (child_terminal_inferior): ... this.
5756 (terminal_ours_for_output): Rename to ...
5757 (child_terminal_ours_for_output): ... this. Adjust.
5758 (terminal_ours): Rename to ...
5759 (child_terminal_ours): ... this.
5760 (terminal_ours_1): Rename to ...
5761 (child_terminal_ours_1): ... this. Adjust.
5762 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5763 * windows-nat.c (do_initial_windows_stuff): Adjust.
5764 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5765 (gnu_terminal_init): ... this. Adjust.
5766 (gnu_target): Adjust.
5767 * inf-child.c (inf_child_target): Adjust.
5768
5769 2014-03-13 Doug Evans <xdje42@gmail.com>
5770
5771 PR guile/16612
5772 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5773 new eq?-hashtab.
5774
5775 2014-03-13 Doug Evans <xdje42@gmail.com>
5776
5777 * value.c (record_latest_value): Call release_value_or_incref
5778 instead of release_value.
5779
5780 2014-03-13 Pedro Alves <palves@redhat.com>
5781
5782 * procfs.c (procfs_target): Don't override to_shortname,
5783 to_longname or to_doc.
5784
5785 2014-03-13 Pedro Alves <palves@redhat.com>
5786
5787 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5788 Unix in user visible strings.
5789
5790 2014-03-12 Stan Shebs <stan@codesourcery.com>
5791
5792 * gdbtypes.h: Annotate comments for Doxygen, add a page
5793 block comment with some general info.
5794
5795 2014-03-12 Pedro Alves <palves@redhat.com>
5796
5797 * infcmd.c (prepare_execution_command): New function, factored out
5798 from several execution commands.
5799 (run_command_1, continue_command, step_1, jump_command)
5800 (signal_command, until_command, advance_command, finish_command)
5801 (attach_command): Use prepare_execution_command.
5802
5803 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5804
5805 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5806 (MAX_BPTS): Define.
5807 (MAX_WPTS): Define.
5808 (struct arm_linux_thread_points): Removed.
5809 (struct arm_linux_process_info): New.
5810 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5811 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5812 (arm_linux_find_breakpoints_by_tid): Removed.
5813 (struct arch_lwp_info): New.
5814 (arm_linux_find_process_pid): New functions.
5815 (arm_linux_add_process): New functions.
5816 (arm_linux_process_info_get): New functions.
5817 (arm_linux_forget_process): New function.
5818 (arm_linux_get_debug_reg_state): New function.
5819 (struct update_registers_data): New.
5820 (update_registers_callback): New function.
5821 (arm_linux_insert_hw_breakpoint1): Updated.
5822 (arm_linux_remove_hw_breakpoint1): Updated.
5823 (arm_linux_insert_hw_breakpoint): Updated.
5824 (arm_linux_remove_hw_breakpoint): Updated.
5825 (arm_linux_insert_watchpoint): Updated.
5826 (arm_linux_remove_watchpoint): Updated.
5827 (arm_linux_new_thread): Updated.
5828 (arm_linux_prepare_to_resume): New function.
5829 (arm_linux_new_fork): New function.
5830 (_initialize_arm_linux_nat): Updated.
5831
5832 2014-03-12 Pedro Alves <palves@redhat.com>
5833
5834 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5835
5836 2014-03-12 Tom Tromey <tromey@redhat.com>
5837
5838 * inf-child.c (return_zero): New function.
5839 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5840 * aix-thread.c (aix_thread_inferior_created): New function.
5841 (aix_thread_attach): Remove.
5842 (init_aix_thread_ops): Don't set to_attach.
5843 (_initialize_aix_thread): Register inferior_created observer.
5844 * corelow.c (init_core_ops): Don't set to_attach or
5845 to_create_inferior.
5846 * exec.c (init_exec_ops): Don't set to_attach or
5847 to_create_inferior.
5848 * infcmd.c (run_command_1): Use find_run_target. Make direct
5849 target calls.
5850 (attach_command): Use find_attach_target. Make direct target
5851 calls.
5852 * record-btrace.c (init_record_btrace_ops): Don't set
5853 to_create_inferior.
5854 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5855 Remove.
5856 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5857 set to_create_inferior.
5858 * target.c (complete_target_initialization): Add assertion.
5859 (target_create_inferior): Remove.
5860 (find_default_attach, find_default_create_inferior): Remove.
5861 (find_attach_target, find_run_target): New functions.
5862 (find_default_is_async_p, find_default_can_async_p)
5863 (target_supports_non_stop, target_attach): Remove.
5864 (init_dummy_target): Don't set to_create_inferior or
5865 to_supports_non_stop.
5866 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5867 TARGET_DEFAULT_FUNC.
5868 <to_create_inferior>: Add comment.
5869 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5870 TARGET_DEFAULT_RETURN.
5871 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5872 (find_attach_target, find_run_target): Declare.
5873 (target_create_inferior): Remove.
5874 (target_has_execution_1): Update comment.
5875 (target_supports_non_stop): Remove.
5876 * target-delegates.c: Rebuild.
5877
5878 2014-03-12 Pedro Alves <palves@redhat.com>
5879
5880 * inf-child.h: Update comment to not mention Unix.
5881
5882 2014-03-12 Pedro Alves <palves@redhat.com>
5883
5884 * inf-child.c: Update top comment to not mention Unix. Add
5885 generic comment describing how this target is meant to be used.
5886 (inf_child_post_attach, inf_child_post_startup_inferior)
5887 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5888 Unix in comment.
5889
5890 2014-03-12 Pedro Alves <palves@redhat.com>
5891
5892 * nto-procfs.c: Include inf-child.h.
5893 (procfs_ops): Delete global.
5894 (procfs_can_run): Delete method.
5895 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5896 target pointer instead of referencing procfs_ops.
5897 (procfs_prepare_to_store): Delete.
5898 (init_procfs_ops): Delete function.
5899 (procfs_target): New function, based on init_procfs_ops, but
5900 inherit inf_child_target.
5901 (_initialize_procfs): Use procfs_target.
5902
5903 2014-03-12 Pedro Alves <palves@redhat.com>
5904
5905 * windows-nat.c: Include inf-child.h.
5906 (windows_ops): Delete global.
5907 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5908 methods.
5909 (init_windows_ops): Delete function.
5910 (windows_target): New function, based on init_windows_ops, but
5911 inherit inf_child_target.
5912 (_initialize_windows_nat): Use windows_target. Install x86
5913 specific target methods here.
5914
5915 2014-03-10 Doug Evans <xdje42@gmail.com>
5916
5917 * guile/guile.c (call_initialize_gdb_module): New function.
5918 (initialize_guile): Replace call to scm_init_guile with call to
5919 scm_with_guile.
5920
5921 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5922
5923 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5924 in call to TYPE_CODE macro.
5925
5926 2014-03-10 Jerome Guitton <guitton@adacore.com>
5927
5928 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5929 Resolve tagged types to full view.
5930
5931 2014-03-10 Hui Zhu <hui@codesourcery.com>
5932
5933 * target.h (target_insert_breakpoint): Remove "hardware" from its
5934 comments.
5935
5936 2014-03-07 Doug Evans <dje@google.com>
5937
5938 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5939
5940 2014-03-07 Doug Evans <dje@google.com>
5941
5942 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5943 Remove unused local comp_dir_attr. Assert exactly one of
5944 stub_comp_unit_die, stub_comp_dir is non-NULL.
5945
5946 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5947
5948 * target.h (complete_target_initialization, add_target):
5949 Add comment.
5950
5951 2014-03-07 Pedro Alves <palves@redhat.com>
5952
5953 * go32-nat.c: Include inf-child.h.
5954 (go32_ops): Delete global.
5955 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5956 Delete methods.
5957 (go32_create_inferior): Push the passed in target pointer instead
5958 of referencing go32_ops.
5959 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5960 (go32_target): New function, based on init_go32_ops, but inherit
5961 inf_child_target.
5962 (_initialize_go32_nat): Use go32_target. Move parts of
5963 init_go32_ops here.
5964
5965 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5966
5967 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5968 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5969 SYMBOL_VALUE_ADDRESS.
5970 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5971
5972 2014-03-06 Yao Qi <yao@codesourcery.com>
5973
5974 * breakpoint.c (get_tracepoint_by_number): Remove argument
5975 optional_p. All callers updated. Adjust comments. Update
5976 output message.
5977 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5978
5979 2014-03-06 Yao Qi <yao@codesourcery.com>
5980
5981 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5982 early if get_number returns zero. Use 'p' instead of 'args'.
5983
5984 2014-03-06 Yao Qi <yao@codesourcery.com>
5985
5986 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5987 message.
5988
5989 2014-03-06 Yao Qi <yao@codesourcery.com>
5990
5991 PR breakpoints/16508
5992 * tracepoint.c (check_trace_running): New function.
5993 (trace_find_command): Move code to check_trace_running and
5994 call check_trace_running.
5995 (trace_find_pc_command): Likewise.
5996 (trace_find_tracepoint_command): Likewise.
5997 (trace_find_line_command): Likewise.
5998 (trace_find_range_command): Likewise.
5999 * tracepoint.h (check_trace_running): Likewise.
6000 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6001
6002 2014-03-06 Yao Qi <yao@codesourcery.com>
6003
6004 * target.h (struct target_ops) <to_traceframe_info>: Use
6005 TARGET_DEFAULT_NORETURN (tcomplain ()).
6006 * target-delegates.c: Regenerated.
6007
6008 2014-03-05 Pedro Alves <palves@redhat.com>
6009
6010 PR gdb/16575
6011 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6012 void. Update comment.
6013 (dcache_xfer_memory): Delete.
6014 (dcache_read_memory_partial): New, based on the read bits of
6015 dcache_xfer_memory.
6016 (dcache_update): Add status parameter. Use ULONGEST for len, and
6017 adjust. Discard cache lines if the reason for the update was
6018 error.
6019 * dcache.h (dcache_xfer_memory): Delete declaration.
6020 (dcache_read_memory_partial): New declaration.
6021 (dcache_update): Update prototype.
6022 * target.c (raw_memory_xfer_partial): Update the dcache here.
6023 (memory_xfer_partial_1): Don't handle dcache writes here.
6024
6025 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6026
6027 * remote-sim.c (gdbsim_load): Add const to prog.
6028
6029 2014-03-03 Tom Tromey <tromey@redhat.com>
6030
6031 * elfread.c (probe_key): Change to bfd_data.
6032 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6033 now per-BFD, not per-objfile.
6034 * stap-probe.c (stap_probe_destroy): Update comment.
6035 (handle_stap_probe): Allocate on the per-BFD obstack.
6036
6037 2014-03-03 Tom Tromey <tromey@redhat.com>
6038
6039 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6040 * breakpoint.c (create_longjmp_master_breakpoint): Use
6041 get_probe_address.
6042 (add_location_to_breakpoint, bkpt_probe_insert_location)
6043 (bkpt_probe_remove_location): Update.
6044 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6045 * elfread.c (elf_symfile_relocate_probe): Remove.
6046 (elf_probe_fns): Update.
6047 (insert_exception_resume_breakpoint): Change type of "probe"
6048 parameter to bound_probe.
6049 (check_exception_resume): Update.
6050 * objfiles.c (objfile_relocate1): Don't relocate probes.
6051 * probe.c (bound_probe_s): New typedef.
6052 (parse_probes): Use get_probe_address. Set sal's objfile.
6053 (find_probe_by_pc): Return a bound_probe.
6054 (collect_probes): Return a VEC(bound_probe_s).
6055 (compare_probes): Update.
6056 (gen_ui_out_table_header_info): Change type of "probes"
6057 parameter. Update.
6058 (info_probes_for_ops): Update.
6059 (get_probe_address): New function.
6060 (probe_safe_evaluate_at_pc): Update.
6061 * probe.h (struct probe_ops) <get_probe_address>: New field.
6062 <set_semaphore, clear_semaphore>: Add objfile parameter.
6063 (struct probe) <objfile>: Remove field.
6064 <arch>: New field.
6065 <address>: Update comment.
6066 (struct bound_probe): New.
6067 (find_probe_by_pc): Return a bound_probe.
6068 (get_probe_address): Declare.
6069 * solib-svr4.c (struct probe_and_action) <address>: New field.
6070 (hash_probe_and_action, equal_probe_and_action): Update.
6071 (register_solib_event_probe): Add address parameter.
6072 (solib_event_probe_at): Update.
6073 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6074 get_probe_address.
6075 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6076 (stap_get_probe_address): New function.
6077 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6078 (compile_probe_arg): Update.
6079 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6080 address.
6081 (handle_stap_probe): Don't relocate the probe.
6082 (stap_relocate): Remove.
6083 (stap_gen_info_probes_table_values): Update.
6084 (stap_probe_ops): Remove stap_relocate.
6085 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6086 (debug_sym_probe_fns): Update.
6087 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6088 * symtab.c (init_sal): Use memset.
6089 * symtab.h (struct symtab_and_line) <objfile>: New field.
6090 * tracepoint.c (start_tracing, stop_tracing): Update.
6091
6092 2014-03-03 Tom Tromey <tromey@redhat.com>
6093
6094 * probe.h (parse_probes, find_probe_by_pc)
6095 (find_probes_in_objfile): Fix comments.
6096
6097 2014-03-02 Doug Evans <xdje42@gmail.com>
6098
6099 * infrun.c (handle_signal_stop): Replace test for
6100 TARGET_WAITKIND_STOPPED with an assert.
6101
6102 2014-03-02 Doug Evans <xdje42@gmail.com>
6103
6104 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6105
6106 2014-03-02 Doug Evans <xdje42@gmail.com>
6107
6108 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6109
6110 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6111
6112 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6113
6114 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6115
6116 * i386obsd-nat.c: Include "obsd-nat.h".
6117 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6118 add_target.
6119 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6120
6121 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6122
6123 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6124
6125 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6126
6127 * mips64obsd-nat.c: Include "obsd-nath".
6128 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6129 add_target
6130 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6131
6132 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6133
6134 * amd64obsd-nat.c: Include "obsd-nat,h.
6135 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6136 add_target.
6137 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6138
6139 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6140
6141 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6142 (find_overload_match): Update call to find_oload_champ.
6143 (find_oload_champ_namespace_loop): Likewise
6144
6145 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6146
6147 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6148
6149 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6150 * config/sparc/obsd64.mh: New file.
6151 * sparc64obsd-nat.c: New file.
6152
6153 * obsd-nat.h: New file.
6154 * obsd-nat.c: New file.
6155 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6156 (ALLDEPFILES): Add obsd-nat.c.
6157
6158 2014-02-28 Tom Tromey <tromey@redhat.com>
6159
6160 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6161 * cli-out.h (cli_ui_out_impl): Now const.
6162 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6163 * ui-out.c (struct ui_out) <impl>: Now const.
6164 (default_ui_out_impl): Now const.
6165 (ui_out_new): Make 'impl' parameter const.
6166 * ui-out.h (ui_out_new): Update.
6167
6168 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6169
6170 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6171
6172 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6173
6174 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6175
6176 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6177
6178 Additional PR 8882 fix.
6179 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6180
6181 2014-02-27 Pedro Alves <palves@redhat.com>
6182
6183 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6184 isn't set.
6185
6186 2014-02-27 Pedro Alves <palves@redhat.com>
6187
6188 PR 12702
6189 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6190 * nat/linux-waitpid.c: Include string.h.
6191 (status_to_str): Moved here and made extern.
6192 * nat/linux-waitpid.h (status_to_str): New declaration.
6193
6194 2014-02-27 Hui Zhu <hui@codesourcery.com>
6195
6196 PR 12702
6197 * infrun.c (ptid_match): Move ...
6198 * common/ptid.c (ptid_match): ... here.
6199 * inferior.h (ptid_match): Move ...
6200 * common/ptid.h (ptid_match): ... here.
6201
6202 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6203
6204 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6205 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6206 gdb_target_obs.
6207
6208 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6209
6210 * obsd-tdep.c (obsd_auxv_parse): New function.
6211 (obsd_init_abi): Set auxv_parse.
6212
6213 * gdbarch.sh (auxv_parse): New.
6214 * gdbarch.h: Regenerated.
6215 * gdbarch.c: Regenerated.
6216 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6217
6218 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6219
6220 * guile/scm-value.c (gdbscm_history_append_x): New function.
6221 (value_functions): Add it.
6222
6223 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6224
6225 * dwarf2read.c (attr_value_as_address): New function.
6226 (dwarf2_find_base_address, read_call_site_scope): Use
6227 attr_value_as_address in place of DW_ADDR.
6228 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6229 the low and high addresses. Slight rework of the handling
6230 of the high pc being a constant form, and limit it to
6231 DWARF verson 4 or higher.
6232 (dwarf2_record_block_ranges): Likewise.
6233 (read_partial_die): Likewise.
6234 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6235
6236 2014-02-26 Tom Tromey <tromey@redhat.com>
6237
6238 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6239
6240 2014-02-26 Tom Tromey <tromey@redhat.com>
6241
6242 * elfread.c (elf_read_minimal_symbols): Return early if
6243 minimal symbols have already been read. Add "ei" parameter.
6244 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6245 * minsyms.c (prim_record_minimal_symbol_full): Update.
6246 * objfiles.h (struct objstats) <n_minsyms>: Move...
6247 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6248 * symmisc.c (print_objfile_statistics): Update.
6249
6250 2014-02-26 Tom Tromey <tromey@redhat.com>
6251
6252 * elfread.c (elf_read_minimal_symbols): New function, from
6253 elf_symfile_read.
6254 (elf_symfile_read): Call it.
6255
6256 2014-02-26 Tom Tromey <tromey@redhat.com>
6257
6258 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6259 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6260 (lookup_minimal_symbol_solib_trampoline)
6261 (lookup_minimal_symbol_by_pc_section_1)
6262 (lookup_minimal_symbol_and_objfile): Update.
6263 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6264 Don't allocate a minimal symbol if minsyms have already been read.
6265 (build_minimal_symbol_hash_tables): Update.
6266 (install_minimal_symbols): Do nothing if minsyms already read.
6267 Use the per-BFD obstack.
6268 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6269 * objfiles.c (allocate_objfile): Call
6270 terminate_minimal_symbol_table later.
6271 (have_minimal_symbols): Update.
6272 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6273 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6274 Move from struct objfile.
6275 <minsyms_read>: New field.
6276 (struct objfile) <msymbols, minimal_symbol_count,
6277 msymbol_hash, msymbol_demangled_hash>: Move.
6278 (ALL_OBJFILE_MSYMBOLS): Update.
6279 * symfile.c (read_symbols): Set minsyms_read.
6280 (reread_symbols): Update.
6281 * symmisc.c (dump_objfile, dump_msymbols): Update.
6282
6283 2014-02-26 Tom Tromey <tromey@redhat.com>
6284
6285 * minsyms.c (msymbols_sort): Remove.
6286 * minsyms.h (msymbols_sort): Remove.
6287 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6288 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6289 * elfread.c (elf_symtab_read): Don't add section offsets.
6290 * xcoffread.c (record_minimal_symbol): Don't add section offset
6291 to minimal symbol address.
6292 * somread.c (text_offset, data_offset): Remove.
6293 (som_symtab_read): Don't add section offsets to minimal symbol
6294 addresses.
6295 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6296 Don't add section offsets to minimal symbols.
6297 * coffread.c (coff_symtab_read): Don't add section offsets
6298 to minimal symbol addresses.
6299 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6300 to minimal symbol addresses.
6301 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6302 section offset to minimal symbol addresses.
6303 * mdebugread.c (parse_partial_symbols): Don't add section
6304 offset to minimal symbol addresses.
6305 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6306 offset to minimal symbol addresses.
6307
6308 2014-02-26 Tom Tromey <tromey@redhat.com>
6309
6310 * ada-lang.c (ada_main_name): Update.
6311 (ada_add_standard_exceptions): Update.
6312 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6313 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6314 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6315 * auxv.c (ld_so_xfer_auxv): Update.
6316 * avr-tdep.c (avr_scan_prologue): Update.
6317 * ax-gdb.c (gen_var_ref): Update.
6318 * blockframe.c (get_pc_function_start)
6319 (find_pc_partial_function_gnu_ifunc): Update.
6320 * breakpoint.c (create_overlay_event_breakpoint)
6321 (create_longjmp_master_breakpoint)
6322 (create_std_terminate_master_breakpoint)
6323 (create_exception_master_breakpoint): Update.
6324 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6325 * c-valprint.c (c_val_print): Update.
6326 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6327 * common/agent.c (agent_look_up_symbols): Update.
6328 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6329 * dwarf2loc.c (call_site_to_target_addr): Update.
6330 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6331 * elfread.c (elf_gnu_ifunc_record_cache)
6332 (elf_gnu_ifunc_resolve_by_got): Update.
6333 * findvar.c (default_read_var_value): Update.
6334 * frame.c (inside_main_func): Update.
6335 * frv-tdep.c (frv_frame_this_id): Update.
6336 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6337 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6338 Update.
6339 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6340 (hppa_hpux_find_dummy_bpaddr): Update.
6341 * hppa-tdep.c (hppa_symbol_address): Update.
6342 * infcmd.c (until_next_command): Update.
6343 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6344 Update.
6345 * linespec.c (minsym_found, add_minsym): Update.
6346 * linux-nat.c (get_signo): Update.
6347 * linux-thread-db.c (inferior_has_bug): Update.
6348 * m32c-tdep.c (m32c_return_value)
6349 (m32c_m16c_address_to_pointer): Update.
6350 * m32r-tdep.c (m32r_frame_this_id): Update.
6351 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6352 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6353 * maint.c (maintenance_translate_address): Update.
6354 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6355 (frob_address): New function.
6356 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6357 frob_address. Rename parameter to "pc_in".
6358 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6359 addresses.
6360 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6361 Update.
6362 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6363 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6364 * objc-lang.c (find_objc_msgsend): Update.
6365 * objfiles.c (objfile_relocate1): Update.
6366 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6367 * p-valprint.c (pascal_val_print): Update.
6368 * parse.c (write_exp_msymbol): Update.
6369 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6370 (ppc_elfv2_skip_entrypoint): Update.
6371 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6372 * printcmd.c (build_address_symbolic, msym_info)
6373 (address_info): Update.
6374 * proc-service.c (ps_pglobal_lookup): Update.
6375 * psymtab.c (find_pc_sect_psymtab_closer)
6376 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6377 Change msymbol parameter to bound_minimal_symbol.
6378 * ravenscar-thread.c (get_running_thread_id): Update.
6379 * remote.c (remote_check_symbols): Update.
6380 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6381 address.
6382 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6383 * solib-dsbt.c (lm_base): Update.
6384 * solib-frv.c (lm_base, main_got): Update.
6385 * solib-irix.c (locate_base): Update.
6386 * solib-som.c (som_solib_create_inferior_hook)
6387 (link_map_start): Update.
6388 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6389 * solib-svr4.c (elf_locate_base, enable_break): Update.
6390 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6391 (flush_ea_cache): Update.
6392 * stabsread.c (define_symbol, scan_file_globals): Update.
6393 * stack.c (find_frame_funname): Update.
6394 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6395 (debug_qf_find_pc_sect_symtab): Update.
6396 * symfile.c (simple_read_overlay_table)
6397 (simple_overlay_update): Update.
6398 * symfile.h (struct quick_symbol_functions)
6399 <find_pc_sect_symtab>: Change type of msymbol to
6400 bound_minimal_symbol.
6401 * symmisc.c (dump_msymbols): Update.
6402 * symtab.c (find_pc_sect_symtab_via_partial)
6403 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6404 (search_symbols, print_msymbol_info): Update.
6405 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6406 (MSYMBOL_VALUE_ADDRESS): Redefine.
6407 (BMSYMBOL_VALUE_ADDRESS): New macro.
6408 * tracepoint.c (scope_info): Update.
6409 * tui/tui-disasm.c (tui_find_disassembly_address)
6410 (tui_get_begin_asm_address): Update.
6411 * valops.c (find_function_in_inferior): Update.
6412 * value.c (value_static_field, value_fn_field): Update.
6413
6414 2014-02-26 Tom Tromey <tromey@redhat.com>
6415
6416 * ada-lang.c (ada_update_initial_language): Update.
6417 (ada_main_name, ada_has_this_exception_support): Update.
6418 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6419 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6420 * arm-tdep.c (arm_skip_stub): Update.
6421 * auxv.c (ld_so_xfer_auxv): Update.
6422 * avr-tdep.c (avr_scan_prologue): Update.
6423 * ax-gdb.c (gen_var_ref): Update.
6424 * breakpoint.c (struct breakpoint_objfile_data)
6425 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6426 type to bound_minimal_symbol.
6427 (create_overlay_event_breakpoint)
6428 (create_longjmp_master_breakpoint)
6429 (create_std_terminate_master_breakpoint)
6430 (create_exception_master_breakpoint): Update.
6431 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6432 * c-exp.y (classify_name): Update.
6433 * coffread.c (coff_symfile_read): Update.
6434 * common/agent.c (agent_look_up_symbols): Update.
6435 * d-lang.c (d_main_name): Update.
6436 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6437 * dec-thread.c (enable_dec_thread): Update.
6438 * dwarf2loc.c (call_site_to_target_addr): Update.
6439 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6440 * eval.c (evaluate_subexp_standard): Update.
6441 * findvar.c (struct minsym_lookup_data) <result>: Change type
6442 to bound_minimal_symbol.
6443 <objfile>: Remove.
6444 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6445 * frame.c (inside_main_func): Update.
6446 * frv-tdep.c (frv_frame_this_id): Update.
6447 * gcore.c (call_target_sbrk): Update.
6448 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6449 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6450 Update.
6451 * go-lang.c (go_main_name): Update.
6452 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6453 (hppa_hpux_find_import_stub_for_addr): Update.
6454 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6455 Update. Change return type.
6456 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6457 type.
6458 * jit.c (jit_breakpoint_re_set_internal): Update.
6459 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6460 Update.
6461 * linux-nat.c (get_signo): Update.
6462 * linux-thread-db.c (inferior_has_bug): Update
6463 * m32c-tdep.c (m32c_return_value)
6464 (m32c_m16c_address_to_pointer): Update.
6465 * m32r-tdep.c (m32r_frame_this_id): Update.
6466 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6467 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6468 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6469 lookup_minimal_symbol. Change return type.
6470 (lookup_minimal_symbol): Remove.
6471 (lookup_bound_minimal_symbol): Update.
6472 (lookup_minimal_symbol_text): Change return type.
6473 (lookup_minimal_symbol_solib_trampoline): Change return type.
6474 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6475 (lookup_minimal_symbol_solib_trampoline): Change return type.
6476 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6477 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6478 (value_nsstring, find_imps): Update.
6479 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6480 * p-lang.c (pascal_main_name): Update.
6481 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6482 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6483 * proc-service.c (ps_pglobal_lookup): Update.
6484 * ravenscar-thread.c (get_running_thread_msymbol): Change
6485 return type.
6486 (has_ravenscar_runtime, get_running_thread_id): Update.
6487 * remote.c (remote_check_symbols): Update.
6488 * sol-thread.c (ps_pglobal_lookup): Update.
6489 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6490 * solib-dsbt.c (lm_base): Update.
6491 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6492 Update.
6493 * solib-irix.c (locate_base): Update.
6494 * solib-som.c (som_solib_create_inferior_hook)
6495 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6496 Update.
6497 * solib-spu.c (spu_enable_break): Update.
6498 * solib-svr4.c (elf_locate_base, enable_break): Update.
6499 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6500 (flush_ea_cache): Update.
6501 * stabsread.c (define_symbol): Update.
6502 * symfile.c (simple_read_overlay_table): Update.
6503 * symtab.c (find_pc_sect_line): Update.
6504 * tracepoint.c (scope_info): Update.
6505 * tui-disasm.c (tui_get_begin_asm_address): Update.
6506 * value.c (value_static_field): Update.
6507
6508 2014-02-26 Tom Tromey <tromey@redhat.com>
6509
6510 * minsyms.c (prim_record_minimal_symbol_full): Use
6511 SET_MSYMBOL_VALUE_ADDRESS.
6512 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6513 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6514 SET_MSYMBOL_VALUE_ADDRESS.
6515 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6516 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6517
6518 2014-02-26 Tom Tromey <tromey@redhat.com>
6519
6520 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6521 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6522 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6523 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6524 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6525 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6526 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6527 * ada-lang.c (ada_main_name): Update.
6528 (ada_lookup_simple_minsym): Update.
6529 (ada_make_symbol_completion_list): Update.
6530 (ada_add_standard_exceptions): Update.
6531 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6532 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6533 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6534 * arm-tdep.c (skip_prologue_function): Update.
6535 (arm_skip_stack_protector, arm_skip_stub): Update.
6536 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6537 (arm_wince_skip_main_prologue): Update.
6538 * auxv.c (ld_so_xfer_auxv): Update.
6539 * avr-tdep.c (avr_scan_prologue): Update.
6540 * ax-gdb.c (gen_var_ref): Update.
6541 * block.c (call_site_for_pc): Update.
6542 * blockframe.c (get_pc_function_start): Update.
6543 (find_pc_partial_function_gnu_ifunc): Update.
6544 * breakpoint.c (create_overlay_event_breakpoint): Update.
6545 (create_longjmp_master_breakpoint): Update.
6546 (create_std_terminate_master_breakpoint): Update.
6547 (create_exception_master_breakpoint): Update.
6548 (resolve_sal_pc): Update.
6549 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6550 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6551 Update.
6552 * c-valprint.c (c_val_print): Update.
6553 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6554 * coffread.c (coff_symfile_read): Update.
6555 * common/agent.c (agent_look_up_symbols): Update.
6556 * dbxread.c (find_stab_function_addr): Update.
6557 (end_psymtab): Update.
6558 * dwarf2loc.c (call_site_to_target_addr): Update.
6559 (func_verify_no_selftailcall): Update.
6560 (tailcall_dump): Update.
6561 (call_site_find_chain_1): Update.
6562 (dwarf_expr_reg_to_entry_parameter): Update.
6563 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6564 (elf_gnu_ifunc_resolve_by_got): Update.
6565 * f-valprint.c (info_common_command): Update.
6566 * findvar.c (read_var_value): Update.
6567 * frame.c (get_prev_frame_1): Update.
6568 (inside_main_func): Update.
6569 * frv-tdep.c (frv_skip_main_prologue): Update.
6570 (frv_frame_this_id): Update.
6571 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6572 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6573 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6574 (gnuv3_skip_trampoline): Update.
6575 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6576 (hppa64_hpux_in_solib_call_trampoline): Update.
6577 (hppa_hpux_skip_trampoline_code): Update.
6578 (hppa64_hpux_search_dummy_call_sequence): Update.
6579 (hppa_hpux_find_import_stub_for_addr): Update.
6580 (hppa_hpux_find_dummy_bpaddr): Update.
6581 * hppa-tdep.c (hppa_symbol_address)
6582 (hppa_lookup_stub_minimal_symbol): Update.
6583 * i386-tdep.c (i386_skip_main_prologue): Update.
6584 (i386_pe_skip_trampoline_code): Update.
6585 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6586 * infcall.c (get_function_name): Update.
6587 * infcmd.c (until_next_command): Update.
6588 * jit.c (jit_breakpoint_re_set_internal): Update.
6589 (jit_inferior_init): Update.
6590 * linespec.c (minsym_found): Update.
6591 (add_minsym): Update.
6592 * linux-fork.c (info_checkpoints_command): Update.
6593 * linux-nat.c (get_signo): Update.
6594 * linux-thread-db.c (inferior_has_bug): Update.
6595 * m32c-tdep.c (m32c_return_value): Update.
6596 (m32c_m16c_address_to_pointer): Update.
6597 (m32c_m16c_pointer_to_address): Update.
6598 * m32r-tdep.c (m32r_frame_this_id): Update.
6599 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6600 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6601 * maint.c (maintenance_translate_address): Update.
6602 * minsyms.c (add_minsym_to_hash_table): Update.
6603 (add_minsym_to_demangled_hash_table): Update.
6604 (msymbol_objfile): Update.
6605 (lookup_minimal_symbol): Update.
6606 (iterate_over_minimal_symbols): Update.
6607 (lookup_minimal_symbol_text): Update.
6608 (lookup_minimal_symbol_by_pc_name): Update.
6609 (lookup_minimal_symbol_solib_trampoline): Update.
6610 (lookup_minimal_symbol_by_pc_section_1): Update.
6611 (lookup_minimal_symbol_and_objfile): Update.
6612 (prim_record_minimal_symbol_full): Update.
6613 (compare_minimal_symbols): Update.
6614 (compact_minimal_symbols): Update.
6615 (build_minimal_symbol_hash_tables): Update.
6616 (install_minimal_symbols): Update.
6617 (terminate_minimal_symbol_table): Update.
6618 (find_solib_trampoline_target): Update.
6619 (minimal_symbol_upper_bound): Update.
6620 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6621 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6622 (mips_skip_pic_trampoline_code): Update.
6623 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6624 * objc-lang.c (selectors_info): Update.
6625 (classes_info): Update.
6626 (find_methods): Update.
6627 (find_imps): Update.
6628 (find_objc_msgsend): Update.
6629 * objfiles.c (objfile_relocate1): Update.
6630 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6631 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6632 * p-valprint.c (pascal_val_print): Update.
6633 * parse.c (write_exp_msymbol): Update.
6634 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6635 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6636 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6637 * printcmd.c (build_address_symbolic): Update.
6638 (sym_info): Update.
6639 (address_info): Update.
6640 * proc-service.c (ps_pglobal_lookup): Update.
6641 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6642 (find_pc_sect_psymtab): Update.
6643 * python/py-framefilter.c (py_print_frame): Update.
6644 * ravenscar-thread.c (get_running_thread_id): Update.
6645 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6646 Update.
6647 * remote.c (remote_check_symbols): Update.
6648 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6649 (rs6000_skip_trampoline_code): Update.
6650 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6651 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6652 * solib-dsbt.c (lm_base): Update.
6653 * solib-frv.c (lm_base): Update.
6654 (main_got): Update.
6655 * solib-irix.c (locate_base): Update.
6656 * solib-som.c (som_solib_create_inferior_hook): Update.
6657 (som_solib_desire_dynamic_linker_symbols): Update.
6658 (link_map_start): Update.
6659 * solib-spu.c (spu_enable_break): Update.
6660 (ocl_enable_break): Update.
6661 * solib-svr4.c (elf_locate_base): Update.
6662 (enable_break): Update.
6663 * spu-tdep.c (spu_get_overlay_table): Update.
6664 (spu_catch_start): Update.
6665 (flush_ea_cache): Update.
6666 * stabsread.c (define_symbol): Update.
6667 (scan_file_globals): Update.
6668 * stack.c (find_frame_funname): Update.
6669 (frame_info): Update.
6670 * symfile.c (simple_read_overlay_table): Update.
6671 (simple_overlay_update): Update.
6672 * symmisc.c (dump_msymbols): Update.
6673 * symtab.c (fixup_section): Update.
6674 (find_pc_sect_line): Update.
6675 (skip_prologue_sal): Update.
6676 (search_symbols): Update.
6677 (print_msymbol_info): Update.
6678 (rbreak_command): Update.
6679 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6680 (completion_list_objc_symbol): Update.
6681 (default_make_symbol_completion_list_break_on): Update.
6682 * tracepoint.c (scope_info): Update.
6683 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6684 (tui_get_begin_asm_address): Update.
6685 * valops.c (find_function_in_inferior): Update.
6686 * value.c (value_static_field): Update.
6687 (value_fn_field): Update.
6688
6689 2014-02-26 Tom Tromey <tromey@redhat.com>
6690
6691 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6692 bound minimal symbols. Move code that knows about minsym
6693 table layout...
6694 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6695 function.
6696 * minsyms.h (minimal_symbol_upper_bound): Declare.
6697 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6698 minimal_symbol_upper_bound.
6699
6700 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6701
6702 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6703 Use the type's name if its basic type does not have a tag.
6704
6705 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6706
6707 * dwarf2read.c (read_subrange_type): Add comment.
6708
6709 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6710
6711 * dwarf2read.c (update_enumeration_type_from_children): New
6712 function, mostly extracted from process_structure_scope.
6713 (read_enumeration_type): Call update_enumeration_type_from_children.
6714 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6715 and flag_flag_enum fields.
6716
6717 2014-02-26 Pedro Alves <palves@redhat.com>
6718
6719 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6720 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6721 to_xfer_partial method.
6722
6723 2014-02-26 Pedro Alves <palves@redhat.com>
6724
6725 * target.c (complete_target_initialization): Don't install
6726 default_xfer_partial as to_xfer_partial hook.
6727 (nomemory): Delete.
6728 (update_current_target): Don't INHERIT nor de_fault
6729 deprecated_xfer_memory. Delete de_fault macro.
6730 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6731 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6732 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6733 field.
6734
6735 2014-02-26 Pedro Alves <palves@redhat.com>
6736
6737 * go32-nat.c (my_write_child): New function.
6738 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6739 (go32_xfer_partial): New function.
6740 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6741 Instead install a to_xfer_partial hook.
6742
6743 2014-02-26 Pedro Alves <palves@redhat.com>
6744
6745 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6746 to_xfer_partial helper. Rewrite.
6747 (procfs_xfer_partial): New function.
6748 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6749 Install a to_xfer_partial hook.
6750
6751 2014-02-26 Pedro Alves <palves@redhat.com>
6752
6753 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6754 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6755 (m32r_xfer_partial): New function.
6756 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6757 Install a to_xfer_partial hook.
6758
6759 2014-02-26 Pedro Alves <palves@redhat.com>
6760
6761 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6762 helper.
6763 (mips_xfer_partial): New function.
6764 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6765 hook. Install a to_xfer_partial hook.
6766
6767 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6768
6769 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6770 * gdbtypes.c (create_array_type_with_stride): New function,
6771 renaming create_array_type, but with an added parameter
6772 called "bit_stride".
6773 (create_array_type): Re-implement using
6774 create_array_type_with_stride.
6775 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6776 and DW_AT_bit_stride attributes.
6777
6778 2014-02-26 Pedro Alves <palves@redhat.com>
6779
6780 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6781 task-specific breakpoints.
6782
6783 2014-02-25 Pedro Alves <palves@redhat.com>
6784
6785 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6786 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6787
6788 2014-02-25 Stan Shebs <stan@codesourcery.com>
6789
6790 * defs.h: Annotate comments for Doxygen.
6791
6792 2014-02-25 Tom Tromey <tromey@redhat.com>
6793
6794 * target.h (target_ignore): Don't declare.
6795 * target.c (target_ignore): Remove.
6796
6797 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6798
6799 PR gdb/16626
6800 * auto-load.c (auto_load_objfile_script_1): Change filename to
6801 debugfile.
6802
6803 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6804
6805 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6806 documentation. Adjust prototype to match the target_ops
6807 to_xfer_partial method. Adjust implementation accordingly.
6808
6809 2014-02-25 Hui Zhu <hui@codesourcery.com>
6810
6811 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6812 to_traceframe_info.
6813
6814 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6815
6816 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6817 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6818 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6819 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6820 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6821 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6822 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6823 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6824 New constants.
6825 (rl78_register_type): Use a data pointer type for SP and
6826 new pseudo registers mentioned above. Use a 16 bit integer
6827 type for all other register pairs.
6828 (rl78_register_name, rl78_g10_register_name): Update for
6829 new pseudo registers.
6830 (rl78_pseudo_register_read): Likewise.
6831 (rl78_pseudo_register_write): Likewise.
6832 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6833 to the newly added pseudo registers.
6834
6835 2014-02-24 Doug Evans <dje@google.com>
6836
6837 * value.c (record_latest_value): Fix comment.
6838 * printcmd.c (print_command_1): Remove code to handle -1 return from
6839 record_latest_value.
6840
6841 2014-02-24 Pedro Alves <palves@redhat.com>
6842
6843 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6844 deprecated_xfer_memory hook.
6845 (procfs_xfer_partial): Call procfs_xfer_memory instead
6846 of the deprecated_xfer_memory target hook.
6847 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6848 helper.
6849
6850 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6851
6852 * windows-nat.c (windows_xfer_shared_libraries): Return
6853 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6854 requested object is TARGET_OBJECT_LIBRARIES.
6855
6856 2014-02-24 Yao Qi <yao@codesourcery.com>
6857
6858 * target.h (enum target_xfer_status)
6859 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6860 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6861 explicitly. New.
6862 * corefile.c (memory_error_message): User updated.
6863 * exec.c (section_table_read_available_memory): Likewise.
6864 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6865 * target.c (target_xfer_status_to_string): Likewise.
6866 (raw_memory_xfer_partial): Likewise.
6867 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6868 * valops.c (read_value_memory): Likewise.
6869 * exec.h: Update comments.
6870
6871 2014-02-24 Yao Qi <yao@codesourcery.com>
6872
6873 * target.c (target_xfer_status_to_string): Rename argument err
6874 to status.
6875 * target.h (target_xfer_status_to_string): Update declaration.
6876 Replace target_xfer_error_to_string with
6877 target_xfer_status_to_string in comment.
6878
6879 2014-02-24 Yao Qi <yao@codesourcery.com>
6880
6881 * mips-linux-nat.c (super_close): Update its type.
6882 (mips_linux_close): Pass 'self' to super_close.
6883
6884 2014-02-24 Yao Qi <yao@codesourcery.com>
6885
6886 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6887 * corefile.c (read_memory): Adjusted.
6888 * target.c (target_write_with_progress): Adjusted.
6889
6890 2014-02-23 Yao Qi <yao@codesourcery.com>
6891
6892 Revert two patches:
6893
6894 2013-10-25 Yao Qi <yao@codesourcery.com>
6895
6896 * remote.c (remote_traceframe_info): Return early if
6897 traceframe is not selected.
6898
6899 2013-07-19 Yao Qi <yao@codesourcery.com>
6900
6901 * target.c (update_current_target): Change the default action
6902 of 'to_traceframe_info' from tcomplain to return_zero.
6903 * target.h (struct target_ops) <to_traceframe_info>: Add more
6904 comments.
6905
6906 2014-02-23 Yao Qi <yao@codesourcery.com>
6907
6908 * valops.c (read_value_memory): Rewrite it. Call
6909 target_xfer_partial in a loop.
6910 * exec.h (section_table_available_memory): Remove declaration.
6911 Move comments to ...
6912 * exec.c (section_table_available_memory): ... here. Make it
6913 static.
6914
6915 2014-02-23 Yao Qi <yao@codesourcery.com>
6916
6917 * exec.c (section_table_read_available_memory): New function.
6918 * exec.h (section_table_read_available_memory): Declare.
6919 * ctf.c (ctf_xfer_partial): Call
6920 section_table_read_available_memory.
6921 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6922
6923 2014-02-23 Yao Qi <yao@codesourcery.com>
6924
6925 * ctf.c (ctf_xfer_partial): Move code to ...
6926 * exec.c (exec_read_partial_read_only): ... it. New function.
6927 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6928 * tracefile.c: Include "exec.h".
6929 * exec.h (exec_read_partial_read_only): Declare.
6930
6931 2014-02-23 Yao Qi <yao@codesourcery.com>
6932
6933 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6934 (tfile_has_memory): Remove.
6935 (init_tfile_ops): Don't set fields to_has_all_memory and
6936 to_has_memory of tfile_ops.
6937 * tracefile.c (tracefile_has_all_memory): New function.
6938 (tracefile_has_memory): New function.
6939 (init_tracefile_ops): Initialize fields to_has_all_memory and
6940 to_has_memory of 'ops'.
6941
6942 2014-02-23 Yao Qi <yao@codesourcery.com>
6943
6944 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6945 (ctf_thread_alive, ctf_get_trace_status): Remove.
6946 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6947 init_tracefile_ops.
6948 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6949 (tfile_has_stack, tfile_has_registers): Remove.
6950 (tfile_thread_alive): Remove.
6951 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6952 init_tracefile_ops.
6953 * tracefile.c (tracefile_has_stack): New function.
6954 (tracefile_has_registers): New function.
6955 (tracefile_thread_alive): New function.
6956 (tracefile_get_trace_status): New function.
6957 (init_tracefile_ops): New function.
6958 * tracefile.h (init_tracefile_ops): Declare.
6959
6960 2014-02-23 Yao Qi <yao@codesourcery.com>
6961
6962 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6963 (O_LARGEFILE): Likewise.
6964 (tfile_ops): Likewise.
6965 (TRACE_HEADER_SIZE): Likewise.
6966 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6967 (cur_data_size): Likewise.
6968 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6969 (tfile_close, tfile_files_info): Likewise.
6970 (tfile_get_trace_status): Likewise.
6971 (tfile_get_tracepoint_status): Likewise.
6972 (tfile_get_traceframe_address): Likewise.
6973 (tfile_trace_find, match_blocktype): Likewise.
6974 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6975 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6976 (tfile_get_trace_state_variable_value): Likewise.
6977 (tfile_has_all_memory, tfile_has_memory): Likewise.
6978 (tfile_has_stack, tfile_has_registers): Likewise.
6979 (tfile_thread_alive, build_traceframe_info): Likewise.
6980 (tfile_traceframe_info, init_tfile_ops): Likewise.
6981 (_initialize_tracepoint): Don't call init_tfile_ops
6982 and add_target_with_completer.
6983 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6984 exec.h, completer.h and filenames.h.
6985 (_initialize_tracefile_tfile): New function.
6986
6987 2014-02-23 Yao Qi <yao@codesourcery.com>
6988
6989 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6990 tracefile-tfile.o.
6991 (HFILES_NO_SRCDIR): Add tracefile.h.
6992 * ctf.c: Include "tracefile.h".
6993 * tracefile.h: New file.
6994 * tracefile.c: New file
6995 * tracefile-tfile.c: New file.
6996 * tracepoint.c: Include "tracefile.h".
6997 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6998 (stop_reason_names): Add const.
6999 (trace_file_writer_xfree): Move it to tracefile.c.
7000 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7001 (trace_save_ctf): Likewise.
7002 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7003 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7004 (tfile_write_header, tfile_write_regblock_type): Likewise.
7005 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7006 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7007 (tfile_write_raw_data, tfile_end): Likewise.
7008 (tfile_trace_file_writer_new): Likewise.
7009 (free_uploaded_tp): Make it extern.
7010 (free_uploaded_tsv): Make it extern.
7011 (_initialize_tracepoint): Move code to register command 'tsave'
7012 to tracefile.c.
7013 * tracepoint.h (stop_reason_names): Declare.
7014 (struct trace_frame_write_ops): Move it to tracefile.h.
7015 (struct trace_file_write_ops): Likewise.
7016 (struct trace_file_writer): Likewise.
7017 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7018
7019 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 PR gdb/16594
7022 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7023 process name.
7024 (get_cores_used_by_process): New parameter num_cores, use it.
7025 (linux_xfer_osdata_processes): Pass num_cores to it.
7026 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7027 process name.
7028
7029 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7030
7031 * target.c (memory_xfer_partial): Fix length arg in call to
7032 breakpoint_xfer_memory.
7033
7034 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7035
7036 PR tdep/16397
7037 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7038 number comes after the + or - signs. Adjust length of register
7039 name to be extracted.
7040
7041 2014-02-20 Tom Tromey <tromey@redhat.com>
7042
7043 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7044 (ada_varobj_ops): Mark "extern".
7045
7046 2014-02-20 Tom Tromey <tromey@redhat.com>
7047
7048 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7049
7050 2014-02-20 Doug Evans <xdje42@gmail.com>
7051
7052 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7053 All callers updated.
7054 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7055 All callers updated.
7056 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7057 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7058
7059 2014-02-20 lin zuojian <manjian2006@gmail.com>
7060 Joel Brobecker <brobecker@adacore.com>
7061 Doug Evans <xdje42@gmail.com>
7062
7063 PR symtab/16581
7064 * dwarf2read.c (struct die_info): New member in_process.
7065 (reset_die_in_process): New function.
7066 (process_die): Set it at the start, reset when returning.
7067 (inherit_abstract_dies): Only call process_die if origin_child_die
7068 not already being processed.
7069
7070 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7071
7072 * windows-nat.c (handle_unload_dll): Add function documentation.
7073 (do_initial_windows_stuff): Add comment explaining why we wait
7074 until after inferior initialization has finished before
7075 processing all DLLs.
7076
7077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7078
7079 * windows-nat.c (get_module_name): Delete.
7080 (windows_get_exec_module_filename): New function, mostly
7081 inspired from get_module_name.
7082 (windows_pid_to_exec_file): Replace call to get_module_name
7083 by call to windows_get_exec_module_filename.
7084
7085 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7086
7087 * windows-nat.c (handle_load_dll): Rewrite this function's
7088 introductory comment. Remove code using get_module_name
7089 to get the DLL's name.
7090
7091 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7092
7093 * windows-nat.c (get_windows_debug_event): Ignore
7094 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7095 if windows_initialization_done == 0.
7096 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7097 Adjust implementation to always load all DLLs.
7098 (do_initial_windows_stuff): Replace call to
7099 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7100
7101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7102
7103 * windows-nat.c (_initialize_windows_nat): Deprecate the
7104 "dll-symbols" command. Turn the "add-shared-symbol-files"
7105 and "assf" aliases into commands, and deprecate them as well.
7106 * NEWS: Add entry explaining that "dll-symbols" and its two
7107 aliases are now deprecated.
7108
7109 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7110
7111 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7112 new-line in debug string. Remove trailing spaces.
7113
7114 2014-02-19 Stan Shebs <stan@codesourcery.com>
7115
7116 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7117
7118 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7119
7120 * NEWS: Add entry for the new feature
7121 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7122 and class values.
7123
7124 2014-02-19 Stan Shebs <stan@codesourcery.com>
7125
7126 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7127
7128 2014-02-19 Pedro Alves <palves@redhat.com>
7129
7130 * common/ptid.h (struct ptid): Mention that process_stratum
7131 targets should prefer ptid.lwp.
7132
7133 2014-02-19 Pedro Alves <palves@redhat.com>
7134
7135 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7136 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7137 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7138 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7139 store remote thread ids rather than ptid.tid.
7140 (_initialize_remote): Adjust.
7141
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7143
7144 * target.c (target_get_unwinder): Rewrite.
7145 (target_get_tailcall_unwinder): Rewrite.
7146 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7147 (record_btrace_to_get_tailcall_unwinder): New function.
7148 (init_record_btrace_ops): Update.
7149 * target.h (struct target_ops) <to_get_unwinder,
7150 to_get_tailcall_unwinder>: Now function pointers. Use
7151 TARGET_DEFAULT_RETURN.
7152
7153 2014-02-19 Tom Tromey <tromey@redhat.com>
7154
7155 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7156 argument.
7157 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7158
7159 2014-02-19 Tom Tromey <tromey@redhat.com>
7160
7161 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7162 directly.
7163 * target-delegates.c: Rebuild.
7164 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7165 TARGET_DEFAULT_FUNC.
7166 * target.c (default_target_decr_pc_after_break): Rename from
7167 forward_target_decr_pc_after_break. Simplify.
7168 (target_decr_pc_after_break): Rely on delegation.
7169
7170 2014-02-19 Tom Tromey <tromey@redhat.com>
7171
7172 * target.c (update_current_target): Do not INHERIT to_doc or
7173 to_magic. Do not de_fault to_open or to_close.
7174
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7176
7177 * gcore.h (objfile_find_memory_regions): Declare.
7178 * gcore.c (objfile_find_memory_regions): No longer static. Add
7179 "self" argument.
7180 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7181 * exec.c: Include gcore.h.
7182 (exec_set_find_memory_regions): Remove.
7183 (exec_find_memory_regions): Remove.
7184 (exec_do_find_memory_regions): Remove.
7185 (init_exec_ops): Update.
7186 * defs.h (exec_set_find_memory_regions): Remove.
7187
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7189
7190 * target-delegates.c: Rebuild.
7191 * target.h (struct target_ops) <to_extra_thread_info,
7192 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7193 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7194 not 0, in TARGET_DEFAULT_RETURN.
7195
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7197
7198 * target.c (complete_target_initialization): Remove casts. Use
7199 return_zero_has_execution.
7200 (return_zero): Add "ignore" argument.
7201 (return_zero_has_execution): New function.
7202 (init_dummy_target): Remove casts. Use
7203 return_zero_has_execution.
7204
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7206
7207 * target.c (update_current_target): Update comments. Do not
7208 INHERIT to_stratum.
7209
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7213 needed.
7214 * corelow.c (core_read_description): Delegate when needed.
7215 * remote.c (remote_read_description): Delegate when needed.
7216 * target-delegates.c: Rebuild.
7217 * target.c (target_read_description): Rewrite.
7218 * target.h (struct target_ops) <to_read_description>: Update
7219 comment. Use TARGET_DEFAULT_RETURN.
7220
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7222
7223 * target-delegates.c: Rebuild.
7224 * target.c (update_current_target): Don't inherit or default
7225 to_can_run.
7226 (find_default_run_target): Check against delegate_can_run.
7227 * target.h (struct target_ops) <to_can_run>: Use
7228 TARGET_DEFAULT_RETURN.
7229
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7231
7232 * target-delegates.c: Rebuild.
7233 * target.c (target_disconnect): Unconditionally delegate.
7234 * target.h (struct target_ops) <to_disconnect>: Use
7235 TARGET_DEFAULT_NORETURN.
7236
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7238
7239 * record.c (record_stop): Unconditionally delegate.
7240 * target-delegates.c: Rebuild.
7241 * target.c (target_stop_recording): Unconditionally delegate.
7242 * target.h (struct target_ops) <to_stop_recording>: Use
7243 TARGET_DEFAULT_IGNORE.
7244
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7246
7247 * target-delegates.c: Rebuild.
7248 * target.c (target_enable_btrace): Unconditionally delegate.
7249 * target.h (struct target_ops) <to_enable_btrace>: Use
7250 TARGET_DEFAULT_NORETURN.
7251
7252 2014-02-19 Tom Tromey <tromey@redhat.com>
7253
7254 * target-delegates.c: Rebuild.
7255 * target.c (target_read_btrace): Unconditionally delegate.
7256 * target.h (struct target_ops) <to_read_btrace>: Use
7257 TARGET_DEFAULT_NORETURN.
7258
7259 2014-02-19 Tom Tromey <tromey@redhat.com>
7260
7261 * target-delegates.c: Rebuild.
7262 * target.c (target_teardown_btrace): Unconditionally delegate.
7263 * target.h (struct target_ops) <to_teardown_btrace>: Use
7264 TARGET_DEFAULT_NORETURN.
7265
7266 2014-02-19 Tom Tromey <tromey@redhat.com>
7267
7268 * target-delegates.c: Rebuild.
7269 * target.c (target_disable_btrace): Unconditionally delegate.
7270 * target.h (struct target_ops) <to_disable_btrace>: Use
7271 TARGET_DEFAULT_NORETURN.
7272
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7274
7275 * target-delegates.c: Rebuild.
7276 * target.c (default_search_memory): New function.
7277 (simple_search_memory): Update comment.
7278 (target_search_memory): Unconditionally delegate.
7279 * target.h (struct target_ops) <to_search_memory>: Use
7280 TARGET_DEFAULT_FUNC.
7281
7282 2014-02-19 Tom Tromey <tromey@redhat.com>
7283
7284 * auxv.c (default_auxv_parse): No longer static.
7285 (target_auxv_parse): Unconditionally delegate.
7286 * auxv.h (default_auxv_parse): Declare.
7287 * target-delegates.c: Rebuild.
7288 * target.c: Include auxv.h.
7289 * target.h (struct target_ops) <to_auxv_parse>: Use
7290 TARGET_DEFAULT_FUNC.
7291
7292 2014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target-delegates.c: Rebuild.
7295 * target.c (target_memory_map): Unconditionally delegate.
7296 * target.h (struct target_ops) <to_memory_map>: Use
7297 TARGET_DEFAULT_RETURN.
7298
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target-delegates.c: Rebuild.
7302 * target.c (target_thread_alive): Unconditionally delegate.
7303 * target.h (struct target_ops) <to_thread_alive>: Use
7304 TARGET_DEFAULT_RETURN.
7305
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7307
7308 * target-delegates.c: Rebuild.
7309 * target.c (target_save_record): Unconditionally delegate.
7310 * target.h (struct target_ops) <to_save_record>: Use
7311 TARGET_DEFAULT_NORETURN.
7312
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7314
7315 * target-delegates.c: Rebuild.
7316 * target.c (target_delete_record): Unconditionally delegate.
7317 * target.h (struct target_ops) <to_delete_record>: Use
7318 TARGET_DEFAULT_NORETURN.
7319
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7321
7322 * target-delegates.c: Rebuild.
7323 * target.c (target_record_is_replaying): Unconditionally
7324 delegate.
7325 * target.h (struct target_ops) <to_record_is_replaying>: Use
7326 TARGET_DEFAULT_RETURN.
7327
7328 2014-02-19 Tom Tromey <tromey@redhat.com>
7329
7330 * target-delegates.c: Rebuild.
7331 * target.c (target_goto_record_begin): Unconditionally delegate.
7332 * target.h (struct target_ops) <to_goto_record_begin>: Use
7333 TARGET_DEFAULT_NORETURN.
7334
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7336
7337 * target-delegates.c: Rebuild.
7338 * target.c (target_goto_record_end): Unconditionally delegate.
7339 * target.h (struct target_ops) <to_goto_record_end>: Use
7340 TARGET_DEFAULT_NORETURN.
7341
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7343
7344 * target-delegates.c: Rebuild.
7345 * target.c (target_goto_record): Unconditionally delegate.
7346 * target.h (struct target_ops) <to_goto_record>: Use
7347 TARGET_DEFAULT_NORETURN.
7348
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7350
7351 * target-delegates.c: Rebuild.
7352 * target.c (target_insn_history): Unconditionally delegate.
7353 * target.h (struct target_ops) <to_insn_history>: Use
7354 TARGET_DEFAULT_NORETURN.
7355
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7357
7358 * target-delegates.c: Rebuild.
7359 * target.c (target_insn_history_from): Unconditionally delegate.
7360 * target.h (struct target_ops) <to_insn_history_from>: Use
7361 TARGET_DEFAULT_NORETURN.
7362
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7364
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_insn_history_range): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_insn_history_range>: Use
7368 TARGET_DEFAULT_NORETURN.
7369
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7371
7372 * target-delegates.c: Rebuild.
7373 * target.c (target_call_history): Unconditionally delegate.
7374 * target.h (struct target_ops) <to_call_history>: Use
7375 TARGET_DEFAULT_NORETURN.
7376
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7378
7379 * target-delegates.c: Rebuild.
7380 * target.c (target_call_history_from): Unconditionally delegate.
7381 * target.h (struct target_ops) <to_call_history_from>: Use
7382 TARGET_DEFAULT_NORETURN.
7383
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_call_history_range): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_call_history_range>: Use
7389 TARGET_DEFAULT_NORETURN.
7390
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_verify_memory): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_verify_memory>: Use
7396 TARGET_DEFAULT_NORETURN.
7397
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7399
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_core_of_thread): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_core_of_thread>: Use
7403 TARGET_DEFAULT_RETURN.
7404
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (target_flash_done): Unconditionally delegate.
7409 * target.h (struct target_ops) <to_flash_done>: Use
7410 TARGET_DEFAULT_NORETURN.
7411
7412 2014-02-19 Tom Tromey <tromey@redhat.com>
7413
7414 * target-delegates.c: Rebuild.
7415 * target.c (target_flash_erase): Unconditionally delegate.
7416 * target.h (struct target_ops) <to_flash_erase>: Use
7417 TARGET_DEFAULT_NORETURN.
7418
7419 2014-02-19 Tom Tromey <tromey@redhat.com>
7420
7421 * target-delegates.c: Rebuild.
7422 * target.c (target_get_section_table): Unconditionally delegate.
7423 * target.h (struct target_ops) <to_get_section_table>: Use
7424 TARGET_DEFAULT_RETURN.
7425
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7427
7428 * target-delegates.c: Rebuild.
7429 * target.c (target_pid_to_str): Unconditionally delegate.
7430 (init_dummy_target): Don't initialize to_pid_to_str.
7431 (default_pid_to_str): Rename from dummy_pid_to_str.
7432 * target.h (struct target_ops) <to_pid_to_str>: Use
7433 TARGET_DEFAULT_FUNC.
7434
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target-delegates.c: Rebuild.
7438 * target.c (target_find_new_threads): Unconditionally delegate.
7439 * target.h (struct target_ops) <to_find_new_threads>: Use
7440 TARGET_DEFAULT_RETURN.
7441
7442 2014-02-19 Tom Tromey <tromey@redhat.com>
7443
7444 * target-delegates.c: Rebuild.
7445 * target.c (target_program_signals): Unconditionally delegate.
7446 * target.h (struct target_ops) <to_program_signals>: Use
7447 TARGET_DEFAULT_IGNORE.
7448
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7450
7451 * target-delegates.c: Rebuild.
7452 * target.c (target_pass_signals): Unconditionally delegate.
7453 * target.h (struct target_ops) <to_pass_signals>: Use
7454 TARGET_DEFAULT_IGNORE.
7455
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * target-delegates.c: Rebuild.
7459 * target.c (default_mourn_inferior): New function.
7460 (target_mourn_inferior): Unconditionally delegate.
7461 * target.h (struct target_ops) <to_mourn_inferior>: Use
7462 TARGET_DEFAULT_FUNC.
7463
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (default_follow_fork): New function.
7468 (target_follow_fork): Unconditionally delegate.
7469 * target.h (struct target_ops) <to_follow_fork>: Use
7470 TARGET_DEFAULT_FUNC.
7471
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7473
7474 * target-delegates.c: Rebuild.
7475 * target.c (target_kill): Unconditionally delegate.
7476 * target.h (struct target_ops) <to_kill>: Use
7477 TARGET_DEFAULT_NORETURN.
7478
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7480
7481 * target-delegates.c: Rebuild.
7482 * target.c (target_masked_watch_num_registers): Unconditionally
7483 delegate.
7484 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7485 Use TARGET_DEFAULT_RETURN.
7486
7487 2014-02-19 Tom Tromey <tromey@redhat.com>
7488
7489 * target-delegates.c: Rebuild.
7490 * target.c (target_remove_mask_watchpoint): Unconditionally
7491 delegate.
7492 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7493 TARGET_DEFAULT_RETURN.
7494
7495 2014-02-19 Tom Tromey <tromey@redhat.com>
7496
7497 * target-delegates.c: Rebuild.
7498 * target.c (target_insert_mask_watchpoint): Unconditionally
7499 delegate.
7500 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7501 TARGET_DEFAULT_RETURN.
7502
7503 2014-02-19 Tom Tromey <tromey@redhat.com>
7504
7505 * target-delegates.c: Rebuild.
7506 * target.c (target_ranged_break_num_registers): Unconditionally
7507 delegate.
7508 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7509 Use TARGET_DEFAULT_RETURN.
7510
7511 2014-02-19 Tom Tromey <tromey@redhat.com>
7512
7513 * target-delegates.c: Rebuild.
7514 * target.c (target_fetch_registers): Unconditionally delegate.
7515 * target.h (struct target_ops) <to_fetch_registers>: Use
7516 TARGET_DEFAULT_NORETURN.
7517
7518 2014-02-19 Tom Tromey <tromey@redhat.com>
7519
7520 * target-delegates.c: Rebuild.
7521 * target.c (update_current_target): Don't inherit or default
7522 to_stop.
7523 * target.h (struct target_ops) <to_stop>: Use
7524 TARGET_DEFAULT_IGNORE.
7525
7526 2014-02-19 Tom Tromey <tromey@redhat.com>
7527
7528 * target-delegates.c: Rebuild.
7529 * target.c (update_current_target): Don't inherit or default
7530 to_can_run_breakpoint_commands.
7531 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7532 Use TARGET_DEFAULT_RETURN.
7533
7534 2014-02-19 Tom Tromey <tromey@redhat.com>
7535
7536 * target-delegates.c: Rebuild.
7537 * target.c (update_current_target): Don't inherit or default
7538 to_supports_evaluation_of_breakpoint_conditions.
7539 * target.h (struct target_ops)
7540 <to_supports_evaluation_of_breakpoint_conditions>: Use
7541 TARGET_DEFAULT_RETURN.
7542
7543 2014-02-19 Tom Tromey <tromey@redhat.com>
7544
7545 * target-delegates.c: Rebuild.
7546 * target.c (update_current_target): Don't inherit or default
7547 to_augmented_libraries_svr4_read.
7548 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7549 Use TARGET_DEFAULT_RETURN.
7550
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target-delegates.c: Rebuild.
7554 * target.c (update_current_target): Don't inherit or default
7555 to_can_use_agent.
7556 * target.h (struct target_ops) <to_can_use_agent>: Use
7557 TARGET_DEFAULT_RETURN.
7558
7559 2014-02-19 Tom Tromey <tromey@redhat.com>
7560
7561 * target-delegates.c: Rebuild.
7562 * target.c (update_current_target): Don't inherit or default
7563 to_use_agent.
7564 * target.h (struct target_ops) <to_use_agent>: Use
7565 TARGET_DEFAULT_NORETURN.
7566
7567 2014-02-19 Tom Tromey <tromey@redhat.com>
7568
7569 * target-delegates.c: Rebuild.
7570 * target.c (update_current_target): Don't inherit or default
7571 to_traceframe_info.
7572 (return_null): Remove.
7573 * target.h (struct target_ops) <to_traceframe_info>: Use
7574 TARGET_DEFAULT_RETURN.
7575
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.c (update_current_target): Don't inherit or default
7580 to_static_tracepoint_markers_by_strid.
7581 * target.h (struct target_ops)
7582 <to_static_tracepoint_markers_by_strid>: Use
7583 TARGET_DEFAULT_NORETURN.
7584
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target-delegates.c: Rebuild.
7588 * target.c (update_current_target): Don't inherit or default
7589 to_static_tracepoint_marker_at.
7590 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7591 Use TARGET_DEFAULT_RETURN.
7592
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7594
7595 * target-delegates.c: Rebuild.
7596 * target.c (update_current_target): Don't inherit or default
7597 to_set_permissions.
7598 * target.h (struct target_ops) <to_set_permissions>: Use
7599 TARGET_DEFAULT_IGNORE.
7600
7601 2014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target-delegates.c: Rebuild.
7604 * target.c (update_current_target): Don't inherit or default
7605 to_get_tib_address.
7606 * target.h (struct target_ops) <to_get_tib_address>: Use
7607 TARGET_DEFAULT_NORETURN.
7608
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7613 to_set_trace_notes.
7614 * target.h (struct target_ops) <to_set_trace_notes>: Use
7615 TARGET_DEFAULT_RETURN.
7616
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target-delegates.c: Rebuild.
7620 * target.c (update_current_target): Don't initialize
7621 to_set_trace_buffer_size.
7622 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7623 TARGET_DEFAULT_IGNORE.
7624
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_set_circular_trace_buffer.
7630 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7631 TARGET_DEFAULT_IGNORE.
7632
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target-delegates.c: Rebuild.
7636 * target.c (update_current_target): Don't inherit or default
7637 to_set_disconnected_tracing.
7638 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7639 TARGET_DEFAULT_IGNORE.
7640
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7642
7643 * target-delegates.c: Rebuild.
7644 * target.c (update_current_target): Don't inherit or default
7645 to_get_min_fast_tracepoint_insn_len.
7646 (return_minus_one): Remove.
7647 * target.h (struct target_ops)
7648 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7649
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7651
7652 * target-delegates.c: Rebuild.
7653 * target.c (update_current_target): Don't inherit or default
7654 to_get_raw_trace_data.
7655 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7656 TARGET_DEFAULT_NORETURN.
7657
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7659
7660 * target-delegates.c: Rebuild.
7661 * target.c (update_current_target): Don't inherit or default
7662 to_upload_trace_state_variables.
7663 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7664 Use TARGET_DEFAULT_RETURN.
7665
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7667
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7670 to_upload_tracepoints.
7671 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7672 TARGET_DEFAULT_RETURN.
7673
7674 2014-02-19 Tom Tromey <tromey@redhat.com>
7675
7676 * target-delegates.c: Rebuild.
7677 * target.c (update_current_target): Don't inherit or default
7678 to_save_trace_data.
7679 * target.h (struct target_ops) <to_save_trace_data>: Use
7680 TARGET_DEFAULT_NORETURN.
7681
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target-delegates.c: Rebuild.
7685 * target.c (update_current_target): Don't inherit or default
7686 to_get_trace_state_variable_value.
7687 * target.h (struct target_ops)
7688 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7689
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (update_current_target): Don't inherit or default
7694 to_trace_find.
7695 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7696
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target-delegates.c: Rebuild.
7700 * target.c (update_current_target): Don't inherit or default
7701 to_trace_stop.
7702 * target.h (struct target_ops) <to_trace_stop>: Use
7703 TARGET_DEFAULT_NORETURN.
7704
7705 2014-02-19 Tom Tromey <tromey@redhat.com>
7706
7707 * target-delegates.c: Rebuild.
7708 * target.c (update_current_target): Don't inherit or default
7709 to_get_tracepoint_status.
7710 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7711 TARGET_DEFAULT_NORETURN.
7712
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * target-delegates.c: Rebuild.
7716 * target.c (update_current_target): Don't inherit or default
7717 to_get_trace_status.
7718 * target.h (struct target_ops) <to_get_trace_status>: Use
7719 TARGET_DEFAULT_RETURN.
7720
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7722
7723 * target-delegates.c: Rebuild.
7724 * target.c (update_current_target): Don't inherit or default
7725 to_trace_start.
7726 * target.h (struct target_ops) <to_trace_start>: Use
7727 TARGET_DEFAULT_NORETURN.
7728
7729 2014-02-19 Tom Tromey <tromey@redhat.com>
7730
7731 * target-delegates.c: Rebuild.
7732 * target.c (update_current_target): Don't inherit or default
7733 to_trace_set_readonly_regions.
7734 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7735 Use TARGET_DEFAULT_NORETURN.
7736
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * target-delegates.c: Rebuild.
7740 * target.c (update_current_target): Don't inherit or default
7741 to_disable_tracepoint.
7742 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7743 TARGET_DEFAULT_NORETURN.
7744
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (update_current_target): Don't inherit or default
7749 to_enable_tracepoint.
7750 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7751 TARGET_DEFAULT_NORETURN.
7752
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7754
7755 * target-delegates.c: Rebuild.
7756 * target.c (update_current_target): Don't inherit or default
7757 to_download_trace_state_variable.
7758 * target.h (struct target_ops) <to_download_trace_state_variable>:
7759 Use TARGET_DEFAULT_NORETURN.
7760
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * target-delegates.c: Rebuild.
7764 * target.c (update_current_target): Don't inherit or default
7765 to_can_download_tracepoint.
7766 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7767 TARGET_DEFAULT_RETURN.
7768
7769 2014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (update_current_target): Don't inherit or default
7773 to_download_tracepoint.
7774 * target.h (struct target_ops) <to_download_tracepoint>: Use
7775 TARGET_DEFAULT_NORETURN.
7776
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7778
7779 * target-delegates.c: Rebuild.
7780 * target.c (update_current_target): Don't inherit or default
7781 to_trace_init.
7782 * target.h (struct target_ops) <to_trace_init>: Use
7783 TARGET_DEFAULT_RETURN.
7784
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7786
7787 * target-delegates.c: Rebuild.
7788 * target.c (update_current_target): Don't inherit or default
7789 to_supports_string_tracing.
7790 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7791 TARGET_DEFAULT_RETURN.
7792
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target-delegates.c: Rebuild.
7796 * target.c (update_current_target): Don't inherit or default
7797 to_supports_enable_disable_tracepoint.
7798 * target.h (struct target_ops)
7799 <to_supports_enable_disable_tracepoint>: Use
7800 TARGET_DEFAULT_RETURN.
7801
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (update_current_target): Don't inherit or default
7806 to_supports_multi_process.
7807 * target.h (struct target_ops) <to_supports_multi_process>: Use
7808 TARGET_DEFAULT_RETURN.
7809
7810 2014-02-19 Tom Tromey <tromey@redhat.com>
7811
7812 * target-delegates.c: Rebuild.
7813 * target.c (update_current_target): Don't inherit or default
7814 to_get_ada_task_ptid.
7815 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7816 TARGET_DEFAULT_FUNC.
7817
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (update_current_target): Don't inherit or default
7822 to_thread_architecture.
7823 * target.h (struct target_ops) <to_thread_architecture>: Use
7824 TARGET_DEFAULT_FUNC.
7825
7826 2014-02-19 Tom Tromey <tromey@redhat.com>
7827
7828 * target-delegates.c: Rebuild.
7829 * target.c (update_current_target): Don't inherit or default
7830 to_execution_direction.
7831 * target.h (struct target_ops) <to_execution_direction>: Use
7832 TARGET_DEFAULT_FUNC.
7833
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * target-delegates.c: Rebuild.
7837 * target.c (update_current_target): Don't inherit or default
7838 to_can_execute_reverse.
7839 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7840 TARGET_DEFAULT_RETURN.
7841 (target_can_execute_reverse): Unconditionally delegate.
7842
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * target-delegates.c: Rebuild.
7846 * target.c (update_current_target): Don't inherit or default
7847 to_goto_bookmark.
7848 (dummy_goto_bookmark): Remove.
7849 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7850 * target.h (struct target_ops) <to_goto_bookmark>: Use
7851 TARGET_DEFAULT_NORETURN.
7852
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.c (update_current_target): Don't inherit or default
7857 to_get_bookmark.
7858 (dummy_get_bookmark): Remove.
7859 (init_dummy_target): Don't inherit or default to_get_bookmark.
7860 * target.h (struct target_ops) <to_get_bookmark>: Use
7861 TARGET_DEFAULT_NORETURN
7862
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7864
7865 * target-delegates.c: Rebuild.
7866 * target.c (update_current_target): Don't inherit or default
7867 to_make_corefile_notes.
7868 (init_dummy_target): Don't initialize to_make_corefile_notes.
7869 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7870 TARGET_DEFAULT_FUNC.
7871
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target-delegates.c: Rebuild.
7875 * target.c (update_current_target): Don't inherit or default
7876 to_find_memory_regions.
7877 (init_dummy_target): Don't initialize to_find_memory_regions.
7878 * target.h (struct target_ops) <to_find_memory_regions>: Use
7879 TARGET_DEFAULT_FUNC.
7880
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (update_current_target): Don't inherit or default
7885 to_log_command.
7886 * target.h (struct target_ops) <to_log_command>: Use
7887 TARGET_DEFAULT_IGNORE.
7888 (target_log_command): Unconditionally delegate.
7889
7890 2014-02-19 Tom Tromey <tromey@redhat.com>
7891
7892 * target-delegates.c: Rebuild.
7893 * target.c (update_current_target): Don't inherit or default
7894 to_pid_to_exec_file.
7895 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7896 TARGET_DEFAULT_RETURN.
7897
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7899
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7902 to_thread_name.
7903 (target_thread_name): Unconditionally delegate.
7904 * target.h (struct target_ops) <to_thread_name>: Use
7905 TARGET_DEFAULT_RETURN.
7906
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_extra_thread_info.
7912 * target.h (struct target_ops) <to_extra_thread_info>: Use
7913 TARGET_DEFAULT_RETURN.
7914
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7916
7917 * target-delegates.c: Rebuild.
7918 * target.c (update_current_target): Don't inherit or default
7919 to_has_exited.
7920 * target.h (struct target_ops) <to_has_exited>: Use
7921 TARGET_DEFAULT_RETURN..
7922
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7924
7925 * target-delegates.c: Rebuild.
7926 * target.c (update_current_target): Don't inherit or default
7927 to_set_syscall_catchpoint.
7928 (return_one): Remove.
7929 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7930 TARGET_DEFAULT_RETURN.
7931
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target-delegates.c: Rebuild.
7935 * target.c (update_current_target): Don't inherit or default
7936 to_insert_exec_catchpoint.
7937 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7938 TARGET_DEFAULT_RETURN.
7939
7940 2014-01-08 Tom Tromey <tromey@redhat.com>
7941
7942 * target-delegates.c: Rebuild.
7943 * target.c (update_current_target): Don't inherit or default
7944 to_insert_exec_catchpoint.
7945 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7946 TARGET_DEFAULT_RETURN.
7947
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7949
7950 * target-delegates.c: Rebuild.
7951 * target.c (update_current_target): Don't inherit or default
7952 to_remove_vfork_catchpoint.
7953 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7954 TARGET_DEFAULT_RETURN.
7955
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target-delegates.c: Rebuild.
7959 * target.c (update_current_target): Don't inherit or default
7960 to_insert_vfork_catchpoint.
7961 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7962 TARGET_DEFAULT_RETURN.
7963
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7968 to_remove_fork_catchpoint.
7969 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7970 TARGET_DEFAULT_RETURN.
7971
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target-delegates.c: Rebuild.
7975 * target.c (update_current_target): Don't inherit or default
7976 to_insert_fork_catchpoint.
7977 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7978 TARGET_DEFAULT_RETURN.
7979
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (update_current_target): Don't inherit or default
7984 to_post_startup_inferior.
7985 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7986 TARGET_DEFAULT_IGNORE.
7987
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_load.
7993 * target.h (struct target_ops) <to_load>: Use
7994 TARGET_DEFAULT_NORETURN.
7995
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_terminal_info.
8001 * target.h (struct target_ops) <to_terminal_info>: Use
8002 TARGET_DEFAULT_FUNC.
8003
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8005
8006 * target-delegates.c: Rebuild.
8007 * target.c (update_current_target): Don't inherit or default
8008 to_terminal_save_ours.
8009 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8010 TARGET_DEFAULT_IGNORE.
8011
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_terminal_ours.
8017 * target.h (struct target_ops) <to_terminal_ours>: Use
8018 TARGET_DEFAULT_IGNORE.
8019
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_terminal_ours_for_output.
8025 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8026 TARGET_DEFAULT_IGNORE.
8027
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_terminal_inferior.
8033 * target.h (struct target_ops) <to_terminal_inferior>: Use
8034 TARGET_DEFAULT_IGNORE.
8035
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_terminal_init.
8041 * target.h (struct target_ops) <to_terminal_init>: Use
8042 TARGET_DEFAULT_IGNORE.
8043
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (update_current_target): Don't inherit or default
8048 to_can_accel_watchpoint_condition.
8049 * target.h (struct target_ops)
8050 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8051
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_region_ok_for_hw_watchpoint.
8057 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8058 Use TARGET_DEFAULT_FUNC.
8059
8060 2014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (update_current_target): Don't inherit or default
8064 to_watchpoint_addr_within_range.
8065 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8066 Use TARGET_DEFAULT_FUNC.
8067
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_remove_watchpoint.
8073 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8074 TARGET_DEFAULT_NORETURN.
8075
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8080 to_insert_watchpoint.
8081 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8082 TARGET_DEFAULT_RETURN.
8083
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8088 to_remove_hw_breakpoint.
8089 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8090 TARGET_DEFAULT_RETURN.
8091
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (update_current_target): Don't inherit or default
8096 to_insert_hw_breakpoint.
8097 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8098 TARGET_DEFAULT_RETURN.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (update_current_target): Don't inherit or default
8104 to_can_use_hw_breakpoint.
8105 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8106 TARGET_DEFAULT_RETURN.
8107
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (update_current_target): Don't inherit or default
8112 to_files_info.
8113 * target.h (struct target_ops) <to_files_info>: Use
8114 TARGET_DEFAULT_IGNORE.
8115
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (update_current_target): Don't inherit or default
8120 to_store.
8121 * target.h (struct target_ops) <to_store>: Use
8122 TARGET_DEFAULT_NORETURN.
8123
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_post_attach.
8129 * target.h (struct target_ops) <to_post_attach>: Use
8130 TARGET_DEFAULT_IGNORE.
8131
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_rcmd.
8137 (default_rcmd): New function.
8138 (do_monitor_command): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_rmcd>: Use
8140 TARGET_DEFAULT_FUNC.
8141
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (init_dummy_target): Don't initialize to_attach.
8146 (target_attach): Unconditionally delegate.
8147 * target.h (struct target_ops) <to_attach>: Use
8148 TARGET_DEFAULT_FUNC.
8149
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (target_detach): Unconditionally delegate.
8154 (init_dummy_target): Don't initialize to_detach.
8155 * target.h (struct target_ops) <to_detach>: Use
8156 TARGET_DEFAULT_IGNORE.
8157
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8161 Add argument.
8162 (target_augmented_libraries_svr4_read): Add argument.
8163 * target.c (update_current_target): Update.
8164 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8165 argument.
8166
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8168
8169 * target.h (struct target_ops) <to_call_history_range>: Add
8170 argument.
8171 * target.c (target_call_history_range): Add argument.
8172 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8173 argument.
8174 (record_btrace_call_history_from): Update.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target.h (struct target_ops) <to_call_history_from>: Add
8179 argument.
8180 * target.c (target_call_history_from): Add argument.
8181 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8182 argument.
8183
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target.h (struct target_ops) <to_call_history>: Add argument.
8187 * target.c (target_call_history): Add argument.
8188 * record-btrace.c (record_btrace_call_history): Add 'self'
8189 argument.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target.h (struct target_ops) <to_insn_history_range>: Add
8194 argument.
8195 * target.c (target_insn_history_range): Add argument.
8196 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8197 argument.
8198 (record_btrace_insn_history_from): Update.
8199
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target.h (struct target_ops) <to_insn_history_from>: Add
8203 argument.
8204 * target.c (target_insn_history_from): Add argument.
8205 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8206 argument.
8207
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target.h (struct target_ops) <to_insn_history>: Add argument.
8211 * target.c (target_insn_history): Add argument.
8212 * record-btrace.c (record_btrace_insn_history): Add 'self'
8213 argument.
8214
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target.h (struct target_ops) <to_goto_record>: Add argument.
8218 * target.c (target_goto_record): Add argument.
8219 * record-full.c (record_full_goto): Add 'self' argument.
8220 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8221
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8225 * target.c (target_goto_record_end): Add argument.
8226 * record-full.c (record_full_goto_end): Add 'self' argument.
8227 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8228
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target.h (struct target_ops) <to_goto_record_begin>: Add
8232 argument.
8233 * target.c (target_goto_record_begin): Add argument.
8234 * record-full.c (record_full_goto_begin): Add 'self' argument.
8235 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8236 argument.
8237
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target.h (struct target_ops) <to_record_is_replaying>: Add
8241 argument.
8242 * target.c (target_record_is_replaying): Add argument.
8243 * record-full.c (record_full_is_replaying): Add 'self' argument.
8244 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8245 argument.
8246 (record_btrace_xfer_partial, record_btrace_store_registers)
8247 (record_btrace_prepare_to_store, record_btrace_resume)
8248 (record_btrace_wait, record_btrace_decr_pc_after_break)
8249 (record_btrace_find_new_threads, record_btrace_thread_alive):
8250 Update.
8251
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (struct target_ops) <to_delete_record>: Add argument.
8255 * target.c (target_delete_record): Add argument.
8256 * record-full.c (record_full_delete): Add 'self' argument.
8257
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target.h (struct target_ops) <to_save_record>: Add argument.
8261 * target.c (target_save_record): Add argument.
8262 * record-full.c (record_full_save): Add 'self' argument.
8263 (record_full_save): Add 'self' argument.
8264
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target.h (struct target_ops) <to_info_record>: Add argument.
8268 * target.c (target_info_record): Add argument.
8269 * record.c (info_record_command): Add argument.
8270 * record-full.c (record_full_info): Add 'self' argument.
8271 * record-btrace.c (record_btrace_info): Add 'self' argument.
8272
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8276 * target.c (target_stop_recording): Add argument.
8277 * record.c (record_stop): Add argument.
8278 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8279 argument.
8280
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8284 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8285 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8286 argument.
8287 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8288 (_initialize_amd64_linux_nat): Use it.
8289 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8290 (_initialize_i386_linux_nat): Use it.
8291
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8295 * target.c (target_teardown_btrace): Add argument.
8296 * remote.c (remote_teardown_btrace): Add 'self' argument.
8297 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8298 argument.
8299 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8300 argument.
8301
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8303
8304 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8305 * target.c (target_disable_btrace): Add argument.
8306 * remote.c (remote_disable_btrace): Add 'self' argument.
8307 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8308 argument.
8309 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8310 argument.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8315 * target.c (target_enable_btrace): Add argument.
8316 * remote.c (remote_enable_btrace): Add 'self' argument.
8317 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8318 argument.
8319 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8320 argument.
8321
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8325 (target_can_use_agent): Add argument.
8326 * target.c (update_current_target): Update.
8327 * remote.c (remote_can_use_agent): Add 'self' argument.
8328 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8329
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target.h (struct target_ops) <to_use_agent>: Add argument.
8333 (target_use_agent): Add argument.
8334 * target.c (update_current_target): Update.
8335 * remote.c (remote_use_agent): Add 'self' argument.
8336 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8337
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8341 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8342 (target_traceframe_info): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_traceframe_info): Add 'self' argument.
8345 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8346
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (target_static_tracepoint_markers_by_strid): Add
8350 argument.
8351 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8352 'self' argument.
8353 * target.c (update_current_target): Update.
8354 * remote.c (struct target_ops)
8355 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8356 * linux-nat.c (struct target_ops)
8357 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8358
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8362 Add argument.
8363 (target_static_tracepoint_marker_at): Add argument.
8364 * target.c (update_current_target): Update.
8365 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8366 argument.
8367
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8371 (target_set_permissions): Add argument.
8372 * target.c (update_current_target): Update.
8373 * remote.c (remote_set_permissions): Add 'self' argument.
8374 (remote_start_remote): Update.
8375
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8377
8378 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8379 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8380 (target_get_tib_address): Add argument.
8381 * target.c (update_current_target): Update.
8382 * remote.c (remote_get_tib_address): Add 'self' argument.
8383
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8387 (target_set_trace_notes): Add argument.
8388 * target.c (update_current_target): Update.
8389 * remote.c (remote_set_trace_notes): Add 'self' argument.
8390
8391 2014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8394 argument.
8395 (target_set_trace_buffer_size): Add argument.
8396 * target.c (update_current_target): Update.
8397 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8398
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8402 argument.
8403 (target_set_circular_trace_buffer): Add argument.
8404 * target.c (update_current_target): Update.
8405 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8406 argument.
8407
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8411 argument.
8412 (target_set_disconnected_tracing): Add argument.
8413 * target.c (update_current_target): Update.
8414 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8415
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target.h (struct target_ops)
8419 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8420 (target_get_min_fast_tracepoint_insn_len): Add argument.
8421 * target.c (update_current_target): Update.
8422 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8423 argument.
8424
8425 2014-02-19 Tom Tromey <tromey@redhat.com>
8426
8427 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8428 argument.
8429 (target_get_raw_trace_data): Add argument.
8430 * target.c (update_current_target): Update.
8431 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8432
8433 2014-02-19 Tom Tromey <tromey@redhat.com>
8434
8435 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8436 Add argument.
8437 (target_upload_trace_state_variables): Add argument.
8438 * target.c (update_current_target): Update.
8439 * remote.c (remote_upload_trace_state_variables): Add 'self'
8440 argument.
8441 (remote_start_remote): Update.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8446 argument.
8447 (target_upload_tracepoints): Add argument.
8448 * target.c (update_current_target): Update.
8449 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8450 (remote_start_remote): Update.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8455 (target_save_trace_data): Add argument.
8456 * target.c (update_current_target): Update.
8457 * remote.c (remote_save_trace_data): Add 'self' argument.
8458
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8462 argument.
8463 * target.h (struct target_ops)
8464 <to_get_trace_state_variable_value>: Add argument.
8465 (target_get_trace_state_variable_value): Add argument.
8466 * target.c (update_current_target): Update.
8467 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8468 argument.
8469 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8470
8471 2014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8474 * target.h (struct target_ops) <to_trace_find>: Add argument.
8475 (target_trace_find): Add argument.
8476 * target.c (update_current_target): Update.
8477 * remote.c (remote_trace_find): Add 'self' argument.
8478 * ctf.c (ctf_trace_find): Add 'self' argument.
8479
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8483 (target_trace_stop): Add argument.
8484 * target.c (update_current_target): Update.
8485 * remote.c (remote_trace_stop): Add 'self' argument.
8486
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8490 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8491 argument.
8492 (target_get_tracepoint_status): Add argument.
8493 * target.c (update_current_target): Update.
8494 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8495
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8499 * target.h (struct target_ops) <to_get_trace_status>: Add
8500 argument.
8501 (target_get_trace_status): Add argument.
8502 * target.c (update_current_target): Update.
8503 * remote.c (remote_get_trace_status): Add 'self' argument.
8504 (remote_start_remote, remote_can_download_tracepoint): Update.
8505 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target.h (struct target_ops) <to_trace_start>: Add argument.
8510 (target_trace_start): Add argument.
8511 * target.c (update_current_target): Update.
8512 * remote.c (remote_trace_start): Add 'self' argument.
8513
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8515
8516 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8517 Add argument.
8518 (target_trace_set_readonly_regions): Add argument.
8519 * target.c (update_current_target): Update.
8520 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8521 argument.
8522
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8526 argument.
8527 (target_disable_tracepoint): Add argument.
8528 * target.c (update_current_target): Update.
8529 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8530
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8534 argument.
8535 (target_enable_tracepoint): Add argument.
8536 * target.c (update_current_target): Update.
8537 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8538
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target.h (struct target_ops) <to_download_trace_state_variable>:
8542 Add argument.
8543 (target_download_trace_state_variable): Add argument.
8544 * target.c (update_current_target): Update.
8545 * remote.c (remote_download_trace_state_variable): Add 'self'
8546 argument.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8551 argument.
8552 (target_can_download_tracepoint): Add argument.
8553 * target.c (update_current_target): Update.
8554 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8555
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target.h (struct target_ops) <to_download_tracepoint>: Add
8559 argument.
8560 (target_download_tracepoint): Add argument.
8561 * target.c (update_current_target): Update.
8562 * remote.c (remote_download_tracepoint): Add 'self' argument.
8563
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target.h (struct target_ops) <to_trace_init>: Add argument.
8567 (target_trace_init): Add argument.
8568 * target.c (update_current_target): Update.
8569 * remote.c (remote_trace_init): Add 'self' argument.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8574 * target.c (target_fileio_readlink): Add argument.
8575 * remote.c (remote_hostio_readlink): Add 'self' argument.
8576 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8577
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8579
8580 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8581 * target.c (target_fileio_unlink): Add argument.
8582 * remote.c (remote_hostio_unlink): Add 'self' argument.
8583 (remote_file_delete): Update.
8584 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8585
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8587
8588 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8589 * target.c (target_fileio_close): Add argument.
8590 * remote.c (remote_hostio_close): Add 'self' argument.
8591 (remote_hostio_close_cleanup): Update.
8592 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8593 Update.
8594 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8599 * target.c (target_fileio_pread): Add argument.
8600 * remote.c (remote_hostio_pread): Add 'self' argument.
8601 (remote_bfd_iovec_pread, remote_file_get): Update.
8602 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8607 * target.c (target_fileio_pwrite): Add argument.
8608 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8609 (remote_file_put): Update.
8610 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8611
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8615 * target.c (target_fileio_open): Add argument.
8616 * remote.c (remote_hostio_open): Add 'self' argument.
8617 (remote_bfd_iovec_open): Add 'self' argument.
8618 (remote_file_put): Add 'self' argument.
8619 (remote_file_get): Add 'self' argument.
8620 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8621
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8625 Add argument.
8626 (target_can_run_breakpoint_commands): Add argument.
8627 * target.c (update_current_target): Update.
8628 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8629 argument.
8630 (remote_insert_breakpoint): Add 'self' argument.
8631 (remote_insert_hw_breakpoint): Add 'self' argument.
8632 (remote_can_run_breakpoint_commands): Add 'self' argument.
8633
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target.h (struct target_ops)
8637 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8638 (target_supports_evaluation_of_breakpoint_conditions): Add
8639 argument.
8640 * target.c (update_current_target): Update.
8641 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8642 argument.
8643 (remote_insert_breakpoint): Add 'self' argument.
8644 (remote_insert_hw_breakpoint): Add 'self' argument.
8645 (remote_supports_cond_breakpoints): Add 'self' argument.
8646
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8650 argument.
8651 (target_supports_string_tracing): Add argument.
8652 * target.c (update_current_target): Update.
8653 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8654
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target.h (struct target_ops)
8658 <to_supports_disable_randomization>: Add argument.
8659 * target.c (find_default_supports_disable_randomization): Add
8660 argument.
8661 (target_supports_disable_randomization): Add argument.
8662 (find_default_supports_disable_randomization): Add 'self'
8663 argument.
8664 * remote.c (extended_remote_supports_disable_randomization): Add
8665 'self' argument.
8666 (remote_supports_disable_randomization): Add 'self' argument.
8667 (extended_remote_create_inferior): Update.
8668 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8669 'self' argument.
8670
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target.h (struct target_ops)
8674 <to_supports_enable_disable_tracepoint>: Add argument.
8675 (target_supports_enable_disable_tracepoint): Add argument.
8676 * target.c (update_current_target): Update.
8677 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8678 argument.
8679
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops) <to_supports_multi_process>: Add
8683 argument.
8684 (target_supports_multi_process): Add argument.
8685 * target.c (update_current_target): Update.
8686 * remote.c (remote_supports_multi_process): Add 'self' argument.
8687 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8688 argument.
8689 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8690 argument.
8691
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops) <to_execution_direction>: Add
8695 argument.
8696 (target_execution_direction): Add argument.
8697 * target.c (default_execution_direction): Add 'self' argument.
8698 * record-full.c (record_full_execution_direction): Add 'self'
8699 argument.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8704 argument.
8705 (target_can_execute_reverse): Add argument.
8706 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8707 * record-full.c (record_full_can_execute_reverse): Add 'self'
8708 argument.
8709 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8710 argument.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8715 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8716 argument.
8717 (target_get_ada_task_ptid): Add argument.
8718 * target.c (update_current_target): Update.
8719 (default_get_ada_task_ptid): Add 'self' argument.
8720 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8721 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8722 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8723 argument.
8724 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8725 argument.
8726 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8727 argument.
8728 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8729 argument.
8730 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8731 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8732 argument.
8733
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8737 (target_goto_bookmark): Add argument.
8738 * target.c (dummy_goto_bookmark): Add 'self' argument.
8739 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8744 (target_get_bookmark): Add argument.
8745 * target.c (dummy_get_bookmark): Add 'self' argument.
8746 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8747
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8751 argument.
8752 (target_make_corefile_notes): Add argument.
8753 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8754 * procfs.c (procfs_make_note_section): Add 'self' argument.
8755 (procfs_make_note_section): Add 'self' argument.
8756 (procfs_make_note_section): Add 'self' argument.
8757 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8758 argument.
8759 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8760 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8761 * exec.c (exec_make_note_section): Add 'self' argument.
8762 (exec_make_note_section): Add 'self' argument.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target.h (struct target_ops) <to_find_memory_regions>: Add
8767 argument.
8768 (target_find_memory_regions): Add argument.
8769 * target.c (dummy_find_memory_regions): Add 'self' argument.
8770 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8771 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8772 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8773 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8774 * exec. (exec_do_find_memory_regions): New global.
8775 (exec_set_find_memory_regions): Rewrite.
8776 (exec_find_memory_regions): New function.
8777 (init_exec_ops): Use exec_find_memory_regions.
8778
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target.h (struct target_ops) <to_supports_non_stop>: Add
8782 argument.
8783 * target.c (find_default_supports_non_stop): Add argument.
8784 (target_supports_non_stop): Add argument.
8785 (find_default_supports_non_stop): Add 'self' argument.
8786 * remote.c (remote_supports_non_stop): Add 'self' argument.
8787 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target.h (struct target_ops) <to_log_command>: Add argument.
8792 (target_log_command): Add argument.
8793 * serial.h (serial_log_command): Add 'self' argument.
8794 * serial.c (serial_log_command): Add 'self' argument.
8795
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8799 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8800 argument.
8801 (target_pid_to_exec_file): Add argument.
8802 * target.c (debug_to_pid_to_exec_file): Add argument.
8803 (update_current_target): Update.
8804 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8805 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8806 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8807 (linux_handle_extended_wait): Update.
8808 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8809 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8810 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8811 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target.h (struct target_ops) <to_rcmd>: Add argument.
8816 (target_rcmd): Add argument.
8817 * target.c (debug_to_rcmd): Add argument.
8818 (update_current_target, do_monitor_command): Update.
8819 * remote.c (remote_rcmd): Add 'self' argument.
8820 * monitor.c (monitor_rcmd): Add 'self' argument.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * windows-nat.c (windows_stop): Add 'self' argument.
8825 * target.h (struct target_ops) <to_stop>: Add argument.
8826 * target.c (target_stop): Add argument.
8827 (debug_to_stop): Add argument.
8828 (update_current_target): Update.
8829 * remote.c (remote_stop): Add 'self' argument.
8830 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8831 (gdbsim_cntrl_c): Update.
8832 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8833 * procfs.c (procfs_stop): Add 'self' argument.
8834 * nto-procfs.c (procfs_stop): Add 'self' argument.
8835 * monitor.c (monitor_stop): Add 'self' argument.
8836 (monitor_open): Update.
8837 * linux-nat.c (linux_nat_stop): Add argument.
8838 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8839 * gnu-nat.c (gnu_stop): Add 'self' argument.
8840 * darwin-nat.c (darwin_stop): Add 'self' argument.
8841
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops) <to_thread_name>: Add argument.
8845 * target.c (target_thread_name): Add argument.
8846 (update_current_target): Update.
8847 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8848
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * target.h (struct target_ops) <to_extra_thread_info>: Add
8852 argument.
8853 (target_extra_thread_info): Add argument.
8854 * target.c (update_current_target): Update.
8855 * remote.c (remote_threads_extra_info): Add 'self' argument.
8856 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8857 argument.
8858 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8859 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8860 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8861 argument.
8862 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8863 argument.
8864 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8865 argument.
8866 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8867 argument.
8868
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (struct target_ops) <to_program_signals>: Add argument.
8872 * target.c (target_program_signals): Add argument.
8873 * remote.c (remote_program_signals): Add 'self' argument.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8878 * target.c (target_pass_signals): Add argument.
8879 * remote.c (remote_pass_signals): Add 'self' argument.
8880 (remote_start_remote): Update.
8881 * procfs.c (procfs_pass_signals): Add 'self' argument.
8882 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8883 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8884 (linux_nat_create_inferior, linux_nat_attach): Update.
8885
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * windows-nat.c (windows_can_run): Add 'self' argument.
8889 * target.h (struct target_ops) <to_can_run>: Add argument.
8890 (target_can_run): Add argument.
8891 * target.c (debug_to_can_run): Add argument.
8892 (update_current_target): Update.
8893 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8894 * inf-child.c (inf_child_can_run): Add 'self' argument.
8895 * go32-nat.c (go32_can_run): Add 'self' argument.
8896
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target.h (struct target_ops) <to_has_exited>: Add argument.
8900 (target_has_exited): Add argument.
8901 * target.c (debug_to_has_exited): Add argument.
8902 (update_current_target): Update.
8903
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8907 argument.
8908 (target_set_syscall_catchpoint): Add argument.
8909 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8910 argument.
8911 * target.c (update_current_target): Update.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8916 argument.
8917 (target_remove_exec_catchpoint): Add argument.
8918 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8919 (update_current_target): Update.
8920 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8921 argument.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8926 argument.
8927 (target_insert_exec_catchpoint): Add argument.
8928 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8929 (update_current_target): Update.
8930 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8931 argument.
8932
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8936 argument.
8937 (target_remove_vfork_catchpoint): Add argument.
8938 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8939 (update_current_target): Update.
8940 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8941 argument.
8942
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8946 argument.
8947 (target_insert_vfork_catchpoint): Add argument.
8948 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8949 (update_current_target): Update.
8950 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8951 argument.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8956 argument.
8957 (target_remove_fork_catchpoint): Add argument.
8958 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8959 (update_current_target): Update.
8960 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8961 argument.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8966 argument.
8967 (target_insert_fork_catchpoint): Add argument.
8968 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8969 (update_current_target): Update.
8970 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8971 argument.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8976 argument.
8977 (target_post_startup_inferior): Add argument.
8978 * target.c (debug_to_post_startup_inferior): Add argument.
8979 (update_current_target): Update.
8980 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8981 argument.
8982 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8983 argument.
8984 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8985 argument.
8986 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8987 argument.
8988 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8989 'self' argument.
8990 (super_post_startup_inferior): Likewise.
8991 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8992 'self' argument.
8993 (super_post_startup_inferior): Likewise.
8994 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8995 Add 'self' argument.
8996 (super_post_startup_inferior): Likewise.
8997
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
8999
9000 * target.h (struct target_ops) <to_load>: Add argument.
9001 * target.c (target_load): Add argument.
9002 (debug_to_load): Add argument.
9003 (update_current_target): Update.
9004 * remote.c (remote_load): Add 'self' argument.
9005 * remote-sim.c (gdbsim_load): Add 'self' argument.
9006 * remote-mips.c (mips_load): Add 'self' argument.
9007 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9008 * monitor.c (monitor_load): Add 'self' argument.
9009 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9014 (target_terminal_info): Add argument.
9015 * target.c (debug_to_terminal_info): Add argument.
9016 (default_terminal_info): Likewise.
9017 * inflow.c (child_terminal_info): Add 'self' argument.
9018 * inferior.h (child_terminal_info): Add 'self' argument.
9019 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9020
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9024 argument.
9025 (target_terminal_save_ours): Add argument.
9026 * target.c (debug_to_terminal_save_ours): Add argument.
9027 (update_current_target): Update.
9028 * inflow.c (terminal_save_ours): Add 'self' argument.
9029 * inferior.h (terminal_save_ours): Add 'self' argument.
9030
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9034 (target_terminal_ours): Add argument.
9035 * target.c (debug_to_terminal_ours): Add argument.
9036 (update_current_target): Update.
9037 * remote.c (remote_terminal_ours): Add 'self' argument.
9038 (remote_close): Update.
9039 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9040 * inflow.c (terminal_ours): Add 'self' argument.
9041 * inferior.h (terminal_ours): Add 'self' argument.
9042 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9043
9044 2014-02-19 Pedro Alves <palves@redhat.com>
9045 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9048 argument.
9049 (target_terminal_ours_for_output): Add argument.
9050 * target.c (debug_to_terminal_ours_for_output): Add argument.
9051 (update_current_target): Update.
9052 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9053 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9054 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_terminal_inferior>: Add
9059 argument.
9060 * target.c (target_terminal_inferior): Add argument.
9061 (update_current_target): Update.
9062 * remote.c (remote_terminal_inferior): Add 'self' argument.
9063 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9064 * inflow.c (terminal_inferior): Add 'self' argument.
9065 * inferior.h (terminal_inferior): Add 'self' argument.
9066 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9067 (go32_terminal_inferior): Add 'self' argument.
9068
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9072 (target_terminal_init): Add argument.
9073 * target.c (debug_to_terminal_init): Add argument.
9074 (update_current_target): Update.
9075 * inflow.c (terminal_init_inferior): Add 'self' argument.
9076 * inferior.h (terminal_init_inferior): Add 'self' argument.
9077 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9078 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9079
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops)
9083 <to_can_accel_watchpoint_condition>: Add argument.
9084 (target_can_accel_watchpoint_condition): Add argument.
9085 * target.c (debug_to_can_accel_watchpoint_condition): Add
9086 argument.
9087 (update_current_target): Update.
9088 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9089 'self' argument.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9094 Add argument.
9095 (target_region_ok_for_hw_watchpoint): Add argument.
9096 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9097 (default_region_ok_for_hw_watchpoint): Add argument.
9098 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9099 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9100 argument.
9101 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9102 argument.
9103 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9104 argument.
9105 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9106 'self' argument.
9107 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9108 'self' argument.
9109 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9110 'self' argument.
9111 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9112 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9113 'self' argument.
9114 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9115 Add 'self' argument.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9120 argument.
9121 (target_insert_watchpoint): Add argument.
9122 * target.c (debug_to_insert_watchpoint): Add argument.
9123 (update_current_target): Update.
9124 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9125 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9126 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9127 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9128 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9129 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9130 argument.
9131 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9132 (procfs_insert_hw_watchpoint): Add 'self' argument.
9133 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9134 argument.
9135 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9136 argument.
9137 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9138 argument.
9139 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9140 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9141 argument.
9142 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9143 'self' argument.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9148 argument.
9149 (target_remove_watchpoint): Add argument.
9150 * target.c (debug_to_remove_watchpoint): Add argument.
9151 (update_current_target): Update.
9152 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9153 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9154 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9155 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9156 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9157 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9158 argument.
9159 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9160 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9161 argument.
9162 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9163 argument.
9164 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9165 argument.
9166 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9167 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9168 argument.
9169 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9170 'self' argument.
9171
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9175 argument.
9176 (target_remove_hw_breakpoint): Add argument.
9177 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9178 (update_current_target): Update.
9179 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9180 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9181 argument.
9182 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9183 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9184 argument.
9185 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9186 'self' argument.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9191 argument.
9192 (target_insert_hw_breakpoint): Add argument.
9193 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9194 (update_current_target): Update.
9195 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9196 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9197 argument.
9198 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9199 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9200 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9201 argument.
9202 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9203 'self' argument.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9208 argument.
9209 (target_can_use_hardware_watchpoint): Add argument.
9210 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9211 (update_current_target): Update.
9212 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9213 argument.
9214 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9215 argument.
9216 * remote.c (remote_check_watch_resources): Add 'self' argument.
9217 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9218 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9219 argument.
9220 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9221 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9222 argument.
9223 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9224 argument.
9225 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9226 argument.
9227 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9228 argument.
9229 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9230 argument.
9231 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9232 argument.
9233 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9234 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9235 argument.
9236 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9237 'self' argument.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target.h (struct target_ops) <to_post_attach>: Add argument.
9242 (target_post_attach): Add argument.
9243 * target.c (debug_to_post_attach): Add argument.
9244 (update_current_target): Update.
9245 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9246 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9247 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9248 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9249 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9250
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * windows-nat.c (windows_close): Add 'self' argument.
9254 * tracepoint.c (tfile_close): Add 'self' argument.
9255 * target.h (struct target_ops) <to_close>: Add argument.
9256 * target.c (target_close): Add argument.
9257 (update_current_target): Update.
9258 * remote.c (remote_close): Add 'self' argument.
9259 * remote-sim.c (gdbsim_close): Add 'self' argument.
9260 * remote-mips.c (mips_close): Add 'self' argument.
9261 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9262 * record-full.c (record_full_close): Add 'self' argument.
9263 * record-btrace.c (record_btrace_close): Add 'self' argument.
9264 * monitor.h (monitor_close): Add 'self' argument.
9265 * monitor.c (monitor_close): Add 'self' argument.
9266 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9267 * linux-nat.c (linux_nat_close): Add argument.
9268 * go32-nat.c (go32_close): Add 'self' argument.
9269 * exec.c (exec_close_1): Add 'self' argument.
9270 * ctf.c (ctf_close): Add 'self' argument.
9271 * corelow.c (core_close): Add 'self' argument.
9272 (core_close_cleanup): Update.
9273 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9274 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * remote.c (remote_load): New function.
9279 (init_remote_ops): Use it.
9280
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9284 argument.
9285 * common/linux-btrace.h (linux_supports_btrace): Update.
9286 * remote.c (remote_supports_btrace): Add "self" argument.
9287 * target-delegates.c: Rebuild.
9288 * target.c (target_supports_btrace): Remove.
9289 * target.h (struct target_ops) <to_supports_btrace>: Add
9290 target_ops argument.
9291 (target_supports_btrace): New define.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * record-full.c (record_full_beneath_to_resume_ops)
9296 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9297 (record_full_beneath_to_wait)
9298 (record_full_beneath_to_store_registers_ops)
9299 (record_full_beneath_to_store_registers)
9300 (record_full_beneath_to_xfer_partial_ops)
9301 (record_full_beneath_to_xfer_partial)
9302 (record_full_beneath_to_insert_breakpoint_ops)
9303 (record_full_beneath_to_insert_breakpoint)
9304 (record_full_beneath_to_remove_breakpoint_ops)
9305 (record_full_beneath_to_remove_breakpoint)
9306 (record_full_beneath_to_stopped_by_watchpoint)
9307 (record_full_beneath_to_stopped_data_address)
9308 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9309 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9310 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9311 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9312 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9313 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9314 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9315 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9316 (record_full_resume, record_full_wait_1)
9317 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9318 (record_full_store_registers, record_full_xfer_partial)
9319 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9320 (record_full_async, record_full_core_xfer_partial): Use target
9321 delegation.
9322 * target-delegates.c: Rebuild.
9323 * target.c (current_xfer_partial): Remove.
9324 (update_current_target): Do not INHERIT or de_fault
9325 to_insert_breakpoint, to_remove_breakpoint,
9326 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9327 to_is_async_p, to_async. Do not set to_xfer_partial field.
9328 (default_xfer_partial): Simplify.
9329 (current_xfer_partial): Remove.
9330 (target_wait, target_resume): Simplify.
9331 (find_default_can_async_p, find_default_is_async_p): Update.
9332 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9333 to_xfer_partial, to_stopped_by_watchpoint,
9334 to_stopped_data_address.
9335 (target_store_registers): Simplify.
9336 (forward_target_remove_breakpoint)
9337 (forward_target_insert_breakpoint): Remove.
9338 (target_remove_breakpoint, target_insert_breakpoint)
9339 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9340 * target.h (struct target_ops) <to_resume, to_wait,
9341 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9342 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9343 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9344 markup.
9345 (forward_target_remove_breakpoint)
9346 (forward_target_insert_breakpoint): Remove.
9347 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9348 directly.
9349 (record_btrace_insert_breakpoint): Delegate directly.
9350
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 PR build/7701:
9354 * target-delegates.c: New file.
9355 * target.c: Include target-delegates.c.
9356 (init_dummy_target): Call install_dummy_methods.
9357 (complete_target_initialization): Call install_delegators.
9358 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9359 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9360 * make-target-delegates: New file.
9361
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * record.c (find_record_target): Use find_target_at.
9365 * target.c (find_target_at): New function.
9366 * target.h (find_target_at): Declare.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9371 Add 'ops' argument.
9372 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9373 'ops' argument.
9374 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9375 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9376 'ops' argument.
9377 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9378 argument.
9379 * linux-nat.c (save_sigtrap): Update.
9380 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9381 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9382 (linux_nat_close): Update.
9383 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9384 argument.
9385 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9386 argument.
9387 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9388 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9389 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9390 (tmp_to_async): Add 'ops' argument.
9391 (record_full_stopped_by_watchpoint, record_full_async)
9392 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9393 argument.
9394 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9395 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9396 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9397 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9398 (remote_is_async_p, remote_async): Add 'ops' argument.
9399 (remote_stopped_data_address): Update.
9400 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9401 * target.c (update_current_target)
9402 (find_default_can_async_p, find_default_is_async_p): Update.
9403 (init_dummy_target): Update.
9404 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9405 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9406 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9407 (target_can_async_p, target_is_async_p, target_async)
9408 (target_stopped_by_watchpoint): Update.
9409
9410 2014-02-19 Yao Qi <yao@codesourcery.com>
9411
9412 PR gdb/16220
9413 * gdbarch.sh: Remove startup_gdbarch.
9414 * gdbarch.c: Regenerated.
9415 * gdbarch.h: Likewise.
9416
9417 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9418
9419 * rl78-tdep.c (rl78_g10_register_name): New function.
9420 (rl78_return_value): Add g10 support.
9421 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9422 g10.
9423
9424 2014-02-17 Doug Evans <xdje42@gmail.com>
9425
9426 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9427 (SUBDIR_GUILE_SRCS): Ditto.
9428 (scm-gsmob.o): Ditto.
9429
9430 2014-02-17 Yao Qi <yao@codesourcery.com>
9431
9432 * gnu-nat.c (ILL_RPC): Declare defined function.
9433
9434 2014-02-17 Yao Qi <yao@codesourcery.com>
9435
9436 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9437 mach_msg_type_number_t.
9438 (gnu_write_inferior): Likewise.
9439
9440 2014-02-17 Yao Qi <yao@codesourcery.com>
9441
9442 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9443 in format string.
9444 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9445 (inf_validate_procs, inf_signal): Likewise.
9446 (S_exception_raise_request): Likewise.
9447 (do_mach_notify_dead_name): Likewise.
9448 (steal_exc_port): Likewise.
9449 (gnu_read_inferior): Change 'copy_count''s type to
9450 mach_msg_type_number_t.
9451 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9452 format string.
9453
9454 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9455
9456 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9457 flag. Adjust all users; in particular...
9458 (gnu_wait): ..., don't decrement its value in here...
9459 (gnu_create_inferior): ..., and instead set the flag in here,
9460 around the startup_inferior call, and call that one with
9461 START_INFERIOR_TRAPS_EXPECTED.
9462
9463 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9464 (ILL_RPC): ... new macro.
9465 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9466 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9467 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9468 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9469 functions with ILL_RPC macro.
9470 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9471 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9472 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9473 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9474 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9475 (S_proc_getlogin_reply, S_proc_getsid_reply)
9476 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9477 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9478 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9479 (S_proc_getnports_reply, S_proc_is_important_reply)
9480 (S_proc_get_code_reply): New stub functions, generated with
9481 ILL_RPC macro.
9482
9483 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9484 collected the type check structures.
9485
9486 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9487
9488 2014-02-14 Doug Evans <dje@google.com>
9489
9490 * target.c (target_write_partial): Fix result type.
9491
9492 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9493
9494 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9495 the proper offsets to access fpregset_t.
9496
9497 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9498
9499 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9500 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9501 * h8300-tdep.c (setmachinelist): Remove global.
9502 * hppa-tdep.c (hppa_sigtramp): Remove global.
9503 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9504 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9505 * ravenscar-thread.c (update_target_observer): Remove global.
9506 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9507
9508 2014-02-12 Tom Tromey <tromey@redhat.com>
9509
9510 * common/rsp-low.c: Update comments.
9511 * common/rsp-low.h: Update comments.
9512
9513 2014-02-12 Tom Tromey <tromey@redhat.com>
9514
9515 * common/rsp-low.c (convert_ascii_to_int): Remove.
9516 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9517
9518 2014-02-12 Tom Tromey <tromey@redhat.com>
9519
9520 * common/rsp-low.h (unhexify): Don't declare.
9521 * common/rsp-low.c (unhexify): Remove.
9522
9523 2014-02-12 Tom Tromey <tromey@redhat.com>
9524
9525 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9526 * common/rsp-low.c (convert_int_to_ascii): Remove.
9527
9528 2014-02-12 Tom Tromey <tromey@redhat.com>
9529
9530 * common/rsp-low.h (hexify): Don't declare.
9531 * common/rsp-low.c (hexify): Remove.
9532
9533 2014-02-12 Tom Tromey <tromey@redhat.com>
9534
9535 * common/rsp-low.c (hexify): Never take strlen of argument.
9536
9537 2014-02-12 Tom Tromey <tromey@redhat.com>
9538
9539 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9540 * remote.c (extended_remote_run, remote_rcmd)
9541 (remote_download_trace_state_variable, remote_save_trace_data)
9542 (remote_set_trace_notes): Update.
9543 * tracepoint.c (encode_source_string, tfile_write_status)
9544 (tfile_write_uploaded_tsv): Update.
9545
9546 2014-02-12 Tom Tromey <tromey@redhat.com>
9547
9548 * tracepoint.c: Include rsp-low.h.
9549 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9550 * remote.c: Include rsp-low.h.
9551 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9552 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9553 (remote_unescape_input): Move to common/rsp-low.c.
9554 * common/rsp-low.h: New file.
9555 * common/rsp-low.c: New file.
9556 * Makefile.in (SFILES): Add common/rsp-low.c.
9557 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9558 (COMMON_OBS): Add rsp-low.o.
9559 (rsp-low.o): New target.
9560
9561 2014-02-12 Tom Tromey <tromey@redhat.com>
9562
9563 * utils.h: Include print-utils.h.
9564 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9565 (int_string, core_addr_to_string, core_addr_to_string_nz)
9566 (hex_string, hex_string_custom): Don't declare.
9567 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9568 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9569 (hex_string_custom, int_string, core_addr_to_string)
9570 (core_addr_to_string_nz, host_address_to_string): Move to
9571 common/print-utils.c.
9572 * common/print-utils.h: New file.
9573 * common/print-utils.c: New file
9574 * Makefile.in (SFILES): Add common/print-utils.c.
9575 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9576 (COMMON_OBS): Add print-utils.o.
9577 (print-utils.o): New target.
9578
9579 2014-02-12 Tom Tromey <tromey@redhat.com>
9580
9581 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9582
9583 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9584
9585 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9586
9587 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9588
9589 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9590 if a PT_IO ptrace request returns sucessfully but indicates that 0
9591 bytes were transferred.
9592
9593 2014-02-12 Pedro Alves <palves@redhat.com>
9594 Kevin Buettner <kevinb@redhat.com>
9595
9596 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9597 TYPE_INSTANCE_FLAG_CODE_SPACE.
9598
9599 2014-02-12 Pedro Alves <palves@redhat.com>
9600
9601 * h8300-tdep.c (pseudo_from_raw_register)
9602 (raw_from_pseudo_register): New functions.
9603 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9604 them.
9605
9606 2014-02-12 Pedro Alves <palves@redhat.com>
9607
9608 * h8300-tdep.c (h8300_register_sim_regno): New function.
9609 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9610 gdbarch_register_sim_regno hook.
9611
9612 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9613
9614 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9615
9616 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9617
9618 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9619
9620 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9621
9622 * obsd-tdep.h (obsd_init_abi): New prototype.
9623 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9624 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9625 (obsd_init_abi): New functions.
9626 * i386obsd-tdep.c: Include "obsd-tdep.h".
9627 (i386obsd_init_abi): Call obsd_init_abi.
9628 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9629 (amd64obsd_init_abi): Call obsd_init_abi.
9630 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9631 obsd-tdep.c to gdb_target_obs.
9632
9633 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9634
9635 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9636 double float arguments to 16-byte in the argument slots.
9637
9638 2014-02-11 Doug Evans <xdje42@gmail.com>
9639
9640 * configure.ac: Don't crash if pkg-config is not found and guile
9641 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9642 in guile checks.
9643 * configure: Regenerate.
9644
9645 2014-02-11 Yao Qi <yao@codesourcery.com>
9646
9647 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9648 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9649 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9650 * gnu-nat.c (gnu_xfer_memory): Likewise.
9651 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9652 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9653 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9654 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9655
9656 2014-02-11 Yao Qi <yao@codesourcery.com>
9657
9658 * target.h (enum target_xfer_error): Rename to ...
9659 (enum target_xfer_status): ... it. New. All users updated.
9660 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9661 New.
9662 (TARGET_XFER_STATUS_ERROR_P): New macro.
9663 (target_xfer_error_to_string): Remove declaration.
9664 (target_xfer_status_to_string): Declare.
9665 (target_xfer_partial_ftype): Adjust it.
9666 (struct target_ops) <to_xfer_partial>: Return
9667 target_xfer_status. Add argument xfered_len. Update
9668 comments.
9669 * target.c (target_xfer_error_to_string): Rename to ...
9670 (target_xfer_status_to_string): ... it. New. All callers
9671 updated.
9672 (target_read_live_memory): Likewise. Call target_xfer_partial
9673 instead of target_read.
9674 (memory_xfer_live_readonly_partial): Return
9675 target_xfer_status. Add argument xfered_len.
9676 (raw_memory_xfer_partial): Likewise.
9677 (memory_xfer_partial_1): Likewise.
9678 (memory_xfer_partial): Likewise.
9679 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9680 properly. Update debug message.
9681 (default_xfer_partial, current_xfer_partial): Likewise.
9682 (target_write_partial): Likewise.
9683 (target_read_partial): Likewise. All callers updated.
9684 (read_whatever_is_readable): Likewise.
9685 (target_write_with_progress): Likewise.
9686 (target_read_alloc_1): Likewise.
9687
9688 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9689 * auxv.c (procfs_xfer_auxv): Likewise.
9690 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9691 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9692 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9693 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9694 * corefile.c (read_memory): Adjust.
9695 * corelow.c (core_xfer_partial): Likewise.
9696 * ctf.c (ctf_xfer_partial): Likewise.
9697 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9698 updated.
9699 (darwin_xfer_partial): Likewise.
9700 * exec.c (section_table_xfer_memory_partial): Likewise. All
9701 callers updated.
9702 (exec_xfer_partial): Likewise.
9703 * exec.h (section_table_xfer_memory_partial): Update
9704 declaration.
9705 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9706 negative.
9707 (gnu_xfer_partial): Likewise.
9708 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9709 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9710 (ia64_hpux_xfer_solib_got): Likewise.
9711 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9712 type of 'partial_len' to ULONGEST.
9713 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9714 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9715 (linux_nat_xfer_partial): Likewise.
9716 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9717 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9718 * monitor.c (monitor_xfer_memory): Likewise.
9719 (monitor_xfer_partial): Likewise.
9720 * procfs.c (procfs_xfer_partial): Likewise.
9721 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9722 * record-full.c (record_full_xfer_partial): Likewise.
9723 (record_full_core_xfer_partial): Likewise.
9724 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9725 (gdbsim_xfer_partial): Likewise.
9726 * remote.c (remote_write_bytes_aux): Likewise. All callers
9727 updated.
9728 (remote_write_bytes, remote_read_bytes): Likewise. All
9729 callers updated.
9730 (remote_flash_erase): Likewise. All callers updated.
9731 (remote_write_qxfer): Likewise. All callers updated.
9732 (remote_read_qxfer): Likewise. All callers updated.
9733 (remote_xfer_partial): Likewise.
9734 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9735 (rs6000_xfer_shared_libraries): Likewise.
9736 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9737 (sol_thread_xfer_partial): Likewise.
9738 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9739 (sparc_xfer_partial): Likewise.
9740 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9741 updated.
9742 (spu_xfer_partial): Likewise.
9743 * spu-multiarch.c (spu_xfer_partial): Likewise.
9744 * tracepoint.c (tfile_xfer_partial): Likewise.
9745 * windows-nat.c (windows_xfer_memory): Likewise.
9746 (windows_xfer_shared_libraries): Likewise.
9747 (windows_xfer_partial): Likewise.
9748 * valprint.c: Replace 'target_xfer_error' with
9749 'target_xfer_status' in comments.
9750
9751 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9752
9753 Checked in by Joel Brobecker <brobecker@adacore.com>.
9754 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9755
9756 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9757
9758 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9759 function parameters.
9760
9761 2014-02-10 Will Newton <will.newton@linaro.org>
9762
9763 * elfread.c (elf_rel_plt_read): Look for a .got section if
9764 looking up .got.plt fails.
9765 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9766 on address passed to elf_gnu_ifunc_record_cache.
9767 (elf_gnu_ifunc_resolve_addr): Likewise.
9768 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9769
9770 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9771
9772 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9773 (X_RETTURN): New macro.
9774 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9775
9776 * sparc64-tdep.c (sparc64_init_abi): Hook
9777 sparc_in_function_epilogue_p.
9778
9779 2014-02-10 Gary Benson <gbenson@redhat.com>
9780
9781 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9782 Rename name_matcher to symbol_matcher.
9783
9784 2014-02-10 Gary Benson <gbenson@redhat.com>
9785
9786 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9787 Use expand_symtabs_file_matcher_ftype and
9788 expand_symtabs_symbol_matcher_ftype.
9789
9790 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9791
9792 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9793 (struct ada_symbol_cache): New.
9794 (ada_free_symbol_cache): Forward declare.
9795 (struct ada_pspace_data): New.
9796 (ada_pspace_data_handle): New static global.
9797 (get_ada_pspace_data, ada_pspace_data_cleanup)
9798 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9799 (cache_space, cache): Delete, now folded inside struct
9800 ada_pspace_data.
9801 (ada_get_symbol_cache): New function.
9802 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9803 implementation.
9804 (_initialize_ada_language): Remove initialization of cache_space.
9805 Move call to observer_attach_inferior_exit up, grouping it
9806 with the other observer registrations inside this function.
9807 Rename command to be more general. Add call to
9808 register_program_space_data_with_cleanup.
9809
9810 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9811
9812 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9813 ada_new_objfile_observer.
9814 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9815 (_initialize_tasks): Update uses of ada_new_objfile_observer
9816 and ada_tasks_normal_stop_observer.
9817
9818 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9819
9820 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9821 returned by the 'Length attribute to integer.
9822
9823 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9824
9825 * ada-lang.c (_initialize_ada_language): Initialize
9826 cache_space obstack.
9827
9828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9829
9830 * ada-lang.c (HASH_SIZE): New macro.
9831 (struct cache_entry): New type.
9832 (cache_space, cache): New static globals.
9833 (ada_clear_symbol_cache, find_entry): New functions.
9834 (lookup_cached_symbol, cache_symbol): Implement.
9835 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9836 (_initialize_ada_language): Attach ada_new_objfile_observer
9837 and ada_free_objfile_observer.
9838
9839 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9840
9841 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9842 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9843 struct block * parameter.
9844 (ada_lookup_symbol_list_worker): Constify local variable "block".
9845 Remove cast which is no longer necessary.
9846
9847 2014-02-10 Doug Evans <xdje42@gmail.com>
9848
9849 Add Guile as an extension language.
9850 * NEWS: Mention Guile scripting.
9851 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9852 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9853 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9854 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9855 (CLIBS): Add GUILE_LIBS.
9856 (install-guile): New rule.
9857 (guile.o): New rule.
9858 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9859 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9860 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9861 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9862 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9863 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9864 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9865 * configure.ac: New option --with-guile.
9866 * configure: Regenerate.
9867 * config.in: Regenerate.
9868 * auto-load.c: Remove #include "python/python.h". Add #include
9869 "gdb/section-scripts.h".
9870 (source_section_scripts): Handle Guile scripts.
9871 (_initialize_auto_load): Add name of Guile objfile script to
9872 scripts-directory help text.
9873 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9874 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9875 (struct breakpoint): New member scm_bp_object.
9876 * defs.h (enum command_control_type): New value guile_control.
9877 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9878 "extension.h".
9879 (show_user): Update comment.
9880 (_initialize_cli_cmds): Update help text for "show user". Update help
9881 text for max-user-call-depth.
9882 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9883 "extension.h".
9884 (multi_line_command_p): Add guile_control.
9885 (print_command_lines): Handle guile_control.
9886 (execute_control_command, recurse_read_control_structure): Ditto.
9887 (process_next_line): Recognize "guile" commands.
9888 * disasm.c (gdb_disassemble_info): Make non-static.
9889 * disasm.h: #include "dis-asm.h".
9890 (struct gdbarch): Add forward decl.
9891 (gdb_disassemble_info): Declare.
9892 * extension.c: #include "guile/guile.h".
9893 (extension_languages): Add guile.
9894 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9895 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9896 * gdbtypes.c (get_unsigned_type_max): New function.
9897 (get_signed_type_minmax): New function.
9898 * gdbtypes.h (get_unsigned_type_max): Declare.
9899 (get_signed_type_minmax): Declare.
9900 * guile/README: New file.
9901 * guile/guile-internal.h: New file.
9902 * guile/guile.c: New file.
9903 * guile/guile.h: New file.
9904 * guile/scm-arch.c: New file.
9905 * guile/scm-auto-load.c: New file.
9906 * guile/scm-block.c: New file.
9907 * guile/scm-breakpoint.c: New file.
9908 * guile/scm-disasm.c: New file.
9909 * guile/scm-exception.c: New file.
9910 * guile/scm-frame.c: New file.
9911 * guile/scm-gsmob.c: New file.
9912 * guile/scm-iterator.c: New file.
9913 * guile/scm-lazy-string.c: New file.
9914 * guile/scm-math.c: New file.
9915 * guile/scm-objfile.c: New file.
9916 * guile/scm-ports.c: New file.
9917 * guile/scm-pretty-print.c: New file.
9918 * guile/scm-safe-call.c: New file.
9919 * guile/scm-string.c: New file.
9920 * guile/scm-symbol.c: New file.
9921 * guile/scm-symtab.c: New file.
9922 * guile/scm-type.c: New file.
9923 * guile/scm-utils.c: New file.
9924 * guile/scm-value.c: New file.
9925 * guile/lib/gdb.scm: New file.
9926 * guile/lib/gdb/boot.scm: New file.
9927 * guile/lib/gdb/experimental.scm: New file.
9928 * guile/lib/gdb/init.scm: New file.
9929 * guile/lib/gdb/iterator.scm: New file.
9930 * guile/lib/gdb/printing.scm: New file.
9931 * guile/lib/gdb/types.scm: New file.
9932 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9933 (VPATH): Add $(GUILE_SRCDIR).
9934 (GUILE_DIR): New variable.
9935 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9936 (all): Add stamp-guile dependency.
9937 (stamp-guile): New rule.
9938 (clean-guile, install-guile, uninstall-guile): New rules.
9939 (install-only): Add install-guile dependency.
9940 (uninstall): Add uninstall-guile dependency.
9941 (clean): Add clean-guile dependency.
9942
9943 2014-02-09 Doug Evans <xdje42@gmail.com>
9944
9945 Revert this patch (which I approved, mea culpa).
9946
9947 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9948
9949 * Makefile.in (all-lib): Remove.
9950 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9951
9952 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9953
9954 Fix Python stack corruption.
9955 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9956 gdb_py_longest.
9957
9958 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9959
9960 * Makefile.in (all-lib): Remove.
9961 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9962
9963 2014-02-07 Doug Evans <dje@google.com>
9964
9965 * extension-priv.h (extension_language_script_ops): Add comment.
9966 (extension_language_ops): Add comment.
9967 (active_ext_lang_state): Fix typo in comment.
9968
9969 2014-02-07 Pedro Alves <palves@redhat.com>
9970
9971 PR breakpoints/16292
9972 * infrun.c (handle_signal_stop) <signal arrives while stepping
9973 over a breakpoint>: Switch back to the stepping thread.
9974
9975 2014-02-07 Yao Qi <yao@codesourcery.com>
9976
9977 * target.c (target_xfer_partial): Return zero if LEN is zero.
9978
9979 2014-02-07 Yao Qi <yao@codesourcery.com>
9980
9981 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9982 (ld_so_xfer_auxv): Likewise.
9983 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9984 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9985 * corelow.c (core_xfer_partial): Likewise.
9986 * ctf.c (ctf_xfer_partial): Likewise.
9987 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9988 (darwin_xfer_partial): Likewise.
9989 * exec.c (exec_xfer_partial): Likewise.
9990 * gnu-nat.c (gnu_xfer_partial): Likewise.
9991 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9992 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9993 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9994 * linux-nat.c (linux_xfer_siginfo): Likewise.
9995 (linux_proc_xfer_spu): Likewise.
9996 * procfs.c (procfs_xfer_partial): Likewise.
9997 * record-full.c (record_full_xfer_partial): Likewise.
9998 (record_full_core_xfer_partial): Likewise.
9999 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10000 * remote.c (remote_write_qxfer): Likewise.
10001 (remote_write_qxfer, remote_read_qxfer): Likewise.
10002 (remote_xfer_partial): Likewise.
10003 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10004 (rs6000_xfer_shared_libraries): Likewise.
10005 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10006 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10007 (spu_xfer_partial): Likewise.
10008 * target.c (memory_xfer_partial_1): Likewise.
10009 * tracepoint.c (tfile_xfer_partial): Likewise.
10010 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10011 (windows_xfer_partial): Likewise.
10012
10013 2014-02-07 Yao Qi <yao@codesourcery.com>
10014
10015 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10016 comments.
10017 (core_xfer_shared_libraries_aix): Likewise.
10018 * gdbarch.c, gdbarch.h: Regenerated.
10019 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10020 ULONGEST. Change 'len_avail' type to ULONGEST.
10021 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10022 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10023 declaration.
10024 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10025
10026 2014-02-07 Yao Qi <yao@codesourcery.com>
10027
10028 * corefile.c (memory_error): Get 'exception' from ERR and pass
10029 'exception' to throw_error.
10030
10031 2014-02-06 Doug Evans <xdje42@gmail.com>
10032
10033 * configure.ac (libpython checking): Remove all but python.o from
10034 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10035 * configure: Regenerate.
10036
10037 * Makefile.in (SFILES): Add extension.c.
10038 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10039 (COMMON_OBS): Add extension.o.
10040 * extension.h: New file.
10041 * extension-priv.h: New file.
10042 * extension.c: New file.
10043
10044 * python/python-internal.h: #include "extension.h".
10045 (gdbpy_auto_load_enabled): Declare.
10046 (gdbpy_apply_val_pretty_printer): Declare.
10047 (gdbpy_apply_frame_filter): Declare.
10048 (gdbpy_preserve_values): Declare.
10049 (gdbpy_breakpoint_cond_says_stop): Declare.
10050 (gdbpy_breakpoint_has_cond): Declare.
10051 (void source_python_script_for_objfile): Delete.
10052 * python/python.c: #include "extension-priv.h".
10053 Delete inclusion of "observer.h".
10054 (extension_language_python): Moved here and renamed from
10055 script_language_python in py-auto-load.c.
10056 Redefined to be of type extension_language_defn.
10057 (python_extension_script_ops): New global.
10058 (python_extension_ops): New global.
10059 (struct python_env): New member previous_active.
10060 (restore_python_env): Call restore_active_ext_lang.
10061 (ensure_python_env): Call set_active_ext_lang.
10062 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10063 New arg extlang.
10064 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10065 New arg extlang.
10066 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10067 New arg extlang.
10068 (gdbpy_eval_from_control_command): Renamed from
10069 eval_python_from_control_command, made static. New arg extlang.
10070 (gdbpy_source_script) Renamed from source_python_script, made static.
10071 New arg extlang.
10072 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10073 result to int. New arg extlang.
10074 (gdbpy_source_objfile_script): Renamed from
10075 source_python_script_for_objfile, made static. New arg extlang.
10076 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10077 static. New args extlang, extlang_printers. Change result type to
10078 "void".
10079 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10080 static. New arg extlang. Rename arg printers to extlang_printers
10081 and change type to ext_lang_type_printers *.
10082 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10083 static. Replace argument arg with extlang, extlang_printers.
10084 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10085 (!HAVE_PYTHON, source_python_script): Delete.
10086 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10087 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10088 (!HAVE_PYTHON, start_type_printers): Delete.
10089 (!HAVE_PYTHON, apply_type_printers): Delete.
10090 (!HAVE_PYTHON, free_type_printers): Delete.
10091 (_initialize_python): Delete call to observer_attach_before_prompt.
10092 (finalize_python): Set/restore active extension language.
10093 (gdbpy_finish_initialization) Renamed from
10094 finish_python_initialization, made static. New arg extlang.
10095 (gdbpy_initialized): New function.
10096 * python/python.h: #include "extension.h". Delete #include
10097 "value.h", "mi/mi-cmds.h".
10098 (extension_language_python): Declare.
10099 (GDBPY_AUTO_FILE_NAME): Delete.
10100 (enum py_bt_status): Moved to extension.h and renamed to
10101 ext_lang_bt_status.
10102 (enum frame_filter_flags): Moved to extension.h.
10103 (enum py_frame_args): Moved to extension.h and renamed to
10104 ext_lang_frame_args.
10105 (finish_python_initialization): Delete.
10106 (eval_python_from_control_command): Delete.
10107 (source_python_script): Delete.
10108 (apply_val_pretty_printer): Delete.
10109 (apply_frame_filter): Delete.
10110 (preserve_python_values): Delete.
10111 (gdbpy_script_language_defn): Delete.
10112 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10113 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10114
10115 * auto-load.c: #include "extension.h".
10116 (GDB_AUTO_FILE_NAME): Delete.
10117 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10118 (script_language_gdb): Delete, moved to extension.c and renamed to
10119 extension_language_gdb.
10120 (source_gdb_script_for_objfile): Delete.
10121 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10122 (loaded_script): Change type of language member to
10123 struct extension_language_defn *.
10124 (init_loaded_scripts_info): Initialize
10125 unsupported_script_warning_printed.
10126 (maybe_add_script): Make static. Change type of language arg to
10127 struct extension_language_defn *.
10128 (clear_section_scripts): Reset unsupported_script_warning_printed.
10129 (auto_load_objfile_script_1): Rewrite to use extension language API.
10130 (auto_load_objfile_script): Make public. Remove support-compiled-in
10131 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10132 (source_section_scripts): Rewrite to use extension language API.
10133 (load_auto_scripts_for_objfile): Rewrite to use
10134 auto_load_scripts_for_objfile.
10135 (collect_matching_scripts_data): Change type of language member to
10136 struct extension_language_defn *.
10137 (auto_load_info_scripts): Change type of language arg to
10138 struct extension_language_defn *.
10139 (unsupported_script_warning_print): New function.
10140 (script_not_found_warning_print): Make static.
10141 (_initialize_auto_load): Rewrite construction of scripts-directory
10142 help.
10143 * auto-load.h (struct objfile): Add forward decl.
10144 (struct script_language): Delete.
10145 (struct auto_load_pspace_info): Add forward decl.
10146 (struct extension_language_defn): Add forward decl.
10147 (maybe_add_script): Delete.
10148 (auto_load_objfile_script): Declare.
10149 (script_not_found_warning_print): Delete.
10150 (auto_load_info_scripts): Update prototype.
10151 (auto_load_gdb_scripts_enabled): Declare.
10152 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10153 auto_load_python_scripts_enabled and made public.
10154 (script_language_python): Delete, moved to python.c.
10155 (gdbpy_script_language_defn): Delete.
10156 (info_auto_load_python_scripts): Update to use
10157 extension_language_python.
10158
10159 * breakpoint.c (condition_command): Replace call to
10160 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10161 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10162 with call to breakpoint_ext_lang_cond_says_stop.
10163 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10164 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10165 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10166 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10167 New arg slang.
10168 (local_setattro): Print name of extension language with existing
10169 stop condition.
10170
10171 * valprint.c (val_print, value_print): Update to call
10172 apply_ext_lang_val_pretty_printer.
10173 * cp-valprint.c (cp_print_value): Update call to
10174 apply_ext_lang_val_pretty_printer.
10175 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10176 (gdbpy_apply_val_pretty_printer): Renamed from
10177 apply_val_pretty_printer. New arg extlang.
10178 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10179
10180 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10181 extension language API.
10182 * cli/cli-script.c (execute_control_command): Update to call
10183 eval_ext_lang_from_control_command.
10184
10185 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10186 enum ext_lang_bt_status values. Update call to
10187 apply_ext_lang_frame_filter.
10188 (mi_cmd_stack_list_locals): Ditto.
10189 (mi_cmd_stack_list_args): Ditto.
10190 (mi_cmd_stack_list_variables): Ditto.
10191 * mi/mi-main.c: Delete #include "python/python-internal.h".
10192 Add #include "extension.h".
10193 (mi_cmd_list_features): Replace reference to python internal variable
10194 gdb_python_initialized with call to ext_lang_initialized_p.
10195
10196 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10197 Update to use enum ext_lang_frame_args. Update to call
10198 apply_ext_lang_frame_filter.
10199 * python/py-framefilter.c (extract_sym): Update to use enum
10200 ext_lang_bt_status.
10201 (extract_value, py_print_type, py_print_value): Ditto.
10202 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10203 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10204 (py_print_frame): Ditto.
10205 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10206 New arg extlang. Update to use enum ext_lang_bt_status.
10207
10208 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10209 finish_python_initialization. Replace with call to
10210 finish_ext_lang_initialization.
10211
10212 * typeprint.c (do_free_global_table): Update to call
10213 free_ext_lang_type_printers.
10214 (create_global_typedef_table): Update to call
10215 start_ext_lang_type_printers.
10216 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10217 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10218 (type_print_options): Change type of global_printers from "void *"
10219 to "struct ext_lang_type_printers *".
10220
10221 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10222 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10223 (gdbpy_preserve_values): Renamed from preserve_python_values.
10224 New arg extlang.
10225 (!HAVE_PYTHON, preserve_python_values): Delete.
10226
10227 * utils.c (quit_flag): Delete, moved to extension.c.
10228 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10229 extension.c.
10230
10231 * eval.c: Delete #include "python/python.h".
10232 * main.c: Delete #include "python/python.h".
10233
10234 * defs.h: Update comment.
10235
10236 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10237
10238 GDB 7.7 released.
10239
10240 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10241
10242 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10243 defined.
10244
10245 2014-02-05 Yao Qi <yao@codesourcery.com>
10246
10247 * remote.c (remote_pass_signals): Remove local 'buf' and use
10248 rs->buf.
10249 (remote_program_signals): Likewise.
10250
10251 2014-02-05 Yao Qi <yao@codesourcery.com>
10252
10253 * ctf.c: Include "inferior.h" and "gdbthread.h".
10254 (CTF_PID): A new macro.
10255 (ctf_open): Call inferior_appeared and add_thread_silent.
10256 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10257 (ctf_thread_alive): New function.
10258 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10259
10260 2014-02-05 Yao Qi <yao@codesourcery.com>
10261
10262 Revert this patch:
10263
10264 2013-05-24 Yao Qi <yao@codesourcery.com>
10265
10266 * tracepoint.c (TFILE_PID): Remove.
10267 (tfile_open): Don't add thread and inferior.
10268 (tfile_close): Don't set 'inferior_ptid'. Don't call
10269 exit_inferior_silent.
10270 (tfile_thread_alive): Remove.
10271 (init_tfile_ops): Don't set field 'to_thread_alive' of
10272 tfile_ops.
10273
10274 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10275
10276 * remote.c (remote_start_remote): Call remote_check_symbols even
10277 if only symbol-file (not file) has been given.
10278
10279 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10280
10281 * gdbarch.sh (skip_entrypoint): New callback.
10282 * gdbarch.c, gdbarch.h: Regenerate.
10283 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10284 * infrun.c (fill_in_stop_func): Likewise.
10285 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10286 (ppc_elfv2_elf_make_msymbol_special): New function.
10287 (ppc_elfv2_skip_entrypoint): Likewise.
10288 (ppc_linux_init_abi): Install them for ELFv2.
10289
10290 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10291
10292 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10293 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10294 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10295 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10296 structures returned in GPRs.
10297
10298 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10299
10300 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10301 offset to the stack parameter list for the ELFv2 ABI.
10302
10303 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10304
10305 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10306 set_gdbarch_convert_from_func_ptr_addr and
10307 set_gdbarch_elf_make_msymbol_special for ELFv1.
10308 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10309 function descriptors on ELFv1.
10310 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10311 set up r12 at function entry.
10312
10313 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10314
10315 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10316 (struct gdbarch_tdep): New member elf_abi.
10317
10318 * rs6000-tdep.c: Include "elf/ppc64.h".
10319 (rs6000_gdbarch_init): Detect ELF ABI version.
10320
10321 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10322
10323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10324 within a register pair holding a DFP 128-bit value on little-endian.
10325 (ppc64_sysv_abi_return_value_base): Likewise.
10326 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10327 (dfp_pseudo_register_write): Likewise.
10328
10329 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10330
10331 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10332 offset on little-endian when passing _Decimal32.
10333 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10334
10335 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10336
10337 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10338 of the overlapped FP register within the VSX register on little-
10339 endian platforms.
10340 (efpr_pseudo_register_write): Likewise.
10341
10342 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10343
10344 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10345 offset on little-endian when passing small structures.
10346
10347 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10348
10349 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10350 (struct ppc64_sysv_argpos): New data structure.
10351 (ppc64_sysv_abi_push_float): Remove.
10352 (ppc64_sysv_abi_push_val): New function.
10353 (ppc64_sysv_abi_push_integer): Likewise.
10354 (ppc64_sysv_abi_push_freg): Likewise.
10355 (ppc64_sysv_abi_push_vreg): Likewise.
10356 (ppc64_sysv_abi_push_param): Likewise.
10357 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10358 (ppc64_sysv_abi_return_value_base): New function.
10359 (ppc64_sysv_abi_return_value): Refactor to use it.
10360
10361 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10362
10363 * NEWS: Document new target powerpc64le-*-linux*.
10364
10365 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10366
10367 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10368 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10369 core dumps.
10370 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10371 register set used in ELF core dumps. Add floating-point register set.
10372
10373 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10374
10375 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10376 dwarf2_to_gdb[] table using symbolic constants. Adjust
10377 penultimate entry from number representing the PC register
10378 to symbolic constant representing the MDR register. Add
10379 constant for the PC register to the end of the table.
10380
10381 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10382
10383 * bsd-kvm.c: Include <sys/param.h>
10384
10385 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10386
10387 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10388
10389 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10390
10391 * ada-lang.h (clear_ada_sym_cache): Delete.
10392
10393 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10394
10395 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10396
10397 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10398
10399 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10400 the sigreturn register save area only if the syscall is
10401 sigreturn.
10402
10403 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10404
10405 * valops.c (value_slice): Minor reformatting.
10406
10407 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10408
10409 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10410
10411 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10412
10413 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10414 New static globals.
10415 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10416 (ada_ignore_descriptive_types_p): New static global.
10417 (find_parallel_type_by_descriptive_type): Return immediately
10418 if ada_ignore_descriptive_types_p is set.
10419 (_initialize_ada_language): Register new commands "maintenance
10420 set ada", "maintenance show ada", "maintenance set ada
10421 ignore-descriptive-types" and "maintenance show ada
10422 ignore-descriptive-types".
10423 * NEWS: Add entry for new "maint ada set/show
10424 ignore-descriptive-types" commands.
10425
10426 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10427
10428 * record-btrace.c (record_btrace_close): Call btrace_teardown
10429 for all threads.
10430
10431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10432
10433 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10434 "ui-out.h".
10435
10436 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10437
10438 * ada-typeprint (type_is_full_subrange_of_target_type):
10439 New function.
10440 (print_range): Add parameter bounds_prefered_p. If not set,
10441 try printing range types using the name of their base type.
10442 (print_range_type): Add parameter bounds_prefered_p.
10443 Use it in call to print_range.
10444 (print_array_type, ada_print_type): Update calls to print_range
10445 and print_range_type.
10446
10447 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10448
10449 * ada-typeprint.c (print_array_type, print_choices, print_range)
10450 (print_range_bound, print_dynamic_range_bound, print_range_type):
10451 Remove declaration.
10452
10453 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10454
10455 * ada-typeprint.c (print_range): Add missing empty line
10456 after local declaration.
10457
10458 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10459
10460 * ada-valprint.c (print_optional_low_bound): Get index_type's
10461 target type for as long as it is a TYPE_CODE_RANGE.
10462
10463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10464
10465 * procfs.c (procfs_make_note_section): Remove assertion and
10466 associated comment.
10467
10468 2014-01-24 Yao Qi <yao@codesourcery.com>
10469
10470 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10471 * corelow.c (get_core_siginfo): Likewise.
10472
10473 2014-01-24 Yao Qi <yao@codesourcery.com>
10474
10475 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10476 ULONGEST. Don't check 'len' is negative.
10477 (remote_write_bytes): Change type of 'len' to ULONGEST.
10478
10479 2014-01-23 Tom Tromey <tromey@redhat.com>
10480
10481 PR python/16485:
10482 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10483 Handle exception from frame.block.
10484 (FrameVars.fetch_frame_locals): Likewise.
10485
10486 2014-01-23 Tom Tromey <tromey@redhat.com>
10487
10488 PR python/16487:
10489 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10490 on a NULL pointer. Move "goto error" to correct place.
10491
10492 2014-01-23 Tom Tromey <tromey@redhat.com>
10493
10494 PR python/16491:
10495 * python/py-framefilter.c (apply_frame_filter): Call
10496 ensure_python_env after computing gdbarch.
10497
10498 2014-01-23 Yao Qi <yao@codesourcery.com>
10499
10500 * target.c (raw_memory_xfer_partial): Change argument type
10501 from void * to gdb_byte *.
10502 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10503
10504 2014-01-22 Doug Evans <dje@google.com>
10505
10506 New gdbserver option --debug-format=timestamp.
10507 * NEWS: Mention it.
10508
10509 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10510
10511 * syscalls/s390x-linux.xml: New file.
10512 * syscalls/s390-linux.xml: New file.
10513 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10514 (XML_SYSCALL_FILENAME_S390X): Likewise.
10515 (op_svc): New enum value for SVC opcode.
10516 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10517 (s390_linux_get_syscall_number): New function.
10518 (s390_gdbarch_init): Register '*get_syscall_number' and the
10519 syscall xml file name.
10520 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10521 "s390-linux.xml" and "s390x-linux.xml".
10522 * NEWS: Announce new feature.
10523
10524 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10525
10526 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10527
10528 2014-01-22 Pedro Alves <palves@redhat.com>
10529
10530 * xtensa-config.c: Include defs.h.
10531
10532 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10533
10534 * common/common-utils.h: Add "ARI:" comment beside __func__
10535 reference.
10536
10537 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10538
10539 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10540 documentation a bit.
10541
10542 2014-01-21 Roland McGrath <mcgrathr@google.com>
10543
10544 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10545 * configure: Regenerate.
10546 * aclocal.m4: Regenerate.
10547 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10548 New substituted variables.
10549 (install-strip): New target.
10550 (INSTALL_SCRIPT): New substituted variable.
10551 (FLAGS_TO_PASS): Add it.
10552 (install-only): Use $(INSTALL_SCRIPT) rather than
10553 $(INSTALL_PROGRAM) for gcore.
10554
10555 2014-01-20 Tom Tromey <tromey@redhat.com>
10556
10557 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10558 together.
10559
10560 2014-01-20 Tom Tromey <tromey@redhat.com>
10561
10562 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10563 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10564 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10565 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10566 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10567 (struct cmd_list_element) <flags>: Remove.
10568 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10569 doc_allocated>: New fields.
10570 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10571 bitfields.
10572 * maint.c (maintenance_do_deprecate): Update.
10573 * top.c (execute_command): Update.
10574
10575 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10576
10577 * xtensa-linux-nat.c: Include asm/ptrace.h.
10578
10579 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10580
10581 * Makefile.in (SFILES): Add d-support.c.
10582 (COMMON_OBS): Add d-support.o.
10583 * d-lang.h (d_parse_symbol): Add comment, now defined in
10584 d-support.c.
10585 * d-lang.c (parse_call_convention)
10586 (parse_attributes, parse_function_types)
10587 (parse_function_args, parse_type, parse_identifier)
10588 (call_convention_p, d_parse_symbol): Move functions to ...
10589 * d-support.c: ... New file.
10590
10591 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10592
10593 * d-lang.h (d_parse_symbol): Add declaration.
10594 * d-lang.c (extract_identifiers)
10595 (extract_type_info): Remove functions.
10596 (parse_call_convention, parse_attributes)
10597 (parse_function_types, parse_function_args)
10598 (parse_type, parse_identifier, call_convention_p)
10599 (d_parse_symbol): New functions.
10600 (d_demangle): Use d_parse_symbol to demangle D symbols.
10601
10602 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10603
10604 * d-lang.h (struct builtin_d_type): New data type.
10605 (builtin_d_type): Add declaration.
10606 * d-lang.c (d_language_arch_info, build_d_types)
10607 (builtin_d_type): New functions.
10608 (enum d_primitive_types): New data type.
10609 (d_language_defn): Change c_language_arch_info to
10610 d_language_arch_info.
10611 (d_type_data): New static variable.
10612 (_initialize_d_language): Initialize d_type_data.
10613
10614 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10615
10616 * d-lang.h (d_main_name): Add declaration.
10617 * d-lang.c (d_main_name): New function.
10618 * symtab.c (find_main_name): Add call to d_main_name.
10619
10620 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10621
10622 * d-lang.c (d_language_defn): Change macro_expansion_c to
10623 macro_expansion_no.
10624
10625 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10626
10627 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10628
10629 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10630
10631 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10632 gdb_exception" declaration.
10633 * remote.c (getpkt_or_notif_sane): Likewise.
10634
10635 2014-01-17 Doug Evans <dje@google.com>
10636
10637 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10638 function, contents of dirnames_to_char_ptr_vec_append moved here.
10639 (delim_string_to_char_ptr_vec): New function.
10640 (dirnames_to_char_ptr_vec_append): Rewrite.
10641 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10642
10643 2014-01-17 Doug Evans <dje@google.com>
10644
10645 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10646 and moved here ...
10647 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10648 #include "common-utils.h".
10649 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10650 * common/vec.h (VEC_ASSERT_PASS): Update.
10651 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10652 (MACH_CHECK_ERROR): Update.
10653
10654 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10655
10656 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10657 comments.
10658 * gdbarch.h: Regenerate.
10659
10660 2014-01-16 Tom Tromey <tromey@redhat.com>
10661
10662 * value.c (struct value) <regnum>: Move earlier.
10663
10664 2014-01-16 Tom Tromey <tromey@redhat.com>
10665
10666 * remote.c (extended_remote_create_inferior): Rename from
10667 extended_remote_create_inferior_1. Add "ops" argument. Remove
10668 old implementation.
10669
10670 2014-01-16 Pedro Alves <palves@redhat.com>
10671
10672 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10673 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10674 the backchain.
10675
10676 2014-01-16 Doug Evans <dje@google.com>
10677
10678 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10679
10680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10681
10682 * btrace.h (btrace_thread_flag): New.
10683 (struct btrace_thread_info) <flags>: New.
10684 * record-btrace.c (record_btrace_resume_thread)
10685 (record_btrace_find_thread_to_move, btrace_step_no_history)
10686 (btrace_step_stopped, record_btrace_start_replaying)
10687 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10688 (record_btrace_find_resume_thread): New.
10689 (record_btrace_resume, record_btrace_wait): Extend.
10690 (record_btrace_can_execute_reverse): New.
10691 (record_btrace_open): Fail in non-stop mode.
10692 (record_btrace_set_replay): Split into this, ...
10693 (record_btrace_stop_replaying): ... this, ...
10694 (record_btrace_clear_histories): ... and this.
10695 (init_record_btrace_ops): Init to_can_execute_reverse.
10696 * NEWS: Announce it.
10697
10698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10699
10700 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10701 (forward_target_decr_pc_after_break)
10702 (target_decr_pc_after_break): New.
10703 * target.c (forward_target_decr_pc_after_break)
10704 (target_decr_pc_after_break): New.
10705 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10706 instead of gdbarch_decr_pc_after_break.
10707 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10708 instead of gdbarch_decr_pc_after_break.
10709 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10710 instead of gdbarch_decr_pc_after_break.
10711 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10712 instead of gdbarch_decr_pc_after_break.
10713 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10714 instead of gdbarch_decr_pc_after_break.
10715 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10716 instead of gdbarch_decr_pc_after_break.
10717
10718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10719
10720 * btrace.c: Include regcache.h.
10721 (btrace_add_pc): New.
10722 (btrace_enable): Call btrace_add_pc.
10723 (btrace_is_empty): New.
10724 * btrace.h (btrace_is_empty): New.
10725 * record-btrace.c (require_btrace, record_btrace_info): Call
10726 btrace_is_empty.
10727
10728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10729
10730 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10731 Support delta reads.
10732 (linux_disable_btrace): Change return type.
10733 * common/linux-btrace.h (linux_read_btrace): Change parameters
10734 and return type to allow error reporting. Update users.
10735 (linux_disable_btrace): Change return type. Update users.
10736 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10737 New.
10738 (btrace_error): New.
10739 (btrace_block) <begin>: Comment on BEGIN == 0.
10740 * btrace.c (btrace_compute_ftrace): Start from the end of
10741 the current trace.
10742 (btrace_stitch_trace, btrace_clear_history): New.
10743 (btrace_fetch): Read delta trace, return if replaying.
10744 (btrace_clear): Move clear history code to btrace_clear_history.
10745 (parse_xml_btrace): Throw an error if parsing failed.
10746 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10747 and return type to allow error reporting.
10748 (target_read_btrace): Change parameters and return type to allow
10749 error reporting.
10750 * target.c (target_read_btrace): Update.
10751 * remote.c (remote_read_btrace): Support delta reads. Pass
10752 errors on.
10753 * NEWS: Announce it.
10754
10755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10756
10757 * record.h (record_btrace_frame_unwind)
10758 (record_btrace_tailcall_frame_unwind): New declarations.
10759 * dwarf2-frame: Include record.h
10760 (dwarf2_frame_cfa): Throw an error for btrace frames.
10761 * record-btrace.c: Include hashtab.h.
10762 (btrace_get_bfun_name): New.
10763 (btrace_call_history): Call btrace_get_bfun_name.
10764 (struct btrace_frame_cache): New.
10765 (bfcache): New.
10766 (bfcache_hash, bfcache_eq, bfcache_new): New.
10767 (btrace_get_frame_function): New.
10768 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10769 (record_btrace_frame_this_id): Compute own id.
10770 (record_btrace_frame_prev_register): Provide PC, throw_error
10771 for all other registers.
10772 (record_btrace_frame_sniffer): Detect btrace frames.
10773 (record_btrace_tailcall_frame_sniffer): New.
10774 (record_btrace_frame_dealloc_cache): New.
10775 (record_btrace_frame_unwind): Add new functions.
10776 (record_btrace_tailcall_frame_unwind): New.
10777 (_initialize_record_btrace): Allocate cache.
10778 * btrace.c (btrace_clear): Call reinit_frame_cache.
10779 * NEWS: Announce it.
10780
10781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10782
10783 * record-btrace.c (record_btrace_set_replay)
10784 (record_btrace_goto_begin, record_btrace_goto_end)
10785 (record_btrace_goto): New.
10786 (init_record_btrace_ops): Initialize them.
10787 * NEWS: Announce it.
10788
10789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10790
10791 * record-btrace.c (record_btrace_find_new_threads)
10792 (record_btrace_thread_alive): New.
10793 (init_record_btrace_ops): Initialize to_find_new_threads and
10794 to_thread_alive.
10795
10796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10797
10798 * record-btrace.c (record_btrace_resume): New.
10799 (record_btrace_wait): New.
10800 (init_record_btrace_ops): Initialize to_wait and to_resume.
10801
10802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * record-btrace.c (record_btrace_xfer_partial)
10805 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10806 (record_btrace_allow_memory_access): New.
10807 (init_record_btrace_ops): Initialize new methods.
10808 * target.c (raw_memory_xfer_partial): Bail out if target reports
10809 that this memory is not available.
10810
10811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10812
10813 * target.h (target_ops) <to_insert_breakpoint>
10814 <to_remove_breakpoint>: Add target_ops parameter.
10815 (forward_target_insert_breakpoint): New.
10816 (forward_target_remove_breakpoint): New.
10817 (memory_remove_breakpoint, memory_insert_breakpoint):
10818 Add target_ops parameter.
10819 * target.c (target_insert_breakpoint): Split into this and ...
10820 (forward_target_insert_breakpoint): ... this.
10821 (target_remove_breakpoint): Split into this and ...
10822 (forward_target_remove_breakpoint): ... this.
10823 (debug_to_insert_breakpoint): Add target_ops parameter.
10824 Call forward_target_insert_breakpoint.
10825 (debug_to_remove_breakpoint): Add target_ops parameter.
10826 Call forward_target_remove_breakpoint.
10827 (update_current_target): Do not inherit or default to_insert_breakpoint
10828 and to_remove_breakpoint.
10829 * corelow.c (ignore): Add target_ops parameter.
10830 * exec.c (ignore): Add target_ops parameter.
10831 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10832 Add target_ops parameter.
10833 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10834 Add target_ops parameter.
10835 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10836 Add target_ops parameter.
10837 * record-full.c (record_full_beneath_to_insert_breakpoint)
10838 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10839 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10840 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10841 (record_full_core_remove_breakpoint): Add target_ops parameter.
10842 Update users.
10843 (record_full_beneath_to_insert_breakpoint_ops)
10844 (record_full_beneath_to_remove_breakpoint_ops)
10845 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10846 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10847 tmp_to_remove_breakpoint_ops,
10848 record_full_beneath_to_insert_breakpoint_ops, and
10849 record_full_beneath_to_remove_breakpoint_ops.
10850 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10851 (m32r_remove_breakpoint): Add target_ops parameter.
10852 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10853 Add target_ops parameter.
10854 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10855 Add target_ops parameter.
10856
10857 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * record-btrace.c: Include frame-unwind.h.
10861 (record_btrace_frame_unwind_stop_reason)
10862 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10863 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10864 New.
10865 (init_record_btrace_ops): Install it.
10866
10867 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10868
10869 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10870 get_prev_frame_1.
10871
10872 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10873
10874 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10875 earlier.
10876
10877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10878
10879 * frame-unwind.c: Include target.h.
10880 (frame_unwind_try_unwinder): New function with code from ...
10881 (frame_unwind_find_by_frame): ... here. New variable
10882 unwinder_from_target, call also target_get_unwinder)
10883 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10884 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10885 * target.h (struct target_ops): New fields to_get_unwinder and
10886 to_get_tailcall_unwinder.
10887 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10888
10889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10890
10891 * record-btrace.c (record_btrace_fetch_registers)
10892 (record_btrace_store_registers)
10893 (record_btrace_to_prepare_to_store): New.
10894 (init_record_btrace_ops): Add the above.
10895
10896 2014-01-16 Tom Tromey <tromey@redhat.com>
10897
10898 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10899 * target.h (struct target_ops) <to_prepare_to_store>: Add
10900 argument.
10901 (target_prepare_to_store): Add argument.
10902 * target.c (debug_to_prepare_to_store): Add argument.
10903 (update_current_target): Update.
10904 * remote.c (remote_prepare_to_store): Add 'self' argument.
10905 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10906 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10907 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10908 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10909 argument.
10910 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10911 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10912 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10913 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10914 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10915
10916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10917
10918 * btrace.h (replay) <replay>: New.
10919 (btrace_is_replaying): New.
10920 * btrace.c (btrace_clear): Free replay iterator.
10921 (btrace_is_replaying): New.
10922 * record-btrace.c (record_btrace_is_replaying): New.
10923 (record_btrace_info): Print insn number if replaying.
10924 (record_btrace_insn_history): Start at replay position.
10925 (record_btrace_call_history): Start at replay position.
10926 (init_record_btrace_ops): Init to_record_is_replaying.
10927
10928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10929
10930 * record-btrace.c (record_btrace_insn_history_range): Include
10931 end.
10932 (record_btrace_insn_history_from): Adjust range.
10933 (record_btrace_call_history_range): Include
10934 end.
10935 (record_btrace_call_history_from): Adjust range.
10936 * NEWS: Announce changes.
10937
10938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10939
10940 * record.h (enum record_print_flag)
10941 <record_print_indent_calls>: New.
10942 * record.c (get_call_history_modifiers): Recognize /c modifier.
10943 (_initialize_record): Document /c modifier.
10944 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10945 Reorder fields. Optionally indent the function name. Update
10946 all users.
10947 * NEWS: Announce changes.
10948
10949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10950
10951 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10952
10953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10954
10955 * btrace.c (ftrace_new_function): Start counting at one.
10956 * record-btrace.c (record_btrace_info): Adjust number of calls
10957 and insns.
10958 * NEWS: Announce it.
10959
10960 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10961
10962 * record-btrace.c (btrace_call_history_insn_range): Print
10963 insn range as [begin, end].
10964
10965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10966
10967 * btrace.h (struct btrace_func_link): New.
10968 (enum btrace_function_flag): New.
10969 (struct btrace_inst): Rename to ...
10970 (struct btrace_insn): ...this. Update all users.
10971 (struct btrace_func) <ibegin, iend>: Remove.
10972 (struct btrace_func_link): New.
10973 (struct btrace_func): Rename to ...
10974 (struct btrace_function): ...this. Update all users.
10975 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10976 (number, level, flags>: New.
10977 (struct btrace_insn_iterator): Rename to ...
10978 (struct btrace_insn_history): ...this.
10979 Update all users.
10980 (struct btrace_insn_iterator, btrace_call_iterator): New.
10981 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10982 (struct btrace_target_info) <begin, end, level>
10983 <insn_history, call_history>: New.
10984 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10985 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10986 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10987 (btrace_call_number, btrace_call_begin, btrace_call_end)
10988 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10989 (btrace_find_function_by_number, btrace_set_insn_history)
10990 (btrace_set_call_history): New.
10991 * btrace.c (btrace_init_insn_iterator)
10992 (btrace_init_func_iterator, compute_itrace): Remove.
10993 (ftrace_print_function_name, ftrace_print_filename)
10994 (ftrace_skip_file): Change
10995 parameter to const.
10996 (ftrace_init_func): Remove.
10997 (ftrace_debug): Use new btrace_function fields.
10998 (ftrace_function_switched): Also consider gaining and
10999 losing symbol information).
11000 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11001 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11002 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11003 New.
11004 (ftrace_new_function): Move. Remove debug print.
11005 (ftrace_update_lines, ftrace_update_insns): New.
11006 (ftrace_update_function): Check for call, ret, and jump.
11007 (compute_ftrace): Renamed to ...
11008 (btrace_compute_ftrace): ...this. Rewritten to compute call
11009 stack.
11010 (btrace_fetch, btrace_clear): Updated.
11011 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11012 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11013 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11014 (btrace_call_number, btrace_call_begin, btrace_call_end)
11015 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11016 (btrace_find_function_by_number, btrace_set_insn_history)
11017 (btrace_set_call_history): New.
11018 * record-btrace.c (require_btrace): Use new btrace thread
11019 info fields.
11020 (record_btrace_info, btrace_insn_history)
11021 (record_btrace_insn_history, record_btrace_insn_history_range):
11022 Use new btrace thread info fields and new iterator.
11023 (btrace_func_history_src_line): Rename to ...
11024 (btrace_call_history_src_line): ...this. Use new btrace
11025 thread info fields.
11026 (btrace_func_history): Rename to ...
11027 (btrace_call_history): ...this. Use new btrace thread info
11028 fields and new iterator.
11029 (record_btrace_call_history, record_btrace_call_history_range):
11030 Use new btrace thread info fields and new iterator.
11031
11032 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11033
11034 * frame.h (frame_id_build_unavailable_stack_special): New.
11035 * frame.c (frame_id_build_unavailable_stack_special): New.
11036
11037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11038
11039 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11040 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11041 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11042 to gdbarch.
11043 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11044 (i386_insn_is_jump, i386_jmp_p): New.
11045 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11046 insn_is_jump to gdbarch.
11047 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11048 * gdbarch.h: Regenerated.
11049 * gdbarch.c: Regenerated.
11050 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11051 (default_insn_is_jump): New.
11052 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11053 (default_insn_is_jump): New.
11054
11055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11056
11057 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11058 Change to ...
11059 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11060 (btrace_read_type) <btrace_read_new>: Change to ...
11061 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11062
11063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11064
11065 * common/linux-btrace.c (linux_read_btrace): Free trace from
11066 previous iteration.
11067
11068 2014-01-15 Doug Evans <dje@google.com>
11069
11070 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11071 uint32_t.
11072
11073 2014-01-15 Tom Tromey <tromey@redhat.com>
11074
11075 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11076 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11077 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11078 (set_objfile_main_name): New function.
11079 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11080 language_of_main>: New fields.
11081 (set_objfile_main_name): Declare.
11082 * symtab.c (find_main_name): Loop over objfiles to find the main
11083 name and language.
11084 (set_main_name): Now static.
11085 (get_main_info): Add comment.
11086 * symtab.h (set_main_name): Don't declare.
11087
11088 2014-01-15 Tom Tromey <tromey@redhat.com>
11089
11090 * symtab.c (main_progspace_key): New global.
11091 (struct main_info): New.
11092 (name_of_main, language_of_main): Remove.
11093 (get_main_info, main_info_cleanup): New function.
11094 (set_main_name, main_name, main_language): Use get_main_info.
11095 (_initialize_symtab): Initialize main_progspace_key.
11096
11097 2014-01-15 Tom Tromey <tromey@redhat.com>
11098
11099 * dbxread.c (process_one_symbol): Update.
11100 * dwarf2read.c (read_partial_die): Update.
11101 * symfile.c (set_initial_language): Call main_language.
11102 * symtab.c (language_of_main): Now static.
11103 (set_main_name): Add 'lang' parameter.
11104 (find_main_name): Update.
11105 (main_language): New function.
11106 (symtab_observer_executable_changed): Update.
11107 * symtab.h (set_main_name): Update.
11108 (language_of_main): Remove.
11109 (main_language): Declare.
11110
11111 2014-01-15 Tom Tromey <tromey@redhat.com>
11112
11113 * symfile.c (init_entry_point_info): Use new "initialized" field.
11114 Update.
11115 * objfiles.h (struct entry_point) <initialized>: New field.
11116 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11117 (struct objfile) <ei>: ...here. Remove.
11118 * objfiles.c (entry_point_address_query): Update.
11119
11120 2014-01-15 Tom Tromey <tromey@redhat.com>
11121
11122 * objfiles.c (entry_point_address_query): Relocate entry point
11123 address.
11124 (objfile_relocate1): Do not relocate entry point address.
11125 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11126 <the_bfd_section_index>: New field.
11127 * symfile.c (init_entry_point_info): Find the entry point's
11128 section.
11129
11130 2014-01-15 Tom Tromey <tromey@redhat.com>
11131
11132 * solib-frv.c (enable_break): Use entry_point_address_query.
11133
11134 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11135
11136 * NEWS: Add note on improved process record-replay on
11137 arm*-linux* targets.
11138
11139 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11140
11141 * arm-tdep.c (enum arm_record_result): New enum.
11142 (arm_record_unsupported_insn): New function.
11143 (arm_record_coproc_data_proc): Removed.
11144 (thumb2_record_ld_st_multiple): New function.
11145 (thumb2_record_ld_st_dual_ex_tbb): New function.
11146 (thumb2_record_data_proc_sreg_mimm): New function.
11147 (thumb2_record_ps_dest_generic): New function.
11148 (thumb2_record_branch_misc_cntrl): New function.
11149 (thumb2_record_str_single_data): New function.
11150 (thumb2_record_ld_mem_hints): New function.
11151 (thumb2_record_ld_word): New function.
11152 (thumb2_record_lmul_lmla_div): New function.
11153 (thumb2_record_decode_insn_handler): New function.
11154 (decode_insn): Add thumb32 instruction handlers.
11155
11156 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11157
11158 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11159 (struct arm_linux_record_tdep): Declare.
11160 (arm_canonicalize_syscall): New function.
11161 (arm_all_but_pc_registers_record): New function.
11162 (arm_linux_syscall_record): New function.
11163 (arm_linux_init_abi): Add syscall recording constructs.
11164 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11165 decoding. (arm_record_coproc_data_proc): Update arm syscall
11166 decoding.
11167 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11168 <arm_syscall_record>: New field.
11169 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11170 gdb_target_obs.
11171
11172 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11173
11174 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11175 register for push instruction recording.
11176
11177 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11178
11179 * arm-tdep.c (thumb_record_misc): Update to correct logical
11180 error while recording ldm, ldmia and pop instructions.
11181
11182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11183
11184 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11185
11186 2014-01-15 Pedro Alves <palves@redhat.com>
11187
11188 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11189 (go32_resume, go32_fetch_registers, store_register)
11190 (go32_store_registers, go32_prepare_to_store)
11191 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11192 (go32_create_inferior, go32_can_run, go32_terminal_init)
11193 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11194 declarations.
11195
11196 2014-01-15 Tom Tromey <tromey@redhat.com>
11197
11198 * target.h (async_callback_ftype): New typedef.
11199 (struct target_ops) <to_async>: Use it.
11200
11201 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11202
11203 * python/py-value.c (get_field_type): Remove unnecessary curly
11204 braces for single-statement if block.
11205
11206 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11207
11208 * python/py-type.c (convert_field): Add missing empty line
11209 after declarations.
11210
11211 2014-01-14 Doug Evans <dje@google.com>
11212
11213 * symfile.h (expand_symtabs_matching): Renamed from
11214 expand_partial_symbol_names. Update prototype.
11215 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11216 * symfile.c (expand_symtabs_matching): Renamed from
11217 expand_partial_symbol_names. New args file_matcher, kind.
11218 Rename arg fun to symbol_matcher.
11219 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11220 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11221 ada_expand_partial_symbol_name.
11222 (ada_make_symbol_completion_list): Update to call
11223 expand_symtabs_matching.
11224 (ada_add_global_exceptions): Call expand_symtabs_matching.
11225 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11226 call map_symbol_filenames.
11227 * symtab.c (sources_info): Update to call map_symbol_filenames.
11228 (search_symbols): Call expand_symtabs_matching.
11229 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11230 (default_make_symbol_completion_list_break_on): Update to call
11231 expand_symtabs_matching.
11232 (make_source_files_completion_list): Update to call
11233 map_symbol_filenames.
11234
11235 2014-01-14 Doug Evans <dje@google.com>
11236
11237 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11238 (expand_symtabs_symbol_matcher_ftype): New typedef.
11239 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11240 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11241 * symfile.c (expand_partial_symbol_names): Update to use
11242 expand_symtabs_symbol_matcher_ftype.
11243 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11244 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11245 Arg name_matcher renamed to symbol_matcher.
11246 * psymtab.c (recursively_search_psymtabs): Update to use
11247 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11248 sym_matcher.
11249 (expand_symtabs_matching_via_partial): Update to use
11250 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11251 Arg name_matcher renamed to symbol_matcher.
11252
11253 2014-01-14 Doug Evans <dje@google.com>
11254
11255 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11256 (map_partial_symbol_filenames): Ditto.
11257 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11258 (map_partial_symbol_filenames): Ditto.
11259 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11260 (map_partial_symbol_filenames): Ditto.
11261 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11262 (map_partial_symbol_filenames): Ditto.
11263 * symtab.c: Delete #include "psymtab.h".
11264
11265 2014-01-14 Pedro Alves <palves@redhat.com>
11266 Tom Tromey <tromey@redhat.com>
11267
11268 * infrun.c (use_displaced_stepping): Use find_record_target
11269 instead of RECORD_IS_USED.
11270 (adjust_pc_after_break): Use record_full_is_used instead of
11271 RECORD_IS_USED.
11272 * record-btrace.c (record_btrace_open): Call record_preopen
11273 instead of checking RECORD_IS_USED.
11274 * record-full.c (record_full_shortname)
11275 (record_full_core_shortname): New globals.
11276 (record_full_is_used): New function.
11277 (find_full_open): Call record_preopen instead of checking
11278 RECORD_IS_USED.
11279 (init_record_full_ops): Set the target's shortname to
11280 record_full_shortname.
11281 (init_record_full_core_ops): Set the target's shortname to
11282 record_full_core_shortname.
11283 * record-full.h (record_full_is_used): Declare.
11284 * record.c (find_record_target): Make extern.
11285 (record_preopen): New function.
11286 * record.h (RECORD_IS_USED): Delete macro.
11287 (find_record_target, record_preopen): Declare functions.
11288
11289 2014-01-14 Yao Qi <yao@codesourcery.com>
11290
11291 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11292 'len''s type to ULONGEST.
11293 (core_xfer_shared_libraries_aix): Likewise.
11294 * gdbarch.c, gdbarch.h: Regenerated.
11295 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11296 Change type of 'len' to ULONGEST.
11297 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11298 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11299
11300 2014-01-14 Yao Qi <yao@codesourcery.com>
11301
11302 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11303 type of 'len' to ULONGEST.
11304 (linux_xfer_osdata_processgroups): Likewise.
11305 (linux_xfer_osdata_threads): Likewise.
11306 (linux_xfer_osdata_fds): Likewise.
11307 (linux_xfer_osdata_isockets): Likewise.
11308 (linux_xfer_osdata_shm): Likewise.
11309 (linux_xfer_osdata_sem): Likewise.
11310 (linux_xfer_osdata_msg): Likewise.
11311 (linux_common_xfer_osdata): Likewise.
11312 (struct osdata_type) <getter>: Likewise.
11313 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11314 the declaration.
11315
11316 2014-01-14 Yao Qi <yao@codesourcery.com>
11317
11318 * target.h (target_xfer_partial_ftype): Update.
11319 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11320 ULONGEST.
11321 * aix-thread.c (aix_thread_xfer_partial): Change type of
11322 argument 'len' to ULONGEST.
11323 * auxv.c (procfs_xfer_auxv): Likewise.
11324 (ld_so_xfer_auxv): Likewise.
11325 (memory_xfer_auxv): Likewise.
11326 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11327 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11328 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11329 * corelow.c (core_xfer_partial): Likewise.
11330 * ctf.c (ctf_xfer_partial): Likewise.
11331 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11332 '%u'.
11333 (darwin_read_dyld_info): Likewise.
11334 (darwin_xfer_partial): Likewise.
11335 * exec.c (section_table_xfer_memory_partial): Likewise.
11336 (exec_xfer_partial): Likewise.
11337 * exec.h (section_table_xfer_memory_partial): Update
11338 declaration.
11339 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11340 instead of plongest.
11341 (gnu_xfer_partial): Likewise.
11342 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11343 (ia64_hpux_xfer_solib_got): Likewise.
11344 (ia64_hpux_xfer_partial): Likewise.
11345 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11346 * inf-ptrace.c (inf_ptrace_xfer_partial):
11347 * inf-ttrace.c (inf_ttrace_xfer_partial):
11348 * linux-nat.c (linux_xfer_siginfo): Likewise.
11349 (linux_nat_xfer_partial): Likewise.
11350 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11351 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11352 * monitor.c (monitor_xfer_memory): Likewise.
11353 (monitor_xfer_partial): Likewise.
11354 * procfs.c (procfs_xfer_partial): Likewise.
11355 * record-full.c (record_full_xfer_partial): Likewise.
11356 (record_full_core_xfer_partial): Likewise.
11357 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11358 instead of plongest.
11359 (gdbsim_xfer_partial): Likewise.
11360 * remote.c (remote_xfer_partial): Likewise.
11361 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11362 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11363 declaration.
11364 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11365 (rs6000_xfer_shared_libraries): Likewise.
11366 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11367 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11368 (sparc_xfer_partial): Likewise.
11369 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11370 (spu_xfer_partial): Likewise.
11371 * spu-multiarch.c (spu_xfer_partial): Likewise.
11372 * target.c (target_read_live_memory): Likewise.
11373 (memory_xfer_live_readonly_partial): Likewise.
11374 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11375 (target_xfer_partial, default_xfer_partial): Likewise.
11376 (current_xfer_partial): Likewise.
11377 * tracepoint.c (tfile_xfer_partial): Likewise.
11378 * windows-nat.c (windows_xfer_memory): Likewise. Call
11379 pulongest instead of plongest.
11380 (windows_xfer_partial): Likewise.
11381 (windows_xfer_shared_libraries): Likewise.
11382
11383 2014-01-14 Yao Qi <yao@codesourcery.com>
11384
11385 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11386 target_xfer_partial_ftype.
11387
11388 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11389
11390 PR python/15464
11391 PR python/16113
11392 * valops.c (value_struct_elt_bitpos): New function
11393 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11394 object to 'None' if the field name is an empty string ("").
11395 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11396 attribute to look for a field when 'name' is 'None'.
11397 (get_field_type): New function
11398
11399 2014-01-13 Doug Evans <dje@google.com>
11400
11401 PR symtab/16426
11402 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11403 (try_open_dwop_file): Ditto.
11404 * gdb_bfd.c: #include "vec.h".
11405 (bfdp): New typedef.
11406 (struct gdb_bfd_data): New member included_bfds.
11407 (gdb_bfd_unref): Unref all included bfds.
11408 (gdb_bfd_record_inclusion): New function.
11409 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11410
11411 2014-01-13 Tom Tromey <tromey@redhat.com>
11412
11413 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11414
11415 2014-01-13 Tom Tromey <tromey@redhat.com>
11416
11417 * defs.h (use_windows): Remove.
11418 * gdb.c (main): Update.
11419 * main.c (captured_main, gdb_main): Update.
11420 * main.h (struct captured_main_args) <use_windows>: Remove.
11421 * top.c (use_windows): Remove.
11422
11423 2014-01-13 Tom Tromey <tromey@redhat.com>
11424
11425 * defs.h (deprecated_flush_hook): Remove.
11426
11427 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11428
11429 PR threads/16216
11430 * linux-thread-db.c (try_thread_db_load): Add parameter
11431 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11432 (try_thread_db_load_from_pdir_1): Move it there from here.
11433 (try_thread_db_load_from_sdir): Update caller.
11434 (try_thread_db_load_from_dir): Move it there from here.
11435
11436 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11437
11438 * regformats/regdat.sh: Always rewrite the register file.
11439
11440 2014-01-13 Pedro Alves <palves@redhat.com>
11441
11442 * Makefile.in (CHECK_HEADERS): New variable.
11443 (check-headers:): New rule.
11444
11445 2014-01-13 Tom Tromey <tromey@redhat.com>
11446
11447 * cli/cli-setshow.c (do_set_command): Update.
11448 * defs.h (deprecated_set_hook): Remove.
11449 * top.c (deprecated_set_hook): Remove.
11450
11451 2014-01-13 Pedro Alves <palves@redhat.com>
11452
11453 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11454 the tracepoint if the PC is a pseudo-register.
11455
11456 2014-01-13 Tom Tromey <tromey@redhat.com>
11457
11458 * defs.h (XCALLOC): Remove.
11459 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11460 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11461 * dwarf2loc.c (allocate_piece_closure): Likewise.
11462 * elfread.c (elf_symfile_segments): Likewise.
11463 (elf_symfile_segments): Likewise.
11464 * gdbtypes.c (copy_type_recursive): Likewise.
11465 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11466 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11467 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11468 XCALLOC.
11469 * mt-tdep.c (mt_gdbarch_init): Likewise.
11470 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11471 XCALLOC.
11472 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11473 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11474 * registry.c (registry_alloc_data): Likewise.
11475 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11476 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11477 * serial.c (serial_fdopen_ops): Likewise.
11478 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11479 XCALLOC.
11480 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11481 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11482 not XCALLOC.
11483
11484 2014-01-13 Tom Tromey <tromey@redhat.com>
11485
11486 * defs.h (XMALLOC): Remove.
11487 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11488 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11489 * cli-out.c (struct ui_out *): Likewise.
11490 * cli/cli-dump.c (add_dump_command): Likewise.
11491 (add_dump_command): Likewise.
11492 * complaints.c (get_complaints): Likewise.
11493 (find_complaint): Likewise.
11494 * dwarf2-frame.c (execute_cfa_program): Likewise.
11495 * dwarf2read.c (abbrev_table_read_table): Likewise.
11496 * gdbarch.sh: Likewise.
11497 * gdbarch.c: Rebuild.
11498 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11499 * interps.c (interp_new): Likewise.
11500 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11501 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11502 * mi/mi-console.c (mi_console_file_new): Likewise.
11503 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11504 * mi/mi-out.c (mi_out_new): Likewise.
11505 * mi/mi-parse.c (mi_parse): Likewise.
11506 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11507 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11508 * observer.c (xalloc_observer_list_node): Likewise.
11509 * regcache.c (regcache_xmalloc_1): Likewise.
11510 * reggroups.c (reggroup_new): Likewise.
11511 (_initialize_reggroup): Likewise.
11512 * registry.c (register_data_with_cleanup): Likewise.
11513 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11514 * ser-base.c (serial_ttystate): Likewise.
11515 * ser-mingw.c (make_pipe_state): Likewise.
11516 * ser-pipe.c (pipe_open): Likewise.
11517 * serial.c (serial_open): Likewise.
11518 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11519 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11520 (tui_alloc_win_info): Likewise.
11521 (tui_add_content_elements): Likewise.
11522 * tui/tui-file.c (tui_file_new): Likewise.
11523 * tui/tui-out.c (tui_out_new): Likewise.
11524 * ui-file.c (mem_file_new): Likewise.
11525 * ui-out.c (push_level): Likewise.
11526 (make_cleanup_ui_out_end): Likewise.
11527 (append_header_to_list): Likewise.
11528 (ui_out_new): Likewise.
11529 * user-regs.c (user_reg_add_builtin): Likewise.
11530
11531 2014-01-13 Tom Tromey <tromey@redhat.com>
11532
11533 * defs.h (XZALLOC): Remove.
11534 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11535 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11536 (get_ada_tasks_inferior_data): Likewise.
11537 * auto-load.c (get_auto_load_pspace_data): Likewise.
11538 * auxv.c (get_auxv_inferior_data): Likewise.
11539 * bfd-target.c (target_bfd_reopen): Likewise.
11540 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11541 (deprecated_insert_raw_breakpoint): Likewise.
11542 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11543 * corelow.c (core_open): Likewise.
11544 * darwin-nat.c (darwin_check_new_threads): Likewise.
11545 (darwin_attach_pid): Likewise.
11546 * dummy-frame.c (dummy_frame_push): Likewise.
11547 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11548 * dwarf2loc.c (allocate_piece_closure): Likewise.
11549 * elfread.c (elf_symfile_segments): Likewise.
11550 * eval.c (ptrmath_type_p): Likewise.
11551 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11552 * gdbtypes.c (alloc_type_arch): Likewise.
11553 (alloc_type_instance): Likewise.
11554 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11555 * inf-child.c (inf_child_can_use_agent): Likewise.
11556 * inflow.c (get_inflow_inferior_data): Likewise.
11557 * infrun.c (save_infcall_suspend_state): Likewise.
11558 * jit.c (jit_reader_load): Likewise.
11559 (get_jit_objfile_data): Likewise.
11560 (get_jit_program_space_data): Likewise.
11561 (jit_object_open_impl): Likewise.
11562 (jit_symtab_open_impl): Likewise.
11563 (jit_block_open_impl): Likewise.
11564 (jit_frame_sniffer): Likewise.
11565 * linux-fork.c (add_fork): Likewise.
11566 * maint.c (make_command_stats_cleanup): Likewise.
11567 * objfiles.c (get_objfile_pspace_data): Likewise.
11568 * opencl-lang.c (struct lval_closure): Likewise.
11569 * osdata.c (osdata_start_osdata): Likewise.
11570 * progspace.c (new_address_space): Likewise.
11571 (add_program_space): Likewise.
11572 * remote-sim.c (get_sim_inferior_data): Likewise.
11573 * sh-tdep.c (sh_gdbarch_init): Likewise.
11574 * skip.c (Ignore): Likewise.
11575 (skip_delete_command): Likewise.
11576 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11577 (library_list_start_library): Likewise.
11578 (solib_aix_current_sos): Likewise.
11579 * solib-darwin.c (get_darwin_info): Likewise.
11580 (darwin_current_sos): Likewise.
11581 * solib-dsbt.c (get_dsbt_info): Likewise.
11582 * solib-ia64-hpux.c (new_so_list): Likewise.
11583 (ia64_hpux_get_solib_linkage_addr): Likewise.
11584 * solib-spu.c (append_ocl_sos): Likewise.
11585 (spu_current_sos): Likewise.
11586 * solib-svr4.c (get_svr4_info): Likewise.
11587 (svr4_keep_data_in_core): Likewise.
11588 (library_list_start_library): Likewise.
11589 (svr4_default_sos): Likewise.
11590 (svr4_read_so_list): Likewise.
11591 * solib-target.c (library_list_start_library): Likewise.
11592 (solib_target_current_sos): Likewise.
11593 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11594 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11595 * symfile.c (default_symfile_segments): Likewise.
11596 * target-descriptions.c (tdesc_data_init): Likewise.
11597 (tdesc_create_reg): Likewise.
11598 (struct tdesc_type *): Likewise.
11599 (tdesc_create_vector): Likewise.
11600 (tdesc_set_struct_size): Likewise.
11601 (struct tdesc_type *): Likewise.
11602 (tdesc_free_feature): Likewise.
11603 (tdesc_create_feature): Likewise.
11604 * windows-nat.c (windows_add_thread): Likewise.
11605 (windows_make_so): Likewise.
11606 * xml-support.c (gdb_xml_body_text): Likewise.
11607 (gdb_xml_create_parser_and_cleanup): Likewise.
11608 (xml_process_xincludes): Likewise.
11609 * xml-syscall.c (allocate_syscalls_info): Likewise.
11610 (syscall_create_syscall_desc): Likewise.
11611
11612 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11613
11614 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11615 function, with code from i386_stap_parse_special_token.
11616 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11617 (i386_stap_parse_special_token): Move code to the two functions
11618 above; simplify it.
11619
11620 2014-01-09 Pedro Alves <palves@redhat.com>
11621 Hui Zhu <hui@codesourcery.com>
11622
11623 PR gdb/16101
11624 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11625 bp_err_string. Don't mark the location shlib_disabled if the
11626 error thrown wasn't a generic or memory error. Catch errors
11627 thrown while inserting breakpoints in overlayed code. Output
11628 error message of software breakpoints.
11629 * remote.c (remote_insert_breakpoint): If this breakpoint has
11630 target-side commands but this stub doesn't support Z0 packets,
11631 throw NOT_SUPPORTED_ERROR error.
11632 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11633 * target.h (target_insert_breakpoint): Extend comment.
11634 (target_insert_hw_breakpoint): Add comment.
11635
11636 2014-01-08 Pedro Alves <palves@redhat.com>
11637
11638 * remote.c (remote_add_thread): Add threads silently if starting
11639 up.
11640 (remote_notice_new_inferior): If in all-stop, and starting up,
11641 don't call notice_new_inferior.
11642 (get_current_thread): New function, factored out from ...
11643 (add_current_inferior_and_thread): ... this. Adjust.
11644 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11645 found any thread, then select the remote's current thread as GDB's
11646 current thread too.
11647
11648 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11649
11650 * NEWS: Create a new section for the next release branch.
11651 Rename the section of the current branch, now that it has
11652 been cut.
11653
11654 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11655
11656 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11657 * version.in: Bump version to 7.7.50.DATE-cvs.
11658
11659 2014-01-08 Yao Qi <yao@codesourcery.com>
11660
11661 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11662 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11663 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11664
11665 2014-01-08 Yao Qi <yao@codesourcery.com>
11666
11667 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11668 return value of bfd_get_filename to symbol_file_add_from_bfd.
11669
11670 2014-01-08 Pierre Muller <muller@sourceware.org>
11671
11672 Fix PR16201.
11673 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11674 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11675 to prim_record_mininal_symbol_and_info.
11676 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11677 in call to prim_record_minimal_symbol_and_info.
11678 (read_pe_exported_syms): Set index field of section_data.
11679
11680 2014-01-07 Andrew Pinski <apinski@cavium.com>
11681
11682 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11683 * features/aarch64.c: Regenerate.
11684
11685 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11686
11687 * target.c (return_null): Define.
11688 (update_current_target): Use it instead of return_zero for
11689 functions that return a pointer.
11690
11691 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11692
11693 * source.c (add_path): Fix check for duplicated paths in the previously
11694 included paths.
11695
11696 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11697
11698 * ada-lang.c: Remove duplicated include statements.
11699 * alphabsd-nat.c: Ditto.
11700 * amd64-darwin-tdep.c: Ditto.
11701 * amd64fbsd-nat.c: Ditto.
11702 * auto-load.c: Ditto.
11703 * ax-gdb.c: Ditto.
11704 * breakpoint.c: Ditto.
11705 * dbxread.c: Ditto.
11706 * fork-child.c: Ditto.
11707 * gdb_usleep.c: Ditto.
11708 * i386-darwin-tdep.c: Ditto.
11709 * i386fbsd-nat.c: Ditto.
11710 * infcmd.c: Ditto.
11711 * inferior.c: Ditto.
11712 * jv-lang.c: Ditto.
11713 * linux-nat.c: Ditto.
11714 * linux-tdep.c: Ditto.
11715 * m68kbsd-nat.c: Ditto.
11716 * m68klinux-nat.c: Ditto.
11717 * microblaze-tdep.c: Ditto.
11718 * mips-linux-tdep.c: Ditto.
11719 * mn10300-tdep.c: Ditto.
11720 * nto-tdep.c: Ditto.
11721 * opencl-lang.c: Ditto.
11722 * osdata.c: Ditto.
11723 * printcmd.c: Ditto.
11724 * regcache.c: Ditto.
11725 * remote-m32r-sdi.c: Ditto.
11726 * remote.c: Ditto.
11727 * symfile.c: Ditto.
11728 * symtab.c: Ditto.
11729 * tilegx-linux-nat.c: Ditto.
11730 * tilegx-tdep.c: Ditto.
11731 * tracepoint.c: Ditto.
11732 * valops.c: Ditto.
11733 * vaxbsd-nat.c: Ditto.
11734 * windows-nat.c: Ditto.
11735 * xtensa-tdep.c: Ditto.
11736
11737 2014-01-07 Yao Qi <yao@codesourcery.com>
11738
11739 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11740
11741 2014-01-07 Yao Qi <yao@codesourcery.com>
11742 Joel Brobecker <brobecker@adacore.com>
11743
11744 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11745 (pdc_write_regs): Likewise.
11746 (fetch_regs_kernel_thread): Likewise.
11747 (store_regs_kernel_thread): Likewise.
11748
11749 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11750
11751 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11752 tagged type objects to their actual type.
11753
11754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11755
11756 * ada-valprint.c (print_field_values): Add "language" parameter.
11757 Update calls to print_field_values and print_variant_part.
11758 Pass new parameter "language" in call to val_print instead
11759 of "current_language". Replace call to ada_val_print by call
11760 to val_print.
11761 (print_variant_part): Add "language" parameter.
11762 (ada_val_print_struct_union): Update call to print_field_values.
11763
11764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11765
11766 * ada-valprint.c (ui_memcpy): Delete.
11767 (ada_print_floating): Update documentation. Add empty line
11768 between between function documentation and implementation.
11769 Delete variable "buffer". Use ui_file_xstrdup in place of
11770 ui_file_put. Minor adjustments following this change.
11771
11772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11773
11774 * ada-valprint.c (ada_val_print_string): New function,
11775 extracted from ada_val_print_array.
11776 (ada_val_print_array): Replace extracted code by call
11777 to ada_val_print_string followed by a return. Move
11778 "else" branch to the function's top block.
11779
11780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11781
11782 * ada-valprint.c (ada_val_print_array): Move implementation
11783 down. Rename parameter "offset" and "val" into "offset_aligned"
11784 and "original_value" respectively. Add parameter "offset".
11785
11786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11787
11788 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11789 re-organizing the code. Change the "???" message printed
11790 when target type is a TYPE_CODE_UNDEF into
11791 "<ref to undefined type>".
11792
11793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11794
11795 * ada-valprint.c (print_record): Delete, implementation inlined...
11796 (ada_val_print_struct_union): ... here. Remove call to
11797 ada_check_typedef in inlined implementation.
11798
11799 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11800
11801 * ada-valprint.c (ada_val_print_gnat_array): New function,
11802 extracted from ada_val_print_1;
11803 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11804 (ada_val_print_flt, ada_val_print_struct_union)
11805 (ada_val_print_ref): Likewise.
11806 (ada_val_print_1): Delete variables i and elttype.
11807 Replace extracted-out code by call to corresponding
11808 new functions.
11809
11810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11811
11812 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11813
11814 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11815
11816 * ada-valprint.c (ada_val_print_1): Replace calls to
11817 ada_val_print_1 by calls to val_print.
11818
11819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11820
11821 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11822 Update calls to self accordingly. Replace calls to c_val_print
11823 by calls to val_print.
11824
11825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11826
11827 * ada-valprint.c (print_record): Delete declaration.
11828 (adjust_type_signedness, ada_val_print_1): Likewise.
11829 (ada_val_print): Move function implementation down.
11830 (print_variant_part, print_field_values, print_record):
11831 Move function implementation up.
11832
11833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11834
11835 * python/py-type.c (typy_get_name): New function.
11836 (type_object_getset): Add entry for attribute "name".
11837 * NEWS: Add entry mentioning this new attribute.
11838
11839 2014-01-07 Yao Qi <yao@codesourcery.com>
11840
11841 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11842 statement.
11843
11844 2014-01-07 Yao Qi <yao@codesourcery.com>
11845
11846 * gnu-nat.c (info_port_rights): Add qualifier const to
11847 argument args.
11848
11849 2014-01-07 Yao Qi <yao@codesourcery.com>
11850
11851 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11852
11853 2014-01-07 Yao Qi <yao@codesourcery.com>
11854
11855 * gnu-nat.c (make_inf) Update declaration.
11856 (make_inf): Make it static.
11857 (inf_set_traced): Likewise.
11858 (inf_port_to_thread, inf_task_died_status): Likewise.
11859
11860 2014-01-07 Yao Qi <yao@codesourcery.com>
11861
11862 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11863
11864 2014-01-07 Yao Qi <yao@codesourcery.com>
11865
11866 * gnu-nat.c (_initialize_gnu_nat): Declare.
11867
11868 2014-01-07 Yao Qi <yao@codesourcery.com>
11869
11870 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11871 'enum bfd_endian'.
11872 (struct gdbarch_info) <byte_order>: Change type to
11873 'enum bfd_endian'.
11874 <byte_order_for_code>: Likewise.
11875 * gdbarch.c, gdbarch.h: Regenerated.
11876
11877 2014-01-06 Sasha Smundak <asmundak@google.com>
11878
11879 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11880
11881 2014-01-06 Tom Tromey <tromey@redhat.com>
11882
11883 * doublest.c (convert_doublest_to_floatformat): Use const, not
11884 CONST.
11885 * somread.c (som_symtab_read): Likewise.
11886
11887 2014-01-07 Hui Zhu <hui@codesourcery.com>
11888
11889 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11890 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11891 (gdb_bfd_fopen): Ditto.
11892 (gdb_bfd_openr): Ditto.
11893 (gdb_bfd_openw): Ditto.
11894 (gdb_bfd_openr_iovec): Ditto.
11895 (gdb_bfd_fdopenr): Ditto.
11896 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11897 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11898 with xstrdup.
11899 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11900 with xstrdup.
11901 * symfile-mem.c (symbol_file_add_from_memory): Removed
11902 gdb_bfd_stash_filename.
11903
11904 2014-01-03 Doug Evans <dje@google.com>
11905
11906 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11907 output.
11908
11909 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11910
11911 Update year range in copyright notice of all files.
11912
11913 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11914
11915 * top.c (print_gdb_version): Set copyright year to 2014.
11916
11917 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11918
11919 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11920
11921 For older changes see ChangeLog-2013.
11922 \f
11923 Local Variables:
11924 mode: change-log
11925 left-margin: 8
11926 fill-column: 74
11927 version-control: never
11928 coding: utf-8
11929 End:
This page took 0.312868 seconds and 4 git commands to generate.