linux-nat.c (linux_nat_thread_address_space): Delete dead code.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-08-10 Doug Evans <xdje42@gmail.com>
2
3 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4
5 2014-08-09 Yao Qi <yao@codesourcery.com>
6
7 PR remote/9053
8 * remote.c (remote_xfer_partial): Remove dead code.
9
10 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11
12 * ia64-linux-tdep.c: Include "regset.h".
13 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
14 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
15 (ia64_linux_supply_fpregset): New function.
16 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
17 (ia64_linux_regset_from_core_section): New function.
18 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
19 method.
20
21 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
22
23 * m68klinux-tdep.c: Include "regset.h".
24 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
25 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
26 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
27 (m68k_linux_regset_from_core_section): New function.
28 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
29 method.
30
31 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
32
33 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
34 function. Move logic to...
35 (tilegx_linux_regmap): ... this new register map.
36 (tilegx_linux_regset): Refer to register map, replace supply
37 method by regcache_supply_regset, and add collect method.
38 * tilegx-tdep.h (enum tilegx_regnum): New enum value
39 TILEGX_FIRST_EASY_REGNUM.
40
41 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
44 that calls regcache_supply_regset and handles the EPC register
45 separately. Move main logic to...
46 (score7_linux_gregmap): ... this new register map.
47 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
48 (score7_linux_gregset): Refer to register map. Add collect method.
49 (score7_linux_regset_from_core_section): Replace
50 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
51 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
52 (struct regset): Delete unused forward declaraction.
53 (struct pt_regs): Delete structure definition.
54 (elf_gregset_t): Delete typedef.
55
56 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
57
58 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
59 (nios2_core_regset): Add collect method.
60
61 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
62
63 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
64 platform-independent and don't write to read-only input buffer.
65 (m32r_linux_collect_gregset): New function.
66 (m32r_linux_gregset): Add collect method.
67
68 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
69
70 * hppa-linux-tdep.c (greg_map): Rename to...
71 (hppa_linux_gregmap): ... this. Also convert to
72 regcache_map_entry format.
73 (hppa_linux_supply_regset): Delete function.
74 (hppa_linux_supply_fpregset): Delete function. Move logic to...
75 (hppa_linux_fpregmap): ... this new register map.
76 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
77 register map, replace supply method by regcache_supply_regset, and
78 add collect method regcache_collect_regset.
79
80 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
81
82 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
83 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
84 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
85 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
86 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
87 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
88 (frv_linux_supply_gregset): Replace main logic by call to
89 regcache_supply_regset, but keep clearing gr32-gr63.
90 (frv_linux_supply_fpregset): Delete function.
91 (frv_linux_gregset): Refer to appropriate register map and add
92 regcache_collect_regset as the collect method.
93 (frv_linux_fpregset): Likewise. Also exchange the supply method
94 by regcache_supply_regset.
95
96 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
97
98 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
99 by call to alpha_supply_int_regs.
100 (alpha_linux_collect_gregset): New function.
101 (alpha_linux_supply_fpregset): Replace logic by call to
102 alpha_supply_fp_regs.
103 (alpha_linux_collect_fpregset): New function.
104 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
105
106 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
107
108 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
109 by call to regcache_collect_regset.
110 (supply_gregset, supply_fpregset): Call regcache_supply_regset
111 instead of aarch64_linux_supply_gregset/_fpregset.
112 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
113 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
114 header file instead.
115 (aarch64_linux_supply_gregset, supply_gregset_from_core)
116 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
117 functions. Move logic to ...
118 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
119 register maps.
120 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
121 refer to new register maps, replace *_regset_from_core by
122 regcache_supply_regset, and also use regcache_collect_regset.
123 * aarch64-linux-tdep.h: Include "regset.h".
124 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
125 Delete prototypes.
126 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
127 macros, moved from C source file.
128 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
129 variable declarations.
130
131 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
132
133 * s390-linux-nat.c: Include "regset.h".
134 (regmap_gregset): Delete macro.
135 (s390_64_regmap_gregset): New register map for
136 regcache_supply/_collect_regset.
137 (s390_64_gregset): New regset.
138 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
139 (regmap_fpregset): Delete macro.
140 (s390_native_supply, s390_native_collect): Delete functions.
141 (supply_gregset, fill_gregset): Replace s390-specific regmap
142 handling by a call to regcache_supply/_collect_regset.
143 (supply_fpregset, fill_fpregset): Call regcache_supply/
144 _collect_regset instead of s390_native_supply/_collect.
145 (fetch_regset, store_regset): Likewise. Also change the last
146 parameter to a regset instead of a regmap.
147 (s390_linux_fetch_inferior_registers)
148 (390_linux_store_inferior_registers): Adjust last parameter in
149 calls to fetch_regset and store_regset.
150 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
151 (s390_gregmap): ... this. Also make static const and convert to
152 regcache_map_entry format.
153 (s390x_regmap_gregset): Delete.
154 (s390_regmap_fpregset): Rename to...
155 (s390_fpregmap): ... this. Make static const and convert to
156 regcache_map_entry format.
157 (s390_regmap_upper, s390_regmap_last_break)
158 (s390x_regmap_last_break, s390_regmap_system_call)
159 (s390_regmap_tdb): Likewise.
160 (s390_supply_regset, s390_collect_regset): Remove functions.
161 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
162 s390_supply_regset.
163 (s390_gregset, s390_fpregset, s390_upper_regset)
164 (s390_last_break_regset, s390x_last_break_regset)
165 (s390_system_call_regset, s390_tdb_regset): Make global and
166 replace s390_supply/_collect_regset by regcache_supply/
167 _collect_regset.
168 (s390x_gregset): Delete.
169 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
170 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
171 (s390_regmap_fpregset, s390_regmap_last_break)
172 (s390x_regmap_last_break, s390_regmap_system_call)
173 (s390_regmap_tdb): Delete global variable declarations.
174 (s390_gregset, s390_fpregset, s390_last_break_regset)
175 (s390x_last_break_regset, s390_system_call_regset)
176 (s390_tdb_regset): New global variable declarations.
177
178 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
179
180 * regcache.c: Include "regset.h".
181 (regcache_transfer_regset): New local function.
182 (regcache_supply_regset, regcache_collect_regset): New functions.
183 * regcache.h (struct regcache_map_entry): New structure.
184 (REGCACHE_MAP_SKIP): New enum value.
185 (regcache_supply_regset, regcache_collect_regset): New prototypes.
186
187 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
188
189 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
190 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
191 (ppc_linux_collect_gregset ): Likewise.
192 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
193 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
194 (ppc_collect_vrregset): Likewise.
195 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
196 Likewise.
197
198 2014-08-07 Yao Qi <yao@codesourcery.com>
199
200 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
201 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
202 * remote.c (remote_read_bytes): Likewise.
203
204 2014-08-07 Yao Qi <yao@codesourcery.com>
205
206 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
207
208 2014-08-07 Yao Qi <yao@codesourcery.com>
209
210 PR remote/17230
211 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
212 TARGET_XFER_OK instead of 0.
213
214 2014-08-07 Gary Benson <gbenson@redhat.com>
215
216 * common/common-defs.h: Include errno.h.
217 * defs.h: Do not include errno.h.
218 * ada-typeprint.c: Likewise.
219 * c-typeprint.c: Likewise.
220 * core-regset.c: Likewise.
221 * corefile.c: Likewise.
222 * corelow.c: Likewise.
223 * event-loop.c: Likewise.
224 * f-typeprint.c: Likewise.
225 * gnu-nat.c: Likewise.
226 * go32-nat.c: Likewise.
227 * i386gnu-nat.c: Likewise.
228 * m2-typeprint.c: Likewise.
229 * nat/linux-btrace.c: Likewise.
230 * p-typeprint.c: Likewise.
231 * procfs.c: Likewise.
232 * remote-sim.c: Likewise.
233 * rs6000-nat.c: Likewise.
234 * target.c: Likewise.
235 * typeprint.c: Likewise.
236 * ui-file.c: Likewise.
237 * valops.c: Likewise.
238 * valprint.c: Likewise.
239
240 2014-08-07 Gary Benson <gbenson@redhat.com>
241
242 * common/common-defs.h: Include string.h.
243 * aarch64-tdep.c: Do not include string.h.
244 * ada-exp.y: Likewise.
245 * ada-lang.c: Likewise.
246 * ada-lex.l: Likewise.
247 * ada-typeprint.c: Likewise.
248 * ada-valprint.c: Likewise.
249 * aix-thread.c: Likewise.
250 * alpha-linux-tdep.c: Likewise.
251 * alpha-mdebug-tdep.c: Likewise.
252 * alpha-nat.c: Likewise.
253 * alpha-osf1-tdep.c: Likewise.
254 * alpha-tdep.c: Likewise.
255 * alphanbsd-tdep.c: Likewise.
256 * amd64-dicos-tdep.c: Likewise.
257 * amd64-linux-tdep.c: Likewise.
258 * amd64-nat.c: Likewise.
259 * amd64-sol2-tdep.c: Likewise.
260 * amd64fbsd-tdep.c: Likewise.
261 * amd64obsd-tdep.c: Likewise.
262 * arch-utils.c: Likewise.
263 * arm-linux-nat.c: Likewise.
264 * arm-linux-tdep.c: Likewise.
265 * arm-tdep.c: Likewise.
266 * arm-wince-tdep.c: Likewise.
267 * armbsd-tdep.c: Likewise.
268 * armnbsd-nat.c: Likewise.
269 * armnbsd-tdep.c: Likewise.
270 * armobsd-tdep.c: Likewise.
271 * avr-tdep.c: Likewise.
272 * ax-gdb.c: Likewise.
273 * ax-general.c: Likewise.
274 * bcache.c: Likewise.
275 * bfin-tdep.c: Likewise.
276 * breakpoint.c: Likewise.
277 * build-id.c: Likewise.
278 * buildsym.c: Likewise.
279 * c-exp.y: Likewise.
280 * c-lang.c: Likewise.
281 * c-typeprint.c: Likewise.
282 * c-valprint.c: Likewise.
283 * charset.c: Likewise.
284 * cli-out.c: Likewise.
285 * cli/cli-cmds.c: Likewise.
286 * cli/cli-decode.c: Likewise.
287 * cli/cli-dump.c: Likewise.
288 * cli/cli-interp.c: Likewise.
289 * cli/cli-logging.c: Likewise.
290 * cli/cli-script.c: Likewise.
291 * cli/cli-setshow.c: Likewise.
292 * cli/cli-utils.c: Likewise.
293 * coffread.c: Likewise.
294 * common/agent.c: Likewise.
295 * common/buffer.c: Likewise.
296 * common/buffer.h: Likewise.
297 * common/common-utils.c: Likewise.
298 * common/filestuff.c: Likewise.
299 * common/filestuff.c: Likewise.
300 * common/format.c: Likewise.
301 * common/print-utils.c: Likewise.
302 * common/rsp-low.c: Likewise.
303 * common/signals.c: Likewise.
304 * common/vec.h: Likewise.
305 * common/xml-utils.c: Likewise.
306 * core-regset.c: Likewise.
307 * corefile.c: Likewise.
308 * corelow.c: Likewise.
309 * cp-abi.c: Likewise.
310 * cp-name-parser.y: Likewise.
311 * cp-support.c: Likewise.
312 * cp-valprint.c: Likewise.
313 * cris-tdep.c: Likewise.
314 * d-exp.y: Likewise.
315 * darwin-nat.c: Likewise.
316 * dbxread.c: Likewise.
317 * dcache.c: Likewise.
318 * demangle.c: Likewise.
319 * dicos-tdep.c: Likewise.
320 * disasm.c: Likewise.
321 * doublest.c: Likewise.
322 * dsrec.c: Likewise.
323 * dummy-frame.c: Likewise.
324 * dwarf2-frame.c: Likewise.
325 * dwarf2loc.c: Likewise.
326 * dwarf2read.c: Likewise.
327 * elfread.c: Likewise.
328 * environ.c: Likewise.
329 * eval.c: Likewise.
330 * event-loop.c: Likewise.
331 * exceptions.c: Likewise.
332 * exec.c: Likewise.
333 * expprint.c: Likewise.
334 * f-exp.y: Likewise.
335 * f-lang.c: Likewise.
336 * f-typeprint.c: Likewise.
337 * f-valprint.c: Likewise.
338 * fbsd-nat.c: Likewise.
339 * findcmd.c: Likewise.
340 * findvar.c: Likewise.
341 * fork-child.c: Likewise.
342 * frame.c: Likewise.
343 * frv-linux-tdep.c: Likewise.
344 * frv-tdep.c: Likewise.
345 * gdb.c: Likewise.
346 * gdb_bfd.c: Likewise.
347 * gdbarch.c: Likewise.
348 * gdbarch.sh: Likewise.
349 * gdbtypes.c: Likewise.
350 * gnu-nat.c: Likewise.
351 * gnu-v2-abi.c: Likewise.
352 * gnu-v3-abi.c: Likewise.
353 * go-exp.y: Likewise.
354 * go-lang.c: Likewise.
355 * go32-nat.c: Likewise.
356 * guile/guile.c: Likewise.
357 * guile/scm-auto-load.c: Likewise.
358 * hppa-hpux-tdep.c: Likewise.
359 * hppa-linux-nat.c: Likewise.
360 * hppanbsd-tdep.c: Likewise.
361 * hppaobsd-tdep.c: Likewise.
362 * i386-cygwin-tdep.c: Likewise.
363 * i386-dicos-tdep.c: Likewise.
364 * i386-linux-tdep.c: Likewise.
365 * i386-nto-tdep.c: Likewise.
366 * i386-sol2-tdep.c: Likewise.
367 * i386-tdep.c: Likewise.
368 * i386bsd-tdep.c: Likewise.
369 * i386gnu-nat.c: Likewise.
370 * i386nbsd-tdep.c: Likewise.
371 * i386obsd-tdep.c: Likewise.
372 * i387-tdep.c: Likewise.
373 * ia64-libunwind-tdep.c: Likewise.
374 * ia64-linux-nat.c: Likewise.
375 * inf-child.c: Likewise.
376 * inf-ptrace.c: Likewise.
377 * inf-ttrace.c: Likewise.
378 * infcall.c: Likewise.
379 * infcmd.c: Likewise.
380 * inflow.c: Likewise.
381 * infrun.c: Likewise.
382 * interps.c: Likewise.
383 * iq2000-tdep.c: Likewise.
384 * irix5-nat.c: Likewise.
385 * jv-exp.y: Likewise.
386 * jv-lang.c: Likewise.
387 * jv-typeprint.c: Likewise.
388 * jv-valprint.c: Likewise.
389 * language.c: Likewise.
390 * linux-fork.c: Likewise.
391 * linux-nat.c: Likewise.
392 * lm32-tdep.c: Likewise.
393 * m2-exp.y: Likewise.
394 * m2-typeprint.c: Likewise.
395 * m32c-tdep.c: Likewise.
396 * m32r-linux-nat.c: Likewise.
397 * m32r-linux-tdep.c: Likewise.
398 * m32r-rom.c: Likewise.
399 * m32r-tdep.c: Likewise.
400 * m68hc11-tdep.c: Likewise.
401 * m68k-tdep.c: Likewise.
402 * m68kbsd-tdep.c: Likewise.
403 * m68klinux-nat.c: Likewise.
404 * m68klinux-tdep.c: Likewise.
405 * m88k-tdep.c: Likewise.
406 * machoread.c: Likewise.
407 * macrocmd.c: Likewise.
408 * main.c: Likewise.
409 * mdebugread.c: Likewise.
410 * mem-break.c: Likewise.
411 * memattr.c: Likewise.
412 * memory-map.c: Likewise.
413 * mep-tdep.c: Likewise.
414 * mi/mi-cmd-break.c: Likewise.
415 * mi/mi-cmd-disas.c: Likewise.
416 * mi/mi-cmd-env.c: Likewise.
417 * mi/mi-cmd-stack.c: Likewise.
418 * mi/mi-cmd-var.c: Likewise.
419 * mi/mi-cmds.c: Likewise.
420 * mi/mi-console.c: Likewise.
421 * mi/mi-getopt.c: Likewise.
422 * mi/mi-interp.c: Likewise.
423 * mi/mi-main.c: Likewise.
424 * mi/mi-parse.c: Likewise.
425 * microblaze-rom.c: Likewise.
426 * microblaze-tdep.c: Likewise.
427 * mingw-hdep.c: Likewise.
428 * minidebug.c: Likewise.
429 * minsyms.c: Likewise.
430 * mips-irix-tdep.c: Likewise.
431 * mips-linux-tdep.c: Likewise.
432 * mips-tdep.c: Likewise.
433 * mips64obsd-tdep.c: Likewise.
434 * mipsnbsd-tdep.c: Likewise.
435 * mipsread.c: Likewise.
436 * mn10300-linux-tdep.c: Likewise.
437 * mn10300-tdep.c: Likewise.
438 * monitor.c: Likewise.
439 * moxie-tdep.c: Likewise.
440 * mt-tdep.c: Likewise.
441 * nat/linux-btrace.c: Likewise.
442 * nat/linux-osdata.c: Likewise.
443 * nat/linux-procfs.c: Likewise.
444 * nat/linux-ptrace.c: Likewise.
445 * nat/linux-waitpid.c: Likewise.
446 * nbsd-tdep.c: Likewise.
447 * nios2-linux-tdep.c: Likewise.
448 * nto-procfs.c: Likewise.
449 * nto-tdep.c: Likewise.
450 * objc-lang.c: Likewise.
451 * objfiles.c: Likewise.
452 * opencl-lang.c: Likewise.
453 * osabi.c: Likewise.
454 * osdata.c: Likewise.
455 * p-exp.y: Likewise.
456 * p-lang.c: Likewise.
457 * p-typeprint.c: Likewise.
458 * parse.c: Likewise.
459 * posix-hdep.c: Likewise.
460 * ppc-linux-nat.c: Likewise.
461 * ppc-sysv-tdep.c: Likewise.
462 * ppcfbsd-tdep.c: Likewise.
463 * ppcnbsd-tdep.c: Likewise.
464 * ppcobsd-tdep.c: Likewise.
465 * printcmd.c: Likewise.
466 * procfs.c: Likewise.
467 * prologue-value.c: Likewise.
468 * python/py-auto-load.c: Likewise.
469 * python/py-gdb-readline.c: Likewise.
470 * ravenscar-thread.c: Likewise.
471 * regcache.c: Likewise.
472 * registry.c: Likewise.
473 * remote-fileio.c: Likewise.
474 * remote-m32r-sdi.c: Likewise.
475 * remote-mips.c: Likewise.
476 * remote-notif.c: Likewise.
477 * remote-sim.c: Likewise.
478 * remote.c: Likewise.
479 * reverse.c: Likewise.
480 * rs6000-aix-tdep.c: Likewise.
481 * ser-base.c: Likewise.
482 * ser-go32.c: Likewise.
483 * ser-mingw.c: Likewise.
484 * ser-pipe.c: Likewise.
485 * ser-tcp.c: Likewise.
486 * ser-unix.c: Likewise.
487 * serial.c: Likewise.
488 * sh-tdep.c: Likewise.
489 * sh64-tdep.c: Likewise.
490 * shnbsd-tdep.c: Likewise.
491 * skip.c: Likewise.
492 * sol-thread.c: Likewise.
493 * solib-dsbt.c: Likewise.
494 * solib-frv.c: Likewise.
495 * solib-osf.c: Likewise.
496 * solib-som.c: Likewise.
497 * solib-spu.c: Likewise.
498 * solib-target.c: Likewise.
499 * solib.c: Likewise.
500 * somread.c: Likewise.
501 * source.c: Likewise.
502 * sparc-nat.c: Likewise.
503 * sparc-sol2-tdep.c: Likewise.
504 * sparc-tdep.c: Likewise.
505 * sparc64-tdep.c: Likewise.
506 * sparc64fbsd-tdep.c: Likewise.
507 * sparc64nbsd-tdep.c: Likewise.
508 * sparcnbsd-tdep.c: Likewise.
509 * spu-linux-nat.c: Likewise.
510 * spu-multiarch.c: Likewise.
511 * spu-tdep.c: Likewise.
512 * stabsread.c: Likewise.
513 * stack.c: Likewise.
514 * std-regs.c: Likewise.
515 * symfile.c: Likewise.
516 * symmisc.c: Likewise.
517 * symtab.c: Likewise.
518 * target.c: Likewise.
519 * thread.c: Likewise.
520 * tilegx-linux-nat.c: Likewise.
521 * tilegx-tdep.c: Likewise.
522 * top.c: Likewise.
523 * tracepoint.c: Likewise.
524 * tui/tui-command.c: Likewise.
525 * tui/tui-data.c: Likewise.
526 * tui/tui-disasm.c: Likewise.
527 * tui/tui-file.c: Likewise.
528 * tui/tui-layout.c: Likewise.
529 * tui/tui-out.c: Likewise.
530 * tui/tui-regs.c: Likewise.
531 * tui/tui-source.c: Likewise.
532 * tui/tui-stack.c: Likewise.
533 * tui/tui-win.c: Likewise.
534 * tui/tui-windata.c: Likewise.
535 * tui/tui-winsource.c: Likewise.
536 * typeprint.c: Likewise.
537 * ui-file.c: Likewise.
538 * ui-out.c: Likewise.
539 * user-regs.c: Likewise.
540 * utils.c: Likewise.
541 * v850-tdep.c: Likewise.
542 * valarith.c: Likewise.
543 * valops.c: Likewise.
544 * valprint.c: Likewise.
545 * value.c: Likewise.
546 * varobj.c: Likewise.
547 * vax-tdep.c: Likewise.
548 * vaxnbsd-tdep.c: Likewise.
549 * vaxobsd-tdep.c: Likewise.
550 * windows-nat.c: Likewise.
551 * xcoffread.c: Likewise.
552 * xml-support.c: Likewise.
553 * xstormy16-tdep.c: Likewise.
554 * xtensa-linux-nat.c: Likewise.
555
556 2014-08-07 Gary Benson <gbenson@redhat.com>
557
558 * common/common-defs.h: Include gdb_assert.h.
559 * aarch64-tdep.c: Do not include gdb_assert.h.
560 * addrmap.c: Likewise.
561 * aix-thread.c: Likewise.
562 * alpha-linux-tdep.c: Likewise.
563 * alpha-mdebug-tdep.c: Likewise.
564 * alphanbsd-tdep.c: Likewise.
565 * amd64-nat.c: Likewise.
566 * amd64-tdep.c: Likewise.
567 * amd64bsd-nat.c: Likewise.
568 * amd64fbsd-nat.c: Likewise.
569 * amd64fbsd-tdep.c: Likewise.
570 * amd64nbsd-nat.c: Likewise.
571 * amd64nbsd-tdep.c: Likewise.
572 * amd64obsd-nat.c: Likewise.
573 * amd64obsd-tdep.c: Likewise.
574 * arch-utils.c: Likewise.
575 * arm-tdep.c: Likewise.
576 * armbsd-tdep.c: Likewise.
577 * auxv.c: Likewise.
578 * bcache.c: Likewise.
579 * bfin-tdep.c: Likewise.
580 * blockframe.c: Likewise.
581 * breakpoint.c: Likewise.
582 * bsd-kvm.c: Likewise.
583 * bsd-uthread.c: Likewise.
584 * buildsym.c: Likewise.
585 * c-exp.y: Likewise.
586 * c-lang.c: Likewise.
587 * charset.c: Likewise.
588 * cleanups.c: Likewise.
589 * cli-out.c: Likewise.
590 * cli/cli-decode.c: Likewise.
591 * cli/cli-dump.c: Likewise.
592 * cli/cli-logging.c: Likewise.
593 * cli/cli-script.c: Likewise.
594 * cli/cli-utils.c: Likewise.
595 * coffread.c: Likewise.
596 * common/common-utils.c: Likewise.
597 * common/queue.h: Likewise.
598 * common/signals.c: Likewise.
599 * common/vec.h: Likewise.
600 * complaints.c: Likewise.
601 * completer.c: Likewise.
602 * corelow.c: Likewise.
603 * cp-abi.c: Likewise.
604 * cp-name-parser.y: Likewise.
605 * cp-namespace.c: Likewise.
606 * cp-support.c: Likewise.
607 * cris-tdep.c: Likewise.
608 * dbxread.c: Likewise.
609 * dictionary.c: Likewise.
610 * doublest.c: Likewise.
611 * dsrec.c: Likewise.
612 * dummy-frame.c: Likewise.
613 * dwarf2-frame-tailcall.c: Likewise.
614 * dwarf2-frame.c: Likewise.
615 * dwarf2expr.c: Likewise.
616 * dwarf2loc.c: Likewise.
617 * dwarf2read.c: Likewise.
618 * eval.c: Likewise.
619 * event-loop.c: Likewise.
620 * exceptions.c: Likewise.
621 * expprint.c: Likewise.
622 * f-valprint.c: Likewise.
623 * fbsd-nat.c: Likewise.
624 * findvar.c: Likewise.
625 * frame-unwind.c: Likewise.
626 * frame.c: Likewise.
627 * frv-tdep.c: Likewise.
628 * gcore.c: Likewise.
629 * gdb-dlfcn.c: Likewise.
630 * gdb_bfd.c: Likewise.
631 * gdbarch.c: Likewise.
632 * gdbarch.sh: Likewise.
633 * gdbtypes.c: Likewise.
634 * gnu-nat.c: Likewise.
635 * gnu-v3-abi.c: Likewise.
636 * go-lang.c: Likewise.
637 * guile/scm-exception.c: Likewise.
638 * guile/scm-gsmob.c: Likewise.
639 * guile/scm-lazy-string.c: Likewise.
640 * guile/scm-math.c: Likewise.
641 * guile/scm-pretty-print.c: Likewise.
642 * guile/scm-safe-call.c: Likewise.
643 * guile/scm-utils.c: Likewise.
644 * guile/scm-value.c: Likewise.
645 * h8300-tdep.c: Likewise.
646 * hppa-hpux-nat.c: Likewise.
647 * hppa-tdep.c: Likewise.
648 * hppanbsd-tdep.c: Likewise.
649 * hppaobsd-tdep.c: Likewise.
650 * i386-darwin-nat.c: Likewise.
651 * i386-darwin-tdep.c: Likewise.
652 * i386-nto-tdep.c: Likewise.
653 * i386-tdep.c: Likewise.
654 * i386bsd-nat.c: Likewise.
655 * i386fbsd-tdep.c: Likewise.
656 * i386gnu-nat.c: Likewise.
657 * i386nbsd-tdep.c: Likewise.
658 * i386obsd-tdep.c: Likewise.
659 * i387-tdep.c: Likewise.
660 * ia64-libunwind-tdep.c: Likewise.
661 * ia64-tdep.c: Likewise.
662 * inf-ptrace.c: Likewise.
663 * inf-ttrace.c: Likewise.
664 * infcall.c: Likewise.
665 * infcmd.c: Likewise.
666 * infrun.c: Likewise.
667 * inline-frame.c: Likewise.
668 * interps.c: Likewise.
669 * jv-lang.c: Likewise.
670 * jv-typeprint.c: Likewise.
671 * linux-fork.c: Likewise.
672 * linux-nat.c: Likewise.
673 * linux-thread-db.c: Likewise.
674 * m32c-tdep.c: Likewise.
675 * m32r-linux-nat.c: Likewise.
676 * m32r-tdep.c: Likewise.
677 * m68k-tdep.c: Likewise.
678 * m68kbsd-nat.c: Likewise.
679 * m68kbsd-tdep.c: Likewise.
680 * m88k-tdep.c: Likewise.
681 * machoread.c: Likewise.
682 * macroexp.c: Likewise.
683 * macrotab.c: Likewise.
684 * maint.c: Likewise.
685 * mdebugread.c: Likewise.
686 * memory-map.c: Likewise.
687 * mep-tdep.c: Likewise.
688 * mi/mi-common.c: Likewise.
689 * microblaze-tdep.c: Likewise.
690 * mingw-hdep.c: Likewise.
691 * mips-linux-nat.c: Likewise.
692 * mips-linux-tdep.c: Likewise.
693 * mips-tdep.c: Likewise.
694 * mips64obsd-tdep.c: Likewise.
695 * mipsnbsd-tdep.c: Likewise.
696 * mn10300-linux-tdep.c: Likewise.
697 * mn10300-tdep.c: Likewise.
698 * moxie-tdep.c: Likewise.
699 * mt-tdep.c: Likewise.
700 * nat/linux-btrace.c: Likewise.
701 * nat/linux-osdata.c: Likewise.
702 * nat/linux-ptrace.c: Likewise.
703 * nat/mips-linux-watch.c: Likewise.
704 * nios2-linux-tdep.c: Likewise.
705 * nios2-tdep.c: Likewise.
706 * objc-lang.c: Likewise.
707 * objfiles.c: Likewise.
708 * obsd-nat.c: Likewise.
709 * opencl-lang.c: Likewise.
710 * osabi.c: Likewise.
711 * parse.c: Likewise.
712 * ppc-linux-nat.c: Likewise.
713 * ppc-sysv-tdep.c: Likewise.
714 * ppcfbsd-nat.c: Likewise.
715 * ppcfbsd-tdep.c: Likewise.
716 * ppcnbsd-nat.c: Likewise.
717 * ppcnbsd-tdep.c: Likewise.
718 * ppcobsd-nat.c: Likewise.
719 * ppcobsd-tdep.c: Likewise.
720 * printcmd.c: Likewise.
721 * procfs.c: Likewise.
722 * prologue-value.c: Likewise.
723 * psymtab.c: Likewise.
724 * python/py-lazy-string.c: Likewise.
725 * python/py-value.c: Likewise.
726 * regcache.c: Likewise.
727 * reggroups.c: Likewise.
728 * registry.c: Likewise.
729 * remote-sim.c: Likewise.
730 * remote.c: Likewise.
731 * rs6000-aix-tdep.c: Likewise.
732 * rs6000-tdep.c: Likewise.
733 * s390-linux-tdep.c: Likewise.
734 * score-tdep.c: Likewise.
735 * ser-base.c: Likewise.
736 * ser-mingw.c: Likewise.
737 * sh-tdep.c: Likewise.
738 * sh64-tdep.c: Likewise.
739 * solib-darwin.c: Likewise.
740 * solib-spu.c: Likewise.
741 * solib-svr4.c: Likewise.
742 * source.c: Likewise.
743 * sparc-nat.c: Likewise.
744 * sparc-sol2-tdep.c: Likewise.
745 * sparc-tdep.c: Likewise.
746 * sparc64-sol2-tdep.c: Likewise.
747 * sparc64-tdep.c: Likewise.
748 * sparc64fbsd-tdep.c: Likewise.
749 * sparc64nbsd-tdep.c: Likewise.
750 * sparc64obsd-tdep.c: Likewise.
751 * sparcnbsd-tdep.c: Likewise.
752 * sparcobsd-tdep.c: Likewise.
753 * spu-multiarch.c: Likewise.
754 * spu-tdep.c: Likewise.
755 * stabsread.c: Likewise.
756 * stack.c: Likewise.
757 * symfile.c: Likewise.
758 * symtab.c: Likewise.
759 * target-descriptions.c: Likewise.
760 * target-memory.c: Likewise.
761 * target.c: Likewise.
762 * tic6x-linux-tdep.c: Likewise.
763 * tic6x-tdep.c: Likewise.
764 * tilegx-linux-nat.c: Likewise.
765 * tilegx-tdep.c: Likewise.
766 * top.c: Likewise.
767 * tramp-frame.c: Likewise.
768 * tui/tui-out.c: Likewise.
769 * tui/tui-winsource.c: Likewise.
770 * ui-out.c: Likewise.
771 * user-regs.c: Likewise.
772 * utils.c: Likewise.
773 * v850-tdep.c: Likewise.
774 * valops.c: Likewise.
775 * value.c: Likewise.
776 * varobj.c: Likewise.
777 * vax-nat.c: Likewise.
778 * xml-syscall.c: Likewise.
779 * xml-tdesc.c: Likewise.
780 * xstormy16-tdep.c: Likewise.
781 * xtensa-linux-nat.c: Likewise.
782 * xtensa-tdep.c: Likewise.
783
784 2014-08-07 Gary Benson <gbenson@redhat.com>
785
786 * common/common-defs.h: Include common-utils.h.
787 * defs.h: Do not include common-utils.h.
788 * common/gdb_assert.h: Likewise.
789 * darwin-nat.h: Likewise.
790 * nat/linux-btrace.c: Likewise.
791 * target/waitstatus.h: Likewise.
792
793 2014-08-07 Gary Benson <gbenson@redhat.com>
794
795 * common/common-defs.h: Include ptid.h.
796 * defs.h: Do not include ptid.h.
797 * inferior.h: Likewise.
798 * infrun.h: Likewise.
799 * nat/linux-btrace.h: Likewise.
800 * nat/linux-osdata.h: Likewise.
801 * target/waitstatus.h: Likewise.
802
803 2014-08-07 Gary Benson <gbenson@redhat.com>
804
805 * common/common-defs.h: Include gdb_locale.h.
806 * defs.h: Do not include gdb_locale.h.
807
808 2014-08-07 Gary Benson <gbenson@redhat.com>
809
810 * common/common-defs.h: Include gdb/signals.h.
811 * defs.h: Do not include gdb/signals.h.
812
813 2014-08-07 Gary Benson <gbenson@redhat.com>
814
815 * common/common-defs.h: Include pathmax.h.
816 * defs.h: Do not include pathmax.h.
817
818 2014-08-07 Gary Benson <gbenson@redhat.com>
819
820 * common/common-defs.h: Include libiberty.h.
821 * defs.h: Do not include libiberty.h.
822 * common/queue.h: Likewise.
823 * cp-name-parser.y: Likewise.
824 * mi/mi-cmd-catch.c: Likewise.
825 * python/python.c: Likewise.
826
827 2014-08-07 Gary Benson <gbenson@redhat.com>
828
829 * common/common-defs.h: Include ansidecl.h.
830 * defs.h: Do not include ansidecl.h.
831 * common/buffer.h: Likewise.
832 * common/common-utils.h: Likewise.
833
834 2014-08-07 Gary Benson <gbenson@redhat.com>
835
836 * common/common-defs.h: Include stddef.h.
837 * defs.h: Do not include stddef.h.
838 * common/common-utils.h: Likewise.
839 * amd64fbsd-nat.c: Likewise.
840 * bcache.c: Likewise.
841 * charset.c: Likewise.
842 * common/buffer.h: Likewise.
843 * common/vec.h: Likewise.
844 * i386bsd-nat.c: Likewise.
845 * nat/linux-btrace.h: Likewise.
846 * ppcfbsd-nat.c: Likewise.
847 * ppcnbsd-tdep.h: Likewise.
848 * ppcobsd-nat.c: Likewise.
849 * ppcobsd-tdep.h: Likewise.
850 * python/py-gdb-readline.c: Likewise.
851
852 2014-08-07 Gary Benson <gbenson@redhat.com>
853
854 * common/common-defs.h: Include stdarg.h.
855 * defs.h: Do not include stdarg.h.
856 * ada-lang.c: Likewise.
857 * common/common-utils.h: Likewise.
858 * guile/scm-string.c: Likewise.
859 * guile/scm-utils.c: Likewise.
860 * m32c-tdep.c: Likewise.
861
862 2014-08-07 Gary Benson <gbenson@redhat.com>
863
864 * common/common-defs.h: Include stdlib.h.
865 * defs.h: Do not include stdlib.h.
866 * addrmap.c: Likewise.
867 * bcache.c: Likewise.
868 * common/buffer.c: Likewise.
869 * common/common-utils.c: Likewise.
870 * cp-name-parser.y: Likewise.
871 * go32-nat.c: Likewise.
872 * mn10300-linux-tdep.c: Likewise.
873 * nat/linux-osdata.c: Likewise.
874 * tui/tui.c: Likewise.
875 * windows-nat.c: Likewise.
876
877 2014-08-07 Gary Benson <gbenson@redhat.com>
878
879 * common/common-defs.h: Include stdio.h.
880 * defs.h: Do not include stdio.h.
881 * ada-lang.c: Likewise.
882 * common/buffer.c: Likewise.
883 * common/common-utils.c: Likewise.
884 * cp-name-parser.y: Likewise.
885 * gnu-nat.c: Likewise.
886 * go32-nat.c: Likewise.
887 * i386gnu-nat.c: Likewise.
888 * proc-api.c: Likewise.
889 * proc-events.c: Likewise.
890 * proc-flags.c: Likewise.
891 * proc-why.c: Likewise.
892 * python/python-internal.h: Likewise.
893 * target-memory.c: Likewise.
894 * tui/tui-io.c: Likewise.
895 * tui/tui.c: Likewise.
896
897 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
898
899 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
900 (scan_dyntag_auxv): Same.
901
902 2014-08-06 Yao Qi <yao@codesourcery.com>
903
904 * amd64-linux-nat.c: Remove duplicated include
905 "x86-linux-nat.h".
906 * i386-linux-nat.c: Likewise.
907
908 2014-08-06 Yao Qi <yao@codesourcery.com>
909
910 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
911 operand" with "Special opcode" in comments.
912
913 2014-08-05 Gary Benson <gbenson@redhat.com>
914
915 * interps.c (initialize_interps): Remove prototype.
916 (interpreter_initialized): Remove static global.
917 (interp_add): Do not call initialize_interps.
918 (initialize_interps): Remove function.
919
920 2014-08-05 Gary Benson <gbenson@redhat.com>
921
922 * utils.c (vwarning): Remove spurious va_end.
923
924 2014-08-05 Alan Modra <amodra@gmail.com>
925
926 * charset.c (convert_between_encodings): Cast result of obstack_base.
927 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
928 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
929 (read_unwind_info): Use size_t for some locals.
930 * jit.c (finalize_symtab): Likewise.
931 * utils.c (hashtab_obstack_allocate): Likewise.
932 * symmisc.c (print_objfile_statistics): Update format strings.
933
934 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
935
936 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
937 (Changes in GDB 7.8): ... here.
938
939 2014-08-04 Tom Tromey <tromey@redhat.com>
940
941 * target.c (set_targetdebug): New function.
942 (initialize_targets): Pass set_targetdebug when creating "set
943 debug target".
944
945 2014-08-01 Joel Brobecker <brobecker@adacore.com>
946
947 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
948 if detecting a variable-sized field that is not the last field.
949 Fix struct type length computation.
950
951 2014-08-01 Joel Brobecker <brobecker@adacore.com>
952
953 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
954 Add debug trace.
955
956 2014-08-01 Joel Brobecker <brobecker@adacore.com>
957
958 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
959 Remove "+ 8" offset in computation of CHAIN_VMA.
960
961 2014-07-31 Doug Evans <dje@google.com>
962
963 * inflow.c (child_terminal_inferior): Add comment.
964 (child_terminal_ours_for_output): Add comment.
965 (child_terminal_ours): Add comment.
966 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
967 (linux_nat_terminal_ours): Add comment.
968
969 2014-07-31 Gary Benson <gbenson@redhat.com>
970
971 * common/btrace-common.h: Do not include defs.h or server.h.
972 * nat/mips-linux-watch.h: Likewise.
973 * gdb-dlfcn.h: Do not include defs.h.
974 * tracefile.h: Likewise.
975
976 2014-07-30 Roland McGrath <mcgrathr@google.com>
977
978 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
979
980 2014-07-30 Tom Tromey <tromey@redhat.com>
981
982 * bsd-kvm.c (bsd_kvm_open): Constify.
983 * corelow.c (core_open): Constify.
984 * ctf.c (ctf_open): Constify.
985 * dbug-rom.c (dbug_open): Constify.
986 * exec.c (exec_open): Constify.
987 * m32r-rom.c (m32r_open, mon2000_open): Constify.
988 * microblaze-rom.c (picobug_open): Constify.
989 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
990 Constify.
991 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
992 * record-btrace.c (record_btrace_open): Constify.
993 * record-full.c (record_full_core_open_1, record_full_open_1)
994 (record_full_open): Constify.
995 * remote-m32r-sdi.c (m32r_open): Constify.
996 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
997 (rockhopper_open, lsi_open): Constify.
998 * remote-sim.c (gdbsim_open): Constify.
999 * remote.c (remote_open, extended_remote_open, remote_open_1):
1000 Constify.
1001 * target.h (struct target_ops) <to_open>: Make "arg" const.
1002 * tracefile-tfile.c (tfile_open): Constify.
1003
1004 2014-07-30 Tom Tromey <tromey@redhat.com>
1005
1006 * breakpoint.c (map_breakpoint_numbers): Update.
1007 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1008 (get_number_const): New function.
1009 (get_number): Rewrite using get_number_const.
1010 (init_number_or_range): Make "string" const.
1011 (number_is_in_list): Make "list" const.
1012 * cli/cli-utils.h (get_number_const): Declare.
1013 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1014 (init_number_or_range, number_is_in_list): Update.
1015 * printcmd.c (map_display_numbers): Update.
1016 * value.c (value_from_history_ref): Constify.
1017 * value.h (value_from_history_ref): Update.
1018
1019 2014-07-30 Tom Tromey <tromey@redhat.com>
1020
1021 * corefile.c (hook_type, call_extra_exec_file_hooks)
1022 (specify_exec_file_hook): Constify.
1023 * exec.c (exec_file_attach): Make "filename" const.
1024 * gdbcore.h (deprecated_exec_file_display_hook)
1025 (specify_exec_file_hook, exec_file_attach): Constify.
1026 * main.c (captured_main): Use catch_command_errors_const.
1027
1028 2014-07-30 Tom Tromey <tromey@redhat.com>
1029
1030 * target.c (open_target): New function.
1031 (add_target_with_completer, add_deprecated_target_alias): Use
1032 set_cmd_sfunc, set_cmd_context.
1033 (debug_to_open): Remove.
1034 (setup_target_debug): Update.
1035
1036 2014-07-30 Yao Qi <yao@codesourcery.com>
1037
1038 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1039 comments.
1040 * parse.c (exp_iterate): Update comments.
1041
1042 2014-07-30 Gary Benson <gbenson@redhat.com>
1043
1044 * common/common-defs.h: New file.
1045 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1046 * defs.h: Include common-defs.h.
1047 Do not include config.h or build-gnulib/config.h.
1048
1049 2014-07-30 Gary Benson <gbenson@redhat.com>
1050
1051 * common/common-utils.h: Do not include config.h.
1052 * nat/linux-btrace.h: Likewise.
1053
1054 2014-07-30 Gary Benson <gbenson@redhat.com>
1055
1056 * btrace.c: Include defs.h.
1057 * common/ptid.c: Include defs.h or server.h as appropriate.
1058 * nat/mips-linux-watch.c: Likewise.
1059
1060 2014-07-29 Tom Tromey <tromey@redhat.com>
1061
1062 * target.c (target_is_pushed): Simplify.
1063
1064 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1065
1066 GDB 7.8 released.
1067
1068 2014-07-29 Yao Qi <yao@codesourcery.com>
1069
1070 PR gdb/17206
1071 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1072
1073 2014-07-28 Doug Evans <xdje42@gmail.com>
1074
1075 PR guile/17203
1076 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1077 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1078 parameters.
1079
1080 2014-07-28 Will Newton <will.newton@linaro.org>
1081
1082 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1083 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1084 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1085 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1086 (THUMB2_EABI_SYSCALL): Likewise.
1087 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1088 struct tramp_frame.
1089 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1090 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1091
1092 2014-07-27 Doug Evans <xdje42@gmail.com>
1093
1094 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1095
1096 2014-07-27 Doug Evans <xdje42@gmail.com>
1097
1098 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1099
1100 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1101 Doug Evans <xdje42@gmail.com>
1102
1103 PR guile/17146
1104 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1105 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1106 * configure.ac: Try to use guild to compile an scm file, if it fails
1107 then disable guile support.
1108 * configure: Regenerate.
1109 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1110 GUILE_FILE_LIST.
1111 (GUILE_COMPILED_FILES): New variable.
1112 (GUILE_FILES) Update.
1113 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1114 (stamp-guile): Compile scm files.
1115 * guile/guile.c (boot_guile_support): New function.
1116 (standard_throw_args_p): New function.
1117 (print_standard_throw_error, print_throw_error): New functions.
1118 (handle_boot_error): New function.
1119 (initialize_scheme_side): Rewrite to call boot_guile_support.
1120 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1121 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1122
1123 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1124 Doug Evans <xdje42@gmail.com>
1125
1126 PR guile/17146
1127 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1128 * guile/lib/gdb/support.scm: New file.
1129 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1130 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1131 All uses updated.
1132 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1133 All uses updated.
1134 (%assert-type): Ditto, and renamed to assert-type.
1135 (%exception-print-style): Delete.
1136
1137 2014-07-26 Doug Evans <xdje42@gmail.com>
1138
1139 PR build/17105
1140 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1141 * configure: Regenerate.
1142 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1143 PYTHON_FILES.
1144 (PYTHON_FILES): New variable.
1145 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1146 (GUILE_FILES): New variable.
1147 (stamp-python, install-python, uninstall-python): Handle empty
1148 file list.
1149 (stamp-guile, install-guile, uninstall-guile): Ditto.
1150
1151 2014-07-26 Doug Evans <xdje42@gmail.com>
1152
1153 PR guile/17177
1154 * guile/lib/gdb.scm (pretty-printers): Export.
1155 (set-pretty-printers!): Export.
1156 * guile/lib/gdb/printing.scm (gdb module): Update.
1157 (prepend-pretty-printer!, append-pretty-printer!): Update.
1158 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1159 (pretty_printer_list_var): Delete.
1160 (pretty_printer_list): New static global.
1161 (gdbscm_pretty_printers): New function.
1162 (gdbscm_set_pretty_printers_x): New function.
1163 (ppscm_find_pretty_printer_from_gdb): Update.
1164 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1165 (gdbscm_initialize_pretty_printers): Update.
1166
1167 2014-07-26 Doug Evans <xdje42@gmail.com>
1168
1169 PR 17185
1170 * configure.ac: Add check for header gc/gc.h.
1171 Add check for function setenv.
1172 * configure: Regenerate.
1173 * config.in: Regenerate.
1174 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1175
1176 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1177
1178 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1179 variation in gdbarch matching.
1180
1181 2014-07-25 Tom Tromey <tromey@redhat.com>
1182
1183 * exec.c (using_exec_ops): Remove.
1184 (exec_close_1): Update. Remove extraneous block, reindent.
1185 (add_target_sections): Use target_is_pushed.
1186
1187 2014-07-25 Pedro Alves <palves@redhat.com>
1188
1189 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1190 * monitor.c (monitor_create_inferior): Likewise.
1191 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1192 * remote-sim.c (gdbsim_create_inferior): Likewise.
1193 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1194 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1195 * windows-nat.c (do_initial_windows_stuff): Likewise.
1196
1197 2014-07-25 Pedro Alves <palves@redhat.com>
1198
1199 * NEWS: Mention signal passing and "signal" command changes.
1200 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1201 comment.
1202 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1203 call.
1204 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1205 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1206 (jump_command): Adjust clear_proceed_status call.
1207 (signal_command): Warn if other thread that are resumed have
1208 signals that will be delivered. Adjust clear_proceed_status call.
1209 (until_next_command, finish_command)
1210 (proceed_after_attach_callback, attach_command_post_wait)
1211 (attach_command): Adjust clear_proceed_status call.
1212 * infrun.c (proceed_after_vfork_done): Likewise.
1213 (proceed_after_attach_callback): Adjust comment.
1214 (clear_proceed_status_thread): Clear stop_signal if not in pass
1215 state.
1216 (clear_proceed_status_callback): Delete.
1217 (clear_proceed_status): New 'step' parameter. Only clear the
1218 proceed status of threads the command being prepared is about to
1219 resume.
1220 (proceed): If passed in an explicit signal, override stop_signal
1221 with it. Don't pass the last stop signal to the thread we're
1222 resuming.
1223 (init_wait_for_inferior): Adjust clear_proceed_status call.
1224 (switch_back_to_stepped_thread): Clear the signal if it should not
1225 be passed.
1226 * infrun.h (clear_proceed_status): New 'step' parameter.
1227 (user_visible_resume_ptid): Add comment.
1228 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1229 signal is in pass state.
1230 * remote.c (append_pending_thread_resumptions): Likewise.
1231 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1232
1233 2014-07-25 Tom Tromey <tromey@redhat.com>
1234
1235 * target.h (target_stopped_data_address)
1236 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1237 parentheses.
1238
1239 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1240
1241 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1242 comments.
1243 (avr_pointer_to_address): Likewise.
1244
1245 2014-07-24 Tom Tromey <tromey@redhat.com>
1246
1247 * monitor.c (compile_pattern): Update.
1248 * target.h (struct target_ops) <to_shortname, to_longname,
1249 to_doc>: Now const.
1250
1251 2014-07-24 Tom Tromey <tromey@redhat.com>
1252
1253 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1254 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1255 (add_info_alias, add_com): Make "doc" const.
1256 (print_doc_line): Make "str" const.
1257 (delete_cmd): Update.
1258 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1259 (print_doc_line): Update.
1260 * cli/cli-script.c (document_command): Update.
1261 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1262 (add_com, add_info, add_info_alias): Update.
1263 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1264 * python/py-cmd.c (cmdpy_destroyer): Update.
1265
1266 2014-07-24 Tom Tromey <tromey@redhat.com>
1267
1268 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1269 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1270 (help_cmd_list): Constify.
1271 (lookup_cmd): Update.
1272 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1273 const.
1274 (help_cmd_list, apropos_cmd): Update.
1275 * cli/cli-script.c (show_user): Update.
1276 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1277 * cli/cli-setshow.h (cmd_show_list): Update.
1278 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1279 (cmd_show_list): Update.
1280 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1281 * python/py-cmd.c (cmdpy_destroyer): Update.
1282
1283 2014-07-24 Tom Tromey <tromey@redhat.com>
1284
1285 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1286 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1287 const.
1288 * command.h (deprecate_cmd): Update.
1289 * maint.c (maintenance_do_deprecate): Add casts.
1290
1291 2014-07-24 Tom Tromey <tromey@redhat.com>
1292
1293 * cli/cli-decode.c (help_cmd): Make parameter "const".
1294 * cli/cli-decode.h (help_cmd): Update.
1295
1296 2014-07-24 Tom Tromey <tromey@redhat.com>
1297
1298 * stack.c (up_silently_base, down_silently_base): Make argument
1299 const.
1300
1301 2014-07-24 Tom Tromey <tromey@redhat.com>
1302
1303 * solib.c (solib_add): Make "pattern" const.
1304 * solib.h (solib_add): Update.
1305
1306 2014-07-24 Tom Tromey <tromey@redhat.com>
1307
1308 * remote.c (remote_serial_open, print_packet, putpkt)
1309 (putpkt_binary): Constify.
1310 * remote.h (putpkt): Update.
1311
1312 2014-07-24 Tom Tromey <tromey@redhat.com>
1313
1314 * monitor.c (monitor_open): Make "args" const.
1315 * monitor.h (monitor_open): Update.
1316
1317 2014-07-24 Tom Tromey <tromey@redhat.com>
1318
1319 * maint.c (match_bfd_flags): Make "string" const.
1320 (print_bfd_section_info): Remove casts.
1321 (print_objfile_section_info): Make "string" const.
1322
1323 2014-07-24 Tom Tromey <tromey@redhat.com>
1324
1325 * inf-child.c (inf_child_open_target): Make "arg" const.
1326 * inf-child.h (inf_child_open_target): Update.
1327
1328 2014-07-24 Tom Tromey <tromey@redhat.com>
1329
1330 * environ.c (unset_in_environ): Make "var" const.
1331 * environ.h (unset_in_environ): Update.
1332
1333 2014-07-24 Tom Tromey <tromey@redhat.com>
1334
1335 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1336 Make "cmd" const.
1337 (scan_filename_with_cleanup): Likewise.
1338 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1339 Make arguments const.
1340 (restore_command): Update.
1341
1342 2014-07-24 Pedro Alves <palves@redhat.com>
1343
1344 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1345
1346 2014-07-24 Tom Tromey <tromey@redhat.com>
1347 Gary Benson <gbenson@redhat.com>
1348
1349 * nat/linux-ptrace.c (additional_flags): New global.
1350 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1351 additional_flags; don't check GDBSERVER.
1352 (linux_ptrace_set_additional_flags): New function.
1353 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1354 Declare.
1355 * linux-nat.c (_initialize_linux_nat): Call
1356 linux_ptrace_set_additional_flags.
1357
1358 2014-07-24 Tom Tromey <tromey@redhat.com>
1359
1360 * make-target-delegates (munge_type, write_debugmethod): New
1361 functions.
1362 (debug_names): New global.
1363 ($TARGET_DEBUG_PRINTER): New global.
1364 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1365 name.
1366 Write debug methods. Generate init_debug_target.
1367 * target-debug.h: New file.
1368 * target-delegates.c: Rebuild.
1369 * target.c: Include target-debug.h.
1370 (debug_target): Hoist definition.
1371 (target_kill, target_get_section_table, target_memory_map)
1372 (target_flash_erase, target_flash_done, target_detach)
1373 (target_disconnect, target_wait, target_resume)
1374 (target_pass_signals, target_program_signals, target_follow_fork)
1375 (target_mourn_inferior, target_search_memory)
1376 (target_thread_address_space, target_close)
1377 (target_find_new_threads, target_core_of_thread)
1378 (target_verify_memory, target_insert_mask_watchpoint)
1379 (target_remove_mask_watchpoint): Remove targetdebug code.
1380 (debug_to_post_attach, debug_to_prepare_to_store)
1381 (debug_to_files_info, debug_to_insert_breakpoint)
1382 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1383 (debug_to_region_ok_for_hw_watchpoint)
1384 (debug_to_can_accel_watchpoint_condition)
1385 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1386 (debug_to_watchpoint_addr_within_range)
1387 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1388 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1389 (debug_to_terminal_init, debug_to_terminal_inferior)
1390 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1391 (debug_to_terminal_save_ours, debug_to_terminal_info)
1392 (debug_to_load, debug_to_post_startup_inferior)
1393 (debug_to_insert_fork_catchpoint)
1394 (debug_to_remove_fork_catchpoint)
1395 (debug_to_insert_vfork_catchpoint)
1396 (debug_to_remove_vfork_catchpoint)
1397 (debug_to_insert_exec_catchpoint)
1398 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1399 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1400 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1401 (setup_target_debug): Call init_debug_target.
1402 * target.h (TARGET_DEBUG_PRINTER): New macro.
1403 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1404 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1405
1406 2014-07-24 Gary Benson <gbenson@redhat.com>
1407
1408 * exceptions.h (throw_vfatal): Renamed to...
1409 (throw_vquit): New declaration.
1410 (throw_quit): Likewise.
1411 * exceptions.c (throw_vfatal): Renamed to...
1412 (throw_vquit): New function.
1413 (throw_quit): Likewise.
1414 (throw_error): Call throw_verror rather than throw_it.
1415 * utils.h (vfatal): Removed.
1416 (fatal): Likewise.
1417 * utils.c (vfatal): Removed.
1418 (fatal): Likewise.
1419 (internal_verror): Replaced call to fatal with call to throw_quit.
1420 (quit): Replaced calls to fatal with calls to throw_quit.
1421
1422 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1423
1424 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1425 target_read_code.
1426
1427 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1428
1429 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1430 less than zero in conditional expression.
1431
1432 2014-07-23 Tom Tromey <tromey@redhat.com>
1433
1434 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1435 ($INTRO_PART): Don't match whitespace.
1436 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1437 argument matching.
1438 ($METHOD): Add $METHOD_TRAILER.
1439 (trim): Rewrite.
1440 (scan_target_h): New sub.
1441 Change main loop not to collect state.
1442 * target-delegates.c: Rebuild.
1443
1444 2014-07-23 Gary Benson <gbenson@redhat.com>
1445
1446 * cp-support.c (gdb_demangle): Fix build on systems without
1447 sigaltstack.
1448
1449 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1452 for reference entry value target data value.
1453
1454 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1455
1456 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1457 value_available_contents_eq.
1458
1459 2014-07-22 Pedro Alves <palves@redhat.com>
1460
1461 * value.c (allocate_optimized_out_value): Don't mark value as
1462 non-lazy.
1463
1464 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1465
1466 * MAINTAINERS (Write After Approval): Update my email address.
1467
1468 2014-07-20 Doug Evans <dje@google.com>
1469
1470 PR server/17147
1471 * remote.c (putpkt_binary): Add text to error message.
1472
1473 2014-07-20 Yao Qi <yao@codesourcery.com>
1474
1475 * eval.c: Remove "Chill" from comments.
1476 * gdbtypes.h: Likewise.
1477 * symtab.h: Likewise.
1478
1479 2014-07-20 Yao Qi <yao@codesourcery.com>
1480
1481 * std-operator.def: Update comments to TERNOP_SLICE.
1482
1483 2014-07-20 Yao Qi <yao@codesourcery.com>
1484
1485 * std-operator.def: Remove BINOP_RANGE.
1486 * breakpoint.c (watchpoint_exp_is_const): Update.
1487 * expprint.c (dump_subexp_body_standard): Likewise.
1488 * eval.c (init_array_element): Remove dead code.
1489 (evaluate_subexp_standard): Likewise.
1490
1491 2014-07-20 Yao Qi <yao@codesourcery.com>
1492
1493 * std-operator.def: Remove BINOP_IN.
1494 * breakpoint.c (watchpoint_exp_is_const): Update.
1495 * eval.c (evaluate_subexp_standard): Likewise.
1496 * expprint.c (dump_subexp_body_standard): Likewise.
1497
1498 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1499
1500 * microblaze-tdep.c (microblaze_register_names): Add
1501 the rshr and rslr register names.
1502 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1503 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1504 Use of tdesc_numbered_register. Use of
1505 microblaze_register_g_packet_guesses. Use of
1506 tdesc_use_registers. Use of set_gdbarch_register_type.
1507 (microblaze_register_g_packet_guesses): New.
1508 * microblaze-tdep.h (microblaze_reg_num): Add
1509 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1510 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1511 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1512 * features/microblaze-core.xml: New file.
1513 * features/microblaze-stack-protect.xml: New file.
1514 * features/microblaze-with-stack-protect.c: New file.
1515 * features/microblaze-with-stack-protect.xml: New file.
1516 * features/microblaze.xml: New file.
1517 * features/microblaze.c: New file.
1518 * features/Makefile (microblaze-with-stack-protect): Add
1519 microblaze-with-stack-protect microblaze and microblaze-expedite.
1520 * regformats/microblaze-with-stack-protect.dat: New file.
1521 * regformats/microblaze.dat: New file.
1522 * doc/gdb.texinfo (MicroBlaze Features): Added.
1523
1524 2014-07-18 Tom Tromey <tromey@redhat.com>
1525
1526 * exec.c (exec_ops): Now static.
1527 * exec.h (exec_ops): Don't declare.
1528
1529 2014-07-18 Tom Tromey <tromey@redhat.com>
1530
1531 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1532 to find_target_beneath.
1533 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1534 find_target_beneath.
1535 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1536
1537 2014-07-18 Tom Tromey <tromey@redhat.com>
1538
1539 PR gdb/17130:
1540 * utils.c (quit): Use target_supports_terminal_ours.
1541 * target.h (target_supports_terminal_ours): Declare.
1542 * target.c (target_supports_delete_record): Don't check
1543 to_delete_record against NULL.
1544 (target_supports_terminal_ours): New function.
1545
1546 2014-07-18 Tom Tromey <tromey@redhat.com>
1547
1548 PR gdb/17130:
1549 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1550 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1551 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1552 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1553 * windows-nat.c (windows_xfer_partial): Always delegate.
1554 * record-btrace.c (record_btrace_xfer_partial): Simplify
1555 delegation.
1556 (record_btrace_fetch_registers, record_btrace_store_registers)
1557 (record_btrace_prepare_to_store, record_btrace_resume)
1558 (record_btrace_wait, record_btrace_find_new_threads)
1559 (record_btrace_thread_alive): Likewise.
1560 * procfs.c (procfs_xfer_partial): Always delegate.
1561 * corelow.c (core_xfer_partial): Always delegate.
1562 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1563
1564 2014-07-18 Tom Tromey <tromey@redhat.com>
1565
1566 * exec.c (exec_make_note_section): Move earlier.
1567
1568 2014-07-17 Doug Evans <dje@google.com>
1569
1570 PR gdb/17170
1571 * maint.c (count_symtabs_and_blocks): Handle NULL
1572 current_program_space.
1573 (report_command_stats): Check global enabled flag in addition to
1574 recorded enabled flag.
1575 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1576
1577 2014-07-16 Pedro Alves <palves@redhat.com>
1578
1579 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1580
1581 2014-07-16 Tom Tromey <tromey@redhat.com>
1582
1583 * target.h (struct target_ops) <to_delete_record>: Reformat
1584 comment.
1585
1586 2014-07-16 Tom Tromey <tromey@redhat.com>
1587
1588 * target-delegates.c: Rebuild.
1589
1590 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1591
1592 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1593 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1594 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1595 (avr_pointer_to_address): Likewise.
1596 (avr_address_class_type_flags): New function.
1597 (avr_address_class_type_flags_to_name): Likewise.
1598 (avr_address_class_name_to_type_flags): Likewise.
1599 (avr_gdbarch_init): Set address_class_type_flags,
1600 address_class_type_flags_to_name and
1601 address_class_name_to_type_flags.
1602
1603 2014-07-15 Pedro Alves <palves@redhat.com>
1604
1605 * linux-nat.c (kill_callback): Save errno and work with saved
1606 copy.
1607
1608 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1609
1610 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1611
1612 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1613
1614 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1615 breakpoint support correctly.
1616
1617 2014-07-14 Pedro Alves <palves@redhat.com>
1618
1619 * utils.c (prompt_for_continue): Call target_terminal_ours.
1620
1621 2014-07-14 Pedro Alves <palves@redhat.com>
1622
1623 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1624 catch_errors. Don't re-enable stdin or notify observers where,
1625 and rethrow error.
1626 (fetch_inferior_event_wrapper): Delete.
1627
1628 2014-07-14 Pedro Alves <palves@redhat.com>
1629
1630 PR gdb/17072
1631 * top.c: Include "inf-loop.h".
1632 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1633 field.
1634 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1635 was async before.
1636 (gdb_readline_wrapper): Store whether the target is async, and
1637 make it sync.
1638
1639 2014-07-14 Pedro Alves <palves@redhat.com>
1640
1641 PR gdb/17072
1642 * top.c (gdb_readline_wrapper_line): Tweak comment.
1643 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1644 the input handler callback.
1645
1646 2014-07-14 Pedro Alves <palves@redhat.com>
1647
1648 PR gdb/17072
1649 * main.c: Include event-top.h.
1650 (handle_command_errors): New function.
1651 (catch_command_errors, catch_command_errors_const): Use it.
1652
1653 2014-07-14 Pedro Alves <palves@redhat.com>
1654
1655 * exceptions.c (catch_command_errors, catch_command_errors_const):
1656 Moved to main.c.
1657 * exceptions.h (catch_command_errors_ftype)
1658 (catch_command_errors_const_ftype): Moved to main.c.
1659 (catch_command_errors, catch_command_errors_const): Delete
1660 declarations.
1661 * main.c (catch_command_errors_ftype)
1662 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1663 (catch_command_errors, catch_command_errors_const)): Moved here
1664 from exceptions.c and make static.
1665
1666 2014-07-14 Pedro Alves <palves@redhat.com>
1667
1668 * exceptions.c (print_any_exception): Delete.
1669 (catch_exceptions_with_msg): Use exception_print instead of
1670 print_any_exception.
1671 (catch_errors): Use exception_fprintf instead of
1672 print_any_exception.
1673 (catch_command_errors, catch_command_errors_const): Use
1674 exception_print instead of print_any_exception.
1675
1676 2014-07-14 Pedro Alves <palves@redhat.com>
1677
1678 * infcall.c (run_inferior_call): Set 'sync_execution' while
1679 running the inferior call.
1680
1681 2014-07-14 Pedro Alves <palves@redhat.com>
1682
1683 * value.c (value_contents_equal): Delete function.
1684 * value.h (value_contents_equal): Delete declaration.
1685
1686 2014-07-14 Tom Tromey <tromey@redhat.com>
1687
1688 PR exp/17106:
1689 * gdbtypes.c (is_dynamic_type_internal): New function, from
1690 is_dynamic_type.
1691 (is_dynamic_type): Rewrite.
1692 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1693 (resolve_dynamic_struct): Likewise.
1694 (resolve_dynamic_type_internal): New function, from
1695 resolve_dynamic_type.
1696 (resolve_dynamic_type): Rewrite.
1697
1698 2014-07-14 Tom Tromey <tromey@redhat.com>
1699
1700 * target.c (target_require_runnable): Also check record_stratum.
1701 Update comment.
1702
1703 2014-07-11 Yao Qi <yao@codesourcery.com>
1704
1705 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1706 thumb_instruction_restores_sp return true.
1707
1708 2014-07-11 Yao Qi <yao@codesourcery.com>
1709
1710 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1711 (thumb_in_function_epilogue_p): Call
1712 thumb_instruction_restores_sp.
1713
1714 2014-07-11 Yao Qi <yao@codesourcery.com>
1715
1716 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1717 'add sp, #imm'.
1718 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1719
1720 2014-07-11 Gary Benson <gbenson@redhat.com>
1721
1722 * amd64-linux-nat.c (gdbcore.h): Remove include.
1723 (regset.h): Likewise.
1724 (nat/linux-btrace.h): Likewise.
1725 (btrace.h): Likewise.
1726 (gdb_assert.h): Likewise.
1727 (string.h): Likewise.
1728 (sys/uio.h): Likewise.
1729 (sys/debugreg.h): Likewise.
1730 (sys/syscall.h): Likewise.
1731 (sys/procfs.h): Likewise.
1732 (sys/user.h): Likewise.
1733 (asm/ptrace.h): Likewise.
1734 (i386-nat.h): Likewise.
1735 * i386-linux-nat.c (i386-nat.h): Likewise.
1736 (regset.h): Likewise.
1737 (target.h): Likewise.
1738 (linux-nat.h): Likewise.
1739 (nat/linux-btrace.h): Likewise.
1740 (btrace.h): Likewise.
1741 (gdb_assert.h): Likewise.
1742 (string.h): Likewise.
1743 (sys/uio.h): Likewise.
1744 (sys/user.h): Likewise.
1745 (sys/procfs.h): Likewise.
1746 (sys/reg.h): Likewise.
1747 (sys/debugreg.h): Likewise.
1748 (ORIG_EAX): Remove definition.
1749
1750 2014-07-11 Gary Benson <gbenson@redhat.com>
1751
1752 * i386-linux-nat.h: New file.
1753 * x86-linux-nat.h: Likewise.
1754 * x86-linux-nat.c: Likewise.
1755 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1756 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1757 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1758 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1759 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1760 (PTRACE_SETREGSET): Likewise.
1761 (arch_lwp_info): Now in x86-linux-nat.c.
1762 (have_ptrace_getregset): Now in x86-linux-nat.h.
1763 (x86_linux_dr_get): Now in x86-linux-nat.c.
1764 (x86_linux_dr_set): Likewise.
1765 (x86_linux_dr_get_addr): Likewise.
1766 (x86_linux_dr_get_control): Likewise.
1767 (x86_linux_dr_get_status): Likewise.
1768 (update_debug_registers_callback): Likewise.
1769 (x86_linux_dr_set_control): Likewise.
1770 (x86_linux_dr_set_addr): Likewise.
1771 (x86_linux_prepare_to_resume): Likewise.
1772 (x86_linux_new_thread): Likewise.
1773 (x86_linux_new_fork): Likewise.
1774 (x86_linux_get_thread_area): Likewise.
1775 (super_post_startup_inferior): Likewise.
1776 (x86_linux_child_post_startup_inferior): Likewise.
1777 (AMD64_LINUX_USER64_CS): Likewise.
1778 (AMD64_LINUX_X32_DS): Likewise.
1779 (x86_linux_read_description): Likewise.
1780 (x86_linux_enable_btrace): Likewise.
1781 (x86_linux_disable_btrace): Likewise.
1782 (x86_linux_teardown_btrace): Likewise.
1783 (x86_linux_read_btrace): Likewise.
1784 (x86_linux_create_target): Likewise.
1785 (x86_linux_add_target): Likewise.
1786 * i386-linux-nat.c (x86-linux-nat.h): New include.
1787 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1788 (PTRACE_SETREGSET): Likewise.
1789 (arch_lwp_info): Now in x86-linux-nat.c.
1790 (have_ptrace_getregset): Now in x86-linux-nat.h.
1791 (x86_linux_dr_get): Now in x86-linux-nat.c.
1792 (x86_linux_dr_set): Likewise.
1793 (x86_linux_dr_get_addr): Likewise.
1794 (x86_linux_dr_get_control): Likewise.
1795 (x86_linux_dr_get_status): Likewise.
1796 (update_debug_registers_callback): Likewise.
1797 (x86_linux_dr_set_control): Likewise.
1798 (x86_linux_dr_set_addr): Likewise.
1799 (x86_linux_prepare_to_resume): Likewise.
1800 (x86_linux_new_thread): Likewise.
1801 (x86_linux_new_fork): Likewise.
1802 (x86_linux_get_thread_area): Likewise.
1803 (super_post_startup_inferior): Likewise.
1804 (x86_linux_child_post_startup_inferior): Likewise.
1805 (AMD64_LINUX_USER64_CS): Likewise.
1806 (AMD64_LINUX_X32_DS): Likewise.
1807 (x86_linux_read_description): Likewise.
1808 (x86_linux_enable_btrace): Likewise.
1809 (x86_linux_disable_btrace): Likewise.
1810 (x86_linux_teardown_btrace): Likewise.
1811 (x86_linux_read_btrace): Likewise.
1812 (x86_linux_create_target): Likewise.
1813 (x86_linux_add_target): Likewise.
1814
1815 2014-07-11 Gary Benson <gbenson@redhat.com>
1816
1817 * amd64-linux-nat.c: Comment and whitespace changes.
1818 * i386-linux-nat.c: Comment and whitespace changes.
1819
1820 2014-07-11 Gary Benson <gbenson@redhat.com>
1821
1822 * amd64-linux-nat.c (x86_linux_create_target): New function.
1823 (x86_linux_add_target): Likewise.
1824 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1825 * i386-linux-nat.c (x86_linux_create_target): New function.
1826 (x86_linux_add_target): Likewise.
1827 (_initialize_i386_linux_nat): Delegate to the above new functions.
1828
1829 2014-07-11 Gary Benson <gbenson@redhat.com>
1830
1831 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1832 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1833 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1834 (ps_get_thread_area): Delegate to the above.
1835
1836 2014-07-11 Gary Benson <gbenson@redhat.com>
1837
1838 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1839 x86_linux_read_description. All uses updated. amd64-specific
1840 code conditionalized. Conditionalized i386-specific code added.
1841 Redundant cast removed.
1842 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1843 x86_linux_read_description. All uses updated. i386-specific
1844 code conditionalized. Conditionalized amd64-specific code added.
1845 One sizeof replaced with the actual type it is describing.
1846
1847 2014-07-11 Gary Benson <gbenson@redhat.com>
1848
1849 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1850 x86_linux_dr_get. All uses updated.
1851 (amd64_linux_dr_set): Renamed to
1852 x86_linux_dr_set. All uses updated.
1853 (amd64_linux_dr_get_addr): Renamed to
1854 x86_linux_dr_get_addr. All uses updated.
1855 (amd64_linux_dr_get_control): Renamed to
1856 x86_linux_dr_get_control. All uses updated.
1857 (amd64_linux_dr_get_status): Renamed to
1858 x86_linux_dr_get_status. All uses updated.
1859 (amd64_linux_dr_set_control): Renamed to
1860 x86_linux_dr_set_control. All uses updated.
1861 (amd64_linux_dr_set_addr): Renamed to
1862 x86_linux_dr_set_addr. All uses updated.
1863 (amd64_linux_prepare_to_resume): Renamed to
1864 x86_linux_prepare_to_resume. All uses updated.
1865 (amd64_linux_new_thread): Renamed to
1866 x86_linux_new_thread. All uses updated.
1867 (amd64_linux_new_fork): Renamed to
1868 x86_linux_new_fork. All uses updated.
1869 (amd64_linux_child_post_startup_inferior): Renamed to
1870 x86_linux_child_post_startup_inferior. All uses updated.
1871 (amd64_linux_enable_btrace): Renamed to
1872 x86_linux_enable_btrace. All uses updated.
1873 (amd64_linux_disable_btrace): Renamed to
1874 x86_linux_disable_btrace. All uses updated.
1875 (amd64_linux_teardown_btrace): Renamed to
1876 x86_linux_teardown_btrace. All uses updated.
1877 (amd64_linux_read_btrace): Renamed to
1878 x86_linux_read_btrace. All uses updated.
1879 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1880 x86_linux_dr_get. All uses updated.
1881 (i386_linux_dr_set): Renamed to
1882 x86_linux_dr_set. All uses updated.
1883 (i386_linux_dr_get_addr): Renamed to
1884 x86_linux_dr_get_addr. All uses updated.
1885 (i386_linux_dr_get_control): Renamed to
1886 x86_linux_dr_get_control. All uses updated.
1887 (i386_linux_dr_get_status): Renamed to
1888 x86_linux_dr_get_status. All uses updated.
1889 (i386_linux_dr_set_control): Renamed to
1890 x86_linux_dr_set_control. All uses updated.
1891 (i386_linux_dr_set_addr): Renamed to
1892 x86_linux_dr_set_addr. All uses updated.
1893 (i386_linux_prepare_to_resume): Renamed to
1894 x86_linux_prepare_to_resume. All uses updated.
1895 (i386_linux_new_thread): Renamed to
1896 x86_linux_new_thread. All uses updated.
1897 (i386_linux_new_fork): Renamed to
1898 x86_linux_new_fork. All uses updated.
1899 (i386_linux_child_post_startup_inferior): Renamed to
1900 x86_linux_child_post_startup_inferior. All uses updated.
1901 (i386_linux_enable_btrace): Renamed to
1902 x86_linux_enable_btrace. All uses updated.
1903 (i386_linux_disable_btrace): Renamed to
1904 x86_linux_disable_btrace. All uses updated.
1905 (i386_linux_teardown_btrace): Renamed to
1906 x86_linux_teardown_btrace. All uses updated.
1907 (i386_linux_read_btrace): Renamed to
1908 x86_linux_read_btrace. All uses updated.
1909
1910 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1911
1912 * remote.c (extended_remote_post_attach): New function.
1913 (init_extended_remote_ops): Install it as to_post_attach method.
1914
1915 2014-07-09 Pedro Alves <palves@redhat.com>
1916
1917 * infcmd.c (attach_command_post_wait): Don't call
1918 target_terminal_inferior here.
1919 (attach_command): Call it here instead.
1920
1921 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1924 field.
1925 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1926 from varobj.c, with additional checks.
1927 (c_varobj_ops): Fill in is_path_expr_parent field.
1928 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1929 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1930 field.
1931 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1932 ops method.
1933 (varobj_default_is_path_expr_parent): New function.
1934 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1935 (varobj_default_is_path_expr_parent): Declare new function.
1936
1937 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1938
1939 * infcmd.c (finish_backward): Turn internal error into normal error.
1940
1941 2014-07-07 Pedro Alves <palves@redhat.com>
1942
1943 PR gdb/17096
1944 * remote.c (async_handle_remote_sigint)
1945 (async_handle_remote_sigint_twice): Call
1946 gdb_call_async_signal_handler instead of
1947 mark_async_signal_handler.
1948
1949 2014-07-07 Tom Tromey <tromey@redhat.com>
1950
1951 * target-delegates.c: Rebuild.
1952 * target.c (target_info_record): Remove.
1953 * record.c (info_record_command): Unconditionally call
1954 to_info_record.
1955 * target.h (struct target_ops) <to_info_record>: Use
1956 TARGET_DEFAULT_IGNORE.
1957 (target_info_record): Remove.
1958
1959 2014-07-07 Tom Tromey <tromey@redhat.com>
1960
1961 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1962 TARGET_DEFAULT_NORETURN.
1963 * target.c (generic_tls_error): New function.
1964 (target_translate_tls_address): Don't search target stack.
1965 * target-delegates.c: Rebuild.
1966 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1967 stack.
1968 * linux-thread-db.c (thread_db_get_thread_local_address):
1969 Unconditionally call beneath target.
1970
1971 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1972
1973 * cli/cli-logging.c (pop_output_files): Assign targerr to
1974 gdb_stdtargerr.
1975
1976 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * MAINTAINERS (Write After Approval): Update my email address.
1979
1980 2014-07-02 Gary Benson <gbenson@redhat.com>
1981
1982 * proc-service.c (ps_xfer_memory): Update comment.
1983 (ps_pstop): Remove unused function.
1984 (ps_pcontinue): Likewise.
1985 (ps_lstop): Likewise.
1986 (ps_lcontinue): Likewise.
1987 (ps_lgetxregsize): Likewise.
1988 (ps_lgetxregs): Likewise.
1989 (ps_lsetxregs): Likewise.
1990 (ps_plog): Likewise.
1991 (ps_ptread): Likewise.
1992 (ps_ptwrite): Likewise.
1993
1994 2014-07-01 Mark Wielaard <mjw@redhat.com>
1995
1996 * dwarf2read.c (add_array_cv_type): New function.
1997 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1998 (read_tag_volatile_type): Likewise.
1999
2000 2014-07-01 Tom Tromey <tromey@redhat.com>
2001
2002 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2003 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2004 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2005 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2006 * command.h (cmd_cfunc_ftype): Move earlier.
2007 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2008 (add_com, add_info): Use cmd_cfunc_ftype.
2009
2010 2014-06-30 Tom Tromey <tromey@redhat.com>
2011
2012 * symtab.c (operator_chars): Make parameters and return type
2013 const.
2014 (file_matches): Make "files" const.
2015 (struct search_symbols_data) <files>: Now const.
2016 (search_symbols): Make "regexp" and "files" parameters const.
2017 Update.
2018 (symtab_symbol_info): Remove cast.
2019 (rbreak_command): Update.
2020 * symtab.h (search_symbols): Update.
2021
2022 2014-06-27 Yao Qi <yao@codesourcery.com>
2023
2024 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2025 Change parameter type to 'struct thread_info *'. Caller
2026 updated.
2027 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2028 Update declaration.
2029 * dummy-frame.c (struct dummy_frame_id): New.
2030 (dummy_frame_id_eq): New function.
2031 (struct dummy_frame) <id>: Change its type to 'struct
2032 dummy_frame_id'.
2033 (dummy_frame_push): Add parameter ptid and save it in
2034 dummy_frame_id.
2035 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2036 inferior_ptid.
2037 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2038 to inferior_ptid.
2039 (lookup_dummy_frame): Change parameter type to 'struct
2040 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2041 instead of frame_id_eq.
2042 (dummy_frame_pop): Add parameter ptid. Callers updated.
2043 Update comments. Compose dummy_frame_id and pass it to
2044 lookup_dummy_frame.
2045 (dummy_frame_discard): Add parameter ptid.
2046 (dummy_frame_sniffer): Compose dummy_frame_id and call
2047 dummy_frame_id_eq instead of frame_id_eq.
2048 (fprint_dummy_frames): Print ptid.
2049 * dummy-frame.h: Remove comments.
2050 (dummy_frame_push): Add ptid in declaration.
2051 (dummy_frame_pop, dummy_frame_discard): Likewise.
2052
2053 2014-06-26 Tom Tromey <tromey@redhat.com>
2054
2055 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2056 * command.h (error_no_arg): Update.
2057
2058 2014-06-26 Tom Tromey <tromey@redhat.com>
2059
2060 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2061 (do_show_command): Make "arg" const.
2062 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2063
2064 2014-06-26 Tom Tromey <tromey@redhat.com>
2065
2066 * record-full.c (record_full_get_bookmark): Make "args" const.
2067 (record_full_goto_bookmark): Make "raw_bookmark" const.
2068 * record.c (record_goto): New function.
2069 (cmd_record_goto): Use it. Now static.
2070 * record.h (record_goto): Declare.
2071 (cmd_record_goto): Remove declaration.
2072 * target-delegates.c: Rebuild.
2073 * target.h (struct target_ops) <to_get_bookmark,
2074 to_goto_bookmark>: Make parameter const.
2075
2076 2014-06-26 Tom Tromey <tromey@redhat.com>
2077
2078 * defs.h (generic_load): Update.
2079 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2080 * monitor.c (monitor_load): Make "args" const.
2081 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2082 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2083 const.
2084 (mips_load): Make "file" const.
2085 * remote-sim.c (gdbsim_load): Make "args" const.
2086 * remote.c (remote_load): Make "name" const.
2087 * symfile.c (generic_load): Make "args" const.
2088 * target-delegates.c: Rebuild.
2089 * target.c (target_load): Make "arg" const.
2090 (debug_to_load): Make "args" const.
2091 * target.h (struct target_ops) <to_load>: Make parameter const.
2092 (target_load): Update.
2093
2094 2014-06-26 Tom Tromey <tromey@redhat.com>
2095
2096 PR symtab/16902:
2097 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2098 (dwarf2_physname, read_partial_die)
2099 (guess_partial_die_structure_name, fixup_partial_die)
2100 (guess_full_die_structure_name, anonymous_struct_prefix)
2101 (dwarf2_name): Use per-BFD obstack.
2102
2103 2014-06-26 Yao Qi <yao@codesourcery.com>
2104
2105 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2106 dummyframe and this_id into inner block below.
2107
2108 2014-06-26 Yao Qi <yao@codesourcery.com>
2109
2110 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2111 with "signal_pass[0]" in the initialization of signal_pass.
2112
2113 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2114
2115 * record-btrace.c (record_btrace_generating_corefile)
2116 (record_btrace_prepare_to_generate_core)
2117 (record_btrace_done_generating_core): New.
2118 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2119 (record_btrace_store_registers, record_btrace_prepare_to_store):
2120 Forward request when generating a core file.
2121 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2122 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2123 to_done_generating_core.
2124
2125 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2126
2127 * target.h (target_ops) <to_prepare_to_generate_core>
2128 <to_done_generating_core>: New.
2129 (target_prepare_to_generate_core, target_done_generating_core): New.
2130 * target.c (target_prepare_to_generate_core)
2131 (target_done_generating_core): New.
2132 * target-delegates.c: Regenerate.
2133 * gcore.c: (write_gcore_file): Rename to ...
2134 (write_gcore_file_1): ...this.
2135 (write_gcore_file): Call target_prepare_to_generate_core
2136 and target_done_generating_core.
2137
2138 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2139
2140 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2141 * gcore.c (write_gcore_file): Free memory returned from
2142 make_corefile_notes.
2143 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2144 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2145
2146 2014-06-24 Yao Qi <yao@codesourcery.com>
2147
2148 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2149 (arm_linux_init_abi): Set skip_trampoline_code with
2150 gdbarch_skip_trampoline_code instead of
2151 find_solib_trampoline_target.
2152
2153 2014-06-24 Yao Qi <yao@codesourcery.com>
2154
2155 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2156 arm_skip_bx_reg returns non-zero.
2157
2158 2014-06-24 Yao Qi <yao@codesourcery.com>
2159
2160 * arm-tdep.c (arm_skip_bx_reg): New function.
2161 (arm_skip_stub): Call arm_skip_bx_reg.
2162
2163 2014-06-23 Don Breazeal <donb@codesourcery.com>
2164
2165 * MAINTAINERS: Add myself as write-after-approval maintainer.
2166
2167 2014-06-23 Pedro Alves <palves@redhat.com>
2168
2169 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2170 DR_CONTROL before setting DR0..DR3.
2171 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2172 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2173 bits of DR_CONTROL related to the debug register slot being
2174 disabled. If all slots are vacant, clear local slowdown as well,
2175 and assert DR_CONTROL is 0.
2176
2177 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2178
2179 * python/lib/gdb/command/xmethods.py
2180 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2181 current progspace only if the string "progspace" matches LOCUS_RE.
2182
2183 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2184
2185 Fix --with-system-readline with readline-6.3 patch 5.
2186 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2187 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2188 types.
2189
2190 2014-06-20 Tom Tromey <tromey@redhat.com>
2191
2192 * dwarf2read.c (dw2_get_real_path): Use correct type in
2193 OBSTACK_CALLOC.
2194 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2195
2196 2014-06-20 Gary Benson <gbenson@redhat.com>
2197
2198 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2199 * common/glibc_thread_db.h: Likewise.
2200 * common/i386-cpuid.h: Likewise.
2201 * common/i386-gcc-cpuid.h: Likewise.
2202 * common/linux-btrace.h: Likewise.
2203 * common/linux-osdata.h: Likewise.
2204 * common/linux-procfs.h: Likewise.
2205 * common/linux-ptrace.h: Likewise.
2206 * common/mips-linux-watch.h: Likewise.
2207 * common/linux-btrace.c: Moved to nat.
2208 * common/linux-osdata.c: Likewise.
2209 * common/linux-procfs.c: Likewise.
2210 * common/linux-ptrace.c: Likewise.
2211 * common/mips-linux-watch.c: Likewise.
2212 * nat/gdb_thread_db.h: Moved from common.
2213 * nat/glibc_thread_db.h: Likewise.
2214 * nat/i386-cpuid.h: Likewise.
2215 * nat/i386-gcc-cpuid.h: Likewise.
2216 * nat/linux-btrace.c: Likewise.
2217 * nat/linux-btrace.h: Likewise.
2218 * nat/linux-osdata.c: Likewise.
2219 * nat/linux-osdata.h: Likewise.
2220 * nat/linux-procfs.c: Likewise.
2221 * nat/linux-procfs.h: Likewise.
2222 * nat/linux-ptrace.c: Likewise.
2223 * nat/linux-ptrace.h: Likewise.
2224 * nat/mips-linux-watch.c: Likewise.
2225 * nat/mips-linux-watch.h: Likewise.
2226 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2227 (object file files): Reordered.
2228 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2229 of glibc_thread_db.h.
2230
2231 2014-06-20 Gary Benson <gbenson@redhat.com>
2232
2233 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2234 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2235 (i386_dr_low): Likewise.
2236 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2237 (i386_dr_low_set_addr): Likewise.
2238 (i386_dr_low_get_addr): Likewise.
2239 (i386_dr_low_can_set_control): Likewise.
2240 (i386_dr_low_set_control): Likewise.
2241 (i386_dr_low_get_control): Likewise.
2242 (i386_dr_low_get_status): Likewise.
2243 (i386_get_debug_register_length): Likewise.
2244 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2245 (i386_dr_low): Likewise.
2246 * nat/i386-dregs.c (i386-low.h): Remove include.
2247 (i386-nat.h): Likewise.
2248 (nat/i386-dregs.h): New include.
2249 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2250 (i386_dr_low_set_addr): Likewise.
2251 (i386_dr_low_get_addr): Likewise.
2252 (i386_dr_low_can_set_control): Likewise.
2253 (i386_dr_low_set_control): Likewise.
2254 (i386_dr_low_get_control): Likewise.
2255 (i386_dr_low_get_status): Likewise.
2256 (i386_get_debug_register_length): Likewise.
2257 (debug_hw_points): Likewise.
2258
2259 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2260
2261 * Makefile.in (SFILES): Add d-exp.y.
2262 (YYFILES): Add d-exp.c.
2263 (YYOBJ): Add d-exp.o.
2264 (local-maintainer-clean): Delete d-exp.c.
2265 * d-exp.y: New file.
2266 * d-lang.h (d_parse): New declaration.
2267 (d_error): New declaration.
2268 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2269 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2270 PREC_ORDER operators.
2271 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2272
2273 2014-06-19 Yao Qi <yao@codesourcery.com>
2274
2275 * gdbthread.h (any_running): Remove the declaration.
2276 * thread.c (any_running): Remove.
2277
2278 2014-06-19 Yao Qi <yao@codesourcery.com>
2279
2280 * gdbthread.h (struct thread_info) <state>: Change its type to
2281 'enum thread_state'. Update comments.
2282
2283 2014-06-19 Pedro Alves <palves@redhat.com>
2284
2285 * gdbthread.h (ALL_THREADS): Delete.
2286 (ALL_NON_EXITED_THREADS): New macro.
2287 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2288 instead of ALL_THREADS.
2289 * infrun.c (find_thread_needs_step_over)
2290 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2291 instead of ALL_THREADS.
2292 * record-btrace.c (record_btrace_open)
2293 (record_btrace_stop_recording, record_btrace_close)
2294 (record_btrace_is_replaying, record_btrace_resume)
2295 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2296 * remote.c (append_pending_thread_resumptions): Likewise.
2297 * thread.c (thread_apply_all_command): Likewise.
2298
2299 2014-06-19 Gary Benson <gbenson@redhat.com>
2300
2301 * i386-nat.c (i386_stopped_by_watchpoint):
2302 Use i386_dr_stopped_by_watchpoint.
2303 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2304 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2305
2306 2014-06-19 Gary Benson <gbenson@redhat.com>
2307
2308 * nat/i386-dregs.c: New file.
2309 * Makefile.in (i386-dregs.o): New rule.
2310 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2311 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2312 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2313 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2314 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2315 * config/i386/go32.mh (NATDEPFILES): Likewise.
2316 * config/i386/linux.mh (NATDEPFILES): Likewise.
2317 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2318 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2319 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2320 * i386-nat.h (debug_hw_points): New declaration.
2321 * i386-nat.c (breakpoint.h): Remove include.
2322 (command.h): Likewise.
2323 (target.h): Likewise.
2324 (gdb_assert.h): Likewise.
2325 (debug_hw_points): Made nonstatic.
2326 (debug_printf): Now in i386-dregs.c.
2327 (TARGET_HAS_DR_LEN_8): Likewise.
2328 (DR_CONTROL_SHIFT): Likewise.
2329 (DR_CONTROL_SIZE): Likewise.
2330 (DR_RW_EXECUTE): Likewise.
2331 (DR_RW_WRITE): Likewise.
2332 (DR_RW_READ): Likewise.
2333 (DR_RW_IORW): Likewise.
2334 (DR_LEN_1): Likewise.
2335 (DR_LEN_2): Likewise.
2336 (DR_LEN_4): Likewise.
2337 (DR_LEN_8): Likewise.
2338 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2339 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2340 (DR_ENABLE_SIZE): Likewise.
2341 (DR_LOCAL_SLOWDOWN): Likewise.
2342 (DR_GLOBAL_SLOWDOWN): Likewise.
2343 (DR_CONTROL_RESERVED): Likewise.
2344 (I386_DR_CONTROL_MASK): Likewise.
2345 (I386_DR_VACANT): Likewise.
2346 (I386_DR_LOCAL_ENABLE): Likewise.
2347 (I386_DR_GLOBAL_ENABLE): Likewise.
2348 (I386_DR_DISABLE): Likewise.
2349 (I386_DR_SET_RW_LEN): Likewise.
2350 (I386_DR_GET_RW_LEN): Likewise.
2351 (I386_DR_WATCH_HIT): Likewise.
2352 (i386_wp_op_t): Likewise.
2353 (i386_show_dr): Likewise.
2354 (i386_length_and_rw_bits): Likewise.
2355 (i386_insert_aligned_watchpoint): Likewise.
2356 (i386_remove_aligned_watchpoint): Likewise.
2357 (i386_handle_nonaligned_watchpoint): Likewise.
2358 (i386_update_inferior_debug_regs): Likewise.
2359 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2360 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2361 (i386_region_ok_for_watchpoint):
2362 Use i386_dr_region_ok_for_watchpoint.
2363 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2364
2365 2014-06-19 Gary Benson <gbenson@redhat.com>
2366
2367 * i386-nat.c (i386_insert_hw_breakpoint): Use
2368 i386_insert_watchpoint.
2369 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2370
2371 2014-06-19 Gary Benson <gbenson@redhat.com>
2372
2373 * i386-nat.c (i386_dr_show): Renamed to
2374 i386_show_dr and made static. All uses updated.
2375 (i386_dr_length_and_rw_bits): Renamed to
2376 i386_length_and_rw_bits and made static.
2377 All uses updated.
2378 (i386_dr_insert_aligned_watchpoint): Renamed to
2379 i386_insert_aligned_watchpoint and made static.
2380 All uses updated.
2381 (i386_dr_remove_aligned_watchpoint): Renamed to
2382 i386_remove_aligned_watchpoint and made static.
2383 All uses updated.
2384 (i386_dr_update_inferior_debug_regs): Renamed to
2385 i386_update_inferior_debug_regs and made static.
2386 All uses updated.
2387 * nat/i386-dregs.h (i386_dr_show): Removed.
2388 (i386_dr_length_and_rw_bits): Likewise.
2389 (i386_dr_insert_aligned_watchpoint): Likewise.
2390 (i386_dr_remove_aligned_watchpoint): Likewise.
2391 (i386_dr_update_inferior_debug_regs): Likewise.
2392
2393 2014-06-19 Gary Benson <gbenson@redhat.com>
2394
2395 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2396 * configure: Regenerate.
2397 * config.in: Likewise.
2398 * main.c (signal.h): New include.
2399 (setup_alternate_signal_stack): New function.
2400 (captured_main): Call the above.
2401 * cp-support.c (signal.h): New include.
2402 (catch_demangler_crashes): New flag.
2403 (SIGJMP_BUF): New define.
2404 (SIGSETJMP): Likewise.
2405 (SIGLONGJMP): Likewise.
2406 (gdb_demangle_jmp_buf): New static global.
2407 (gdb_demangle_attempt_core_dump): Likewise.
2408 (gdb_demangle_signal_handler): New function.
2409 (gdb_demangle): If catch_demangler_crashes is set, install the
2410 above signal handler before calling bfd_demangle, and restore
2411 the original signal handler afterwards. Display the offending
2412 symbol and call demangler_warning the first time a segmentation
2413 fault is caught.
2414 (_initialize_cp_support): New maint set/show command.
2415
2416 2014-06-19 Gary Benson <gbenson@redhat.com>
2417
2418 * utils.h (resource_limit_kind): New enum.
2419 (can_dump_core): New declaration.
2420 (warn_cant_dump_core): Likewise.
2421 (dump_core): Likewise.
2422 * utils.c (dump_core): Made nonstatic. Added new
2423 parameter "limit_kind".
2424 (can_dump_core): Made nonstatic. Moved printing code to...
2425 (warn_cant_dump_core): New function.
2426 (can_dump_core_warn): Likewise.
2427 (internal_vproblem): Replace calls to can_dump_core with
2428 calls to can_dump_core_warn. Supply new argument to each.
2429
2430 2014-06-19 Gary Benson <gbenson@redhat.com>
2431
2432 * utils.h (demangler_vwarning): New declaration.
2433 (demangler_warning): Likewise.
2434 * utils.c (struct internal_problem)
2435 <user_settable_should_quit>: New field.
2436 <user_settable_should_dump_core>: Likewise
2437 (internal_error_problem): Add values for above new fields.
2438 (internal_warning_problem): Likewise.
2439 (demangler_warning_problem): New static global.
2440 (demangler_vwarning): New function.
2441 (demangler_warning): Likewise.
2442 (add_internal_problem_command): Selectively add commands.
2443 (_initialize_utils): New internal problem command.
2444 * maint.c (maintenance_demangler_warning): New function.
2445 (_initialize_maint_cmds): New command.
2446
2447 2014-06-18 Tom Tromey <tromey@redhat.com>
2448
2449 * f-valprint.c (info_common_command_for_block): Update.
2450 * symtab.h (struct general_symbol_info) <common_block>: Now
2451 const.
2452
2453 2014-06-18 Tom Tromey <tromey@redhat.com>
2454
2455 * symtab.h (struct symtab) <blockvector>: Now const.
2456 * ada-lang.c (ada_add_global_exceptions): Update.
2457 * buildsym.c (augment_type_symtab): Update.
2458 * dwarf2read.c (dw2_lookup_symbol): Update.
2459 * jit.c (finalize_symtab): Update.
2460 * jv-lang.c (add_class_symtab_symbol): Update.
2461 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2462 Update.
2463 * objfiles.c (objfile_relocate1): Update.
2464 * psymtab.c (lookup_symbol_aux_psymtabs)
2465 (maintenance_check_psymtabs): Update.
2466 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2467 Update.
2468 * spu-tdep.c (spu_catch_start): Update.
2469 * symmisc.c (dump_symtab_1): Update.
2470 * symtab.c (lookup_global_symbol_from_objfile)
2471 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2472 (basic_lookup_transparent_type_quick)
2473 (basic_lookup_transparent_type, find_pc_sect_symtab)
2474 (find_pc_sect_line, search_symbols): Update.
2475 * block.c (find_block_in_blockvector): Make "bl" const.
2476 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2477 const.
2478 (blockvector_contains_pc): Make "bv" const.
2479 (block_for_pc_sect): Update.
2480 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2481 (blockvector_contains_pc): Update.
2482 * breakpoint.c (resolve_sal_pc): Update.
2483 * inline-frame.c (block_starting_point_at): Update.
2484
2485 2014-06-18 Tom Tromey <tromey@redhat.com>
2486
2487 * completer.c (complete_line): Make "line_buffer" const.
2488 * completer.h (complete_line): Update.
2489
2490 2014-06-18 Tom Tromey <tromey@redhat.com>
2491
2492 * symtab.c (add_macro_name): Remove unneeded cast.
2493
2494 2014-06-18 Tom Tromey <tromey@redhat.com>
2495
2496 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2497 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2498
2499 2014-06-18 Tom Tromey <tromey@redhat.com>
2500
2501 * probe.c (info_probes_for_ops): Make "arg" const.
2502 * probe.h (info_probes_for_ops): Update.
2503
2504 2014-06-18 Tom Tromey <tromey@redhat.com>
2505
2506 * varobj.c (varobj_create): Update.
2507 * valops.c (value_of_this): Update.
2508 * tracepoint.c (add_local_symbols, scope_info): Update.
2509 * symtab.h (struct general_symbol_info) <block>: Now const.
2510 * symtab.c (skip_prologue_sal)
2511 (default_make_symbol_completion_list_break_on)
2512 (skip_prologue_using_sal): Update.
2513 * stack.h (iterate_over_block_locals)
2514 (iterate_over_block_local_vars): Update.
2515 * stack.c (print_frame_args): Update.
2516 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2517 parameter const.
2518 (get_selected_block): Make return type const.
2519 * python/py-frame.c (frapy_block): Update.
2520 * python/py-block.c (gdbpy_block_for_pc): Update.
2521 * p-exp.y (%union) <bval>: Now const.
2522 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2523 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2524 * m2-exp.y (%union) <bval>: Now const.
2525 * linespec.c (get_current_search_block): Make return type const.
2526 (create_sals_line_offset, find_label_symbols): Update.
2527 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2528 Update.
2529 (block_starting_point_at): Make "block" const.
2530 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2531 (check_exception_resume): Update.
2532 * guile/scm-frame.c (gdbscm_frame_block): Update.
2533 * guile/scm-block.c (gdbscm_lookup_block): Update.
2534 * frame.h (get_frame_block): Update.
2535 (get_selected_block): Make return type const.
2536 * frame.c (frame_id_inner): Update.
2537 * f-valprint.c (info_common_command_for_block)
2538 (info_common_command): Update.
2539 * dwarf2loc.c (dwarf2_find_location_expression)
2540 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2541 (locexpr_describe_location_piece): Update.
2542 * c-exp.y (%union) <bval>: Now const.
2543 * breakpoint.c (resolve_sal_pc): Update.
2544 * blockframe.c (get_frame_block):Make return type const.
2545 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2546 (block_innermost_frame): Update.
2547 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2548 (block_for_pc, block_for_pc_sect): Update.
2549 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2550 'pblock' const.
2551 (block_for_pc_sect, block_for_pc): Make return type const.
2552 * ax-gdb.c (gen_expr): Update.
2553 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2554 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2555 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2556 (ada_read_var_value): Update.
2557 * ada-exp.y (struct name_info) <block>: Now const.
2558 (%union): Likewise.
2559 (block_lookup): Constify.
2560
2561 2014-06-18 Gary Benson <gbenson@redhat.com>
2562
2563 * nat/i386-dregs.h: New file.
2564 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2565 * i386-nat.h (i386-dregs.h): New include.
2566 (DR_FIRSTADDR): Now in i386-dregs.h.
2567 (DR_LASTADDR): Likewise.
2568 (DR_NADDR): Likewise.
2569 (DR_STATUS): Likewise.
2570 (DR_CONTROL): Likewise.
2571 (i386_debug_reg_state): Likewise.
2572 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2573
2574 2014-06-18 Don Breazeal <donb@codesourcery.com>
2575
2576 * breakpoint.c (set_longjmp_breakpoint): Call
2577 momentary_breakpoint_from_master with additional argument.
2578 (set_longjmp_breakpoint_for_call_dummy): Call
2579 momentary_breakpoint_from_master with additional argument.
2580 (set_std_terminate_breakpoint): Call
2581 momentary_breakpoint_from_master with additional argument.
2582 (momentary_breakpoint_from_master): Add argument to function
2583 definition and use it to initialize structure member flag.
2584 (clone_momentary_breakpoint): Call
2585 momentary_breakpoint_from_master with additional argument.
2586 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2587 member flags set in momentary_breakpoint_from_master.
2588
2589 2014-06-18 Gary Benson <gbenson@redhat.com>
2590
2591 * i386-nat.c (i386_show_dr): Renamed to
2592 i386_dr_show and made nonstatic. All uses updated.
2593 (i386_length_and_rw_bits): Renamed to
2594 i386_dr_length_and_rw_bits and made nonstatic.
2595 All uses updated.
2596 (i386_insert_aligned_watchpoint): Renamed to
2597 i386_dr_insert_aligned_watchpoint and made nonstatic.
2598 All uses updated.
2599 (i386_remove_aligned_watchpoint): Renamed to
2600 i386_dr_remove_aligned_watchpoint and made nonstatic.
2601 All uses updated.
2602 (i386_update_inferior_debug_regs): Renamed to
2603 i386_dr_update_inferior_debug_regs and made nonstatic.
2604 All uses updated.
2605
2606 2014-06-18 Gary Benson <gbenson@redhat.com>
2607
2608 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2609 (i386_dr_low_can_set_control): Likewise.
2610 (i386_dr_low_set_addr): Likewise.
2611 (i386_dr_low_set_control): Likewise.
2612 (i386_dr_low_get_addr): Likewise.
2613 (i386_dr_low_get_status): Likewise.
2614 (i386_dr_low_get_control): Likewise.
2615 (i386_insert_aligned_watchpoint): Use new macros.
2616 (i386_update_inferior_debug_regs): Likewise.
2617 (i386_stopped_data_address): Likewise.
2618
2619 2014-06-18 Gary Benson <gbenson@redhat.com>
2620
2621 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2622 New parameter. All uses updated.
2623
2624 2014-06-18 Gary Benson <gbenson@redhat.com>
2625
2626 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2627 All uses updated.
2628
2629 2014-06-18 Gary Benson <gbenson@redhat.com>
2630
2631 * i386-nat.c (debug_printf): New macro.
2632 (i386_get_debug_register_length): Likewise.
2633 (TARGET_HAS_DR_LEN_8): Use above macro.
2634 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2635 and printf_unfiltered. Use phex to format values.
2636
2637 2014-06-18 Gary Benson <gbenson@redhat.com>
2638
2639 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2640 Make const.
2641
2642 2014-06-18 Gary Benson <gbenson@redhat.com>
2643
2644 * i386-nat.c: Comment changes.
2645
2646 2014-06-18 Gary Benson <gbenson@redhat.com>
2647
2648 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2649
2650 2014-06-18 Gary Benson <gbenson@redhat.com>
2651
2652 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2653 (i386_insert_aligned_watchpoint): Likewise.
2654 (i386_remove_aligned_watchpoint): Likewise.
2655 (i386_handle_nonaligned_watchpoint): Likewise.
2656
2657 2014-06-18 Gary Benson <gbenson@redhat.com>
2658
2659 * i386-nat.c: Whitespace changes.
2660
2661 2014-06-17 Samuel Bronson <naesten@gmail.com>
2662
2663 * MAINTAINERS: Update Roland McGrath's email address.
2664 Thanks to Sergio Durigan Junior for pointing out that he left
2665 Red Hat a while ago, and giving me a current address.
2666
2667 2014-06-17 Tom Tromey <tromey@redhat.com>
2668
2669 * utils.h (savestring): Remove declaration.
2670
2671 2014-06-17 Tom Tromey <tromey@redhat.com>
2672
2673 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2674
2675 2014-06-16 Keith Seitz <keiths@redhat.com>
2676
2677 PR mi/15863
2678 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2679 to update the varobj if inferior_ptid is null_ptid.
2680
2681 2014-06-16 Tom Tromey <tromey@redhat.com>
2682
2683 * target.h (struct target_ops) <to_info_proc>: Make parameter
2684 const.
2685 (target_info_proc): Update.
2686 * target.c (target_info_proc): Make "args" const.
2687 * procfs.c (procfs_info_proc): Update.
2688 * linux-tdep.c (linux_info_proc): Update.
2689 (linux_core_info_proc_mappings): Make "args" const.
2690 (linux_core_info_proc): Update.
2691 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2692 * gdbarch.c: Rebuild.
2693 * gdbarch.h: Rebuild.
2694 * corelow.c (core_info_proc): Update.
2695
2696 2014-06-16 Tom Tromey <tromey@redhat.com>
2697
2698 * target.h (struct target_ops) <to_disconnect>: Make parameter
2699 const.
2700 (target_disconnect): Update.
2701 * target.c (target_disconnect): Make "args" const.
2702 * target-delegates.c: Rebuild.
2703 * remote.c (remote_disconnect): Update.
2704 * record.h (record_disconnect): Update.
2705 * record.c (record_disconnect): Update.
2706 * inf-child.c (inf_child_disconnect): Update.
2707
2708 2014-06-16 Tom Tromey <tromey@redhat.com>
2709
2710 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2711 * target.c (debug_to_rcmd, default_rcmd): Update.
2712 * target-delegates.c: Rebuild.
2713 * remote.c (remote_rcmd): Update.
2714 * monitor.c (monitor_rcmd): Update.
2715
2716 2014-06-16 Pedro Alves <palves@redhat.com>
2717
2718 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2719 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2720 have OBJF_SHARED set.
2721 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2722 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2723 instead of OBJF_USERLOADED.
2724 * objfiles.h (OBJF_SHARED): Update comment.
2725 (userloaded_objfile_contains_address_p): Rename to ...
2726 (shared_objfile_contains_address_p): ... this, and update
2727 comments.
2728 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2729 new objfile.
2730 (remove_symbol_file_command): Skip objfiles that don't have
2731 OBJF_SHARED set.
2732
2733 2014-06-16 Tom Tromey <tromey@redhat.com>
2734
2735 * minsyms.h (prim_record_minimal_symbol)
2736 (prim_record_minimal_symbol_and_info): Update comments.
2737
2738 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2739
2740 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2741 or --without-guile, according to how GDB was built.
2742
2743 2014-06-13 Tom Tromey <tromey@redhat.com>
2744
2745 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2746 to help_list.
2747 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2748 to help_list.
2749 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2750 help_list.
2751 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2752 help_list.Pass all_commands, not -1, to help_list.
2753 * cli/cli-dump.c (dump_command, append_command)
2754 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2755 (binary_dump_command, binary_append_command): Pass all_commands,
2756 not -1, to help_list.
2757 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2758 -1, to help_list.
2759 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2760 -1, to help_list.
2761 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2762 help_list.
2763 * top.c (set_history): Pass all_commands, not -1, to help_list.
2764 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2765 all_commands, not -1, to help_list.
2766 * symfile.c (overlay_command): Pass all_commands, not -1, to
2767 help_list.
2768 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2769 help_list.
2770 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2771 help_list.
2772 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2773 -1, to help_list.
2774 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2775 not -1, to help_list.
2776 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2777 not -1, to help_list.
2778 * maint.c (maintenance_command, maintenance_info_command)
2779 (maintenance_print_command, maintenance_set_cmd): Pass
2780 all_commands, not -1, to help_list.
2781 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2782 help_list.
2783 * language.c (set_check): Pass all_commands, not -1, to help_list.
2784 * infcmd.c (unset_command): Pass all_commands, not -1, to
2785 help_list.
2786 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2787 help_list.
2788 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2789 help_list.
2790 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2791 help_list.
2792 * breakpoint.c (save_command): Pass all_commands, not -1, to
2793 help_list.
2794 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2795 all_commands, not -1, to help_list.
2796
2797 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2798
2799 * regcache.c (struct register_to_invalidate): New structure.
2800 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2801 functions.
2802 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2803
2804 2014-06-12 Yao Qi <yao@codesourcery.com>
2805
2806 * varobj.c (varobj_get_num_children): Call
2807 varobj_is_dynamic_p.
2808 (varobj_list_children): Likewise.
2809 (varobj_update): Likewise. Update comments.
2810
2811 2014-06-12 Yao Qi <yao@codesourcery.com>
2812
2813 * varobj.c (varobj_pretty_printed_p): Rename to ...
2814 (varobj_is_dynamic_p): ... this. New function.
2815 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2816 (varobj_is_dynamic_p): Declare.
2817 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2818 (mi_print_value_p, varobj_update_one): Likewise.
2819
2820 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2821 Yao Qi <yao@codesourcery.com>
2822
2823 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2824 (varobj_get_iterator): Wrap up code for pretty-printer by
2825 "#if HAVE_PYTHON" and "#endif".
2826 (update_dynamic_varobj_children): Likewise.
2827
2828 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2829 Yao Qi <yao@codesourcery.com>
2830
2831 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2832 gdb_python_initialized is false. Move some code from varobj.c.
2833 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2834 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2835 (struct varobj_item): Moved to varobj-iter.h".
2836 (varobj_clear_saved_item): New function.
2837 (update_dynamic_varobj_children): Move python-related code to
2838 py-varobj.c.
2839 (free_variable): Call varobj_clear_saved_item and
2840 varobj_iter_delete.
2841
2842 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2843 Yao Qi <yao@codesourcery.com>
2844
2845 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2846 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2847 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2848 (py-varobj.o): New rule.
2849 * python/py-varobj.c: New file.
2850 * python/python-internal.h (py_varobj_get_iterator): Declare.
2851 * varobj-iter.h: New file.
2852 * varobj.c: Include "varobj-iter.h"
2853 (struct varobj) <child_iter>: Change its type from "PyObject *"
2854 to "struct varobj_iter *".
2855 <saved_item>: Likewise.
2856 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2857 [HAVE_PYTHON] (varobj_get_iterator): New function.
2858 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2859 python-specific code to python/py-varobj.c.
2860 (install_visualizer): Call varobj_iter_delete instead of
2861 Py_XDECREF.
2862 * varobj.h (varobj_ensure_python_env): Declare.
2863
2864 2014-06-12 Yao Qi <yao@codesourcery.com>
2865
2866 * varobj.c (struct varobj_item): New structure.
2867 (create_child_with_value): Update declaration.
2868 (varobj_add_child): Replace arguments 'name' and 'value' with
2869 'item'. All callers updated.
2870 (install_dynamic_child): Likewise.
2871 (update_dynamic_varobj_children): Likewise.
2872 (varobj_add_child): Likewise.
2873 (create_child_with_value): Likewise.
2874
2875 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2876
2877 * NEWS: Create a new section for the next release branch.
2878 Rename the section of the current branch, now that it has
2879 been cut.
2880
2881 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2882
2883 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2884 * version.in: Bump version to 7.8.50.DATE-cvs.
2885
2886 2014-06-11 Pedro Alves <palves@redhat.com>
2887
2888 PR remote/17028
2889 * ser-mingw.c (net_windows_socket_check_pending): New function.
2890 (net_windows_select_thread): Ignore spurious wakeups. Use
2891 net_windows_socket_check_pending.
2892 (net_windows_wait_handle): Check for pending events with
2893 ioctlsocket, through net_windows_socket_check_pending, instead of
2894 checking the socket's event.
2895
2896 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2897
2898 * python/python-internal.h (gdb_PyObject_GetAttrString)
2899 (gdb_PyObject_HasAttrString): New inline function definitions.
2900 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2901 char * of the second argument to PyObject_GetAttrString.
2902
2903 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2904
2905 * serial.c (serial_write): Fix index of character to be printed
2906 in call to serial_logchar when serial debug traces are enabled.
2907
2908 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2909
2910 * gdbtypes (resolve_dynamic_range): Add function description.
2911
2912 2014-06-09 Pedro Alves <palves@redhat.com>
2913
2914 * linux-nat.c (linux_child_follow_fork): Initialize status with
2915 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2916 inner block. Only pass the signal to PTRACE_DETACH if in pass
2917 state.
2918
2919 2014-06-09 Gary Benson <gbenson@redhat.com>
2920
2921 * common/signals.c (gdb_signal_from_host): Reorder to separate
2922 the always-available ANSI-standard signals from the signals that
2923 require checking.
2924 (do_gdb_signal_to_host): Likewise.
2925 * proc-events.c (signal_table): Likewise.
2926
2927 2014-06-08 Hui Zhu <hui@codesourcery.com>
2928
2929 * common/linux-ptrace.c (linux_disable_event_reporting): New
2930 function.
2931 * common/linux-ptrace.h (linux_disable_event_reporting): New
2932 declaration.
2933 * linux-nat.c (linux_child_follow_fork): Do a single step before
2934 detach.
2935
2936 2014-06-07 Keith Seitz <keiths@redhat.com>
2937
2938 Revert:
2939 PR c++/16253
2940 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2941 from symbol_matches_domain in symtab.c. All local callers
2942 of symbol_matches_domain updated.
2943 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2944 search STRUCT_DOMAIN.
2945 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2946 independently. standard_lookup will do that automatically.
2947 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2948 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2949 (cp_lookup_symbol_in_namespace): Likewise.
2950 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2951 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2952 may return a STRUCT_DOMAIN match.
2953 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2954 * cp-support.c: Include language.h.
2955 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2956 VAR_DOMAIN.
2957 * psymtab.c (match_partial_symbol): Compare the requested
2958 domain with the symbol's domain directly.
2959 (lookup_partial_symbol): Likewise.
2960 * symtab.c (lookup_symbol_in_language): Explain when/why
2961 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2962 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2963 appropriate languages.
2964 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2965 and moved to ada-lang.c
2966 (lookup_block_symbol): Explain that this function only returns
2967 symbol matching the requested DOMAIN.
2968 Compare the requested domain with the symbol's domain directly.
2969 (iterate_over_symbols): Compare the requested domain with the
2970 symbol's domain directly.
2971 * symtab.h (symbol_matches_domain): Remove.
2972
2973 2014-06-06 Doug Evans <xdje42@gmail.com>
2974
2975 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2976 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2977 (gdbscm_guile_version_is_at_least): Declare.
2978 (gdbscm_scm_string_to_int): Declare.
2979 * guile/guile.c (gdbscm_guile_major_version): New global.
2980 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2981 (guile_datadir): New static global.
2982 (gdbscm_guile_data_directory): New function.
2983 (initialize_scheme_side): Update.
2984 (misc_guile_functions): Add guile-data-directory.
2985 (initialize_gdb_module): Fetch guile version number.
2986 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2987 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2988 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2989 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2990 comments.
2991 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2992 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2993 * guile/scm-value.c (gdbscm_value_to_string): Only call
2994 scm_port_conversion_strategy if Guile version >= 2.0.6.
2995
2996 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2997
2998 * main.c (print_gdb_help): Add -q and --silent.
2999
3000 2014-06-06 Gary Benson <gbenson@redhat.com>
3001
3002 * common/signals.c: Remove preprocessor conditionals for
3003 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3004 SIGSEGV and SIGTERM.
3005 * proc-events.c: Likewise.
3006
3007 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3008
3009 * symfile.c (symfile_free_objfile): Remove restriction to
3010 OBJF_USERLOADED.
3011 * symfile-mem.c (symbol_file_add_from_memory): Call
3012 add_target_sections_of_objfile.
3013
3014 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3015
3016 * guile/scm-value.c (gdbscm_history_append_x): Use
3017 'vlscm_get_value_smob_arg_unsafe' instead of
3018 'vlscm_scm_to_value'.
3019
3020 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3021
3022 PR mi/15806
3023 * utils.c (printchar): Don't escape at all if quoter is NUL.
3024 Update function documentation to clarify effect of parameter
3025 QUOTER.
3026 * remote.c (escape_buffer): Pass '\\' as the quoter to
3027 fputstrn_unfiltered.
3028 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3029 generate the output.
3030 (mi_solib_unloaded): Same.
3031
3032 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3033
3034 * development.sh: Delete.
3035 * Makefile.in (config.status): Adjust dependency on development.sh.
3036 * configure.ac: Adjust development.sh source call.
3037 * configure: Regenerate.
3038
3039 2014-06-04 Doug Evans <xdje42@gmail.com>
3040
3041 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3042 is_scheme_bkpt, spec.
3043 (bpscm_make_breakpoint_smob): Initialize new members.
3044 (gdbscm_create_breakpoint_x): Split into two ...
3045 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3046 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3047 (scheme_function breakpoint_functions): Update.
3048 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3049 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3050 register-breakpoint!.
3051
3052 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3053
3054 PR server/17023
3055 * mem-break.c (z_type_supported): Return zero if
3056 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3057
3058 2014-06-04 Tom Tromey <tromey@redhat.com>
3059
3060 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3061 value_from_contents_and_address_unresolved.
3062 (ada_template_to_fixed_record_type_1): Likewise.
3063 (ada_which_variant_applies): Likewise.
3064 * value.h (value_from_contents_and_address_unresolved): Declare.
3065 * value.c (value_from_contents_and_address_unresolved): New
3066 function.
3067 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3068 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3069 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3070
3071 2014-06-04 Tom Tromey <tromey@redhat.com>
3072
3073 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3074
3075 2014-06-04 Tom Tromey <tromey@redhat.com>
3076
3077 * procfs.c (procfs_attach): Make "args" const.
3078 * windows-nat.c (windows_attach): Make "args" const.
3079 * nto-procfs.c (procfs_attach): Make "args" const.
3080 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3081 * go32-nat.c (go32_attach): Make "args" const.
3082 * gnu-nat.c (gnu_attach): Make "args" const.
3083 * darwin-nat.c (darwin_attach): Make "args" const.
3084 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3085 * linux-nat.c (linux_nat_attach): Make "args" const.
3086 * remote.c (extended_remote_attach_1, extended_remote_attach):
3087 Make "args" const.
3088 * target.h (struct target_ops) <to_attach>: Make "args" const.
3089 (find_default_attach): Likewise.
3090 * utils.c (parse_pid_to_attach): Make "args" const.
3091 * utils.h (parse_pid_to_attach): Update.
3092
3093 2014-06-04 Tom Tromey <tromey@redhat.com>
3094
3095 * target-delegates.c: Rebuild.
3096 * target.c (default_thread_address_space): New function.
3097 (target_thread_address_space): Simplify.
3098 * target.h (struct target_ops) <to_thread_address_space>: Add
3099 TARGET_DEFAULT_FUNC.
3100
3101 2014-06-04 Doug Evans <xdje42@gmail.com>
3102
3103 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3104
3105 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3106
3107 * record-btrace.c: Include event-loop.h and inf-loop.h.
3108 (record_btrace_resume_exec_dir)
3109 (record_btrace_async_inferior_event_handler)
3110 (record_btrace_handle_async_inferior_event): New.
3111 (record_btrace_open): Create async event handler.
3112 (record_btrace_close): Delete async event handler.
3113 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3114 Mark async event handler.
3115 (record_btrace_execution_direction): New.
3116 (init_record_btrace_ops): Initialize to_execution_direction.
3117
3118 2014-06-03 Doug Evans <xdje42@gmail.com>
3119
3120 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3121 (gdbscm_make_parameter): Ditto.
3122
3123 2014-06-03 Doug Evans <dje@google.com>
3124
3125 * exec.c (exec_close_1): Call clear_section_table instead of
3126 resize_section_table.
3127 (clear_section_table): New function.
3128 (resize_section_table): Make static. Rename arg num_added to
3129 adjustment.
3130 * exec.h (clear_section_table): Declare.
3131 (resize_section_table): Delete.
3132 * progspace.c (release_program_space): Call clear_section_table
3133 instead of resize_section_table.
3134
3135 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3136
3137 * NEWS (Python Scripting): Add entry about the new xmethods
3138 feature.
3139
3140 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3141
3142 * python/py-xmethods.c: New file.
3143 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3144 (objfpy_dealloc): XDECREF on the new xmethods field.
3145 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3146 field.
3147 (objfpy_get_xmethods): New function.
3148 (objfile_getset): New entry 'xmethods'.
3149 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3150 (pspy_dealloc): XDECREF on the new xmethods field.
3151 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3152 field.
3153 (pspy_get_xmethods): New function.
3154 (pspace_getset): New entry 'xmethods'.
3155 * python/python-internal.h: Add declarations for new functions.
3156 * python/python.c (_initialize_python): Invoke
3157 gdbpy_initialize_xmethods.
3158 * python/lib/gdb/__init__.py (xmethods): New
3159 attribute.
3160 * python/lib/gdb/xmethod.py: New file.
3161 * python/lib/gdb/command/xmethods.py: New file.
3162
3163 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3164
3165 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3166 best match method returned by find_overload_match is an xmethod.
3167 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3168 the best matching operator returned by find_overload_match is an
3169 xmethod.
3170 * valops.c: #include "extension.h".
3171 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3172 Return void. The list of matching source methods is returned in
3173 "fn_list" and a vector of matching debug method workers is
3174 returned in "xm_worker_vec". Update all callers.
3175 (value_find_oload_method_list): Likewise.
3176 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3177 non-NULL, then the index of the best matching method in this
3178 vector is returned. Update all callers.
3179 (find_overload_match): Include xmethods while performing overload
3180 resolution.
3181
3182 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3183
3184 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3185 * extension-priv.h (struct extension_language_ops): Add the
3186 xmethod interface.
3187 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3188 get_matching_xmethod_workers, get_xmethod_argtypes,
3189 invoke_xmethod, free_xmethod_worker,
3190 free_xmethod_worker_vec): New functions.
3191 * extension.h: #include "common/vec.h".
3192 New function declarations.
3193 (struct xmethod_worker): New struct.
3194 (VEC (xmethod_worker_ptr)): New vector type.
3195 (xmethod_worker_ptr): New typedef.
3196 (xmethod_worker_vec): Likewise.
3197 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3198 builtin_type.
3199 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3200 (struct builtin_type): New field "xmethod".
3201 * valarith.c (value_ptradd): Assert that the value argument is not
3202 lval_xcallable.
3203 * valops.c (value_must_coerce_to_target): Return 0 for
3204 lval_xcallable values.
3205 * value.c (struct value): New field XM_WORKER in the field
3206 LOCATION.
3207 (value_address, value_raw_address): Return 0 for lval_xcallable
3208 values.
3209 (set_value_address): Assert that the value is not an
3210 lval_xcallable.
3211 (value_free): Free the associated xmethod worker when freeing
3212 lval_xcallable values.
3213 (set_value_component_location): Assert that the WHOLE value is not
3214 lval_xcallable.
3215 (value_of_xmethod, call_xmethod): New functions.
3216 * value.h: Declare "struct xmethod_worker".
3217 Declare new functions value_of_xmethod, call_xmethod.
3218
3219 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3220 Pedro Alves <palves@redhat.com>
3221
3222 PR breakpoints/17000
3223 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3224 New function, extracted from software_breakpoint_inserted_here_p.
3225 (software_breakpoint_inserted_here_p): Replace factored out code
3226 by call to find_non_raw_software_breakpoint_inserted_here.
3227 (bp_target_info_copy_insertion_state): New function.
3228 (bkpt_insert_location): Handle the case of a single-step
3229 breakpoint already inserted at the same address.
3230 (bkpt_remove_location): Handle the case of a single-step
3231 breakpoint still inserted at the same address.
3232 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3233 breakpoint already inserted at the same address.
3234 (deprecated_remove_raw_breakpoint): Handle the case of a
3235 non-raw breakpoint still inserted at the same address.
3236 (find_single_step_breakpoint): New function, extracted from
3237 single_step_breakpoint_inserted_here_p.
3238 (find_single_step_breakpoint): New function,
3239 factored out from single_step_breakpoint_inserted_here_p.
3240 (single_step_breakpoint_inserted_here_p): Reimplement.
3241
3242 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3243
3244 Pushed by Joel Brobecker <brobecker@adacore.com>
3245 * source.c (show_substitute_path_command): Fix display of matching
3246 substitution rules.
3247
3248 2014-06-03 Gary Benson <gbenson@redhat.com>
3249
3250 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3251
3252 2014-06-02 Doug Evans <xdje42@gmail.com>
3253
3254 Add parameter support for Guile.
3255 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3256 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3257 (scm-param.o): New rule.
3258 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3259 (gdbscm_misc_error): Declare.
3260 (gdbscm_canonicalize_command_name): Declare.
3261 (gdbscm_scm_to_host_string): Declare.
3262 (gdbscm_scm_from_host_string): Declare.
3263 (gdbscm_initialize_parameters): Declare.
3264 * guile/guile.c (initialize_gdb_module): Call
3265 gdbscm_initialize_parameters.
3266 * guile/lib/gdb.scm: Export parameter symbols.
3267 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3268 cmdscm_canonicalize_name and made public. All callers updated.
3269 * guile/scm-exception.c (gdbscm_misc_error): New function.
3270 * guile/scm-param.c: New file.
3271 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3272 (gdbscm_scm_to_host_string): New function.
3273 (gdbscm_scm_from_host_string): New function.
3274 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3275
3276 2014-06-02 Doug Evans <xdje42@gmail.com>
3277
3278 Add command support for Guile.
3279 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3280 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3281 (scm-cmd.o): New rule.
3282 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3283 (gdbscm_user_error_p): Declare.
3284 (gdbscm_parse_command_name): Declare.
3285 (gdbscm_valid_command_class_p): Declare.
3286 (gdbscm_initialize_commands): Declare.
3287 * guile/guile.c (initialize_gdb_module): Call
3288 gdbscm_initialize_commands.
3289 * guile/lib/gdb.scm: Export command symbols.
3290 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3291 (throw-user-error): New function.
3292 * guile/scm-cmd.c: New file.
3293 * guile/scm-exception.c (user_error_symbol): New static global.
3294 (gdbscm_user_error_p): New function.
3295 (gdbscm_initialize_exceptions): Set user_error_symbol.
3296 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3297
3298 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3299
3300 * top.c (command_loop): Handle comments here...
3301 (command_line_input): ... not here.
3302
3303 2014-06-02 Doug Evans <xdje42@gmail.com>
3304
3305 Add progspace support for Guile.
3306 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3307 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3308 (scm-progspace.o): New rule.
3309 * guile/guile-internal.h (pspace_smob): New typedef.
3310 (psscm_pspace_smob_pretty_printers): Declare.
3311 (psscm_pspace_smob_from_pspace): Declare.
3312 (psscm_scm_from_pspace): Declare.
3313 * guile/guile.c (initialize_gdb_module): Call
3314 gdbscm_initialize_pspaces.
3315 * guile/lib/gdb.scm: Export progspace symbols.
3316 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3317 support.
3318 (append-pretty-printer!): Ditto.
3319 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3320 Implement.
3321 * guile/scm-progspace.c: New file.
3322
3323 2014-06-03 Alan Modra <amodra@gmail.com>
3324
3325 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3326 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3327
3328 2014-06-02 Doug Evans <dje@google.com>
3329
3330 Add support for skeletonless type units.
3331 * dwarf2read.c (struct dwarf2_per_objfile): New member
3332 n_allocated_type_units.
3333 (struct dwarf2_per_objfile) <tu_stats>: New member
3334 nr_all_type_units_reallocs.
3335 (create_signatured_type_table_from_index): Initialize
3336 n_allocated_type_units
3337 (create_all_type_units): Ditto.
3338 (add_type_unit): Move up in file. New arg slot.
3339 All callers updated. Increase space for all_type_units more
3340 efficiently.
3341 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3342 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3343 (lookup_dwp_signatured_type): Ditto.
3344 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3345 All callers updated.
3346 (build_type_psymtabs_1): Leave type_unit_groups as
3347 NULL if no TUs present.
3348 (print_tu_stats): New function.
3349 (process_skeletonless_type_unit): New function.
3350 (process_dwo_file_for_skeletonless_type_units): New
3351 function.
3352 (process_skeletonless_type_units): New function.
3353 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3354 Call print tu_stats if debugging enabled.
3355
3356 2014-06-02 Pedro Alves <palves@redhat.com>
3357
3358 * breakpoint.c (build_target_command_list): Don't build a command
3359 list if we have any duplicate location that isn't a dprintf.
3360
3361 2014-06-02 Pedro Alves <palves@redhat.com>
3362
3363 * breakpoint.c (dprintf_breakpoint_hit): New function.
3364 (initialize_breakpoint_ops): Install it as dprintf's
3365 breakpoint_hit method.
3366
3367 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3368
3369 * source.c (substitute_path_rule_matches): Simplify using
3370 filename_ncmp instead of FILENAME_CMP.
3371
3372 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3373
3374 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3375
3376 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3377
3378 * configure.ac: When Guile is available, check for the
3379 availability of 'scm_new_smob'.
3380 * configure, config.h.in: Regenerate.
3381 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3382 function.
3383
3384 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3385
3386 * frame.c (struct frame_info): Add stop_string field.
3387 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3388 (get_prev_frame_always): Old content moved into
3389 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3390 TRY_CATCH, handle MEMORY_ERROR exceptions.
3391 (frame_stop_reason_string): New function definition.
3392 * frame.h (unwind_stop_reason_to_string): Extend comment to
3393 mention frame_stop_reason_string.
3394 (frame_stop_reason_string): New function declaration.
3395 * stack.c (frame_info): Switch to frame_stop_reason_string.
3396 (backtrace_command_1): Switch to frame_stop_reason_string.
3397 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3398 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3399 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3400
3401 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3402
3403 * frame.c (frame_stop_reason_string): Rename to ...
3404 (unwind_stop_reason_to_string): this.
3405 * frame.h (frame_stop_reason_string): Rename to ...
3406 (unwind_stop_reason_to_string): this.
3407 * stack.c (frame_info): Update call to frame_stop_reason_string.
3408 (backtrace_command_1): Likewise.
3409 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3410 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3411
3412 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3413
3414 * frame.c (remove_prev_frame): New function.
3415 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3416 remove_prev_frame.
3417
3418 2014-05-29 Pedro Alves <palves@redhat.com>
3419
3420 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3421 and make it const. When a single-step decays to a continue,
3422 clear 'step', not 'hw_step'. Pass whether the caller wanted
3423 to step to user_visible_resume_ptid, not what we ask the
3424 target to do.
3425
3426 2014-05-29 Pedro Alves <palves@redhat.com>
3427
3428 * infrun.c (process_event_stop_test, handle_step_into_function)
3429 (handle_step_into_function_backward): Adjust.
3430 Don't set the even thread's stop_step and call stop_waiting before
3431 calling end_stepping_range. Instead do that ...
3432 (end_stepping_range): ... here. Take an ecs pointer parameter.
3433
3434 2014-05-29 Pedro Alves <palves@redhat.com>
3435
3436 * infrun.c (stop_stepping): Rename to ...
3437 (stop_waiting): ... this.
3438 (proceed): Update comment.
3439 (process_event_stop_test, handle_inferior_event)
3440 (handle_signal_stop, handle_step_into_function)
3441 (handle_step_into_function_backward): Update.
3442
3443 2014-05-29 Pedro Alves <palves@redhat.com>
3444
3445 * infcall.c (run_inferior_call): Don't check whether the current
3446 thread is running after the proceed call.
3447
3448 2014-05-29 Pedro Alves <palves@redhat.com>
3449 Tom Tromey <tromey@redhat.com>
3450
3451 * NEWS: Mention "maint set target-async", "set mi-async", and that
3452 background execution commands are now always available.
3453 * target.h (target_async_permitted): Update comment.
3454 * target.c (target_async_permitted, target_async_permitted_1):
3455 Default to 1.
3456 (set_target_async_command): Rename to ...
3457 (maint_set_target_async_command): ... this.
3458 (show_target_async_command): Rename to ...
3459 (maint_show_target_async_command): ... this.
3460 (_initialize_target): Adjust.
3461 * infcmd.c (prepare_execution_command): Make extern.
3462 * inferior.h (prepare_execution_command): Declare.
3463 * infrun.c (set_observer_mode): Leave target async alone.
3464 * mi/mi-interp.c (mi_interpreter_init): Install
3465 mi_on_sync_execution_done as sync_execution_done observer.
3466 (mi_on_sync_execution_done): New function.
3467 (mi_execute_command_input_handler): Don't print the prompt if we
3468 just started a synchronous command with an async target.
3469 (mi_on_resume): Check sync_execution before printing prompt.
3470 * mi/mi-main.h (mi_async_p): Declare.
3471 * mi/mi-main.c: Include gdbcmd.h.
3472 (mi_async_p): New function.
3473 (mi_async, mi_async_1): New globals.
3474 (set_mi_async_command, show_mi_async_command, mi_async): New
3475 functions.
3476 (exec_continue): Call prepare_execution_command.
3477 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3478 (mi_execute_async_cli_command): Use mi_async_p.
3479 (_initialize_mi_main): Install "set mi-async". Make
3480 "target-async" a deprecated alias.
3481
3482 2014-05-29 Pedro Alves <palves@redhat.com>
3483
3484 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3485 (_initialize_cli_interp): Adjust.
3486 * event-loop.c: Include "observer.h".
3487 (start_event_loop): Notify 'command_error' observers instead of
3488 calling display_gdb_prompt. Remove FIXME comment.
3489 * event-top.c (display_gdb_prompt): Remove call into the
3490 interpreters.
3491 * inf-loop.c: Include "observer.h".
3492 (inferior_event_handler): Notify 'command_error' observers instead
3493 of calling display_gdb_prompt.
3494 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3495 observers instead of calling display_gdb_prompt.
3496 * interps.c (interp_set): Don't call display_gdb_prompt.
3497 (current_interp_display_prompt_p): Delete.
3498 * interps.h (interp_prompt_p): Delete declaration.
3499 (interp_prompt_p_ftype): Delete.
3500 (struct interp_procs) <prompt_proc_p>: Delete field.
3501 (current_interp_display_prompt_p): Delete declaration.
3502 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3503 (_initialize_mi_interp): Adjust.
3504 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3505 'command_error' observers.
3506 (tui_on_sync_execution_done, tui_on_command_error): New
3507 functions.
3508 (tui_display_prompt_p): Delete.
3509 (_initialize_tui_interp): Adjust.
3510
3511 2014-05-29 Pedro Alves <palves@redhat.com>
3512
3513 PR gdb/13860
3514 * cli/cli-interp.c: Include infrun.h and observer.h.
3515 (cli_uiout, cli_interp): New globals.
3516 (cli_on_signal_received, cli_on_end_stepping_range)
3517 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3518 functions.
3519 (cli_interpreter_init): Install them as 'end_stepping_range',
3520 'signal_received' 'signal_exited', 'exited' and 'no_history'
3521 observers.
3522 (_initialize_cli_interp): Remove cli_interp local.
3523 * infrun.c (handle_inferior_event): Call the several stop reason
3524 observers instead of printing the stop reason directly.
3525 (end_stepping_range): New function.
3526 (print_end_stepping_range_reason, print_signal_exited_reason)
3527 (print_exited_reason, print_signal_received_reason)
3528 (print_no_history_reason): Make static, and add an uiout
3529 parameter. Print to that instead of to CURRENT_UIOUT.
3530 * infrun.h (print_end_stepping_range_reason)
3531 (print_signal_exited_reason, print_exited_reason)
3532 (print_signal_received_reason print_no_history_reason): New
3533 declarations.
3534 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3535 'mi_uiout'.
3536 <cli_uiout>: New field.
3537 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3538 uiout for CLI output. Install 'signal_received',
3539 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3540 observers.
3541 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3542 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3543 (mi_on_no_history): New functions.
3544 (ui_out_free_cleanup): Delete function.
3545 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3546 instead use the one already stored in the MI interpreter data.
3547 (mi_ui_out): Adjust.
3548 * tui/tui-interp.c: Include infrun.h and observer.h.
3549 (tui_interp): New global.
3550 (tui_on_signal_received, tui_on_end_stepping_range)
3551 (tui_on_signal_exited, tui_on_exited)
3552 (tui_on_no_history): New functions.
3553 (tui_init): Install them as 'end_stepping_range',
3554 'signal_received' 'signal_exited', 'exited' and 'no_history'
3555 observers.
3556 (_initialize_tui_interp): Delete tui_interp local.
3557
3558 2014-05-29 Pedro Alves <palves@redhat.com>
3559
3560 PR gdb/15713
3561 * linux-nat.c (linux_nat_resume_callback): Rename the second
3562 parameter to 'except'. Skip LP if it points to EXCEPT.
3563 (linux_nat_resume): Don't mark the event lwp as not stopped
3564 before resuming sibling lwps. Instead ask
3565 linux_nat_resume_callback to skip the event lwp. Mark it as not
3566 stopped after actually resuming it.
3567 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3568 resuming it.
3569 (wait_lwp): Mark the lwp as stopped here.
3570 (stop_wait_callback): Mark the lwp as not stopped right after
3571 resuming it. Don't mark lwps as stopped here.
3572 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3573 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3574
3575 2014-05-29 Pedro Alves <palves@redhat.com>
3576
3577 PR PR15693
3578 * infrun.c (resume): Determine how much to resume depending on
3579 whether the caller wanted a step, not whether we can hardware step
3580 the target. Mark all threads that we intend to run as running,
3581 unless we're calling an inferior function.
3582 (normal_stop): If the thread is running an infcall, don't finish
3583 thread state.
3584 * target.c (target_resume): Don't mark threads as running here.
3585
3586 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3587
3588 * serial.c (_initialize_serial): Remove support for
3589 the "set remotebaud" and "show remotebaud" commands.
3590 * NEWS: Add entry documenting the removal of that command.
3591
3592 2014-05-28 Yao Qi <yao@codesourcery.com>
3593
3594 * charset.c: Fix typo in comments.
3595
3596 2014-05-27 Gary Benson <gbenson@redhat.com>
3597
3598 * utils.c (internal_vproblem): Prompt for a bug report.
3599
3600 2014-05-26 Andy Wingo <wingo@igalia.com>
3601
3602 * guile/scm-arch.c (arscm_mark_arch_smob):
3603 * guile/scm-block.c (bkscm_mark_block_smob)
3604 (bkscm_mark_block_syms_progress_smob):
3605 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3606 * guile/scm-exception.c (exscm_mark_exception_smob):
3607 * guile/scm-frame.c (frscm_mark_frame_smob):
3608 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3609 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3610 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3611 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3612 (ppscm_mark_pretty_printer_worker_smob):
3613 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3614 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3615 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3616 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3617 mark functions.
3618 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3619 function.
3620
3621 2014-05-26 Andy Wingo <wingo@igalia.com>
3622 Doug Evans <xdje42@gmail.com>
3623
3624 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3625 empty_base_class. All uses updated.
3626 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3627 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3628 Adapt all callers.
3629 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3630 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3631 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3632 (gdbscm_gsmob_has_property_p, add_property_name)
3633 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3634 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3635 (gdb-object-has-property?, gdb-object-properties): Remove.
3636 (gdb-object-kind): Renamed from gsmob-kind.
3637
3638 2014-05-26 Andy Wingo <wingo@igalia.com>
3639
3640 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3641 * configure: Regenerate.
3642
3643 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3644
3645 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3646
3647 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3648
3649 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3650 (replay_memory_access_read_only, replay_memory_access_read_write)
3651 (replay_memory_access_types, replay_memory_access)
3652 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3653 (cmd_set_record_btrace, cmd_show_record_btrace)
3654 (cmd_show_replay_memory_access): New.
3655 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3656 (record_btrace_remove_breakpoint): Replace
3657 record_btrace_allow_memory_access with replay_memory_access.
3658 (_initialize_record_btrace): Add commands.
3659 * NEWS: Announce it.
3660
3661 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3662
3663 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3664
3665 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3666
3667 * MAINTAINERS (Write After Approval): Move self back from
3668 paper trail.
3669
3670 2014-05-22 Pedro Alves <palves@redhat.com>
3671
3672 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3673 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3674 (disable_randomization, enum exec_direction_kind)
3675 (execution_direction, stop_registers, start_remote)
3676 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3677 (wait_for_inferior, normal_stop, get_last_target_status)
3678 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3679 (insert_step_resume_breakpoint_at_sal)
3680 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3681 (set_step_info, print_stop_event, signal_stop_state)
3682 (signal_print_state, signal_pass_state, signal_stop_update)
3683 (signal_print_update, signal_pass_update)
3684 (update_signals_program_target, clear_exit_convenience_vars)
3685 (displaced_step_dump_bytes, update_observer_mode)
3686 (signal_catch_update, gdb_signal_from_command): Move
3687 declarations ...
3688 * infrun.h: ... to this new file.
3689 * amd64-tdep.c: Include infrun.h.
3690 * annotate.c: Include infrun.h.
3691 * arch-utils.c: Include infrun.h.
3692 * arm-linux-tdep.c: Include infrun.h.
3693 * arm-tdep.c: Include infrun.h.
3694 * break-catch-sig.c: Include infrun.h.
3695 * breakpoint.c: Include infrun.h.
3696 * common/agent.c: Include infrun.h instead of inferior.h.
3697 * corelow.c: Include infrun.h.
3698 * event-top.c: Include infrun.h.
3699 * go32-nat.c: Include infrun.h.
3700 * i386-tdep.c: Include infrun.h.
3701 * inf-loop.c: Include infrun.h.
3702 * infcall.c: Include infrun.h.
3703 * infcmd.c: Include infrun.h.
3704 * infrun.c: Include infrun.h.
3705 * linux-fork.c: Include infrun.h.
3706 * linux-nat.c: Include infrun.h.
3707 * linux-thread-db.c: Include infrun.h.
3708 * monitor.c: Include infrun.h.
3709 * nto-tdep.c: Include infrun.h.
3710 * procfs.c: Include infrun.h.
3711 * record-btrace.c: Include infrun.h.
3712 * record-full.c: Include infrun.h.
3713 * remote-m32r-sdi.c: Include infrun.h.
3714 * remote-mips.c: Include infrun.h.
3715 * remote-notif.c: Include infrun.h.
3716 * remote-sim.c: Include infrun.h.
3717 * remote.c: Include infrun.h.
3718 * reverse.c: Include infrun.h.
3719 * rs6000-tdep.c: Include infrun.h.
3720 * s390-linux-tdep.c: Include infrun.h.
3721 * solib-irix.c: Include infrun.h.
3722 * solib-osf.c: Include infrun.h.
3723 * solib-svr4.c: Include infrun.h.
3724 * target.c: Include infrun.h.
3725 * top.c: Include infrun.h.
3726 * windows-nat.c: Include infrun.h.
3727 * mi/mi-interp.c: Include infrun.h.
3728 * mi/mi-main.c: Include infrun.h.
3729 * python/py-threadevent.c: Include infrun.h.
3730
3731 2014-05-22 Pedro Alves <palves@redhat.com>
3732
3733 * infrun.c (handle_inferior_event): Store the exit code for
3734 --return-child-result here, instead of ...
3735 (print_exited_reason): ... here.
3736
3737 2014-05-21 Pedro Alves <palves@redhat.com>
3738
3739 PR gdb/13860
3740 * gdbthread.h (struct thread_control_state): New field
3741 `command_interp'.
3742 * infrun.c (follow_fork): Copy the new thread control field to the
3743 child fork thread.
3744 (clear_proceed_status_thread): Clear the new thread control field.
3745 (proceed): Set the new thread control field.
3746 * interps.h (command_interp): Declare.
3747 * interps.c (command_interpreter): New global.
3748 (command_interp): New function.
3749 (interp_exec): Set `command_interpreter' while here.
3750 * cli-out.c (cli_uiout_dtor): New function.
3751 (cli_ui_out_impl): Install it.
3752 * mi/mi-interp.c: Include cli-out.h.
3753 (mi_cmd_interpreter_exec): Add comment.
3754 (restore_current_uiout_cleanup): New function.
3755 (ui_out_free_cleanup): New function.
3756 (mi_on_normal_stop): If finishing an execution command started by
3757 a CLI command, or any kind of breakpoint-like event triggered,
3758 print the stop event to the output (CLI) stream.
3759 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3760
3761 2014-05-21 Pedro Alves <palves@redhat.com>
3762
3763 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3764 current source line having changed.
3765 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3766 * infrun.c (normal_stop): Adjust call to
3767 set_current_sal_from_frame.
3768 * source.c (clear_lines_listed_range): New function.
3769 (set_current_source_symtab_and_line, identify_source_line): Clear
3770 the lines listed range.
3771 (line_info): Handle the first "info line" after the current source
3772 line having changed.
3773 * stack.c (print_stack_frame): Remove center handling.
3774 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3775 center sal.line.
3776
3777 2014-05-21 Pedro Alves <palves@redhat.com>
3778
3779 * inf-child.c (inf_child_mourn_inferior): New function.
3780 * inf-child.h (inf_child_mourn_inferior): New declaration.
3781 * darwin-nat.c (darwin_mourn_inferior): Use
3782 inf_child_mourn_inferior.
3783 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3784 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3785 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3786 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3787 * windows-nat.c (windows_mourn_inferior): Likewise.
3788
3789 2014-05-21 Doug Evans <xdje42@gmail.com>
3790
3791 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3792
3793 2014-05-21 Doug Evans <xdje42@gmail.com>
3794
3795 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3796 (gdbscm_out_of_range_error): Ditto.
3797 (gdbscm_memory_error): Ditto.
3798 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3799 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3800 (gdbscm_out_of_range_error): Update.
3801 (gdbscm_memory_error): Update.
3802 (gdbscm_scm_to_target_string_unsafe): Delete.
3803
3804 2014-05-21 Pedro Alves <palves@redhat.com>
3805
3806 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3807 globals.
3808 (inf_child_open_target): New function.
3809 (inf_child_open): Use inf_child_open_target to push the target
3810 instead of erroring out.
3811 (inf_child_disconnect, inf_child_close)
3812 (inf_child_maybe_unpush_target): New functions.
3813 (inf_child_target): Install inf_child_disconnect and
3814 inf_child_close. Store a pointer to the returned object.
3815 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3816 declarations.
3817 * target.c (auto_connect_native_target): New global.
3818 (show_default_run_target): New function.
3819 (find_default_run_target): Return NULL if automatically connecting
3820 to the native target is disabled.
3821 (_initialize_target): Install set/show auto-connect-native-target.
3822 * NEWS: Mention "set auto-connect-native-target", and "target
3823 native".
3824 * linux-nat.c (super_close): New global.
3825 (linux_nat_close): Call super_close.
3826 (linux_nat_add_target): Store a pointer to the base class's
3827 to_close method.
3828 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3829 inf_child_maybe_unpush.
3830 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3831 already pushed.
3832 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3833 the inferior. Use inf_child_maybe_unpush_target.
3834 (inf_ttrace_attach): Don't push the target if it is already
3835 pushed.
3836 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3837 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3838 after mourning the inferior. Use inf_child_maybe_unpush_target.
3839 (darwin_attach_pid): Don't push the target if it is already
3840 pushed.
3841 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3842 mourning the inferior. Use inf_child_maybe_unpush_target.
3843 (gnu_detach): Use inf_child_maybe_unpush_target.
3844 * go32-nat.c (go32_create_inferior): Don't push the target if it
3845 is already pushed.
3846 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3847 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3848 (procfs_open): Rename to ...
3849 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3850 comments. Can target_preopen before changing node. Call
3851 inf_child_open_target to push the target explicitly.
3852 (procfs_attach): Don't push the target if it is already pushed.
3853 (procfs_detach): Use inf_child_maybe_unpush_target.
3854 (procfs_create_inferior): Don't push the target if it is already
3855 pushed.
3856 (nto_native_ops): New global.
3857 (procfs_open): Reimplement.
3858 (procfs_native_open): New function.
3859 (init_procfs_targets): Install procfs_native_open as to_open of
3860 "target native". Store a pointer to the "native" target in
3861 nto_native_ops.
3862 * procfs.c (procfs_attach): Don't push the target if it is already
3863 pushed.
3864 (procfs_detach): Use inf_child_maybe_unpush_target.
3865 (procfs_mourn_inferior): Only unpush the target after mourning the
3866 inferior. Use inf_child_maybe_unpush_target.
3867 (procfs_init_inferior): Don't push the target if it is already
3868 pushed.
3869 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3870 if it is already pushed.
3871
3872 2014-05-21 Pedro Alves <palves@redhat.com>
3873
3874 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3875 and "procfs" targets are now called "native" instead.
3876
3877 2014-05-21 Pedro Alves <palves@redhat.com>
3878
3879 * go32-nat.c (go32_open): Delete.
3880 (go32_target): Don't override the to_open method.
3881
3882 2014-05-21 Pedro Alves <palves@redhat.com>
3883
3884 * nto-procfs.c (procfs_can_run): New function.
3885 (nto_procfs_ops): New global.
3886 (init_procfs_targets): New, based on procfs_target. Install
3887 "target native" in addition to "target procfs".
3888 (_initialize_procfs): Call init_procfs_targets instead of adding
3889 the target here.
3890
3891 2014-05-21 Pedro Alves <palves@redhat.com>
3892
3893 * windows-nat.c (windows_target): Don't override to_shortname,
3894 to_longname or to_doc.
3895
3896 2014-05-21 Pedro Alves <palves@redhat.com>
3897
3898 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3899 to_doc.
3900
3901 2014-05-21 Pedro Alves <palves@redhat.com>
3902
3903 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3904 to_shortname, to_longname or to_doc.
3905
3906 2014-05-21 Pedro Alves <palves@redhat.com>
3907
3908 * go32-nat.c (go32_target): Don't override to_shortname,
3909 to_longname or to_doc.
3910
3911 2014-05-21 Pedro Alves <palves@redhat.com>
3912
3913 * inf-child.c (inf_child_open): Remove mention of "child".
3914 (inf_child_target): Rename target to "native" instead of "child".
3915
3916 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3917
3918 * Makefile.in (SFILES): Delete "regset.c".
3919 (COMMON_OBS): Delete "regset.o".
3920 * regset.c: Remove.
3921 * regset.h (regset_alloc): Delete prototype.
3922
3923 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3924
3925 * sparc-linux-tdep.c (sparc32_linux_gregset)
3926 (sparc32_linux_fpregset): New static regset structures.
3927 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3928 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3929 'fpregset' fields.
3930 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3931 (sparc64_linux_fpregset): New static regset structures.
3932 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3933 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3934 New static regset structures.
3935 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3936 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3937 New static regset structures.
3938 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3939 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3940 New static regset structures.
3941 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3942 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3943 New static regset structures.
3944 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3945
3946 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3947
3948 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3949 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3950 register maps ("regmaps") from "*regset" to "*regmap". Do this
3951 for all regmap types and variables.
3952 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3953 (sparc32_linux_supply_core_gregset)
3954 (sparc32_linux_collect_core_gregset)
3955 (sparc32_linux_supply_core_fpregset)
3956 (sparc32_linux_collect_core_fpregset): Likewise.
3957 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3958 (sparc_gregmap, sparc_fpregmap): ... these.
3959 (sparc_supply_gregset, sparc_collect_gregset)
3960 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3961 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3962 (_initialize_sparc_nat): Rename regmaps.
3963 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3964 (sparc_gregmap, sparc_fpregmap): ... these.
3965 (sparc_supply_gregset, sparc_collect_gregset)
3966 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3967 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3968 Rename macros to...
3969 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3970 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3971 Likewise.
3972 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3973 Rename to...
3974 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3975 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3976 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3977 regmaps.
3978 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3979 (sparc32_bsd_fpregset): Rename to...
3980 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3981 (sparc32_bsd_fpregmap): ... these.
3982 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3983 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3984 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3985 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3986 (struct sparc_gregmap, struct sparc_fpregmap)
3987 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3988 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3989 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3990 (sparc32_supply_regset, sparc32_collect_gregset)
3991 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3992 prototypes.
3993 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3994 (sparc64_linux_ptrace_gregmap): ... this.
3995 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3996 (_initialize_sparc64_linux_nat): Rename regmaps.
3997 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3998 (sparc64_linux_core_gregmap): ... this.
3999 (sparc64_linux_supply_core_gregset)
4000 (sparc64_linux_collect_core_gregset)
4001 (sparc64_linux_supply_core_fpregset)
4002 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4003 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4004 (sparc64_sol2_fpregset): Rename to...
4005 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4006 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4007 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4008 regmaps.
4009 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4010 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4011 (sparc64_bsd_fpregset): Rename to...
4012 (struct sparc_gregmap, sparc64_sol2_gregmap)
4013 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4014 (sparc64_bsd_fpregmap): ... these.
4015 (sparc64_supply_gregset, sparc64_collect_gregset)
4016 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4017 prototypes.
4018 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4019 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4020 (sparc64fbsd_gregmap): ... this.
4021 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4022 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4023 Rename regmaps.
4024 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4025 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4026 (sparc64nbsd_collect_fpregset): Likewise.
4027 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4028 (sparc64nbsd_gregmap): ... this.
4029 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4030 regmaps.
4031 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4032 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4033 (sparc64obsd_gregmap): ... this.
4034 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4035 regmaps.
4036 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4037 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4038 (sparc32nbsd_gregmap): ... this.
4039 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4040 regmaps.
4041
4042 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4043
4044 * score-tdep.c (score7_linux_gregset): New static regset
4045 structure.
4046 (score7_linux_regset_from_core_section): Remove dynamic regset
4047 allocation.
4048 (score_gdbarch_init): Drop allocation of tdep structure.
4049 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4050
4051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4052
4053 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4054 regset structures.
4055 (am33_regset_from_core_section): Remove dynamic regset
4056 allocations.
4057
4058 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4059
4060 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4061 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4062 structures.
4063 (mips_linux_regset_from_core_section): Remove dynamic regset
4064 allocations.
4065 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4066 'gregset64', 'fpregset', and 'fpregset64'.
4067 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4068 deleted tdep fields.
4069
4070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4071
4072 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4073 regset structures.
4074 (amd64_regset_from_core_section): Remove dynamic regset
4075 allocations.
4076 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4077 structure.
4078 (amd64obsd_regset_from_core_section): Remove dynamic regset
4079 allocation.
4080 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4081 Likewise.
4082 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4083 x86-common regset supply function.
4084 * i386-tdep.c (i386_collect_gregset): Make static.
4085 (i386_gregset): New global regset structure.
4086 (i386_fpregset, i386_xstateregset): New static regset structures.
4087 (i386_regset_from_core_section): Remove dynamic regset
4088 allocations.
4089 (i386_gdbarch_init): Remove initialization of tdep fields
4090 'gregset', 'fpregset', and 'xstateregset'.
4091 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4092 'fpregset', and 'xstateregset'.
4093 (i386_collect_gregset): Remove prototype.
4094 (i386_gregset): New declaration.
4095 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4096 structure.
4097 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4098 allocation.
4099
4100 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4101
4102 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4103 (arm_linux_vfpregset): New static regset structures.
4104 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4105 regset structures.
4106 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4107 and 'vfpregset' fields.
4108
4109 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4110
4111 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4112 (aarch64_linux_fpregset): New static regset structures.
4113 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4114 of regset structures.
4115 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4116 'fpregset' fields.
4117
4118 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4119
4120 * regset.h (struct regset): Remove gdbarch field.
4121 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4122 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4123 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4124 Likewise.
4125 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4126 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4127 (ppc32_linux_vsxregset): Likewise.
4128 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4129 via the regcache instead of the regset.
4130 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4131 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4132 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4133 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4134 Likewise.
4135
4136 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4137
4138 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4139 Constify structures.
4140 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4141 (alphanbsd_aout_gregset): Likewise.
4142 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4143 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4144 Likewise.
4145 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4146 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4147 Likewise.
4148 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4149 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4150 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4151 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4152 * m88k-tdep.c (m88k_gregset): Likewise.
4153 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4154 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4155 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4156 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4157 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4158 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4159 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4160 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4161 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4162 Likewise.
4163 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4164 * sh-tdep.h (sh_corefile_gregset): Likewise.
4165 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4166 * vax-tdep.c (vax_gregset): Likewise.
4167
4168 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 Fix TLS access for -static -pthread.
4171 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4172 (try_thread_db_load_1): Initialize it.
4173 (thread_db_get_thread_local_address): Call it if LM is zero.
4174 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4175 * target.h (struct target_ops) (to_get_thread_local_address): Add
4176 load_module_addr comment.
4177
4178 2014-05-21 Pedro Alves <palves@redhat.com>
4179
4180 * dcache.c (dcache_read_memory_partial): If reading the cache line
4181 fails, fallback to reading just the memory the caller wanted.
4182
4183 2014-05-20 Doug Evans <dje@google.com>
4184
4185 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4186 instead of get_current_arch.
4187
4188 2014-05-20 Pedro Alves <palves@redhat.com>
4189
4190 * NEWS: Mention that compare-sections now works with all targets.
4191
4192 * remote.c (PACKET_qCRC): New enum value.
4193 (remote_verify_memory): Don't send qCRC if the target has no
4194 execution. Use packet_support/packet_ok. If the target doesn't
4195 support the qCRC packet, fallback to a deep memory copy.
4196 (compare_sections_command): Say "target image" instead of "remote
4197 executable".
4198 (_initialize_remote): Add PACKET_qCRC to the list of config
4199 packets that have no associated command. Extend comment.
4200 * target.c (simple_verify_memory, default_verify_memory): New
4201 function.
4202 * target.h (struct target_ops) <to_verify_memory>: Default to
4203 default_verify_memory.
4204 (simple_verify_memory): New declaration.
4205 * target-delegates.c: Regenerate.
4206
4207 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4208
4209 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4210
4211 2014-05-20 Hui Zhu <hui@codesourcery.com>
4212 Yao Qi <yao@codesourcery.com>
4213
4214 PR backtrace/16558
4215 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4216 and change address of sp and pc.
4217
4218 2014-05-19 Tom Tromey <tromey@redhat.com>
4219
4220 * gdbtypes.c (rank_function): Use XNEWVEC.
4221 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4222
4223 2014-05-19 Doug Evans <dje@google.com>
4224
4225 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4226 build_type_unit_groups and moved closer to only caller. Remove
4227 arguments. All references updated. Remove outdated .gdb_index
4228 comment.
4229 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4230 build_type_psymtabs_1.
4231
4232 2014-05-19 Doug Evans <dje@google.com>
4233
4234 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4235 n_type_unit_groups, all_type_unit_groups. All uses removed.
4236 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4237 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4238 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4239 (add_type_unit_group_to_table): Delete.
4240
4241 2014-05-19 Doug Evans <dje@google.com>
4242
4243 * eval.c (evaluate_subexp_standard): Add some comments.
4244
4245 2014-05-17 Doug Evans <xdje42@gmail.com>
4246
4247 * progspace.c (remove_program_space): Delete, unused.
4248 * progspace.h (remove_program_space): Ditto.
4249
4250 2014-05-17 Doug Evans <xdje42@gmail.com>
4251
4252 * inferior.c (prune_inferiors): Fix comment.
4253 (remove_inferior_command): Call prune_program_spaces.
4254
4255 2014-05-16 Doug Evans <dje@google.com>
4256
4257 New command line option -D.
4258 * NEWS: Mention it.
4259 * main.c (set_gdb_data_directory): New function.
4260 (captured_main): Recognize -D. Flag error for --data-directory "".
4261 Call set_gdb_data_directory.
4262 (print_gdb_help): Print --data-directory, -D.
4263 * main.h (set_gdb_data_directory): Declare.
4264 * top.c (staged_gdb_datadir): New static global.
4265 (set_gdb_datadir): Call set_gdb_data_directory
4266 (show_gdb_datadir): New function.
4267 (init_main): Update init of data-directory parameter.
4268
4269 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4270
4271 Import the "dirfd" gnulib module.
4272 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4273 * gnulib/aclocal.m4: Update.
4274 * gnulib/config.in: Update.
4275 * gnulib/configure: Update.
4276 * gnulib/import/Makefile.am: Update.
4277 * gnulib/import/Makefile.in: Update.
4278 * gnulib/import/dirfd.c: New.
4279 * gnulib/import/m4/dirfd.m4: New.
4280 * gnulib/import/m4/gnulib-cache.m4: Update.
4281 * gnulib/import/m4/gnulib-comp.m4: Update.
4282
4283 2014-05-16 Pierre Muller <muller@sourceware.org>
4284 Yao Qi <yao@codesourcery.com>
4285
4286 * valprint.c (print_wchar): Move the code on checking whether
4287 W is a printable wide char to the default branch of switch
4288 statement below. Call wchar_printable instead of gdb_iswprint.
4289
4290 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4291
4292 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4293 ldr.w and ldrd instructions.
4294
4295 2014-05-15 Doug Evans <dje@google.com>
4296
4297 * dwarf2read.c (read_structure_type): Delete outdated comments.
4298
4299 2014-05-14 Tom Tromey <tromey@redhat.com>
4300
4301 * macrocmd.c (print_macro_definition): Reindent.
4302
4303 2014-05-13 Doug Evans <xdje42@gmail.com>
4304
4305 * python/py-cmd.c (cmdpy_completer): Add comment.
4306 (completers): Make const.
4307
4308 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4309
4310 * infrun.c (resume): Remove should_resume (unused). Move up
4311 declaration of resume_ptid.
4312
4313 2014-05-13 Tom Tromey <tromey@redhat.com>
4314
4315 * language.h (unop_type_check): Remove.
4316 (binop_type_check): Don't declare.
4317
4318 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4319
4320 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4321 call to regcache_raw_collect.
4322
4323 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4324
4325 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4326 mi_console->quote as the quoting character.
4327
4328 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4329
4330 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4331
4332 2014-04-29 Tom Tromey <tromey@redhat.com>
4333
4334 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4335 "show debug varobj".
4336
4337 2014-05-07 Kyle McMartin <kyle@redhat.com>
4338
4339 Pushed by Joel Brobecker <brobecker@adacore.com>.
4340 * aarch64-tdep.c (aarch64_software_single_step): New function.
4341 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4342 with aarch64_software_single_step.
4343
4344 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4345
4346 GDB 7.7.1 released.
4347
4348 2014-05-05 Keith Seitz <keiths@redhat.com>
4349
4350 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4351 variable or history value is successfully parsed.
4352
4353 2014-05-05 Yao Qi <yao@codesourcery.com>
4354 Pedro Alves <palves@redhat.com>
4355
4356 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4357 address of blocks that intersects the requested range. Trim
4358 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4359 sections.
4360 * ctf.c (ctf_xfer_partial): Likewise.
4361
4362 2014-05-05 Yao Qi <yao@codesourcery.com>
4363
4364 * printcmd.c (display_command): Remove the check to
4365 target_has_execution.
4366
4367 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4368
4369 * ppcobsd-nat.c: Include "obsd-nat.h".
4370 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4371 add_target.
4372 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4373
4374 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4375
4376 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4377 and 16-bit signed and unsigned arguments. Update comment.
4378 (stap_parse_probe_arguments): Extend code to handle such
4379 arguments. Use warning instead of complaint to notify about
4380 unrecognized bitness.
4381
4382 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4383
4384 PR breakpoints/16889
4385 * stap-probe.c (stap_parse_probe_arguments): Simplify
4386 check for non-prefixed probes (i.e., probes whose
4387 arguments do not start with "N@"). Always set the
4388 argument type to a sane value.
4389
4390 2014-05-01 David Taylor <dtaylor@emc.com>
4391
4392 * remote.c (compare_sections_command): Add -r option to compare
4393 all loadable read-only sections.
4394
4395 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4396
4397 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4398 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4399 Update all callers.
4400 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4401 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4402 Remove unused CORE_ADDR argument. Update all callers.
4403
4404 2014-04-29 Pedro Alves <palves@redhat.com>
4405
4406 * remote.c (struct packet_config) <detect>: Extend comment.
4407 (add_packet_config_cmd): Don't set the config's detect or support
4408 fields here.
4409 (init_all_packet_configs): Also initialize the config's 'detect'
4410 field.
4411 (reset_all_packet_configs_support): New function.
4412 (remote_open_1): Call reset_all_packet_configs_support instead of
4413 init_all_packet_configs.
4414 (_initialize_remote): Initialize all packet configs. Assert that
4415 all packets have an associated command, except a few known
4416 outliers.
4417
4418 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4419
4420 * dwarf2read.c (read_subrange_type): Handle dynamic
4421 DW_AT_lower_bound attributes.
4422
4423 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4424
4425 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4426 dynamic bounds before computing its upper bound.
4427 (ada_discrete_type_low_bound): Same as above with the lower bound.
4428
4429 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4430
4431 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4432 range types. Adjust the array handling implementation to
4433 take advantage of this change.
4434 (resolve_dynamic_range): New function, mostly extracted from
4435 resolve_dynamic_bounds.
4436 (resolve_dynamic_array): New function, mostly extracted from
4437 resolve_dynamic_bounds.
4438 (resolve_dynamic_bounds): Delete.
4439 (resolve_dynamic_type): Reimplement. Add handling of
4440 TYPE_CODE_RANGE types.
4441
4442 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4443
4444 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4445 handling of parallel ___XA types.
4446
4447 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4448
4449 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4450 unnecessary second call to static_unwrap_type.
4451
4452 2014-04-27 Hui Zhu <hui@codesourcery.com>
4453
4454 * stack.c (print_frame_info): Call do_gdb_disassembly with
4455 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4456
4457 2014-04-26 Doug Evans <xdje42@gmail.com>
4458
4459 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4460
4461 2014-04-25 Pedro Alves <palves@redhat.com>
4462
4463 PR server/16255
4464 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4465 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4466 and newline from built string.
4467 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4468 (linux_ptrace_attach_fail_reason): ... this.
4469 * linux-nat.c (linux_nat_attach): Adjust to use
4470 linux_ptrace_attach_fail_reason.
4471
4472 2014-04-25 Pedro Alves <palves@redhat.com>
4473
4474 * remote.c (struct remote_state): Remove multi_process_aware,
4475 non_stop_aware, cond_tracepoints, cond_breakpoints,
4476 breakpoint_commands, fast_tracepoints, static_tracepoints,
4477 install_in_trace, disconnected_tracing,
4478 enable_disable_tracepoints, string_tracing, and
4479 augmented_libraries_svr4_read fields.
4480 (remote_multi_process_p): Move further below in the file.
4481 (struct packet_config): Add comments.
4482 (update_packet_config): Delete function.
4483 (show_packet_config_cmd): Use packet_config_support.
4484 (add_packet_config_cmd): Use NULL as set callback.
4485 (packet_ok): "set remote foo-packet"-style commands no longer
4486 change config->supported -- adjust.
4487 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4488 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4489 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4490 (PACKET_QNonStop, PACKET_multiprocess_feature)
4491 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4492 (PACKET_DisconnectedTracing_feature)
4493 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4494 (set_remote_protocol_packet_cmd): Delete function.
4495 (packet_config_support, packet_support): New functions.
4496 (set_remote_protocol_Z_packet_cmd): Don't call
4497 update_packet_config.
4498 (remote_query_attached, remote_pass_signals)
4499 (remote_program_signals, remote_threads_info)
4500 (remote_threads_extra_info, remote_start_remote): Use
4501 packet_support.
4502 (remote_start_remote): Use packet_config_support and
4503 packet_support.
4504 (init_all_packet_configs): Set all packets to unknown support,
4505 instead of calling update_packet_config.
4506 (remote_check_symbols): Use packet_support.
4507 (remote_supported_packet): Unconditionally set the packet config's
4508 support status.
4509 (remote_multi_process_feature, remote_non_stop_feature)
4510 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4511 (remote_breakpoint_commands_feature)
4512 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4513 (remote_install_in_trace_feature)
4514 (remote_disconnected_tracing_feature)
4515 (remote_enable_disable_tracepoint_feature)
4516 (remote_string_tracing_feature)
4517 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4518 (remote_protocol_features): Adjust to use remote_supported_packet
4519 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4520 "ConditionalTracepoints", "ConditionalBreakpoints",
4521 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4522 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4523 "EnableDisableTracepoints", and "tracenz".
4524 (remote_query_supported): Use packet_support.
4525 (remote_open_1): Adjust.
4526 (extended_remote_attach_1): Use packet_support. Switch on the
4527 result of packet_ok instead of checking whether the packet ended
4528 up disabled.
4529 (remote_vcont_resume): Use packet_support.
4530 (remote_resume, remote_stop_ns, fetch_register_using_p)
4531 (remote_prepare_to_store, store_register_using_P)
4532 (check_binary_download, remote_write_bytes): Use packet_support.
4533 (remote_vkill): Use packet_support. Switch on the result of
4534 packet_ok instead of checking whether the packet ended up
4535 disabled.
4536 (extended_remote_supports_disable_randomization): Use
4537 packet_support.
4538 (extended_remote_run): Switch on the result of packet_ok instead
4539 of checking whether the packet ended up disabled.
4540 (remote_insert_breakpoint, remote_remove_breakpoint)
4541 (remote_insert_watchpoint, remote_remove_watchpoint)
4542 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4543 packet_support.
4544 (remote_search_memory): Use packet_config_support.
4545 (remote_get_thread_local_address, remote_get_tib_address)
4546 (remote_hostio_send_command, remote_can_execute_reverse): Use
4547 packet_support.
4548 (remote_supports_cond_tracepoints)
4549 (remote_supports_cond_breakpoints)
4550 (remote_supports_fast_tracepoints)
4551 (remote_supports_static_tracepoints)
4552 (remote_supports_install_in_trace)
4553 (remote_supports_enable_disable_tracepoint)
4554 (remote_supports_string_tracing)
4555 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4556 the packet config says the feature is enabled or disabled.
4557 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4558 (remote_get_trace_status): Use packet_support.
4559 (remote_set_disconnected_tracing): Adjust to check whether the
4560 feature is enabled with packet_support.
4561 (remote_set_trace_buffer_size, remote_use_agent)
4562 (remote_can_use_agent, remote_supports_btrace): Use
4563 packet_support.
4564 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4565 Use packet_config_support.
4566 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4567 the packet config says the feature is enabled or disabled.
4568 (set_range_stepping): Use packet_support.
4569
4570 2014-04-25 Tom Tromey <tromey@redhat.com>
4571
4572 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4573 argument.
4574
4575 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4576
4577 * NEWS: Mention support for C99 variable length arrays.
4578
4579 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4580
4581 * ada-lang.c (standard_exc): Expand introductory comment.
4582
4583 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4584 Walfred Tedeschi <walfred.tedeschi@intel.com>
4585
4586 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4587 AVX512 registers.
4588 (amd64_linux_read_description): Add code to handle AVX512 xstate
4589 mask and return respective tdesc.
4590 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4591 and features/i386/x32-avx512-linux.c.
4592 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4593 (amd64_linux_core_read_description): Add code to handle AVX512
4594 xstate mask and return respective tdesc.
4595 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4596 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4597 calculation.
4598 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4599 (tdesc_amd64_avx512_linux): New prototype.
4600 (tdesc_x32_avx512_linux): Likewise.
4601 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4602 features/i386/x32-avx512.c.
4603 (amd64_ymm_avx512_names): New register names for pseudo
4604 registers YMM16-31.
4605 (amd64_ymmh_avx512_names): New register names for raw registers
4606 YMMH16-31.
4607 (amd64_k_names): New register names for K registers.
4608 (amd64_zmmh_names): New register names for ZMM raw registers.
4609 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4610 (amd64_xmm_avx512_names): New register names for XMM16-31
4611 registers.
4612 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4613 registers.
4614 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4615 if feature is present.
4616 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4617 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4618 (AMD64_NUM_REGS): Adjust to new number of registers.
4619 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4620 registers supplied via XSTATE by AVX512 registers.
4621 (i386_linux_read_description): Add case for AVX512.
4622 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4623 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4624 (i386_linux_core_read_description): Add case for AVX512.
4625 (i386_linux_init_abi): Install supported register note section
4626 for AVX512.
4627 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4628 AVX512.
4629 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4630 registers to be number of zmm7h + 1.
4631 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4632 * i386-tdep.c: Include features/i386/i386-avx512.c.
4633 (i386_zmm_names): Add ZMM pseudo register names array.
4634 (i386_zmmh_names): Add ZMM raw register names array.
4635 (i386_k_names): Add K raw register names array.
4636 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4637 registers. AVX512 has 16 more ZMM registers than there are YMM
4638 registers.
4639 (i386_zmmh_regnum_p): Add function to look up register number of
4640 ZMM raw registers.
4641 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4642 (i386_k_regnum_p): Likewise for K raw registers.
4643 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4644 registers added by AVX512.
4645 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4646 registers added by AVX512.
4647 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4648 added by AVX512.
4649 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4650 (i386_pseudo_register_name): Add ZMM pseudo registers.
4651 (i386_zmm_type): Construct and return vector registers type for ZMM
4652 registers.
4653 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4654 ZMM0-31 pseudo registers and K registers.
4655 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4656 and YMM16-31 registers from register cache.
4657 (i386_pseudo_register_write): Add code to write K, ZMM and
4658 YMM16-31 registers.
4659 (i386_register_reggroup_p): Add code to include/exclude AVX512
4660 registers in/from respective register groups.
4661 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4662 registers if feature is present in xcr0.
4663 (i386_gdbarch_init): Add code to initialize AVX512 feature
4664 variables in tdep structure, wire in pseudo registers and call
4665 initialize_tdesc_i386_avx512.
4666 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4667 variables.
4668 (i386_regnum): Add AVX512 registers.
4669 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4670 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4671 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4672 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4673 512 bits wide.
4674 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4675 (i386_ymm_avx512_regnum_p): Likewise.
4676 (i386_k_regnum_p): Likewise.
4677 (i386_zmm_regnum_p): Likewise.
4678 (i386_zmmh_regnum_p): Likewise.
4679 * i387-tdep.c : Update year in copyright notice.
4680 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4681 XSAVE buffer.
4682 (XSAVE_YMM_AVX512_ADDR): New macro.
4683 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4684 XSAVE buffer.
4685 (XSAVE_XMM_AVX512_ADDR): New macro.
4686 (xsave_avx512_k_offset): New table for K register offsets in
4687 XSAVE buffer.
4688 (XSAVE_AVX512_K_ADDR): New macro.
4689 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4690 in XSAVE buffer.
4691 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4692 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4693 buffer.
4694 (i387_collect_xsave): Add code to collect AVX512 registers from
4695 XSAVE buffer.
4696 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4697 of XMM16-31 registers.
4698 (I387_NUM_K_REGS): New define for number of K registers.
4699 (I387_K0_REGNUM): New define for K0 register number.
4700 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4701 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4702 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4703 registers.
4704 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4705 (I387_XMM16_REGNUM): New define for XMM16 register number.
4706 (I387_YMM0_REGNUM): New define for YMM0 register number.
4707 (I387_KEND_REGNUM): New define for last K register number.
4708 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4709 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4710 number.
4711 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4712 number.
4713 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4714 size.
4715 * features/Makefile: Add AVX512 related files.
4716 * features/i386/32bit-avx512.xml: New file.
4717 * features/i386/64bit-avx512.xml: Likewise.
4718 * features/i386/amd64-avx512-linux.c: Likewise.
4719 * features/i386/amd64-avx512-linux.xml: Likewise.
4720 * features/i386/amd64-avx512.c: Likewise.
4721 * features/i386/amd64-avx512.xml: Likewise.
4722 * features/i386/i386-avx512-linux.c: Likewise.
4723 * features/i386/i386-avx512-linux.xml: Likewise.
4724 * features/i386/i386-avx512.c: Likewise.
4725 * features/i386/i386-avx512.xml: Likewise.
4726 * features/i386/x32-avx512-linux.c: Likewise.
4727 * features/i386/x32-avx512-linux.xml: Likewise.
4728 * features/i386/x32-avx512.c: Likewise.
4729 * features/i386/x32-avx512.xml: Likewise.
4730 * regformats/i386/amd64-avx512-linux.dat: New file.
4731 * regformats/i386/amd64-avx512.dat: Likewise.
4732 * regformats/i386/i386-avx512-linux.dat: Likewise.
4733 * regformats/i386/i386-avx512.dat: Likewise.
4734 * regformats/i386/x32-avx512-linux.dat: Likewise.
4735 * regformats/i386/x32-avx512.dat: Likewise.
4736 * NEWS: Add note about new support for AVX512.
4737
4738
4739 2014-04-23 Pedro Alves <palves@redhat.com>
4740
4741 * breakpoint.c (insert_bp_location): Tolerate errors if the
4742 breakpoint is set in a user-loaded objfile.
4743 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4744 location is marked shlib_disabled. If the breakpoint is set in a
4745 user-loaded objfile is a GDB-side memory breakpoint, validate it
4746 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4747 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4748 flag.
4749 * mem-break.c (memory_validate_breakpoint): New function.
4750 * objfiles.c (userloaded_objfile_contains_address_p): New
4751 function.
4752 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4753 * target.h (memory_validate_breakpoint): New declaration.
4754
4755 2014-04-23 Pedro Alves <palves@redhat.com>
4756
4757 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4758 the breakpoint is set in a shared library, only suppress
4759 errors for software breakpoints, not hardware breakpoints.
4760
4761 2014-04-22 Pedro Alves <palves@redhat.com>
4762
4763 * infrun.c (schedlock_applies): New function, factored out from
4764 find_thread_needs_step_over.
4765 (find_thread_needs_step_over): Use it.
4766 (switch_back_to_stepped_thread): Always clear trap_expected if the
4767 step over is finished. Return early if scheduler locking applies.
4768 Look for the stepping thread and a potential step-over thread with
4769 a single loop.
4770 (currently_stepping_or_nexting_callback): Delete.
4771
4772 2014-04-22 Nick Clifton <nickc@redhat.com>
4773
4774 * NEWS: Mention that ARM sim now supports tracing.
4775
4776 2014-04-22 Yao Qi <yao@codesourcery.com>
4777
4778 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4779 to ...
4780 * tracefile.c (tracefile_fetch_registers): ... it. New
4781 function.
4782 * tracefile.h (tracefile_fetch_registers): Declare.
4783 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4784 tracefile_fetch_registers.
4785
4786 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4787
4788 PR gdb/14018
4789 * windows-nat.c (thread_rec): Don't display a warning when
4790 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4791 fails for any reason, set th->suspended to -1, so that we don't
4792 try to resume such a thread. Also, don't return NULL in these
4793 cases, to avoid completely ruin the session due to "PC register is
4794 not available" error.
4795 (do_windows_fetch_inferior_registers): Check errors in
4796 GetThreadContext call.
4797 (windows_continue): Accept an additional argument KILLED; if not
4798 zero, ignore errors in the SetThreadContext call, since the
4799 inferior was killed and is shutting down.
4800 (windows_resume, get_windows_debug_event)
4801 (windows_create_inferior, windows_mourn_inferior)
4802 (windows_kill_inferior): All callers of windows_continue changed
4803 to adjust to its new calling sequence.
4804
4805 2014-04-19 Yao Qi <yao@codesourcery.com>
4806
4807 * ctf.c (ctf_open): Call post_create_inferior.
4808
4809 2014-04-19 Yao Qi <yao@codesourcery.com>
4810
4811 * ctf.c (handle_id): New static variable.
4812 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4813 value. Get the declaration of event "register" and get length
4814 of field "contents".
4815
4816 2014-04-19 Yao Qi <yao@codesourcery.com>
4817
4818 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4819
4820 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4821
4822 * valops.c (oload_method_static): Remove unnecessary argument
4823 METHOD. Update all callers.
4824
4825 2014-04-18 Pedro alves <palves@redhat.com>
4826 Tom Tromey <tromey@redhat.com>
4827
4828 PR backtrace/15558
4829 * frame.c (get_prev_frame_1): Rename to ...
4830 (get_prev_frame_always): ... this, and make extern. Adjust.
4831 (skip_artificial_frames): Use get_prev_frame_always.
4832 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4833 (get_frame_unwind_stop_reason): Adjust to rename.
4834 * frame.h (get_prev_frame_always): Declare.
4835 * inline-frame.c: Include frame.h.
4836 (inline_frame_this_id): Use get_prev_frame_always.
4837
4838 2014-04-18 Tristan Gingold <gingold@adacore.com>
4839
4840 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4841 code by using bfd_mach_o_get_base_address.
4842
4843 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4844
4845 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4846 (spu_ax_pseudo_register_collect): New function.
4847 (spu_ax_pseudo_register_push_stack): Likewise.
4848 (spu_dwarf_reg_to_regnum): Likewise.
4849 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4850
4851 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4852
4853 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4854 Replace FRAME argument with FRAME_ID.
4855 * gdbarch.c, gdbarch.h: Regenerate.
4856 * findvar.c (default_value_from_register): Add GDBARCH argument;
4857 replace FRAME by FRAME_ID. No longer call get_frame_id.
4858 (value_from_register): Update call to gdbarch_value_from_register.
4859 * value.h (default_value_from_register): Update prototype.
4860 * s390-linux-tdep.c (s390_value_from_register): Update interface
4861 and call to default_value_from_register.
4862 * spu-tdep.c (spu_value_from_register): Likewise.
4863
4864 * findvar.c (address_from_register): Remove TYPE argument.
4865 Do not call value_from_register; use gdbarch_value_from_register
4866 with null_frame_id instead.
4867 * value.h (address_from_register): Update prototype.
4868 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4869 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4870 address_from_register interface change.
4871
4872 2014-04-17 Yao Qi <yao@codesourcery.com>
4873
4874 * gdbtypes.h: Update comments to link to types and macros'
4875 definitions.
4876
4877 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4878
4879 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4880
4881 2014-04-16 Keith Seitz <keiths@redhat.com>
4882
4883 PR gdb/15827
4884 * dwarf2read.c (skip_one_die): Check that all relative-offset
4885 sibling DIEs fall within range of the current reader's buffer.
4886 (read_partial_die): Likewise.
4887
4888 2014-04-16 Keith Seitz <keiths@redhat.com>
4889
4890 PR c++/16597
4891 * cp-namespace.c (lookup_symbol_file): If the type name of
4892 `this' is NULL, return immediately.
4893
4894 2014-04-14 Keith Seitz <keiths@redhat.com>
4895
4896 PR c++/16253
4897 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4898 from symbol_matches_domain in symtab.c. All local callers
4899 of symbol_matches_domain updated.
4900 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4901 search STRUCT_DOMAIN.
4902 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4903 independently. standard_lookup will do that automatically.
4904 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4905 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4906 (cp_lookup_symbol_in_namespace): Likewise.
4907 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4908 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4909 may return a STRUCT_DOMAIN match.
4910 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4911 * cp-support.c: Include language.h.
4912 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4913 VAR_DOMAIN.
4914 * psymtab.c (match_partial_symbol): Compare the requested
4915 domain with the symbol's domain directly.
4916 (lookup_partial_symbol): Likewise.
4917 * symtab.c (lookup_symbol_in_language): Explain when/why
4918 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4919 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4920 appropriate languages.
4921 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4922 and moved to ada-lang.c
4923 (lookup_block_symbol): Explain that this function only returns
4924 symbol matching the requested DOMAIN.
4925 Compare the requested domain with the symbol's domain directly.
4926 (iterate_over_symbols): Compare the requested domain with the
4927 symbol's domain directly.
4928 * symtab.h (symbol_matches_domain): Remove.
4929
4930 2014-04-14 Tom Tromey <tromey@redhat.com>
4931
4932 PR c++/15246:
4933 * c-exp.y (type_aggregate_p): New function.
4934 (qualified_name, classify_inner_name): Use it.
4935 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4936 and TYPE_TARGET_TYPE of an enum type.
4937 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4938 an enum type.
4939 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4940 handle TYPE_DECLARED_CLASS.
4941 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4942 types.
4943 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4944 * valops.c (enum_constant_from_type): New function.
4945 (value_aggregate_elt): Use it.
4946 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4947 TYPE_CODE_ENUM.
4948
4949 2014-04-14 Tom Tromey <tromey@redhat.com>
4950
4951 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4952 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4953 const.
4954 * value.h (value_aggregate_elt): Update.
4955
4956 2014-04-14 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4959
4960 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4961
4962 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4963 (evaluate_subexp_standard): Pass noside argument.
4964 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4965 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4966 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4967 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4968 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4969
4970 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4971
4972 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4973 points to a constant blob.
4974
4975 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4976
4977 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4978 property and store it as the high bound and flag the range accordingly.
4979 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4980 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4981 * gdbtypes.h (enum range_flags): New enum.
4982 (struct range_bounds): Add flags member.
4983
4984 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4985
4986 * c-typeprint.c (c_type_print_varspec_suffix): Added
4987 check for not yet resolved high bound. If unresolved, print
4988 "variable length" string to the console instead of random
4989 length.
4990
4991 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4992
4993 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4994 value.
4995 (ada_template_to_fixed_record_type_1): Likewise.
4996 (ada_to_fixed_type_1): Likewise.
4997 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4998 (cp_print_value): Likewise.
4999 * d-valprint.c (dynamic_array_type): Likewise.
5000 * findvar.c (address_of_variable): Likewise.
5001 * jv-valprint.c (java_value_print): Likewise.
5002 * valops.c (value_ind): Likewise.
5003 * value.c (coerce_ref): Likewise.
5004
5005 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5006
5007 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5008 value and retrieve the dynamic type size.
5009
5010 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5011
5012 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5013 passed to sizeof is dynamic evaluate the argument to compute the length.
5014
5015 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5016 Joel Brobecker <brobecker@adacore.com>
5017
5018 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5019 (dwarf2_evaluate_property): New function.
5020 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5021 * dwarf2read.c (attr_to_dynamic_prop): New function.
5022 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5023 attribute.
5024 * gdbtypes.c: Include dwarf2loc.h.
5025 (is_dynamic_type): New function.
5026 (resolve_dynamic_type): New function.
5027 (resolve_dynamic_bounds): New function.
5028 (get_type_length): New function.
5029 (check_typedef): Use get_type_length to compute type length.
5030 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5031 (TYPE_LOW_BOUND_KIND): New macro.
5032 (is_dynamic_type): New function prototype.
5033 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5034 to resolve dynamic properties of the type. Update comment.
5035 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5036
5037 2014-04-14 Richard Henderson <rth@redhat.com>
5038
5039 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5040
5041 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5042 Doug Evans <xdje42@gmail.com>
5043
5044 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5045 dereference TYPE_CODE_REF values.
5046
5047 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5048
5049 Revert the following changes due to regressions:
5050
5051 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5052 (dwarf2_evaluate_property): New function.
5053 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5054 * dwarf2read.c (attr_to_dynamic_prop): New function.
5055 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5056 attribute.
5057 * gdbtypes.c: Include dwarf2loc.h.
5058 (is_dynamic_type): New function.
5059 (resolve_dynamic_type): New function.
5060 (resolve_dynamic_bounds): New function.
5061 (get_type_length): New function.
5062 (check_typedef): Use get_type_length to compute type length.
5063 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5064 (TYPE_LOW_BOUND_KIND): New macro.
5065 (is_dynamic_type): New function prototype.
5066 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5067 to resolve dynamic properties of the type. Update comment.
5068 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5069
5070 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5071 passed to sizeof is dynamic evaluate the argument to compute the length.
5072
5073 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5074 value and retrieve the dynamic type size.
5075
5076 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5077 (ada_template_to_fixed_record_type_1): Likewise.
5078 (ada_to_fixed_type_1): Likewise.
5079 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5080 (cp_print_value): Likewise.
5081 * d-valprint.c (dynamic_array_type): Likewise.
5082 * eval.c (evaluate_subexp_with_coercion): Likewise.
5083 * findvar.c (address_of_variable): Likewise.
5084 * jv-valprint.c (java_value_print): Likewise.
5085 * valops.c (value_ind): Likewise.
5086 * value.c (coerce_ref): Likewise.
5087
5088 * c-typeprint.c (c_type_print_varspec_suffix): Added
5089 check for not yet resolved high bound. If unresolved, print
5090 "variable length" string to the console instead of random
5091 length.
5092
5093 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5094 property and store it as the high bound and flag the range accordingly.
5095 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5096 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5097 * gdbtypes.h (enum range_flags): New enum.
5098 (struct range_bounds): Add flags member.
5099
5100 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5101 points to a constant blob.
5102
5103 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5104 (evaluate_subexp_standard): Pass noside argument.
5105 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5106 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5107 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5108 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5109 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5110
5111 2014-04-11 Keith Seitz <keiths@redhat.com>
5112
5113 PR c++/16675
5114 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5115 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5116 reference types.
5117
5118 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5119
5120 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5121 (evaluate_subexp_standard): Pass noside argument.
5122 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5123 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5124 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5125 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5126 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5127
5128 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5129
5130 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5131 points to a constant blob.
5132
5133 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5134
5135 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5136 property and store it as the high bound and flag the range accordingly.
5137 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5138 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5139 * gdbtypes.h (enum range_flags): New enum.
5140 (struct range_bounds): Add flags member.
5141
5142 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5143
5144 * c-typeprint.c (c_type_print_varspec_suffix): Added
5145 check for not yet resolved high bound. If unresolved, print
5146 "variable length" string to the console instead of random
5147 length.
5148
5149 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5150
5151 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5152 (ada_template_to_fixed_record_type_1): Likewise.
5153 (ada_to_fixed_type_1): Likewise.
5154 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5155 (cp_print_value): Likewise.
5156 * d-valprint.c (dynamic_array_type): Likewise.
5157 * eval.c (evaluate_subexp_with_coercion): Likewise.
5158 * findvar.c (address_of_variable): Likewise.
5159 * jv-valprint.c (java_value_print): Likewise.
5160 * valops.c (value_ind): Likewise.
5161 * value.c (coerce_ref): Likewise.
5162
5163 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5164
5165 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5166 value and retrieve the dynamic type size.
5167
5168 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5169
5170 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5171 passed to sizeof is dynamic evaluate the argument to compute the length.
5172
5173 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5174
5175 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5176 (dwarf2_evaluate_property): New function.
5177 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5178 * dwarf2read.c (attr_to_dynamic_prop): New function.
5179 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5180 attribute.
5181 * gdbtypes.c: Include dwarf2loc.h.
5182 (is_dynamic_type): New function.
5183 (resolve_dynamic_type): New function.
5184 (resolve_dynamic_bounds): New function.
5185 (get_type_length): New function.
5186 (check_typedef): Use get_type_length to compute type length.
5187 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5188 (TYPE_LOW_BOUND_KIND): New macro.
5189 (is_dynamic_type): New function prototype.
5190 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5191 to resolve dynamic properties of the type. Update comment.
5192 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5193
5194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5195
5196 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5197 declaring high/low bounds and change uses accordingly. Call
5198 create_range_type instead of create_static_range_type.
5199 * gdbtypes.c (create_range_type): New function.
5200 (create_range_type): Convert bounds into struct bound_prop and pass
5201 them to create_range_type.
5202 * gdbtypes.h (struct bound_prop): New struct.
5203 (create_range_type): New function prototype.
5204 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5205 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5206 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5207 part of the bound.
5208 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5209
5210 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5211
5212 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5213 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5214 * ada-lang.c: All uses of create_range_type updated.
5215 * coffread.c: All uses of create_range_type updated.
5216 * dwarf2read.c: All uses of create_range_type updated.
5217 * f-exp.y: All uses of create_range_type updated.
5218 * m2-valprint.c: All uses of create_range_type updated.
5219 * mdebugread.c: All uses of create_range_type updated.
5220 * stabsread.c: All uses of create_range_type updated.
5221 * valops.c: All uses of create_range_type updated.
5222 * valprint.c: All uses of create_range_type updated.
5223
5224 2014-04-10 Pedro Alves <palves@redhat.com>
5225
5226 * breakpoint.c (single_step_breakpoints)
5227 (single_step_gdbarch): Move up in the file.
5228 (one_breakpoint_xfer_memory): New function, factored out from ...
5229 (breakpoint_xfer_memory): ... here. Also process single-step
5230 breakpoints.
5231
5232 2014-04-09 Tristan Gingold <gingold@adacore.com>
5233
5234 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5235 comments.
5236 (darwin_decode_exception_message): Free port only after use.
5237
5238 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5239
5240 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5241 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5242 when setting the size of call_length.
5243
5244 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5245
5246 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5247 dereference TYPE_CODE_REF values.
5248
5249 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5250
5251 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5252 end of warning message.
5253
5254 2014-04-03 Doug Evans <dje@google.com>
5255
5256 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5257 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5258
5259 2014-04-02 Alan Modra <amodra@gmail.com>
5260
5261 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5262 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5263 (struct symbol_file_add_from_memory_args): Add size field.
5264 (find_vdso_size): New function.
5265 (add_vsyscall_page): Attempt to find vdso size.
5266
5267 2014-04-01 Doug Evans <dje@google.com>
5268
5269 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5270
5271 2014-04-01 Tristan Gingold <gingold@adacore.com>
5272
5273 * darwin-nat.c (darwin_encode_reply): Add prototype.
5274 (darwin_decode_exception_message): Reply to unknown inferiors.
5275 (darwin_decode_message): Handle message by id. Ignore message
5276 to unknown inferior.
5277 (darwin_wait): Discard unknown messages, add debug trace.
5278
5279 2014-03-31 Doug Evans <dje@google.com>
5280
5281 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5282 comp_dir_string.
5283
5284 2014-03-31 Doug Evans <dje@google.com>
5285
5286 New option "set print symbol-loading".
5287 * NEWS: Mention it.
5288 * solib.c (solib_read_symbols): Only print symbol loading messages
5289 if requested.
5290 (solib_add): If symbol loading is in "brief" mode, notify user
5291 symbols are being loaded.
5292 (reload_shared_libraries_1): Ditto.
5293 * symfile.c (print_symbol_loading_off): New static global.
5294 (print_symbol_loading_brief): New static global.
5295 (print_symbol_loading_full): New static global.
5296 (print_symbol_loading_enums): New static global.
5297 (print_symbol_loading): New static global.
5298 (print_symbol_loading_p): New function.
5299 (symbol_file_add_with_addrs): Only print symbol loading messages
5300 if requested.
5301 (_initialize_symfile): Register "print symbol-loading" set/show
5302 command.
5303 * symfile.h (print_symbol_loading_p): Declare.
5304
5305 2014-03-30 Doug Evans <xdje42@gmail.com>
5306
5307 * infrun.c (set_last_target_status): New function.
5308 (handle_inferior_event): Call it.
5309
5310 2014-03-30 Doug Evans <xdje42@gmail.com>
5311
5312 * inferior.h (enum stop_kind): Improve comment.
5313
5314 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5315
5316 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5317 a reference, strip the reference layer before calling
5318 the lang_ops value_has_mutated callback.
5319
5320 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5321
5322 Remove some globals from our parser.
5323 * language.c (unk_lang_parser): Add "struct parser_state"
5324 argument.
5325 * language.h (struct language_defn) <la_parser>: Likewise.
5326 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5327 (initialize_expout): Add "struct parser_state" argument.
5328 Rewrite function to use the parser state.
5329 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5330 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5331 write_exp_elt_longcst, write_exp_elt_dblcst,
5332 write_exp_elt_decfloatcst, write_exp_elt_type,
5333 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5334 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5335 write_dollar_variable): Likewise.
5336 (parse_exp_in_context_1): Use parser state.
5337 (insert_type_address_space): Add "struct parser_state" argument.
5338 Use parser state.
5339 (increase_expout_size): New function.
5340 * parser-defs.h: Forward declare "struct language_defn" and
5341 "struct parser_state".
5342 (expout, expout_size, expout_ptr): Remove extern declarations.
5343 (parse_gdbarch, parse_language): Rewrite macro declarations to
5344 accept the parser state.
5345 (struct parser_state): New struct.
5346 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5347 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5348 write_exp_elt_decfloatcst, write_exp_elt_type,
5349 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5350 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5351 write_exp_msymbol, write_dollar_variable,
5352 mark_struct_expression, insert_type_address_space): Add "struct
5353 parser_state" argument.
5354 (increase_expout_size): New function.
5355 * utils.c (do_clear_parser_state): New function.
5356 (make_cleanup_clear_parser_state): Likewise.
5357 * utils.h (make_cleanup_clear_parser_state): New function
5358 prototype.
5359 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5360 Update calls to write_exp* in order to pass the parser state.
5361 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5362 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5363 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5364 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5365 * stap-probe.c (stap_parse_register_operand): Likewise.
5366 (stap_parse_single_operand): Likewise.
5367 (stap_parse_argument_1): Likewise.
5368 (stap_parse_argument): Use parser state.
5369 * stap-probe.h: Include "parser-defs.h".
5370 (struct stap_parse_info) <pstate>: New field.
5371 * c-exp.y (parse_type): Rewrite to use parser state.
5372 (yyparse): Redefine to c_parse_internal.
5373 (pstate): New global variable.
5374 (parse_number): Add "struct parser_state" argument.
5375 (write_destructor_name): Likewise.
5376 (type_exp): Update calls to write_exp* and similars in order to
5377 use parser state.
5378 (exp1, exp, variable, qualified_name, space_identifier,
5379 typename, typebase): Likewise.
5380 (write_destructor_name, parse_number, lex_one_token,
5381 classify_name, classify_inner_name, c_parse): Add "struct
5382 parser_state" argument. Update function to use parser state.
5383 * c-lang.h: Forward declare "struct parser_state".
5384 (c_parse): Add "struct parser_state" argument.
5385 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5386 (yyparse): Redefine macro to ada_parse_internal.
5387 (pstate): New variable.
5388 (write_int, write_object_renaming, write_var_or_type,
5389 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5390 type_int, type_long, type_long_long, type_float, type_double,
5391 type_long_double, type_char, type_boolean, type_system_address):
5392 Add "struct parser_state" argument.
5393 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5394 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5395 var_or_type, aggregate, aggregate_component_list,
5396 positional_list, others, component_group,
5397 component_associations): Update calls to write_exp* and similar
5398 functions in order to use parser state.
5399 (ada_parse, write_var_from_sym, write_int,
5400 write_exp_op_with_string, write_object_renaming,
5401 find_primitive_type, write_selectors, write_ambiguous_var,
5402 write_var_or_type, write_name_assoc, type_int, type_long,
5403 type_long_long, type_float, type_double, type_long_double,
5404 type_char, type_boolean, type_system_address): Add "struct
5405 parser_state" argument. Adjust function to use parser state.
5406 * ada-lang.c (parse): Likewise.
5407 * ada-lang.h: Forward declare "struct parser_state".
5408 (ada_parse): Add "struct parser_state" argument.
5409 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5410 calls to both functions.
5411 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5412 parser state.
5413 (yyparse): Redefine macro to f_parse_internal.
5414 (pstate): New variable.
5415 (parse_number): Add "struct parser_state" argument.
5416 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5417 and similars in order to use parser state.
5418 (parse_number): Adjust code to use parser state.
5419 (yylex): Likewise.
5420 (f_parse): New function.
5421 * f-lang.h: Forward declare "struct parser_state".
5422 (f_parse): Add "struct parser_state" argument.
5423 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5424 parser state.
5425 (yyparse): Redefine macro for java_parse_internal.
5426 (pstate): New variable.
5427 (push_expression_name, push_expression_name, insert_exp): Add
5428 "struct parser_state" argument.
5429 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5430 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5431 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5432 PostIncrementExpression, PostDecrementExpression,
5433 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5434 UnaryExpressionNotPlusMinus, CastExpression,
5435 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5436 RelationalExpression, EqualityExpression, AndExpression,
5437 ExclusiveOrExpression, InclusiveOrExpression,
5438 ConditionalAndExpression, ConditionalOrExpression,
5439 ConditionalExpression, Assignment, LeftHandSide): Update
5440 calls to write_exp* and similars in order to use parser state.
5441 (parse_number): Ajust code to use parser state.
5442 (yylex): Likewise.
5443 (java_parse): New function.
5444 (push_variable): Add "struct parser_state" argument. Adjust
5445 code to user parser state.
5446 (push_fieldnames, push_qualified_expression_name,
5447 push_expression_name, insert_exp): Likewise.
5448 * jv-lang.h: Forward declare "struct parser_state".
5449 (java_parse): Add "struct parser_state" argument.
5450 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5451 parser state.
5452 (yyparse): Redefine macro to m2_parse_internal.
5453 (pstate): New variable.
5454 (type_exp, exp, fblock, variable, type): Update calls to
5455 write_exp* and similars to use parser state.
5456 (yylex): Likewise.
5457 (m2_parse): New function.
5458 * m2-lang.h: Forward declare "struct parser_state".
5459 (m2_parse): Add "struct parser_state" argument.
5460 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5461 * objc-lang.h: Forward declare "struct parser_state".
5462 (end_msglist): Add "struct parser_state" argument.
5463 * p-exp.y (parse_type): Rewrite macro to use parser state.
5464 (yyparse): Redefine macro to pascal_parse_internal.
5465 (pstate): New variable.
5466 (parse_number): Add "struct parser_state" argument.
5467 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5468 write_exp* and similars in order to use parser state.
5469 (parse_number, yylex): Adjust code to use parser state.
5470 (pascal_parse): New function.
5471 * p-lang.h: Forward declare "struct parser_state".
5472 (pascal_parse): Add "struct parser_state" argument.
5473 * go-exp.y (parse_type): Rewrite macro to use parser state.
5474 (yyparse): Redefine macro to go_parse_internal.
5475 (pstate): New variable.
5476 (parse_number): Add "struct parser_state" argument.
5477 (type_exp, exp1, exp, variable, type): Update calls to
5478 write_exp* and similars in order to use parser state.
5479 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5480 to use parser state.
5481 (go_parse): Likewise.
5482 * go-lang.h: Forward declare "struct parser_state".
5483 (go_parse): Add "struct parser_state" argument.
5484
5485 2014-03-27 Doug Evans <dje@google.com>
5486
5487 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5488
5489 2014-03-27 Doug Evans <dje@google.com>
5490
5491 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5492 Remove argument abbrev_section. All callers updated.
5493
5494 2014-03-27 Doug Evans <dje@google.com>
5495
5496 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5497 addr_base, ranges_base.
5498
5499 2014-03-26 Keith Seitz <keiths@redhat.com>
5500
5501 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5502 types, not VAR_DOMAIN.
5503
5504 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5505
5506 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5507 "ra" registers.
5508 * features/nios2-linux.c: Regenerated.
5509 * features/nios2.c: Regenerated.
5510
5511 2014-03-25 Pedro Alves <palves@redhat.com>
5512
5513 * cli/cli-script.c (script_from_file): Force the interpreter to
5514 sync mode.
5515
5516 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5517
5518 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5519 small stack allocation.
5520
5521 2014-03-24 Tristan Gingold <gingold@adacore.com>
5522
5523 * darwin-nat.c (exc_server): Remove unused prototype.
5524 (darwin_dump_message): Correctly display data on x86_64.
5525 (darwin_encode_reply): Fix style.
5526 Add comments and fix indentation.
5527
5528 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5529
5530 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5531
5532 2014-03-22 Doug Evans <xdje42@gmail.com>
5533
5534 * infcmd.c: Whitespace fixes.
5535 (interrupt_command): Merge two function comments into one.
5536
5537 2014-03-22 Doug Evans <xdje42@gmail.com>
5538
5539 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5540 All uses updated.
5541
5542 2014-03-22 Yao Qi <yao@codesourcery.com>
5543
5544 * remote.c (target_read_live_memory): Remove.
5545 (memory_xfer_live_readonly_partial): Rename it to
5546 remote_xfer_live_readonly_partial. Remove argument 'object'.
5547 All callers updated. Call remote_read_bytes_1
5548 instead of target_read_live_memory.
5549 * tracepoint.c (set_traceframe_number): Remove.
5550 (make_cleanup_restore_traceframe_number): Likewise .
5551 * tracepoint.h (set_traceframe_number): Remove declaration.
5552 (make_cleanup_restore_traceframe_number): Likewise.
5553
5554 2014-03-22 Yao Qi <yao@codesourcery.com>
5555
5556 * remote.c (remote_read_bytes): Move code on reading from the
5557 remote stub to ...
5558 (remote_read_bytes_1): ... here. New function.
5559
5560 2014-03-22 Yao Qi <yao@codesourcery.com>
5561
5562 * ctf.c (ctf_xfer_partial): Check the return value of
5563 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5564 return TARGET_XFER_UNAVAILABLE.
5565 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5566 * target.c (target_read_live_memory): Move it to remote.c.
5567 (memory_xfer_live_readonly_partial): Likewise.
5568 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5569 * remote.c (target_read_live_memory): Moved from target.c.
5570 (memory_xfer_live_readonly_partial): Likewise.
5571 (remote_read_bytes): Factored out from
5572 memory_xfer_partial_1.
5573
5574 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5575
5576 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5577 NULL pointer.
5578
5579 2014-03-21 Pedro Alves <palves@redhat.com>
5580
5581 * infrun.c (normal_stop): Extend comment.
5582
5583 2014-03-21 Hui Zhu <hui@codesourcery.com>
5584 Pedro Alves <palves@redhat.com>
5585
5586 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5587 static buffer.
5588 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5589 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5590 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5591
5592 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5593
5594 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5595 `z' formatted output modifier.
5596
5597 2014-03-20 Tom Tromey <tromey@redhat.com>
5598 Sergio Durigan Junior <sergiodj@redhat.com>
5599
5600 * probe.c (parse_probes): Turn assert into an ordinary error.
5601 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5602 exceptions when parsing probes. Rearrange the code for clarity.
5603
5604 2014-03-20 Tom Tromey <tromey@redhat.com>
5605
5606 PR gdb/14135
5607 * top.c (execute_command): Only dispatch events if the command
5608 started the target.
5609
5610 2014-03-20 Tom Tromey <tromey@redhat.com>
5611
5612 PR cli/15718
5613 * infcall.c: Include event-top.h.
5614 (run_inferior_call): Call async_disable_stdin if needed.
5615
5616 2014-03-20 Pedro Alves <palves@redhat.com>
5617
5618 * infrun.c (prepare_to_proceed): Delete.
5619 (thread_still_needs_step_over): New function.
5620 (find_thread_needs_step_over): New function.
5621 (proceed): If the current thread needs a step-over, set its
5622 steping_over_breakpoint flag. Adjust to use
5623 find_thread_needs_step_over instead of prepare_to_proceed.
5624 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5625 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5626 breakpoint.
5627 (switch_back_to_stepped_thread): Step over breakpoints of all
5628 threads not the stepping thread, before switching back to the
5629 stepping thread.
5630
5631 2014-03-20 Pedro Alves <palves@redhat.com>
5632
5633 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5634 extern.
5635 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5636 * infrun.c (saved_singlestep_ptid)
5637 (stepping_past_singlestep_breakpoint): Delete.
5638 (resume): Remove stepping_past_singlestep_breakpoint handling.
5639 (proceed): Store the prev_pc of the stepping thread too.
5640 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5641 singlestep_pc.
5642 (enum infwait_states): Delete infwait_thread_hop_state.
5643 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5644 field.
5645 (handle_inferior_event): Adjust.
5646 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5647 handling and the thread-hop code. Before removing single-step
5648 breakpoints, check whether the thread hit a single-step breakpoint
5649 of another thread. If it did, the trap is not a random signal.
5650 (switch_back_to_stepped_thread): If the event thread hit a
5651 single-step breakpoint, unblock it before switching to the
5652 stepping thread. Handle the case of the stepped thread having
5653 advanced already.
5654 (keep_going): Handle the case of the current thread moving past a
5655 single-step breakpoint.
5656
5657 2014-03-20 Pedro Alves <palves@redhat.com>
5658
5659 PR breakpoints/7143
5660 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5661 are being stepped over.
5662 (breakpoint_address_match): Make extern.
5663 * breakpoint.h (breakpoint_address_match): New declaration.
5664 * inferior.h (stepping_past_instruction_at): New declaration.
5665 * infrun.c (struct step_over_info): New type.
5666 (step_over_info): New global.
5667 (set_step_over_info, clear_step_over_info)
5668 (stepping_past_instruction_at): New functions.
5669 (handle_inferior_event): Clear the step-over info when
5670 trap_expected is cleared.
5671 (resume): Remove now stale comment.
5672 (clear_proceed_status): Clear step-over info.
5673 (proceed): Adjust step-over handling to set or clear the step-over
5674 info instead of removing all breakpoints.
5675 (handle_signal_stop): When setting up a thread-hop, don't remove
5676 breakpoints here.
5677 (stop_stepping): Clear step-over info.
5678 (keep_going): Adjust step-over handling to set or clear step-over
5679 info and then always inserting breakpoints, instead of removing
5680 all breakpoints when stepping over one.
5681
5682 2014-03-20 Pedro Alves <palves@redhat.com>
5683
5684 * infrun.c (previous_inferior_ptid): Adjust comment.
5685 (deferred_step_ptid): Delete.
5686 (infrun_thread_ptid_changed, prepare_to_proceed)
5687 (init_wait_for_inferior): Adjust.
5688 (handle_signal_stop): Delete deferred_step_ptid handling.
5689
5690 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5691
5692 PR gdb/15358
5693 * defs.h (sync_quit_force_run): New declaration.
5694 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5695 * event-top.c (async_sigterm_handler): New declaration.
5696 (async_sigterm_token): New variable.
5697 (async_init_signals): Create also async_sigterm_token.
5698 (async_sigterm_handler): New function.
5699 (sync_quit_force_run): New variable.
5700 (handle_sigterm): Replace quit_force call by other calls.
5701 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5702
5703 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5704
5705 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5706 offset into SPE pseudo registers.
5707
5708 2014-03-18 Pedro Alves <palves@redhat.com>
5709
5710 PR gdb/13860
5711 * inferior.h (print_stop_event): Declare.
5712 * infrun.c (print_stop_event): New, factored out from ...
5713 (normal_stop): ... this.
5714 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5715 of bpstat_print/print_stack_frame.
5716
5717 2014-03-17 Tom Tromey <tromey@redhat.com>
5718
5719 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5720
5721 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5722
5723 * ada-lang.c (decode_constrained_packed_array): Perform a
5724 minimal coercion for reference with coerce_ref instead of
5725 ada_coerce_ref.
5726
5727 2014-03-17 Tristan Gingold <gingold@adacore.com>
5728
5729 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5730 (darwin_solib_create_inferior_hook): Emit a warning if version
5731 is unhandled.
5732
5733 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5734
5735 * python/py-value.c (get_field_flag): Cast flag_name argument to
5736 PyObject_GetAttrString to support Python 2.4.
5737
5738 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5739
5740 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5741 (Global Maintainers): Remove Jan Kratochvil.
5742
5743 2014-03-14 Pedro Alves <palves@redhat.com>
5744
5745 * inferior.h (terminal_ours_for_output): Rename to ...
5746 (child_terminal_ours_for_output): ... this.
5747 (terminal_save_ours): Rename to ...
5748 (child_terminal_save_ours): ... this.
5749 (terminal_ours): Rename to ...
5750 (child_terminal_ours): ... this.
5751 (terminal_inferior): Rename to ...
5752 (child_terminal_inferior): ... this.
5753 (terminal_init_inferior): Rename to ...
5754 (child_terminal_init_inferior): ... this.
5755 (terminal_init_inferior_with_pgrp): Rename to ...
5756 (child_terminal_init_inferior_with_pgrp): ... this.
5757 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5758 (child_terminal_init_with_pgrp): ... this.
5759 (terminal_save_ours): Rename to ...
5760 (child_terminal_save_ours): ... this.
5761 (terminal_init_inferior): Rename to ...
5762 (child_terminal_init): ... this. Adjust.
5763 (terminal_inferior): Rename to ...
5764 (child_terminal_inferior): ... this.
5765 (terminal_ours_for_output): Rename to ...
5766 (child_terminal_ours_for_output): ... this. Adjust.
5767 (terminal_ours): Rename to ...
5768 (child_terminal_ours): ... this.
5769 (terminal_ours_1): Rename to ...
5770 (child_terminal_ours_1): ... this. Adjust.
5771 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5772 * windows-nat.c (do_initial_windows_stuff): Adjust.
5773 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5774 (gnu_terminal_init): ... this. Adjust.
5775 (gnu_target): Adjust.
5776 * inf-child.c (inf_child_target): Adjust.
5777
5778 2014-03-13 Doug Evans <xdje42@gmail.com>
5779
5780 PR guile/16612
5781 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5782 new eq?-hashtab.
5783
5784 2014-03-13 Doug Evans <xdje42@gmail.com>
5785
5786 * value.c (record_latest_value): Call release_value_or_incref
5787 instead of release_value.
5788
5789 2014-03-13 Pedro Alves <palves@redhat.com>
5790
5791 * procfs.c (procfs_target): Don't override to_shortname,
5792 to_longname or to_doc.
5793
5794 2014-03-13 Pedro Alves <palves@redhat.com>
5795
5796 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5797 Unix in user visible strings.
5798
5799 2014-03-12 Stan Shebs <stan@codesourcery.com>
5800
5801 * gdbtypes.h: Annotate comments for Doxygen, add a page
5802 block comment with some general info.
5803
5804 2014-03-12 Pedro Alves <palves@redhat.com>
5805
5806 * infcmd.c (prepare_execution_command): New function, factored out
5807 from several execution commands.
5808 (run_command_1, continue_command, step_1, jump_command)
5809 (signal_command, until_command, advance_command, finish_command)
5810 (attach_command): Use prepare_execution_command.
5811
5812 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5813
5814 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5815 (MAX_BPTS): Define.
5816 (MAX_WPTS): Define.
5817 (struct arm_linux_thread_points): Removed.
5818 (struct arm_linux_process_info): New.
5819 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5820 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5821 (arm_linux_find_breakpoints_by_tid): Removed.
5822 (struct arch_lwp_info): New.
5823 (arm_linux_find_process_pid): New functions.
5824 (arm_linux_add_process): New functions.
5825 (arm_linux_process_info_get): New functions.
5826 (arm_linux_forget_process): New function.
5827 (arm_linux_get_debug_reg_state): New function.
5828 (struct update_registers_data): New.
5829 (update_registers_callback): New function.
5830 (arm_linux_insert_hw_breakpoint1): Updated.
5831 (arm_linux_remove_hw_breakpoint1): Updated.
5832 (arm_linux_insert_hw_breakpoint): Updated.
5833 (arm_linux_remove_hw_breakpoint): Updated.
5834 (arm_linux_insert_watchpoint): Updated.
5835 (arm_linux_remove_watchpoint): Updated.
5836 (arm_linux_new_thread): Updated.
5837 (arm_linux_prepare_to_resume): New function.
5838 (arm_linux_new_fork): New function.
5839 (_initialize_arm_linux_nat): Updated.
5840
5841 2014-03-12 Pedro Alves <palves@redhat.com>
5842
5843 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5844
5845 2014-03-12 Tom Tromey <tromey@redhat.com>
5846
5847 * inf-child.c (return_zero): New function.
5848 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5849 * aix-thread.c (aix_thread_inferior_created): New function.
5850 (aix_thread_attach): Remove.
5851 (init_aix_thread_ops): Don't set to_attach.
5852 (_initialize_aix_thread): Register inferior_created observer.
5853 * corelow.c (init_core_ops): Don't set to_attach or
5854 to_create_inferior.
5855 * exec.c (init_exec_ops): Don't set to_attach or
5856 to_create_inferior.
5857 * infcmd.c (run_command_1): Use find_run_target. Make direct
5858 target calls.
5859 (attach_command): Use find_attach_target. Make direct target
5860 calls.
5861 * record-btrace.c (init_record_btrace_ops): Don't set
5862 to_create_inferior.
5863 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5864 Remove.
5865 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5866 set to_create_inferior.
5867 * target.c (complete_target_initialization): Add assertion.
5868 (target_create_inferior): Remove.
5869 (find_default_attach, find_default_create_inferior): Remove.
5870 (find_attach_target, find_run_target): New functions.
5871 (find_default_is_async_p, find_default_can_async_p)
5872 (target_supports_non_stop, target_attach): Remove.
5873 (init_dummy_target): Don't set to_create_inferior or
5874 to_supports_non_stop.
5875 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5876 TARGET_DEFAULT_FUNC.
5877 <to_create_inferior>: Add comment.
5878 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5879 TARGET_DEFAULT_RETURN.
5880 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5881 (find_attach_target, find_run_target): Declare.
5882 (target_create_inferior): Remove.
5883 (target_has_execution_1): Update comment.
5884 (target_supports_non_stop): Remove.
5885 * target-delegates.c: Rebuild.
5886
5887 2014-03-12 Pedro Alves <palves@redhat.com>
5888
5889 * inf-child.h: Update comment to not mention Unix.
5890
5891 2014-03-12 Pedro Alves <palves@redhat.com>
5892
5893 * inf-child.c: Update top comment to not mention Unix. Add
5894 generic comment describing how this target is meant to be used.
5895 (inf_child_post_attach, inf_child_post_startup_inferior)
5896 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5897 Unix in comment.
5898
5899 2014-03-12 Pedro Alves <palves@redhat.com>
5900
5901 * nto-procfs.c: Include inf-child.h.
5902 (procfs_ops): Delete global.
5903 (procfs_can_run): Delete method.
5904 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5905 target pointer instead of referencing procfs_ops.
5906 (procfs_prepare_to_store): Delete.
5907 (init_procfs_ops): Delete function.
5908 (procfs_target): New function, based on init_procfs_ops, but
5909 inherit inf_child_target.
5910 (_initialize_procfs): Use procfs_target.
5911
5912 2014-03-12 Pedro Alves <palves@redhat.com>
5913
5914 * windows-nat.c: Include inf-child.h.
5915 (windows_ops): Delete global.
5916 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5917 methods.
5918 (init_windows_ops): Delete function.
5919 (windows_target): New function, based on init_windows_ops, but
5920 inherit inf_child_target.
5921 (_initialize_windows_nat): Use windows_target. Install x86
5922 specific target methods here.
5923
5924 2014-03-10 Doug Evans <xdje42@gmail.com>
5925
5926 * guile/guile.c (call_initialize_gdb_module): New function.
5927 (initialize_guile): Replace call to scm_init_guile with call to
5928 scm_with_guile.
5929
5930 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5931
5932 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5933 in call to TYPE_CODE macro.
5934
5935 2014-03-10 Jerome Guitton <guitton@adacore.com>
5936
5937 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5938 Resolve tagged types to full view.
5939
5940 2014-03-10 Hui Zhu <hui@codesourcery.com>
5941
5942 * target.h (target_insert_breakpoint): Remove "hardware" from its
5943 comments.
5944
5945 2014-03-07 Doug Evans <dje@google.com>
5946
5947 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5948
5949 2014-03-07 Doug Evans <dje@google.com>
5950
5951 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5952 Remove unused local comp_dir_attr. Assert exactly one of
5953 stub_comp_unit_die, stub_comp_dir is non-NULL.
5954
5955 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5956
5957 * target.h (complete_target_initialization, add_target):
5958 Add comment.
5959
5960 2014-03-07 Pedro Alves <palves@redhat.com>
5961
5962 * go32-nat.c: Include inf-child.h.
5963 (go32_ops): Delete global.
5964 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5965 Delete methods.
5966 (go32_create_inferior): Push the passed in target pointer instead
5967 of referencing go32_ops.
5968 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5969 (go32_target): New function, based on init_go32_ops, but inherit
5970 inf_child_target.
5971 (_initialize_go32_nat): Use go32_target. Move parts of
5972 init_go32_ops here.
5973
5974 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5975
5976 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5977 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5978 SYMBOL_VALUE_ADDRESS.
5979 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5980
5981 2014-03-06 Yao Qi <yao@codesourcery.com>
5982
5983 * breakpoint.c (get_tracepoint_by_number): Remove argument
5984 optional_p. All callers updated. Adjust comments. Update
5985 output message.
5986 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5987
5988 2014-03-06 Yao Qi <yao@codesourcery.com>
5989
5990 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5991 early if get_number returns zero. Use 'p' instead of 'args'.
5992
5993 2014-03-06 Yao Qi <yao@codesourcery.com>
5994
5995 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5996 message.
5997
5998 2014-03-06 Yao Qi <yao@codesourcery.com>
5999
6000 PR breakpoints/16508
6001 * tracepoint.c (check_trace_running): New function.
6002 (trace_find_command): Move code to check_trace_running and
6003 call check_trace_running.
6004 (trace_find_pc_command): Likewise.
6005 (trace_find_tracepoint_command): Likewise.
6006 (trace_find_line_command): Likewise.
6007 (trace_find_range_command): Likewise.
6008 * tracepoint.h (check_trace_running): Likewise.
6009 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6010
6011 2014-03-06 Yao Qi <yao@codesourcery.com>
6012
6013 * target.h (struct target_ops) <to_traceframe_info>: Use
6014 TARGET_DEFAULT_NORETURN (tcomplain ()).
6015 * target-delegates.c: Regenerated.
6016
6017 2014-03-05 Pedro Alves <palves@redhat.com>
6018
6019 PR gdb/16575
6020 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6021 void. Update comment.
6022 (dcache_xfer_memory): Delete.
6023 (dcache_read_memory_partial): New, based on the read bits of
6024 dcache_xfer_memory.
6025 (dcache_update): Add status parameter. Use ULONGEST for len, and
6026 adjust. Discard cache lines if the reason for the update was
6027 error.
6028 * dcache.h (dcache_xfer_memory): Delete declaration.
6029 (dcache_read_memory_partial): New declaration.
6030 (dcache_update): Update prototype.
6031 * target.c (raw_memory_xfer_partial): Update the dcache here.
6032 (memory_xfer_partial_1): Don't handle dcache writes here.
6033
6034 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6035
6036 * remote-sim.c (gdbsim_load): Add const to prog.
6037
6038 2014-03-03 Tom Tromey <tromey@redhat.com>
6039
6040 * elfread.c (probe_key): Change to bfd_data.
6041 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6042 now per-BFD, not per-objfile.
6043 * stap-probe.c (stap_probe_destroy): Update comment.
6044 (handle_stap_probe): Allocate on the per-BFD obstack.
6045
6046 2014-03-03 Tom Tromey <tromey@redhat.com>
6047
6048 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6049 * breakpoint.c (create_longjmp_master_breakpoint): Use
6050 get_probe_address.
6051 (add_location_to_breakpoint, bkpt_probe_insert_location)
6052 (bkpt_probe_remove_location): Update.
6053 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6054 * elfread.c (elf_symfile_relocate_probe): Remove.
6055 (elf_probe_fns): Update.
6056 (insert_exception_resume_breakpoint): Change type of "probe"
6057 parameter to bound_probe.
6058 (check_exception_resume): Update.
6059 * objfiles.c (objfile_relocate1): Don't relocate probes.
6060 * probe.c (bound_probe_s): New typedef.
6061 (parse_probes): Use get_probe_address. Set sal's objfile.
6062 (find_probe_by_pc): Return a bound_probe.
6063 (collect_probes): Return a VEC(bound_probe_s).
6064 (compare_probes): Update.
6065 (gen_ui_out_table_header_info): Change type of "probes"
6066 parameter. Update.
6067 (info_probes_for_ops): Update.
6068 (get_probe_address): New function.
6069 (probe_safe_evaluate_at_pc): Update.
6070 * probe.h (struct probe_ops) <get_probe_address>: New field.
6071 <set_semaphore, clear_semaphore>: Add objfile parameter.
6072 (struct probe) <objfile>: Remove field.
6073 <arch>: New field.
6074 <address>: Update comment.
6075 (struct bound_probe): New.
6076 (find_probe_by_pc): Return a bound_probe.
6077 (get_probe_address): Declare.
6078 * solib-svr4.c (struct probe_and_action) <address>: New field.
6079 (hash_probe_and_action, equal_probe_and_action): Update.
6080 (register_solib_event_probe): Add address parameter.
6081 (solib_event_probe_at): Update.
6082 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6083 get_probe_address.
6084 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6085 (stap_get_probe_address): New function.
6086 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6087 (compile_probe_arg): Update.
6088 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6089 address.
6090 (handle_stap_probe): Don't relocate the probe.
6091 (stap_relocate): Remove.
6092 (stap_gen_info_probes_table_values): Update.
6093 (stap_probe_ops): Remove stap_relocate.
6094 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6095 (debug_sym_probe_fns): Update.
6096 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6097 * symtab.c (init_sal): Use memset.
6098 * symtab.h (struct symtab_and_line) <objfile>: New field.
6099 * tracepoint.c (start_tracing, stop_tracing): Update.
6100
6101 2014-03-03 Tom Tromey <tromey@redhat.com>
6102
6103 * probe.h (parse_probes, find_probe_by_pc)
6104 (find_probes_in_objfile): Fix comments.
6105
6106 2014-03-02 Doug Evans <xdje42@gmail.com>
6107
6108 * infrun.c (handle_signal_stop): Replace test for
6109 TARGET_WAITKIND_STOPPED with an assert.
6110
6111 2014-03-02 Doug Evans <xdje42@gmail.com>
6112
6113 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6114
6115 2014-03-02 Doug Evans <xdje42@gmail.com>
6116
6117 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6118
6119 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6120
6121 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6122
6123 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6124
6125 * i386obsd-nat.c: Include "obsd-nat.h".
6126 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6127 add_target.
6128 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6129
6130 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6131
6132 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6133
6134 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6135
6136 * mips64obsd-nat.c: Include "obsd-nath".
6137 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6138 add_target
6139 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6140
6141 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6142
6143 * amd64obsd-nat.c: Include "obsd-nat,h.
6144 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6145 add_target.
6146 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6147
6148 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6149
6150 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6151 (find_overload_match): Update call to find_oload_champ.
6152 (find_oload_champ_namespace_loop): Likewise
6153
6154 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6155
6156 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6157
6158 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6159 * config/sparc/obsd64.mh: New file.
6160 * sparc64obsd-nat.c: New file.
6161
6162 * obsd-nat.h: New file.
6163 * obsd-nat.c: New file.
6164 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6165 (ALLDEPFILES): Add obsd-nat.c.
6166
6167 2014-02-28 Tom Tromey <tromey@redhat.com>
6168
6169 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6170 * cli-out.h (cli_ui_out_impl): Now const.
6171 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6172 * ui-out.c (struct ui_out) <impl>: Now const.
6173 (default_ui_out_impl): Now const.
6174 (ui_out_new): Make 'impl' parameter const.
6175 * ui-out.h (ui_out_new): Update.
6176
6177 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6178
6179 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6180
6181 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6182
6183 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6184
6185 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6186
6187 Additional PR 8882 fix.
6188 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6189
6190 2014-02-27 Pedro Alves <palves@redhat.com>
6191
6192 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6193 isn't set.
6194
6195 2014-02-27 Pedro Alves <palves@redhat.com>
6196
6197 PR 12702
6198 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6199 * nat/linux-waitpid.c: Include string.h.
6200 (status_to_str): Moved here and made extern.
6201 * nat/linux-waitpid.h (status_to_str): New declaration.
6202
6203 2014-02-27 Hui Zhu <hui@codesourcery.com>
6204
6205 PR 12702
6206 * infrun.c (ptid_match): Move ...
6207 * common/ptid.c (ptid_match): ... here.
6208 * inferior.h (ptid_match): Move ...
6209 * common/ptid.h (ptid_match): ... here.
6210
6211 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6212
6213 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6214 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6215 gdb_target_obs.
6216
6217 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6218
6219 * obsd-tdep.c (obsd_auxv_parse): New function.
6220 (obsd_init_abi): Set auxv_parse.
6221
6222 * gdbarch.sh (auxv_parse): New.
6223 * gdbarch.h: Regenerated.
6224 * gdbarch.c: Regenerated.
6225 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6226
6227 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6228
6229 * guile/scm-value.c (gdbscm_history_append_x): New function.
6230 (value_functions): Add it.
6231
6232 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6233
6234 * dwarf2read.c (attr_value_as_address): New function.
6235 (dwarf2_find_base_address, read_call_site_scope): Use
6236 attr_value_as_address in place of DW_ADDR.
6237 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6238 the low and high addresses. Slight rework of the handling
6239 of the high pc being a constant form, and limit it to
6240 DWARF verson 4 or higher.
6241 (dwarf2_record_block_ranges): Likewise.
6242 (read_partial_die): Likewise.
6243 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6244
6245 2014-02-26 Tom Tromey <tromey@redhat.com>
6246
6247 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6248
6249 2014-02-26 Tom Tromey <tromey@redhat.com>
6250
6251 * elfread.c (elf_read_minimal_symbols): Return early if
6252 minimal symbols have already been read. Add "ei" parameter.
6253 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6254 * minsyms.c (prim_record_minimal_symbol_full): Update.
6255 * objfiles.h (struct objstats) <n_minsyms>: Move...
6256 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6257 * symmisc.c (print_objfile_statistics): Update.
6258
6259 2014-02-26 Tom Tromey <tromey@redhat.com>
6260
6261 * elfread.c (elf_read_minimal_symbols): New function, from
6262 elf_symfile_read.
6263 (elf_symfile_read): Call it.
6264
6265 2014-02-26 Tom Tromey <tromey@redhat.com>
6266
6267 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6268 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6269 (lookup_minimal_symbol_solib_trampoline)
6270 (lookup_minimal_symbol_by_pc_section_1)
6271 (lookup_minimal_symbol_and_objfile): Update.
6272 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6273 Don't allocate a minimal symbol if minsyms have already been read.
6274 (build_minimal_symbol_hash_tables): Update.
6275 (install_minimal_symbols): Do nothing if minsyms already read.
6276 Use the per-BFD obstack.
6277 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6278 * objfiles.c (allocate_objfile): Call
6279 terminate_minimal_symbol_table later.
6280 (have_minimal_symbols): Update.
6281 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6282 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6283 Move from struct objfile.
6284 <minsyms_read>: New field.
6285 (struct objfile) <msymbols, minimal_symbol_count,
6286 msymbol_hash, msymbol_demangled_hash>: Move.
6287 (ALL_OBJFILE_MSYMBOLS): Update.
6288 * symfile.c (read_symbols): Set minsyms_read.
6289 (reread_symbols): Update.
6290 * symmisc.c (dump_objfile, dump_msymbols): Update.
6291
6292 2014-02-26 Tom Tromey <tromey@redhat.com>
6293
6294 * minsyms.c (msymbols_sort): Remove.
6295 * minsyms.h (msymbols_sort): Remove.
6296 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6297 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6298 * elfread.c (elf_symtab_read): Don't add section offsets.
6299 * xcoffread.c (record_minimal_symbol): Don't add section offset
6300 to minimal symbol address.
6301 * somread.c (text_offset, data_offset): Remove.
6302 (som_symtab_read): Don't add section offsets to minimal symbol
6303 addresses.
6304 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6305 Don't add section offsets to minimal symbols.
6306 * coffread.c (coff_symtab_read): Don't add section offsets
6307 to minimal symbol addresses.
6308 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6309 to minimal symbol addresses.
6310 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6311 section offset to minimal symbol addresses.
6312 * mdebugread.c (parse_partial_symbols): Don't add section
6313 offset to minimal symbol addresses.
6314 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6315 offset to minimal symbol addresses.
6316
6317 2014-02-26 Tom Tromey <tromey@redhat.com>
6318
6319 * ada-lang.c (ada_main_name): Update.
6320 (ada_add_standard_exceptions): Update.
6321 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6322 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6323 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6324 * auxv.c (ld_so_xfer_auxv): Update.
6325 * avr-tdep.c (avr_scan_prologue): Update.
6326 * ax-gdb.c (gen_var_ref): Update.
6327 * blockframe.c (get_pc_function_start)
6328 (find_pc_partial_function_gnu_ifunc): Update.
6329 * breakpoint.c (create_overlay_event_breakpoint)
6330 (create_longjmp_master_breakpoint)
6331 (create_std_terminate_master_breakpoint)
6332 (create_exception_master_breakpoint): Update.
6333 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6334 * c-valprint.c (c_val_print): Update.
6335 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6336 * common/agent.c (agent_look_up_symbols): Update.
6337 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6338 * dwarf2loc.c (call_site_to_target_addr): Update.
6339 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6340 * elfread.c (elf_gnu_ifunc_record_cache)
6341 (elf_gnu_ifunc_resolve_by_got): Update.
6342 * findvar.c (default_read_var_value): Update.
6343 * frame.c (inside_main_func): Update.
6344 * frv-tdep.c (frv_frame_this_id): Update.
6345 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6346 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6347 Update.
6348 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6349 (hppa_hpux_find_dummy_bpaddr): Update.
6350 * hppa-tdep.c (hppa_symbol_address): Update.
6351 * infcmd.c (until_next_command): Update.
6352 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6353 Update.
6354 * linespec.c (minsym_found, add_minsym): Update.
6355 * linux-nat.c (get_signo): Update.
6356 * linux-thread-db.c (inferior_has_bug): Update.
6357 * m32c-tdep.c (m32c_return_value)
6358 (m32c_m16c_address_to_pointer): Update.
6359 * m32r-tdep.c (m32r_frame_this_id): Update.
6360 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6361 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6362 * maint.c (maintenance_translate_address): Update.
6363 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6364 (frob_address): New function.
6365 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6366 frob_address. Rename parameter to "pc_in".
6367 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6368 addresses.
6369 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6370 Update.
6371 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6372 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6373 * objc-lang.c (find_objc_msgsend): Update.
6374 * objfiles.c (objfile_relocate1): Update.
6375 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6376 * p-valprint.c (pascal_val_print): Update.
6377 * parse.c (write_exp_msymbol): Update.
6378 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6379 (ppc_elfv2_skip_entrypoint): Update.
6380 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6381 * printcmd.c (build_address_symbolic, msym_info)
6382 (address_info): Update.
6383 * proc-service.c (ps_pglobal_lookup): Update.
6384 * psymtab.c (find_pc_sect_psymtab_closer)
6385 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6386 Change msymbol parameter to bound_minimal_symbol.
6387 * ravenscar-thread.c (get_running_thread_id): Update.
6388 * remote.c (remote_check_symbols): Update.
6389 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6390 address.
6391 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6392 * solib-dsbt.c (lm_base): Update.
6393 * solib-frv.c (lm_base, main_got): Update.
6394 * solib-irix.c (locate_base): Update.
6395 * solib-som.c (som_solib_create_inferior_hook)
6396 (link_map_start): Update.
6397 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6398 * solib-svr4.c (elf_locate_base, enable_break): Update.
6399 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6400 (flush_ea_cache): Update.
6401 * stabsread.c (define_symbol, scan_file_globals): Update.
6402 * stack.c (find_frame_funname): Update.
6403 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6404 (debug_qf_find_pc_sect_symtab): Update.
6405 * symfile.c (simple_read_overlay_table)
6406 (simple_overlay_update): Update.
6407 * symfile.h (struct quick_symbol_functions)
6408 <find_pc_sect_symtab>: Change type of msymbol to
6409 bound_minimal_symbol.
6410 * symmisc.c (dump_msymbols): Update.
6411 * symtab.c (find_pc_sect_symtab_via_partial)
6412 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6413 (search_symbols, print_msymbol_info): Update.
6414 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6415 (MSYMBOL_VALUE_ADDRESS): Redefine.
6416 (BMSYMBOL_VALUE_ADDRESS): New macro.
6417 * tracepoint.c (scope_info): Update.
6418 * tui/tui-disasm.c (tui_find_disassembly_address)
6419 (tui_get_begin_asm_address): Update.
6420 * valops.c (find_function_in_inferior): Update.
6421 * value.c (value_static_field, value_fn_field): Update.
6422
6423 2014-02-26 Tom Tromey <tromey@redhat.com>
6424
6425 * ada-lang.c (ada_update_initial_language): Update.
6426 (ada_main_name, ada_has_this_exception_support): Update.
6427 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6428 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6429 * arm-tdep.c (arm_skip_stub): Update.
6430 * auxv.c (ld_so_xfer_auxv): Update.
6431 * avr-tdep.c (avr_scan_prologue): Update.
6432 * ax-gdb.c (gen_var_ref): Update.
6433 * breakpoint.c (struct breakpoint_objfile_data)
6434 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6435 type to bound_minimal_symbol.
6436 (create_overlay_event_breakpoint)
6437 (create_longjmp_master_breakpoint)
6438 (create_std_terminate_master_breakpoint)
6439 (create_exception_master_breakpoint): Update.
6440 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6441 * c-exp.y (classify_name): Update.
6442 * coffread.c (coff_symfile_read): Update.
6443 * common/agent.c (agent_look_up_symbols): Update.
6444 * d-lang.c (d_main_name): Update.
6445 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6446 * dec-thread.c (enable_dec_thread): Update.
6447 * dwarf2loc.c (call_site_to_target_addr): Update.
6448 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6449 * eval.c (evaluate_subexp_standard): Update.
6450 * findvar.c (struct minsym_lookup_data) <result>: Change type
6451 to bound_minimal_symbol.
6452 <objfile>: Remove.
6453 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6454 * frame.c (inside_main_func): Update.
6455 * frv-tdep.c (frv_frame_this_id): Update.
6456 * gcore.c (call_target_sbrk): Update.
6457 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6458 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6459 Update.
6460 * go-lang.c (go_main_name): Update.
6461 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6462 (hppa_hpux_find_import_stub_for_addr): Update.
6463 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6464 Update. Change return type.
6465 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6466 type.
6467 * jit.c (jit_breakpoint_re_set_internal): Update.
6468 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6469 Update.
6470 * linux-nat.c (get_signo): Update.
6471 * linux-thread-db.c (inferior_has_bug): Update
6472 * m32c-tdep.c (m32c_return_value)
6473 (m32c_m16c_address_to_pointer): Update.
6474 * m32r-tdep.c (m32r_frame_this_id): Update.
6475 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6476 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6477 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6478 lookup_minimal_symbol. Change return type.
6479 (lookup_minimal_symbol): Remove.
6480 (lookup_bound_minimal_symbol): Update.
6481 (lookup_minimal_symbol_text): Change return type.
6482 (lookup_minimal_symbol_solib_trampoline): Change return type.
6483 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6484 (lookup_minimal_symbol_solib_trampoline): Change return type.
6485 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6486 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6487 (value_nsstring, find_imps): Update.
6488 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6489 * p-lang.c (pascal_main_name): Update.
6490 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6491 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6492 * proc-service.c (ps_pglobal_lookup): Update.
6493 * ravenscar-thread.c (get_running_thread_msymbol): Change
6494 return type.
6495 (has_ravenscar_runtime, get_running_thread_id): Update.
6496 * remote.c (remote_check_symbols): Update.
6497 * sol-thread.c (ps_pglobal_lookup): Update.
6498 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6499 * solib-dsbt.c (lm_base): Update.
6500 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6501 Update.
6502 * solib-irix.c (locate_base): Update.
6503 * solib-som.c (som_solib_create_inferior_hook)
6504 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6505 Update.
6506 * solib-spu.c (spu_enable_break): Update.
6507 * solib-svr4.c (elf_locate_base, enable_break): Update.
6508 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6509 (flush_ea_cache): Update.
6510 * stabsread.c (define_symbol): Update.
6511 * symfile.c (simple_read_overlay_table): Update.
6512 * symtab.c (find_pc_sect_line): Update.
6513 * tracepoint.c (scope_info): Update.
6514 * tui-disasm.c (tui_get_begin_asm_address): Update.
6515 * value.c (value_static_field): Update.
6516
6517 2014-02-26 Tom Tromey <tromey@redhat.com>
6518
6519 * minsyms.c (prim_record_minimal_symbol_full): Use
6520 SET_MSYMBOL_VALUE_ADDRESS.
6521 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6522 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6523 SET_MSYMBOL_VALUE_ADDRESS.
6524 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6525 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6526
6527 2014-02-26 Tom Tromey <tromey@redhat.com>
6528
6529 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6530 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6531 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6532 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6533 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6534 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6535 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6536 * ada-lang.c (ada_main_name): Update.
6537 (ada_lookup_simple_minsym): Update.
6538 (ada_make_symbol_completion_list): Update.
6539 (ada_add_standard_exceptions): Update.
6540 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6541 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6542 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6543 * arm-tdep.c (skip_prologue_function): Update.
6544 (arm_skip_stack_protector, arm_skip_stub): Update.
6545 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6546 (arm_wince_skip_main_prologue): Update.
6547 * auxv.c (ld_so_xfer_auxv): Update.
6548 * avr-tdep.c (avr_scan_prologue): Update.
6549 * ax-gdb.c (gen_var_ref): Update.
6550 * block.c (call_site_for_pc): Update.
6551 * blockframe.c (get_pc_function_start): Update.
6552 (find_pc_partial_function_gnu_ifunc): Update.
6553 * breakpoint.c (create_overlay_event_breakpoint): Update.
6554 (create_longjmp_master_breakpoint): Update.
6555 (create_std_terminate_master_breakpoint): Update.
6556 (create_exception_master_breakpoint): Update.
6557 (resolve_sal_pc): Update.
6558 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6559 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6560 Update.
6561 * c-valprint.c (c_val_print): Update.
6562 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6563 * coffread.c (coff_symfile_read): Update.
6564 * common/agent.c (agent_look_up_symbols): Update.
6565 * dbxread.c (find_stab_function_addr): Update.
6566 (end_psymtab): Update.
6567 * dwarf2loc.c (call_site_to_target_addr): Update.
6568 (func_verify_no_selftailcall): Update.
6569 (tailcall_dump): Update.
6570 (call_site_find_chain_1): Update.
6571 (dwarf_expr_reg_to_entry_parameter): Update.
6572 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6573 (elf_gnu_ifunc_resolve_by_got): Update.
6574 * f-valprint.c (info_common_command): Update.
6575 * findvar.c (read_var_value): Update.
6576 * frame.c (get_prev_frame_1): Update.
6577 (inside_main_func): Update.
6578 * frv-tdep.c (frv_skip_main_prologue): Update.
6579 (frv_frame_this_id): Update.
6580 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6581 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6582 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6583 (gnuv3_skip_trampoline): Update.
6584 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6585 (hppa64_hpux_in_solib_call_trampoline): Update.
6586 (hppa_hpux_skip_trampoline_code): Update.
6587 (hppa64_hpux_search_dummy_call_sequence): Update.
6588 (hppa_hpux_find_import_stub_for_addr): Update.
6589 (hppa_hpux_find_dummy_bpaddr): Update.
6590 * hppa-tdep.c (hppa_symbol_address)
6591 (hppa_lookup_stub_minimal_symbol): Update.
6592 * i386-tdep.c (i386_skip_main_prologue): Update.
6593 (i386_pe_skip_trampoline_code): Update.
6594 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6595 * infcall.c (get_function_name): Update.
6596 * infcmd.c (until_next_command): Update.
6597 * jit.c (jit_breakpoint_re_set_internal): Update.
6598 (jit_inferior_init): Update.
6599 * linespec.c (minsym_found): Update.
6600 (add_minsym): Update.
6601 * linux-fork.c (info_checkpoints_command): Update.
6602 * linux-nat.c (get_signo): Update.
6603 * linux-thread-db.c (inferior_has_bug): Update.
6604 * m32c-tdep.c (m32c_return_value): Update.
6605 (m32c_m16c_address_to_pointer): Update.
6606 (m32c_m16c_pointer_to_address): Update.
6607 * m32r-tdep.c (m32r_frame_this_id): Update.
6608 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6609 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6610 * maint.c (maintenance_translate_address): Update.
6611 * minsyms.c (add_minsym_to_hash_table): Update.
6612 (add_minsym_to_demangled_hash_table): Update.
6613 (msymbol_objfile): Update.
6614 (lookup_minimal_symbol): Update.
6615 (iterate_over_minimal_symbols): Update.
6616 (lookup_minimal_symbol_text): Update.
6617 (lookup_minimal_symbol_by_pc_name): Update.
6618 (lookup_minimal_symbol_solib_trampoline): Update.
6619 (lookup_minimal_symbol_by_pc_section_1): Update.
6620 (lookup_minimal_symbol_and_objfile): Update.
6621 (prim_record_minimal_symbol_full): Update.
6622 (compare_minimal_symbols): Update.
6623 (compact_minimal_symbols): Update.
6624 (build_minimal_symbol_hash_tables): Update.
6625 (install_minimal_symbols): Update.
6626 (terminate_minimal_symbol_table): Update.
6627 (find_solib_trampoline_target): Update.
6628 (minimal_symbol_upper_bound): Update.
6629 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6630 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6631 (mips_skip_pic_trampoline_code): Update.
6632 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6633 * objc-lang.c (selectors_info): Update.
6634 (classes_info): Update.
6635 (find_methods): Update.
6636 (find_imps): Update.
6637 (find_objc_msgsend): Update.
6638 * objfiles.c (objfile_relocate1): Update.
6639 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6640 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6641 * p-valprint.c (pascal_val_print): Update.
6642 * parse.c (write_exp_msymbol): Update.
6643 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6644 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6645 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6646 * printcmd.c (build_address_symbolic): Update.
6647 (sym_info): Update.
6648 (address_info): Update.
6649 * proc-service.c (ps_pglobal_lookup): Update.
6650 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6651 (find_pc_sect_psymtab): Update.
6652 * python/py-framefilter.c (py_print_frame): Update.
6653 * ravenscar-thread.c (get_running_thread_id): Update.
6654 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6655 Update.
6656 * remote.c (remote_check_symbols): Update.
6657 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6658 (rs6000_skip_trampoline_code): Update.
6659 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6660 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6661 * solib-dsbt.c (lm_base): Update.
6662 * solib-frv.c (lm_base): Update.
6663 (main_got): Update.
6664 * solib-irix.c (locate_base): Update.
6665 * solib-som.c (som_solib_create_inferior_hook): Update.
6666 (som_solib_desire_dynamic_linker_symbols): Update.
6667 (link_map_start): Update.
6668 * solib-spu.c (spu_enable_break): Update.
6669 (ocl_enable_break): Update.
6670 * solib-svr4.c (elf_locate_base): Update.
6671 (enable_break): Update.
6672 * spu-tdep.c (spu_get_overlay_table): Update.
6673 (spu_catch_start): Update.
6674 (flush_ea_cache): Update.
6675 * stabsread.c (define_symbol): Update.
6676 (scan_file_globals): Update.
6677 * stack.c (find_frame_funname): Update.
6678 (frame_info): Update.
6679 * symfile.c (simple_read_overlay_table): Update.
6680 (simple_overlay_update): Update.
6681 * symmisc.c (dump_msymbols): Update.
6682 * symtab.c (fixup_section): Update.
6683 (find_pc_sect_line): Update.
6684 (skip_prologue_sal): Update.
6685 (search_symbols): Update.
6686 (print_msymbol_info): Update.
6687 (rbreak_command): Update.
6688 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6689 (completion_list_objc_symbol): Update.
6690 (default_make_symbol_completion_list_break_on): Update.
6691 * tracepoint.c (scope_info): Update.
6692 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6693 (tui_get_begin_asm_address): Update.
6694 * valops.c (find_function_in_inferior): Update.
6695 * value.c (value_static_field): Update.
6696 (value_fn_field): Update.
6697
6698 2014-02-26 Tom Tromey <tromey@redhat.com>
6699
6700 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6701 bound minimal symbols. Move code that knows about minsym
6702 table layout...
6703 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6704 function.
6705 * minsyms.h (minimal_symbol_upper_bound): Declare.
6706 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6707 minimal_symbol_upper_bound.
6708
6709 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6710
6711 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6712 Use the type's name if its basic type does not have a tag.
6713
6714 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6715
6716 * dwarf2read.c (read_subrange_type): Add comment.
6717
6718 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6719
6720 * dwarf2read.c (update_enumeration_type_from_children): New
6721 function, mostly extracted from process_structure_scope.
6722 (read_enumeration_type): Call update_enumeration_type_from_children.
6723 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6724 and flag_flag_enum fields.
6725
6726 2014-02-26 Pedro Alves <palves@redhat.com>
6727
6728 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6729 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6730 to_xfer_partial method.
6731
6732 2014-02-26 Pedro Alves <palves@redhat.com>
6733
6734 * target.c (complete_target_initialization): Don't install
6735 default_xfer_partial as to_xfer_partial hook.
6736 (nomemory): Delete.
6737 (update_current_target): Don't INHERIT nor de_fault
6738 deprecated_xfer_memory. Delete de_fault macro.
6739 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6740 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6741 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6742 field.
6743
6744 2014-02-26 Pedro Alves <palves@redhat.com>
6745
6746 * go32-nat.c (my_write_child): New function.
6747 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6748 (go32_xfer_partial): New function.
6749 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6750 Instead install a to_xfer_partial hook.
6751
6752 2014-02-26 Pedro Alves <palves@redhat.com>
6753
6754 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6755 to_xfer_partial helper. Rewrite.
6756 (procfs_xfer_partial): New function.
6757 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6758 Install a to_xfer_partial hook.
6759
6760 2014-02-26 Pedro Alves <palves@redhat.com>
6761
6762 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6763 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6764 (m32r_xfer_partial): New function.
6765 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6766 Install a to_xfer_partial hook.
6767
6768 2014-02-26 Pedro Alves <palves@redhat.com>
6769
6770 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6771 helper.
6772 (mips_xfer_partial): New function.
6773 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6774 hook. Install a to_xfer_partial hook.
6775
6776 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6777
6778 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6779 * gdbtypes.c (create_array_type_with_stride): New function,
6780 renaming create_array_type, but with an added parameter
6781 called "bit_stride".
6782 (create_array_type): Re-implement using
6783 create_array_type_with_stride.
6784 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6785 and DW_AT_bit_stride attributes.
6786
6787 2014-02-26 Pedro Alves <palves@redhat.com>
6788
6789 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6790 task-specific breakpoints.
6791
6792 2014-02-25 Pedro Alves <palves@redhat.com>
6793
6794 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6795 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6796
6797 2014-02-25 Stan Shebs <stan@codesourcery.com>
6798
6799 * defs.h: Annotate comments for Doxygen.
6800
6801 2014-02-25 Tom Tromey <tromey@redhat.com>
6802
6803 * target.h (target_ignore): Don't declare.
6804 * target.c (target_ignore): Remove.
6805
6806 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6807
6808 PR gdb/16626
6809 * auto-load.c (auto_load_objfile_script_1): Change filename to
6810 debugfile.
6811
6812 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6813
6814 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6815 documentation. Adjust prototype to match the target_ops
6816 to_xfer_partial method. Adjust implementation accordingly.
6817
6818 2014-02-25 Hui Zhu <hui@codesourcery.com>
6819
6820 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6821 to_traceframe_info.
6822
6823 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6824
6825 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6826 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6827 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6828 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6829 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6830 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6831 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6832 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6833 New constants.
6834 (rl78_register_type): Use a data pointer type for SP and
6835 new pseudo registers mentioned above. Use a 16 bit integer
6836 type for all other register pairs.
6837 (rl78_register_name, rl78_g10_register_name): Update for
6838 new pseudo registers.
6839 (rl78_pseudo_register_read): Likewise.
6840 (rl78_pseudo_register_write): Likewise.
6841 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6842 to the newly added pseudo registers.
6843
6844 2014-02-24 Doug Evans <dje@google.com>
6845
6846 * value.c (record_latest_value): Fix comment.
6847 * printcmd.c (print_command_1): Remove code to handle -1 return from
6848 record_latest_value.
6849
6850 2014-02-24 Pedro Alves <palves@redhat.com>
6851
6852 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6853 deprecated_xfer_memory hook.
6854 (procfs_xfer_partial): Call procfs_xfer_memory instead
6855 of the deprecated_xfer_memory target hook.
6856 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6857 helper.
6858
6859 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6860
6861 * windows-nat.c (windows_xfer_shared_libraries): Return
6862 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6863 requested object is TARGET_OBJECT_LIBRARIES.
6864
6865 2014-02-24 Yao Qi <yao@codesourcery.com>
6866
6867 * target.h (enum target_xfer_status)
6868 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6869 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6870 explicitly. New.
6871 * corefile.c (memory_error_message): User updated.
6872 * exec.c (section_table_read_available_memory): Likewise.
6873 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6874 * target.c (target_xfer_status_to_string): Likewise.
6875 (raw_memory_xfer_partial): Likewise.
6876 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6877 * valops.c (read_value_memory): Likewise.
6878 * exec.h: Update comments.
6879
6880 2014-02-24 Yao Qi <yao@codesourcery.com>
6881
6882 * target.c (target_xfer_status_to_string): Rename argument err
6883 to status.
6884 * target.h (target_xfer_status_to_string): Update declaration.
6885 Replace target_xfer_error_to_string with
6886 target_xfer_status_to_string in comment.
6887
6888 2014-02-24 Yao Qi <yao@codesourcery.com>
6889
6890 * mips-linux-nat.c (super_close): Update its type.
6891 (mips_linux_close): Pass 'self' to super_close.
6892
6893 2014-02-24 Yao Qi <yao@codesourcery.com>
6894
6895 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6896 * corefile.c (read_memory): Adjusted.
6897 * target.c (target_write_with_progress): Adjusted.
6898
6899 2014-02-23 Yao Qi <yao@codesourcery.com>
6900
6901 Revert two patches:
6902
6903 2013-10-25 Yao Qi <yao@codesourcery.com>
6904
6905 * remote.c (remote_traceframe_info): Return early if
6906 traceframe is not selected.
6907
6908 2013-07-19 Yao Qi <yao@codesourcery.com>
6909
6910 * target.c (update_current_target): Change the default action
6911 of 'to_traceframe_info' from tcomplain to return_zero.
6912 * target.h (struct target_ops) <to_traceframe_info>: Add more
6913 comments.
6914
6915 2014-02-23 Yao Qi <yao@codesourcery.com>
6916
6917 * valops.c (read_value_memory): Rewrite it. Call
6918 target_xfer_partial in a loop.
6919 * exec.h (section_table_available_memory): Remove declaration.
6920 Move comments to ...
6921 * exec.c (section_table_available_memory): ... here. Make it
6922 static.
6923
6924 2014-02-23 Yao Qi <yao@codesourcery.com>
6925
6926 * exec.c (section_table_read_available_memory): New function.
6927 * exec.h (section_table_read_available_memory): Declare.
6928 * ctf.c (ctf_xfer_partial): Call
6929 section_table_read_available_memory.
6930 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6931
6932 2014-02-23 Yao Qi <yao@codesourcery.com>
6933
6934 * ctf.c (ctf_xfer_partial): Move code to ...
6935 * exec.c (exec_read_partial_read_only): ... it. New function.
6936 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6937 * tracefile.c: Include "exec.h".
6938 * exec.h (exec_read_partial_read_only): Declare.
6939
6940 2014-02-23 Yao Qi <yao@codesourcery.com>
6941
6942 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6943 (tfile_has_memory): Remove.
6944 (init_tfile_ops): Don't set fields to_has_all_memory and
6945 to_has_memory of tfile_ops.
6946 * tracefile.c (tracefile_has_all_memory): New function.
6947 (tracefile_has_memory): New function.
6948 (init_tracefile_ops): Initialize fields to_has_all_memory and
6949 to_has_memory of 'ops'.
6950
6951 2014-02-23 Yao Qi <yao@codesourcery.com>
6952
6953 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6954 (ctf_thread_alive, ctf_get_trace_status): Remove.
6955 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6956 init_tracefile_ops.
6957 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6958 (tfile_has_stack, tfile_has_registers): Remove.
6959 (tfile_thread_alive): Remove.
6960 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6961 init_tracefile_ops.
6962 * tracefile.c (tracefile_has_stack): New function.
6963 (tracefile_has_registers): New function.
6964 (tracefile_thread_alive): New function.
6965 (tracefile_get_trace_status): New function.
6966 (init_tracefile_ops): New function.
6967 * tracefile.h (init_tracefile_ops): Declare.
6968
6969 2014-02-23 Yao Qi <yao@codesourcery.com>
6970
6971 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6972 (O_LARGEFILE): Likewise.
6973 (tfile_ops): Likewise.
6974 (TRACE_HEADER_SIZE): Likewise.
6975 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6976 (cur_data_size): Likewise.
6977 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6978 (tfile_close, tfile_files_info): Likewise.
6979 (tfile_get_trace_status): Likewise.
6980 (tfile_get_tracepoint_status): Likewise.
6981 (tfile_get_traceframe_address): Likewise.
6982 (tfile_trace_find, match_blocktype): Likewise.
6983 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6984 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6985 (tfile_get_trace_state_variable_value): Likewise.
6986 (tfile_has_all_memory, tfile_has_memory): Likewise.
6987 (tfile_has_stack, tfile_has_registers): Likewise.
6988 (tfile_thread_alive, build_traceframe_info): Likewise.
6989 (tfile_traceframe_info, init_tfile_ops): Likewise.
6990 (_initialize_tracepoint): Don't call init_tfile_ops
6991 and add_target_with_completer.
6992 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6993 exec.h, completer.h and filenames.h.
6994 (_initialize_tracefile_tfile): New function.
6995
6996 2014-02-23 Yao Qi <yao@codesourcery.com>
6997
6998 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6999 tracefile-tfile.o.
7000 (HFILES_NO_SRCDIR): Add tracefile.h.
7001 * ctf.c: Include "tracefile.h".
7002 * tracefile.h: New file.
7003 * tracefile.c: New file
7004 * tracefile-tfile.c: New file.
7005 * tracepoint.c: Include "tracefile.h".
7006 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7007 (stop_reason_names): Add const.
7008 (trace_file_writer_xfree): Move it to tracefile.c.
7009 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7010 (trace_save_ctf): Likewise.
7011 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7012 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7013 (tfile_write_header, tfile_write_regblock_type): Likewise.
7014 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7015 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7016 (tfile_write_raw_data, tfile_end): Likewise.
7017 (tfile_trace_file_writer_new): Likewise.
7018 (free_uploaded_tp): Make it extern.
7019 (free_uploaded_tsv): Make it extern.
7020 (_initialize_tracepoint): Move code to register command 'tsave'
7021 to tracefile.c.
7022 * tracepoint.h (stop_reason_names): Declare.
7023 (struct trace_frame_write_ops): Move it to tracefile.h.
7024 (struct trace_file_write_ops): Likewise.
7025 (struct trace_file_writer): Likewise.
7026 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7027
7028 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7029
7030 PR gdb/16594
7031 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7032 process name.
7033 (get_cores_used_by_process): New parameter num_cores, use it.
7034 (linux_xfer_osdata_processes): Pass num_cores to it.
7035 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7036 process name.
7037
7038 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7039
7040 * target.c (memory_xfer_partial): Fix length arg in call to
7041 breakpoint_xfer_memory.
7042
7043 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7044
7045 PR tdep/16397
7046 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7047 number comes after the + or - signs. Adjust length of register
7048 name to be extracted.
7049
7050 2014-02-20 Tom Tromey <tromey@redhat.com>
7051
7052 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7053 (ada_varobj_ops): Mark "extern".
7054
7055 2014-02-20 Tom Tromey <tromey@redhat.com>
7056
7057 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7058
7059 2014-02-20 Doug Evans <xdje42@gmail.com>
7060
7061 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7062 All callers updated.
7063 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7064 All callers updated.
7065 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7066 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7067
7068 2014-02-20 lin zuojian <manjian2006@gmail.com>
7069 Joel Brobecker <brobecker@adacore.com>
7070 Doug Evans <xdje42@gmail.com>
7071
7072 PR symtab/16581
7073 * dwarf2read.c (struct die_info): New member in_process.
7074 (reset_die_in_process): New function.
7075 (process_die): Set it at the start, reset when returning.
7076 (inherit_abstract_dies): Only call process_die if origin_child_die
7077 not already being processed.
7078
7079 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7080
7081 * windows-nat.c (handle_unload_dll): Add function documentation.
7082 (do_initial_windows_stuff): Add comment explaining why we wait
7083 until after inferior initialization has finished before
7084 processing all DLLs.
7085
7086 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7087
7088 * windows-nat.c (get_module_name): Delete.
7089 (windows_get_exec_module_filename): New function, mostly
7090 inspired from get_module_name.
7091 (windows_pid_to_exec_file): Replace call to get_module_name
7092 by call to windows_get_exec_module_filename.
7093
7094 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7095
7096 * windows-nat.c (handle_load_dll): Rewrite this function's
7097 introductory comment. Remove code using get_module_name
7098 to get the DLL's name.
7099
7100 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7101
7102 * windows-nat.c (get_windows_debug_event): Ignore
7103 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7104 if windows_initialization_done == 0.
7105 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7106 Adjust implementation to always load all DLLs.
7107 (do_initial_windows_stuff): Replace call to
7108 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7109
7110 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7111
7112 * windows-nat.c (_initialize_windows_nat): Deprecate the
7113 "dll-symbols" command. Turn the "add-shared-symbol-files"
7114 and "assf" aliases into commands, and deprecate them as well.
7115 * NEWS: Add entry explaining that "dll-symbols" and its two
7116 aliases are now deprecated.
7117
7118 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7119
7120 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7121 new-line in debug string. Remove trailing spaces.
7122
7123 2014-02-19 Stan Shebs <stan@codesourcery.com>
7124
7125 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7126
7127 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7128
7129 * NEWS: Add entry for the new feature
7130 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7131 and class values.
7132
7133 2014-02-19 Stan Shebs <stan@codesourcery.com>
7134
7135 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7136
7137 2014-02-19 Pedro Alves <palves@redhat.com>
7138
7139 * common/ptid.h (struct ptid): Mention that process_stratum
7140 targets should prefer ptid.lwp.
7141
7142 2014-02-19 Pedro Alves <palves@redhat.com>
7143
7144 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7145 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7146 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7147 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7148 store remote thread ids rather than ptid.tid.
7149 (_initialize_remote): Adjust.
7150
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7152
7153 * target.c (target_get_unwinder): Rewrite.
7154 (target_get_tailcall_unwinder): Rewrite.
7155 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7156 (record_btrace_to_get_tailcall_unwinder): New function.
7157 (init_record_btrace_ops): Update.
7158 * target.h (struct target_ops) <to_get_unwinder,
7159 to_get_tailcall_unwinder>: Now function pointers. Use
7160 TARGET_DEFAULT_RETURN.
7161
7162 2014-02-19 Tom Tromey <tromey@redhat.com>
7163
7164 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7165 argument.
7166 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7167
7168 2014-02-19 Tom Tromey <tromey@redhat.com>
7169
7170 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7171 directly.
7172 * target-delegates.c: Rebuild.
7173 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7174 TARGET_DEFAULT_FUNC.
7175 * target.c (default_target_decr_pc_after_break): Rename from
7176 forward_target_decr_pc_after_break. Simplify.
7177 (target_decr_pc_after_break): Rely on delegation.
7178
7179 2014-02-19 Tom Tromey <tromey@redhat.com>
7180
7181 * target.c (update_current_target): Do not INHERIT to_doc or
7182 to_magic. Do not de_fault to_open or to_close.
7183
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7185
7186 * gcore.h (objfile_find_memory_regions): Declare.
7187 * gcore.c (objfile_find_memory_regions): No longer static. Add
7188 "self" argument.
7189 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7190 * exec.c: Include gcore.h.
7191 (exec_set_find_memory_regions): Remove.
7192 (exec_find_memory_regions): Remove.
7193 (exec_do_find_memory_regions): Remove.
7194 (init_exec_ops): Update.
7195 * defs.h (exec_set_find_memory_regions): Remove.
7196
7197 2014-02-19 Tom Tromey <tromey@redhat.com>
7198
7199 * target-delegates.c: Rebuild.
7200 * target.h (struct target_ops) <to_extra_thread_info,
7201 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7202 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7203 not 0, in TARGET_DEFAULT_RETURN.
7204
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7206
7207 * target.c (complete_target_initialization): Remove casts. Use
7208 return_zero_has_execution.
7209 (return_zero): Add "ignore" argument.
7210 (return_zero_has_execution): New function.
7211 (init_dummy_target): Remove casts. Use
7212 return_zero_has_execution.
7213
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7215
7216 * target.c (update_current_target): Update comments. Do not
7217 INHERIT to_stratum.
7218
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7220
7221 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7222 needed.
7223 * corelow.c (core_read_description): Delegate when needed.
7224 * remote.c (remote_read_description): Delegate when needed.
7225 * target-delegates.c: Rebuild.
7226 * target.c (target_read_description): Rewrite.
7227 * target.h (struct target_ops) <to_read_description>: Update
7228 comment. Use TARGET_DEFAULT_RETURN.
7229
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7231
7232 * target-delegates.c: Rebuild.
7233 * target.c (update_current_target): Don't inherit or default
7234 to_can_run.
7235 (find_default_run_target): Check against delegate_can_run.
7236 * target.h (struct target_ops) <to_can_run>: Use
7237 TARGET_DEFAULT_RETURN.
7238
7239 2014-02-19 Tom Tromey <tromey@redhat.com>
7240
7241 * target-delegates.c: Rebuild.
7242 * target.c (target_disconnect): Unconditionally delegate.
7243 * target.h (struct target_ops) <to_disconnect>: Use
7244 TARGET_DEFAULT_NORETURN.
7245
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7247
7248 * record.c (record_stop): Unconditionally delegate.
7249 * target-delegates.c: Rebuild.
7250 * target.c (target_stop_recording): Unconditionally delegate.
7251 * target.h (struct target_ops) <to_stop_recording>: Use
7252 TARGET_DEFAULT_IGNORE.
7253
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7255
7256 * target-delegates.c: Rebuild.
7257 * target.c (target_enable_btrace): Unconditionally delegate.
7258 * target.h (struct target_ops) <to_enable_btrace>: Use
7259 TARGET_DEFAULT_NORETURN.
7260
7261 2014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.c (target_read_btrace): Unconditionally delegate.
7265 * target.h (struct target_ops) <to_read_btrace>: Use
7266 TARGET_DEFAULT_NORETURN.
7267
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target-delegates.c: Rebuild.
7271 * target.c (target_teardown_btrace): Unconditionally delegate.
7272 * target.h (struct target_ops) <to_teardown_btrace>: Use
7273 TARGET_DEFAULT_NORETURN.
7274
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * target-delegates.c: Rebuild.
7278 * target.c (target_disable_btrace): Unconditionally delegate.
7279 * target.h (struct target_ops) <to_disable_btrace>: Use
7280 TARGET_DEFAULT_NORETURN.
7281
7282 2014-02-19 Tom Tromey <tromey@redhat.com>
7283
7284 * target-delegates.c: Rebuild.
7285 * target.c (default_search_memory): New function.
7286 (simple_search_memory): Update comment.
7287 (target_search_memory): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_search_memory>: Use
7289 TARGET_DEFAULT_FUNC.
7290
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7292
7293 * auxv.c (default_auxv_parse): No longer static.
7294 (target_auxv_parse): Unconditionally delegate.
7295 * auxv.h (default_auxv_parse): Declare.
7296 * target-delegates.c: Rebuild.
7297 * target.c: Include auxv.h.
7298 * target.h (struct target_ops) <to_auxv_parse>: Use
7299 TARGET_DEFAULT_FUNC.
7300
7301 2014-02-19 Tom Tromey <tromey@redhat.com>
7302
7303 * target-delegates.c: Rebuild.
7304 * target.c (target_memory_map): Unconditionally delegate.
7305 * target.h (struct target_ops) <to_memory_map>: Use
7306 TARGET_DEFAULT_RETURN.
7307
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7309
7310 * target-delegates.c: Rebuild.
7311 * target.c (target_thread_alive): Unconditionally delegate.
7312 * target.h (struct target_ops) <to_thread_alive>: Use
7313 TARGET_DEFAULT_RETURN.
7314
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7316
7317 * target-delegates.c: Rebuild.
7318 * target.c (target_save_record): Unconditionally delegate.
7319 * target.h (struct target_ops) <to_save_record>: Use
7320 TARGET_DEFAULT_NORETURN.
7321
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7323
7324 * target-delegates.c: Rebuild.
7325 * target.c (target_delete_record): Unconditionally delegate.
7326 * target.h (struct target_ops) <to_delete_record>: Use
7327 TARGET_DEFAULT_NORETURN.
7328
7329 2014-02-19 Tom Tromey <tromey@redhat.com>
7330
7331 * target-delegates.c: Rebuild.
7332 * target.c (target_record_is_replaying): Unconditionally
7333 delegate.
7334 * target.h (struct target_ops) <to_record_is_replaying>: Use
7335 TARGET_DEFAULT_RETURN.
7336
7337 2014-02-19 Tom Tromey <tromey@redhat.com>
7338
7339 * target-delegates.c: Rebuild.
7340 * target.c (target_goto_record_begin): Unconditionally delegate.
7341 * target.h (struct target_ops) <to_goto_record_begin>: Use
7342 TARGET_DEFAULT_NORETURN.
7343
7344 2014-02-19 Tom Tromey <tromey@redhat.com>
7345
7346 * target-delegates.c: Rebuild.
7347 * target.c (target_goto_record_end): Unconditionally delegate.
7348 * target.h (struct target_ops) <to_goto_record_end>: Use
7349 TARGET_DEFAULT_NORETURN.
7350
7351 2014-02-19 Tom Tromey <tromey@redhat.com>
7352
7353 * target-delegates.c: Rebuild.
7354 * target.c (target_goto_record): Unconditionally delegate.
7355 * target.h (struct target_ops) <to_goto_record>: Use
7356 TARGET_DEFAULT_NORETURN.
7357
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7359
7360 * target-delegates.c: Rebuild.
7361 * target.c (target_insn_history): Unconditionally delegate.
7362 * target.h (struct target_ops) <to_insn_history>: Use
7363 TARGET_DEFAULT_NORETURN.
7364
7365 2014-02-19 Tom Tromey <tromey@redhat.com>
7366
7367 * target-delegates.c: Rebuild.
7368 * target.c (target_insn_history_from): Unconditionally delegate.
7369 * target.h (struct target_ops) <to_insn_history_from>: Use
7370 TARGET_DEFAULT_NORETURN.
7371
7372 2014-02-19 Tom Tromey <tromey@redhat.com>
7373
7374 * target-delegates.c: Rebuild.
7375 * target.c (target_insn_history_range): Unconditionally delegate.
7376 * target.h (struct target_ops) <to_insn_history_range>: Use
7377 TARGET_DEFAULT_NORETURN.
7378
7379 2014-02-19 Tom Tromey <tromey@redhat.com>
7380
7381 * target-delegates.c: Rebuild.
7382 * target.c (target_call_history): Unconditionally delegate.
7383 * target.h (struct target_ops) <to_call_history>: Use
7384 TARGET_DEFAULT_NORETURN.
7385
7386 2014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target-delegates.c: Rebuild.
7389 * target.c (target_call_history_from): Unconditionally delegate.
7390 * target.h (struct target_ops) <to_call_history_from>: Use
7391 TARGET_DEFAULT_NORETURN.
7392
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target-delegates.c: Rebuild.
7396 * target.c (target_call_history_range): Unconditionally delegate.
7397 * target.h (struct target_ops) <to_call_history_range>: Use
7398 TARGET_DEFAULT_NORETURN.
7399
7400 2014-02-19 Tom Tromey <tromey@redhat.com>
7401
7402 * target-delegates.c: Rebuild.
7403 * target.c (target_verify_memory): Unconditionally delegate.
7404 * target.h (struct target_ops) <to_verify_memory>: Use
7405 TARGET_DEFAULT_NORETURN.
7406
7407 2014-02-19 Tom Tromey <tromey@redhat.com>
7408
7409 * target-delegates.c: Rebuild.
7410 * target.c (target_core_of_thread): Unconditionally delegate.
7411 * target.h (struct target_ops) <to_core_of_thread>: Use
7412 TARGET_DEFAULT_RETURN.
7413
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target-delegates.c: Rebuild.
7417 * target.c (target_flash_done): Unconditionally delegate.
7418 * target.h (struct target_ops) <to_flash_done>: Use
7419 TARGET_DEFAULT_NORETURN.
7420
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (target_flash_erase): Unconditionally delegate.
7425 * target.h (struct target_ops) <to_flash_erase>: Use
7426 TARGET_DEFAULT_NORETURN.
7427
7428 2014-02-19 Tom Tromey <tromey@redhat.com>
7429
7430 * target-delegates.c: Rebuild.
7431 * target.c (target_get_section_table): Unconditionally delegate.
7432 * target.h (struct target_ops) <to_get_section_table>: Use
7433 TARGET_DEFAULT_RETURN.
7434
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target-delegates.c: Rebuild.
7438 * target.c (target_pid_to_str): Unconditionally delegate.
7439 (init_dummy_target): Don't initialize to_pid_to_str.
7440 (default_pid_to_str): Rename from dummy_pid_to_str.
7441 * target.h (struct target_ops) <to_pid_to_str>: Use
7442 TARGET_DEFAULT_FUNC.
7443
7444 2014-02-19 Tom Tromey <tromey@redhat.com>
7445
7446 * target-delegates.c: Rebuild.
7447 * target.c (target_find_new_threads): Unconditionally delegate.
7448 * target.h (struct target_ops) <to_find_new_threads>: Use
7449 TARGET_DEFAULT_RETURN.
7450
7451 2014-02-19 Tom Tromey <tromey@redhat.com>
7452
7453 * target-delegates.c: Rebuild.
7454 * target.c (target_program_signals): Unconditionally delegate.
7455 * target.h (struct target_ops) <to_program_signals>: Use
7456 TARGET_DEFAULT_IGNORE.
7457
7458 2014-02-19 Tom Tromey <tromey@redhat.com>
7459
7460 * target-delegates.c: Rebuild.
7461 * target.c (target_pass_signals): Unconditionally delegate.
7462 * target.h (struct target_ops) <to_pass_signals>: Use
7463 TARGET_DEFAULT_IGNORE.
7464
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7466
7467 * target-delegates.c: Rebuild.
7468 * target.c (default_mourn_inferior): New function.
7469 (target_mourn_inferior): Unconditionally delegate.
7470 * target.h (struct target_ops) <to_mourn_inferior>: Use
7471 TARGET_DEFAULT_FUNC.
7472
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7474
7475 * target-delegates.c: Rebuild.
7476 * target.c (default_follow_fork): New function.
7477 (target_follow_fork): Unconditionally delegate.
7478 * target.h (struct target_ops) <to_follow_fork>: Use
7479 TARGET_DEFAULT_FUNC.
7480
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7482
7483 * target-delegates.c: Rebuild.
7484 * target.c (target_kill): Unconditionally delegate.
7485 * target.h (struct target_ops) <to_kill>: Use
7486 TARGET_DEFAULT_NORETURN.
7487
7488 2014-02-19 Tom Tromey <tromey@redhat.com>
7489
7490 * target-delegates.c: Rebuild.
7491 * target.c (target_masked_watch_num_registers): Unconditionally
7492 delegate.
7493 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7494 Use TARGET_DEFAULT_RETURN.
7495
7496 2014-02-19 Tom Tromey <tromey@redhat.com>
7497
7498 * target-delegates.c: Rebuild.
7499 * target.c (target_remove_mask_watchpoint): Unconditionally
7500 delegate.
7501 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7502 TARGET_DEFAULT_RETURN.
7503
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target-delegates.c: Rebuild.
7507 * target.c (target_insert_mask_watchpoint): Unconditionally
7508 delegate.
7509 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7510 TARGET_DEFAULT_RETURN.
7511
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7513
7514 * target-delegates.c: Rebuild.
7515 * target.c (target_ranged_break_num_registers): Unconditionally
7516 delegate.
7517 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7518 Use TARGET_DEFAULT_RETURN.
7519
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7521
7522 * target-delegates.c: Rebuild.
7523 * target.c (target_fetch_registers): Unconditionally delegate.
7524 * target.h (struct target_ops) <to_fetch_registers>: Use
7525 TARGET_DEFAULT_NORETURN.
7526
7527 2014-02-19 Tom Tromey <tromey@redhat.com>
7528
7529 * target-delegates.c: Rebuild.
7530 * target.c (update_current_target): Don't inherit or default
7531 to_stop.
7532 * target.h (struct target_ops) <to_stop>: Use
7533 TARGET_DEFAULT_IGNORE.
7534
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7536
7537 * target-delegates.c: Rebuild.
7538 * target.c (update_current_target): Don't inherit or default
7539 to_can_run_breakpoint_commands.
7540 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7541 Use 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_supports_evaluation_of_breakpoint_conditions.
7548 * target.h (struct target_ops)
7549 <to_supports_evaluation_of_breakpoint_conditions>: Use
7550 TARGET_DEFAULT_RETURN.
7551
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7553
7554 * target-delegates.c: Rebuild.
7555 * target.c (update_current_target): Don't inherit or default
7556 to_augmented_libraries_svr4_read.
7557 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7558 Use TARGET_DEFAULT_RETURN.
7559
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * target-delegates.c: Rebuild.
7563 * target.c (update_current_target): Don't inherit or default
7564 to_can_use_agent.
7565 * target.h (struct target_ops) <to_can_use_agent>: Use
7566 TARGET_DEFAULT_RETURN.
7567
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7569
7570 * target-delegates.c: Rebuild.
7571 * target.c (update_current_target): Don't inherit or default
7572 to_use_agent.
7573 * target.h (struct target_ops) <to_use_agent>: Use
7574 TARGET_DEFAULT_NORETURN.
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_traceframe_info.
7581 (return_null): Remove.
7582 * target.h (struct target_ops) <to_traceframe_info>: Use
7583 TARGET_DEFAULT_RETURN.
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_markers_by_strid.
7590 * target.h (struct target_ops)
7591 <to_static_tracepoint_markers_by_strid>: Use
7592 TARGET_DEFAULT_NORETURN.
7593
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7595
7596 * target-delegates.c: Rebuild.
7597 * target.c (update_current_target): Don't inherit or default
7598 to_static_tracepoint_marker_at.
7599 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7600 Use TARGET_DEFAULT_RETURN.
7601
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * target-delegates.c: Rebuild.
7605 * target.c (update_current_target): Don't inherit or default
7606 to_set_permissions.
7607 * target.h (struct target_ops) <to_set_permissions>: Use
7608 TARGET_DEFAULT_IGNORE.
7609
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7611
7612 * target-delegates.c: Rebuild.
7613 * target.c (update_current_target): Don't inherit or default
7614 to_get_tib_address.
7615 * target.h (struct target_ops) <to_get_tib_address>: Use
7616 TARGET_DEFAULT_NORETURN.
7617
7618 2014-02-19 Tom Tromey <tromey@redhat.com>
7619
7620 * target-delegates.c: Rebuild.
7621 * target.c (update_current_target): Don't inherit or default
7622 to_set_trace_notes.
7623 * target.h (struct target_ops) <to_set_trace_notes>: Use
7624 TARGET_DEFAULT_RETURN.
7625
7626 2014-02-19 Tom Tromey <tromey@redhat.com>
7627
7628 * target-delegates.c: Rebuild.
7629 * target.c (update_current_target): Don't initialize
7630 to_set_trace_buffer_size.
7631 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7632 TARGET_DEFAULT_IGNORE.
7633
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7635
7636 * target-delegates.c: Rebuild.
7637 * target.c (update_current_target): Don't inherit or default
7638 to_set_circular_trace_buffer.
7639 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7640 TARGET_DEFAULT_IGNORE.
7641
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * target-delegates.c: Rebuild.
7645 * target.c (update_current_target): Don't inherit or default
7646 to_set_disconnected_tracing.
7647 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7648 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
7655 (return_minus_one): Remove.
7656 * target.h (struct target_ops)
7657 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7658
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7660
7661 * target-delegates.c: Rebuild.
7662 * target.c (update_current_target): Don't inherit or default
7663 to_get_raw_trace_data.
7664 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7665 TARGET_DEFAULT_NORETURN.
7666
7667 2014-02-19 Tom Tromey <tromey@redhat.com>
7668
7669 * target-delegates.c: Rebuild.
7670 * target.c (update_current_target): Don't inherit or default
7671 to_upload_trace_state_variables.
7672 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7673 Use TARGET_DEFAULT_RETURN.
7674
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't inherit or default
7679 to_upload_tracepoints.
7680 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7681 TARGET_DEFAULT_RETURN.
7682
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (update_current_target): Don't inherit or default
7687 to_save_trace_data.
7688 * target.h (struct target_ops) <to_save_trace_data>: Use
7689 TARGET_DEFAULT_NORETURN.
7690
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7692
7693 * target-delegates.c: Rebuild.
7694 * target.c (update_current_target): Don't inherit or default
7695 to_get_trace_state_variable_value.
7696 * target.h (struct target_ops)
7697 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7698
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * target-delegates.c: Rebuild.
7702 * target.c (update_current_target): Don't inherit or default
7703 to_trace_find.
7704 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7705
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_trace_stop.
7711 * target.h (struct target_ops) <to_trace_stop>: Use
7712 TARGET_DEFAULT_NORETURN.
7713
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_get_tracepoint_status.
7719 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7720 TARGET_DEFAULT_NORETURN.
7721
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7723
7724 * target-delegates.c: Rebuild.
7725 * target.c (update_current_target): Don't inherit or default
7726 to_get_trace_status.
7727 * target.h (struct target_ops) <to_get_trace_status>: Use
7728 TARGET_DEFAULT_RETURN.
7729
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target-delegates.c: Rebuild.
7733 * target.c (update_current_target): Don't inherit or default
7734 to_trace_start.
7735 * target.h (struct target_ops) <to_trace_start>: Use
7736 TARGET_DEFAULT_NORETURN.
7737
7738 2014-02-19 Tom Tromey <tromey@redhat.com>
7739
7740 * target-delegates.c: Rebuild.
7741 * target.c (update_current_target): Don't inherit or default
7742 to_trace_set_readonly_regions.
7743 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7744 Use TARGET_DEFAULT_NORETURN.
7745
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7747
7748 * target-delegates.c: Rebuild.
7749 * target.c (update_current_target): Don't inherit or default
7750 to_disable_tracepoint.
7751 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7752 TARGET_DEFAULT_NORETURN.
7753
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7755
7756 * target-delegates.c: Rebuild.
7757 * target.c (update_current_target): Don't inherit or default
7758 to_enable_tracepoint.
7759 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7760 TARGET_DEFAULT_NORETURN.
7761
7762 2014-02-19 Tom Tromey <tromey@redhat.com>
7763
7764 * target-delegates.c: Rebuild.
7765 * target.c (update_current_target): Don't inherit or default
7766 to_download_trace_state_variable.
7767 * target.h (struct target_ops) <to_download_trace_state_variable>:
7768 Use TARGET_DEFAULT_NORETURN.
7769
7770 2014-02-19 Tom Tromey <tromey@redhat.com>
7771
7772 * target-delegates.c: Rebuild.
7773 * target.c (update_current_target): Don't inherit or default
7774 to_can_download_tracepoint.
7775 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7776 TARGET_DEFAULT_RETURN.
7777
7778 2014-02-19 Tom Tromey <tromey@redhat.com>
7779
7780 * target-delegates.c: Rebuild.
7781 * target.c (update_current_target): Don't inherit or default
7782 to_download_tracepoint.
7783 * target.h (struct target_ops) <to_download_tracepoint>: Use
7784 TARGET_DEFAULT_NORETURN.
7785
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (update_current_target): Don't inherit or default
7790 to_trace_init.
7791 * target.h (struct target_ops) <to_trace_init>: Use
7792 TARGET_DEFAULT_RETURN.
7793
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (update_current_target): Don't inherit or default
7798 to_supports_string_tracing.
7799 * target.h (struct target_ops) <to_supports_string_tracing>: 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_enable_disable_tracepoint.
7807 * target.h (struct target_ops)
7808 <to_supports_enable_disable_tracepoint>: Use
7809 TARGET_DEFAULT_RETURN.
7810
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (update_current_target): Don't inherit or default
7815 to_supports_multi_process.
7816 * target.h (struct target_ops) <to_supports_multi_process>: Use
7817 TARGET_DEFAULT_RETURN.
7818
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7823 to_get_ada_task_ptid.
7824 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7825 TARGET_DEFAULT_FUNC.
7826
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7831 to_thread_architecture.
7832 * target.h (struct target_ops) <to_thread_architecture>: Use
7833 TARGET_DEFAULT_FUNC.
7834
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target-delegates.c: Rebuild.
7838 * target.c (update_current_target): Don't inherit or default
7839 to_execution_direction.
7840 * target.h (struct target_ops) <to_execution_direction>: Use
7841 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
7848 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7849 TARGET_DEFAULT_RETURN.
7850 (target_can_execute_reverse): Unconditionally delegate.
7851
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7853
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_goto_bookmark.
7857 (dummy_goto_bookmark): Remove.
7858 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7859 * target.h (struct target_ops) <to_goto_bookmark>: Use
7860 TARGET_DEFAULT_NORETURN.
7861
7862 2014-02-19 Tom Tromey <tromey@redhat.com>
7863
7864 * target-delegates.c: Rebuild.
7865 * target.c (update_current_target): Don't inherit or default
7866 to_get_bookmark.
7867 (dummy_get_bookmark): Remove.
7868 (init_dummy_target): Don't inherit or default to_get_bookmark.
7869 * target.h (struct target_ops) <to_get_bookmark>: Use
7870 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
7877 (init_dummy_target): Don't initialize to_make_corefile_notes.
7878 * target.h (struct target_ops) <to_make_corefile_notes>: 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_find_memory_regions.
7886 (init_dummy_target): Don't initialize to_find_memory_regions.
7887 * target.h (struct target_ops) <to_find_memory_regions>: Use
7888 TARGET_DEFAULT_FUNC.
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_log_command.
7895 * target.h (struct target_ops) <to_log_command>: Use
7896 TARGET_DEFAULT_IGNORE.
7897 (target_log_command): Unconditionally delegate.
7898
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_pid_to_exec_file.
7904 * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name.
7912 (target_thread_name): Unconditionally delegate.
7913 * target.h (struct target_ops) <to_thread_name>: Use
7914 TARGET_DEFAULT_RETURN.
7915
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7920 to_extra_thread_info.
7921 * target.h (struct target_ops) <to_extra_thread_info>: Use
7922 TARGET_DEFAULT_RETURN.
7923
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target-delegates.c: Rebuild.
7927 * target.c (update_current_target): Don't inherit or default
7928 to_has_exited.
7929 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
7937 (return_one): Remove.
7938 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7939 TARGET_DEFAULT_RETURN.
7940
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target-delegates.c: Rebuild.
7944 * target.c (update_current_target): Don't inherit or default
7945 to_insert_exec_catchpoint.
7946 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7947 TARGET_DEFAULT_RETURN.
7948
7949 2014-01-08 Tom Tromey <tromey@redhat.com>
7950
7951 * target-delegates.c: Rebuild.
7952 * target.c (update_current_target): Don't inherit or default
7953 to_insert_exec_catchpoint.
7954 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7955 TARGET_DEFAULT_RETURN.
7956
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7958
7959 * target-delegates.c: Rebuild.
7960 * target.c (update_current_target): Don't inherit or default
7961 to_remove_vfork_catchpoint.
7962 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7963 TARGET_DEFAULT_RETURN.
7964
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7966
7967 * target-delegates.c: Rebuild.
7968 * target.c (update_current_target): Don't inherit or default
7969 to_insert_vfork_catchpoint.
7970 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7971 TARGET_DEFAULT_RETURN.
7972
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_remove_fork_catchpoint.
7978 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7979 TARGET_DEFAULT_RETURN.
7980
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_insert_fork_catchpoint.
7986 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7987 TARGET_DEFAULT_RETURN.
7988
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * target-delegates.c: Rebuild.
7992 * target.c (update_current_target): Don't inherit or default
7993 to_post_startup_inferior.
7994 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7995 TARGET_DEFAULT_IGNORE.
7996
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7998
7999 * target-delegates.c: Rebuild.
8000 * target.c (update_current_target): Don't inherit or default
8001 to_load.
8002 * target.h (struct target_ops) <to_load>: Use
8003 TARGET_DEFAULT_NORETURN.
8004
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (update_current_target): Don't inherit or default
8009 to_terminal_info.
8010 * target.h (struct target_ops) <to_terminal_info>: Use
8011 TARGET_DEFAULT_FUNC.
8012
8013 2014-02-19 Tom Tromey <tromey@redhat.com>
8014
8015 * target-delegates.c: Rebuild.
8016 * target.c (update_current_target): Don't inherit or default
8017 to_terminal_save_ours.
8018 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8019 TARGET_DEFAULT_IGNORE.
8020
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_terminal_ours.
8026 * target.h (struct target_ops) <to_terminal_ours>: Use
8027 TARGET_DEFAULT_IGNORE.
8028
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_terminal_ours_for_output.
8034 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8035 TARGET_DEFAULT_IGNORE.
8036
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_terminal_inferior.
8042 * target.h (struct target_ops) <to_terminal_inferior>: Use
8043 TARGET_DEFAULT_IGNORE.
8044
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_terminal_init.
8050 * target.h (struct target_ops) <to_terminal_init>: Use
8051 TARGET_DEFAULT_IGNORE.
8052
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8057 to_can_accel_watchpoint_condition.
8058 * target.h (struct target_ops)
8059 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8060
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8065 to_region_ok_for_hw_watchpoint.
8066 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8067 Use TARGET_DEFAULT_FUNC.
8068
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (update_current_target): Don't inherit or default
8073 to_watchpoint_addr_within_range.
8074 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8075 Use TARGET_DEFAULT_FUNC.
8076
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't inherit or default
8081 to_remove_watchpoint.
8082 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8083 TARGET_DEFAULT_NORETURN.
8084
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_insert_watchpoint.
8090 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8091 TARGET_DEFAULT_RETURN.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_remove_hw_breakpoint.
8098 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8099 TARGET_DEFAULT_RETURN.
8100
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_insert_hw_breakpoint.
8106 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8107 TARGET_DEFAULT_RETURN.
8108
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_can_use_hw_breakpoint.
8114 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8115 TARGET_DEFAULT_RETURN.
8116
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_files_info.
8122 * target.h (struct target_ops) <to_files_info>: Use
8123 TARGET_DEFAULT_IGNORE.
8124
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_store.
8130 * target.h (struct target_ops) <to_store>: Use
8131 TARGET_DEFAULT_NORETURN.
8132
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_post_attach.
8138 * target.h (struct target_ops) <to_post_attach>: Use
8139 TARGET_DEFAULT_IGNORE.
8140
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * target-delegates.c: Rebuild.
8144 * target.c (update_current_target): Don't inherit or default
8145 to_rcmd.
8146 (default_rcmd): New function.
8147 (do_monitor_command): Unconditionally delegate.
8148 * target.h (struct target_ops) <to_rmcd>: Use
8149 TARGET_DEFAULT_FUNC.
8150
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8152
8153 * target-delegates.c: Rebuild.
8154 * target.c (init_dummy_target): Don't initialize to_attach.
8155 (target_attach): Unconditionally delegate.
8156 * target.h (struct target_ops) <to_attach>: Use
8157 TARGET_DEFAULT_FUNC.
8158
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8160
8161 * target-delegates.c: Rebuild.
8162 * target.c (target_detach): Unconditionally delegate.
8163 (init_dummy_target): Don't initialize to_detach.
8164 * target.h (struct target_ops) <to_detach>: Use
8165 TARGET_DEFAULT_IGNORE.
8166
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8168
8169 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8170 Add argument.
8171 (target_augmented_libraries_svr4_read): Add argument.
8172 * target.c (update_current_target): Update.
8173 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8174 argument.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target.h (struct target_ops) <to_call_history_range>: Add
8179 argument.
8180 * target.c (target_call_history_range): Add argument.
8181 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8182 argument.
8183 (record_btrace_call_history_from): Update.
8184
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target.h (struct target_ops) <to_call_history_from>: Add
8188 argument.
8189 * target.c (target_call_history_from): Add argument.
8190 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8191 argument.
8192
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target.h (struct target_ops) <to_call_history>: Add argument.
8196 * target.c (target_call_history): Add argument.
8197 * record-btrace.c (record_btrace_call_history): Add 'self'
8198 argument.
8199
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target.h (struct target_ops) <to_insn_history_range>: Add
8203 argument.
8204 * target.c (target_insn_history_range): Add argument.
8205 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8206 argument.
8207 (record_btrace_insn_history_from): Update.
8208
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target.h (struct target_ops) <to_insn_history_from>: Add
8212 argument.
8213 * target.c (target_insn_history_from): Add argument.
8214 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8215 argument.
8216
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target.h (struct target_ops) <to_insn_history>: Add argument.
8220 * target.c (target_insn_history): Add argument.
8221 * record-btrace.c (record_btrace_insn_history): Add 'self'
8222 argument.
8223
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target.h (struct target_ops) <to_goto_record>: Add argument.
8227 * target.c (target_goto_record): Add argument.
8228 * record-full.c (record_full_goto): Add 'self' argument.
8229 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8230
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8234 * target.c (target_goto_record_end): Add argument.
8235 * record-full.c (record_full_goto_end): Add 'self' argument.
8236 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8237
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target.h (struct target_ops) <to_goto_record_begin>: Add
8241 argument.
8242 * target.c (target_goto_record_begin): Add argument.
8243 * record-full.c (record_full_goto_begin): Add 'self' argument.
8244 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8245 argument.
8246
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target.h (struct target_ops) <to_record_is_replaying>: Add
8250 argument.
8251 * target.c (target_record_is_replaying): Add argument.
8252 * record-full.c (record_full_is_replaying): Add 'self' argument.
8253 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8254 argument.
8255 (record_btrace_xfer_partial, record_btrace_store_registers)
8256 (record_btrace_prepare_to_store, record_btrace_resume)
8257 (record_btrace_wait, record_btrace_decr_pc_after_break)
8258 (record_btrace_find_new_threads, record_btrace_thread_alive):
8259 Update.
8260
8261 2014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target.h (struct target_ops) <to_delete_record>: Add argument.
8264 * target.c (target_delete_record): Add argument.
8265 * record-full.c (record_full_delete): Add 'self' argument.
8266
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target.h (struct target_ops) <to_save_record>: Add argument.
8270 * target.c (target_save_record): Add argument.
8271 * record-full.c (record_full_save): Add 'self' argument.
8272 (record_full_save): Add 'self' argument.
8273
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target.h (struct target_ops) <to_info_record>: Add argument.
8277 * target.c (target_info_record): Add argument.
8278 * record.c (info_record_command): Add argument.
8279 * record-full.c (record_full_info): Add 'self' argument.
8280 * record-btrace.c (record_btrace_info): Add 'self' argument.
8281
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8285 * target.c (target_stop_recording): Add argument.
8286 * record.c (record_stop): Add argument.
8287 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8288 argument.
8289
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8293 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8294 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8295 argument.
8296 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8297 (_initialize_amd64_linux_nat): Use it.
8298 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8299 (_initialize_i386_linux_nat): Use it.
8300
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8304 * target.c (target_teardown_btrace): Add argument.
8305 * remote.c (remote_teardown_btrace): Add 'self' argument.
8306 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8307 argument.
8308 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8309 argument.
8310
8311 2014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8314 * target.c (target_disable_btrace): Add argument.
8315 * remote.c (remote_disable_btrace): Add 'self' argument.
8316 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8317 argument.
8318 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8319 argument.
8320
8321 2014-02-19 Tom Tromey <tromey@redhat.com>
8322
8323 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8324 * target.c (target_enable_btrace): Add argument.
8325 * remote.c (remote_enable_btrace): Add 'self' argument.
8326 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8327 argument.
8328 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8329 argument.
8330
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8334 (target_can_use_agent): Add argument.
8335 * target.c (update_current_target): Update.
8336 * remote.c (remote_can_use_agent): Add 'self' argument.
8337 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8338
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target.h (struct target_ops) <to_use_agent>: Add argument.
8342 (target_use_agent): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_use_agent): Add 'self' argument.
8345 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8346
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8350 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8351 (target_traceframe_info): Add argument.
8352 * target.c (update_current_target): Update.
8353 * remote.c (remote_traceframe_info): Add 'self' argument.
8354 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8355
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target.h (target_static_tracepoint_markers_by_strid): Add
8359 argument.
8360 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8361 'self' argument.
8362 * target.c (update_current_target): Update.
8363 * remote.c (struct target_ops)
8364 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8365 * linux-nat.c (struct target_ops)
8366 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8367
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8371 Add argument.
8372 (target_static_tracepoint_marker_at): Add argument.
8373 * target.c (update_current_target): Update.
8374 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8375 argument.
8376
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8380 (target_set_permissions): Add argument.
8381 * target.c (update_current_target): Update.
8382 * remote.c (remote_set_permissions): Add 'self' argument.
8383 (remote_start_remote): Update.
8384
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8386
8387 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8388 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8389 (target_get_tib_address): Add argument.
8390 * target.c (update_current_target): Update.
8391 * remote.c (remote_get_tib_address): Add 'self' argument.
8392
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8396 (target_set_trace_notes): Add argument.
8397 * target.c (update_current_target): Update.
8398 * remote.c (remote_set_trace_notes): Add 'self' argument.
8399
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8403 argument.
8404 (target_set_trace_buffer_size): Add argument.
8405 * target.c (update_current_target): Update.
8406 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8407
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8411 argument.
8412 (target_set_circular_trace_buffer): Add argument.
8413 * target.c (update_current_target): Update.
8414 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8415 argument.
8416
8417 2014-02-19 Tom Tromey <tromey@redhat.com>
8418
8419 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8420 argument.
8421 (target_set_disconnected_tracing): Add argument.
8422 * target.c (update_current_target): Update.
8423 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8424
8425 2014-02-19 Tom Tromey <tromey@redhat.com>
8426
8427 * target.h (struct target_ops)
8428 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8429 (target_get_min_fast_tracepoint_insn_len): Add argument.
8430 * target.c (update_current_target): Update.
8431 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8432 argument.
8433
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8437 argument.
8438 (target_get_raw_trace_data): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8441
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8445 Add argument.
8446 (target_upload_trace_state_variables): Add argument.
8447 * target.c (update_current_target): Update.
8448 * remote.c (remote_upload_trace_state_variables): Add 'self'
8449 argument.
8450 (remote_start_remote): Update.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8455 argument.
8456 (target_upload_tracepoints): Add argument.
8457 * target.c (update_current_target): Update.
8458 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8459 (remote_start_remote): Update.
8460
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8462
8463 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8464 (target_save_trace_data): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_save_trace_data): Add 'self' argument.
8467
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8471 argument.
8472 * target.h (struct target_ops)
8473 <to_get_trace_state_variable_value>: Add argument.
8474 (target_get_trace_state_variable_value): Add argument.
8475 * target.c (update_current_target): Update.
8476 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8477 argument.
8478 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8479
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8483 * target.h (struct target_ops) <to_trace_find>: Add argument.
8484 (target_trace_find): Add argument.
8485 * target.c (update_current_target): Update.
8486 * remote.c (remote_trace_find): Add 'self' argument.
8487 * ctf.c (ctf_trace_find): Add 'self' argument.
8488
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8490
8491 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8492 (target_trace_stop): Add argument.
8493 * target.c (update_current_target): Update.
8494 * remote.c (remote_trace_stop): Add 'self' argument.
8495
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8499 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8500 argument.
8501 (target_get_tracepoint_status): Add argument.
8502 * target.c (update_current_target): Update.
8503 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8504
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8506
8507 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8508 * target.h (struct target_ops) <to_get_trace_status>: Add
8509 argument.
8510 (target_get_trace_status): Add argument.
8511 * target.c (update_current_target): Update.
8512 * remote.c (remote_get_trace_status): Add 'self' argument.
8513 (remote_start_remote, remote_can_download_tracepoint): Update.
8514 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target.h (struct target_ops) <to_trace_start>: Add argument.
8519 (target_trace_start): Add argument.
8520 * target.c (update_current_target): Update.
8521 * remote.c (remote_trace_start): Add 'self' argument.
8522
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8526 Add argument.
8527 (target_trace_set_readonly_regions): Add argument.
8528 * target.c (update_current_target): Update.
8529 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8530 argument.
8531
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8535 argument.
8536 (target_disable_tracepoint): Add argument.
8537 * target.c (update_current_target): Update.
8538 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8539
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8543 argument.
8544 (target_enable_tracepoint): Add argument.
8545 * target.c (update_current_target): Update.
8546 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target.h (struct target_ops) <to_download_trace_state_variable>:
8551 Add argument.
8552 (target_download_trace_state_variable): Add argument.
8553 * target.c (update_current_target): Update.
8554 * remote.c (remote_download_trace_state_variable): Add 'self'
8555 argument.
8556
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8558
8559 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8560 argument.
8561 (target_can_download_tracepoint): Add argument.
8562 * target.c (update_current_target): Update.
8563 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8564
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_download_tracepoint>: Add
8568 argument.
8569 (target_download_tracepoint): Add argument.
8570 * target.c (update_current_target): Update.
8571 * remote.c (remote_download_tracepoint): Add 'self' argument.
8572
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target.h (struct target_ops) <to_trace_init>: Add argument.
8576 (target_trace_init): Add argument.
8577 * target.c (update_current_target): Update.
8578 * remote.c (remote_trace_init): Add 'self' argument.
8579
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8583 * target.c (target_fileio_readlink): Add argument.
8584 * remote.c (remote_hostio_readlink): Add 'self' argument.
8585 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8586
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8590 * target.c (target_fileio_unlink): Add argument.
8591 * remote.c (remote_hostio_unlink): Add 'self' argument.
8592 (remote_file_delete): Update.
8593 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8594
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8598 * target.c (target_fileio_close): Add argument.
8599 * remote.c (remote_hostio_close): Add 'self' argument.
8600 (remote_hostio_close_cleanup): Update.
8601 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8602 Update.
8603 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8608 * target.c (target_fileio_pread): Add argument.
8609 * remote.c (remote_hostio_pread): Add 'self' argument.
8610 (remote_bfd_iovec_pread, remote_file_get): Update.
8611 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8616 * target.c (target_fileio_pwrite): Add argument.
8617 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8618 (remote_file_put): Update.
8619 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8620
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8624 * target.c (target_fileio_open): Add argument.
8625 * remote.c (remote_hostio_open): Add 'self' argument.
8626 (remote_bfd_iovec_open): Add 'self' argument.
8627 (remote_file_put): Add 'self' argument.
8628 (remote_file_get): Add 'self' argument.
8629 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8630
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8632
8633 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8634 Add argument.
8635 (target_can_run_breakpoint_commands): Add argument.
8636 * target.c (update_current_target): Update.
8637 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8638 argument.
8639 (remote_insert_breakpoint): Add 'self' argument.
8640 (remote_insert_hw_breakpoint): Add 'self' argument.
8641 (remote_can_run_breakpoint_commands): Add 'self' argument.
8642
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target.h (struct target_ops)
8646 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8647 (target_supports_evaluation_of_breakpoint_conditions): Add
8648 argument.
8649 * target.c (update_current_target): Update.
8650 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8651 argument.
8652 (remote_insert_breakpoint): Add 'self' argument.
8653 (remote_insert_hw_breakpoint): Add 'self' argument.
8654 (remote_supports_cond_breakpoints): Add 'self' argument.
8655
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8659 argument.
8660 (target_supports_string_tracing): Add argument.
8661 * target.c (update_current_target): Update.
8662 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8663
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target.h (struct target_ops)
8667 <to_supports_disable_randomization>: Add argument.
8668 * target.c (find_default_supports_disable_randomization): Add
8669 argument.
8670 (target_supports_disable_randomization): Add argument.
8671 (find_default_supports_disable_randomization): Add 'self'
8672 argument.
8673 * remote.c (extended_remote_supports_disable_randomization): Add
8674 'self' argument.
8675 (remote_supports_disable_randomization): Add 'self' argument.
8676 (extended_remote_create_inferior): Update.
8677 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8678 'self' argument.
8679
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops)
8683 <to_supports_enable_disable_tracepoint>: Add argument.
8684 (target_supports_enable_disable_tracepoint): Add argument.
8685 * target.c (update_current_target): Update.
8686 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8687 argument.
8688
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target.h (struct target_ops) <to_supports_multi_process>: Add
8692 argument.
8693 (target_supports_multi_process): Add argument.
8694 * target.c (update_current_target): Update.
8695 * remote.c (remote_supports_multi_process): Add 'self' argument.
8696 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8697 argument.
8698 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8699 argument.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target.h (struct target_ops) <to_execution_direction>: Add
8704 argument.
8705 (target_execution_direction): Add argument.
8706 * target.c (default_execution_direction): Add 'self' argument.
8707 * record-full.c (record_full_execution_direction): Add 'self'
8708 argument.
8709
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8713 argument.
8714 (target_can_execute_reverse): Add argument.
8715 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8716 * record-full.c (record_full_can_execute_reverse): Add 'self'
8717 argument.
8718 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8719 argument.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8724 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8725 argument.
8726 (target_get_ada_task_ptid): Add argument.
8727 * target.c (update_current_target): Update.
8728 (default_get_ada_task_ptid): Add 'self' argument.
8729 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8730 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8731 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8732 argument.
8733 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8734 argument.
8735 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8736 argument.
8737 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8738 argument.
8739 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8740 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8741 argument.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8746 (target_goto_bookmark): Add argument.
8747 * target.c (dummy_goto_bookmark): Add 'self' argument.
8748 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8753 (target_get_bookmark): Add argument.
8754 * target.c (dummy_get_bookmark): Add 'self' argument.
8755 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8760 argument.
8761 (target_make_corefile_notes): Add argument.
8762 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8763 * procfs.c (procfs_make_note_section): Add 'self' argument.
8764 (procfs_make_note_section): Add 'self' argument.
8765 (procfs_make_note_section): Add 'self' argument.
8766 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8767 argument.
8768 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8769 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8770 * exec.c (exec_make_note_section): Add 'self' argument.
8771 (exec_make_note_section): Add 'self' argument.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target.h (struct target_ops) <to_find_memory_regions>: Add
8776 argument.
8777 (target_find_memory_regions): Add argument.
8778 * target.c (dummy_find_memory_regions): Add 'self' argument.
8779 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8780 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8781 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8782 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8783 * exec. (exec_do_find_memory_regions): New global.
8784 (exec_set_find_memory_regions): Rewrite.
8785 (exec_find_memory_regions): New function.
8786 (init_exec_ops): Use exec_find_memory_regions.
8787
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target.h (struct target_ops) <to_supports_non_stop>: Add
8791 argument.
8792 * target.c (find_default_supports_non_stop): Add argument.
8793 (target_supports_non_stop): Add argument.
8794 (find_default_supports_non_stop): Add 'self' argument.
8795 * remote.c (remote_supports_non_stop): Add 'self' argument.
8796 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8797
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target.h (struct target_ops) <to_log_command>: Add argument.
8801 (target_log_command): Add argument.
8802 * serial.h (serial_log_command): Add 'self' argument.
8803 * serial.c (serial_log_command): Add 'self' argument.
8804
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8808 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8809 argument.
8810 (target_pid_to_exec_file): Add argument.
8811 * target.c (debug_to_pid_to_exec_file): Add argument.
8812 (update_current_target): Update.
8813 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8814 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8815 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8816 (linux_handle_extended_wait): Update.
8817 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8818 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8819 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8820 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target.h (struct target_ops) <to_rcmd>: Add argument.
8825 (target_rcmd): Add argument.
8826 * target.c (debug_to_rcmd): Add argument.
8827 (update_current_target, do_monitor_command): Update.
8828 * remote.c (remote_rcmd): Add 'self' argument.
8829 * monitor.c (monitor_rcmd): Add 'self' argument.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * windows-nat.c (windows_stop): Add 'self' argument.
8834 * target.h (struct target_ops) <to_stop>: Add argument.
8835 * target.c (target_stop): Add argument.
8836 (debug_to_stop): Add argument.
8837 (update_current_target): Update.
8838 * remote.c (remote_stop): Add 'self' argument.
8839 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8840 (gdbsim_cntrl_c): Update.
8841 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8842 * procfs.c (procfs_stop): Add 'self' argument.
8843 * nto-procfs.c (procfs_stop): Add 'self' argument.
8844 * monitor.c (monitor_stop): Add 'self' argument.
8845 (monitor_open): Update.
8846 * linux-nat.c (linux_nat_stop): Add argument.
8847 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8848 * gnu-nat.c (gnu_stop): Add 'self' argument.
8849 * darwin-nat.c (darwin_stop): Add 'self' argument.
8850
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target.h (struct target_ops) <to_thread_name>: Add argument.
8854 * target.c (target_thread_name): Add argument.
8855 (update_current_target): Update.
8856 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8857
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target.h (struct target_ops) <to_extra_thread_info>: Add
8861 argument.
8862 (target_extra_thread_info): Add argument.
8863 * target.c (update_current_target): Update.
8864 * remote.c (remote_threads_extra_info): Add 'self' argument.
8865 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8866 argument.
8867 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8868 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8869 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8870 argument.
8871 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8872 argument.
8873 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8874 argument.
8875 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8876 argument.
8877
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target.h (struct target_ops) <to_program_signals>: Add argument.
8881 * target.c (target_program_signals): Add argument.
8882 * remote.c (remote_program_signals): Add 'self' argument.
8883
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8887 * target.c (target_pass_signals): Add argument.
8888 * remote.c (remote_pass_signals): Add 'self' argument.
8889 (remote_start_remote): Update.
8890 * procfs.c (procfs_pass_signals): Add 'self' argument.
8891 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8892 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8893 (linux_nat_create_inferior, linux_nat_attach): Update.
8894
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * windows-nat.c (windows_can_run): Add 'self' argument.
8898 * target.h (struct target_ops) <to_can_run>: Add argument.
8899 (target_can_run): Add argument.
8900 * target.c (debug_to_can_run): Add argument.
8901 (update_current_target): Update.
8902 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8903 * inf-child.c (inf_child_can_run): Add 'self' argument.
8904 * go32-nat.c (go32_can_run): Add 'self' argument.
8905
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target.h (struct target_ops) <to_has_exited>: Add argument.
8909 (target_has_exited): Add argument.
8910 * target.c (debug_to_has_exited): Add argument.
8911 (update_current_target): Update.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8916 argument.
8917 (target_set_syscall_catchpoint): Add argument.
8918 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8919 argument.
8920 * target.c (update_current_target): Update.
8921
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8925 argument.
8926 (target_remove_exec_catchpoint): Add argument.
8927 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8928 (update_current_target): Update.
8929 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8930 argument.
8931
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8935 argument.
8936 (target_insert_exec_catchpoint): Add argument.
8937 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8938 (update_current_target): Update.
8939 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8940 argument.
8941
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8945 argument.
8946 (target_remove_vfork_catchpoint): Add argument.
8947 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8948 (update_current_target): Update.
8949 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8950 argument.
8951
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8955 argument.
8956 (target_insert_vfork_catchpoint): Add argument.
8957 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8958 (update_current_target): Update.
8959 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8960 argument.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8965 argument.
8966 (target_remove_fork_catchpoint): Add argument.
8967 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8968 (update_current_target): Update.
8969 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8970 argument.
8971
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8975 argument.
8976 (target_insert_fork_catchpoint): Add argument.
8977 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8978 (update_current_target): Update.
8979 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8980 argument.
8981
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8985 argument.
8986 (target_post_startup_inferior): Add argument.
8987 * target.c (debug_to_post_startup_inferior): Add argument.
8988 (update_current_target): Update.
8989 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8990 argument.
8991 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8992 argument.
8993 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8994 argument.
8995 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8996 argument.
8997 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8998 'self' argument.
8999 (super_post_startup_inferior): Likewise.
9000 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9001 'self' argument.
9002 (super_post_startup_inferior): Likewise.
9003 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9004 Add 'self' argument.
9005 (super_post_startup_inferior): Likewise.
9006
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target.h (struct target_ops) <to_load>: Add argument.
9010 * target.c (target_load): Add argument.
9011 (debug_to_load): Add argument.
9012 (update_current_target): Update.
9013 * remote.c (remote_load): Add 'self' argument.
9014 * remote-sim.c (gdbsim_load): Add 'self' argument.
9015 * remote-mips.c (mips_load): Add 'self' argument.
9016 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9017 * monitor.c (monitor_load): Add 'self' argument.
9018 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9023 (target_terminal_info): Add argument.
9024 * target.c (debug_to_terminal_info): Add argument.
9025 (default_terminal_info): Likewise.
9026 * inflow.c (child_terminal_info): Add 'self' argument.
9027 * inferior.h (child_terminal_info): Add 'self' argument.
9028 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9033 argument.
9034 (target_terminal_save_ours): Add argument.
9035 * target.c (debug_to_terminal_save_ours): Add argument.
9036 (update_current_target): Update.
9037 * inflow.c (terminal_save_ours): Add 'self' argument.
9038 * inferior.h (terminal_save_ours): Add 'self' argument.
9039
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9043 (target_terminal_ours): Add argument.
9044 * target.c (debug_to_terminal_ours): Add argument.
9045 (update_current_target): Update.
9046 * remote.c (remote_terminal_ours): Add 'self' argument.
9047 (remote_close): Update.
9048 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9049 * inflow.c (terminal_ours): Add 'self' argument.
9050 * inferior.h (terminal_ours): Add 'self' argument.
9051 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9052
9053 2014-02-19 Pedro Alves <palves@redhat.com>
9054 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9057 argument.
9058 (target_terminal_ours_for_output): Add argument.
9059 * target.c (debug_to_terminal_ours_for_output): Add argument.
9060 (update_current_target): Update.
9061 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9062 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9063 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target.h (struct target_ops) <to_terminal_inferior>: Add
9068 argument.
9069 * target.c (target_terminal_inferior): Add argument.
9070 (update_current_target): Update.
9071 * remote.c (remote_terminal_inferior): Add 'self' argument.
9072 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9073 * inflow.c (terminal_inferior): Add 'self' argument.
9074 * inferior.h (terminal_inferior): Add 'self' argument.
9075 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9076 (go32_terminal_inferior): Add 'self' argument.
9077
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9081 (target_terminal_init): Add argument.
9082 * target.c (debug_to_terminal_init): Add argument.
9083 (update_current_target): Update.
9084 * inflow.c (terminal_init_inferior): Add 'self' argument.
9085 * inferior.h (terminal_init_inferior): Add 'self' argument.
9086 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9087 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9088
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops)
9092 <to_can_accel_watchpoint_condition>: Add argument.
9093 (target_can_accel_watchpoint_condition): Add argument.
9094 * target.c (debug_to_can_accel_watchpoint_condition): Add
9095 argument.
9096 (update_current_target): Update.
9097 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9098 'self' argument.
9099
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9103 Add argument.
9104 (target_region_ok_for_hw_watchpoint): Add argument.
9105 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9106 (default_region_ok_for_hw_watchpoint): Add argument.
9107 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9108 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9109 argument.
9110 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9111 argument.
9112 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9113 argument.
9114 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9115 'self' argument.
9116 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9117 'self' argument.
9118 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9119 'self' argument.
9120 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9121 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9122 'self' argument.
9123 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9124 Add 'self' argument.
9125
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9129 argument.
9130 (target_insert_watchpoint): Add argument.
9131 * target.c (debug_to_insert_watchpoint): Add argument.
9132 (update_current_target): Update.
9133 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9134 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9135 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9136 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9137 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9138 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9139 argument.
9140 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9141 (procfs_insert_hw_watchpoint): Add 'self' argument.
9142 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9143 argument.
9144 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9145 argument.
9146 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9147 argument.
9148 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9149 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9150 argument.
9151 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9152 'self' argument.
9153
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9157 argument.
9158 (target_remove_watchpoint): Add argument.
9159 * target.c (debug_to_remove_watchpoint): Add argument.
9160 (update_current_target): Update.
9161 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9162 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9163 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9164 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9165 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9166 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9167 argument.
9168 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9169 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9170 argument.
9171 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9172 argument.
9173 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9174 argument.
9175 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9176 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9177 argument.
9178 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9179 'self' argument.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9184 argument.
9185 (target_remove_hw_breakpoint): Add argument.
9186 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9187 (update_current_target): Update.
9188 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9189 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9190 argument.
9191 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9192 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9193 argument.
9194 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9195 'self' argument.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9200 argument.
9201 (target_insert_hw_breakpoint): Add argument.
9202 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9203 (update_current_target): Update.
9204 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9205 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9206 argument.
9207 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9208 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9209 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9210 argument.
9211 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9212 'self' argument.
9213
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9217 argument.
9218 (target_can_use_hardware_watchpoint): Add argument.
9219 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9220 (update_current_target): Update.
9221 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9222 argument.
9223 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9224 argument.
9225 * remote.c (remote_check_watch_resources): Add 'self' argument.
9226 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9227 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9228 argument.
9229 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9230 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9231 argument.
9232 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9233 argument.
9234 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9235 argument.
9236 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9237 argument.
9238 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9239 argument.
9240 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9241 argument.
9242 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9243 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9244 argument.
9245 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9246 'self' argument.
9247
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target.h (struct target_ops) <to_post_attach>: Add argument.
9251 (target_post_attach): Add argument.
9252 * target.c (debug_to_post_attach): Add argument.
9253 (update_current_target): Update.
9254 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9255 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9256 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9257 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9258 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9259
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * windows-nat.c (windows_close): Add 'self' argument.
9263 * tracepoint.c (tfile_close): Add 'self' argument.
9264 * target.h (struct target_ops) <to_close>: Add argument.
9265 * target.c (target_close): Add argument.
9266 (update_current_target): Update.
9267 * remote.c (remote_close): Add 'self' argument.
9268 * remote-sim.c (gdbsim_close): Add 'self' argument.
9269 * remote-mips.c (mips_close): Add 'self' argument.
9270 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9271 * record-full.c (record_full_close): Add 'self' argument.
9272 * record-btrace.c (record_btrace_close): Add 'self' argument.
9273 * monitor.h (monitor_close): Add 'self' argument.
9274 * monitor.c (monitor_close): Add 'self' argument.
9275 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9276 * linux-nat.c (linux_nat_close): Add argument.
9277 * go32-nat.c (go32_close): Add 'self' argument.
9278 * exec.c (exec_close_1): Add 'self' argument.
9279 * ctf.c (ctf_close): Add 'self' argument.
9280 * corelow.c (core_close): Add 'self' argument.
9281 (core_close_cleanup): Update.
9282 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9283 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * remote.c (remote_load): New function.
9288 (init_remote_ops): Use it.
9289
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9293 argument.
9294 * common/linux-btrace.h (linux_supports_btrace): Update.
9295 * remote.c (remote_supports_btrace): Add "self" argument.
9296 * target-delegates.c: Rebuild.
9297 * target.c (target_supports_btrace): Remove.
9298 * target.h (struct target_ops) <to_supports_btrace>: Add
9299 target_ops argument.
9300 (target_supports_btrace): New define.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * record-full.c (record_full_beneath_to_resume_ops)
9305 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9306 (record_full_beneath_to_wait)
9307 (record_full_beneath_to_store_registers_ops)
9308 (record_full_beneath_to_store_registers)
9309 (record_full_beneath_to_xfer_partial_ops)
9310 (record_full_beneath_to_xfer_partial)
9311 (record_full_beneath_to_insert_breakpoint_ops)
9312 (record_full_beneath_to_insert_breakpoint)
9313 (record_full_beneath_to_remove_breakpoint_ops)
9314 (record_full_beneath_to_remove_breakpoint)
9315 (record_full_beneath_to_stopped_by_watchpoint)
9316 (record_full_beneath_to_stopped_data_address)
9317 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9318 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9319 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9320 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9321 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9322 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9323 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9324 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9325 (record_full_resume, record_full_wait_1)
9326 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9327 (record_full_store_registers, record_full_xfer_partial)
9328 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9329 (record_full_async, record_full_core_xfer_partial): Use target
9330 delegation.
9331 * target-delegates.c: Rebuild.
9332 * target.c (current_xfer_partial): Remove.
9333 (update_current_target): Do not INHERIT or de_fault
9334 to_insert_breakpoint, to_remove_breakpoint,
9335 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9336 to_is_async_p, to_async. Do not set to_xfer_partial field.
9337 (default_xfer_partial): Simplify.
9338 (current_xfer_partial): Remove.
9339 (target_wait, target_resume): Simplify.
9340 (find_default_can_async_p, find_default_is_async_p): Update.
9341 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9342 to_xfer_partial, to_stopped_by_watchpoint,
9343 to_stopped_data_address.
9344 (target_store_registers): Simplify.
9345 (forward_target_remove_breakpoint)
9346 (forward_target_insert_breakpoint): Remove.
9347 (target_remove_breakpoint, target_insert_breakpoint)
9348 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9349 * target.h (struct target_ops) <to_resume, to_wait,
9350 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9351 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9352 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9353 markup.
9354 (forward_target_remove_breakpoint)
9355 (forward_target_insert_breakpoint): Remove.
9356 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9357 directly.
9358 (record_btrace_insert_breakpoint): Delegate directly.
9359
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 PR build/7701:
9363 * target-delegates.c: New file.
9364 * target.c: Include target-delegates.c.
9365 (init_dummy_target): Call install_dummy_methods.
9366 (complete_target_initialization): Call install_delegators.
9367 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9368 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9369 * make-target-delegates: New file.
9370
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * record.c (find_record_target): Use find_target_at.
9374 * target.c (find_target_at): New function.
9375 * target.h (find_target_at): Declare.
9376
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9380 Add 'ops' argument.
9381 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9382 'ops' argument.
9383 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9384 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9385 'ops' argument.
9386 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9387 argument.
9388 * linux-nat.c (save_sigtrap): Update.
9389 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9390 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9391 (linux_nat_close): Update.
9392 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9393 argument.
9394 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9395 argument.
9396 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9397 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9398 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9399 (tmp_to_async): Add 'ops' argument.
9400 (record_full_stopped_by_watchpoint, record_full_async)
9401 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9402 argument.
9403 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9404 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9405 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9406 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9407 (remote_is_async_p, remote_async): Add 'ops' argument.
9408 (remote_stopped_data_address): Update.
9409 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9410 * target.c (update_current_target)
9411 (find_default_can_async_p, find_default_is_async_p): Update.
9412 (init_dummy_target): Update.
9413 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9414 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9415 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9416 (target_can_async_p, target_is_async_p, target_async)
9417 (target_stopped_by_watchpoint): Update.
9418
9419 2014-02-19 Yao Qi <yao@codesourcery.com>
9420
9421 PR gdb/16220
9422 * gdbarch.sh: Remove startup_gdbarch.
9423 * gdbarch.c: Regenerated.
9424 * gdbarch.h: Likewise.
9425
9426 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9427
9428 * rl78-tdep.c (rl78_g10_register_name): New function.
9429 (rl78_return_value): Add g10 support.
9430 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9431 g10.
9432
9433 2014-02-17 Doug Evans <xdje42@gmail.com>
9434
9435 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9436 (SUBDIR_GUILE_SRCS): Ditto.
9437 (scm-gsmob.o): Ditto.
9438
9439 2014-02-17 Yao Qi <yao@codesourcery.com>
9440
9441 * gnu-nat.c (ILL_RPC): Declare defined function.
9442
9443 2014-02-17 Yao Qi <yao@codesourcery.com>
9444
9445 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9446 mach_msg_type_number_t.
9447 (gnu_write_inferior): Likewise.
9448
9449 2014-02-17 Yao Qi <yao@codesourcery.com>
9450
9451 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9452 in format string.
9453 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9454 (inf_validate_procs, inf_signal): Likewise.
9455 (S_exception_raise_request): Likewise.
9456 (do_mach_notify_dead_name): Likewise.
9457 (steal_exc_port): Likewise.
9458 (gnu_read_inferior): Change 'copy_count''s type to
9459 mach_msg_type_number_t.
9460 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9461 format string.
9462
9463 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9464
9465 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9466 flag. Adjust all users; in particular...
9467 (gnu_wait): ..., don't decrement its value in here...
9468 (gnu_create_inferior): ..., and instead set the flag in here,
9469 around the startup_inferior call, and call that one with
9470 START_INFERIOR_TRAPS_EXPECTED.
9471
9472 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9473 (ILL_RPC): ... new macro.
9474 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9475 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9476 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9477 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9478 functions with ILL_RPC macro.
9479 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9480 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9481 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9482 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9483 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9484 (S_proc_getlogin_reply, S_proc_getsid_reply)
9485 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9486 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9487 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9488 (S_proc_getnports_reply, S_proc_is_important_reply)
9489 (S_proc_get_code_reply): New stub functions, generated with
9490 ILL_RPC macro.
9491
9492 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9493 collected the type check structures.
9494
9495 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9496
9497 2014-02-14 Doug Evans <dje@google.com>
9498
9499 * target.c (target_write_partial): Fix result type.
9500
9501 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9502
9503 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9504 the proper offsets to access fpregset_t.
9505
9506 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9507
9508 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9509 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9510 * h8300-tdep.c (setmachinelist): Remove global.
9511 * hppa-tdep.c (hppa_sigtramp): Remove global.
9512 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9513 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9514 * ravenscar-thread.c (update_target_observer): Remove global.
9515 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9516
9517 2014-02-12 Tom Tromey <tromey@redhat.com>
9518
9519 * common/rsp-low.c: Update comments.
9520 * common/rsp-low.h: Update comments.
9521
9522 2014-02-12 Tom Tromey <tromey@redhat.com>
9523
9524 * common/rsp-low.c (convert_ascii_to_int): Remove.
9525 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9526
9527 2014-02-12 Tom Tromey <tromey@redhat.com>
9528
9529 * common/rsp-low.h (unhexify): Don't declare.
9530 * common/rsp-low.c (unhexify): Remove.
9531
9532 2014-02-12 Tom Tromey <tromey@redhat.com>
9533
9534 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9535 * common/rsp-low.c (convert_int_to_ascii): Remove.
9536
9537 2014-02-12 Tom Tromey <tromey@redhat.com>
9538
9539 * common/rsp-low.h (hexify): Don't declare.
9540 * common/rsp-low.c (hexify): Remove.
9541
9542 2014-02-12 Tom Tromey <tromey@redhat.com>
9543
9544 * common/rsp-low.c (hexify): Never take strlen of argument.
9545
9546 2014-02-12 Tom Tromey <tromey@redhat.com>
9547
9548 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9549 * remote.c (extended_remote_run, remote_rcmd)
9550 (remote_download_trace_state_variable, remote_save_trace_data)
9551 (remote_set_trace_notes): Update.
9552 * tracepoint.c (encode_source_string, tfile_write_status)
9553 (tfile_write_uploaded_tsv): Update.
9554
9555 2014-02-12 Tom Tromey <tromey@redhat.com>
9556
9557 * tracepoint.c: Include rsp-low.h.
9558 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9559 * remote.c: Include rsp-low.h.
9560 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9561 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9562 (remote_unescape_input): Move to common/rsp-low.c.
9563 * common/rsp-low.h: New file.
9564 * common/rsp-low.c: New file.
9565 * Makefile.in (SFILES): Add common/rsp-low.c.
9566 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9567 (COMMON_OBS): Add rsp-low.o.
9568 (rsp-low.o): New target.
9569
9570 2014-02-12 Tom Tromey <tromey@redhat.com>
9571
9572 * utils.h: Include print-utils.h.
9573 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9574 (int_string, core_addr_to_string, core_addr_to_string_nz)
9575 (hex_string, hex_string_custom): Don't declare.
9576 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9577 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9578 (hex_string_custom, int_string, core_addr_to_string)
9579 (core_addr_to_string_nz, host_address_to_string): Move to
9580 common/print-utils.c.
9581 * common/print-utils.h: New file.
9582 * common/print-utils.c: New file
9583 * Makefile.in (SFILES): Add common/print-utils.c.
9584 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9585 (COMMON_OBS): Add print-utils.o.
9586 (print-utils.o): New target.
9587
9588 2014-02-12 Tom Tromey <tromey@redhat.com>
9589
9590 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9591
9592 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9593
9594 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9595
9596 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9597
9598 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9599 if a PT_IO ptrace request returns sucessfully but indicates that 0
9600 bytes were transferred.
9601
9602 2014-02-12 Pedro Alves <palves@redhat.com>
9603 Kevin Buettner <kevinb@redhat.com>
9604
9605 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9606 TYPE_INSTANCE_FLAG_CODE_SPACE.
9607
9608 2014-02-12 Pedro Alves <palves@redhat.com>
9609
9610 * h8300-tdep.c (pseudo_from_raw_register)
9611 (raw_from_pseudo_register): New functions.
9612 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9613 them.
9614
9615 2014-02-12 Pedro Alves <palves@redhat.com>
9616
9617 * h8300-tdep.c (h8300_register_sim_regno): New function.
9618 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9619 gdbarch_register_sim_regno hook.
9620
9621 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9622
9623 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9624
9625 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9626
9627 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9628
9629 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9630
9631 * obsd-tdep.h (obsd_init_abi): New prototype.
9632 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9633 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9634 (obsd_init_abi): New functions.
9635 * i386obsd-tdep.c: Include "obsd-tdep.h".
9636 (i386obsd_init_abi): Call obsd_init_abi.
9637 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9638 (amd64obsd_init_abi): Call obsd_init_abi.
9639 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9640 obsd-tdep.c to gdb_target_obs.
9641
9642 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9643
9644 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9645 double float arguments to 16-byte in the argument slots.
9646
9647 2014-02-11 Doug Evans <xdje42@gmail.com>
9648
9649 * configure.ac: Don't crash if pkg-config is not found and guile
9650 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9651 in guile checks.
9652 * configure: Regenerate.
9653
9654 2014-02-11 Yao Qi <yao@codesourcery.com>
9655
9656 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9657 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9658 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9659 * gnu-nat.c (gnu_xfer_memory): Likewise.
9660 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9661 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9662 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9663 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9664
9665 2014-02-11 Yao Qi <yao@codesourcery.com>
9666
9667 * target.h (enum target_xfer_error): Rename to ...
9668 (enum target_xfer_status): ... it. New. All users updated.
9669 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9670 New.
9671 (TARGET_XFER_STATUS_ERROR_P): New macro.
9672 (target_xfer_error_to_string): Remove declaration.
9673 (target_xfer_status_to_string): Declare.
9674 (target_xfer_partial_ftype): Adjust it.
9675 (struct target_ops) <to_xfer_partial>: Return
9676 target_xfer_status. Add argument xfered_len. Update
9677 comments.
9678 * target.c (target_xfer_error_to_string): Rename to ...
9679 (target_xfer_status_to_string): ... it. New. All callers
9680 updated.
9681 (target_read_live_memory): Likewise. Call target_xfer_partial
9682 instead of target_read.
9683 (memory_xfer_live_readonly_partial): Return
9684 target_xfer_status. Add argument xfered_len.
9685 (raw_memory_xfer_partial): Likewise.
9686 (memory_xfer_partial_1): Likewise.
9687 (memory_xfer_partial): Likewise.
9688 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9689 properly. Update debug message.
9690 (default_xfer_partial, current_xfer_partial): Likewise.
9691 (target_write_partial): Likewise.
9692 (target_read_partial): Likewise. All callers updated.
9693 (read_whatever_is_readable): Likewise.
9694 (target_write_with_progress): Likewise.
9695 (target_read_alloc_1): Likewise.
9696
9697 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9698 * auxv.c (procfs_xfer_auxv): Likewise.
9699 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9700 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9701 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9702 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9703 * corefile.c (read_memory): Adjust.
9704 * corelow.c (core_xfer_partial): Likewise.
9705 * ctf.c (ctf_xfer_partial): Likewise.
9706 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9707 updated.
9708 (darwin_xfer_partial): Likewise.
9709 * exec.c (section_table_xfer_memory_partial): Likewise. All
9710 callers updated.
9711 (exec_xfer_partial): Likewise.
9712 * exec.h (section_table_xfer_memory_partial): Update
9713 declaration.
9714 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9715 negative.
9716 (gnu_xfer_partial): Likewise.
9717 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9718 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9719 (ia64_hpux_xfer_solib_got): Likewise.
9720 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9721 type of 'partial_len' to ULONGEST.
9722 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9723 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9724 (linux_nat_xfer_partial): Likewise.
9725 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9726 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9727 * monitor.c (monitor_xfer_memory): Likewise.
9728 (monitor_xfer_partial): Likewise.
9729 * procfs.c (procfs_xfer_partial): Likewise.
9730 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9731 * record-full.c (record_full_xfer_partial): Likewise.
9732 (record_full_core_xfer_partial): Likewise.
9733 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9734 (gdbsim_xfer_partial): Likewise.
9735 * remote.c (remote_write_bytes_aux): Likewise. All callers
9736 updated.
9737 (remote_write_bytes, remote_read_bytes): Likewise. All
9738 callers updated.
9739 (remote_flash_erase): Likewise. All callers updated.
9740 (remote_write_qxfer): Likewise. All callers updated.
9741 (remote_read_qxfer): Likewise. All callers updated.
9742 (remote_xfer_partial): Likewise.
9743 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9744 (rs6000_xfer_shared_libraries): Likewise.
9745 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9746 (sol_thread_xfer_partial): Likewise.
9747 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9748 (sparc_xfer_partial): Likewise.
9749 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9750 updated.
9751 (spu_xfer_partial): Likewise.
9752 * spu-multiarch.c (spu_xfer_partial): Likewise.
9753 * tracepoint.c (tfile_xfer_partial): Likewise.
9754 * windows-nat.c (windows_xfer_memory): Likewise.
9755 (windows_xfer_shared_libraries): Likewise.
9756 (windows_xfer_partial): Likewise.
9757 * valprint.c: Replace 'target_xfer_error' with
9758 'target_xfer_status' in comments.
9759
9760 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9761
9762 Checked in by Joel Brobecker <brobecker@adacore.com>.
9763 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9764
9765 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9766
9767 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9768 function parameters.
9769
9770 2014-02-10 Will Newton <will.newton@linaro.org>
9771
9772 * elfread.c (elf_rel_plt_read): Look for a .got section if
9773 looking up .got.plt fails.
9774 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9775 on address passed to elf_gnu_ifunc_record_cache.
9776 (elf_gnu_ifunc_resolve_addr): Likewise.
9777 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9778
9779 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9780
9781 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9782 (X_RETTURN): New macro.
9783 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9784
9785 * sparc64-tdep.c (sparc64_init_abi): Hook
9786 sparc_in_function_epilogue_p.
9787
9788 2014-02-10 Gary Benson <gbenson@redhat.com>
9789
9790 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9791 Rename name_matcher to symbol_matcher.
9792
9793 2014-02-10 Gary Benson <gbenson@redhat.com>
9794
9795 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9796 Use expand_symtabs_file_matcher_ftype and
9797 expand_symtabs_symbol_matcher_ftype.
9798
9799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9800
9801 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9802 (struct ada_symbol_cache): New.
9803 (ada_free_symbol_cache): Forward declare.
9804 (struct ada_pspace_data): New.
9805 (ada_pspace_data_handle): New static global.
9806 (get_ada_pspace_data, ada_pspace_data_cleanup)
9807 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9808 (cache_space, cache): Delete, now folded inside struct
9809 ada_pspace_data.
9810 (ada_get_symbol_cache): New function.
9811 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9812 implementation.
9813 (_initialize_ada_language): Remove initialization of cache_space.
9814 Move call to observer_attach_inferior_exit up, grouping it
9815 with the other observer registrations inside this function.
9816 Rename command to be more general. Add call to
9817 register_program_space_data_with_cleanup.
9818
9819 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9820
9821 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9822 ada_new_objfile_observer.
9823 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9824 (_initialize_tasks): Update uses of ada_new_objfile_observer
9825 and ada_tasks_normal_stop_observer.
9826
9827 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9828
9829 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9830 returned by the 'Length attribute to integer.
9831
9832 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9833
9834 * ada-lang.c (_initialize_ada_language): Initialize
9835 cache_space obstack.
9836
9837 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9838
9839 * ada-lang.c (HASH_SIZE): New macro.
9840 (struct cache_entry): New type.
9841 (cache_space, cache): New static globals.
9842 (ada_clear_symbol_cache, find_entry): New functions.
9843 (lookup_cached_symbol, cache_symbol): Implement.
9844 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9845 (_initialize_ada_language): Attach ada_new_objfile_observer
9846 and ada_free_objfile_observer.
9847
9848 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9849
9850 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9851 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9852 struct block * parameter.
9853 (ada_lookup_symbol_list_worker): Constify local variable "block".
9854 Remove cast which is no longer necessary.
9855
9856 2014-02-10 Doug Evans <xdje42@gmail.com>
9857
9858 Add Guile as an extension language.
9859 * NEWS: Mention Guile scripting.
9860 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9861 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9862 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9863 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9864 (CLIBS): Add GUILE_LIBS.
9865 (install-guile): New rule.
9866 (guile.o): New rule.
9867 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9868 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9869 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9870 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9871 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9872 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9873 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9874 * configure.ac: New option --with-guile.
9875 * configure: Regenerate.
9876 * config.in: Regenerate.
9877 * auto-load.c: Remove #include "python/python.h". Add #include
9878 "gdb/section-scripts.h".
9879 (source_section_scripts): Handle Guile scripts.
9880 (_initialize_auto_load): Add name of Guile objfile script to
9881 scripts-directory help text.
9882 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9883 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9884 (struct breakpoint): New member scm_bp_object.
9885 * defs.h (enum command_control_type): New value guile_control.
9886 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9887 "extension.h".
9888 (show_user): Update comment.
9889 (_initialize_cli_cmds): Update help text for "show user". Update help
9890 text for max-user-call-depth.
9891 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9892 "extension.h".
9893 (multi_line_command_p): Add guile_control.
9894 (print_command_lines): Handle guile_control.
9895 (execute_control_command, recurse_read_control_structure): Ditto.
9896 (process_next_line): Recognize "guile" commands.
9897 * disasm.c (gdb_disassemble_info): Make non-static.
9898 * disasm.h: #include "dis-asm.h".
9899 (struct gdbarch): Add forward decl.
9900 (gdb_disassemble_info): Declare.
9901 * extension.c: #include "guile/guile.h".
9902 (extension_languages): Add guile.
9903 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9904 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9905 * gdbtypes.c (get_unsigned_type_max): New function.
9906 (get_signed_type_minmax): New function.
9907 * gdbtypes.h (get_unsigned_type_max): Declare.
9908 (get_signed_type_minmax): Declare.
9909 * guile/README: New file.
9910 * guile/guile-internal.h: New file.
9911 * guile/guile.c: New file.
9912 * guile/guile.h: New file.
9913 * guile/scm-arch.c: New file.
9914 * guile/scm-auto-load.c: New file.
9915 * guile/scm-block.c: New file.
9916 * guile/scm-breakpoint.c: New file.
9917 * guile/scm-disasm.c: New file.
9918 * guile/scm-exception.c: New file.
9919 * guile/scm-frame.c: New file.
9920 * guile/scm-gsmob.c: New file.
9921 * guile/scm-iterator.c: New file.
9922 * guile/scm-lazy-string.c: New file.
9923 * guile/scm-math.c: New file.
9924 * guile/scm-objfile.c: New file.
9925 * guile/scm-ports.c: New file.
9926 * guile/scm-pretty-print.c: New file.
9927 * guile/scm-safe-call.c: New file.
9928 * guile/scm-string.c: New file.
9929 * guile/scm-symbol.c: New file.
9930 * guile/scm-symtab.c: New file.
9931 * guile/scm-type.c: New file.
9932 * guile/scm-utils.c: New file.
9933 * guile/scm-value.c: New file.
9934 * guile/lib/gdb.scm: New file.
9935 * guile/lib/gdb/boot.scm: New file.
9936 * guile/lib/gdb/experimental.scm: New file.
9937 * guile/lib/gdb/init.scm: New file.
9938 * guile/lib/gdb/iterator.scm: New file.
9939 * guile/lib/gdb/printing.scm: New file.
9940 * guile/lib/gdb/types.scm: New file.
9941 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9942 (VPATH): Add $(GUILE_SRCDIR).
9943 (GUILE_DIR): New variable.
9944 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9945 (all): Add stamp-guile dependency.
9946 (stamp-guile): New rule.
9947 (clean-guile, install-guile, uninstall-guile): New rules.
9948 (install-only): Add install-guile dependency.
9949 (uninstall): Add uninstall-guile dependency.
9950 (clean): Add clean-guile dependency.
9951
9952 2014-02-09 Doug Evans <xdje42@gmail.com>
9953
9954 Revert this patch (which I approved, mea culpa).
9955
9956 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9957
9958 * Makefile.in (all-lib): Remove.
9959 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9960
9961 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9962
9963 Fix Python stack corruption.
9964 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9965 gdb_py_longest.
9966
9967 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9968
9969 * Makefile.in (all-lib): Remove.
9970 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9971
9972 2014-02-07 Doug Evans <dje@google.com>
9973
9974 * extension-priv.h (extension_language_script_ops): Add comment.
9975 (extension_language_ops): Add comment.
9976 (active_ext_lang_state): Fix typo in comment.
9977
9978 2014-02-07 Pedro Alves <palves@redhat.com>
9979
9980 PR breakpoints/16292
9981 * infrun.c (handle_signal_stop) <signal arrives while stepping
9982 over a breakpoint>: Switch back to the stepping thread.
9983
9984 2014-02-07 Yao Qi <yao@codesourcery.com>
9985
9986 * target.c (target_xfer_partial): Return zero if LEN is zero.
9987
9988 2014-02-07 Yao Qi <yao@codesourcery.com>
9989
9990 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9991 (ld_so_xfer_auxv): Likewise.
9992 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9993 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9994 * corelow.c (core_xfer_partial): Likewise.
9995 * ctf.c (ctf_xfer_partial): Likewise.
9996 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9997 (darwin_xfer_partial): Likewise.
9998 * exec.c (exec_xfer_partial): Likewise.
9999 * gnu-nat.c (gnu_xfer_partial): Likewise.
10000 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10001 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10002 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10003 * linux-nat.c (linux_xfer_siginfo): Likewise.
10004 (linux_proc_xfer_spu): Likewise.
10005 * procfs.c (procfs_xfer_partial): Likewise.
10006 * record-full.c (record_full_xfer_partial): Likewise.
10007 (record_full_core_xfer_partial): Likewise.
10008 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10009 * remote.c (remote_write_qxfer): Likewise.
10010 (remote_write_qxfer, remote_read_qxfer): Likewise.
10011 (remote_xfer_partial): Likewise.
10012 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10013 (rs6000_xfer_shared_libraries): Likewise.
10014 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10015 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10016 (spu_xfer_partial): Likewise.
10017 * target.c (memory_xfer_partial_1): Likewise.
10018 * tracepoint.c (tfile_xfer_partial): Likewise.
10019 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10020 (windows_xfer_partial): Likewise.
10021
10022 2014-02-07 Yao Qi <yao@codesourcery.com>
10023
10024 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10025 comments.
10026 (core_xfer_shared_libraries_aix): Likewise.
10027 * gdbarch.c, gdbarch.h: Regenerated.
10028 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10029 ULONGEST. Change 'len_avail' type to ULONGEST.
10030 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10031 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10032 declaration.
10033 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10034
10035 2014-02-07 Yao Qi <yao@codesourcery.com>
10036
10037 * corefile.c (memory_error): Get 'exception' from ERR and pass
10038 'exception' to throw_error.
10039
10040 2014-02-06 Doug Evans <xdje42@gmail.com>
10041
10042 * configure.ac (libpython checking): Remove all but python.o from
10043 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10044 * configure: Regenerate.
10045
10046 * Makefile.in (SFILES): Add extension.c.
10047 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10048 (COMMON_OBS): Add extension.o.
10049 * extension.h: New file.
10050 * extension-priv.h: New file.
10051 * extension.c: New file.
10052
10053 * python/python-internal.h: #include "extension.h".
10054 (gdbpy_auto_load_enabled): Declare.
10055 (gdbpy_apply_val_pretty_printer): Declare.
10056 (gdbpy_apply_frame_filter): Declare.
10057 (gdbpy_preserve_values): Declare.
10058 (gdbpy_breakpoint_cond_says_stop): Declare.
10059 (gdbpy_breakpoint_has_cond): Declare.
10060 (void source_python_script_for_objfile): Delete.
10061 * python/python.c: #include "extension-priv.h".
10062 Delete inclusion of "observer.h".
10063 (extension_language_python): Moved here and renamed from
10064 script_language_python in py-auto-load.c.
10065 Redefined to be of type extension_language_defn.
10066 (python_extension_script_ops): New global.
10067 (python_extension_ops): New global.
10068 (struct python_env): New member previous_active.
10069 (restore_python_env): Call restore_active_ext_lang.
10070 (ensure_python_env): Call set_active_ext_lang.
10071 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10072 New arg extlang.
10073 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10074 New arg extlang.
10075 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10076 New arg extlang.
10077 (gdbpy_eval_from_control_command): Renamed from
10078 eval_python_from_control_command, made static. New arg extlang.
10079 (gdbpy_source_script) Renamed from source_python_script, made static.
10080 New arg extlang.
10081 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10082 result to int. New arg extlang.
10083 (gdbpy_source_objfile_script): Renamed from
10084 source_python_script_for_objfile, made static. New arg extlang.
10085 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10086 static. New args extlang, extlang_printers. Change result type to
10087 "void".
10088 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10089 static. New arg extlang. Rename arg printers to extlang_printers
10090 and change type to ext_lang_type_printers *.
10091 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10092 static. Replace argument arg with extlang, extlang_printers.
10093 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10094 (!HAVE_PYTHON, source_python_script): Delete.
10095 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10096 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10097 (!HAVE_PYTHON, start_type_printers): Delete.
10098 (!HAVE_PYTHON, apply_type_printers): Delete.
10099 (!HAVE_PYTHON, free_type_printers): Delete.
10100 (_initialize_python): Delete call to observer_attach_before_prompt.
10101 (finalize_python): Set/restore active extension language.
10102 (gdbpy_finish_initialization) Renamed from
10103 finish_python_initialization, made static. New arg extlang.
10104 (gdbpy_initialized): New function.
10105 * python/python.h: #include "extension.h". Delete #include
10106 "value.h", "mi/mi-cmds.h".
10107 (extension_language_python): Declare.
10108 (GDBPY_AUTO_FILE_NAME): Delete.
10109 (enum py_bt_status): Moved to extension.h and renamed to
10110 ext_lang_bt_status.
10111 (enum frame_filter_flags): Moved to extension.h.
10112 (enum py_frame_args): Moved to extension.h and renamed to
10113 ext_lang_frame_args.
10114 (finish_python_initialization): Delete.
10115 (eval_python_from_control_command): Delete.
10116 (source_python_script): Delete.
10117 (apply_val_pretty_printer): Delete.
10118 (apply_frame_filter): Delete.
10119 (preserve_python_values): Delete.
10120 (gdbpy_script_language_defn): Delete.
10121 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10122 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10123
10124 * auto-load.c: #include "extension.h".
10125 (GDB_AUTO_FILE_NAME): Delete.
10126 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10127 (script_language_gdb): Delete, moved to extension.c and renamed to
10128 extension_language_gdb.
10129 (source_gdb_script_for_objfile): Delete.
10130 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10131 (loaded_script): Change type of language member to
10132 struct extension_language_defn *.
10133 (init_loaded_scripts_info): Initialize
10134 unsupported_script_warning_printed.
10135 (maybe_add_script): Make static. Change type of language arg to
10136 struct extension_language_defn *.
10137 (clear_section_scripts): Reset unsupported_script_warning_printed.
10138 (auto_load_objfile_script_1): Rewrite to use extension language API.
10139 (auto_load_objfile_script): Make public. Remove support-compiled-in
10140 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10141 (source_section_scripts): Rewrite to use extension language API.
10142 (load_auto_scripts_for_objfile): Rewrite to use
10143 auto_load_scripts_for_objfile.
10144 (collect_matching_scripts_data): Change type of language member to
10145 struct extension_language_defn *.
10146 (auto_load_info_scripts): Change type of language arg to
10147 struct extension_language_defn *.
10148 (unsupported_script_warning_print): New function.
10149 (script_not_found_warning_print): Make static.
10150 (_initialize_auto_load): Rewrite construction of scripts-directory
10151 help.
10152 * auto-load.h (struct objfile): Add forward decl.
10153 (struct script_language): Delete.
10154 (struct auto_load_pspace_info): Add forward decl.
10155 (struct extension_language_defn): Add forward decl.
10156 (maybe_add_script): Delete.
10157 (auto_load_objfile_script): Declare.
10158 (script_not_found_warning_print): Delete.
10159 (auto_load_info_scripts): Update prototype.
10160 (auto_load_gdb_scripts_enabled): Declare.
10161 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10162 auto_load_python_scripts_enabled and made public.
10163 (script_language_python): Delete, moved to python.c.
10164 (gdbpy_script_language_defn): Delete.
10165 (info_auto_load_python_scripts): Update to use
10166 extension_language_python.
10167
10168 * breakpoint.c (condition_command): Replace call to
10169 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10170 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10171 with call to breakpoint_ext_lang_cond_says_stop.
10172 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10173 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10174 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10175 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10176 New arg slang.
10177 (local_setattro): Print name of extension language with existing
10178 stop condition.
10179
10180 * valprint.c (val_print, value_print): Update to call
10181 apply_ext_lang_val_pretty_printer.
10182 * cp-valprint.c (cp_print_value): Update call to
10183 apply_ext_lang_val_pretty_printer.
10184 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10185 (gdbpy_apply_val_pretty_printer): Renamed from
10186 apply_val_pretty_printer. New arg extlang.
10187 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10188
10189 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10190 extension language API.
10191 * cli/cli-script.c (execute_control_command): Update to call
10192 eval_ext_lang_from_control_command.
10193
10194 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10195 enum ext_lang_bt_status values. Update call to
10196 apply_ext_lang_frame_filter.
10197 (mi_cmd_stack_list_locals): Ditto.
10198 (mi_cmd_stack_list_args): Ditto.
10199 (mi_cmd_stack_list_variables): Ditto.
10200 * mi/mi-main.c: Delete #include "python/python-internal.h".
10201 Add #include "extension.h".
10202 (mi_cmd_list_features): Replace reference to python internal variable
10203 gdb_python_initialized with call to ext_lang_initialized_p.
10204
10205 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10206 Update to use enum ext_lang_frame_args. Update to call
10207 apply_ext_lang_frame_filter.
10208 * python/py-framefilter.c (extract_sym): Update to use enum
10209 ext_lang_bt_status.
10210 (extract_value, py_print_type, py_print_value): Ditto.
10211 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10212 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10213 (py_print_frame): Ditto.
10214 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10215 New arg extlang. Update to use enum ext_lang_bt_status.
10216
10217 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10218 finish_python_initialization. Replace with call to
10219 finish_ext_lang_initialization.
10220
10221 * typeprint.c (do_free_global_table): Update to call
10222 free_ext_lang_type_printers.
10223 (create_global_typedef_table): Update to call
10224 start_ext_lang_type_printers.
10225 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10226 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10227 (type_print_options): Change type of global_printers from "void *"
10228 to "struct ext_lang_type_printers *".
10229
10230 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10231 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10232 (gdbpy_preserve_values): Renamed from preserve_python_values.
10233 New arg extlang.
10234 (!HAVE_PYTHON, preserve_python_values): Delete.
10235
10236 * utils.c (quit_flag): Delete, moved to extension.c.
10237 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10238 extension.c.
10239
10240 * eval.c: Delete #include "python/python.h".
10241 * main.c: Delete #include "python/python.h".
10242
10243 * defs.h: Update comment.
10244
10245 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10246
10247 GDB 7.7 released.
10248
10249 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10250
10251 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10252 defined.
10253
10254 2014-02-05 Yao Qi <yao@codesourcery.com>
10255
10256 * remote.c (remote_pass_signals): Remove local 'buf' and use
10257 rs->buf.
10258 (remote_program_signals): Likewise.
10259
10260 2014-02-05 Yao Qi <yao@codesourcery.com>
10261
10262 * ctf.c: Include "inferior.h" and "gdbthread.h".
10263 (CTF_PID): A new macro.
10264 (ctf_open): Call inferior_appeared and add_thread_silent.
10265 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10266 (ctf_thread_alive): New function.
10267 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10268
10269 2014-02-05 Yao Qi <yao@codesourcery.com>
10270
10271 Revert this patch:
10272
10273 2013-05-24 Yao Qi <yao@codesourcery.com>
10274
10275 * tracepoint.c (TFILE_PID): Remove.
10276 (tfile_open): Don't add thread and inferior.
10277 (tfile_close): Don't set 'inferior_ptid'. Don't call
10278 exit_inferior_silent.
10279 (tfile_thread_alive): Remove.
10280 (init_tfile_ops): Don't set field 'to_thread_alive' of
10281 tfile_ops.
10282
10283 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10284
10285 * remote.c (remote_start_remote): Call remote_check_symbols even
10286 if only symbol-file (not file) has been given.
10287
10288 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10289
10290 * gdbarch.sh (skip_entrypoint): New callback.
10291 * gdbarch.c, gdbarch.h: Regenerate.
10292 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10293 * infrun.c (fill_in_stop_func): Likewise.
10294 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10295 (ppc_elfv2_elf_make_msymbol_special): New function.
10296 (ppc_elfv2_skip_entrypoint): Likewise.
10297 (ppc_linux_init_abi): Install them for ELFv2.
10298
10299 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10300
10301 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10302 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10303 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10304 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10305 structures returned in GPRs.
10306
10307 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10308
10309 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10310 offset to the stack parameter list for the ELFv2 ABI.
10311
10312 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10313
10314 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10315 set_gdbarch_convert_from_func_ptr_addr and
10316 set_gdbarch_elf_make_msymbol_special for ELFv1.
10317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10318 function descriptors on ELFv1.
10319 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10320 set up r12 at function entry.
10321
10322 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10323
10324 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10325 (struct gdbarch_tdep): New member elf_abi.
10326
10327 * rs6000-tdep.c: Include "elf/ppc64.h".
10328 (rs6000_gdbarch_init): Detect ELF ABI version.
10329
10330 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10331
10332 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10333 within a register pair holding a DFP 128-bit value on little-endian.
10334 (ppc64_sysv_abi_return_value_base): Likewise.
10335 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10336 (dfp_pseudo_register_write): Likewise.
10337
10338 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10339
10340 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10341 offset on little-endian when passing _Decimal32.
10342 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10343
10344 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10345
10346 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10347 of the overlapped FP register within the VSX register on little-
10348 endian platforms.
10349 (efpr_pseudo_register_write): Likewise.
10350
10351 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10352
10353 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10354 offset on little-endian when passing small structures.
10355
10356 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10357
10358 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10359 (struct ppc64_sysv_argpos): New data structure.
10360 (ppc64_sysv_abi_push_float): Remove.
10361 (ppc64_sysv_abi_push_val): New function.
10362 (ppc64_sysv_abi_push_integer): Likewise.
10363 (ppc64_sysv_abi_push_freg): Likewise.
10364 (ppc64_sysv_abi_push_vreg): Likewise.
10365 (ppc64_sysv_abi_push_param): Likewise.
10366 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10367 (ppc64_sysv_abi_return_value_base): New function.
10368 (ppc64_sysv_abi_return_value): Refactor to use it.
10369
10370 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10371
10372 * NEWS: Document new target powerpc64le-*-linux*.
10373
10374 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10375
10376 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10377 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10378 core dumps.
10379 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10380 register set used in ELF core dumps. Add floating-point register set.
10381
10382 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10383
10384 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10385 dwarf2_to_gdb[] table using symbolic constants. Adjust
10386 penultimate entry from number representing the PC register
10387 to symbolic constant representing the MDR register. Add
10388 constant for the PC register to the end of the table.
10389
10390 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10391
10392 * bsd-kvm.c: Include <sys/param.h>
10393
10394 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10395
10396 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10397
10398 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10399
10400 * ada-lang.h (clear_ada_sym_cache): Delete.
10401
10402 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10403
10404 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10405
10406 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10407
10408 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10409 the sigreturn register save area only if the syscall is
10410 sigreturn.
10411
10412 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10413
10414 * valops.c (value_slice): Minor reformatting.
10415
10416 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10417
10418 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10419
10420 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10421
10422 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10423 New static globals.
10424 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10425 (ada_ignore_descriptive_types_p): New static global.
10426 (find_parallel_type_by_descriptive_type): Return immediately
10427 if ada_ignore_descriptive_types_p is set.
10428 (_initialize_ada_language): Register new commands "maintenance
10429 set ada", "maintenance show ada", "maintenance set ada
10430 ignore-descriptive-types" and "maintenance show ada
10431 ignore-descriptive-types".
10432 * NEWS: Add entry for new "maint ada set/show
10433 ignore-descriptive-types" commands.
10434
10435 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10436
10437 * record-btrace.c (record_btrace_close): Call btrace_teardown
10438 for all threads.
10439
10440 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10441
10442 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10443 "ui-out.h".
10444
10445 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10446
10447 * ada-typeprint (type_is_full_subrange_of_target_type):
10448 New function.
10449 (print_range): Add parameter bounds_prefered_p. If not set,
10450 try printing range types using the name of their base type.
10451 (print_range_type): Add parameter bounds_prefered_p.
10452 Use it in call to print_range.
10453 (print_array_type, ada_print_type): Update calls to print_range
10454 and print_range_type.
10455
10456 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10457
10458 * ada-typeprint.c (print_array_type, print_choices, print_range)
10459 (print_range_bound, print_dynamic_range_bound, print_range_type):
10460 Remove declaration.
10461
10462 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10463
10464 * ada-typeprint.c (print_range): Add missing empty line
10465 after local declaration.
10466
10467 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10468
10469 * ada-valprint.c (print_optional_low_bound): Get index_type's
10470 target type for as long as it is a TYPE_CODE_RANGE.
10471
10472 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10473
10474 * procfs.c (procfs_make_note_section): Remove assertion and
10475 associated comment.
10476
10477 2014-01-24 Yao Qi <yao@codesourcery.com>
10478
10479 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10480 * corelow.c (get_core_siginfo): Likewise.
10481
10482 2014-01-24 Yao Qi <yao@codesourcery.com>
10483
10484 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10485 ULONGEST. Don't check 'len' is negative.
10486 (remote_write_bytes): Change type of 'len' to ULONGEST.
10487
10488 2014-01-23 Tom Tromey <tromey@redhat.com>
10489
10490 PR python/16485:
10491 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10492 Handle exception from frame.block.
10493 (FrameVars.fetch_frame_locals): Likewise.
10494
10495 2014-01-23 Tom Tromey <tromey@redhat.com>
10496
10497 PR python/16487:
10498 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10499 on a NULL pointer. Move "goto error" to correct place.
10500
10501 2014-01-23 Tom Tromey <tromey@redhat.com>
10502
10503 PR python/16491:
10504 * python/py-framefilter.c (apply_frame_filter): Call
10505 ensure_python_env after computing gdbarch.
10506
10507 2014-01-23 Yao Qi <yao@codesourcery.com>
10508
10509 * target.c (raw_memory_xfer_partial): Change argument type
10510 from void * to gdb_byte *.
10511 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10512
10513 2014-01-22 Doug Evans <dje@google.com>
10514
10515 New gdbserver option --debug-format=timestamp.
10516 * NEWS: Mention it.
10517
10518 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10519
10520 * syscalls/s390x-linux.xml: New file.
10521 * syscalls/s390-linux.xml: New file.
10522 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10523 (XML_SYSCALL_FILENAME_S390X): Likewise.
10524 (op_svc): New enum value for SVC opcode.
10525 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10526 (s390_linux_get_syscall_number): New function.
10527 (s390_gdbarch_init): Register '*get_syscall_number' and the
10528 syscall xml file name.
10529 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10530 "s390-linux.xml" and "s390x-linux.xml".
10531 * NEWS: Announce new feature.
10532
10533 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10534
10535 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10536
10537 2014-01-22 Pedro Alves <palves@redhat.com>
10538
10539 * xtensa-config.c: Include defs.h.
10540
10541 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10542
10543 * common/common-utils.h: Add "ARI:" comment beside __func__
10544 reference.
10545
10546 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10547
10548 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10549 documentation a bit.
10550
10551 2014-01-21 Roland McGrath <mcgrathr@google.com>
10552
10553 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10554 * configure: Regenerate.
10555 * aclocal.m4: Regenerate.
10556 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10557 New substituted variables.
10558 (install-strip): New target.
10559 (INSTALL_SCRIPT): New substituted variable.
10560 (FLAGS_TO_PASS): Add it.
10561 (install-only): Use $(INSTALL_SCRIPT) rather than
10562 $(INSTALL_PROGRAM) for gcore.
10563
10564 2014-01-20 Tom Tromey <tromey@redhat.com>
10565
10566 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10567 together.
10568
10569 2014-01-20 Tom Tromey <tromey@redhat.com>
10570
10571 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10572 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10573 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10574 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10575 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10576 (struct cmd_list_element) <flags>: Remove.
10577 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10578 doc_allocated>: New fields.
10579 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10580 bitfields.
10581 * maint.c (maintenance_do_deprecate): Update.
10582 * top.c (execute_command): Update.
10583
10584 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10585
10586 * xtensa-linux-nat.c: Include asm/ptrace.h.
10587
10588 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10589
10590 * Makefile.in (SFILES): Add d-support.c.
10591 (COMMON_OBS): Add d-support.o.
10592 * d-lang.h (d_parse_symbol): Add comment, now defined in
10593 d-support.c.
10594 * d-lang.c (parse_call_convention)
10595 (parse_attributes, parse_function_types)
10596 (parse_function_args, parse_type, parse_identifier)
10597 (call_convention_p, d_parse_symbol): Move functions to ...
10598 * d-support.c: ... New file.
10599
10600 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10601
10602 * d-lang.h (d_parse_symbol): Add declaration.
10603 * d-lang.c (extract_identifiers)
10604 (extract_type_info): Remove functions.
10605 (parse_call_convention, parse_attributes)
10606 (parse_function_types, parse_function_args)
10607 (parse_type, parse_identifier, call_convention_p)
10608 (d_parse_symbol): New functions.
10609 (d_demangle): Use d_parse_symbol to demangle D symbols.
10610
10611 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10612
10613 * d-lang.h (struct builtin_d_type): New data type.
10614 (builtin_d_type): Add declaration.
10615 * d-lang.c (d_language_arch_info, build_d_types)
10616 (builtin_d_type): New functions.
10617 (enum d_primitive_types): New data type.
10618 (d_language_defn): Change c_language_arch_info to
10619 d_language_arch_info.
10620 (d_type_data): New static variable.
10621 (_initialize_d_language): Initialize d_type_data.
10622
10623 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10624
10625 * d-lang.h (d_main_name): Add declaration.
10626 * d-lang.c (d_main_name): New function.
10627 * symtab.c (find_main_name): Add call to d_main_name.
10628
10629 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10630
10631 * d-lang.c (d_language_defn): Change macro_expansion_c to
10632 macro_expansion_no.
10633
10634 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10635
10636 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10637
10638 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10639
10640 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10641 gdb_exception" declaration.
10642 * remote.c (getpkt_or_notif_sane): Likewise.
10643
10644 2014-01-17 Doug Evans <dje@google.com>
10645
10646 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10647 function, contents of dirnames_to_char_ptr_vec_append moved here.
10648 (delim_string_to_char_ptr_vec): New function.
10649 (dirnames_to_char_ptr_vec_append): Rewrite.
10650 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10651
10652 2014-01-17 Doug Evans <dje@google.com>
10653
10654 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10655 and moved here ...
10656 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10657 #include "common-utils.h".
10658 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10659 * common/vec.h (VEC_ASSERT_PASS): Update.
10660 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10661 (MACH_CHECK_ERROR): Update.
10662
10663 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10664
10665 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10666 comments.
10667 * gdbarch.h: Regenerate.
10668
10669 2014-01-16 Tom Tromey <tromey@redhat.com>
10670
10671 * value.c (struct value) <regnum>: Move earlier.
10672
10673 2014-01-16 Tom Tromey <tromey@redhat.com>
10674
10675 * remote.c (extended_remote_create_inferior): Rename from
10676 extended_remote_create_inferior_1. Add "ops" argument. Remove
10677 old implementation.
10678
10679 2014-01-16 Pedro Alves <palves@redhat.com>
10680
10681 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10682 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10683 the backchain.
10684
10685 2014-01-16 Doug Evans <dje@google.com>
10686
10687 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10688
10689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10690
10691 * btrace.h (btrace_thread_flag): New.
10692 (struct btrace_thread_info) <flags>: New.
10693 * record-btrace.c (record_btrace_resume_thread)
10694 (record_btrace_find_thread_to_move, btrace_step_no_history)
10695 (btrace_step_stopped, record_btrace_start_replaying)
10696 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10697 (record_btrace_find_resume_thread): New.
10698 (record_btrace_resume, record_btrace_wait): Extend.
10699 (record_btrace_can_execute_reverse): New.
10700 (record_btrace_open): Fail in non-stop mode.
10701 (record_btrace_set_replay): Split into this, ...
10702 (record_btrace_stop_replaying): ... this, ...
10703 (record_btrace_clear_histories): ... and this.
10704 (init_record_btrace_ops): Init to_can_execute_reverse.
10705 * NEWS: Announce it.
10706
10707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10708
10709 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10710 (forward_target_decr_pc_after_break)
10711 (target_decr_pc_after_break): New.
10712 * target.c (forward_target_decr_pc_after_break)
10713 (target_decr_pc_after_break): New.
10714 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10715 instead of gdbarch_decr_pc_after_break.
10716 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10717 instead of gdbarch_decr_pc_after_break.
10718 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10719 instead of gdbarch_decr_pc_after_break.
10720 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10721 instead of gdbarch_decr_pc_after_break.
10722 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10723 instead of gdbarch_decr_pc_after_break.
10724 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10725 instead of gdbarch_decr_pc_after_break.
10726
10727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10728
10729 * btrace.c: Include regcache.h.
10730 (btrace_add_pc): New.
10731 (btrace_enable): Call btrace_add_pc.
10732 (btrace_is_empty): New.
10733 * btrace.h (btrace_is_empty): New.
10734 * record-btrace.c (require_btrace, record_btrace_info): Call
10735 btrace_is_empty.
10736
10737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10738
10739 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10740 Support delta reads.
10741 (linux_disable_btrace): Change return type.
10742 * common/linux-btrace.h (linux_read_btrace): Change parameters
10743 and return type to allow error reporting. Update users.
10744 (linux_disable_btrace): Change return type. Update users.
10745 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10746 New.
10747 (btrace_error): New.
10748 (btrace_block) <begin>: Comment on BEGIN == 0.
10749 * btrace.c (btrace_compute_ftrace): Start from the end of
10750 the current trace.
10751 (btrace_stitch_trace, btrace_clear_history): New.
10752 (btrace_fetch): Read delta trace, return if replaying.
10753 (btrace_clear): Move clear history code to btrace_clear_history.
10754 (parse_xml_btrace): Throw an error if parsing failed.
10755 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10756 and return type to allow error reporting.
10757 (target_read_btrace): Change parameters and return type to allow
10758 error reporting.
10759 * target.c (target_read_btrace): Update.
10760 * remote.c (remote_read_btrace): Support delta reads. Pass
10761 errors on.
10762 * NEWS: Announce it.
10763
10764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10765
10766 * record.h (record_btrace_frame_unwind)
10767 (record_btrace_tailcall_frame_unwind): New declarations.
10768 * dwarf2-frame: Include record.h
10769 (dwarf2_frame_cfa): Throw an error for btrace frames.
10770 * record-btrace.c: Include hashtab.h.
10771 (btrace_get_bfun_name): New.
10772 (btrace_call_history): Call btrace_get_bfun_name.
10773 (struct btrace_frame_cache): New.
10774 (bfcache): New.
10775 (bfcache_hash, bfcache_eq, bfcache_new): New.
10776 (btrace_get_frame_function): New.
10777 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10778 (record_btrace_frame_this_id): Compute own id.
10779 (record_btrace_frame_prev_register): Provide PC, throw_error
10780 for all other registers.
10781 (record_btrace_frame_sniffer): Detect btrace frames.
10782 (record_btrace_tailcall_frame_sniffer): New.
10783 (record_btrace_frame_dealloc_cache): New.
10784 (record_btrace_frame_unwind): Add new functions.
10785 (record_btrace_tailcall_frame_unwind): New.
10786 (_initialize_record_btrace): Allocate cache.
10787 * btrace.c (btrace_clear): Call reinit_frame_cache.
10788 * NEWS: Announce it.
10789
10790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10791
10792 * record-btrace.c (record_btrace_set_replay)
10793 (record_btrace_goto_begin, record_btrace_goto_end)
10794 (record_btrace_goto): New.
10795 (init_record_btrace_ops): Initialize them.
10796 * NEWS: Announce it.
10797
10798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10799
10800 * record-btrace.c (record_btrace_find_new_threads)
10801 (record_btrace_thread_alive): New.
10802 (init_record_btrace_ops): Initialize to_find_new_threads and
10803 to_thread_alive.
10804
10805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10806
10807 * record-btrace.c (record_btrace_resume): New.
10808 (record_btrace_wait): New.
10809 (init_record_btrace_ops): Initialize to_wait and to_resume.
10810
10811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10812
10813 * record-btrace.c (record_btrace_xfer_partial)
10814 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10815 (record_btrace_allow_memory_access): New.
10816 (init_record_btrace_ops): Initialize new methods.
10817 * target.c (raw_memory_xfer_partial): Bail out if target reports
10818 that this memory is not available.
10819
10820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10821
10822 * target.h (target_ops) <to_insert_breakpoint>
10823 <to_remove_breakpoint>: Add target_ops parameter.
10824 (forward_target_insert_breakpoint): New.
10825 (forward_target_remove_breakpoint): New.
10826 (memory_remove_breakpoint, memory_insert_breakpoint):
10827 Add target_ops parameter.
10828 * target.c (target_insert_breakpoint): Split into this and ...
10829 (forward_target_insert_breakpoint): ... this.
10830 (target_remove_breakpoint): Split into this and ...
10831 (forward_target_remove_breakpoint): ... this.
10832 (debug_to_insert_breakpoint): Add target_ops parameter.
10833 Call forward_target_insert_breakpoint.
10834 (debug_to_remove_breakpoint): Add target_ops parameter.
10835 Call forward_target_remove_breakpoint.
10836 (update_current_target): Do not inherit or default to_insert_breakpoint
10837 and to_remove_breakpoint.
10838 * corelow.c (ignore): Add target_ops parameter.
10839 * exec.c (ignore): Add target_ops parameter.
10840 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10841 Add target_ops parameter.
10842 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10843 Add target_ops parameter.
10844 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10845 Add target_ops parameter.
10846 * record-full.c (record_full_beneath_to_insert_breakpoint)
10847 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10848 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10849 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10850 (record_full_core_remove_breakpoint): Add target_ops parameter.
10851 Update users.
10852 (record_full_beneath_to_insert_breakpoint_ops)
10853 (record_full_beneath_to_remove_breakpoint_ops)
10854 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10855 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10856 tmp_to_remove_breakpoint_ops,
10857 record_full_beneath_to_insert_breakpoint_ops, and
10858 record_full_beneath_to_remove_breakpoint_ops.
10859 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10860 (m32r_remove_breakpoint): Add target_ops parameter.
10861 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10862 Add target_ops parameter.
10863 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10864 Add target_ops parameter.
10865
10866 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10867 Markus Metzger <markus.t.metzger@intel.com>
10868
10869 * record-btrace.c: Include frame-unwind.h.
10870 (record_btrace_frame_unwind_stop_reason)
10871 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10872 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10873 New.
10874 (init_record_btrace_ops): Install it.
10875
10876 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10879 get_prev_frame_1.
10880
10881 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10882
10883 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10884 earlier.
10885
10886 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 * frame-unwind.c: Include target.h.
10889 (frame_unwind_try_unwinder): New function with code from ...
10890 (frame_unwind_find_by_frame): ... here. New variable
10891 unwinder_from_target, call also target_get_unwinder)
10892 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10893 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10894 * target.h (struct target_ops): New fields to_get_unwinder and
10895 to_get_tailcall_unwinder.
10896 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10897
10898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10899
10900 * record-btrace.c (record_btrace_fetch_registers)
10901 (record_btrace_store_registers)
10902 (record_btrace_to_prepare_to_store): New.
10903 (init_record_btrace_ops): Add the above.
10904
10905 2014-01-16 Tom Tromey <tromey@redhat.com>
10906
10907 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10908 * target.h (struct target_ops) <to_prepare_to_store>: Add
10909 argument.
10910 (target_prepare_to_store): Add argument.
10911 * target.c (debug_to_prepare_to_store): Add argument.
10912 (update_current_target): Update.
10913 * remote.c (remote_prepare_to_store): Add 'self' argument.
10914 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10915 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10916 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10917 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10918 argument.
10919 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10920 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10921 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10922 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10923 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10924
10925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10926
10927 * btrace.h (replay) <replay>: New.
10928 (btrace_is_replaying): New.
10929 * btrace.c (btrace_clear): Free replay iterator.
10930 (btrace_is_replaying): New.
10931 * record-btrace.c (record_btrace_is_replaying): New.
10932 (record_btrace_info): Print insn number if replaying.
10933 (record_btrace_insn_history): Start at replay position.
10934 (record_btrace_call_history): Start at replay position.
10935 (init_record_btrace_ops): Init to_record_is_replaying.
10936
10937 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10938
10939 * record-btrace.c (record_btrace_insn_history_range): Include
10940 end.
10941 (record_btrace_insn_history_from): Adjust range.
10942 (record_btrace_call_history_range): Include
10943 end.
10944 (record_btrace_call_history_from): Adjust range.
10945 * NEWS: Announce changes.
10946
10947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10948
10949 * record.h (enum record_print_flag)
10950 <record_print_indent_calls>: New.
10951 * record.c (get_call_history_modifiers): Recognize /c modifier.
10952 (_initialize_record): Document /c modifier.
10953 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10954 Reorder fields. Optionally indent the function name. Update
10955 all users.
10956 * NEWS: Announce changes.
10957
10958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10959
10960 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10961
10962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10963
10964 * btrace.c (ftrace_new_function): Start counting at one.
10965 * record-btrace.c (record_btrace_info): Adjust number of calls
10966 and insns.
10967 * NEWS: Announce it.
10968
10969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10970
10971 * record-btrace.c (btrace_call_history_insn_range): Print
10972 insn range as [begin, end].
10973
10974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10975
10976 * btrace.h (struct btrace_func_link): New.
10977 (enum btrace_function_flag): New.
10978 (struct btrace_inst): Rename to ...
10979 (struct btrace_insn): ...this. Update all users.
10980 (struct btrace_func) <ibegin, iend>: Remove.
10981 (struct btrace_func_link): New.
10982 (struct btrace_func): Rename to ...
10983 (struct btrace_function): ...this. Update all users.
10984 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10985 (number, level, flags>: New.
10986 (struct btrace_insn_iterator): Rename to ...
10987 (struct btrace_insn_history): ...this.
10988 Update all users.
10989 (struct btrace_insn_iterator, btrace_call_iterator): New.
10990 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10991 (struct btrace_target_info) <begin, end, level>
10992 <insn_history, call_history>: New.
10993 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10994 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10995 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10996 (btrace_call_number, btrace_call_begin, btrace_call_end)
10997 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10998 (btrace_find_function_by_number, btrace_set_insn_history)
10999 (btrace_set_call_history): New.
11000 * btrace.c (btrace_init_insn_iterator)
11001 (btrace_init_func_iterator, compute_itrace): Remove.
11002 (ftrace_print_function_name, ftrace_print_filename)
11003 (ftrace_skip_file): Change
11004 parameter to const.
11005 (ftrace_init_func): Remove.
11006 (ftrace_debug): Use new btrace_function fields.
11007 (ftrace_function_switched): Also consider gaining and
11008 losing symbol information).
11009 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11010 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11011 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11012 New.
11013 (ftrace_new_function): Move. Remove debug print.
11014 (ftrace_update_lines, ftrace_update_insns): New.
11015 (ftrace_update_function): Check for call, ret, and jump.
11016 (compute_ftrace): Renamed to ...
11017 (btrace_compute_ftrace): ...this. Rewritten to compute call
11018 stack.
11019 (btrace_fetch, btrace_clear): Updated.
11020 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11021 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11022 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11023 (btrace_call_number, btrace_call_begin, btrace_call_end)
11024 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11025 (btrace_find_function_by_number, btrace_set_insn_history)
11026 (btrace_set_call_history): New.
11027 * record-btrace.c (require_btrace): Use new btrace thread
11028 info fields.
11029 (record_btrace_info, btrace_insn_history)
11030 (record_btrace_insn_history, record_btrace_insn_history_range):
11031 Use new btrace thread info fields and new iterator.
11032 (btrace_func_history_src_line): Rename to ...
11033 (btrace_call_history_src_line): ...this. Use new btrace
11034 thread info fields.
11035 (btrace_func_history): Rename to ...
11036 (btrace_call_history): ...this. Use new btrace thread info
11037 fields and new iterator.
11038 (record_btrace_call_history, record_btrace_call_history_range):
11039 Use new btrace thread info fields and new iterator.
11040
11041 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11042
11043 * frame.h (frame_id_build_unavailable_stack_special): New.
11044 * frame.c (frame_id_build_unavailable_stack_special): New.
11045
11046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11047
11048 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11049 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11050 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11051 to gdbarch.
11052 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11053 (i386_insn_is_jump, i386_jmp_p): New.
11054 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11055 insn_is_jump to gdbarch.
11056 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11057 * gdbarch.h: Regenerated.
11058 * gdbarch.c: Regenerated.
11059 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11060 (default_insn_is_jump): New.
11061 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11062 (default_insn_is_jump): New.
11063
11064 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11065
11066 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11067 Change to ...
11068 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11069 (btrace_read_type) <btrace_read_new>: Change to ...
11070 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11071
11072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11073
11074 * common/linux-btrace.c (linux_read_btrace): Free trace from
11075 previous iteration.
11076
11077 2014-01-15 Doug Evans <dje@google.com>
11078
11079 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11080 uint32_t.
11081
11082 2014-01-15 Tom Tromey <tromey@redhat.com>
11083
11084 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11085 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11086 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11087 (set_objfile_main_name): New function.
11088 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11089 language_of_main>: New fields.
11090 (set_objfile_main_name): Declare.
11091 * symtab.c (find_main_name): Loop over objfiles to find the main
11092 name and language.
11093 (set_main_name): Now static.
11094 (get_main_info): Add comment.
11095 * symtab.h (set_main_name): Don't declare.
11096
11097 2014-01-15 Tom Tromey <tromey@redhat.com>
11098
11099 * symtab.c (main_progspace_key): New global.
11100 (struct main_info): New.
11101 (name_of_main, language_of_main): Remove.
11102 (get_main_info, main_info_cleanup): New function.
11103 (set_main_name, main_name, main_language): Use get_main_info.
11104 (_initialize_symtab): Initialize main_progspace_key.
11105
11106 2014-01-15 Tom Tromey <tromey@redhat.com>
11107
11108 * dbxread.c (process_one_symbol): Update.
11109 * dwarf2read.c (read_partial_die): Update.
11110 * symfile.c (set_initial_language): Call main_language.
11111 * symtab.c (language_of_main): Now static.
11112 (set_main_name): Add 'lang' parameter.
11113 (find_main_name): Update.
11114 (main_language): New function.
11115 (symtab_observer_executable_changed): Update.
11116 * symtab.h (set_main_name): Update.
11117 (language_of_main): Remove.
11118 (main_language): Declare.
11119
11120 2014-01-15 Tom Tromey <tromey@redhat.com>
11121
11122 * symfile.c (init_entry_point_info): Use new "initialized" field.
11123 Update.
11124 * objfiles.h (struct entry_point) <initialized>: New field.
11125 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11126 (struct objfile) <ei>: ...here. Remove.
11127 * objfiles.c (entry_point_address_query): Update.
11128
11129 2014-01-15 Tom Tromey <tromey@redhat.com>
11130
11131 * objfiles.c (entry_point_address_query): Relocate entry point
11132 address.
11133 (objfile_relocate1): Do not relocate entry point address.
11134 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11135 <the_bfd_section_index>: New field.
11136 * symfile.c (init_entry_point_info): Find the entry point's
11137 section.
11138
11139 2014-01-15 Tom Tromey <tromey@redhat.com>
11140
11141 * solib-frv.c (enable_break): Use entry_point_address_query.
11142
11143 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11144
11145 * NEWS: Add note on improved process record-replay on
11146 arm*-linux* targets.
11147
11148 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11149
11150 * arm-tdep.c (enum arm_record_result): New enum.
11151 (arm_record_unsupported_insn): New function.
11152 (arm_record_coproc_data_proc): Removed.
11153 (thumb2_record_ld_st_multiple): New function.
11154 (thumb2_record_ld_st_dual_ex_tbb): New function.
11155 (thumb2_record_data_proc_sreg_mimm): New function.
11156 (thumb2_record_ps_dest_generic): New function.
11157 (thumb2_record_branch_misc_cntrl): New function.
11158 (thumb2_record_str_single_data): New function.
11159 (thumb2_record_ld_mem_hints): New function.
11160 (thumb2_record_ld_word): New function.
11161 (thumb2_record_lmul_lmla_div): New function.
11162 (thumb2_record_decode_insn_handler): New function.
11163 (decode_insn): Add thumb32 instruction handlers.
11164
11165 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11166
11167 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11168 (struct arm_linux_record_tdep): Declare.
11169 (arm_canonicalize_syscall): New function.
11170 (arm_all_but_pc_registers_record): New function.
11171 (arm_linux_syscall_record): New function.
11172 (arm_linux_init_abi): Add syscall recording constructs.
11173 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11174 decoding. (arm_record_coproc_data_proc): Update arm syscall
11175 decoding.
11176 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11177 <arm_syscall_record>: New field.
11178 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11179 gdb_target_obs.
11180
11181 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11182
11183 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11184 register for push instruction recording.
11185
11186 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11187
11188 * arm-tdep.c (thumb_record_misc): Update to correct logical
11189 error while recording ldm, ldmia and pop instructions.
11190
11191 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11192
11193 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11194
11195 2014-01-15 Pedro Alves <palves@redhat.com>
11196
11197 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11198 (go32_resume, go32_fetch_registers, store_register)
11199 (go32_store_registers, go32_prepare_to_store)
11200 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11201 (go32_create_inferior, go32_can_run, go32_terminal_init)
11202 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11203 declarations.
11204
11205 2014-01-15 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (async_callback_ftype): New typedef.
11208 (struct target_ops) <to_async>: Use it.
11209
11210 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11211
11212 * python/py-value.c (get_field_type): Remove unnecessary curly
11213 braces for single-statement if block.
11214
11215 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11216
11217 * python/py-type.c (convert_field): Add missing empty line
11218 after declarations.
11219
11220 2014-01-14 Doug Evans <dje@google.com>
11221
11222 * symfile.h (expand_symtabs_matching): Renamed from
11223 expand_partial_symbol_names. Update prototype.
11224 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11225 * symfile.c (expand_symtabs_matching): Renamed from
11226 expand_partial_symbol_names. New args file_matcher, kind.
11227 Rename arg fun to symbol_matcher.
11228 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11229 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11230 ada_expand_partial_symbol_name.
11231 (ada_make_symbol_completion_list): Update to call
11232 expand_symtabs_matching.
11233 (ada_add_global_exceptions): Call expand_symtabs_matching.
11234 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11235 call map_symbol_filenames.
11236 * symtab.c (sources_info): Update to call map_symbol_filenames.
11237 (search_symbols): Call expand_symtabs_matching.
11238 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11239 (default_make_symbol_completion_list_break_on): Update to call
11240 expand_symtabs_matching.
11241 (make_source_files_completion_list): Update to call
11242 map_symbol_filenames.
11243
11244 2014-01-14 Doug Evans <dje@google.com>
11245
11246 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11247 (expand_symtabs_symbol_matcher_ftype): New typedef.
11248 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11249 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11250 * symfile.c (expand_partial_symbol_names): Update to use
11251 expand_symtabs_symbol_matcher_ftype.
11252 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11253 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11254 Arg name_matcher renamed to symbol_matcher.
11255 * psymtab.c (recursively_search_psymtabs): Update to use
11256 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11257 sym_matcher.
11258 (expand_symtabs_matching_via_partial): Update to use
11259 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11260 Arg name_matcher renamed to symbol_matcher.
11261
11262 2014-01-14 Doug Evans <dje@google.com>
11263
11264 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11265 (map_partial_symbol_filenames): Ditto.
11266 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11267 (map_partial_symbol_filenames): Ditto.
11268 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11269 (map_partial_symbol_filenames): Ditto.
11270 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11271 (map_partial_symbol_filenames): Ditto.
11272 * symtab.c: Delete #include "psymtab.h".
11273
11274 2014-01-14 Pedro Alves <palves@redhat.com>
11275 Tom Tromey <tromey@redhat.com>
11276
11277 * infrun.c (use_displaced_stepping): Use find_record_target
11278 instead of RECORD_IS_USED.
11279 (adjust_pc_after_break): Use record_full_is_used instead of
11280 RECORD_IS_USED.
11281 * record-btrace.c (record_btrace_open): Call record_preopen
11282 instead of checking RECORD_IS_USED.
11283 * record-full.c (record_full_shortname)
11284 (record_full_core_shortname): New globals.
11285 (record_full_is_used): New function.
11286 (find_full_open): Call record_preopen instead of checking
11287 RECORD_IS_USED.
11288 (init_record_full_ops): Set the target's shortname to
11289 record_full_shortname.
11290 (init_record_full_core_ops): Set the target's shortname to
11291 record_full_core_shortname.
11292 * record-full.h (record_full_is_used): Declare.
11293 * record.c (find_record_target): Make extern.
11294 (record_preopen): New function.
11295 * record.h (RECORD_IS_USED): Delete macro.
11296 (find_record_target, record_preopen): Declare functions.
11297
11298 2014-01-14 Yao Qi <yao@codesourcery.com>
11299
11300 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11301 'len''s type to ULONGEST.
11302 (core_xfer_shared_libraries_aix): Likewise.
11303 * gdbarch.c, gdbarch.h: Regenerated.
11304 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11305 Change type of 'len' to ULONGEST.
11306 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11307 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11308
11309 2014-01-14 Yao Qi <yao@codesourcery.com>
11310
11311 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11312 type of 'len' to ULONGEST.
11313 (linux_xfer_osdata_processgroups): Likewise.
11314 (linux_xfer_osdata_threads): Likewise.
11315 (linux_xfer_osdata_fds): Likewise.
11316 (linux_xfer_osdata_isockets): Likewise.
11317 (linux_xfer_osdata_shm): Likewise.
11318 (linux_xfer_osdata_sem): Likewise.
11319 (linux_xfer_osdata_msg): Likewise.
11320 (linux_common_xfer_osdata): Likewise.
11321 (struct osdata_type) <getter>: Likewise.
11322 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11323 the declaration.
11324
11325 2014-01-14 Yao Qi <yao@codesourcery.com>
11326
11327 * target.h (target_xfer_partial_ftype): Update.
11328 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11329 ULONGEST.
11330 * aix-thread.c (aix_thread_xfer_partial): Change type of
11331 argument 'len' to ULONGEST.
11332 * auxv.c (procfs_xfer_auxv): Likewise.
11333 (ld_so_xfer_auxv): Likewise.
11334 (memory_xfer_auxv): Likewise.
11335 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11336 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11337 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11338 * corelow.c (core_xfer_partial): Likewise.
11339 * ctf.c (ctf_xfer_partial): Likewise.
11340 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11341 '%u'.
11342 (darwin_read_dyld_info): Likewise.
11343 (darwin_xfer_partial): Likewise.
11344 * exec.c (section_table_xfer_memory_partial): Likewise.
11345 (exec_xfer_partial): Likewise.
11346 * exec.h (section_table_xfer_memory_partial): Update
11347 declaration.
11348 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11349 instead of plongest.
11350 (gnu_xfer_partial): Likewise.
11351 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11352 (ia64_hpux_xfer_solib_got): Likewise.
11353 (ia64_hpux_xfer_partial): Likewise.
11354 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11355 * inf-ptrace.c (inf_ptrace_xfer_partial):
11356 * inf-ttrace.c (inf_ttrace_xfer_partial):
11357 * linux-nat.c (linux_xfer_siginfo): Likewise.
11358 (linux_nat_xfer_partial): Likewise.
11359 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11360 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11361 * monitor.c (monitor_xfer_memory): Likewise.
11362 (monitor_xfer_partial): Likewise.
11363 * procfs.c (procfs_xfer_partial): Likewise.
11364 * record-full.c (record_full_xfer_partial): Likewise.
11365 (record_full_core_xfer_partial): Likewise.
11366 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11367 instead of plongest.
11368 (gdbsim_xfer_partial): Likewise.
11369 * remote.c (remote_xfer_partial): Likewise.
11370 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11371 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11372 declaration.
11373 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11374 (rs6000_xfer_shared_libraries): Likewise.
11375 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11376 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11377 (sparc_xfer_partial): Likewise.
11378 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11379 (spu_xfer_partial): Likewise.
11380 * spu-multiarch.c (spu_xfer_partial): Likewise.
11381 * target.c (target_read_live_memory): Likewise.
11382 (memory_xfer_live_readonly_partial): Likewise.
11383 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11384 (target_xfer_partial, default_xfer_partial): Likewise.
11385 (current_xfer_partial): Likewise.
11386 * tracepoint.c (tfile_xfer_partial): Likewise.
11387 * windows-nat.c (windows_xfer_memory): Likewise. Call
11388 pulongest instead of plongest.
11389 (windows_xfer_partial): Likewise.
11390 (windows_xfer_shared_libraries): Likewise.
11391
11392 2014-01-14 Yao Qi <yao@codesourcery.com>
11393
11394 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11395 target_xfer_partial_ftype.
11396
11397 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11398
11399 PR python/15464
11400 PR python/16113
11401 * valops.c (value_struct_elt_bitpos): New function
11402 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11403 object to 'None' if the field name is an empty string ("").
11404 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11405 attribute to look for a field when 'name' is 'None'.
11406 (get_field_type): New function
11407
11408 2014-01-13 Doug Evans <dje@google.com>
11409
11410 PR symtab/16426
11411 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11412 (try_open_dwop_file): Ditto.
11413 * gdb_bfd.c: #include "vec.h".
11414 (bfdp): New typedef.
11415 (struct gdb_bfd_data): New member included_bfds.
11416 (gdb_bfd_unref): Unref all included bfds.
11417 (gdb_bfd_record_inclusion): New function.
11418 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11419
11420 2014-01-13 Tom Tromey <tromey@redhat.com>
11421
11422 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11423
11424 2014-01-13 Tom Tromey <tromey@redhat.com>
11425
11426 * defs.h (use_windows): Remove.
11427 * gdb.c (main): Update.
11428 * main.c (captured_main, gdb_main): Update.
11429 * main.h (struct captured_main_args) <use_windows>: Remove.
11430 * top.c (use_windows): Remove.
11431
11432 2014-01-13 Tom Tromey <tromey@redhat.com>
11433
11434 * defs.h (deprecated_flush_hook): Remove.
11435
11436 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 PR threads/16216
11439 * linux-thread-db.c (try_thread_db_load): Add parameter
11440 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11441 (try_thread_db_load_from_pdir_1): Move it there from here.
11442 (try_thread_db_load_from_sdir): Update caller.
11443 (try_thread_db_load_from_dir): Move it there from here.
11444
11445 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11446
11447 * regformats/regdat.sh: Always rewrite the register file.
11448
11449 2014-01-13 Pedro Alves <palves@redhat.com>
11450
11451 * Makefile.in (CHECK_HEADERS): New variable.
11452 (check-headers:): New rule.
11453
11454 2014-01-13 Tom Tromey <tromey@redhat.com>
11455
11456 * cli/cli-setshow.c (do_set_command): Update.
11457 * defs.h (deprecated_set_hook): Remove.
11458 * top.c (deprecated_set_hook): Remove.
11459
11460 2014-01-13 Pedro Alves <palves@redhat.com>
11461
11462 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11463 the tracepoint if the PC is a pseudo-register.
11464
11465 2014-01-13 Tom Tromey <tromey@redhat.com>
11466
11467 * defs.h (XCALLOC): Remove.
11468 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11469 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11470 * dwarf2loc.c (allocate_piece_closure): Likewise.
11471 * elfread.c (elf_symfile_segments): Likewise.
11472 (elf_symfile_segments): Likewise.
11473 * gdbtypes.c (copy_type_recursive): Likewise.
11474 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11475 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11476 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11477 XCALLOC.
11478 * mt-tdep.c (mt_gdbarch_init): Likewise.
11479 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11480 XCALLOC.
11481 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11482 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11483 * registry.c (registry_alloc_data): Likewise.
11484 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11485 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11486 * serial.c (serial_fdopen_ops): Likewise.
11487 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11488 XCALLOC.
11489 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11490 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11491 not XCALLOC.
11492
11493 2014-01-13 Tom Tromey <tromey@redhat.com>
11494
11495 * defs.h (XMALLOC): Remove.
11496 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11497 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11498 * cli-out.c (struct ui_out *): Likewise.
11499 * cli/cli-dump.c (add_dump_command): Likewise.
11500 (add_dump_command): Likewise.
11501 * complaints.c (get_complaints): Likewise.
11502 (find_complaint): Likewise.
11503 * dwarf2-frame.c (execute_cfa_program): Likewise.
11504 * dwarf2read.c (abbrev_table_read_table): Likewise.
11505 * gdbarch.sh: Likewise.
11506 * gdbarch.c: Rebuild.
11507 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11508 * interps.c (interp_new): Likewise.
11509 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11510 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11511 * mi/mi-console.c (mi_console_file_new): Likewise.
11512 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11513 * mi/mi-out.c (mi_out_new): Likewise.
11514 * mi/mi-parse.c (mi_parse): Likewise.
11515 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11516 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11517 * observer.c (xalloc_observer_list_node): Likewise.
11518 * regcache.c (regcache_xmalloc_1): Likewise.
11519 * reggroups.c (reggroup_new): Likewise.
11520 (_initialize_reggroup): Likewise.
11521 * registry.c (register_data_with_cleanup): Likewise.
11522 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11523 * ser-base.c (serial_ttystate): Likewise.
11524 * ser-mingw.c (make_pipe_state): Likewise.
11525 * ser-pipe.c (pipe_open): Likewise.
11526 * serial.c (serial_open): Likewise.
11527 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11528 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11529 (tui_alloc_win_info): Likewise.
11530 (tui_add_content_elements): Likewise.
11531 * tui/tui-file.c (tui_file_new): Likewise.
11532 * tui/tui-out.c (tui_out_new): Likewise.
11533 * ui-file.c (mem_file_new): Likewise.
11534 * ui-out.c (push_level): Likewise.
11535 (make_cleanup_ui_out_end): Likewise.
11536 (append_header_to_list): Likewise.
11537 (ui_out_new): Likewise.
11538 * user-regs.c (user_reg_add_builtin): Likewise.
11539
11540 2014-01-13 Tom Tromey <tromey@redhat.com>
11541
11542 * defs.h (XZALLOC): Remove.
11543 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11544 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11545 (get_ada_tasks_inferior_data): Likewise.
11546 * auto-load.c (get_auto_load_pspace_data): Likewise.
11547 * auxv.c (get_auxv_inferior_data): Likewise.
11548 * bfd-target.c (target_bfd_reopen): Likewise.
11549 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11550 (deprecated_insert_raw_breakpoint): Likewise.
11551 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11552 * corelow.c (core_open): Likewise.
11553 * darwin-nat.c (darwin_check_new_threads): Likewise.
11554 (darwin_attach_pid): Likewise.
11555 * dummy-frame.c (dummy_frame_push): Likewise.
11556 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11557 * dwarf2loc.c (allocate_piece_closure): Likewise.
11558 * elfread.c (elf_symfile_segments): Likewise.
11559 * eval.c (ptrmath_type_p): Likewise.
11560 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11561 * gdbtypes.c (alloc_type_arch): Likewise.
11562 (alloc_type_instance): Likewise.
11563 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11564 * inf-child.c (inf_child_can_use_agent): Likewise.
11565 * inflow.c (get_inflow_inferior_data): Likewise.
11566 * infrun.c (save_infcall_suspend_state): Likewise.
11567 * jit.c (jit_reader_load): Likewise.
11568 (get_jit_objfile_data): Likewise.
11569 (get_jit_program_space_data): Likewise.
11570 (jit_object_open_impl): Likewise.
11571 (jit_symtab_open_impl): Likewise.
11572 (jit_block_open_impl): Likewise.
11573 (jit_frame_sniffer): Likewise.
11574 * linux-fork.c (add_fork): Likewise.
11575 * maint.c (make_command_stats_cleanup): Likewise.
11576 * objfiles.c (get_objfile_pspace_data): Likewise.
11577 * opencl-lang.c (struct lval_closure): Likewise.
11578 * osdata.c (osdata_start_osdata): Likewise.
11579 * progspace.c (new_address_space): Likewise.
11580 (add_program_space): Likewise.
11581 * remote-sim.c (get_sim_inferior_data): Likewise.
11582 * sh-tdep.c (sh_gdbarch_init): Likewise.
11583 * skip.c (Ignore): Likewise.
11584 (skip_delete_command): Likewise.
11585 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11586 (library_list_start_library): Likewise.
11587 (solib_aix_current_sos): Likewise.
11588 * solib-darwin.c (get_darwin_info): Likewise.
11589 (darwin_current_sos): Likewise.
11590 * solib-dsbt.c (get_dsbt_info): Likewise.
11591 * solib-ia64-hpux.c (new_so_list): Likewise.
11592 (ia64_hpux_get_solib_linkage_addr): Likewise.
11593 * solib-spu.c (append_ocl_sos): Likewise.
11594 (spu_current_sos): Likewise.
11595 * solib-svr4.c (get_svr4_info): Likewise.
11596 (svr4_keep_data_in_core): Likewise.
11597 (library_list_start_library): Likewise.
11598 (svr4_default_sos): Likewise.
11599 (svr4_read_so_list): Likewise.
11600 * solib-target.c (library_list_start_library): Likewise.
11601 (solib_target_current_sos): Likewise.
11602 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11603 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11604 * symfile.c (default_symfile_segments): Likewise.
11605 * target-descriptions.c (tdesc_data_init): Likewise.
11606 (tdesc_create_reg): Likewise.
11607 (struct tdesc_type *): Likewise.
11608 (tdesc_create_vector): Likewise.
11609 (tdesc_set_struct_size): Likewise.
11610 (struct tdesc_type *): Likewise.
11611 (tdesc_free_feature): Likewise.
11612 (tdesc_create_feature): Likewise.
11613 * windows-nat.c (windows_add_thread): Likewise.
11614 (windows_make_so): Likewise.
11615 * xml-support.c (gdb_xml_body_text): Likewise.
11616 (gdb_xml_create_parser_and_cleanup): Likewise.
11617 (xml_process_xincludes): Likewise.
11618 * xml-syscall.c (allocate_syscalls_info): Likewise.
11619 (syscall_create_syscall_desc): Likewise.
11620
11621 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11622
11623 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11624 function, with code from i386_stap_parse_special_token.
11625 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11626 (i386_stap_parse_special_token): Move code to the two functions
11627 above; simplify it.
11628
11629 2014-01-09 Pedro Alves <palves@redhat.com>
11630 Hui Zhu <hui@codesourcery.com>
11631
11632 PR gdb/16101
11633 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11634 bp_err_string. Don't mark the location shlib_disabled if the
11635 error thrown wasn't a generic or memory error. Catch errors
11636 thrown while inserting breakpoints in overlayed code. Output
11637 error message of software breakpoints.
11638 * remote.c (remote_insert_breakpoint): If this breakpoint has
11639 target-side commands but this stub doesn't support Z0 packets,
11640 throw NOT_SUPPORTED_ERROR error.
11641 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11642 * target.h (target_insert_breakpoint): Extend comment.
11643 (target_insert_hw_breakpoint): Add comment.
11644
11645 2014-01-08 Pedro Alves <palves@redhat.com>
11646
11647 * remote.c (remote_add_thread): Add threads silently if starting
11648 up.
11649 (remote_notice_new_inferior): If in all-stop, and starting up,
11650 don't call notice_new_inferior.
11651 (get_current_thread): New function, factored out from ...
11652 (add_current_inferior_and_thread): ... this. Adjust.
11653 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11654 found any thread, then select the remote's current thread as GDB's
11655 current thread too.
11656
11657 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11658
11659 * NEWS: Create a new section for the next release branch.
11660 Rename the section of the current branch, now that it has
11661 been cut.
11662
11663 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11664
11665 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11666 * version.in: Bump version to 7.7.50.DATE-cvs.
11667
11668 2014-01-08 Yao Qi <yao@codesourcery.com>
11669
11670 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11671 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11672 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11673
11674 2014-01-08 Yao Qi <yao@codesourcery.com>
11675
11676 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11677 return value of bfd_get_filename to symbol_file_add_from_bfd.
11678
11679 2014-01-08 Pierre Muller <muller@sourceware.org>
11680
11681 Fix PR16201.
11682 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11683 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11684 to prim_record_mininal_symbol_and_info.
11685 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11686 in call to prim_record_minimal_symbol_and_info.
11687 (read_pe_exported_syms): Set index field of section_data.
11688
11689 2014-01-07 Andrew Pinski <apinski@cavium.com>
11690
11691 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11692 * features/aarch64.c: Regenerate.
11693
11694 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11695
11696 * target.c (return_null): Define.
11697 (update_current_target): Use it instead of return_zero for
11698 functions that return a pointer.
11699
11700 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11701
11702 * source.c (add_path): Fix check for duplicated paths in the previously
11703 included paths.
11704
11705 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11706
11707 * ada-lang.c: Remove duplicated include statements.
11708 * alphabsd-nat.c: Ditto.
11709 * amd64-darwin-tdep.c: Ditto.
11710 * amd64fbsd-nat.c: Ditto.
11711 * auto-load.c: Ditto.
11712 * ax-gdb.c: Ditto.
11713 * breakpoint.c: Ditto.
11714 * dbxread.c: Ditto.
11715 * fork-child.c: Ditto.
11716 * gdb_usleep.c: Ditto.
11717 * i386-darwin-tdep.c: Ditto.
11718 * i386fbsd-nat.c: Ditto.
11719 * infcmd.c: Ditto.
11720 * inferior.c: Ditto.
11721 * jv-lang.c: Ditto.
11722 * linux-nat.c: Ditto.
11723 * linux-tdep.c: Ditto.
11724 * m68kbsd-nat.c: Ditto.
11725 * m68klinux-nat.c: Ditto.
11726 * microblaze-tdep.c: Ditto.
11727 * mips-linux-tdep.c: Ditto.
11728 * mn10300-tdep.c: Ditto.
11729 * nto-tdep.c: Ditto.
11730 * opencl-lang.c: Ditto.
11731 * osdata.c: Ditto.
11732 * printcmd.c: Ditto.
11733 * regcache.c: Ditto.
11734 * remote-m32r-sdi.c: Ditto.
11735 * remote.c: Ditto.
11736 * symfile.c: Ditto.
11737 * symtab.c: Ditto.
11738 * tilegx-linux-nat.c: Ditto.
11739 * tilegx-tdep.c: Ditto.
11740 * tracepoint.c: Ditto.
11741 * valops.c: Ditto.
11742 * vaxbsd-nat.c: Ditto.
11743 * windows-nat.c: Ditto.
11744 * xtensa-tdep.c: Ditto.
11745
11746 2014-01-07 Yao Qi <yao@codesourcery.com>
11747
11748 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11749
11750 2014-01-07 Yao Qi <yao@codesourcery.com>
11751 Joel Brobecker <brobecker@adacore.com>
11752
11753 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11754 (pdc_write_regs): Likewise.
11755 (fetch_regs_kernel_thread): Likewise.
11756 (store_regs_kernel_thread): Likewise.
11757
11758 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11759
11760 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11761 tagged type objects to their actual type.
11762
11763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11764
11765 * ada-valprint.c (print_field_values): Add "language" parameter.
11766 Update calls to print_field_values and print_variant_part.
11767 Pass new parameter "language" in call to val_print instead
11768 of "current_language". Replace call to ada_val_print by call
11769 to val_print.
11770 (print_variant_part): Add "language" parameter.
11771 (ada_val_print_struct_union): Update call to print_field_values.
11772
11773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11774
11775 * ada-valprint.c (ui_memcpy): Delete.
11776 (ada_print_floating): Update documentation. Add empty line
11777 between between function documentation and implementation.
11778 Delete variable "buffer". Use ui_file_xstrdup in place of
11779 ui_file_put. Minor adjustments following this change.
11780
11781 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11782
11783 * ada-valprint.c (ada_val_print_string): New function,
11784 extracted from ada_val_print_array.
11785 (ada_val_print_array): Replace extracted code by call
11786 to ada_val_print_string followed by a return. Move
11787 "else" branch to the function's top block.
11788
11789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11790
11791 * ada-valprint.c (ada_val_print_array): Move implementation
11792 down. Rename parameter "offset" and "val" into "offset_aligned"
11793 and "original_value" respectively. Add parameter "offset".
11794
11795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11796
11797 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11798 re-organizing the code. Change the "???" message printed
11799 when target type is a TYPE_CODE_UNDEF into
11800 "<ref to undefined type>".
11801
11802 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11803
11804 * ada-valprint.c (print_record): Delete, implementation inlined...
11805 (ada_val_print_struct_union): ... here. Remove call to
11806 ada_check_typedef in inlined implementation.
11807
11808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11809
11810 * ada-valprint.c (ada_val_print_gnat_array): New function,
11811 extracted from ada_val_print_1;
11812 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11813 (ada_val_print_flt, ada_val_print_struct_union)
11814 (ada_val_print_ref): Likewise.
11815 (ada_val_print_1): Delete variables i and elttype.
11816 Replace extracted-out code by call to corresponding
11817 new functions.
11818
11819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11820
11821 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11822
11823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11824
11825 * ada-valprint.c (ada_val_print_1): Replace calls to
11826 ada_val_print_1 by calls to val_print.
11827
11828 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11829
11830 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11831 Update calls to self accordingly. Replace calls to c_val_print
11832 by calls to val_print.
11833
11834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11835
11836 * ada-valprint.c (print_record): Delete declaration.
11837 (adjust_type_signedness, ada_val_print_1): Likewise.
11838 (ada_val_print): Move function implementation down.
11839 (print_variant_part, print_field_values, print_record):
11840 Move function implementation up.
11841
11842 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11843
11844 * python/py-type.c (typy_get_name): New function.
11845 (type_object_getset): Add entry for attribute "name".
11846 * NEWS: Add entry mentioning this new attribute.
11847
11848 2014-01-07 Yao Qi <yao@codesourcery.com>
11849
11850 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11851 statement.
11852
11853 2014-01-07 Yao Qi <yao@codesourcery.com>
11854
11855 * gnu-nat.c (info_port_rights): Add qualifier const to
11856 argument args.
11857
11858 2014-01-07 Yao Qi <yao@codesourcery.com>
11859
11860 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11861
11862 2014-01-07 Yao Qi <yao@codesourcery.com>
11863
11864 * gnu-nat.c (make_inf) Update declaration.
11865 (make_inf): Make it static.
11866 (inf_set_traced): Likewise.
11867 (inf_port_to_thread, inf_task_died_status): Likewise.
11868
11869 2014-01-07 Yao Qi <yao@codesourcery.com>
11870
11871 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11872
11873 2014-01-07 Yao Qi <yao@codesourcery.com>
11874
11875 * gnu-nat.c (_initialize_gnu_nat): Declare.
11876
11877 2014-01-07 Yao Qi <yao@codesourcery.com>
11878
11879 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11880 'enum bfd_endian'.
11881 (struct gdbarch_info) <byte_order>: Change type to
11882 'enum bfd_endian'.
11883 <byte_order_for_code>: Likewise.
11884 * gdbarch.c, gdbarch.h: Regenerated.
11885
11886 2014-01-06 Sasha Smundak <asmundak@google.com>
11887
11888 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11889
11890 2014-01-06 Tom Tromey <tromey@redhat.com>
11891
11892 * doublest.c (convert_doublest_to_floatformat): Use const, not
11893 CONST.
11894 * somread.c (som_symtab_read): Likewise.
11895
11896 2014-01-07 Hui Zhu <hui@codesourcery.com>
11897
11898 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11899 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11900 (gdb_bfd_fopen): Ditto.
11901 (gdb_bfd_openr): Ditto.
11902 (gdb_bfd_openw): Ditto.
11903 (gdb_bfd_openr_iovec): Ditto.
11904 (gdb_bfd_fdopenr): Ditto.
11905 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11906 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11907 with xstrdup.
11908 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11909 with xstrdup.
11910 * symfile-mem.c (symbol_file_add_from_memory): Removed
11911 gdb_bfd_stash_filename.
11912
11913 2014-01-03 Doug Evans <dje@google.com>
11914
11915 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11916 output.
11917
11918 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11919
11920 Update year range in copyright notice of all files.
11921
11922 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11923
11924 * top.c (print_gdb_version): Set copyright year to 2014.
11925
11926 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11927
11928 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11929
11930 For older changes see ChangeLog-2013.
11931 \f
11932 Local Variables:
11933 mode: change-log
11934 left-margin: 8
11935 fill-column: 74
11936 version-control: never
11937 coding: utf-8
11938 End:
This page took 0.261303 seconds and 5 git commands to generate.