SCORE: Fill 'collect_regset' in regset structure.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c5741217
AA
12014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4 that calls regcache_supply_regset and handles the EPC register
5 separately. Move main logic to...
6 (score7_linux_gregmap): ... this new register map.
7 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
8 (score7_linux_gregset): Refer to register map. Add collect method.
9 (score7_linux_regset_from_core_section): Replace
10 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
11 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
12 (struct regset): Delete unused forward declaraction.
13 (struct pt_regs): Delete structure definition.
14 (elf_gregset_t): Delete typedef.
15
81580573
AA
162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
17
18 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
19 (nios2_core_regset): Add collect method.
20
ba199d7d
AA
212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
22
23 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
24 platform-independent and don't write to read-only input buffer.
25 (m32r_linux_collect_gregset): New function.
26 (m32r_linux_gregset): Add collect method.
27
0006a9da
AA
282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
29
30 * hppa-linux-tdep.c (greg_map): Rename to...
31 (hppa_linux_gregmap): ... this. Also convert to
32 regcache_map_entry format.
33 (hppa_linux_supply_regset): Delete function.
34 (hppa_linux_supply_fpregset): Delete function. Move logic to...
35 (hppa_linux_fpregmap): ... this new register map.
36 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
37 register map, replace supply method by regcache_supply_regset, and
38 add collect method regcache_collect_regset.
39
901e1b23
AA
402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
41
42 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
43 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
44 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
45 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
46 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
47 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
48 (frv_linux_supply_gregset): Replace main logic by call to
49 regcache_supply_regset, but keep clearing gr32-gr63.
50 (frv_linux_supply_fpregset): Delete function.
51 (frv_linux_gregset): Refer to appropriate register map and add
52 regcache_collect_regset as the collect method.
53 (frv_linux_fpregset): Likewise. Also exchange the supply method
54 by regcache_supply_regset.
55
1d6e7555
AA
562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
57
58 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
59 by call to alpha_supply_int_regs.
60 (alpha_linux_collect_gregset): New function.
61 (alpha_linux_supply_fpregset): Replace logic by call to
62 alpha_supply_fp_regs.
63 (alpha_linux_collect_fpregset): New function.
64 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
65
d4d793bf
AA
662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
69 by call to regcache_collect_regset.
70 (supply_gregset, supply_fpregset): Call regcache_supply_regset
71 instead of aarch64_linux_supply_gregset/_fpregset.
72 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
73 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
74 header file instead.
75 (aarch64_linux_supply_gregset, supply_gregset_from_core)
76 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
77 functions. Move logic to ...
78 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
79 register maps.
80 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
81 refer to new register maps, replace *_regset_from_core by
82 regcache_supply_regset, and also use regcache_collect_regset.
83 * aarch64-linux-tdep.h: Include "regset.h".
84 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
85 Delete prototypes.
86 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
87 macros, moved from C source file.
88 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
89 variable declarations.
90
99b7da5d
AA
912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
92
93 * s390-linux-nat.c: Include "regset.h".
94 (regmap_gregset): Delete macro.
95 (s390_64_regmap_gregset): New register map for
96 regcache_supply/_collect_regset.
97 (s390_64_gregset): New regset.
98 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
99 (regmap_fpregset): Delete macro.
100 (s390_native_supply, s390_native_collect): Delete functions.
101 (supply_gregset, fill_gregset): Replace s390-specific regmap
102 handling by a call to regcache_supply/_collect_regset.
103 (supply_fpregset, fill_fpregset): Call regcache_supply/
104 _collect_regset instead of s390_native_supply/_collect.
105 (fetch_regset, store_regset): Likewise. Also change the last
106 parameter to a regset instead of a regmap.
107 (s390_linux_fetch_inferior_registers)
108 (390_linux_store_inferior_registers): Adjust last parameter in
109 calls to fetch_regset and store_regset.
110 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
111 (s390_gregmap): ... this. Also make static const and convert to
112 regcache_map_entry format.
113 (s390x_regmap_gregset): Delete.
114 (s390_regmap_fpregset): Rename to...
115 (s390_fpregmap): ... this. Make static const and convert to
116 regcache_map_entry format.
117 (s390_regmap_upper, s390_regmap_last_break)
118 (s390x_regmap_last_break, s390_regmap_system_call)
119 (s390_regmap_tdb): Likewise.
120 (s390_supply_regset, s390_collect_regset): Remove functions.
121 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
122 s390_supply_regset.
123 (s390_gregset, s390_fpregset, s390_upper_regset)
124 (s390_last_break_regset, s390x_last_break_regset)
125 (s390_system_call_regset, s390_tdb_regset): Make global and
126 replace s390_supply/_collect_regset by regcache_supply/
127 _collect_regset.
128 (s390x_gregset): Delete.
129 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
130 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
131 (s390_regmap_fpregset, s390_regmap_last_break)
132 (s390x_regmap_last_break, s390_regmap_system_call)
133 (s390_regmap_tdb): Delete global variable declarations.
134 (s390_gregset, s390_fpregset, s390_last_break_regset)
135 (s390x_last_break_regset, s390_system_call_regset)
136 (s390_tdb_regset): New global variable declarations.
137
0b309272
AA
1382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
139
140 * regcache.c: Include "regset.h".
141 (regcache_transfer_regset): New local function.
142 (regcache_supply_regset, regcache_collect_regset): New functions.
143 * regcache.h (struct regcache_map_entry): New structure.
144 (REGCACHE_MAP_SKIP): New enum value.
145 (regcache_supply_regset, regcache_collect_regset): New prototypes.
146
7fefa8d7
AA
1472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
148
149 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
150 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
151 (ppc_linux_collect_gregset ): Likewise.
152 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
153 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
154 (ppc_collect_vrregset): Likewise.
155 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
156 Likewise.
157
96c4f946
YQ
1582014-08-07 Yao Qi <yao@codesourcery.com>
159
160 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
161 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
162 * remote.c (remote_read_bytes): Likewise.
163
fffbe6a8
YQ
1642014-08-07 Yao Qi <yao@codesourcery.com>
165
166 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
167
5ee8a82c
YQ
1682014-08-07 Yao Qi <yao@codesourcery.com>
169
170 PR remote/17230
171 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
172 TARGET_XFER_OK instead of 0.
173
bb974a24
GB
1742014-08-07 Gary Benson <gbenson@redhat.com>
175
176 * common/common-defs.h: Include errno.h.
177 * defs.h: Do not include errno.h.
178 * ada-typeprint.c: Likewise.
179 * c-typeprint.c: Likewise.
180 * core-regset.c: Likewise.
181 * corefile.c: Likewise.
182 * corelow.c: Likewise.
183 * event-loop.c: Likewise.
184 * f-typeprint.c: Likewise.
185 * gnu-nat.c: Likewise.
186 * go32-nat.c: Likewise.
187 * i386gnu-nat.c: Likewise.
188 * m2-typeprint.c: Likewise.
189 * nat/linux-btrace.c: Likewise.
190 * p-typeprint.c: Likewise.
191 * procfs.c: Likewise.
192 * remote-sim.c: Likewise.
193 * rs6000-nat.c: Likewise.
194 * target.c: Likewise.
195 * typeprint.c: Likewise.
196 * ui-file.c: Likewise.
197 * valops.c: Likewise.
198 * valprint.c: Likewise.
199
6d3d12eb
GB
2002014-08-07 Gary Benson <gbenson@redhat.com>
201
202 * common/common-defs.h: Include string.h.
203 * aarch64-tdep.c: Do not include string.h.
204 * ada-exp.y: Likewise.
205 * ada-lang.c: Likewise.
206 * ada-lex.l: Likewise.
207 * ada-typeprint.c: Likewise.
208 * ada-valprint.c: Likewise.
209 * aix-thread.c: Likewise.
210 * alpha-linux-tdep.c: Likewise.
211 * alpha-mdebug-tdep.c: Likewise.
212 * alpha-nat.c: Likewise.
213 * alpha-osf1-tdep.c: Likewise.
214 * alpha-tdep.c: Likewise.
215 * alphanbsd-tdep.c: Likewise.
216 * amd64-dicos-tdep.c: Likewise.
217 * amd64-linux-tdep.c: Likewise.
218 * amd64-nat.c: Likewise.
219 * amd64-sol2-tdep.c: Likewise.
220 * amd64fbsd-tdep.c: Likewise.
221 * amd64obsd-tdep.c: Likewise.
222 * arch-utils.c: Likewise.
223 * arm-linux-nat.c: Likewise.
224 * arm-linux-tdep.c: Likewise.
225 * arm-tdep.c: Likewise.
226 * arm-wince-tdep.c: Likewise.
227 * armbsd-tdep.c: Likewise.
228 * armnbsd-nat.c: Likewise.
229 * armnbsd-tdep.c: Likewise.
230 * armobsd-tdep.c: Likewise.
231 * avr-tdep.c: Likewise.
232 * ax-gdb.c: Likewise.
233 * ax-general.c: Likewise.
234 * bcache.c: Likewise.
235 * bfin-tdep.c: Likewise.
236 * breakpoint.c: Likewise.
237 * build-id.c: Likewise.
238 * buildsym.c: Likewise.
239 * c-exp.y: Likewise.
240 * c-lang.c: Likewise.
241 * c-typeprint.c: Likewise.
242 * c-valprint.c: Likewise.
243 * charset.c: Likewise.
244 * cli-out.c: Likewise.
245 * cli/cli-cmds.c: Likewise.
246 * cli/cli-decode.c: Likewise.
247 * cli/cli-dump.c: Likewise.
248 * cli/cli-interp.c: Likewise.
249 * cli/cli-logging.c: Likewise.
250 * cli/cli-script.c: Likewise.
251 * cli/cli-setshow.c: Likewise.
252 * cli/cli-utils.c: Likewise.
253 * coffread.c: Likewise.
254 * common/agent.c: Likewise.
255 * common/buffer.c: Likewise.
256 * common/buffer.h: Likewise.
257 * common/common-utils.c: Likewise.
258 * common/filestuff.c: Likewise.
259 * common/filestuff.c: Likewise.
260 * common/format.c: Likewise.
261 * common/print-utils.c: Likewise.
262 * common/rsp-low.c: Likewise.
263 * common/signals.c: Likewise.
264 * common/vec.h: Likewise.
265 * common/xml-utils.c: Likewise.
266 * core-regset.c: Likewise.
267 * corefile.c: Likewise.
268 * corelow.c: Likewise.
269 * cp-abi.c: Likewise.
270 * cp-name-parser.y: Likewise.
271 * cp-support.c: Likewise.
272 * cp-valprint.c: Likewise.
273 * cris-tdep.c: Likewise.
274 * d-exp.y: Likewise.
275 * darwin-nat.c: Likewise.
276 * dbxread.c: Likewise.
277 * dcache.c: Likewise.
278 * demangle.c: Likewise.
279 * dicos-tdep.c: Likewise.
280 * disasm.c: Likewise.
281 * doublest.c: Likewise.
282 * dsrec.c: Likewise.
283 * dummy-frame.c: Likewise.
284 * dwarf2-frame.c: Likewise.
285 * dwarf2loc.c: Likewise.
286 * dwarf2read.c: Likewise.
287 * elfread.c: Likewise.
288 * environ.c: Likewise.
289 * eval.c: Likewise.
290 * event-loop.c: Likewise.
291 * exceptions.c: Likewise.
292 * exec.c: Likewise.
293 * expprint.c: Likewise.
294 * f-exp.y: Likewise.
295 * f-lang.c: Likewise.
296 * f-typeprint.c: Likewise.
297 * f-valprint.c: Likewise.
298 * fbsd-nat.c: Likewise.
299 * findcmd.c: Likewise.
300 * findvar.c: Likewise.
301 * fork-child.c: Likewise.
302 * frame.c: Likewise.
303 * frv-linux-tdep.c: Likewise.
304 * frv-tdep.c: Likewise.
305 * gdb.c: Likewise.
306 * gdb_bfd.c: Likewise.
307 * gdbarch.c: Likewise.
308 * gdbarch.sh: Likewise.
309 * gdbtypes.c: Likewise.
310 * gnu-nat.c: Likewise.
311 * gnu-v2-abi.c: Likewise.
312 * gnu-v3-abi.c: Likewise.
313 * go-exp.y: Likewise.
314 * go-lang.c: Likewise.
315 * go32-nat.c: Likewise.
316 * guile/guile.c: Likewise.
317 * guile/scm-auto-load.c: Likewise.
318 * hppa-hpux-tdep.c: Likewise.
319 * hppa-linux-nat.c: Likewise.
320 * hppanbsd-tdep.c: Likewise.
321 * hppaobsd-tdep.c: Likewise.
322 * i386-cygwin-tdep.c: Likewise.
323 * i386-dicos-tdep.c: Likewise.
324 * i386-linux-tdep.c: Likewise.
325 * i386-nto-tdep.c: Likewise.
326 * i386-sol2-tdep.c: Likewise.
327 * i386-tdep.c: Likewise.
328 * i386bsd-tdep.c: Likewise.
329 * i386gnu-nat.c: Likewise.
330 * i386nbsd-tdep.c: Likewise.
331 * i386obsd-tdep.c: Likewise.
332 * i387-tdep.c: Likewise.
333 * ia64-libunwind-tdep.c: Likewise.
334 * ia64-linux-nat.c: Likewise.
335 * inf-child.c: Likewise.
336 * inf-ptrace.c: Likewise.
337 * inf-ttrace.c: Likewise.
338 * infcall.c: Likewise.
339 * infcmd.c: Likewise.
340 * inflow.c: Likewise.
341 * infrun.c: Likewise.
342 * interps.c: Likewise.
343 * iq2000-tdep.c: Likewise.
344 * irix5-nat.c: Likewise.
345 * jv-exp.y: Likewise.
346 * jv-lang.c: Likewise.
347 * jv-typeprint.c: Likewise.
348 * jv-valprint.c: Likewise.
349 * language.c: Likewise.
350 * linux-fork.c: Likewise.
351 * linux-nat.c: Likewise.
352 * lm32-tdep.c: Likewise.
353 * m2-exp.y: Likewise.
354 * m2-typeprint.c: Likewise.
355 * m32c-tdep.c: Likewise.
356 * m32r-linux-nat.c: Likewise.
357 * m32r-linux-tdep.c: Likewise.
358 * m32r-rom.c: Likewise.
359 * m32r-tdep.c: Likewise.
360 * m68hc11-tdep.c: Likewise.
361 * m68k-tdep.c: Likewise.
362 * m68kbsd-tdep.c: Likewise.
363 * m68klinux-nat.c: Likewise.
364 * m68klinux-tdep.c: Likewise.
365 * m88k-tdep.c: Likewise.
366 * machoread.c: Likewise.
367 * macrocmd.c: Likewise.
368 * main.c: Likewise.
369 * mdebugread.c: Likewise.
370 * mem-break.c: Likewise.
371 * memattr.c: Likewise.
372 * memory-map.c: Likewise.
373 * mep-tdep.c: Likewise.
374 * mi/mi-cmd-break.c: Likewise.
375 * mi/mi-cmd-disas.c: Likewise.
376 * mi/mi-cmd-env.c: Likewise.
377 * mi/mi-cmd-stack.c: Likewise.
378 * mi/mi-cmd-var.c: Likewise.
379 * mi/mi-cmds.c: Likewise.
380 * mi/mi-console.c: Likewise.
381 * mi/mi-getopt.c: Likewise.
382 * mi/mi-interp.c: Likewise.
383 * mi/mi-main.c: Likewise.
384 * mi/mi-parse.c: Likewise.
385 * microblaze-rom.c: Likewise.
386 * microblaze-tdep.c: Likewise.
387 * mingw-hdep.c: Likewise.
388 * minidebug.c: Likewise.
389 * minsyms.c: Likewise.
390 * mips-irix-tdep.c: Likewise.
391 * mips-linux-tdep.c: Likewise.
392 * mips-tdep.c: Likewise.
393 * mips64obsd-tdep.c: Likewise.
394 * mipsnbsd-tdep.c: Likewise.
395 * mipsread.c: Likewise.
396 * mn10300-linux-tdep.c: Likewise.
397 * mn10300-tdep.c: Likewise.
398 * monitor.c: Likewise.
399 * moxie-tdep.c: Likewise.
400 * mt-tdep.c: Likewise.
401 * nat/linux-btrace.c: Likewise.
402 * nat/linux-osdata.c: Likewise.
403 * nat/linux-procfs.c: Likewise.
404 * nat/linux-ptrace.c: Likewise.
405 * nat/linux-waitpid.c: Likewise.
406 * nbsd-tdep.c: Likewise.
407 * nios2-linux-tdep.c: Likewise.
408 * nto-procfs.c: Likewise.
409 * nto-tdep.c: Likewise.
410 * objc-lang.c: Likewise.
411 * objfiles.c: Likewise.
412 * opencl-lang.c: Likewise.
413 * osabi.c: Likewise.
414 * osdata.c: Likewise.
415 * p-exp.y: Likewise.
416 * p-lang.c: Likewise.
417 * p-typeprint.c: Likewise.
418 * parse.c: Likewise.
419 * posix-hdep.c: Likewise.
420 * ppc-linux-nat.c: Likewise.
421 * ppc-sysv-tdep.c: Likewise.
422 * ppcfbsd-tdep.c: Likewise.
423 * ppcnbsd-tdep.c: Likewise.
424 * ppcobsd-tdep.c: Likewise.
425 * printcmd.c: Likewise.
426 * procfs.c: Likewise.
427 * prologue-value.c: Likewise.
428 * python/py-auto-load.c: Likewise.
429 * python/py-gdb-readline.c: Likewise.
430 * ravenscar-thread.c: Likewise.
431 * regcache.c: Likewise.
432 * registry.c: Likewise.
433 * remote-fileio.c: Likewise.
434 * remote-m32r-sdi.c: Likewise.
435 * remote-mips.c: Likewise.
436 * remote-notif.c: Likewise.
437 * remote-sim.c: Likewise.
438 * remote.c: Likewise.
439 * reverse.c: Likewise.
440 * rs6000-aix-tdep.c: Likewise.
441 * ser-base.c: Likewise.
442 * ser-go32.c: Likewise.
443 * ser-mingw.c: Likewise.
444 * ser-pipe.c: Likewise.
445 * ser-tcp.c: Likewise.
446 * ser-unix.c: Likewise.
447 * serial.c: Likewise.
448 * sh-tdep.c: Likewise.
449 * sh64-tdep.c: Likewise.
450 * shnbsd-tdep.c: Likewise.
451 * skip.c: Likewise.
452 * sol-thread.c: Likewise.
453 * solib-dsbt.c: Likewise.
454 * solib-frv.c: Likewise.
455 * solib-osf.c: Likewise.
456 * solib-som.c: Likewise.
457 * solib-spu.c: Likewise.
458 * solib-target.c: Likewise.
459 * solib.c: Likewise.
460 * somread.c: Likewise.
461 * source.c: Likewise.
462 * sparc-nat.c: Likewise.
463 * sparc-sol2-tdep.c: Likewise.
464 * sparc-tdep.c: Likewise.
465 * sparc64-tdep.c: Likewise.
466 * sparc64fbsd-tdep.c: Likewise.
467 * sparc64nbsd-tdep.c: Likewise.
468 * sparcnbsd-tdep.c: Likewise.
469 * spu-linux-nat.c: Likewise.
470 * spu-multiarch.c: Likewise.
471 * spu-tdep.c: Likewise.
472 * stabsread.c: Likewise.
473 * stack.c: Likewise.
474 * std-regs.c: Likewise.
475 * symfile.c: Likewise.
476 * symmisc.c: Likewise.
477 * symtab.c: Likewise.
478 * target.c: Likewise.
479 * thread.c: Likewise.
480 * tilegx-linux-nat.c: Likewise.
481 * tilegx-tdep.c: Likewise.
482 * top.c: Likewise.
483 * tracepoint.c: Likewise.
484 * tui/tui-command.c: Likewise.
485 * tui/tui-data.c: Likewise.
486 * tui/tui-disasm.c: Likewise.
487 * tui/tui-file.c: Likewise.
488 * tui/tui-layout.c: Likewise.
489 * tui/tui-out.c: Likewise.
490 * tui/tui-regs.c: Likewise.
491 * tui/tui-source.c: Likewise.
492 * tui/tui-stack.c: Likewise.
493 * tui/tui-win.c: Likewise.
494 * tui/tui-windata.c: Likewise.
495 * tui/tui-winsource.c: Likewise.
496 * typeprint.c: Likewise.
497 * ui-file.c: Likewise.
498 * ui-out.c: Likewise.
499 * user-regs.c: Likewise.
500 * utils.c: Likewise.
501 * v850-tdep.c: Likewise.
502 * valarith.c: Likewise.
503 * valops.c: Likewise.
504 * valprint.c: Likewise.
505 * value.c: Likewise.
506 * varobj.c: Likewise.
507 * vax-tdep.c: Likewise.
508 * vaxnbsd-tdep.c: Likewise.
509 * vaxobsd-tdep.c: Likewise.
510 * windows-nat.c: Likewise.
511 * xcoffread.c: Likewise.
512 * xml-support.c: Likewise.
513 * xstormy16-tdep.c: Likewise.
514 * xtensa-linux-nat.c: Likewise.
515
dccbb609
GB
5162014-08-07 Gary Benson <gbenson@redhat.com>
517
518 * common/common-defs.h: Include gdb_assert.h.
519 * aarch64-tdep.c: Do not include gdb_assert.h.
520 * addrmap.c: Likewise.
521 * aix-thread.c: Likewise.
522 * alpha-linux-tdep.c: Likewise.
523 * alpha-mdebug-tdep.c: Likewise.
524 * alphanbsd-tdep.c: Likewise.
525 * amd64-nat.c: Likewise.
526 * amd64-tdep.c: Likewise.
527 * amd64bsd-nat.c: Likewise.
528 * amd64fbsd-nat.c: Likewise.
529 * amd64fbsd-tdep.c: Likewise.
530 * amd64nbsd-nat.c: Likewise.
531 * amd64nbsd-tdep.c: Likewise.
532 * amd64obsd-nat.c: Likewise.
533 * amd64obsd-tdep.c: Likewise.
534 * arch-utils.c: Likewise.
535 * arm-tdep.c: Likewise.
536 * armbsd-tdep.c: Likewise.
537 * auxv.c: Likewise.
538 * bcache.c: Likewise.
539 * bfin-tdep.c: Likewise.
540 * blockframe.c: Likewise.
541 * breakpoint.c: Likewise.
542 * bsd-kvm.c: Likewise.
543 * bsd-uthread.c: Likewise.
544 * buildsym.c: Likewise.
545 * c-exp.y: Likewise.
546 * c-lang.c: Likewise.
547 * charset.c: Likewise.
548 * cleanups.c: Likewise.
549 * cli-out.c: Likewise.
550 * cli/cli-decode.c: Likewise.
551 * cli/cli-dump.c: Likewise.
552 * cli/cli-logging.c: Likewise.
553 * cli/cli-script.c: Likewise.
554 * cli/cli-utils.c: Likewise.
555 * coffread.c: Likewise.
556 * common/common-utils.c: Likewise.
557 * common/queue.h: Likewise.
558 * common/signals.c: Likewise.
559 * common/vec.h: Likewise.
560 * complaints.c: Likewise.
561 * completer.c: Likewise.
562 * corelow.c: Likewise.
563 * cp-abi.c: Likewise.
564 * cp-name-parser.y: Likewise.
565 * cp-namespace.c: Likewise.
566 * cp-support.c: Likewise.
567 * cris-tdep.c: Likewise.
568 * dbxread.c: Likewise.
569 * dictionary.c: Likewise.
570 * doublest.c: Likewise.
571 * dsrec.c: Likewise.
572 * dummy-frame.c: Likewise.
573 * dwarf2-frame-tailcall.c: Likewise.
574 * dwarf2-frame.c: Likewise.
575 * dwarf2expr.c: Likewise.
576 * dwarf2loc.c: Likewise.
577 * dwarf2read.c: Likewise.
578 * eval.c: Likewise.
579 * event-loop.c: Likewise.
580 * exceptions.c: Likewise.
581 * expprint.c: Likewise.
582 * f-valprint.c: Likewise.
583 * fbsd-nat.c: Likewise.
584 * findvar.c: Likewise.
585 * frame-unwind.c: Likewise.
586 * frame.c: Likewise.
587 * frv-tdep.c: Likewise.
588 * gcore.c: Likewise.
589 * gdb-dlfcn.c: Likewise.
590 * gdb_bfd.c: Likewise.
591 * gdbarch.c: Likewise.
592 * gdbarch.sh: Likewise.
593 * gdbtypes.c: Likewise.
594 * gnu-nat.c: Likewise.
595 * gnu-v3-abi.c: Likewise.
596 * go-lang.c: Likewise.
597 * guile/scm-exception.c: Likewise.
598 * guile/scm-gsmob.c: Likewise.
599 * guile/scm-lazy-string.c: Likewise.
600 * guile/scm-math.c: Likewise.
601 * guile/scm-pretty-print.c: Likewise.
602 * guile/scm-safe-call.c: Likewise.
603 * guile/scm-utils.c: Likewise.
604 * guile/scm-value.c: Likewise.
605 * h8300-tdep.c: Likewise.
606 * hppa-hpux-nat.c: Likewise.
607 * hppa-tdep.c: Likewise.
608 * hppanbsd-tdep.c: Likewise.
609 * hppaobsd-tdep.c: Likewise.
610 * i386-darwin-nat.c: Likewise.
611 * i386-darwin-tdep.c: Likewise.
612 * i386-nto-tdep.c: Likewise.
613 * i386-tdep.c: Likewise.
614 * i386bsd-nat.c: Likewise.
615 * i386fbsd-tdep.c: Likewise.
616 * i386gnu-nat.c: Likewise.
617 * i386nbsd-tdep.c: Likewise.
618 * i386obsd-tdep.c: Likewise.
619 * i387-tdep.c: Likewise.
620 * ia64-libunwind-tdep.c: Likewise.
621 * ia64-tdep.c: Likewise.
622 * inf-ptrace.c: Likewise.
623 * inf-ttrace.c: Likewise.
624 * infcall.c: Likewise.
625 * infcmd.c: Likewise.
626 * infrun.c: Likewise.
627 * inline-frame.c: Likewise.
628 * interps.c: Likewise.
629 * jv-lang.c: Likewise.
630 * jv-typeprint.c: Likewise.
631 * linux-fork.c: Likewise.
632 * linux-nat.c: Likewise.
633 * linux-thread-db.c: Likewise.
634 * m32c-tdep.c: Likewise.
635 * m32r-linux-nat.c: Likewise.
636 * m32r-tdep.c: Likewise.
637 * m68k-tdep.c: Likewise.
638 * m68kbsd-nat.c: Likewise.
639 * m68kbsd-tdep.c: Likewise.
640 * m88k-tdep.c: Likewise.
641 * machoread.c: Likewise.
642 * macroexp.c: Likewise.
643 * macrotab.c: Likewise.
644 * maint.c: Likewise.
645 * mdebugread.c: Likewise.
646 * memory-map.c: Likewise.
647 * mep-tdep.c: Likewise.
648 * mi/mi-common.c: Likewise.
649 * microblaze-tdep.c: Likewise.
650 * mingw-hdep.c: Likewise.
651 * mips-linux-nat.c: Likewise.
652 * mips-linux-tdep.c: Likewise.
653 * mips-tdep.c: Likewise.
654 * mips64obsd-tdep.c: Likewise.
655 * mipsnbsd-tdep.c: Likewise.
656 * mn10300-linux-tdep.c: Likewise.
657 * mn10300-tdep.c: Likewise.
658 * moxie-tdep.c: Likewise.
659 * mt-tdep.c: Likewise.
660 * nat/linux-btrace.c: Likewise.
661 * nat/linux-osdata.c: Likewise.
662 * nat/linux-ptrace.c: Likewise.
663 * nat/mips-linux-watch.c: Likewise.
664 * nios2-linux-tdep.c: Likewise.
665 * nios2-tdep.c: Likewise.
666 * objc-lang.c: Likewise.
667 * objfiles.c: Likewise.
668 * obsd-nat.c: Likewise.
669 * opencl-lang.c: Likewise.
670 * osabi.c: Likewise.
671 * parse.c: Likewise.
672 * ppc-linux-nat.c: Likewise.
673 * ppc-sysv-tdep.c: Likewise.
674 * ppcfbsd-nat.c: Likewise.
675 * ppcfbsd-tdep.c: Likewise.
676 * ppcnbsd-nat.c: Likewise.
677 * ppcnbsd-tdep.c: Likewise.
678 * ppcobsd-nat.c: Likewise.
679 * ppcobsd-tdep.c: Likewise.
680 * printcmd.c: Likewise.
681 * procfs.c: Likewise.
682 * prologue-value.c: Likewise.
683 * psymtab.c: Likewise.
684 * python/py-lazy-string.c: Likewise.
685 * python/py-value.c: Likewise.
686 * regcache.c: Likewise.
687 * reggroups.c: Likewise.
688 * registry.c: Likewise.
689 * remote-sim.c: Likewise.
690 * remote.c: Likewise.
691 * rs6000-aix-tdep.c: Likewise.
692 * rs6000-tdep.c: Likewise.
693 * s390-linux-tdep.c: Likewise.
694 * score-tdep.c: Likewise.
695 * ser-base.c: Likewise.
696 * ser-mingw.c: Likewise.
697 * sh-tdep.c: Likewise.
698 * sh64-tdep.c: Likewise.
699 * solib-darwin.c: Likewise.
700 * solib-spu.c: Likewise.
701 * solib-svr4.c: Likewise.
702 * source.c: Likewise.
703 * sparc-nat.c: Likewise.
704 * sparc-sol2-tdep.c: Likewise.
705 * sparc-tdep.c: Likewise.
706 * sparc64-sol2-tdep.c: Likewise.
707 * sparc64-tdep.c: Likewise.
708 * sparc64fbsd-tdep.c: Likewise.
709 * sparc64nbsd-tdep.c: Likewise.
710 * sparc64obsd-tdep.c: Likewise.
711 * sparcnbsd-tdep.c: Likewise.
712 * sparcobsd-tdep.c: Likewise.
713 * spu-multiarch.c: Likewise.
714 * spu-tdep.c: Likewise.
715 * stabsread.c: Likewise.
716 * stack.c: Likewise.
717 * symfile.c: Likewise.
718 * symtab.c: Likewise.
719 * target-descriptions.c: Likewise.
720 * target-memory.c: Likewise.
721 * target.c: Likewise.
722 * tic6x-linux-tdep.c: Likewise.
723 * tic6x-tdep.c: Likewise.
724 * tilegx-linux-nat.c: Likewise.
725 * tilegx-tdep.c: Likewise.
726 * top.c: Likewise.
727 * tramp-frame.c: Likewise.
728 * tui/tui-out.c: Likewise.
729 * tui/tui-winsource.c: Likewise.
730 * ui-out.c: Likewise.
731 * user-regs.c: Likewise.
732 * utils.c: Likewise.
733 * v850-tdep.c: Likewise.
734 * valops.c: Likewise.
735 * value.c: Likewise.
736 * varobj.c: Likewise.
737 * vax-nat.c: Likewise.
738 * xml-syscall.c: Likewise.
739 * xml-tdesc.c: Likewise.
740 * xstormy16-tdep.c: Likewise.
741 * xtensa-linux-nat.c: Likewise.
742 * xtensa-tdep.c: Likewise.
743
e76df0d0
GB
7442014-08-07 Gary Benson <gbenson@redhat.com>
745
746 * common/common-defs.h: Include common-utils.h.
747 * defs.h: Do not include common-utils.h.
748 * common/gdb_assert.h: Likewise.
749 * darwin-nat.h: Likewise.
750 * nat/linux-btrace.c: Likewise.
751 * target/waitstatus.h: Likewise.
752
4cb9c816
GB
7532014-08-07 Gary Benson <gbenson@redhat.com>
754
755 * common/common-defs.h: Include ptid.h.
756 * defs.h: Do not include ptid.h.
757 * inferior.h: Likewise.
758 * infrun.h: Likewise.
759 * nat/linux-btrace.h: Likewise.
760 * nat/linux-osdata.h: Likewise.
761 * target/waitstatus.h: Likewise.
762
3995eeee
GB
7632014-08-07 Gary Benson <gbenson@redhat.com>
764
765 * common/common-defs.h: Include gdb_locale.h.
766 * defs.h: Do not include gdb_locale.h.
767
cb9f1a9b
GB
7682014-08-07 Gary Benson <gbenson@redhat.com>
769
770 * common/common-defs.h: Include gdb/signals.h.
771 * defs.h: Do not include gdb/signals.h.
772
a5fceff8
GB
7732014-08-07 Gary Benson <gbenson@redhat.com>
774
775 * common/common-defs.h: Include pathmax.h.
776 * defs.h: Do not include pathmax.h.
777
b9391142
GB
7782014-08-07 Gary Benson <gbenson@redhat.com>
779
780 * common/common-defs.h: Include libiberty.h.
781 * defs.h: Do not include libiberty.h.
782 * common/queue.h: Likewise.
783 * cp-name-parser.y: Likewise.
784 * mi/mi-cmd-catch.c: Likewise.
785 * python/python.c: Likewise.
786
0e443c87
GB
7872014-08-07 Gary Benson <gbenson@redhat.com>
788
789 * common/common-defs.h: Include ansidecl.h.
790 * defs.h: Do not include ansidecl.h.
791 * common/buffer.h: Likewise.
792 * common/common-utils.h: Likewise.
793
8ebb3f56
GB
7942014-08-07 Gary Benson <gbenson@redhat.com>
795
796 * common/common-defs.h: Include stddef.h.
797 * defs.h: Do not include stddef.h.
798 * common/common-utils.h: Likewise.
799 * amd64fbsd-nat.c: Likewise.
800 * bcache.c: Likewise.
801 * charset.c: Likewise.
802 * common/buffer.h: Likewise.
803 * common/vec.h: Likewise.
804 * i386bsd-nat.c: Likewise.
805 * nat/linux-btrace.h: Likewise.
806 * ppcfbsd-nat.c: Likewise.
807 * ppcnbsd-tdep.h: Likewise.
808 * ppcobsd-nat.c: Likewise.
809 * ppcobsd-tdep.h: Likewise.
810 * python/py-gdb-readline.c: Likewise.
811
8980bdf6
GB
8122014-08-07 Gary Benson <gbenson@redhat.com>
813
814 * common/common-defs.h: Include stdarg.h.
815 * defs.h: Do not include stdarg.h.
816 * ada-lang.c: Likewise.
817 * common/common-utils.h: Likewise.
818 * guile/scm-string.c: Likewise.
819 * guile/scm-utils.c: Likewise.
820 * m32c-tdep.c: Likewise.
821
d7096f71
GB
8222014-08-07 Gary Benson <gbenson@redhat.com>
823
824 * common/common-defs.h: Include stdlib.h.
825 * defs.h: Do not include stdlib.h.
826 * addrmap.c: Likewise.
827 * bcache.c: Likewise.
828 * common/buffer.c: Likewise.
829 * common/common-utils.c: Likewise.
830 * cp-name-parser.y: Likewise.
831 * go32-nat.c: Likewise.
832 * mn10300-linux-tdep.c: Likewise.
833 * nat/linux-osdata.c: Likewise.
834 * tui/tui.c: Likewise.
835 * windows-nat.c: Likewise.
836
d02f550d
GB
8372014-08-07 Gary Benson <gbenson@redhat.com>
838
839 * common/common-defs.h: Include stdio.h.
840 * defs.h: Do not include stdio.h.
841 * ada-lang.c: Likewise.
842 * common/buffer.c: Likewise.
843 * common/common-utils.c: Likewise.
844 * cp-name-parser.y: Likewise.
845 * gnu-nat.c: Likewise.
846 * go32-nat.c: Likewise.
847 * i386gnu-nat.c: Likewise.
848 * proc-api.c: Likewise.
849 * proc-events.c: Likewise.
850 * proc-flags.c: Likewise.
851 * proc-why.c: Likewise.
852 * python/python-internal.h: Likewise.
853 * target-memory.c: Likewise.
854 * tui/tui-io.c: Likewise.
855 * tui/tui.c: Likewise.
856
b6d7a4bf
SM
8572014-08-06 Simon Marchi <simon.marchi@ericsson.com>
858
859 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
860 (scan_dyntag_auxv): Same.
861
af19829b
YQ
8622014-08-06 Yao Qi <yao@codesourcery.com>
863
864 * amd64-linux-nat.c: Remove duplicated include
865 "x86-linux-nat.h".
866 * i386-linux-nat.c: Likewise.
867
8e07a239
YQ
8682014-08-06 Yao Qi <yao@codesourcery.com>
869
870 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
871 operand" with "Special opcode" in comments.
872
7bfe8241
GB
8732014-08-05 Gary Benson <gbenson@redhat.com>
874
875 * interps.c (initialize_interps): Remove prototype.
876 (interpreter_initialized): Remove static global.
877 (interp_add): Do not call initialize_interps.
878 (initialize_interps): Remove function.
879
d6c95504
GB
8802014-08-05 Gary Benson <gbenson@redhat.com>
881
882 * utils.c (vwarning): Remove spurious va_end.
883
241fd515
AM
8842014-08-05 Alan Modra <amodra@gmail.com>
885
886 * charset.c (convert_between_encodings): Cast result of obstack_base.
887 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
888 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
889 (read_unwind_info): Use size_t for some locals.
890 * jit.c (finalize_symtab): Likewise.
891 * utils.c (hashtab_obstack_allocate): Likewise.
892 * symmisc.c (print_objfile_statistics): Update format strings.
893
dc304a94
JK
8942014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
897 (Changes in GDB 7.8): ... here.
898
3cecbbbe
TT
8992014-08-04 Tom Tromey <tromey@redhat.com>
900
901 * target.c (set_targetdebug): New function.
902 (initialize_targets): Pass set_targetdebug when creating "set
903 debug target".
904
6908c509
JB
9052014-08-01 Joel Brobecker <brobecker@adacore.com>
906
907 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
908 if detecting a variable-sized field that is not the last field.
909 Fix struct type length computation.
910
53e8f97d
JB
9112014-08-01 Joel Brobecker <brobecker@adacore.com>
912
913 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
914 Add debug trace.
915
e068c55d
JB
9162014-08-01 Joel Brobecker <brobecker@adacore.com>
917
918 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
919 Remove "+ 8" offset in computation of CHAIN_VMA.
920
4d4ca2a1
DE
9212014-07-31 Doug Evans <dje@google.com>
922
923 * inflow.c (child_terminal_inferior): Add comment.
924 (child_terminal_ours_for_output): Add comment.
925 (child_terminal_ours): Add comment.
926 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
927 (linux_nat_terminal_ours): Add comment.
928
462f517e
GB
9292014-07-31 Gary Benson <gbenson@redhat.com>
930
931 * common/btrace-common.h: Do not include defs.h or server.h.
932 * nat/mips-linux-watch.h: Likewise.
933 * gdb-dlfcn.h: Do not include defs.h.
934 * tracefile.h: Likewise.
935
74228e77
RM
9362014-07-30 Roland McGrath <mcgrathr@google.com>
937
938 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
939
014f9477
TT
9402014-07-30 Tom Tromey <tromey@redhat.com>
941
942 * bsd-kvm.c (bsd_kvm_open): Constify.
943 * corelow.c (core_open): Constify.
944 * ctf.c (ctf_open): Constify.
945 * dbug-rom.c (dbug_open): Constify.
946 * exec.c (exec_open): Constify.
947 * m32r-rom.c (m32r_open, mon2000_open): Constify.
948 * microblaze-rom.c (picobug_open): Constify.
949 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
950 Constify.
951 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
952 * record-btrace.c (record_btrace_open): Constify.
953 * record-full.c (record_full_core_open_1, record_full_open_1)
954 (record_full_open): Constify.
955 * remote-m32r-sdi.c (m32r_open): Constify.
956 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
957 (rockhopper_open, lsi_open): Constify.
958 * remote-sim.c (gdbsim_open): Constify.
959 * remote.c (remote_open, extended_remote_open, remote_open_1):
960 Constify.
961 * target.h (struct target_ops) <to_open>: Make "arg" const.
962 * tracefile-tfile.c (tfile_open): Constify.
963
e799154c
TT
9642014-07-30 Tom Tromey <tromey@redhat.com>
965
966 * breakpoint.c (map_breakpoint_numbers): Update.
967 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
968 (get_number_const): New function.
969 (get_number): Rewrite using get_number_const.
970 (init_number_or_range): Make "string" const.
971 (number_is_in_list): Make "list" const.
972 * cli/cli-utils.h (get_number_const): Declare.
973 (struct get_number_or_range_state) <string, end_ptr>: Now const.
974 (init_number_or_range, number_is_in_list): Update.
975 * printcmd.c (map_display_numbers): Update.
976 * value.c (value_from_history_ref): Constify.
977 * value.h (value_from_history_ref): Update.
978
5f08566b
TT
9792014-07-30 Tom Tromey <tromey@redhat.com>
980
981 * corefile.c (hook_type, call_extra_exec_file_hooks)
982 (specify_exec_file_hook): Constify.
983 * exec.c (exec_file_attach): Make "filename" const.
984 * gdbcore.h (deprecated_exec_file_display_hook)
985 (specify_exec_file_hook, exec_file_attach): Constify.
986 * main.c (captured_main): Use catch_command_errors_const.
987
8981c758
TT
9882014-07-30 Tom Tromey <tromey@redhat.com>
989
990 * target.c (open_target): New function.
991 (add_target_with_completer, add_deprecated_target_alias): Use
992 set_cmd_sfunc, set_cmd_context.
993 (debug_to_open): Remove.
994 (setup_target_debug): Update.
995
a1c7835a
YQ
9962014-07-30 Yao Qi <yao@codesourcery.com>
997
998 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
999 comments.
1000 * parse.c (exp_iterate): Update comments.
1001
976411d6
GB
10022014-07-30 Gary Benson <gbenson@redhat.com>
1003
1004 * common/common-defs.h: New file.
1005 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1006 * defs.h: Include common-defs.h.
1007 Do not include config.h or build-gnulib/config.h.
1008
5d4848a4
GB
10092014-07-30 Gary Benson <gbenson@redhat.com>
1010
1011 * common/common-utils.h: Do not include config.h.
1012 * nat/linux-btrace.h: Likewise.
1013
d41f6d8e
GB
10142014-07-30 Gary Benson <gbenson@redhat.com>
1015
1016 * btrace.c: Include defs.h.
1017 * common/ptid.c: Include defs.h or server.h as appropriate.
1018 * nat/mips-linux-watch.c: Likewise.
1019
84202f9c
TT
10202014-07-29 Tom Tromey <tromey@redhat.com>
1021
1022 * target.c (target_is_pushed): Simplify.
1023
2530441c
JB
10242014-07-29 Joel Brobecker <brobecker@adacore.com>
1025
1026 GDB 7.8 released.
1027
7e09a223
YQ
10282014-07-29 Yao Qi <yao@codesourcery.com>
1029
1030 PR gdb/17206
1031 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1032
7ebdbe92
DE
10332014-07-28 Doug Evans <xdje42@gmail.com>
1034
1035 PR guile/17203
1036 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1037 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1038 parameters.
1039
f347ffc9
WN
10402014-07-28 Will Newton <will.newton@linaro.org>
1041
1042 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1043 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1044 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1045 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1046 (THUMB2_EABI_SYSCALL): Likewise.
1047 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1048 struct tramp_frame.
1049 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1050 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1051
37c5f1f7
DE
10522014-07-27 Doug Evans <xdje42@gmail.com>
1053
1054 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1055
0c3abbc7
DE
10562014-07-27 Doug Evans <xdje42@gmail.com>
1057
1058 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1059
e76c5d17
DE
10602014-07-26 Ludovic Courtès <ludo@gnu.org>
1061 Doug Evans <xdje42@gmail.com>
1062
1063 PR guile/17146
1064 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1065 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1066 * configure.ac: Try to use guild to compile an scm file, if it fails
1067 then disable guile support.
1068 * configure: Regenerate.
1069 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1070 GUILE_FILE_LIST.
1071 (GUILE_COMPILED_FILES): New variable.
1072 (GUILE_FILES) Update.
1073 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1074 (stamp-guile): Compile scm files.
1075 * guile/guile.c (boot_guile_support): New function.
1076 (standard_throw_args_p): New function.
1077 (print_standard_throw_error, print_throw_error): New functions.
1078 (handle_boot_error): New function.
1079 (initialize_scheme_side): Rewrite to call boot_guile_support.
1080 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1081 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1082
186fcde0
DE
10832014-07-26 Ludovic Courtès <ludo@gnu.org>
1084 Doug Evans <xdje42@gmail.com>
1085
1086 PR guile/17146
1087 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1088 * guile/lib/gdb/support.scm: New file.
1089 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1090 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1091 All uses updated.
1092 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1093 All uses updated.
1094 (%assert-type): Ditto, and renamed to assert-type.
1095 (%exception-print-style): Delete.
1096
4df42755
DE
10972014-07-26 Doug Evans <xdje42@gmail.com>
1098
1099 PR build/17105
1100 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1101 * configure: Regenerate.
1102 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1103 PYTHON_FILES.
1104 (PYTHON_FILES): New variable.
1105 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1106 (GUILE_FILES): New variable.
1107 (stamp-python, install-python, uninstall-python): Handle empty
1108 file list.
1109 (stamp-guile, install-guile, uninstall-guile): Ditto.
1110
ee7333ae
DE
11112014-07-26 Doug Evans <xdje42@gmail.com>
1112
1113 PR guile/17177
1114 * guile/lib/gdb.scm (pretty-printers): Export.
1115 (set-pretty-printers!): Export.
1116 * guile/lib/gdb/printing.scm (gdb module): Update.
1117 (prepend-pretty-printer!, append-pretty-printer!): Update.
1118 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1119 (pretty_printer_list_var): Delete.
1120 (pretty_printer_list): New static global.
1121 (gdbscm_pretty_printers): New function.
1122 (gdbscm_set_pretty_printers_x): New function.
1123 (ppscm_find_pretty_printer_from_gdb): Update.
1124 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1125 (gdbscm_initialize_pretty_printers): Update.
1126
74edf516
DE
11272014-07-26 Doug Evans <xdje42@gmail.com>
1128
1129 PR 17185
1130 * configure.ac: Add check for header gc/gc.h.
1131 Add check for function setenv.
1132 * configure: Regenerate.
1133 * config.in: Regenerate.
1134 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1135
d54398a7
MR
11362014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1137
1138 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1139 variation in gdbarch matching.
1140
ab16fce8
TT
11412014-07-25 Tom Tromey <tromey@redhat.com>
1142
1143 * exec.c (using_exec_ops): Remove.
1144 (exec_close_1): Update. Remove extraneous block, reindent.
1145 (add_target_sections): Use target_is_pushed.
1146
88056fbb
PA
11472014-07-25 Pedro Alves <palves@redhat.com>
1148
1149 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1150 * monitor.c (monitor_create_inferior): Likewise.
1151 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1152 * remote-sim.c (gdbsim_create_inferior): Likewise.
1153 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1154 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1155 * windows-nat.c (do_initial_windows_stuff): Likewise.
1156
70509625
PA
11572014-07-25 Pedro Alves <palves@redhat.com>
1158
1159 * NEWS: Mention signal passing and "signal" command changes.
1160 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1161 comment.
1162 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1163 call.
1164 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1165 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1166 (jump_command): Adjust clear_proceed_status call.
1167 (signal_command): Warn if other thread that are resumed have
1168 signals that will be delivered. Adjust clear_proceed_status call.
1169 (until_next_command, finish_command)
1170 (proceed_after_attach_callback, attach_command_post_wait)
1171 (attach_command): Adjust clear_proceed_status call.
1172 * infrun.c (proceed_after_vfork_done): Likewise.
1173 (proceed_after_attach_callback): Adjust comment.
1174 (clear_proceed_status_thread): Clear stop_signal if not in pass
1175 state.
1176 (clear_proceed_status_callback): Delete.
1177 (clear_proceed_status): New 'step' parameter. Only clear the
1178 proceed status of threads the command being prepared is about to
1179 resume.
1180 (proceed): If passed in an explicit signal, override stop_signal
1181 with it. Don't pass the last stop signal to the thread we're
1182 resuming.
1183 (init_wait_for_inferior): Adjust clear_proceed_status call.
1184 (switch_back_to_stepped_thread): Clear the signal if it should not
1185 be passed.
1186 * infrun.h (clear_proceed_status): New 'step' parameter.
1187 (user_visible_resume_ptid): Add comment.
1188 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1189 signal is in pass state.
1190 * remote.c (append_pending_thread_resumptions): Likewise.
1191 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1192
d8be2939
TT
11932014-07-25 Tom Tromey <tromey@redhat.com>
1194
1195 * target.h (target_stopped_data_address)
1196 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1197 parentheses.
1198
7d0d9d2b
PL
11992014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1200
1201 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1202 comments.
1203 (avr_pointer_to_address): Likewise.
1204
e9e7f724
TT
12052014-07-24 Tom Tromey <tromey@redhat.com>
1206
1207 * monitor.c (compile_pattern): Update.
1208 * target.h (struct target_ops) <to_shortname, to_longname,
1209 to_doc>: Now const.
1210
1947513d
TT
12112014-07-24 Tom Tromey <tromey@redhat.com>
1212
1213 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1214 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1215 (add_info_alias, add_com): Make "doc" const.
1216 (print_doc_line): Make "str" const.
1217 (delete_cmd): Update.
1218 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1219 (print_doc_line): Update.
1220 * cli/cli-script.c (document_command): Update.
1221 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1222 (add_com, add_info, add_info_alias): Update.
1223 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1224 * python/py-cmd.c (cmdpy_destroyer): Update.
1225
64e61d29
TT
12262014-07-24 Tom Tromey <tromey@redhat.com>
1227
1228 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1229 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1230 (help_cmd_list): Constify.
1231 (lookup_cmd): Update.
1232 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1233 const.
1234 (help_cmd_list, apropos_cmd): Update.
1235 * cli/cli-script.c (show_user): Update.
1236 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1237 * cli/cli-setshow.h (cmd_show_list): Update.
1238 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1239 (cmd_show_list): Update.
1240 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1241 * python/py-cmd.c (cmdpy_destroyer): Update.
1242
429e55ea
TT
12432014-07-24 Tom Tromey <tromey@redhat.com>
1244
1245 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1246 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1247 const.
1248 * command.h (deprecate_cmd): Update.
1249 * maint.c (maintenance_do_deprecate): Add casts.
1250
64669f3b
TT
12512014-07-24 Tom Tromey <tromey@redhat.com>
1252
1253 * cli/cli-decode.c (help_cmd): Make parameter "const".
1254 * cli/cli-decode.h (help_cmd): Update.
1255
d3d3328b
TT
12562014-07-24 Tom Tromey <tromey@redhat.com>
1257
1258 * stack.c (up_silently_base, down_silently_base): Make argument
1259 const.
1260
414842dc
TT
12612014-07-24 Tom Tromey <tromey@redhat.com>
1262
1263 * solib.c (solib_add): Make "pattern" const.
1264 * solib.h (solib_add): Update.
1265
baa336ce
TT
12662014-07-24 Tom Tromey <tromey@redhat.com>
1267
1268 * remote.c (remote_serial_open, print_packet, putpkt)
1269 (putpkt_binary): Constify.
1270 * remote.h (putpkt): Update.
1271
5a19e2d0
TT
12722014-07-24 Tom Tromey <tromey@redhat.com>
1273
1274 * monitor.c (monitor_open): Make "args" const.
1275 * monitor.h (monitor_open): Update.
1276
fc4baa5e
TT
12772014-07-24 Tom Tromey <tromey@redhat.com>
1278
1279 * maint.c (match_bfd_flags): Make "string" const.
1280 (print_bfd_section_info): Remove casts.
1281 (print_objfile_section_info): Make "string" const.
1282
0d5f0dbe
TT
12832014-07-24 Tom Tromey <tromey@redhat.com>
1284
1285 * inf-child.c (inf_child_open_target): Make "arg" const.
1286 * inf-child.h (inf_child_open_target): Update.
1287
41c77899
TT
12882014-07-24 Tom Tromey <tromey@redhat.com>
1289
1290 * environ.c (unset_in_environ): Make "var" const.
1291 * environ.h (unset_in_environ): Update.
1292
93db0d79
TT
12932014-07-24 Tom Tromey <tromey@redhat.com>
1294
1295 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1296 Make "cmd" const.
1297 (scan_filename_with_cleanup): Likewise.
1298 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1299 Make arguments const.
1300 (restore_command): Update.
1301
36d6eb95
PA
13022014-07-24 Pedro Alves <palves@redhat.com>
1303
1304 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1305
8009206a
TT
13062014-07-24 Tom Tromey <tromey@redhat.com>
1307 Gary Benson <gbenson@redhat.com>
1308
1309 * nat/linux-ptrace.c (additional_flags): New global.
1310 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1311 additional_flags; don't check GDBSERVER.
1312 (linux_ptrace_set_additional_flags): New function.
1313 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1314 Declare.
1315 * linux-nat.c (_initialize_linux_nat): Call
1316 linux_ptrace_set_additional_flags.
1317
a7068b60
TT
13182014-07-24 Tom Tromey <tromey@redhat.com>
1319
1320 * make-target-delegates (munge_type, write_debugmethod): New
1321 functions.
1322 (debug_names): New global.
1323 ($TARGET_DEBUG_PRINTER): New global.
1324 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1325 name.
1326 Write debug methods. Generate init_debug_target.
1327 * target-debug.h: New file.
1328 * target-delegates.c: Rebuild.
1329 * target.c: Include target-debug.h.
1330 (debug_target): Hoist definition.
1331 (target_kill, target_get_section_table, target_memory_map)
1332 (target_flash_erase, target_flash_done, target_detach)
1333 (target_disconnect, target_wait, target_resume)
1334 (target_pass_signals, target_program_signals, target_follow_fork)
1335 (target_mourn_inferior, target_search_memory)
1336 (target_thread_address_space, target_close)
1337 (target_find_new_threads, target_core_of_thread)
1338 (target_verify_memory, target_insert_mask_watchpoint)
1339 (target_remove_mask_watchpoint): Remove targetdebug code.
1340 (debug_to_post_attach, debug_to_prepare_to_store)
1341 (debug_to_files_info, debug_to_insert_breakpoint)
1342 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1343 (debug_to_region_ok_for_hw_watchpoint)
1344 (debug_to_can_accel_watchpoint_condition)
1345 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1346 (debug_to_watchpoint_addr_within_range)
1347 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1348 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1349 (debug_to_terminal_init, debug_to_terminal_inferior)
1350 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1351 (debug_to_terminal_save_ours, debug_to_terminal_info)
1352 (debug_to_load, debug_to_post_startup_inferior)
1353 (debug_to_insert_fork_catchpoint)
1354 (debug_to_remove_fork_catchpoint)
1355 (debug_to_insert_vfork_catchpoint)
1356 (debug_to_remove_vfork_catchpoint)
1357 (debug_to_insert_exec_catchpoint)
1358 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1359 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1360 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1361 (setup_target_debug): Call init_debug_target.
1362 * target.h (TARGET_DEBUG_PRINTER): New macro.
1363 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1364 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1365
2c51604d
GB
13662014-07-24 Gary Benson <gbenson@redhat.com>
1367
1368 * exceptions.h (throw_vfatal): Renamed to...
1369 (throw_vquit): New declaration.
1370 (throw_quit): Likewise.
1371 * exceptions.c (throw_vfatal): Renamed to...
1372 (throw_vquit): New function.
1373 (throw_quit): Likewise.
1374 (throw_error): Call throw_verror rather than throw_it.
1375 * utils.h (vfatal): Removed.
1376 (fatal): Likewise.
1377 * utils.c (vfatal): Removed.
1378 (fatal): Likewise.
1379 (internal_verror): Replaced call to fatal with call to throw_quit.
1380 (quit): Replaced calls to fatal with calls to throw_quit.
1381
34211963
ME
13822014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1383
1384 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1385 target_read_code.
1386
a52b4d3e
ME
13872014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1388
1389 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1390 less than zero in conditional expression.
1391
a8bdc56b
TT
13922014-07-23 Tom Tromey <tromey@redhat.com>
1393
1394 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1395 ($INTRO_PART): Don't match whitespace.
1396 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1397 argument matching.
1398 ($METHOD): Add $METHOD_TRAILER.
1399 (trim): Rewrite.
1400 (scan_target_h): New sub.
1401 Change main loop not to collect state.
1402 * target-delegates.c: Rebuild.
1403
91b52240
GB
14042014-07-23 Gary Benson <gbenson@redhat.com>
1405
1406 * cp-support.c (gdb_demangle): Fix build on systems without
1407 sigaltstack.
1408
45326f6f
JK
14092014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1410
1411 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1412 for reference entry value target data value.
1413
e214cf6c
JK
14142014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1417 value_available_contents_eq.
1418
bddbbedd
PA
14192014-07-22 Pedro Alves <palves@redhat.com>
1420
1421 * value.c (allocate_optimized_out_value): Don't mark value as
1422 non-lazy.
1423
45c71484
JW
14242014-07-22 Jiong Wang <jiong.wang@arm.com>
1425
1426 * MAINTAINERS (Write After Approval): Update my email address.
1427
9597b22a
DE
14282014-07-20 Doug Evans <dje@google.com>
1429
1430 PR server/17147
1431 * remote.c (putpkt_binary): Add text to error message.
1432
91101fe5
YQ
14332014-07-20 Yao Qi <yao@codesourcery.com>
1434
1435 * eval.c: Remove "Chill" from comments.
1436 * gdbtypes.h: Likewise.
1437 * symtab.h: Likewise.
1438
c9402c95
YQ
14392014-07-20 Yao Qi <yao@codesourcery.com>
1440
1441 * std-operator.def: Update comments to TERNOP_SLICE.
1442
ae8fddda
YQ
14432014-07-20 Yao Qi <yao@codesourcery.com>
1444
1445 * std-operator.def: Remove BINOP_RANGE.
1446 * breakpoint.c (watchpoint_exp_is_const): Update.
1447 * expprint.c (dump_subexp_body_standard): Likewise.
1448 * eval.c (init_array_element): Remove dead code.
1449 (evaluate_subexp_standard): Likewise.
1450
9c816640
YQ
14512014-07-20 Yao Qi <yao@codesourcery.com>
1452
1453 * std-operator.def: Remove BINOP_IN.
1454 * breakpoint.c (watchpoint_exp_is_const): Update.
1455 * eval.c (evaluate_subexp_standard): Likewise.
1456 * expprint.c (dump_subexp_body_standard): Likewise.
1457
164224e9
ME
14582014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1459
1460 * microblaze-tdep.c (microblaze_register_names): Add
1461 the rshr and rslr register names.
1462 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1463 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1464 Use of tdesc_numbered_register. Use of
1465 microblaze_register_g_packet_guesses. Use of
1466 tdesc_use_registers. Use of set_gdbarch_register_type.
1467 (microblaze_register_g_packet_guesses): New.
1468 * microblaze-tdep.h (microblaze_reg_num): Add
1469 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1470 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1471 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1472 * features/microblaze-core.xml: New file.
1473 * features/microblaze-stack-protect.xml: New file.
1474 * features/microblaze-with-stack-protect.c: New file.
1475 * features/microblaze-with-stack-protect.xml: New file.
1476 * features/microblaze.xml: New file.
1477 * features/microblaze.c: New file.
1478 * features/Makefile (microblaze-with-stack-protect): Add
1479 microblaze-with-stack-protect microblaze and microblaze-expedite.
1480 * regformats/microblaze-with-stack-protect.dat: New file.
1481 * regformats/microblaze.dat: New file.
1482 * doc/gdb.texinfo (MicroBlaze Features): Added.
1483
e8b2341c
TT
14842014-07-18 Tom Tromey <tromey@redhat.com>
1485
1486 * exec.c (exec_ops): Now static.
1487 * exec.h (exec_ops): Don't declare.
1488
44e89118
TT
14892014-07-18 Tom Tromey <tromey@redhat.com>
1490
1491 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1492 to find_target_beneath.
1493 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1494 find_target_beneath.
1495 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1496
b0ed115f
TT
14972014-07-18 Tom Tromey <tromey@redhat.com>
1498
1499 PR gdb/17130:
1500 * utils.c (quit): Use target_supports_terminal_ours.
1501 * target.h (target_supports_terminal_ours): Declare.
1502 * target.c (target_supports_delete_record): Don't check
1503 to_delete_record against NULL.
1504 (target_supports_terminal_ours): New function.
1505
e75fdfca
TT
15062014-07-18 Tom Tromey <tromey@redhat.com>
1507
1508 PR gdb/17130:
1509 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1510 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1511 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1512 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1513 * windows-nat.c (windows_xfer_partial): Always delegate.
1514 * record-btrace.c (record_btrace_xfer_partial): Simplify
1515 delegation.
1516 (record_btrace_fetch_registers, record_btrace_store_registers)
1517 (record_btrace_prepare_to_store, record_btrace_resume)
1518 (record_btrace_wait, record_btrace_find_new_threads)
1519 (record_btrace_thread_alive): Likewise.
1520 * procfs.c (procfs_xfer_partial): Always delegate.
1521 * corelow.c (core_xfer_partial): Always delegate.
1522 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1523
83814951
TT
15242014-07-18 Tom Tromey <tromey@redhat.com>
1525
1526 * exec.c (exec_make_note_section): Move earlier.
1527
b8b8facf
DE
15282014-07-17 Doug Evans <dje@google.com>
1529
74b49205 1530 PR gdb/17170
b8b8facf
DE
1531 * maint.c (count_symtabs_and_blocks): Handle NULL
1532 current_program_space.
1533 (report_command_stats): Check global enabled flag in addition to
1534 recorded enabled flag.
1535 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1536
69ff6be5
PA
15372014-07-16 Pedro Alves <palves@redhat.com>
1538
1539 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1540
252db1b5
TT
15412014-07-16 Tom Tromey <tromey@redhat.com>
1542
1543 * target.h (struct target_ops) <to_delete_record>: Reformat
1544 comment.
1545
a432721e
TT
15462014-07-16 Tom Tromey <tromey@redhat.com>
1547
1548 * target-delegates.c: Rebuild.
1549
487d9753
PL
15502014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1551
1552 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1553 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1554 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1555 (avr_pointer_to_address): Likewise.
1556 (avr_address_class_type_flags): New function.
1557 (avr_address_class_type_flags_to_name): Likewise.
1558 (avr_address_class_name_to_type_flags): Likewise.
1559 (avr_gdbarch_init): Set address_class_type_flags,
1560 address_class_type_flags_to_name and
1561 address_class_name_to_type_flags.
1562
57745c90
PA
15632014-07-15 Pedro Alves <palves@redhat.com>
1564
1565 * linux-nat.c (kill_callback): Save errno and work with saved
1566 copy.
1567
2d40be18
SM
15682014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1569
1570 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1571
572f6555
EBM
15722014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1573
1574 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1575 breakpoint support correctly.
1576
cc1c52ad
PA
15772014-07-14 Pedro Alves <palves@redhat.com>
1578
1579 * utils.c (prompt_for_continue): Call target_terminal_ours.
1580
1e973570
PA
15812014-07-14 Pedro Alves <palves@redhat.com>
1582
1583 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1584 catch_errors. Don't re-enable stdin or notify observers where,
1585 and rethrow error.
1586 (fetch_inferior_event_wrapper): Delete.
1587
93d6eb10
PA
15882014-07-14 Pedro Alves <palves@redhat.com>
1589
1590 PR gdb/17072
1591 * top.c: Include "inf-loop.h".
1592 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1593 field.
1594 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1595 was async before.
1596 (gdb_readline_wrapper): Store whether the target is async, and
1597 make it sync.
1598
0017922d
PA
15992014-07-14 Pedro Alves <palves@redhat.com>
1600
1601 PR gdb/17072
1602 * top.c (gdb_readline_wrapper_line): Tweak comment.
1603 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1604 the input handler callback.
1605
94696ad3
PA
16062014-07-14 Pedro Alves <palves@redhat.com>
1607
1608 PR gdb/17072
1609 * main.c: Include event-top.h.
1610 (handle_command_errors): New function.
1611 (catch_command_errors, catch_command_errors_const): Use it.
1612
9d1e69a2
PA
16132014-07-14 Pedro Alves <palves@redhat.com>
1614
1615 * exceptions.c (catch_command_errors, catch_command_errors_const):
1616 Moved to main.c.
1617 * exceptions.h (catch_command_errors_ftype)
1618 (catch_command_errors_const_ftype): Moved to main.c.
1619 (catch_command_errors, catch_command_errors_const): Delete
1620 declarations.
1621 * main.c (catch_command_errors_ftype)
1622 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1623 (catch_command_errors, catch_command_errors_const)): Moved here
1624 from exceptions.c and make static.
1625
feefc97b
PA
16262014-07-14 Pedro Alves <palves@redhat.com>
1627
1628 * exceptions.c (print_any_exception): Delete.
1629 (catch_exceptions_with_msg): Use exception_print instead of
1630 print_any_exception.
1631 (catch_errors): Use exception_fprintf instead of
1632 print_any_exception.
1633 (catch_command_errors, catch_command_errors_const): Use
1634 exception_print instead of print_any_exception.
1635
c933f875
PA
16362014-07-14 Pedro Alves <palves@redhat.com>
1637
1638 * infcall.c (run_inferior_call): Set 'sync_execution' while
1639 running the inferior call.
1640
feb6f816
PA
16412014-07-14 Pedro Alves <palves@redhat.com>
1642
1643 * value.c (value_contents_equal): Delete function.
1644 * value.h (value_contents_equal): Delete declaration.
1645
d98b7a16
TT
16462014-07-14 Tom Tromey <tromey@redhat.com>
1647
1648 PR exp/17106:
1649 * gdbtypes.c (is_dynamic_type_internal): New function, from
1650 is_dynamic_type.
1651 (is_dynamic_type): Rewrite.
1652 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1653 (resolve_dynamic_struct): Likewise.
1654 (resolve_dynamic_type_internal): New function, from
1655 resolve_dynamic_type.
1656 (resolve_dynamic_type): Rewrite.
1657
548740d6
TT
16582014-07-14 Tom Tromey <tromey@redhat.com>
1659
1660 * target.c (target_require_runnable): Also check record_stratum.
1661 Update comment.
1662
808f7ab1
YQ
16632014-07-11 Yao Qi <yao@codesourcery.com>
1664
1665 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1666 thumb_instruction_restores_sp return true.
1667
540314bd
YQ
16682014-07-11 Yao Qi <yao@codesourcery.com>
1669
1670 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1671 (thumb_in_function_epilogue_p): Call
1672 thumb_instruction_restores_sp.
1673
1db01f22
YQ
16742014-07-11 Yao Qi <yao@codesourcery.com>
1675
1676 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1677 'add sp, #imm'.
1678 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1679
3116063b
GB
16802014-07-11 Gary Benson <gbenson@redhat.com>
1681
1682 * amd64-linux-nat.c (gdbcore.h): Remove include.
1683 (regset.h): Likewise.
1684 (nat/linux-btrace.h): Likewise.
1685 (btrace.h): Likewise.
1686 (gdb_assert.h): Likewise.
1687 (string.h): Likewise.
1688 (sys/uio.h): Likewise.
1689 (sys/debugreg.h): Likewise.
1690 (sys/syscall.h): Likewise.
1691 (sys/procfs.h): Likewise.
1692 (sys/user.h): Likewise.
1693 (asm/ptrace.h): Likewise.
1694 (i386-nat.h): Likewise.
1695 * i386-linux-nat.c (i386-nat.h): Likewise.
1696 (regset.h): Likewise.
1697 (target.h): Likewise.
1698 (linux-nat.h): Likewise.
1699 (nat/linux-btrace.h): Likewise.
1700 (btrace.h): Likewise.
1701 (gdb_assert.h): Likewise.
1702 (string.h): Likewise.
1703 (sys/uio.h): Likewise.
1704 (sys/user.h): Likewise.
1705 (sys/procfs.h): Likewise.
1706 (sys/reg.h): Likewise.
1707 (sys/debugreg.h): Likewise.
1708 (ORIG_EAX): Remove definition.
1709
040baaf6
GB
17102014-07-11 Gary Benson <gbenson@redhat.com>
1711
1712 * i386-linux-nat.h: New file.
1713 * x86-linux-nat.h: Likewise.
1714 * x86-linux-nat.c: Likewise.
1715 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1716 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1717 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1718 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1719 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1720 (PTRACE_SETREGSET): Likewise.
1721 (arch_lwp_info): Now in x86-linux-nat.c.
1722 (have_ptrace_getregset): Now in x86-linux-nat.h.
1723 (x86_linux_dr_get): Now in x86-linux-nat.c.
1724 (x86_linux_dr_set): Likewise.
1725 (x86_linux_dr_get_addr): Likewise.
1726 (x86_linux_dr_get_control): Likewise.
1727 (x86_linux_dr_get_status): Likewise.
1728 (update_debug_registers_callback): Likewise.
1729 (x86_linux_dr_set_control): Likewise.
1730 (x86_linux_dr_set_addr): Likewise.
1731 (x86_linux_prepare_to_resume): Likewise.
1732 (x86_linux_new_thread): Likewise.
1733 (x86_linux_new_fork): Likewise.
1734 (x86_linux_get_thread_area): Likewise.
1735 (super_post_startup_inferior): Likewise.
1736 (x86_linux_child_post_startup_inferior): Likewise.
1737 (AMD64_LINUX_USER64_CS): Likewise.
1738 (AMD64_LINUX_X32_DS): Likewise.
1739 (x86_linux_read_description): Likewise.
1740 (x86_linux_enable_btrace): Likewise.
1741 (x86_linux_disable_btrace): Likewise.
1742 (x86_linux_teardown_btrace): Likewise.
1743 (x86_linux_read_btrace): Likewise.
1744 (x86_linux_create_target): Likewise.
1745 (x86_linux_add_target): Likewise.
1746 * i386-linux-nat.c (x86-linux-nat.h): New include.
1747 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1748 (PTRACE_SETREGSET): Likewise.
1749 (arch_lwp_info): Now in x86-linux-nat.c.
1750 (have_ptrace_getregset): Now in x86-linux-nat.h.
1751 (x86_linux_dr_get): Now in x86-linux-nat.c.
1752 (x86_linux_dr_set): Likewise.
1753 (x86_linux_dr_get_addr): Likewise.
1754 (x86_linux_dr_get_control): Likewise.
1755 (x86_linux_dr_get_status): Likewise.
1756 (update_debug_registers_callback): Likewise.
1757 (x86_linux_dr_set_control): Likewise.
1758 (x86_linux_dr_set_addr): Likewise.
1759 (x86_linux_prepare_to_resume): Likewise.
1760 (x86_linux_new_thread): Likewise.
1761 (x86_linux_new_fork): Likewise.
1762 (x86_linux_get_thread_area): Likewise.
1763 (super_post_startup_inferior): Likewise.
1764 (x86_linux_child_post_startup_inferior): Likewise.
1765 (AMD64_LINUX_USER64_CS): Likewise.
1766 (AMD64_LINUX_X32_DS): Likewise.
1767 (x86_linux_read_description): Likewise.
1768 (x86_linux_enable_btrace): Likewise.
1769 (x86_linux_disable_btrace): Likewise.
1770 (x86_linux_teardown_btrace): Likewise.
1771 (x86_linux_read_btrace): Likewise.
1772 (x86_linux_create_target): Likewise.
1773 (x86_linux_add_target): Likewise.
1774
1aa7e42c
GB
17752014-07-11 Gary Benson <gbenson@redhat.com>
1776
1777 * amd64-linux-nat.c: Comment and whitespace changes.
1778 * i386-linux-nat.c: Comment and whitespace changes.
1779
c1e246a0
GB
17802014-07-11 Gary Benson <gbenson@redhat.com>
1781
1782 * amd64-linux-nat.c (x86_linux_create_target): New function.
1783 (x86_linux_add_target): Likewise.
1784 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1785 * i386-linux-nat.c (x86_linux_create_target): New function.
1786 (x86_linux_add_target): Likewise.
1787 (_initialize_i386_linux_nat): Delegate to the above new functions.
1788
8c420b8d
GB
17892014-07-11 Gary Benson <gbenson@redhat.com>
1790
1791 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1792 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1793 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1794 (ps_get_thread_area): Delegate to the above.
1795
cb1da100
GB
17962014-07-11 Gary Benson <gbenson@redhat.com>
1797
1798 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1799 x86_linux_read_description. All uses updated. amd64-specific
1800 code conditionalized. Conditionalized i386-specific code added.
1801 Redundant cast removed.
1802 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1803 x86_linux_read_description. All uses updated. i386-specific
1804 code conditionalized. Conditionalized amd64-specific code added.
1805 One sizeof replaced with the actual type it is describing.
1806
2acf3cd0
GB
18072014-07-11 Gary Benson <gbenson@redhat.com>
1808
1809 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1810 x86_linux_dr_get. All uses updated.
1811 (amd64_linux_dr_set): Renamed to
1812 x86_linux_dr_set. All uses updated.
1813 (amd64_linux_dr_get_addr): Renamed to
1814 x86_linux_dr_get_addr. All uses updated.
1815 (amd64_linux_dr_get_control): Renamed to
1816 x86_linux_dr_get_control. All uses updated.
1817 (amd64_linux_dr_get_status): Renamed to
1818 x86_linux_dr_get_status. All uses updated.
1819 (amd64_linux_dr_set_control): Renamed to
1820 x86_linux_dr_set_control. All uses updated.
1821 (amd64_linux_dr_set_addr): Renamed to
1822 x86_linux_dr_set_addr. All uses updated.
1823 (amd64_linux_prepare_to_resume): Renamed to
1824 x86_linux_prepare_to_resume. All uses updated.
1825 (amd64_linux_new_thread): Renamed to
1826 x86_linux_new_thread. All uses updated.
1827 (amd64_linux_new_fork): Renamed to
1828 x86_linux_new_fork. All uses updated.
1829 (amd64_linux_child_post_startup_inferior): Renamed to
1830 x86_linux_child_post_startup_inferior. All uses updated.
1831 (amd64_linux_enable_btrace): Renamed to
1832 x86_linux_enable_btrace. All uses updated.
1833 (amd64_linux_disable_btrace): Renamed to
1834 x86_linux_disable_btrace. All uses updated.
1835 (amd64_linux_teardown_btrace): Renamed to
1836 x86_linux_teardown_btrace. All uses updated.
1837 (amd64_linux_read_btrace): Renamed to
1838 x86_linux_read_btrace. All uses updated.
1839 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1840 x86_linux_dr_get. All uses updated.
1841 (i386_linux_dr_set): Renamed to
1842 x86_linux_dr_set. All uses updated.
1843 (i386_linux_dr_get_addr): Renamed to
1844 x86_linux_dr_get_addr. All uses updated.
1845 (i386_linux_dr_get_control): Renamed to
1846 x86_linux_dr_get_control. All uses updated.
1847 (i386_linux_dr_get_status): Renamed to
1848 x86_linux_dr_get_status. All uses updated.
1849 (i386_linux_dr_set_control): Renamed to
1850 x86_linux_dr_set_control. All uses updated.
1851 (i386_linux_dr_set_addr): Renamed to
1852 x86_linux_dr_set_addr. All uses updated.
1853 (i386_linux_prepare_to_resume): Renamed to
1854 x86_linux_prepare_to_resume. All uses updated.
1855 (i386_linux_new_thread): Renamed to
1856 x86_linux_new_thread. All uses updated.
1857 (i386_linux_new_fork): Renamed to
1858 x86_linux_new_fork. All uses updated.
1859 (i386_linux_child_post_startup_inferior): Renamed to
1860 x86_linux_child_post_startup_inferior. All uses updated.
1861 (i386_linux_enable_btrace): Renamed to
1862 x86_linux_enable_btrace. All uses updated.
1863 (i386_linux_disable_btrace): Renamed to
1864 x86_linux_disable_btrace. All uses updated.
1865 (i386_linux_teardown_btrace): Renamed to
1866 x86_linux_teardown_btrace. All uses updated.
1867 (i386_linux_read_btrace): Renamed to
1868 x86_linux_read_btrace. All uses updated.
1869
b9c1d481
AS
18702014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1871
1872 * remote.c (extended_remote_post_attach): New function.
1873 (init_extended_remote_ops): Install it as to_post_attach method.
1874
7180e04a
PA
18752014-07-09 Pedro Alves <palves@redhat.com>
1876
1877 * infcmd.c (attach_command_post_wait): Don't call
1878 target_terminal_inferior here.
1879 (attach_command): Call it here instead.
1880
9a9a7608
AB
18812014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1884 field.
1885 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1886 from varobj.c, with additional checks.
1887 (c_varobj_ops): Fill in is_path_expr_parent field.
1888 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1889 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1890 field.
1891 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1892 ops method.
1893 (varobj_default_is_path_expr_parent): New function.
1894 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1895 (varobj_default_is_path_expr_parent): Declare new function.
1896
1f267ae3
MM
18972014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1898
1899 * infcmd.c (finish_backward): Turn internal error into normal error.
1900
b2ee242b
PA
19012014-07-07 Pedro Alves <palves@redhat.com>
1902
8a869bca 1903 PR gdb/17096
b2ee242b
PA
1904 * remote.c (async_handle_remote_sigint)
1905 (async_handle_remote_sigint_twice): Call
1906 gdb_call_async_signal_handler instead of
1907 mark_async_signal_handler.
1908
38e229b2
TT
19092014-07-07 Tom Tromey <tromey@redhat.com>
1910
1911 * target-delegates.c: Rebuild.
1912 * target.c (target_info_record): Remove.
1913 * record.c (info_record_command): Unconditionally call
1914 to_info_record.
1915 * target.h (struct target_ops) <to_info_record>: Use
1916 TARGET_DEFAULT_IGNORE.
1917 (target_info_record): Remove.
1918
f0f9ff95
TT
19192014-07-07 Tom Tromey <tromey@redhat.com>
1920
1921 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1922 TARGET_DEFAULT_NORETURN.
1923 * target.c (generic_tls_error): New function.
1924 (target_translate_tls_address): Don't search target stack.
1925 * target-delegates.c: Rebuild.
1926 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1927 stack.
1928 * linux-thread-db.c (thread_db_get_thread_local_address):
1929 Unconditionally call beneath target.
1930
4a5be5ee
MK
19312014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1932
1933 * cli/cli-logging.c (pop_output_files): Assign targerr to
1934 gdb_stdtargerr.
1935
92c3b204
AB
19362014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * MAINTAINERS (Write After Approval): Update my email address.
1939
9b11e3a7
GB
19402014-07-02 Gary Benson <gbenson@redhat.com>
1941
1942 * proc-service.c (ps_xfer_memory): Update comment.
1943 (ps_pstop): Remove unused function.
1944 (ps_pcontinue): Likewise.
1945 (ps_lstop): Likewise.
1946 (ps_lcontinue): Likewise.
1947 (ps_lgetxregsize): Likewise.
1948 (ps_lgetxregs): Likewise.
1949 (ps_lsetxregs): Likewise.
1950 (ps_plog): Likewise.
1951 (ps_ptread): Likewise.
1952 (ps_ptwrite): Likewise.
1953
cf363f18
MW
19542014-07-01 Mark Wielaard <mjw@redhat.com>
1955
1956 * dwarf2read.c (add_array_cv_type): New function.
1957 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1958 (read_tag_volatile_type): Likewise.
1959
82ae6c8d
TT
19602014-07-01 Tom Tromey <tromey@redhat.com>
1961
1962 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1963 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1964 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1965 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1966 * command.h (cmd_cfunc_ftype): Move earlier.
1967 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1968 (add_com, add_info): Use cmd_cfunc_ftype.
1969
96142726
TT
19702014-06-30 Tom Tromey <tromey@redhat.com>
1971
1972 * symtab.c (operator_chars): Make parameters and return type
1973 const.
1974 (file_matches): Make "files" const.
1975 (struct search_symbols_data) <files>: Now const.
1976 (search_symbols): Make "regexp" and "files" parameters const.
1977 Update.
1978 (symtab_symbol_info): Remove cast.
1979 (rbreak_command): Update.
1980 * symtab.h (search_symbols): Update.
1981
b67a2c6f
YQ
19822014-06-27 Yao Qi <yao@codesourcery.com>
1983
1984 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1985 Change parameter type to 'struct thread_info *'. Caller
1986 updated.
1987 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1988 Update declaration.
1989 * dummy-frame.c (struct dummy_frame_id): New.
1990 (dummy_frame_id_eq): New function.
1991 (struct dummy_frame) <id>: Change its type to 'struct
1992 dummy_frame_id'.
1993 (dummy_frame_push): Add parameter ptid and save it in
1994 dummy_frame_id.
1995 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1996 inferior_ptid.
1997 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1998 to inferior_ptid.
1999 (lookup_dummy_frame): Change parameter type to 'struct
2000 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2001 instead of frame_id_eq.
2002 (dummy_frame_pop): Add parameter ptid. Callers updated.
2003 Update comments. Compose dummy_frame_id and pass it to
2004 lookup_dummy_frame.
2005 (dummy_frame_discard): Add parameter ptid.
2006 (dummy_frame_sniffer): Compose dummy_frame_id and call
2007 dummy_frame_id_eq instead of frame_id_eq.
2008 (fprint_dummy_frames): Print ptid.
2009 * dummy-frame.h: Remove comments.
2010 (dummy_frame_push): Add ptid in declaration.
2011 (dummy_frame_pop, dummy_frame_discard): Likewise.
2012
5b10184c
TT
20132014-06-26 Tom Tromey <tromey@redhat.com>
2014
2015 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2016 * command.h (error_no_arg): Update.
2017
06900326
TT
20182014-06-26 Tom Tromey <tromey@redhat.com>
2019
2020 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2021 (do_show_command): Make "arg" const.
2022 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2023
c2bcbb1d
TT
20242014-06-26 Tom Tromey <tromey@redhat.com>
2025
2026 * record-full.c (record_full_get_bookmark): Make "args" const.
2027 (record_full_goto_bookmark): Make "raw_bookmark" const.
2028 * record.c (record_goto): New function.
2029 (cmd_record_goto): Use it. Now static.
2030 * record.h (record_goto): Declare.
2031 (cmd_record_goto): Remove declaration.
2032 * target-delegates.c: Rebuild.
2033 * target.h (struct target_ops) <to_get_bookmark,
2034 to_goto_bookmark>: Make parameter const.
2035
9cbe5fff
TT
20362014-06-26 Tom Tromey <tromey@redhat.com>
2037
2038 * defs.h (generic_load): Update.
2039 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2040 * monitor.c (monitor_load): Make "args" const.
2041 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2042 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2043 const.
2044 (mips_load): Make "file" const.
2045 * remote-sim.c (gdbsim_load): Make "args" const.
2046 * remote.c (remote_load): Make "name" const.
2047 * symfile.c (generic_load): Make "args" const.
2048 * target-delegates.c: Rebuild.
2049 * target.c (target_load): Make "arg" const.
2050 (debug_to_load): Make "args" const.
2051 * target.h (struct target_ops) <to_load>: Make parameter const.
2052 (target_load): Update.
2053
34a68019
TT
20542014-06-26 Tom Tromey <tromey@redhat.com>
2055
2056 PR symtab/16902:
2057 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2058 (dwarf2_physname, read_partial_die)
2059 (guess_partial_die_structure_name, fixup_partial_die)
2060 (guess_full_die_structure_name, anonymous_struct_prefix)
2061 (dwarf2_name): Use per-BFD obstack.
2062
efc889c1
YQ
20632014-06-26 Yao Qi <yao@codesourcery.com>
2064
2065 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2066 dummyframe and this_id into inner block below.
2067
4395285e
YQ
20682014-06-26 Yao Qi <yao@codesourcery.com>
2069
2070 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2071 with "signal_pass[0]" in the initialization of signal_pass.
2072
aef92902
MM
20732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2074
2075 * record-btrace.c (record_btrace_generating_corefile)
2076 (record_btrace_prepare_to_generate_core)
2077 (record_btrace_done_generating_core): New.
2078 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2079 (record_btrace_store_registers, record_btrace_prepare_to_store):
2080 Forward request when generating a core file.
2081 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2082 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2083 to_done_generating_core.
2084
5fff78c4
MM
20852014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2086
2087 * target.h (target_ops) <to_prepare_to_generate_core>
2088 <to_done_generating_core>: New.
2089 (target_prepare_to_generate_core, target_done_generating_core): New.
2090 * target.c (target_prepare_to_generate_core)
2091 (target_done_generating_core): New.
2092 * target-delegates.c: Regenerate.
2093 * gcore.c: (write_gcore_file): Rename to ...
2094 (write_gcore_file_1): ...this.
2095 (write_gcore_file): Call target_prepare_to_generate_core
2096 and target_done_generating_core.
2097
1d1f1ccb
MM
20982014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2099
2100 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2101 * gcore.c (write_gcore_file): Free memory returned from
2102 make_corefile_notes.
2103 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2104 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2105
3343ef86
YQ
21062014-06-24 Yao Qi <yao@codesourcery.com>
2107
2108 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2109 (arm_linux_init_abi): Set skip_trampoline_code with
2110 gdbarch_skip_trampoline_code instead of
2111 find_solib_trampoline_target.
2112
18d18ac8
YQ
21132014-06-24 Yao Qi <yao@codesourcery.com>
2114
2115 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2116 arm_skip_bx_reg returns non-zero.
2117
80d8d390
YQ
21182014-06-24 Yao Qi <yao@codesourcery.com>
2119
2120 * arm-tdep.c (arm_skip_bx_reg): New function.
2121 (arm_skip_stub): Call arm_skip_bx_reg.
2122
6a18a01c
DB
21232014-06-23 Don Breazeal <donb@codesourcery.com>
2124
2125 * MAINTAINERS: Add myself as write-after-approval maintainer.
2126
8e9db26e
PA
21272014-06-23 Pedro Alves <palves@redhat.com>
2128
2129 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2130 DR_CONTROL before setting DR0..DR3.
2131 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2132 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2133 bits of DR_CONTROL related to the debug register slot being
2134 disabled. If all slots are vacant, clear local slowdown as well,
2135 and assert DR_CONTROL is 0.
2136
70afc5b7
SC
21372014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2138
2139 * python/lib/gdb/command/xmethods.py
2140 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2141 current progspace only if the string "progspace" matches LOCUS_RE.
2142
840ed64d
JK
21432014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 Fix --with-system-readline with readline-6.3 patch 5.
2146 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2147 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2148 types.
2149
26f2dc30
TT
21502014-06-20 Tom Tromey <tromey@redhat.com>
2151
2152 * dwarf2read.c (dw2_get_real_path): Use correct type in
2153 OBSTACK_CALLOC.
2154 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2155
125f8a3d
GB
21562014-06-20 Gary Benson <gbenson@redhat.com>
2157
2158 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2159 * common/glibc_thread_db.h: Likewise.
2160 * common/i386-cpuid.h: Likewise.
2161 * common/i386-gcc-cpuid.h: Likewise.
2162 * common/linux-btrace.h: Likewise.
2163 * common/linux-osdata.h: Likewise.
2164 * common/linux-procfs.h: Likewise.
2165 * common/linux-ptrace.h: Likewise.
2166 * common/mips-linux-watch.h: Likewise.
2167 * common/linux-btrace.c: Moved to nat.
2168 * common/linux-osdata.c: Likewise.
2169 * common/linux-procfs.c: Likewise.
2170 * common/linux-ptrace.c: Likewise.
2171 * common/mips-linux-watch.c: Likewise.
2172 * nat/gdb_thread_db.h: Moved from common.
2173 * nat/glibc_thread_db.h: Likewise.
2174 * nat/i386-cpuid.h: Likewise.
2175 * nat/i386-gcc-cpuid.h: Likewise.
2176 * nat/linux-btrace.c: Likewise.
2177 * nat/linux-btrace.h: Likewise.
2178 * nat/linux-osdata.c: Likewise.
2179 * nat/linux-osdata.h: Likewise.
2180 * nat/linux-procfs.c: Likewise.
2181 * nat/linux-procfs.h: Likewise.
2182 * nat/linux-ptrace.c: Likewise.
2183 * nat/linux-ptrace.h: Likewise.
2184 * nat/mips-linux-watch.c: Likewise.
2185 * nat/mips-linux-watch.h: Likewise.
2186 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2187 (object file files): Reordered.
2188 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2189 of glibc_thread_db.h.
2190
42995dbd
GB
21912014-06-20 Gary Benson <gbenson@redhat.com>
2192
2193 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2194 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2195 (i386_dr_low): Likewise.
2196 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2197 (i386_dr_low_set_addr): Likewise.
2198 (i386_dr_low_get_addr): Likewise.
2199 (i386_dr_low_can_set_control): Likewise.
2200 (i386_dr_low_set_control): Likewise.
2201 (i386_dr_low_get_control): Likewise.
2202 (i386_dr_low_get_status): Likewise.
2203 (i386_get_debug_register_length): Likewise.
2204 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2205 (i386_dr_low): Likewise.
2206 * nat/i386-dregs.c (i386-low.h): Remove include.
2207 (i386-nat.h): Likewise.
2208 (nat/i386-dregs.h): New include.
2209 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2210 (i386_dr_low_set_addr): Likewise.
2211 (i386_dr_low_get_addr): Likewise.
2212 (i386_dr_low_can_set_control): Likewise.
2213 (i386_dr_low_set_control): Likewise.
2214 (i386_dr_low_get_control): Likewise.
2215 (i386_dr_low_get_status): Likewise.
2216 (i386_get_debug_register_length): Likewise.
2217 (debug_hw_points): Likewise.
2218
3ed9baed
IB
22192014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2220
2221 * Makefile.in (SFILES): Add d-exp.y.
2222 (YYFILES): Add d-exp.c.
2223 (YYOBJ): Add d-exp.o.
2224 (local-maintainer-clean): Delete d-exp.c.
2225 * d-exp.y: New file.
2226 * d-lang.h (d_parse): New declaration.
2227 (d_error): New declaration.
2228 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2229 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2230 PREC_ORDER operators.
2231 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2232
78c164b0
YQ
22332014-06-19 Yao Qi <yao@codesourcery.com>
2234
2235 * gdbthread.h (any_running): Remove the declaration.
2236 * thread.c (any_running): Remove.
2237
f6e29b6e
YQ
22382014-06-19 Yao Qi <yao@codesourcery.com>
2239
2240 * gdbthread.h (struct thread_info) <state>: Change its type to
2241 'enum thread_state'. Update comments.
2242
034f788c
PA
22432014-06-19 Pedro Alves <palves@redhat.com>
2244
2245 * gdbthread.h (ALL_THREADS): Delete.
2246 (ALL_NON_EXITED_THREADS): New macro.
2247 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2248 instead of ALL_THREADS.
2249 * infrun.c (find_thread_needs_step_over)
2250 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2251 instead of ALL_THREADS.
2252 * record-btrace.c (record_btrace_open)
2253 (record_btrace_stop_recording, record_btrace_close)
2254 (record_btrace_is_replaying, record_btrace_resume)
2255 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2256 * remote.c (append_pending_thread_resumptions): Likewise.
2257 * thread.c (thread_apply_all_command): Likewise.
2258
46e33252
GB
22592014-06-19 Gary Benson <gbenson@redhat.com>
2260
2261 * i386-nat.c (i386_stopped_by_watchpoint):
2262 Use i386_dr_stopped_by_watchpoint.
2263 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2264 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2265
3a8ee006
GB
22662014-06-19 Gary Benson <gbenson@redhat.com>
2267
2268 * nat/i386-dregs.c: New file.
2269 * Makefile.in (i386-dregs.o): New rule.
2270 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2271 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2272 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2273 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2274 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2275 * config/i386/go32.mh (NATDEPFILES): Likewise.
2276 * config/i386/linux.mh (NATDEPFILES): Likewise.
2277 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2278 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2279 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2280 * i386-nat.h (debug_hw_points): New declaration.
2281 * i386-nat.c (breakpoint.h): Remove include.
2282 (command.h): Likewise.
2283 (target.h): Likewise.
2284 (gdb_assert.h): Likewise.
2285 (debug_hw_points): Made nonstatic.
2286 (debug_printf): Now in i386-dregs.c.
2287 (TARGET_HAS_DR_LEN_8): Likewise.
2288 (DR_CONTROL_SHIFT): Likewise.
2289 (DR_CONTROL_SIZE): Likewise.
2290 (DR_RW_EXECUTE): Likewise.
2291 (DR_RW_WRITE): Likewise.
2292 (DR_RW_READ): Likewise.
2293 (DR_RW_IORW): Likewise.
2294 (DR_LEN_1): Likewise.
2295 (DR_LEN_2): Likewise.
2296 (DR_LEN_4): Likewise.
2297 (DR_LEN_8): Likewise.
2298 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2299 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2300 (DR_ENABLE_SIZE): Likewise.
2301 (DR_LOCAL_SLOWDOWN): Likewise.
2302 (DR_GLOBAL_SLOWDOWN): Likewise.
2303 (DR_CONTROL_RESERVED): Likewise.
2304 (I386_DR_CONTROL_MASK): Likewise.
2305 (I386_DR_VACANT): Likewise.
2306 (I386_DR_LOCAL_ENABLE): Likewise.
2307 (I386_DR_GLOBAL_ENABLE): Likewise.
2308 (I386_DR_DISABLE): Likewise.
2309 (I386_DR_SET_RW_LEN): Likewise.
2310 (I386_DR_GET_RW_LEN): Likewise.
2311 (I386_DR_WATCH_HIT): Likewise.
2312 (i386_wp_op_t): Likewise.
2313 (i386_show_dr): Likewise.
2314 (i386_length_and_rw_bits): Likewise.
2315 (i386_insert_aligned_watchpoint): Likewise.
2316 (i386_remove_aligned_watchpoint): Likewise.
2317 (i386_handle_nonaligned_watchpoint): Likewise.
2318 (i386_update_inferior_debug_regs): Likewise.
2319 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2320 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2321 (i386_region_ok_for_watchpoint):
2322 Use i386_dr_region_ok_for_watchpoint.
2323 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2324
322a8e06
GB
23252014-06-19 Gary Benson <gbenson@redhat.com>
2326
2327 * i386-nat.c (i386_insert_hw_breakpoint): Use
2328 i386_insert_watchpoint.
2329 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2330
8f26655c
GB
23312014-06-19 Gary Benson <gbenson@redhat.com>
2332
2333 * i386-nat.c (i386_dr_show): Renamed to
2334 i386_show_dr and made static. All uses updated.
2335 (i386_dr_length_and_rw_bits): Renamed to
2336 i386_length_and_rw_bits and made static.
2337 All uses updated.
2338 (i386_dr_insert_aligned_watchpoint): Renamed to
2339 i386_insert_aligned_watchpoint and made static.
2340 All uses updated.
2341 (i386_dr_remove_aligned_watchpoint): Renamed to
2342 i386_remove_aligned_watchpoint and made static.
2343 All uses updated.
2344 (i386_dr_update_inferior_debug_regs): Renamed to
2345 i386_update_inferior_debug_regs and made static.
2346 All uses updated.
2347 * nat/i386-dregs.h (i386_dr_show): Removed.
2348 (i386_dr_length_and_rw_bits): Likewise.
2349 (i386_dr_insert_aligned_watchpoint): Likewise.
2350 (i386_dr_remove_aligned_watchpoint): Likewise.
2351 (i386_dr_update_inferior_debug_regs): Likewise.
2352
992c7d70
GB
23532014-06-19 Gary Benson <gbenson@redhat.com>
2354
2355 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2356 * configure: Regenerate.
2357 * config.in: Likewise.
2358 * main.c (signal.h): New include.
2359 (setup_alternate_signal_stack): New function.
2360 (captured_main): Call the above.
2361 * cp-support.c (signal.h): New include.
2362 (catch_demangler_crashes): New flag.
2363 (SIGJMP_BUF): New define.
2364 (SIGSETJMP): Likewise.
2365 (SIGLONGJMP): Likewise.
2366 (gdb_demangle_jmp_buf): New static global.
2367 (gdb_demangle_attempt_core_dump): Likewise.
2368 (gdb_demangle_signal_handler): New function.
2369 (gdb_demangle): If catch_demangler_crashes is set, install the
2370 above signal handler before calling bfd_demangle, and restore
2371 the original signal handler afterwards. Display the offending
2372 symbol and call demangler_warning the first time a segmentation
2373 fault is caught.
2374 (_initialize_cp_support): New maint set/show command.
2375
eae7090b
GB
23762014-06-19 Gary Benson <gbenson@redhat.com>
2377
2378 * utils.h (resource_limit_kind): New enum.
2379 (can_dump_core): New declaration.
2380 (warn_cant_dump_core): Likewise.
2381 (dump_core): Likewise.
2382 * utils.c (dump_core): Made nonstatic. Added new
2383 parameter "limit_kind".
2384 (can_dump_core): Made nonstatic. Moved printing code to...
2385 (warn_cant_dump_core): New function.
2386 (can_dump_core_warn): Likewise.
2387 (internal_vproblem): Replace calls to can_dump_core with
2388 calls to can_dump_core_warn. Supply new argument to each.
2389
57fcfb1b
GB
23902014-06-19 Gary Benson <gbenson@redhat.com>
2391
2392 * utils.h (demangler_vwarning): New declaration.
2393 (demangler_warning): Likewise.
2394 * utils.c (struct internal_problem)
2395 <user_settable_should_quit>: New field.
2396 <user_settable_should_dump_core>: Likewise
2397 (internal_error_problem): Add values for above new fields.
2398 (internal_warning_problem): Likewise.
2399 (demangler_warning_problem): New static global.
2400 (demangler_vwarning): New function.
2401 (demangler_warning): Likewise.
2402 (add_internal_problem_command): Selectively add commands.
2403 (_initialize_utils): New internal problem command.
2404 * maint.c (maintenance_demangler_warning): New function.
2405 (_initialize_maint_cmds): New command.
2406
17a40b44
TT
24072014-06-18 Tom Tromey <tromey@redhat.com>
2408
2409 * f-valprint.c (info_common_command_for_block): Update.
2410 * symtab.h (struct general_symbol_info) <common_block>: Now
2411 const.
2412
346d1dfe
TT
24132014-06-18 Tom Tromey <tromey@redhat.com>
2414
2415 * symtab.h (struct symtab) <blockvector>: Now const.
2416 * ada-lang.c (ada_add_global_exceptions): Update.
2417 * buildsym.c (augment_type_symtab): Update.
2418 * dwarf2read.c (dw2_lookup_symbol): Update.
2419 * jit.c (finalize_symtab): Update.
2420 * jv-lang.c (add_class_symtab_symbol): Update.
2421 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2422 Update.
2423 * objfiles.c (objfile_relocate1): Update.
2424 * psymtab.c (lookup_symbol_aux_psymtabs)
2425 (maintenance_check_psymtabs): Update.
2426 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2427 Update.
2428 * spu-tdep.c (spu_catch_start): Update.
2429 * symmisc.c (dump_symtab_1): Update.
2430 * symtab.c (lookup_global_symbol_from_objfile)
2431 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2432 (basic_lookup_transparent_type_quick)
2433 (basic_lookup_transparent_type, find_pc_sect_symtab)
2434 (find_pc_sect_line, search_symbols): Update.
2435 * block.c (find_block_in_blockvector): Make "bl" const.
2436 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2437 const.
2438 (blockvector_contains_pc): Make "bv" const.
2439 (block_for_pc_sect): Update.
2440 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2441 (blockvector_contains_pc): Update.
2442 * breakpoint.c (resolve_sal_pc): Update.
2443 * inline-frame.c (block_starting_point_at): Update.
2444
1834676b
TT
24452014-06-18 Tom Tromey <tromey@redhat.com>
2446
2447 * completer.c (complete_line): Make "line_buffer" const.
2448 * completer.h (complete_line): Update.
2449
ac1a991b
TT
24502014-06-18 Tom Tromey <tromey@redhat.com>
2451
2452 * symtab.c (add_macro_name): Remove unneeded cast.
2453
5bc98e52
TT
24542014-06-18 Tom Tromey <tromey@redhat.com>
2455
2456 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2457 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2458
8236def8
TT
24592014-06-18 Tom Tromey <tromey@redhat.com>
2460
2461 * probe.c (info_probes_for_ops): Make "arg" const.
2462 * probe.h (info_probes_for_ops): Update.
2463
3977b71f
TT
24642014-06-18 Tom Tromey <tromey@redhat.com>
2465
2466 * varobj.c (varobj_create): Update.
2467 * valops.c (value_of_this): Update.
2468 * tracepoint.c (add_local_symbols, scope_info): Update.
2469 * symtab.h (struct general_symbol_info) <block>: Now const.
2470 * symtab.c (skip_prologue_sal)
2471 (default_make_symbol_completion_list_break_on)
2472 (skip_prologue_using_sal): Update.
2473 * stack.h (iterate_over_block_locals)
2474 (iterate_over_block_local_vars): Update.
2475 * stack.c (print_frame_args): Update.
2476 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2477 parameter const.
2478 (get_selected_block): Make return type const.
2479 * python/py-frame.c (frapy_block): Update.
2480 * python/py-block.c (gdbpy_block_for_pc): Update.
2481 * p-exp.y (%union) <bval>: Now const.
2482 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2483 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2484 * m2-exp.y (%union) <bval>: Now const.
2485 * linespec.c (get_current_search_block): Make return type const.
2486 (create_sals_line_offset, find_label_symbols): Update.
2487 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2488 Update.
2489 (block_starting_point_at): Make "block" const.
2490 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2491 (check_exception_resume): Update.
2492 * guile/scm-frame.c (gdbscm_frame_block): Update.
2493 * guile/scm-block.c (gdbscm_lookup_block): Update.
2494 * frame.h (get_frame_block): Update.
2495 (get_selected_block): Make return type const.
2496 * frame.c (frame_id_inner): Update.
2497 * f-valprint.c (info_common_command_for_block)
2498 (info_common_command): Update.
2499 * dwarf2loc.c (dwarf2_find_location_expression)
2500 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2501 (locexpr_describe_location_piece): Update.
2502 * c-exp.y (%union) <bval>: Now const.
2503 * breakpoint.c (resolve_sal_pc): Update.
2504 * blockframe.c (get_frame_block):Make return type const.
2505 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2506 (block_innermost_frame): Update.
2507 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2508 (block_for_pc, block_for_pc_sect): Update.
2509 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2510 'pblock' const.
2511 (block_for_pc_sect, block_for_pc): Make return type const.
2512 * ax-gdb.c (gen_expr): Update.
2513 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2514 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2515 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2516 (ada_read_var_value): Update.
2517 * ada-exp.y (struct name_info) <block>: Now const.
2518 (%union): Likewise.
2519 (block_lookup): Constify.
2520
b9228891
GB
25212014-06-18 Gary Benson <gbenson@redhat.com>
2522
2523 * nat/i386-dregs.h: New file.
2524 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2525 * i386-nat.h (i386-dregs.h): New include.
2526 (DR_FIRSTADDR): Now in i386-dregs.h.
2527 (DR_LASTADDR): Likewise.
2528 (DR_NADDR): Likewise.
2529 (DR_STATUS): Likewise.
2530 (DR_CONTROL): Likewise.
2531 (i386_debug_reg_state): Likewise.
2532 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2533
a1aa2221
LM
25342014-06-18 Don Breazeal <donb@codesourcery.com>
2535
2536 * breakpoint.c (set_longjmp_breakpoint): Call
2537 momentary_breakpoint_from_master with additional argument.
2538 (set_longjmp_breakpoint_for_call_dummy): Call
2539 momentary_breakpoint_from_master with additional argument.
2540 (set_std_terminate_breakpoint): Call
2541 momentary_breakpoint_from_master with additional argument.
2542 (momentary_breakpoint_from_master): Add argument to function
2543 definition and use it to initialize structure member flag.
74228e77 2544 (clone_momentary_breakpoint): Call
a1aa2221
LM
2545 momentary_breakpoint_from_master with additional argument.
2546 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2547 member flags set in momentary_breakpoint_from_master.
2548
4be83cc2
GB
25492014-06-18 Gary Benson <gbenson@redhat.com>
2550
2551 * i386-nat.c (i386_show_dr): Renamed to
2552 i386_dr_show and made nonstatic. All uses updated.
2553 (i386_length_and_rw_bits): Renamed to
2554 i386_dr_length_and_rw_bits and made nonstatic.
2555 All uses updated.
2556 (i386_insert_aligned_watchpoint): Renamed to
2557 i386_dr_insert_aligned_watchpoint and made nonstatic.
2558 All uses updated.
2559 (i386_remove_aligned_watchpoint): Renamed to
2560 i386_dr_remove_aligned_watchpoint and made nonstatic.
2561 All uses updated.
2562 (i386_update_inferior_debug_regs): Renamed to
2563 i386_dr_update_inferior_debug_regs and made nonstatic.
2564 All uses updated.
2565
131aa0d4
GB
25662014-06-18 Gary Benson <gbenson@redhat.com>
2567
2568 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2569 (i386_dr_low_can_set_control): Likewise.
2570 (i386_dr_low_set_addr): Likewise.
2571 (i386_dr_low_set_control): Likewise.
2572 (i386_dr_low_get_addr): Likewise.
2573 (i386_dr_low_get_status): Likewise.
2574 (i386_dr_low_get_control): Likewise.
2575 (i386_insert_aligned_watchpoint): Use new macros.
2576 (i386_update_inferior_debug_regs): Likewise.
2577 (i386_stopped_data_address): Likewise.
2578
d9305f7f
GB
25792014-06-18 Gary Benson <gbenson@redhat.com>
2580
2581 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2582 New parameter. All uses updated.
2583
ea008da4
GB
25842014-06-18 Gary Benson <gbenson@redhat.com>
2585
2586 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2587 All uses updated.
2588
1b6d4134
GB
25892014-06-18 Gary Benson <gbenson@redhat.com>
2590
2591 * i386-nat.c (debug_printf): New macro.
2592 (i386_get_debug_register_length): Likewise.
2593 (TARGET_HAS_DR_LEN_8): Use above macro.
2594 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2595 and printf_unfiltered. Use phex to format values.
2596
9b4550ef
GB
25972014-06-18 Gary Benson <gbenson@redhat.com>
2598
2599 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2600 Make const.
2601
6e62758f
GB
26022014-06-18 Gary Benson <gbenson@redhat.com>
2603
2604 * i386-nat.c: Comment changes.
2605
51c79e94
GB
26062014-06-18 Gary Benson <gbenson@redhat.com>
2607
2608 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2609
3e11889a
GB
26102014-06-18 Gary Benson <gbenson@redhat.com>
2611
2612 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2613 (i386_insert_aligned_watchpoint): Likewise.
2614 (i386_remove_aligned_watchpoint): Likewise.
2615 (i386_handle_nonaligned_watchpoint): Likewise.
2616
fc6e2f03
GB
26172014-06-18 Gary Benson <gbenson@redhat.com>
2618
2619 * i386-nat.c: Whitespace changes.
2620
2afe7d50
SB
26212014-06-17 Samuel Bronson <naesten@gmail.com>
2622
2623 * MAINTAINERS: Update Roland McGrath's email address.
2624 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2625 Red Hat a while ago, and giving me a current address.
2afe7d50 2626
3bca49ee
TT
26272014-06-17 Tom Tromey <tromey@redhat.com>
2628
2629 * utils.h (savestring): Remove declaration.
2630
6e366df1
TT
26312014-06-17 Tom Tromey <tromey@redhat.com>
2632
2633 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2634
6be47f0c
KS
26352014-06-16 Keith Seitz <keiths@redhat.com>
2636
2637 PR mi/15863
2638 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2639 to update the varobj if inferior_ptid is null_ptid.
2640
7bc112c1
TT
26412014-06-16 Tom Tromey <tromey@redhat.com>
2642
2643 * target.h (struct target_ops) <to_info_proc>: Make parameter
2644 const.
2645 (target_info_proc): Update.
2646 * target.c (target_info_proc): Make "args" const.
2647 * procfs.c (procfs_info_proc): Update.
2648 * linux-tdep.c (linux_info_proc): Update.
2649 (linux_core_info_proc_mappings): Make "args" const.
2650 (linux_core_info_proc): Update.
2651 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2652 * gdbarch.c: Rebuild.
2653 * gdbarch.h: Rebuild.
2654 * corelow.c (core_info_proc): Update.
2655
fee354ee
TT
26562014-06-16 Tom Tromey <tromey@redhat.com>
2657
2658 * target.h (struct target_ops) <to_disconnect>: Make parameter
2659 const.
2660 (target_disconnect): Update.
2661 * target.c (target_disconnect): Make "args" const.
2662 * target-delegates.c: Rebuild.
2663 * remote.c (remote_disconnect): Update.
2664 * record.h (record_disconnect): Update.
2665 * record.c (record_disconnect): Update.
2666 * inf-child.c (inf_child_disconnect): Update.
2667
a30bf1f1
TT
26682014-06-16 Tom Tromey <tromey@redhat.com>
2669
2670 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2671 * target.c (debug_to_rcmd, default_rcmd): Update.
2672 * target-delegates.c: Rebuild.
2673 * remote.c (remote_rcmd): Update.
2674 * monitor.c (monitor_rcmd): Update.
2675
d03de421
PA
26762014-06-16 Pedro Alves <palves@redhat.com>
2677
2678 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2679 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2680 have OBJF_SHARED set.
2681 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2682 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2683 instead of OBJF_USERLOADED.
2684 * objfiles.h (OBJF_SHARED): Update comment.
2685 (userloaded_objfile_contains_address_p): Rename to ...
2686 (shared_objfile_contains_address_p): ... this, and update
2687 comments.
2688 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2689 new objfile.
2690 (remove_symbol_file_command): Skip objfiles that don't have
2691 OBJF_SHARED set.
2692
99f4262f
TT
26932014-06-16 Tom Tromey <tromey@redhat.com>
2694
2695 * minsyms.h (prim_record_minimal_symbol)
2696 (prim_record_minimal_symbol_and_info): Update comments.
2697
97d66cc6
EZ
26982014-06-14 Eli Zaretskii <eliz@gnu.org>
2699
2700 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2701 or --without-guile, according to how GDB was built.
2702
635c7e8a
TT
27032014-06-13 Tom Tromey <tromey@redhat.com>
2704
2705 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2706 to help_list.
2707 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2708 to help_list.
2709 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2710 help_list.
2711 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2712 help_list.Pass all_commands, not -1, to help_list.
2713 * cli/cli-dump.c (dump_command, append_command)
2714 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2715 (binary_dump_command, binary_append_command): Pass all_commands,
2716 not -1, to help_list.
2717 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2718 -1, to help_list.
2719 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2720 -1, to help_list.
2721 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2722 help_list.
2723 * top.c (set_history): Pass all_commands, not -1, to help_list.
2724 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2725 all_commands, not -1, to help_list.
2726 * symfile.c (overlay_command): Pass all_commands, not -1, to
2727 help_list.
2728 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2729 help_list.
2730 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2731 help_list.
2732 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2733 -1, to help_list.
2734 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2735 not -1, to help_list.
2736 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2737 not -1, to help_list.
2738 * maint.c (maintenance_command, maintenance_info_command)
2739 (maintenance_print_command, maintenance_set_cmd): Pass
2740 all_commands, not -1, to help_list.
2741 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2742 help_list.
2743 * language.c (set_check): Pass all_commands, not -1, to help_list.
2744 * infcmd.c (unset_command): Pass all_commands, not -1, to
2745 help_list.
2746 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2747 help_list.
2748 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2749 help_list.
2750 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2751 help_list.
2752 * breakpoint.c (save_command): Pass all_commands, not -1, to
2753 help_list.
2754 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2755 all_commands, not -1, to help_list.
2756
b94ade42
PL
27572014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2758
2759 * regcache.c (struct register_to_invalidate): New structure.
2760 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2761 functions.
2762 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2763
31f628ae
YQ
27642014-06-12 Yao Qi <yao@codesourcery.com>
2765
2766 * varobj.c (varobj_get_num_children): Call
2767 varobj_is_dynamic_p.
2768 (varobj_list_children): Likewise.
2769 (varobj_update): Likewise. Update comments.
2770
cde5ef40
YQ
27712014-06-12 Yao Qi <yao@codesourcery.com>
2772
2773 * varobj.c (varobj_pretty_printed_p): Rename to ...
2774 (varobj_is_dynamic_p): ... this. New function.
2775 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2776 (varobj_is_dynamic_p): Declare.
2777 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2778 (mi_print_value_p, varobj_update_one): Likewise.
2779
576ea091
YQ
27802014-06-12 Pedro Alves <pedro@codesourcery.com>
2781 Yao Qi <yao@codesourcery.com>
2782
2783 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2784 (varobj_get_iterator): Wrap up code for pretty-printer by
2785 "#if HAVE_PYTHON" and "#endif".
2786 (update_dynamic_varobj_children): Likewise.
2787
827f100c
YQ
27882014-06-12 Pedro Alves <pedro@codesourcery.com>
2789 Yao Qi <yao@codesourcery.com>
2790
2791 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2792 gdb_python_initialized is false. Move some code from varobj.c.
2793 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2794 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2795 (struct varobj_item): Moved to varobj-iter.h".
2796 (varobj_clear_saved_item): New function.
2797 (update_dynamic_varobj_children): Move python-related code to
2798 py-varobj.c.
2799 (free_variable): Call varobj_clear_saved_item and
2800 varobj_iter_delete.
2801
e5250216
YQ
28022014-06-12 Pedro Alves <pedro@codesourcery.com>
2803 Yao Qi <yao@codesourcery.com>
2804
2805 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2806 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2807 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2808 (py-varobj.o): New rule.
2809 * python/py-varobj.c: New file.
2810 * python/python-internal.h (py_varobj_get_iterator): Declare.
2811 * varobj-iter.h: New file.
2812 * varobj.c: Include "varobj-iter.h"
2813 (struct varobj) <child_iter>: Change its type from "PyObject *"
2814 to "struct varobj_iter *".
2815 <saved_item>: Likewise.
2816 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2817 [HAVE_PYTHON] (varobj_get_iterator): New function.
2818 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2819 python-specific code to python/py-varobj.c.
2820 (install_visualizer): Call varobj_iter_delete instead of
2821 Py_XDECREF.
2822 * varobj.h (varobj_ensure_python_env): Declare.
2823
5a2e0d6e
YQ
28242014-06-12 Yao Qi <yao@codesourcery.com>
2825
2826 * varobj.c (struct varobj_item): New structure.
2827 (create_child_with_value): Update declaration.
2828 (varobj_add_child): Replace arguments 'name' and 'value' with
2829 'item'. All callers updated.
2830 (install_dynamic_child): Likewise.
2831 (update_dynamic_varobj_children): Likewise.
2832 (varobj_add_child): Likewise.
2833 (create_child_with_value): Likewise.
2834
919b9a93
JB
28352014-06-11 Joel Brobecker <brobecker@adacore.com>
2836
2837 * NEWS: Create a new section for the next release branch.
2838 Rename the section of the current branch, now that it has
2839 been cut.
2840
71a55bdf
JB
28412014-06-11 Joel Brobecker <brobecker@adacore.com>
2842
2843 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2844 * version.in: Bump version to 7.8.50.DATE-cvs.
2845
364fe1f7
PA
28462014-06-11 Pedro Alves <palves@redhat.com>
2847
2848 PR remote/17028
2849 * ser-mingw.c (net_windows_socket_check_pending): New function.
2850 (net_windows_select_thread): Ignore spurious wakeups. Use
2851 net_windows_socket_check_pending.
2852 (net_windows_wait_handle): Check for pending events with
2853 ioctlsocket, through net_windows_socket_check_pending, instead of
2854 checking the socket's event.
2855
5a6c7709
SC
28562014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2857
2858 * python/python-internal.h (gdb_PyObject_GetAttrString)
2859 (gdb_PyObject_HasAttrString): New inline function definitions.
2860 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2861 char * of the second argument to PyObject_GetAttrString.
74228e77 2862
0e58ee40
JB
28632014-06-10 Joel Brobecker <brobecker@adacore.com>
2864
2865 * serial.c (serial_write): Fix index of character to be printed
2866 in call to serial_logchar when serial debug traces are enabled.
2867
d190df30
JB
28682014-06-10 Joel Brobecker <brobecker@adacore.com>
2869
2870 * gdbtypes (resolve_dynamic_range): Add function description.
2871
b4b01d36
PA
28722014-06-09 Pedro Alves <palves@redhat.com>
2873
2874 * linux-nat.c (linux_child_follow_fork): Initialize status with
2875 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2876 inner block. Only pass the signal to PTRACE_DETACH if in pass
2877 state.
2878
3657956b
GB
28792014-06-09 Gary Benson <gbenson@redhat.com>
2880
2881 * common/signals.c (gdb_signal_from_host): Reorder to separate
2882 the always-available ANSI-standard signals from the signals that
2883 require checking.
2884 (do_gdb_signal_to_host): Likewise.
2885 * proc-events.c (signal_table): Likewise.
2886
c077881a
HZ
28872014-06-08 Hui Zhu <hui@codesourcery.com>
2888
2889 * common/linux-ptrace.c (linux_disable_event_reporting): New
2890 function.
2891 * common/linux-ptrace.h (linux_disable_event_reporting): New
2892 declaration.
2893 * linux-nat.c (linux_child_follow_fork): Do a single step before
2894 detach.
2895
4186eb54
KS
28962014-06-07 Keith Seitz <keiths@redhat.com>
2897
2898 Revert:
2899 PR c++/16253
2900 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2901 from symbol_matches_domain in symtab.c. All local callers
2902 of symbol_matches_domain updated.
2903 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2904 search STRUCT_DOMAIN.
2905 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2906 independently. standard_lookup will do that automatically.
2907 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2908 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2909 (cp_lookup_symbol_in_namespace): Likewise.
2910 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2911 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2912 may return a STRUCT_DOMAIN match.
2913 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2914 * cp-support.c: Include language.h.
2915 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2916 VAR_DOMAIN.
2917 * psymtab.c (match_partial_symbol): Compare the requested
2918 domain with the symbol's domain directly.
2919 (lookup_partial_symbol): Likewise.
2920 * symtab.c (lookup_symbol_in_language): Explain when/why
2921 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2922 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2923 appropriate languages.
2924 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2925 and moved to ada-lang.c
2926 (lookup_block_symbol): Explain that this function only returns
2927 symbol matching the requested DOMAIN.
2928 Compare the requested domain with the symbol's domain directly.
2929 (iterate_over_symbols): Compare the requested domain with the
2930 symbol's domain directly.
2931 * symtab.h (symbol_matches_domain): Remove.
2932
25326a28 29332014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2934
2935 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2936 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2937 (gdbscm_guile_version_is_at_least): Declare.
2938 (gdbscm_scm_string_to_int): Declare.
2939 * guile/guile.c (gdbscm_guile_major_version): New global.
2940 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2941 (guile_datadir): New static global.
2942 (gdbscm_guile_data_directory): New function.
2943 (initialize_scheme_side): Update.
2944 (misc_guile_functions): Add guile-data-directory.
2945 (initialize_gdb_module): Fetch guile version number.
2946 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2947 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2948 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2949 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2950 comments.
2951 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2952 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2953 * guile/scm-value.c (gdbscm_value_to_string): Only call
2954 scm_port_conversion_strategy if Guile version >= 2.0.6.
2955
0a770bb2 29562014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2957
2958 * main.c (print_gdb_help): Add -q and --silent.
2959
73ba372c
GB
29602014-06-06 Gary Benson <gbenson@redhat.com>
2961
2962 * common/signals.c: Remove preprocessor conditionals for
2963 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2964 SIGSEGV and SIGTERM.
2965 * proc-events.c: Likewise.
2966
c33b2f12
MM
29672014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2968
2969 * symfile.c (symfile_free_objfile): Remove restriction to
2970 OBJF_USERLOADED.
2971 * symfile-mem.c (symbol_file_add_from_memory): Call
2972 add_target_sections_of_objfile.
2973
fb934770
LC
29742014-06-05 Ludovic Courtès <ludo@gnu.org>
2975
2976 * guile/scm-value.c (gdbscm_history_append_x): Use
2977 'vlscm_get_value_smob_arg_unsafe' instead of
2978 'vlscm_scm_to_value'.
2979
6ef284bd
SM
29802014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2981
2982 PR mi/15806
2983 * utils.c (printchar): Don't escape at all if quoter is NUL.
2984 Update function documentation to clarify effect of parameter
2985 QUOTER.
2986 * remote.c (escape_buffer): Pass '\\' as the quoter to
2987 fputstrn_unfiltered.
2988 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2989 generate the output.
2990 (mi_solib_unloaded): Same.
2991
270c9937
JB
29922014-06-05 Joel Brobecker <brobecker@adacore.com>
2993
2994 * development.sh: Delete.
2995 * Makefile.in (config.status): Adjust dependency on development.sh.
2996 * configure.ac: Adjust development.sh source call.
2997 * configure: Regenerate.
2998
16f691fb
DE
29992014-06-04 Doug Evans <xdje42@gmail.com>
3000
3001 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3002 is_scheme_bkpt, spec.
3003 (bpscm_make_breakpoint_smob): Initialize new members.
3004 (gdbscm_create_breakpoint_x): Split into two ...
3005 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3006 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3007 (scheme_function breakpoint_functions): Update.
3008 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3009 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3010 register-breakpoint!.
3011
ef7cab6b
JB
30122014-06-04 Joel Brobecker <brobecker@adacorer.com>
3013
3014 PR server/17023
3015 * mem-break.c (z_type_supported): Return zero if
3016 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3017
012370f6
TT
30182014-06-04 Tom Tromey <tromey@redhat.com>
3019
3020 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3021 value_from_contents_and_address_unresolved.
3022 (ada_template_to_fixed_record_type_1): Likewise.
3023 (ada_which_variant_applies): Likewise.
3024 * value.h (value_from_contents_and_address_unresolved): Declare.
3025 * value.c (value_from_contents_and_address_unresolved): New
3026 function.
3027 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3028 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3029 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3030
92e2a17f
TT
30312014-06-04 Tom Tromey <tromey@redhat.com>
3032
3033 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3034
c0939df1
TT
30352014-06-04 Tom Tromey <tromey@redhat.com>
3036
3037 * procfs.c (procfs_attach): Make "args" const.
3038 * windows-nat.c (windows_attach): Make "args" const.
3039 * nto-procfs.c (procfs_attach): Make "args" const.
3040 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3041 * go32-nat.c (go32_attach): Make "args" const.
3042 * gnu-nat.c (gnu_attach): Make "args" const.
3043 * darwin-nat.c (darwin_attach): Make "args" const.
3044 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3045 * linux-nat.c (linux_nat_attach): Make "args" const.
3046 * remote.c (extended_remote_attach_1, extended_remote_attach):
3047 Make "args" const.
3048 * target.h (struct target_ops) <to_attach>: Make "args" const.
3049 (find_default_attach): Likewise.
3050 * utils.c (parse_pid_to_attach): Make "args" const.
3051 * utils.h (parse_pid_to_attach): Update.
3052
8eaff7cd
TT
30532014-06-04 Tom Tromey <tromey@redhat.com>
3054
3055 * target-delegates.c: Rebuild.
3056 * target.c (default_thread_address_space): New function.
3057 (target_thread_address_space): Simplify.
3058 * target.h (struct target_ops) <to_thread_address_space>: Add
3059 TARGET_DEFAULT_FUNC.
3060
1913f160
DE
30612014-06-04 Doug Evans <xdje42@gmail.com>
3062
3063 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3064
70ad5bff
MM
30652014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3066
3067 * record-btrace.c: Include event-loop.h and inf-loop.h.
3068 (record_btrace_resume_exec_dir)
3069 (record_btrace_async_inferior_event_handler)
3070 (record_btrace_handle_async_inferior_event): New.
3071 (record_btrace_open): Create async event handler.
3072 (record_btrace_close): Delete async event handler.
3073 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3074 Mark async event handler.
3075 (record_btrace_execution_direction): New.
3076 (init_record_btrace_ops): Initialize to_execution_direction.
3077
b6210538
DE
30782014-06-03 Doug Evans <xdje42@gmail.com>
3079
3080 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3081 (gdbscm_make_parameter): Ditto.
3082
a5b1fd27
DE
30832014-06-03 Doug Evans <dje@google.com>
3084
3085 * exec.c (exec_close_1): Call clear_section_table instead of
3086 resize_section_table.
3087 (clear_section_table): New function.
3088 (resize_section_table): Make static. Rename arg num_added to
3089 adjustment.
3090 * exec.h (clear_section_table): Declare.
3091 (resize_section_table): Delete.
3092 * progspace.c (release_program_space): Call clear_section_table
3093 instead of resize_section_table.
3094
0c6e92a5
SC
30952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3096
3097 * NEWS (Python Scripting): Add entry about the new xmethods
3098 feature.
3099
883964a7
SC
31002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3101
3102 * python/py-xmethods.c: New file.
3103 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3104 (objfpy_dealloc): XDECREF on the new xmethods field.
3105 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3106 field.
3107 (objfpy_get_xmethods): New function.
3108 (objfile_getset): New entry 'xmethods'.
3109 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3110 (pspy_dealloc): XDECREF on the new xmethods field.
3111 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3112 field.
3113 (pspy_get_xmethods): New function.
3114 (pspace_getset): New entry 'xmethods'.
3115 * python/python-internal.h: Add declarations for new functions.
3116 * python/python.c (_initialize_python): Invoke
3117 gdbpy_initialize_xmethods.
3118 * python/lib/gdb/__init__.py (xmethods): New
3119 attribute.
3120 * python/lib/gdb/xmethod.py: New file.
3121 * python/lib/gdb/command/xmethods.py: New file.
3122
58992dc5
SC
31232014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3124
3125 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3126 best match method returned by find_overload_match is an xmethod.
3127 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3128 the best matching operator returned by find_overload_match is an
3129 xmethod.
3130 * valops.c: #include "extension.h".
3131 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3132 Return void. The list of matching source methods is returned in
3133 "fn_list" and a vector of matching debug method workers is
3134 returned in "xm_worker_vec". Update all callers.
3135 (value_find_oload_method_list): Likewise.
3136 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3137 non-NULL, then the index of the best matching method in this
3138 vector is returned. Update all callers.
3139 (find_overload_match): Include xmethods while performing overload
3140 resolution.
3141
e81e7f5e
SC
31422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3143
3144 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3145 * extension-priv.h (struct extension_language_ops): Add the
3146 xmethod interface.
3147 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3148 get_matching_xmethod_workers, get_xmethod_argtypes,
3149 invoke_xmethod, free_xmethod_worker,
3150 free_xmethod_worker_vec): New functions.
3151 * extension.h: #include "common/vec.h".
3152 New function declarations.
3153 (struct xmethod_worker): New struct.
3154 (VEC (xmethod_worker_ptr)): New vector type.
3155 (xmethod_worker_ptr): New typedef.
3156 (xmethod_worker_vec): Likewise.
3157 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3158 builtin_type.
3159 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3160 (struct builtin_type): New field "xmethod".
3161 * valarith.c (value_ptradd): Assert that the value argument is not
3162 lval_xcallable.
3163 * valops.c (value_must_coerce_to_target): Return 0 for
3164 lval_xcallable values.
3165 * value.c (struct value): New field XM_WORKER in the field
3166 LOCATION.
3167 (value_address, value_raw_address): Return 0 for lval_xcallable
3168 values.
3169 (set_value_address): Assert that the value is not an
3170 lval_xcallable.
3171 (value_free): Free the associated xmethod worker when freeing
3172 lval_xcallable values.
3173 (set_value_component_location): Assert that the WHOLE value is not
3174 lval_xcallable.
3175 (value_of_xmethod, call_xmethod): New functions.
3176 * value.h: Declare "struct xmethod_worker".
3177 Declare new functions value_of_xmethod, call_xmethod.
3178
ef370185
JB
31792014-06-03 Joel Brobecker <brobecker@adacore.com>
3180 Pedro Alves <palves@redhat.com>
3181
3182 PR breakpoints/17000
3183 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3184 New function, extracted from software_breakpoint_inserted_here_p.
3185 (software_breakpoint_inserted_here_p): Replace factored out code
3186 by call to find_non_raw_software_breakpoint_inserted_here.
3187 (bp_target_info_copy_insertion_state): New function.
3188 (bkpt_insert_location): Handle the case of a single-step
3189 breakpoint already inserted at the same address.
3190 (bkpt_remove_location): Handle the case of a single-step
3191 breakpoint still inserted at the same address.
3192 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3193 breakpoint already inserted at the same address.
3194 (deprecated_remove_raw_breakpoint): Handle the case of a
3195 non-raw breakpoint still inserted at the same address.
3196 (find_single_step_breakpoint): New function, extracted from
3197 single_step_breakpoint_inserted_here_p.
3198 (find_single_step_breakpoint): New function,
3199 factored out from single_step_breakpoint_inserted_here_p.
3200 (single_step_breakpoint_inserted_here_p): Reimplement.
3201
1e2ccb61
BM
32022014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3203
3204 Pushed by Joel Brobecker <brobecker@adacore.com>
3205 * source.c (show_substitute_path_command): Fix display of matching
3206 substitution rules.
3207
d3448d85
GB
32082014-06-03 Gary Benson <gbenson@redhat.com>
3209
3210 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3211
06eb1586
DE
32122014-06-02 Doug Evans <xdje42@gmail.com>
3213
3214 Add parameter support for Guile.
3215 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3216 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3217 (scm-param.o): New rule.
3218 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3219 (gdbscm_misc_error): Declare.
3220 (gdbscm_canonicalize_command_name): Declare.
3221 (gdbscm_scm_to_host_string): Declare.
3222 (gdbscm_scm_from_host_string): Declare.
3223 (gdbscm_initialize_parameters): Declare.
3224 * guile/guile.c (initialize_gdb_module): Call
3225 gdbscm_initialize_parameters.
3226 * guile/lib/gdb.scm: Export parameter symbols.
3227 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3228 cmdscm_canonicalize_name and made public. All callers updated.
3229 * guile/scm-exception.c (gdbscm_misc_error): New function.
3230 * guile/scm-param.c: New file.
3231 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3232 (gdbscm_scm_to_host_string): New function.
3233 (gdbscm_scm_from_host_string): New function.
3234 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3235
e698b8c4
DE
32362014-06-02 Doug Evans <xdje42@gmail.com>
3237
3238 Add command support for Guile.
3239 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3240 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3241 (scm-cmd.o): New rule.
3242 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3243 (gdbscm_user_error_p): Declare.
3244 (gdbscm_parse_command_name): Declare.
3245 (gdbscm_valid_command_class_p): Declare.
3246 (gdbscm_initialize_commands): Declare.
3247 * guile/guile.c (initialize_gdb_module): Call
3248 gdbscm_initialize_commands.
3249 * guile/lib/gdb.scm: Export command symbols.
3250 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3251 (throw-user-error): New function.
3252 * guile/scm-cmd.c: New file.
3253 * guile/scm-exception.c (user_error_symbol): New static global.
3254 (gdbscm_user_error_p): New function.
3255 (gdbscm_initialize_exceptions): Set user_error_symbol.
3256 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3257
fb1f94b0
PM
32582014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3259
3260 * top.c (command_loop): Handle comments here...
3261 (command_line_input): ... not here.
3262
ded03782
DE
32632014-06-02 Doug Evans <xdje42@gmail.com>
3264
3265 Add progspace support for Guile.
3266 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3267 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3268 (scm-progspace.o): New rule.
3269 * guile/guile-internal.h (pspace_smob): New typedef.
3270 (psscm_pspace_smob_pretty_printers): Declare.
3271 (psscm_pspace_smob_from_pspace): Declare.
3272 (psscm_scm_from_pspace): Declare.
3273 * guile/guile.c (initialize_gdb_module): Call
3274 gdbscm_initialize_pspaces.
3275 * guile/lib/gdb.scm: Export progspace symbols.
3276 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3277 support.
3278 (append-pretty-printer!): Ditto.
3279 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3280 Implement.
3281 * guile/scm-progspace.c: New file.
3282
397998fc
AM
32832014-06-03 Alan Modra <amodra@gmail.com>
3284
3285 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3286 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3287
6aa5f3a6
DE
32882014-06-02 Doug Evans <dje@google.com>
3289
3290 Add support for skeletonless type units.
3291 * dwarf2read.c (struct dwarf2_per_objfile): New member
3292 n_allocated_type_units.
3293 (struct dwarf2_per_objfile) <tu_stats>: New member
3294 nr_all_type_units_reallocs.
3295 (create_signatured_type_table_from_index): Initialize
3296 n_allocated_type_units
3297 (create_all_type_units): Ditto.
3298 (add_type_unit): Move up in file. New arg slot.
3299 All callers updated. Increase space for all_type_units more
3300 efficiently.
3301 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3302 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3303 (lookup_dwp_signatured_type): Ditto.
3304 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3305 All callers updated.
3306 (build_type_psymtabs_1): Leave type_unit_groups as
3307 NULL if no TUs present.
3308 (print_tu_stats): New function.
3309 (process_skeletonless_type_unit): New function.
3310 (process_dwo_file_for_skeletonless_type_units): New
3311 function.
3312 (process_skeletonless_type_units): New function.
3313 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3314 Call print tu_stats if debugging enabled.
3315
41fac0cf
PA
33162014-06-02 Pedro Alves <palves@redhat.com>
3317
3318 * breakpoint.c (build_target_command_list): Don't build a command
3319 list if we have any duplicate location that isn't a dprintf.
3320
cd1608cc
PA
33212014-06-02 Pedro Alves <palves@redhat.com>
3322
3323 * breakpoint.c (dprintf_breakpoint_hit): New function.
3324 (initialize_breakpoint_ops): Install it as dprintf's
3325 breakpoint_hit method.
3326
486ef3b9
JB
33272014-06-02 Joel Brobecker <brobecker@adacore.com>
3328
3329 * source.c (substitute_path_rule_matches): Simplify using
3330 filename_ncmp instead of FILENAME_CMP.
3331
230cd560
JB
33322014-06-02 Joel Brobecker <brobecker@adacore.com>
3333
3334 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3335
16954d5d
LC
33362014-06-01 Ludovic Courtès <ludo@gnu.org>
3337
3338 * configure.ac: When Guile is available, check for the
3339 availability of 'scm_new_smob'.
3340 * configure, config.h.in: Regenerate.
3341 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3342 function.
3343
53e8a631
AB
33442014-05-30 Andrew Burgess <aburgess@broadcom.com>
3345
3346 * frame.c (struct frame_info): Add stop_string field.
3347 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3348 (get_prev_frame_always): Old content moved into
3349 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3350 TRY_CATCH, handle MEMORY_ERROR exceptions.
3351 (frame_stop_reason_string): New function definition.
3352 * frame.h (unwind_stop_reason_to_string): Extend comment to
3353 mention frame_stop_reason_string.
3354 (frame_stop_reason_string): New function declaration.
3355 * stack.c (frame_info): Switch to frame_stop_reason_string.
3356 (backtrace_command_1): Switch to frame_stop_reason_string.
3357 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3358 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3359 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3360
70e38b8e
AB
33612014-05-30 Andrew Burgess <aburgess@broadcom.com>
3362
3363 * frame.c (frame_stop_reason_string): Rename to ...
3364 (unwind_stop_reason_to_string): this.
3365 * frame.h (frame_stop_reason_string): Rename to ...
3366 (unwind_stop_reason_to_string): this.
3367 * stack.c (frame_info): Update call to frame_stop_reason_string.
3368 (backtrace_command_1): Likewise.
3369 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3370 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3371
938f0e2f
AB
33722014-05-30 Andrew Burgess <aburgess@broadcom.com>
3373
3374 * frame.c (remove_prev_frame): New function.
3375 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3376 remove_prev_frame.
3377
a09dd441
PA
33782014-05-29 Pedro Alves <palves@redhat.com>
3379
3380 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3381 and make it const. When a single-step decays to a continue,
3382 clear 'step', not 'hw_step'. Pass whether the caller wanted
3383 to step to user_visible_resume_ptid, not what we ask the
3384 target to do.
3385
bdc36728
PA
33862014-05-29 Pedro Alves <palves@redhat.com>
3387
3388 * infrun.c (process_event_stop_test, handle_step_into_function)
3389 (handle_step_into_function_backward): Adjust.
3390 Don't set the even thread's stop_step and call stop_waiting before
3391 calling end_stepping_range. Instead do that ...
3392 (end_stepping_range): ... here. Take an ecs pointer parameter.
3393
22bcd14b
PA
33942014-05-29 Pedro Alves <palves@redhat.com>
3395
3396 * infrun.c (stop_stepping): Rename to ...
3397 (stop_waiting): ... this.
3398 (proceed): Update comment.
3399 (process_event_stop_test, handle_inferior_event)
3400 (handle_signal_stop, handle_step_into_function)
3401 (handle_step_into_function_backward): Update.
3402
4ae57c05
PA
34032014-05-29 Pedro Alves <palves@redhat.com>
3404
3405 * infcall.c (run_inferior_call): Don't check whether the current
3406 thread is running after the proceed call.
3407
329ea579
PA
34082014-05-29 Pedro Alves <palves@redhat.com>
3409 Tom Tromey <tromey@redhat.com>
3410
3411 * NEWS: Mention "maint set target-async", "set mi-async", and that
3412 background execution commands are now always available.
3413 * target.h (target_async_permitted): Update comment.
3414 * target.c (target_async_permitted, target_async_permitted_1):
3415 Default to 1.
3416 (set_target_async_command): Rename to ...
3417 (maint_set_target_async_command): ... this.
3418 (show_target_async_command): Rename to ...
3419 (maint_show_target_async_command): ... this.
3420 (_initialize_target): Adjust.
3421 * infcmd.c (prepare_execution_command): Make extern.
3422 * inferior.h (prepare_execution_command): Declare.
3423 * infrun.c (set_observer_mode): Leave target async alone.
3424 * mi/mi-interp.c (mi_interpreter_init): Install
3425 mi_on_sync_execution_done as sync_execution_done observer.
3426 (mi_on_sync_execution_done): New function.
3427 (mi_execute_command_input_handler): Don't print the prompt if we
3428 just started a synchronous command with an async target.
3429 (mi_on_resume): Check sync_execution before printing prompt.
3430 * mi/mi-main.h (mi_async_p): Declare.
3431 * mi/mi-main.c: Include gdbcmd.h.
3432 (mi_async_p): New function.
3433 (mi_async, mi_async_1): New globals.
3434 (set_mi_async_command, show_mi_async_command, mi_async): New
3435 functions.
3436 (exec_continue): Call prepare_execution_command.
3437 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3438 (mi_execute_async_cli_command): Use mi_async_p.
3439 (_initialize_mi_main): Install "set mi-async". Make
3440 "target-async" a deprecated alias.
3441
92bcb5f9
PA
34422014-05-29 Pedro Alves <palves@redhat.com>
3443
3444 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3445 (_initialize_cli_interp): Adjust.
3446 * event-loop.c: Include "observer.h".
3447 (start_event_loop): Notify 'command_error' observers instead of
3448 calling display_gdb_prompt. Remove FIXME comment.
3449 * event-top.c (display_gdb_prompt): Remove call into the
3450 interpreters.
3451 * inf-loop.c: Include "observer.h".
3452 (inferior_event_handler): Notify 'command_error' observers instead
3453 of calling display_gdb_prompt.
3454 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3455 observers instead of calling display_gdb_prompt.
3456 * interps.c (interp_set): Don't call display_gdb_prompt.
3457 (current_interp_display_prompt_p): Delete.
3458 * interps.h (interp_prompt_p): Delete declaration.
3459 (interp_prompt_p_ftype): Delete.
3460 (struct interp_procs) <prompt_proc_p>: Delete field.
3461 (current_interp_display_prompt_p): Delete declaration.
3462 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3463 (_initialize_mi_interp): Adjust.
3464 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3465 'command_error' observers.
3466 (tui_on_sync_execution_done, tui_on_command_error): New
3467 functions.
3468 (tui_display_prompt_p): Delete.
3469 (_initialize_tui_interp): Adjust.
3470
fd664c91
PA
34712014-05-29 Pedro Alves <palves@redhat.com>
3472
3473 PR gdb/13860
3474 * cli/cli-interp.c: Include infrun.h and observer.h.
3475 (cli_uiout, cli_interp): New globals.
3476 (cli_on_signal_received, cli_on_end_stepping_range)
3477 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3478 functions.
3479 (cli_interpreter_init): Install them as 'end_stepping_range',
3480 'signal_received' 'signal_exited', 'exited' and 'no_history'
3481 observers.
3482 (_initialize_cli_interp): Remove cli_interp local.
3483 * infrun.c (handle_inferior_event): Call the several stop reason
3484 observers instead of printing the stop reason directly.
3485 (end_stepping_range): New function.
3486 (print_end_stepping_range_reason, print_signal_exited_reason)
3487 (print_exited_reason, print_signal_received_reason)
3488 (print_no_history_reason): Make static, and add an uiout
3489 parameter. Print to that instead of to CURRENT_UIOUT.
3490 * infrun.h (print_end_stepping_range_reason)
3491 (print_signal_exited_reason, print_exited_reason)
3492 (print_signal_received_reason print_no_history_reason): New
3493 declarations.
3494 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3495 'mi_uiout'.
3496 <cli_uiout>: New field.
3497 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3498 uiout for CLI output. Install 'signal_received',
3499 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3500 observers.
3501 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3502 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3503 (mi_on_no_history): New functions.
3504 (ui_out_free_cleanup): Delete function.
3505 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3506 instead use the one already stored in the MI interpreter data.
3507 (mi_ui_out): Adjust.
3508 * tui/tui-interp.c: Include infrun.h and observer.h.
3509 (tui_interp): New global.
3510 (tui_on_signal_received, tui_on_end_stepping_range)
3511 (tui_on_signal_exited, tui_on_exited)
3512 (tui_on_no_history): New functions.
3513 (tui_init): Install them as 'end_stepping_range',
3514 'signal_received' 'signal_exited', 'exited' and 'no_history'
3515 observers.
3516 (_initialize_tui_interp): Delete tui_interp local.
3517
8817a6f2
PA
35182014-05-29 Pedro Alves <palves@redhat.com>
3519
3520 PR gdb/15713
3521 * linux-nat.c (linux_nat_resume_callback): Rename the second
3522 parameter to 'except'. Skip LP if it points to EXCEPT.
3523 (linux_nat_resume): Don't mark the event lwp as not stopped
3524 before resuming sibling lwps. Instead ask
3525 linux_nat_resume_callback to skip the event lwp. Mark it as not
3526 stopped after actually resuming it.
3527 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3528 resuming it.
3529 (wait_lwp): Mark the lwp as stopped here.
3530 (stop_wait_callback): Mark the lwp as not stopped right after
3531 resuming it. Don't mark lwps as stopped here.
3532 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3533 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3534
251bde03
PA
35352014-05-29 Pedro Alves <palves@redhat.com>
3536
3537 PR PR15693
3538 * infrun.c (resume): Determine how much to resume depending on
3539 whether the caller wanted a step, not whether we can hardware step
3540 the target. Mark all threads that we intend to run as running,
3541 unless we're calling an inferior function.
3542 (normal_stop): If the thread is running an infcall, don't finish
3543 thread state.
3544 * target.c (target_resume): Don't mark threads as running here.
3545
7f3c0343
JB
35462014-05-28 Joel Brobecker <brobecker@adacore.com>
3547
3548 * serial.c (_initialize_serial): Remove support for
3549 the "set remotebaud" and "show remotebaud" commands.
3550 * NEWS: Add entry documenting the removal of that command.
3551
ee34b3f9
YQ
35522014-05-28 Yao Qi <yao@codesourcery.com>
3553
3554 * charset.c: Fix typo in comments.
3555
add6c04d
GB
35562014-05-27 Gary Benson <gbenson@redhat.com>
3557
3558 * utils.c (internal_vproblem): Prompt for a bug report.
3559
92c48fc5
AW
35602014-05-26 Andy Wingo <wingo@igalia.com>
3561
3562 * guile/scm-arch.c (arscm_mark_arch_smob):
3563 * guile/scm-block.c (bkscm_mark_block_smob)
3564 (bkscm_mark_block_syms_progress_smob):
3565 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3566 * guile/scm-exception.c (exscm_mark_exception_smob):
3567 * guile/scm-frame.c (frscm_mark_frame_smob):
3568 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3569 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3570 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3571 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3572 (ppscm_mark_pretty_printer_worker_smob):
3573 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3574 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3575 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3576 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3577 mark functions.
3578 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3579 function.
3580
b2715b27
AW
35812014-05-26 Andy Wingo <wingo@igalia.com>
3582 Doug Evans <xdje42@gmail.com>
3583
3584 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3585 empty_base_class. All uses updated.
3586 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3587 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3588 Adapt all callers.
3589 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3590 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3591 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3592 (gdbscm_gsmob_has_property_p, add_property_name)
3593 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3594 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3595 (gdb-object-has-property?, gdb-object-properties): Remove.
3596 (gdb-object-kind): Renamed from gsmob-kind.
3597
214ab2da
AW
35982014-05-26 Andy Wingo <wingo@igalia.com>
3599
3600 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3601 * configure: Regenerate.
3602
589fdceb
MM
36032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3604
3605 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3606
67b5c0c1
MM
36072014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3608
3609 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3610 (replay_memory_access_read_only, replay_memory_access_read_write)
3611 (replay_memory_access_types, replay_memory_access)
3612 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3613 (cmd_set_record_btrace, cmd_show_record_btrace)
3614 (cmd_show_replay_memory_access): New.
3615 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3616 (record_btrace_remove_breakpoint): Replace
3617 record_btrace_allow_memory_access with replay_memory_access.
3618 (_initialize_record_btrace): Add commands.
3619 * NEWS: Announce it.
3620
036cd381
RR
36212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3622
3623 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3624
c77c1e42
RR
36252014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3626
3627 * MAINTAINERS (Write After Approval): Move self back from
3628 paper trail.
3629
45741a9c
PA
36302014-05-22 Pedro Alves <palves@redhat.com>
3631
3632 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3633 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3634 (disable_randomization, enum exec_direction_kind)
3635 (execution_direction, stop_registers, start_remote)
3636 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3637 (wait_for_inferior, normal_stop, get_last_target_status)
3638 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3639 (insert_step_resume_breakpoint_at_sal)
3640 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3641 (set_step_info, print_stop_event, signal_stop_state)
3642 (signal_print_state, signal_pass_state, signal_stop_update)
3643 (signal_print_update, signal_pass_update)
3644 (update_signals_program_target, clear_exit_convenience_vars)
3645 (displaced_step_dump_bytes, update_observer_mode)
3646 (signal_catch_update, gdb_signal_from_command): Move
3647 declarations ...
3648 * infrun.h: ... to this new file.
3649 * amd64-tdep.c: Include infrun.h.
3650 * annotate.c: Include infrun.h.
3651 * arch-utils.c: Include infrun.h.
3652 * arm-linux-tdep.c: Include infrun.h.
3653 * arm-tdep.c: Include infrun.h.
3654 * break-catch-sig.c: Include infrun.h.
3655 * breakpoint.c: Include infrun.h.
3656 * common/agent.c: Include infrun.h instead of inferior.h.
3657 * corelow.c: Include infrun.h.
3658 * event-top.c: Include infrun.h.
3659 * go32-nat.c: Include infrun.h.
3660 * i386-tdep.c: Include infrun.h.
3661 * inf-loop.c: Include infrun.h.
3662 * infcall.c: Include infrun.h.
3663 * infcmd.c: Include infrun.h.
3664 * infrun.c: Include infrun.h.
3665 * linux-fork.c: Include infrun.h.
3666 * linux-nat.c: Include infrun.h.
3667 * linux-thread-db.c: Include infrun.h.
3668 * monitor.c: Include infrun.h.
3669 * nto-tdep.c: Include infrun.h.
3670 * procfs.c: Include infrun.h.
3671 * record-btrace.c: Include infrun.h.
3672 * record-full.c: Include infrun.h.
3673 * remote-m32r-sdi.c: Include infrun.h.
3674 * remote-mips.c: Include infrun.h.
3675 * remote-notif.c: Include infrun.h.
3676 * remote-sim.c: Include infrun.h.
3677 * remote.c: Include infrun.h.
3678 * reverse.c: Include infrun.h.
3679 * rs6000-tdep.c: Include infrun.h.
3680 * s390-linux-tdep.c: Include infrun.h.
3681 * solib-irix.c: Include infrun.h.
3682 * solib-osf.c: Include infrun.h.
3683 * solib-svr4.c: Include infrun.h.
3684 * target.c: Include infrun.h.
3685 * top.c: Include infrun.h.
3686 * windows-nat.c: Include infrun.h.
3687 * mi/mi-interp.c: Include infrun.h.
3688 * mi/mi-main.c: Include infrun.h.
3689 * python/py-threadevent.c: Include infrun.h.
3690
98eb56a4
PA
36912014-05-22 Pedro Alves <palves@redhat.com>
3692
3693 * infrun.c (handle_inferior_event): Store the exit code for
3694 --return-child-result here, instead of ...
3695 (print_exited_reason): ... here.
3696
17b2616c
PA
36972014-05-21 Pedro Alves <palves@redhat.com>
3698
3699 PR gdb/13860
3700 * gdbthread.h (struct thread_control_state): New field
3701 `command_interp'.
3702 * infrun.c (follow_fork): Copy the new thread control field to the
3703 child fork thread.
3704 (clear_proceed_status_thread): Clear the new thread control field.
3705 (proceed): Set the new thread control field.
3706 * interps.h (command_interp): Declare.
3707 * interps.c (command_interpreter): New global.
3708 (command_interp): New function.
3709 (interp_exec): Set `command_interpreter' while here.
3710 * cli-out.c (cli_uiout_dtor): New function.
3711 (cli_ui_out_impl): Install it.
3712 * mi/mi-interp.c: Include cli-out.h.
3713 (mi_cmd_interpreter_exec): Add comment.
3714 (restore_current_uiout_cleanup): New function.
3715 (ui_out_free_cleanup): New function.
3716 (mi_on_normal_stop): If finishing an execution command started by
3717 a CLI command, or any kind of breakpoint-like event triggered,
3718 print the stop event to the output (CLI) stream.
3719 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3720
5166082f
PA
37212014-05-21 Pedro Alves <palves@redhat.com>
3722
3723 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3724 current source line having changed.
3725 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3726 * infrun.c (normal_stop): Adjust call to
3727 set_current_sal_from_frame.
3728 * source.c (clear_lines_listed_range): New function.
3729 (set_current_source_symtab_and_line, identify_source_line): Clear
3730 the lines listed range.
3731 (line_info): Handle the first "info line" after the current source
3732 line having changed.
3733 * stack.c (print_stack_frame): Remove center handling.
3734 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3735 center sal.line.
3736
c1ee2fb3
PA
37372014-05-21 Pedro Alves <palves@redhat.com>
3738
3739 * inf-child.c (inf_child_mourn_inferior): New function.
3740 * inf-child.h (inf_child_mourn_inferior): New declaration.
3741 * darwin-nat.c (darwin_mourn_inferior): Use
3742 inf_child_mourn_inferior.
3743 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3744 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3745 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3746 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3747 * windows-nat.c (windows_mourn_inferior): Likewise.
3748
5c6d4fb2
DE
37492014-05-21 Doug Evans <xdje42@gmail.com>
3750
250748cb 3751 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3752
4a2722c5
DE
37532014-05-21 Doug Evans <xdje42@gmail.com>
3754
17292b30 3755 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3756 (gdbscm_out_of_range_error): Ditto.
3757 (gdbscm_memory_error): Ditto.
250748cb
DE
3758 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3759 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3760 (gdbscm_out_of_range_error): Update.
3761 (gdbscm_memory_error): Update.
3762 (gdbscm_scm_to_target_string_unsafe): Delete.
3763
6a3cb8e8
PA
37642014-05-21 Pedro Alves <palves@redhat.com>
3765
3766 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3767 globals.
3768 (inf_child_open_target): New function.
3769 (inf_child_open): Use inf_child_open_target to push the target
3770 instead of erroring out.
3771 (inf_child_disconnect, inf_child_close)
3772 (inf_child_maybe_unpush_target): New functions.
3773 (inf_child_target): Install inf_child_disconnect and
3774 inf_child_close. Store a pointer to the returned object.
3775 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3776 declarations.
3777 * target.c (auto_connect_native_target): New global.
3778 (show_default_run_target): New function.
3779 (find_default_run_target): Return NULL if automatically connecting
3780 to the native target is disabled.
3781 (_initialize_target): Install set/show auto-connect-native-target.
3782 * NEWS: Mention "set auto-connect-native-target", and "target
3783 native".
3784 * linux-nat.c (super_close): New global.
3785 (linux_nat_close): Call super_close.
3786 (linux_nat_add_target): Store a pointer to the base class's
3787 to_close method.
3788 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3789 inf_child_maybe_unpush.
3790 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3791 already pushed.
3792 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3793 the inferior. Use inf_child_maybe_unpush_target.
3794 (inf_ttrace_attach): Don't push the target if it is already
3795 pushed.
3796 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3797 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3798 after mourning the inferior. Use inf_child_maybe_unpush_target.
3799 (darwin_attach_pid): Don't push the target if it is already
3800 pushed.
3801 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3802 mourning the inferior. Use inf_child_maybe_unpush_target.
3803 (gnu_detach): Use inf_child_maybe_unpush_target.
3804 * go32-nat.c (go32_create_inferior): Don't push the target if it
3805 is already pushed.
3806 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3807 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3808 (procfs_open): Rename to ...
3809 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3810 comments. Can target_preopen before changing node. Call
3811 inf_child_open_target to push the target explicitly.
3812 (procfs_attach): Don't push the target if it is already pushed.
3813 (procfs_detach): Use inf_child_maybe_unpush_target.
3814 (procfs_create_inferior): Don't push the target if it is already
3815 pushed.
3816 (nto_native_ops): New global.
3817 (procfs_open): Reimplement.
3818 (procfs_native_open): New function.
3819 (init_procfs_targets): Install procfs_native_open as to_open of
3820 "target native". Store a pointer to the "native" target in
3821 nto_native_ops.
3822 * procfs.c (procfs_attach): Don't push the target if it is already
3823 pushed.
3824 (procfs_detach): Use inf_child_maybe_unpush_target.
3825 (procfs_mourn_inferior): Only unpush the target after mourning the
3826 inferior. Use inf_child_maybe_unpush_target.
3827 (procfs_init_inferior): Don't push the target if it is already
3828 pushed.
3829 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3830 if it is already pushed.
3831
930ee1b1
PA
38322014-05-21 Pedro Alves <palves@redhat.com>
3833
3834 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3835 and "procfs" targets are now called "native" instead.
3836
1f5d1b13
PA
38372014-05-21 Pedro Alves <palves@redhat.com>
3838
3839 * go32-nat.c (go32_open): Delete.
3840 (go32_target): Don't override the to_open method.
3841
132f8e03
PA
38422014-05-21 Pedro Alves <palves@redhat.com>
3843
3844 * nto-procfs.c (procfs_can_run): New function.
3845 (nto_procfs_ops): New global.
3846 (init_procfs_targets): New, based on procfs_target. Install
3847 "target native" in addition to "target procfs".
3848 (_initialize_procfs): Call init_procfs_targets instead of adding
3849 the target here.
3850
03c136c3
PA
38512014-05-21 Pedro Alves <palves@redhat.com>
3852
3853 * windows-nat.c (windows_target): Don't override to_shortname,
3854 to_longname or to_doc.
3855
a635d0f3
PA
38562014-05-21 Pedro Alves <palves@redhat.com>
3857
3858 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3859 to_doc.
3860
4f9b5133
PA
38612014-05-21 Pedro Alves <palves@redhat.com>
3862
3863 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3864 to_shortname, to_longname or to_doc.
3865
bc85afde
PA
38662014-05-21 Pedro Alves <palves@redhat.com>
3867
3868 * go32-nat.c (go32_target): Don't override to_shortname,
3869 to_longname or to_doc.
3870
4ebfc96e
PA
38712014-05-21 Pedro Alves <palves@redhat.com>
3872
3873 * inf-child.c (inf_child_open): Remove mention of "child".
3874 (inf_child_target): Rename target to "native" instead of "child".
3875
2648dfed
AA
38762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3877
3878 * Makefile.in (SFILES): Delete "regset.c".
3879 (COMMON_OBS): Delete "regset.o".
3880 * regset.c: Remove.
3881 * regset.h (regset_alloc): Delete prototype.
3882
b13feb94
AA
38832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3884
3885 * sparc-linux-tdep.c (sparc32_linux_gregset)
3886 (sparc32_linux_fpregset): New static regset structures.
3887 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3888 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3889 'fpregset' fields.
3890 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3891 (sparc64_linux_fpregset): New static regset structures.
3892 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3893 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3894 New static regset structures.
3895 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3896 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3897 New static regset structures.
3898 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3899 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3900 New static regset structures.
3901 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3902 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3903 New static regset structures.
3904 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3905
b4fd25c9
AA
39062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3907
3908 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3909 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3910 register maps ("regmaps") from "*regset" to "*regmap". Do this
3911 for all regmap types and variables.
3912 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3913 (sparc32_linux_supply_core_gregset)
3914 (sparc32_linux_collect_core_gregset)
3915 (sparc32_linux_supply_core_fpregset)
3916 (sparc32_linux_collect_core_fpregset): Likewise.
3917 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3918 (sparc_gregmap, sparc_fpregmap): ... these.
3919 (sparc_supply_gregset, sparc_collect_gregset)
3920 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3921 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3922 (_initialize_sparc_nat): Rename regmaps.
3923 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3924 (sparc_gregmap, sparc_fpregmap): ... these.
3925 (sparc_supply_gregset, sparc_collect_gregset)
3926 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3927 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3928 Rename macros to...
3929 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3930 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3931 Likewise.
3932 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3933 Rename to...
3934 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3935 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3936 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3937 regmaps.
3938 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3939 (sparc32_bsd_fpregset): Rename to...
3940 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3941 (sparc32_bsd_fpregmap): ... these.
3942 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3943 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3944 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3945 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3946 (struct sparc_gregmap, struct sparc_fpregmap)
3947 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3948 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3949 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3950 (sparc32_supply_regset, sparc32_collect_gregset)
3951 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3952 prototypes.
3953 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3954 (sparc64_linux_ptrace_gregmap): ... this.
3955 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3956 (_initialize_sparc64_linux_nat): Rename regmaps.
3957 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3958 (sparc64_linux_core_gregmap): ... this.
3959 (sparc64_linux_supply_core_gregset)
3960 (sparc64_linux_collect_core_gregset)
3961 (sparc64_linux_supply_core_fpregset)
3962 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3963 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3964 (sparc64_sol2_fpregset): Rename to...
3965 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3966 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3967 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3968 regmaps.
3969 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3970 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3971 (sparc64_bsd_fpregset): Rename to...
3972 (struct sparc_gregmap, sparc64_sol2_gregmap)
3973 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3974 (sparc64_bsd_fpregmap): ... these.
3975 (sparc64_supply_gregset, sparc64_collect_gregset)
3976 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3977 prototypes.
3978 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3979 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3980 (sparc64fbsd_gregmap): ... this.
3981 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3982 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3983 Rename regmaps.
3984 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3985 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3986 (sparc64nbsd_collect_fpregset): Likewise.
3987 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3988 (sparc64nbsd_gregmap): ... this.
3989 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3990 regmaps.
3991 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3992 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3993 (sparc64obsd_gregmap): ... this.
3994 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3995 regmaps.
3996 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3997 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3998 (sparc32nbsd_gregmap): ... this.
3999 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4000 regmaps.
4001
8fea3224
AA
40022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4003
4004 * score-tdep.c (score7_linux_gregset): New static regset
4005 structure.
4006 (score7_linux_regset_from_core_section): Remove dynamic regset
4007 allocation.
4008 (score_gdbarch_init): Drop allocation of tdep structure.
4009 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4010
24534243
AA
40112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4012
4013 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4014 regset structures.
4015 (am33_regset_from_core_section): Remove dynamic regset
4016 allocations.
4017
b7195f27
AA
40182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4019
4020 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4021 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4022 structures.
4023 (mips_linux_regset_from_core_section): Remove dynamic regset
4024 allocations.
4025 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4026 'gregset64', 'fpregset', and 'fpregset64'.
4027 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4028 deleted tdep fields.
4029
ecc37a5a
AA
40302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4031
4032 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4033 regset structures.
4034 (amd64_regset_from_core_section): Remove dynamic regset
4035 allocations.
4036 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4037 structure.
4038 (amd64obsd_regset_from_core_section): Remove dynamic regset
4039 allocation.
4040 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4041 Likewise.
4042 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4043 x86-common regset supply function.
4044 * i386-tdep.c (i386_collect_gregset): Make static.
4045 (i386_gregset): New global regset structure.
4046 (i386_fpregset, i386_xstateregset): New static regset structures.
4047 (i386_regset_from_core_section): Remove dynamic regset
4048 allocations.
4049 (i386_gdbarch_init): Remove initialization of tdep fields
4050 'gregset', 'fpregset', and 'xstateregset'.
4051 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4052 'fpregset', and 'xstateregset'.
4053 (i386_collect_gregset): Remove prototype.
4054 (i386_gregset): New declaration.
4055 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4056 structure.
4057 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4058 allocation.
4059
b7611c43
AA
40602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4061
4062 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4063 (arm_linux_vfpregset): New static regset structures.
4064 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4065 regset structures.
4066 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4067 and 'vfpregset' fields.
4068
a069a2bd
AA
40692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4070
4071 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4072 (aarch64_linux_fpregset): New static regset structures.
4073 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4074 of regset structures.
4075 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4076 'fpregset' fields.
4077
09424cff
AA
40782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4079
4080 * regset.h (struct regset): Remove gdbarch field.
4081 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4082 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4083 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4084 Likewise.
4085 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4086 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4087 (ppc32_linux_vsxregset): Likewise.
4088 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4089 via the regcache instead of the regset.
4090 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4091 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4092 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4093 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4094 Likewise.
4095
3ca7dae4
AA
40962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4097
4098 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4099 Constify structures.
4100 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4101 (alphanbsd_aout_gregset): Likewise.
4102 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4103 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4104 Likewise.
4105 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4106 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4107 Likewise.
4108 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4109 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4110 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4111 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4112 * m88k-tdep.c (m88k_gregset): Likewise.
4113 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4114 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4115 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4116 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4117 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4118 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4119 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4120 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4121 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4122 Likewise.
4123 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4124 * sh-tdep.h (sh_corefile_gregset): Likewise.
4125 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4126 * vax-tdep.c (vax_gregset): Likewise.
4127
5876f503
JK
41282014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4129
4130 Fix TLS access for -static -pthread.
4131 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4132 (try_thread_db_load_1): Initialize it.
4133 (thread_db_get_thread_local_address): Call it if LM is zero.
4134 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4135 * target.h (struct target_ops) (to_get_thread_local_address): Add
4136 load_module_addr comment.
4137
0256a6ac
PA
41382014-05-21 Pedro Alves <palves@redhat.com>
4139
4140 * dcache.c (dcache_read_memory_partial): If reading the cache line
4141 fails, fallback to reading just the memory the caller wanted.
4142
227533ac
DE
41432014-05-20 Doug Evans <dje@google.com>
4144
4145 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4146 instead of get_current_arch.
4147
936d2992
PA
41482014-05-20 Pedro Alves <palves@redhat.com>
4149
4150 * NEWS: Mention that compare-sections now works with all targets.
4151
4152 * remote.c (PACKET_qCRC): New enum value.
4153 (remote_verify_memory): Don't send qCRC if the target has no
4154 execution. Use packet_support/packet_ok. If the target doesn't
4155 support the qCRC packet, fallback to a deep memory copy.
4156 (compare_sections_command): Say "target image" instead of "remote
4157 executable".
4158 (_initialize_remote): Add PACKET_qCRC to the list of config
4159 packets that have no associated command. Extend comment.
4160 * target.c (simple_verify_memory, default_verify_memory): New
4161 function.
4162 * target.h (struct target_ops) <to_verify_memory>: Default to
4163 default_verify_memory.
4164 (simple_verify_memory): New declaration.
4165 * target-delegates.c: Regenerate.
4166
e59fa00f
MM
41672014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4168
4169 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4170
f2205de0
HZ
41712014-05-20 Hui Zhu <hui@codesourcery.com>
4172 Yao Qi <yao@codesourcery.com>
4173
4174 PR backtrace/16558
4175 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4176 and change address of sp and pc.
4177
c4e54771
TT
41782014-05-19 Tom Tromey <tromey@redhat.com>
4179
4180 * gdbtypes.c (rank_function): Use XNEWVEC.
4181 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4182
73051182
DE
41832014-05-19 Doug Evans <dje@google.com>
4184
4185 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4186 build_type_unit_groups and moved closer to only caller. Remove
4187 arguments. All references updated. Remove outdated .gdb_index
4188 comment.
4189 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4190 build_type_psymtabs_1.
4191
8832e7e3
DE
41922014-05-19 Doug Evans <dje@google.com>
4193
4194 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4195 n_type_unit_groups, all_type_unit_groups. All uses removed.
4196 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4197 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4198 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4199 (add_type_unit_group_to_table): Delete.
4200
cd8ae15e
DE
42012014-05-19 Doug Evans <dje@google.com>
4202
4203 * eval.c (evaluate_subexp_standard): Add some comments.
4204
08f4850b
DE
42052014-05-17 Doug Evans <xdje42@gmail.com>
4206
4207 * progspace.c (remove_program_space): Delete, unused.
4208 * progspace.h (remove_program_space): Ditto.
4209
bed8455c
DE
42102014-05-17 Doug Evans <xdje42@gmail.com>
4211
4212 * inferior.c (prune_inferiors): Fix comment.
4213 (remove_inferior_command): Call prune_program_spaces.
4214
8d551b02
DE
42152014-05-16 Doug Evans <dje@google.com>
4216
4217 New command line option -D.
4218 * NEWS: Mention it.
4219 * main.c (set_gdb_data_directory): New function.
4220 (captured_main): Recognize -D. Flag error for --data-directory "".
4221 Call set_gdb_data_directory.
4222 (print_gdb_help): Print --data-directory, -D.
4223 * main.h (set_gdb_data_directory): Declare.
4224 * top.c (staged_gdb_datadir): New static global.
4225 (set_gdb_datadir): Call set_gdb_data_directory
4226 (show_gdb_datadir): New function.
4227 (init_main): Update init of data-directory parameter.
4228
18848e28
GF
42292014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4230
4231 Import the "dirfd" gnulib module.
4232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4233 * gnulib/aclocal.m4: Update.
4234 * gnulib/config.in: Update.
4235 * gnulib/configure: Update.
4236 * gnulib/import/Makefile.am: Update.
4237 * gnulib/import/Makefile.in: Update.
4238 * gnulib/import/dirfd.c: New.
4239 * gnulib/import/m4/dirfd.m4: New.
4240 * gnulib/import/m4/gnulib-cache.m4: Update.
4241 * gnulib/import/m4/gnulib-comp.m4: Update.
4242
95c64f92
YQ
42432014-05-16 Pierre Muller <muller@sourceware.org>
4244 Yao Qi <yao@codesourcery.com>
4245
4246 * valprint.c (print_wchar): Move the code on checking whether
4247 W is a printable wide char to the default branch of switch
4248 statement below. Call wchar_printable instead of gdb_iswprint.
4249
cac395ea
TM
42502014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4251
19679eca 4252 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4253 ldr.w and ldrd instructions.
4254
83655187
DE
42552014-05-15 Doug Evans <dje@google.com>
4256
4257 * dwarf2read.c (read_structure_type): Delete outdated comments.
4258
dd756689
TT
42592014-05-14 Tom Tromey <tromey@redhat.com>
4260
4261 * macrocmd.c (print_macro_definition): Reindent.
4262
75ddda77
DE
42632014-05-13 Doug Evans <xdje42@gmail.com>
4264
4265 * python/py-cmd.c (cmdpy_completer): Add comment.
4266 (completers): Make const.
4267
b0f16a3e
SM
42682014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4269
4270 * infrun.c (resume): Remove should_resume (unused). Move up
4271 declaration of resume_ptid.
4272
033c3379
TT
42732014-05-13 Tom Tromey <tromey@redhat.com>
4274
4275 * language.h (unop_type_check): Remove.
4276 (binop_type_check): Don't declare.
4277
9b44a3a5
AA
42782014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4279
4280 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4281 call to regcache_raw_collect.
4282
303a33fa
SM
42832014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4284
4285 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4286 mi_console->quote as the quoting character.
4287
196100a0
SM
42882014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4289
4290 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4291
f989a1c8
TT
42922014-04-29 Tom Tromey <tromey@redhat.com>
4293
4294 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4295 "show debug varobj".
4296
9404b58f
KM
42972014-05-07 Kyle McMartin <kyle@redhat.com>
4298
4299 Pushed by Joel Brobecker <brobecker@adacore.com>.
4300 * aarch64-tdep.c (aarch64_software_single_step): New function.
4301 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4302 with aarch64_software_single_step.
4303
5e49ba57
JB
43042014-05-05 Joel Brobecker <brobecker@adacore.com>
4305
4306 GDB 7.7.1 released.
4307
c888a17d
KS
43082014-05-05 Keith Seitz <keiths@redhat.com>
4309
4310 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4311 variable or history value is successfully parsed.
4312
290a839c
YQ
43132014-05-05 Yao Qi <yao@codesourcery.com>
4314 Pedro Alves <palves@redhat.com>
4315
4316 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4317 address of blocks that intersects the requested range. Trim
4318 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4319 sections.
4320 * ctf.c (ctf_xfer_partial): Likewise.
4321
91256dc2
YQ
43222014-05-05 Yao Qi <yao@codesourcery.com>
4323
4324 * printcmd.c (display_command): Remove the check to
4325 target_has_execution.
4326
07284463
MK
43272014-05-03 Mark Kettenis <kettenis@gnu.org>
4328
4329 * ppcobsd-nat.c: Include "obsd-nat.h".
4330 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4331 add_target.
4332 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4333
30a1e6cc
SDJ
43342014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4335
4336 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4337 and 16-bit signed and unsigned arguments. Update comment.
4338 (stap_parse_probe_arguments): Extend code to handle such
4339 arguments. Use warning instead of complaint to notify about
4340 unrecognized bitness.
4341
f33da99a
SDJ
43422014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4343
4344 PR breakpoints/16889
4345 * stap-probe.c (stap_parse_probe_arguments): Simplify
4346 check for non-prefixed probes (i.e., probes whose
4347 arguments do not start with "N@"). Always set the
4348 argument type to a sane value.
4349
95cf3b38
DT
43502014-05-01 David Taylor <dtaylor@emc.com>
4351
4352 * remote.c (compare_sections_command): Add -r option to compare
4353 all loadable read-only sections.
4354
1cfdf534
SC
43552014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4356
4357 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4358 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4359 Update all callers.
4360 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4361 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4362 Remove unused CORE_ADDR argument. Update all callers.
4363
ca4f7f8b
PA
43642014-04-29 Pedro Alves <palves@redhat.com>
4365
4366 * remote.c (struct packet_config) <detect>: Extend comment.
4367 (add_packet_config_cmd): Don't set the config's detect or support
4368 fields here.
4369 (init_all_packet_configs): Also initialize the config's 'detect'
4370 field.
4371 (reset_all_packet_configs_support): New function.
4372 (remote_open_1): Call reset_all_packet_configs_support instead of
4373 init_all_packet_configs.
4374 (_initialize_remote): Initialize all packet configs. Assert that
4375 all packets have an associated command, except a few known
4376 outliers.
4377
11c1ba78
JB
43782014-04-28 Joel Brobecker <brobecker@adacore.com>
4379
4380 * dwarf2read.c (read_subrange_type): Handle dynamic
4381 DW_AT_lower_bound attributes.
4382
8739bc53
JB
43832014-04-28 Joel Brobecker <brobecker@adacore.com>
4384
4385 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4386 dynamic bounds before computing its upper bound.
4387 (ada_discrete_type_low_bound): Same as above with the lower bound.
4388
6f8a3220
JB
43892014-04-28 Joel Brobecker <brobecker@adacore.com>
4390
4391 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4392 range types. Adjust the array handling implementation to
4393 take advantage of this change.
4394 (resolve_dynamic_range): New function, mostly extracted from
4395 resolve_dynamic_bounds.
4396 (resolve_dynamic_array): New function, mostly extracted from
4397 resolve_dynamic_bounds.
4398 (resolve_dynamic_bounds): Delete.
4399 (resolve_dynamic_type): Reimplement. Add handling of
4400 TYPE_CODE_RANGE types.
4401
4d072ce4
JB
44022014-04-28 Joel Brobecker <brobecker@adacore.com>
4403
4404 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4405 handling of parallel ___XA types.
4406
52865325
JB
44072014-04-28 Joel Brobecker <brobecker@adacore.com>
4408
4409 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4410 unnecessary second call to static_unwrap_type.
4411
433e77fa
HZ
44122014-04-27 Hui Zhu <hui@codesourcery.com>
4413
4414 * stack.c (print_frame_info): Call do_gdb_disassembly with
4415 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4416
b51a69ee
DE
44172014-04-26 Doug Evans <xdje42@gmail.com>
4418
4419 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4420
7ae1a6a6
PA
44212014-04-25 Pedro Alves <palves@redhat.com>
4422
4423 PR server/16255
4424 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4425 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4426 and newline from built string.
4427 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4428 (linux_ptrace_attach_fail_reason): ... this.
4429 * linux-nat.c (linux_nat_attach): Adjust to use
4430 linux_ptrace_attach_fail_reason.
4431
4082afcc
PA
44322014-04-25 Pedro Alves <palves@redhat.com>
4433
4434 * remote.c (struct remote_state): Remove multi_process_aware,
4435 non_stop_aware, cond_tracepoints, cond_breakpoints,
4436 breakpoint_commands, fast_tracepoints, static_tracepoints,
4437 install_in_trace, disconnected_tracing,
4438 enable_disable_tracepoints, string_tracing, and
4439 augmented_libraries_svr4_read fields.
4440 (remote_multi_process_p): Move further below in the file.
4441 (struct packet_config): Add comments.
4442 (update_packet_config): Delete function.
4443 (show_packet_config_cmd): Use packet_config_support.
4444 (add_packet_config_cmd): Use NULL as set callback.
4445 (packet_ok): "set remote foo-packet"-style commands no longer
4446 change config->supported -- adjust.
4447 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4448 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4449 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4450 (PACKET_QNonStop, PACKET_multiprocess_feature)
4451 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4452 (PACKET_DisconnectedTracing_feature)
4453 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4454 (set_remote_protocol_packet_cmd): Delete function.
4455 (packet_config_support, packet_support): New functions.
4456 (set_remote_protocol_Z_packet_cmd): Don't call
4457 update_packet_config.
4458 (remote_query_attached, remote_pass_signals)
4459 (remote_program_signals, remote_threads_info)
4460 (remote_threads_extra_info, remote_start_remote): Use
4461 packet_support.
4462 (remote_start_remote): Use packet_config_support and
4463 packet_support.
4464 (init_all_packet_configs): Set all packets to unknown support,
4465 instead of calling update_packet_config.
4466 (remote_check_symbols): Use packet_support.
4467 (remote_supported_packet): Unconditionally set the packet config's
4468 support status.
4469 (remote_multi_process_feature, remote_non_stop_feature)
4470 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4471 (remote_breakpoint_commands_feature)
4472 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4473 (remote_install_in_trace_feature)
4474 (remote_disconnected_tracing_feature)
4475 (remote_enable_disable_tracepoint_feature)
4476 (remote_string_tracing_feature)
4477 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4478 (remote_protocol_features): Adjust to use remote_supported_packet
4479 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4480 "ConditionalTracepoints", "ConditionalBreakpoints",
4481 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4482 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4483 "EnableDisableTracepoints", and "tracenz".
4484 (remote_query_supported): Use packet_support.
4485 (remote_open_1): Adjust.
4486 (extended_remote_attach_1): Use packet_support. Switch on the
4487 result of packet_ok instead of checking whether the packet ended
4488 up disabled.
4489 (remote_vcont_resume): Use packet_support.
4490 (remote_resume, remote_stop_ns, fetch_register_using_p)
4491 (remote_prepare_to_store, store_register_using_P)
4492 (check_binary_download, remote_write_bytes): Use packet_support.
4493 (remote_vkill): Use packet_support. Switch on the result of
4494 packet_ok instead of checking whether the packet ended up
4495 disabled.
4496 (extended_remote_supports_disable_randomization): Use
4497 packet_support.
4498 (extended_remote_run): Switch on the result of packet_ok instead
4499 of checking whether the packet ended up disabled.
4500 (remote_insert_breakpoint, remote_remove_breakpoint)
4501 (remote_insert_watchpoint, remote_remove_watchpoint)
4502 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4503 packet_support.
4504 (remote_search_memory): Use packet_config_support.
4505 (remote_get_thread_local_address, remote_get_tib_address)
4506 (remote_hostio_send_command, remote_can_execute_reverse): Use
4507 packet_support.
4508 (remote_supports_cond_tracepoints)
4509 (remote_supports_cond_breakpoints)
4510 (remote_supports_fast_tracepoints)
4511 (remote_supports_static_tracepoints)
4512 (remote_supports_install_in_trace)
4513 (remote_supports_enable_disable_tracepoint)
4514 (remote_supports_string_tracing)
4515 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4516 the packet config says the feature is enabled or disabled.
4517 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4518 (remote_get_trace_status): Use packet_support.
4519 (remote_set_disconnected_tracing): Adjust to check whether the
4520 feature is enabled with packet_support.
4521 (remote_set_trace_buffer_size, remote_use_agent)
4522 (remote_can_use_agent, remote_supports_btrace): Use
4523 packet_support.
4524 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4525 Use packet_config_support.
4526 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4527 the packet config says the feature is enabled or disabled.
4528 (set_range_stepping): Use packet_support.
4529
bdb52a22
TT
45302014-04-25 Tom Tromey <tromey@redhat.com>
4531
4532 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4533 argument.
4534
e9475ead
SA
45352014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4536
4537 * NEWS: Mention support for C99 variable length arrays.
4538
82eacd52
JB
45392014-04-24 Joel Brobecker <brobecker@adacore.com>
4540
4541 * ada-lang.c (standard_exc): Expand introductory comment.
4542
01f9f808
MS
45432014-04-24 Michael Sturm <michael.sturm@mintel.com>
4544 Walfred Tedeschi <walfred.tedeschi@intel.com>
4545
4546 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4547 AVX512 registers.
4548 (amd64_linux_read_description): Add code to handle AVX512 xstate
4549 mask and return respective tdesc.
4550 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4551 and features/i386/x32-avx512-linux.c.
4552 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4553 (amd64_linux_core_read_description): Add code to handle AVX512
4554 xstate mask and return respective tdesc.
4555 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4556 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4557 calculation.
4558 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4559 (tdesc_amd64_avx512_linux): New prototype.
4560 (tdesc_x32_avx512_linux): Likewise.
4561 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4562 features/i386/x32-avx512.c.
4563 (amd64_ymm_avx512_names): New register names for pseudo
4564 registers YMM16-31.
4565 (amd64_ymmh_avx512_names): New register names for raw registers
4566 YMMH16-31.
4567 (amd64_k_names): New register names for K registers.
4568 (amd64_zmmh_names): New register names for ZMM raw registers.
4569 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4570 (amd64_xmm_avx512_names): New register names for XMM16-31
4571 registers.
4572 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4573 registers.
4574 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4575 if feature is present.
4576 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4577 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4578 (AMD64_NUM_REGS): Adjust to new number of registers.
4579 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4580 registers supplied via XSTATE by AVX512 registers.
4581 (i386_linux_read_description): Add case for AVX512.
4582 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4583 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4584 (i386_linux_core_read_description): Add case for AVX512.
4585 (i386_linux_init_abi): Install supported register note section
4586 for AVX512.
4587 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4588 AVX512.
4589 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4590 registers to be number of zmm7h + 1.
4591 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4592 * i386-tdep.c: Include features/i386/i386-avx512.c.
4593 (i386_zmm_names): Add ZMM pseudo register names array.
4594 (i386_zmmh_names): Add ZMM raw register names array.
4595 (i386_k_names): Add K raw register names array.
4596 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4597 registers. AVX512 has 16 more ZMM registers than there are YMM
4598 registers.
4599 (i386_zmmh_regnum_p): Add function to look up register number of
4600 ZMM raw registers.
4601 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4602 (i386_k_regnum_p): Likewise for K raw registers.
4603 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4604 registers added by AVX512.
4605 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4606 registers added by AVX512.
4607 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4608 added by AVX512.
4609 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4610 (i386_pseudo_register_name): Add ZMM pseudo registers.
4611 (i386_zmm_type): Construct and return vector registers type for ZMM
4612 registers.
4613 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4614 ZMM0-31 pseudo registers and K registers.
4615 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4616 and YMM16-31 registers from register cache.
4617 (i386_pseudo_register_write): Add code to write K, ZMM and
4618 YMM16-31 registers.
4619 (i386_register_reggroup_p): Add code to include/exclude AVX512
4620 registers in/from respective register groups.
4621 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4622 registers if feature is present in xcr0.
4623 (i386_gdbarch_init): Add code to initialize AVX512 feature
4624 variables in tdep structure, wire in pseudo registers and call
4625 initialize_tdesc_i386_avx512.
4626 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4627 variables.
4628 (i386_regnum): Add AVX512 registers.
4629 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4630 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4631 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4632 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4633 512 bits wide.
4634 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4635 (i386_ymm_avx512_regnum_p): Likewise.
4636 (i386_k_regnum_p): Likewise.
4637 (i386_zmm_regnum_p): Likewise.
4638 (i386_zmmh_regnum_p): Likewise.
4639 * i387-tdep.c : Update year in copyright notice.
4640 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4641 XSAVE buffer.
4642 (XSAVE_YMM_AVX512_ADDR): New macro.
4643 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4644 XSAVE buffer.
4645 (XSAVE_XMM_AVX512_ADDR): New macro.
4646 (xsave_avx512_k_offset): New table for K register offsets in
4647 XSAVE buffer.
4648 (XSAVE_AVX512_K_ADDR): New macro.
4649 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4650 in XSAVE buffer.
4651 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4652 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4653 buffer.
4654 (i387_collect_xsave): Add code to collect AVX512 registers from
4655 XSAVE buffer.
4656 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4657 of XMM16-31 registers.
4658 (I387_NUM_K_REGS): New define for number of K registers.
4659 (I387_K0_REGNUM): New define for K0 register number.
4660 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4661 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4662 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4663 registers.
4664 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4665 (I387_XMM16_REGNUM): New define for XMM16 register number.
4666 (I387_YMM0_REGNUM): New define for YMM0 register number.
4667 (I387_KEND_REGNUM): New define for last K register number.
4668 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4669 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4670 number.
4671 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4672 number.
4673 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4674 size.
4675 * features/Makefile: Add AVX512 related files.
4676 * features/i386/32bit-avx512.xml: New file.
4677 * features/i386/64bit-avx512.xml: Likewise.
4678 * features/i386/amd64-avx512-linux.c: Likewise.
4679 * features/i386/amd64-avx512-linux.xml: Likewise.
4680 * features/i386/amd64-avx512.c: Likewise.
4681 * features/i386/amd64-avx512.xml: Likewise.
4682 * features/i386/i386-avx512-linux.c: Likewise.
4683 * features/i386/i386-avx512-linux.xml: Likewise.
4684 * features/i386/i386-avx512.c: Likewise.
4685 * features/i386/i386-avx512.xml: Likewise.
4686 * features/i386/x32-avx512-linux.c: Likewise.
4687 * features/i386/x32-avx512-linux.xml: Likewise.
4688 * features/i386/x32-avx512.c: Likewise.
4689 * features/i386/x32-avx512.xml: Likewise.
4690 * regformats/i386/amd64-avx512-linux.dat: New file.
4691 * regformats/i386/amd64-avx512.dat: Likewise.
4692 * regformats/i386/i386-avx512-linux.dat: Likewise.
4693 * regformats/i386/i386-avx512.dat: Likewise.
4694 * regformats/i386/x32-avx512-linux.dat: Likewise.
4695 * regformats/i386/x32-avx512.dat: Likewise.
4696 * NEWS: Add note about new support for AVX512.
4697
4698
08351840
PA
46992014-04-23 Pedro Alves <palves@redhat.com>
4700
4701 * breakpoint.c (insert_bp_location): Tolerate errors if the
4702 breakpoint is set in a user-loaded objfile.
4703 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4704 location is marked shlib_disabled. If the breakpoint is set in a
4705 user-loaded objfile is a GDB-side memory breakpoint, validate it
4706 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4707 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4708 flag.
4709 * mem-break.c (memory_validate_breakpoint): New function.
4710 * objfiles.c (userloaded_objfile_contains_address_p): New
4711 function.
4712 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4713 * target.h (memory_validate_breakpoint): New declaration.
4714
076855f9
PA
47152014-04-23 Pedro Alves <palves@redhat.com>
4716
4717 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4718 the breakpoint is set in a shared library, only suppress
4719 errors for software breakpoints, not hardware breakpoints.
4720
483805cf
PA
47212014-04-22 Pedro Alves <palves@redhat.com>
4722
4723 * infrun.c (schedlock_applies): New function, factored out from
4724 find_thread_needs_step_over.
4725 (find_thread_needs_step_over): Use it.
4726 (switch_back_to_stepped_thread): Always clear trap_expected if the
4727 step over is finished. Return early if scheduler locking applies.
4728 Look for the stepping thread and a potential step-over thread with
4729 a single loop.
4730 (currently_stepping_or_nexting_callback): Delete.
4731
a75fef0e
NC
47322014-04-22 Nick Clifton <nickc@redhat.com>
4733
4734 * NEWS: Mention that ARM sim now supports tracing.
4735
48b6e87e
YQ
47362014-04-22 Yao Qi <yao@codesourcery.com>
4737
4738 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4739 to ...
4740 * tracefile.c (tracefile_fetch_registers): ... it. New
4741 function.
4742 * tracefile.h (tracefile_fetch_registers): Declare.
4743 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4744 tracefile_fetch_registers.
4745
17617f2d
EZ
47462014-04-19 Eli Zaretskii <eliz@gnu.org>
4747
4748 PR gdb/14018
4749 * windows-nat.c (thread_rec): Don't display a warning when
4750 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4751 fails for any reason, set th->suspended to -1, so that we don't
4752 try to resume such a thread. Also, don't return NULL in these
4753 cases, to avoid completely ruin the session due to "PC register is
4754 not available" error.
4755 (do_windows_fetch_inferior_registers): Check errors in
4756 GetThreadContext call.
4757 (windows_continue): Accept an additional argument KILLED; if not
4758 zero, ignore errors in the SetThreadContext call, since the
4759 inferior was killed and is shutting down.
4760 (windows_resume, get_windows_debug_event)
4761 (windows_create_inferior, windows_mourn_inferior)
4762 (windows_kill_inferior): All callers of windows_continue changed
4763 to adjust to its new calling sequence.
4764
5723a6fd
YQ
47652014-04-19 Yao Qi <yao@codesourcery.com>
4766
4767 * ctf.c (ctf_open): Call post_create_inferior.
4768
614d5099
YQ
47692014-04-19 Yao Qi <yao@codesourcery.com>
4770
4771 * ctf.c (handle_id): New static variable.
4772 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4773 value. Get the declaration of event "register" and get length
4774 of field "contents".
4775
dac3e710
YQ
47762014-04-19 Yao Qi <yao@codesourcery.com>
4777
4778 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4779
2bca57ba
SC
47802014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4781
4782 * valops.c (oload_method_static): Remove unnecessary argument
4783 METHOD. Update all callers.
4784
51d48146
PA
47852014-04-18 Pedro alves <palves@redhat.com>
4786 Tom Tromey <tromey@redhat.com>
4787
4788 PR backtrace/15558
4789 * frame.c (get_prev_frame_1): Rename to ...
4790 (get_prev_frame_always): ... this, and make extern. Adjust.
4791 (skip_artificial_frames): Use get_prev_frame_always.
4792 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4793 (get_frame_unwind_stop_reason): Adjust to rename.
4794 * frame.h (get_prev_frame_always): Declare.
4795 * inline-frame.c: Include frame.h.
4796 (inline_frame_this_id): Use get_prev_frame_always.
4797
1bdad2e0
TG
47982014-04-18 Tristan Gingold <gingold@adacore.com>
4799
4800 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4801 code by using bfd_mach_o_get_base_address.
4802
7ce16bd4
UW
48032014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4804
4805 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4806 (spu_ax_pseudo_register_collect): New function.
4807 (spu_ax_pseudo_register_push_stack): Likewise.
4808 (spu_dwarf_reg_to_regnum): Likewise.
4809 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4810
2ed3c037
UW
48112014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4812
4813 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4814 Replace FRAME argument with FRAME_ID.
4815 * gdbarch.c, gdbarch.h: Regenerate.
4816 * findvar.c (default_value_from_register): Add GDBARCH argument;
4817 replace FRAME by FRAME_ID. No longer call get_frame_id.
4818 (value_from_register): Update call to gdbarch_value_from_register.
4819 * value.h (default_value_from_register): Update prototype.
4820 * s390-linux-tdep.c (s390_value_from_register): Update interface
4821 and call to default_value_from_register.
4822 * spu-tdep.c (spu_value_from_register): Likewise.
4823
4824 * findvar.c (address_from_register): Remove TYPE argument.
4825 Do not call value_from_register; use gdbarch_value_from_register
4826 with null_frame_id instead.
4827 * value.h (address_from_register): Update prototype.
4828 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4829 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4830 address_from_register interface change.
4831
71e50e83
YQ
48322014-04-17 Yao Qi <yao@codesourcery.com>
4833
4834 * gdbtypes.h: Update comments to link to types and macros'
4835 definitions.
4836
7a23c549
SC
48372014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4838
4839 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4840
22869d73
KS
48412014-04-16 Keith Seitz <keiths@redhat.com>
4842
4843 PR gdb/15827
4844 * dwarf2read.c (skip_one_die): Check that all relative-offset
4845 sibling DIEs fall within range of the current reader's buffer.
4846 (read_partial_die): Likewise.
4847
c4f87ca6
KS
48482014-04-16 Keith Seitz <keiths@redhat.com>
4849
4850 PR c++/16597
4851 * cp-namespace.c (lookup_symbol_file): If the type name of
4852 `this' is NULL, return immediately.
4853
b50c8614
KS
48542014-04-14 Keith Seitz <keiths@redhat.com>
4855
4856 PR c++/16253
4857 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4858 from symbol_matches_domain in symtab.c. All local callers
4859 of symbol_matches_domain updated.
4860 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4861 search STRUCT_DOMAIN.
4862 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4863 independently. standard_lookup will do that automatically.
4864 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4865 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4866 (cp_lookup_symbol_in_namespace): Likewise.
4867 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4868 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4869 may return a STRUCT_DOMAIN match.
4870 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4871 * cp-support.c: Include language.h.
4872 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4873 VAR_DOMAIN.
4874 * psymtab.c (match_partial_symbol): Compare the requested
4875 domain with the symbol's domain directly.
4876 (lookup_partial_symbol): Likewise.
4877 * symtab.c (lookup_symbol_in_language): Explain when/why
4878 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4879 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4880 appropriate languages.
4881 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4882 and moved to ada-lang.c
4883 (lookup_block_symbol): Explain that this function only returns
4884 symbol matching the requested DOMAIN.
4885 Compare the requested domain with the symbol's domain directly.
4886 (iterate_over_symbols): Compare the requested domain with the
4887 symbol's domain directly.
4888 * symtab.h (symbol_matches_domain): Remove.
4889
3d567982
TT
48902014-04-14 Tom Tromey <tromey@redhat.com>
4891
4892 PR c++/15246:
4893 * c-exp.y (type_aggregate_p): New function.
4894 (qualified_name, classify_inner_name): Use it.
4895 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4896 and TYPE_TARGET_TYPE of an enum type.
4897 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4898 an enum type.
4899 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4900 handle TYPE_DECLARED_CLASS.
4901 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4902 types.
4903 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4904 * valops.c (enum_constant_from_type): New function.
4905 (value_aggregate_elt): Use it.
4906 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4907 TYPE_CODE_ENUM.
4908
c848d642
TT
49092014-04-14 Tom Tromey <tromey@redhat.com>
4910
4911 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4912 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4913 const.
4914 * value.h (value_aggregate_elt): Update.
4915
0626fc76
TT
49162014-04-14 Tom Tromey <tromey@redhat.com>
4917
4918 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4919
5ecaaa66
SA
49202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4921
4922 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4923 (evaluate_subexp_standard): Pass noside argument.
4924 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4925 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4926 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4927 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4928 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4929
1612e0c0
SA
49302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4931
4932 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4933 points to a constant blob.
4934
c451ebe5
SA
49352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4936
4937 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4938 property and store it as the high bound and flag the range accordingly.
4939 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4940 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4941 * gdbtypes.h (enum range_flags): New enum.
4942 (struct range_bounds): Add flags member.
4943
1d42e4c4
SA
49442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4945
4946 * c-typeprint.c (c_type_print_varspec_suffix): Added
4947 check for not yet resolved high bound. If unresolved, print
4948 "variable length" string to the console instead of random
4949 length.
4950
9f1f738a
SA
49512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4952
4953 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4954 value.
4955 (ada_template_to_fixed_record_type_1): Likewise.
4956 (ada_to_fixed_type_1): Likewise.
4957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4958 (cp_print_value): Likewise.
4959 * d-valprint.c (dynamic_array_type): Likewise.
4960 * findvar.c (address_of_variable): Likewise.
4961 * jv-valprint.c (java_value_print): Likewise.
4962 * valops.c (value_ind): Likewise.
4963 * value.c (coerce_ref): Likewise.
4964
3c8452d4
SA
49652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4966
4967 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4968 value and retrieve the dynamic type size.
4969
4ad88275
SA
49702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4971
4972 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4973 passed to sizeof is dynamic evaluate the argument to compute the length.
4974
80180f79
SA
49752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4976 Joel Brobecker <brobecker@adacore.com>
4977
4978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4979 (dwarf2_evaluate_property): New function.
4980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4981 * dwarf2read.c (attr_to_dynamic_prop): New function.
4982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4983 attribute.
4984 * gdbtypes.c: Include dwarf2loc.h.
4985 (is_dynamic_type): New function.
4986 (resolve_dynamic_type): New function.
4987 (resolve_dynamic_bounds): New function.
4988 (get_type_length): New function.
4989 (check_typedef): Use get_type_length to compute type length.
4990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4991 (TYPE_LOW_BOUND_KIND): New macro.
4992 (is_dynamic_type): New function prototype.
4993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4994 to resolve dynamic properties of the type. Update comment.
4995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4996
a1556843
RH
49972014-04-14 Richard Henderson <rth@redhat.com>
4998
4999 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5000
0be03e84
DE
50012014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5002 Doug Evans <xdje42@gmail.com>
5003
5004 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5005 dereference TYPE_CODE_REF values.
5006
6b662e19
JB
50072014-04-11 Joel Brobecker <brobecker@adacore.com>
5008
5009 Revert the following changes due to regressions:
5010
5011 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5012 (dwarf2_evaluate_property): New function.
5013 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5014 * dwarf2read.c (attr_to_dynamic_prop): New function.
5015 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5016 attribute.
5017 * gdbtypes.c: Include dwarf2loc.h.
5018 (is_dynamic_type): New function.
5019 (resolve_dynamic_type): New function.
5020 (resolve_dynamic_bounds): New function.
5021 (get_type_length): New function.
5022 (check_typedef): Use get_type_length to compute type length.
5023 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5024 (TYPE_LOW_BOUND_KIND): New macro.
5025 (is_dynamic_type): New function prototype.
5026 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5027 to resolve dynamic properties of the type. Update comment.
5028 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5029
5030 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5031 passed to sizeof is dynamic evaluate the argument to compute the length.
5032
5033 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5034 value and retrieve the dynamic type size.
5035
5036 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5037 (ada_template_to_fixed_record_type_1): Likewise.
5038 (ada_to_fixed_type_1): Likewise.
5039 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5040 (cp_print_value): Likewise.
5041 * d-valprint.c (dynamic_array_type): Likewise.
5042 * eval.c (evaluate_subexp_with_coercion): Likewise.
5043 * findvar.c (address_of_variable): Likewise.
5044 * jv-valprint.c (java_value_print): Likewise.
5045 * valops.c (value_ind): Likewise.
5046 * value.c (coerce_ref): Likewise.
5047
5048 * c-typeprint.c (c_type_print_varspec_suffix): Added
5049 check for not yet resolved high bound. If unresolved, print
5050 "variable length" string to the console instead of random
5051 length.
5052
5053 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5054 property and store it as the high bound and flag the range accordingly.
5055 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5056 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5057 * gdbtypes.h (enum range_flags): New enum.
5058 (struct range_bounds): Add flags member.
5059
5060 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5061 points to a constant blob.
5062
5063 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5064 (evaluate_subexp_standard): Pass noside argument.
5065 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5066 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5067 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5068 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5069 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5070
245a5f0b
KS
50712014-04-11 Keith Seitz <keiths@redhat.com>
5072
5073 PR c++/16675
5074 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5075 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5076 reference types.
5077
3bce8237
SA
50782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5079
5080 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5081 (evaluate_subexp_standard): Pass noside argument.
5082 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5083 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5084 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5085 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5086 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5087
92b09522
SA
50882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5089
5090 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5091 points to a constant blob.
5092
e1969afb
SA
50932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5094
5095 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5096 property and store it as the high bound and flag the range accordingly.
5097 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5098 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5099 * gdbtypes.h (enum range_flags): New enum.
5100 (struct range_bounds): Add flags member.
5101
b86138fb
SA
51022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5103
5104 * c-typeprint.c (c_type_print_varspec_suffix): Added
5105 check for not yet resolved high bound. If unresolved, print
5106 "variable length" string to the console instead of random
5107 length.
5108
bcd629a4
SA
51092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5110
5111 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5112 (ada_template_to_fixed_record_type_1): Likewise.
5113 (ada_to_fixed_type_1): Likewise.
5114 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5115 (cp_print_value): Likewise.
5116 * d-valprint.c (dynamic_array_type): Likewise.
5117 * eval.c (evaluate_subexp_with_coercion): Likewise.
5118 * findvar.c (address_of_variable): Likewise.
5119 * jv-valprint.c (java_value_print): Likewise.
5120 * valops.c (value_ind): Likewise.
5121 * value.c (coerce_ref): Likewise.
5122
04b19544
SA
51232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5124
5125 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5126 value and retrieve the dynamic type size.
5127
26cb189f
SA
51282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5129
5130 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5131 passed to sizeof is dynamic evaluate the argument to compute the length.
5132
37c1ab67
SA
51332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5134
5135 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5136 (dwarf2_evaluate_property): New function.
5137 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5138 * dwarf2read.c (attr_to_dynamic_prop): New function.
5139 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5140 attribute.
5141 * gdbtypes.c: Include dwarf2loc.h.
5142 (is_dynamic_type): New function.
5143 (resolve_dynamic_type): New function.
5144 (resolve_dynamic_bounds): New function.
5145 (get_type_length): New function.
5146 (check_typedef): Use get_type_length to compute type length.
5147 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5148 (TYPE_LOW_BOUND_KIND): New macro.
5149 (is_dynamic_type): New function prototype.
5150 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5151 to resolve dynamic properties of the type. Update comment.
5152 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5153
729efb13
SA
51542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5155
5156 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5157 declaring high/low bounds and change uses accordingly. Call
5158 create_range_type instead of create_static_range_type.
5159 * gdbtypes.c (create_range_type): New function.
5160 (create_range_type): Convert bounds into struct bound_prop and pass
5161 them to create_range_type.
5162 * gdbtypes.h (struct bound_prop): New struct.
5163 (create_range_type): New function prototype.
5164 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5165 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5166 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5167 part of the bound.
5168 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5169
0c9c3474
SA
51702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5171
5172 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5173 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5174 * ada-lang.c: All uses of create_range_type updated.
5175 * coffread.c: All uses of create_range_type updated.
5176 * dwarf2read.c: All uses of create_range_type updated.
5177 * f-exp.y: All uses of create_range_type updated.
5178 * m2-valprint.c: All uses of create_range_type updated.
5179 * mdebugread.c: All uses of create_range_type updated.
5180 * stabsread.c: All uses of create_range_type updated.
5181 * valops.c: All uses of create_range_type updated.
5182 * valprint.c: All uses of create_range_type updated.
5183
9d497a19
PA
51842014-04-10 Pedro Alves <palves@redhat.com>
5185
5186 * breakpoint.c (single_step_breakpoints)
5187 (single_step_gdbarch): Move up in the file.
5188 (one_breakpoint_xfer_memory): New function, factored out from ...
5189 (breakpoint_xfer_memory): ... here. Also process single-step
5190 breakpoints.
5191
15a9128a
TG
51922014-04-09 Tristan Gingold <gingold@adacore.com>
5193
5194 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5195 comments.
5196 (darwin_decode_exception_message): Free port only after use.
5197
9c97a070
PL
51982014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5199
5200 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5201 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5202 when setting the size of call_length.
5203
7af389b8
SC
52042014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5205
5206 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5207 dereference TYPE_CODE_REF values.
5208
86ad98c3
JB
52092014-04-07 Joel Brobecker <brobecker@adacore.com>
5210
5211 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5212 end of warning message.
5213
b0aeadb3
DE
52142014-04-03 Doug Evans <dje@google.com>
5215
5216 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5217 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5218
5979d6b6
AM
52192014-04-02 Alan Modra <amodra@gmail.com>
5220
5221 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5222 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5223 (struct symbol_file_add_from_memory_args): Add size field.
5224 (find_vdso_size): New function.
5225 (add_vsyscall_page): Attempt to find vdso size.
5226
0d60c288
DE
52272014-04-01 Doug Evans <dje@google.com>
5228
5229 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5230
a41f2563
TG
52312014-04-01 Tristan Gingold <gingold@adacore.com>
5232
5233 * darwin-nat.c (darwin_encode_reply): Add prototype.
5234 (darwin_decode_exception_message): Reply to unknown inferiors.
5235 (darwin_decode_message): Handle message by id. Ignore message
5236 to unknown inferior.
5237 (darwin_wait): Discard unknown messages, add debug trace.
5238
11a865c8
DE
52392014-03-31 Doug Evans <dje@google.com>
5240
5241 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5242 comp_dir_string.
5243
770e7fc7
DE
52442014-03-31 Doug Evans <dje@google.com>
5245
5246 New option "set print symbol-loading".
5247 * NEWS: Mention it.
5248 * solib.c (solib_read_symbols): Only print symbol loading messages
5249 if requested.
5250 (solib_add): If symbol loading is in "brief" mode, notify user
5251 symbols are being loaded.
5252 (reload_shared_libraries_1): Ditto.
5253 * symfile.c (print_symbol_loading_off): New static global.
5254 (print_symbol_loading_brief): New static global.
5255 (print_symbol_loading_full): New static global.
5256 (print_symbol_loading_enums): New static global.
5257 (print_symbol_loading): New static global.
5258 (print_symbol_loading_p): New function.
5259 (symbol_file_add_with_addrs): Only print symbol loading messages
5260 if requested.
5261 (_initialize_symfile): Register "print symbol-loading" set/show
5262 command.
5263 * symfile.h (print_symbol_loading_p): Declare.
5264
c32c64b7
DE
52652014-03-30 Doug Evans <xdje42@gmail.com>
5266
5267 * infrun.c (set_last_target_status): New function.
5268 (handle_inferior_event): Call it.
5269
7c0bc051
DE
52702014-03-30 Doug Evans <xdje42@gmail.com>
5271
5272 * inferior.h (enum stop_kind): Improve comment.
5273
8776cfe9
JB
52742014-03-28 Joel Brobecker <brobecker@adacore.com>
5275
5276 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5277 a reference, strip the reference layer before calling
5278 the lang_ops value_has_mutated callback.
5279
410a0ff2
SDJ
52802014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5281
5282 Remove some globals from our parser.
5283 * language.c (unk_lang_parser): Add "struct parser_state"
5284 argument.
5285 * language.h (struct language_defn) <la_parser>: Likewise.
5286 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5287 (initialize_expout): Add "struct parser_state" argument.
5288 Rewrite function to use the parser state.
5289 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5290 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5291 write_exp_elt_longcst, write_exp_elt_dblcst,
5292 write_exp_elt_decfloatcst, write_exp_elt_type,
5293 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5294 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5295 write_dollar_variable): Likewise.
5296 (parse_exp_in_context_1): Use parser state.
5297 (insert_type_address_space): Add "struct parser_state" argument.
5298 Use parser state.
5299 (increase_expout_size): New function.
5300 * parser-defs.h: Forward declare "struct language_defn" and
5301 "struct parser_state".
5302 (expout, expout_size, expout_ptr): Remove extern declarations.
5303 (parse_gdbarch, parse_language): Rewrite macro declarations to
5304 accept the parser state.
5305 (struct parser_state): New struct.
5306 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5307 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5308 write_exp_elt_decfloatcst, write_exp_elt_type,
5309 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5310 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5311 write_exp_msymbol, write_dollar_variable,
5312 mark_struct_expression, insert_type_address_space): Add "struct
5313 parser_state" argument.
5314 (increase_expout_size): New function.
5315 * utils.c (do_clear_parser_state): New function.
5316 (make_cleanup_clear_parser_state): Likewise.
5317 * utils.h (make_cleanup_clear_parser_state): New function
5318 prototype.
5319 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5320 Update calls to write_exp* in order to pass the parser state.
5321 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5322 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5323 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5324 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5325 * stap-probe.c (stap_parse_register_operand): Likewise.
5326 (stap_parse_single_operand): Likewise.
5327 (stap_parse_argument_1): Likewise.
5328 (stap_parse_argument): Use parser state.
5329 * stap-probe.h: Include "parser-defs.h".
5330 (struct stap_parse_info) <pstate>: New field.
5331 * c-exp.y (parse_type): Rewrite to use parser state.
5332 (yyparse): Redefine to c_parse_internal.
5333 (pstate): New global variable.
5334 (parse_number): Add "struct parser_state" argument.
5335 (write_destructor_name): Likewise.
5336 (type_exp): Update calls to write_exp* and similars in order to
5337 use parser state.
5338 (exp1, exp, variable, qualified_name, space_identifier,
5339 typename, typebase): Likewise.
5340 (write_destructor_name, parse_number, lex_one_token,
5341 classify_name, classify_inner_name, c_parse): Add "struct
5342 parser_state" argument. Update function to use parser state.
5343 * c-lang.h: Forward declare "struct parser_state".
5344 (c_parse): Add "struct parser_state" argument.
5345 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5346 (yyparse): Redefine macro to ada_parse_internal.
5347 (pstate): New variable.
5348 (write_int, write_object_renaming, write_var_or_type,
5349 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5350 type_int, type_long, type_long_long, type_float, type_double,
5351 type_long_double, type_char, type_boolean, type_system_address):
5352 Add "struct parser_state" argument.
5353 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5354 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5355 var_or_type, aggregate, aggregate_component_list,
5356 positional_list, others, component_group,
5357 component_associations): Update calls to write_exp* and similar
5358 functions in order to use parser state.
5359 (ada_parse, write_var_from_sym, write_int,
5360 write_exp_op_with_string, write_object_renaming,
5361 find_primitive_type, write_selectors, write_ambiguous_var,
5362 write_var_or_type, write_name_assoc, type_int, type_long,
5363 type_long_long, type_float, type_double, type_long_double,
5364 type_char, type_boolean, type_system_address): Add "struct
5365 parser_state" argument. Adjust function to use parser state.
5366 * ada-lang.c (parse): Likewise.
5367 * ada-lang.h: Forward declare "struct parser_state".
5368 (ada_parse): Add "struct parser_state" argument.
5369 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5370 calls to both functions.
5371 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5372 parser state.
5373 (yyparse): Redefine macro to f_parse_internal.
5374 (pstate): New variable.
5375 (parse_number): Add "struct parser_state" argument.
5376 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5377 and similars in order to use parser state.
5378 (parse_number): Adjust code to use parser state.
5379 (yylex): Likewise.
5380 (f_parse): New function.
5381 * f-lang.h: Forward declare "struct parser_state".
5382 (f_parse): Add "struct parser_state" argument.
5383 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5384 parser state.
5385 (yyparse): Redefine macro for java_parse_internal.
5386 (pstate): New variable.
5387 (push_expression_name, push_expression_name, insert_exp): Add
5388 "struct parser_state" argument.
5389 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5390 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5391 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5392 PostIncrementExpression, PostDecrementExpression,
5393 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5394 UnaryExpressionNotPlusMinus, CastExpression,
5395 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5396 RelationalExpression, EqualityExpression, AndExpression,
5397 ExclusiveOrExpression, InclusiveOrExpression,
5398 ConditionalAndExpression, ConditionalOrExpression,
5399 ConditionalExpression, Assignment, LeftHandSide): Update
5400 calls to write_exp* and similars in order to use parser state.
5401 (parse_number): Ajust code to use parser state.
5402 (yylex): Likewise.
5403 (java_parse): New function.
5404 (push_variable): Add "struct parser_state" argument. Adjust
5405 code to user parser state.
5406 (push_fieldnames, push_qualified_expression_name,
5407 push_expression_name, insert_exp): Likewise.
5408 * jv-lang.h: Forward declare "struct parser_state".
5409 (java_parse): Add "struct parser_state" argument.
5410 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5411 parser state.
5412 (yyparse): Redefine macro to m2_parse_internal.
5413 (pstate): New variable.
5414 (type_exp, exp, fblock, variable, type): Update calls to
5415 write_exp* and similars to use parser state.
5416 (yylex): Likewise.
5417 (m2_parse): New function.
5418 * m2-lang.h: Forward declare "struct parser_state".
5419 (m2_parse): Add "struct parser_state" argument.
5420 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5421 * objc-lang.h: Forward declare "struct parser_state".
5422 (end_msglist): Add "struct parser_state" argument.
5423 * p-exp.y (parse_type): Rewrite macro to use parser state.
5424 (yyparse): Redefine macro to pascal_parse_internal.
5425 (pstate): New variable.
5426 (parse_number): Add "struct parser_state" argument.
5427 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5428 write_exp* and similars in order to use parser state.
5429 (parse_number, yylex): Adjust code to use parser state.
5430 (pascal_parse): New function.
5431 * p-lang.h: Forward declare "struct parser_state".
5432 (pascal_parse): Add "struct parser_state" argument.
5433 * go-exp.y (parse_type): Rewrite macro to use parser state.
5434 (yyparse): Redefine macro to go_parse_internal.
5435 (pstate): New variable.
5436 (parse_number): Add "struct parser_state" argument.
5437 (type_exp, exp1, exp, variable, type): Update calls to
5438 write_exp* and similars in order to use parser state.
5439 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5440 to use parser state.
5441 (go_parse): Likewise.
5442 * go-lang.h: Forward declare "struct parser_state".
5443 (go_parse): Add "struct parser_state" argument.
5444
342587c4
DE
54452014-03-27 Doug Evans <dje@google.com>
5446
5447 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5448
33e80786
DE
54492014-03-27 Doug Evans <dje@google.com>
5450
5451 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5452 Remove argument abbrev_section. All callers updated.
5453
1dbab08b
DE
54542014-03-27 Doug Evans <dje@google.com>
5455
5456 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5457 addr_base, ranges_base.
5458
318d3177
KS
54592014-03-26 Keith Seitz <keiths@redhat.com>
5460
5461 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5462 types, not VAR_DOMAIN.
5463
1e54db15
SL
54642014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5465
5466 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5467 "ra" registers.
5468 * features/nios2-linux.c: Regenerated.
5469 * features/nios2.c: Regenerated.
5470
d3839ede
PA
54712014-03-25 Pedro Alves <palves@redhat.com>
5472
5473 * cli/cli-script.c (script_from_file): Force the interpreter to
5474 sync mode.
5475
7588d2ec
PL
54762014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5477
5478 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5479 small stack allocation.
5480
a6290449
TG
54812014-03-24 Tristan Gingold <gingold@adacore.com>
5482
5483 * darwin-nat.c (exc_server): Remove unused prototype.
5484 (darwin_dump_message): Correctly display data on x86_64.
5485 (darwin_encode_reply): Fix style.
5486 Add comments and fix indentation.
5487
31ae9d24 54882014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5489
5490 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5491
6339bfc4
DE
54922014-03-22 Doug Evans <xdje42@gmail.com>
5493
5494 * infcmd.c: Whitespace fixes.
5495 (interrupt_command): Merge two function comments into one.
5496
0a07590b
DE
54972014-03-22 Doug Evans <xdje42@gmail.com>
5498
5499 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5500 All uses updated.
5501
b55fbac4
YQ
55022014-03-22 Yao Qi <yao@codesourcery.com>
5503
5504 * remote.c (target_read_live_memory): Remove.
5505 (memory_xfer_live_readonly_partial): Rename it to
5506 remote_xfer_live_readonly_partial. Remove argument 'object'.
5507 All callers updated. Call remote_read_bytes_1
5508 instead of target_read_live_memory.
5509 * tracepoint.c (set_traceframe_number): Remove.
5510 (make_cleanup_restore_traceframe_number): Likewise .
5511 * tracepoint.h (set_traceframe_number): Remove declaration.
5512 (make_cleanup_restore_traceframe_number): Likewise.
5513
9217e74e
YQ
55142014-03-22 Yao Qi <yao@codesourcery.com>
5515
5516 * remote.c (remote_read_bytes): Move code on reading from the
5517 remote stub to ...
5518 (remote_read_bytes_1): ... here. New function.
5519
8acf9577
YQ
55202014-03-22 Yao Qi <yao@codesourcery.com>
5521
5522 * ctf.c (ctf_xfer_partial): Check the return value of
5523 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5524 return TARGET_XFER_UNAVAILABLE.
5525 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5526 * target.c (target_read_live_memory): Move it to remote.c.
5527 (memory_xfer_live_readonly_partial): Likewise.
5528 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5529 * remote.c (target_read_live_memory): Moved from target.c.
5530 (memory_xfer_live_readonly_partial): Likewise.
5531 (remote_read_bytes): Factored out from
5532 memory_xfer_partial_1.
5533
feef67ab
DE
55342014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5535
5536 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5537 NULL pointer.
5538
b65dc60b
PA
55392014-03-21 Pedro Alves <palves@redhat.com>
5540
5541 * infrun.c (normal_stop): Extend comment.
5542
b4ab256d
HZ
55432014-03-21 Hui Zhu <hui@codesourcery.com>
5544 Pedro Alves <palves@redhat.com>
5545
5546 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5547 static buffer.
5548 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5549 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5550 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5551
deba7593
MR
55522014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5553
5554 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5555 `z' formatted output modifier.
5556
1bff71c3
SDJ
55572014-03-20 Tom Tromey <tromey@redhat.com>
5558 Sergio Durigan Junior <sergiodj@redhat.com>
5559
5560 * probe.c (parse_probes): Turn assert into an ordinary error.
5561 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5562 exceptions when parsing probes. Rearrange the code for clarity.
5563
90e28950
TT
55642014-03-20 Tom Tromey <tromey@redhat.com>
5565
5566 PR gdb/14135
5567 * top.c (execute_command): Only dispatch events if the command
5568 started the target.
5569
beb460e8
PA
55702014-03-20 Tom Tromey <tromey@redhat.com>
5571
5572 PR cli/15718
5573 * infcall.c: Include event-top.h.
5574 (run_inferior_call): Call async_disable_stdin if needed.
5575
99619bea
PA
55762014-03-20 Pedro Alves <palves@redhat.com>
5577
5578 * infrun.c (prepare_to_proceed): Delete.
5579 (thread_still_needs_step_over): New function.
5580 (find_thread_needs_step_over): New function.
5581 (proceed): If the current thread needs a step-over, set its
5582 steping_over_breakpoint flag. Adjust to use
5583 find_thread_needs_step_over instead of prepare_to_proceed.
5584 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5585 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5586 breakpoint.
5587 (switch_back_to_stepped_thread): Step over breakpoints of all
5588 threads not the stepping thread, before switching back to the
5589 stepping thread.
5590
2adfaa28
PA
55912014-03-20 Pedro Alves <palves@redhat.com>
5592
5593 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5594 extern.
5595 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5596 * infrun.c (saved_singlestep_ptid)
5597 (stepping_past_singlestep_breakpoint): Delete.
5598 (resume): Remove stepping_past_singlestep_breakpoint handling.
5599 (proceed): Store the prev_pc of the stepping thread too.
5600 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5601 singlestep_pc.
5602 (enum infwait_states): Delete infwait_thread_hop_state.
5603 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5604 field.
5605 (handle_inferior_event): Adjust.
5606 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5607 handling and the thread-hop code. Before removing single-step
5608 breakpoints, check whether the thread hit a single-step breakpoint
5609 of another thread. If it did, the trap is not a random signal.
5610 (switch_back_to_stepped_thread): If the event thread hit a
5611 single-step breakpoint, unblock it before switching to the
5612 stepping thread. Handle the case of the stepped thread having
5613 advanced already.
5614 (keep_going): Handle the case of the current thread moving past a
5615 single-step breakpoint.
5616
31e77af2
PA
56172014-03-20 Pedro Alves <palves@redhat.com>
5618
5619 PR breakpoints/7143
5620 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5621 are being stepped over.
5622 (breakpoint_address_match): Make extern.
5623 * breakpoint.h (breakpoint_address_match): New declaration.
5624 * inferior.h (stepping_past_instruction_at): New declaration.
5625 * infrun.c (struct step_over_info): New type.
5626 (step_over_info): New global.
5627 (set_step_over_info, clear_step_over_info)
5628 (stepping_past_instruction_at): New functions.
5629 (handle_inferior_event): Clear the step-over info when
5630 trap_expected is cleared.
5631 (resume): Remove now stale comment.
5632 (clear_proceed_status): Clear step-over info.
5633 (proceed): Adjust step-over handling to set or clear the step-over
5634 info instead of removing all breakpoints.
5635 (handle_signal_stop): When setting up a thread-hop, don't remove
5636 breakpoints here.
5637 (stop_stepping): Clear step-over info.
5638 (keep_going): Adjust step-over handling to set or clear step-over
5639 info and then always inserting breakpoints, instead of removing
5640 all breakpoints when stepping over one.
5641
b9f437de
PA
56422014-03-20 Pedro Alves <palves@redhat.com>
5643
5644 * infrun.c (previous_inferior_ptid): Adjust comment.
5645 (deferred_step_ptid): Delete.
5646 (infrun_thread_ptid_changed, prepare_to_proceed)
5647 (init_wait_for_inferior): Adjust.
5648 (handle_signal_stop): Delete deferred_step_ptid handling.
5649
06c868a8
JK
56502014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 PR gdb/15358
5653 * defs.h (sync_quit_force_run): New declaration.
5654 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5655 * event-top.c (async_sigterm_handler): New declaration.
5656 (async_sigterm_token): New variable.
5657 (async_init_signals): Create also async_sigterm_token.
5658 (async_sigterm_handler): New function.
5659 (sync_quit_force_run): New variable.
5660 (handle_sigterm): Replace quit_force call by other calls.
5661 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5662
dea80df0
MR
56632014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5664
5665 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5666 offset into SPE pseudo registers.
5667
0c7e1a46
PA
56682014-03-18 Pedro Alves <palves@redhat.com>
5669
5670 PR gdb/13860
5671 * inferior.h (print_stop_event): Declare.
5672 * infrun.c (print_stop_event): New, factored out from ...
5673 (normal_stop): ... this.
5674 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5675 of bpstat_print/print_stack_frame.
5676
9c1fcd01
TT
56772014-03-17 Tom Tromey <tromey@redhat.com>
5678
5679 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5680
11aa919a
PMR
56812014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5682
5683 * ada-lang.c (decode_constrained_packed_array): Perform a
5684 minimal coercion for reference with coerce_ref instead of
5685 ada_coerce_ref.
5686
d4ccb5e0
TG
56872014-03-17 Tristan Gingold <gingold@adacore.com>
5688
5689 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5690 (darwin_solib_create_inferior_hook): Emit a warning if version
5691 is unhandled.
5692
49840f2a
UW
56932014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5694
5695 * python/py-value.c (get_field_flag): Cast flag_name argument to
5696 PyObject_GetAttrString to support Python 2.4.
5697
ed4123e5
JK
56982014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5699
5700 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5701 (Global Maintainers): Remove Jan Kratochvil.
5702
d6b64346
PA
57032014-03-14 Pedro Alves <palves@redhat.com>
5704
5705 * inferior.h (terminal_ours_for_output): Rename to ...
5706 (child_terminal_ours_for_output): ... this.
5707 (terminal_save_ours): Rename to ...
5708 (child_terminal_save_ours): ... this.
5709 (terminal_ours): Rename to ...
5710 (child_terminal_ours): ... this.
5711 (terminal_inferior): Rename to ...
5712 (child_terminal_inferior): ... this.
5713 (terminal_init_inferior): Rename to ...
5714 (child_terminal_init_inferior): ... this.
5715 (terminal_init_inferior_with_pgrp): Rename to ...
5716 (child_terminal_init_inferior_with_pgrp): ... this.
5717 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5718 (child_terminal_init_with_pgrp): ... this.
5719 (terminal_save_ours): Rename to ...
5720 (child_terminal_save_ours): ... this.
5721 (terminal_init_inferior): Rename to ...
5722 (child_terminal_init): ... this. Adjust.
5723 (terminal_inferior): Rename to ...
5724 (child_terminal_inferior): ... this.
5725 (terminal_ours_for_output): Rename to ...
5726 (child_terminal_ours_for_output): ... this. Adjust.
5727 (terminal_ours): Rename to ...
5728 (child_terminal_ours): ... this.
5729 (terminal_ours_1): Rename to ...
5730 (child_terminal_ours_1): ... this. Adjust.
5731 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5732 * windows-nat.c (do_initial_windows_stuff): Adjust.
5733 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5734 (gnu_terminal_init): ... this. Adjust.
5735 (gnu_target): Adjust.
5736 * inf-child.c (inf_child_target): Adjust.
5737
5a1e8c7a
DE
57382014-03-13 Doug Evans <xdje42@gmail.com>
5739
5740 PR guile/16612
5741 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5742 new eq?-hashtab.
5743
350e1a76
DE
57442014-03-13 Doug Evans <xdje42@gmail.com>
5745
5746 * value.c (record_latest_value): Call release_value_or_incref
5747 instead of release_value.
5748
a69900ae
PA
57492014-03-13 Pedro Alves <palves@redhat.com>
5750
5751 * procfs.c (procfs_target): Don't override to_shortname,
5752 to_longname or to_doc.
5753
5db9f0bd
PA
57542014-03-13 Pedro Alves <palves@redhat.com>
5755
5756 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5757 Unix in user visible strings.
5758
5e3a2c38
SS
57592014-03-12 Stan Shebs <stan@codesourcery.com>
5760
5761 * gdbtypes.h: Annotate comments for Doxygen, add a page
5762 block comment with some general info.
5763
8bc2fe48
PA
57642014-03-12 Pedro Alves <palves@redhat.com>
5765
5766 * infcmd.c (prepare_execution_command): New function, factored out
5767 from several execution commands.
5768 (run_command_1, continue_command, step_1, jump_command)
5769 (signal_command, until_command, advance_command, finish_command)
5770 (attach_command): Use prepare_execution_command.
5771
638c5f49
OJ
57722014-03-12 Omair Javaid <omair.javaid@linaro.org>
5773
5774 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5775 (MAX_BPTS): Define.
5776 (MAX_WPTS): Define.
5777 (struct arm_linux_thread_points): Removed.
5778 (struct arm_linux_process_info): New.
5779 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5780 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5781 (arm_linux_find_breakpoints_by_tid): Removed.
5782 (struct arch_lwp_info): New.
5783 (arm_linux_find_process_pid): New functions.
5784 (arm_linux_add_process): New functions.
5785 (arm_linux_process_info_get): New functions.
5786 (arm_linux_forget_process): New function.
5787 (arm_linux_get_debug_reg_state): New function.
5788 (struct update_registers_data): New.
5789 (update_registers_callback): New function.
5790 (arm_linux_insert_hw_breakpoint1): Updated.
5791 (arm_linux_remove_hw_breakpoint1): Updated.
5792 (arm_linux_insert_hw_breakpoint): Updated.
5793 (arm_linux_remove_hw_breakpoint): Updated.
5794 (arm_linux_insert_watchpoint): Updated.
5795 (arm_linux_remove_watchpoint): Updated.
5796 (arm_linux_new_thread): Updated.
5797 (arm_linux_prepare_to_resume): New function.
5798 (arm_linux_new_fork): New function.
5799 (_initialize_arm_linux_nat): Updated.
5800
6d03af93
PA
58012014-03-12 Pedro Alves <palves@redhat.com>
5802
5803 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5804
b3ccfe11
TT
58052014-03-12 Tom Tromey <tromey@redhat.com>
5806
5807 * inf-child.c (return_zero): New function.
5808 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5809 * aix-thread.c (aix_thread_inferior_created): New function.
5810 (aix_thread_attach): Remove.
5811 (init_aix_thread_ops): Don't set to_attach.
5812 (_initialize_aix_thread): Register inferior_created observer.
5813 * corelow.c (init_core_ops): Don't set to_attach or
5814 to_create_inferior.
5815 * exec.c (init_exec_ops): Don't set to_attach or
5816 to_create_inferior.
5817 * infcmd.c (run_command_1): Use find_run_target. Make direct
5818 target calls.
5819 (attach_command): Use find_attach_target. Make direct target
5820 calls.
5821 * record-btrace.c (init_record_btrace_ops): Don't set
5822 to_create_inferior.
5823 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5824 Remove.
5825 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5826 set to_create_inferior.
5827 * target.c (complete_target_initialization): Add assertion.
5828 (target_create_inferior): Remove.
5829 (find_default_attach, find_default_create_inferior): Remove.
5830 (find_attach_target, find_run_target): New functions.
5831 (find_default_is_async_p, find_default_can_async_p)
5832 (target_supports_non_stop, target_attach): Remove.
5833 (init_dummy_target): Don't set to_create_inferior or
5834 to_supports_non_stop.
5835 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5836 TARGET_DEFAULT_FUNC.
5837 <to_create_inferior>: Add comment.
5838 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5839 TARGET_DEFAULT_RETURN.
5840 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5841 (find_attach_target, find_run_target): Declare.
5842 (target_create_inferior): Remove.
5843 (target_has_execution_1): Update comment.
5844 (target_supports_non_stop): Remove.
5845 * target-delegates.c: Rebuild.
5846
91f83b02
PA
58472014-03-12 Pedro Alves <palves@redhat.com>
5848
5849 * inf-child.h: Update comment to not mention Unix.
5850
f1aea813
PA
58512014-03-12 Pedro Alves <palves@redhat.com>
5852
5853 * inf-child.c: Update top comment to not mention Unix. Add
5854 generic comment describing how this target is meant to be used.
5855 (inf_child_post_attach, inf_child_post_startup_inferior)
5856 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5857 Unix in comment.
5858
ee8e9165
PA
58592014-03-12 Pedro Alves <palves@redhat.com>
5860
5861 * nto-procfs.c: Include inf-child.h.
5862 (procfs_ops): Delete global.
5863 (procfs_can_run): Delete method.
5864 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5865 target pointer instead of referencing procfs_ops.
5866 (procfs_prepare_to_store): Delete.
5867 (init_procfs_ops): Delete function.
5868 (procfs_target): New function, based on init_procfs_ops, but
5869 inherit inf_child_target.
5870 (_initialize_procfs): Use procfs_target.
5871
51a9c8c5
PA
58722014-03-12 Pedro Alves <palves@redhat.com>
5873
5874 * windows-nat.c: Include inf-child.h.
5875 (windows_ops): Delete global.
5876 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5877 methods.
5878 (init_windows_ops): Delete function.
5879 (windows_target): New function, based on init_windows_ops, but
5880 inherit inf_child_target.
5881 (_initialize_windows_nat): Use windows_target. Install x86
5882 specific target methods here.
5883
c1966e26
DE
58842014-03-10 Doug Evans <xdje42@gmail.com>
5885
5886 * guile/guile.c (call_initialize_gdb_module): New function.
5887 (initialize_guile): Replace call to scm_init_guile with call to
5888 scm_with_guile.
5889
023db19c
JB
58902014-03-10 Joel Brobecker <brobecker@adacore.com>
5891
5892 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5893 in call to TYPE_CODE macro.
5894
5ec18f2b
JG
58952014-03-10 Jerome Guitton <guitton@adacore.com>
5896
8668be63
JB
5897 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5898 Resolve tagged types to full view.
5ec18f2b 5899
7d03f2eb
HZ
59002014-03-10 Hui Zhu <hui@codesourcery.com>
5901
5902 * target.h (target_insert_breakpoint): Remove "hardware" from its
5903 comments.
5904
c5164cbc
DE
59052014-03-07 Doug Evans <dje@google.com>
5906
5907 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5908
c4a3fee2
DE
59092014-03-07 Doug Evans <dje@google.com>
5910
5911 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5912 Remove unused local comp_dir_attr. Assert exactly one of
5913 stub_comp_unit_die, stub_comp_dir is non-NULL.
5914
3156469c
JB
59152014-03-07 Joel Brobecker <brobecker@adacore.com>
5916
5917 * target.h (complete_target_initialization, add_target):
5918 Add comment.
5919
c1a7b7c6
PA
59202014-03-07 Pedro Alves <palves@redhat.com>
5921
5922 * go32-nat.c: Include inf-child.h.
5923 (go32_ops): Delete global.
5924 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5925 Delete methods.
5926 (go32_create_inferior): Push the passed in target pointer instead
5927 of referencing go32_ops.
5928 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5929 (go32_target): New function, based on init_go32_ops, but inherit
5930 inf_child_target.
5931 (_initialize_go32_nat): Use go32_target. Move parts of
5932 init_go32_ops here.
5933
d3c1a85f
JB
59342014-03-06 Joel Brobecker <brobecker@adacore.com>
5935
5936 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5937 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5938 SYMBOL_VALUE_ADDRESS.
5939 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5940
5fa1d40e
YQ
59412014-03-06 Yao Qi <yao@codesourcery.com>
5942
5943 * breakpoint.c (get_tracepoint_by_number): Remove argument
5944 optional_p. All callers updated. Adjust comments. Update
5945 output message.
5946 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5947
0c13193f
YQ
59482014-03-06 Yao Qi <yao@codesourcery.com>
5949
5950 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5951 early if get_number returns zero. Use 'p' instead of 'args'.
5952
2217da06
YQ
59532014-03-06 Yao Qi <yao@codesourcery.com>
5954
5955 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5956 message.
5957
cc3da688
YQ
59582014-03-06 Yao Qi <yao@codesourcery.com>
5959
5960 PR breakpoints/16508
5961 * tracepoint.c (check_trace_running): New function.
5962 (trace_find_command): Move code to check_trace_running and
5963 call check_trace_running.
5964 (trace_find_pc_command): Likewise.
5965 (trace_find_tracepoint_command): Likewise.
5966 (trace_find_line_command): Likewise.
5967 (trace_find_range_command): Likewise.
5968 * tracepoint.h (check_trace_running): Likewise.
5969 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5970
6a5f844b
YQ
59712014-03-06 Yao Qi <yao@codesourcery.com>
5972
5973 * target.h (struct target_ops) <to_traceframe_info>: Use
5974 TARGET_DEFAULT_NORETURN (tcomplain ()).
5975 * target-delegates.c: Regenerated.
5976
0f26cec1
PA
59772014-03-05 Pedro Alves <palves@redhat.com>
5978
5979 PR gdb/16575
5980 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5981 void. Update comment.
5982 (dcache_xfer_memory): Delete.
5983 (dcache_read_memory_partial): New, based on the read bits of
5984 dcache_xfer_memory.
5985 (dcache_update): Add status parameter. Use ULONGEST for len, and
5986 adjust. Discard cache lines if the reason for the update was
5987 error.
5988 * dcache.h (dcache_xfer_memory): Delete declaration.
5989 (dcache_read_memory_partial): New declaration.
5990 (dcache_update): Update prototype.
5991 * target.c (raw_memory_xfer_partial): Update the dcache here.
5992 (memory_xfer_partial_1): Don't handle dcache writes here.
5993
b2b255bd
MF
59942014-03-05 Mike Frysinger <vapier@gentoo.org>
5995
5996 * remote-sim.c (gdbsim_load): Add const to prog.
5997
5d9cf8a4
TT
59982014-03-03 Tom Tromey <tromey@redhat.com>
5999
6000 * elfread.c (probe_key): Change to bfd_data.
6001 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6002 now per-BFD, not per-objfile.
6003 * stap-probe.c (stap_probe_destroy): Update comment.
6004 (handle_stap_probe): Allocate on the per-BFD obstack.
6005
729662a5
TT
60062014-03-03 Tom Tromey <tromey@redhat.com>
6007
6008 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6009 * breakpoint.c (create_longjmp_master_breakpoint): Use
6010 get_probe_address.
6011 (add_location_to_breakpoint, bkpt_probe_insert_location)
6012 (bkpt_probe_remove_location): Update.
6013 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6014 * elfread.c (elf_symfile_relocate_probe): Remove.
6015 (elf_probe_fns): Update.
6016 (insert_exception_resume_breakpoint): Change type of "probe"
6017 parameter to bound_probe.
6018 (check_exception_resume): Update.
6019 * objfiles.c (objfile_relocate1): Don't relocate probes.
6020 * probe.c (bound_probe_s): New typedef.
6021 (parse_probes): Use get_probe_address. Set sal's objfile.
6022 (find_probe_by_pc): Return a bound_probe.
6023 (collect_probes): Return a VEC(bound_probe_s).
6024 (compare_probes): Update.
6025 (gen_ui_out_table_header_info): Change type of "probes"
6026 parameter. Update.
6027 (info_probes_for_ops): Update.
6028 (get_probe_address): New function.
6029 (probe_safe_evaluate_at_pc): Update.
6030 * probe.h (struct probe_ops) <get_probe_address>: New field.
6031 <set_semaphore, clear_semaphore>: Add objfile parameter.
6032 (struct probe) <objfile>: Remove field.
6033 <arch>: New field.
6034 <address>: Update comment.
6035 (struct bound_probe): New.
6036 (find_probe_by_pc): Return a bound_probe.
6037 (get_probe_address): Declare.
6038 * solib-svr4.c (struct probe_and_action) <address>: New field.
6039 (hash_probe_and_action, equal_probe_and_action): Update.
6040 (register_solib_event_probe): Add address parameter.
6041 (solib_event_probe_at): Update.
6042 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6043 get_probe_address.
6044 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6045 (stap_get_probe_address): New function.
6046 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6047 (compile_probe_arg): Update.
6048 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6049 address.
6050 (handle_stap_probe): Don't relocate the probe.
6051 (stap_relocate): Remove.
6052 (stap_gen_info_probes_table_values): Update.
6053 (stap_probe_ops): Remove stap_relocate.
6054 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6055 (debug_sym_probe_fns): Update.
6056 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6057 * symtab.c (init_sal): Use memset.
6058 * symtab.h (struct symtab_and_line) <objfile>: New field.
6059 * tracepoint.c (start_tracing, stop_tracing): Update.
6060
ff887920
TT
60612014-03-03 Tom Tromey <tromey@redhat.com>
6062
6063 * probe.h (parse_probes, find_probe_by_pc)
6064 (find_probes_in_objfile): Fix comments.
6065
f0407826
DE
60662014-03-02 Doug Evans <xdje42@gmail.com>
6067
6068 * infrun.c (handle_signal_stop): Replace test for
6069 TARGET_WAITKIND_STOPPED with an assert.
6070
35e6a711
DE
60712014-03-02 Doug Evans <xdje42@gmail.com>
6072
6073 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6074
667f9d0b
DE
60752014-03-02 Doug Evans <xdje42@gmail.com>
6076
6077 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6078
dc92ace0
MK
60792014-03-01 Mark Kettenis <kettenis@gnu.org>
6080
6081 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6082
a900370f
MK
60832014-03-01 Mark Kettenis <kettenis@gnu.org>
6084
6085 * i386obsd-nat.c: Include "obsd-nat.h".
6086 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6087 add_target.
6088 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6089
b72a7981
MK
60902014-03-01 Mark Kettenis <kettenis@gnu.org>
6091
6092 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6093
96c70aba
MK
60942014-03-01 Mark Kettenis <kettenis@gnu.org>
6095
6096 * mips64obsd-nat.c: Include "obsd-nath".
6097 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6098 add_target
6099 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6100
874a80af
MK
61012014-03-01 Mark Kettenis <kettenis@gnu.org>
6102
8fd408f1
MK
6103 * amd64obsd-nat.c: Include "obsd-nat,h.
6104 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6105 add_target.
874a80af
MK
6106 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6107
9cf95373
SC
61082014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6109
6110 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6111 (find_overload_match): Update call to find_oload_champ.
6112 (find_oload_champ_namespace_loop): Likewise
6113
863e4da4
MK
61142014-02-28 Mark Kettenis <kettenis@gnu.org>
6115
025cac40
MK
6116 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6117
1ed586ce
MK
6118 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6119 * config/sparc/obsd64.mh: New file.
6120 * sparc64obsd-nat.c: New file.
6121
863e4da4
MK
6122 * obsd-nat.h: New file.
6123 * obsd-nat.c: New file.
6124 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6125 (ALLDEPFILES): Add obsd-nat.c.
6126
89de4da4
TT
61272014-02-28 Tom Tromey <tromey@redhat.com>
6128
6129 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6130 * cli-out.h (cli_ui_out_impl): Now const.
6131 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6132 * ui-out.c (struct ui_out) <impl>: Now const.
6133 (default_ui_out_impl): Now const.
6134 (ui_out_new): Make 'impl' parameter const.
6135 * ui-out.h (ui_out_new): Update.
6136
c725e7b6
MK
61372014-02-27 Mark Kettenis <kettenis@gnu.org>
6138
6139 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6140
670b46b3
MK
61412014-02-27 Mark Kettenis <kettenis@gnu.org>
6142
6143 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6144
c91550fc
JK
61452014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6146
6147 Additional PR 8882 fix.
6148 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6149
2fa0369e
PA
61502014-02-27 Pedro Alves <palves@redhat.com>
6151
6152 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6153 isn't set.
6154
d632a097
PA
61552014-02-27 Pedro Alves <palves@redhat.com>
6156
6157 PR 12702
6158 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6159 * nat/linux-waitpid.c: Include string.h.
6160 (status_to_str): Moved here and made extern.
6161 * nat/linux-waitpid.h (status_to_str): New declaration.
6162
2ebd5a35
HZ
61632014-02-27 Hui Zhu <hui@codesourcery.com>
6164
6165 PR 12702
6166 * infrun.c (ptid_match): Move ...
6167 * common/ptid.c (ptid_match): ... here.
6168 * inferior.h (ptid_match): Move ...
6169 * common/ptid.h (ptid_match): ... here.
6170
3cdd631f
MK
61712014-02-27 Mark Kettenis <kettenis@gnu.org>
6172
6173 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6174 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6175 gdb_target_obs.
6176
bee30a64
MK
61772014-02-27 Mark Kettenis <kettenis@gnu.org>
6178
6179 * obsd-tdep.c (obsd_auxv_parse): New function.
6180 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6181
6182 * gdbarch.sh (auxv_parse): New.
6183 * gdbarch.h: Regenerated.
6184 * gdbarch.c: Regenerated.
6185 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6186
7a5a839f
LC
61872014-02-26 Ludovic Courtès <ludo@gnu.org>
6188
6189 * guile/scm-value.c (gdbscm_history_append_x): New function.
6190 (value_functions): Add it.
6191
31aa7e4e
JB
61922014-02-27 Joel Brobecker <brobecker@adacore.com>
6193
6194 * dwarf2read.c (attr_value_as_address): New function.
6195 (dwarf2_find_base_address, read_call_site_scope): Use
6196 attr_value_as_address in place of DW_ADDR.
6197 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6198 the low and high addresses. Slight rework of the handling
6199 of the high pc being a constant form, and limit it to
6200 DWARF verson 4 or higher.
6201 (dwarf2_record_block_ranges): Likewise.
6202 (read_partial_die): Likewise.
6203 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6204
9b333ba3
TT
62052014-02-26 Tom Tromey <tromey@redhat.com>
6206
6207 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6208
5f6cac40
TT
62092014-02-26 Tom Tromey <tromey@redhat.com>
6210
6211 * elfread.c (elf_read_minimal_symbols): Return early if
6212 minimal symbols have already been read. Add "ei" parameter.
6213 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6214 * minsyms.c (prim_record_minimal_symbol_full): Update.
6215 * objfiles.h (struct objstats) <n_minsyms>: Move...
6216 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6217 * symmisc.c (print_objfile_statistics): Update.
6218
2750ef27
TT
62192014-02-26 Tom Tromey <tromey@redhat.com>
6220
6221 * elfread.c (elf_read_minimal_symbols): New function, from
6222 elf_symfile_read.
6223 (elf_symfile_read): Call it.
6224
34643a32
TT
62252014-02-26 Tom Tromey <tromey@redhat.com>
6226
6227 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6228 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6229 (lookup_minimal_symbol_solib_trampoline)
6230 (lookup_minimal_symbol_by_pc_section_1)
6231 (lookup_minimal_symbol_and_objfile): Update.
6232 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6233 Don't allocate a minimal symbol if minsyms have already been read.
6234 (build_minimal_symbol_hash_tables): Update.
6235 (install_minimal_symbols): Do nothing if minsyms already read.
6236 Use the per-BFD obstack.
6237 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6238 * objfiles.c (allocate_objfile): Call
6239 terminate_minimal_symbol_table later.
6240 (have_minimal_symbols): Update.
6241 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6242 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6243 Move from struct objfile.
6244 <minsyms_read>: New field.
6245 (struct objfile) <msymbols, minimal_symbol_count,
6246 msymbol_hash, msymbol_demangled_hash>: Move.
6247 (ALL_OBJFILE_MSYMBOLS): Update.
6248 * symfile.c (read_symbols): Set minsyms_read.
6249 (reread_symbols): Update.
6250 * symmisc.c (dump_objfile, dump_msymbols): Update.
6251
2273f0ac
TT
62522014-02-26 Tom Tromey <tromey@redhat.com>
6253
6254 * minsyms.c (msymbols_sort): Remove.
6255 * minsyms.h (msymbols_sort): Remove.
6256 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6257 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6258 * elfread.c (elf_symtab_read): Don't add section offsets.
6259 * xcoffread.c (record_minimal_symbol): Don't add section offset
6260 to minimal symbol address.
6261 * somread.c (text_offset, data_offset): Remove.
6262 (som_symtab_read): Don't add section offsets to minimal symbol
6263 addresses.
6264 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6265 Don't add section offsets to minimal symbols.
6266 * coffread.c (coff_symtab_read): Don't add section offsets
6267 to minimal symbol addresses.
6268 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6269 to minimal symbol addresses.
6270 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6271 section offset to minimal symbol addresses.
6272 * mdebugread.c (parse_partial_symbols): Don't add section
6273 offset to minimal symbol addresses.
6274 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6275 offset to minimal symbol addresses.
6276
77e371c0
TT
62772014-02-26 Tom Tromey <tromey@redhat.com>
6278
6279 * ada-lang.c (ada_main_name): Update.
6280 (ada_add_standard_exceptions): Update.
6281 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6282 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6283 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6284 * auxv.c (ld_so_xfer_auxv): Update.
6285 * avr-tdep.c (avr_scan_prologue): Update.
6286 * ax-gdb.c (gen_var_ref): Update.
6287 * blockframe.c (get_pc_function_start)
6288 (find_pc_partial_function_gnu_ifunc): Update.
6289 * breakpoint.c (create_overlay_event_breakpoint)
6290 (create_longjmp_master_breakpoint)
6291 (create_std_terminate_master_breakpoint)
6292 (create_exception_master_breakpoint): Update.
6293 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6294 * c-valprint.c (c_val_print): Update.
6295 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6296 * common/agent.c (agent_look_up_symbols): Update.
6297 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6298 * dwarf2loc.c (call_site_to_target_addr): Update.
6299 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6300 * elfread.c (elf_gnu_ifunc_record_cache)
6301 (elf_gnu_ifunc_resolve_by_got): Update.
6302 * findvar.c (default_read_var_value): Update.
6303 * frame.c (inside_main_func): Update.
6304 * frv-tdep.c (frv_frame_this_id): Update.
6305 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6306 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6307 Update.
6308 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6309 (hppa_hpux_find_dummy_bpaddr): Update.
6310 * hppa-tdep.c (hppa_symbol_address): Update.
6311 * infcmd.c (until_next_command): Update.
6312 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6313 Update.
6314 * linespec.c (minsym_found, add_minsym): Update.
6315 * linux-nat.c (get_signo): Update.
6316 * linux-thread-db.c (inferior_has_bug): Update.
6317 * m32c-tdep.c (m32c_return_value)
6318 (m32c_m16c_address_to_pointer): Update.
6319 * m32r-tdep.c (m32r_frame_this_id): Update.
6320 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6321 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6322 * maint.c (maintenance_translate_address): Update.
6323 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6324 (frob_address): New function.
6325 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6326 frob_address. Rename parameter to "pc_in".
6327 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6328 addresses.
6329 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6330 Update.
6331 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6332 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6333 * objc-lang.c (find_objc_msgsend): Update.
6334 * objfiles.c (objfile_relocate1): Update.
6335 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6336 * p-valprint.c (pascal_val_print): Update.
6337 * parse.c (write_exp_msymbol): Update.
6338 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6339 (ppc_elfv2_skip_entrypoint): Update.
6340 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6341 * printcmd.c (build_address_symbolic, msym_info)
6342 (address_info): Update.
6343 * proc-service.c (ps_pglobal_lookup): Update.
6344 * psymtab.c (find_pc_sect_psymtab_closer)
6345 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6346 Change msymbol parameter to bound_minimal_symbol.
6347 * ravenscar-thread.c (get_running_thread_id): Update.
6348 * remote.c (remote_check_symbols): Update.
6349 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6350 address.
6351 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6352 * solib-dsbt.c (lm_base): Update.
6353 * solib-frv.c (lm_base, main_got): Update.
6354 * solib-irix.c (locate_base): Update.
6355 * solib-som.c (som_solib_create_inferior_hook)
6356 (link_map_start): Update.
6357 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6358 * solib-svr4.c (elf_locate_base, enable_break): Update.
6359 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6360 (flush_ea_cache): Update.
6361 * stabsread.c (define_symbol, scan_file_globals): Update.
6362 * stack.c (find_frame_funname): Update.
6363 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6364 (debug_qf_find_pc_sect_symtab): Update.
6365 * symfile.c (simple_read_overlay_table)
6366 (simple_overlay_update): Update.
6367 * symfile.h (struct quick_symbol_functions)
6368 <find_pc_sect_symtab>: Change type of msymbol to
6369 bound_minimal_symbol.
6370 * symmisc.c (dump_msymbols): Update.
6371 * symtab.c (find_pc_sect_symtab_via_partial)
6372 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6373 (search_symbols, print_msymbol_info): Update.
6374 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6375 (MSYMBOL_VALUE_ADDRESS): Redefine.
6376 (BMSYMBOL_VALUE_ADDRESS): New macro.
6377 * tracepoint.c (scope_info): Update.
6378 * tui/tui-disasm.c (tui_find_disassembly_address)
6379 (tui_get_begin_asm_address): Update.
6380 * valops.c (find_function_in_inferior): Update.
6381 * value.c (value_static_field, value_fn_field): Update.
6382
3b7344d5
TT
63832014-02-26 Tom Tromey <tromey@redhat.com>
6384
6385 * ada-lang.c (ada_update_initial_language): Update.
6386 (ada_main_name, ada_has_this_exception_support): Update.
6387 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6388 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6389 * arm-tdep.c (arm_skip_stub): Update.
6390 * auxv.c (ld_so_xfer_auxv): Update.
6391 * avr-tdep.c (avr_scan_prologue): Update.
6392 * ax-gdb.c (gen_var_ref): Update.
6393 * breakpoint.c (struct breakpoint_objfile_data)
6394 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6395 type to bound_minimal_symbol.
6396 (create_overlay_event_breakpoint)
6397 (create_longjmp_master_breakpoint)
6398 (create_std_terminate_master_breakpoint)
6399 (create_exception_master_breakpoint): Update.
6400 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6401 * c-exp.y (classify_name): Update.
6402 * coffread.c (coff_symfile_read): Update.
6403 * common/agent.c (agent_look_up_symbols): Update.
6404 * d-lang.c (d_main_name): Update.
6405 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6406 * dec-thread.c (enable_dec_thread): Update.
6407 * dwarf2loc.c (call_site_to_target_addr): Update.
6408 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6409 * eval.c (evaluate_subexp_standard): Update.
6410 * findvar.c (struct minsym_lookup_data) <result>: Change type
6411 to bound_minimal_symbol.
6412 <objfile>: Remove.
6413 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6414 * frame.c (inside_main_func): Update.
6415 * frv-tdep.c (frv_frame_this_id): Update.
6416 * gcore.c (call_target_sbrk): Update.
6417 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6418 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6419 Update.
6420 * go-lang.c (go_main_name): Update.
6421 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6422 (hppa_hpux_find_import_stub_for_addr): Update.
6423 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6424 Update. Change return type.
6425 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6426 type.
6427 * jit.c (jit_breakpoint_re_set_internal): Update.
6428 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6429 Update.
6430 * linux-nat.c (get_signo): Update.
6431 * linux-thread-db.c (inferior_has_bug): Update
6432 * m32c-tdep.c (m32c_return_value)
6433 (m32c_m16c_address_to_pointer): Update.
6434 * m32r-tdep.c (m32r_frame_this_id): Update.
6435 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6436 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6437 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6438 lookup_minimal_symbol. Change return type.
6439 (lookup_minimal_symbol): Remove.
6440 (lookup_bound_minimal_symbol): Update.
6441 (lookup_minimal_symbol_text): Change return type.
6442 (lookup_minimal_symbol_solib_trampoline): Change return type.
6443 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6444 (lookup_minimal_symbol_solib_trampoline): Change return type.
6445 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6446 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6447 (value_nsstring, find_imps): Update.
6448 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6449 * p-lang.c (pascal_main_name): Update.
6450 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6451 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6452 * proc-service.c (ps_pglobal_lookup): Update.
6453 * ravenscar-thread.c (get_running_thread_msymbol): Change
6454 return type.
6455 (has_ravenscar_runtime, get_running_thread_id): Update.
6456 * remote.c (remote_check_symbols): Update.
6457 * sol-thread.c (ps_pglobal_lookup): Update.
6458 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6459 * solib-dsbt.c (lm_base): Update.
6460 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6461 Update.
6462 * solib-irix.c (locate_base): Update.
6463 * solib-som.c (som_solib_create_inferior_hook)
6464 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6465 Update.
6466 * solib-spu.c (spu_enable_break): Update.
6467 * solib-svr4.c (elf_locate_base, enable_break): Update.
6468 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6469 (flush_ea_cache): Update.
6470 * stabsread.c (define_symbol): Update.
6471 * symfile.c (simple_read_overlay_table): Update.
6472 * symtab.c (find_pc_sect_line): Update.
6473 * tracepoint.c (scope_info): Update.
6474 * tui-disasm.c (tui_get_begin_asm_address): Update.
6475 * value.c (value_static_field): Update.
6476
40c1a007
TT
64772014-02-26 Tom Tromey <tromey@redhat.com>
6478
6479 * minsyms.c (prim_record_minimal_symbol_full): Use
6480 SET_MSYMBOL_VALUE_ADDRESS.
6481 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6482 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6483 SET_MSYMBOL_VALUE_ADDRESS.
6484 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6485 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6486
efd66ac6
TT
64872014-02-26 Tom Tromey <tromey@redhat.com>
6488
6489 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6490 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6491 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6492 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6493 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6494 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6495 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6496 * ada-lang.c (ada_main_name): Update.
6497 (ada_lookup_simple_minsym): Update.
6498 (ada_make_symbol_completion_list): Update.
6499 (ada_add_standard_exceptions): Update.
6500 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6501 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6502 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6503 * arm-tdep.c (skip_prologue_function): Update.
6504 (arm_skip_stack_protector, arm_skip_stub): Update.
6505 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6506 (arm_wince_skip_main_prologue): Update.
6507 * auxv.c (ld_so_xfer_auxv): Update.
6508 * avr-tdep.c (avr_scan_prologue): Update.
6509 * ax-gdb.c (gen_var_ref): Update.
6510 * block.c (call_site_for_pc): Update.
6511 * blockframe.c (get_pc_function_start): Update.
6512 (find_pc_partial_function_gnu_ifunc): Update.
6513 * breakpoint.c (create_overlay_event_breakpoint): Update.
6514 (create_longjmp_master_breakpoint): Update.
6515 (create_std_terminate_master_breakpoint): Update.
6516 (create_exception_master_breakpoint): Update.
6517 (resolve_sal_pc): Update.
6518 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6519 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6520 Update.
6521 * c-valprint.c (c_val_print): Update.
6522 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6523 * coffread.c (coff_symfile_read): Update.
6524 * common/agent.c (agent_look_up_symbols): Update.
6525 * dbxread.c (find_stab_function_addr): Update.
6526 (end_psymtab): Update.
6527 * dwarf2loc.c (call_site_to_target_addr): Update.
6528 (func_verify_no_selftailcall): Update.
6529 (tailcall_dump): Update.
6530 (call_site_find_chain_1): Update.
6531 (dwarf_expr_reg_to_entry_parameter): Update.
6532 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6533 (elf_gnu_ifunc_resolve_by_got): Update.
6534 * f-valprint.c (info_common_command): Update.
6535 * findvar.c (read_var_value): Update.
6536 * frame.c (get_prev_frame_1): Update.
6537 (inside_main_func): Update.
6538 * frv-tdep.c (frv_skip_main_prologue): Update.
6539 (frv_frame_this_id): Update.
6540 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6541 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6542 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6543 (gnuv3_skip_trampoline): Update.
6544 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6545 (hppa64_hpux_in_solib_call_trampoline): Update.
6546 (hppa_hpux_skip_trampoline_code): Update.
6547 (hppa64_hpux_search_dummy_call_sequence): Update.
6548 (hppa_hpux_find_import_stub_for_addr): Update.
6549 (hppa_hpux_find_dummy_bpaddr): Update.
6550 * hppa-tdep.c (hppa_symbol_address)
6551 (hppa_lookup_stub_minimal_symbol): Update.
6552 * i386-tdep.c (i386_skip_main_prologue): Update.
6553 (i386_pe_skip_trampoline_code): Update.
6554 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6555 * infcall.c (get_function_name): Update.
6556 * infcmd.c (until_next_command): Update.
6557 * jit.c (jit_breakpoint_re_set_internal): Update.
6558 (jit_inferior_init): Update.
6559 * linespec.c (minsym_found): Update.
6560 (add_minsym): Update.
6561 * linux-fork.c (info_checkpoints_command): Update.
6562 * linux-nat.c (get_signo): Update.
6563 * linux-thread-db.c (inferior_has_bug): Update.
6564 * m32c-tdep.c (m32c_return_value): Update.
6565 (m32c_m16c_address_to_pointer): Update.
6566 (m32c_m16c_pointer_to_address): Update.
6567 * m32r-tdep.c (m32r_frame_this_id): Update.
6568 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6569 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6570 * maint.c (maintenance_translate_address): Update.
6571 * minsyms.c (add_minsym_to_hash_table): Update.
6572 (add_minsym_to_demangled_hash_table): Update.
6573 (msymbol_objfile): Update.
6574 (lookup_minimal_symbol): Update.
6575 (iterate_over_minimal_symbols): Update.
6576 (lookup_minimal_symbol_text): Update.
6577 (lookup_minimal_symbol_by_pc_name): Update.
6578 (lookup_minimal_symbol_solib_trampoline): Update.
6579 (lookup_minimal_symbol_by_pc_section_1): Update.
6580 (lookup_minimal_symbol_and_objfile): Update.
6581 (prim_record_minimal_symbol_full): Update.
6582 (compare_minimal_symbols): Update.
6583 (compact_minimal_symbols): Update.
6584 (build_minimal_symbol_hash_tables): Update.
6585 (install_minimal_symbols): Update.
6586 (terminate_minimal_symbol_table): Update.
6587 (find_solib_trampoline_target): Update.
6588 (minimal_symbol_upper_bound): Update.
6589 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6590 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6591 (mips_skip_pic_trampoline_code): Update.
6592 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6593 * objc-lang.c (selectors_info): Update.
6594 (classes_info): Update.
6595 (find_methods): Update.
6596 (find_imps): Update.
6597 (find_objc_msgsend): Update.
6598 * objfiles.c (objfile_relocate1): Update.
6599 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6600 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6601 * p-valprint.c (pascal_val_print): Update.
6602 * parse.c (write_exp_msymbol): Update.
6603 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6604 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6605 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6606 * printcmd.c (build_address_symbolic): Update.
6607 (sym_info): Update.
6608 (address_info): Update.
6609 * proc-service.c (ps_pglobal_lookup): Update.
6610 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6611 (find_pc_sect_psymtab): Update.
6612 * python/py-framefilter.c (py_print_frame): Update.
6613 * ravenscar-thread.c (get_running_thread_id): Update.
6614 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6615 Update.
6616 * remote.c (remote_check_symbols): Update.
6617 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6618 (rs6000_skip_trampoline_code): Update.
6619 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6620 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6621 * solib-dsbt.c (lm_base): Update.
6622 * solib-frv.c (lm_base): Update.
6623 (main_got): Update.
6624 * solib-irix.c (locate_base): Update.
6625 * solib-som.c (som_solib_create_inferior_hook): Update.
6626 (som_solib_desire_dynamic_linker_symbols): Update.
6627 (link_map_start): Update.
6628 * solib-spu.c (spu_enable_break): Update.
6629 (ocl_enable_break): Update.
6630 * solib-svr4.c (elf_locate_base): Update.
6631 (enable_break): Update.
6632 * spu-tdep.c (spu_get_overlay_table): Update.
6633 (spu_catch_start): Update.
6634 (flush_ea_cache): Update.
6635 * stabsread.c (define_symbol): Update.
6636 (scan_file_globals): Update.
6637 * stack.c (find_frame_funname): Update.
6638 (frame_info): Update.
6639 * symfile.c (simple_read_overlay_table): Update.
6640 (simple_overlay_update): Update.
6641 * symmisc.c (dump_msymbols): Update.
6642 * symtab.c (fixup_section): Update.
6643 (find_pc_sect_line): Update.
6644 (skip_prologue_sal): Update.
6645 (search_symbols): Update.
6646 (print_msymbol_info): Update.
6647 (rbreak_command): Update.
6648 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6649 (completion_list_objc_symbol): Update.
6650 (default_make_symbol_completion_list_break_on): Update.
6651 * tracepoint.c (scope_info): Update.
6652 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6653 (tui_get_begin_asm_address): Update.
6654 * valops.c (find_function_in_inferior): Update.
6655 * value.c (value_static_field): Update.
6656 (value_fn_field): Update.
6657
50e65b17
TT
66582014-02-26 Tom Tromey <tromey@redhat.com>
6659
6660 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6661 bound minimal symbols. Move code that knows about minsym
6662 table layout...
6663 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6664 function.
6665 * minsyms.h (minimal_symbol_upper_bound): Declare.
6666 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6667 minimal_symbol_upper_bound.
6668
1b588015
JB
66692014-02-27 Joel Brobecker <brobecker@adacore.com>
6670
6671 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6672 Use the type's name if its basic type does not have a tag.
6673
dbb9c2b1
JB
66742014-02-27 Joel Brobecker <brobecker@adacore.com>
6675
6676 * dwarf2read.c (read_subrange_type): Add comment.
6677
55426c9d
JB
66782014-02-27 Joel Brobecker <brobecker@adacore.com>
6679
6680 * dwarf2read.c (update_enumeration_type_from_children): New
6681 function, mostly extracted from process_structure_scope.
6682 (read_enumeration_type): Call update_enumeration_type_from_children.
6683 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6684 and flag_flag_enum fields.
6685
f2fce0ca
PA
66862014-02-26 Pedro Alves <palves@redhat.com>
6687
6688 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6689 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6690 to_xfer_partial method.
6691
7a44e40e
PA
66922014-02-26 Pedro Alves <palves@redhat.com>
6693
6694 * target.c (complete_target_initialization): Don't install
6695 default_xfer_partial as to_xfer_partial hook.
6696 (nomemory): Delete.
6697 (update_current_target): Don't INHERIT nor de_fault
6698 deprecated_xfer_memory. Delete de_fault macro.
6699 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6700 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6701 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6702 field.
6703
bd265cd0
PA
67042014-02-26 Pedro Alves <palves@redhat.com>
6705
6706 * go32-nat.c (my_write_child): New function.
6707 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6708 (go32_xfer_partial): New function.
6709 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6710 Instead install a to_xfer_partial hook.
6711
9d46c4e5
PA
67122014-02-26 Pedro Alves <palves@redhat.com>
6713
6714 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6715 to_xfer_partial helper. Rewrite.
6716 (procfs_xfer_partial): New function.
6717 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6718 Install a to_xfer_partial hook.
6719
a1583b1f
PA
67202014-02-26 Pedro Alves <palves@redhat.com>
6721
6722 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6723 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6724 (m32r_xfer_partial): New function.
6725 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6726 Install a to_xfer_partial hook.
6727
6df1b29f
PA
67282014-02-26 Pedro Alves <palves@redhat.com>
6729
6730 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6731 helper.
6732 (mips_xfer_partial): New function.
6733 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6734 hook. Install a to_xfer_partial hook.
6735
dc53a7ad
JB
67362014-02-26 Joel Brobecker <brobecker@adacore.com>
6737
6738 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6739 * gdbtypes.c (create_array_type_with_stride): New function,
6740 renaming create_array_type, but with an added parameter
6741 called "bit_stride".
6742 (create_array_type): Re-implement using
6743 create_array_type_with_stride.
6744 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6745 and DW_AT_bit_stride attributes.
6746
12ab52e9
PA
67472014-02-26 Pedro Alves <palves@redhat.com>
6748
6749 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6750 task-specific breakpoints.
6751
d16461ae
PA
67522014-02-25 Pedro Alves <palves@redhat.com>
6753
6754 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6755 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6756
a8b16220
SS
67572014-02-25 Stan Shebs <stan@codesourcery.com>
6758
6759 * defs.h: Annotate comments for Doxygen.
6760
b9e795ee
TT
67612014-02-25 Tom Tromey <tromey@redhat.com>
6762
6763 * target.h (target_ignore): Don't declare.
6764 * target.c (target_ignore): Remove.
6765
849c862e
JK
67662014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 PR gdb/16626
6769 * auto-load.c (auto_load_objfile_script_1): Change filename to
6770 debugfile.
6771
475109d8
JB
67722014-02-25 Joel Brobecker <brobecker@adacore.com>
6773
6774 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6775 documentation. Adjust prototype to match the target_ops
6776 to_xfer_partial method. Adjust implementation accordingly.
6777
e186c3bd
HZ
67782014-02-25 Hui Zhu <hui@codesourcery.com>
6779
6780 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6781 to_traceframe_info.
6782
6d451942
KB
67832014-02-25 Kevin Buettner <kevinb@redhat.com>
6784
041ab8b4 6785 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6786 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6787 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6788 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6789 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6790 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6791 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6792 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6793 New constants.
6794 (rl78_register_type): Use a data pointer type for SP and
6795 new pseudo registers mentioned above. Use a 16 bit integer
6796 type for all other register pairs.
6797 (rl78_register_name, rl78_g10_register_name): Update for
6798 new pseudo registers.
6799 (rl78_pseudo_register_read): Likewise.
6800 (rl78_pseudo_register_write): Likewise.
6801 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6802 to the newly added pseudo registers.
6803
eddf0bae
DE
68042014-02-24 Doug Evans <dje@google.com>
6805
6806 * value.c (record_latest_value): Fix comment.
6807 * printcmd.c (print_command_1): Remove code to handle -1 return from
6808 record_latest_value.
6809
e96027e0
PA
68102014-02-24 Pedro Alves <palves@redhat.com>
6811
6812 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6813 deprecated_xfer_memory hook.
6814 (procfs_xfer_partial): Call procfs_xfer_memory instead
6815 of the deprecated_xfer_memory target hook.
6816 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6817 helper.
6818
0837c976
YZ
68192014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6820
6821 * windows-nat.c (windows_xfer_shared_libraries): Return
6822 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6823 requested object is TARGET_OBJECT_LIBRARIES.
6824
bc113b4e
YQ
68252014-02-24 Yao Qi <yao@codesourcery.com>
6826
6827 * target.h (enum target_xfer_status)
6828 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6829 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6830 explicitly. New.
6831 * corefile.c (memory_error_message): User updated.
6832 * exec.c (section_table_read_available_memory): Likewise.
6833 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6834 * target.c (target_xfer_status_to_string): Likewise.
6835 (raw_memory_xfer_partial): Likewise.
6836 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6837 * valops.c (read_value_memory): Likewise.
6838 * exec.h: Update comments.
6839
01cb8804
YQ
68402014-02-24 Yao Qi <yao@codesourcery.com>
6841
6842 * target.c (target_xfer_status_to_string): Rename argument err
6843 to status.
6844 * target.h (target_xfer_status_to_string): Update declaration.
6845 Replace target_xfer_error_to_string with
6846 target_xfer_status_to_string in comment.
6847
93063aa6
YQ
68482014-02-24 Yao Qi <yao@codesourcery.com>
6849
6850 * mips-linux-nat.c (super_close): Update its type.
6851 (mips_linux_close): Pass 'self' to super_close.
6852
5c328c05
YQ
68532014-02-24 Yao Qi <yao@codesourcery.com>
6854
6855 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6856 * corefile.c (read_memory): Adjusted.
6857 * target.c (target_write_with_progress): Adjusted.
6858
f73023dd
YQ
68592014-02-23 Yao Qi <yao@codesourcery.com>
6860
6861 Revert two patches:
6862
6863 2013-10-25 Yao Qi <yao@codesourcery.com>
6864
6865 * remote.c (remote_traceframe_info): Return early if
6866 traceframe is not selected.
6867
6868 2013-07-19 Yao Qi <yao@codesourcery.com>
6869
6870 * target.c (update_current_target): Change the default action
6871 of 'to_traceframe_info' from tcomplain to return_zero.
6872 * target.h (struct target_ops) <to_traceframe_info>: Add more
6873 comments.
6874
5a2eb0ef
YQ
68752014-02-23 Yao Qi <yao@codesourcery.com>
6876
6877 * valops.c (read_value_memory): Rewrite it. Call
6878 target_xfer_partial in a loop.
6879 * exec.h (section_table_available_memory): Remove declaration.
6880 Move comments to ...
6881 * exec.c (section_table_available_memory): ... here. Make it
6882 static.
6883
1ee79381
YQ
68842014-02-23 Yao Qi <yao@codesourcery.com>
6885
6886 * exec.c (section_table_read_available_memory): New function.
6887 * exec.h (section_table_read_available_memory): Declare.
6888 * ctf.c (ctf_xfer_partial): Call
6889 section_table_read_available_memory.
6890 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6891
1ca49d37
YQ
68922014-02-23 Yao Qi <yao@codesourcery.com>
6893
6894 * ctf.c (ctf_xfer_partial): Move code to ...
6895 * exec.c (exec_read_partial_read_only): ... it. New function.
6896 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6897 * tracefile.c: Include "exec.h".
6898 * exec.h (exec_read_partial_read_only): Declare.
6899
a283690e
YQ
69002014-02-23 Yao Qi <yao@codesourcery.com>
6901
6902 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6903 (tfile_has_memory): Remove.
6904 (init_tfile_ops): Don't set fields to_has_all_memory and
6905 to_has_memory of tfile_ops.
6906 * tracefile.c (tracefile_has_all_memory): New function.
6907 (tracefile_has_memory): New function.
6908 (init_tracefile_ops): Initialize fields to_has_all_memory and
6909 to_has_memory of 'ops'.
6910
12e03cd0
YQ
69112014-02-23 Yao Qi <yao@codesourcery.com>
6912
6913 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6914 (ctf_thread_alive, ctf_get_trace_status): Remove.
6915 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6916 init_tracefile_ops.
6917 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6918 (tfile_has_stack, tfile_has_registers): Remove.
6919 (tfile_thread_alive): Remove.
6920 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6921 init_tracefile_ops.
6922 * tracefile.c (tracefile_has_stack): New function.
6923 (tracefile_has_registers): New function.
6924 (tracefile_thread_alive): New function.
6925 (tracefile_get_trace_status): New function.
6926 (init_tracefile_ops): New function.
6927 * tracefile.h (init_tracefile_ops): Declare.
6928
11395323
YQ
69292014-02-23 Yao Qi <yao@codesourcery.com>
6930
6931 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6932 (O_LARGEFILE): Likewise.
6933 (tfile_ops): Likewise.
6934 (TRACE_HEADER_SIZE): Likewise.
6935 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6936 (cur_data_size): Likewise.
6937 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6938 (tfile_close, tfile_files_info): Likewise.
6939 (tfile_get_trace_status): Likewise.
6940 (tfile_get_tracepoint_status): Likewise.
6941 (tfile_get_traceframe_address): Likewise.
6942 (tfile_trace_find, match_blocktype): Likewise.
6943 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6944 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6945 (tfile_get_trace_state_variable_value): Likewise.
6946 (tfile_has_all_memory, tfile_has_memory): Likewise.
6947 (tfile_has_stack, tfile_has_registers): Likewise.
6948 (tfile_thread_alive, build_traceframe_info): Likewise.
6949 (tfile_traceframe_info, init_tfile_ops): Likewise.
6950 (_initialize_tracepoint): Don't call init_tfile_ops
6951 and add_target_with_completer.
6952 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6953 exec.h, completer.h and filenames.h.
6954 (_initialize_tracefile_tfile): New function.
6955
7951c4eb
YQ
69562014-02-23 Yao Qi <yao@codesourcery.com>
6957
6958 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6959 tracefile-tfile.o.
6960 (HFILES_NO_SRCDIR): Add tracefile.h.
6961 * ctf.c: Include "tracefile.h".
6962 * tracefile.h: New file.
6963 * tracefile.c: New file
6964 * tracefile-tfile.c: New file.
6965 * tracepoint.c: Include "tracefile.h".
6966 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6967 (stop_reason_names): Add const.
6968 (trace_file_writer_xfree): Move it to tracefile.c.
6969 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6970 (trace_save_ctf): Likewise.
6971 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6972 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6973 (tfile_write_header, tfile_write_regblock_type): Likewise.
6974 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6975 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6976 (tfile_write_raw_data, tfile_end): Likewise.
6977 (tfile_trace_file_writer_new): Likewise.
6978 (free_uploaded_tp): Make it extern.
6979 (free_uploaded_tsv): Make it extern.
6980 (_initialize_tracepoint): Move code to register command 'tsave'
6981 to tracefile.c.
6982 * tracepoint.h (stop_reason_names): Declare.
6983 (struct trace_frame_write_ops): Move it to tracefile.h.
6984 (struct trace_file_write_ops): Likewise.
6985 (struct trace_file_writer): Likewise.
6986 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6987
184cd072
JK
69882014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6989
6990 PR gdb/16594
6991 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6992 process name.
6993 (get_cores_used_by_process): New parameter num_cores, use it.
6994 (linux_xfer_osdata_processes): Pass num_cores to it.
6995 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6996 process name.
6997
c63528fc
AK
69982014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6999
7000 * target.c (memory_xfer_partial): Fix length arg in call to
7001 breakpoint_xfer_memory.
7002
d7b30f67
SDJ
70032014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7004
7005 PR tdep/16397
7006 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7007 number comes after the + or - signs. Adjust length of register
7008 name to be extracted.
7009
8838afaf
TT
70102014-02-20 Tom Tromey <tromey@redhat.com>
7011
7012 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7013 (ada_varobj_ops): Mark "extern".
7014
05227d14
TT
70152014-02-20 Tom Tromey <tromey@redhat.com>
7016
7017 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7018
1254eefc
DE
70192014-02-20 Doug Evans <xdje42@gmail.com>
7020
7021 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7022 All callers updated.
7023 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7024 All callers updated.
7025 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7026 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7027
adde2bff
DE
70282014-02-20 lin zuojian <manjian2006@gmail.com>
7029 Joel Brobecker <brobecker@adacore.com>
7030 Doug Evans <xdje42@gmail.com>
7031
7032 PR symtab/16581
7033 * dwarf2read.c (struct die_info): New member in_process.
7034 (reset_die_in_process): New function.
7035 (process_die): Set it at the start, reset when returning.
7036 (inherit_abstract_dies): Only call process_die if origin_child_die
7037 not already being processed.
7038
3be75f87
JB
70392014-02-20 Joel Brobecker <brobecker@adacore.com>
7040
7041 * windows-nat.c (handle_unload_dll): Add function documentation.
7042 (do_initial_windows_stuff): Add comment explaining why we wait
7043 until after inferior initialization has finished before
7044 processing all DLLs.
7045
47f7ffdb
JB
70462014-02-20 Joel Brobecker <brobecker@adacore.com>
7047
7048 * windows-nat.c (get_module_name): Delete.
7049 (windows_get_exec_module_filename): New function, mostly
7050 inspired from get_module_name.
7051 (windows_pid_to_exec_file): Replace call to get_module_name
7052 by call to windows_get_exec_module_filename.
7053
1cd9feab
JB
70542014-02-20 Joel Brobecker <brobecker@adacore.com>
7055
7056 * windows-nat.c (handle_load_dll): Rewrite this function's
7057 introductory comment. Remove code using get_module_name
7058 to get the DLL's name.
7059
ea39ad35
JB
70602014-02-20 Joel Brobecker <brobecker@adacore.com>
7061
7062 * windows-nat.c (get_windows_debug_event): Ignore
7063 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7064 if windows_initialization_done == 0.
7065 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7066 Adjust implementation to always load all DLLs.
7067 (do_initial_windows_stuff): Replace call to
7068 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7069
95060284
JB
70702014-02-20 Joel Brobecker <brobecker@adacore.com>
7071
7072 * windows-nat.c (_initialize_windows_nat): Deprecate the
7073 "dll-symbols" command. Turn the "add-shared-symbol-files"
7074 and "assf" aliases into commands, and deprecate them as well.
7075 * NEWS: Add entry explaining that "dll-symbols" and its two
7076 aliases are now deprecated.
7077
8d4fdb12
JB
70782014-02-20 Joel Brobecker <brobecker@adacore.com>
7079
7080 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7081 new-line in debug string. Remove trailing spaces.
7082
1b281443
SS
70832014-02-19 Stan Shebs <stan@codesourcery.com>
7084
7085 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7086
f7bd0f78
SC
70872014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7088
7089 * NEWS: Add entry for the new feature
7090 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7091 and class values.
7092
399ebc3d
SS
70932014-02-19 Stan Shebs <stan@codesourcery.com>
7094
7095 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7096
c658158d
PA
70972014-02-19 Pedro Alves <palves@redhat.com>
7098
7099 * common/ptid.h (struct ptid): Mention that process_stratum
7100 targets should prefer ptid.lwp.
7101
ba348170
PA
71022014-02-19 Pedro Alves <palves@redhat.com>
7103
7104 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7105 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7106 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7107 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7108 store remote thread ids rather than ptid.tid.
7109 (_initialize_remote): Adjust.
7110
ac01945b
TT
71112014-02-19 Tom Tromey <tromey@redhat.com>
7112
7113 * target.c (target_get_unwinder): Rewrite.
7114 (target_get_tailcall_unwinder): Rewrite.
7115 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7116 (record_btrace_to_get_tailcall_unwinder): New function.
7117 (init_record_btrace_ops): Update.
7118 * target.h (struct target_ops) <to_get_unwinder,
7119 to_get_tailcall_unwinder>: Now function pointers. Use
7120 TARGET_DEFAULT_RETURN.
7121
8476dc92
TT
71222014-02-19 Tom Tromey <tromey@redhat.com>
7123
7124 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7125 argument.
7126 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7127
c0eca49f
TT
71282014-02-19 Tom Tromey <tromey@redhat.com>
7129
7130 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7131 directly.
7132 * target-delegates.c: Rebuild.
7133 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7134 TARGET_DEFAULT_FUNC.
7135 * target.c (default_target_decr_pc_after_break): Rename from
7136 forward_target_decr_pc_after_break. Simplify.
7137 (target_decr_pc_after_break): Rely on delegation.
7138
596b6b39
TT
71392014-02-19 Tom Tromey <tromey@redhat.com>
7140
7141 * target.c (update_current_target): Do not INHERIT to_doc or
7142 to_magic. Do not de_fault to_open or to_close.
7143
b427c1bc
TT
71442014-02-19 Tom Tromey <tromey@redhat.com>
7145
7146 * gcore.h (objfile_find_memory_regions): Declare.
7147 * gcore.c (objfile_find_memory_regions): No longer static. Add
7148 "self" argument.
7149 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7150 * exec.c: Include gcore.h.
7151 (exec_set_find_memory_regions): Remove.
7152 (exec_find_memory_regions): Remove.
7153 (exec_do_find_memory_regions): Remove.
7154 (init_exec_ops): Update.
7155 * defs.h (exec_set_find_memory_regions): Remove.
7156
9b144037
TT
71572014-02-19 Tom Tromey <tromey@redhat.com>
7158
7159 * target-delegates.c: Rebuild.
7160 * target.h (struct target_ops) <to_extra_thread_info,
7161 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7162 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7163 not 0, in TARGET_DEFAULT_RETURN.
7164
555bbdeb
TT
71652014-02-19 Tom Tromey <tromey@redhat.com>
7166
7167 * target.c (complete_target_initialization): Remove casts. Use
7168 return_zero_has_execution.
7169 (return_zero): Add "ignore" argument.
7170 (return_zero_has_execution): New function.
7171 (init_dummy_target): Remove casts. Use
7172 return_zero_has_execution.
7173
be4ddd36
TT
71742014-02-19 Tom Tromey <tromey@redhat.com>
7175
7176 * target.c (update_current_target): Update comments. Do not
7177 INHERIT to_stratum.
7178
2117c711
TT
71792014-02-19 Tom Tromey <tromey@redhat.com>
7180
7181 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7182 needed.
7183 * corelow.c (core_read_description): Delegate when needed.
7184 * remote.c (remote_read_description): Delegate when needed.
7185 * target-delegates.c: Rebuild.
7186 * target.c (target_read_description): Rewrite.
7187 * target.h (struct target_ops) <to_read_description>: Update
7188 comment. Use TARGET_DEFAULT_RETURN.
7189
e88ef65c
TT
71902014-02-19 Tom Tromey <tromey@redhat.com>
7191
7192 * target-delegates.c: Rebuild.
7193 * target.c (update_current_target): Don't inherit or default
7194 to_can_run.
7195 (find_default_run_target): Check against delegate_can_run.
7196 * target.h (struct target_ops) <to_can_run>: Use
7197 TARGET_DEFAULT_RETURN.
7198
86a0854a
TT
71992014-02-19 Tom Tromey <tromey@redhat.com>
7200
7201 * target-delegates.c: Rebuild.
7202 * target.c (target_disconnect): Unconditionally delegate.
7203 * target.h (struct target_ops) <to_disconnect>: Use
7204 TARGET_DEFAULT_NORETURN.
7205
ee97f592
TT
72062014-02-19 Tom Tromey <tromey@redhat.com>
7207
7208 * record.c (record_stop): Unconditionally delegate.
7209 * target-delegates.c: Rebuild.
7210 * target.c (target_stop_recording): Unconditionally delegate.
7211 * target.h (struct target_ops) <to_stop_recording>: Use
7212 TARGET_DEFAULT_IGNORE.
7213
6dc7fcf4
TT
72142014-02-19 Tom Tromey <tromey@redhat.com>
7215
7216 * target-delegates.c: Rebuild.
7217 * target.c (target_enable_btrace): Unconditionally delegate.
7218 * target.h (struct target_ops) <to_enable_btrace>: Use
7219 TARGET_DEFAULT_NORETURN.
7220
eb5b20d4
TT
72212014-02-19 Tom Tromey <tromey@redhat.com>
7222
7223 * target-delegates.c: Rebuild.
7224 * target.c (target_read_btrace): Unconditionally delegate.
7225 * target.h (struct target_ops) <to_read_btrace>: Use
7226 TARGET_DEFAULT_NORETURN.
7227
9ace480d
TT
72282014-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 * target-delegates.c: Rebuild.
7231 * target.c (target_teardown_btrace): Unconditionally delegate.
7232 * target.h (struct target_ops) <to_teardown_btrace>: Use
7233 TARGET_DEFAULT_NORETURN.
7234
8dc292d3
TT
72352014-02-19 Tom Tromey <tromey@redhat.com>
7236
7237 * target-delegates.c: Rebuild.
7238 * target.c (target_disable_btrace): Unconditionally delegate.
7239 * target.h (struct target_ops) <to_disable_btrace>: Use
7240 TARGET_DEFAULT_NORETURN.
7241
58a5184e
TT
72422014-02-19 Tom Tromey <tromey@redhat.com>
7243
7244 * target-delegates.c: Rebuild.
7245 * target.c (default_search_memory): New function.
7246 (simple_search_memory): Update comment.
7247 (target_search_memory): Unconditionally delegate.
7248 * target.h (struct target_ops) <to_search_memory>: Use
7249 TARGET_DEFAULT_FUNC.
7250
8de71aab
TT
72512014-02-19 Tom Tromey <tromey@redhat.com>
7252
7253 * auxv.c (default_auxv_parse): No longer static.
7254 (target_auxv_parse): Unconditionally delegate.
7255 * auxv.h (default_auxv_parse): Declare.
7256 * target-delegates.c: Rebuild.
7257 * target.c: Include auxv.h.
7258 * target.h (struct target_ops) <to_auxv_parse>: Use
7259 TARGET_DEFAULT_FUNC.
7260
6b2c5a57
TT
72612014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.c (target_memory_map): Unconditionally delegate.
7265 * target.h (struct target_ops) <to_memory_map>: Use
7266 TARGET_DEFAULT_RETURN.
7267
cbffc065
TT
72682014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target-delegates.c: Rebuild.
7271 * target.c (target_thread_alive): Unconditionally delegate.
7272 * target.h (struct target_ops) <to_thread_alive>: Use
7273 TARGET_DEFAULT_RETURN.
7274
f09e2107
TT
72752014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * target-delegates.c: Rebuild.
7278 * target.c (target_save_record): Unconditionally delegate.
7279 * target.h (struct target_ops) <to_save_record>: Use
7280 TARGET_DEFAULT_NORETURN.
7281
07366925
TT
72822014-02-19 Tom Tromey <tromey@redhat.com>
7283
7284 * target-delegates.c: Rebuild.
7285 * target.c (target_delete_record): Unconditionally delegate.
7286 * target.h (struct target_ops) <to_delete_record>: Use
7287 TARGET_DEFAULT_NORETURN.
7288
dd2e9d25
TT
72892014-02-19 Tom Tromey <tromey@redhat.com>
7290
7291 * target-delegates.c: Rebuild.
7292 * target.c (target_record_is_replaying): Unconditionally
7293 delegate.
7294 * target.h (struct target_ops) <to_record_is_replaying>: Use
7295 TARGET_DEFAULT_RETURN.
7296
671e76cc
TT
72972014-02-19 Tom Tromey <tromey@redhat.com>
7298
7299 * target-delegates.c: Rebuild.
7300 * target.c (target_goto_record_begin): Unconditionally delegate.
7301 * target.h (struct target_ops) <to_goto_record_begin>: Use
7302 TARGET_DEFAULT_NORETURN.
7303
e9179bb3
TT
73042014-02-19 Tom Tromey <tromey@redhat.com>
7305
7306 * target-delegates.c: Rebuild.
7307 * target.c (target_goto_record_end): Unconditionally delegate.
7308 * target.h (struct target_ops) <to_goto_record_end>: Use
7309 TARGET_DEFAULT_NORETURN.
7310
05969c84
TT
73112014-02-19 Tom Tromey <tromey@redhat.com>
7312
7313 * target-delegates.c: Rebuild.
7314 * target.c (target_goto_record): Unconditionally delegate.
7315 * target.h (struct target_ops) <to_goto_record>: Use
7316 TARGET_DEFAULT_NORETURN.
7317
3679abfa
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * target-delegates.c: Rebuild.
7321 * target.c (target_insn_history): Unconditionally delegate.
7322 * target.h (struct target_ops) <to_insn_history>: Use
7323 TARGET_DEFAULT_NORETURN.
7324
8444ab58
TT
73252014-02-19 Tom Tromey <tromey@redhat.com>
7326
7327 * target-delegates.c: Rebuild.
7328 * target.c (target_insn_history_from): Unconditionally delegate.
7329 * target.h (struct target_ops) <to_insn_history_from>: Use
7330 TARGET_DEFAULT_NORETURN.
7331
c29302cc
TT
73322014-02-19 Tom Tromey <tromey@redhat.com>
7333
7334 * target-delegates.c: Rebuild.
7335 * target.c (target_insn_history_range): Unconditionally delegate.
7336 * target.h (struct target_ops) <to_insn_history_range>: Use
7337 TARGET_DEFAULT_NORETURN.
7338
170049d4
TT
73392014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * target-delegates.c: Rebuild.
7342 * target.c (target_call_history): Unconditionally delegate.
7343 * target.h (struct target_ops) <to_call_history>: Use
7344 TARGET_DEFAULT_NORETURN.
7345
16fc27d6
TT
73462014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target-delegates.c: Rebuild.
7349 * target.c (target_call_history_from): Unconditionally delegate.
7350 * target.h (struct target_ops) <to_call_history_from>: Use
7351 TARGET_DEFAULT_NORETURN.
7352
115d9817
TT
73532014-02-19 Tom Tromey <tromey@redhat.com>
7354
7355 * target-delegates.c: Rebuild.
7356 * target.c (target_call_history_range): Unconditionally delegate.
7357 * target.h (struct target_ops) <to_call_history_range>: Use
7358 TARGET_DEFAULT_NORETURN.
7359
eb276a6b
TT
73602014-02-19 Tom Tromey <tromey@redhat.com>
7361
7362 * target-delegates.c: Rebuild.
7363 * target.c (target_verify_memory): Unconditionally delegate.
7364 * target.h (struct target_ops) <to_verify_memory>: Use
7365 TARGET_DEFAULT_NORETURN.
7366
9e538d0d
TT
73672014-02-19 Tom Tromey <tromey@redhat.com>
7368
7369 * target-delegates.c: Rebuild.
7370 * target.c (target_core_of_thread): Unconditionally delegate.
7371 * target.h (struct target_ops) <to_core_of_thread>: Use
7372 TARGET_DEFAULT_RETURN.
7373
f6fb2925
TT
73742014-02-19 Tom Tromey <tromey@redhat.com>
7375
7376 * target-delegates.c: Rebuild.
7377 * target.c (target_flash_done): Unconditionally delegate.
7378 * target.h (struct target_ops) <to_flash_done>: Use
7379 TARGET_DEFAULT_NORETURN.
7380
e8a6c6ac
TT
73812014-02-19 Tom Tromey <tromey@redhat.com>
7382
7383 * target-delegates.c: Rebuild.
7384 * target.c (target_flash_erase): Unconditionally delegate.
7385 * target.h (struct target_ops) <to_flash_erase>: Use
7386 TARGET_DEFAULT_NORETURN.
7387
7e35c012
TT
73882014-02-19 Tom Tromey <tromey@redhat.com>
7389
7390 * target-delegates.c: Rebuild.
7391 * target.c (target_get_section_table): Unconditionally delegate.
7392 * target.h (struct target_ops) <to_get_section_table>: Use
7393 TARGET_DEFAULT_RETURN.
7394
770234d3
TT
73952014-02-19 Tom Tromey <tromey@redhat.com>
7396
7397 * target-delegates.c: Rebuild.
7398 * target.c (target_pid_to_str): Unconditionally delegate.
7399 (init_dummy_target): Don't initialize to_pid_to_str.
7400 (default_pid_to_str): Rename from dummy_pid_to_str.
7401 * target.h (struct target_ops) <to_pid_to_str>: Use
7402 TARGET_DEFAULT_FUNC.
7403
09b0dc2b
TT
74042014-02-19 Tom Tromey <tromey@redhat.com>
7405
7406 * target-delegates.c: Rebuild.
7407 * target.c (target_find_new_threads): Unconditionally delegate.
7408 * target.h (struct target_ops) <to_find_new_threads>: Use
7409 TARGET_DEFAULT_RETURN.
7410
7d4f8efa
TT
74112014-02-19 Tom Tromey <tromey@redhat.com>
7412
7413 * target-delegates.c: Rebuild.
7414 * target.c (target_program_signals): Unconditionally delegate.
7415 * target.h (struct target_ops) <to_program_signals>: Use
7416 TARGET_DEFAULT_IGNORE.
7417
035cad7f
TT
74182014-02-19 Tom Tromey <tromey@redhat.com>
7419
7420 * target-delegates.c: Rebuild.
7421 * target.c (target_pass_signals): Unconditionally delegate.
7422 * target.h (struct target_ops) <to_pass_signals>: Use
7423 TARGET_DEFAULT_IGNORE.
7424
8d657035
TT
74252014-02-19 Tom Tromey <tromey@redhat.com>
7426
7427 * target-delegates.c: Rebuild.
7428 * target.c (default_mourn_inferior): New function.
7429 (target_mourn_inferior): Unconditionally delegate.
7430 * target.h (struct target_ops) <to_mourn_inferior>: Use
7431 TARGET_DEFAULT_FUNC.
7432
098dba18
TT
74332014-02-19 Tom Tromey <tromey@redhat.com>
7434
7435 * target-delegates.c: Rebuild.
7436 * target.c (default_follow_fork): New function.
7437 (target_follow_fork): Unconditionally delegate.
7438 * target.h (struct target_ops) <to_follow_fork>: Use
7439 TARGET_DEFAULT_FUNC.
7440
423a4807
TT
74412014-02-19 Tom Tromey <tromey@redhat.com>
7442
7443 * target-delegates.c: Rebuild.
7444 * target.c (target_kill): Unconditionally delegate.
7445 * target.h (struct target_ops) <to_kill>: Use
7446 TARGET_DEFAULT_NORETURN.
7447
6c7e5e5c
TT
74482014-02-19 Tom Tromey <tromey@redhat.com>
7449
7450 * target-delegates.c: Rebuild.
7451 * target.c (target_masked_watch_num_registers): Unconditionally
7452 delegate.
7453 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7454 Use TARGET_DEFAULT_RETURN.
7455
8b1c364c
TT
74562014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * target-delegates.c: Rebuild.
7459 * target.c (target_remove_mask_watchpoint): Unconditionally
7460 delegate.
7461 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7462 TARGET_DEFAULT_RETURN.
7463
cd4ae029
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (target_insert_mask_watchpoint): Unconditionally
7468 delegate.
7469 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7470 TARGET_DEFAULT_RETURN.
7471
a134316b
TT
74722014-02-19 Tom Tromey <tromey@redhat.com>
7473
7474 * target-delegates.c: Rebuild.
7475 * target.c (target_ranged_break_num_registers): Unconditionally
7476 delegate.
7477 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7478 Use TARGET_DEFAULT_RETURN.
7479
ad5989bd
TT
74802014-02-19 Tom Tromey <tromey@redhat.com>
7481
7482 * target-delegates.c: Rebuild.
7483 * target.c (target_fetch_registers): Unconditionally delegate.
7484 * target.h (struct target_ops) <to_fetch_registers>: Use
7485 TARGET_DEFAULT_NORETURN.
7486
46ee7e8d
TT
74872014-02-19 Tom Tromey <tromey@redhat.com>
7488
7489 * target-delegates.c: Rebuild.
7490 * target.c (update_current_target): Don't inherit or default
7491 to_stop.
7492 * target.h (struct target_ops) <to_stop>: Use
7493 TARGET_DEFAULT_IGNORE.
7494
843f59ed
TT
74952014-02-19 Tom Tromey <tromey@redhat.com>
7496
7497 * target-delegates.c: Rebuild.
7498 * target.c (update_current_target): Don't inherit or default
7499 to_can_run_breakpoint_commands.
7500 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7501 Use TARGET_DEFAULT_RETURN.
7502
ccfde2a0
TT
75032014-02-19 Tom Tromey <tromey@redhat.com>
7504
7505 * target-delegates.c: Rebuild.
7506 * target.c (update_current_target): Don't inherit or default
7507 to_supports_evaluation_of_breakpoint_conditions.
7508 * target.h (struct target_ops)
7509 <to_supports_evaluation_of_breakpoint_conditions>: Use
7510 TARGET_DEFAULT_RETURN.
7511
0de91722
TT
75122014-02-19 Tom Tromey <tromey@redhat.com>
7513
7514 * target-delegates.c: Rebuild.
7515 * target.c (update_current_target): Don't inherit or default
7516 to_augmented_libraries_svr4_read.
7517 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7518 Use TARGET_DEFAULT_RETURN.
7519
9a7d8b48
TT
75202014-02-19 Tom Tromey <tromey@redhat.com>
7521
7522 * target-delegates.c: Rebuild.
7523 * target.c (update_current_target): Don't inherit or default
7524 to_can_use_agent.
7525 * target.h (struct target_ops) <to_can_use_agent>: Use
7526 TARGET_DEFAULT_RETURN.
7527
d9db5b21
TT
75282014-02-19 Tom Tromey <tromey@redhat.com>
7529
7530 * target-delegates.c: Rebuild.
7531 * target.c (update_current_target): Don't inherit or default
7532 to_use_agent.
7533 * target.h (struct target_ops) <to_use_agent>: Use
7534 TARGET_DEFAULT_NORETURN.
7535
92155eeb
TT
75362014-02-19 Tom Tromey <tromey@redhat.com>
7537
7538 * target-delegates.c: Rebuild.
7539 * target.c (update_current_target): Don't inherit or default
7540 to_traceframe_info.
7541 (return_null): Remove.
7542 * target.h (struct target_ops) <to_traceframe_info>: Use
7543 TARGET_DEFAULT_RETURN.
7544
d6522a22
TT
75452014-02-19 Tom Tromey <tromey@redhat.com>
7546
7547 * target-delegates.c: Rebuild.
7548 * target.c (update_current_target): Don't inherit or default
7549 to_static_tracepoint_markers_by_strid.
7550 * target.h (struct target_ops)
7551 <to_static_tracepoint_markers_by_strid>: Use
7552 TARGET_DEFAULT_NORETURN.
7553
4c3e4425
TT
75542014-02-19 Tom Tromey <tromey@redhat.com>
7555
7556 * target-delegates.c: Rebuild.
7557 * target.c (update_current_target): Don't inherit or default
7558 to_static_tracepoint_marker_at.
7559 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7560 Use TARGET_DEFAULT_RETURN.
7561
dcd6917f
TT
75622014-02-19 Tom Tromey <tromey@redhat.com>
7563
7564 * target-delegates.c: Rebuild.
7565 * target.c (update_current_target): Don't inherit or default
7566 to_set_permissions.
7567 * target.h (struct target_ops) <to_set_permissions>: Use
7568 TARGET_DEFAULT_IGNORE.
7569
22bcceee
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (update_current_target): Don't inherit or default
7574 to_get_tib_address.
7575 * target.h (struct target_ops) <to_get_tib_address>: Use
7576 TARGET_DEFAULT_NORETURN.
7577
8586ccaa
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (update_current_target): Don't inherit or default
7582 to_set_trace_notes.
7583 * target.h (struct target_ops) <to_set_trace_notes>: Use
7584 TARGET_DEFAULT_RETURN.
7585
91df8d1d
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (update_current_target): Don't initialize
7590 to_set_trace_buffer_size.
7591 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7592 TARGET_DEFAULT_IGNORE.
7593
8d526939
TT
75942014-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_set_circular_trace_buffer.
7599 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7600 TARGET_DEFAULT_IGNORE.
7601
0bcfeddf
TT
76022014-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_disconnected_tracing.
7607 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7608 TARGET_DEFAULT_IGNORE.
7609
9249843f
TT
76102014-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_min_fast_tracepoint_insn_len.
7615 (return_minus_one): Remove.
7616 * target.h (struct target_ops)
7617 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7618
ace92e7d
TT
76192014-02-19 Tom Tromey <tromey@redhat.com>
7620
7621 * target-delegates.c: Rebuild.
7622 * target.c (update_current_target): Don't inherit or default
7623 to_get_raw_trace_data.
7624 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7625 TARGET_DEFAULT_NORETURN.
7626
08120467
TT
76272014-02-19 Tom Tromey <tromey@redhat.com>
7628
7629 * target-delegates.c: Rebuild.
7630 * target.c (update_current_target): Don't inherit or default
7631 to_upload_trace_state_variables.
7632 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7633 Use TARGET_DEFAULT_RETURN.
7634
1e949b00
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * target-delegates.c: Rebuild.
7638 * target.c (update_current_target): Don't inherit or default
7639 to_upload_tracepoints.
7640 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7641 TARGET_DEFAULT_RETURN.
7642
a2e6c147
TT
76432014-02-19 Tom Tromey <tromey@redhat.com>
7644
7645 * target-delegates.c: Rebuild.
7646 * target.c (update_current_target): Don't inherit or default
7647 to_save_trace_data.
7648 * target.h (struct target_ops) <to_save_trace_data>: Use
7649 TARGET_DEFAULT_NORETURN.
7650
959bcd0b
TT
76512014-02-19 Tom Tromey <tromey@redhat.com>
7652
7653 * target-delegates.c: Rebuild.
7654 * target.c (update_current_target): Don't inherit or default
7655 to_get_trace_state_variable_value.
7656 * target.h (struct target_ops)
7657 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7658
afc94e66
TT
76592014-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_trace_find.
7664 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7665
e51c07ea
TT
76662014-02-19 Tom Tromey <tromey@redhat.com>
7667
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7670 to_trace_stop.
7671 * target.h (struct target_ops) <to_trace_stop>: Use
7672 TARGET_DEFAULT_NORETURN.
7673
6fea14cd
TT
76742014-02-19 Tom Tromey <tromey@redhat.com>
7675
7676 * target-delegates.c: Rebuild.
7677 * target.c (update_current_target): Don't inherit or default
7678 to_get_tracepoint_status.
7679 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7680 TARGET_DEFAULT_NORETURN.
7681
4072d4ff
TT
76822014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target-delegates.c: Rebuild.
7685 * target.c (update_current_target): Don't inherit or default
7686 to_get_trace_status.
7687 * target.h (struct target_ops) <to_get_trace_status>: Use
7688 TARGET_DEFAULT_RETURN.
7689
25da2e80
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (update_current_target): Don't inherit or default
7694 to_trace_start.
7695 * target.h (struct target_ops) <to_trace_start>: Use
7696 TARGET_DEFAULT_NORETURN.
7697
86dd181d
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7702 to_trace_set_readonly_regions.
7703 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7704 Use TARGET_DEFAULT_NORETURN.
7705
05c41993
TT
77062014-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_disable_tracepoint.
7711 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7712 TARGET_DEFAULT_NORETURN.
7713
151f70f1
TT
77142014-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_enable_tracepoint.
7719 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7720 TARGET_DEFAULT_NORETURN.
7721
94eb98b9
TT
77222014-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_download_trace_state_variable.
7727 * target.h (struct target_ops) <to_download_trace_state_variable>:
7728 Use TARGET_DEFAULT_NORETURN.
7729
719acc4a
TT
77302014-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_can_download_tracepoint.
7735 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7736 TARGET_DEFAULT_RETURN.
7737
9a980a22
TT
77382014-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_download_tracepoint.
7743 * target.h (struct target_ops) <to_download_tracepoint>: Use
7744 TARGET_DEFAULT_NORETURN.
7745
5536135b
TT
77462014-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_trace_init.
7751 * target.h (struct target_ops) <to_trace_init>: Use
7752 TARGET_DEFAULT_RETURN.
7753
9409d39e
TT
77542014-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_supports_string_tracing.
7759 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7760 TARGET_DEFAULT_RETURN.
7761
aab1b22d
TT
77622014-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_supports_enable_disable_tracepoint.
7767 * target.h (struct target_ops)
7768 <to_supports_enable_disable_tracepoint>: Use
7769 TARGET_DEFAULT_RETURN.
7770
a7304748
TT
77712014-02-19 Tom Tromey <tromey@redhat.com>
7772
7773 * target-delegates.c: Rebuild.
7774 * target.c (update_current_target): Don't inherit or default
7775 to_supports_multi_process.
7776 * target.h (struct target_ops) <to_supports_multi_process>: Use
7777 TARGET_DEFAULT_RETURN.
7778
4229b31d
TT
77792014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target-delegates.c: Rebuild.
7782 * target.c (update_current_target): Don't inherit or default
7783 to_get_ada_task_ptid.
7784 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7785 TARGET_DEFAULT_FUNC.
7786
43eba180
TT
77872014-02-19 Tom Tromey <tromey@redhat.com>
7788
7789 * target-delegates.c: Rebuild.
7790 * target.c (update_current_target): Don't inherit or default
7791 to_thread_architecture.
7792 * target.h (struct target_ops) <to_thread_architecture>: Use
7793 TARGET_DEFAULT_FUNC.
7794
fe31bf5b
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target-delegates.c: Rebuild.
7798 * target.c (update_current_target): Don't inherit or default
7799 to_execution_direction.
7800 * target.h (struct target_ops) <to_execution_direction>: Use
7801 TARGET_DEFAULT_FUNC.
7802
53e1cfc7
TT
78032014-02-19 Tom Tromey <tromey@redhat.com>
7804
7805 * target-delegates.c: Rebuild.
7806 * target.c (update_current_target): Don't inherit or default
7807 to_can_execute_reverse.
7808 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7809 TARGET_DEFAULT_RETURN.
7810 (target_can_execute_reverse): Unconditionally delegate.
7811
9bb9d61d
TT
78122014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target-delegates.c: Rebuild.
7815 * target.c (update_current_target): Don't inherit or default
7816 to_goto_bookmark.
7817 (dummy_goto_bookmark): Remove.
7818 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7819 * target.h (struct target_ops) <to_goto_bookmark>: Use
7820 TARGET_DEFAULT_NORETURN.
7821
3dbafbbb
TT
78222014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target-delegates.c: Rebuild.
7825 * target.c (update_current_target): Don't inherit or default
7826 to_get_bookmark.
7827 (dummy_get_bookmark): Remove.
7828 (init_dummy_target): Don't inherit or default to_get_bookmark.
7829 * target.h (struct target_ops) <to_get_bookmark>: Use
7830 TARGET_DEFAULT_NORETURN
7831
16f796b1
TT
78322014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7836 to_make_corefile_notes.
7837 (init_dummy_target): Don't initialize to_make_corefile_notes.
7838 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7839 TARGET_DEFAULT_FUNC.
7840
0b5a2719
TT
78412014-02-19 Tom Tromey <tromey@redhat.com>
7842
7843 * target-delegates.c: Rebuild.
7844 * target.c (update_current_target): Don't inherit or default
7845 to_find_memory_regions.
7846 (init_dummy_target): Don't initialize to_find_memory_regions.
7847 * target.h (struct target_ops) <to_find_memory_regions>: Use
7848 TARGET_DEFAULT_FUNC.
7849
d9cb0195
TT
78502014-02-19 Tom Tromey <tromey@redhat.com>
7851
7852 * target-delegates.c: Rebuild.
7853 * target.c (update_current_target): Don't inherit or default
7854 to_log_command.
7855 * target.h (struct target_ops) <to_log_command>: Use
7856 TARGET_DEFAULT_IGNORE.
7857 (target_log_command): Unconditionally delegate.
7858
830ca330
TT
78592014-02-19 Tom Tromey <tromey@redhat.com>
7860
7861 * target-delegates.c: Rebuild.
7862 * target.c (update_current_target): Don't inherit or default
7863 to_pid_to_exec_file.
7864 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7865 TARGET_DEFAULT_RETURN.
7866
825828fc
TT
78672014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (update_current_target): Don't inherit or default
7871 to_thread_name.
7872 (target_thread_name): Unconditionally delegate.
7873 * target.h (struct target_ops) <to_thread_name>: Use
7874 TARGET_DEFAULT_RETURN.
7875
4a7e6dda
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_extra_thread_info.
7881 * target.h (struct target_ops) <to_extra_thread_info>: Use
7882 TARGET_DEFAULT_RETURN.
7883
0db88c1d
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_has_exited.
7889 * target.h (struct target_ops) <to_has_exited>: Use
7890 TARGET_DEFAULT_RETURN..
7891
6a9fa051
TT
78922014-02-19 Tom Tromey <tromey@redhat.com>
7893
7894 * target-delegates.c: Rebuild.
7895 * target.c (update_current_target): Don't inherit or default
7896 to_set_syscall_catchpoint.
7897 (return_one): Remove.
7898 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7899 TARGET_DEFAULT_RETURN.
7900
62f64d7a
TT
79012014-02-19 Tom Tromey <tromey@redhat.com>
7902
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7905 to_insert_exec_catchpoint.
7906 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7907 TARGET_DEFAULT_RETURN.
7908
cda0f38c
TT
79092014-01-08 Tom Tromey <tromey@redhat.com>
7910
7911 * target-delegates.c: Rebuild.
7912 * target.c (update_current_target): Don't inherit or default
7913 to_insert_exec_catchpoint.
7914 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7915 TARGET_DEFAULT_RETURN.
7916
95c3375e
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target-delegates.c: Rebuild.
7920 * target.c (update_current_target): Don't inherit or default
7921 to_remove_vfork_catchpoint.
7922 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7923 TARGET_DEFAULT_RETURN.
7924
7e18a8dc
TT
79252014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_insert_vfork_catchpoint.
7930 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7931 TARGET_DEFAULT_RETURN.
7932
e1a21fb7
TT
79332014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7937 to_remove_fork_catchpoint.
7938 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7939 TARGET_DEFAULT_RETURN.
7940
5958ebeb
TT
79412014-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_fork_catchpoint.
7946 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7947 TARGET_DEFAULT_RETURN.
7948
340ba4bf
TT
79492014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target-delegates.c: Rebuild.
7952 * target.c (update_current_target): Don't inherit or default
7953 to_post_startup_inferior.
7954 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7955 TARGET_DEFAULT_IGNORE.
7956
7634da87
TT
79572014-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_load.
7962 * target.h (struct target_ops) <to_load>: Use
7963 TARGET_DEFAULT_NORETURN.
7964
e19e919f
TT
79652014-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_terminal_info.
7970 * target.h (struct target_ops) <to_terminal_info>: Use
7971 TARGET_DEFAULT_FUNC.
7972
c6ea8f79
TT
79732014-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_terminal_save_ours.
7978 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7979 TARGET_DEFAULT_IGNORE.
7980
e4a733f1
TT
79812014-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_terminal_ours.
7986 * target.h (struct target_ops) <to_terminal_ours>: Use
7987 TARGET_DEFAULT_IGNORE.
7988
74fcbef9
TT
79892014-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_terminal_ours_for_output.
7994 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7995 TARGET_DEFAULT_IGNORE.
7996
ddeaacc9
TT
79972014-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_terminal_inferior.
8002 * target.h (struct target_ops) <to_terminal_inferior>: Use
8003 TARGET_DEFAULT_IGNORE.
8004
0343661d
TT
80052014-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_init.
8010 * target.h (struct target_ops) <to_terminal_init>: Use
8011 TARGET_DEFAULT_IGNORE.
8012
77cdffe9
TT
80132014-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_can_accel_watchpoint_condition.
8018 * target.h (struct target_ops)
8019 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8020
d03655e4
TT
80212014-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_region_ok_for_hw_watchpoint.
8026 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8027 Use TARGET_DEFAULT_FUNC.
8028
65f160a9
TT
80292014-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_watchpoint_addr_within_range.
8034 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8035 Use TARGET_DEFAULT_FUNC.
8036
61dd109f
TT
80372014-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_remove_watchpoint.
8042 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
016facd4
TT
80452014-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_insert_watchpoint.
8050 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8051 TARGET_DEFAULT_RETURN.
8052
418dabac
TT
80532014-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_remove_hw_breakpoint.
8058 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8059 TARGET_DEFAULT_RETURN.
8060
61b371f9
TT
80612014-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_insert_hw_breakpoint.
8066 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8067 TARGET_DEFAULT_RETURN.
8068
52b51d06
TT
80692014-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_can_use_hw_breakpoint.
8074 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8075 TARGET_DEFAULT_RETURN.
8076
f86e59b2
TT
80772014-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_files_info.
8082 * target.h (struct target_ops) <to_files_info>: Use
8083 TARGET_DEFAULT_IGNORE.
8084
6c628163
TT
80852014-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_store.
8090 * target.h (struct target_ops) <to_store>: Use
8091 TARGET_DEFAULT_NORETURN.
8092
bebd3233
TT
80932014-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_post_attach.
8098 * target.h (struct target_ops) <to_post_attach>: Use
8099 TARGET_DEFAULT_IGNORE.
8100
a53f3625
TT
81012014-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_rcmd.
8106 (default_rcmd): New function.
8107 (do_monitor_command): Unconditionally delegate.
8108 * target.h (struct target_ops) <to_rmcd>: Use
8109 TARGET_DEFAULT_FUNC.
8110
e9a29200
TT
81112014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.c (init_dummy_target): Don't initialize to_attach.
8115 (target_attach): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_attach>: Use
8117 TARGET_DEFAULT_FUNC.
8118
09da0d0a
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_detach): Unconditionally delegate.
8123 (init_dummy_target): Don't initialize to_detach.
8124 * target.h (struct target_ops) <to_detach>: Use
8125 TARGET_DEFAULT_IGNORE.
8126
5436ff03
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8130 Add argument.
8131 (target_augmented_libraries_svr4_read): Add argument.
8132 * target.c (update_current_target): Update.
8133 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8134 argument.
8135
f0d960ea
TT
81362014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * target.h (struct target_ops) <to_call_history_range>: Add
8139 argument.
8140 * target.c (target_call_history_range): Add argument.
8141 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8142 argument.
8143 (record_btrace_call_history_from): Update.
8144
ec0aea04
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target.h (struct target_ops) <to_call_history_from>: Add
8148 argument.
8149 * target.c (target_call_history_from): Add argument.
8150 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8151 argument.
8152
5df2fcba
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target.h (struct target_ops) <to_call_history>: Add argument.
8156 * target.c (target_call_history): Add argument.
8157 * record-btrace.c (record_btrace_call_history): Add 'self'
8158 argument.
8159
4e99c6b7
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target.h (struct target_ops) <to_insn_history_range>: Add
8163 argument.
8164 * target.c (target_insn_history_range): Add argument.
8165 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8166 argument.
8167 (record_btrace_insn_history_from): Update.
8168
9abc3ff3
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target.h (struct target_ops) <to_insn_history_from>: Add
8172 argument.
8173 * target.c (target_insn_history_from): Add argument.
8174 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8175 argument.
8176
7a6c5609
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target.h (struct target_ops) <to_insn_history>: Add argument.
8180 * target.c (target_insn_history): Add argument.
8181 * record-btrace.c (record_btrace_insn_history): Add 'self'
8182 argument.
8183
606183ac
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target.h (struct target_ops) <to_goto_record>: Add argument.
8187 * target.c (target_goto_record): Add argument.
8188 * record-full.c (record_full_goto): Add 'self' argument.
8189 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8190
307a1b91
TT
81912014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8194 * target.c (target_goto_record_end): Add argument.
8195 * record-full.c (record_full_goto_end): Add 'self' argument.
8196 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8197
08475817
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target.h (struct target_ops) <to_goto_record_begin>: Add
8201 argument.
8202 * target.c (target_goto_record_begin): Add argument.
8203 * record-full.c (record_full_goto_begin): Add 'self' argument.
8204 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8205 argument.
8206
1c63c994
TT
82072014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target.h (struct target_ops) <to_record_is_replaying>: Add
8210 argument.
8211 * target.c (target_record_is_replaying): Add argument.
8212 * record-full.c (record_full_is_replaying): Add 'self' argument.
8213 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8214 argument.
8215 (record_btrace_xfer_partial, record_btrace_store_registers)
8216 (record_btrace_prepare_to_store, record_btrace_resume)
8217 (record_btrace_wait, record_btrace_decr_pc_after_break)
8218 (record_btrace_find_new_threads, record_btrace_thread_alive):
8219 Update.
8220
d1b55219
TT
82212014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target.h (struct target_ops) <to_delete_record>: Add argument.
8224 * target.c (target_delete_record): Add argument.
8225 * record-full.c (record_full_delete): Add 'self' argument.
8226
1390f529
TT
82272014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target.h (struct target_ops) <to_save_record>: Add argument.
8230 * target.c (target_save_record): Add argument.
8231 * record-full.c (record_full_save): Add 'self' argument.
8232 (record_full_save): Add 'self' argument.
8233
630d6a4a
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target.h (struct target_ops) <to_info_record>: Add argument.
8237 * target.c (target_info_record): Add argument.
8238 * record.c (info_record_command): Add argument.
8239 * record-full.c (record_full_info): Add 'self' argument.
8240 * record-btrace.c (record_btrace_info): Add 'self' argument.
8241
c6cd7c02
TT
82422014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8245 * target.c (target_stop_recording): Add argument.
8246 * record.c (record_stop): Add argument.
8247 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8248 argument.
8249
39c49f83
TT
82502014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8253 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8254 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8255 argument.
8256 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8257 (_initialize_amd64_linux_nat): Use it.
8258 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8259 (_initialize_i386_linux_nat): Use it.
8260
1777056d
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8264 * target.c (target_teardown_btrace): Add argument.
8265 * remote.c (remote_teardown_btrace): Add 'self' argument.
8266 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8267 argument.
8268 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8269 argument.
8270
25e95349
TT
82712014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8274 * target.c (target_disable_btrace): Add argument.
8275 * remote.c (remote_disable_btrace): Add 'self' argument.
8276 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8277 argument.
8278 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8279 argument.
8280
e3c49f88
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8284 * target.c (target_enable_btrace): Add argument.
8285 * remote.c (remote_enable_btrace): Add 'self' argument.
8286 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8287 argument.
8288 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8289 argument.
8290
fe38f897
TT
82912014-02-19 Tom Tromey <tromey@redhat.com>
8292
8293 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8294 (target_can_use_agent): Add argument.
8295 * target.c (update_current_target): Update.
8296 * remote.c (remote_can_use_agent): Add 'self' argument.
8297 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8298
2c152180
TT
82992014-02-19 Tom Tromey <tromey@redhat.com>
8300
8301 * target.h (struct target_ops) <to_use_agent>: Add argument.
8302 (target_use_agent): Add argument.
8303 * target.c (update_current_target): Update.
8304 * remote.c (remote_use_agent): Add 'self' argument.
8305 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8306
a893e81f
TT
83072014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8310 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8311 (target_traceframe_info): Add argument.
8312 * target.c (update_current_target): Update.
8313 * remote.c (remote_traceframe_info): Add 'self' argument.
8314 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8315
c686c57f
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target.h (target_static_tracepoint_markers_by_strid): Add
8319 argument.
8320 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8321 'self' argument.
8322 * target.c (update_current_target): Update.
8323 * remote.c (struct target_ops)
8324 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8325 * linux-nat.c (struct target_ops)
8326 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8327
61fc905d
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8331 Add argument.
8332 (target_static_tracepoint_marker_at): Add argument.
8333 * target.c (update_current_target): Update.
8334 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8335 argument.
8336
c378d69d
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8340 (target_set_permissions): Add argument.
8341 * target.c (update_current_target): Update.
8342 * remote.c (remote_set_permissions): Add 'self' argument.
8343 (remote_start_remote): Update.
8344
bd7ae0f5
TT
83452014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8348 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8349 (target_get_tib_address): Add argument.
8350 * target.c (update_current_target): Update.
8351 * remote.c (remote_get_tib_address): Add 'self' argument.
8352
d9e68a2c
TT
83532014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8356 (target_set_trace_notes): Add argument.
8357 * target.c (update_current_target): Update.
8358 * remote.c (remote_set_trace_notes): Add 'self' argument.
8359
4da384be
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8363 argument.
8364 (target_set_trace_buffer_size): Add argument.
8365 * target.c (update_current_target): Update.
8366 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8367
736d5b1f
TT
83682014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8371 argument.
8372 (target_set_circular_trace_buffer): Add argument.
8373 * target.c (update_current_target): Update.
8374 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8375 argument.
8376
37b25738
TT
83772014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8380 argument.
8381 (target_set_disconnected_tracing): Add argument.
8382 * target.c (update_current_target): Update.
8383 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8384
0e67620a
TT
83852014-02-19 Tom Tromey <tromey@redhat.com>
8386
8387 * target.h (struct target_ops)
8388 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8389 (target_get_min_fast_tracepoint_insn_len): Add argument.
8390 * target.c (update_current_target): Update.
8391 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8392 argument.
8393
88ee6f45
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8397 argument.
8398 (target_get_raw_trace_data): Add argument.
8399 * target.c (update_current_target): Update.
8400 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8401
181e3713
TT
84022014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8405 Add argument.
8406 (target_upload_trace_state_variables): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_upload_trace_state_variables): Add 'self'
8409 argument.
8410 (remote_start_remote): Update.
8411
ab6617cc
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8415 argument.
8416 (target_upload_tracepoints): Add argument.
8417 * target.c (update_current_target): Update.
8418 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8419 (remote_start_remote): Update.
8420
dc3decaf
TT
84212014-02-19 Tom Tromey <tromey@redhat.com>
8422
8423 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8424 (target_save_trace_data): Add argument.
8425 * target.c (update_current_target): Update.
8426 * remote.c (remote_save_trace_data): Add 'self' argument.
8427
4011015b
TT
84282014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8431 argument.
8432 * target.h (struct target_ops)
8433 <to_get_trace_state_variable_value>: Add argument.
8434 (target_get_trace_state_variable_value): Add argument.
8435 * target.c (update_current_target): Update.
8436 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8437 argument.
8438 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8439
bd4c6793
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8443 * target.h (struct target_ops) <to_trace_find>: Add argument.
8444 (target_trace_find): Add argument.
8445 * target.c (update_current_target): Update.
8446 * remote.c (remote_trace_find): Add 'self' argument.
8447 * ctf.c (ctf_trace_find): Add 'self' argument.
8448
74499f1b
TT
84492014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8452 (target_trace_stop): Add argument.
8453 * target.c (update_current_target): Update.
8454 * remote.c (remote_trace_stop): Add 'self' argument.
8455
db90e85c
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8459 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8460 argument.
8461 (target_get_tracepoint_status): Add argument.
8462 * target.c (update_current_target): Update.
8463 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8464
8bd200f1
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8468 * target.h (struct target_ops) <to_get_trace_status>: Add
8469 argument.
8470 (target_get_trace_status): Add argument.
8471 * target.c (update_current_target): Update.
8472 * remote.c (remote_get_trace_status): Add 'self' argument.
8473 (remote_start_remote, remote_can_download_tracepoint): Update.
8474 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8475
e2d1aae3
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target.h (struct target_ops) <to_trace_start>: Add argument.
8479 (target_trace_start): Add argument.
8480 * target.c (update_current_target): Update.
8481 * remote.c (remote_trace_start): Add 'self' argument.
8482
583f9a86
TT
84832014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8486 Add argument.
8487 (target_trace_set_readonly_regions): Add argument.
8488 * target.c (update_current_target): Update.
8489 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8490 argument.
8491
780b049c
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8495 argument.
8496 (target_disable_tracepoint): Add argument.
8497 * target.c (update_current_target): Update.
8498 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8499
46670d57
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8503 argument.
8504 (target_enable_tracepoint): Add argument.
8505 * target.c (update_current_target): Update.
8506 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8507
559d2b81
TT
85082014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target.h (struct target_ops) <to_download_trace_state_variable>:
8511 Add argument.
8512 (target_download_trace_state_variable): Add argument.
8513 * target.c (update_current_target): Update.
8514 * remote.c (remote_download_trace_state_variable): Add 'self'
8515 argument.
8516
a52a8357
TT
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8520 argument.
8521 (target_can_download_tracepoint): Add argument.
8522 * target.c (update_current_target): Update.
8523 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8524
548f7808
TT
85252014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target.h (struct target_ops) <to_download_tracepoint>: Add
8528 argument.
8529 (target_download_tracepoint): Add argument.
8530 * target.c (update_current_target): Update.
8531 * remote.c (remote_download_tracepoint): Add 'self' argument.
8532
ecae04e1
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target.h (struct target_ops) <to_trace_init>: Add argument.
8536 (target_trace_init): Add argument.
8537 * target.c (update_current_target): Update.
8538 * remote.c (remote_trace_init): Add 'self' argument.
8539
fab5aa7c
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8543 * target.c (target_fileio_readlink): Add argument.
8544 * remote.c (remote_hostio_readlink): Add 'self' argument.
8545 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8546
dbbca37d
TT
85472014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8550 * target.c (target_fileio_unlink): Add argument.
8551 * remote.c (remote_hostio_unlink): Add 'self' argument.
8552 (remote_file_delete): Update.
8553 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8554
df39ea25
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8558 * target.c (target_fileio_close): Add argument.
8559 * remote.c (remote_hostio_close): Add 'self' argument.
8560 (remote_hostio_close_cleanup): Update.
8561 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8562 Update.
8563 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8564
a3be983c
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8568 * target.c (target_fileio_pread): Add argument.
8569 * remote.c (remote_hostio_pread): Add 'self' argument.
8570 (remote_bfd_iovec_pread, remote_file_get): Update.
8571 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8572
0d866f62
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8576 * target.c (target_fileio_pwrite): Add argument.
8577 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8578 (remote_file_put): Update.
8579 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8580
cd897586
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8584 * target.c (target_fileio_open): Add argument.
8585 * remote.c (remote_hostio_open): Add 'self' argument.
8586 (remote_bfd_iovec_open): Add 'self' argument.
8587 (remote_file_put): Add 'self' argument.
8588 (remote_file_get): Add 'self' argument.
8589 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8590
78eff0ec
TT
85912014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8594 Add argument.
8595 (target_can_run_breakpoint_commands): Add argument.
8596 * target.c (update_current_target): Update.
8597 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8598 argument.
8599 (remote_insert_breakpoint): Add 'self' argument.
8600 (remote_insert_hw_breakpoint): Add 'self' argument.
8601 (remote_can_run_breakpoint_commands): Add 'self' argument.
8602
efcc2da7
TT
86032014-02-19 Tom Tromey <tromey@redhat.com>
8604
8605 * target.h (struct target_ops)
8606 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8607 (target_supports_evaluation_of_breakpoint_conditions): Add
8608 argument.
8609 * target.c (update_current_target): Update.
8610 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8611 argument.
8612 (remote_insert_breakpoint): Add 'self' argument.
8613 (remote_insert_hw_breakpoint): Add 'self' argument.
8614 (remote_supports_cond_breakpoints): Add 'self' argument.
8615
6de37a3a
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8619 argument.
8620 (target_supports_string_tracing): Add argument.
8621 * target.c (update_current_target): Update.
8622 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8623
2bfc0540
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target.h (struct target_ops)
8627 <to_supports_disable_randomization>: Add argument.
8628 * target.c (find_default_supports_disable_randomization): Add
8629 argument.
8630 (target_supports_disable_randomization): Add argument.
8631 (find_default_supports_disable_randomization): Add 'self'
8632 argument.
8633 * remote.c (extended_remote_supports_disable_randomization): Add
8634 'self' argument.
8635 (remote_supports_disable_randomization): Add 'self' argument.
8636 (extended_remote_create_inferior): Update.
8637 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8638 'self' argument.
8639
7d178d6a
TT
86402014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target.h (struct target_ops)
8643 <to_supports_enable_disable_tracepoint>: Add argument.
8644 (target_supports_enable_disable_tracepoint): Add argument.
8645 * target.c (update_current_target): Update.
8646 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8647 argument.
8648
86ce2668
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target.h (struct target_ops) <to_supports_multi_process>: Add
8652 argument.
8653 (target_supports_multi_process): Add argument.
8654 * target.c (update_current_target): Update.
8655 * remote.c (remote_supports_multi_process): Add 'self' argument.
8656 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8657 argument.
8658 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8659 argument.
8660
4c612759
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.h (struct target_ops) <to_execution_direction>: Add
8664 argument.
8665 (target_execution_direction): Add argument.
8666 * target.c (default_execution_direction): Add 'self' argument.
8667 * record-full.c (record_full_execution_direction): Add 'self'
8668 argument.
8669
19db3e69
TT
86702014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8673 argument.
8674 (target_can_execute_reverse): Add argument.
8675 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8676 * record-full.c (record_full_can_execute_reverse): Add 'self'
8677 argument.
8678 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8679 argument.
8680
1e6b91a4
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8684 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8685 argument.
8686 (target_get_ada_task_ptid): Add argument.
8687 * target.c (update_current_target): Update.
8688 (default_get_ada_task_ptid): Add 'self' argument.
8689 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8690 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8691 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8692 argument.
8693 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8694 argument.
8695 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8696 argument.
8697 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8698 argument.
8699 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8700 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8701 argument.
8702
3c80fb48
TT
87032014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8706 (target_goto_bookmark): Add argument.
8707 * target.c (dummy_goto_bookmark): Add 'self' argument.
8708 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8709
dd0e2830
TT
87102014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8713 (target_get_bookmark): Add argument.
8714 * target.c (dummy_get_bookmark): Add 'self' argument.
8715 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8716
fc6691b2
TT
87172014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8720 argument.
8721 (target_make_corefile_notes): Add argument.
8722 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8723 * procfs.c (procfs_make_note_section): Add 'self' argument.
8724 (procfs_make_note_section): Add 'self' argument.
8725 (procfs_make_note_section): Add 'self' argument.
8726 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8727 argument.
8728 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8729 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8730 * exec.c (exec_make_note_section): Add 'self' argument.
8731 (exec_make_note_section): Add 'self' argument.
8732
2e73927c
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target.h (struct target_ops) <to_find_memory_regions>: Add
8736 argument.
8737 (target_find_memory_regions): Add argument.
8738 * target.c (dummy_find_memory_regions): Add 'self' argument.
8739 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8740 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8741 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8742 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8743 * exec. (exec_do_find_memory_regions): New global.
8744 (exec_set_find_memory_regions): Rewrite.
8745 (exec_find_memory_regions): New function.
8746 (init_exec_ops): Use exec_find_memory_regions.
8747
2a9a2795
TT
87482014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target.h (struct target_ops) <to_supports_non_stop>: Add
8751 argument.
8752 * target.c (find_default_supports_non_stop): Add argument.
8753 (target_supports_non_stop): Add argument.
8754 (find_default_supports_non_stop): Add 'self' argument.
8755 * remote.c (remote_supports_non_stop): Add 'self' argument.
8756 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8757
4ab76ea3
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target.h (struct target_ops) <to_log_command>: Add argument.
8761 (target_log_command): Add argument.
8762 * serial.h (serial_log_command): Add 'self' argument.
8763 * serial.c (serial_log_command): Add 'self' argument.
8764
8dd27370
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8768 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8769 argument.
8770 (target_pid_to_exec_file): Add argument.
8771 * target.c (debug_to_pid_to_exec_file): Add argument.
8772 (update_current_target): Update.
8773 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8774 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8775 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8776 (linux_handle_extended_wait): Update.
8777 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8778 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8779 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8780 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8781
1aac633b
TT
87822014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target.h (struct target_ops) <to_rcmd>: Add argument.
8785 (target_rcmd): Add argument.
8786 * target.c (debug_to_rcmd): Add argument.
8787 (update_current_target, do_monitor_command): Update.
8788 * remote.c (remote_rcmd): Add 'self' argument.
8789 * monitor.c (monitor_rcmd): Add 'self' argument.
8790
1eab8a48
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * windows-nat.c (windows_stop): Add 'self' argument.
8794 * target.h (struct target_ops) <to_stop>: Add argument.
8795 * target.c (target_stop): Add argument.
8796 (debug_to_stop): Add argument.
8797 (update_current_target): Update.
8798 * remote.c (remote_stop): Add 'self' argument.
8799 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8800 (gdbsim_cntrl_c): Update.
8801 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8802 * procfs.c (procfs_stop): Add 'self' argument.
8803 * nto-procfs.c (procfs_stop): Add 'self' argument.
8804 * monitor.c (monitor_stop): Add 'self' argument.
8805 (monitor_open): Update.
8806 * linux-nat.c (linux_nat_stop): Add argument.
8807 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8808 * gnu-nat.c (gnu_stop): Add 'self' argument.
8809 * darwin-nat.c (darwin_stop): Add 'self' argument.
8810
503a628d
TT
88112014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target.h (struct target_ops) <to_thread_name>: Add argument.
8814 * target.c (target_thread_name): Add argument.
8815 (update_current_target): Update.
8816 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8817
c15906d8
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target.h (struct target_ops) <to_extra_thread_info>: Add
8821 argument.
8822 (target_extra_thread_info): Add argument.
8823 * target.c (update_current_target): Update.
8824 * remote.c (remote_threads_extra_info): Add 'self' argument.
8825 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8826 argument.
8827 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8828 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8829 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8830 argument.
8831 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8832 argument.
8833 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8834 argument.
8835 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8836 argument.
8837
daf5e9b6
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target.h (struct target_ops) <to_program_signals>: Add argument.
8841 * target.c (target_program_signals): Add argument.
8842 * remote.c (remote_program_signals): Add 'self' argument.
8843
94bedb42
TT
88442014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8847 * target.c (target_pass_signals): Add argument.
8848 * remote.c (remote_pass_signals): Add 'self' argument.
8849 (remote_start_remote): Update.
8850 * procfs.c (procfs_pass_signals): Add 'self' argument.
8851 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8852 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8853 (linux_nat_create_inferior, linux_nat_attach): Update.
8854
da82bd6b
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * windows-nat.c (windows_can_run): Add 'self' argument.
8858 * target.h (struct target_ops) <to_can_run>: Add argument.
8859 (target_can_run): Add argument.
8860 * target.c (debug_to_can_run): Add argument.
8861 (update_current_target): Update.
8862 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8863 * inf-child.c (inf_child_can_run): Add 'self' argument.
8864 * go32-nat.c (go32_can_run): Add 'self' argument.
8865
d796e1d6
TT
88662014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target.h (struct target_ops) <to_has_exited>: Add argument.
8869 (target_has_exited): Add argument.
8870 * target.c (debug_to_has_exited): Add argument.
8871 (update_current_target): Update.
8872
ff214e67
TT
88732014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8876 argument.
8877 (target_set_syscall_catchpoint): Add argument.
8878 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8879 argument.
8880 * target.c (update_current_target): Update.
8881
758e29d2
TT
88822014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8885 argument.
8886 (target_remove_exec_catchpoint): Add argument.
8887 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8888 (update_current_target): Update.
8889 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8890 argument.
8891
ba025e51
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8895 argument.
8896 (target_insert_exec_catchpoint): Add argument.
8897 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8898 (update_current_target): Update.
8899 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8900 argument.
8901
e98cf0cd
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8905 argument.
8906 (target_remove_vfork_catchpoint): Add argument.
8907 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8908 (update_current_target): Update.
8909 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8910 argument.
8911
3ecc7da0
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8915 argument.
8916 (target_insert_vfork_catchpoint): Add argument.
8917 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8918 (update_current_target): Update.
8919 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8920 argument.
8921
973fc227
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8925 argument.
8926 (target_remove_fork_catchpoint): Add argument.
8927 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8928 (update_current_target): Update.
8929 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8930 argument.
8931
a863b201
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8935 argument.
8936 (target_insert_fork_catchpoint): Add argument.
8937 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8938 (update_current_target): Update.
8939 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8940 argument.
8941
2e97a79e
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8945 argument.
8946 (target_post_startup_inferior): Add argument.
8947 * target.c (debug_to_post_startup_inferior): Add argument.
8948 (update_current_target): Update.
8949 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8950 argument.
8951 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8952 argument.
8953 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8954 argument.
8955 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8956 argument.
8957 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8958 'self' argument.
8959 (super_post_startup_inferior): Likewise.
8960 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8961 'self' argument.
8962 (super_post_startup_inferior): Likewise.
8963 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8964 Add 'self' argument.
8965 (super_post_startup_inferior): Likewise.
8966
71a9f134
TT
89672014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target.h (struct target_ops) <to_load>: Add argument.
8970 * target.c (target_load): Add argument.
8971 (debug_to_load): Add argument.
8972 (update_current_target): Update.
8973 * remote.c (remote_load): Add 'self' argument.
8974 * remote-sim.c (gdbsim_load): Add 'self' argument.
8975 * remote-mips.c (mips_load): Add 'self' argument.
8976 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8977 * monitor.c (monitor_load): Add 'self' argument.
8978 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8979
0a4f40a2
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8983 (target_terminal_info): Add argument.
8984 * target.c (debug_to_terminal_info): Add argument.
8985 (default_terminal_info): Likewise.
8986 * inflow.c (child_terminal_info): Add 'self' argument.
8987 * inferior.h (child_terminal_info): Add 'self' argument.
8988 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8989
ae3bd431
TT
89902014-02-19 Tom Tromey <tromey@redhat.com>
8991
8992 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8993 argument.
8994 (target_terminal_save_ours): Add argument.
8995 * target.c (debug_to_terminal_save_ours): Add argument.
8996 (update_current_target): Update.
8997 * inflow.c (terminal_save_ours): Add 'self' argument.
8998 * inferior.h (terminal_save_ours): Add 'self' argument.
8999
e3594fd1
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9003 (target_terminal_ours): Add argument.
9004 * target.c (debug_to_terminal_ours): Add argument.
9005 (update_current_target): Update.
9006 * remote.c (remote_terminal_ours): Add 'self' argument.
9007 (remote_close): Update.
9008 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9009 * inflow.c (terminal_ours): Add 'self' argument.
9010 * inferior.h (terminal_ours): Add 'self' argument.
9011 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9012
2e1e1a19
TT
90132014-02-19 Pedro Alves <palves@redhat.com>
9014 Tom Tromey <tromey@redhat.com>
9015
9016 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9017 argument.
9018 (target_terminal_ours_for_output): Add argument.
9019 * target.c (debug_to_terminal_ours_for_output): Add argument.
9020 (update_current_target): Update.
9021 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9022 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9023 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9024
d2f640d4
TT
90252014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target.h (struct target_ops) <to_terminal_inferior>: Add
9028 argument.
9029 * target.c (target_terminal_inferior): Add argument.
9030 (update_current_target): Update.
9031 * remote.c (remote_terminal_inferior): Add 'self' argument.
9032 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9033 * inflow.c (terminal_inferior): Add 'self' argument.
9034 * inferior.h (terminal_inferior): Add 'self' argument.
9035 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9036 (go32_terminal_inferior): Add 'self' argument.
9037
c42bf286
TT
90382014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9041 (target_terminal_init): Add argument.
9042 * target.c (debug_to_terminal_init): Add argument.
9043 (update_current_target): Update.
9044 * inflow.c (terminal_init_inferior): Add 'self' argument.
9045 * inferior.h (terminal_init_inferior): Add 'self' argument.
9046 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9047 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9048
c3a5ff89
TT
90492014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops)
9052 <to_can_accel_watchpoint_condition>: Add argument.
9053 (target_can_accel_watchpoint_condition): Add argument.
9054 * target.c (debug_to_can_accel_watchpoint_condition): Add
9055 argument.
9056 (update_current_target): Update.
9057 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9058 'self' argument.
9059
31568a15
TT
90602014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9063 Add argument.
9064 (target_region_ok_for_hw_watchpoint): Add argument.
9065 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9066 (default_region_ok_for_hw_watchpoint): Add argument.
9067 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9068 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9069 argument.
9070 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9071 argument.
9072 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9073 argument.
9074 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9075 'self' argument.
9076 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9077 'self' argument.
9078 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9079 'self' argument.
9080 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9081 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9082 'self' argument.
9083 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9084 Add 'self' argument.
9085
7bb99c53
TT
90862014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9089 argument.
9090 (target_insert_watchpoint): Add argument.
9091 * target.c (debug_to_insert_watchpoint): Add argument.
9092 (update_current_target): Update.
9093 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9094 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9095 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9096 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9097 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9098 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9099 argument.
9100 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9101 (procfs_insert_hw_watchpoint): Add 'self' argument.
9102 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9103 argument.
9104 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9105 argument.
9106 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9107 argument.
9108 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9109 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9110 argument.
9111 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9112 'self' argument.
9113
11b5219a
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9117 argument.
9118 (target_remove_watchpoint): Add argument.
9119 * target.c (debug_to_remove_watchpoint): Add argument.
9120 (update_current_target): Update.
9121 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9122 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9123 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9124 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9125 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9126 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9127 argument.
9128 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9129 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9130 argument.
9131 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9132 argument.
9133 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9134 argument.
9135 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9136 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9137 argument.
9138 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9139 'self' argument.
9140
a64dc96c
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9144 argument.
9145 (target_remove_hw_breakpoint): Add argument.
9146 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9147 (update_current_target): Update.
9148 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9149 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9150 argument.
9151 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9152 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9153 argument.
9154 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9155 'self' argument.
9156
23a26771
TT
91572014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9160 argument.
9161 (target_insert_hw_breakpoint): Add argument.
9162 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9163 (update_current_target): Update.
9164 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9165 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9166 argument.
9167 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9168 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9169 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9170 argument.
9171 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9172 'self' argument.
9173
5461485a
TT
91742014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9177 argument.
9178 (target_can_use_hardware_watchpoint): Add argument.
9179 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9180 (update_current_target): Update.
9181 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9182 argument.
9183 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9184 argument.
9185 * remote.c (remote_check_watch_resources): Add 'self' argument.
9186 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9187 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9188 argument.
9189 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9190 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9191 argument.
9192 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9193 argument.
9194 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9195 argument.
9196 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9197 argument.
9198 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9199 argument.
9200 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9201 argument.
9202 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9203 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9204 argument.
9205 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9206 'self' argument.
9207
f045800c
TT
92082014-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 * target.h (struct target_ops) <to_post_attach>: Add argument.
9211 (target_post_attach): Add argument.
9212 * target.c (debug_to_post_attach): Add argument.
9213 (update_current_target): Update.
9214 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9215 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9216 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9217 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9218 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9219
de90e03d
TT
92202014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * windows-nat.c (windows_close): Add 'self' argument.
9223 * tracepoint.c (tfile_close): Add 'self' argument.
9224 * target.h (struct target_ops) <to_close>: Add argument.
9225 * target.c (target_close): Add argument.
9226 (update_current_target): Update.
9227 * remote.c (remote_close): Add 'self' argument.
9228 * remote-sim.c (gdbsim_close): Add 'self' argument.
9229 * remote-mips.c (mips_close): Add 'self' argument.
9230 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9231 * record-full.c (record_full_close): Add 'self' argument.
9232 * record-btrace.c (record_btrace_close): Add 'self' argument.
9233 * monitor.h (monitor_close): Add 'self' argument.
9234 * monitor.c (monitor_close): Add 'self' argument.
9235 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9236 * linux-nat.c (linux_nat_close): Add argument.
9237 * go32-nat.c (go32_close): Add 'self' argument.
9238 * exec.c (exec_close_1): Add 'self' argument.
9239 * ctf.c (ctf_close): Add 'self' argument.
9240 * corelow.c (core_close): Add 'self' argument.
9241 (core_close_cleanup): Update.
9242 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9243 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9244
9dd130a0
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * remote.c (remote_load): New function.
9248 (init_remote_ops): Use it.
9249
46917d26
TT
92502014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9253 argument.
9254 * common/linux-btrace.h (linux_supports_btrace): Update.
9255 * remote.c (remote_supports_btrace): Add "self" argument.
9256 * target-delegates.c: Rebuild.
9257 * target.c (target_supports_btrace): Remove.
9258 * target.h (struct target_ops) <to_supports_btrace>: Add
9259 target_ops argument.
9260 (target_supports_btrace): New define.
9261
6b84065d
TT
92622014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * record-full.c (record_full_beneath_to_resume_ops)
9265 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9266 (record_full_beneath_to_wait)
9267 (record_full_beneath_to_store_registers_ops)
9268 (record_full_beneath_to_store_registers)
9269 (record_full_beneath_to_xfer_partial_ops)
9270 (record_full_beneath_to_xfer_partial)
9271 (record_full_beneath_to_insert_breakpoint_ops)
9272 (record_full_beneath_to_insert_breakpoint)
9273 (record_full_beneath_to_remove_breakpoint_ops)
9274 (record_full_beneath_to_remove_breakpoint)
9275 (record_full_beneath_to_stopped_by_watchpoint)
9276 (record_full_beneath_to_stopped_data_address)
9277 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9278 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9279 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9280 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9281 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9282 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9283 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9284 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9285 (record_full_resume, record_full_wait_1)
9286 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9287 (record_full_store_registers, record_full_xfer_partial)
9288 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9289 (record_full_async, record_full_core_xfer_partial): Use target
9290 delegation.
9291 * target-delegates.c: Rebuild.
9292 * target.c (current_xfer_partial): Remove.
9293 (update_current_target): Do not INHERIT or de_fault
9294 to_insert_breakpoint, to_remove_breakpoint,
9295 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9296 to_is_async_p, to_async. Do not set to_xfer_partial field.
9297 (default_xfer_partial): Simplify.
9298 (current_xfer_partial): Remove.
9299 (target_wait, target_resume): Simplify.
9300 (find_default_can_async_p, find_default_is_async_p): Update.
9301 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9302 to_xfer_partial, to_stopped_by_watchpoint,
9303 to_stopped_data_address.
9304 (target_store_registers): Simplify.
9305 (forward_target_remove_breakpoint)
9306 (forward_target_insert_breakpoint): Remove.
9307 (target_remove_breakpoint, target_insert_breakpoint)
9308 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9309 * target.h (struct target_ops) <to_resume, to_wait,
9310 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9311 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9312 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9313 markup.
9314 (forward_target_remove_breakpoint)
9315 (forward_target_insert_breakpoint): Remove.
9316 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9317 directly.
9318 (record_btrace_insert_breakpoint): Delegate directly.
9319
1101cb7b
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 PR build/7701:
9323 * target-delegates.c: New file.
9324 * target.c: Include target-delegates.c.
9325 (init_dummy_target): Call install_dummy_methods.
9326 (complete_target_initialization): Call install_delegators.
9327 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9328 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9329 * make-target-delegates: New file.
9330
8b06beed
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * record.c (find_record_target): Use find_target_at.
9334 * target.c (find_target_at): New function.
9335 * target.h (find_target_at): Declare.
9336
6a109b6b
TT
93372014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9340 Add 'ops' argument.
9341 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9342 'ops' argument.
9343 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9344 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9345 'ops' argument.
9346 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9347 argument.
9348 * linux-nat.c (save_sigtrap): Update.
9349 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9350 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9351 (linux_nat_close): Update.
9352 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9353 argument.
9354 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9355 argument.
9356 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9357 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9358 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9359 (tmp_to_async): Add 'ops' argument.
9360 (record_full_stopped_by_watchpoint, record_full_async)
9361 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9362 argument.
9363 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9364 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9365 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9366 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9367 (remote_is_async_p, remote_async): Add 'ops' argument.
9368 (remote_stopped_data_address): Update.
9369 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9370 * target.c (update_current_target)
9371 (find_default_can_async_p, find_default_is_async_p): Update.
9372 (init_dummy_target): Update.
9373 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9374 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9375 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9376 (target_can_async_p, target_is_async_p, target_async)
9377 (target_stopped_by_watchpoint): Update.
9378
e095146b
YQ
93792014-02-19 Yao Qi <yao@codesourcery.com>
9380
9381 PR gdb/16220
9382 * gdbarch.sh: Remove startup_gdbarch.
9383 * gdbarch.c: Regenerated.
9384 * gdbarch.h: Likewise.
9385
bc3c6b36
KB
93862014-02-17 Kevin Buettner <kevinb@redhat.com>
9387
9388 * rl78-tdep.c (rl78_g10_register_name): New function.
9389 (rl78_return_value): Add g10 support.
9390 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9391 g10.
9392
98dc0167 93932014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9394
9395 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9396 (SUBDIR_GUILE_SRCS): Ditto.
9397 (scm-gsmob.o): Ditto.
9398
842c05cd
YQ
93992014-02-17 Yao Qi <yao@codesourcery.com>
9400
9401 * gnu-nat.c (ILL_RPC): Declare defined function.
9402
25c0bd04
YQ
94032014-02-17 Yao Qi <yao@codesourcery.com>
9404
9405 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9406 mach_msg_type_number_t.
9407 (gnu_write_inferior): Likewise.
9408
a9a758e3
YQ
94092014-02-17 Yao Qi <yao@codesourcery.com>
9410
9411 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9412 in format string.
9413 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9414 (inf_validate_procs, inf_signal): Likewise.
9415 (S_exception_raise_request): Likewise.
9416 (do_mach_notify_dead_name): Likewise.
9417 (steal_exc_port): Likewise.
9418 (gnu_read_inferior): Change 'copy_count''s type to
9419 mach_msg_type_number_t.
9420 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9421 format string.
9422
bae8023e
TS
94232014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9424
c82f56d9
TS
9425 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9426 flag. Adjust all users; in particular...
9427 (gnu_wait): ..., don't decrement its value in here...
9428 (gnu_create_inferior): ..., and instead set the flag in here,
9429 around the startup_inferior call, and call that one with
9430 START_INFERIOR_TRAPS_EXPECTED.
9431
3398af6a
TS
9432 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9433 (ILL_RPC): ... new macro.
9434 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9435 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9436 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9437 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9438 functions with ILL_RPC macro.
9439 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9440 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9441 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9442 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9443 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9444 (S_proc_getlogin_reply, S_proc_getsid_reply)
9445 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9446 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9447 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9448 (S_proc_getnports_reply, S_proc_is_important_reply)
9449 (S_proc_get_code_reply): New stub functions, generated with
9450 ILL_RPC macro.
9451
d47642c9
TS
9452 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9453 collected the type check structures.
9454
bae8023e
TS
9455 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9456
8a55ffb0
DE
94572014-02-14 Doug Evans <dje@google.com>
9458
9459 * target.c (target_write_partial): Fix result type.
9460
c2853f3d
JM
94612014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9462
9463 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9464 the proper offsets to access fpregset_t.
9465
ac61d2db
SA
94662014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9467
9468 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9469 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9470 * h8300-tdep.c (setmachinelist): Remove global.
9471 * hppa-tdep.c (hppa_sigtramp): Remove global.
9472 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9473 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9474 * ravenscar-thread.c (update_target_observer): Remove global.
9475 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9476
9d2d0b8b
TT
94772014-02-12 Tom Tromey <tromey@redhat.com>
9478
9479 * common/rsp-low.c: Update comments.
9480 * common/rsp-low.h: Update comments.
9481
a7191e8b
TT
94822014-02-12 Tom Tromey <tromey@redhat.com>
9483
9484 * common/rsp-low.c (convert_ascii_to_int): Remove.
9485 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9486
ff0e980e
TT
94872014-02-12 Tom Tromey <tromey@redhat.com>
9488
9489 * common/rsp-low.h (unhexify): Don't declare.
9490 * common/rsp-low.c (unhexify): Remove.
9491
e9371aff
TT
94922014-02-12 Tom Tromey <tromey@redhat.com>
9493
9494 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9495 * common/rsp-low.c (convert_int_to_ascii): Remove.
9496
971dc0b8
TT
94972014-02-12 Tom Tromey <tromey@redhat.com>
9498
9499 * common/rsp-low.h (hexify): Don't declare.
9500 * common/rsp-low.c (hexify): Remove.
9501
0a822afb
TT
95022014-02-12 Tom Tromey <tromey@redhat.com>
9503
9504 * common/rsp-low.c (hexify): Never take strlen of argument.
9505
9f1b45b0
TT
95062014-02-12 Tom Tromey <tromey@redhat.com>
9507
9508 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9509 * remote.c (extended_remote_run, remote_rcmd)
9510 (remote_download_trace_state_variable, remote_save_trace_data)
9511 (remote_set_trace_notes): Update.
9512 * tracepoint.c (encode_source_string, tfile_write_status)
9513 (tfile_write_uploaded_tsv): Update.
9514
9c3d6531
TT
95152014-02-12 Tom Tromey <tromey@redhat.com>
9516
9517 * tracepoint.c: Include rsp-low.h.
9518 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9519 * remote.c: Include rsp-low.h.
9520 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9521 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9522 (remote_unescape_input): Move to common/rsp-low.c.
9523 * common/rsp-low.h: New file.
9524 * common/rsp-low.c: New file.
9525 * Makefile.in (SFILES): Add common/rsp-low.c.
9526 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9527 (COMMON_OBS): Add rsp-low.o.
9528 (rsp-low.o): New target.
9529
01fd3ea5
TT
95302014-02-12 Tom Tromey <tromey@redhat.com>
9531
9532 * utils.h: Include print-utils.h.
9533 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9534 (int_string, core_addr_to_string, core_addr_to_string_nz)
9535 (hex_string, hex_string_custom): Don't declare.
9536 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9537 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9538 (hex_string_custom, int_string, core_addr_to_string)
9539 (core_addr_to_string_nz, host_address_to_string): Move to
9540 common/print-utils.c.
9541 * common/print-utils.h: New file.
9542 * common/print-utils.c: New file
9543 * Makefile.in (SFILES): Add common/print-utils.c.
9544 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9545 (COMMON_OBS): Add print-utils.o.
9546 (print-utils.o): New target.
9547
9fb50108
TT
95482014-02-12 Tom Tromey <tromey@redhat.com>
9549
9550 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9551
0548b5db
MK
95522014-02-12 Mark Kettenis <kettenis@gnu.org>
9553
9554 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9555
493443a4
MK
95562014-02-12 Mark Kettenis <kettenis@gnu.org>
9557
9558 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9559 if a PT_IO ptrace request returns sucessfully but indicates that 0
9560 bytes were transferred.
9561
706d0883
PA
95622014-02-12 Pedro Alves <palves@redhat.com>
9563 Kevin Buettner <kevinb@redhat.com>
9564
9565 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9566 TYPE_INSTANCE_FLAG_CODE_SPACE.
9567
5caa2f0b
PA
95682014-02-12 Pedro Alves <palves@redhat.com>
9569
9570 * h8300-tdep.c (pseudo_from_raw_register)
9571 (raw_from_pseudo_register): New functions.
9572 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9573 them.
9574
76fd5f74
PA
95752014-02-12 Pedro Alves <palves@redhat.com>
9576
9577 * h8300-tdep.c (h8300_register_sim_regno): New function.
9578 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9579 gdbarch_register_sim_regno hook.
9580
8f008406
SA
95812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9582
9583 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9584
195abc10
SA
95852014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9586
9587 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9588
93ffa5b9
MK
95892014-02-12 Mark Kettenis <kettenis@gnu.org>
9590
9591 * obsd-tdep.h (obsd_init_abi): New prototype.
9592 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9593 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9594 (obsd_init_abi): New functions.
9595 * i386obsd-tdep.c: Include "obsd-tdep.h".
9596 (i386obsd_init_abi): Call obsd_init_abi.
9597 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9598 (amd64obsd_init_abi): Call obsd_init_abi.
9599 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9600 obsd-tdep.c to gdb_target_obs.
9601
49caec94
JM
96022014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9603
9604 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9605 double float arguments to 16-byte in the argument slots.
9606
e1402065
DE
96072014-02-11 Doug Evans <xdje42@gmail.com>
9608
9609 * configure.ac: Don't crash if pkg-config is not found and guile
9610 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9611 in guile checks.
9612 * configure: Regenerate.
9613
edcc890f
YQ
96142014-02-11 Yao Qi <yao@codesourcery.com>
9615
9616 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9617 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9618 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9619 * gnu-nat.c (gnu_xfer_memory): Likewise.
9620 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9621 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9622 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9623 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9624
9b409511
YQ
96252014-02-11 Yao Qi <yao@codesourcery.com>
9626
9627 * target.h (enum target_xfer_error): Rename to ...
9628 (enum target_xfer_status): ... it. New. All users updated.
9629 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9630 New.
9631 (TARGET_XFER_STATUS_ERROR_P): New macro.
9632 (target_xfer_error_to_string): Remove declaration.
9633 (target_xfer_status_to_string): Declare.
9634 (target_xfer_partial_ftype): Adjust it.
9635 (struct target_ops) <to_xfer_partial>: Return
9636 target_xfer_status. Add argument xfered_len. Update
9637 comments.
9638 * target.c (target_xfer_error_to_string): Rename to ...
9639 (target_xfer_status_to_string): ... it. New. All callers
9640 updated.
9641 (target_read_live_memory): Likewise. Call target_xfer_partial
9642 instead of target_read.
9643 (memory_xfer_live_readonly_partial): Return
9644 target_xfer_status. Add argument xfered_len.
9645 (raw_memory_xfer_partial): Likewise.
9646 (memory_xfer_partial_1): Likewise.
9647 (memory_xfer_partial): Likewise.
9648 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9649 properly. Update debug message.
9650 (default_xfer_partial, current_xfer_partial): Likewise.
9651 (target_write_partial): Likewise.
9652 (target_read_partial): Likewise. All callers updated.
9653 (read_whatever_is_readable): Likewise.
9654 (target_write_with_progress): Likewise.
9655 (target_read_alloc_1): Likewise.
9656
9657 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9658 * auxv.c (procfs_xfer_auxv): Likewise.
9659 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9660 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9661 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9662 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9663 * corefile.c (read_memory): Adjust.
9664 * corelow.c (core_xfer_partial): Likewise.
9665 * ctf.c (ctf_xfer_partial): Likewise.
9666 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9667 updated.
9668 (darwin_xfer_partial): Likewise.
9669 * exec.c (section_table_xfer_memory_partial): Likewise. All
9670 callers updated.
9671 (exec_xfer_partial): Likewise.
9672 * exec.h (section_table_xfer_memory_partial): Update
9673 declaration.
9674 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9675 negative.
9676 (gnu_xfer_partial): Likewise.
9677 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9678 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9679 (ia64_hpux_xfer_solib_got): Likewise.
9680 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9681 type of 'partial_len' to ULONGEST.
9682 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9683 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9684 (linux_nat_xfer_partial): Likewise.
9685 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9686 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9687 * monitor.c (monitor_xfer_memory): Likewise.
9688 (monitor_xfer_partial): Likewise.
9689 * procfs.c (procfs_xfer_partial): Likewise.
9690 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9691 * record-full.c (record_full_xfer_partial): Likewise.
9692 (record_full_core_xfer_partial): Likewise.
9693 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9694 (gdbsim_xfer_partial): Likewise.
9695 * remote.c (remote_write_bytes_aux): Likewise. All callers
9696 updated.
9697 (remote_write_bytes, remote_read_bytes): Likewise. All
9698 callers updated.
9699 (remote_flash_erase): Likewise. All callers updated.
9700 (remote_write_qxfer): Likewise. All callers updated.
9701 (remote_read_qxfer): Likewise. All callers updated.
9702 (remote_xfer_partial): Likewise.
9703 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9704 (rs6000_xfer_shared_libraries): Likewise.
9705 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9706 (sol_thread_xfer_partial): Likewise.
9707 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9708 (sparc_xfer_partial): Likewise.
9709 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9710 updated.
9711 (spu_xfer_partial): Likewise.
9712 * spu-multiarch.c (spu_xfer_partial): Likewise.
9713 * tracepoint.c (tfile_xfer_partial): Likewise.
9714 * windows-nat.c (windows_xfer_memory): Likewise.
9715 (windows_xfer_shared_libraries): Likewise.
9716 (windows_xfer_partial): Likewise.
9717 * valprint.c: Replace 'target_xfer_error' with
9718 'target_xfer_status' in comments.
9719
a8e63083
JB
97202014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9721
9722 Checked in by Joel Brobecker <brobecker@adacore.com>.
9723 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9724
e86b67d3
JB
97252014-02-11 Joel Brobecker <brobecker@adacore.com>
9726
9727 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9728 function parameters.
9729
4b7d1f7f
WN
97302014-02-10 Will Newton <will.newton@linaro.org>
9731
9732 * elfread.c (elf_rel_plt_read): Look for a .got section if
9733 looking up .got.plt fails.
9734 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9735 on address passed to elf_gnu_ifunc_record_cache.
9736 (elf_gnu_ifunc_resolve_addr): Likewise.
9737 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9738
961842b2
JM
97392014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9740
9741 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9742 (X_RETTURN): New macro.
9743 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9744
9745 * sparc64-tdep.c (sparc64_init_abi): Hook
9746 sparc_in_function_epilogue_p.
9747
3f03e7b1
GB
97482014-02-10 Gary Benson <gbenson@redhat.com>
9749
9750 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9751 Rename name_matcher to symbol_matcher.
9752
96f861ef
GB
97532014-02-10 Gary Benson <gbenson@redhat.com>
9754
9755 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9756 Use expand_symtabs_file_matcher_ftype and
9757 expand_symtabs_symbol_matcher_ftype.
9758
ee01b665
JB
97592014-02-10 Joel Brobecker <brobecker@adacore.com>
9760
9761 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9762 (struct ada_symbol_cache): New.
9763 (ada_free_symbol_cache): Forward declare.
9764 (struct ada_pspace_data): New.
9765 (ada_pspace_data_handle): New static global.
9766 (get_ada_pspace_data, ada_pspace_data_cleanup)
9767 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9768 (cache_space, cache): Delete, now folded inside struct
9769 ada_pspace_data.
9770 (ada_get_symbol_cache): New function.
9771 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9772 implementation.
9773 (_initialize_ada_language): Remove initialization of cache_space.
9774 Move call to observer_attach_inferior_exit up, grouping it
9775 with the other observer registrations inside this function.
9776 Rename command to be more general. Add call to
9777 register_program_space_data_with_cleanup.
9778
143adbbf
JB
97792014-02-10 Joel Brobecker <brobecker@adacore.com>
9780
9781 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9782 ada_new_objfile_observer.
9783 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9784 (_initialize_tasks): Update uses of ada_new_objfile_observer
9785 and ada_tasks_normal_stop_observer.
9786
aa4fb036
JB
97872014-02-10 Joel Brobecker <brobecker@adacore.com>
9788
9789 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9790 returned by the 'Length attribute to integer.
9791
9dee8cc6
JB
97922014-02-10 Joel Brobecker <brobecker@adacore.com>
9793
9794 * ada-lang.c (_initialize_ada_language): Initialize
9795 cache_space obstack.
9796
3d9434b5
JB
97972014-02-10 Joel Brobecker <brobecker@adacore.com>
9798
9799 * ada-lang.c (HASH_SIZE): New macro.
9800 (struct cache_entry): New type.
9801 (cache_space, cache): New static globals.
9802 (ada_clear_symbol_cache, find_entry): New functions.
9803 (lookup_cached_symbol, cache_symbol): Implement.
9804 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9805 (_initialize_ada_language): Attach ada_new_objfile_observer
9806 and ada_free_objfile_observer.
9807
f0c5f9b2
JB
98082014-02-10 Joel Brobecker <brobecker@adacore.com>
9809
9810 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9811 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9812 struct block * parameter.
9813 (ada_lookup_symbol_list_worker): Constify local variable "block".
9814 Remove cast which is no longer necessary.
9815
ed3ef339
DE
98162014-02-10 Doug Evans <xdje42@gmail.com>
9817
9818 Add Guile as an extension language.
9819 * NEWS: Mention Guile scripting.
9820 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9821 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9822 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9823 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9824 (CLIBS): Add GUILE_LIBS.
9825 (install-guile): New rule.
9826 (guile.o): New rule.
9827 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9828 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9829 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9830 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9831 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9832 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9833 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9834 * configure.ac: New option --with-guile.
9835 * configure: Regenerate.
9836 * config.in: Regenerate.
9837 * auto-load.c: Remove #include "python/python.h". Add #include
9838 "gdb/section-scripts.h".
9839 (source_section_scripts): Handle Guile scripts.
9840 (_initialize_auto_load): Add name of Guile objfile script to
9841 scripts-directory help text.
9842 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9843 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9844 (struct breakpoint): New member scm_bp_object.
9845 * defs.h (enum command_control_type): New value guile_control.
9846 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9847 "extension.h".
9848 (show_user): Update comment.
9849 (_initialize_cli_cmds): Update help text for "show user". Update help
9850 text for max-user-call-depth.
9851 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9852 "extension.h".
9853 (multi_line_command_p): Add guile_control.
9854 (print_command_lines): Handle guile_control.
9855 (execute_control_command, recurse_read_control_structure): Ditto.
9856 (process_next_line): Recognize "guile" commands.
9857 * disasm.c (gdb_disassemble_info): Make non-static.
9858 * disasm.h: #include "dis-asm.h".
9859 (struct gdbarch): Add forward decl.
9860 (gdb_disassemble_info): Declare.
9861 * extension.c: #include "guile/guile.h".
9862 (extension_languages): Add guile.
9863 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9864 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9865 * gdbtypes.c (get_unsigned_type_max): New function.
9866 (get_signed_type_minmax): New function.
9867 * gdbtypes.h (get_unsigned_type_max): Declare.
9868 (get_signed_type_minmax): Declare.
9869 * guile/README: New file.
9870 * guile/guile-internal.h: New file.
9871 * guile/guile.c: New file.
9872 * guile/guile.h: New file.
9873 * guile/scm-arch.c: New file.
9874 * guile/scm-auto-load.c: New file.
9875 * guile/scm-block.c: New file.
9876 * guile/scm-breakpoint.c: New file.
9877 * guile/scm-disasm.c: New file.
9878 * guile/scm-exception.c: New file.
9879 * guile/scm-frame.c: New file.
9880 * guile/scm-gsmob.c: New file.
9881 * guile/scm-iterator.c: New file.
9882 * guile/scm-lazy-string.c: New file.
9883 * guile/scm-math.c: New file.
9884 * guile/scm-objfile.c: New file.
9885 * guile/scm-ports.c: New file.
9886 * guile/scm-pretty-print.c: New file.
9887 * guile/scm-safe-call.c: New file.
9888 * guile/scm-string.c: New file.
9889 * guile/scm-symbol.c: New file.
9890 * guile/scm-symtab.c: New file.
9891 * guile/scm-type.c: New file.
9892 * guile/scm-utils.c: New file.
9893 * guile/scm-value.c: New file.
9894 * guile/lib/gdb.scm: New file.
9895 * guile/lib/gdb/boot.scm: New file.
9896 * guile/lib/gdb/experimental.scm: New file.
9897 * guile/lib/gdb/init.scm: New file.
9898 * guile/lib/gdb/iterator.scm: New file.
9899 * guile/lib/gdb/printing.scm: New file.
9900 * guile/lib/gdb/types.scm: New file.
9901 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9902 (VPATH): Add $(GUILE_SRCDIR).
9903 (GUILE_DIR): New variable.
9904 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9905 (all): Add stamp-guile dependency.
9906 (stamp-guile): New rule.
9907 (clean-guile, install-guile, uninstall-guile): New rules.
9908 (install-only): Add install-guile dependency.
9909 (uninstall): Add uninstall-guile dependency.
9910 (clean): Add clean-guile dependency.
9911
ac020ec5
DE
99122014-02-09 Doug Evans <xdje42@gmail.com>
9913
9914 Revert this patch (which I approved, mea culpa).
9915
9916 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9917
9918 * Makefile.in (all-lib): Remove.
9919 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9920
2a081c59
JK
99212014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 Fix Python stack corruption.
9924 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9925 gdb_py_longest.
9926
0a6bd22d
MK
99272014-02-08 Mark Kettenis <kettenis@gnu.org>
9928
9929 * Makefile.in (all-lib): Remove.
9930 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9931
1a860409
DE
99322014-02-07 Doug Evans <dje@google.com>
9933
9934 * extension-priv.h (extension_language_script_ops): Add comment.
9935 (extension_language_ops): Add comment.
caf5a491 9936 (active_ext_lang_state): Fix typo in comment.
1a860409 9937
d137e6dc
PA
99382014-02-07 Pedro Alves <palves@redhat.com>
9939
0dcb32c3 9940 PR breakpoints/16292
d137e6dc
PA
9941 * infrun.c (handle_signal_stop) <signal arrives while stepping
9942 over a breakpoint>: Switch back to the stepping thread.
9943
ce6d0892
YQ
99442014-02-07 Yao Qi <yao@codesourcery.com>
9945
9946 * target.c (target_xfer_partial): Return zero if LEN is zero.
9947
2ed4b548
YQ
99482014-02-07 Yao Qi <yao@codesourcery.com>
9949
9950 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9951 (ld_so_xfer_auxv): Likewise.
9952 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9953 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9954 * corelow.c (core_xfer_partial): Likewise.
9955 * ctf.c (ctf_xfer_partial): Likewise.
9956 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9957 (darwin_xfer_partial): Likewise.
9958 * exec.c (exec_xfer_partial): Likewise.
9959 * gnu-nat.c (gnu_xfer_partial): Likewise.
9960 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9961 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9962 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9963 * linux-nat.c (linux_xfer_siginfo): Likewise.
9964 (linux_proc_xfer_spu): Likewise.
9965 * procfs.c (procfs_xfer_partial): Likewise.
9966 * record-full.c (record_full_xfer_partial): Likewise.
9967 (record_full_core_xfer_partial): Likewise.
9968 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9969 * remote.c (remote_write_qxfer): Likewise.
9970 (remote_write_qxfer, remote_read_qxfer): Likewise.
9971 (remote_xfer_partial): Likewise.
9972 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9973 (rs6000_xfer_shared_libraries): Likewise.
9974 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9975 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9976 (spu_xfer_partial): Likewise.
9977 * target.c (memory_xfer_partial_1): Likewise.
9978 * tracepoint.c (tfile_xfer_partial): Likewise.
9979 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9980 (windows_xfer_partial): Likewise.
9981
c09f20e4
YQ
99822014-02-07 Yao Qi <yao@codesourcery.com>
9983
9984 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9985 comments.
9986 (core_xfer_shared_libraries_aix): Likewise.
9987 * gdbarch.c, gdbarch.h: Regenerated.
9988 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9989 ULONGEST. Change 'len_avail' type to ULONGEST.
9990 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9991 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9992 declaration.
9993 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9994
8635b3bf
YQ
99952014-02-07 Yao Qi <yao@codesourcery.com>
9996
9997 * corefile.c (memory_error): Get 'exception' from ERR and pass
9998 'exception' to throw_error.
9999
6dddc817
DE
100002014-02-06 Doug Evans <xdje42@gmail.com>
10001
10002 * configure.ac (libpython checking): Remove all but python.o from
10003 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10004 * configure: Regenerate.
10005
10006 * Makefile.in (SFILES): Add extension.c.
10007 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10008 (COMMON_OBS): Add extension.o.
10009 * extension.h: New file.
10010 * extension-priv.h: New file.
10011 * extension.c: New file.
10012
10013 * python/python-internal.h: #include "extension.h".
10014 (gdbpy_auto_load_enabled): Declare.
10015 (gdbpy_apply_val_pretty_printer): Declare.
10016 (gdbpy_apply_frame_filter): Declare.
10017 (gdbpy_preserve_values): Declare.
10018 (gdbpy_breakpoint_cond_says_stop): Declare.
10019 (gdbpy_breakpoint_has_cond): Declare.
10020 (void source_python_script_for_objfile): Delete.
10021 * python/python.c: #include "extension-priv.h".
10022 Delete inclusion of "observer.h".
10023 (extension_language_python): Moved here and renamed from
10024 script_language_python in py-auto-load.c.
10025 Redefined to be of type extension_language_defn.
10026 (python_extension_script_ops): New global.
10027 (python_extension_ops): New global.
10028 (struct python_env): New member previous_active.
10029 (restore_python_env): Call restore_active_ext_lang.
10030 (ensure_python_env): Call set_active_ext_lang.
10031 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10032 New arg extlang.
10033 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10034 New arg extlang.
10035 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10036 New arg extlang.
10037 (gdbpy_eval_from_control_command): Renamed from
10038 eval_python_from_control_command, made static. New arg extlang.
10039 (gdbpy_source_script) Renamed from source_python_script, made static.
10040 New arg extlang.
10041 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10042 result to int. New arg extlang.
10043 (gdbpy_source_objfile_script): Renamed from
10044 source_python_script_for_objfile, made static. New arg extlang.
10045 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10046 static. New args extlang, extlang_printers. Change result type to
10047 "void".
10048 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10049 static. New arg extlang. Rename arg printers to extlang_printers
10050 and change type to ext_lang_type_printers *.
10051 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10052 static. Replace argument arg with extlang, extlang_printers.
10053 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10054 (!HAVE_PYTHON, source_python_script): Delete.
10055 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10056 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10057 (!HAVE_PYTHON, start_type_printers): Delete.
10058 (!HAVE_PYTHON, apply_type_printers): Delete.
10059 (!HAVE_PYTHON, free_type_printers): Delete.
10060 (_initialize_python): Delete call to observer_attach_before_prompt.
10061 (finalize_python): Set/restore active extension language.
10062 (gdbpy_finish_initialization) Renamed from
10063 finish_python_initialization, made static. New arg extlang.
10064 (gdbpy_initialized): New function.
10065 * python/python.h: #include "extension.h". Delete #include
10066 "value.h", "mi/mi-cmds.h".
10067 (extension_language_python): Declare.
10068 (GDBPY_AUTO_FILE_NAME): Delete.
10069 (enum py_bt_status): Moved to extension.h and renamed to
10070 ext_lang_bt_status.
10071 (enum frame_filter_flags): Moved to extension.h.
10072 (enum py_frame_args): Moved to extension.h and renamed to
10073 ext_lang_frame_args.
10074 (finish_python_initialization): Delete.
10075 (eval_python_from_control_command): Delete.
10076 (source_python_script): Delete.
10077 (apply_val_pretty_printer): Delete.
10078 (apply_frame_filter): Delete.
10079 (preserve_python_values): Delete.
10080 (gdbpy_script_language_defn): Delete.
10081 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10082 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10083
10084 * auto-load.c: #include "extension.h".
10085 (GDB_AUTO_FILE_NAME): Delete.
10086 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10087 (script_language_gdb): Delete, moved to extension.c and renamed to
10088 extension_language_gdb.
10089 (source_gdb_script_for_objfile): Delete.
10090 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10091 (loaded_script): Change type of language member to
10092 struct extension_language_defn *.
10093 (init_loaded_scripts_info): Initialize
10094 unsupported_script_warning_printed.
10095 (maybe_add_script): Make static. Change type of language arg to
10096 struct extension_language_defn *.
10097 (clear_section_scripts): Reset unsupported_script_warning_printed.
10098 (auto_load_objfile_script_1): Rewrite to use extension language API.
10099 (auto_load_objfile_script): Make public. Remove support-compiled-in
10100 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10101 (source_section_scripts): Rewrite to use extension language API.
10102 (load_auto_scripts_for_objfile): Rewrite to use
10103 auto_load_scripts_for_objfile.
10104 (collect_matching_scripts_data): Change type of language member to
10105 struct extension_language_defn *.
10106 (auto_load_info_scripts): Change type of language arg to
10107 struct extension_language_defn *.
10108 (unsupported_script_warning_print): New function.
10109 (script_not_found_warning_print): Make static.
10110 (_initialize_auto_load): Rewrite construction of scripts-directory
10111 help.
10112 * auto-load.h (struct objfile): Add forward decl.
10113 (struct script_language): Delete.
10114 (struct auto_load_pspace_info): Add forward decl.
10115 (struct extension_language_defn): Add forward decl.
10116 (maybe_add_script): Delete.
10117 (auto_load_objfile_script): Declare.
10118 (script_not_found_warning_print): Delete.
10119 (auto_load_info_scripts): Update prototype.
10120 (auto_load_gdb_scripts_enabled): Declare.
10121 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10122 auto_load_python_scripts_enabled and made public.
10123 (script_language_python): Delete, moved to python.c.
10124 (gdbpy_script_language_defn): Delete.
10125 (info_auto_load_python_scripts): Update to use
10126 extension_language_python.
10127
10128 * breakpoint.c (condition_command): Replace call to
10129 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10130 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10131 with call to breakpoint_ext_lang_cond_says_stop.
10132 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10133 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10134 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10135 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10136 New arg slang.
10137 (local_setattro): Print name of extension language with existing
10138 stop condition.
10139
10140 * valprint.c (val_print, value_print): Update to call
10141 apply_ext_lang_val_pretty_printer.
10142 * cp-valprint.c (cp_print_value): Update call to
10143 apply_ext_lang_val_pretty_printer.
10144 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10145 (gdbpy_apply_val_pretty_printer): Renamed from
10146 apply_val_pretty_printer. New arg extlang.
10147 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10148
10149 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10150 extension language API.
10151 * cli/cli-script.c (execute_control_command): Update to call
10152 eval_ext_lang_from_control_command.
10153
10154 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10155 enum ext_lang_bt_status values. Update call to
10156 apply_ext_lang_frame_filter.
10157 (mi_cmd_stack_list_locals): Ditto.
10158 (mi_cmd_stack_list_args): Ditto.
10159 (mi_cmd_stack_list_variables): Ditto.
10160 * mi/mi-main.c: Delete #include "python/python-internal.h".
10161 Add #include "extension.h".
10162 (mi_cmd_list_features): Replace reference to python internal variable
10163 gdb_python_initialized with call to ext_lang_initialized_p.
10164
10165 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10166 Update to use enum ext_lang_frame_args. Update to call
10167 apply_ext_lang_frame_filter.
10168 * python/py-framefilter.c (extract_sym): Update to use enum
10169 ext_lang_bt_status.
10170 (extract_value, py_print_type, py_print_value): Ditto.
10171 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10172 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10173 (py_print_frame): Ditto.
10174 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10175 New arg extlang. Update to use enum ext_lang_bt_status.
10176
10177 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10178 finish_python_initialization. Replace with call to
10179 finish_ext_lang_initialization.
10180
10181 * typeprint.c (do_free_global_table): Update to call
10182 free_ext_lang_type_printers.
10183 (create_global_typedef_table): Update to call
10184 start_ext_lang_type_printers.
10185 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10186 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10187 (type_print_options): Change type of global_printers from "void *"
10188 to "struct ext_lang_type_printers *".
10189
10190 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10191 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10192 (gdbpy_preserve_values): Renamed from preserve_python_values.
10193 New arg extlang.
10194 (!HAVE_PYTHON, preserve_python_values): Delete.
10195
10196 * utils.c (quit_flag): Delete, moved to extension.c.
10197 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10198 extension.c.
10199
10200 * eval.c: Delete #include "python/python.h".
10201 * main.c: Delete #include "python/python.h".
10202
10203 * defs.h: Update comment.
10204
6af79985
JB
102052014-02-06 Joel Brobecker <brobecker@adacore.com>
10206
10207 GDB 7.7 released.
10208
12c5175d
MK
102092014-02-05 Mark Kettenis <kettenis@gnu.org>
10210
10211 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10212 defined.
10213
8dc5b319
YQ
102142014-02-05 Yao Qi <yao@codesourcery.com>
10215
10216 * remote.c (remote_pass_signals): Remove local 'buf' and use
10217 rs->buf.
10218 (remote_program_signals): Likewise.
10219
de7b2893
YQ
102202014-02-05 Yao Qi <yao@codesourcery.com>
10221
10222 * ctf.c: Include "inferior.h" and "gdbthread.h".
10223 (CTF_PID): A new macro.
10224 (ctf_open): Call inferior_appeared and add_thread_silent.
10225 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10226 (ctf_thread_alive): New function.
10227 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10228
66d032ac
YQ
102292014-02-05 Yao Qi <yao@codesourcery.com>
10230
10231 Revert this patch:
10232
10233 2013-05-24 Yao Qi <yao@codesourcery.com>
10234
10235 * tracepoint.c (TFILE_PID): Remove.
10236 (tfile_open): Don't add thread and inferior.
10237 (tfile_close): Don't set 'inferior_ptid'. Don't call
10238 exit_inferior_silent.
10239 (tfile_thread_alive): Remove.
10240 (init_tfile_ops): Don't set field 'to_thread_alive' of
10241 tfile_ops.
10242
f4ccffad
CE
102432014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10244
10245 * remote.c (remote_start_remote): Call remote_check_symbols even
10246 if only symbol-file (not file) has been given.
10247
591a12a1
UW
102482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10249
10250 * gdbarch.sh (skip_entrypoint): New callback.
10251 * gdbarch.c, gdbarch.h: Regenerate.
10252 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10253 * infrun.c (fill_in_stop_func): Likewise.
10254 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10255 (ppc_elfv2_elf_make_msymbol_special): New function.
10256 (ppc_elfv2_skip_entrypoint): Likewise.
10257 (ppc_linux_init_abi): Install them for ELFv2.
10258
cc0e89c5
UW
102592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10260
10261 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10262 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10263 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10264 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10265 structures returned in GPRs.
10266
52f548e4
UW
102672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10268
10269 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10270 offset to the stack parameter list for the ELFv2 ABI.
10271
d4094b6a
UW
102722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10273
10274 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10275 set_gdbarch_convert_from_func_ptr_addr and
10276 set_gdbarch_elf_make_msymbol_special for ELFv1.
10277 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10278 function descriptors on ELFv1.
10279 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10280 set up r12 at function entry.
10281
cd453cd0
UW
102822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10283
10284 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10285 (struct gdbarch_tdep): New member elf_abi.
10286
10287 * rs6000-tdep.c: Include "elf/ppc64.h".
10288 (rs6000_gdbarch_init): Detect ELF ABI version.
10289
0ff3e01f
UW
102902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10291
10292 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10293 within a register pair holding a DFP 128-bit value on little-endian.
10294 (ppc64_sysv_abi_return_value_base): Likewise.
10295 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10296 (dfp_pseudo_register_write): Likewise.
10297
5b757e5d
UW
102982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10299
10300 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10301 offset on little-endian when passing _Decimal32.
10302 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10303
084ee545
UW
103042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10305
10306 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10307 of the overlapped FP register within the VSX register on little-
10308 endian platforms.
10309 (efpr_pseudo_register_write): Likewise.
10310
d63167af
UW
103112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10312
10313 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10314 offset on little-endian when passing small structures.
10315
e765b44c
UW
103162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10317
10318 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10319 (struct ppc64_sysv_argpos): New data structure.
10320 (ppc64_sysv_abi_push_float): Remove.
10321 (ppc64_sysv_abi_push_val): New function.
10322 (ppc64_sysv_abi_push_integer): Likewise.
10323 (ppc64_sysv_abi_push_freg): Likewise.
10324 (ppc64_sysv_abi_push_vreg): Likewise.
10325 (ppc64_sysv_abi_push_param): Likewise.
10326 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10327 (ppc64_sysv_abi_return_value_base): New function.
10328 (ppc64_sysv_abi_return_value): Refactor to use it.
10329
36c24d95
UW
103302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10331
10332 * NEWS: Document new target powerpc64le-*-linux*.
10333
26fd9228
MK
103342014-02-04 Mark Kettenis <kettenis@gnu.org>
10335
10336 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10337 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10338 core dumps.
10339 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10340 register set used in ELF core dumps. Add floating-point register set.
10341
c5bb7362
KB
103422014-02-03 Kevin Buettner <kevinb@redhat.com>
10343
74228e77 10344 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10345 dwarf2_to_gdb[] table using symbolic constants. Adjust
10346 penultimate entry from number representing the PC register
10347 to symbolic constant representing the MDR register. Add
10348 constant for the PC register to the end of the table.
10349
af09351e
MK
103502014-02-03 Mark Kettenis <kettenis@gnu.org>
10351
10352 * bsd-kvm.c: Include <sys/param.h>
10353
8507e05d
MK
103542014-02-03 Mark Kettenis <kettenis@gnu.org>
10355
10356 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10357
ae56bfb8
JB
103582014-01-31 Joel Brobecker <brobecker@adacore.com>
10359
10360 * ada-lang.h (clear_ada_sym_cache): Delete.
10361
718ee4dc
UW
103622014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10363
10364 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10365
401e27fd
JM
103662014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10367
10368 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10369 the sigreturn register save area only if the syscall is
10370 sigreturn.
10371
a7c88acd
JB
103722014-01-29 Joel Brobecker <brobecker@adacore.com>
10373
10374 * valops.c (value_slice): Minor reformatting.
10375
fa0079ea
UW
103762014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10377
10378 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10379
c6044dd1
JB
103802014-01-28 Joel Brobecker <brobecker@adacore.com>
10381
10382 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10383 New static globals.
10384 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10385 (ada_ignore_descriptive_types_p): New static global.
10386 (find_parallel_type_by_descriptive_type): Return immediately
10387 if ada_ignore_descriptive_types_p is set.
10388 (_initialize_ada_language): Register new commands "maintenance
10389 set ada", "maintenance show ada", "maintenance set ada
10390 ignore-descriptive-types" and "maintenance show ada
10391 ignore-descriptive-types".
10392 * NEWS: Add entry for new "maint ada set/show
10393 ignore-descriptive-types" commands.
10394
568e808b
MM
103952014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10396
10397 * record-btrace.c (record_btrace_close): Call btrace_teardown
10398 for all threads.
10399
467d141b
JB
104002014-01-27 Joel Brobecker <brobecker@adacore.com>
10401
10402 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10403 "ui-out.h".
10404
fb151210
JB
104052014-01-27 Joel Brobecker <brobecker@adacore.com>
10406
10407 * ada-typeprint (type_is_full_subrange_of_target_type):
10408 New function.
10409 (print_range): Add parameter bounds_prefered_p. If not set,
10410 try printing range types using the name of their base type.
10411 (print_range_type): Add parameter bounds_prefered_p.
10412 Use it in call to print_range.
10413 (print_array_type, ada_print_type): Update calls to print_range
10414 and print_range_type.
10415
aba02109
JB
104162014-01-27 Joel Brobecker <brobecker@adacore.com>
10417
10418 * ada-typeprint.c (print_array_type, print_choices, print_range)
10419 (print_range_bound, print_dynamic_range_bound, print_range_type):
10420 Remove declaration.
10421
e62e21fd
JB
104222014-01-27 Joel Brobecker <brobecker@adacore.com>
10423
10424 * ada-typeprint.c (print_range): Add missing empty line
10425 after local declaration.
10426
859cf5d1
JB
104272014-01-27 Joel Brobecker <brobecker@adacore.com>
10428
10429 * ada-valprint.c (print_optional_low_bound): Get index_type's
10430 target type for as long as it is a TYPE_CODE_RANGE.
10431
25790f6f
JB
104322014-01-27 Joel Brobecker <brobecker@adacore.com>
10433
10434 * procfs.c (procfs_make_note_section): Remove assertion and
10435 associated comment.
10436
6b6aa828
YQ
104372014-01-24 Yao Qi <yao@codesourcery.com>
10438
10439 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10440 * corelow.c (get_core_siginfo): Likewise.
10441
5d6df423
YQ
104422014-01-24 Yao Qi <yao@codesourcery.com>
10443
10444 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10445 ULONGEST. Don't check 'len' is negative.
10446 (remote_write_bytes): Change type of 'len' to ULONGEST.
10447
83b645b8
TT
104482014-01-23 Tom Tromey <tromey@redhat.com>
10449
10450 PR python/16485:
10451 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10452 Handle exception from frame.block.
10453 (FrameVars.fetch_frame_locals): Likewise.
10454
0740f8d8
TT
104552014-01-23 Tom Tromey <tromey@redhat.com>
10456
10457 PR python/16487:
10458 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10459 on a NULL pointer. Move "goto error" to correct place.
10460
21909fa1
TT
104612014-01-23 Tom Tromey <tromey@redhat.com>
10462
10463 PR python/16491:
10464 * python/py-framefilter.c (apply_frame_filter): Call
10465 ensure_python_env after computing gdbarch.
10466
17fde6d0
YQ
104672014-01-23 Yao Qi <yao@codesourcery.com>
10468
10469 * target.c (raw_memory_xfer_partial): Change argument type
10470 from void * to gdb_byte *.
10471 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10472
87ce2a04
DE
104732014-01-22 Doug Evans <dje@google.com>
10474
10475 New gdbserver option --debug-format=timestamp.
10476 * NEWS: Mention it.
10477
237b092b
AA
104782014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10479
10480 * syscalls/s390x-linux.xml: New file.
10481 * syscalls/s390-linux.xml: New file.
10482 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10483 (XML_SYSCALL_FILENAME_S390X): Likewise.
10484 (op_svc): New enum value for SVC opcode.
10485 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10486 (s390_linux_get_syscall_number): New function.
10487 (s390_gdbarch_init): Register '*get_syscall_number' and the
10488 syscall xml file name.
10489 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10490 "s390-linux.xml" and "s390x-linux.xml".
10491 * NEWS: Announce new feature.
10492
54bff650
BS
104932014-01-22 Baruch Siach <baruch@tkos.co.il>
10494
10495 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10496
14e361d7
PA
104972014-01-22 Pedro Alves <palves@redhat.com>
10498
10499 * xtensa-config.c: Include defs.h.
10500
46bbb3ed
JB
105012014-01-22 Joel Brobecker <brobecker@adacore.com>
10502
10503 * common/common-utils.h: Add "ARI:" comment beside __func__
10504 reference.
10505
3a80edfc
JB
105062014-01-22 Joel Brobecker <brobecker@adacore.com>
10507
10508 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10509 documentation a bit.
10510
4869db5e
RM
105112014-01-21 Roland McGrath <mcgrathr@google.com>
10512
10513 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10514 * configure: Regenerate.
10515 * aclocal.m4: Regenerate.
10516 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10517 New substituted variables.
10518 (install-strip): New target.
10519 (INSTALL_SCRIPT): New substituted variable.
10520 (FLAGS_TO_PASS): Add it.
10521 (install-only): Use $(INSTALL_SCRIPT) rather than
10522 $(INSTALL_PROGRAM) for gcore.
10523
9ea4267d
TT
105242014-01-20 Tom Tromey <tromey@redhat.com>
10525
10526 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10527 together.
10528
1f2bdf09
TT
105292014-01-20 Tom Tromey <tromey@redhat.com>
10530
10531 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10532 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10533 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10534 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10535 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10536 (struct cmd_list_element) <flags>: Remove.
10537 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10538 doc_allocated>: New fields.
10539 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10540 bitfields.
10541 * maint.c (maintenance_do_deprecate): Update.
10542 * top.c (execute_command): Update.
10543
e671835b
BS
105442014-01-20 Baruch Siach <baruch@tkos.co.il>
10545
10546 * xtensa-linux-nat.c: Include asm/ptrace.h.
10547
50367cd2
IB
105482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10549
10550 * Makefile.in (SFILES): Add d-support.c.
10551 (COMMON_OBS): Add d-support.o.
10552 * d-lang.h (d_parse_symbol): Add comment, now defined in
10553 d-support.c.
10554 * d-lang.c (parse_call_convention)
10555 (parse_attributes, parse_function_types)
10556 (parse_function_args, parse_type, parse_identifier)
10557 (call_convention_p, d_parse_symbol): Move functions to ...
10558 * d-support.c: ... New file.
10559
ec9f644a
IB
105602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10561
10562 * d-lang.h (d_parse_symbol): Add declaration.
10563 * d-lang.c (extract_identifiers)
10564 (extract_type_info): Remove functions.
10565 (parse_call_convention, parse_attributes)
10566 (parse_function_types, parse_function_args)
10567 (parse_type, parse_identifier, call_convention_p)
10568 (d_parse_symbol): New functions.
10569 (d_demangle): Use d_parse_symbol to demangle D symbols.
10570
94b1b47e
IB
105712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10572
10573 * d-lang.h (struct builtin_d_type): New data type.
10574 (builtin_d_type): Add declaration.
10575 * d-lang.c (d_language_arch_info, build_d_types)
10576 (builtin_d_type): New functions.
10577 (enum d_primitive_types): New data type.
10578 (d_language_defn): Change c_language_arch_info to
10579 d_language_arch_info.
10580 (d_type_data): New static variable.
10581 (_initialize_d_language): Initialize d_type_data.
10582
63778547
IB
105832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10584
10585 * d-lang.h (d_main_name): Add declaration.
10586 * d-lang.c (d_main_name): New function.
10587 * symtab.c (find_main_name): Add call to d_main_name.
10588
3271ba66
IB
105892014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10590
10591 * d-lang.c (d_language_defn): Change macro_expansion_c to
10592 macro_expansion_no.
10593
d36b3012
IB
105942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10595
10596 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10597
c90a6fb7
SDJ
105982014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10599
10600 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10601 gdb_exception" declaration.
10602 * remote.c (getpkt_or_notif_sane): Likewise.
10603
749234e5
DE
106042014-01-17 Doug Evans <dje@google.com>
10605
10606 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10607 function, contents of dirnames_to_char_ptr_vec_append moved here.
10608 (delim_string_to_char_ptr_vec): New function.
10609 (dirnames_to_char_ptr_vec_append): Rewrite.
10610 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10611
df049a58
DE
106122014-01-17 Doug Evans <dje@google.com>
10613
10614 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10615 and moved here ...
10616 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10617 #include "common-utils.h".
10618 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10619 * common/vec.h (VEC_ASSERT_PASS): Update.
10620 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10621 (MACH_CHECK_ERROR): Update.
10622
69f97648
SM
106232014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10624
10625 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10626 comments.
10627 * gdbarch.h: Regenerate.
10628
98b1cfdc
TT
106292014-01-16 Tom Tromey <tromey@redhat.com>
10630
10631 * value.c (struct value) <regnum>: Move earlier.
10632
77a19445
TT
106332014-01-16 Tom Tromey <tromey@redhat.com>
10634
10635 * remote.c (extended_remote_create_inferior): Rename from
10636 extended_remote_create_inferior_1. Add "ops" argument. Remove
10637 old implementation.
10638
62261490
PA
106392014-01-16 Pedro Alves <palves@redhat.com>
10640
10641 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10642 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10643 the backchain.
10644
4d65956b
DE
106452014-01-16 Doug Evans <dje@google.com>
10646
10647 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10648
52834460
MM
106492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10650
10651 * btrace.h (btrace_thread_flag): New.
10652 (struct btrace_thread_info) <flags>: New.
10653 * record-btrace.c (record_btrace_resume_thread)
10654 (record_btrace_find_thread_to_move, btrace_step_no_history)
10655 (btrace_step_stopped, record_btrace_start_replaying)
10656 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10657 (record_btrace_find_resume_thread): New.
10658 (record_btrace_resume, record_btrace_wait): Extend.
10659 (record_btrace_can_execute_reverse): New.
10660 (record_btrace_open): Fail in non-stop mode.
10661 (record_btrace_set_replay): Split into this, ...
10662 (record_btrace_stop_replaying): ... this, ...
10663 (record_btrace_clear_histories): ... and this.
10664 (init_record_btrace_ops): Init to_can_execute_reverse.
10665 * NEWS: Announce it.
10666
118e6252
MM
106672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10668
10669 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10670 (forward_target_decr_pc_after_break)
10671 (target_decr_pc_after_break): New.
10672 * target.c (forward_target_decr_pc_after_break)
10673 (target_decr_pc_after_break): New.
10674 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10675 instead of gdbarch_decr_pc_after_break.
10676 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10677 instead of gdbarch_decr_pc_after_break.
10678 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10679 instead of gdbarch_decr_pc_after_break.
10680 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10681 instead of gdbarch_decr_pc_after_break.
10682 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10683 instead of gdbarch_decr_pc_after_break.
10684 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10685 instead of gdbarch_decr_pc_after_break.
10686
6e07b1d2
MM
106872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10688
10689 * btrace.c: Include regcache.h.
10690 (btrace_add_pc): New.
10691 (btrace_enable): Call btrace_add_pc.
10692 (btrace_is_empty): New.
10693 * btrace.h (btrace_is_empty): New.
10694 * record-btrace.c (require_btrace, record_btrace_info): Call
10695 btrace_is_empty.
10696
969c39fb
MM
106972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10698
10699 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10700 Support delta reads.
10701 (linux_disable_btrace): Change return type.
10702 * common/linux-btrace.h (linux_read_btrace): Change parameters
10703 and return type to allow error reporting. Update users.
10704 (linux_disable_btrace): Change return type. Update users.
10705 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10706 New.
10707 (btrace_error): New.
10708 (btrace_block) <begin>: Comment on BEGIN == 0.
10709 * btrace.c (btrace_compute_ftrace): Start from the end of
10710 the current trace.
10711 (btrace_stitch_trace, btrace_clear_history): New.
10712 (btrace_fetch): Read delta trace, return if replaying.
10713 (btrace_clear): Move clear history code to btrace_clear_history.
10714 (parse_xml_btrace): Throw an error if parsing failed.
10715 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10716 and return type to allow error reporting.
10717 (target_read_btrace): Change parameters and return type to allow
10718 error reporting.
10719 * target.c (target_read_btrace): Update.
10720 * remote.c (remote_read_btrace): Support delta reads. Pass
10721 errors on.
10722 * NEWS: Announce it.
10723
0b722aec
MM
107242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10725
10726 * record.h (record_btrace_frame_unwind)
10727 (record_btrace_tailcall_frame_unwind): New declarations.
10728 * dwarf2-frame: Include record.h
10729 (dwarf2_frame_cfa): Throw an error for btrace frames.
10730 * record-btrace.c: Include hashtab.h.
10731 (btrace_get_bfun_name): New.
10732 (btrace_call_history): Call btrace_get_bfun_name.
10733 (struct btrace_frame_cache): New.
10734 (bfcache): New.
10735 (bfcache_hash, bfcache_eq, bfcache_new): New.
10736 (btrace_get_frame_function): New.
10737 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10738 (record_btrace_frame_this_id): Compute own id.
10739 (record_btrace_frame_prev_register): Provide PC, throw_error
10740 for all other registers.
10741 (record_btrace_frame_sniffer): Detect btrace frames.
10742 (record_btrace_tailcall_frame_sniffer): New.
10743 (record_btrace_frame_dealloc_cache): New.
10744 (record_btrace_frame_unwind): Add new functions.
10745 (record_btrace_tailcall_frame_unwind): New.
10746 (_initialize_record_btrace): Allocate cache.
10747 * btrace.c (btrace_clear): Call reinit_frame_cache.
10748 * NEWS: Announce it.
10749
066ce621
MM
107502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10751
10752 * record-btrace.c (record_btrace_set_replay)
10753 (record_btrace_goto_begin, record_btrace_goto_end)
10754 (record_btrace_goto): New.
10755 (init_record_btrace_ops): Initialize them.
10756 * NEWS: Announce it.
10757
e2887aa3
MM
107582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10759
10760 * record-btrace.c (record_btrace_find_new_threads)
10761 (record_btrace_thread_alive): New.
10762 (init_record_btrace_ops): Initialize to_find_new_threads and
10763 to_thread_alive.
10764
b2f4cfde
MM
107652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10766
10767 * record-btrace.c (record_btrace_resume): New.
10768 (record_btrace_wait): New.
10769 (init_record_btrace_ops): Initialize to_wait and to_resume.
10770
633785ff
MM
107712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10772
10773 * record-btrace.c (record_btrace_xfer_partial)
10774 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10775 (record_btrace_allow_memory_access): New.
10776 (init_record_btrace_ops): Initialize new methods.
10777 * target.c (raw_memory_xfer_partial): Bail out if target reports
10778 that this memory is not available.
10779
3db08215
MM
107802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10781
10782 * target.h (target_ops) <to_insert_breakpoint>
10783 <to_remove_breakpoint>: Add target_ops parameter.
10784 (forward_target_insert_breakpoint): New.
10785 (forward_target_remove_breakpoint): New.
10786 (memory_remove_breakpoint, memory_insert_breakpoint):
10787 Add target_ops parameter.
10788 * target.c (target_insert_breakpoint): Split into this and ...
10789 (forward_target_insert_breakpoint): ... this.
10790 (target_remove_breakpoint): Split into this and ...
10791 (forward_target_remove_breakpoint): ... this.
10792 (debug_to_insert_breakpoint): Add target_ops parameter.
10793 Call forward_target_insert_breakpoint.
10794 (debug_to_remove_breakpoint): Add target_ops parameter.
10795 Call forward_target_remove_breakpoint.
10796 (update_current_target): Do not inherit or default to_insert_breakpoint
10797 and to_remove_breakpoint.
10798 * corelow.c (ignore): Add target_ops parameter.
10799 * exec.c (ignore): Add target_ops parameter.
10800 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10801 Add target_ops parameter.
10802 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10803 Add target_ops parameter.
10804 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10805 Add target_ops parameter.
10806 * record-full.c (record_full_beneath_to_insert_breakpoint)
10807 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10808 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10809 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10810 (record_full_core_remove_breakpoint): Add target_ops parameter.
10811 Update users.
10812 (record_full_beneath_to_insert_breakpoint_ops)
10813 (record_full_beneath_to_remove_breakpoint_ops)
10814 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10815 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10816 tmp_to_remove_breakpoint_ops,
10817 record_full_beneath_to_insert_breakpoint_ops, and
10818 record_full_beneath_to_remove_breakpoint_ops.
10819 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10820 (m32r_remove_breakpoint): Add target_ops parameter.
10821 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10822 Add target_ops parameter.
10823 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10824 Add target_ops parameter.
10825
cecac1ab
MM
108262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10827 Markus Metzger <markus.t.metzger@intel.com>
10828
10829 * record-btrace.c: Include frame-unwind.h.
10830 (record_btrace_frame_unwind_stop_reason)
10831 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10832 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10833 New.
10834 (init_record_btrace_ops): Install it.
10835
824344ca
MM
108362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10837
10838 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10839 get_prev_frame_1.
10840
32261e52
MM
108412014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10842
10843 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10844 earlier.
10845
ea001bdc
MM
108462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 * frame-unwind.c: Include target.h.
10849 (frame_unwind_try_unwinder): New function with code from ...
10850 (frame_unwind_find_by_frame): ... here. New variable
10851 unwinder_from_target, call also target_get_unwinder)
10852 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10853 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10854 * target.h (struct target_ops): New fields to_get_unwinder and
10855 to_get_tailcall_unwinder.
10856 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10857
1f3ef581
MM
108582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * record-btrace.c (record_btrace_fetch_registers)
10861 (record_btrace_store_registers)
10862 (record_btrace_to_prepare_to_store): New.
10863 (init_record_btrace_ops): Add the above.
10864
f32dbf8c
MM
108652014-01-16 Tom Tromey <tromey@redhat.com>
10866
10867 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10868 * target.h (struct target_ops) <to_prepare_to_store>: Add
10869 argument.
10870 (target_prepare_to_store): Add argument.
10871 * target.c (debug_to_prepare_to_store): Add argument.
10872 (update_current_target): Update.
10873 * remote.c (remote_prepare_to_store): Add 'self' argument.
10874 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10875 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10876 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10877 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10878 argument.
10879 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10880 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10881 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10882 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10883 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10884
07bbe694
MM
108852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10886
10887 * btrace.h (replay) <replay>: New.
10888 (btrace_is_replaying): New.
10889 * btrace.c (btrace_clear): Free replay iterator.
10890 (btrace_is_replaying): New.
10891 * record-btrace.c (record_btrace_is_replaying): New.
10892 (record_btrace_info): Print insn number if replaying.
10893 (record_btrace_insn_history): Start at replay position.
10894 (record_btrace_call_history): Start at replay position.
10895 (init_record_btrace_ops): Init to_record_is_replaying.
10896
0688d04e
MM
108972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10898
10899 * record-btrace.c (record_btrace_insn_history_range): Include
10900 end.
10901 (record_btrace_insn_history_from): Adjust range.
10902 (record_btrace_call_history_range): Include
10903 end.
10904 (record_btrace_call_history_from): Adjust range.
10905 * NEWS: Announce changes.
10906
8710b709
MM
109072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10908
10909 * record.h (enum record_print_flag)
10910 <record_print_indent_calls>: New.
10911 * record.c (get_call_history_modifiers): Recognize /c modifier.
10912 (_initialize_record): Document /c modifier.
10913 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10914 Reorder fields. Optionally indent the function name. Update
10915 all users.
10916 * NEWS: Announce changes.
10917
d0fa7535
MM
109182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10919
10920 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10921
5de9129b
MM
109222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10923
10924 * btrace.c (ftrace_new_function): Start counting at one.
10925 * record-btrace.c (record_btrace_info): Adjust number of calls
10926 and insns.
10927 * NEWS: Announce it.
10928
7acbe133
MM
109292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10930
10931 * record-btrace.c (btrace_call_history_insn_range): Print
10932 insn range as [begin, end].
10933
23a7fe75
MM
109342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10935
10936 * btrace.h (struct btrace_func_link): New.
10937 (enum btrace_function_flag): New.
10938 (struct btrace_inst): Rename to ...
10939 (struct btrace_insn): ...this. Update all users.
10940 (struct btrace_func) <ibegin, iend>: Remove.
10941 (struct btrace_func_link): New.
10942 (struct btrace_func): Rename to ...
10943 (struct btrace_function): ...this. Update all users.
10944 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10945 (number, level, flags>: New.
10946 (struct btrace_insn_iterator): Rename to ...
10947 (struct btrace_insn_history): ...this.
10948 Update all users.
10949 (struct btrace_insn_iterator, btrace_call_iterator): New.
10950 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10951 (struct btrace_target_info) <begin, end, level>
10952 <insn_history, call_history>: New.
10953 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10954 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10955 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10956 (btrace_call_number, btrace_call_begin, btrace_call_end)
10957 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10958 (btrace_find_function_by_number, btrace_set_insn_history)
10959 (btrace_set_call_history): New.
10960 * btrace.c (btrace_init_insn_iterator)
10961 (btrace_init_func_iterator, compute_itrace): Remove.
10962 (ftrace_print_function_name, ftrace_print_filename)
10963 (ftrace_skip_file): Change
10964 parameter to const.
10965 (ftrace_init_func): Remove.
10966 (ftrace_debug): Use new btrace_function fields.
10967 (ftrace_function_switched): Also consider gaining and
10968 losing symbol information).
10969 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10970 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10971 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10972 New.
10973 (ftrace_new_function): Move. Remove debug print.
10974 (ftrace_update_lines, ftrace_update_insns): New.
10975 (ftrace_update_function): Check for call, ret, and jump.
10976 (compute_ftrace): Renamed to ...
10977 (btrace_compute_ftrace): ...this. Rewritten to compute call
10978 stack.
10979 (btrace_fetch, btrace_clear): Updated.
10980 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10981 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10982 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10983 (btrace_call_number, btrace_call_begin, btrace_call_end)
10984 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10985 (btrace_find_function_by_number, btrace_set_insn_history)
10986 (btrace_set_call_history): New.
10987 * record-btrace.c (require_btrace): Use new btrace thread
10988 info fields.
10989 (record_btrace_info, btrace_insn_history)
10990 (record_btrace_insn_history, record_btrace_insn_history_range):
10991 Use new btrace thread info fields and new iterator.
10992 (btrace_func_history_src_line): Rename to ...
10993 (btrace_call_history_src_line): ...this. Use new btrace
10994 thread info fields.
10995 (btrace_func_history): Rename to ...
10996 (btrace_call_history): ...this. Use new btrace thread info
10997 fields and new iterator.
10998 (record_btrace_call_history, record_btrace_call_history_range):
10999 Use new btrace thread info fields and new iterator.
11000
8372a7cb
MM
110012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11002
11003 * frame.h (frame_id_build_unavailable_stack_special): New.
11004 * frame.c (frame_id_build_unavailable_stack_special): New.
11005
c2170eef
MM
110062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11007
11008 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11009 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11010 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11011 to gdbarch.
11012 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11013 (i386_insn_is_jump, i386_jmp_p): New.
11014 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11015 insn_is_jump to gdbarch.
11016 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11017 * gdbarch.h: Regenerated.
11018 * gdbarch.c: Regenerated.
11019 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11020 (default_insn_is_jump): New.
11021 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11022 (default_insn_is_jump): New.
11023
864089d2
MM
110242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11025
11026 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11027 Change to ...
11028 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11029 (btrace_read_type) <btrace_read_new>: Change to ...
11030 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11031
ed9edfb5
MM
110322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11033
11034 * common/linux-btrace.c (linux_read_btrace): Free trace from
11035 previous iteration.
11036
fbcbc3fd
DE
110372014-01-15 Doug Evans <dje@google.com>
11038
11039 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11040 uint32_t.
11041
3d548a53
TT
110422014-01-15 Tom Tromey <tromey@redhat.com>
11043
11044 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11045 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11046 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11047 (set_objfile_main_name): New function.
11048 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11049 language_of_main>: New fields.
11050 (set_objfile_main_name): Declare.
11051 * symtab.c (find_main_name): Loop over objfiles to find the main
11052 name and language.
11053 (set_main_name): Now static.
11054 (get_main_info): Add comment.
11055 * symtab.h (set_main_name): Don't declare.
11056
32ac0d11
TT
110572014-01-15 Tom Tromey <tromey@redhat.com>
11058
11059 * symtab.c (main_progspace_key): New global.
11060 (struct main_info): New.
11061 (name_of_main, language_of_main): Remove.
11062 (get_main_info, main_info_cleanup): New function.
11063 (set_main_name, main_name, main_language): Use get_main_info.
11064 (_initialize_symtab): Initialize main_progspace_key.
11065
9e6c82ad
TT
110662014-01-15 Tom Tromey <tromey@redhat.com>
11067
11068 * dbxread.c (process_one_symbol): Update.
11069 * dwarf2read.c (read_partial_die): Update.
11070 * symfile.c (set_initial_language): Call main_language.
11071 * symtab.c (language_of_main): Now static.
11072 (set_main_name): Add 'lang' parameter.
11073 (find_main_name): Update.
11074 (main_language): New function.
11075 (symtab_observer_executable_changed): Update.
11076 * symtab.h (set_main_name): Update.
11077 (language_of_main): Remove.
11078 (main_language): Declare.
11079
6ef55de7
TT
110802014-01-15 Tom Tromey <tromey@redhat.com>
11081
11082 * symfile.c (init_entry_point_info): Use new "initialized" field.
11083 Update.
11084 * objfiles.h (struct entry_point) <initialized>: New field.
11085 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11086 (struct objfile) <ei>: ...here. Remove.
11087 * objfiles.c (entry_point_address_query): Update.
11088
53eddfa6
TT
110892014-01-15 Tom Tromey <tromey@redhat.com>
11090
11091 * objfiles.c (entry_point_address_query): Relocate entry point
11092 address.
11093 (objfile_relocate1): Do not relocate entry point address.
11094 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11095 <the_bfd_section_index>: New field.
11096 * symfile.c (init_entry_point_info): Find the entry point's
11097 section.
11098
d56e56aa
TT
110992014-01-15 Tom Tromey <tromey@redhat.com>
11100
11101 * solib-frv.c (enable_break): Use entry_point_address_query.
11102
33a97bbe
OJ
111032014-01-15 Omair Javaid <omair.javaid@linaro.org>
11104
11105 * NEWS: Add note on improved process record-replay on
11106 arm*-linux* targets.
11107
c6ec2b30
OJ
111082014-01-15 Omair Javaid <omair.javaid@linaro.org>
11109
11110 * arm-tdep.c (enum arm_record_result): New enum.
11111 (arm_record_unsupported_insn): New function.
11112 (arm_record_coproc_data_proc): Removed.
11113 (thumb2_record_ld_st_multiple): New function.
11114 (thumb2_record_ld_st_dual_ex_tbb): New function.
11115 (thumb2_record_data_proc_sreg_mimm): New function.
11116 (thumb2_record_ps_dest_generic): New function.
11117 (thumb2_record_branch_misc_cntrl): New function.
11118 (thumb2_record_str_single_data): New function.
11119 (thumb2_record_ld_mem_hints): New function.
11120 (thumb2_record_ld_word): New function.
11121 (thumb2_record_lmul_lmla_div): New function.
11122 (thumb2_record_decode_insn_handler): New function.
11123 (decode_insn): Add thumb32 instruction handlers.
11124
97dfe206
OJ
111252014-01-15 Omair Javaid <omair.javaid@linaro.org>
11126
11127 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11128 (struct arm_linux_record_tdep): Declare.
11129 (arm_canonicalize_syscall): New function.
11130 (arm_all_but_pc_registers_record): New function.
11131 (arm_linux_syscall_record): New function.
11132 (arm_linux_init_abi): Add syscall recording constructs.
11133 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11134 decoding. (arm_record_coproc_data_proc): Update arm syscall
11135 decoding.
11136 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11137 <arm_syscall_record>: New field.
11138 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11139 gdb_target_obs.
11140
9904a494
OJ
111412014-01-15 Omair Javaid <omair.javaid@linaro.org>
11142
11143 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11144 register for push instruction recording.
11145
f969241e
OJ
111462014-01-15 Omair Javaid <omair.javaid@linaro.org>
11147
11148 * arm-tdep.c (thumb_record_misc): Update to correct logical
11149 error while recording ldm, ldmia and pop instructions.
11150
bfbbec00
OJ
111512014-01-15 Omair Javaid <omair.javaid@linaro.org>
11152
11153 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11154
e40adcc9
PA
111552014-01-15 Pedro Alves <palves@redhat.com>
11156
11157 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11158 (go32_resume, go32_fetch_registers, store_register)
11159 (go32_store_registers, go32_prepare_to_store)
11160 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11161 (go32_create_inferior, go32_can_run, go32_terminal_init)
11162 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11163 declarations.
11164
b0a16e66
TT
111652014-01-15 Tom Tromey <tromey@redhat.com>
11166
11167 * target.h (async_callback_ftype): New typedef.
11168 (struct target_ops) <to_async>: Use it.
11169
bf7105a4
JB
111702014-01-15 Joel Brobecker <brobecker@adacore.com>
11171
11172 * python/py-value.c (get_field_type): Remove unnecessary curly
11173 braces for single-statement if block.
11174
a8f35c2e
JB
111752014-01-15 Joel Brobecker <brobecker@adacore.com>
11176
11177 * python/py-type.c (convert_field): Add missing empty line
11178 after declarations.
11179
bb4142cf
DE
111802014-01-14 Doug Evans <dje@google.com>
11181
11182 * symfile.h (expand_symtabs_matching): Renamed from
11183 expand_partial_symbol_names. Update prototype.
11184 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11185 * symfile.c (expand_symtabs_matching): Renamed from
11186 expand_partial_symbol_names. New args file_matcher, kind.
11187 Rename arg fun to symbol_matcher.
11188 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11189 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11190 ada_expand_partial_symbol_name.
11191 (ada_make_symbol_completion_list): Update to call
11192 expand_symtabs_matching.
11193 (ada_add_global_exceptions): Call expand_symtabs_matching.
11194 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11195 call map_symbol_filenames.
11196 * symtab.c (sources_info): Update to call map_symbol_filenames.
11197 (search_symbols): Call expand_symtabs_matching.
11198 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11199 (default_make_symbol_completion_list_break_on): Update to call
11200 expand_symtabs_matching.
11201 (make_source_files_completion_list): Update to call
11202 map_symbol_filenames.
11203
206f2a57
DE
112042014-01-14 Doug Evans <dje@google.com>
11205
11206 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11207 (expand_symtabs_symbol_matcher_ftype): New typedef.
11208 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11209 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11210 * symfile.c (expand_partial_symbol_names): Update to use
11211 expand_symtabs_symbol_matcher_ftype.
11212 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11213 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11214 Arg name_matcher renamed to symbol_matcher.
11215 * psymtab.c (recursively_search_psymtabs): Update to use
11216 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11217 sym_matcher.
11218 (expand_symtabs_matching_via_partial): Update to use
11219 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11220 Arg name_matcher renamed to symbol_matcher.
11221
540c2971
DE
112222014-01-14 Doug Evans <dje@google.com>
11223
11224 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11225 (map_partial_symbol_filenames): Ditto.
11226 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11227 (map_partial_symbol_filenames): Ditto.
11228 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11229 (map_partial_symbol_filenames): Ditto.
11230 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11231 (map_partial_symbol_filenames): Ditto.
11232 * symtab.c: Delete #include "psymtab.h".
11233
8213266a
PA
112342014-01-14 Pedro Alves <palves@redhat.com>
11235 Tom Tromey <tromey@redhat.com>
11236
11237 * infrun.c (use_displaced_stepping): Use find_record_target
11238 instead of RECORD_IS_USED.
11239 (adjust_pc_after_break): Use record_full_is_used instead of
11240 RECORD_IS_USED.
11241 * record-btrace.c (record_btrace_open): Call record_preopen
11242 instead of checking RECORD_IS_USED.
11243 * record-full.c (record_full_shortname)
11244 (record_full_core_shortname): New globals.
11245 (record_full_is_used): New function.
11246 (find_full_open): Call record_preopen instead of checking
11247 RECORD_IS_USED.
11248 (init_record_full_ops): Set the target's shortname to
11249 record_full_shortname.
11250 (init_record_full_core_ops): Set the target's shortname to
11251 record_full_core_shortname.
11252 * record-full.h (record_full_is_used): Declare.
11253 * record.c (find_record_target): Make extern.
11254 (record_preopen): New function.
11255 * record.h (RECORD_IS_USED): Delete macro.
11256 (find_record_target, record_preopen): Declare functions.
11257
7ec1862d
YQ
112582014-01-14 Yao Qi <yao@codesourcery.com>
11259
11260 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11261 'len''s type to ULONGEST.
11262 (core_xfer_shared_libraries_aix): Likewise.
11263 * gdbarch.c, gdbarch.h: Regenerated.
11264 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11265 Change type of 'len' to ULONGEST.
11266 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11267 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11268
dea80a27
YQ
112692014-01-14 Yao Qi <yao@codesourcery.com>
11270
11271 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11272 type of 'len' to ULONGEST.
11273 (linux_xfer_osdata_processgroups): Likewise.
11274 (linux_xfer_osdata_threads): Likewise.
11275 (linux_xfer_osdata_fds): Likewise.
11276 (linux_xfer_osdata_isockets): Likewise.
11277 (linux_xfer_osdata_shm): Likewise.
11278 (linux_xfer_osdata_sem): Likewise.
11279 (linux_xfer_osdata_msg): Likewise.
11280 (linux_common_xfer_osdata): Likewise.
11281 (struct osdata_type) <getter>: Likewise.
11282 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11283 the declaration.
11284
b55e14c7
YQ
112852014-01-14 Yao Qi <yao@codesourcery.com>
11286
11287 * target.h (target_xfer_partial_ftype): Update.
11288 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11289 ULONGEST.
11290 * aix-thread.c (aix_thread_xfer_partial): Change type of
11291 argument 'len' to ULONGEST.
11292 * auxv.c (procfs_xfer_auxv): Likewise.
11293 (ld_so_xfer_auxv): Likewise.
11294 (memory_xfer_auxv): Likewise.
11295 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11296 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11297 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11298 * corelow.c (core_xfer_partial): Likewise.
11299 * ctf.c (ctf_xfer_partial): Likewise.
11300 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11301 '%u'.
11302 (darwin_read_dyld_info): Likewise.
11303 (darwin_xfer_partial): Likewise.
11304 * exec.c (section_table_xfer_memory_partial): Likewise.
11305 (exec_xfer_partial): Likewise.
11306 * exec.h (section_table_xfer_memory_partial): Update
11307 declaration.
11308 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11309 instead of plongest.
11310 (gnu_xfer_partial): Likewise.
11311 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11312 (ia64_hpux_xfer_solib_got): Likewise.
11313 (ia64_hpux_xfer_partial): Likewise.
11314 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11315 * inf-ptrace.c (inf_ptrace_xfer_partial):
11316 * inf-ttrace.c (inf_ttrace_xfer_partial):
11317 * linux-nat.c (linux_xfer_siginfo): Likewise.
11318 (linux_nat_xfer_partial): Likewise.
11319 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11320 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11321 * monitor.c (monitor_xfer_memory): Likewise.
11322 (monitor_xfer_partial): Likewise.
11323 * procfs.c (procfs_xfer_partial): Likewise.
11324 * record-full.c (record_full_xfer_partial): Likewise.
11325 (record_full_core_xfer_partial): Likewise.
11326 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11327 instead of plongest.
11328 (gdbsim_xfer_partial): Likewise.
11329 * remote.c (remote_xfer_partial): Likewise.
11330 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11331 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11332 declaration.
11333 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11334 (rs6000_xfer_shared_libraries): Likewise.
11335 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11336 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11337 (sparc_xfer_partial): Likewise.
11338 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11339 (spu_xfer_partial): Likewise.
11340 * spu-multiarch.c (spu_xfer_partial): Likewise.
11341 * target.c (target_read_live_memory): Likewise.
11342 (memory_xfer_live_readonly_partial): Likewise.
11343 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11344 (target_xfer_partial, default_xfer_partial): Likewise.
11345 (current_xfer_partial): Likewise.
11346 * tracepoint.c (tfile_xfer_partial): Likewise.
11347 * windows-nat.c (windows_xfer_memory): Likewise. Call
11348 pulongest instead of plongest.
11349 (windows_xfer_partial): Likewise.
11350 (windows_xfer_shared_libraries): Likewise.
11351
05804640
YQ
113522014-01-14 Yao Qi <yao@codesourcery.com>
11353
11354 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11355 target_xfer_partial_ftype.
11356
b5b08fb4
SC
113572014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11358
11359 PR python/15464
11360 PR python/16113
11361 * valops.c (value_struct_elt_bitpos): New function
11362 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11363 object to 'None' if the field name is an empty string ("").
11364 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11365 attribute to look for a field when 'name' is 'None'.
11366 (get_field_type): New function
11367
13aaf454
DE
113682014-01-13 Doug Evans <dje@google.com>
11369
11370 PR symtab/16426
11371 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11372 (try_open_dwop_file): Ditto.
11373 * gdb_bfd.c: #include "vec.h".
11374 (bfdp): New typedef.
11375 (struct gdb_bfd_data): New member included_bfds.
11376 (gdb_bfd_unref): Unref all included bfds.
11377 (gdb_bfd_record_inclusion): New function.
11378 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11379
c2cec97c
TT
113802014-01-13 Tom Tromey <tromey@redhat.com>
11381
11382 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11383
78e5999d
TT
113842014-01-13 Tom Tromey <tromey@redhat.com>
11385
11386 * defs.h (use_windows): Remove.
11387 * gdb.c (main): Update.
11388 * main.c (captured_main, gdb_main): Update.
11389 * main.h (struct captured_main_args) <use_windows>: Remove.
11390 * top.c (use_windows): Remove.
11391
f2052bbe
TT
113922014-01-13 Tom Tromey <tromey@redhat.com>
11393
11394 * defs.h (deprecated_flush_hook): Remove.
11395
fde4f8ed
JK
113962014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11397
11398 PR threads/16216
11399 * linux-thread-db.c (try_thread_db_load): Add parameter
11400 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11401 (try_thread_db_load_from_pdir_1): Move it there from here.
11402 (try_thread_db_load_from_sdir): Update caller.
11403 (try_thread_db_load_from_dir): Move it there from here.
11404
bdf61915
PP
114052014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11406
11407 * regformats/regdat.sh: Always rewrite the register file.
11408
f71e1a8d
PA
114092014-01-13 Pedro Alves <palves@redhat.com>
11410
11411 * Makefile.in (CHECK_HEADERS): New variable.
11412 (check-headers:): New rule.
11413
42c85435
TT
114142014-01-13 Tom Tromey <tromey@redhat.com>
11415
11416 * cli/cli-setshow.c (do_set_command): Update.
11417 * defs.h (deprecated_set_hook): Remove.
11418 * top.c (deprecated_set_hook): Remove.
11419
f8de5129
PA
114202014-01-13 Pedro Alves <palves@redhat.com>
11421
11422 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11423 the tracepoint if the PC is a pseudo-register.
11424
fc270c35
TT
114252014-01-13 Tom Tromey <tromey@redhat.com>
11426
11427 * defs.h (XCALLOC): Remove.
11428 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11429 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11430 * dwarf2loc.c (allocate_piece_closure): Likewise.
11431 * elfread.c (elf_symfile_segments): Likewise.
11432 (elf_symfile_segments): Likewise.
11433 * gdbtypes.c (copy_type_recursive): Likewise.
11434 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11435 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11436 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11437 XCALLOC.
11438 * mt-tdep.c (mt_gdbarch_init): Likewise.
11439 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11440 XCALLOC.
11441 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11442 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11443 * registry.c (registry_alloc_data): Likewise.
11444 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11445 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11446 * serial.c (serial_fdopen_ops): Likewise.
11447 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11448 XCALLOC.
11449 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11450 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11451 not XCALLOC.
11452
70ba0933
TT
114532014-01-13 Tom Tromey <tromey@redhat.com>
11454
11455 * defs.h (XMALLOC): Remove.
11456 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11457 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11458 * cli-out.c (struct ui_out *): Likewise.
11459 * cli/cli-dump.c (add_dump_command): Likewise.
11460 (add_dump_command): Likewise.
11461 * complaints.c (get_complaints): Likewise.
11462 (find_complaint): Likewise.
11463 * dwarf2-frame.c (execute_cfa_program): Likewise.
11464 * dwarf2read.c (abbrev_table_read_table): Likewise.
11465 * gdbarch.sh: Likewise.
11466 * gdbarch.c: Rebuild.
11467 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11468 * interps.c (interp_new): Likewise.
11469 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11470 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11471 * mi/mi-console.c (mi_console_file_new): Likewise.
11472 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11473 * mi/mi-out.c (mi_out_new): Likewise.
11474 * mi/mi-parse.c (mi_parse): Likewise.
11475 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11476 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11477 * observer.c (xalloc_observer_list_node): Likewise.
11478 * regcache.c (regcache_xmalloc_1): Likewise.
11479 * reggroups.c (reggroup_new): Likewise.
11480 (_initialize_reggroup): Likewise.
11481 * registry.c (register_data_with_cleanup): Likewise.
11482 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11483 * ser-base.c (serial_ttystate): Likewise.
11484 * ser-mingw.c (make_pipe_state): Likewise.
11485 * ser-pipe.c (pipe_open): Likewise.
11486 * serial.c (serial_open): Likewise.
11487 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11488 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11489 (tui_alloc_win_info): Likewise.
11490 (tui_add_content_elements): Likewise.
11491 * tui/tui-file.c (tui_file_new): Likewise.
11492 * tui/tui-out.c (tui_out_new): Likewise.
11493 * ui-file.c (mem_file_new): Likewise.
11494 * ui-out.c (push_level): Likewise.
11495 (make_cleanup_ui_out_end): Likewise.
11496 (append_header_to_list): Likewise.
11497 (ui_out_new): Likewise.
11498 * user-regs.c (user_reg_add_builtin): Likewise.
11499
41bf6aca
TT
115002014-01-13 Tom Tromey <tromey@redhat.com>
11501
11502 * defs.h (XZALLOC): Remove.
11503 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11504 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11505 (get_ada_tasks_inferior_data): Likewise.
11506 * auto-load.c (get_auto_load_pspace_data): Likewise.
11507 * auxv.c (get_auxv_inferior_data): Likewise.
11508 * bfd-target.c (target_bfd_reopen): Likewise.
11509 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11510 (deprecated_insert_raw_breakpoint): Likewise.
11511 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11512 * corelow.c (core_open): Likewise.
11513 * darwin-nat.c (darwin_check_new_threads): Likewise.
11514 (darwin_attach_pid): Likewise.
11515 * dummy-frame.c (dummy_frame_push): Likewise.
11516 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11517 * dwarf2loc.c (allocate_piece_closure): Likewise.
11518 * elfread.c (elf_symfile_segments): Likewise.
11519 * eval.c (ptrmath_type_p): Likewise.
11520 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11521 * gdbtypes.c (alloc_type_arch): Likewise.
11522 (alloc_type_instance): Likewise.
11523 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11524 * inf-child.c (inf_child_can_use_agent): Likewise.
11525 * inflow.c (get_inflow_inferior_data): Likewise.
11526 * infrun.c (save_infcall_suspend_state): Likewise.
11527 * jit.c (jit_reader_load): Likewise.
11528 (get_jit_objfile_data): Likewise.
11529 (get_jit_program_space_data): Likewise.
11530 (jit_object_open_impl): Likewise.
11531 (jit_symtab_open_impl): Likewise.
11532 (jit_block_open_impl): Likewise.
11533 (jit_frame_sniffer): Likewise.
11534 * linux-fork.c (add_fork): Likewise.
11535 * maint.c (make_command_stats_cleanup): Likewise.
11536 * objfiles.c (get_objfile_pspace_data): Likewise.
11537 * opencl-lang.c (struct lval_closure): Likewise.
11538 * osdata.c (osdata_start_osdata): Likewise.
11539 * progspace.c (new_address_space): Likewise.
11540 (add_program_space): Likewise.
11541 * remote-sim.c (get_sim_inferior_data): Likewise.
11542 * sh-tdep.c (sh_gdbarch_init): Likewise.
11543 * skip.c (Ignore): Likewise.
11544 (skip_delete_command): Likewise.
11545 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11546 (library_list_start_library): Likewise.
11547 (solib_aix_current_sos): Likewise.
11548 * solib-darwin.c (get_darwin_info): Likewise.
11549 (darwin_current_sos): Likewise.
11550 * solib-dsbt.c (get_dsbt_info): Likewise.
11551 * solib-ia64-hpux.c (new_so_list): Likewise.
11552 (ia64_hpux_get_solib_linkage_addr): Likewise.
11553 * solib-spu.c (append_ocl_sos): Likewise.
11554 (spu_current_sos): Likewise.
11555 * solib-svr4.c (get_svr4_info): Likewise.
11556 (svr4_keep_data_in_core): Likewise.
11557 (library_list_start_library): Likewise.
11558 (svr4_default_sos): Likewise.
11559 (svr4_read_so_list): Likewise.
11560 * solib-target.c (library_list_start_library): Likewise.
11561 (solib_target_current_sos): Likewise.
11562 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11563 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11564 * symfile.c (default_symfile_segments): Likewise.
11565 * target-descriptions.c (tdesc_data_init): Likewise.
11566 (tdesc_create_reg): Likewise.
11567 (struct tdesc_type *): Likewise.
11568 (tdesc_create_vector): Likewise.
11569 (tdesc_set_struct_size): Likewise.
11570 (struct tdesc_type *): Likewise.
11571 (tdesc_free_feature): Likewise.
11572 (tdesc_create_feature): Likewise.
11573 * windows-nat.c (windows_add_thread): Likewise.
11574 (windows_make_so): Likewise.
11575 * xml-support.c (gdb_xml_body_text): Likewise.
11576 (gdb_xml_create_parser_and_cleanup): Likewise.
11577 (xml_process_xincludes): Likewise.
11578 * xml-syscall.c (allocate_syscalls_info): Likewise.
11579 (syscall_create_syscall_desc): Likewise.
11580
5acfdbae
SDJ
115812014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11582
11583 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11584 function, with code from i386_stap_parse_special_token.
11585 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11586 (i386_stap_parse_special_token): Move code to the two functions
11587 above; simplify it.
11588
0000e5cc
PA
115892014-01-09 Pedro Alves <palves@redhat.com>
11590 Hui Zhu <hui@codesourcery.com>
11591
11592 PR gdb/16101
11593 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11594 bp_err_string. Don't mark the location shlib_disabled if the
11595 error thrown wasn't a generic or memory error. Catch errors
11596 thrown while inserting breakpoints in overlayed code. Output
11597 error message of software breakpoints.
11598 * remote.c (remote_insert_breakpoint): If this breakpoint has
11599 target-side commands but this stub doesn't support Z0 packets,
11600 throw NOT_SUPPORTED_ERROR error.
11601 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11602 * target.h (target_insert_breakpoint): Extend comment.
11603 (target_insert_hw_breakpoint): Add comment.
11604
b7ea362b
PA
116052014-01-08 Pedro Alves <palves@redhat.com>
11606
11607 * remote.c (remote_add_thread): Add threads silently if starting
11608 up.
11609 (remote_notice_new_inferior): If in all-stop, and starting up,
11610 don't call notice_new_inferior.
11611 (get_current_thread): New function, factored out from ...
11612 (add_current_inferior_and_thread): ... this. Adjust.
11613 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11614 found any thread, then select the remote's current thread as GDB's
11615 current thread too.
11616
b7bba001
JB
116172014-01-08 Joel Brobecker <brobecker@adacore.com>
11618
11619 * NEWS: Create a new section for the next release branch.
11620 Rename the section of the current branch, now that it has
11621 been cut.
11622
16dfbded
JB
116232014-01-08 Joel Brobecker <brobecker@adacore.com>
11624
11625 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11626 * version.in: Bump version to 7.7.50.DATE-cvs.
11627
22c90ac1
YQ
116282014-01-08 Yao Qi <yao@codesourcery.com>
11629
11630 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11631 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11632 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11633
d64ad97c
YQ
116342014-01-08 Yao Qi <yao@codesourcery.com>
11635
11636 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11637 return value of bfd_get_filename to symbol_file_add_from_bfd.
11638
f93ba80c
PM
116392014-01-08 Pierre Muller <muller@sourceware.org>
11640
11641 Fix PR16201.
11642 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11643 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11644 to prim_record_mininal_symbol_and_info.
11645 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11646 in call to prim_record_minimal_symbol_and_info.
11647 (read_pe_exported_syms): Set index field of section_data.
11648
a4d9ba85
AP
116492014-01-07 Andrew Pinski <apinski@cavium.com>
11650
11651 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11652 * features/aarch64.c: Regenerate.
11653
1b67eb02
AS
116542014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11655
11656 * target.c (return_null): Define.
11657 (update_current_target): Use it instead of return_zero for
11658 functions that return a pointer.
11659
5e3f4fab
EBM
116602014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11661
11662 * source.c (add_path): Fix check for duplicated paths in the previously
11663 included paths.
11664
e2616788
HK
116652014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11666
11667 * ada-lang.c: Remove duplicated include statements.
11668 * alphabsd-nat.c: Ditto.
11669 * amd64-darwin-tdep.c: Ditto.
11670 * amd64fbsd-nat.c: Ditto.
11671 * auto-load.c: Ditto.
11672 * ax-gdb.c: Ditto.
11673 * breakpoint.c: Ditto.
11674 * dbxread.c: Ditto.
11675 * fork-child.c: Ditto.
11676 * gdb_usleep.c: Ditto.
11677 * i386-darwin-tdep.c: Ditto.
11678 * i386fbsd-nat.c: Ditto.
11679 * infcmd.c: Ditto.
11680 * inferior.c: Ditto.
11681 * jv-lang.c: Ditto.
11682 * linux-nat.c: Ditto.
11683 * linux-tdep.c: Ditto.
11684 * m68kbsd-nat.c: Ditto.
11685 * m68klinux-nat.c: Ditto.
11686 * microblaze-tdep.c: Ditto.
11687 * mips-linux-tdep.c: Ditto.
11688 * mn10300-tdep.c: Ditto.
11689 * nto-tdep.c: Ditto.
11690 * opencl-lang.c: Ditto.
11691 * osdata.c: Ditto.
11692 * printcmd.c: Ditto.
11693 * regcache.c: Ditto.
11694 * remote-m32r-sdi.c: Ditto.
11695 * remote.c: Ditto.
11696 * symfile.c: Ditto.
11697 * symtab.c: Ditto.
11698 * tilegx-linux-nat.c: Ditto.
11699 * tilegx-tdep.c: Ditto.
11700 * tracepoint.c: Ditto.
11701 * valops.c: Ditto.
11702 * vaxbsd-nat.c: Ditto.
11703 * windows-nat.c: Ditto.
11704 * xtensa-tdep.c: Ditto.
11705
bd1f7788
YQ
117062014-01-07 Yao Qi <yao@codesourcery.com>
11707
11708 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11709
79301218
JB
117102014-01-07 Yao Qi <yao@codesourcery.com>
11711 Joel Brobecker <brobecker@adacore.com>
11712
11713 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11714 (pdc_write_regs): Likewise.
11715 (fetch_regs_kernel_thread): Likewise.
11716 (store_regs_kernel_thread): Likewise.
11717
117182014-01-07 Joel Brobecker <brobecker@adacore.com>
11719
11720 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11721 tagged type objects to their actual type.
11722
8e355c5d
JB
117232014-01-07 Joel Brobecker <brobecker@adacore.com>
11724
11725 * ada-valprint.c (print_field_values): Add "language" parameter.
11726 Update calls to print_field_values and print_variant_part.
11727 Pass new parameter "language" in call to val_print instead
11728 of "current_language". Replace call to ada_val_print by call
11729 to val_print.
11730 (print_variant_part): Add "language" parameter.
11731 (ada_val_print_struct_union): Update call to print_field_values.
11732
4fbf5aa5
JB
117332014-01-07 Joel Brobecker <brobecker@adacore.com>
11734
11735 * ada-valprint.c (ui_memcpy): Delete.
11736 (ada_print_floating): Update documentation. Add empty line
11737 between between function documentation and implementation.
11738 Delete variable "buffer". Use ui_file_xstrdup in place of
11739 ui_file_put. Minor adjustments following this change.
11740
71855601
JB
117412014-01-07 Joel Brobecker <brobecker@adacore.com>
11742
11743 * ada-valprint.c (ada_val_print_string): New function,
11744 extracted from ada_val_print_array.
11745 (ada_val_print_array): Replace extracted code by call
11746 to ada_val_print_string followed by a return. Move
11747 "else" branch to the function's top block.
11748
4eb27a30
JB
117492014-01-07 Joel Brobecker <brobecker@adacore.com>
11750
11751 * ada-valprint.c (ada_val_print_array): Move implementation
11752 down. Rename parameter "offset" and "val" into "offset_aligned"
11753 and "original_value" respectively. Add parameter "offset".
11754
34b27950
JB
117552014-01-07 Joel Brobecker <brobecker@adacore.com>
11756
11757 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11758 re-organizing the code. Change the "???" message printed
11759 when target type is a TYPE_CODE_UNDEF into
11760 "<ref to undefined type>".
11761
079e4591
JB
117622014-01-07 Joel Brobecker <brobecker@adacore.com>
11763
11764 * ada-valprint.c (print_record): Delete, implementation inlined...
11765 (ada_val_print_struct_union): ... here. Remove call to
11766 ada_check_typedef in inlined implementation.
11767
8004dfd1
JB
117682014-01-07 Joel Brobecker <brobecker@adacore.com>
11769
11770 * ada-valprint.c (ada_val_print_gnat_array): New function,
11771 extracted from ada_val_print_1;
11772 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11773 (ada_val_print_flt, ada_val_print_struct_union)
11774 (ada_val_print_ref): Likewise.
11775 (ada_val_print_1): Delete variables i and elttype.
11776 Replace extracted-out code by call to corresponding
11777 new functions.
11778
760a2db0
JB
117792014-01-07 Joel Brobecker <brobecker@adacore.com>
11780
11781 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11782
3a92c861
JB
117832014-01-07 Joel Brobecker <brobecker@adacore.com>
11784
11785 * ada-valprint.c (ada_val_print_1): Replace calls to
11786 ada_val_print_1 by calls to val_print.
11787
cd1630f9
JB
117882014-01-07 Joel Brobecker <brobecker@adacore.com>
11789
11790 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11791 Update calls to self accordingly. Replace calls to c_val_print
11792 by calls to val_print.
11793
bdf779a0
JB
117942014-01-07 Joel Brobecker <brobecker@adacore.com>
11795
11796 * ada-valprint.c (print_record): Delete declaration.
11797 (adjust_type_signedness, ada_val_print_1): Likewise.
11798 (ada_val_print): Move function implementation down.
11799 (print_variant_part, print_field_values, print_record):
11800 Move function implementation up.
11801
c0d48811
JB
118022014-01-07 Joel Brobecker <brobecker@adacore.com>
11803
11804 * python/py-type.c (typy_get_name): New function.
11805 (type_object_getset): Add entry for attribute "name".
11806 * NEWS: Add entry mentioning this new attribute.
11807
c26e9cbb
YQ
118082014-01-07 Yao Qi <yao@codesourcery.com>
11809
11810 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11811 statement.
11812
0cc6f43d
YQ
118132014-01-07 Yao Qi <yao@codesourcery.com>
11814
11815 * gnu-nat.c (info_port_rights): Add qualifier const to
11816 argument args.
11817
eec03155
YQ
118182014-01-07 Yao Qi <yao@codesourcery.com>
11819
11820 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11821
f04a82ef
YQ
118222014-01-07 Yao Qi <yao@codesourcery.com>
11823
11824 * gnu-nat.c (make_inf) Update declaration.
11825 (make_inf): Make it static.
11826 (inf_set_traced): Likewise.
11827 (inf_port_to_thread, inf_task_died_status): Likewise.
11828
d57dda0a
YQ
118292014-01-07 Yao Qi <yao@codesourcery.com>
11830
11831 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11832
3aa8c969
YQ
118332014-01-07 Yao Qi <yao@codesourcery.com>
11834
11835 * gnu-nat.c (_initialize_gnu_nat): Declare.
11836
94123b4f
YQ
118372014-01-07 Yao Qi <yao@codesourcery.com>
11838
11839 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11840 'enum bfd_endian'.
11841 (struct gdbarch_info) <byte_order>: Change type to
11842 'enum bfd_endian'.
11843 <byte_order_for_code>: Likewise.
11844 * gdbarch.c, gdbarch.h: Regenerated.
11845
dc81d70a
TT
118462014-01-06 Sasha Smundak <asmundak@google.com>
11847
11848 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11849
cc2f3c35
TT
118502014-01-06 Tom Tromey <tromey@redhat.com>
11851
11852 * doublest.c (convert_doublest_to_floatformat): Use const, not
11853 CONST.
11854 * somread.c (som_symtab_read): Likewise.
11855
adcf2eed
HZ
118562014-01-07 Hui Zhu <hui@codesourcery.com>
11857
11858 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11859 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11860 (gdb_bfd_fopen): Ditto.
11861 (gdb_bfd_openr): Ditto.
11862 (gdb_bfd_openw): Ditto.
11863 (gdb_bfd_openr_iovec): Ditto.
11864 (gdb_bfd_fdopenr): Ditto.
11865 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11866 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11867 with xstrdup.
11868 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11869 with xstrdup.
11870 * symfile-mem.c (symbol_file_add_from_memory): Removed
11871 gdb_bfd_stash_filename.
11872
50722198
DE
118732014-01-03 Doug Evans <dje@google.com>
11874
11875 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11876 output.
11877
2fa4b862
JB
118782014-01-01 Joel Brobecker <brobecker@adacore.com>
11879
11880 Update year range in copyright notice of all files.
11881
28498c42
JB
118822014-01-01 Joel Brobecker <brobecker@adacore.com>
11883
11884 * top.c (print_gdb_version): Set copyright year to 2014.
11885
7b6e1046
JB
118862014-01-01 Joel Brobecker <brobecker@adacore.com>
11887
11888 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11889
df96af55 11890For older changes see ChangeLog-2013.
c906108c
SS
11891\f
11892Local Variables:
11893mode: change-log
11894left-margin: 8
11895fill-column: 74
11896version-control: never
57da7796 11897coding: utf-8
c906108c 11898End:
This page took 2.077667 seconds and 4 git commands to generate.